Class Payment1

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]") public class Payment1 extends Object
A payment represents a payment for a booking with an airline
  • Field Details

  • Constructor Details

    • Payment1

      public Payment1()
  • Method Details

    • amount

      public Payment1 amount(String amount)
    • getAmount

      @Nullable public String getAmount()
      The price of the payment
      Returns:
      amount
    • setAmount

      public void setAmount(String amount)
    • createdAt

      public Payment1 createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable @Valid public @Valid OffsetDateTime getCreatedAt()
      The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the payment was created
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • currency

      public Payment1 currency(String currency)
    • getCurrency

      @Nullable public String getCurrency()
      The currency of the `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:
      currency
    • getCurrency_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getCurrency_JsonNullable()
    • setCurrency_JsonNullable

      public void setCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> currency)
    • setCurrency

      public void setCurrency(String currency)
    • id

      public Payment1 id(String id)
    • getId

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

      public void setId(String id)
    • liveMode

      public Payment1 liveMode(Boolean liveMode)
    • getLiveMode

      @Nullable public Boolean getLiveMode()
      Whether the __Payment__ was created in live mode. This field will be set to `true` if the __Payment__ was created in live mode, or `false` if it was created in test mode.
      Returns:
      liveMode
    • setLiveMode

      public void setLiveMode(Boolean liveMode)
    • type

      public Payment1 type(Payment1.TypeEnum type)
    • getType

      @Nullable public Payment1.TypeEnum getType()
      The type of payment applied to this order. If you are an IATA agent with your own agreements with airlines, in some cases, you can pay using ARC/BSP cash by specifying `arc_bsp_cash`. Otherwise, you must pay using your Duffel account's balance by specifying `balance`. In [test mode](/docs/api/overview/test-mode), your balance is unlimited. If you're not sure which of these options applies to you, get in touch with the Duffel support team at <help@duffel.com>.
      Returns:
      type
    • setType

      public void setType(Payment1.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