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 Details

  • Constructor Details

    • BookingRQ

      public BookingRQ()
  • Method Details

    • holder

      public BookingRQ holder(ApiHolder holder)
    • getHolder

      @Nonnull @NotNull @Valid public @NotNull @Valid ApiHolder getHolder()
      Get holder
      Returns:
      holder
    • setHolder

      public void setHolder(ApiHolder holder)
    • paymentData

      public BookingRQ paymentData(ApiPaymentData paymentData)
    • getPaymentData

      @Nullable @Valid public @Valid ApiPaymentData getPaymentData()
      Get paymentData
      Returns:
      paymentData
    • setPaymentData

      public void setPaymentData(ApiPaymentData paymentData)
    • clientReference

      public BookingRQ clientReference(String clientReference)
    • getClientReference

      @Nonnull @NotNull @Size(min=1, max=20) public @NotNull @Size(min=1,max=20) String getClientReference()
      Internal booking reference.
      Returns:
      clientReference
    • setClientReference

      public void setClientReference(String clientReference)
    • creationUser

      public BookingRQ creationUser(String creationUser)
    • getCreationUser

      @Nullable @Size(min=1, max=50) public @Size(min=1,max=50) String 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

      public void setCreationUser(String creationUser)
    • remark

      public BookingRQ remark(String remark)
    • getRemark

      @Nullable @Size(min=0, max=2000) public @Size(min=0,max=2000) String 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

      public void setRemark(String remark)
    • voucher

      public BookingRQ voucher(ApiVoucher voucher)
    • getVoucher

      @Nullable @Valid public @Valid ApiVoucher getVoucher()
      Get voucher
      Returns:
      voucher
    • setVoucher

      public void setVoucher(ApiVoucher voucher)
    • tolerance

      public BookingRQ tolerance(String tolerance)
    • getTolerance

      @Nullable public String 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

      public void setTolerance(String tolerance)
    • language

      public BookingRQ language(String language)
    • getLanguage

      @Nullable public String 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

      public void setLanguage(String language)
    • rooms

      public BookingRQ rooms(List<ApiBookingRoom> rooms)
    • addRoomsItem

      public BookingRQ addRoomsItem(ApiBookingRoom roomsItem)
    • 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

      public void setRooms(List<ApiBookingRoom> rooms)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object