public class SearchApi extends Object
| Constructor and Description |
|---|
SearchApi() |
SearchApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
String |
getCustomBaseUrl() |
okhttp3.Call |
getFullRatesAsync(String[] hotelIds,
String checkin,
String checkout,
String guestNationality,
String currency,
Integer adults,
Integer[] children,
String guestId,
ApiCallback<Object> _callback)
hotel full rates availability (asynchronously)
The Full Rates API is to search and return all available rooms along with its
rates, cancellation policies for a list of hotel ID's based on the search
dates.
|
okhttp3.Call |
getFullRatesCall(String[] hotelIds,
String checkin,
String checkout,
String guestNationality,
String currency,
Integer adults,
Integer[] children,
String guestId,
ApiCallback _callback)
Build call for hotelsRatesGet
|
Object |
getFullRatest(String[] hotelIds,
String checkin,
String checkout,
String currency,
String guestNationality,
Integer adults,
Integer[] children,
String guestId)
hotel full rates availability
The Full Rates API is to search and return all available rooms along with its
rates, cancellation policies for a list of hotel ID's based on the search
dates.
|
ApiResponse<Object> |
getFullRatesWithHttpInfo(String[] hotelIds,
String checkin,
String checkout,
String guestNationality,
String currency,
Integer adults,
Integer[] children,
String guestId)
hotel full rates availability
The Full Rates API is to search and return all available rooms along with its
rates, cancellation policies for a list of hotel ID's based on the search
dates.
|
int |
getHostIndex() |
Object |
getMinimumRates(String[] hotelIds,
String checkin,
String checkout,
String currency,
String guestNationality,
Integer adults,
Integer[] children,
String guestId)
hotel minimum rates availability
**Hotel Minimum Rates API** is to search and return the minimum room rates
that are available for a list of hotel ID's on the specified search
dates.
|
okhttp3.Call |
getMinimumRatesAsync(String[] hotelIds,
String checkin,
String checkout,
String currency,
String guestNationality,
Integer adults,
Integer[] children,
String guestId,
ApiCallback<Object> _callback)
hotel minimum rates availability (asynchronously)
**Hotel Minimum Rates API** is to search and return the minimum room rates
that are available for a list of hotel ID's on the specified search
dates.
|
okhttp3.Call |
getMinimumRatesCall(String[] hotelIds,
String checkin,
String checkout,
String currency,
String guestNationality,
Integer adults,
Integer[] children,
String guestId,
ApiCallback _callback)
Build call for hotelsGet
|
ApiResponse<Object> |
getMinimumRatesWithHttpInfo(String[] hotelIds,
String checkin,
String checkout,
String currency,
String guestNationality,
Integer adults,
Integer[] children,
String guestId)
hotel minimum rates availability
**Hotel Minimum Rates API** is to search and return the minimum room rates
that are available for a list of hotel ID's on the specified search
dates.
|
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
public SearchApi()
public SearchApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public int getHostIndex()
public void setHostIndex(int hostIndex)
public String getCustomBaseUrl()
public void setCustomBaseUrl(String customBaseUrl)
public okhttp3.Call getMinimumRatesCall(String[] hotelIds, String checkin, String checkout, String currency, String guestNationality, Integer adults, Integer[] children, String guestId, ApiCallback _callback) throws ApiException
hotelIds - List of hotelIds (required)checkin - Check in data in YYYY-MM-DD format (required)checkout - Check out data in YYYY-MM-DD format (required)currency - Currency code - example (USD) (required)guestNationality - Guest nationality ISO-2 code - example (SG)
(required)adults - Number of adult guests staying (required)children - Number of children staying if any (optional)guestId - Unique traveler ID if available (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object
| Status Code | Description | Response Headers |
| 200 | OK | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amzn-Remapped-Content-Length - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
| 204 | No Content | * Access-Control-Allow-Credentials - * Access-Control-Allow-Headers - * Access-Control-Allow-Methods - * Access-Control-Allow-Origin - * Access-Control-Expose-Headers - * Access-Control-Max-Age - * Content-Type - * Date - * Content-Length - |
| 400 | Bad Request | * Access-Control-Allow-Credentials - * Access-Control-Allow-Headers - * Access-Control-Allow-Methods - * Access-Control-Allow-Origin - * Access-Control-Expose-Headers - * Access-Control-Max-Age - * Content-Type - * Date - * Content-Length - |
| 401 | Unauthorized | * Access-Control-Allow-Credentials - * Access-Control-Allow-Headers - * Access-Control-Allow-Methods - * Access-Control-Allow-Origin - * Access-Control-Expose-Headers - * Access-Control-Max-Age - * Content-Type - * Date - * Content-Length - |
public Object getMinimumRates(String[] hotelIds, String checkin, String checkout, String currency, String guestNationality, Integer adults, Integer[] children, String guestId)
hotelIds - List of hotelIds (required)checkin - Check in data in YYYY-MM-DD format (required)checkout - Check out data in YYYY-MM-DD format (required)currency - Currency code - example (USD) (required)guestNationality - Guest nationality ISO-2 code - example (SG)
(required)adults - Number of adult guests staying (required)children - Number of children staying if any (optional)guestId - Unique traveler ID if available (optional)| Status Code | Description | Response Headers |
| 200 | OK | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amzn-Remapped-Content-Length - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
| 204 | No Content | * Access-Control-Allow-Credentials - * Access-Control-Allow-Headers - * Access-Control-Allow-Methods - * Access-Control-Allow-Origin - * Access-Control-Expose-Headers - * Access-Control-Max-Age - * Content-Type - * Date - * Content-Length - |
| 400 | Bad Request | * Access-Control-Allow-Credentials - * Access-Control-Allow-Headers - * Access-Control-Allow-Methods - * Access-Control-Allow-Origin - * Access-Control-Expose-Headers - * Access-Control-Max-Age - * Content-Type - * Date - * Content-Length - |
| 401 | Unauthorized | * Access-Control-Allow-Credentials - * Access-Control-Allow-Headers - * Access-Control-Allow-Methods - * Access-Control-Allow-Origin - * Access-Control-Expose-Headers - * Access-Control-Max-Age - * Content-Type - * Date - * Content-Length - |
public ApiResponse<Object> getMinimumRatesWithHttpInfo(String[] hotelIds, String checkin, String checkout, String currency, String guestNationality, Integer adults, Integer[] children, String guestId) throws ApiException
hotelIds - List of hotelIds (required)checkin - Check in data in YYYY-MM-DD format (required)checkout - Check out data in YYYY-MM-DD format (required)currency - Currency code - example (USD) (required)guestNationality - Guest nationality ISO-2 code - example (SG)
(required)adults - Number of adult guests staying (required)children - Number of children staying if any (optional)guestId - Unique traveler ID if available (optional)ApiException - If fail to call the API, e.g. server error or cannot
deserialize the response body
| Status Code | Description | Response Headers |
| 200 | OK | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amzn-Remapped-Content-Length - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
| 204 | No Content | * Access-Control-Allow-Credentials - * Access-Control-Allow-Headers - * Access-Control-Allow-Methods - * Access-Control-Allow-Origin - * Access-Control-Expose-Headers - * Access-Control-Max-Age - * Content-Type - * Date - * Content-Length - |
| 400 | Bad Request | * Access-Control-Allow-Credentials - * Access-Control-Allow-Headers - * Access-Control-Allow-Methods - * Access-Control-Allow-Origin - * Access-Control-Expose-Headers - * Access-Control-Max-Age - * Content-Type - * Date - * Content-Length - |
| 401 | Unauthorized | * Access-Control-Allow-Credentials - * Access-Control-Allow-Headers - * Access-Control-Allow-Methods - * Access-Control-Allow-Origin - * Access-Control-Expose-Headers - * Access-Control-Max-Age - * Content-Type - * Date - * Content-Length - |
public okhttp3.Call getMinimumRatesAsync(String[] hotelIds, String checkin, String checkout, String currency, String guestNationality, Integer adults, Integer[] children, String guestId, ApiCallback<Object> _callback) throws ApiException
hotelIds - List of hotelIds (required)checkin - Check in data in YYYY-MM-DD format (required)checkout - Check out data in YYYY-MM-DD format (required)currency - Currency code - example (USD) (required)guestNationality - Guest nationality ISO-2 code - example (SG)
(required)adults - Number of adult guests staying (required)children - Number of children staying if any (optional)guestId - Unique traveler ID if available (optional)_callback - The callback to be executed when the API call
finishesApiException - If fail to process the API call, e.g. serializing the
request body object
| Status Code | Description | Response Headers |
| 200 | OK | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amzn-Remapped-Content-Length - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
| 204 | No Content | * Access-Control-Allow-Credentials - * Access-Control-Allow-Headers - * Access-Control-Allow-Methods - * Access-Control-Allow-Origin - * Access-Control-Expose-Headers - * Access-Control-Max-Age - * Content-Type - * Date - * Content-Length - |
| 400 | Bad Request | * Access-Control-Allow-Credentials - * Access-Control-Allow-Headers - * Access-Control-Allow-Methods - * Access-Control-Allow-Origin - * Access-Control-Expose-Headers - * Access-Control-Max-Age - * Content-Type - * Date - * Content-Length - |
| 401 | Unauthorized | * Access-Control-Allow-Credentials - * Access-Control-Allow-Headers - * Access-Control-Allow-Methods - * Access-Control-Allow-Origin - * Access-Control-Expose-Headers - * Access-Control-Max-Age - * Content-Type - * Date - * Content-Length - |
public okhttp3.Call getFullRatesCall(String[] hotelIds, String checkin, String checkout, String guestNationality, String currency, Integer adults, Integer[] children, String guestId, ApiCallback _callback) throws ApiException
hotelIds - List of hotelIds (required)checkin - Check in data in YYYY-MM-DD format (required)checkout - Check out data in YYYY-MM-DD format (required)guestNationality - Guest nationality ISO-2 code - example (SG)
(required)currency - Currency code - example (USD) (required)adults - Number of adult guests staying (required)children - Number of children staying if any (optional)guestId - Unique traveler ID if available (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object
| Status Code | Description | Response Headers |
| 200 | OK | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
| 204 | No Content | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
| 400 | Bad Request | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
public Object getFullRatest(String[] hotelIds, String checkin, String checkout, String currency, String guestNationality, Integer adults, Integer[] children, String guestId)
hotelIds - List of hotelIds (required)checkin - Check in data in YYYY-MM-DD format (required)checkout - Check out data in YYYY-MM-DD format (required)guestNationality - Guest nationality ISO-2 code - example (SG)
(required)currency - Currency code - example (USD) (required)adults - Number of adult guests staying (required)children - Number of children staying if any (optional)guestId - Unique traveler ID if available (optional)| Status Code | Description | Response Headers |
| 200 | OK | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
| 204 | No Content | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
| 400 | Bad Request | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
public ApiResponse<Object> getFullRatesWithHttpInfo(String[] hotelIds, String checkin, String checkout, String guestNationality, String currency, Integer adults, Integer[] children, String guestId) throws ApiException
hotelIds - List of hotelIds (required)checkin - Check in data in YYYY-MM-DD format (required)checkout - Check out data in YYYY-MM-DD format (required)guestNationality - Guest nationality ISO-2 code - example (SG)
(required)currency - Currency code - example (USD) (required)adults - Number of adult guests staying (required)children - Number of children staying if any (optional)guestId - Unique traveler ID if available (optional)ApiException - If fail to call the API, e.g. server error or cannot
deserialize the response body
| Status Code | Description | Response Headers |
| 200 | OK | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
| 204 | No Content | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
| 400 | Bad Request | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
public okhttp3.Call getFullRatesAsync(String[] hotelIds, String checkin, String checkout, String guestNationality, String currency, Integer adults, Integer[] children, String guestId, ApiCallback<Object> _callback) throws ApiException
hotelIds - List of hotelIds (required)checkin - Check in data in YYYY-MM-DD format (required)checkout - Check out data in YYYY-MM-DD format (required)guestNationality - Guest nationality ISO-2 code - example (SG)
(required)currency - Currency code - example (USD) (required)adults - Number of adult guests staying (required)children - Number of children staying if any (optional)guestId - Unique traveler ID if available (optional)_callback - The callback to be executed when the API call
finishesApiException - If fail to process the API call, e.g. serializing the
request body object
| Status Code | Description | Response Headers |
| 200 | OK | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
| 204 | No Content | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
| 400 | Bad Request | * Date - * Content-Type - * Content-Length - * Connection - * x-amzn-RequestId - * Access-Control-Allow-Origin - * Content-Encoding - * Access-Control-Allow-Headers - * x-amz-apigw-id - * Access-Control-Allow-Methods - * Access-Control-Expose-Headers - * x-amzn-Remapped-Date - * Access-Control-Max-Age - * Access-Control-Allow-Credentials - |
Copyright © 2023. All rights reserved.