Documentation ¶
Overview ¶
Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bed ¶
type Bed struct { Type *string `json:"type"` Description *string `json:"description"` Count *int `json:"count"` }
func (Bed) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Bed) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Bed) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Bed) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type CancelPenalty ¶
type CancelPenalty struct { HoursBefore int `json:"hoursBefore"` PenaltyType string `json:"penaltyType"` Currency string `json:"currency"` Value float64 `json:"value"` }
func (CancelPenalty) MarshalEasyJSON ¶
func (v CancelPenalty) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CancelPenalty) MarshalJSON ¶
func (v CancelPenalty) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CancelPenalty) UnmarshalEasyJSON ¶
func (v *CancelPenalty) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CancelPenalty) UnmarshalJSON ¶
func (v *CancelPenalty) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CancelPolicy ¶
type CancelPolicy struct { Refundable bool `json:"refundable"` CancelPenalties []CancelPenalty `json:"cancelPenalties"` }
func (CancelPolicy) MarshalEasyJSON ¶
func (v CancelPolicy) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CancelPolicy) MarshalJSON ¶
func (v CancelPolicy) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CancelPolicy) UnmarshalEasyJSON ¶
func (v *CancelPolicy) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CancelPolicy) UnmarshalJSON ¶
func (v *CancelPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Exchange ¶
func (Exchange) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Exchange) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Exchange) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Exchange) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Markup ¶
type Markup struct { Channel *string `json:"channel"` Currency string `json:"currency"` Binding bool `json:"binding"` Net float64 `json:"net"` Gross *float64 `json:"gross"` Exchange Exchange `json:"exchange"` Rules []Rule `json:"rules"` }
func (Markup) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Markup) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Markup) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Markup) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Occupancy ¶
func (Occupancy) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Occupancy) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Occupancy) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Occupancy) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
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"` }
func (Option) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Option) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Option) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Option) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Pax ¶
type Pax struct {
Age int `json:"age"`
}
func (Pax) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Pax) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Pax) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Pax) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Price ¶
type Price struct { Currency string `json:"currency"` Binding bool `json:"binding"` Net float64 `json:"net"` Gross *float64 `json:"gross"` Exchange Exchange `json:"exchange"` Markups []Markup `json:"markups"` }
func (Price) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Price) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Price) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Price) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type PriceBreakdown ¶
type PriceBreakdown struct { EffectiveDate string `json:"effectiveDate"` ExpireDate string `json:"expireDate"` Price Price `json:"price"` }
func (PriceBreakdown) MarshalEasyJSON ¶
func (v PriceBreakdown) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PriceBreakdown) MarshalJSON ¶
func (v PriceBreakdown) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PriceBreakdown) UnmarshalEasyJSON ¶
func (v *PriceBreakdown) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PriceBreakdown) UnmarshalJSON ¶
func (v *PriceBreakdown) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Promotion ¶
type Promotion struct { Code string `json:"code"` Name *string `json:"name"` EffectiveDate *string `json:"effectiveDate"` ExpireDate *string `json:"expireDate"` }
func (Promotion) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Promotion) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Promotion) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Promotion) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type RatePlan ¶
type RatePlan struct { Code string `json:"code"` Name *string `json:"name"` EffectiveDate *string `json:"effectiveDate"` ExpireDate *string `json:"expireDate"` }
func (RatePlan) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (RatePlan) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*RatePlan) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RatePlan) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Resort ¶
type Resort struct { Code string `json:"code"` Name *string `json:"name"` Description *string `json:"description"` }
func (Resort) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Resort) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Resort) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Resort) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
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 ¶
func (Response) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Response) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Response) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Response) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
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"` }
func (Room) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Room) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Room) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Room) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type RoomPrice ¶
type RoomPrice struct { Price Price `json:"price"` Breakdown []PriceBreakdown `json:"breakdown"` }
func (RoomPrice) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (RoomPrice) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*RoomPrice) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RoomPrice) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Rule ¶
type Rule struct { Id string `json:"id"` Name *string `json:"name"` Type string `json:"type"` Value float64 `json:"value"` }
func (Rule) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Rule) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Rule) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Rule) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
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"` }
func (Supplement) MarshalEasyJSON ¶
func (v Supplement) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Supplement) MarshalJSON ¶
func (v Supplement) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Supplement) UnmarshalEasyJSON ¶
func (v *Supplement) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Supplement) UnmarshalJSON ¶
func (v *Supplement) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Surcharge ¶
type Surcharge struct { ChargeType string `json:"chargeType"` Mandatory bool `json:"mandatory"` Price Price `json:"price"` Description *string `json:"description"` }
func (Surcharge) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Surcharge) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Surcharge) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Surcharge) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface