Class OfferPassenger

java.lang.Object
com.duffel.sdk.model.OfferPassenger

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]") public class OfferPassenger extends Object
OfferPassenger
  • Field Details

  • Constructor Details

    • OfferPassenger

      public OfferPassenger()
  • Method Details

    • age

      public OfferPassenger age(Integer age)
    • getAge

      @Nullable @Min(0L) @Max(130L) public @Min(0L) @Max(130L) Integer getAge()
      The age of the passenger on the `departure_date` of the final slice minimum: 0 maximum: 130
      Returns:
      age
    • setAge

      public void setAge(Integer age)
    • familyName

      public OfferPassenger familyName(String familyName)
    • getFamilyName

      @Nullable public String getFamilyName()
      The passenger's family name. Only `space`, `-`, `'`, and letters from the [`ASCII`](https://www.unicode.org/charts/PDF/U0000.pdf), [`Latin-1 Supplement`](https://www.unicode.org/charts/PDF/U0080.pdf) and [`Latin Extended-A`](https://www.unicode.org/charts/PDF/U0100.pdf) (with the exceptions of `Æ`, `æ`, `IJ`, `ij`, `Œ`, `œ`, `Þ`, and `ð`) Unicode charts are accepted. All other characters will result in a validation error. The minimum length is 1 character, and the maximum is 20 characters. This is only required if you're also including __Loyalty Programme Accounts__.
      Returns:
      familyName
    • getFamilyName_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getFamilyName_JsonNullable()
    • setFamilyName_JsonNullable

      public void setFamilyName_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> familyName)
    • setFamilyName

      public void setFamilyName(String familyName)
    • givenName

      public OfferPassenger givenName(String givenName)
    • getGivenName

      @Nullable public String getGivenName()
      The passenger's given name. Only `space`, `-`, `'`, and letters from the [`ASCII`](https://www.unicode.org/charts/PDF/U0000.pdf), [`Latin-1 Supplement`](https://www.unicode.org/charts/PDF/U0080.pdf) and [`Latin Extended-A`](https://www.unicode.org/charts/PDF/U0100.pdf) (with the exceptions of `Æ`, `æ`, `IJ`, `ij`, `Œ`, `œ`, `Þ`, and `ð`) Unicode charts are accepted. All other characters will result in a validation error. The minimum length is 1 character, and the maximum is 20 characters. This is only required if you're also including __Loyalty Programme Accounts__.
      Returns:
      givenName
    • getGivenName_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getGivenName_JsonNullable()
    • setGivenName_JsonNullable

      public void setGivenName_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> givenName)
    • setGivenName

      public void setGivenName(String givenName)
    • id

      public OfferPassenger id(String id)
    • getId

      @Nullable public String getId()
      The identifier for the passenger. This ID will be generated by Duffel
      Returns:
      id
    • setId

      public void setId(String id)
    • loyaltyProgrammeAccounts

      public OfferPassenger loyaltyProgrammeAccounts(List<LoyaltyProgrammeAccount> loyaltyProgrammeAccounts)
    • addLoyaltyProgrammeAccountsItem

      public OfferPassenger addLoyaltyProgrammeAccountsItem(LoyaltyProgrammeAccount loyaltyProgrammeAccountsItem)
    • getLoyaltyProgrammeAccounts

      @Nullable @Valid public @Valid List<LoyaltyProgrammeAccount> getLoyaltyProgrammeAccounts()
      The __Loyalty Programme Accounts__ for this passenger
      Returns:
      loyaltyProgrammeAccounts
    • setLoyaltyProgrammeAccounts

      public void setLoyaltyProgrammeAccounts(List<LoyaltyProgrammeAccount> loyaltyProgrammeAccounts)
    • type

    • getType

      @Nullable public OfferPassenger.TypeEnum getType()
      The type of the passenger
      Returns:
      type
    • setType

      public void setType(OfferPassenger.TypeEnum type)
    • 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