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 ConstantsEnum ConstantDescriptionAlternative Payment MethodsDigital Wallet TypesIntended for payments like PayPal Express Checkout. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanisApplePay(String paymentType) static booleanisBankAccount(String paymentType) static booleanstatic booleanstatic booleanstatic booleanisCreditCard(String paymentType) static booleanisCustomerCredit(String paymentType) static booleanisCustomerPayment(String paymentType) static booleanisElectronicCheck(String paymentType) booleanDeprecated.static booleanisGiftCard(String paymentType) static booleanisGooglePay(String paymentType) static booleanstatic booleanisMoneyOrder(String paymentType) static booleanstatic booleanisPurchaseOrder(String paymentType) static booleanisStoreCredit(String paymentType) static booleanisThirdPartyAccount(String paymentType) static booleanstatic DefaultPaymentTypesReturns 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, valueOfMethods 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:
getFriendlyNamein interfacePaymentType
-
isFinalPayment
Deprecated.- Specified by:
isFinalPaymentin interfacePaymentType
-