public enum PaymentMethod extends Enum<PaymentMethod>
Enum Constant and Description |
---|
cardtip |
cash |
cashin |
cashout |
cashrefund |
cheque |
chequerefund |
credit |
creditredeem |
daycashout |
free |
invoice |
invoicerefund |
magcard |
magcardrefund |
membercard |
membercardrefund |
paperin |
paperout |
ticket |
ticketremain |
topup |
Modifier and Type | Method and Description |
---|---|
static String |
friendlyName(String key) |
PaymentGateway |
getGateway() |
String |
getGatewayKey() |
JPanelConfigPayment.Gateways |
getGatewayType() |
boolean |
isGatewayPayment()
Check if gateway transactions are involved for this payment method.
|
boolean |
isRefund()
Check if this is a refund related action.
|
static PaymentMethod |
valueOf(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.
|
public static final PaymentMethod cash
public static final PaymentMethod cashrefund
public static final PaymentMethod cashin
public static final PaymentMethod cashout
public static final PaymentMethod daycashout
public static final PaymentMethod cheque
public static final PaymentMethod chequerefund
public static final PaymentMethod free
public static final PaymentMethod invoice
public static final PaymentMethod invoicerefund
public static final PaymentMethod magcard
public static final PaymentMethod magcardrefund
public static final PaymentMethod membercard
public static final PaymentMethod membercardrefund
public static final PaymentMethod credit
public static final PaymentMethod creditredeem
public static final PaymentMethod paperin
public static final PaymentMethod paperout
public static final PaymentMethod ticket
public static final PaymentMethod ticketremain
public static final PaymentMethod topup
public static final PaymentMethod cardtip
public static PaymentMethod[] values()
for (PaymentMethod c : PaymentMethod.values()) System.out.println(c);
public static PaymentMethod 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 nullpublic boolean isGatewayPayment()
public PaymentGateway getGateway()
public JPanelConfigPayment.Gateways getGatewayType()
public String getGatewayKey()
public boolean isRefund()
Copyright © 2021. All rights reserved.