Enum Class DefaultPaymentTypes
java.lang.Object
java.lang.Enum<DefaultPaymentTypes>
com.broadleafcommerce.paymentgateway.domain.enums.DefaultPaymentTypes
- All Implemented Interfaces:
PaymentType
,Serializable
,Comparable<DefaultPaymentTypes>
,Constable
This represents types of payments that can be applied to a cart. There might be multiple cart payments with the same type on a cart if the customer can pay with multiple cards (like 2 credit cards or 3 gift cards).
- Author:
- Phillip Verheyden (phillipuniverse), Chris Kittrell (ckittrell)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAlternative Payment MethodsDigital Wallet TypesIntended for payments like PayPal Express Checkout. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
isApplePay
(String paymentType) static boolean
isBankAccount
(String paymentType) static boolean
static boolean
static boolean
static boolean
isCreditCard
(String paymentType) static boolean
isCustomerCredit
(String paymentType) static boolean
isCustomerPayment
(String paymentType) static boolean
isElectronicCheck
(String paymentType) boolean
Deprecated.static boolean
isGiftCard
(String paymentType) static boolean
isGooglePay
(String paymentType) static boolean
static boolean
isMoneyOrder
(String paymentType) static boolean
static boolean
isPurchaseOrder
(String paymentType) static boolean
isStoreCredit
(String paymentType) static boolean
isThirdPartyAccount
(String paymentType) static boolean
static DefaultPaymentTypes
Returns the enum constant of this class with the specified name.static DefaultPaymentTypes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.broadleafcommerce.paymentgateway.domain.enums.PaymentType
name
-
Enum Constant Details
-
GIFT_CARD
-
CREDIT_CARD
-
ACH
-
BANK_ACCOUNT
-
CHECK
-
ELECTRONIC_CHECK
-
WIRE
-
MONEY_ORDER
-
CUSTOMER_CREDIT
-
STORE_CREDIT
-
COD
-
CUSTOMER_PAYMENT
-
PURCHASE_ORDER
-
THIRD_PARTY_ACCOUNT
Intended for payments like PayPal Express Checkout. -
PAYPAL
Digital Wallet Types -
APPLE_PAY
-
GOOGLE_PAY
-
KNET
Alternative Payment Methods -
BNPL
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
isGiftCard
-
isCreditCard
-
isACH
-
isBankAccount
-
isCheck
-
isElectronicCheck
-
isMoneyOrder
-
isWire
-
isCustomerCredit
-
isStoreCredit
-
isCOD
-
isCustomerPayment
-
isPurchaseOrder
-
isThirdPartyAccount
-
isPayPal
-
isApplePay
-
isGooglePay
-
isKNET
-
isBNPL
-
getFriendlyName
- Specified by:
getFriendlyName
in interfacePaymentType
-
isFinalPayment
Deprecated.- Specified by:
isFinalPayment
in interfacePaymentType
-