@Generated(value="travel.liteapi.codegen.languages.JavaClientCodegen", date="2023-06-26T16:26:32.648+01:00[Africa/Casablanca]") public class RatesBookPostRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RatesBookPostRequest.CustomTypeAdapterFactory |
| Modifier and Type | Field and Description |
|---|---|
static HashSet<String> |
liteapiFields |
static HashSet<String> |
liteapiRequiredFields |
static String |
SERIALIZED_NAME_GUEST_INFO |
static String |
SERIALIZED_NAME_PAYMENT |
static String |
SERIALIZED_NAME_PREBOOK_ID |
| Constructor and Description |
|---|
RatesBookPostRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static RatesBookPostRequest |
fromJson(String jsonString)
Create an instance of RatesBookPostRequest given an JSON string
|
RatesBookPostRequestGuestInfo |
getGuestInfo()
Get guestInfo
|
RatesBookPostRequestPayment |
getPayment()
Get payment
|
Object |
getPrebookId()
prebook id retrived from prebook response
|
RatesBookPostRequest |
guestInfo(RatesBookPostRequestGuestInfo guestInfo) |
int |
hashCode() |
RatesBookPostRequest |
payment(RatesBookPostRequestPayment payment) |
RatesBookPostRequest |
prebookId(String prebookId) |
void |
setGuestInfo(RatesBookPostRequestGuestInfo guestInfo) |
void |
setPayment(RatesBookPostRequestPayment payment) |
void |
setPrebookId(String prebookId) |
String |
toJson()
Convert an instance of RatesBookPostRequest to an JSON string
|
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final String SERIALIZED_NAME_PREBOOK_ID
public static final String SERIALIZED_NAME_GUEST_INFO
public static final String SERIALIZED_NAME_PAYMENT
public RatesBookPostRequest prebookId(String prebookId)
@Nullable public Object getPrebookId()
public void setPrebookId(String prebookId)
public RatesBookPostRequest guestInfo(RatesBookPostRequestGuestInfo guestInfo)
@Nonnull public RatesBookPostRequestGuestInfo getGuestInfo()
public void setGuestInfo(RatesBookPostRequestGuestInfo guestInfo)
public RatesBookPostRequest payment(RatesBookPostRequestPayment payment)
@Nullable public RatesBookPostRequestPayment getPayment()
public void setPayment(RatesBookPostRequestPayment payment)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj)
throws IOException
jsonObj - JSON ObjectIOException - if the JSON Object is invalid with respect to RatesBookPostRequestpublic static RatesBookPostRequest fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to RatesBookPostRequestpublic String toJson()
Copyright © 2023. All rights reserved.