Class OfferSlice

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

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

  • Constructor Details

    • OfferSlice

      public OfferSlice()
  • Method Details

    • conditions

      public OfferSlice conditions(List<OfferSliceConditions1> conditions)
    • addConditionsItem

      public OfferSlice addConditionsItem(OfferSliceConditions1 conditionsItem)
    • getConditions

      @Nullable @Valid public @Valid List<OfferSliceConditions1> getConditions()
      The options and conditions to change or cancel this slice
      Returns:
      conditions
    • setConditions

      public void setConditions(List<OfferSliceConditions1> conditions)
    • destination

      public OfferSlice destination(OfferSliceDestination destination)
    • getDestination

      @Nullable @Valid public @Valid OfferSliceDestination getDestination()
      Get destination
      Returns:
      destination
    • setDestination

      public void setDestination(OfferSliceDestination destination)
    • destinationType

      public OfferSlice destinationType(OfferSlice.DestinationTypeEnum destinationType)
    • getDestinationType

      @Nullable public OfferSlice.DestinationTypeEnum getDestinationType()
      The type of the destination
      Returns:
      destinationType
    • setDestinationType

      public void setDestinationType(OfferSlice.DestinationTypeEnum destinationType)
    • duration

      public OfferSlice duration(String duration)
    • getDuration

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

      public org.openapitools.jackson.nullable.JsonNullable<String> getDuration_JsonNullable()
    • setDuration_JsonNullable

      public void setDuration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> duration)
    • setDuration

      public void setDuration(String duration)
    • fareBrandName

      public OfferSlice fareBrandName(String fareBrandName)
    • getFareBrandName

      @Nullable public String 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

      public org.openapitools.jackson.nullable.JsonNullable<String> getFareBrandName_JsonNullable()
    • setFareBrandName_JsonNullable

      public void setFareBrandName_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> fareBrandName)
    • setFareBrandName

      public void setFareBrandName(String fareBrandName)
    • id

      public OfferSlice id(String id)
    • getId

      @Nullable public String 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

      public void setId(String id)
    • origin

      public OfferSlice origin(OfferSliceOrigin origin)
    • getOrigin

      @Nullable @Valid public @Valid OfferSliceOrigin getOrigin()
      Get origin
      Returns:
      origin
    • setOrigin

      public void setOrigin(OfferSliceOrigin origin)
    • originType

      public OfferSlice originType(OfferSlice.OriginTypeEnum originType)
    • getOriginType

      @Nullable public OfferSlice.OriginTypeEnum getOriginType()
      The type of the origin
      Returns:
      originType
    • setOriginType

      public void setOriginType(OfferSlice.OriginTypeEnum originType)
    • segments

      public OfferSlice segments(List<OfferSliceSegment> segments)
    • addSegmentsItem

      public OfferSlice addSegmentsItem(OfferSliceSegment segmentsItem)
    • getSegments

      @Nullable @Valid public @Valid List<OfferSliceSegment> 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<OfferSliceSegment> 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