Subversion Repositories SmartDukaan

Rev

Rev 4983 | Rev 5854 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4983 Rev 5031
Line 25... Line 25...
25
 
25
 
26
  private static final org.apache.thrift.protocol.TField COD_CANCELLABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("codCancellable", org.apache.thrift.protocol.TType.LIST, (short)1);
26
  private static final org.apache.thrift.protocol.TField COD_CANCELLABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("codCancellable", org.apache.thrift.protocol.TType.LIST, (short)1);
27
  private static final org.apache.thrift.protocol.TField PREPAID_CANCELLABLE_BEFORE_BILLED_FIELD_DESC = new org.apache.thrift.protocol.TField("prepaidCancellableBeforeBilled", org.apache.thrift.protocol.TType.LIST, (short)2);
27
  private static final org.apache.thrift.protocol.TField PREPAID_CANCELLABLE_BEFORE_BILLED_FIELD_DESC = new org.apache.thrift.protocol.TField("prepaidCancellableBeforeBilled", org.apache.thrift.protocol.TType.LIST, (short)2);
28
  private static final org.apache.thrift.protocol.TField PREPAID_CANCELLABLE_AFTER_BILLED_FIELD_DESC = new org.apache.thrift.protocol.TField("prepaidCancellableAfterBilled", org.apache.thrift.protocol.TType.LIST, (short)3);
28
  private static final org.apache.thrift.protocol.TField PREPAID_CANCELLABLE_AFTER_BILLED_FIELD_DESC = new org.apache.thrift.protocol.TField("prepaidCancellableAfterBilled", org.apache.thrift.protocol.TType.LIST, (short)3);
29
  private static final org.apache.thrift.protocol.TField OPEN_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("openOrders", org.apache.thrift.protocol.TType.LIST, (short)4);
29
  private static final org.apache.thrift.protocol.TField OPEN_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("openOrders", org.apache.thrift.protocol.TType.LIST, (short)4);
-
 
30
  private static final org.apache.thrift.protocol.TField REFUNDED_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("refundedOrders", org.apache.thrift.protocol.TType.LIST, (short)5);
30
  private static final org.apache.thrift.protocol.TField SHIPPED_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("shippedOrders", org.apache.thrift.protocol.TType.LIST, (short)5);
31
  private static final org.apache.thrift.protocol.TField SHIPPED_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("shippedOrders", org.apache.thrift.protocol.TType.LIST, (short)6);
31
  private static final org.apache.thrift.protocol.TField FAILED_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("failedOrders", org.apache.thrift.protocol.TType.LIST, (short)6);
32
  private static final org.apache.thrift.protocol.TField FAILED_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("failedOrders", org.apache.thrift.protocol.TType.LIST, (short)7);
32
 
33
 
33
  private List<OrderStatus> codCancellable; // required
34
  private List<OrderStatus> codCancellable; // required
34
  private List<OrderStatus> prepaidCancellableBeforeBilled; // required
35
  private List<OrderStatus> prepaidCancellableBeforeBilled; // required
35
  private List<OrderStatus> prepaidCancellableAfterBilled; // required
36
  private List<OrderStatus> prepaidCancellableAfterBilled; // required
36
  private List<OrderStatus> openOrders; // required
37
  private List<OrderStatus> openOrders; // required
-
 
38
  private List<OrderStatus> refundedOrders; // required
37
  private List<OrderStatus> shippedOrders; // required
39
  private List<OrderStatus> shippedOrders; // required
38
  private List<OrderStatus> failedOrders; // required
40
  private List<OrderStatus> failedOrders; // required
39
 
41
 
40
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42
    COD_CANCELLABLE((short)1, "codCancellable"),
44
    COD_CANCELLABLE((short)1, "codCancellable"),
43
    PREPAID_CANCELLABLE_BEFORE_BILLED((short)2, "prepaidCancellableBeforeBilled"),
45
    PREPAID_CANCELLABLE_BEFORE_BILLED((short)2, "prepaidCancellableBeforeBilled"),
44
    PREPAID_CANCELLABLE_AFTER_BILLED((short)3, "prepaidCancellableAfterBilled"),
46
    PREPAID_CANCELLABLE_AFTER_BILLED((short)3, "prepaidCancellableAfterBilled"),
45
    OPEN_ORDERS((short)4, "openOrders"),
47
    OPEN_ORDERS((short)4, "openOrders"),
-
 
48
    REFUNDED_ORDERS((short)5, "refundedOrders"),
46
    SHIPPED_ORDERS((short)5, "shippedOrders"),
49
    SHIPPED_ORDERS((short)6, "shippedOrders"),
47
    FAILED_ORDERS((short)6, "failedOrders");
50
    FAILED_ORDERS((short)7, "failedOrders");
48
 
51
 
49
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50
 
53
 
51
    static {
54
    static {
52
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
55
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 65... Line 68...
65
          return PREPAID_CANCELLABLE_BEFORE_BILLED;
68
          return PREPAID_CANCELLABLE_BEFORE_BILLED;
66
        case 3: // PREPAID_CANCELLABLE_AFTER_BILLED
69
        case 3: // PREPAID_CANCELLABLE_AFTER_BILLED
67
          return PREPAID_CANCELLABLE_AFTER_BILLED;
70
          return PREPAID_CANCELLABLE_AFTER_BILLED;
68
        case 4: // OPEN_ORDERS
71
        case 4: // OPEN_ORDERS
69
          return OPEN_ORDERS;
72
          return OPEN_ORDERS;
-
 
73
        case 5: // REFUNDED_ORDERS
-
 
74
          return REFUNDED_ORDERS;
70
        case 5: // SHIPPED_ORDERS
75
        case 6: // SHIPPED_ORDERS
71
          return SHIPPED_ORDERS;
76
          return SHIPPED_ORDERS;
72
        case 6: // FAILED_ORDERS
77
        case 7: // FAILED_ORDERS
73
          return FAILED_ORDERS;
78
          return FAILED_ORDERS;
74
        default:
79
        default:
75
          return null;
80
          return null;
76
      }
81
      }
77
    }
82
    }
Line 125... Line 130...
125
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
130
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
126
            new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
131
            new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
127
    tmpMap.put(_Fields.OPEN_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("openOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
132
    tmpMap.put(_Fields.OPEN_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("openOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
128
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
133
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
129
            new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
134
            new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
-
 
135
    tmpMap.put(_Fields.REFUNDED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("refundedOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
136
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
137
            new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
130
    tmpMap.put(_Fields.SHIPPED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("shippedOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
138
    tmpMap.put(_Fields.SHIPPED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("shippedOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
131
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
139
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
132
            new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
140
            new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));
133
    tmpMap.put(_Fields.FAILED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("failedOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
141
    tmpMap.put(_Fields.FAILED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("failedOrders", org.apache.thrift.TFieldRequirementType.DEFAULT, 
134
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
142
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
Line 210... Line 218...
210
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_LOST_IN_TRANSIT);
218
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_LOST_IN_TRANSIT);
211
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_USABLE);
219
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_USABLE);
212
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_UNUSABLE);
220
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_UNUSABLE);
213
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOST_IN_TRANSIT);
221
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOST_IN_TRANSIT);
214
 
222
 
-
 
223
    this.refundedOrders = new ArrayList<OrderStatus>();
-
 
224
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.CANCELLED_ON_CUSTOMER_REQUEST);
-
 
225
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_REFUNDED);
-
 
226
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_VALID_REFUNDED);
-
 
227
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_INVALID_REFUNDED);
-
 
228
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.CANCELLED_DUE_TO_LOW_INVENTORY);
-
 
229
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_REFUNDED_RCVD_DAMAGED);
-
 
230
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_REFUNDED_LOST_IN_TRANSIT);
-
 
231
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_DAMAGED_REFUNDED);
-
 
232
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_LOST_IN_TRANSIT_REFUNDED);
-
 
233
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_USABLE_REFUNDED);
-
 
234
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_UNUSABLE_REFUNDED);
-
 
235
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_REFUNDED_LOST_IN_TRANSIT);
-
 
236
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_REFUNDED_RCVD_DAMAGED);
-
 
237
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.LOST_IN_TRANSIT_REFUNDED);
-
 
238
 
215
    this.shippedOrders = new ArrayList<OrderStatus>();
239
    this.shippedOrders = new ArrayList<OrderStatus>();
216
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_FROM_WH);
240
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_FROM_WH);
217
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_TO_LOGST);
241
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_TO_LOGST);
218
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_TO_DESTINATION_CITY);
242
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_TO_DESTINATION_CITY);
219
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.REACHED_DESTINATION_CITY);
243
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.REACHED_DESTINATION_CITY);
Line 262... Line 286...
262
  public OrderStatusGroups(
286
  public OrderStatusGroups(
263
    List<OrderStatus> codCancellable,
287
    List<OrderStatus> codCancellable,
264
    List<OrderStatus> prepaidCancellableBeforeBilled,
288
    List<OrderStatus> prepaidCancellableBeforeBilled,
265
    List<OrderStatus> prepaidCancellableAfterBilled,
289
    List<OrderStatus> prepaidCancellableAfterBilled,
266
    List<OrderStatus> openOrders,
290
    List<OrderStatus> openOrders,
-
 
291
    List<OrderStatus> refundedOrders,
267
    List<OrderStatus> shippedOrders,
292
    List<OrderStatus> shippedOrders,
268
    List<OrderStatus> failedOrders)
293
    List<OrderStatus> failedOrders)
269
  {
294
  {
270
    this();
295
    this();
271
    this.codCancellable = codCancellable;
296
    this.codCancellable = codCancellable;
272
    this.prepaidCancellableBeforeBilled = prepaidCancellableBeforeBilled;
297
    this.prepaidCancellableBeforeBilled = prepaidCancellableBeforeBilled;
273
    this.prepaidCancellableAfterBilled = prepaidCancellableAfterBilled;
298
    this.prepaidCancellableAfterBilled = prepaidCancellableAfterBilled;
274
    this.openOrders = openOrders;
299
    this.openOrders = openOrders;
-
 
300
    this.refundedOrders = refundedOrders;
275
    this.shippedOrders = shippedOrders;
301
    this.shippedOrders = shippedOrders;
276
    this.failedOrders = failedOrders;
302
    this.failedOrders = failedOrders;
277
  }
303
  }
278
 
304
 
279
  /**
305
  /**
Line 306... Line 332...
306
      for (OrderStatus other_element : other.openOrders) {
332
      for (OrderStatus other_element : other.openOrders) {
307
        __this__openOrders.add(other_element);
333
        __this__openOrders.add(other_element);
308
      }
334
      }
309
      this.openOrders = __this__openOrders;
335
      this.openOrders = __this__openOrders;
310
    }
336
    }
-
 
337
    if (other.isSetRefundedOrders()) {
-
 
338
      List<OrderStatus> __this__refundedOrders = new ArrayList<OrderStatus>();
-
 
339
      for (OrderStatus other_element : other.refundedOrders) {
-
 
340
        __this__refundedOrders.add(other_element);
-
 
341
      }
-
 
342
      this.refundedOrders = __this__refundedOrders;
-
 
343
    }
311
    if (other.isSetShippedOrders()) {
344
    if (other.isSetShippedOrders()) {
312
      List<OrderStatus> __this__shippedOrders = new ArrayList<OrderStatus>();
345
      List<OrderStatus> __this__shippedOrders = new ArrayList<OrderStatus>();
313
      for (OrderStatus other_element : other.shippedOrders) {
346
      for (OrderStatus other_element : other.shippedOrders) {
314
        __this__shippedOrders.add(other_element);
347
        __this__shippedOrders.add(other_element);
315
      }
348
      }
Line 402... Line 435...
402
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_LOST_IN_TRANSIT);
435
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_LOST_IN_TRANSIT);
403
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_USABLE);
436
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_USABLE);
404
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_UNUSABLE);
437
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_UNUSABLE);
405
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOST_IN_TRANSIT);
438
    this.openOrders.add(in.shop2020.model.v1.order.OrderStatus.LOST_IN_TRANSIT);
406
 
439
 
-
 
440
    this.refundedOrders = new ArrayList<OrderStatus>();
-
 
441
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.CANCELLED_ON_CUSTOMER_REQUEST);
-
 
442
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_REFUNDED);
-
 
443
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_VALID_REFUNDED);
-
 
444
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_INVALID_REFUNDED);
-
 
445
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.CANCELLED_DUE_TO_LOW_INVENTORY);
-
 
446
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_REFUNDED_RCVD_DAMAGED);
-
 
447
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.DOA_REFUNDED_LOST_IN_TRANSIT);
-
 
448
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_DAMAGED_REFUNDED);
-
 
449
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RTO_LOST_IN_TRANSIT_REFUNDED);
-
 
450
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_USABLE_REFUNDED);
-
 
451
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_PRODUCT_UNUSABLE_REFUNDED);
-
 
452
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_REFUNDED_LOST_IN_TRANSIT);
-
 
453
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.RET_REFUNDED_RCVD_DAMAGED);
-
 
454
    this.refundedOrders.add(in.shop2020.model.v1.order.OrderStatus.LOST_IN_TRANSIT_REFUNDED);
-
 
455
 
407
    this.shippedOrders = new ArrayList<OrderStatus>();
456
    this.shippedOrders = new ArrayList<OrderStatus>();
408
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_FROM_WH);
457
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_FROM_WH);
409
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_TO_LOGST);
458
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_TO_LOGST);
410
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_TO_DESTINATION_CITY);
459
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.SHIPPED_TO_DESTINATION_CITY);
411
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.REACHED_DESTINATION_CITY);
460
    this.shippedOrders.add(in.shop2020.model.v1.order.OrderStatus.REACHED_DESTINATION_CITY);
Line 601... Line 650...
601
    if (!value) {
650
    if (!value) {
602
      this.openOrders = null;
651
      this.openOrders = null;
603
    }
652
    }
604
  }
653
  }
605
 
654
 
-
 
655
  public int getRefundedOrdersSize() {
-
 
656
    return (this.refundedOrders == null) ? 0 : this.refundedOrders.size();
-
 
657
  }
-
 
658
 
-
 
659
  public java.util.Iterator<OrderStatus> getRefundedOrdersIterator() {
-
 
660
    return (this.refundedOrders == null) ? null : this.refundedOrders.iterator();
-
 
661
  }
-
 
662
 
-
 
663
  public void addToRefundedOrders(OrderStatus elem) {
-
 
664
    if (this.refundedOrders == null) {
-
 
665
      this.refundedOrders = new ArrayList<OrderStatus>();
-
 
666
    }
-
 
667
    this.refundedOrders.add(elem);
-
 
668
  }
-
 
669
 
-
 
670
  public List<OrderStatus> getRefundedOrders() {
-
 
671
    return this.refundedOrders;
-
 
672
  }
-
 
673
 
-
 
674
  public void setRefundedOrders(List<OrderStatus> refundedOrders) {
-
 
675
    this.refundedOrders = refundedOrders;
-
 
676
  }
-
 
677
 
-
 
678
  public void unsetRefundedOrders() {
-
 
679
    this.refundedOrders = null;
-
 
680
  }
-
 
681
 
-
 
682
  /** Returns true if field refundedOrders is set (has been assigned a value) and false otherwise */
-
 
683
  public boolean isSetRefundedOrders() {
-
 
684
    return this.refundedOrders != null;
-
 
685
  }
-
 
686
 
-
 
687
  public void setRefundedOrdersIsSet(boolean value) {
-
 
688
    if (!value) {
-
 
689
      this.refundedOrders = null;
-
 
690
    }
-
 
691
  }
-
 
692
 
606
  public int getShippedOrdersSize() {
693
  public int getShippedOrdersSize() {
607
    return (this.shippedOrders == null) ? 0 : this.shippedOrders.size();
694
    return (this.shippedOrders == null) ? 0 : this.shippedOrders.size();
608
  }
695
  }
609
 
696
 
610
  public java.util.Iterator<OrderStatus> getShippedOrdersIterator() {
697
  public java.util.Iterator<OrderStatus> getShippedOrdersIterator() {
Line 711... Line 798...
711
      } else {
798
      } else {
712
        setOpenOrders((List<OrderStatus>)value);
799
        setOpenOrders((List<OrderStatus>)value);
713
      }
800
      }
714
      break;
801
      break;
715
 
802
 
-
 
803
    case REFUNDED_ORDERS:
-
 
804
      if (value == null) {
-
 
805
        unsetRefundedOrders();
-
 
806
      } else {
-
 
807
        setRefundedOrders((List<OrderStatus>)value);
-
 
808
      }
-
 
809
      break;
-
 
810
 
716
    case SHIPPED_ORDERS:
811
    case SHIPPED_ORDERS:
717
      if (value == null) {
812
      if (value == null) {
718
        unsetShippedOrders();
813
        unsetShippedOrders();
719
      } else {
814
      } else {
720
        setShippedOrders((List<OrderStatus>)value);
815
        setShippedOrders((List<OrderStatus>)value);
Line 744... Line 839...
744
      return getPrepaidCancellableAfterBilled();
839
      return getPrepaidCancellableAfterBilled();
745
 
840
 
746
    case OPEN_ORDERS:
841
    case OPEN_ORDERS:
747
      return getOpenOrders();
842
      return getOpenOrders();
748
 
843
 
-
 
844
    case REFUNDED_ORDERS:
-
 
845
      return getRefundedOrders();
-
 
846
 
749
    case SHIPPED_ORDERS:
847
    case SHIPPED_ORDERS:
750
      return getShippedOrders();
848
      return getShippedOrders();
751
 
849
 
752
    case FAILED_ORDERS:
850
    case FAILED_ORDERS:
753
      return getFailedOrders();
851
      return getFailedOrders();
Line 769... Line 867...
769
      return isSetPrepaidCancellableBeforeBilled();
867
      return isSetPrepaidCancellableBeforeBilled();
770
    case PREPAID_CANCELLABLE_AFTER_BILLED:
868
    case PREPAID_CANCELLABLE_AFTER_BILLED:
771
      return isSetPrepaidCancellableAfterBilled();
869
      return isSetPrepaidCancellableAfterBilled();
772
    case OPEN_ORDERS:
870
    case OPEN_ORDERS:
773
      return isSetOpenOrders();
871
      return isSetOpenOrders();
-
 
872
    case REFUNDED_ORDERS:
-
 
873
      return isSetRefundedOrders();
774
    case SHIPPED_ORDERS:
874
    case SHIPPED_ORDERS:
775
      return isSetShippedOrders();
875
      return isSetShippedOrders();
776
    case FAILED_ORDERS:
876
    case FAILED_ORDERS:
777
      return isSetFailedOrders();
877
      return isSetFailedOrders();
778
    }
878
    }
Line 826... Line 926...
826
        return false;
926
        return false;
827
      if (!this.openOrders.equals(that.openOrders))
927
      if (!this.openOrders.equals(that.openOrders))
828
        return false;
928
        return false;
829
    }
929
    }
830
 
930
 
-
 
931
    boolean this_present_refundedOrders = true && this.isSetRefundedOrders();
-
 
932
    boolean that_present_refundedOrders = true && that.isSetRefundedOrders();
-
 
933
    if (this_present_refundedOrders || that_present_refundedOrders) {
-
 
934
      if (!(this_present_refundedOrders && that_present_refundedOrders))
-
 
935
        return false;
-
 
936
      if (!this.refundedOrders.equals(that.refundedOrders))
-
 
937
        return false;
-
 
938
    }
-
 
939
 
831
    boolean this_present_shippedOrders = true && this.isSetShippedOrders();
940
    boolean this_present_shippedOrders = true && this.isSetShippedOrders();
832
    boolean that_present_shippedOrders = true && that.isSetShippedOrders();
941
    boolean that_present_shippedOrders = true && that.isSetShippedOrders();
833
    if (this_present_shippedOrders || that_present_shippedOrders) {
942
    if (this_present_shippedOrders || that_present_shippedOrders) {
834
      if (!(this_present_shippedOrders && that_present_shippedOrders))
943
      if (!(this_present_shippedOrders && that_present_shippedOrders))
835
        return false;
944
        return false;
Line 900... Line 1009...
900
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.openOrders, typedOther.openOrders);
1009
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.openOrders, typedOther.openOrders);
901
      if (lastComparison != 0) {
1010
      if (lastComparison != 0) {
902
        return lastComparison;
1011
        return lastComparison;
903
      }
1012
      }
904
    }
1013
    }
-
 
1014
    lastComparison = Boolean.valueOf(isSetRefundedOrders()).compareTo(typedOther.isSetRefundedOrders());
-
 
1015
    if (lastComparison != 0) {
-
 
1016
      return lastComparison;
-
 
1017
    }
-
 
1018
    if (isSetRefundedOrders()) {
-
 
1019
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundedOrders, typedOther.refundedOrders);
-
 
1020
      if (lastComparison != 0) {
-
 
1021
        return lastComparison;
-
 
1022
      }
-
 
1023
    }
905
    lastComparison = Boolean.valueOf(isSetShippedOrders()).compareTo(typedOther.isSetShippedOrders());
1024
    lastComparison = Boolean.valueOf(isSetShippedOrders()).compareTo(typedOther.isSetShippedOrders());
906
    if (lastComparison != 0) {
1025
    if (lastComparison != 0) {
907
      return lastComparison;
1026
      return lastComparison;
908
    }
1027
    }
909
    if (isSetShippedOrders()) {
1028
    if (isSetShippedOrders()) {
Line 1005... Line 1124...
1005
            }
1124
            }
1006
          } else { 
1125
          } else { 
1007
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1126
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1008
          }
1127
          }
1009
          break;
1128
          break;
1010
        case 5: // SHIPPED_ORDERS
1129
        case 5: // REFUNDED_ORDERS
1011
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1130
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1012
            {
1131
            {
1013
              org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
1132
              org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
1014
              this.shippedOrders = new ArrayList<OrderStatus>(_list20.size);
1133
              this.refundedOrders = new ArrayList<OrderStatus>(_list20.size);
1015
              for (int _i21 = 0; _i21 < _list20.size; ++_i21)
1134
              for (int _i21 = 0; _i21 < _list20.size; ++_i21)
1016
              {
1135
              {
1017
                OrderStatus _elem22; // required
1136
                OrderStatus _elem22; // required
1018
                _elem22 = OrderStatus.findByValue(iprot.readI32());
1137
                _elem22 = OrderStatus.findByValue(iprot.readI32());
1019
                this.shippedOrders.add(_elem22);
1138
                this.refundedOrders.add(_elem22);
1020
              }
1139
              }
1021
              iprot.readListEnd();
1140
              iprot.readListEnd();
1022
            }
1141
            }
1023
          } else { 
1142
          } else { 
1024
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1025
          }
1144
          }
1026
          break;
1145
          break;
1027
        case 6: // FAILED_ORDERS
1146
        case 6: // SHIPPED_ORDERS
1028
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1147
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1029
            {
1148
            {
1030
              org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
1149
              org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
1031
              this.failedOrders = new ArrayList<OrderStatus>(_list23.size);
1150
              this.shippedOrders = new ArrayList<OrderStatus>(_list23.size);
1032
              for (int _i24 = 0; _i24 < _list23.size; ++_i24)
1151
              for (int _i24 = 0; _i24 < _list23.size; ++_i24)
1033
              {
1152
              {
1034
                OrderStatus _elem25; // required
1153
                OrderStatus _elem25; // required
1035
                _elem25 = OrderStatus.findByValue(iprot.readI32());
1154
                _elem25 = OrderStatus.findByValue(iprot.readI32());
-
 
1155
                this.shippedOrders.add(_elem25);
-
 
1156
              }
-
 
1157
              iprot.readListEnd();
-
 
1158
            }
-
 
1159
          } else { 
-
 
1160
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1161
          }
-
 
1162
          break;
-
 
1163
        case 7: // FAILED_ORDERS
-
 
1164
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
1165
            {
-
 
1166
              org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();
-
 
1167
              this.failedOrders = new ArrayList<OrderStatus>(_list26.size);
-
 
1168
              for (int _i27 = 0; _i27 < _list26.size; ++_i27)
-
 
1169
              {
-
 
1170
                OrderStatus _elem28; // required
-
 
1171
                _elem28 = OrderStatus.findByValue(iprot.readI32());
1036
                this.failedOrders.add(_elem25);
1172
                this.failedOrders.add(_elem28);
1037
              }
1173
              }
1038
              iprot.readListEnd();
1174
              iprot.readListEnd();
1039
            }
1175
            }
1040
          } else { 
1176
          } else { 
1041
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1177
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 1056... Line 1192...
1056
    oprot.writeStructBegin(STRUCT_DESC);
1192
    oprot.writeStructBegin(STRUCT_DESC);
1057
    if (this.codCancellable != null) {
1193
    if (this.codCancellable != null) {
1058
      oprot.writeFieldBegin(COD_CANCELLABLE_FIELD_DESC);
1194
      oprot.writeFieldBegin(COD_CANCELLABLE_FIELD_DESC);
1059
      {
1195
      {
1060
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.codCancellable.size()));
1196
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.codCancellable.size()));
1061
        for (OrderStatus _iter26 : this.codCancellable)
1197
        for (OrderStatus _iter29 : this.codCancellable)
1062
        {
1198
        {
1063
          oprot.writeI32(_iter26.getValue());
1199
          oprot.writeI32(_iter29.getValue());
1064
        }
1200
        }
1065
        oprot.writeListEnd();
1201
        oprot.writeListEnd();
1066
      }
1202
      }
1067
      oprot.writeFieldEnd();
1203
      oprot.writeFieldEnd();
1068
    }
1204
    }
1069
    if (this.prepaidCancellableBeforeBilled != null) {
1205
    if (this.prepaidCancellableBeforeBilled != null) {
1070
      oprot.writeFieldBegin(PREPAID_CANCELLABLE_BEFORE_BILLED_FIELD_DESC);
1206
      oprot.writeFieldBegin(PREPAID_CANCELLABLE_BEFORE_BILLED_FIELD_DESC);
1071
      {
1207
      {
1072
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.prepaidCancellableBeforeBilled.size()));
1208
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.prepaidCancellableBeforeBilled.size()));
1073
        for (OrderStatus _iter27 : this.prepaidCancellableBeforeBilled)
1209
        for (OrderStatus _iter30 : this.prepaidCancellableBeforeBilled)
1074
        {
1210
        {
1075
          oprot.writeI32(_iter27.getValue());
1211
          oprot.writeI32(_iter30.getValue());
1076
        }
1212
        }
1077
        oprot.writeListEnd();
1213
        oprot.writeListEnd();
1078
      }
1214
      }
1079
      oprot.writeFieldEnd();
1215
      oprot.writeFieldEnd();
1080
    }
1216
    }
1081
    if (this.prepaidCancellableAfterBilled != null) {
1217
    if (this.prepaidCancellableAfterBilled != null) {
1082
      oprot.writeFieldBegin(PREPAID_CANCELLABLE_AFTER_BILLED_FIELD_DESC);
1218
      oprot.writeFieldBegin(PREPAID_CANCELLABLE_AFTER_BILLED_FIELD_DESC);
1083
      {
1219
      {
1084
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.prepaidCancellableAfterBilled.size()));
1220
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.prepaidCancellableAfterBilled.size()));
1085
        for (OrderStatus _iter28 : this.prepaidCancellableAfterBilled)
1221
        for (OrderStatus _iter31 : this.prepaidCancellableAfterBilled)
1086
        {
1222
        {
1087
          oprot.writeI32(_iter28.getValue());
1223
          oprot.writeI32(_iter31.getValue());
1088
        }
1224
        }
1089
        oprot.writeListEnd();
1225
        oprot.writeListEnd();
1090
      }
1226
      }
1091
      oprot.writeFieldEnd();
1227
      oprot.writeFieldEnd();
1092
    }
1228
    }
1093
    if (this.openOrders != null) {
1229
    if (this.openOrders != null) {
1094
      oprot.writeFieldBegin(OPEN_ORDERS_FIELD_DESC);
1230
      oprot.writeFieldBegin(OPEN_ORDERS_FIELD_DESC);
1095
      {
1231
      {
1096
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.openOrders.size()));
1232
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.openOrders.size()));
1097
        for (OrderStatus _iter29 : this.openOrders)
1233
        for (OrderStatus _iter32 : this.openOrders)
1098
        {
1234
        {
1099
          oprot.writeI32(_iter29.getValue());
1235
          oprot.writeI32(_iter32.getValue());
-
 
1236
        }
-
 
1237
        oprot.writeListEnd();
-
 
1238
      }
-
 
1239
      oprot.writeFieldEnd();
-
 
1240
    }
-
 
1241
    if (this.refundedOrders != null) {
-
 
1242
      oprot.writeFieldBegin(REFUNDED_ORDERS_FIELD_DESC);
-
 
1243
      {
-
 
1244
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.refundedOrders.size()));
-
 
1245
        for (OrderStatus _iter33 : this.refundedOrders)
-
 
1246
        {
-
 
1247
          oprot.writeI32(_iter33.getValue());
1100
        }
1248
        }
1101
        oprot.writeListEnd();
1249
        oprot.writeListEnd();
1102
      }
1250
      }
1103
      oprot.writeFieldEnd();
1251
      oprot.writeFieldEnd();
1104
    }
1252
    }
1105
    if (this.shippedOrders != null) {
1253
    if (this.shippedOrders != null) {
1106
      oprot.writeFieldBegin(SHIPPED_ORDERS_FIELD_DESC);
1254
      oprot.writeFieldBegin(SHIPPED_ORDERS_FIELD_DESC);
1107
      {
1255
      {
1108
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.shippedOrders.size()));
1256
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.shippedOrders.size()));
1109
        for (OrderStatus _iter30 : this.shippedOrders)
1257
        for (OrderStatus _iter34 : this.shippedOrders)
1110
        {
1258
        {
1111
          oprot.writeI32(_iter30.getValue());
1259
          oprot.writeI32(_iter34.getValue());
1112
        }
1260
        }
1113
        oprot.writeListEnd();
1261
        oprot.writeListEnd();
1114
      }
1262
      }
1115
      oprot.writeFieldEnd();
1263
      oprot.writeFieldEnd();
1116
    }
1264
    }
1117
    if (this.failedOrders != null) {
1265
    if (this.failedOrders != null) {
1118
      oprot.writeFieldBegin(FAILED_ORDERS_FIELD_DESC);
1266
      oprot.writeFieldBegin(FAILED_ORDERS_FIELD_DESC);
1119
      {
1267
      {
1120
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.failedOrders.size()));
1268
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.failedOrders.size()));
1121
        for (OrderStatus _iter31 : this.failedOrders)
1269
        for (OrderStatus _iter35 : this.failedOrders)
1122
        {
1270
        {
1123
          oprot.writeI32(_iter31.getValue());
1271
          oprot.writeI32(_iter35.getValue());
1124
        }
1272
        }
1125
        oprot.writeListEnd();
1273
        oprot.writeListEnd();
1126
      }
1274
      }
1127
      oprot.writeFieldEnd();
1275
      oprot.writeFieldEnd();
1128
    }
1276
    }
Line 1165... Line 1313...
1165
    } else {
1313
    } else {
1166
      sb.append(this.openOrders);
1314
      sb.append(this.openOrders);
1167
    }
1315
    }
1168
    first = false;
1316
    first = false;
1169
    if (!first) sb.append(", ");
1317
    if (!first) sb.append(", ");
-
 
1318
    sb.append("refundedOrders:");
-
 
1319
    if (this.refundedOrders == null) {
-
 
1320
      sb.append("null");
-
 
1321
    } else {
-
 
1322
      sb.append(this.refundedOrders);
-
 
1323
    }
-
 
1324
    first = false;
-
 
1325
    if (!first) sb.append(", ");
1170
    sb.append("shippedOrders:");
1326
    sb.append("shippedOrders:");
1171
    if (this.shippedOrders == null) {
1327
    if (this.shippedOrders == null) {
1172
      sb.append("null");
1328
      sb.append("null");
1173
    } else {
1329
    } else {
1174
      sb.append(this.shippedOrders);
1330
      sb.append(this.shippedOrders);