Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.41 KB

File metadata and controls

35 lines (26 loc) · 1.41 KB

HotelPrice

Stay price or daily price calendar when present.

Properties

Name Type Description Notes
price float Nightly price in the response currency. [optional]
price_without_discount float Full nightly price before any discount, when a discount applies. [optional]
currency str ISO 4217 currency code for the price, such as USD. [optional]
discount_text str Discount label, such as "23% less than usual". [optional]
prices_by_dates List[HotelPriceByDate] Daily price calendar, populated when /hotels/info requests load_prices_by_dates. [optional]
extras Dict [optional]

Example

from unifapi.models.hotel_price import HotelPrice

# TODO update the JSON string below
json = "{}"
# create an instance of HotelPrice from a JSON string
hotel_price_instance = HotelPrice.from_json(json)
# print the JSON string representation of the object
print(HotelPrice.to_json())

# convert the object into a dict
hotel_price_dict = hotel_price_instance.to_dict()
# create an instance of HotelPrice from a dict
hotel_price_from_dict = HotelPrice.from_dict(hotel_price_dict)

[Back to Model list] [Back to API list] [Back to README]