public enum OrderStatus extends Enum<OrderStatus> implements FlowStatus
Enum Constant and Description |
---|
APPROVED
An optional state in a workflow, where before it an be PLACED or IN_PROCESS or REMIND_USER_TO_PROCEED it is in an APPROVED state ready to be processed.
|
BACK_ORDER
If an order was requested but was still accepted inspite of zero inventory.
|
CANCELLED_ADMIN
The order was cancelled by an Admin on the merchant side, irrespective of user getting the order or not.
|
CANCELLED_SYSTEM
The order was cancelled by the system, due to some System related rule failing
|
CANCELLED_USER
The order was cancelled by the user irrespective of user getting the order or not.
|
CAPTURED_AUTO
This is an step before
PLACED_AUTO ; where after an online payment some gateways allow you to CAPTURE the payment. |
CAPTURED_MANUAL
This is an step before
PLACED_MANUAL ; where after an online payment some gateways allow you to CAPTURE the payment.This can be followed by a PLACED_MANUAL or PLACED_AUTO |
CLAIM_REFUND
The entity has claimed a refund after
RETURNED or OrderStatus#CANCELLED |
CLOSED
The order has been fulfilled or reverted and been closed
|
DELIVERED
The order reached the entity
|
DISPATCHED
The order has been dispatched to the entity
|
DISPUTE
The order status is complicated and under dispute
|
FAILED_TRANSACTION_COMPLETE
The order failed during a transaction due to inability of the user to complete the required steps of payment
or ordering.
|
FAILED_TRANSACTION_ERROR
The order failed due to some error or external circumstances.
|
IN_PROCESS
After the order was REQUESTED; it is being validated and is in Process
IN_PROCESS differs from ON_HOLD in the sense that IN_PROCESS there is progress in the natural course. |
OFFLINE
All aspects of the order are now not online and maintained by another system or offline
|
ON_HOLD
The Order is stuck, or waiting for approval or some signal to proceed.
|
PLACED_AUTO
Payment was confirmed & placed.
|
PLACED_MANUAL
Payment was confirmed & placed.
|
PLACED_PARTIAL
Was placed online but for some reason the placement could not be completed online and the same.
Order was then completed in an offline manner. |
READY
Service based Orders, may need to communicate Ready to deliver State.
|
REFUND
The entity was sent a refund
|
REMIND_USER_TO_PROCEED
If an Order requires a user to take the next step or perform an action then
this status should be used.
|
REQUESTED
The entity placed/requested an Order; this has not been realized nor paid or processed.
|
RETURNED
The order was rejected/returned by the entity after it was delivered
|
Modifier and Type | Method and Description |
---|---|
static OrderStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OrderStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name, ordinal
public static final OrderStatus REQUESTED
public static final OrderStatus APPROVED
public static final OrderStatus FAILED_TRANSACTION_COMPLETE
public static final OrderStatus FAILED_TRANSACTION_ERROR
public static final OrderStatus IN_PROCESS
public static final OrderStatus PLACED_AUTO
Order
is now in progress to be sent to the requesting entity (Customer)
public static final OrderStatus PLACED_PARTIAL
public static final OrderStatus PLACED_MANUAL
Order
is now in progress to be sent to the requesting entity (Customer)
public static final OrderStatus DISPATCHED
public static final OrderStatus DELIVERED
public static final OrderStatus RETURNED
public static final OrderStatus CANCELLED_USER
public static final OrderStatus CANCELLED_ADMIN
public static final OrderStatus CANCELLED_SYSTEM
public static final OrderStatus CLAIM_REFUND
RETURNED
or OrderStatus#CANCELLED
public static final OrderStatus REFUND
public static final OrderStatus DISPUTE
public static final OrderStatus CLOSED
public static final OrderStatus OFFLINE
public static final OrderStatus REMIND_USER_TO_PROCEED
public static final OrderStatus CAPTURED_AUTO
PLACED_AUTO
; where after an online payment some gateways allow you to CAPTURE the payment. PLACED_MANUAL
or PLACED_AUTO
public static final OrderStatus CAPTURED_MANUAL
PLACED_MANUAL
; where after an online payment some gateways allow you to CAPTURE the payment.PLACED_MANUAL
or PLACED_AUTO
public static final OrderStatus ON_HOLD
public static final OrderStatus READY
public static final OrderStatus BACK_ORDER
public static OrderStatus[] values()
for (OrderStatus c : OrderStatus.values()) System.out.println(c);
public static OrderStatus 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 nullCopyright © 2018. All rights reserved.