HotelOfferDetails class

Constructors

HotelOfferDetails({DateTime? expiresAt, List<Room> rooms = const [], MealPlan? board, BookingTerms? terms, TaxBreakdown? taxes, bool? priceIsBinding, List<NightlyPrice> nightlyPrices = const [], List<Surcharge> surcharges = const [], List<String> rateTags = const [], List<String> remarks = const [], bool? withTransfers, List<HotelOfferDetailsRateRulesEnum> rateRules = const [], HotelOfferDetailsAmendabilityStatusEnum? amendabilityStatus, GuestNameRules? guestNameRules, Money? minimumSellingPrice, bool? allowsSpecialRequests, List<SpecialRequestOption>? specialRequestOptions = const []})
Returns a new HotelOfferDetails instance.

Properties

allowsSpecialRequests ↔ bool?
Whether every room accepts requests; omitted when unstated.
getter/setter pair
amendabilityStatus ↔ HotelOfferDetailsAmendabilityStatusEnum?
Whether a booking of this rate can be amended.
getter/setter pair
board ↔ MealPlan?
The meal plan.
getter/setter pair
expiresAt ↔ DateTime?
When publicId stops being accepted (UTC): at most 30 minutes after the search, and never after an expiry the hotel system states. Quote or order before then.
getter/setter pair
guestNameRules ↔ GuestNameRules?
What the booking accepts as a holder's or guest's first and last name, so a form can check the names before the order is sent.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
minimumSellingPrice ↔ Money?
Minimum resale price for the whole stay; use its stated currency. Null when unavailable.
getter/setter pair
nightlyPrices ↔ List<NightlyPrice>
The price split by night, every night in the price's currency; the nights add up to the price. Empty when the price is not split by night: on a B2B location search, when no nightly amounts are given, or when a night could not be converted to the search currency.
getter/setter pair
priceIsBinding ↔ bool?
Whether the price is stated as binding; null when not stated.
getter/setter pair
rateRules ↔ List<HotelOfferDetailsRateRulesEnum>
The rate's classes, such as nonRefundable or package.
getter/setter pair
rateTags ↔ List<String>
Short labels on the rate, such as a promotion name.
getter/setter pair
remarks ↔ List<String>
Remarks about the rate, verbatim.
getter/setter pair
rooms ↔ List<Room>
The rooms of the rate, one per searched room, with that room's searched occupancy.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
specialRequestOptions ↔ List<SpecialRequestOption>?
Available requests, subject to availability at check-in; null for free-text requests.
getter/setter pair
surcharges ↔ List<Surcharge>
Fees outside the room rate, such as a city tax or a deposit, in the quote's and the order item's shape: price in the property's currency, approxPrice in the search currency or null when it could not be converted, and includedInTotal when the fee is already in the offer's price. Indicative: the quote's surcharges are binding. Empty on a B2B location search.
getter/setter pair
taxes ↔ TaxBreakdown?
Taxes included in or added to the price, as far as they are stated; null when not stated.
getter/setter pair
terms ↔ BookingTerms?
How the stay is paid, what cancelling gives back and whether it can be changed, in the rate's currency and with OpenRoam's fees included.
getter/setter pair
withTransfers ↔ bool?
Whether the rate includes transfers.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → HotelOfferDetails?
Returns a new HotelOfferDetails instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<HotelOfferDetails>
mapFromJson(dynamic json) → Map<String, HotelOfferDetails>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<HotelOfferDetails>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.