Package com.duffel.sdk.model
Class OfferRequestBody
java.lang.Object
com.duffel.sdk.model.OfferRequestBody
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class OfferRequestBody
extends Object
OfferRequestBody
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe cabin that the passengers want to travel in -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPassengersItem(OfferRequestBodyPassengersInner passengersItem) addSlicesItem(OfferRequestBodySlice slicesItem) cabinClass(OfferRequestBody.CabinClassEnum cabinClass) booleanThe cabin that the passengers want to travel inThe maximum number of connections within any slice of the offer.@NotNull @Valid List<OfferRequestBodyPassengersInner> The passengers who want to travel.@Valid OfferRequestBodyPrivateFaresGet privateFares@NotNull @Valid List<OfferRequestBodySlice> The [slices](/docs/api/overview/key-principles) that make up this offer request.inthashCode()maxConnections(Integer maxConnections) passengers(List<OfferRequestBodyPassengersInner> passengers) privateFares(OfferRequestBodyPrivateFares privateFares) voidsetCabinClass(OfferRequestBody.CabinClassEnum cabinClass) voidsetMaxConnections(Integer maxConnections) voidsetPassengers(List<OfferRequestBodyPassengersInner> passengers) voidsetPrivateFares(OfferRequestBodyPrivateFares privateFares) voidsetSlices(List<OfferRequestBodySlice> slices) slices(List<OfferRequestBodySlice> slices) toString()
-
Field Details
-
JSON_PROPERTY_CABIN_CLASS
- See Also:
-
JSON_PROPERTY_MAX_CONNECTIONS
- See Also:
-
JSON_PROPERTY_PASSENGERS
- See Also:
-
JSON_PROPERTY_PRIVATE_FARES
- See Also:
-
JSON_PROPERTY_SLICES
- See Also:
-
-
Constructor Details
-
OfferRequestBody
public OfferRequestBody()
-
-
Method Details
-
cabinClass
-
getCabinClass
The cabin that the passengers want to travel in- Returns:
- cabinClass
-
setCabinClass
-
maxConnections
-
getMaxConnections
The maximum number of connections within any slice of the offer. For example 0 means a direct flight which will have a single segment within each slice and 1 means a maximum of two segments within each slice of the offer.- Returns:
- maxConnections
-
setMaxConnections
-
passengers
-
addPassengersItem
-
getPassengers
@Nonnull @NotNull @Valid public @NotNull @Valid List<OfferRequestBodyPassengersInner> getPassengers()The passengers who want to travel. If you specify an `age` for a passenger, the `type` may differ for the same passenger in different offers due to airline's different rules. e.g. one airline may treat a 14 year old as an adult, and another as a young adult. You may only specify an `age` or a `type` – not both.- Returns:
- passengers
-
setPassengers
-
privateFares
-
getPrivateFares
Get privateFares- Returns:
- privateFares
-
setPrivateFares
-
slices
-
addSlicesItem
-
getSlices
The [slices](/docs/api/overview/key-principles) that make up this offer request. One-way journeys can be expressed using one slice, whereas return trips will need two.- Returns:
- slices
-
setSlices
-
equals
-
hashCode
public int hashCode() -
toString
-