Class OrderRequestPassenger

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]") public class OrderRequestPassenger extends Object
OrderRequestPassenger
  • Field Details

  • Constructor Details

    • OrderRequestPassenger

      public OrderRequestPassenger()
  • Method Details

    • bornOn

      public OrderRequestPassenger bornOn(LocalDate bornOn)
    • getBornOn

      @Nonnull @NotNull @Valid public @NotNull @Valid LocalDate getBornOn()
      The passenger's date of birth
      Returns:
      bornOn
    • setBornOn

      public void setBornOn(LocalDate bornOn)
    • email

      public OrderRequestPassenger email(String email)
    • getEmail

      @Nonnull @NotNull public @NotNull String getEmail()
      The passenger's email address
      Returns:
      email
    • setEmail

      public void setEmail(String email)
    • familyName

      public OrderRequestPassenger familyName(String familyName)
    • getFamilyName

      @Nonnull @NotNull public @NotNull 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.
      Returns:
      familyName
    • setFamilyName

      public void setFamilyName(String familyName)
    • gender

    • getGender

      @Nonnull @NotNull public @NotNull OrderRequestPassenger.GenderEnum getGender()
      The passenger's gender
      Returns:
      gender
    • setGender

      public void setGender(OrderRequestPassenger.GenderEnum gender)
    • givenName

      public OrderRequestPassenger givenName(String givenName)
    • getGivenName

      @Nonnull @NotNull public @NotNull 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.
      Returns:
      givenName
    • setGivenName

      public void setGivenName(String givenName)
    • id

      public OrderRequestPassenger id(String id)
    • getId

      @Nonnull @NotNull public @NotNull String getId()
      The `id` of the passenger, returned when the [offer request](/docs/api/offer-requests) was created
      Returns:
      id
    • setId

      public void setId(String id)
    • identityDocuments

      public OrderRequestPassenger identityDocuments(List<OrderRequestPassengerIdentityDocument> identityDocuments)
    • addIdentityDocumentsItem

      public OrderRequestPassenger addIdentityDocumentsItem(OrderRequestPassengerIdentityDocument identityDocumentsItem)
    • getIdentityDocuments

      @Nullable @Valid public @Valid List<OrderRequestPassengerIdentityDocument> getIdentityDocuments()
      The passenger's identity documents. You may only provide one identity document per passenger. The identity document's type must be included in the offer's `allowed_passenger_identity_document_types`. If the offer's `passenger_identity_documents_required` is set to `true`, then an identity document must be provided.
      Returns:
      identityDocuments
    • getIdentityDocuments_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<List<OrderRequestPassengerIdentityDocument>> getIdentityDocuments_JsonNullable()
    • setIdentityDocuments_JsonNullable

      public void setIdentityDocuments_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<OrderRequestPassengerIdentityDocument>> identityDocuments)
    • setIdentityDocuments

      public void setIdentityDocuments(List<OrderRequestPassengerIdentityDocument> identityDocuments)
    • infantPassengerId

      public OrderRequestPassenger infantPassengerId(String infantPassengerId)
    • getInfantPassengerId

      @Nullable public String getInfantPassengerId()
      Infant passengers, with an `age` of 0 or 1, must be associated with an adult passenger. This field should be used to make this association. It should contain the `id` of the infant passenger as returned in the [offer request](/docs/api/offer-requests).
      Returns:
      infantPassengerId
    • setInfantPassengerId

      public void setInfantPassengerId(String infantPassengerId)
    • phoneNumber

      public OrderRequestPassenger phoneNumber(String phoneNumber)
    • getPhoneNumber

      @Nonnull @NotNull public @NotNull String getPhoneNumber()
      The passenger's phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) (international) format
      Returns:
      phoneNumber
    • setPhoneNumber

      public void setPhoneNumber(String phoneNumber)
    • title

    • getTitle

      @Nonnull @NotNull public @NotNull OrderRequestPassenger.TitleEnum getTitle()
      The passenger's title
      Returns:
      title
    • setTitle

      public void setTitle(OrderRequestPassenger.TitleEnum title)
    • type

    • getType

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

      public org.openapitools.jackson.nullable.JsonNullable<OrderRequestPassenger.TypeEnum> getType_JsonNullable()
    • setType_JsonNullable

      public void setType_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OrderRequestPassenger.TypeEnum> type)
    • setType

      public void setType(OrderRequestPassenger.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