Package com.flagright.api.types
Enum PaymentMethod
- java.lang.Object
-
- java.lang.Enum<PaymentMethod>
-
- com.flagright.api.types.PaymentMethod
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PaymentMethod>
public enum PaymentMethod extends java.lang.Enum<PaymentMethod>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()static PaymentMethodvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PaymentMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACH
public static final PaymentMethod ACH
-
CARD
public static final PaymentMethod CARD
-
IBAN
public static final PaymentMethod IBAN
-
UPI
public static final PaymentMethod UPI
-
GENERIC_BANK_ACCOUNT
public static final PaymentMethod GENERIC_BANK_ACCOUNT
-
MPESA
public static final PaymentMethod MPESA
-
SWIFT
public static final PaymentMethod SWIFT
-
WALLET
public static final PaymentMethod WALLET
-
CHECK
public static final PaymentMethod CHECK
-
CASH
public static final PaymentMethod CASH
-
NPP
public static final PaymentMethod NPP
-
-
Method Detail
-
values
public static PaymentMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PaymentMethod c : PaymentMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PaymentMethod valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<PaymentMethod>
-
-