Documentation ¶
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) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Bed) MarshalJSONBuf ¶
func (j *Bed) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Bed) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Bed) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type CancelPenalty ¶
type CancelPenalty struct { HoursBefore int `json:"hoursBefore"` PenaltyType string `json:"penaltyType"` Currency string `json:"currency"` Value float64 `json:"value"` }
func (*CancelPenalty) MarshalJSON ¶
func (j *CancelPenalty) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*CancelPenalty) MarshalJSONBuf ¶
func (j *CancelPenalty) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*CancelPenalty) UnmarshalJSON ¶
func (j *CancelPenalty) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*CancelPenalty) UnmarshalJSONFFLexer ¶
func (j *CancelPenalty) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type CancelPolicy ¶
type CancelPolicy struct { Refundable bool `json:"refundable"` CancelPenalties []CancelPenalty `json:"cancelPenalties"` }
func (*CancelPolicy) MarshalJSON ¶
func (j *CancelPolicy) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*CancelPolicy) MarshalJSONBuf ¶
func (j *CancelPolicy) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*CancelPolicy) UnmarshalJSON ¶
func (j *CancelPolicy) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*CancelPolicy) UnmarshalJSONFFLexer ¶
func (j *CancelPolicy) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type Exchange ¶
func (*Exchange) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Exchange) MarshalJSONBuf ¶
func (j *Exchange) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Exchange) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Exchange) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
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) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Markup) MarshalJSONBuf ¶
func (j *Markup) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Markup) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Markup) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type Occupancy ¶
func (*Occupancy) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Occupancy) MarshalJSONBuf ¶
func (j *Occupancy) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Occupancy) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Occupancy) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
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) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Option) MarshalJSONBuf ¶
func (j *Option) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Option) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Option) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type Pax ¶
type Pax struct {
Age int `json:"age"`
}
func (*Pax) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Pax) MarshalJSONBuf ¶
func (j *Pax) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Pax) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Pax) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
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) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Price) MarshalJSONBuf ¶
func (j *Price) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Price) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Price) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type PriceBreakdown ¶
type PriceBreakdown struct { EffectiveDate string `json:"effectiveDate"` ExpireDate string `json:"expireDate"` Price Price `json:"price"` }
func (*PriceBreakdown) MarshalJSON ¶
func (j *PriceBreakdown) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*PriceBreakdown) MarshalJSONBuf ¶
func (j *PriceBreakdown) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*PriceBreakdown) UnmarshalJSON ¶
func (j *PriceBreakdown) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*PriceBreakdown) UnmarshalJSONFFLexer ¶
func (j *PriceBreakdown) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type Promotion ¶
type Promotion struct { Code string `json:"code"` Name *string `json:"name"` EffectiveDate *string `json:"effectiveDate"` ExpireDate *string `json:"expireDate"` }
func (*Promotion) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Promotion) MarshalJSONBuf ¶
func (j *Promotion) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Promotion) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Promotion) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type RatePlan ¶
type RatePlan struct { Code string `json:"code"` Name *string `json:"name"` EffectiveDate *string `json:"effectiveDate"` ExpireDate *string `json:"expireDate"` }
func (*RatePlan) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*RatePlan) MarshalJSONBuf ¶
func (j *RatePlan) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*RatePlan) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*RatePlan) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type Resort ¶
type Resort struct { Code string `json:"code"` Name *string `json:"name"` Description *string `json:"description"` }
func (*Resort) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Resort) MarshalJSONBuf ¶
func (j *Resort) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Resort) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Resort) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
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"` }
ffjson: skip
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"` }
func (*Room) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Room) MarshalJSONBuf ¶
func (j *Room) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Room) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Room) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type RoomPrice ¶
type RoomPrice struct { Price Price `json:"price"` Breakdown []PriceBreakdown `json:"breakdown"` }
func (*RoomPrice) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*RoomPrice) MarshalJSONBuf ¶
func (j *RoomPrice) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*RoomPrice) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*RoomPrice) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type Rule ¶
type Rule struct { Id string `json:"id"` Name *string `json:"name"` Type string `json:"type"` Value float64 `json:"value"` }
func (*Rule) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Rule) MarshalJSONBuf ¶
func (j *Rule) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Rule) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Rule) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
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) MarshalJSON ¶
func (j *Supplement) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*Supplement) MarshalJSONBuf ¶
func (j *Supplement) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Supplement) UnmarshalJSON ¶
func (j *Supplement) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*Supplement) UnmarshalJSONFFLexer ¶
func (j *Supplement) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type Surcharge ¶
type Surcharge struct { ChargeType string `json:"chargeType"` Mandatory bool `json:"mandatory"` Price Price `json:"price"` Description *string `json:"description"` }
func (*Surcharge) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Surcharge) MarshalJSONBuf ¶
func (j *Surcharge) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Surcharge) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Surcharge) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson