Interface PaymentState
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
PaymentState.PaymentStateEnum
Indicates the payment status for the Order.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
possible values of PaymentState -
Field Summary
Modifier and TypeFieldDescriptionstatic final PaymentState
Indicates that payment balance is due for the Order.static final PaymentState
Indicates that payment for the Order is made on a credit basis.static final PaymentState
Indicates that payment for the Order has failed.static final PaymentState
Indicates that the Order is paid for.static final PaymentState
Indicates that payment for the Order is pending. -
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentState
factory method for a enum value of PaymentState if no enum has been found an anonymous instance will be createdstatic Optional<PaymentState>
findEnumViaJsonName
(String jsonName) method to find enum using the JSON valuethe JSON valuename()
the enum valuetoString()
convert value to stringstatic PaymentState[]
values()
possible enum values
-
Field Details
-
BALANCE_DUE
Indicates that payment balance is due for the Order.
-
FAILED
Indicates that payment for the Order has failed.
-
PENDING
Indicates that payment for the Order is pending.
-
CREDIT_OWED
Indicates that payment for the Order is made on a credit basis.
-
PAID
Indicates that the Order is paid for.
-
-
Method Details
-
getJsonName
String getJsonName()the JSON value- Specified by:
getJsonName
in interfaceJsonEnum
- Returns:
- json value
-
name
String name()the enum value -
toString
String toString()convert value to string -
findEnum
factory method for a enum value of PaymentState if no enum has been found an anonymous instance will be created- Parameters:
value
- the enum value to be wrapped- Returns:
- enum instance
-
findEnumViaJsonName
method to find enum using the JSON value- Parameters:
jsonName
- the json value to be wrapped- Returns:
- optional of enum instance
-
values
possible enum values- Returns:
- array of possible enum values
-