Class CreatePaymentRequestDataPayment

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]") public class CreatePaymentRequestDataPayment extends Object
The payment details to use to pay for the order
  • Field Details

  • Constructor Details

    • CreatePaymentRequestDataPayment

      public CreatePaymentRequestDataPayment()
  • Method Details

    • amount

      public CreatePaymentRequestDataPayment amount(String amount)
    • getAmount

      @Nonnull @NotNull public @NotNull String getAmount()
      The amount of the payment for the order, plus selected services. This should be the `total_amount` of the order you're paying for plus the `total_amount`s of all of the services specified under the `services` of the order.
      Returns:
      amount
    • setAmount

      public void setAmount(String amount)
    • currency

      public CreatePaymentRequestDataPayment currency(String currency)
    • getCurrency

      @Nonnull @NotNull public @NotNull String getCurrency()
      The currency of the `amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. This should be the `total_currency` of the order.
      Returns:
      currency
    • setCurrency

      public void setCurrency(String currency)
    • type

    • getType

      @Nonnull @NotNull public @NotNull CreatePaymentRequestDataPayment.TypeEnum getType()
      The payment method you want to use for 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(CreatePaymentRequestDataPayment.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