public enum DefaultPaymentTypes extends Enum<DefaultPaymentTypes> implements PaymentType
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).
Enum Constant and Description |
---|
BANK_ACCOUNT |
CHECK |
COD |
CREDIT_CARD |
CUSTOMER_CREDIT |
CUSTOMER_PAYMENT |
ELECTRONIC_CHECK |
GIFT_CARD |
MONEY_ORDER |
PURCHASE_ORDER |
THIRD_PARTY_ACCOUNT
Intended for payments like PayPal Express Checkout.
|
WIRE |
Modifier and Type | Method and Description |
---|---|
String |
getFriendlyName() |
boolean |
isFinalPayment() |
static DefaultPaymentTypes |
valueOf(String name)
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.
|
public static final DefaultPaymentTypes GIFT_CARD
public static final DefaultPaymentTypes CREDIT_CARD
public static final DefaultPaymentTypes BANK_ACCOUNT
public static final DefaultPaymentTypes CHECK
public static final DefaultPaymentTypes ELECTRONIC_CHECK
public static final DefaultPaymentTypes WIRE
public static final DefaultPaymentTypes MONEY_ORDER
public static final DefaultPaymentTypes CUSTOMER_CREDIT
public static final DefaultPaymentTypes COD
public static final DefaultPaymentTypes CUSTOMER_PAYMENT
public static final DefaultPaymentTypes PURCHASE_ORDER
public static final DefaultPaymentTypes THIRD_PARTY_ACCOUNT
public static DefaultPaymentTypes[] values()
for (DefaultPaymentTypes c : DefaultPaymentTypes.values()) System.out.println(c);
public static DefaultPaymentTypes 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 String getFriendlyName()
getFriendlyName
in interface PaymentType
public boolean isFinalPayment()
isFinalPayment
in interface PaymentType
Copyright © 2021. All rights reserved.