Class OrderService

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

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

  • Constructor Details

    • OrderService

      public OrderService()
  • Method Details

    • id

      public OrderService id(String id)
    • getId

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

      public void setId(String id)
    • metadata

      public OrderService metadata(OrderServiceMetadata metadata)
    • getMetadata

      @Nonnull @NotNull @Valid public @NotNull @Valid OrderServiceMetadata getMetadata()
      Get metadata
      Returns:
      metadata
    • setMetadata

      public void setMetadata(OrderServiceMetadata metadata)
    • passengerIds

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

      public OrderService addPassengerIdsItem(String passengerIdsItem)
    • getPassengerIds

      @Nonnull @NotNull public @NotNull List<String> getPassengerIds()
      List of passenger `id`s the service applies to. The service applies to all the passengers in this list.
      Returns:
      passengerIds
    • setPassengerIds

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

      public OrderService quantity(Integer quantity)
    • getQuantity

      @Nonnull @NotNull @Min(1L) public @NotNull @Min(1L) Integer getQuantity()
      The quantity of the service that was booked minimum: 1
      Returns:
      quantity
    • setQuantity

      public void setQuantity(Integer quantity)
    • segmentIds

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

      public OrderService addSegmentIdsItem(String segmentIdsItem)
    • getSegmentIds

      @Nonnull @NotNull public @NotNull List<String> getSegmentIds()
      List of segment `id`s the service applies to. The service applies to all the segments in this list.
      Returns:
      segmentIds
    • setSegmentIds

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

      public OrderService totalAmount(String totalAmount)
    • getTotalAmount

      @Nonnull @NotNull public @NotNull String getTotalAmount()
      The total price of the service for all passengers and segments it applies to, accounting for quantity and including taxes
      Returns:
      totalAmount
    • setTotalAmount

      public void setTotalAmount(String totalAmount)
    • totalCurrency

      public OrderService totalCurrency(String totalCurrency)
    • getTotalCurrency

      @Nonnull @NotNull public @NotNull 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 OrderService type(OrderService.TypeEnum type)
    • getType

      @Nonnull @NotNull public @NotNull OrderService.TypeEnum getType()
      The type of the service. For now we only return services of type `baggage` and `seat` 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(OrderService.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