Class LocationsApi

java.lang.Object
travel.wink.hotelbeds.content.sdk.api.LocationsApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-10-04T11:28:31.756188010+07:00[Asia/Bangkok]") public class LocationsApi extends Object
  • Constructor Details

    • LocationsApi

      public LocationsApi()
    • LocationsApi

      @Autowired public LocationsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • countriesUsingGET

      public reactor.core.publisher.Mono<ApiCountriesRS> countriesUsingGET(String accept, String acceptEncoding, List<String> fields, List<String> codes, String language, Integer from, Integer to, Boolean useSecondaryLanguage, String lastUpdateTime) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Countries Returns the list of available countries. This is the higher level available in our destination tree. We do not allow search by country, but it's included for organizational reasons (to group destinations) and because the country codes returned are used in other levels of APItude (for example to define the sourceMarket in Availability operation of [Hotel Booking API](/documentation/hotels/booking-api/api-reference/).

      200 - OK

      400 - Bad Request

      401 - Unauthorized

      402 - Payment Required

      500 - Internal Server Error

      503 - Product Exception/Service Unavailable

      Parameters:
      accept - Response format, posible values are application/json and application/xml.
      acceptEncoding - Defines type of encoding used on the data.
      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.
      codes - List of codes to filter by.
      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.
      Returns:
      ApiCountriesRS
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • countriesUsingGETWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ApiCountriesRS>> countriesUsingGETWithHttpInfo(String accept, String acceptEncoding, List<String> fields, List<String> codes, String language, Integer from, Integer to, Boolean useSecondaryLanguage, String lastUpdateTime) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Countries Returns the list of available countries. This is the higher level available in our destination tree. We do not allow search by country, but it's included for organizational reasons (to group destinations) and because the country codes returned are used in other levels of APItude (for example to define the sourceMarket in Availability operation of [Hotel Booking API](/documentation/hotels/booking-api/api-reference/).

      200 - OK

      400 - Bad Request

      401 - Unauthorized

      402 - Payment Required

      500 - Internal Server Error

      503 - Product Exception/Service Unavailable

      Parameters:
      accept - Response format, posible values are application/json and application/xml.
      acceptEncoding - Defines type of encoding used on the data.
      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.
      codes - List of codes to filter by.
      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.
      Returns:
      ResponseEntity<ApiCountriesRS>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • countriesUsingGETWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec countriesUsingGETWithResponseSpec(String accept, String acceptEncoding, List<String> fields, List<String> codes, String language, Integer from, Integer to, Boolean useSecondaryLanguage, String lastUpdateTime) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Countries Returns the list of available countries. This is the higher level available in our destination tree. We do not allow search by country, but it's included for organizational reasons (to group destinations) and because the country codes returned are used in other levels of APItude (for example to define the sourceMarket in Availability operation of [Hotel Booking API](/documentation/hotels/booking-api/api-reference/).

      200 - OK

      400 - Bad Request

      401 - Unauthorized

      402 - Payment Required

      500 - Internal Server Error

      503 - Product Exception/Service Unavailable

      Parameters:
      accept - Response format, posible values are application/json and application/xml.
      acceptEncoding - Defines type of encoding used on the data.
      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.
      codes - List of codes to filter by.
      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.
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • destinationsUsingGET

      public reactor.core.publisher.Mono<ApiDestinationsRS> destinationsUsingGET(String accept, String acceptEncoding, List<String> fields, List<String> codes, List<String> countryCodes, String language, Integer from, Integer to, Boolean useSecondaryLanguage, String lastUpdateTime) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Destinations Return the list of available destinations, zones and grouping zones. Destinations are the highest level entities in our destination tree by which availability can be searched. Please note that destination codes are not IATA codes. It is very important to understand that our 'destination' will not always only correspond with a unique city, but usually with the main city and the area surrounding the city. For example, the destination code NYC in the US, corresponds with the whole New York Area, so it is not limited to the city of New York, but also covers the surrounding areas, such as New Jersey and The Hamptons. Another example is BCN in Spain, which corresponds with the entire Barcelona Province; so it searches hotels located in the city of Barcelona, but also in other cities within the Province of Barcelona, such us Hospitalet de Llobregat, Terrassa and Sabadell. So when you search for availability using the destination code, you will receive results that may be located far from the main city for which you are actually searching. It is very important to check the locations that the search retrieves to avoid booking hotels in a different location than the one requested by your customers.

      200 - OK

      400 - Bad Request

      401 - Unauthorized

      402 - Payment Required

      500 - Internal Server Error

      503 - Product Exception/Service Unavailable

      Parameters:
      accept - Response format, posible values are application/json and application/xml.
      acceptEncoding - Defines type of encoding used on the data.
      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.
      codes - Filter to limit the results for an specific destination or list of destinations.
      countryCodes - Filter for a specific country of list of countries.
      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.
      Returns:
      ApiDestinationsRS
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • destinationsUsingGETWithHttpInfo

      public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<ApiDestinationsRS>> destinationsUsingGETWithHttpInfo(String accept, String acceptEncoding, List<String> fields, List<String> codes, List<String> countryCodes, String language, Integer from, Integer to, Boolean useSecondaryLanguage, String lastUpdateTime) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Destinations Return the list of available destinations, zones and grouping zones. Destinations are the highest level entities in our destination tree by which availability can be searched. Please note that destination codes are not IATA codes. It is very important to understand that our 'destination' will not always only correspond with a unique city, but usually with the main city and the area surrounding the city. For example, the destination code NYC in the US, corresponds with the whole New York Area, so it is not limited to the city of New York, but also covers the surrounding areas, such as New Jersey and The Hamptons. Another example is BCN in Spain, which corresponds with the entire Barcelona Province; so it searches hotels located in the city of Barcelona, but also in other cities within the Province of Barcelona, such us Hospitalet de Llobregat, Terrassa and Sabadell. So when you search for availability using the destination code, you will receive results that may be located far from the main city for which you are actually searching. It is very important to check the locations that the search retrieves to avoid booking hotels in a different location than the one requested by your customers.

      200 - OK

      400 - Bad Request

      401 - Unauthorized

      402 - Payment Required

      500 - Internal Server Error

      503 - Product Exception/Service Unavailable

      Parameters:
      accept - Response format, posible values are application/json and application/xml.
      acceptEncoding - Defines type of encoding used on the data.
      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.
      codes - Filter to limit the results for an specific destination or list of destinations.
      countryCodes - Filter for a specific country of list of countries.
      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.
      Returns:
      ResponseEntity<ApiDestinationsRS>
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API
    • destinationsUsingGETWithResponseSpec

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec destinationsUsingGETWithResponseSpec(String accept, String acceptEncoding, List<String> fields, List<String> codes, List<String> countryCodes, String language, Integer from, Integer to, Boolean useSecondaryLanguage, String lastUpdateTime) throws org.springframework.web.reactive.function.client.WebClientResponseException
      Destinations Return the list of available destinations, zones and grouping zones. Destinations are the highest level entities in our destination tree by which availability can be searched. Please note that destination codes are not IATA codes. It is very important to understand that our 'destination' will not always only correspond with a unique city, but usually with the main city and the area surrounding the city. For example, the destination code NYC in the US, corresponds with the whole New York Area, so it is not limited to the city of New York, but also covers the surrounding areas, such as New Jersey and The Hamptons. Another example is BCN in Spain, which corresponds with the entire Barcelona Province; so it searches hotels located in the city of Barcelona, but also in other cities within the Province of Barcelona, such us Hospitalet de Llobregat, Terrassa and Sabadell. So when you search for availability using the destination code, you will receive results that may be located far from the main city for which you are actually searching. It is very important to check the locations that the search retrieves to avoid booking hotels in a different location than the one requested by your customers.

      200 - OK

      400 - Bad Request

      401 - Unauthorized

      402 - Payment Required

      500 - Internal Server Error

      503 - Product Exception/Service Unavailable

      Parameters:
      accept - Response format, posible values are application/json and application/xml.
      acceptEncoding - Defines type of encoding used on the data.
      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.
      codes - Filter to limit the results for an specific destination or list of destinations.
      countryCodes - Filter for a specific country of list of countries.
      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.
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.reactive.function.client.WebClientResponseException - if an error occurs while attempting to invoke the API