Enum Class OrderChange.RefundToEnum

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

public static enum OrderChange.RefundToEnum extends Enum<OrderChange.RefundToEnum>
Where the refund, once confirmed, will be sent. Refunds are indicated by a negative `change_total_amount`. If the change does not require a refund, this field will be `null`. `original_form_of_payment` refers to the form of payment used to create the order.
  • Enum Constant Details

  • Method Details

    • values

      public static OrderChange.RefundToEnum[] 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 OrderChange.RefundToEnum 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<OrderChange.RefundToEnum>
    • fromValue

      public static OrderChange.RefundToEnum fromValue(String value)