Class OfferService

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

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

  • Constructor Details

    • OfferService

      public OfferService()
  • Method Details

    • id

      public OfferService id(String id)
    • getId

      @Nullable public String getId()
      Duffel's unique identifier for the service
      Returns:
      id
    • setId

      public void setId(String id)
    • maximumQuantity

      public OfferService maximumQuantity(Integer maximumQuantity)
    • getMaximumQuantity

      @Nullable @Min(1L) public @Min(1L) Integer getMaximumQuantity()
      The maximum quantity of this service that can be booked with an order minimum: 1
      Returns:
      maximumQuantity
    • setMaximumQuantity

      public void setMaximumQuantity(Integer maximumQuantity)
    • metadata

      public OfferService metadata(OfferServiceMetadata metadata)
    • getMetadata

      @Nullable @Valid public @Valid OfferServiceMetadata getMetadata()
      Get metadata
      Returns:
      metadata
    • setMetadata

      public void setMetadata(OfferServiceMetadata metadata)
    • passengerIds

      public OfferService passengerIds(List<String> passengerIds)
    • addPassengerIdsItem

      public OfferService addPassengerIdsItem(String passengerIdsItem)
    • getPassengerIds

      @Nullable public List<String> getPassengerIds()
      The list of passenger `id`s the service applies to. If you add this service to an order it will apply to all the passengers in this list. For services where the type is `baggage`, this list will include only a single passenger.
      Returns:
      passengerIds
    • setPassengerIds

      public void setPassengerIds(List<String> passengerIds)
    • segmentIds

      public OfferService segmentIds(List<String> segmentIds)
    • addSegmentIdsItem

      public OfferService addSegmentIdsItem(String segmentIdsItem)
    • getSegmentIds

      @Nullable public List<String> getSegmentIds()
      The list of segment `id`s the service applies to. If you add this service to an order it will apply to all the segments in this list. For services where the type is `baggage`, depending on the airline, this list includes all the segments of all slices or all the segments of a single slice.
      Returns:
      segmentIds
    • setSegmentIds

      public void setSegmentIds(List<String> segmentIds)
    • totalAmount

      public OfferService totalAmount(String totalAmount)
    • getTotalAmount

      @Nullable public String getTotalAmount()
      The total price of the service for all passengers and segments it applies to, including taxes. This price is for a single unit of the service.
      Returns:
      totalAmount
    • setTotalAmount

      public void setTotalAmount(String totalAmount)
    • totalCurrency

      public OfferService totalCurrency(String totalCurrency)
    • getTotalCurrency

      @Nullable public String getTotalCurrency()
      The currency of the `total_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. It will match your organisation's billing currency unless you’re using Duffel as an accredited IATA agent, in which case it will be in the currency provided by the airline (which will usually be based on the country where your IATA agency is registered).
      Returns:
      totalCurrency
    • setTotalCurrency

      public void setTotalCurrency(String totalCurrency)
    • type

      public OfferService type(OfferService.TypeEnum type)
    • getType

      @Nullable public OfferService.TypeEnum getType()
      The type of the service. For now we only return services of type `baggage` but we will return other types in the future. We won't consider adding new service types a breaking change.
      Returns:
      type
    • setType

      public void setType(OfferService.TypeEnum type)
    • 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