Class BookingRQ
java.lang.Object
travel.wink.hotelbeds.booking.sdk.model.BookingRQ
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-10-04T11:28:08.331690043+07:00[Asia/Bangkok]")
public class BookingRQ
extends Object
Request of Booking operation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRoomsItem(ApiBookingRoom roomsItem) clientReference(String clientReference) creationUser(String creationUser) boolean@NotNull @Size(min=1,max=20) StringInternal booking reference.@Size(min=1,max=50) StringIdentifies the agent name of the booking.@NotNull @Valid ApiHolderGet holderLanguage code that defines the language of the response.@Valid ApiPaymentDataGet paymentData@Size(min=0,max=2000) StringFree text sent to the hotelier.@Valid @Size(min=1,max=2147483647) List<ApiBookingRoom>getRooms()List of the rooms to be included in the booking.Margin of price difference (as percentage) accepted when a price difference occurs between Availability/CheckRate and Booking operations.@Valid ApiVoucherGet voucherinthashCode()paymentData(ApiPaymentData paymentData) rooms(List<ApiBookingRoom> rooms) voidsetClientReference(String clientReference) voidsetCreationUser(String creationUser) voidvoidsetLanguage(String language) voidsetPaymentData(ApiPaymentData paymentData) voidvoidsetRooms(List<ApiBookingRoom> rooms) voidsetTolerance(String tolerance) voidsetVoucher(ApiVoucher voucher) toString()voucher(ApiVoucher voucher)
-
Field Details
-
JSON_PROPERTY_HOLDER
- See Also:
-
JSON_PROPERTY_PAYMENT_DATA
- See Also:
-
JSON_PROPERTY_CLIENT_REFERENCE
- See Also:
-
JSON_PROPERTY_CREATION_USER
- See Also:
-
JSON_PROPERTY_REMARK
- See Also:
-
JSON_PROPERTY_VOUCHER
- See Also:
-
JSON_PROPERTY_TOLERANCE
- See Also:
-
JSON_PROPERTY_LANGUAGE
- See Also:
-
JSON_PROPERTY_ROOMS
- See Also:
-
-
Constructor Details
-
BookingRQ
public BookingRQ()
-
-
Method Details
-
holder
-
getHolder
Get holder- Returns:
- holder
-
setHolder
-
paymentData
-
getPaymentData
Get paymentData- Returns:
- paymentData
-
setPaymentData
-
clientReference
-
getClientReference
@Nonnull @NotNull @Size(min=1, max=20) public @NotNull @Size(min=1,max=20) String getClientReference()Internal booking reference.- Returns:
- clientReference
-
setClientReference
-
creationUser
-
getCreationUser
Identifies the agent name of the booking. If empty, by default it will be the same than the apikey performing the booking .- Returns:
- creationUser
-
setCreationUser
-
remark
-
getRemark
Free text sent to the hotelier. It can be used to request or inform of special requests to hotelier like: “Non-smoking room preferred”, “Twin bed please”, “Upper floor preferred”, “Late arrival”….- Returns:
- remark
-
setRemark
-
voucher
-
getVoucher
Get voucher- Returns:
- voucher
-
setVoucher
-
tolerance
-
getTolerance
Margin of price difference (as percentage) accepted when a price difference occurs between Availability/CheckRate and Booking operations. Do not use more than two decimal characters when defining tolerance. Example: to input a tolerance of 5%, you should input 5.00. NOTE: Authorisation for the use of this tag is subject to prior written agreement with your sales manager- Returns:
- tolerance
-
setTolerance
-
language
-
getLanguage
Language code that defines the language of the response. English will be used by default if this field is not informed.- Returns:
- language
-
setLanguage
-
rooms
-
addRoomsItem
-
getRooms
@Nullable @Valid @Size(min=1, max=2147483647) public @Valid @Size(min=1,max=2147483647) List<ApiBookingRoom> getRooms()List of the rooms to be included in the booking.- Returns:
- rooms
-
setRooms
-
equals
-
hashCode
public int hashCode() -
toString
-