Package com.duffel.sdk.model
Class OrderRequestPassenger
java.lang.Object
com.duffel.sdk.model.OrderRequestPassenger
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]")
public class OrderRequestPassenger
extends Object
OrderRequestPassenger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe passenger's genderstatic enumThe passenger's titlestatic enumThe type of the passenger -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddIdentityDocumentsItem(OrderRequestPassengerIdentityDocument identityDocumentsItem) booleanfamilyName(String familyName) @NotNull @Valid LocalDateThe passenger's date of birth@NotNull StringgetEmail()The passenger's email address@NotNull StringThe passenger's family name.@NotNull OrderRequestPassenger.GenderEnumThe passenger's gender@NotNull StringThe passenger's given name.@NotNull StringgetId()The `id` of the passenger, returned when the [offer request](/docs/api/offer-requests) was createdThe passenger's identity documents.org.openapitools.jackson.nullable.JsonNullable<List<OrderRequestPassengerIdentityDocument>>Infant passengers, with an `age` of 0 or 1, must be associated with an adult passenger.@NotNull StringThe passenger's phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) (international) format@NotNull OrderRequestPassenger.TitleEnumgetTitle()The passenger's titlegetType()The type of the passengerorg.openapitools.jackson.nullable.JsonNullable<OrderRequestPassenger.TypeEnum>inthashCode()identityDocuments(List<OrderRequestPassengerIdentityDocument> identityDocuments) infantPassengerId(String infantPassengerId) phoneNumber(String phoneNumber) voidvoidvoidsetFamilyName(String familyName) voidvoidsetGivenName(String givenName) voidvoidsetIdentityDocuments(List<OrderRequestPassengerIdentityDocument> identityDocuments) voidsetIdentityDocuments_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<OrderRequestPassengerIdentityDocument>> identityDocuments) voidsetInfantPassengerId(String infantPassengerId) voidsetPhoneNumber(String phoneNumber) voidvoidvoidsetType_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OrderRequestPassenger.TypeEnum> type) toString()
-
Field Details
-
JSON_PROPERTY_BORN_ON
- See Also:
-
JSON_PROPERTY_EMAIL
- See Also:
-
JSON_PROPERTY_FAMILY_NAME
- See Also:
-
JSON_PROPERTY_GENDER
- See Also:
-
JSON_PROPERTY_GIVEN_NAME
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_IDENTITY_DOCUMENTS
- See Also:
-
JSON_PROPERTY_INFANT_PASSENGER_ID
- See Also:
-
JSON_PROPERTY_PHONE_NUMBER
- See Also:
-
JSON_PROPERTY_TITLE
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
OrderRequestPassenger
public OrderRequestPassenger()
-
-
Method Details
-
bornOn
-
getBornOn
The passenger's date of birth- Returns:
- bornOn
-
setBornOn
-
email
-
getEmail
The passenger's email address- Returns:
-
setEmail
-
familyName
-
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
-
gender
-
getGender
The passenger's gender- Returns:
- gender
-
setGender
-
givenName
-
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
-
id
-
getId
The `id` of the passenger, returned when the [offer request](/docs/api/offer-requests) was created- Returns:
- id
-
setId
-
identityDocuments
public OrderRequestPassenger identityDocuments(List<OrderRequestPassengerIdentityDocument> identityDocuments) -
addIdentityDocumentsItem
public OrderRequestPassenger addIdentityDocumentsItem(OrderRequestPassengerIdentityDocument identityDocumentsItem) -
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
-
infantPassengerId
-
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
-
phoneNumber
-
getPhoneNumber
The passenger's phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) (international) format- Returns:
- phoneNumber
-
setPhoneNumber
-
title
-
getTitle
The passenger's title- Returns:
- title
-
setTitle
-
type
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-