Class: HotelRate

HotelRate

Rate plan

  • When used as a request parameter, only code, priceDetail, and benefit.code are required

new HotelRate()

Properties:
Name Type Argument Description
code string

Code

date object <optional>

Check-in/out dates

Properties
Name Type Description
checkIn string

Check-in date, YYYY-MM-DD. E.g. "2021-06-18"

checkOut string

Check-out date, YYYY-MM-DD. E.g. "2021-06-18"

name string

Name

price string

Price including tax, in merchant currency

priceDetail PriceDetail

Price details, unknown if not specified. The breakdown property may be empty when querying rates; it will not be empty when querying rateRule.

benefit HotelBenefit <optional>

Benefit

commission Commission <optional>

Channel-level commission information

acceptedPaymentTypes Array.<string>

Accepted payment types. See Payment.type

cancellation HotelCancellation <optional>

Cancellation policy

cancellationPrepay HotelCancellation <optional>

Cancellation policy for prepayment (usually stricter)

breakfast object <optional>

Breakfast. One serving for one adult; two servings for two or more adults.

Properties
Name Type Argument Description
include boolean <optional>

Whether includes breakfast, unknown if not specified

description string <optional>

Description, unknown if not specified

discount object <optional>

Discount !!! experimental field, subject to change, do not use in production !!!

Properties
Name Type Argument Description
category string <optional>

Discount category

Since:
  • 1.0.0