Package com.duffel.sdk.model
Class OfferSlice
java.lang.Object
com.duffel.sdk.model.OfferSlice
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]")
public class OfferSlice
extends Object
OfferSlice
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of the destinationstatic enumThe type of the origin -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConditionsItem(OfferSliceConditions1 conditionsItem) addSegmentsItem(OfferSliceSegment segmentsItem) conditions(List<OfferSliceConditions1> conditions) destination(OfferSliceDestination destination) destinationType(OfferSlice.DestinationTypeEnum destinationType) booleanfareBrandName(String fareBrandName) @Valid List<OfferSliceConditions1>The options and conditions to change or cancel this slice@Valid OfferSliceDestinationGet destinationThe type of the destinationThe duration of the slice, represented as a [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) durationorg.openapitools.jackson.nullable.JsonNullable<String>The name of the fare brand associated with this slice.org.openapitools.jackson.nullable.JsonNullable<String>getId()Duffel's unique identifier for the slice.@Valid OfferSliceOriginGet originThe type of the origin@Valid List<OfferSliceSegment>The segments - that is, specific flights - that the airline is offering to get the passengers from the `origin` to the `destination`inthashCode()origin(OfferSliceOrigin origin) originType(OfferSlice.OriginTypeEnum originType) segments(List<OfferSliceSegment> segments) voidsetConditions(List<OfferSliceConditions1> conditions) voidsetDestination(OfferSliceDestination destination) voidsetDestinationType(OfferSlice.DestinationTypeEnum destinationType) voidsetDuration(String duration) voidsetDuration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> duration) voidsetFareBrandName(String fareBrandName) voidsetFareBrandName_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> fareBrandName) voidvoidsetOrigin(OfferSliceOrigin origin) voidsetOriginType(OfferSlice.OriginTypeEnum originType) voidsetSegments(List<OfferSliceSegment> segments) toString()
-
Field Details
-
JSON_PROPERTY_CONDITIONS
- See Also:
-
JSON_PROPERTY_DESTINATION
- See Also:
-
JSON_PROPERTY_DESTINATION_TYPE
- See Also:
-
JSON_PROPERTY_DURATION
- See Also:
-
JSON_PROPERTY_FARE_BRAND_NAME
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_ORIGIN
- See Also:
-
JSON_PROPERTY_ORIGIN_TYPE
- See Also:
-
JSON_PROPERTY_SEGMENTS
- See Also:
-
-
Constructor Details
-
OfferSlice
public OfferSlice()
-
-
Method Details
-
conditions
-
addConditionsItem
-
getConditions
The options and conditions to change or cancel this slice- Returns:
- conditions
-
setConditions
-
destination
-
getDestination
Get destination- Returns:
- destination
-
setDestination
-
destinationType
-
getDestinationType
The type of the destination- Returns:
- destinationType
-
setDestinationType
-
duration
-
getDuration
The duration of the slice, represented as a [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) duration- Returns:
- duration
-
getDuration_JsonNullable
-
setDuration_JsonNullable
public void setDuration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> duration) -
setDuration
-
fareBrandName
-
getFareBrandName
The name of the fare brand associated with this slice. A fare brand specifies the travel conditions you get on your slice made available by the airline. e.g. a British Airways Economy Basic fare will only include a hand baggage allowance. It is worth noting that the fare brand names are defined by the airlines themselves and therefore they are subject to change without any prior notice. We’re in the process of adding support for `fare_brand_name` across all our airlines, so for now, this field may be `null` in some offers. This will become a non-nullable attribute in the near future.- Returns:
- fareBrandName
-
getFareBrandName_JsonNullable
-
setFareBrandName_JsonNullable
public void setFareBrandName_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> fareBrandName) -
setFareBrandName
-
id
-
getId
Duffel's unique identifier for the slice. It identifies the slice of an offer (i.e. the same slice across offers will have different `id`s.)- Returns:
- id
-
setId
-
origin
-
getOrigin
Get origin- Returns:
- origin
-
setOrigin
-
originType
-
getOriginType
The type of the origin- Returns:
- originType
-
setOriginType
-
segments
-
addSegmentsItem
-
getSegments
The segments - that is, specific flights - that the airline is offering to get the passengers from the `origin` to the `destination`- Returns:
- segments
-
setSegments
-
equals
-
hashCode
public int hashCode() -
toString
-