Package com.duffel.sdk.model
Class OfferSliceSegmentPassenger
java.lang.Object
com.duffel.sdk.model.OfferSliceSegmentPassenger
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class OfferSliceSegmentPassenger
extends Object
OfferSliceSegmentPassenger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe cabin class that the passenger will travel in on this segment -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBaggagesItem(SliceSegmentPassengerBaggage baggagesItem) baggages(List<SliceSegmentPassengerBaggage> baggages) cabinClass(OfferSliceSegmentPassenger.CabinClassEnum cabinClass) cabinClassMarketingName(String cabinClassMarketingName) booleanfareBasisCode(String fareBasisCode) @Valid List<SliceSegmentPassengerBaggage> The baggage allowances for the passenger on this segment included in the offer.The cabin class that the passenger will travel in on this segmentThe name that the marketing carrier uses to market this cabin classThe airline's alphanumeric code for the fare that the passenger is using to travel.org.openapitools.jackson.nullable.JsonNullable<String> The identifier for the passenger.inthashCode()passengerId(String passengerId) voidsetBaggages(List<SliceSegmentPassengerBaggage> baggages) voidvoidsetCabinClassMarketingName(String cabinClassMarketingName) voidsetFareBasisCode(String fareBasisCode) voidsetFareBasisCode_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> fareBasisCode) voidsetPassengerId(String passengerId) toString()
-
Field Details
-
JSON_PROPERTY_BAGGAGES
- See Also:
-
JSON_PROPERTY_CABIN_CLASS
- See Also:
-
JSON_PROPERTY_CABIN_CLASS_MARKETING_NAME
- See Also:
-
JSON_PROPERTY_FARE_BASIS_CODE
- See Also:
-
JSON_PROPERTY_PASSENGER_ID
- See Also:
-
-
Constructor Details
-
OfferSliceSegmentPassenger
public OfferSliceSegmentPassenger()
-
-
Method Details
-
baggages
-
addBaggagesItem
-
getBaggages
The baggage allowances for the passenger on this segment included in the offer. Some airlines may allow additional baggage to be booked as a service - see the offer's `available_services`.- Returns:
- baggages
-
setBaggages
-
cabinClass
-
getCabinClass
The cabin class that the passenger will travel in on this segment- Returns:
- cabinClass
-
setCabinClass
-
cabinClassMarketingName
-
getCabinClassMarketingName
The name that the marketing carrier uses to market this cabin class- Returns:
- cabinClassMarketingName
-
setCabinClassMarketingName
-
fareBasisCode
-
getFareBasisCode
The airline's alphanumeric code for the fare that the passenger is using to travel. Where this is `null`, it means that either the fare basis code is not available or the airline does not use fare basis codes.- Returns:
- fareBasisCode
-
getFareBasisCode_JsonNullable
-
setFareBasisCode_JsonNullable
public void setFareBasisCode_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> fareBasisCode) -
setFareBasisCode
-
passengerId
-
getPassengerId
The identifier for the passenger. You may have specified this ID yourself when creating the offer request, or otherwise, Duffel will have generated its own random ID.- Returns:
- passengerId
-
setPassengerId
-
equals
-
hashCode
public int hashCode() -
toString
-