Class OrderSlice

java.lang.Object
com.duffel.sdk.model.OrderSlice

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]") public class OrderSlice extends Object
OrderSlice
  • Field Details

  • Constructor Details

    • OrderSlice

      public OrderSlice()
  • Method Details

    • changeable

      public OrderSlice changeable(Boolean changeable)
    • getChangeable

      @Nonnull @NotNull public @NotNull Boolean 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

      public void setChangeable(Boolean changeable)
    • conditions

      public OrderSlice conditions(OrderSliceConditions1 conditions)
    • getConditions

      @Nonnull @NotNull @Valid public @NotNull @Valid OrderSliceConditions1 getConditions()
      Get conditions
      Returns:
      conditions
    • setConditions

      public void setConditions(OrderSliceConditions1 conditions)
    • destination

      public OrderSlice destination(Place3 destination)
    • getDestination

      @Nonnull @NotNull @Valid public @NotNull @Valid Place3 getDestination()
      Get destination
      Returns:
      destination
    • setDestination

      public void setDestination(Place3 destination)
    • destinationType

      public OrderSlice destinationType(OrderSlice.DestinationTypeEnum destinationType)
    • getDestinationType

      @Nonnull @NotNull public @NotNull OrderSlice.DestinationTypeEnum getDestinationType()
      The type of the destination
      Returns:
      destinationType
    • setDestinationType

      public void setDestinationType(OrderSlice.DestinationTypeEnum destinationType)
    • duration

      public OrderSlice duration(String duration)
    • getDuration

      @Nullable @NotNull public @NotNull String getDuration()
      The duration of the slice, represented as a [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) duration
      Returns:
      duration
    • setDuration

      public void setDuration(String duration)
    • id

      public OrderSlice id(String id)
    • getId

      @Nonnull @NotNull public @NotNull String 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

      public void setId(String id)
    • origin

      public OrderSlice origin(Place4 origin)
    • getOrigin

      @Nonnull @NotNull @Valid public @NotNull @Valid Place4 getOrigin()
      Get origin
      Returns:
      origin
    • setOrigin

      public void setOrigin(Place4 origin)
    • originType

      public OrderSlice originType(OrderSlice.OriginTypeEnum originType)
    • getOriginType

      @Nonnull @NotNull public @NotNull OrderSlice.OriginTypeEnum getOriginType()
      The type of the origin
      Returns:
      originType
    • setOriginType

      public void setOriginType(OrderSlice.OriginTypeEnum originType)
    • segments

      public OrderSlice segments(List<OrderSliceSegment> segments)
    • addSegmentsItem

      public OrderSlice addSegmentsItem(OrderSliceSegment segmentsItem)
    • getSegments

      @Nonnull @NotNull @Valid public @NotNull @Valid List<OrderSliceSegment> 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

      public void setSegments(List<OrderSliceSegment> segments)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object