Documentation
¶
Overview ¶
Package hotellist provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.
Index ¶
- type Error400
- type Error404
- type Error500
- type GetShoppingHotelsByCityParams
- type GetShoppingHotelsByCityParamsAmenities
- type GetShoppingHotelsByCityParamsHotelSource
- type GetShoppingHotelsByCityParamsRadiusUnit
- type GetShoppingHotelsByCityParamsRatings
- type GetShoppingHotelsByHotelsParams
- type GetShoppingHotelsGeocodesParams
- type GetShoppingHotelsGeocodesParamsAmenities
- type GetShoppingHotelsGeocodesParamsHotelSource
- type GetShoppingHotelsGeocodesParamsRadiusUnit
- type GetShoppingHotelsGeocodesParamsRatings
- type Hotel
- type HotelDistanceUnit
- type HotelSearchResponse
- type Meta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error400 ¶
type Error400 struct {
Errors *[]struct {
// Code A machine-readable error code from the Amadeus Canned Messages table, that will enable the API Consumers code to handle this type of error
Code *int `json:"code,omitempty"`
// Detail An easy-to-read explanation specific to this occurrence of the problem. It should give the API consumer an idea of what went wrong and how to recover from it. Like the title, this field’s value can be localized.
Detail *string `json:"detail,omitempty"`
// Documentation A link to a web page or file with further documentation to help the API consumer resolve this error
Documentation *string `json:"documentation,omitempty"`
Source *struct {
// Example A sample input to guide the user when resolving this issue
Example *string `json:"example,omitempty"`
// Parameter The key of the URI path or query parameter that caused the error
Parameter *string `json:"parameter,omitempty"`
// Pointer A JSON Pointer [RFC6901] to the associated entity in the request body that caused this error
Pointer *string `json:"pointer,omitempty"`
} `json:"source,omitempty"`
// Status The [HTTP status code](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) of this response. This is present only in terminal errors which cause an unsuccessful response. In the case of multiple errors, they must all have the same status.
Status *int `json:"status,omitempty"`
// Title An error title from the Canned Messages table with a 1:1 correspondence to the error code. This may be localized
Title *string `json:"title,omitempty"`
} `json:"errors,omitempty"`
}
Error400 A set of errors
type Error404 ¶
type Error404 struct {
Errors *[]struct {
// Code A machine-readable error code from the Amadeus Canned Messages table, that will enable the API Consumers code to handle this type of error
Code *int `json:"code,omitempty"`
// Detail An easy-to-read explanation specific to this occurrence of the problem. It should give the API consumer an idea of what went wrong and how to recover from it. Like the title, this field’s value can be localized.
Detail *string `json:"detail,omitempty"`
// Documentation A link to a web page or file with further documentation to help the API consumer resolve this error
Documentation *string `json:"documentation,omitempty"`
Source *struct {
// Example A sample input to guide the user when resolving this issue
Example *string `json:"example,omitempty"`
// Parameter The key of the URI path or query parameter that caused the error
Parameter *string `json:"parameter,omitempty"`
// Pointer A JSON Pointer [RFC6901] to the associated entity in the request body that caused this error
Pointer *string `json:"pointer,omitempty"`
} `json:"source,omitempty"`
// Status The [HTTP status code](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) of this response. This is present only in terminal errors which cause an unsuccessful response. In the case of multiple errors, they must all have the same status.
Status *int `json:"status,omitempty"`
// Title An error title from the Canned Messages table with a 1:1 correspondence to the error code. This may be localized
Title *string `json:"title,omitempty"`
} `json:"errors,omitempty"`
}
Error404 A set of errors
type Error500 ¶
type Error500 struct {
Errors *[]struct {
// Code A machine-readable error code from the Amadeus Canned Messages table, that will enable the API Consumers code to handle this type of error
Code *int `json:"code,omitempty"`
// Detail An easy-to-read explanation specific to this occurrence of the problem. It should give the API consumer an idea of what went wrong and how to recover from it. Like the title, this field’s value can be localized.
Detail *string `json:"detail,omitempty"`
// Documentation A link to a web page or file with further documentation to help the API consumer resolve this error
Documentation *string `json:"documentation,omitempty"`
Source *struct {
// Example A sample input to guide the user when resolving this issue
Example *string `json:"example,omitempty"`
// Parameter The key of the URI path or query parameter that caused the error
Parameter *string `json:"parameter,omitempty"`
// Pointer A JSON Pointer [RFC6901] to the associated entity in the request body that caused this error
Pointer *string `json:"pointer,omitempty"`
} `json:"source,omitempty"`
// Status The [HTTP status code](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) of this response. This is present only in terminal errors which cause an unsuccessful response. In the case of multiple errors, they must all have the same status.
Status *int `json:"status,omitempty"`
// Title An error title from the Canned Messages table with a 1:1 correspondence to the error code. This may be localized
Title *string `json:"title,omitempty"`
} `json:"errors,omitempty"`
}
Error500 A set of errors
type GetShoppingHotelsByCityParams ¶
type GetShoppingHotelsByCityParams struct {
// CityCode Destination city code or airport code. In case of city code , the search will be done around the city center. Available codes can be found in [IATA table codes](http://www.iata.org/publications/Pages/code-search.aspx) (3 chars IATA Code).
CityCode string `form:"cityCode" json:"cityCode"`
// Radius Maximum distance from the geographical coordinates express in defined units. The default unit is metric kilometer.
Radius *int `form:"radius,omitempty" json:"radius,omitempty"`
// RadiusUnit Unit of measurement used to express the radius. It can be either metric kilometer or imperial mile.
RadiusUnit *GetShoppingHotelsByCityParamsRadiusUnit `form:"radiusUnit,omitempty" json:"radiusUnit,omitempty"`
// ChainCodes Array of hotel chain codes. Each code is a string consisted of 2 capital alphabetic characters.
ChainCodes *[]string `form:"chainCodes,omitempty" json:"chainCodes,omitempty"`
// Amenities List of amenities.
Amenities *[]GetShoppingHotelsByCityParamsAmenities `form:"amenities,omitempty" json:"amenities,omitempty"`
// Ratings Hotel stars. Up to four values can be requested at the same time in a comma separated list.
Ratings *[]GetShoppingHotelsByCityParamsRatings `form:"ratings,omitempty" json:"ratings,omitempty"`
// HotelSource Hotel source with values BEDBANK for aggregators, DIRECTCHAIN for GDS/Distribution and ALL for both.
HotelSource *GetShoppingHotelsByCityParamsHotelSource `form:"hotelSource,omitempty" json:"hotelSource,omitempty"`
}
GetShoppingHotelsByCityParams defines parameters for GetShoppingHotelsByCity.
type GetShoppingHotelsByCityParamsAmenities ¶
type GetShoppingHotelsByCityParamsAmenities string
GetShoppingHotelsByCityParamsAmenities defines parameters for GetShoppingHotelsByCity.
const ( GetShoppingHotelsByCityParamsAmenitiesAIRCONDITIONING GetShoppingHotelsByCityParamsAmenities = "AIR_CONDITIONING" GetShoppingHotelsByCityParamsAmenitiesAIRPORTSHUTTLE GetShoppingHotelsByCityParamsAmenities = "AIRPORT_SHUTTLE" GetShoppingHotelsByCityParamsAmenitiesANIMALWATCHING GetShoppingHotelsByCityParamsAmenities = "ANIMAL_WATCHING" GetShoppingHotelsByCityParamsAmenitiesBABYSITTING GetShoppingHotelsByCityParamsAmenities = "BABY-SITTING" GetShoppingHotelsByCityParamsAmenitiesBAROrLOUNGE GetShoppingHotelsByCityParamsAmenities = "BAR or LOUNGE" GetShoppingHotelsByCityParamsAmenitiesBEACH GetShoppingHotelsByCityParamsAmenities = "BEACH" GetShoppingHotelsByCityParamsAmenitiesBUSINESSCENTER GetShoppingHotelsByCityParamsAmenities = "BUSINESS_CENTER" GetShoppingHotelsByCityParamsAmenitiesCASINO GetShoppingHotelsByCityParamsAmenities = "CASINO" GetShoppingHotelsByCityParamsAmenitiesDISABLEDFACILITIES GetShoppingHotelsByCityParamsAmenities = "DISABLED_FACILITIES" GetShoppingHotelsByCityParamsAmenitiesFITNESSCENTER GetShoppingHotelsByCityParamsAmenities = "FITNESS_CENTER" GetShoppingHotelsByCityParamsAmenitiesGOLF GetShoppingHotelsByCityParamsAmenities = "GOLF" GetShoppingHotelsByCityParamsAmenitiesGUARDEDPARKG GetShoppingHotelsByCityParamsAmenities = "GUARDED_PARKG" GetShoppingHotelsByCityParamsAmenitiesJACUZZI GetShoppingHotelsByCityParamsAmenities = "JACUZZI" GetShoppingHotelsByCityParamsAmenitiesKIDSWELCOME GetShoppingHotelsByCityParamsAmenities = "KIDS_WELCOME" GetShoppingHotelsByCityParamsAmenitiesKITCHEN GetShoppingHotelsByCityParamsAmenities = "KITCHEN" GetShoppingHotelsByCityParamsAmenitiesMASSAGE GetShoppingHotelsByCityParamsAmenities = "MASSAGE" GetShoppingHotelsByCityParamsAmenitiesMEETINGROOMS GetShoppingHotelsByCityParamsAmenities = "MEETING_ROOMS" GetShoppingHotelsByCityParamsAmenitiesMINIBAR GetShoppingHotelsByCityParamsAmenities = "MINIBAR" GetShoppingHotelsByCityParamsAmenitiesNOKIDALLOWED GetShoppingHotelsByCityParamsAmenities = "NO_KID_ALLOWED" GetShoppingHotelsByCityParamsAmenitiesNOPORNFILMS GetShoppingHotelsByCityParamsAmenities = "NO_PORN_FILMS" GetShoppingHotelsByCityParamsAmenitiesPARKING GetShoppingHotelsByCityParamsAmenities = "PARKING" GetShoppingHotelsByCityParamsAmenitiesPETSALLOWED GetShoppingHotelsByCityParamsAmenities = "PETS_ALLOWED" GetShoppingHotelsByCityParamsAmenitiesRESTAURANT GetShoppingHotelsByCityParamsAmenities = "RESTAURANT" GetShoppingHotelsByCityParamsAmenitiesROOMSERVICE GetShoppingHotelsByCityParamsAmenities = "ROOM_SERVICE" GetShoppingHotelsByCityParamsAmenitiesSAUNA GetShoppingHotelsByCityParamsAmenities = "SAUNA" GetShoppingHotelsByCityParamsAmenitiesSERVSPECMENU GetShoppingHotelsByCityParamsAmenities = "SERV_SPEC_MENU" GetShoppingHotelsByCityParamsAmenitiesSOLARIUM GetShoppingHotelsByCityParamsAmenities = "SOLARIUM" GetShoppingHotelsByCityParamsAmenitiesSPA GetShoppingHotelsByCityParamsAmenities = "SPA" GetShoppingHotelsByCityParamsAmenitiesSWIMMINGPOOL GetShoppingHotelsByCityParamsAmenities = "SWIMMING_POOL" GetShoppingHotelsByCityParamsAmenitiesTELEVISION GetShoppingHotelsByCityParamsAmenities = "TELEVISION" GetShoppingHotelsByCityParamsAmenitiesTENNIS GetShoppingHotelsByCityParamsAmenities = "TENNIS" GetShoppingHotelsByCityParamsAmenitiesVALETPARKING GetShoppingHotelsByCityParamsAmenities = "VALET_PARKING" GetShoppingHotelsByCityParamsAmenitiesWIFI GetShoppingHotelsByCityParamsAmenities = "WIFI" GetShoppingHotelsByCityParamsAmenitiesWIFIINROOM GetShoppingHotelsByCityParamsAmenities = "WI-FI_IN_ROOM" )
Defines values for GetShoppingHotelsByCityParamsAmenities.
func (GetShoppingHotelsByCityParamsAmenities) Valid ¶
func (e GetShoppingHotelsByCityParamsAmenities) Valid() bool
Valid indicates whether the value is a known member of the GetShoppingHotelsByCityParamsAmenities enum.
type GetShoppingHotelsByCityParamsHotelSource ¶
type GetShoppingHotelsByCityParamsHotelSource string
GetShoppingHotelsByCityParamsHotelSource defines parameters for GetShoppingHotelsByCity.
const ( GetShoppingHotelsByCityParamsHotelSourceALL GetShoppingHotelsByCityParamsHotelSource = "ALL" GetShoppingHotelsByCityParamsHotelSourceBEDBANK GetShoppingHotelsByCityParamsHotelSource = "BEDBANK" GetShoppingHotelsByCityParamsHotelSourceDIRECTCHAIN GetShoppingHotelsByCityParamsHotelSource = "DIRECTCHAIN" )
Defines values for GetShoppingHotelsByCityParamsHotelSource.
func (GetShoppingHotelsByCityParamsHotelSource) Valid ¶
func (e GetShoppingHotelsByCityParamsHotelSource) Valid() bool
Valid indicates whether the value is a known member of the GetShoppingHotelsByCityParamsHotelSource enum.
type GetShoppingHotelsByCityParamsRadiusUnit ¶
type GetShoppingHotelsByCityParamsRadiusUnit string
GetShoppingHotelsByCityParamsRadiusUnit defines parameters for GetShoppingHotelsByCity.
const ( GetShoppingHotelsByCityParamsRadiusUnitKM GetShoppingHotelsByCityParamsRadiusUnit = "KM" GetShoppingHotelsByCityParamsRadiusUnitMILE GetShoppingHotelsByCityParamsRadiusUnit = "MILE" )
Defines values for GetShoppingHotelsByCityParamsRadiusUnit.
func (GetShoppingHotelsByCityParamsRadiusUnit) Valid ¶
func (e GetShoppingHotelsByCityParamsRadiusUnit) Valid() bool
Valid indicates whether the value is a known member of the GetShoppingHotelsByCityParamsRadiusUnit enum.
type GetShoppingHotelsByCityParamsRatings ¶
type GetShoppingHotelsByCityParamsRatings string
GetShoppingHotelsByCityParamsRatings defines parameters for GetShoppingHotelsByCity.
const ( GetShoppingHotelsByCityParamsRatingsN1 GetShoppingHotelsByCityParamsRatings = "1" GetShoppingHotelsByCityParamsRatingsN2 GetShoppingHotelsByCityParamsRatings = "2" GetShoppingHotelsByCityParamsRatingsN3 GetShoppingHotelsByCityParamsRatings = "3" GetShoppingHotelsByCityParamsRatingsN4 GetShoppingHotelsByCityParamsRatings = "4" GetShoppingHotelsByCityParamsRatingsN5 GetShoppingHotelsByCityParamsRatings = "5" )
Defines values for GetShoppingHotelsByCityParamsRatings.
func (GetShoppingHotelsByCityParamsRatings) Valid ¶
func (e GetShoppingHotelsByCityParamsRatings) Valid() bool
Valid indicates whether the value is a known member of the GetShoppingHotelsByCityParamsRatings enum.
type GetShoppingHotelsByHotelsParams ¶
type GetShoppingHotelsByHotelsParams struct {
// HotelIds Amadeus Property Codes (8 chars)
HotelIds []string `form:"hotelIds" json:"hotelIds"`
}
GetShoppingHotelsByHotelsParams defines parameters for GetShoppingHotelsByHotels.
type GetShoppingHotelsGeocodesParams ¶
type GetShoppingHotelsGeocodesParams struct {
// Latitude The latitude of the searched geographical point expressed in geometric degrees.
Latitude float32 `form:"latitude" json:"latitude"`
// Longitude The longitude of the searched geographical point expressed in geometric degrees.
Longitude float32 `form:"longitude" json:"longitude"`
// Radius Maximum distance from the geographical coordinates expressed in defined units. The default unit is metric kilometer.
Radius *int `form:"radius,omitempty" json:"radius,omitempty"`
// RadiusUnit Unit of measurement used to express the radius. It can be either metric kilometer or imperial mile.
RadiusUnit *GetShoppingHotelsGeocodesParamsRadiusUnit `form:"radiusUnit,omitempty" json:"radiusUnit,omitempty"`
// ChainCodes Array of hotel chain codes. Each code is a string consisted of 2 capital alphabetic characters.
ChainCodes *[]string `form:"chainCodes,omitempty" json:"chainCodes,omitempty"`
// Amenities List of amenities.
Amenities *[]GetShoppingHotelsGeocodesParamsAmenities `form:"amenities,omitempty" json:"amenities,omitempty"`
// Ratings Hotel stars. Up to four values can be requested at the same time in a comma separated list.
Ratings *[]GetShoppingHotelsGeocodesParamsRatings `form:"ratings,omitempty" json:"ratings,omitempty"`
// HotelSource Hotel source with values BEDBANK for aggregators, DIRECTCHAIN for GDS/Distribution and ALL for both.
HotelSource *GetShoppingHotelsGeocodesParamsHotelSource `form:"hotelSource,omitempty" json:"hotelSource,omitempty"`
}
GetShoppingHotelsGeocodesParams defines parameters for GetShoppingHotelsGeocodes.
type GetShoppingHotelsGeocodesParamsAmenities ¶
type GetShoppingHotelsGeocodesParamsAmenities string
GetShoppingHotelsGeocodesParamsAmenities defines parameters for GetShoppingHotelsGeocodes.
const ( GetShoppingHotelsGeocodesParamsAmenitiesAIRCONDITIONING GetShoppingHotelsGeocodesParamsAmenities = "AIR_CONDITIONING" GetShoppingHotelsGeocodesParamsAmenitiesAIRPORTSHUTTLE GetShoppingHotelsGeocodesParamsAmenities = "AIRPORT_SHUTTLE" GetShoppingHotelsGeocodesParamsAmenitiesANIMALWATCHING GetShoppingHotelsGeocodesParamsAmenities = "ANIMAL_WATCHING" GetShoppingHotelsGeocodesParamsAmenitiesBABYSITTING GetShoppingHotelsGeocodesParamsAmenities = "BABY-SITTING" GetShoppingHotelsGeocodesParamsAmenitiesBAROrLOUNGE GetShoppingHotelsGeocodesParamsAmenities = "BAR or LOUNGE" GetShoppingHotelsGeocodesParamsAmenitiesBEACH GetShoppingHotelsGeocodesParamsAmenities = "BEACH" GetShoppingHotelsGeocodesParamsAmenitiesBUSINESSCENTER GetShoppingHotelsGeocodesParamsAmenities = "BUSINESS_CENTER" GetShoppingHotelsGeocodesParamsAmenitiesCASINO GetShoppingHotelsGeocodesParamsAmenities = "CASINO" GetShoppingHotelsGeocodesParamsAmenitiesDISABLEDFACILITIES GetShoppingHotelsGeocodesParamsAmenities = "DISABLED_FACILITIES" GetShoppingHotelsGeocodesParamsAmenitiesFITNESSCENTER GetShoppingHotelsGeocodesParamsAmenities = "FITNESS_CENTER" GetShoppingHotelsGeocodesParamsAmenitiesGOLF GetShoppingHotelsGeocodesParamsAmenities = "GOLF" GetShoppingHotelsGeocodesParamsAmenitiesGUARDEDPARKG GetShoppingHotelsGeocodesParamsAmenities = "GUARDED_PARKG" GetShoppingHotelsGeocodesParamsAmenitiesJACUZZI GetShoppingHotelsGeocodesParamsAmenities = "JACUZZI" GetShoppingHotelsGeocodesParamsAmenitiesKIDSWELCOME GetShoppingHotelsGeocodesParamsAmenities = "KIDS_WELCOME" GetShoppingHotelsGeocodesParamsAmenitiesKITCHEN GetShoppingHotelsGeocodesParamsAmenities = "KITCHEN" GetShoppingHotelsGeocodesParamsAmenitiesMASSAGE GetShoppingHotelsGeocodesParamsAmenities = "MASSAGE" GetShoppingHotelsGeocodesParamsAmenitiesMEETINGROOMS GetShoppingHotelsGeocodesParamsAmenities = "MEETING_ROOMS" GetShoppingHotelsGeocodesParamsAmenitiesMINIBAR GetShoppingHotelsGeocodesParamsAmenities = "MINIBAR" GetShoppingHotelsGeocodesParamsAmenitiesNOKIDALLOWED GetShoppingHotelsGeocodesParamsAmenities = "NO_KID_ALLOWED" GetShoppingHotelsGeocodesParamsAmenitiesNOPORNFILMS GetShoppingHotelsGeocodesParamsAmenities = "NO_PORN_FILMS" GetShoppingHotelsGeocodesParamsAmenitiesPARKING GetShoppingHotelsGeocodesParamsAmenities = "PARKING" GetShoppingHotelsGeocodesParamsAmenitiesPETSALLOWED GetShoppingHotelsGeocodesParamsAmenities = "PETS_ALLOWED" GetShoppingHotelsGeocodesParamsAmenitiesRESTAURANT GetShoppingHotelsGeocodesParamsAmenities = "RESTAURANT" GetShoppingHotelsGeocodesParamsAmenitiesROOMSERVICE GetShoppingHotelsGeocodesParamsAmenities = "ROOM_SERVICE" GetShoppingHotelsGeocodesParamsAmenitiesSAUNA GetShoppingHotelsGeocodesParamsAmenities = "SAUNA" GetShoppingHotelsGeocodesParamsAmenitiesSERVSPECMENU GetShoppingHotelsGeocodesParamsAmenities = "SERV_SPEC_MENU" GetShoppingHotelsGeocodesParamsAmenitiesSOLARIUM GetShoppingHotelsGeocodesParamsAmenities = "SOLARIUM" GetShoppingHotelsGeocodesParamsAmenitiesSPA GetShoppingHotelsGeocodesParamsAmenities = "SPA" GetShoppingHotelsGeocodesParamsAmenitiesSWIMMINGPOOL GetShoppingHotelsGeocodesParamsAmenities = "SWIMMING_POOL" GetShoppingHotelsGeocodesParamsAmenitiesTELEVISION GetShoppingHotelsGeocodesParamsAmenities = "TELEVISION" GetShoppingHotelsGeocodesParamsAmenitiesTENNIS GetShoppingHotelsGeocodesParamsAmenities = "TENNIS" GetShoppingHotelsGeocodesParamsAmenitiesVALETPARKING GetShoppingHotelsGeocodesParamsAmenities = "VALET_PARKING" GetShoppingHotelsGeocodesParamsAmenitiesWIFI GetShoppingHotelsGeocodesParamsAmenities = "WIFI" GetShoppingHotelsGeocodesParamsAmenitiesWIFIINROOM GetShoppingHotelsGeocodesParamsAmenities = "WI-FI_IN_ROOM" )
Defines values for GetShoppingHotelsGeocodesParamsAmenities.
func (GetShoppingHotelsGeocodesParamsAmenities) Valid ¶
func (e GetShoppingHotelsGeocodesParamsAmenities) Valid() bool
Valid indicates whether the value is a known member of the GetShoppingHotelsGeocodesParamsAmenities enum.
type GetShoppingHotelsGeocodesParamsHotelSource ¶
type GetShoppingHotelsGeocodesParamsHotelSource string
GetShoppingHotelsGeocodesParamsHotelSource defines parameters for GetShoppingHotelsGeocodes.
const ( GetShoppingHotelsGeocodesParamsHotelSourceALL GetShoppingHotelsGeocodesParamsHotelSource = "ALL" GetShoppingHotelsGeocodesParamsHotelSourceBEDBANK GetShoppingHotelsGeocodesParamsHotelSource = "BEDBANK" GetShoppingHotelsGeocodesParamsHotelSourceDIRECTCHAIN GetShoppingHotelsGeocodesParamsHotelSource = "DIRECTCHAIN" )
Defines values for GetShoppingHotelsGeocodesParamsHotelSource.
func (GetShoppingHotelsGeocodesParamsHotelSource) Valid ¶
func (e GetShoppingHotelsGeocodesParamsHotelSource) Valid() bool
Valid indicates whether the value is a known member of the GetShoppingHotelsGeocodesParamsHotelSource enum.
type GetShoppingHotelsGeocodesParamsRadiusUnit ¶
type GetShoppingHotelsGeocodesParamsRadiusUnit string
GetShoppingHotelsGeocodesParamsRadiusUnit defines parameters for GetShoppingHotelsGeocodes.
const ( GetShoppingHotelsGeocodesParamsRadiusUnitKM GetShoppingHotelsGeocodesParamsRadiusUnit = "KM" GetShoppingHotelsGeocodesParamsRadiusUnitMILE GetShoppingHotelsGeocodesParamsRadiusUnit = "MILE" )
Defines values for GetShoppingHotelsGeocodesParamsRadiusUnit.
func (GetShoppingHotelsGeocodesParamsRadiusUnit) Valid ¶
func (e GetShoppingHotelsGeocodesParamsRadiusUnit) Valid() bool
Valid indicates whether the value is a known member of the GetShoppingHotelsGeocodesParamsRadiusUnit enum.
type GetShoppingHotelsGeocodesParamsRatings ¶
type GetShoppingHotelsGeocodesParamsRatings string
GetShoppingHotelsGeocodesParamsRatings defines parameters for GetShoppingHotelsGeocodes.
const ( GetShoppingHotelsGeocodesParamsRatingsN1 GetShoppingHotelsGeocodesParamsRatings = "1" GetShoppingHotelsGeocodesParamsRatingsN2 GetShoppingHotelsGeocodesParamsRatings = "2" GetShoppingHotelsGeocodesParamsRatingsN3 GetShoppingHotelsGeocodesParamsRatings = "3" GetShoppingHotelsGeocodesParamsRatingsN4 GetShoppingHotelsGeocodesParamsRatings = "4" GetShoppingHotelsGeocodesParamsRatingsN5 GetShoppingHotelsGeocodesParamsRatings = "5" )
Defines values for GetShoppingHotelsGeocodesParamsRatings.
func (GetShoppingHotelsGeocodesParamsRatings) Valid ¶
func (e GetShoppingHotelsGeocodesParamsRatings) Valid() bool
Valid indicates whether the value is a known member of the GetShoppingHotelsGeocodesParamsRatings enum.
type Hotel ¶
type Hotel struct {
// Address Address information
Address *struct {
// CountryCode ISO 3166-1 country code
CountryCode *string `json:"countryCode,omitempty"`
} `json:"address,omitempty"`
// ChainCode Brand (RT...) or Merchant (AD...) (Amadeus 2 chars Code)
ChainCode *string `json:"chainCode,omitempty"`
// Distance Distance is designed to express a distance reprensentation with its value unit and state unlimited or not.
Distance *struct {
DisplayValue *string `json:"displayValue,omitempty"`
// IsUnlimited Conveys whether the distance is limited or not, if unlimited all the other properties should not be provided.
IsUnlimited *string `json:"isUnlimited,omitempty"`
// Unit Unit type.
Unit *HotelDistanceUnit `json:"unit,omitempty"`
// Value Decimal distance value
Value *float32 `json:"value,omitempty"`
} `json:"distance,omitempty"`
// GeoCode Geographic coordinates describing the position of any location on the surface of Earth
GeoCode *struct {
// Latitude Latitude of the position expressed in decimal degrees (WSG 84), e.g. 6.244203. A positive value denotes northern hemisphere or the equator, and a negative value denotes southern hemisphere. The number of digits to represent the precision of the coordinate.
Latitude *float32 `json:"latitude,omitempty"`
// Longitude Longitude of the position expressed in decimal degrees (WSG 84), e.g. -75.581211. A positive value denotes east longitude or the prime meridian, and a negative value denotes west longitude. The number of digits to represent the precision of the coordinate.
Longitude *float32 `json:"longitude,omitempty"`
} `json:"geoCode,omitempty"`
// HotelId Amadeus Property Code (8 chars)
HotelId *string `json:"hotelId,omitempty"`
// IataCode IATA location code
IataCode *string `json:"iataCode,omitempty"`
// LastUpdate Last time the content was updated by a provider.
LastUpdate *time.Time `json:"last_update,omitempty"`
// Name Hotel Name
Name *string `json:"name,omitempty"`
// Subtype Location sub-type (e.g. airport, port, rail-station, restaurant, atm...)
Subtype *string `json:"subtype,omitempty"`
// TimeZoneName Olson format name (TZ) of the location time zone (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
TimeZoneName *string `json:"timeZoneName,omitempty"`
}
Hotel defines model for Hotel.
type HotelDistanceUnit ¶
type HotelDistanceUnit string
HotelDistanceUnit Unit type.
const ( BITSPERPIXEL HotelDistanceUnit = "BITS_PER_PIXEL" BYTES HotelDistanceUnit = "BYTES" CENTIMETERS HotelDistanceUnit = "CENTIMETERS" INCHES HotelDistanceUnit = "INCHES" KILOBYTES HotelDistanceUnit = "KILOBYTES" KILOGRAMS HotelDistanceUnit = "KILOGRAMS" KILOMETERS HotelDistanceUnit = "KILOMETERS" MILES HotelDistanceUnit = "MILES" NIGHT HotelDistanceUnit = "NIGHT" PIXELS HotelDistanceUnit = "PIXELS" POUNDS HotelDistanceUnit = "POUNDS" )
Defines values for HotelDistanceUnit.
func (HotelDistanceUnit) Valid ¶
func (e HotelDistanceUnit) Valid() bool
Valid indicates whether the value is a known member of the HotelDistanceUnit enum.
type HotelSearchResponse ¶
type HotelSearchResponse struct {
Data *[]Hotel `json:"data,omitempty"`
// Meta Meta information about the returned object(s) in "data"
Meta *Meta `json:"meta,omitempty"`
}
HotelSearchResponse defines model for HotelSearchResponse.
type Meta ¶
type Meta struct {
// Count Total number of object(s) retrieved
Count *int64 `json:"count,omitempty"`
// Links Links related to the returned object(s)
Links *struct {
// First Link to the first page.
First *string `json:"first,omitempty"`
// Last Link to the last page.
Last *string `json:"last,omitempty"`
// Next Link to the next page.
Next *string `json:"next,omitempty"`
// Prev Link to the previous page.
Prev *string `json:"prev,omitempty"`
// Self Link to the same page.
Self *string `json:"self,omitempty"`
} `json:"links,omitempty"`
// Sort Sorting fields criteria and their associated priority and direction. Sorting priority is indicated by the order of the strings within the array. E.g. sort=title,size means that items are ordered by title and then, as a second ordering by size. A '-' sign before the search criteria indicates a descending ordering direction (Z to A), whereas no sign indicates a ascending direction (A to Z). E.g. sort=-title mean that the objects are ordered by title in reverse order (Z to A).
Sort *[]string `json:"sort,omitempty"`
}
Meta Meta information about the returned object(s) in "data"