Enum Class Payment.TypeEnum

java.lang.Object
java.lang.Enum<Payment.TypeEnum>
com.duffel.sdk.model.Payment.TypeEnum
All Implemented Interfaces:
Serializable, Comparable<Payment.TypeEnum>, Constable
Enclosing class:
Payment

public static enum Payment.TypeEnum extends Enum<Payment.TypeEnum>
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>.
  • Enum Constant Details

  • Method Details

    • values

      public static Payment.TypeEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Payment.TypeEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Payment.TypeEnum>
    • fromValue

      public static Payment.TypeEnum fromValue(String value)