Class HotelsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ApiHotelsRS>hotelsUsingGET(String accept, String acceptEncoding, String destinationCode, String countryCode, List<Integer> codes, String includeHotels, List<String> fields, String language, Integer from, Integer to, Boolean useSecondaryLanguage, String lastUpdateTime, Boolean pmSRoomCode) Hotels Returns the list of currently existing hotels in Hotelbeds portfolio.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ApiHotelsRS>>hotelsUsingGETWithHttpInfo(String accept, String acceptEncoding, String destinationCode, String countryCode, List<Integer> codes, String includeHotels, List<String> fields, String language, Integer from, Integer to, Boolean useSecondaryLanguage, String lastUpdateTime, Boolean pmSRoomCode) Hotels Returns the list of currently existing hotels in Hotelbeds portfolio.org.springframework.web.reactive.function.client.WebClient.ResponseSpechotelsUsingGETWithResponseSpec(String accept, String acceptEncoding, String destinationCode, String countryCode, List<Integer> codes, String includeHotels, List<String> fields, String language, Integer from, Integer to, Boolean useSecondaryLanguage, String lastUpdateTime, Boolean pmSRoomCode) Hotels Returns the list of currently existing hotels in Hotelbeds portfolio.reactor.core.publisher.Mono<ApiHotelDetailsRS>hotelWithIdDetailsUsingGET(String accept, String acceptEncoding, String hotelCodes, String language, Boolean useSecondaryLanguage) Hotel details Returns all the details associated to the Hotel.reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ApiHotelDetailsRS>>hotelWithIdDetailsUsingGETWithHttpInfo(String accept, String acceptEncoding, String hotelCodes, String language, Boolean useSecondaryLanguage) Hotel details Returns all the details associated to the Hotel.org.springframework.web.reactive.function.client.WebClient.ResponseSpechotelWithIdDetailsUsingGETWithResponseSpec(String accept, String acceptEncoding, String hotelCodes, String language, Boolean useSecondaryLanguage) Hotel details Returns all the details associated to the Hotel.voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
HotelsApi
public HotelsApi() -
HotelsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
hotelWithIdDetailsUsingGET
public reactor.core.publisher.Mono<ApiHotelDetailsRS> hotelWithIdDetailsUsingGET(String accept, String acceptEncoding, String hotelCodes, String language, Boolean useSecondaryLanguage) throws org.springframework.web.reactive.function.client.WebClientResponseException Hotel details Returns all the details associated to the Hotel.200 - OK
400 - **BAD REQUEST** - The server cannot or will not process the request due to an apparent client error. *INVALID_REQUEST* - The request is not compliant with the specified version of the API. The message body will contain more information *INVALID_DATA* - The JSON or XML syntax is correct, however some of the fields contain incorrect data. Please check the documentation for the allowed values and follow the message returned in order to fix this error.
401 - **UNAUTHORIZED** - Authentication has failed or has not been provided.
403 - **FORBIDDEN** - The credentials are correct and authorization was succesful, but access to this resource/operation is not allowed.
500 - **INTERNAL SERVER ERROR** - An unexpected condition was encountered. Possible causes *SYSTEM_ERROR* - These are internal server errors, please send us these errors together with the complete logs (JSON or XML requests and responses) at [apitude@hotelbeds.com]() so that our team can review them. *CONFIGURATION_ERROR* - This type of error is produced by configuration restrictions set-up at account level. Usually this results in the inability to perform an specific operation. Here is a list of common configuration errors: * *This apikey is not associated with a valid client*: This means that the provided apiKey belongs to an inactive client/agency. If you need information regarding the cause for this please contact our support team at [apitude@hotelbeds.com]().
503 - **SERVICE UNAVAILABLE** - The server is currently unable to handle the request due to a temporary condition which will be alleviated after some delay. You can choose to resend the request again. *SERVICE_OVERLOAD* - The server is currently unable to handle the request due to an overwhelming number of requests being processed. Condition which will be alleviated after some delay.
- Parameters:
accept- Response format, posible values are application/json and application/xml.acceptEncoding- Defines type of encoding used on the data.hotelCodes- Code or codes of specific hotels from which to get details.language- The language code for the language in which you want the descriptions to be returned. If language is not specified, English will be used as default language.useSecondaryLanguage- Defines if you want to receive the descriptions in English if the description is not available in the language requested.- Returns:
- ApiHotelDetailsRS
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
hotelWithIdDetailsUsingGETWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ApiHotelDetailsRS>> hotelWithIdDetailsUsingGETWithHttpInfo(String accept, String acceptEncoding, String hotelCodes, String language, Boolean useSecondaryLanguage) throws org.springframework.web.reactive.function.client.WebClientResponseException Hotel details Returns all the details associated to the Hotel.200 - OK
400 - **BAD REQUEST** - The server cannot or will not process the request due to an apparent client error. *INVALID_REQUEST* - The request is not compliant with the specified version of the API. The message body will contain more information *INVALID_DATA* - The JSON or XML syntax is correct, however some of the fields contain incorrect data. Please check the documentation for the allowed values and follow the message returned in order to fix this error.
401 - **UNAUTHORIZED** - Authentication has failed or has not been provided.
403 - **FORBIDDEN** - The credentials are correct and authorization was succesful, but access to this resource/operation is not allowed.
500 - **INTERNAL SERVER ERROR** - An unexpected condition was encountered. Possible causes *SYSTEM_ERROR* - These are internal server errors, please send us these errors together with the complete logs (JSON or XML requests and responses) at [apitude@hotelbeds.com]() so that our team can review them. *CONFIGURATION_ERROR* - This type of error is produced by configuration restrictions set-up at account level. Usually this results in the inability to perform an specific operation. Here is a list of common configuration errors: * *This apikey is not associated with a valid client*: This means that the provided apiKey belongs to an inactive client/agency. If you need information regarding the cause for this please contact our support team at [apitude@hotelbeds.com]().
503 - **SERVICE UNAVAILABLE** - The server is currently unable to handle the request due to a temporary condition which will be alleviated after some delay. You can choose to resend the request again. *SERVICE_OVERLOAD* - The server is currently unable to handle the request due to an overwhelming number of requests being processed. Condition which will be alleviated after some delay.
- Parameters:
accept- Response format, posible values are application/json and application/xml.acceptEncoding- Defines type of encoding used on the data.hotelCodes- Code or codes of specific hotels from which to get details.language- The language code for the language in which you want the descriptions to be returned. If language is not specified, English will be used as default language.useSecondaryLanguage- Defines if you want to receive the descriptions in English if the description is not available in the language requested.- Returns:
- ResponseEntity<ApiHotelDetailsRS>
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
hotelWithIdDetailsUsingGETWithResponseSpec
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec hotelWithIdDetailsUsingGETWithResponseSpec(String accept, String acceptEncoding, String hotelCodes, String language, Boolean useSecondaryLanguage) throws org.springframework.web.reactive.function.client.WebClientResponseException Hotel details Returns all the details associated to the Hotel.200 - OK
400 - **BAD REQUEST** - The server cannot or will not process the request due to an apparent client error. *INVALID_REQUEST* - The request is not compliant with the specified version of the API. The message body will contain more information *INVALID_DATA* - The JSON or XML syntax is correct, however some of the fields contain incorrect data. Please check the documentation for the allowed values and follow the message returned in order to fix this error.
401 - **UNAUTHORIZED** - Authentication has failed or has not been provided.
403 - **FORBIDDEN** - The credentials are correct and authorization was succesful, but access to this resource/operation is not allowed.
500 - **INTERNAL SERVER ERROR** - An unexpected condition was encountered. Possible causes *SYSTEM_ERROR* - These are internal server errors, please send us these errors together with the complete logs (JSON or XML requests and responses) at [apitude@hotelbeds.com]() so that our team can review them. *CONFIGURATION_ERROR* - This type of error is produced by configuration restrictions set-up at account level. Usually this results in the inability to perform an specific operation. Here is a list of common configuration errors: * *This apikey is not associated with a valid client*: This means that the provided apiKey belongs to an inactive client/agency. If you need information regarding the cause for this please contact our support team at [apitude@hotelbeds.com]().
503 - **SERVICE UNAVAILABLE** - The server is currently unable to handle the request due to a temporary condition which will be alleviated after some delay. You can choose to resend the request again. *SERVICE_OVERLOAD* - The server is currently unable to handle the request due to an overwhelming number of requests being processed. Condition which will be alleviated after some delay.
- Parameters:
accept- Response format, posible values are application/json and application/xml.acceptEncoding- Defines type of encoding used on the data.hotelCodes- Code or codes of specific hotels from which to get details.language- The language code for the language in which you want the descriptions to be returned. If language is not specified, English will be used as default language.useSecondaryLanguage- Defines if you want to receive the descriptions in English if the description is not available in the language requested.- Returns:
- ResponseSpec
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
hotelsUsingGET
public reactor.core.publisher.Mono<ApiHotelsRS> hotelsUsingGET(String accept, String acceptEncoding, String destinationCode, String countryCode, List<Integer> codes, String includeHotels, List<String> fields, String language, Integer from, Integer to, Boolean useSecondaryLanguage, String lastUpdateTime, Boolean pmSRoomCode) throws org.springframework.web.reactive.function.client.WebClientResponseException Hotels Returns the list of currently existing hotels in Hotelbeds portfolio.200 - OK
400 - **BAD REQUEST** - The server cannot or will not process the request due to an apparent client error. *INVALID_REQUEST* - The request is not compliant with the specified version of the API. The message body will contain more information *INVALID_DATA* - The JSON or XML syntax is correct, however some of the fields contain incorrect data. Please check the documentation for the allowed values and follow the message returned in order to fix this error.
401 - **UNAUTHORIZED** - Authentication has failed or has not been provided.
403 - **FORBIDDEN** - The credentials are correct and authorization was succesful, but access to this resource/operation is not allowed.
500 - **INTERNAL SERVER ERROR** - An unexpected condition was encountered. Possible causes *SYSTEM_ERROR* - These are internal server errors, please send us these errors together with the complete logs (JSON or XML requests and responses) at [apitude@hotelbeds.com]() so that our team can review them. *CONFIGURATION_ERROR* - This type of error is produced by configuration restrictions set-up at account level. Usually this results in the inability to perform an specific operation. Here is a list of common configuration errors: * *This apikey is not associated with a valid client*: This means that the provided apiKey belongs to an inactive client/agency. If you need information regarding the cause for this please contact our support team at [apitude@hotelbeds.com]().
503 - **SERVICE UNAVAILABLE** - The server is currently unable to handle the request due to a temporary condition which will be alleviated after some delay. You can choose to resend the request again. *SERVICE_OVERLOAD* - The server is currently unable to handle the request due to an overwhelming number of requests being processed. Condition which will be alleviated after some delay.
- Parameters:
accept- Response format, posible values are application/json and application/xml.acceptEncoding- Defines type of encoding used on the data.destinationCode- Filter to limit the results for an specific destination.countryCode- Filter to limit the results for an specific country.codes- Filter for a specific hotel or list of hotels.includeHotels- Use \"webOnly\" to include in the response hotels sellable only to websites. Use \"notOnSale\" to include in the response hotels without rates on sale. Both values can be combined either this way: ?includeHotels=webOnly, notOnSale or this way: ?includeHotels=webOnly&includeHotels=notOnSale . By default non of them is included in the response.fields- The list of fields to be received in the response. To retrieve all the fields use ‘all’. If nothing is specified, all fields are returned. See the complete list of available fields in the response.language- The language code for the language in which you want the descriptions to be returned. If language is not specified, English will be used as default language.from- The number of the initial record to receive. If nothing is specified, 1 is the default value.to- The number of the final record to receive. If nothing is indicated, 100 is the default value.useSecondaryLanguage- Defines if you want to receive the descriptions in English if the description is not available in the language requested.lastUpdateTime- Specifying this parameter limits the results to those modified or added after the date specified. The required format is YYYY-MM-DD.pmSRoomCode- Sending this parameter as true in the /hotels operations will only return the hotels which possess at least one PMSRoomCode (useful when mapping against the original property codes).- Returns:
- ApiHotelsRS
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
hotelsUsingGETWithHttpInfo
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ApiHotelsRS>> hotelsUsingGETWithHttpInfo(String accept, String acceptEncoding, String destinationCode, String countryCode, List<Integer> codes, String includeHotels, List<String> fields, String language, Integer from, Integer to, Boolean useSecondaryLanguage, String lastUpdateTime, Boolean pmSRoomCode) throws org.springframework.web.reactive.function.client.WebClientResponseException Hotels Returns the list of currently existing hotels in Hotelbeds portfolio.200 - OK
400 - **BAD REQUEST** - The server cannot or will not process the request due to an apparent client error. *INVALID_REQUEST* - The request is not compliant with the specified version of the API. The message body will contain more information *INVALID_DATA* - The JSON or XML syntax is correct, however some of the fields contain incorrect data. Please check the documentation for the allowed values and follow the message returned in order to fix this error.
401 - **UNAUTHORIZED** - Authentication has failed or has not been provided.
403 - **FORBIDDEN** - The credentials are correct and authorization was succesful, but access to this resource/operation is not allowed.
500 - **INTERNAL SERVER ERROR** - An unexpected condition was encountered. Possible causes *SYSTEM_ERROR* - These are internal server errors, please send us these errors together with the complete logs (JSON or XML requests and responses) at [apitude@hotelbeds.com]() so that our team can review them. *CONFIGURATION_ERROR* - This type of error is produced by configuration restrictions set-up at account level. Usually this results in the inability to perform an specific operation. Here is a list of common configuration errors: * *This apikey is not associated with a valid client*: This means that the provided apiKey belongs to an inactive client/agency. If you need information regarding the cause for this please contact our support team at [apitude@hotelbeds.com]().
503 - **SERVICE UNAVAILABLE** - The server is currently unable to handle the request due to a temporary condition which will be alleviated after some delay. You can choose to resend the request again. *SERVICE_OVERLOAD* - The server is currently unable to handle the request due to an overwhelming number of requests being processed. Condition which will be alleviated after some delay.
- Parameters:
accept- Response format, posible values are application/json and application/xml.acceptEncoding- Defines type of encoding used on the data.destinationCode- Filter to limit the results for an specific destination.countryCode- Filter to limit the results for an specific country.codes- Filter for a specific hotel or list of hotels.includeHotels- Use \"webOnly\" to include in the response hotels sellable only to websites. Use \"notOnSale\" to include in the response hotels without rates on sale. Both values can be combined either this way: ?includeHotels=webOnly, notOnSale or this way: ?includeHotels=webOnly&includeHotels=notOnSale . By default non of them is included in the response.fields- The list of fields to be received in the response. To retrieve all the fields use ‘all’. If nothing is specified, all fields are returned. See the complete list of available fields in the response.language- The language code for the language in which you want the descriptions to be returned. If language is not specified, English will be used as default language.from- The number of the initial record to receive. If nothing is specified, 1 is the default value.to- The number of the final record to receive. If nothing is indicated, 100 is the default value.useSecondaryLanguage- Defines if you want to receive the descriptions in English if the description is not available in the language requested.lastUpdateTime- Specifying this parameter limits the results to those modified or added after the date specified. The required format is YYYY-MM-DD.pmSRoomCode- Sending this parameter as true in the /hotels operations will only return the hotels which possess at least one PMSRoomCode (useful when mapping against the original property codes).- Returns:
- ResponseEntity<ApiHotelsRS>
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-
hotelsUsingGETWithResponseSpec
public org.springframework.web.reactive.function.client.WebClient.ResponseSpec hotelsUsingGETWithResponseSpec(String accept, String acceptEncoding, String destinationCode, String countryCode, List<Integer> codes, String includeHotels, List<String> fields, String language, Integer from, Integer to, Boolean useSecondaryLanguage, String lastUpdateTime, Boolean pmSRoomCode) throws org.springframework.web.reactive.function.client.WebClientResponseException Hotels Returns the list of currently existing hotels in Hotelbeds portfolio.200 - OK
400 - **BAD REQUEST** - The server cannot or will not process the request due to an apparent client error. *INVALID_REQUEST* - The request is not compliant with the specified version of the API. The message body will contain more information *INVALID_DATA* - The JSON or XML syntax is correct, however some of the fields contain incorrect data. Please check the documentation for the allowed values and follow the message returned in order to fix this error.
401 - **UNAUTHORIZED** - Authentication has failed or has not been provided.
403 - **FORBIDDEN** - The credentials are correct and authorization was succesful, but access to this resource/operation is not allowed.
500 - **INTERNAL SERVER ERROR** - An unexpected condition was encountered. Possible causes *SYSTEM_ERROR* - These are internal server errors, please send us these errors together with the complete logs (JSON or XML requests and responses) at [apitude@hotelbeds.com]() so that our team can review them. *CONFIGURATION_ERROR* - This type of error is produced by configuration restrictions set-up at account level. Usually this results in the inability to perform an specific operation. Here is a list of common configuration errors: * *This apikey is not associated with a valid client*: This means that the provided apiKey belongs to an inactive client/agency. If you need information regarding the cause for this please contact our support team at [apitude@hotelbeds.com]().
503 - **SERVICE UNAVAILABLE** - The server is currently unable to handle the request due to a temporary condition which will be alleviated after some delay. You can choose to resend the request again. *SERVICE_OVERLOAD* - The server is currently unable to handle the request due to an overwhelming number of requests being processed. Condition which will be alleviated after some delay.
- Parameters:
accept- Response format, posible values are application/json and application/xml.acceptEncoding- Defines type of encoding used on the data.destinationCode- Filter to limit the results for an specific destination.countryCode- Filter to limit the results for an specific country.codes- Filter for a specific hotel or list of hotels.includeHotels- Use \"webOnly\" to include in the response hotels sellable only to websites. Use \"notOnSale\" to include in the response hotels without rates on sale. Both values can be combined either this way: ?includeHotels=webOnly, notOnSale or this way: ?includeHotels=webOnly&includeHotels=notOnSale . By default non of them is included in the response.fields- The list of fields to be received in the response. To retrieve all the fields use ‘all’. If nothing is specified, all fields are returned. See the complete list of available fields in the response.language- The language code for the language in which you want the descriptions to be returned. If language is not specified, English will be used as default language.from- The number of the initial record to receive. If nothing is specified, 1 is the default value.to- The number of the final record to receive. If nothing is indicated, 100 is the default value.useSecondaryLanguage- Defines if you want to receive the descriptions in English if the description is not available in the language requested.lastUpdateTime- Specifying this parameter limits the results to those modified or added after the date specified. The required format is YYYY-MM-DD.pmSRoomCode- Sending this parameter as true in the /hotels operations will only return the hotels which possess at least one PMSRoomCode (useful when mapping against the original property codes).- Returns:
- ResponseSpec
- Throws:
org.springframework.web.reactive.function.client.WebClientResponseException- if an error occurs while attempting to invoke the API
-