public enum PaymentMethod extends Enum<PaymentMethod>
Enum Constant and Description |
---|
CASH |
COD
Cash On Delivery
|
CREDIT_CARD |
DEBT_CARD |
EMAIL
Email was the mode of offline communication to place the order.
|
NET_BANKING
Net banking options can cross cut, Debit Cards and other ONLINE methods.
|
OFFLINE_SERVICE_PROVIDER
Some form of offline processing was used
|
ONLINE_SERVICE_PROVIDER
A Payment gateway, or some other payment/e-commerce solution was used to make the payment
(we may not have further visibility into the method except that it was online) |
ORDER_FORM
An Order form was provided by the site; however no explicit
ONLINE_SERVICE_PROVIDER was involved. |
OTHER |
PART_PAYMENT
Mixed , part Online, part COD
|
PAY_LATER
A system where the need for payment is deferred to a later stage.
|
PHONE
Some form of Phone banking was used
|
PORTAL_COUPON
A online coupon given to the entity to make purchase
|
PORTAL_CREDIT
The portal may have some pre-assigned credit the user may have earned by being a member
or some balance from some previous transaction.
|
WORK_FLOW
A more complex work flow was involved involving multiple steps in the payment method.
One may use Order.getSteps() to capture the steps involved |
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName() |
void |
setDisplayName(String displayName) |
static PaymentMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaymentMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaymentMethod CASH
public static final PaymentMethod CREDIT_CARD
public static final PaymentMethod DEBT_CARD
public static final PaymentMethod PART_PAYMENT
public static final PaymentMethod COD
public static final PaymentMethod ONLINE_SERVICE_PROVIDER
public static final PaymentMethod OFFLINE_SERVICE_PROVIDER
public static final PaymentMethod ORDER_FORM
ONLINE_SERVICE_PROVIDER
was involved.
This is possible when the process is manual/offline but the Site only presents the Order formpublic static final PaymentMethod WORK_FLOW
Order.getSteps()
to capture the steps involvedpublic static final PaymentMethod PAY_LATER
Order.getSteps()
to capture the steps involvedpublic static final PaymentMethod PHONE
public static final PaymentMethod EMAIL
public static final PaymentMethod PORTAL_CREDIT
public static final PaymentMethod PORTAL_COUPON
public static final PaymentMethod OTHER
public static final PaymentMethod NET_BANKING
public static PaymentMethod[] values()
for (PaymentMethod c : PaymentMethod.values()) System.out.println(c);
public static PaymentMethod 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 void setDisplayName(String displayName)
public String getDisplayName()
Copyright © 2018. All rights reserved.