Versions in this module Expand all Collapse all v0 v0.2.0 Feb 25, 2024 Changes in this version type API + func (api *API) CancelBooking(ctx context.Context, id string, inp *CancelBookingInput) (*CancelBookingResponse, error) + func (api *API) ChangeBooking(ctx context.Context, id string, inp *ChangeBookingInput) (*ChangeBookingResponse, error) + func (api *API) ConfirmBooking(ctx context.Context, inp *ConfirmBookingInput) (*ConfirmBookingResponse, error) + func (api *API) GetBooking(ctx context.Context, id string) (*GetBookingResponse, error) + func (api *API) ListAccommodations(ctx context.Context, inp *ListAccommodationsInput) (*ListAccommodationsResponse, error) + func (api *API) ListBoardGroups(ctx context.Context, inp *ListBoardGroupsInput) (*ListBoardGroupsResponse, error) + func (api *API) ListBoards(ctx context.Context, inp *ListBoardsInput) (*ListBoardsResponse, error) + func (api *API) ListBookings(ctx context.Context, inp *CancelBookingInput) (*CancelBookingResponse, error) + func (api *API) ListCategories(ctx context.Context, inp *ListCategoriesInput) (*ListCategoriesResponse, error) + func (api *API) ListChains(ctx context.Context, inp *ListChainsInput) (*ListChainsResponse, error) + func (api *API) ListClassifications(ctx context.Context, inp *ListClassificationsInput) (*ListClassificationsResponse, error) + func (api *API) ListCurrencies(ctx context.Context, inp *ListCurrenciesInput) (*ListCurrenciesResponse, error) + func (api *API) ListFacilities(ctx context.Context, inp *ListFacilitiesInput) (*ListFacilitiesResponse, error) + func (api *API) ListFacilityGroups(ctx context.Context, inp *ListFacilityGroupsInput) (*ListFacilityGroupsResponse, error) + func (api *API) ListFacilityTypologies(ctx context.Context, inp *ListFacilityTypologiesInput) (*ListFacilityTypologiesResponse, error) + func (api *API) ListImageTypes(ctx context.Context, inp *ListImageTypesInput) (*ListImageTypesResponse, error) + func (api *API) ListIssues(ctx context.Context, inp *ListIssuesInput) (*ListIssuesResponse, error) + func (api *API) ListLanguages(ctx context.Context, inp *ListLanguagesInput) (*ListLanguagesResponse, error) + func (api *API) ListPromotions(ctx context.Context, inp *ListPromotionsInput) (*ListPromotionsResponse, error) + func (api *API) ListRateComments(ctx context.Context, inp *ListRateCommentsInput) (*ListRateCommentsResponse, error) + func (api *API) ListRooms(ctx context.Context, inp *ListRoomsInput) (*ListRoomsResponse, error) + func (api *API) ListSegments(ctx context.Context, inp *ListSegmentsInput) (*ListSegmentsResponse, error) + func (api *API) ListTerminals(ctx context.Context, inp *ListTerminalsInput) (*ListTerminalsResponse, error) + type Accommodation struct + Code string + TypeDescription string + type BillingAddress struct + Address1 string + Address2 string + City string + CountryCode string + PostalCode string + State string + type Board struct + Code string + Description Content + MultiLingualCode string + type BoardGroup struct + Code string + Description Content + MultiLingualCode string + type Booking struct + AgComission string + CancellationReference string + ClientReference string + CreationDate Datetime + CreationUser string + Currency string + Holder Holder + Hotel BookingHotel + InvoiceCompany InvoiceCompany + ModificationPolicy ModificationPolicy + PendingAmount Amount + Reference string + Remark string + Status BookingStatus + TotalNet Amount + TotalSellingRate Amount + VATComission string type BookingClient + CancelBooking func(ctx context.Context, id string, inp *CancelBookingInput) (*CancelBookingResponse, error) + ChangeBooking func(ctx context.Context, id string, inp *ChangeBookingInput) (*ChangeBookingResponse, error) + ConfirmBooking func(ctx context.Context, inp *ConfirmBookingInput) (*ConfirmBookingResponse, error) + GetBooking func(ctx context.Context, id string) (*GetBookingResponse, error) + ListBookings func(ctx context.Context, inp *CancelBookingInput) (*CancelBookingResponse, error) + type BookingHotel struct + CancellationAmount Amount + CheckIn string + CheckOut string + ClientComments string + Currency string + Keywords []Keyword + PendingAmount Amount + Reviews []Review + Rooms []BookingRoom + Supplier *Supplier + TotalNet Amount + TotalSellingRate Amount + Upselling []UpsellingRate + type BookingRoom struct + Code string + ID int + Name string + Paxes []Pax + Rates []Rate + Status BookingStatus + SupplierReference string + type BookingStatus string + const BookingStatusCancelled + const BookingStatusConfirmed + func (s BookingStatus) String() string + type CancelBookingInput struct + Language string + Mode Mode + type CancelBookingResponse struct + Audit *AuditData + Booking *Booking + type Category struct + Code string + Description Content + Group string + SimpleCode SimpleCode + type Chain struct + Code string + Description Content + type ChangeBookingInput struct + Booking *Booking + Language string + Mode Mode + Payment *PaymentData + type ChangeBookingResponse struct + Audit *AuditData + Booking *Booking + type Classification struct + Code string + Description Content + type CommaSliceInt []int + func (s *CommaSliceInt) UnmarshalJSON(data []byte) error + type CommaSliceString []string + func (s *CommaSliceString) UnmarshalJSON(data []byte) error + type ConfirmBookingInput struct + ClientReference string + CreationUser string + Holder Holder + Language string + Payment *PaymentData + Remark string + Rooms []ConfirmBookingRoom + Tolerance Amount + Voucher *Voucher + type ConfirmBookingResponse struct + Audit *AuditData + Booking *Booking + type ConfirmBookingRoom struct + Paxes []Pax + RateKey string + type ContactData struct + Email string + PhoneNumber string type ContentClient + ListAccommodations func(ctx context.Context, inp *ListAccommodationsInput) (*ListAccommodationsResponse, error) + ListBoardGroups func(ctx context.Context, inp *ListBoardGroupsInput) (*ListBoardGroupsResponse, error) + ListBoards func(ctx context.Context, inp *ListBoardsInput) (*ListBoardsResponse, error) + ListCategories func(ctx context.Context, inp *ListCategoriesInput) (*ListCategoriesResponse, error) + ListChains func(ctx context.Context, inp *ListChainsInput) (*ListChainsResponse, error) + ListClassifications func(ctx context.Context, inp *ListClassificationsInput) (*ListClassificationsResponse, error) + ListCountries func(ctx context.Context, inp *ListCountriesInput) (*ListCountriesResp, error) + ListCurrencies func(ctx context.Context, inp *ListCurrenciesInput) (*ListCurrenciesResponse, error) + ListDestinations func(ctx context.Context, inp *ListDestinationsInput) (*ListDestinationsResponse, error) + ListFacilities func(ctx context.Context, inp *ListFacilitiesInput) (*ListFacilitiesResponse, error) + ListFacilityGroups func(ctx context.Context, inp *ListFacilityGroupsInput) (*ListFacilityGroupsResponse, error) + ListFacilityTypologies func(ctx context.Context, inp *ListFacilityTypologiesInput) (*ListFacilityTypologiesResponse, error) + ListImageTypes func(ctx context.Context, inp *ListImageTypesInput) (*ListImageTypesResponse, error) + ListIssues func(ctx context.Context, inp *ListIssuesInput) (*ListIssuesResponse, error) + ListLanguages func(ctx context.Context, inp *ListLanguagesInput) (*ListLanguagesResponse, error) + ListPromotions func(ctx context.Context, inp *ListPromotionsInput) (*ListPromotionsResponse, error) + ListRateComments func(ctx context.Context, inp *ListRateCommentsInput) (*ListRateCommentsResponse, error) + ListRooms func(ctx context.Context, inp *ListRoomsInput) (*ListRoomsResponse, error) + ListSegments func(ctx context.Context, inp *ListSegmentsInput) (*ListSegmentsResponse, error) + ListTerminals func(ctx context.Context, inp *ListTerminalsInput) (*ListTerminalsResponse, error) + type Currency struct + Code string + Description Content + Type string + type DailyRate struct + Net Amount + Offset int + Selling Amount + type Device struct + ID string + IP string + UserAgent string + type Email struct + Body string + From string + Title string + To string type Facility + Description Content + TopologyCode int + type FacilityGroup struct + Code int + Description Content + type FacilityTypology struct + Code int + HasAgeFrom bool + HasAgeTo bool + HasAmount bool + HasApplicationType bool + HasCurrency bool + HasDistance bool + HasIndicatesYesOrNo bool + HasLogic bool + HasNumber bool + HasText bool + HasTimeFrom bool + HasTimeTo bool + type GetBookingResponse struct + Audit *AuditData + Booking *Booking + type Holder struct + Name string + Surname string type Hotel + Images []HotelImage + InterestPoints []HotelInterestPoint + Issues []HotelIssue + Terminals []HotelTerminal + Wildcards []HotelWildCard + type HotelFacility struct + Code int + Distance Distance + GroupCode int + IndicateFee bool + IndicateLogic bool + Number int + Order Order + Voucher bool + type HotelImage struct + CharacteristicCode string + Order Order + Path string + RoomCode string + RoomType string + TypeCode string + VisualOrder int + type HotelInterestPoint struct + Distance Distance + FacilityCode int + FacilityGroupCode int + Name string + Order Order + type HotelIssue struct + Code string + From time.Time + IsAlternative bool + Order Order + To time.Time + Type string + type HotelTerminal struct + Code string + Distance Distance + type HotelWildCard struct + CharacteristicCode string + Description Content + RoomCode string + RoomType string + type ImageType struct + Code string + Description Content + type InvoiceCompany struct + Code string + Name string + RegistrationNumber string type Issue + Description Content + Name Content + type Language struct + Code string + Description Content + Name string + type ListAccommodationsInput struct + type ListAccommodationsResponse struct + Accommodations []Accommodation + Audit *AuditData + type ListBoardGroupsInput struct + Codes []string + type ListBoardGroupsResponse struct + Audit *AuditData + Groups []BoardGroup + type ListBoardsInput struct + type ListBoardsResponse struct + Audit *AuditData + Boards []Board + type ListBookingsInput struct + FilterClientReference string + FilterCountires CommaSliceString + FilterCreationUser string + FilterDestinations CommaSliceString + FilterEnd Datetime + FilterHotels CommaSliceInt + FilterStart Datetime + FilterType string + type ListBookingsResponse struct + Audit *AuditData + Bookings []Booking + type ListCategoriesInput struct + type ListCategoriesResponse struct + Audit *AuditData + Categories []Category + type ListChainsInput struct + type ListChainsResponse struct + Audit *AuditData + Chains []Chain + type ListClassificationsInput struct + type ListClassificationsResponse struct + Audit *AuditData + Classifications []Classification + type ListCurrenciesInput struct + type ListCurrenciesResponse struct + Audit *AuditData + Currencies []Currency + type ListFacilitiesInput struct + type ListFacilitiesResponse struct + Audit *AuditData + Facilities []Facility + type ListFacilityGroupsInput struct + type ListFacilityGroupsResponse struct + Audit *AuditData + Groups []FacilityGroup + type ListFacilityTypologiesInput struct + type ListFacilityTypologiesResponse struct + Audit *AuditData + Typologies []FacilityTypology + type ListImageTypesInput struct + type ListImageTypesResponse struct + Audit *AuditData + Types []ImageType + type ListInput struct + Codes []string + Fields []string + From int + Language string + LastUpdateTime *Datetime + To int + UseSecondaryLanguage bool + type ListIssuesInput struct + type ListIssuesResponse struct + Audit *AuditData + Issues []Issue + type ListLanguagesInput struct + type ListLanguagesResponse struct + Audit *AuditData + Languages []Language + type ListPromotionsInput struct + type ListPromotionsResponse struct + Audit *AuditData + Promotions []Promotion + type ListRateCommentsInput struct + type ListRateCommentsResponse struct + Audit *AuditData + RateComments []RateComment + type ListRoomsInput struct + Codes []string + type ListRoomsResponse struct + Audit *AuditData + Rooms []Room + type ListSegmentsInput struct + type ListSegmentsResponse struct + Audit *AuditData + Segments []Segment + type ListTerminalsInput struct + type ListTerminalsResponse struct + Audit *AuditData + Terminals []Terminal + type Mode string + const ModeCancellation + const ModeSimulation + const ModeUpdate + func (m Mode) String() string type PaxType + func (p PaxType) String() string + type PaymentCard struct + CVC string + Expiry string + Number string + Type string + type PaymentData struct + Billing *BillingAddress + Card PaymentCard + Contact ContactData + Device *Device + ThreeDS *ThreeDSData + WebPartner int type PaymentType + func (p PaymentType) String() string + type Promotion struct + Code string + Description Content + Name Content + type RateComment struct + Code string + HotelCode int + Incoming int + RateComments []RateCommentItem + type RateCommentComment struct + Description string + End Datetime + Start Datetime + type RateCommentItem struct + Codes []int + Comments []RateCommentComment + type Review struct + Count int + Rate string + Type string + type Room struct + Characteristic string + CharacteristicDescription Content + Code string + Description string + MaxAdults int + MaxChildren int + MaxPax int + MinAdults int + MinChildren int + MinPax int + Type string + TypeDescription Content + type Segment struct + Code int + Description Content + type SimpleCode int + const SimpleCode1Star + const SimpleCode2Stars + const SimpleCode3Stars + const SimpleCode4Stars + const SimpleCode5Stars + func (sc SimpleCode) Int() int + type Supplier struct + Name string + VATNumber string type Terminal + Country string + Description Content + Name Content + Type string + type ThreeDSData struct + InfoProvided ThreeDSDataInfoProvided + Option string + Version string + type ThreeDSDataInfoProvided struct + CAVV string + ECI string + ID string + type UpsellingRate struct + Brand string + Comission Amount + ComissionPercent string + ComissionVAT string + DailyRates []DailyRate + Discount string + DiscountPercent string + HotelMandatory bool + Rateup Amount + Taxes []Tax + type Voucher struct + Email Email + Language string + Logo string v0.1.0 Feb 24, 2024 Changes in this version + var ErrAllotmentExceeded = errors.New("allotment exceeded") + var ErrBookingCannotBeAmended = errors.New("this booking cannot be amended") + var ErrBookingCannotBeCanceledAfterCheckIn = errors.New("cannot cancel a booking after the check-in") + var ErrBookingCannotBeCanceledOrModifiedWhenCheckInPast = errors.New("cannot cancel/modify a booking which has a check-in date in the past") + var ErrBookingConfirmationError = errors.New("booking confirmation error") + var ErrBookingDoesNotExist = errors.New("booking does not exist") + var ErrCodeIsInvalid = errors.New("code is invalid") + var ErrConfiguration = errors.New("configuration error") + var ErrExternal = errors.New("external error") + var ErrHotelDoesNotAllowCancellation = errors.New("hotel does not allow cancellations") + var ErrInsufficientAllotment = errors.New("insufficient allotment") + var ErrInvalidData = errors.New("invalid data") + var ErrInvalidRequest = errors.New("invalid request") + var ErrMinimumStayViolated = errors.New("minimum stay violated") + var ErrNoHealthyUpstream = errors.New("no healthy upstead") + var ErrPleaseDoNotTryAgain = errors.New("please do not retry again") + var ErrPriceHasChanged = errors.New("price has changed") + var ErrPriceHasIncreased = errors.New("price has increased") + var ErrQuotaExceeded = errors.New("quota exceeded") + var ErrRateLimitExceeded = errors.New("rate limits exceeded") + var ErrReservationUnreachable = errors.New("reservation does not exist or the agency does not access") + var ErrStopSales = errors.New("stop sales") + var ErrSystem = errors.New("system error") + var ErrUndefined = errors.New("undefined error") + func IsErrorCode(err error, code ErrorCode) bool + func IsErrorRetryable(err error) bool + func ParseE163(raw string) string + type API struct + func New(apiKey, apiSecret string, opts ...Option) *API + func (api *API) GetHotelDetails(ctx context.Context, codes []int, inp *GetHotelDetailsInput) (*GetHotelDetailsResponse, error) + func (api *API) ListAvailableHotels(ctx context.Context, inp *ListAvailableHotelsInput) (*ListAvailableHotelsResponse, error) + func (api *API) ListCheckRates(ctx context.Context, inp *ListCheckRatesInput) (*ListCheckRatesResponse, error) + func (api *API) ListCountries(ctx context.Context, inp *ListCountriesInput) (*ListCountriesResp, error) + func (api *API) ListDestinations(ctx context.Context, inp *ListDestinationsInput) (*ListDestinationsResponse, error) + func (api *API) ListHotels(ctx context.Context, inp *ListHotelsInput) (*ListHotelsResponse, error) + type Address struct + Content string + Number string + Street string + type Amount decimal.Decimal + func (a *Amount) UnmarshalJSON(data []byte) error + func (a Amount) MarshalJSON() ([]byte, error) + type AuditData struct + Environments Environments + Internal string + ProcessTime ProcessTime + Release string + RequestHosts Hosts + ServerID string + Timestamp Timestamp + Token string + type AvailableHotel struct + CategoryCode string + CategoryName string + Code int + Currency string + DestinationCode string + DestinationName string + Latitude Coordinate + Longitude Coordinate + MaxRate FloatRate + MinRate FloatRate + Name string + Rooms []AvailableHotelRoom + ZoneCode int + ZoneName string + type AvailableHotelRoom struct + Code string + Name string + Rates []Rate + type BookingClient interface + ListAvailableHotels func(ctx context.Context, inp *ListAvailableHotelsInput) (*ListAvailableHotelsResponse, error) + ListCheckRates func(ctx context.Context, inp *ListCheckRatesInput) (*ListCheckRatesResponse, error) + type BreakDown struct + Discounts []Discount + type CancellationPolicy struct + Amount Amount + From TimestampTZ + type CheckRate struct + BreakDown *BreakDown + RateComments string + Taxes ... + type CheckRateHotel struct + CategoryCode string + CategoryName string + CheckIn string + CheckOut string + Code int + Currency string + DestinationCode string + DestinationName string + Latitude Coordinate + Longitude Coordinate + MaxRate *FloatRate + MinRate *FloatRate + ModificationPolicies ModificationPolicy + Name string + PaymentDataRequired bool + Rooms []CheckRateRoom + TotalNet Amount + ZoneCode int + ZoneName string + type CheckRateRoom struct + Code string + Name string + Rates []CheckRate + type Client interface + type Content struct + Content string + LanguageCode string + type ContentClient interface + GetHotelDetails func(ctx context.Context, codes []int, inp *GetHotelDetailsInput) (*GetHotelDetailsResponse, error) + ListHotels func(ctx context.Context, inp *ListHotelsInput) (*ListHotelsResponse, error) + type Coordinate float64 + func (c *Coordinate) UnmarshalJSON(data []byte) error + type Coordinates struct + Lat float64 + Long float64 + type Country struct + Code string + IsoCode string + States []State + type Datetime time.Time + func (d Datetime) IsZero() bool + func (d Datetime) String() string + func (t *Datetime) UnmarshalJSON(data []byte) error + func (t Datetime) MarshalJSON() ([]byte, error) + type Destination struct + Code string + CountryCode string + GroupZones []GroupZone + Zones []Zone + type Discount struct + Amount Amount + Code string + Name string + type Distance float64 + func (d *Distance) UnmarshalJSON(data []byte) error + type Environments []string + func (rh *Environments) UnmarshalJSON(data []byte) error + type Error struct + Audit *AuditData + Code ErrorCode + IsRetryable bool + Message string + StatusCode int + func (e *Error) Error() string + type ErrorCode string + const ErrorCodeConfiguration + const ErrorCodeInvalidData + const ErrorCodeInvalidRequest + const ErrorCodeProduct + const ErrorCodeSystem + type Facility struct + Code int + Distance Distance + GroupCode int + IndicateFee bool + IndicateLogic bool + Number int + Order Order + Voucher bool + type Filter struct + MaxCategory int + MaxHotels int + MaxRate FloatRate + MaxRatesPerRoom int + MaxRooms int + MinCategory int + MinRate FloatRate + func (filter *Filter) Validate() error + type FilterBoards struct + Boards []string + Included bool + type FilterHotel struct + HotelCodes []int + func (f *FilterHotel) Validate() error + type FilterRooms struct + Codes []string + Included bool + type FloatRate float64 + func (r *FloatRate) UnmarshalJSON(data []byte) error + func (r FloatRate) Float() float64 + func (r FloatRate) MarshalJSON() ([]byte, error) + type Geolocation struct + Latitude float64 + Longitude float64 + Radius Radius + Unit Unit + func (geo *Geolocation) Validate() error + type GetHotelDetailsInput struct + Language string + UseSecondaryLanguage *bool + func (inp GetHotelDetailsInput) Encode(v url.Values) error + type GetHotelDetailsResponse struct + Audit *AuditData + Hotels []Hotel + type GroupZone struct + Code string + Name Content + type Hosts []string + func (rh *Hosts) UnmarshalJSON(data []byte) error + type Hotel struct + AccommodationType *HotelAccomodation + AccomodationTypeCode string + Address Address + BoardCodes []string + CategoryCode string + CategoryGroupCode string + ChainCode string + City Content + Code int + Coordinates Coordinates + CountryCode string + DestinationCode string + Email string + Facilities []Facility + LastUpdate Datetime + License string + Name Content + Phones []Phone + PostalCode string + Ranking int + Rooms []HotelRoom + S2C string + SegmentCodes []int + StateCode string + URL string + ZoneCode int + type HotelAccomodation struct + Code string + Description string + type HotelRoom struct + CharacteristicCode string + Code string + Facilities []HotelRoomFacility + IsParentRoom bool + MaxAdults int + MaxChildren int + MaxPax int + MinAdults int + MinChildren int + MinPax int + Type string + type HotelRoomFacility struct + Code int + GroupCode int + IndicateLogic bool + Number int + Voucher bool + type HotelRoomStay struct + Description string + Facilities []HotelRoomFacility + Order Order + Type string + type Image struct + CharacteristicCode string + Order Order + Path string + RoomCode string + RoomType string + TypeCode string + VisualOrder int + type IncludeHotels string + const IncludeHotelsNotOnSale + const IncludeHotelsWebOnly + func (ih IncludeHotels) String() string + type InterestPoint struct + Distance Distance + FacilityCode int + FacilityGroupCode int + Name string + Order Order + type Issue struct + Code string + From time.Time + IsAlternative bool + Order Order + To time.Time + Type string + type Keyword struct + AllIncluded bool + Keywords []int + type ListAvailableHotelsInput struct + Accomodations []string + Boards *FilterBoards + Filter *Filter + Geolocation *Geolocation + Hotels FilterHotel + Keywords []Keyword + Language string + Occupancies []Occupancy + Platform int + Rooms *FilterRooms + SourceMarket string + Stay Stay + WithDailyRate bool + func (inp *ListAvailableHotelsInput) Validate() error + type ListAvailableHotelsResponse struct + Audit *AuditData + Hotels struct{ ... } + type ListCheckRatesInput struct + ExpandCXL bool + Language string + Rooms []ListCheckRatesRoom + Upselling bool + type ListCheckRatesResponse struct + Audit *AuditData + Hotel *CheckRateHotel + type ListCheckRatesRoom struct + Paxes []Pax + RateKey string + type ListCountriesInput struct + Codes []string + Fields []string + From int + Language string + LastUpdateTime Datetime + To int + UseSecondaryLanguage bool + func (inp *ListCountriesInput) Encode(v url.Values) error + type ListCountriesResp struct + Audit *AuditData + Countries []Country + type ListDestinationsInput struct + func (inp *ListDestinationsInput) Encode(v url.Values) error + type ListDestinationsResponse struct + Audit *AuditData + Destinations []Destination + type ListHotelsInput struct + Codes []int + CountryCode string + DestinationCode string + Fields []string + From int + IncludeHotels IncludeHotels + Language string + LastUpdateTime Datetime + OnlyPMSRoomCode *bool + To int + UseSecondaryLanguage *bool + func (inp *ListHotelsInput) Validate() error + func (inp ListHotelsInput) Encode(v url.Values) error + type ListHotelsResponse struct + Audit *AuditData + From int + Hotels []Hotel + To int + Total int + type ModificationPolicy struct + IsCancellationAllowed bool + IsModificationAllowed bool + type Occupancy struct + Adults int + Children int + Paxes []Pax + Rooms int + type Offer struct + Amount Amount + Code string + Name string + type Option func(*Options) + func WithHeaders(set http.Header) Option + func WithRateLimit(limit int, burst int, per time.Duration) Option + func WithRetry(maxAttempts int, minWaitTime, maxWaitTime time.Duration, f clientx.RetryFunc, ...) Option + type Options struct + DefaultHeaders http.Header + Limit *clientx.OptionRateLimit + Retry *clientx.OptionRetry + type Order int + func (o *Order) UnmarshalJSON(data []byte) error + type Pax struct + Age int + Name string + RoomID int + Surname string + Type PaxType + type PaxType string + const PaxTypeAdult + const PaxTypeChildren + type PaymentType string + const PaymentTypeAtHotel + const PaymentTypeAtWeb + type Phone struct + Number string + Type PhoneType + type PhoneType string + const PhoneTypeBooking + const PhoneTypeFax + const PhoneTypeHotel + const PhoneTypeManagement + type ProcessTime time.Duration + func (t *ProcessTime) UnmarshalJSON(data []byte) error + type Radius int + func (r Radius) Int() int + func (r Radius) MarshalJSON() ([]byte, error) + type Rate struct + Adults int + Allotment int + BoardCode string + BoardName string + CancellationPolicies []CancellationPolicy + Children int + Net Amount + Offers []Offer + Packaging bool + PaymentType PaymentType + RateClass string + RateCommentdsID string + RateKey string + RateType string + Rooms int + Selling Amount + type ShiftRate struct + Allotment int + CheckIn Datetime + CheckOut Datetime + Net Amount + RateClass string + RateKey string + RateType string + Selling Amount + type State struct + Code string + Description string + Name string + ZoneCode int + type Stay struct + AllowOnlyShift *bool + CheckIn string + CheckOut string + ShiftDays int + func (stay *Stay) Validate() error + type Tax struct + Amount Amount + ClientAmount Amount + ClientCurrency string + Currency string + Included bool + type Terminal struct + Code string + Distance Distance + type Timestamp time.Time + func (t *Timestamp) UnmarshalJSON(data []byte) error + func (t Timestamp) MarshalJSON() ([]byte, error) + type TimestampTZ time.Time + func (t *TimestampTZ) UnmarshalJSON(data []byte) error + func (t TimestampTZ) MarshalJSON() ([]byte, error) + type Unit string + const UnitKilometers + const UnitMiles + func (u Unit) String() string + type ValidationError struct + Allow []string + FieldName string + Max int + Min int + Required bool + func (e *ValidationError) Error() string + type WildCard struct + CharacteristicCode string + Description Content + RoomCode string + RoomType string + type Zone struct + Code int + Description Content + Name string