UNPKG

@revolugo/booking-api-client

Version:

Javascript Revolugo Booking API Client (browser + server)

54 lines (53 loc) 3.28 kB
import { Locale } from './Locale'; /** * * @export * @interface BookingPoliciesCreateApi */ export interface BookingPoliciesCreateApi { /** * This parameter allows to add breakfast to the booking as long as every requested Hotel Room Offers **breakfast_option = OPTIONAL** . * * The final breakfast count that will be included in the Hotel Room Offer will be returned in the response and is calculated as follows: * * - If the returned Hotel Room Offer **total room count** > **hotel_room_offer_request.adult_count** then **breakfast_count** will be equal to the **total room count** of the returned Hotel Room Offer, * * - Otherwise **breakfast_count** will be equal to the minimum value between related **hotel_room_offer_request.adult_count** and returned Hotel Room Offer **total occupancy**. * * <div style="background-color: #ffffef; padding: 20px; border: 1px solid lightgrey; border-radius: 5px;"><b style="color: red; margin-top: 10px;">🛑 DEPRECATED.</b> * * <b style="color: orange;">If you already use this field, don't worry as we still support it with the following behaviour:</b> * - <span style="color: orange;">When **add_breakfast = true** then **breakfast_count = MIN(guest count, total offer occupancy)** where **guest count** is the total number of adult and children over 3.</span> * - <span style="color: orange;">Otherwise **breakfast_count = 0**.</span></div> * @type {boolean} * @memberof BookingPoliciesCreateApi */ addBreakfast?: boolean | null; /** * This parameter describes the quantity of breakfast / night that should be included in the **Booking**. When **breakfast_option = OPTIONAL**, valid **breakfast_count** lower bound is **room count** and upper bound is **guest count**, where **guest count** is the number of adult and children over 3. * * ⚠️ The actual breakfast count that will be included in the **Booking** is the one that is returned in the response of this endpoint and might be different from this **breakfast_count** paramater in some cases. Please, make sure to check the actual breakfast count included in the **Hotel Room Offer** returned in the response of this endpoint. * @type {number} * @memberof BookingPoliciesCreateApi */ breakfastCount?: number; /** * Id of requested **Hotel Room Offer** returned by [Retrieve Hotel Room Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers). Requested **Hotel Room Offer** must be of **type = PACKAGE** * @type {string} * @memberof BookingPoliciesCreateApi */ hotelRoomOfferId: string; /** * * @type {Locale} * @memberof BookingPoliciesCreateApi */ lang?: Locale | null; } /** * Check if a given object implements the BookingPoliciesCreateApi interface. */ export declare function instanceOfBookingPoliciesCreateApi(value: object): boolean; export declare function BookingPoliciesCreateApiFromJSON(json: any): BookingPoliciesCreateApi; export declare function BookingPoliciesCreateApiFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookingPoliciesCreateApi; export declare function BookingPoliciesCreateApiToJSON(value?: BookingPoliciesCreateApi | null): any;