java.lang.Object
travel.wink.hotelbeds.booking.sdk.model.ApiPax

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-10-04T11:28:08.331690043+07:00[Asia/Bangkok]") public class ApiPax extends Object
Passenger information.
  • Field Details

  • Constructor Details

    • ApiPax

      public ApiPax()
  • Method Details

    • roomId

      public ApiPax roomId(Integer roomId)
    • getRoomId

      @Nullable @Min(1L) public @Min(1L) Integer getRoomId()
      Get roomId minimum: 1
      Returns:
      roomId
    • setRoomId

      public void setRoomId(Integer roomId)
    • type

      public ApiPax type(ApiPax.TypeEnum type)
    • getType

      @Nonnull @NotNull public @NotNull ApiPax.TypeEnum getType()
      Passenger type, defines if the passenger is adult or child.
      Returns:
      type
    • setType

      public void setType(ApiPax.TypeEnum type)
    • age

      public ApiPax age(Integer age)
    • getAge

      @Nullable @Min(0L) @Max(99L) public @Min(0L) @Max(99L) Integer getAge()
      Age of the passenger (required for children passengers). Please make sure to use the same ages in confirmation step to those you used in the availability step; the ages cannot be changed once the booking flow has started minimum: 0 maximum: 99
      Returns:
      age
    • setAge

      public void setAge(Integer age)
    • name

      public ApiPax name(String name)
    • getName

      @Nullable @Size(min=1, max=50) public @Size(min=1,max=50) String getName()
      Name of the passenger.
      Returns:
      name
    • setName

      public void setName(String name)
    • surname

      public ApiPax surname(String surname)
    • getSurname

      @Nullable @Size(min=0, max=50) public @Size(min=0,max=50) String getSurname()
      Surname of the passenger.
      Returns:
      surname
    • setSurname

      public void setSurname(String surname)
    • 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