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 ConstantsEnum ConstantDescriptionIntended for payments like PayPal Express Checkout. -
Method Summary
Modifier and TypeMethodDescriptionThe friendly name of the payment type.static booleanisBankAccount(String paymentType) static booleanstatic booleanstatic booleanstatic booleanisCreditCard(String paymentType) static booleanisCustomerCredit(String paymentType) static booleanisCustomerPayment(String paymentType) booleanDeprecated.since 1.7.2, no longer usedstatic booleanisGiftCard(String paymentType) static booleanisMoneyOrder(String paymentType) static booleanisPurchaseOrder(String paymentType) static booleanisStoreCredit(String paymentType) static booleanisThirdPartyAccount(String paymentType) static booleanstatic DefaultPaymentTypesReturns 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:PaymentTypeThe friendly name of the payment type.- Specified by:
getFriendlyNamein interfacePaymentType- Returns:
- the friendly name of the payment type
-
isFinalPayment
Deprecated.since 1.7.2, no longer used- Specified by:
isFinalPaymentin interfacePaymentType
-