Class SeatService

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]") public class SeatService extends Object
A bookable seat is a special kind of service. Only one seat can be booked per passenger, per segment
  • Field Details

  • Constructor Details

    • SeatService

      public SeatService()
  • Method Details

    • id

      public SeatService id(String id)
    • getId

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

      public void setId(String id)
    • passengerId

      public SeatService passengerId(String passengerId)
    • getPassengerId

      @Nonnull @NotNull public @NotNull String getPassengerId()
      The passenger that this seat is for
      Returns:
      passengerId
    • setPassengerId

      public void setPassengerId(String passengerId)
    • totalAmount

      public SeatService totalAmount(String totalAmount)
    • getTotalAmount

      @Nonnull @NotNull public @NotNull String getTotalAmount()
      The total price of the seat, including taxes
      Returns:
      totalAmount
    • setTotalAmount

      public void setTotalAmount(String totalAmount)
    • totalCurrency

      public SeatService 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)
    • 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