Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelPenalty ¶
type CancelPolicy ¶
type CancelPolicy struct { Refundable bool `json:"refundable"` CancelPenalties []CancelPenalty `json:"cancelPenalties"` }
type Option ¶
type Option struct { SupplierCode string `json:"supplierCode"` AccessCode string `json:"accessCode"` Market string `json:"market"` HotelCode string `json:"hotelCode"` HotelCodeSupplier string `json:"hotelCodeSupplier"` HotelName *string `json:"hotelName"` BoardCode string `json:"boardCode"` BoardCodeSupplier string `json:"boardCodeSupplier"` PaymentType string `json:"paymentType"` Status string `json:"status"` Occupancies []Occupancy `json:"occupancies"` Rooms []Room `json:"rooms"` Price Price `json:"price"` Supplements []Supplement `json:"supplements"` Surcharges []Surcharge `json:"surcharges"` RateRules []string `json:"rateRules"` CancelPolicy *CancelPolicy `json:"cancelPolicy"` Remarks *string `json:"remarks"` Token string `json:"token"` Id string `json:"id"` }
type PriceBreakdown ¶
type Response ¶
type Response struct { Data struct { HotelX struct { Search struct { Options []Option `json:"options"` Errors struct { Code string `json:"code"` Type string `json:"type"` Description string `json:"description"` } `json:"errors"` } `json:"search"` } `json:"hotelX"` } `json:"data"` }
func NewResponse ¶
type Room ¶
type Room struct { OccupancyRefId int `json:"occupancyRefId"` Code string `json:"code"` Description *string `json:"description"` Refundable *bool `json:"refundable"` Units *int `json:"units"` RoomPrice RoomPrice `json:"roomPrice"` Beds []Bed `json:"beds"` RatePlans []RatePlan `json:"ratePlans"` Promotions []Promotion `json:"promotions"` }
type RoomPrice ¶
type RoomPrice struct { Price Price `json:"price"` Breakdown []PriceBreakdown `json:"breakdown"` }
type Supplement ¶
type Supplement struct { Code string `json:"code"` Name *string `json:"name"` Description *string `json:"description"` SupplementType string `json:"supplementType"` ChargeType string `json:"chargeType"` Mandatory bool `json:"mandatory"` DurationType *string `json:"durationType"` Quantity *int `json:"quantity"` Unit *string `json:"unit"` EffectiveDate *string `json:"effectiveDate"` ExpireDate *string `json:"expireDate"` Resort *Resort `json:"resort"` Price *Price `json:"price"` }
Click to show internal directories.
Click to hide internal directories.