| 4815 |
phani.kuma |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
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 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class OrderStatusGroups implements org.apache.thrift.TBase<OrderStatusGroups, OrderStatusGroups._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OrderStatusGroups");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField COD_CANCELLABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("codCancellable", org.apache.thrift.protocol.TType.LIST, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField PREPAID_CANCELLABLE_BEFORE_BILLED_FIELD_DESC = new org.apache.thrift.protocol.TField("prepaidCancellableBeforeBilled", org.apache.thrift.protocol.TType.LIST, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField PREPAID_CANCELLABLE_AFTER_BILLED_FIELD_DESC = new org.apache.thrift.protocol.TField("prepaidCancellableAfterBilled", org.apache.thrift.protocol.TType.LIST, (short)3);
|
| 4837 |
varun.gupt |
29 |
private static final org.apache.thrift.protocol.TField OPEN_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("openOrders", org.apache.thrift.protocol.TType.LIST, (short)4);
|
| 4815 |
phani.kuma |
30 |
|
|
|
31 |
private List<OrderStatus> codCancellable; // required
|
|
|
32 |
private List<OrderStatus> prepaidCancellableBeforeBilled; // required
|
|
|
33 |
private List<OrderStatus> prepaidCancellableAfterBilled; // required
|
| 4837 |
varun.gupt |
34 |
private List<OrderStatus> openOrders; // required
|
| 4815 |
phani.kuma |
35 |
|
|
|
36 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
37 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
38 |
COD_CANCELLABLE((short)1, "codCancellable"),
|
|
|
39 |
PREPAID_CANCELLABLE_BEFORE_BILLED((short)2, "prepaidCancellableBeforeBilled"),
|
| 4837 |
varun.gupt |
40 |
PREPAID_CANCELLABLE_AFTER_BILLED((short)3, "prepaidCancellableAfterBilled"),
|
|
|
41 |
OPEN_ORDERS((short)4, "openOrders");
|
| 4815 |
phani.kuma |
42 |
|
|
|
43 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
44 |
|
|
|
45 |
static {
|
|
|
46 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
47 |
byName.put(field.getFieldName(), field);
|
|
|
48 |
}
|
|
|
49 |
}
|
|
|
50 |
|
|
|
51 |
/**
|
|
|
52 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
53 |
*/
|
|
|
54 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
55 |
switch(fieldId) {
|
|
|
56 |
case 1: // COD_CANCELLABLE
|
|
|
57 |
return COD_CANCELLABLE;
|
|
|
58 |
case 2: // PREPAID_CANCELLABLE_BEFORE_BILLED
|
|
|
59 |
return PREPAID_CANCELLABLE_BEFORE_BILLED;
|
|
|
60 |
case 3: // PREPAID_CANCELLABLE_AFTER_BILLED
|
|
|
61 |
return PREPAID_CANCELLABLE_AFTER_BILLED;
|
| 4837 |
varun.gupt |
62 |
case 4: // OPEN_ORDERS
|
|
|
63 |
return OPEN_ORDERS;
|
| 4815 |
phani.kuma |
64 |
default:
|
|
|
65 |
return null;
|
|
|
66 |
}
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
/**
|
|
|
70 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
71 |
* if it is not found.
|
|
|
72 |
*/
|
|
|
73 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
74 |
_Fields fields = findByThriftId(fieldId);
|
|
|
75 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
76 |
return fields;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
/**
|
|
|
80 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
81 |
*/
|
|
|
82 |
public static _Fields findByName(String name) {
|
|
|
83 |
return byName.get(name);
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
private final short _thriftId;
|
|
|
87 |
private final String _fieldName;
|
|
|
88 |
|
|
|
89 |
_Fields(short thriftId, String fieldName) {
|
|
|
90 |
_thriftId = thriftId;
|
|
|
91 |
_fieldName = fieldName;
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
public short getThriftFieldId() {
|
|
|
95 |
return _thriftId;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
public String getFieldName() {
|
|
|
99 |
return _fieldName;
|
|
|
100 |
}
|
|
|
101 |
}
|
|
|
102 |
|
|
|
103 |
// isset id assignments
|
|
|
104 |
|
|
|
105 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
106 |
static {
|
|
|
107 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
108 |
tmpMap.put(_Fields.COD_CANCELLABLE, new org.apache.thrift.meta_data.FieldMetaData("codCancellable", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
109 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
110 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
|
|
|
111 |
tmpMap.put(_Fields.PREPAID_CANCELLABLE_BEFORE_BILLED, new org.apache.thrift.meta_data.FieldMetaData("prepaidCancellableBeforeBilled", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
112 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
113 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
|
|
|
114 |
tmpMap.put(_Fields.PREPAID_CANCELLABLE_AFTER_BILLED, new org.apache.thrift.meta_data.FieldMetaData("prepaidCancellableAfterBilled", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
115 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
116 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
|
| 4837 |
varun.gupt |
117 |
tmpMap.put(_Fields.OPEN_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("openOrders", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
118 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
119 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
|
| 4815 |
phani.kuma |
120 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
121 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(OrderStatusGroups.class, metaDataMap);
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
public OrderStatusGroups() {
|
|
|
125 |
this.codCancellable = new ArrayList<OrderStatus>();
|
|
|
126 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.COD_VERIFICATION_PENDING);
|
|
|
127 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.SUBMITTED_FOR_PROCESSING);
|
|
|
128 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.ACCEPTED);
|
|
|
129 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.INVENTORY_LOW);
|
|
|
130 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_PO_RAISED);
|
|
|
131 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_REVERSAL_IN_PROCESS);
|
|
|
132 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_NOT_AVAILABLE_AT_HOTSPOT);
|
|
|
133 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.BILLED);
|
|
|
134 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.PAYMENT_FLAGGED);
|
|
|
135 |
|
|
|
136 |
this.prepaidCancellableBeforeBilled = new ArrayList<OrderStatus>();
|
|
|
137 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.COD_VERIFICATION_PENDING);
|
|
|
138 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.SUBMITTED_FOR_PROCESSING);
|
|
|
139 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.ACCEPTED);
|
|
|
140 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.INVENTORY_LOW);
|
|
|
141 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_PO_RAISED);
|
|
|
142 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_REVERSAL_IN_PROCESS);
|
|
|
143 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_NOT_AVAILABLE_AT_HOTSPOT);
|
|
|
144 |
|
|
|
145 |
this.prepaidCancellableAfterBilled = new ArrayList<OrderStatus>();
|
|
|
146 |
this.prepaidCancellableAfterBilled.add(in.shop2020.model.v1.order.OrderStatus.BILLED);
|
|
|
147 |
this.prepaidCancellableAfterBilled.add(in.shop2020.model.v1.order.OrderStatus.PAYMENT_FLAGGED);
|
|
|
148 |
|
| 4837 |
varun.gupt |
149 |
this.openOrders = new ArrayList<OrderStatus>();
|
|
|
150 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.PAYMENT_PENDING);
|
|
|
151 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.COD_VERIFICATION_PENDING);
|
|
|
152 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.SUBMITTED_FOR_PROCESSING);
|
|
|
153 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.ACCEPTED);
|
|
|
154 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.INVENTORY_LOW);
|
|
|
155 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.BILLED);
|
|
|
156 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.PAYMENT_FLAGGED);
|
|
|
157 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_FROM_WH);
|
|
|
158 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_TO_LOGST);
|
|
|
159 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.PAYMENT_FLAGGED_DENIED);
|
| 4910 |
phani.kuma |
160 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_TO_DESTINATION_CITY);
|
|
|
161 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.REACHED_DESTINATION_CITY);
|
| 4837 |
varun.gupt |
162 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.CANCEL_REQUEST_RECEIVED);
|
|
|
163 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.CANCEL_REQUEST_CONFIRMED);
|
|
|
164 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_IN_TRANSIT);
|
|
|
165 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_RECEIVED_PRESTINE);
|
|
|
166 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_PICKUP_REQUEST_RAISED);
|
|
|
167 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_PICKUP_CONFIRMED);
|
|
|
168 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_RETURN_IN_TRANSIT);
|
|
|
169 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_RECEIVED_PRESTINE);
|
|
|
170 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_CERT_INVALID);
|
|
|
171 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_CERT_VALID);
|
|
|
172 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_PO_RAISED);
|
|
|
173 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_REVERSAL_IN_PROCESS);
|
|
|
174 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_NOT_AVAILABLE_AT_HOTSPOT);
|
|
|
175 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_PO_RAISED_TIMEOUT);
|
|
|
176 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_REVERSAL_TIMEOUT);
|
| 4910 |
phani.kuma |
177 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.FIRST_DELIVERY_ATTEMPT_MADE);
|
| 4837 |
varun.gupt |
178 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.CAPTURE_IN_PROCESS);
|
|
|
179 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_REQUEST_RECEIVED);
|
|
|
180 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_REQUEST_AUTHORIZED);
|
|
|
181 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_RECEIVED_DAMAGED);
|
|
|
182 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_LOST_IN_TRANSIT);
|
|
|
183 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_RECEIVED_DAMAGED);
|
|
|
184 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_LOST_IN_TRANSIT);
|
|
|
185 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_INVENTORY_REVERSED);
|
|
|
186 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_REQUEST_RECEIVED);
|
|
|
187 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_REQUEST_AUTHORIZED);
|
|
|
188 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PICKUP_REQUEST_RAISED);
|
|
|
189 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PICKUP_DENIED);
|
|
|
190 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PICKUP_CONFIRMED);
|
|
|
191 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_RETURN_IN_TRANSIT);
|
|
|
192 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_RECEIVED_PRESTINE);
|
|
|
193 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_RECEIVED_DAMAGED);
|
|
|
194 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_LOST_IN_TRANSIT);
|
|
|
195 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_USABLE);
|
|
|
196 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_UNUSABLE);
|
|
|
197 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOST_IN_TRANSIT);
|
|
|
198 |
|
| 4815 |
phani.kuma |
199 |
}
|
|
|
200 |
|
|
|
201 |
public OrderStatusGroups(
|
|
|
202 |
List<OrderStatus> codCancellable,
|
|
|
203 |
List<OrderStatus> prepaidCancellableBeforeBilled,
|
| 4837 |
varun.gupt |
204 |
List<OrderStatus> prepaidCancellableAfterBilled,
|
|
|
205 |
List<OrderStatus> openOrders)
|
| 4815 |
phani.kuma |
206 |
{
|
|
|
207 |
this();
|
|
|
208 |
this.codCancellable = codCancellable;
|
|
|
209 |
this.prepaidCancellableBeforeBilled = prepaidCancellableBeforeBilled;
|
|
|
210 |
this.prepaidCancellableAfterBilled = prepaidCancellableAfterBilled;
|
| 4837 |
varun.gupt |
211 |
this.openOrders = openOrders;
|
| 4815 |
phani.kuma |
212 |
}
|
|
|
213 |
|
|
|
214 |
/**
|
|
|
215 |
* Performs a deep copy on <i>other</i>.
|
|
|
216 |
*/
|
|
|
217 |
public OrderStatusGroups(OrderStatusGroups other) {
|
|
|
218 |
if (other.isSetCodCancellable()) {
|
|
|
219 |
List<OrderStatus> __this__codCancellable = new ArrayList<OrderStatus>();
|
|
|
220 |
for (OrderStatus other_element : other.codCancellable) {
|
|
|
221 |
__this__codCancellable.add(other_element);
|
|
|
222 |
}
|
|
|
223 |
this.codCancellable = __this__codCancellable;
|
|
|
224 |
}
|
|
|
225 |
if (other.isSetPrepaidCancellableBeforeBilled()) {
|
|
|
226 |
List<OrderStatus> __this__prepaidCancellableBeforeBilled = new ArrayList<OrderStatus>();
|
|
|
227 |
for (OrderStatus other_element : other.prepaidCancellableBeforeBilled) {
|
|
|
228 |
__this__prepaidCancellableBeforeBilled.add(other_element);
|
|
|
229 |
}
|
|
|
230 |
this.prepaidCancellableBeforeBilled = __this__prepaidCancellableBeforeBilled;
|
|
|
231 |
}
|
|
|
232 |
if (other.isSetPrepaidCancellableAfterBilled()) {
|
|
|
233 |
List<OrderStatus> __this__prepaidCancellableAfterBilled = new ArrayList<OrderStatus>();
|
|
|
234 |
for (OrderStatus other_element : other.prepaidCancellableAfterBilled) {
|
|
|
235 |
__this__prepaidCancellableAfterBilled.add(other_element);
|
|
|
236 |
}
|
|
|
237 |
this.prepaidCancellableAfterBilled = __this__prepaidCancellableAfterBilled;
|
|
|
238 |
}
|
| 4837 |
varun.gupt |
239 |
if (other.isSetOpenOrders()) {
|
|
|
240 |
List<OrderStatus> __this__openOrders = new ArrayList<OrderStatus>();
|
|
|
241 |
for (OrderStatus other_element : other.openOrders) {
|
|
|
242 |
__this__openOrders.add(other_element);
|
|
|
243 |
}
|
|
|
244 |
this.openOrders = __this__openOrders;
|
|
|
245 |
}
|
| 4815 |
phani.kuma |
246 |
}
|
|
|
247 |
|
|
|
248 |
public OrderStatusGroups deepCopy() {
|
|
|
249 |
return new OrderStatusGroups(this);
|
|
|
250 |
}
|
|
|
251 |
|
|
|
252 |
@Override
|
|
|
253 |
public void clear() {
|
|
|
254 |
this.codCancellable = new ArrayList<OrderStatus>();
|
|
|
255 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.COD_VERIFICATION_PENDING);
|
|
|
256 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.SUBMITTED_FOR_PROCESSING);
|
|
|
257 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.ACCEPTED);
|
|
|
258 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.INVENTORY_LOW);
|
|
|
259 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_PO_RAISED);
|
|
|
260 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_REVERSAL_IN_PROCESS);
|
|
|
261 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_NOT_AVAILABLE_AT_HOTSPOT);
|
|
|
262 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.BILLED);
|
|
|
263 |
this.codCancellable.add(in.shop2020.model.v1.order.OrderStatus.PAYMENT_FLAGGED);
|
|
|
264 |
|
|
|
265 |
this.prepaidCancellableBeforeBilled = new ArrayList<OrderStatus>();
|
|
|
266 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.COD_VERIFICATION_PENDING);
|
|
|
267 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.SUBMITTED_FOR_PROCESSING);
|
|
|
268 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.ACCEPTED);
|
|
|
269 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.INVENTORY_LOW);
|
|
|
270 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_PO_RAISED);
|
|
|
271 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_REVERSAL_IN_PROCESS);
|
|
|
272 |
this.prepaidCancellableBeforeBilled.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_NOT_AVAILABLE_AT_HOTSPOT);
|
|
|
273 |
|
|
|
274 |
this.prepaidCancellableAfterBilled = new ArrayList<OrderStatus>();
|
|
|
275 |
this.prepaidCancellableAfterBilled.add(in.shop2020.model.v1.order.OrderStatus.BILLED);
|
|
|
276 |
this.prepaidCancellableAfterBilled.add(in.shop2020.model.v1.order.OrderStatus.PAYMENT_FLAGGED);
|
|
|
277 |
|
| 4837 |
varun.gupt |
278 |
this.openOrders = new ArrayList<OrderStatus>();
|
|
|
279 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.PAYMENT_PENDING);
|
|
|
280 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.COD_VERIFICATION_PENDING);
|
|
|
281 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.SUBMITTED_FOR_PROCESSING);
|
|
|
282 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.ACCEPTED);
|
|
|
283 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.INVENTORY_LOW);
|
|
|
284 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.BILLED);
|
|
|
285 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.PAYMENT_FLAGGED);
|
|
|
286 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_FROM_WH);
|
|
|
287 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_TO_LOGST);
|
|
|
288 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.PAYMENT_FLAGGED_DENIED);
|
| 4910 |
phani.kuma |
289 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_TO_DESTINATION_CITY);
|
|
|
290 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.REACHED_DESTINATION_CITY);
|
| 4837 |
varun.gupt |
291 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.CANCEL_REQUEST_RECEIVED);
|
|
|
292 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.CANCEL_REQUEST_CONFIRMED);
|
|
|
293 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_IN_TRANSIT);
|
|
|
294 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_RECEIVED_PRESTINE);
|
|
|
295 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_PICKUP_REQUEST_RAISED);
|
|
|
296 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_PICKUP_CONFIRMED);
|
|
|
297 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_RETURN_IN_TRANSIT);
|
|
|
298 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_RECEIVED_PRESTINE);
|
|
|
299 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_CERT_INVALID);
|
|
|
300 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_CERT_VALID);
|
|
|
301 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_PO_RAISED);
|
|
|
302 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_REVERSAL_IN_PROCESS);
|
|
|
303 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_NOT_AVAILABLE_AT_HOTSPOT);
|
|
|
304 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_PO_RAISED_TIMEOUT);
|
|
|
305 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOW_INV_REVERSAL_TIMEOUT);
|
| 4910 |
phani.kuma |
306 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.FIRST_DELIVERY_ATTEMPT_MADE);
|
| 4837 |
varun.gupt |
307 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.CAPTURE_IN_PROCESS);
|
|
|
308 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_REQUEST_RECEIVED);
|
|
|
309 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_REQUEST_AUTHORIZED);
|
|
|
310 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_RECEIVED_DAMAGED);
|
|
|
311 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_LOST_IN_TRANSIT);
|
|
|
312 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_RECEIVED_DAMAGED);
|
|
|
313 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_LOST_IN_TRANSIT);
|
|
|
314 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_INVENTORY_REVERSED);
|
|
|
315 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_REQUEST_RECEIVED);
|
|
|
316 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_REQUEST_AUTHORIZED);
|
|
|
317 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PICKUP_REQUEST_RAISED);
|
|
|
318 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PICKUP_DENIED);
|
|
|
319 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PICKUP_CONFIRMED);
|
|
|
320 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_RETURN_IN_TRANSIT);
|
|
|
321 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_RECEIVED_PRESTINE);
|
|
|
322 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_RECEIVED_DAMAGED);
|
|
|
323 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_LOST_IN_TRANSIT);
|
|
|
324 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_USABLE);
|
|
|
325 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_UNUSABLE);
|
|
|
326 |
this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOST_IN_TRANSIT);
|
|
|
327 |
|
| 4815 |
phani.kuma |
328 |
}
|
|
|
329 |
|
|
|
330 |
public int getCodCancellableSize() {
|
|
|
331 |
return (this.codCancellable == null) ? 0 : this.codCancellable.size();
|
|
|
332 |
}
|
|
|
333 |
|
|
|
334 |
public java.util.Iterator<OrderStatus> getCodCancellableIterator() {
|
|
|
335 |
return (this.codCancellable == null) ? null : this.codCancellable.iterator();
|
|
|
336 |
}
|
|
|
337 |
|
|
|
338 |
public void addToCodCancellable(OrderStatus elem) {
|
|
|
339 |
if (this.codCancellable == null) {
|
|
|
340 |
this.codCancellable = new ArrayList<OrderStatus>();
|
|
|
341 |
}
|
|
|
342 |
this.codCancellable.add(elem);
|
|
|
343 |
}
|
|
|
344 |
|
|
|
345 |
public List<OrderStatus> getCodCancellable() {
|
|
|
346 |
return this.codCancellable;
|
|
|
347 |
}
|
|
|
348 |
|
|
|
349 |
public void setCodCancellable(List<OrderStatus> codCancellable) {
|
|
|
350 |
this.codCancellable = codCancellable;
|
|
|
351 |
}
|
|
|
352 |
|
|
|
353 |
public void unsetCodCancellable() {
|
|
|
354 |
this.codCancellable = null;
|
|
|
355 |
}
|
|
|
356 |
|
|
|
357 |
/** Returns true if field codCancellable is set (has been assigned a value) and false otherwise */
|
|
|
358 |
public boolean isSetCodCancellable() {
|
|
|
359 |
return this.codCancellable != null;
|
|
|
360 |
}
|
|
|
361 |
|
|
|
362 |
public void setCodCancellableIsSet(boolean value) {
|
|
|
363 |
if (!value) {
|
|
|
364 |
this.codCancellable = null;
|
|
|
365 |
}
|
|
|
366 |
}
|
|
|
367 |
|
|
|
368 |
public int getPrepaidCancellableBeforeBilledSize() {
|
|
|
369 |
return (this.prepaidCancellableBeforeBilled == null) ? 0 : this.prepaidCancellableBeforeBilled.size();
|
|
|
370 |
}
|
|
|
371 |
|
|
|
372 |
public java.util.Iterator<OrderStatus> getPrepaidCancellableBeforeBilledIterator() {
|
|
|
373 |
return (this.prepaidCancellableBeforeBilled == null) ? null : this.prepaidCancellableBeforeBilled.iterator();
|
|
|
374 |
}
|
|
|
375 |
|
|
|
376 |
public void addToPrepaidCancellableBeforeBilled(OrderStatus elem) {
|
|
|
377 |
if (this.prepaidCancellableBeforeBilled == null) {
|
|
|
378 |
this.prepaidCancellableBeforeBilled = new ArrayList<OrderStatus>();
|
|
|
379 |
}
|
|
|
380 |
this.prepaidCancellableBeforeBilled.add(elem);
|
|
|
381 |
}
|
|
|
382 |
|
|
|
383 |
public List<OrderStatus> getPrepaidCancellableBeforeBilled() {
|
|
|
384 |
return this.prepaidCancellableBeforeBilled;
|
|
|
385 |
}
|
|
|
386 |
|
|
|
387 |
public void setPrepaidCancellableBeforeBilled(List<OrderStatus> prepaidCancellableBeforeBilled) {
|
|
|
388 |
this.prepaidCancellableBeforeBilled = prepaidCancellableBeforeBilled;
|
|
|
389 |
}
|
|
|
390 |
|
|
|
391 |
public void unsetPrepaidCancellableBeforeBilled() {
|
|
|
392 |
this.prepaidCancellableBeforeBilled = null;
|
|
|
393 |
}
|
|
|
394 |
|
|
|
395 |
/** Returns true if field prepaidCancellableBeforeBilled is set (has been assigned a value) and false otherwise */
|
|
|
396 |
public boolean isSetPrepaidCancellableBeforeBilled() {
|
|
|
397 |
return this.prepaidCancellableBeforeBilled != null;
|
|
|
398 |
}
|
|
|
399 |
|
|
|
400 |
public void setPrepaidCancellableBeforeBilledIsSet(boolean value) {
|
|
|
401 |
if (!value) {
|
|
|
402 |
this.prepaidCancellableBeforeBilled = null;
|
|
|
403 |
}
|
|
|
404 |
}
|
|
|
405 |
|
|
|
406 |
public int getPrepaidCancellableAfterBilledSize() {
|
|
|
407 |
return (this.prepaidCancellableAfterBilled == null) ? 0 : this.prepaidCancellableAfterBilled.size();
|
|
|
408 |
}
|
|
|
409 |
|
|
|
410 |
public java.util.Iterator<OrderStatus> getPrepaidCancellableAfterBilledIterator() {
|
|
|
411 |
return (this.prepaidCancellableAfterBilled == null) ? null : this.prepaidCancellableAfterBilled.iterator();
|
|
|
412 |
}
|
|
|
413 |
|
|
|
414 |
public void addToPrepaidCancellableAfterBilled(OrderStatus elem) {
|
|
|
415 |
if (this.prepaidCancellableAfterBilled == null) {
|
|
|
416 |
this.prepaidCancellableAfterBilled = new ArrayList<OrderStatus>();
|
|
|
417 |
}
|
|
|
418 |
this.prepaidCancellableAfterBilled.add(elem);
|
|
|
419 |
}
|
|
|
420 |
|
|
|
421 |
public List<OrderStatus> getPrepaidCancellableAfterBilled() {
|
|
|
422 |
return this.prepaidCancellableAfterBilled;
|
|
|
423 |
}
|
|
|
424 |
|
|
|
425 |
public void setPrepaidCancellableAfterBilled(List<OrderStatus> prepaidCancellableAfterBilled) {
|
|
|
426 |
this.prepaidCancellableAfterBilled = prepaidCancellableAfterBilled;
|
|
|
427 |
}
|
|
|
428 |
|
|
|
429 |
public void unsetPrepaidCancellableAfterBilled() {
|
|
|
430 |
this.prepaidCancellableAfterBilled = null;
|
|
|
431 |
}
|
|
|
432 |
|
|
|
433 |
/** Returns true if field prepaidCancellableAfterBilled is set (has been assigned a value) and false otherwise */
|
|
|
434 |
public boolean isSetPrepaidCancellableAfterBilled() {
|
|
|
435 |
return this.prepaidCancellableAfterBilled != null;
|
|
|
436 |
}
|
|
|
437 |
|
|
|
438 |
public void setPrepaidCancellableAfterBilledIsSet(boolean value) {
|
|
|
439 |
if (!value) {
|
|
|
440 |
this.prepaidCancellableAfterBilled = null;
|
|
|
441 |
}
|
|
|
442 |
}
|
|
|
443 |
|
| 4837 |
varun.gupt |
444 |
public int getOpenOrdersSize() {
|
|
|
445 |
return (this.openOrders == null) ? 0 : this.openOrders.size();
|
|
|
446 |
}
|
|
|
447 |
|
|
|
448 |
public java.util.Iterator<OrderStatus> getOpenOrdersIterator() {
|
|
|
449 |
return (this.openOrders == null) ? null : this.openOrders.iterator();
|
|
|
450 |
}
|
|
|
451 |
|
|
|
452 |
public void addToOpenOrders(OrderStatus elem) {
|
|
|
453 |
if (this.openOrders == null) {
|
|
|
454 |
this.openOrders = new ArrayList<OrderStatus>();
|
|
|
455 |
}
|
|
|
456 |
this.openOrders.add(elem);
|
|
|
457 |
}
|
|
|
458 |
|
|
|
459 |
public List<OrderStatus> getOpenOrders() {
|
|
|
460 |
return this.openOrders;
|
|
|
461 |
}
|
|
|
462 |
|
|
|
463 |
public void setOpenOrders(List<OrderStatus> openOrders) {
|
|
|
464 |
this.openOrders = openOrders;
|
|
|
465 |
}
|
|
|
466 |
|
|
|
467 |
public void unsetOpenOrders() {
|
|
|
468 |
this.openOrders = null;
|
|
|
469 |
}
|
|
|
470 |
|
|
|
471 |
/** Returns true if field openOrders is set (has been assigned a value) and false otherwise */
|
|
|
472 |
public boolean isSetOpenOrders() {
|
|
|
473 |
return this.openOrders != null;
|
|
|
474 |
}
|
|
|
475 |
|
|
|
476 |
public void setOpenOrdersIsSet(boolean value) {
|
|
|
477 |
if (!value) {
|
|
|
478 |
this.openOrders = null;
|
|
|
479 |
}
|
|
|
480 |
}
|
|
|
481 |
|
| 4815 |
phani.kuma |
482 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
483 |
switch (field) {
|
|
|
484 |
case COD_CANCELLABLE:
|
|
|
485 |
if (value == null) {
|
|
|
486 |
unsetCodCancellable();
|
|
|
487 |
} else {
|
|
|
488 |
setCodCancellable((List<OrderStatus>)value);
|
|
|
489 |
}
|
|
|
490 |
break;
|
|
|
491 |
|
|
|
492 |
case PREPAID_CANCELLABLE_BEFORE_BILLED:
|
|
|
493 |
if (value == null) {
|
|
|
494 |
unsetPrepaidCancellableBeforeBilled();
|
|
|
495 |
} else {
|
|
|
496 |
setPrepaidCancellableBeforeBilled((List<OrderStatus>)value);
|
|
|
497 |
}
|
|
|
498 |
break;
|
|
|
499 |
|
|
|
500 |
case PREPAID_CANCELLABLE_AFTER_BILLED:
|
|
|
501 |
if (value == null) {
|
|
|
502 |
unsetPrepaidCancellableAfterBilled();
|
|
|
503 |
} else {
|
|
|
504 |
setPrepaidCancellableAfterBilled((List<OrderStatus>)value);
|
|
|
505 |
}
|
|
|
506 |
break;
|
|
|
507 |
|
| 4837 |
varun.gupt |
508 |
case OPEN_ORDERS:
|
|
|
509 |
if (value == null) {
|
|
|
510 |
unsetOpenOrders();
|
|
|
511 |
} else {
|
|
|
512 |
setOpenOrders((List<OrderStatus>)value);
|
|
|
513 |
}
|
|
|
514 |
break;
|
|
|
515 |
|
| 4815 |
phani.kuma |
516 |
}
|
|
|
517 |
}
|
|
|
518 |
|
|
|
519 |
public Object getFieldValue(_Fields field) {
|
|
|
520 |
switch (field) {
|
|
|
521 |
case COD_CANCELLABLE:
|
|
|
522 |
return getCodCancellable();
|
|
|
523 |
|
|
|
524 |
case PREPAID_CANCELLABLE_BEFORE_BILLED:
|
|
|
525 |
return getPrepaidCancellableBeforeBilled();
|
|
|
526 |
|
|
|
527 |
case PREPAID_CANCELLABLE_AFTER_BILLED:
|
|
|
528 |
return getPrepaidCancellableAfterBilled();
|
|
|
529 |
|
| 4837 |
varun.gupt |
530 |
case OPEN_ORDERS:
|
|
|
531 |
return getOpenOrders();
|
|
|
532 |
|
| 4815 |
phani.kuma |
533 |
}
|
|
|
534 |
throw new IllegalStateException();
|
|
|
535 |
}
|
|
|
536 |
|
|
|
537 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
538 |
public boolean isSet(_Fields field) {
|
|
|
539 |
if (field == null) {
|
|
|
540 |
throw new IllegalArgumentException();
|
|
|
541 |
}
|
|
|
542 |
|
|
|
543 |
switch (field) {
|
|
|
544 |
case COD_CANCELLABLE:
|
|
|
545 |
return isSetCodCancellable();
|
|
|
546 |
case PREPAID_CANCELLABLE_BEFORE_BILLED:
|
|
|
547 |
return isSetPrepaidCancellableBeforeBilled();
|
|
|
548 |
case PREPAID_CANCELLABLE_AFTER_BILLED:
|
|
|
549 |
return isSetPrepaidCancellableAfterBilled();
|
| 4837 |
varun.gupt |
550 |
case OPEN_ORDERS:
|
|
|
551 |
return isSetOpenOrders();
|
| 4815 |
phani.kuma |
552 |
}
|
|
|
553 |
throw new IllegalStateException();
|
|
|
554 |
}
|
|
|
555 |
|
|
|
556 |
@Override
|
|
|
557 |
public boolean equals(Object that) {
|
|
|
558 |
if (that == null)
|
|
|
559 |
return false;
|
|
|
560 |
if (that instanceof OrderStatusGroups)
|
|
|
561 |
return this.equals((OrderStatusGroups)that);
|
|
|
562 |
return false;
|
|
|
563 |
}
|
|
|
564 |
|
|
|
565 |
public boolean equals(OrderStatusGroups that) {
|
|
|
566 |
if (that == null)
|
|
|
567 |
return false;
|
|
|
568 |
|
|
|
569 |
boolean this_present_codCancellable = true && this.isSetCodCancellable();
|
|
|
570 |
boolean that_present_codCancellable = true && that.isSetCodCancellable();
|
|
|
571 |
if (this_present_codCancellable || that_present_codCancellable) {
|
|
|
572 |
if (!(this_present_codCancellable && that_present_codCancellable))
|
|
|
573 |
return false;
|
|
|
574 |
if (!this.codCancellable.equals(that.codCancellable))
|
|
|
575 |
return false;
|
|
|
576 |
}
|
|
|
577 |
|
|
|
578 |
boolean this_present_prepaidCancellableBeforeBilled = true && this.isSetPrepaidCancellableBeforeBilled();
|
|
|
579 |
boolean that_present_prepaidCancellableBeforeBilled = true && that.isSetPrepaidCancellableBeforeBilled();
|
|
|
580 |
if (this_present_prepaidCancellableBeforeBilled || that_present_prepaidCancellableBeforeBilled) {
|
|
|
581 |
if (!(this_present_prepaidCancellableBeforeBilled && that_present_prepaidCancellableBeforeBilled))
|
|
|
582 |
return false;
|
|
|
583 |
if (!this.prepaidCancellableBeforeBilled.equals(that.prepaidCancellableBeforeBilled))
|
|
|
584 |
return false;
|
|
|
585 |
}
|
|
|
586 |
|
|
|
587 |
boolean this_present_prepaidCancellableAfterBilled = true && this.isSetPrepaidCancellableAfterBilled();
|
|
|
588 |
boolean that_present_prepaidCancellableAfterBilled = true && that.isSetPrepaidCancellableAfterBilled();
|
|
|
589 |
if (this_present_prepaidCancellableAfterBilled || that_present_prepaidCancellableAfterBilled) {
|
|
|
590 |
if (!(this_present_prepaidCancellableAfterBilled && that_present_prepaidCancellableAfterBilled))
|
|
|
591 |
return false;
|
|
|
592 |
if (!this.prepaidCancellableAfterBilled.equals(that.prepaidCancellableAfterBilled))
|
|
|
593 |
return false;
|
|
|
594 |
}
|
|
|
595 |
|
| 4837 |
varun.gupt |
596 |
boolean this_present_openOrders = true && this.isSetOpenOrders();
|
|
|
597 |
boolean that_present_openOrders = true && that.isSetOpenOrders();
|
|
|
598 |
if (this_present_openOrders || that_present_openOrders) {
|
|
|
599 |
if (!(this_present_openOrders && that_present_openOrders))
|
|
|
600 |
return false;
|
|
|
601 |
if (!this.openOrders.equals(that.openOrders))
|
|
|
602 |
return false;
|
|
|
603 |
}
|
|
|
604 |
|
| 4815 |
phani.kuma |
605 |
return true;
|
|
|
606 |
}
|
|
|
607 |
|
|
|
608 |
@Override
|
|
|
609 |
public int hashCode() {
|
|
|
610 |
return 0;
|
|
|
611 |
}
|
|
|
612 |
|
|
|
613 |
public int compareTo(OrderStatusGroups other) {
|
|
|
614 |
if (!getClass().equals(other.getClass())) {
|
|
|
615 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
616 |
}
|
|
|
617 |
|
|
|
618 |
int lastComparison = 0;
|
|
|
619 |
OrderStatusGroups typedOther = (OrderStatusGroups)other;
|
|
|
620 |
|
|
|
621 |
lastComparison = Boolean.valueOf(isSetCodCancellable()).compareTo(typedOther.isSetCodCancellable());
|
|
|
622 |
if (lastComparison != 0) {
|
|
|
623 |
return lastComparison;
|
|
|
624 |
}
|
|
|
625 |
if (isSetCodCancellable()) {
|
|
|
626 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codCancellable, typedOther.codCancellable);
|
|
|
627 |
if (lastComparison != 0) {
|
|
|
628 |
return lastComparison;
|
|
|
629 |
}
|
|
|
630 |
}
|
|
|
631 |
lastComparison = Boolean.valueOf(isSetPrepaidCancellableBeforeBilled()).compareTo(typedOther.isSetPrepaidCancellableBeforeBilled());
|
|
|
632 |
if (lastComparison != 0) {
|
|
|
633 |
return lastComparison;
|
|
|
634 |
}
|
|
|
635 |
if (isSetPrepaidCancellableBeforeBilled()) {
|
|
|
636 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prepaidCancellableBeforeBilled, typedOther.prepaidCancellableBeforeBilled);
|
|
|
637 |
if (lastComparison != 0) {
|
|
|
638 |
return lastComparison;
|
|
|
639 |
}
|
|
|
640 |
}
|
|
|
641 |
lastComparison = Boolean.valueOf(isSetPrepaidCancellableAfterBilled()).compareTo(typedOther.isSetPrepaidCancellableAfterBilled());
|
|
|
642 |
if (lastComparison != 0) {
|
|
|
643 |
return lastComparison;
|
|
|
644 |
}
|
|
|
645 |
if (isSetPrepaidCancellableAfterBilled()) {
|
|
|
646 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prepaidCancellableAfterBilled, typedOther.prepaidCancellableAfterBilled);
|
|
|
647 |
if (lastComparison != 0) {
|
|
|
648 |
return lastComparison;
|
|
|
649 |
}
|
|
|
650 |
}
|
| 4837 |
varun.gupt |
651 |
lastComparison = Boolean.valueOf(isSetOpenOrders()).compareTo(typedOther.isSetOpenOrders());
|
|
|
652 |
if (lastComparison != 0) {
|
|
|
653 |
return lastComparison;
|
|
|
654 |
}
|
|
|
655 |
if (isSetOpenOrders()) {
|
|
|
656 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.openOrders, typedOther.openOrders);
|
|
|
657 |
if (lastComparison != 0) {
|
|
|
658 |
return lastComparison;
|
|
|
659 |
}
|
|
|
660 |
}
|
| 4815 |
phani.kuma |
661 |
return 0;
|
|
|
662 |
}
|
|
|
663 |
|
|
|
664 |
public _Fields fieldForId(int fieldId) {
|
|
|
665 |
return _Fields.findByThriftId(fieldId);
|
|
|
666 |
}
|
|
|
667 |
|
|
|
668 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
669 |
org.apache.thrift.protocol.TField field;
|
|
|
670 |
iprot.readStructBegin();
|
|
|
671 |
while (true)
|
|
|
672 |
{
|
|
|
673 |
field = iprot.readFieldBegin();
|
|
|
674 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
675 |
break;
|
|
|
676 |
}
|
|
|
677 |
switch (field.id) {
|
|
|
678 |
case 1: // COD_CANCELLABLE
|
|
|
679 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
680 |
{
|
|
|
681 |
org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
|
|
|
682 |
this.codCancellable = new ArrayList<OrderStatus>(_list8.size);
|
|
|
683 |
for (int _i9 = 0; _i9 < _list8.size; ++_i9)
|
|
|
684 |
{
|
|
|
685 |
OrderStatus _elem10; // required
|
|
|
686 |
_elem10 = OrderStatus.findByValue(iprot.readI32());
|
|
|
687 |
this.codCancellable.add(_elem10);
|
|
|
688 |
}
|
|
|
689 |
iprot.readListEnd();
|
|
|
690 |
}
|
|
|
691 |
} else {
|
|
|
692 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
693 |
}
|
|
|
694 |
break;
|
|
|
695 |
case 2: // PREPAID_CANCELLABLE_BEFORE_BILLED
|
|
|
696 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
697 |
{
|
|
|
698 |
org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
|
|
|
699 |
this.prepaidCancellableBeforeBilled = new ArrayList<OrderStatus>(_list11.size);
|
|
|
700 |
for (int _i12 = 0; _i12 < _list11.size; ++_i12)
|
|
|
701 |
{
|
|
|
702 |
OrderStatus _elem13; // required
|
|
|
703 |
_elem13 = OrderStatus.findByValue(iprot.readI32());
|
|
|
704 |
this.prepaidCancellableBeforeBilled.add(_elem13);
|
|
|
705 |
}
|
|
|
706 |
iprot.readListEnd();
|
|
|
707 |
}
|
|
|
708 |
} else {
|
|
|
709 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
710 |
}
|
|
|
711 |
break;
|
|
|
712 |
case 3: // PREPAID_CANCELLABLE_AFTER_BILLED
|
|
|
713 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
714 |
{
|
|
|
715 |
org.apache.thrift.protocol.TList _list14 = iprot.readListBegin();
|
|
|
716 |
this.prepaidCancellableAfterBilled = new ArrayList<OrderStatus>(_list14.size);
|
|
|
717 |
for (int _i15 = 0; _i15 < _list14.size; ++_i15)
|
|
|
718 |
{
|
|
|
719 |
OrderStatus _elem16; // required
|
|
|
720 |
_elem16 = OrderStatus.findByValue(iprot.readI32());
|
|
|
721 |
this.prepaidCancellableAfterBilled.add(_elem16);
|
|
|
722 |
}
|
|
|
723 |
iprot.readListEnd();
|
|
|
724 |
}
|
|
|
725 |
} else {
|
|
|
726 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
727 |
}
|
|
|
728 |
break;
|
| 4837 |
varun.gupt |
729 |
case 4: // OPEN_ORDERS
|
|
|
730 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
731 |
{
|
|
|
732 |
org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
|
|
|
733 |
this.openOrders = new ArrayList<OrderStatus>(_list17.size);
|
|
|
734 |
for (int _i18 = 0; _i18 < _list17.size; ++_i18)
|
|
|
735 |
{
|
|
|
736 |
OrderStatus _elem19; // required
|
|
|
737 |
_elem19 = OrderStatus.findByValue(iprot.readI32());
|
|
|
738 |
this.openOrders.add(_elem19);
|
|
|
739 |
}
|
|
|
740 |
iprot.readListEnd();
|
|
|
741 |
}
|
|
|
742 |
} else {
|
|
|
743 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
744 |
}
|
|
|
745 |
break;
|
| 4815 |
phani.kuma |
746 |
default:
|
|
|
747 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
748 |
}
|
|
|
749 |
iprot.readFieldEnd();
|
|
|
750 |
}
|
|
|
751 |
iprot.readStructEnd();
|
|
|
752 |
validate();
|
|
|
753 |
}
|
|
|
754 |
|
|
|
755 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
756 |
validate();
|
|
|
757 |
|
|
|
758 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
759 |
if (this.codCancellable != null) {
|
|
|
760 |
oprot.writeFieldBegin(COD_CANCELLABLE_FIELD_DESC);
|
|
|
761 |
{
|
|
|
762 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.codCancellable.size()));
|
| 4837 |
varun.gupt |
763 |
for (OrderStatus _iter20 : this.codCancellable)
|
| 4815 |
phani.kuma |
764 |
{
|
| 4837 |
varun.gupt |
765 |
oprot.writeI32(_iter20.getValue());
|
| 4815 |
phani.kuma |
766 |
}
|
|
|
767 |
oprot.writeListEnd();
|
|
|
768 |
}
|
|
|
769 |
oprot.writeFieldEnd();
|
|
|
770 |
}
|
|
|
771 |
if (this.prepaidCancellableBeforeBilled != null) {
|
|
|
772 |
oprot.writeFieldBegin(PREPAID_CANCELLABLE_BEFORE_BILLED_FIELD_DESC);
|
|
|
773 |
{
|
|
|
774 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.prepaidCancellableBeforeBilled.size()));
|
| 4837 |
varun.gupt |
775 |
for (OrderStatus _iter21 : this.prepaidCancellableBeforeBilled)
|
| 4815 |
phani.kuma |
776 |
{
|
| 4837 |
varun.gupt |
777 |
oprot.writeI32(_iter21.getValue());
|
| 4815 |
phani.kuma |
778 |
}
|
|
|
779 |
oprot.writeListEnd();
|
|
|
780 |
}
|
|
|
781 |
oprot.writeFieldEnd();
|
|
|
782 |
}
|
|
|
783 |
if (this.prepaidCancellableAfterBilled != null) {
|
|
|
784 |
oprot.writeFieldBegin(PREPAID_CANCELLABLE_AFTER_BILLED_FIELD_DESC);
|
|
|
785 |
{
|
|
|
786 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.prepaidCancellableAfterBilled.size()));
|
| 4837 |
varun.gupt |
787 |
for (OrderStatus _iter22 : this.prepaidCancellableAfterBilled)
|
| 4815 |
phani.kuma |
788 |
{
|
| 4837 |
varun.gupt |
789 |
oprot.writeI32(_iter22.getValue());
|
| 4815 |
phani.kuma |
790 |
}
|
|
|
791 |
oprot.writeListEnd();
|
|
|
792 |
}
|
|
|
793 |
oprot.writeFieldEnd();
|
|
|
794 |
}
|
| 4837 |
varun.gupt |
795 |
if (this.openOrders != null) {
|
|
|
796 |
oprot.writeFieldBegin(OPEN_ORDERS_FIELD_DESC);
|
|
|
797 |
{
|
|
|
798 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.openOrders.size()));
|
|
|
799 |
for (OrderStatus _iter23 : this.openOrders)
|
|
|
800 |
{
|
|
|
801 |
oprot.writeI32(_iter23.getValue());
|
|
|
802 |
}
|
|
|
803 |
oprot.writeListEnd();
|
|
|
804 |
}
|
|
|
805 |
oprot.writeFieldEnd();
|
|
|
806 |
}
|
| 4815 |
phani.kuma |
807 |
oprot.writeFieldStop();
|
|
|
808 |
oprot.writeStructEnd();
|
|
|
809 |
}
|
|
|
810 |
|
|
|
811 |
@Override
|
|
|
812 |
public String toString() {
|
|
|
813 |
StringBuilder sb = new StringBuilder("OrderStatusGroups(");
|
|
|
814 |
boolean first = true;
|
|
|
815 |
|
|
|
816 |
sb.append("codCancellable:");
|
|
|
817 |
if (this.codCancellable == null) {
|
|
|
818 |
sb.append("null");
|
|
|
819 |
} else {
|
|
|
820 |
sb.append(this.codCancellable);
|
|
|
821 |
}
|
|
|
822 |
first = false;
|
|
|
823 |
if (!first) sb.append(", ");
|
|
|
824 |
sb.append("prepaidCancellableBeforeBilled:");
|
|
|
825 |
if (this.prepaidCancellableBeforeBilled == null) {
|
|
|
826 |
sb.append("null");
|
|
|
827 |
} else {
|
|
|
828 |
sb.append(this.prepaidCancellableBeforeBilled);
|
|
|
829 |
}
|
|
|
830 |
first = false;
|
|
|
831 |
if (!first) sb.append(", ");
|
|
|
832 |
sb.append("prepaidCancellableAfterBilled:");
|
|
|
833 |
if (this.prepaidCancellableAfterBilled == null) {
|
|
|
834 |
sb.append("null");
|
|
|
835 |
} else {
|
|
|
836 |
sb.append(this.prepaidCancellableAfterBilled);
|
|
|
837 |
}
|
|
|
838 |
first = false;
|
| 4837 |
varun.gupt |
839 |
if (!first) sb.append(", ");
|
|
|
840 |
sb.append("openOrders:");
|
|
|
841 |
if (this.openOrders == null) {
|
|
|
842 |
sb.append("null");
|
|
|
843 |
} else {
|
|
|
844 |
sb.append(this.openOrders);
|
|
|
845 |
}
|
|
|
846 |
first = false;
|
| 4815 |
phani.kuma |
847 |
sb.append(")");
|
|
|
848 |
return sb.toString();
|
|
|
849 |
}
|
|
|
850 |
|
|
|
851 |
public void validate() throws org.apache.thrift.TException {
|
|
|
852 |
// check for required fields
|
|
|
853 |
}
|
|
|
854 |
|
|
|
855 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
856 |
try {
|
|
|
857 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
858 |
} catch (org.apache.thrift.TException te) {
|
|
|
859 |
throw new java.io.IOException(te);
|
|
|
860 |
}
|
|
|
861 |
}
|
|
|
862 |
|
|
|
863 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
864 |
try {
|
|
|
865 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
866 |
} catch (org.apache.thrift.TException te) {
|
|
|
867 |
throw new java.io.IOException(te);
|
|
|
868 |
}
|
|
|
869 |
}
|
|
|
870 |
|
|
|
871 |
}
|
|
|
872 |
|