public enum EPaymentMethod extends Enum<EPaymentMethod>
Payment methods.
| Enum Constant and Description |
|---|
ANY
1, any, it's means that buyer can pay 100% with any method
(e.g.
|
BANK_CHEQUE
4, bank cheque.
|
BANK_TRANSFER
3, bank transfer.
|
BANK_TRANSFER_CHEQUE
6, bank transfer or cheque.
|
CASH
2, cash.
|
CASH_BANK_TRANSFER
5, cash or bank transfer.
|
CASH_BANK_TRANSFER_CHEQUE
7, cash, bank transfer or cheque.
|
ONLINE
0, buyer must pay right now with any online method
(e.g.
|
PARTIAL_ONLINE
8, in case when order must be payed partially online
e.g 50% and the rest with any methods - online, bank transfer,
cash or check.
|
| Modifier and Type | Method and Description |
|---|---|
static EPaymentMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EPaymentMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EPaymentMethod ONLINE
0, buyer must pay right now with any online method (e.g. credit card, PayPal).
public static final EPaymentMethod ANY
1, any, it's means that buyer can pay 100% with any method (e.g. with cash when goods has been delivered), and if order can be payed partially with several methods, e.g. 50% online, 50% bank transfer, cash or cheque.
public static final EPaymentMethod CASH
2, cash.
public static final EPaymentMethod BANK_TRANSFER
3, bank transfer.
public static final EPaymentMethod BANK_CHEQUE
4, bank cheque.
public static final EPaymentMethod CASH_BANK_TRANSFER
5, cash or bank transfer.
public static final EPaymentMethod BANK_TRANSFER_CHEQUE
6, bank transfer or cheque.
public static final EPaymentMethod CASH_BANK_TRANSFER_CHEQUE
7, cash, bank transfer or cheque.
public static final EPaymentMethod PARTIAL_ONLINE
8, in case when order must be payed partially online e.g 50% and the rest with any methods - online, bank transfer, cash or check.
public static EPaymentMethod[] values()
for (EPaymentMethod c : EPaymentMethod.values()) System.out.println(c);
public static EPaymentMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2017–2018. All rights reserved.