Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
18578 manish.sha 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 ReturnOrderInfo implements org.apache.thrift.TBase<ReturnOrderInfo, ReturnOrderInfo._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ReturnOrderInfo");
25
 
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField RETURN_TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("returnTransactionId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField MASTER_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("masterOrderId", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField LINE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lineItemId", org.apache.thrift.protocol.TType.I64, (short)5);
31
  private static final org.apache.thrift.protocol.TField LOGISTICS_REQUEST_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsRequestId", org.apache.thrift.protocol.TType.I64, (short)6);
32
  private static final org.apache.thrift.protocol.TField RETURN_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("returnQuantity", org.apache.thrift.protocol.TType.I64, (short)7);
33
  private static final org.apache.thrift.protocol.TField RECEIVED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("receivedQuantity", org.apache.thrift.protocol.TType.I64, (short)8);
34
  private static final org.apache.thrift.protocol.TField CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("createdAt", org.apache.thrift.protocol.TType.I64, (short)9);
35
  private static final org.apache.thrift.protocol.TField PROCESSED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("processedAt", org.apache.thrift.protocol.TType.I64, (short)10);
36
  private static final org.apache.thrift.protocol.TField RETURN_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("returnStatus", org.apache.thrift.protocol.TType.STRING, (short)11);
37
  private static final org.apache.thrift.protocol.TField RESHIPPED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("reshippedAt", org.apache.thrift.protocol.TType.I64, (short)12);
38
  private static final org.apache.thrift.protocol.TField RECEIVED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("receivedAt", org.apache.thrift.protocol.TType.I64, (short)13);
39
  private static final org.apache.thrift.protocol.TField REFUND_REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("refundReason", org.apache.thrift.protocol.TType.STRING, (short)14);
40
  private static final org.apache.thrift.protocol.TField REFUNDED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("refundedBy", org.apache.thrift.protocol.TType.STRING, (short)15);
41
  private static final org.apache.thrift.protocol.TField REFUNDED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("refundedAt", org.apache.thrift.protocol.TType.I64, (short)16);
42
  private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)17);
43
  private static final org.apache.thrift.protocol.TField REFUND_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("refundAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)18);
44
  private static final org.apache.thrift.protocol.TField REFUND_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("refundType", org.apache.thrift.protocol.TType.I32, (short)19);
45
  private static final org.apache.thrift.protocol.TField REFUND_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("refundDescription", org.apache.thrift.protocol.TType.STRING, (short)20);
46
  private static final org.apache.thrift.protocol.TField RETURN_PICKUP_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("returnPickupType", org.apache.thrift.protocol.TType.I32, (short)21);
47
  private static final org.apache.thrift.protocol.TField SHIPPING_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingType", org.apache.thrift.protocol.TType.I32, (short)22);
48
  private static final org.apache.thrift.protocol.TField REPLACEMENT_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("replacementOrderId", org.apache.thrift.protocol.TType.I64, (short)23);
49
  private static final org.apache.thrift.protocol.TField RECEIVED_RETURN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("receivedReturnType", org.apache.thrift.protocol.TType.I32, (short)24);
50
  private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.I64, (short)25);
51
  private static final org.apache.thrift.protocol.TField RETURN_ACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("returnAction", org.apache.thrift.protocol.TType.I32, (short)26);
52
  private static final org.apache.thrift.protocol.TField RETURN_TXN_RESOLUTION_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("returnTxnResolutionStatus", org.apache.thrift.protocol.TType.I32, (short)27);
53
  private static final org.apache.thrift.protocol.TField LINEITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("lineitem", org.apache.thrift.protocol.TType.STRUCT, (short)28);
54
  private static final org.apache.thrift.protocol.TField RETURN_PICK_UP_REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("returnPickUpRequest", org.apache.thrift.protocol.TType.STRUCT, (short)29);
55
 
56
  private long id; // required
57
  private long returnTransactionId; // required
58
  private String masterOrderId; // required
59
  private long orderId; // required
60
  private long lineItemId; // required
61
  private long logisticsRequestId; // required
62
  private long returnQuantity; // required
63
  private long receivedQuantity; // required
64
  private long createdAt; // required
65
  private long processedAt; // required
66
  private String returnStatus; // required
67
  private long reshippedAt; // required
68
  private long receivedAt; // required
69
  private String refundReason; // required
70
  private String refundedBy; // required
71
  private long refundedAt; // required
72
  private long warehouse_id; // required
73
  private double refundAmount; // required
74
  private RefundType refundType; // required
75
  private String refundDescription; // required
76
  private ReturnPickupType returnPickupType; // required
77
  private ReplacementShippingType shippingType; // required
78
  private long replacementOrderId; // required
79
  private ReceivedReturnType receivedReturnType; // required
80
  private long freebieItemId; // required
81
  private ReturnAction returnAction; // required
82
  private ReturnTxnResolutionStatus returnTxnResolutionStatus; // required
83
  private LineItem lineitem; // required
84
  private ReturnPickupRequest returnPickUpRequest; // required
85
 
86
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
87
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
88
    ID((short)1, "id"),
89
    RETURN_TRANSACTION_ID((short)2, "returnTransactionId"),
90
    MASTER_ORDER_ID((short)3, "masterOrderId"),
91
    ORDER_ID((short)4, "orderId"),
92
    LINE_ITEM_ID((short)5, "lineItemId"),
93
    LOGISTICS_REQUEST_ID((short)6, "logisticsRequestId"),
94
    RETURN_QUANTITY((short)7, "returnQuantity"),
95
    RECEIVED_QUANTITY((short)8, "receivedQuantity"),
96
    CREATED_AT((short)9, "createdAt"),
97
    PROCESSED_AT((short)10, "processedAt"),
98
    RETURN_STATUS((short)11, "returnStatus"),
99
    RESHIPPED_AT((short)12, "reshippedAt"),
100
    RECEIVED_AT((short)13, "receivedAt"),
101
    REFUND_REASON((short)14, "refundReason"),
102
    REFUNDED_BY((short)15, "refundedBy"),
103
    REFUNDED_AT((short)16, "refundedAt"),
104
    WAREHOUSE_ID((short)17, "warehouse_id"),
105
    REFUND_AMOUNT((short)18, "refundAmount"),
106
    /**
107
     * 
108
     * @see RefundType
109
     */
110
    REFUND_TYPE((short)19, "refundType"),
111
    REFUND_DESCRIPTION((short)20, "refundDescription"),
112
    /**
113
     * 
114
     * @see ReturnPickupType
115
     */
116
    RETURN_PICKUP_TYPE((short)21, "returnPickupType"),
117
    /**
118
     * 
119
     * @see ReplacementShippingType
120
     */
121
    SHIPPING_TYPE((short)22, "shippingType"),
122
    REPLACEMENT_ORDER_ID((short)23, "replacementOrderId"),
123
    /**
124
     * 
125
     * @see ReceivedReturnType
126
     */
127
    RECEIVED_RETURN_TYPE((short)24, "receivedReturnType"),
128
    FREEBIE_ITEM_ID((short)25, "freebieItemId"),
129
    /**
130
     * 
131
     * @see ReturnAction
132
     */
133
    RETURN_ACTION((short)26, "returnAction"),
134
    /**
135
     * 
136
     * @see ReturnTxnResolutionStatus
137
     */
138
    RETURN_TXN_RESOLUTION_STATUS((short)27, "returnTxnResolutionStatus"),
139
    LINEITEM((short)28, "lineitem"),
140
    RETURN_PICK_UP_REQUEST((short)29, "returnPickUpRequest");
141
 
142
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
143
 
144
    static {
145
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
146
        byName.put(field.getFieldName(), field);
147
      }
148
    }
149
 
150
    /**
151
     * Find the _Fields constant that matches fieldId, or null if its not found.
152
     */
153
    public static _Fields findByThriftId(int fieldId) {
154
      switch(fieldId) {
155
        case 1: // ID
156
          return ID;
157
        case 2: // RETURN_TRANSACTION_ID
158
          return RETURN_TRANSACTION_ID;
159
        case 3: // MASTER_ORDER_ID
160
          return MASTER_ORDER_ID;
161
        case 4: // ORDER_ID
162
          return ORDER_ID;
163
        case 5: // LINE_ITEM_ID
164
          return LINE_ITEM_ID;
165
        case 6: // LOGISTICS_REQUEST_ID
166
          return LOGISTICS_REQUEST_ID;
167
        case 7: // RETURN_QUANTITY
168
          return RETURN_QUANTITY;
169
        case 8: // RECEIVED_QUANTITY
170
          return RECEIVED_QUANTITY;
171
        case 9: // CREATED_AT
172
          return CREATED_AT;
173
        case 10: // PROCESSED_AT
174
          return PROCESSED_AT;
175
        case 11: // RETURN_STATUS
176
          return RETURN_STATUS;
177
        case 12: // RESHIPPED_AT
178
          return RESHIPPED_AT;
179
        case 13: // RECEIVED_AT
180
          return RECEIVED_AT;
181
        case 14: // REFUND_REASON
182
          return REFUND_REASON;
183
        case 15: // REFUNDED_BY
184
          return REFUNDED_BY;
185
        case 16: // REFUNDED_AT
186
          return REFUNDED_AT;
187
        case 17: // WAREHOUSE_ID
188
          return WAREHOUSE_ID;
189
        case 18: // REFUND_AMOUNT
190
          return REFUND_AMOUNT;
191
        case 19: // REFUND_TYPE
192
          return REFUND_TYPE;
193
        case 20: // REFUND_DESCRIPTION
194
          return REFUND_DESCRIPTION;
195
        case 21: // RETURN_PICKUP_TYPE
196
          return RETURN_PICKUP_TYPE;
197
        case 22: // SHIPPING_TYPE
198
          return SHIPPING_TYPE;
199
        case 23: // REPLACEMENT_ORDER_ID
200
          return REPLACEMENT_ORDER_ID;
201
        case 24: // RECEIVED_RETURN_TYPE
202
          return RECEIVED_RETURN_TYPE;
203
        case 25: // FREEBIE_ITEM_ID
204
          return FREEBIE_ITEM_ID;
205
        case 26: // RETURN_ACTION
206
          return RETURN_ACTION;
207
        case 27: // RETURN_TXN_RESOLUTION_STATUS
208
          return RETURN_TXN_RESOLUTION_STATUS;
209
        case 28: // LINEITEM
210
          return LINEITEM;
211
        case 29: // RETURN_PICK_UP_REQUEST
212
          return RETURN_PICK_UP_REQUEST;
213
        default:
214
          return null;
215
      }
216
    }
217
 
218
    /**
219
     * Find the _Fields constant that matches fieldId, throwing an exception
220
     * if it is not found.
221
     */
222
    public static _Fields findByThriftIdOrThrow(int fieldId) {
223
      _Fields fields = findByThriftId(fieldId);
224
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
225
      return fields;
226
    }
227
 
228
    /**
229
     * Find the _Fields constant that matches name, or null if its not found.
230
     */
231
    public static _Fields findByName(String name) {
232
      return byName.get(name);
233
    }
234
 
235
    private final short _thriftId;
236
    private final String _fieldName;
237
 
238
    _Fields(short thriftId, String fieldName) {
239
      _thriftId = thriftId;
240
      _fieldName = fieldName;
241
    }
242
 
243
    public short getThriftFieldId() {
244
      return _thriftId;
245
    }
246
 
247
    public String getFieldName() {
248
      return _fieldName;
249
    }
250
  }
251
 
252
  // isset id assignments
253
  private static final int __ID_ISSET_ID = 0;
254
  private static final int __RETURNTRANSACTIONID_ISSET_ID = 1;
255
  private static final int __ORDERID_ISSET_ID = 2;
256
  private static final int __LINEITEMID_ISSET_ID = 3;
257
  private static final int __LOGISTICSREQUESTID_ISSET_ID = 4;
258
  private static final int __RETURNQUANTITY_ISSET_ID = 5;
259
  private static final int __RECEIVEDQUANTITY_ISSET_ID = 6;
260
  private static final int __CREATEDAT_ISSET_ID = 7;
261
  private static final int __PROCESSEDAT_ISSET_ID = 8;
262
  private static final int __RESHIPPEDAT_ISSET_ID = 9;
263
  private static final int __RECEIVEDAT_ISSET_ID = 10;
264
  private static final int __REFUNDEDAT_ISSET_ID = 11;
265
  private static final int __WAREHOUSE_ID_ISSET_ID = 12;
266
  private static final int __REFUNDAMOUNT_ISSET_ID = 13;
267
  private static final int __REPLACEMENTORDERID_ISSET_ID = 14;
268
  private static final int __FREEBIEITEMID_ISSET_ID = 15;
269
  private BitSet __isset_bit_vector = new BitSet(16);
270
 
271
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
272
  static {
273
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
274
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
275
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
276
    tmpMap.put(_Fields.RETURN_TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("returnTransactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
277
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
278
    tmpMap.put(_Fields.MASTER_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("masterOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
279
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
280
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
281
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
282
    tmpMap.put(_Fields.LINE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("lineItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
283
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
284
    tmpMap.put(_Fields.LOGISTICS_REQUEST_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsRequestId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
285
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
286
    tmpMap.put(_Fields.RETURN_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("returnQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
287
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
288
    tmpMap.put(_Fields.RECEIVED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("receivedQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
289
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
290
    tmpMap.put(_Fields.CREATED_AT, new org.apache.thrift.meta_data.FieldMetaData("createdAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
291
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
292
    tmpMap.put(_Fields.PROCESSED_AT, new org.apache.thrift.meta_data.FieldMetaData("processedAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
293
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
294
    tmpMap.put(_Fields.RETURN_STATUS, new org.apache.thrift.meta_data.FieldMetaData("returnStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
295
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
296
    tmpMap.put(_Fields.RESHIPPED_AT, new org.apache.thrift.meta_data.FieldMetaData("reshippedAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
297
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
298
    tmpMap.put(_Fields.RECEIVED_AT, new org.apache.thrift.meta_data.FieldMetaData("receivedAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
299
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
300
    tmpMap.put(_Fields.REFUND_REASON, new org.apache.thrift.meta_data.FieldMetaData("refundReason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
301
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
302
    tmpMap.put(_Fields.REFUNDED_BY, new org.apache.thrift.meta_data.FieldMetaData("refundedBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
303
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
304
    tmpMap.put(_Fields.REFUNDED_AT, new org.apache.thrift.meta_data.FieldMetaData("refundedAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
305
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
306
    tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
307
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
308
    tmpMap.put(_Fields.REFUND_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("refundAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
309
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
310
    tmpMap.put(_Fields.REFUND_TYPE, new org.apache.thrift.meta_data.FieldMetaData("refundType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
311
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RefundType.class)));
312
    tmpMap.put(_Fields.REFUND_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("refundDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, 
313
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
314
    tmpMap.put(_Fields.RETURN_PICKUP_TYPE, new org.apache.thrift.meta_data.FieldMetaData("returnPickupType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
315
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ReturnPickupType.class)));
316
    tmpMap.put(_Fields.SHIPPING_TYPE, new org.apache.thrift.meta_data.FieldMetaData("shippingType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
317
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ReplacementShippingType.class)));
318
    tmpMap.put(_Fields.REPLACEMENT_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("replacementOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
319
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
320
    tmpMap.put(_Fields.RECEIVED_RETURN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("receivedReturnType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
321
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ReceivedReturnType.class)));
322
    tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
323
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
324
    tmpMap.put(_Fields.RETURN_ACTION, new org.apache.thrift.meta_data.FieldMetaData("returnAction", org.apache.thrift.TFieldRequirementType.DEFAULT, 
325
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ReturnAction.class)));
326
    tmpMap.put(_Fields.RETURN_TXN_RESOLUTION_STATUS, new org.apache.thrift.meta_data.FieldMetaData("returnTxnResolutionStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
327
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ReturnTxnResolutionStatus.class)));
328
    tmpMap.put(_Fields.LINEITEM, new org.apache.thrift.meta_data.FieldMetaData("lineitem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
329
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LineItem.class)));
330
    tmpMap.put(_Fields.RETURN_PICK_UP_REQUEST, new org.apache.thrift.meta_data.FieldMetaData("returnPickUpRequest", org.apache.thrift.TFieldRequirementType.DEFAULT, 
331
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnPickupRequest.class)));
332
    metaDataMap = Collections.unmodifiableMap(tmpMap);
333
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ReturnOrderInfo.class, metaDataMap);
334
  }
335
 
336
  public ReturnOrderInfo() {
337
  }
338
 
339
  public ReturnOrderInfo(
340
    long id,
341
    long returnTransactionId,
342
    String masterOrderId,
343
    long orderId,
344
    long lineItemId,
345
    long logisticsRequestId,
346
    long returnQuantity,
347
    long receivedQuantity,
348
    long createdAt,
349
    long processedAt,
350
    String returnStatus,
351
    long reshippedAt,
352
    long receivedAt,
353
    String refundReason,
354
    String refundedBy,
355
    long refundedAt,
356
    long warehouse_id,
357
    double refundAmount,
358
    RefundType refundType,
359
    String refundDescription,
360
    ReturnPickupType returnPickupType,
361
    ReplacementShippingType shippingType,
362
    long replacementOrderId,
363
    ReceivedReturnType receivedReturnType,
364
    long freebieItemId,
365
    ReturnAction returnAction,
366
    ReturnTxnResolutionStatus returnTxnResolutionStatus,
367
    LineItem lineitem,
368
    ReturnPickupRequest returnPickUpRequest)
369
  {
370
    this();
371
    this.id = id;
372
    setIdIsSet(true);
373
    this.returnTransactionId = returnTransactionId;
374
    setReturnTransactionIdIsSet(true);
375
    this.masterOrderId = masterOrderId;
376
    this.orderId = orderId;
377
    setOrderIdIsSet(true);
378
    this.lineItemId = lineItemId;
379
    setLineItemIdIsSet(true);
380
    this.logisticsRequestId = logisticsRequestId;
381
    setLogisticsRequestIdIsSet(true);
382
    this.returnQuantity = returnQuantity;
383
    setReturnQuantityIsSet(true);
384
    this.receivedQuantity = receivedQuantity;
385
    setReceivedQuantityIsSet(true);
386
    this.createdAt = createdAt;
387
    setCreatedAtIsSet(true);
388
    this.processedAt = processedAt;
389
    setProcessedAtIsSet(true);
390
    this.returnStatus = returnStatus;
391
    this.reshippedAt = reshippedAt;
392
    setReshippedAtIsSet(true);
393
    this.receivedAt = receivedAt;
394
    setReceivedAtIsSet(true);
395
    this.refundReason = refundReason;
396
    this.refundedBy = refundedBy;
397
    this.refundedAt = refundedAt;
398
    setRefundedAtIsSet(true);
399
    this.warehouse_id = warehouse_id;
400
    setWarehouse_idIsSet(true);
401
    this.refundAmount = refundAmount;
402
    setRefundAmountIsSet(true);
403
    this.refundType = refundType;
404
    this.refundDescription = refundDescription;
405
    this.returnPickupType = returnPickupType;
406
    this.shippingType = shippingType;
407
    this.replacementOrderId = replacementOrderId;
408
    setReplacementOrderIdIsSet(true);
409
    this.receivedReturnType = receivedReturnType;
410
    this.freebieItemId = freebieItemId;
411
    setFreebieItemIdIsSet(true);
412
    this.returnAction = returnAction;
413
    this.returnTxnResolutionStatus = returnTxnResolutionStatus;
414
    this.lineitem = lineitem;
415
    this.returnPickUpRequest = returnPickUpRequest;
416
  }
417
 
418
  /**
419
   * Performs a deep copy on <i>other</i>.
420
   */
421
  public ReturnOrderInfo(ReturnOrderInfo other) {
422
    __isset_bit_vector.clear();
423
    __isset_bit_vector.or(other.__isset_bit_vector);
424
    this.id = other.id;
425
    this.returnTransactionId = other.returnTransactionId;
426
    if (other.isSetMasterOrderId()) {
427
      this.masterOrderId = other.masterOrderId;
428
    }
429
    this.orderId = other.orderId;
430
    this.lineItemId = other.lineItemId;
431
    this.logisticsRequestId = other.logisticsRequestId;
432
    this.returnQuantity = other.returnQuantity;
433
    this.receivedQuantity = other.receivedQuantity;
434
    this.createdAt = other.createdAt;
435
    this.processedAt = other.processedAt;
436
    if (other.isSetReturnStatus()) {
437
      this.returnStatus = other.returnStatus;
438
    }
439
    this.reshippedAt = other.reshippedAt;
440
    this.receivedAt = other.receivedAt;
441
    if (other.isSetRefundReason()) {
442
      this.refundReason = other.refundReason;
443
    }
444
    if (other.isSetRefundedBy()) {
445
      this.refundedBy = other.refundedBy;
446
    }
447
    this.refundedAt = other.refundedAt;
448
    this.warehouse_id = other.warehouse_id;
449
    this.refundAmount = other.refundAmount;
450
    if (other.isSetRefundType()) {
451
      this.refundType = other.refundType;
452
    }
453
    if (other.isSetRefundDescription()) {
454
      this.refundDescription = other.refundDescription;
455
    }
456
    if (other.isSetReturnPickupType()) {
457
      this.returnPickupType = other.returnPickupType;
458
    }
459
    if (other.isSetShippingType()) {
460
      this.shippingType = other.shippingType;
461
    }
462
    this.replacementOrderId = other.replacementOrderId;
463
    if (other.isSetReceivedReturnType()) {
464
      this.receivedReturnType = other.receivedReturnType;
465
    }
466
    this.freebieItemId = other.freebieItemId;
467
    if (other.isSetReturnAction()) {
468
      this.returnAction = other.returnAction;
469
    }
470
    if (other.isSetReturnTxnResolutionStatus()) {
471
      this.returnTxnResolutionStatus = other.returnTxnResolutionStatus;
472
    }
473
    if (other.isSetLineitem()) {
474
      this.lineitem = new LineItem(other.lineitem);
475
    }
476
    if (other.isSetReturnPickUpRequest()) {
477
      this.returnPickUpRequest = new ReturnPickupRequest(other.returnPickUpRequest);
478
    }
479
  }
480
 
481
  public ReturnOrderInfo deepCopy() {
482
    return new ReturnOrderInfo(this);
483
  }
484
 
485
  @Override
486
  public void clear() {
487
    setIdIsSet(false);
488
    this.id = 0;
489
    setReturnTransactionIdIsSet(false);
490
    this.returnTransactionId = 0;
491
    this.masterOrderId = null;
492
    setOrderIdIsSet(false);
493
    this.orderId = 0;
494
    setLineItemIdIsSet(false);
495
    this.lineItemId = 0;
496
    setLogisticsRequestIdIsSet(false);
497
    this.logisticsRequestId = 0;
498
    setReturnQuantityIsSet(false);
499
    this.returnQuantity = 0;
500
    setReceivedQuantityIsSet(false);
501
    this.receivedQuantity = 0;
502
    setCreatedAtIsSet(false);
503
    this.createdAt = 0;
504
    setProcessedAtIsSet(false);
505
    this.processedAt = 0;
506
    this.returnStatus = null;
507
    setReshippedAtIsSet(false);
508
    this.reshippedAt = 0;
509
    setReceivedAtIsSet(false);
510
    this.receivedAt = 0;
511
    this.refundReason = null;
512
    this.refundedBy = null;
513
    setRefundedAtIsSet(false);
514
    this.refundedAt = 0;
515
    setWarehouse_idIsSet(false);
516
    this.warehouse_id = 0;
517
    setRefundAmountIsSet(false);
518
    this.refundAmount = 0.0;
519
    this.refundType = null;
520
    this.refundDescription = null;
521
    this.returnPickupType = null;
522
    this.shippingType = null;
523
    setReplacementOrderIdIsSet(false);
524
    this.replacementOrderId = 0;
525
    this.receivedReturnType = null;
526
    setFreebieItemIdIsSet(false);
527
    this.freebieItemId = 0;
528
    this.returnAction = null;
529
    this.returnTxnResolutionStatus = null;
530
    this.lineitem = null;
531
    this.returnPickUpRequest = null;
532
  }
533
 
534
  public long getId() {
535
    return this.id;
536
  }
537
 
538
  public void setId(long id) {
539
    this.id = id;
540
    setIdIsSet(true);
541
  }
542
 
543
  public void unsetId() {
544
    __isset_bit_vector.clear(__ID_ISSET_ID);
545
  }
546
 
547
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
548
  public boolean isSetId() {
549
    return __isset_bit_vector.get(__ID_ISSET_ID);
550
  }
551
 
552
  public void setIdIsSet(boolean value) {
553
    __isset_bit_vector.set(__ID_ISSET_ID, value);
554
  }
555
 
556
  public long getReturnTransactionId() {
557
    return this.returnTransactionId;
558
  }
559
 
560
  public void setReturnTransactionId(long returnTransactionId) {
561
    this.returnTransactionId = returnTransactionId;
562
    setReturnTransactionIdIsSet(true);
563
  }
564
 
565
  public void unsetReturnTransactionId() {
566
    __isset_bit_vector.clear(__RETURNTRANSACTIONID_ISSET_ID);
567
  }
568
 
569
  /** Returns true if field returnTransactionId is set (has been assigned a value) and false otherwise */
570
  public boolean isSetReturnTransactionId() {
571
    return __isset_bit_vector.get(__RETURNTRANSACTIONID_ISSET_ID);
572
  }
573
 
574
  public void setReturnTransactionIdIsSet(boolean value) {
575
    __isset_bit_vector.set(__RETURNTRANSACTIONID_ISSET_ID, value);
576
  }
577
 
578
  public String getMasterOrderId() {
579
    return this.masterOrderId;
580
  }
581
 
582
  public void setMasterOrderId(String masterOrderId) {
583
    this.masterOrderId = masterOrderId;
584
  }
585
 
586
  public void unsetMasterOrderId() {
587
    this.masterOrderId = null;
588
  }
589
 
590
  /** Returns true if field masterOrderId is set (has been assigned a value) and false otherwise */
591
  public boolean isSetMasterOrderId() {
592
    return this.masterOrderId != null;
593
  }
594
 
595
  public void setMasterOrderIdIsSet(boolean value) {
596
    if (!value) {
597
      this.masterOrderId = null;
598
    }
599
  }
600
 
601
  public long getOrderId() {
602
    return this.orderId;
603
  }
604
 
605
  public void setOrderId(long orderId) {
606
    this.orderId = orderId;
607
    setOrderIdIsSet(true);
608
  }
609
 
610
  public void unsetOrderId() {
611
    __isset_bit_vector.clear(__ORDERID_ISSET_ID);
612
  }
613
 
614
  /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
615
  public boolean isSetOrderId() {
616
    return __isset_bit_vector.get(__ORDERID_ISSET_ID);
617
  }
618
 
619
  public void setOrderIdIsSet(boolean value) {
620
    __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
621
  }
622
 
623
  public long getLineItemId() {
624
    return this.lineItemId;
625
  }
626
 
627
  public void setLineItemId(long lineItemId) {
628
    this.lineItemId = lineItemId;
629
    setLineItemIdIsSet(true);
630
  }
631
 
632
  public void unsetLineItemId() {
633
    __isset_bit_vector.clear(__LINEITEMID_ISSET_ID);
634
  }
635
 
636
  /** Returns true if field lineItemId is set (has been assigned a value) and false otherwise */
637
  public boolean isSetLineItemId() {
638
    return __isset_bit_vector.get(__LINEITEMID_ISSET_ID);
639
  }
640
 
641
  public void setLineItemIdIsSet(boolean value) {
642
    __isset_bit_vector.set(__LINEITEMID_ISSET_ID, value);
643
  }
644
 
645
  public long getLogisticsRequestId() {
646
    return this.logisticsRequestId;
647
  }
648
 
649
  public void setLogisticsRequestId(long logisticsRequestId) {
650
    this.logisticsRequestId = logisticsRequestId;
651
    setLogisticsRequestIdIsSet(true);
652
  }
653
 
654
  public void unsetLogisticsRequestId() {
655
    __isset_bit_vector.clear(__LOGISTICSREQUESTID_ISSET_ID);
656
  }
657
 
658
  /** Returns true if field logisticsRequestId is set (has been assigned a value) and false otherwise */
659
  public boolean isSetLogisticsRequestId() {
660
    return __isset_bit_vector.get(__LOGISTICSREQUESTID_ISSET_ID);
661
  }
662
 
663
  public void setLogisticsRequestIdIsSet(boolean value) {
664
    __isset_bit_vector.set(__LOGISTICSREQUESTID_ISSET_ID, value);
665
  }
666
 
667
  public long getReturnQuantity() {
668
    return this.returnQuantity;
669
  }
670
 
671
  public void setReturnQuantity(long returnQuantity) {
672
    this.returnQuantity = returnQuantity;
673
    setReturnQuantityIsSet(true);
674
  }
675
 
676
  public void unsetReturnQuantity() {
677
    __isset_bit_vector.clear(__RETURNQUANTITY_ISSET_ID);
678
  }
679
 
680
  /** Returns true if field returnQuantity is set (has been assigned a value) and false otherwise */
681
  public boolean isSetReturnQuantity() {
682
    return __isset_bit_vector.get(__RETURNQUANTITY_ISSET_ID);
683
  }
684
 
685
  public void setReturnQuantityIsSet(boolean value) {
686
    __isset_bit_vector.set(__RETURNQUANTITY_ISSET_ID, value);
687
  }
688
 
689
  public long getReceivedQuantity() {
690
    return this.receivedQuantity;
691
  }
692
 
693
  public void setReceivedQuantity(long receivedQuantity) {
694
    this.receivedQuantity = receivedQuantity;
695
    setReceivedQuantityIsSet(true);
696
  }
697
 
698
  public void unsetReceivedQuantity() {
699
    __isset_bit_vector.clear(__RECEIVEDQUANTITY_ISSET_ID);
700
  }
701
 
702
  /** Returns true if field receivedQuantity is set (has been assigned a value) and false otherwise */
703
  public boolean isSetReceivedQuantity() {
704
    return __isset_bit_vector.get(__RECEIVEDQUANTITY_ISSET_ID);
705
  }
706
 
707
  public void setReceivedQuantityIsSet(boolean value) {
708
    __isset_bit_vector.set(__RECEIVEDQUANTITY_ISSET_ID, value);
709
  }
710
 
711
  public long getCreatedAt() {
712
    return this.createdAt;
713
  }
714
 
715
  public void setCreatedAt(long createdAt) {
716
    this.createdAt = createdAt;
717
    setCreatedAtIsSet(true);
718
  }
719
 
720
  public void unsetCreatedAt() {
721
    __isset_bit_vector.clear(__CREATEDAT_ISSET_ID);
722
  }
723
 
724
  /** Returns true if field createdAt is set (has been assigned a value) and false otherwise */
725
  public boolean isSetCreatedAt() {
726
    return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);
727
  }
728
 
729
  public void setCreatedAtIsSet(boolean value) {
730
    __isset_bit_vector.set(__CREATEDAT_ISSET_ID, value);
731
  }
732
 
733
  public long getProcessedAt() {
734
    return this.processedAt;
735
  }
736
 
737
  public void setProcessedAt(long processedAt) {
738
    this.processedAt = processedAt;
739
    setProcessedAtIsSet(true);
740
  }
741
 
742
  public void unsetProcessedAt() {
743
    __isset_bit_vector.clear(__PROCESSEDAT_ISSET_ID);
744
  }
745
 
746
  /** Returns true if field processedAt is set (has been assigned a value) and false otherwise */
747
  public boolean isSetProcessedAt() {
748
    return __isset_bit_vector.get(__PROCESSEDAT_ISSET_ID);
749
  }
750
 
751
  public void setProcessedAtIsSet(boolean value) {
752
    __isset_bit_vector.set(__PROCESSEDAT_ISSET_ID, value);
753
  }
754
 
755
  public String getReturnStatus() {
756
    return this.returnStatus;
757
  }
758
 
759
  public void setReturnStatus(String returnStatus) {
760
    this.returnStatus = returnStatus;
761
  }
762
 
763
  public void unsetReturnStatus() {
764
    this.returnStatus = null;
765
  }
766
 
767
  /** Returns true if field returnStatus is set (has been assigned a value) and false otherwise */
768
  public boolean isSetReturnStatus() {
769
    return this.returnStatus != null;
770
  }
771
 
772
  public void setReturnStatusIsSet(boolean value) {
773
    if (!value) {
774
      this.returnStatus = null;
775
    }
776
  }
777
 
778
  public long getReshippedAt() {
779
    return this.reshippedAt;
780
  }
781
 
782
  public void setReshippedAt(long reshippedAt) {
783
    this.reshippedAt = reshippedAt;
784
    setReshippedAtIsSet(true);
785
  }
786
 
787
  public void unsetReshippedAt() {
788
    __isset_bit_vector.clear(__RESHIPPEDAT_ISSET_ID);
789
  }
790
 
791
  /** Returns true if field reshippedAt is set (has been assigned a value) and false otherwise */
792
  public boolean isSetReshippedAt() {
793
    return __isset_bit_vector.get(__RESHIPPEDAT_ISSET_ID);
794
  }
795
 
796
  public void setReshippedAtIsSet(boolean value) {
797
    __isset_bit_vector.set(__RESHIPPEDAT_ISSET_ID, value);
798
  }
799
 
800
  public long getReceivedAt() {
801
    return this.receivedAt;
802
  }
803
 
804
  public void setReceivedAt(long receivedAt) {
805
    this.receivedAt = receivedAt;
806
    setReceivedAtIsSet(true);
807
  }
808
 
809
  public void unsetReceivedAt() {
810
    __isset_bit_vector.clear(__RECEIVEDAT_ISSET_ID);
811
  }
812
 
813
  /** Returns true if field receivedAt is set (has been assigned a value) and false otherwise */
814
  public boolean isSetReceivedAt() {
815
    return __isset_bit_vector.get(__RECEIVEDAT_ISSET_ID);
816
  }
817
 
818
  public void setReceivedAtIsSet(boolean value) {
819
    __isset_bit_vector.set(__RECEIVEDAT_ISSET_ID, value);
820
  }
821
 
822
  public String getRefundReason() {
823
    return this.refundReason;
824
  }
825
 
826
  public void setRefundReason(String refundReason) {
827
    this.refundReason = refundReason;
828
  }
829
 
830
  public void unsetRefundReason() {
831
    this.refundReason = null;
832
  }
833
 
834
  /** Returns true if field refundReason is set (has been assigned a value) and false otherwise */
835
  public boolean isSetRefundReason() {
836
    return this.refundReason != null;
837
  }
838
 
839
  public void setRefundReasonIsSet(boolean value) {
840
    if (!value) {
841
      this.refundReason = null;
842
    }
843
  }
844
 
845
  public String getRefundedBy() {
846
    return this.refundedBy;
847
  }
848
 
849
  public void setRefundedBy(String refundedBy) {
850
    this.refundedBy = refundedBy;
851
  }
852
 
853
  public void unsetRefundedBy() {
854
    this.refundedBy = null;
855
  }
856
 
857
  /** Returns true if field refundedBy is set (has been assigned a value) and false otherwise */
858
  public boolean isSetRefundedBy() {
859
    return this.refundedBy != null;
860
  }
861
 
862
  public void setRefundedByIsSet(boolean value) {
863
    if (!value) {
864
      this.refundedBy = null;
865
    }
866
  }
867
 
868
  public long getRefundedAt() {
869
    return this.refundedAt;
870
  }
871
 
872
  public void setRefundedAt(long refundedAt) {
873
    this.refundedAt = refundedAt;
874
    setRefundedAtIsSet(true);
875
  }
876
 
877
  public void unsetRefundedAt() {
878
    __isset_bit_vector.clear(__REFUNDEDAT_ISSET_ID);
879
  }
880
 
881
  /** Returns true if field refundedAt is set (has been assigned a value) and false otherwise */
882
  public boolean isSetRefundedAt() {
883
    return __isset_bit_vector.get(__REFUNDEDAT_ISSET_ID);
884
  }
885
 
886
  public void setRefundedAtIsSet(boolean value) {
887
    __isset_bit_vector.set(__REFUNDEDAT_ISSET_ID, value);
888
  }
889
 
890
  public long getWarehouse_id() {
891
    return this.warehouse_id;
892
  }
893
 
894
  public void setWarehouse_id(long warehouse_id) {
895
    this.warehouse_id = warehouse_id;
896
    setWarehouse_idIsSet(true);
897
  }
898
 
899
  public void unsetWarehouse_id() {
900
    __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
901
  }
902
 
903
  /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
904
  public boolean isSetWarehouse_id() {
905
    return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
906
  }
907
 
908
  public void setWarehouse_idIsSet(boolean value) {
909
    __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
910
  }
911
 
912
  public double getRefundAmount() {
913
    return this.refundAmount;
914
  }
915
 
916
  public void setRefundAmount(double refundAmount) {
917
    this.refundAmount = refundAmount;
918
    setRefundAmountIsSet(true);
919
  }
920
 
921
  public void unsetRefundAmount() {
922
    __isset_bit_vector.clear(__REFUNDAMOUNT_ISSET_ID);
923
  }
924
 
925
  /** Returns true if field refundAmount is set (has been assigned a value) and false otherwise */
926
  public boolean isSetRefundAmount() {
927
    return __isset_bit_vector.get(__REFUNDAMOUNT_ISSET_ID);
928
  }
929
 
930
  public void setRefundAmountIsSet(boolean value) {
931
    __isset_bit_vector.set(__REFUNDAMOUNT_ISSET_ID, value);
932
  }
933
 
934
  /**
935
   * 
936
   * @see RefundType
937
   */
938
  public RefundType getRefundType() {
939
    return this.refundType;
940
  }
941
 
942
  /**
943
   * 
944
   * @see RefundType
945
   */
946
  public void setRefundType(RefundType refundType) {
947
    this.refundType = refundType;
948
  }
949
 
950
  public void unsetRefundType() {
951
    this.refundType = null;
952
  }
953
 
954
  /** Returns true if field refundType is set (has been assigned a value) and false otherwise */
955
  public boolean isSetRefundType() {
956
    return this.refundType != null;
957
  }
958
 
959
  public void setRefundTypeIsSet(boolean value) {
960
    if (!value) {
961
      this.refundType = null;
962
    }
963
  }
964
 
965
  public String getRefundDescription() {
966
    return this.refundDescription;
967
  }
968
 
969
  public void setRefundDescription(String refundDescription) {
970
    this.refundDescription = refundDescription;
971
  }
972
 
973
  public void unsetRefundDescription() {
974
    this.refundDescription = null;
975
  }
976
 
977
  /** Returns true if field refundDescription is set (has been assigned a value) and false otherwise */
978
  public boolean isSetRefundDescription() {
979
    return this.refundDescription != null;
980
  }
981
 
982
  public void setRefundDescriptionIsSet(boolean value) {
983
    if (!value) {
984
      this.refundDescription = null;
985
    }
986
  }
987
 
988
  /**
989
   * 
990
   * @see ReturnPickupType
991
   */
992
  public ReturnPickupType getReturnPickupType() {
993
    return this.returnPickupType;
994
  }
995
 
996
  /**
997
   * 
998
   * @see ReturnPickupType
999
   */
1000
  public void setReturnPickupType(ReturnPickupType returnPickupType) {
1001
    this.returnPickupType = returnPickupType;
1002
  }
1003
 
1004
  public void unsetReturnPickupType() {
1005
    this.returnPickupType = null;
1006
  }
1007
 
1008
  /** Returns true if field returnPickupType is set (has been assigned a value) and false otherwise */
1009
  public boolean isSetReturnPickupType() {
1010
    return this.returnPickupType != null;
1011
  }
1012
 
1013
  public void setReturnPickupTypeIsSet(boolean value) {
1014
    if (!value) {
1015
      this.returnPickupType = null;
1016
    }
1017
  }
1018
 
1019
  /**
1020
   * 
1021
   * @see ReplacementShippingType
1022
   */
1023
  public ReplacementShippingType getShippingType() {
1024
    return this.shippingType;
1025
  }
1026
 
1027
  /**
1028
   * 
1029
   * @see ReplacementShippingType
1030
   */
1031
  public void setShippingType(ReplacementShippingType shippingType) {
1032
    this.shippingType = shippingType;
1033
  }
1034
 
1035
  public void unsetShippingType() {
1036
    this.shippingType = null;
1037
  }
1038
 
1039
  /** Returns true if field shippingType is set (has been assigned a value) and false otherwise */
1040
  public boolean isSetShippingType() {
1041
    return this.shippingType != null;
1042
  }
1043
 
1044
  public void setShippingTypeIsSet(boolean value) {
1045
    if (!value) {
1046
      this.shippingType = null;
1047
    }
1048
  }
1049
 
1050
  public long getReplacementOrderId() {
1051
    return this.replacementOrderId;
1052
  }
1053
 
1054
  public void setReplacementOrderId(long replacementOrderId) {
1055
    this.replacementOrderId = replacementOrderId;
1056
    setReplacementOrderIdIsSet(true);
1057
  }
1058
 
1059
  public void unsetReplacementOrderId() {
1060
    __isset_bit_vector.clear(__REPLACEMENTORDERID_ISSET_ID);
1061
  }
1062
 
1063
  /** Returns true if field replacementOrderId is set (has been assigned a value) and false otherwise */
1064
  public boolean isSetReplacementOrderId() {
1065
    return __isset_bit_vector.get(__REPLACEMENTORDERID_ISSET_ID);
1066
  }
1067
 
1068
  public void setReplacementOrderIdIsSet(boolean value) {
1069
    __isset_bit_vector.set(__REPLACEMENTORDERID_ISSET_ID, value);
1070
  }
1071
 
1072
  /**
1073
   * 
1074
   * @see ReceivedReturnType
1075
   */
1076
  public ReceivedReturnType getReceivedReturnType() {
1077
    return this.receivedReturnType;
1078
  }
1079
 
1080
  /**
1081
   * 
1082
   * @see ReceivedReturnType
1083
   */
1084
  public void setReceivedReturnType(ReceivedReturnType receivedReturnType) {
1085
    this.receivedReturnType = receivedReturnType;
1086
  }
1087
 
1088
  public void unsetReceivedReturnType() {
1089
    this.receivedReturnType = null;
1090
  }
1091
 
1092
  /** Returns true if field receivedReturnType is set (has been assigned a value) and false otherwise */
1093
  public boolean isSetReceivedReturnType() {
1094
    return this.receivedReturnType != null;
1095
  }
1096
 
1097
  public void setReceivedReturnTypeIsSet(boolean value) {
1098
    if (!value) {
1099
      this.receivedReturnType = null;
1100
    }
1101
  }
1102
 
1103
  public long getFreebieItemId() {
1104
    return this.freebieItemId;
1105
  }
1106
 
1107
  public void setFreebieItemId(long freebieItemId) {
1108
    this.freebieItemId = freebieItemId;
1109
    setFreebieItemIdIsSet(true);
1110
  }
1111
 
1112
  public void unsetFreebieItemId() {
1113
    __isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);
1114
  }
1115
 
1116
  /** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */
1117
  public boolean isSetFreebieItemId() {
1118
    return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);
1119
  }
1120
 
1121
  public void setFreebieItemIdIsSet(boolean value) {
1122
    __isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
1123
  }
1124
 
1125
  /**
1126
   * 
1127
   * @see ReturnAction
1128
   */
1129
  public ReturnAction getReturnAction() {
1130
    return this.returnAction;
1131
  }
1132
 
1133
  /**
1134
   * 
1135
   * @see ReturnAction
1136
   */
1137
  public void setReturnAction(ReturnAction returnAction) {
1138
    this.returnAction = returnAction;
1139
  }
1140
 
1141
  public void unsetReturnAction() {
1142
    this.returnAction = null;
1143
  }
1144
 
1145
  /** Returns true if field returnAction is set (has been assigned a value) and false otherwise */
1146
  public boolean isSetReturnAction() {
1147
    return this.returnAction != null;
1148
  }
1149
 
1150
  public void setReturnActionIsSet(boolean value) {
1151
    if (!value) {
1152
      this.returnAction = null;
1153
    }
1154
  }
1155
 
1156
  /**
1157
   * 
1158
   * @see ReturnTxnResolutionStatus
1159
   */
1160
  public ReturnTxnResolutionStatus getReturnTxnResolutionStatus() {
1161
    return this.returnTxnResolutionStatus;
1162
  }
1163
 
1164
  /**
1165
   * 
1166
   * @see ReturnTxnResolutionStatus
1167
   */
1168
  public void setReturnTxnResolutionStatus(ReturnTxnResolutionStatus returnTxnResolutionStatus) {
1169
    this.returnTxnResolutionStatus = returnTxnResolutionStatus;
1170
  }
1171
 
1172
  public void unsetReturnTxnResolutionStatus() {
1173
    this.returnTxnResolutionStatus = null;
1174
  }
1175
 
1176
  /** Returns true if field returnTxnResolutionStatus is set (has been assigned a value) and false otherwise */
1177
  public boolean isSetReturnTxnResolutionStatus() {
1178
    return this.returnTxnResolutionStatus != null;
1179
  }
1180
 
1181
  public void setReturnTxnResolutionStatusIsSet(boolean value) {
1182
    if (!value) {
1183
      this.returnTxnResolutionStatus = null;
1184
    }
1185
  }
1186
 
1187
  public LineItem getLineitem() {
1188
    return this.lineitem;
1189
  }
1190
 
1191
  public void setLineitem(LineItem lineitem) {
1192
    this.lineitem = lineitem;
1193
  }
1194
 
1195
  public void unsetLineitem() {
1196
    this.lineitem = null;
1197
  }
1198
 
1199
  /** Returns true if field lineitem is set (has been assigned a value) and false otherwise */
1200
  public boolean isSetLineitem() {
1201
    return this.lineitem != null;
1202
  }
1203
 
1204
  public void setLineitemIsSet(boolean value) {
1205
    if (!value) {
1206
      this.lineitem = null;
1207
    }
1208
  }
1209
 
1210
  public ReturnPickupRequest getReturnPickUpRequest() {
1211
    return this.returnPickUpRequest;
1212
  }
1213
 
1214
  public void setReturnPickUpRequest(ReturnPickupRequest returnPickUpRequest) {
1215
    this.returnPickUpRequest = returnPickUpRequest;
1216
  }
1217
 
1218
  public void unsetReturnPickUpRequest() {
1219
    this.returnPickUpRequest = null;
1220
  }
1221
 
1222
  /** Returns true if field returnPickUpRequest is set (has been assigned a value) and false otherwise */
1223
  public boolean isSetReturnPickUpRequest() {
1224
    return this.returnPickUpRequest != null;
1225
  }
1226
 
1227
  public void setReturnPickUpRequestIsSet(boolean value) {
1228
    if (!value) {
1229
      this.returnPickUpRequest = null;
1230
    }
1231
  }
1232
 
1233
  public void setFieldValue(_Fields field, Object value) {
1234
    switch (field) {
1235
    case ID:
1236
      if (value == null) {
1237
        unsetId();
1238
      } else {
1239
        setId((Long)value);
1240
      }
1241
      break;
1242
 
1243
    case RETURN_TRANSACTION_ID:
1244
      if (value == null) {
1245
        unsetReturnTransactionId();
1246
      } else {
1247
        setReturnTransactionId((Long)value);
1248
      }
1249
      break;
1250
 
1251
    case MASTER_ORDER_ID:
1252
      if (value == null) {
1253
        unsetMasterOrderId();
1254
      } else {
1255
        setMasterOrderId((String)value);
1256
      }
1257
      break;
1258
 
1259
    case ORDER_ID:
1260
      if (value == null) {
1261
        unsetOrderId();
1262
      } else {
1263
        setOrderId((Long)value);
1264
      }
1265
      break;
1266
 
1267
    case LINE_ITEM_ID:
1268
      if (value == null) {
1269
        unsetLineItemId();
1270
      } else {
1271
        setLineItemId((Long)value);
1272
      }
1273
      break;
1274
 
1275
    case LOGISTICS_REQUEST_ID:
1276
      if (value == null) {
1277
        unsetLogisticsRequestId();
1278
      } else {
1279
        setLogisticsRequestId((Long)value);
1280
      }
1281
      break;
1282
 
1283
    case RETURN_QUANTITY:
1284
      if (value == null) {
1285
        unsetReturnQuantity();
1286
      } else {
1287
        setReturnQuantity((Long)value);
1288
      }
1289
      break;
1290
 
1291
    case RECEIVED_QUANTITY:
1292
      if (value == null) {
1293
        unsetReceivedQuantity();
1294
      } else {
1295
        setReceivedQuantity((Long)value);
1296
      }
1297
      break;
1298
 
1299
    case CREATED_AT:
1300
      if (value == null) {
1301
        unsetCreatedAt();
1302
      } else {
1303
        setCreatedAt((Long)value);
1304
      }
1305
      break;
1306
 
1307
    case PROCESSED_AT:
1308
      if (value == null) {
1309
        unsetProcessedAt();
1310
      } else {
1311
        setProcessedAt((Long)value);
1312
      }
1313
      break;
1314
 
1315
    case RETURN_STATUS:
1316
      if (value == null) {
1317
        unsetReturnStatus();
1318
      } else {
1319
        setReturnStatus((String)value);
1320
      }
1321
      break;
1322
 
1323
    case RESHIPPED_AT:
1324
      if (value == null) {
1325
        unsetReshippedAt();
1326
      } else {
1327
        setReshippedAt((Long)value);
1328
      }
1329
      break;
1330
 
1331
    case RECEIVED_AT:
1332
      if (value == null) {
1333
        unsetReceivedAt();
1334
      } else {
1335
        setReceivedAt((Long)value);
1336
      }
1337
      break;
1338
 
1339
    case REFUND_REASON:
1340
      if (value == null) {
1341
        unsetRefundReason();
1342
      } else {
1343
        setRefundReason((String)value);
1344
      }
1345
      break;
1346
 
1347
    case REFUNDED_BY:
1348
      if (value == null) {
1349
        unsetRefundedBy();
1350
      } else {
1351
        setRefundedBy((String)value);
1352
      }
1353
      break;
1354
 
1355
    case REFUNDED_AT:
1356
      if (value == null) {
1357
        unsetRefundedAt();
1358
      } else {
1359
        setRefundedAt((Long)value);
1360
      }
1361
      break;
1362
 
1363
    case WAREHOUSE_ID:
1364
      if (value == null) {
1365
        unsetWarehouse_id();
1366
      } else {
1367
        setWarehouse_id((Long)value);
1368
      }
1369
      break;
1370
 
1371
    case REFUND_AMOUNT:
1372
      if (value == null) {
1373
        unsetRefundAmount();
1374
      } else {
1375
        setRefundAmount((Double)value);
1376
      }
1377
      break;
1378
 
1379
    case REFUND_TYPE:
1380
      if (value == null) {
1381
        unsetRefundType();
1382
      } else {
1383
        setRefundType((RefundType)value);
1384
      }
1385
      break;
1386
 
1387
    case REFUND_DESCRIPTION:
1388
      if (value == null) {
1389
        unsetRefundDescription();
1390
      } else {
1391
        setRefundDescription((String)value);
1392
      }
1393
      break;
1394
 
1395
    case RETURN_PICKUP_TYPE:
1396
      if (value == null) {
1397
        unsetReturnPickupType();
1398
      } else {
1399
        setReturnPickupType((ReturnPickupType)value);
1400
      }
1401
      break;
1402
 
1403
    case SHIPPING_TYPE:
1404
      if (value == null) {
1405
        unsetShippingType();
1406
      } else {
1407
        setShippingType((ReplacementShippingType)value);
1408
      }
1409
      break;
1410
 
1411
    case REPLACEMENT_ORDER_ID:
1412
      if (value == null) {
1413
        unsetReplacementOrderId();
1414
      } else {
1415
        setReplacementOrderId((Long)value);
1416
      }
1417
      break;
1418
 
1419
    case RECEIVED_RETURN_TYPE:
1420
      if (value == null) {
1421
        unsetReceivedReturnType();
1422
      } else {
1423
        setReceivedReturnType((ReceivedReturnType)value);
1424
      }
1425
      break;
1426
 
1427
    case FREEBIE_ITEM_ID:
1428
      if (value == null) {
1429
        unsetFreebieItemId();
1430
      } else {
1431
        setFreebieItemId((Long)value);
1432
      }
1433
      break;
1434
 
1435
    case RETURN_ACTION:
1436
      if (value == null) {
1437
        unsetReturnAction();
1438
      } else {
1439
        setReturnAction((ReturnAction)value);
1440
      }
1441
      break;
1442
 
1443
    case RETURN_TXN_RESOLUTION_STATUS:
1444
      if (value == null) {
1445
        unsetReturnTxnResolutionStatus();
1446
      } else {
1447
        setReturnTxnResolutionStatus((ReturnTxnResolutionStatus)value);
1448
      }
1449
      break;
1450
 
1451
    case LINEITEM:
1452
      if (value == null) {
1453
        unsetLineitem();
1454
      } else {
1455
        setLineitem((LineItem)value);
1456
      }
1457
      break;
1458
 
1459
    case RETURN_PICK_UP_REQUEST:
1460
      if (value == null) {
1461
        unsetReturnPickUpRequest();
1462
      } else {
1463
        setReturnPickUpRequest((ReturnPickupRequest)value);
1464
      }
1465
      break;
1466
 
1467
    }
1468
  }
1469
 
1470
  public Object getFieldValue(_Fields field) {
1471
    switch (field) {
1472
    case ID:
1473
      return Long.valueOf(getId());
1474
 
1475
    case RETURN_TRANSACTION_ID:
1476
      return Long.valueOf(getReturnTransactionId());
1477
 
1478
    case MASTER_ORDER_ID:
1479
      return getMasterOrderId();
1480
 
1481
    case ORDER_ID:
1482
      return Long.valueOf(getOrderId());
1483
 
1484
    case LINE_ITEM_ID:
1485
      return Long.valueOf(getLineItemId());
1486
 
1487
    case LOGISTICS_REQUEST_ID:
1488
      return Long.valueOf(getLogisticsRequestId());
1489
 
1490
    case RETURN_QUANTITY:
1491
      return Long.valueOf(getReturnQuantity());
1492
 
1493
    case RECEIVED_QUANTITY:
1494
      return Long.valueOf(getReceivedQuantity());
1495
 
1496
    case CREATED_AT:
1497
      return Long.valueOf(getCreatedAt());
1498
 
1499
    case PROCESSED_AT:
1500
      return Long.valueOf(getProcessedAt());
1501
 
1502
    case RETURN_STATUS:
1503
      return getReturnStatus();
1504
 
1505
    case RESHIPPED_AT:
1506
      return Long.valueOf(getReshippedAt());
1507
 
1508
    case RECEIVED_AT:
1509
      return Long.valueOf(getReceivedAt());
1510
 
1511
    case REFUND_REASON:
1512
      return getRefundReason();
1513
 
1514
    case REFUNDED_BY:
1515
      return getRefundedBy();
1516
 
1517
    case REFUNDED_AT:
1518
      return Long.valueOf(getRefundedAt());
1519
 
1520
    case WAREHOUSE_ID:
1521
      return Long.valueOf(getWarehouse_id());
1522
 
1523
    case REFUND_AMOUNT:
1524
      return Double.valueOf(getRefundAmount());
1525
 
1526
    case REFUND_TYPE:
1527
      return getRefundType();
1528
 
1529
    case REFUND_DESCRIPTION:
1530
      return getRefundDescription();
1531
 
1532
    case RETURN_PICKUP_TYPE:
1533
      return getReturnPickupType();
1534
 
1535
    case SHIPPING_TYPE:
1536
      return getShippingType();
1537
 
1538
    case REPLACEMENT_ORDER_ID:
1539
      return Long.valueOf(getReplacementOrderId());
1540
 
1541
    case RECEIVED_RETURN_TYPE:
1542
      return getReceivedReturnType();
1543
 
1544
    case FREEBIE_ITEM_ID:
1545
      return Long.valueOf(getFreebieItemId());
1546
 
1547
    case RETURN_ACTION:
1548
      return getReturnAction();
1549
 
1550
    case RETURN_TXN_RESOLUTION_STATUS:
1551
      return getReturnTxnResolutionStatus();
1552
 
1553
    case LINEITEM:
1554
      return getLineitem();
1555
 
1556
    case RETURN_PICK_UP_REQUEST:
1557
      return getReturnPickUpRequest();
1558
 
1559
    }
1560
    throw new IllegalStateException();
1561
  }
1562
 
1563
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1564
  public boolean isSet(_Fields field) {
1565
    if (field == null) {
1566
      throw new IllegalArgumentException();
1567
    }
1568
 
1569
    switch (field) {
1570
    case ID:
1571
      return isSetId();
1572
    case RETURN_TRANSACTION_ID:
1573
      return isSetReturnTransactionId();
1574
    case MASTER_ORDER_ID:
1575
      return isSetMasterOrderId();
1576
    case ORDER_ID:
1577
      return isSetOrderId();
1578
    case LINE_ITEM_ID:
1579
      return isSetLineItemId();
1580
    case LOGISTICS_REQUEST_ID:
1581
      return isSetLogisticsRequestId();
1582
    case RETURN_QUANTITY:
1583
      return isSetReturnQuantity();
1584
    case RECEIVED_QUANTITY:
1585
      return isSetReceivedQuantity();
1586
    case CREATED_AT:
1587
      return isSetCreatedAt();
1588
    case PROCESSED_AT:
1589
      return isSetProcessedAt();
1590
    case RETURN_STATUS:
1591
      return isSetReturnStatus();
1592
    case RESHIPPED_AT:
1593
      return isSetReshippedAt();
1594
    case RECEIVED_AT:
1595
      return isSetReceivedAt();
1596
    case REFUND_REASON:
1597
      return isSetRefundReason();
1598
    case REFUNDED_BY:
1599
      return isSetRefundedBy();
1600
    case REFUNDED_AT:
1601
      return isSetRefundedAt();
1602
    case WAREHOUSE_ID:
1603
      return isSetWarehouse_id();
1604
    case REFUND_AMOUNT:
1605
      return isSetRefundAmount();
1606
    case REFUND_TYPE:
1607
      return isSetRefundType();
1608
    case REFUND_DESCRIPTION:
1609
      return isSetRefundDescription();
1610
    case RETURN_PICKUP_TYPE:
1611
      return isSetReturnPickupType();
1612
    case SHIPPING_TYPE:
1613
      return isSetShippingType();
1614
    case REPLACEMENT_ORDER_ID:
1615
      return isSetReplacementOrderId();
1616
    case RECEIVED_RETURN_TYPE:
1617
      return isSetReceivedReturnType();
1618
    case FREEBIE_ITEM_ID:
1619
      return isSetFreebieItemId();
1620
    case RETURN_ACTION:
1621
      return isSetReturnAction();
1622
    case RETURN_TXN_RESOLUTION_STATUS:
1623
      return isSetReturnTxnResolutionStatus();
1624
    case LINEITEM:
1625
      return isSetLineitem();
1626
    case RETURN_PICK_UP_REQUEST:
1627
      return isSetReturnPickUpRequest();
1628
    }
1629
    throw new IllegalStateException();
1630
  }
1631
 
1632
  @Override
1633
  public boolean equals(Object that) {
1634
    if (that == null)
1635
      return false;
1636
    if (that instanceof ReturnOrderInfo)
1637
      return this.equals((ReturnOrderInfo)that);
1638
    return false;
1639
  }
1640
 
1641
  public boolean equals(ReturnOrderInfo that) {
1642
    if (that == null)
1643
      return false;
1644
 
1645
    boolean this_present_id = true;
1646
    boolean that_present_id = true;
1647
    if (this_present_id || that_present_id) {
1648
      if (!(this_present_id && that_present_id))
1649
        return false;
1650
      if (this.id != that.id)
1651
        return false;
1652
    }
1653
 
1654
    boolean this_present_returnTransactionId = true;
1655
    boolean that_present_returnTransactionId = true;
1656
    if (this_present_returnTransactionId || that_present_returnTransactionId) {
1657
      if (!(this_present_returnTransactionId && that_present_returnTransactionId))
1658
        return false;
1659
      if (this.returnTransactionId != that.returnTransactionId)
1660
        return false;
1661
    }
1662
 
1663
    boolean this_present_masterOrderId = true && this.isSetMasterOrderId();
1664
    boolean that_present_masterOrderId = true && that.isSetMasterOrderId();
1665
    if (this_present_masterOrderId || that_present_masterOrderId) {
1666
      if (!(this_present_masterOrderId && that_present_masterOrderId))
1667
        return false;
1668
      if (!this.masterOrderId.equals(that.masterOrderId))
1669
        return false;
1670
    }
1671
 
1672
    boolean this_present_orderId = true;
1673
    boolean that_present_orderId = true;
1674
    if (this_present_orderId || that_present_orderId) {
1675
      if (!(this_present_orderId && that_present_orderId))
1676
        return false;
1677
      if (this.orderId != that.orderId)
1678
        return false;
1679
    }
1680
 
1681
    boolean this_present_lineItemId = true;
1682
    boolean that_present_lineItemId = true;
1683
    if (this_present_lineItemId || that_present_lineItemId) {
1684
      if (!(this_present_lineItemId && that_present_lineItemId))
1685
        return false;
1686
      if (this.lineItemId != that.lineItemId)
1687
        return false;
1688
    }
1689
 
1690
    boolean this_present_logisticsRequestId = true;
1691
    boolean that_present_logisticsRequestId = true;
1692
    if (this_present_logisticsRequestId || that_present_logisticsRequestId) {
1693
      if (!(this_present_logisticsRequestId && that_present_logisticsRequestId))
1694
        return false;
1695
      if (this.logisticsRequestId != that.logisticsRequestId)
1696
        return false;
1697
    }
1698
 
1699
    boolean this_present_returnQuantity = true;
1700
    boolean that_present_returnQuantity = true;
1701
    if (this_present_returnQuantity || that_present_returnQuantity) {
1702
      if (!(this_present_returnQuantity && that_present_returnQuantity))
1703
        return false;
1704
      if (this.returnQuantity != that.returnQuantity)
1705
        return false;
1706
    }
1707
 
1708
    boolean this_present_receivedQuantity = true;
1709
    boolean that_present_receivedQuantity = true;
1710
    if (this_present_receivedQuantity || that_present_receivedQuantity) {
1711
      if (!(this_present_receivedQuantity && that_present_receivedQuantity))
1712
        return false;
1713
      if (this.receivedQuantity != that.receivedQuantity)
1714
        return false;
1715
    }
1716
 
1717
    boolean this_present_createdAt = true;
1718
    boolean that_present_createdAt = true;
1719
    if (this_present_createdAt || that_present_createdAt) {
1720
      if (!(this_present_createdAt && that_present_createdAt))
1721
        return false;
1722
      if (this.createdAt != that.createdAt)
1723
        return false;
1724
    }
1725
 
1726
    boolean this_present_processedAt = true;
1727
    boolean that_present_processedAt = true;
1728
    if (this_present_processedAt || that_present_processedAt) {
1729
      if (!(this_present_processedAt && that_present_processedAt))
1730
        return false;
1731
      if (this.processedAt != that.processedAt)
1732
        return false;
1733
    }
1734
 
1735
    boolean this_present_returnStatus = true && this.isSetReturnStatus();
1736
    boolean that_present_returnStatus = true && that.isSetReturnStatus();
1737
    if (this_present_returnStatus || that_present_returnStatus) {
1738
      if (!(this_present_returnStatus && that_present_returnStatus))
1739
        return false;
1740
      if (!this.returnStatus.equals(that.returnStatus))
1741
        return false;
1742
    }
1743
 
1744
    boolean this_present_reshippedAt = true;
1745
    boolean that_present_reshippedAt = true;
1746
    if (this_present_reshippedAt || that_present_reshippedAt) {
1747
      if (!(this_present_reshippedAt && that_present_reshippedAt))
1748
        return false;
1749
      if (this.reshippedAt != that.reshippedAt)
1750
        return false;
1751
    }
1752
 
1753
    boolean this_present_receivedAt = true;
1754
    boolean that_present_receivedAt = true;
1755
    if (this_present_receivedAt || that_present_receivedAt) {
1756
      if (!(this_present_receivedAt && that_present_receivedAt))
1757
        return false;
1758
      if (this.receivedAt != that.receivedAt)
1759
        return false;
1760
    }
1761
 
1762
    boolean this_present_refundReason = true && this.isSetRefundReason();
1763
    boolean that_present_refundReason = true && that.isSetRefundReason();
1764
    if (this_present_refundReason || that_present_refundReason) {
1765
      if (!(this_present_refundReason && that_present_refundReason))
1766
        return false;
1767
      if (!this.refundReason.equals(that.refundReason))
1768
        return false;
1769
    }
1770
 
1771
    boolean this_present_refundedBy = true && this.isSetRefundedBy();
1772
    boolean that_present_refundedBy = true && that.isSetRefundedBy();
1773
    if (this_present_refundedBy || that_present_refundedBy) {
1774
      if (!(this_present_refundedBy && that_present_refundedBy))
1775
        return false;
1776
      if (!this.refundedBy.equals(that.refundedBy))
1777
        return false;
1778
    }
1779
 
1780
    boolean this_present_refundedAt = true;
1781
    boolean that_present_refundedAt = true;
1782
    if (this_present_refundedAt || that_present_refundedAt) {
1783
      if (!(this_present_refundedAt && that_present_refundedAt))
1784
        return false;
1785
      if (this.refundedAt != that.refundedAt)
1786
        return false;
1787
    }
1788
 
1789
    boolean this_present_warehouse_id = true;
1790
    boolean that_present_warehouse_id = true;
1791
    if (this_present_warehouse_id || that_present_warehouse_id) {
1792
      if (!(this_present_warehouse_id && that_present_warehouse_id))
1793
        return false;
1794
      if (this.warehouse_id != that.warehouse_id)
1795
        return false;
1796
    }
1797
 
1798
    boolean this_present_refundAmount = true;
1799
    boolean that_present_refundAmount = true;
1800
    if (this_present_refundAmount || that_present_refundAmount) {
1801
      if (!(this_present_refundAmount && that_present_refundAmount))
1802
        return false;
1803
      if (this.refundAmount != that.refundAmount)
1804
        return false;
1805
    }
1806
 
1807
    boolean this_present_refundType = true && this.isSetRefundType();
1808
    boolean that_present_refundType = true && that.isSetRefundType();
1809
    if (this_present_refundType || that_present_refundType) {
1810
      if (!(this_present_refundType && that_present_refundType))
1811
        return false;
1812
      if (!this.refundType.equals(that.refundType))
1813
        return false;
1814
    }
1815
 
1816
    boolean this_present_refundDescription = true && this.isSetRefundDescription();
1817
    boolean that_present_refundDescription = true && that.isSetRefundDescription();
1818
    if (this_present_refundDescription || that_present_refundDescription) {
1819
      if (!(this_present_refundDescription && that_present_refundDescription))
1820
        return false;
1821
      if (!this.refundDescription.equals(that.refundDescription))
1822
        return false;
1823
    }
1824
 
1825
    boolean this_present_returnPickupType = true && this.isSetReturnPickupType();
1826
    boolean that_present_returnPickupType = true && that.isSetReturnPickupType();
1827
    if (this_present_returnPickupType || that_present_returnPickupType) {
1828
      if (!(this_present_returnPickupType && that_present_returnPickupType))
1829
        return false;
1830
      if (!this.returnPickupType.equals(that.returnPickupType))
1831
        return false;
1832
    }
1833
 
1834
    boolean this_present_shippingType = true && this.isSetShippingType();
1835
    boolean that_present_shippingType = true && that.isSetShippingType();
1836
    if (this_present_shippingType || that_present_shippingType) {
1837
      if (!(this_present_shippingType && that_present_shippingType))
1838
        return false;
1839
      if (!this.shippingType.equals(that.shippingType))
1840
        return false;
1841
    }
1842
 
1843
    boolean this_present_replacementOrderId = true;
1844
    boolean that_present_replacementOrderId = true;
1845
    if (this_present_replacementOrderId || that_present_replacementOrderId) {
1846
      if (!(this_present_replacementOrderId && that_present_replacementOrderId))
1847
        return false;
1848
      if (this.replacementOrderId != that.replacementOrderId)
1849
        return false;
1850
    }
1851
 
1852
    boolean this_present_receivedReturnType = true && this.isSetReceivedReturnType();
1853
    boolean that_present_receivedReturnType = true && that.isSetReceivedReturnType();
1854
    if (this_present_receivedReturnType || that_present_receivedReturnType) {
1855
      if (!(this_present_receivedReturnType && that_present_receivedReturnType))
1856
        return false;
1857
      if (!this.receivedReturnType.equals(that.receivedReturnType))
1858
        return false;
1859
    }
1860
 
1861
    boolean this_present_freebieItemId = true;
1862
    boolean that_present_freebieItemId = true;
1863
    if (this_present_freebieItemId || that_present_freebieItemId) {
1864
      if (!(this_present_freebieItemId && that_present_freebieItemId))
1865
        return false;
1866
      if (this.freebieItemId != that.freebieItemId)
1867
        return false;
1868
    }
1869
 
1870
    boolean this_present_returnAction = true && this.isSetReturnAction();
1871
    boolean that_present_returnAction = true && that.isSetReturnAction();
1872
    if (this_present_returnAction || that_present_returnAction) {
1873
      if (!(this_present_returnAction && that_present_returnAction))
1874
        return false;
1875
      if (!this.returnAction.equals(that.returnAction))
1876
        return false;
1877
    }
1878
 
1879
    boolean this_present_returnTxnResolutionStatus = true && this.isSetReturnTxnResolutionStatus();
1880
    boolean that_present_returnTxnResolutionStatus = true && that.isSetReturnTxnResolutionStatus();
1881
    if (this_present_returnTxnResolutionStatus || that_present_returnTxnResolutionStatus) {
1882
      if (!(this_present_returnTxnResolutionStatus && that_present_returnTxnResolutionStatus))
1883
        return false;
1884
      if (!this.returnTxnResolutionStatus.equals(that.returnTxnResolutionStatus))
1885
        return false;
1886
    }
1887
 
1888
    boolean this_present_lineitem = true && this.isSetLineitem();
1889
    boolean that_present_lineitem = true && that.isSetLineitem();
1890
    if (this_present_lineitem || that_present_lineitem) {
1891
      if (!(this_present_lineitem && that_present_lineitem))
1892
        return false;
1893
      if (!this.lineitem.equals(that.lineitem))
1894
        return false;
1895
    }
1896
 
1897
    boolean this_present_returnPickUpRequest = true && this.isSetReturnPickUpRequest();
1898
    boolean that_present_returnPickUpRequest = true && that.isSetReturnPickUpRequest();
1899
    if (this_present_returnPickUpRequest || that_present_returnPickUpRequest) {
1900
      if (!(this_present_returnPickUpRequest && that_present_returnPickUpRequest))
1901
        return false;
1902
      if (!this.returnPickUpRequest.equals(that.returnPickUpRequest))
1903
        return false;
1904
    }
1905
 
1906
    return true;
1907
  }
1908
 
1909
  @Override
1910
  public int hashCode() {
1911
    return 0;
1912
  }
1913
 
1914
  public int compareTo(ReturnOrderInfo other) {
1915
    if (!getClass().equals(other.getClass())) {
1916
      return getClass().getName().compareTo(other.getClass().getName());
1917
    }
1918
 
1919
    int lastComparison = 0;
1920
    ReturnOrderInfo typedOther = (ReturnOrderInfo)other;
1921
 
1922
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1923
    if (lastComparison != 0) {
1924
      return lastComparison;
1925
    }
1926
    if (isSetId()) {
1927
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1928
      if (lastComparison != 0) {
1929
        return lastComparison;
1930
      }
1931
    }
1932
    lastComparison = Boolean.valueOf(isSetReturnTransactionId()).compareTo(typedOther.isSetReturnTransactionId());
1933
    if (lastComparison != 0) {
1934
      return lastComparison;
1935
    }
1936
    if (isSetReturnTransactionId()) {
1937
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnTransactionId, typedOther.returnTransactionId);
1938
      if (lastComparison != 0) {
1939
        return lastComparison;
1940
      }
1941
    }
1942
    lastComparison = Boolean.valueOf(isSetMasterOrderId()).compareTo(typedOther.isSetMasterOrderId());
1943
    if (lastComparison != 0) {
1944
      return lastComparison;
1945
    }
1946
    if (isSetMasterOrderId()) {
1947
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.masterOrderId, typedOther.masterOrderId);
1948
      if (lastComparison != 0) {
1949
        return lastComparison;
1950
      }
1951
    }
1952
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
1953
    if (lastComparison != 0) {
1954
      return lastComparison;
1955
    }
1956
    if (isSetOrderId()) {
1957
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
1958
      if (lastComparison != 0) {
1959
        return lastComparison;
1960
      }
1961
    }
1962
    lastComparison = Boolean.valueOf(isSetLineItemId()).compareTo(typedOther.isSetLineItemId());
1963
    if (lastComparison != 0) {
1964
      return lastComparison;
1965
    }
1966
    if (isSetLineItemId()) {
1967
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lineItemId, typedOther.lineItemId);
1968
      if (lastComparison != 0) {
1969
        return lastComparison;
1970
      }
1971
    }
1972
    lastComparison = Boolean.valueOf(isSetLogisticsRequestId()).compareTo(typedOther.isSetLogisticsRequestId());
1973
    if (lastComparison != 0) {
1974
      return lastComparison;
1975
    }
1976
    if (isSetLogisticsRequestId()) {
1977
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsRequestId, typedOther.logisticsRequestId);
1978
      if (lastComparison != 0) {
1979
        return lastComparison;
1980
      }
1981
    }
1982
    lastComparison = Boolean.valueOf(isSetReturnQuantity()).compareTo(typedOther.isSetReturnQuantity());
1983
    if (lastComparison != 0) {
1984
      return lastComparison;
1985
    }
1986
    if (isSetReturnQuantity()) {
1987
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnQuantity, typedOther.returnQuantity);
1988
      if (lastComparison != 0) {
1989
        return lastComparison;
1990
      }
1991
    }
1992
    lastComparison = Boolean.valueOf(isSetReceivedQuantity()).compareTo(typedOther.isSetReceivedQuantity());
1993
    if (lastComparison != 0) {
1994
      return lastComparison;
1995
    }
1996
    if (isSetReceivedQuantity()) {
1997
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receivedQuantity, typedOther.receivedQuantity);
1998
      if (lastComparison != 0) {
1999
        return lastComparison;
2000
      }
2001
    }
2002
    lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(typedOther.isSetCreatedAt());
2003
    if (lastComparison != 0) {
2004
      return lastComparison;
2005
    }
2006
    if (isSetCreatedAt()) {
2007
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdAt, typedOther.createdAt);
2008
      if (lastComparison != 0) {
2009
        return lastComparison;
2010
      }
2011
    }
2012
    lastComparison = Boolean.valueOf(isSetProcessedAt()).compareTo(typedOther.isSetProcessedAt());
2013
    if (lastComparison != 0) {
2014
      return lastComparison;
2015
    }
2016
    if (isSetProcessedAt()) {
2017
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processedAt, typedOther.processedAt);
2018
      if (lastComparison != 0) {
2019
        return lastComparison;
2020
      }
2021
    }
2022
    lastComparison = Boolean.valueOf(isSetReturnStatus()).compareTo(typedOther.isSetReturnStatus());
2023
    if (lastComparison != 0) {
2024
      return lastComparison;
2025
    }
2026
    if (isSetReturnStatus()) {
2027
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnStatus, typedOther.returnStatus);
2028
      if (lastComparison != 0) {
2029
        return lastComparison;
2030
      }
2031
    }
2032
    lastComparison = Boolean.valueOf(isSetReshippedAt()).compareTo(typedOther.isSetReshippedAt());
2033
    if (lastComparison != 0) {
2034
      return lastComparison;
2035
    }
2036
    if (isSetReshippedAt()) {
2037
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reshippedAt, typedOther.reshippedAt);
2038
      if (lastComparison != 0) {
2039
        return lastComparison;
2040
      }
2041
    }
2042
    lastComparison = Boolean.valueOf(isSetReceivedAt()).compareTo(typedOther.isSetReceivedAt());
2043
    if (lastComparison != 0) {
2044
      return lastComparison;
2045
    }
2046
    if (isSetReceivedAt()) {
2047
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receivedAt, typedOther.receivedAt);
2048
      if (lastComparison != 0) {
2049
        return lastComparison;
2050
      }
2051
    }
2052
    lastComparison = Boolean.valueOf(isSetRefundReason()).compareTo(typedOther.isSetRefundReason());
2053
    if (lastComparison != 0) {
2054
      return lastComparison;
2055
    }
2056
    if (isSetRefundReason()) {
2057
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundReason, typedOther.refundReason);
2058
      if (lastComparison != 0) {
2059
        return lastComparison;
2060
      }
2061
    }
2062
    lastComparison = Boolean.valueOf(isSetRefundedBy()).compareTo(typedOther.isSetRefundedBy());
2063
    if (lastComparison != 0) {
2064
      return lastComparison;
2065
    }
2066
    if (isSetRefundedBy()) {
2067
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundedBy, typedOther.refundedBy);
2068
      if (lastComparison != 0) {
2069
        return lastComparison;
2070
      }
2071
    }
2072
    lastComparison = Boolean.valueOf(isSetRefundedAt()).compareTo(typedOther.isSetRefundedAt());
2073
    if (lastComparison != 0) {
2074
      return lastComparison;
2075
    }
2076
    if (isSetRefundedAt()) {
2077
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundedAt, typedOther.refundedAt);
2078
      if (lastComparison != 0) {
2079
        return lastComparison;
2080
      }
2081
    }
2082
    lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
2083
    if (lastComparison != 0) {
2084
      return lastComparison;
2085
    }
2086
    if (isSetWarehouse_id()) {
2087
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
2088
      if (lastComparison != 0) {
2089
        return lastComparison;
2090
      }
2091
    }
2092
    lastComparison = Boolean.valueOf(isSetRefundAmount()).compareTo(typedOther.isSetRefundAmount());
2093
    if (lastComparison != 0) {
2094
      return lastComparison;
2095
    }
2096
    if (isSetRefundAmount()) {
2097
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundAmount, typedOther.refundAmount);
2098
      if (lastComparison != 0) {
2099
        return lastComparison;
2100
      }
2101
    }
2102
    lastComparison = Boolean.valueOf(isSetRefundType()).compareTo(typedOther.isSetRefundType());
2103
    if (lastComparison != 0) {
2104
      return lastComparison;
2105
    }
2106
    if (isSetRefundType()) {
2107
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundType, typedOther.refundType);
2108
      if (lastComparison != 0) {
2109
        return lastComparison;
2110
      }
2111
    }
2112
    lastComparison = Boolean.valueOf(isSetRefundDescription()).compareTo(typedOther.isSetRefundDescription());
2113
    if (lastComparison != 0) {
2114
      return lastComparison;
2115
    }
2116
    if (isSetRefundDescription()) {
2117
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundDescription, typedOther.refundDescription);
2118
      if (lastComparison != 0) {
2119
        return lastComparison;
2120
      }
2121
    }
2122
    lastComparison = Boolean.valueOf(isSetReturnPickupType()).compareTo(typedOther.isSetReturnPickupType());
2123
    if (lastComparison != 0) {
2124
      return lastComparison;
2125
    }
2126
    if (isSetReturnPickupType()) {
2127
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnPickupType, typedOther.returnPickupType);
2128
      if (lastComparison != 0) {
2129
        return lastComparison;
2130
      }
2131
    }
2132
    lastComparison = Boolean.valueOf(isSetShippingType()).compareTo(typedOther.isSetShippingType());
2133
    if (lastComparison != 0) {
2134
      return lastComparison;
2135
    }
2136
    if (isSetShippingType()) {
2137
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingType, typedOther.shippingType);
2138
      if (lastComparison != 0) {
2139
        return lastComparison;
2140
      }
2141
    }
2142
    lastComparison = Boolean.valueOf(isSetReplacementOrderId()).compareTo(typedOther.isSetReplacementOrderId());
2143
    if (lastComparison != 0) {
2144
      return lastComparison;
2145
    }
2146
    if (isSetReplacementOrderId()) {
2147
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replacementOrderId, typedOther.replacementOrderId);
2148
      if (lastComparison != 0) {
2149
        return lastComparison;
2150
      }
2151
    }
2152
    lastComparison = Boolean.valueOf(isSetReceivedReturnType()).compareTo(typedOther.isSetReceivedReturnType());
2153
    if (lastComparison != 0) {
2154
      return lastComparison;
2155
    }
2156
    if (isSetReceivedReturnType()) {
2157
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receivedReturnType, typedOther.receivedReturnType);
2158
      if (lastComparison != 0) {
2159
        return lastComparison;
2160
      }
2161
    }
2162
    lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());
2163
    if (lastComparison != 0) {
2164
      return lastComparison;
2165
    }
2166
    if (isSetFreebieItemId()) {
2167
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
2168
      if (lastComparison != 0) {
2169
        return lastComparison;
2170
      }
2171
    }
2172
    lastComparison = Boolean.valueOf(isSetReturnAction()).compareTo(typedOther.isSetReturnAction());
2173
    if (lastComparison != 0) {
2174
      return lastComparison;
2175
    }
2176
    if (isSetReturnAction()) {
2177
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnAction, typedOther.returnAction);
2178
      if (lastComparison != 0) {
2179
        return lastComparison;
2180
      }
2181
    }
2182
    lastComparison = Boolean.valueOf(isSetReturnTxnResolutionStatus()).compareTo(typedOther.isSetReturnTxnResolutionStatus());
2183
    if (lastComparison != 0) {
2184
      return lastComparison;
2185
    }
2186
    if (isSetReturnTxnResolutionStatus()) {
2187
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnTxnResolutionStatus, typedOther.returnTxnResolutionStatus);
2188
      if (lastComparison != 0) {
2189
        return lastComparison;
2190
      }
2191
    }
2192
    lastComparison = Boolean.valueOf(isSetLineitem()).compareTo(typedOther.isSetLineitem());
2193
    if (lastComparison != 0) {
2194
      return lastComparison;
2195
    }
2196
    if (isSetLineitem()) {
2197
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lineitem, typedOther.lineitem);
2198
      if (lastComparison != 0) {
2199
        return lastComparison;
2200
      }
2201
    }
2202
    lastComparison = Boolean.valueOf(isSetReturnPickUpRequest()).compareTo(typedOther.isSetReturnPickUpRequest());
2203
    if (lastComparison != 0) {
2204
      return lastComparison;
2205
    }
2206
    if (isSetReturnPickUpRequest()) {
2207
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnPickUpRequest, typedOther.returnPickUpRequest);
2208
      if (lastComparison != 0) {
2209
        return lastComparison;
2210
      }
2211
    }
2212
    return 0;
2213
  }
2214
 
2215
  public _Fields fieldForId(int fieldId) {
2216
    return _Fields.findByThriftId(fieldId);
2217
  }
2218
 
2219
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2220
    org.apache.thrift.protocol.TField field;
2221
    iprot.readStructBegin();
2222
    while (true)
2223
    {
2224
      field = iprot.readFieldBegin();
2225
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2226
        break;
2227
      }
2228
      switch (field.id) {
2229
        case 1: // ID
2230
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2231
            this.id = iprot.readI64();
2232
            setIdIsSet(true);
2233
          } else { 
2234
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2235
          }
2236
          break;
2237
        case 2: // RETURN_TRANSACTION_ID
2238
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2239
            this.returnTransactionId = iprot.readI64();
2240
            setReturnTransactionIdIsSet(true);
2241
          } else { 
2242
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2243
          }
2244
          break;
2245
        case 3: // MASTER_ORDER_ID
2246
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2247
            this.masterOrderId = iprot.readString();
2248
          } else { 
2249
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2250
          }
2251
          break;
2252
        case 4: // ORDER_ID
2253
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2254
            this.orderId = iprot.readI64();
2255
            setOrderIdIsSet(true);
2256
          } else { 
2257
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2258
          }
2259
          break;
2260
        case 5: // LINE_ITEM_ID
2261
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2262
            this.lineItemId = iprot.readI64();
2263
            setLineItemIdIsSet(true);
2264
          } else { 
2265
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2266
          }
2267
          break;
2268
        case 6: // LOGISTICS_REQUEST_ID
2269
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2270
            this.logisticsRequestId = iprot.readI64();
2271
            setLogisticsRequestIdIsSet(true);
2272
          } else { 
2273
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2274
          }
2275
          break;
2276
        case 7: // RETURN_QUANTITY
2277
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2278
            this.returnQuantity = iprot.readI64();
2279
            setReturnQuantityIsSet(true);
2280
          } else { 
2281
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2282
          }
2283
          break;
2284
        case 8: // RECEIVED_QUANTITY
2285
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2286
            this.receivedQuantity = iprot.readI64();
2287
            setReceivedQuantityIsSet(true);
2288
          } else { 
2289
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2290
          }
2291
          break;
2292
        case 9: // CREATED_AT
2293
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2294
            this.createdAt = iprot.readI64();
2295
            setCreatedAtIsSet(true);
2296
          } else { 
2297
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2298
          }
2299
          break;
2300
        case 10: // PROCESSED_AT
2301
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2302
            this.processedAt = iprot.readI64();
2303
            setProcessedAtIsSet(true);
2304
          } else { 
2305
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2306
          }
2307
          break;
2308
        case 11: // RETURN_STATUS
2309
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2310
            this.returnStatus = iprot.readString();
2311
          } else { 
2312
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2313
          }
2314
          break;
2315
        case 12: // RESHIPPED_AT
2316
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2317
            this.reshippedAt = iprot.readI64();
2318
            setReshippedAtIsSet(true);
2319
          } else { 
2320
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2321
          }
2322
          break;
2323
        case 13: // RECEIVED_AT
2324
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2325
            this.receivedAt = iprot.readI64();
2326
            setReceivedAtIsSet(true);
2327
          } else { 
2328
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2329
          }
2330
          break;
2331
        case 14: // REFUND_REASON
2332
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2333
            this.refundReason = iprot.readString();
2334
          } else { 
2335
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2336
          }
2337
          break;
2338
        case 15: // REFUNDED_BY
2339
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2340
            this.refundedBy = iprot.readString();
2341
          } else { 
2342
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2343
          }
2344
          break;
2345
        case 16: // REFUNDED_AT
2346
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2347
            this.refundedAt = iprot.readI64();
2348
            setRefundedAtIsSet(true);
2349
          } else { 
2350
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2351
          }
2352
          break;
2353
        case 17: // WAREHOUSE_ID
2354
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2355
            this.warehouse_id = iprot.readI64();
2356
            setWarehouse_idIsSet(true);
2357
          } else { 
2358
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2359
          }
2360
          break;
2361
        case 18: // REFUND_AMOUNT
2362
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
2363
            this.refundAmount = iprot.readDouble();
2364
            setRefundAmountIsSet(true);
2365
          } else { 
2366
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2367
          }
2368
          break;
2369
        case 19: // REFUND_TYPE
2370
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2371
            this.refundType = RefundType.findByValue(iprot.readI32());
2372
          } else { 
2373
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2374
          }
2375
          break;
2376
        case 20: // REFUND_DESCRIPTION
2377
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
2378
            this.refundDescription = iprot.readString();
2379
          } else { 
2380
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2381
          }
2382
          break;
2383
        case 21: // RETURN_PICKUP_TYPE
2384
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2385
            this.returnPickupType = ReturnPickupType.findByValue(iprot.readI32());
2386
          } else { 
2387
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2388
          }
2389
          break;
2390
        case 22: // SHIPPING_TYPE
2391
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2392
            this.shippingType = ReplacementShippingType.findByValue(iprot.readI32());
2393
          } else { 
2394
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2395
          }
2396
          break;
2397
        case 23: // REPLACEMENT_ORDER_ID
2398
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2399
            this.replacementOrderId = iprot.readI64();
2400
            setReplacementOrderIdIsSet(true);
2401
          } else { 
2402
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2403
          }
2404
          break;
2405
        case 24: // RECEIVED_RETURN_TYPE
2406
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2407
            this.receivedReturnType = ReceivedReturnType.findByValue(iprot.readI32());
2408
          } else { 
2409
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2410
          }
2411
          break;
2412
        case 25: // FREEBIE_ITEM_ID
2413
          if (field.type == org.apache.thrift.protocol.TType.I64) {
2414
            this.freebieItemId = iprot.readI64();
2415
            setFreebieItemIdIsSet(true);
2416
          } else { 
2417
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2418
          }
2419
          break;
2420
        case 26: // RETURN_ACTION
2421
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2422
            this.returnAction = ReturnAction.findByValue(iprot.readI32());
2423
          } else { 
2424
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2425
          }
2426
          break;
2427
        case 27: // RETURN_TXN_RESOLUTION_STATUS
2428
          if (field.type == org.apache.thrift.protocol.TType.I32) {
2429
            this.returnTxnResolutionStatus = ReturnTxnResolutionStatus.findByValue(iprot.readI32());
2430
          } else { 
2431
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2432
          }
2433
          break;
2434
        case 28: // LINEITEM
2435
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2436
            this.lineitem = new LineItem();
2437
            this.lineitem.read(iprot);
2438
          } else { 
2439
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2440
          }
2441
          break;
2442
        case 29: // RETURN_PICK_UP_REQUEST
2443
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2444
            this.returnPickUpRequest = new ReturnPickupRequest();
2445
            this.returnPickUpRequest.read(iprot);
2446
          } else { 
2447
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2448
          }
2449
          break;
2450
        default:
2451
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2452
      }
2453
      iprot.readFieldEnd();
2454
    }
2455
    iprot.readStructEnd();
2456
    validate();
2457
  }
2458
 
2459
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2460
    validate();
2461
 
2462
    oprot.writeStructBegin(STRUCT_DESC);
2463
    oprot.writeFieldBegin(ID_FIELD_DESC);
2464
    oprot.writeI64(this.id);
2465
    oprot.writeFieldEnd();
2466
    oprot.writeFieldBegin(RETURN_TRANSACTION_ID_FIELD_DESC);
2467
    oprot.writeI64(this.returnTransactionId);
2468
    oprot.writeFieldEnd();
2469
    if (this.masterOrderId != null) {
2470
      oprot.writeFieldBegin(MASTER_ORDER_ID_FIELD_DESC);
2471
      oprot.writeString(this.masterOrderId);
2472
      oprot.writeFieldEnd();
2473
    }
2474
    oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
2475
    oprot.writeI64(this.orderId);
2476
    oprot.writeFieldEnd();
2477
    oprot.writeFieldBegin(LINE_ITEM_ID_FIELD_DESC);
2478
    oprot.writeI64(this.lineItemId);
2479
    oprot.writeFieldEnd();
2480
    oprot.writeFieldBegin(LOGISTICS_REQUEST_ID_FIELD_DESC);
2481
    oprot.writeI64(this.logisticsRequestId);
2482
    oprot.writeFieldEnd();
2483
    oprot.writeFieldBegin(RETURN_QUANTITY_FIELD_DESC);
2484
    oprot.writeI64(this.returnQuantity);
2485
    oprot.writeFieldEnd();
2486
    oprot.writeFieldBegin(RECEIVED_QUANTITY_FIELD_DESC);
2487
    oprot.writeI64(this.receivedQuantity);
2488
    oprot.writeFieldEnd();
2489
    oprot.writeFieldBegin(CREATED_AT_FIELD_DESC);
2490
    oprot.writeI64(this.createdAt);
2491
    oprot.writeFieldEnd();
2492
    oprot.writeFieldBegin(PROCESSED_AT_FIELD_DESC);
2493
    oprot.writeI64(this.processedAt);
2494
    oprot.writeFieldEnd();
2495
    if (this.returnStatus != null) {
2496
      oprot.writeFieldBegin(RETURN_STATUS_FIELD_DESC);
2497
      oprot.writeString(this.returnStatus);
2498
      oprot.writeFieldEnd();
2499
    }
2500
    oprot.writeFieldBegin(RESHIPPED_AT_FIELD_DESC);
2501
    oprot.writeI64(this.reshippedAt);
2502
    oprot.writeFieldEnd();
2503
    oprot.writeFieldBegin(RECEIVED_AT_FIELD_DESC);
2504
    oprot.writeI64(this.receivedAt);
2505
    oprot.writeFieldEnd();
2506
    if (this.refundReason != null) {
2507
      oprot.writeFieldBegin(REFUND_REASON_FIELD_DESC);
2508
      oprot.writeString(this.refundReason);
2509
      oprot.writeFieldEnd();
2510
    }
2511
    if (this.refundedBy != null) {
2512
      oprot.writeFieldBegin(REFUNDED_BY_FIELD_DESC);
2513
      oprot.writeString(this.refundedBy);
2514
      oprot.writeFieldEnd();
2515
    }
2516
    oprot.writeFieldBegin(REFUNDED_AT_FIELD_DESC);
2517
    oprot.writeI64(this.refundedAt);
2518
    oprot.writeFieldEnd();
2519
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
2520
    oprot.writeI64(this.warehouse_id);
2521
    oprot.writeFieldEnd();
2522
    oprot.writeFieldBegin(REFUND_AMOUNT_FIELD_DESC);
2523
    oprot.writeDouble(this.refundAmount);
2524
    oprot.writeFieldEnd();
2525
    if (this.refundType != null) {
2526
      oprot.writeFieldBegin(REFUND_TYPE_FIELD_DESC);
2527
      oprot.writeI32(this.refundType.getValue());
2528
      oprot.writeFieldEnd();
2529
    }
2530
    if (this.refundDescription != null) {
2531
      oprot.writeFieldBegin(REFUND_DESCRIPTION_FIELD_DESC);
2532
      oprot.writeString(this.refundDescription);
2533
      oprot.writeFieldEnd();
2534
    }
2535
    if (this.returnPickupType != null) {
2536
      oprot.writeFieldBegin(RETURN_PICKUP_TYPE_FIELD_DESC);
2537
      oprot.writeI32(this.returnPickupType.getValue());
2538
      oprot.writeFieldEnd();
2539
    }
2540
    if (this.shippingType != null) {
2541
      oprot.writeFieldBegin(SHIPPING_TYPE_FIELD_DESC);
2542
      oprot.writeI32(this.shippingType.getValue());
2543
      oprot.writeFieldEnd();
2544
    }
2545
    oprot.writeFieldBegin(REPLACEMENT_ORDER_ID_FIELD_DESC);
2546
    oprot.writeI64(this.replacementOrderId);
2547
    oprot.writeFieldEnd();
2548
    if (this.receivedReturnType != null) {
2549
      oprot.writeFieldBegin(RECEIVED_RETURN_TYPE_FIELD_DESC);
2550
      oprot.writeI32(this.receivedReturnType.getValue());
2551
      oprot.writeFieldEnd();
2552
    }
2553
    oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
2554
    oprot.writeI64(this.freebieItemId);
2555
    oprot.writeFieldEnd();
2556
    if (this.returnAction != null) {
2557
      oprot.writeFieldBegin(RETURN_ACTION_FIELD_DESC);
2558
      oprot.writeI32(this.returnAction.getValue());
2559
      oprot.writeFieldEnd();
2560
    }
2561
    if (this.returnTxnResolutionStatus != null) {
2562
      oprot.writeFieldBegin(RETURN_TXN_RESOLUTION_STATUS_FIELD_DESC);
2563
      oprot.writeI32(this.returnTxnResolutionStatus.getValue());
2564
      oprot.writeFieldEnd();
2565
    }
2566
    if (this.lineitem != null) {
2567
      oprot.writeFieldBegin(LINEITEM_FIELD_DESC);
2568
      this.lineitem.write(oprot);
2569
      oprot.writeFieldEnd();
2570
    }
2571
    if (this.returnPickUpRequest != null) {
2572
      oprot.writeFieldBegin(RETURN_PICK_UP_REQUEST_FIELD_DESC);
2573
      this.returnPickUpRequest.write(oprot);
2574
      oprot.writeFieldEnd();
2575
    }
2576
    oprot.writeFieldStop();
2577
    oprot.writeStructEnd();
2578
  }
2579
 
2580
  @Override
2581
  public String toString() {
2582
    StringBuilder sb = new StringBuilder("ReturnOrderInfo(");
2583
    boolean first = true;
2584
 
2585
    sb.append("id:");
2586
    sb.append(this.id);
2587
    first = false;
2588
    if (!first) sb.append(", ");
2589
    sb.append("returnTransactionId:");
2590
    sb.append(this.returnTransactionId);
2591
    first = false;
2592
    if (!first) sb.append(", ");
2593
    sb.append("masterOrderId:");
2594
    if (this.masterOrderId == null) {
2595
      sb.append("null");
2596
    } else {
2597
      sb.append(this.masterOrderId);
2598
    }
2599
    first = false;
2600
    if (!first) sb.append(", ");
2601
    sb.append("orderId:");
2602
    sb.append(this.orderId);
2603
    first = false;
2604
    if (!first) sb.append(", ");
2605
    sb.append("lineItemId:");
2606
    sb.append(this.lineItemId);
2607
    first = false;
2608
    if (!first) sb.append(", ");
2609
    sb.append("logisticsRequestId:");
2610
    sb.append(this.logisticsRequestId);
2611
    first = false;
2612
    if (!first) sb.append(", ");
2613
    sb.append("returnQuantity:");
2614
    sb.append(this.returnQuantity);
2615
    first = false;
2616
    if (!first) sb.append(", ");
2617
    sb.append("receivedQuantity:");
2618
    sb.append(this.receivedQuantity);
2619
    first = false;
2620
    if (!first) sb.append(", ");
2621
    sb.append("createdAt:");
2622
    sb.append(this.createdAt);
2623
    first = false;
2624
    if (!first) sb.append(", ");
2625
    sb.append("processedAt:");
2626
    sb.append(this.processedAt);
2627
    first = false;
2628
    if (!first) sb.append(", ");
2629
    sb.append("returnStatus:");
2630
    if (this.returnStatus == null) {
2631
      sb.append("null");
2632
    } else {
2633
      sb.append(this.returnStatus);
2634
    }
2635
    first = false;
2636
    if (!first) sb.append(", ");
2637
    sb.append("reshippedAt:");
2638
    sb.append(this.reshippedAt);
2639
    first = false;
2640
    if (!first) sb.append(", ");
2641
    sb.append("receivedAt:");
2642
    sb.append(this.receivedAt);
2643
    first = false;
2644
    if (!first) sb.append(", ");
2645
    sb.append("refundReason:");
2646
    if (this.refundReason == null) {
2647
      sb.append("null");
2648
    } else {
2649
      sb.append(this.refundReason);
2650
    }
2651
    first = false;
2652
    if (!first) sb.append(", ");
2653
    sb.append("refundedBy:");
2654
    if (this.refundedBy == null) {
2655
      sb.append("null");
2656
    } else {
2657
      sb.append(this.refundedBy);
2658
    }
2659
    first = false;
2660
    if (!first) sb.append(", ");
2661
    sb.append("refundedAt:");
2662
    sb.append(this.refundedAt);
2663
    first = false;
2664
    if (!first) sb.append(", ");
2665
    sb.append("warehouse_id:");
2666
    sb.append(this.warehouse_id);
2667
    first = false;
2668
    if (!first) sb.append(", ");
2669
    sb.append("refundAmount:");
2670
    sb.append(this.refundAmount);
2671
    first = false;
2672
    if (!first) sb.append(", ");
2673
    sb.append("refundType:");
2674
    if (this.refundType == null) {
2675
      sb.append("null");
2676
    } else {
2677
      sb.append(this.refundType);
2678
    }
2679
    first = false;
2680
    if (!first) sb.append(", ");
2681
    sb.append("refundDescription:");
2682
    if (this.refundDescription == null) {
2683
      sb.append("null");
2684
    } else {
2685
      sb.append(this.refundDescription);
2686
    }
2687
    first = false;
2688
    if (!first) sb.append(", ");
2689
    sb.append("returnPickupType:");
2690
    if (this.returnPickupType == null) {
2691
      sb.append("null");
2692
    } else {
2693
      sb.append(this.returnPickupType);
2694
    }
2695
    first = false;
2696
    if (!first) sb.append(", ");
2697
    sb.append("shippingType:");
2698
    if (this.shippingType == null) {
2699
      sb.append("null");
2700
    } else {
2701
      sb.append(this.shippingType);
2702
    }
2703
    first = false;
2704
    if (!first) sb.append(", ");
2705
    sb.append("replacementOrderId:");
2706
    sb.append(this.replacementOrderId);
2707
    first = false;
2708
    if (!first) sb.append(", ");
2709
    sb.append("receivedReturnType:");
2710
    if (this.receivedReturnType == null) {
2711
      sb.append("null");
2712
    } else {
2713
      sb.append(this.receivedReturnType);
2714
    }
2715
    first = false;
2716
    if (!first) sb.append(", ");
2717
    sb.append("freebieItemId:");
2718
    sb.append(this.freebieItemId);
2719
    first = false;
2720
    if (!first) sb.append(", ");
2721
    sb.append("returnAction:");
2722
    if (this.returnAction == null) {
2723
      sb.append("null");
2724
    } else {
2725
      sb.append(this.returnAction);
2726
    }
2727
    first = false;
2728
    if (!first) sb.append(", ");
2729
    sb.append("returnTxnResolutionStatus:");
2730
    if (this.returnTxnResolutionStatus == null) {
2731
      sb.append("null");
2732
    } else {
2733
      sb.append(this.returnTxnResolutionStatus);
2734
    }
2735
    first = false;
2736
    if (!first) sb.append(", ");
2737
    sb.append("lineitem:");
2738
    if (this.lineitem == null) {
2739
      sb.append("null");
2740
    } else {
2741
      sb.append(this.lineitem);
2742
    }
2743
    first = false;
2744
    if (!first) sb.append(", ");
2745
    sb.append("returnPickUpRequest:");
2746
    if (this.returnPickUpRequest == null) {
2747
      sb.append("null");
2748
    } else {
2749
      sb.append(this.returnPickUpRequest);
2750
    }
2751
    first = false;
2752
    sb.append(")");
2753
    return sb.toString();
2754
  }
2755
 
2756
  public void validate() throws org.apache.thrift.TException {
2757
    // check for required fields
2758
  }
2759
 
2760
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2761
    try {
2762
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2763
    } catch (org.apache.thrift.TException te) {
2764
      throw new java.io.IOException(te);
2765
    }
2766
  }
2767
 
2768
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2769
    try {
2770
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2771
      __isset_bit_vector = new BitSet(1);
2772
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2773
    } catch (org.apache.thrift.TException te) {
2774
      throw new java.io.IOException(te);
2775
    }
2776
  }
2777
 
2778
}
2779