Package com.duffel.sdk.model
Class OfferRequestBodyPassengersInner
java.lang.Object
com.duffel.sdk.model.OfferRequestBodyPassengersInner
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]")
public class OfferRequestBodyPassengersInner
extends Object
OfferRequestBodyPassengersInner
-
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) @NotNull @Min(0L) @Max(130L) IntegergetAge()The age of the passenger on the `departure_date` of the final slice.The passenger's family name.The passenger's given name.@Valid List<LoyaltyProgrammeAccount>The __Loyalty Programme Accounts__ for this passengergetType()The type of the passenger.inthashCode()loyaltyProgrammeAccounts(List<LoyaltyProgrammeAccount> loyaltyProgrammeAccounts) voidvoidsetFamilyName(String familyName) voidsetGivenName(String givenName) voidsetLoyaltyProgrammeAccounts(List<LoyaltyProgrammeAccount> loyaltyProgrammeAccounts) voidtoString()
-
Field Details
-
JSON_PROPERTY_FAMILY_NAME
- See Also:
-
JSON_PROPERTY_GIVEN_NAME
- See Also:
-
JSON_PROPERTY_LOYALTY_PROGRAMME_ACCOUNTS
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_AGE
- See Also:
-
-
Constructor Details
-
OfferRequestBodyPassengersInner
public OfferRequestBodyPassengersInner()
-
-
Method Details
-
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
-
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
-
setGivenName
-
loyaltyProgrammeAccounts
public OfferRequestBodyPassengersInner loyaltyProgrammeAccounts(List<LoyaltyProgrammeAccount> loyaltyProgrammeAccounts) -
addLoyaltyProgrammeAccountsItem
public OfferRequestBodyPassengersInner addLoyaltyProgrammeAccountsItem(LoyaltyProgrammeAccount loyaltyProgrammeAccountsItem) -
getLoyaltyProgrammeAccounts
The __Loyalty Programme Accounts__ for this passenger- Returns:
- loyaltyProgrammeAccounts
-
setLoyaltyProgrammeAccounts
-
type
-
getType
The type of the passenger. If the passenger is aged 18 or over, you should specify a `type` of `adult`. If a passenger is aged under 18, you should specify their `age` instead of a `type`. A passenger can have only a type or an age, but not both.- Returns:
- type
-
setType
-
age
-
getAge
The age of the passenger on the `departure_date` of the final slice. e.g. if you a searching for a round trip and the passenger is 15 years old at the time of the outbound flight, but they then have their birthday and are 16 years old for the inbound flight, you must set the age to 16. You should specify an `age` for passengers who are under 18 years old. A passenger can have only a type or an age, but not both. minimum: 0 maximum: 130- Returns:
- age
-
setAge
-
equals
-
hashCode
public int hashCode() -
toString
-