public class BookApi extends Object
| Modifier and Type | Method and Description |
|---|---|
Object |
book(String prebookId,
String guestFirstName,
String guestLastName,
String guestEmail,
String paymentMethod,
String holderName,
String card_number,
String exp_month,
String exp_year,
Integer cvc,
String token)
hotel rate book
This API confirms a booking when the prebook Id and the rate Id from the pre
book stage along with the guest and payment information are passed.
|
okhttp3.Call |
bookAsync(String prebookId,
String guestFirstName,
String guestLastName,
String guestEmail,
String paymentMethod,
String holderName,
String card_number,
String exp_month,
String exp_year,
Integer cvc,
String token,
ApiCallback<Object> _callback)
hotel rate book (asynchronously)
This API confirms a booking when the prebook Id and the rate Id from the pre
book stage along with the guest and payment information are passed.
|
okhttp3.Call |
bookCall(String prebookId,
String guestFirstName,
String guestLastName,
String guestEmail,
String paymentMethod,
String holderName,
String card_number,
String exp_month,
String exp_year,
Integer cvc,
String token,
ApiCallback _callback)
Build call for ratesBookPost
|
ApiResponse<Object> |
bookWithHttpInfo(String prebookId,
String guestFirstName,
String guestLastName,
String guestEmail,
String paymentMethod,
String holderName,
String card_number,
String exp_month,
String exp_year,
Integer cvc,
String token)
hotel rate book
This API confirms a booking when the prebook Id and the rate Id from the pre
book stage along with the guest and payment information are passed.
|
ApiClient |
getApiClient() |
String |
getCustomBaseUrl() |
int |
getHostIndex() |
Object |
preBook(String rateId)
hotel rate prebook
This API is used to confirm if the room and rates for the search criterion.
|
okhttp3.Call |
preBookCall(String rateId,
ApiCallback _callback)
Build call for ratesPrebookPost
|
ApiResponse<Object> |
preBookWithHttpInfo(String rateId)
hotel rate prebook
This API is used to confirm if the room and rates for the search criterion.
|
okhttp3.Call |
ratesPrebookPostAsync(String rateId,
ApiCallback<Object> _callback)
hotel rate prebook (asynchronously)
This API is used to confirm if the room and rates for the search criterion.
|
void |
setApiClient(ApiClient apiClient) |
void |
setCustomBaseUrl(String customBaseUrl) |
void |
setHostIndex(int hostIndex) |
public BookApi()
public BookApi(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 bookCall(String prebookId, String guestFirstName, String guestLastName, String guestEmail, String paymentMethod, String holderName, String card_number, String exp_month, String exp_year, Integer cvc, String token, ApiCallback _callback) throws ApiException
prebookId - (optional)guestFirstName, - guestLastName, - guestEmail, - paymentMethod, - holderName, - card_number, - exp_month, - exp_year, - cvc, - token, - _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 - |
| 400 | Bad Request | * 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 - |
| 401 | Unauthorized | * 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 - |
public Object book(String prebookId, String guestFirstName, String guestLastName, String guestEmail, String paymentMethod, String holderName, String card_number, String exp_month, String exp_year, Integer cvc, String token)
prebookId - (optional)guestFirstName, - guestLastName, - guestEmail, - paymentMethod, - holderName, - card_number, - exp_month, - exp_year, - cvc, - token, - | 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 - |
| 400 | Bad Request | * 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 - |
| 401 | Unauthorized | * 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 - |
public ApiResponse<Object> bookWithHttpInfo(String prebookId, String guestFirstName, String guestLastName, String guestEmail, String paymentMethod, String holderName, String card_number, String exp_month, String exp_year, Integer cvc, String token) throws ApiException
prebookId - (optional)guestFirstName, - guestLastName, - guestEmail, - paymentMethod, - holderName, - card_number, - exp_month, - exp_year, - cvc, - token, - 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 - |
| 400 | Bad Request | * 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 - |
| 401 | Unauthorized | * 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 - |
public okhttp3.Call bookAsync(String prebookId, String guestFirstName, String guestLastName, String guestEmail, String paymentMethod, String holderName, String card_number, String exp_month, String exp_year, Integer cvc, String token, ApiCallback<Object> _callback) throws ApiException
prebookId - (optional)guestFirstName, - guestLastName, - guestEmail, - paymentMethod, - holderName, - card_number, - exp_month, - exp_year, - cvc, - token, - _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 - |
| 400 | Bad Request | * 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 - |
| 401 | Unauthorized | * 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 - |
public okhttp3.Call preBookCall(String rateId, ApiCallback _callback) throws ApiException
rateId - (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 - |
| 400 | Bad Request | * 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 - |
| 401 | Unauthorized | * 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 - |
public Object preBook(String rateId)
rateId - (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 - |
| 400 | Bad Request | * 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 - |
| 401 | Unauthorized | * 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 - |
public ApiResponse<Object> preBookWithHttpInfo(String rateId) throws ApiException
rateId - (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 - |
| 400 | Bad Request | * 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 - |
| 401 | Unauthorized | * 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 - |
public okhttp3.Call ratesPrebookPostAsync(String rateId, ApiCallback<Object> _callback) throws ApiException
rateId - (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 - |
| 400 | Bad Request | * 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 - |
| 401 | Unauthorized | * 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 - |
Copyright © 2023. All rights reserved.