public enum UsagePattern extends Enum<UsagePattern>
| Enum Constant and Description |
|---|
_UNKNOWN
Unknown values will be mapped by this enum member
|
DEFERRED
Pay after use, non-recurring post-paid, variable amount, irregular frequency.
|
IMMEDIATE
On-demand instant payments – non-recurring, pre-paid, variable amount, variable frequency.
|
INSTALLMENT_POSTPAID
Merchant-managed installment plan when the "amount" to be paid and the "billing frequency" are fixed, but there is a defined number of payments with the payment due after the goods/services are delivered.
|
INSTALLMENT_PREPAID
Merchant-managed installment plan when the "amount" to be paid and the "billing frequency" are fixed, but there is a defined number of payments with the payment due before the good/service is delivered.
|
RECURRING_POSTPAID
Pay on a fixed date based on usage or consumption after the goods/service is delivered.
|
RECURRING_PREPAID
Pay upfront fixed or variable amount on a fixed date before the goods/service is delivered.
|
SUBSCRIPTION_POSTPAID
Subscription plan where the "amount due" and the "billing frequency" are fixed, and there is no defined duration with the payment due after the goods/services are delivered.
|
SUBSCRIPTION_PREPAID
Subscription plan where the "amount due" and the "billing frequency" are fixed, and there is no defined duration with the payment due before the good/service is delivered.
|
THRESHOLD_POSTPAID
Charge payer when the set amount is reached or monthly billing cycle, whichever comes first, after the goods/service is delivered.
|
THRESHOLD_PREPAID
Charge payer when the set amount is reached or monthly billing cycle, whichever comes first, before the goods/service is delivered.
|
UNSCHEDULED_POSTPAID
Unscheduled card on file plan where the merchant can bill buyer based on an agreed logic, but "amount due" and "frequency" can vary.
|
UNSCHEDULED_PREPAID
Unscheduled card on file plan where the merchant can bill buyer upfront based on an agreed logic, but "amount due" and "frequency" can vary.
|
| Modifier and Type | Method and Description |
|---|---|
static UsagePattern |
constructFromString(String toConvert)
Returns the enum member associated with the given string value.
|
static UsagePattern |
fromString(String toConvert)
Returns the enum member associated with the given string value.
|
String |
toString()
Get string representation of this enum.
|
static List<String> |
toValue(List<UsagePattern> toConvert)
Convert list of UsagePattern values to list of string values.
|
String |
value()
Returns the string value associated with the enum member.
|
static UsagePattern |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UsagePattern[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UsagePattern IMMEDIATE
public static final UsagePattern DEFERRED
public static final UsagePattern RECURRING_PREPAID
public static final UsagePattern RECURRING_POSTPAID
public static final UsagePattern THRESHOLD_PREPAID
public static final UsagePattern THRESHOLD_POSTPAID
public static final UsagePattern SUBSCRIPTION_PREPAID
public static final UsagePattern SUBSCRIPTION_POSTPAID
public static final UsagePattern UNSCHEDULED_PREPAID
public static final UsagePattern UNSCHEDULED_POSTPAID
public static final UsagePattern INSTALLMENT_PREPAID
public static final UsagePattern INSTALLMENT_POSTPAID
public static final UsagePattern _UNKNOWN
public static UsagePattern[] values()
for (UsagePattern c : UsagePattern.values()) System.out.println(c);
public static UsagePattern 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 static UsagePattern constructFromString(String toConvert) throws IOException
toConvert - String value to get enum member.IOException - when provided value is not mapped to any enum member.public static UsagePattern fromString(String toConvert)
toConvert - String value to get enum member.public String value()
public String toString()
toString in class Enum<UsagePattern>public static List<String> toValue(List<UsagePattern> toConvert)
toConvert - The list of UsagePattern values to convert.Copyright © 2025. All rights reserved.