easyjsonmapping

package
v0.0.0-...-cc58ba3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

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"`
	Shared      *bool   `json:"shared"`
}

func (Bed) MarshalEasyJSON

func (v Bed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Bed) MarshalJSON

func (v Bed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Bed) UnmarshalEasyJSON

func (v *Bed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Bed) UnmarshalJSON

func (v *Bed) UnmarshalJSON(data []byte) error

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 Candidate

type Candidate struct{}

func (Candidate) HandlerFunc

func (Candidate) HandlerFunc(options []*presenter.Option) (http.HandlerFunc, error)

func (Candidate) UnmarshalOptions

func (Candidate) UnmarshalOptions(b []byte) ([]*presenter.Option, error)

type Exchange

type Exchange struct {
	Currency string  `json:"currency"`
	Rate     float64 `json:"rate"`
}

func (Exchange) MarshalEasyJSON

func (v Exchange) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Exchange) MarshalJSON

func (v Exchange) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Exchange) UnmarshalEasyJSON

func (v *Exchange) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Exchange) UnmarshalJSON

func (v *Exchange) UnmarshalJSON(data []byte) error

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

func (v Markup) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Markup) MarshalJSON

func (v Markup) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Markup) UnmarshalEasyJSON

func (v *Markup) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Markup) UnmarshalJSON

func (v *Markup) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Occupancy

type Occupancy struct {
	Id    int   `json:"id"`
	Paxes []Pax `json:"paxes"`
}

func (Occupancy) MarshalEasyJSON

func (v Occupancy) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Occupancy) MarshalJSON

func (v Occupancy) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Occupancy) UnmarshalEasyJSON

func (v *Occupancy) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Occupancy) UnmarshalJSON

func (v *Occupancy) UnmarshalJSON(data []byte) error

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

func (v Option) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Option) MarshalJSON

func (v Option) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Option) UnmarshalEasyJSON

func (v *Option) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Option) UnmarshalJSON

func (v *Option) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Pax

type Pax struct {
	Age int `json:"age"`
}

func (Pax) MarshalEasyJSON

func (v Pax) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Pax) MarshalJSON

func (v Pax) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Pax) UnmarshalEasyJSON

func (v *Pax) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Pax) UnmarshalJSON

func (v *Pax) UnmarshalJSON(data []byte) error

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

func (v Price) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Price) MarshalJSON

func (v Price) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Price) UnmarshalEasyJSON

func (v *Price) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Price) UnmarshalJSON

func (v *Price) UnmarshalJSON(data []byte) error

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

func (v Promotion) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Promotion) MarshalJSON

func (v Promotion) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Promotion) UnmarshalEasyJSON

func (v *Promotion) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Promotion) UnmarshalJSON

func (v *Promotion) UnmarshalJSON(data []byte) error

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

func (v RatePlan) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RatePlan) MarshalJSON

func (v RatePlan) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RatePlan) UnmarshalEasyJSON

func (v *RatePlan) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RatePlan) UnmarshalJSON

func (v *RatePlan) UnmarshalJSON(data []byte) error

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

func (v Resort) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Resort) MarshalJSON

func (v Resort) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Resort) UnmarshalEasyJSON

func (v *Resort) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Resort) UnmarshalJSON

func (v *Resort) UnmarshalJSON(data []byte) error

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 NewResponse(options []*presenter.Option) Response

func (Response) MarshalEasyJSON

func (v Response) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Response) MarshalJSON

func (v Response) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Response) UnmarshalEasyJSON

func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Response) UnmarshalJSON

func (v *Response) UnmarshalJSON(data []byte) error

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

func (v Room) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Room) MarshalJSON

func (v Room) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Room) UnmarshalEasyJSON

func (v *Room) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Room) UnmarshalJSON

func (v *Room) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RoomPrice

type RoomPrice struct {
	Price     Price            `json:"price"`
	Breakdown []PriceBreakdown `json:"breakdown"`
}

func (RoomPrice) MarshalEasyJSON

func (v RoomPrice) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RoomPrice) MarshalJSON

func (v RoomPrice) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RoomPrice) UnmarshalEasyJSON

func (v *RoomPrice) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RoomPrice) UnmarshalJSON

func (v *RoomPrice) UnmarshalJSON(data []byte) error

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

func (v Rule) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Rule) MarshalJSON

func (v Rule) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Rule) UnmarshalEasyJSON

func (v *Rule) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Rule) UnmarshalJSON

func (v *Rule) UnmarshalJSON(data []byte) error

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

func (v Surcharge) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Surcharge) MarshalJSON

func (v Surcharge) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Surcharge) UnmarshalEasyJSON

func (v *Surcharge) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Surcharge) UnmarshalJSON

func (v *Surcharge) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL