Class ApiPaxAvail

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

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

  • Constructor Details

    • ApiPaxAvail

      public ApiPaxAvail()
  • Method Details

    • type

      public ApiPaxAvail type(ApiPaxAvail.TypeEnum type)
    • getType

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

      public void setType(ApiPaxAvail.TypeEnum type)
    • age

      public ApiPaxAvail 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)
    • 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