Interface PaymentState
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
PaymentState.PaymentStateEnum
Indicates the payment status for the Order.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumpossible values of PaymentState -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PaymentStateIndicates that payment balance is due for the Order.static final PaymentStateIndicates that payment for the Order is made on a credit basis.static final PaymentStateIndicates that payment for the Order has failed.static final PaymentStateIndicates that the Order is paid for.static final PaymentStateIndicates that payment for the Order is pending. -
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentStatefactory 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:
getJsonNamein 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
-