Package com.duffel.sdk.model
Class OrderSlice
java.lang.Object
com.duffel.sdk.model.OrderSlice
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class OrderSlice
extends Object
OrderSlice
-
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 TypeMethodDescriptionaddSegmentsItem(OrderSliceSegment segmentsItem) changeable(Boolean changeable) conditions(OrderSliceConditions1 conditions) destination(Place1 destination) destinationType(OrderSlice.DestinationTypeEnum destinationType) boolean@NotNull BooleanWhether this slice can be changed.@NotNull @Valid OrderSliceConditions1Get conditions@NotNull @Valid Place1Get destination@NotNull OrderSlice.DestinationTypeEnumThe type of the destination@NotNull StringThe duration of the slice, represented as a [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) duration@NotNull StringgetId()Duffel's unique identifier for the slice.@NotNull @Valid Place2Get origin@NotNull OrderSlice.OriginTypeEnumThe type of the origin@NotNull @Valid List<OrderSliceSegment> The segments - that is, specific flights - that the airline is offering to get the passengers from the `origin` to the `destination`inthashCode()originType(OrderSlice.OriginTypeEnum originType) segments(List<OrderSliceSegment> segments) voidsetChangeable(Boolean changeable) voidsetConditions(OrderSliceConditions1 conditions) voidsetDestination(Place1 destination) voidsetDestinationType(OrderSlice.DestinationTypeEnum destinationType) voidsetDuration(String duration) voidvoidvoidsetOriginType(OrderSlice.OriginTypeEnum originType) voidsetSegments(List<OrderSliceSegment> segments) toString()
-
Field Details
-
JSON_PROPERTY_CHANGEABLE
- See Also:
-
JSON_PROPERTY_CONDITIONS
- See Also:
-
JSON_PROPERTY_DESTINATION
- See Also:
-
JSON_PROPERTY_DESTINATION_TYPE
- See Also:
-
JSON_PROPERTY_DURATION
- 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
-
OrderSlice
public OrderSlice()
-
-
Method Details
-
changeable
-
getChangeable
Whether this slice can be changed. This can only be `true` for paid orders. This field is deprecated and has been replaced with the [new `available_actions` field](https://duffel.com/docs/api/orders#orders-schema-available-actions) at the top-level __Order__ schema.- Returns:
- changeable
-
setChangeable
-
conditions
-
getConditions
Get conditions- 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
-
setDuration
-
id
-
getId
Duffel's unique identifier for the slice. It identifies the slice of an order (i.e. the same slice across orders 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
-