Package com.duffel.sdk.model
Class OfferRequestPassenger
java.lang.Object
com.duffel.sdk.model.OfferRequestPassenger
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class OfferRequestPassenger
extends Object
OfferRequestPassenger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of the passenger -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLoyaltyProgrammeAccountsItem(LoyaltyProgrammeAccount loyaltyProgrammeAccountsItem) booleanfamilyName(String familyName) @Min(0L) @Max(130L) IntegergetAge()The age of the passenger on the `departure_date` of the final slice minimum: 0 maximum: 130The passenger's family name.org.openapitools.jackson.nullable.JsonNullable<String> The passenger's given name.org.openapitools.jackson.nullable.JsonNullable<String> getId()The identifier for the passenger, unique within this Offer Request and across all Offer Requests.@Valid List<LoyaltyProgrammeAccount> The __Loyalty Programme Accounts__ for this passengergetType()The type of the passengerinthashCode()loyaltyProgrammeAccounts(List<LoyaltyProgrammeAccount> loyaltyProgrammeAccounts) voidvoidsetFamilyName(String familyName) voidsetFamilyName_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> familyName) voidsetGivenName(String givenName) voidsetGivenName_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> givenName) voidvoidsetLoyaltyProgrammeAccounts(List<LoyaltyProgrammeAccount> loyaltyProgrammeAccounts) voidtoString()
-
Field Details
-
JSON_PROPERTY_AGE
- See Also:
-
JSON_PROPERTY_FAMILY_NAME
- See Also:
-
JSON_PROPERTY_GIVEN_NAME
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_LOYALTY_PROGRAMME_ACCOUNTS
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
OfferRequestPassenger
public OfferRequestPassenger()
-
-
Method Details
-
age
-
getAge
The age of the passenger on the `departure_date` of the final slice minimum: 0 maximum: 130- Returns:
- age
-
setAge
-
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. This is only required if you're also including __Loyalty Programme Accounts__.- Returns:
- familyName
-
getFamilyName_JsonNullable
-
setFamilyName_JsonNullable
public void setFamilyName_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> familyName) -
setFamilyName
-
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. This is only required if you're also including __Loyalty Programme Accounts__.- Returns:
- givenName
-
getGivenName_JsonNullable
-
setGivenName_JsonNullable
public void setGivenName_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> givenName) -
setGivenName
-
id
-
getId
The identifier for the passenger, unique within this Offer Request and across all Offer Requests. This ID will be generated by Duffel. Optionally providing an ID has been deprecated.- Returns:
- id
-
setId
-
loyaltyProgrammeAccounts
public OfferRequestPassenger loyaltyProgrammeAccounts(List<LoyaltyProgrammeAccount> loyaltyProgrammeAccounts) -
addLoyaltyProgrammeAccountsItem
public OfferRequestPassenger addLoyaltyProgrammeAccountsItem(LoyaltyProgrammeAccount loyaltyProgrammeAccountsItem) -
getLoyaltyProgrammeAccounts
The __Loyalty Programme Accounts__ for this passenger- Returns:
- loyaltyProgrammeAccounts
-
setLoyaltyProgrammeAccounts
-
type
-
getType
The type of the passenger- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-