| 483 |
rajveer |
1 |
/**
|
| 4302 |
rajveer |
2 |
* Autogenerated by Thrift
|
| 483 |
rajveer |
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.order;
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
import java.util.Map;
|
|
|
10 |
import java.util.HashMap;
|
|
|
11 |
import org.apache.thrift.TEnum;
|
| 4302 |
rajveer |
12 |
public enum OrderStatus implements TEnum{
|
|
|
13 |
PAYMENT_PENDING(0, "Waiting for payment"),
|
|
|
14 |
PAYMENT_FAILED(1, "Payment Failed"),
|
|
|
15 |
INIT(2, "Verification Pending"),
|
|
|
16 |
SUBMITTED_FOR_PROCESSING(3, "In Process"),
|
|
|
17 |
ACCEPTED(4, "In Process"),
|
|
|
18 |
INVENTORY_LOW(5, "In Process"),
|
|
|
19 |
REJECTED(6, "In Process"),
|
|
|
20 |
BILLED(7, "Ready to Ship"),
|
|
|
21 |
PAYMENT_FLAGGED(8, "Payment Flagged"),
|
|
|
22 |
SHIPPED_FROM_WH(9, "In Transit"),
|
|
|
23 |
SHIPPED_TO_LOGST(10, "In Transit"),
|
|
|
24 |
PAYMENT_FLAGGED_DENIED(11, "Payment Denied"),
|
|
|
25 |
DELIVERY_SUCCESS(12, "Delivered"),
|
|
|
26 |
CANCEL_REQUEST_RECEIVED(13, "Cancellation Requested"),
|
|
|
27 |
CANCEL_REQUEST_CONFIRMED(14, "Cancellation Requested"),
|
|
|
28 |
CANCELLED_ON_CUSTOMER_REQUEST(15, "Cancelled"),
|
|
|
29 |
CANCELLED_DUE_TO_LOW_INVENTORY(16, "Cancelled"),
|
|
|
30 |
COMPLETED(17, "Completed"),
|
|
|
31 |
CANCELED(18, "Canceled"),
|
|
|
32 |
FAILED(19, "Failed"),
|
|
|
33 |
SALES_RETURN_IN_TRANSIT(20, "Returning to origin"),
|
|
|
34 |
SALES_RET_RECEIVED(21, "Returned to origin"),
|
| 4452 |
rajveer |
35 |
DOA_PICKUP_REQUEST_RAISED(22, "DOA pickup in process"),
|
|
|
36 |
DOA_PICKUP_CONFIRMED(23, "DOA pickup in process"),
|
| 4302 |
rajveer |
37 |
DOA_RETURN_IN_TRANSIT(24, "DOA In Transit"),
|
| 4452 |
rajveer |
38 |
DOA_RECEIVED_PRESTINE(25, "DOA received"),
|
| 4302 |
rajveer |
39 |
DOA_CERT_INVALID(26, "Invalid DOA"),
|
|
|
40 |
DOA_CERT_VALID(27, "DOA In process"),
|
|
|
41 |
SALES_RET_RESHIPPED(28, "Reshipped"),
|
|
|
42 |
DOA_INVALID_RESHIPPED(29, "Reshipped"),
|
| 4452 |
rajveer |
43 |
DOA_VALID_RESHIPPED(30, "Reshipped"),
|
| 4302 |
rajveer |
44 |
SALES_RET_REFUNDED(31, "Refunded"),
|
|
|
45 |
DOA_VALID_REFUNDED(32, "Refunded"),
|
|
|
46 |
DOA_INVALID_REFUNDED(33, "Refunded"),
|
| 4303 |
rajveer |
47 |
REFUNDED(34, "Refunded"),
|
|
|
48 |
LOW_INV_PO_RAISED(35, "In Process"),
|
|
|
49 |
LOW_INV_REVERSAL_IN_PROCESS(36, "In Process"),
|
| 4369 |
rajveer |
50 |
LOW_INV_NOT_AVAILABLE_AT_HOTSPOT(37, "In Process"),
|
|
|
51 |
LOW_INV_PO_RAISED_TIMEOUT(38, "In Process"),
|
| 4410 |
rajveer |
52 |
LOW_INV_REVERSAL_TIMEOUT(39, "In Process"),
|
| 4421 |
mandeep.dh |
53 |
MANIFESTED(40, "Ready to Ship"),
|
| 4452 |
rajveer |
54 |
CAPTURE_IN_PROCESS(41, "In Process"),
|
|
|
55 |
DOA_REQUEST_RECEIVED(42, "DOA Request received"),
|
|
|
56 |
DOA_REQUEST_AUTHORIZED(43, "DOA Request authorized"),
|
|
|
57 |
DOA_PICKUP_DENIED(44, "DOA Pickup Denied"),
|
|
|
58 |
DOA_RECEIVED_DAMAGED(45, "DOA Received Damaged"),
|
|
|
59 |
DOA_LOST_IN_TRANSIT(46, "DOA Lost in Transit");
|
|
|
60 |
|
| 4302 |
rajveer |
61 |
|
|
|
62 |
private static final Map<Integer, OrderStatus> BY_VALUE = new HashMap<Integer,OrderStatus>() {{
|
|
|
63 |
for(OrderStatus val : OrderStatus.values()) {
|
|
|
64 |
put(val.getValue(), val);
|
|
|
65 |
}
|
|
|
66 |
}};
|
| 483 |
rajveer |
67 |
|
|
|
68 |
private final int value;
|
| 4302 |
rajveer |
69 |
|
|
|
70 |
private final String description;
|
|
|
71 |
|
|
|
72 |
private OrderStatus(int value, String description) {
|
| 483 |
rajveer |
73 |
this.value = value;
|
| 4302 |
rajveer |
74 |
this.description = description;
|
| 483 |
rajveer |
75 |
}
|
|
|
76 |
|
|
|
77 |
/**
|
| 4302 |
rajveer |
78 |
* Get the description of this enum value.
|
|
|
79 |
*/
|
|
|
80 |
public String getDescription() {
|
|
|
81 |
return description;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
/**
|
| 483 |
rajveer |
85 |
* Get the integer value of this enum value, as defined in the Thrift IDL.
|
|
|
86 |
*/
|
|
|
87 |
public int getValue() {
|
|
|
88 |
return value;
|
|
|
89 |
}
|
|
|
90 |
|
|
|
91 |
/**
|
|
|
92 |
* Find a the enum type by its integer value, as defined in the Thrift IDL.
|
|
|
93 |
* @return null if the value is not found.
|
|
|
94 |
*/
|
|
|
95 |
public static OrderStatus findByValue(int value) {
|
| 4302 |
rajveer |
96 |
return BY_VALUE.get(value);
|
| 483 |
rajveer |
97 |
}
|
|
|
98 |
}
|