public class PaymentType extends Object implements Serializable, BroadleafEnumerationType
This represents types of payments that can be applied to an order. There might be multiple order payments with the same type on an order if the customer can pay with multiple cards (like 2 credit cards or 3 gift cards).
OrderPayment},
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static PaymentType |
BANK_ACCOUNT |
static PaymentType |
CHECK |
static PaymentType |
COD |
static PaymentType |
CREDIT_CARD |
static PaymentType |
CUSTOMER_CREDIT |
static PaymentType |
ELECTRONIC_CHECK |
static PaymentType |
GIFT_CARD |
static PaymentType |
MONEY_ORDER |
static PaymentType |
THIRD_PARTY_ACCOUNT
Intended for modules like PayPal Express Checkout
It is important to note that in this system an `UNCONFIRMED` `THIRD_PARTY_ACCOUNT` has a specific use case.
|
static PaymentType |
WIRE |
| Constructor and Description |
|---|
PaymentType() |
PaymentType(String type,
String friendlyType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getFriendlyType() |
static PaymentType |
getInstance(String type) |
String |
getType() |
int |
hashCode() |
public static final PaymentType GIFT_CARD
public static final PaymentType CREDIT_CARD
public static final PaymentType BANK_ACCOUNT
public static final PaymentType CHECK
public static final PaymentType ELECTRONIC_CHECK
public static final PaymentType WIRE
public static final PaymentType MONEY_ORDER
public static final PaymentType CUSTOMER_CREDIT
public static final PaymentType COD
public static final PaymentType THIRD_PARTY_ACCOUNT
public static PaymentType getInstance(String type)
public String getType()
getType in interface BroadleafEnumerationTypepublic String getFriendlyType()
getFriendlyType in interface BroadleafEnumerationTypeCopyright © 2014. All Rights Reserved.