Enum DefaultPaymentTypes
java.lang.Object
java.lang.Enum<DefaultPaymentTypes>
com.broadleafcommerce.cartoperation.domain.enums.DefaultPaymentTypes
- All Implemented Interfaces:
PaymentType
,Serializable
,Comparable<DefaultPaymentTypes>
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)
-
Enum Constant Summary
Enum ConstantDescriptionIntended for payments like PayPal Express Checkout. -
Method Summary
Modifier and TypeMethodDescriptionThe friendly name of the payment type.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) boolean
Deprecated.since 1.7.2, no longer usedstatic boolean
isGiftCard
(String paymentType) static boolean
isMoneyOrder
(String paymentType) 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 type with the specified name.static DefaultPaymentTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GIFT_CARD
-
CREDIT_CARD
-
BANK_ACCOUNT
-
CASH
-
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. -
APPLE_PAY
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isGiftCard
-
isCreditCard
-
isBankAccount
-
isCash
-
isCheck
-
isWire
-
isMoneyOrder
-
isCustomerCredit
-
isStoreCredit
-
isCOD
-
isCustomerPayment
-
isPurchaseOrder
-
isThirdPartyAccount
-
getFriendlyName
Description copied from interface:PaymentType
The friendly name of the payment type.- Specified by:
getFriendlyName
in interfacePaymentType
- Returns:
- the friendly name of the payment type
-
isFinalPayment
Deprecated.since 1.7.2, no longer used- Specified by:
isFinalPayment
in interfacePaymentType
-