Subversion Repositories SmartDukaan

Rev

Rev 684 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 684 Rev 736
Line 35... Line 35...
35
  private static final TField EXPECTED_DELIVERY_TIME_FIELD_DESC = new TField("expected_delivery_time", TType.I64, (short)7);
35
  private static final TField EXPECTED_DELIVERY_TIME_FIELD_DESC = new TField("expected_delivery_time", TType.I64, (short)7);
36
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customer_id", TType.I64, (short)8);
36
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customer_id", TType.I64, (short)8);
37
  private static final TField CUSTOMER_NAME_FIELD_DESC = new TField("customer_name", TType.STRING, (short)9);
37
  private static final TField CUSTOMER_NAME_FIELD_DESC = new TField("customer_name", TType.STRING, (short)9);
38
  private static final TField CUSTOMER_MOBILENUMBER_FIELD_DESC = new TField("customer_mobilenumber", TType.STRING, (short)10);
38
  private static final TField CUSTOMER_MOBILENUMBER_FIELD_DESC = new TField("customer_mobilenumber", TType.STRING, (short)10);
39
  private static final TField CUSTOMER_PINCODE_FIELD_DESC = new TField("customer_pincode", TType.STRING, (short)11);
39
  private static final TField CUSTOMER_PINCODE_FIELD_DESC = new TField("customer_pincode", TType.STRING, (short)11);
40
  private static final TField CUSTOMER_ADDRESS_FIELD_DESC = new TField("customer_address", TType.STRING, (short)12);
40
  private static final TField CUSTOMER_ADDRESS1_FIELD_DESC = new TField("customer_address1", TType.STRING, (short)12);
-
 
41
  private static final TField CUSTOMER_ADDRESS2_FIELD_DESC = new TField("customer_address2", TType.STRING, (short)13);
41
  private static final TField CUSTOMER_EMAIL_FIELD_DESC = new TField("customer_email", TType.STRING, (short)13);
42
  private static final TField CUSTOMER_EMAIL_FIELD_DESC = new TField("customer_email", TType.STRING, (short)14);
-
 
43
  private static final TField CUSTOMER_CITY_FIELD_DESC = new TField("customer_city", TType.STRING, (short)15);
-
 
44
  private static final TField CUSTOMER_STATE_FIELD_DESC = new TField("customer_state", TType.STRING, (short)16);
42
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)14);
45
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)17);
43
  private static final TField STATUS_DESCRIPTION_FIELD_DESC = new TField("statusDescription", TType.STRING, (short)15);
46
  private static final TField STATUS_DESCRIPTION_FIELD_DESC = new TField("statusDescription", TType.STRING, (short)18);
44
  private static final TField TOTAL_AMOUNT_FIELD_DESC = new TField("total_amount", TType.DOUBLE, (short)16);
47
  private static final TField TOTAL_AMOUNT_FIELD_DESC = new TField("total_amount", TType.DOUBLE, (short)19);
45
  private static final TField TOTAL_WEIGHT_FIELD_DESC = new TField("total_weight", TType.DOUBLE, (short)17);
48
  private static final TField TOTAL_WEIGHT_FIELD_DESC = new TField("total_weight", TType.DOUBLE, (short)20);
46
  private static final TField INVOICE_NUMBER_FIELD_DESC = new TField("invoice_number", TType.STRING, (short)18);
49
  private static final TField INVOICE_NUMBER_FIELD_DESC = new TField("invoice_number", TType.STRING, (short)21);
47
  private static final TField BILLED_BY_FIELD_DESC = new TField("billed_by", TType.STRING, (short)19);
50
  private static final TField BILLED_BY_FIELD_DESC = new TField("billed_by", TType.STRING, (short)22);
48
  private static final TField CREATED_TIMESTAMP_FIELD_DESC = new TField("created_timestamp", TType.I64, (short)20);
51
  private static final TField CREATED_TIMESTAMP_FIELD_DESC = new TField("created_timestamp", TType.I64, (short)23);
49
  private static final TField ACCEPTED_TIMESTAMP_FIELD_DESC = new TField("accepted_timestamp", TType.I64, (short)21);
52
  private static final TField ACCEPTED_TIMESTAMP_FIELD_DESC = new TField("accepted_timestamp", TType.I64, (short)24);
50
  private static final TField BILLING_TIMESTAMP_FIELD_DESC = new TField("billing_timestamp", TType.I64, (short)22);
53
  private static final TField BILLING_TIMESTAMP_FIELD_DESC = new TField("billing_timestamp", TType.I64, (short)25);
51
  private static final TField SHIPPING_TIMESTAMP_FIELD_DESC = new TField("shipping_timestamp", TType.I64, (short)23);
54
  private static final TField SHIPPING_TIMESTAMP_FIELD_DESC = new TField("shipping_timestamp", TType.I64, (short)26);
52
  private static final TField DELIVERY_TIMESTAMP_FIELD_DESC = new TField("delivery_timestamp", TType.I64, (short)24);
55
  private static final TField DELIVERY_TIMESTAMP_FIELD_DESC = new TField("delivery_timestamp", TType.I64, (short)27);
53
  private static final TField JACKET_NUMBER_FIELD_DESC = new TField("jacket_number", TType.I64, (short)25);
56
  private static final TField JACKET_NUMBER_FIELD_DESC = new TField("jacket_number", TType.I64, (short)28);
54
  private static final TField CUSTOMER_CITY_FIELD_DESC = new TField("customer_city", TType.STRING, (short)26);
-
 
55
  private static final TField CUSTOMER_STATE_FIELD_DESC = new TField("customer_state", TType.STRING, (short)27);
-
 
56
 
57
 
57
  private long id;
58
  private long id;
58
  private long warehouse_id;
59
  private long warehouse_id;
59
  private List<LineItem> lineitems;
60
  private List<LineItem> lineitems;
60
  private long logistics_provider_id;
61
  private long logistics_provider_id;
Line 63... Line 64...
63
  private long expected_delivery_time;
64
  private long expected_delivery_time;
64
  private long customer_id;
65
  private long customer_id;
65
  private String customer_name;
66
  private String customer_name;
66
  private String customer_mobilenumber;
67
  private String customer_mobilenumber;
67
  private String customer_pincode;
68
  private String customer_pincode;
-
 
69
  private String customer_address1;
68
  private String customer_address;
70
  private String customer_address2;
69
  private String customer_email;
71
  private String customer_email;
-
 
72
  private String customer_city;
-
 
73
  private String customer_state;
70
  private OrderStatus status;
74
  private OrderStatus status;
71
  private String statusDescription;
75
  private String statusDescription;
72
  private double total_amount;
76
  private double total_amount;
73
  private double total_weight;
77
  private double total_weight;
74
  private String invoice_number;
78
  private String invoice_number;
Line 77... Line 81...
77
  private long accepted_timestamp;
81
  private long accepted_timestamp;
78
  private long billing_timestamp;
82
  private long billing_timestamp;
79
  private long shipping_timestamp;
83
  private long shipping_timestamp;
80
  private long delivery_timestamp;
84
  private long delivery_timestamp;
81
  private long jacket_number;
85
  private long jacket_number;
82
  private String customer_city;
-
 
83
  private String customer_state;
-
 
84
 
86
 
85
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
87
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
86
  public enum _Fields implements TFieldIdEnum {
88
  public enum _Fields implements TFieldIdEnum {
87
    ID((short)1, "id"),
89
    ID((short)1, "id"),
88
    WAREHOUSE_ID((short)2, "warehouse_id"),
90
    WAREHOUSE_ID((short)2, "warehouse_id"),
Line 105... Line 107...
105
     */
107
     */
106
    CUSTOMER_ID((short)8, "customer_id"),
108
    CUSTOMER_ID((short)8, "customer_id"),
107
    CUSTOMER_NAME((short)9, "customer_name"),
109
    CUSTOMER_NAME((short)9, "customer_name"),
108
    CUSTOMER_MOBILENUMBER((short)10, "customer_mobilenumber"),
110
    CUSTOMER_MOBILENUMBER((short)10, "customer_mobilenumber"),
109
    CUSTOMER_PINCODE((short)11, "customer_pincode"),
111
    CUSTOMER_PINCODE((short)11, "customer_pincode"),
110
    CUSTOMER_ADDRESS((short)12, "customer_address"),
112
    CUSTOMER_ADDRESS1((short)12, "customer_address1"),
-
 
113
    CUSTOMER_ADDRESS2((short)13, "customer_address2"),
111
    CUSTOMER_EMAIL((short)13, "customer_email"),
114
    CUSTOMER_EMAIL((short)14, "customer_email"),
-
 
115
    CUSTOMER_CITY((short)15, "customer_city"),
-
 
116
    CUSTOMER_STATE((short)16, "customer_state"),
112
    /**
117
    /**
113
     * 	status and misc info
118
     * 	status and misc info
114
     * *
119
     * *
115
     * 
120
     * 
116
     * @see OrderStatus
121
     * @see OrderStatus
117
     */
122
     */
118
    STATUS((short)14, "status"),
123
    STATUS((short)17, "status"),
119
    STATUS_DESCRIPTION((short)15, "statusDescription"),
124
    STATUS_DESCRIPTION((short)18, "statusDescription"),
120
    TOTAL_AMOUNT((short)16, "total_amount"),
125
    TOTAL_AMOUNT((short)19, "total_amount"),
121
    TOTAL_WEIGHT((short)17, "total_weight"),
126
    TOTAL_WEIGHT((short)20, "total_weight"),
122
    /**
127
    /**
123
     * 	billing info
128
     * 	billing info
124
     * *
129
     * *
125
     */
130
     */
126
    INVOICE_NUMBER((short)18, "invoice_number"),
131
    INVOICE_NUMBER((short)21, "invoice_number"),
127
    BILLED_BY((short)19, "billed_by"),
132
    BILLED_BY((short)22, "billed_by"),
128
    /**
133
    /**
129
     * 	timestamps
134
     * 	timestamps
130
     * *
135
     * *
131
     */
136
     */
132
    CREATED_TIMESTAMP((short)20, "created_timestamp"),
137
    CREATED_TIMESTAMP((short)23, "created_timestamp"),
133
    ACCEPTED_TIMESTAMP((short)21, "accepted_timestamp"),
138
    ACCEPTED_TIMESTAMP((short)24, "accepted_timestamp"),
134
    BILLING_TIMESTAMP((short)22, "billing_timestamp"),
139
    BILLING_TIMESTAMP((short)25, "billing_timestamp"),
135
    SHIPPING_TIMESTAMP((short)23, "shipping_timestamp"),
140
    SHIPPING_TIMESTAMP((short)26, "shipping_timestamp"),
136
    DELIVERY_TIMESTAMP((short)24, "delivery_timestamp"),
141
    DELIVERY_TIMESTAMP((short)27, "delivery_timestamp"),
137
    JACKET_NUMBER((short)25, "jacket_number"),
142
    JACKET_NUMBER((short)28, "jacket_number");
138
    CUSTOMER_CITY((short)26, "customer_city"),
-
 
139
    CUSTOMER_STATE((short)27, "customer_state");
-
 
140
 
143
 
141
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
144
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
142
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
145
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
143
 
146
 
144
    static {
147
    static {
Line 227... Line 230...
227
        new FieldValueMetaData(TType.STRING)));
230
        new FieldValueMetaData(TType.STRING)));
228
    put(_Fields.CUSTOMER_MOBILENUMBER, new FieldMetaData("customer_mobilenumber", TFieldRequirementType.DEFAULT, 
231
    put(_Fields.CUSTOMER_MOBILENUMBER, new FieldMetaData("customer_mobilenumber", TFieldRequirementType.DEFAULT, 
229
        new FieldValueMetaData(TType.STRING)));
232
        new FieldValueMetaData(TType.STRING)));
230
    put(_Fields.CUSTOMER_PINCODE, new FieldMetaData("customer_pincode", TFieldRequirementType.DEFAULT, 
233
    put(_Fields.CUSTOMER_PINCODE, new FieldMetaData("customer_pincode", TFieldRequirementType.DEFAULT, 
231
        new FieldValueMetaData(TType.STRING)));
234
        new FieldValueMetaData(TType.STRING)));
-
 
235
    put(_Fields.CUSTOMER_ADDRESS1, new FieldMetaData("customer_address1", TFieldRequirementType.DEFAULT, 
-
 
236
        new FieldValueMetaData(TType.STRING)));
232
    put(_Fields.CUSTOMER_ADDRESS, new FieldMetaData("customer_address", TFieldRequirementType.DEFAULT, 
237
    put(_Fields.CUSTOMER_ADDRESS2, new FieldMetaData("customer_address2", TFieldRequirementType.DEFAULT, 
233
        new FieldValueMetaData(TType.STRING)));
238
        new FieldValueMetaData(TType.STRING)));
234
    put(_Fields.CUSTOMER_EMAIL, new FieldMetaData("customer_email", TFieldRequirementType.DEFAULT, 
239
    put(_Fields.CUSTOMER_EMAIL, new FieldMetaData("customer_email", TFieldRequirementType.DEFAULT, 
235
        new FieldValueMetaData(TType.STRING)));
240
        new FieldValueMetaData(TType.STRING)));
-
 
241
    put(_Fields.CUSTOMER_CITY, new FieldMetaData("customer_city", TFieldRequirementType.DEFAULT, 
-
 
242
        new FieldValueMetaData(TType.STRING)));
-
 
243
    put(_Fields.CUSTOMER_STATE, new FieldMetaData("customer_state", TFieldRequirementType.DEFAULT, 
-
 
244
        new FieldValueMetaData(TType.STRING)));
236
    put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
245
    put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
237
        new EnumMetaData(TType.ENUM, OrderStatus.class)));
246
        new EnumMetaData(TType.ENUM, OrderStatus.class)));
238
    put(_Fields.STATUS_DESCRIPTION, new FieldMetaData("statusDescription", TFieldRequirementType.DEFAULT, 
247
    put(_Fields.STATUS_DESCRIPTION, new FieldMetaData("statusDescription", TFieldRequirementType.DEFAULT, 
239
        new FieldValueMetaData(TType.STRING)));
248
        new FieldValueMetaData(TType.STRING)));
240
    put(_Fields.TOTAL_AMOUNT, new FieldMetaData("total_amount", TFieldRequirementType.DEFAULT, 
249
    put(_Fields.TOTAL_AMOUNT, new FieldMetaData("total_amount", TFieldRequirementType.DEFAULT, 
Line 255... Line 264...
255
        new FieldValueMetaData(TType.I64)));
264
        new FieldValueMetaData(TType.I64)));
256
    put(_Fields.DELIVERY_TIMESTAMP, new FieldMetaData("delivery_timestamp", TFieldRequirementType.DEFAULT, 
265
    put(_Fields.DELIVERY_TIMESTAMP, new FieldMetaData("delivery_timestamp", TFieldRequirementType.DEFAULT, 
257
        new FieldValueMetaData(TType.I64)));
266
        new FieldValueMetaData(TType.I64)));
258
    put(_Fields.JACKET_NUMBER, new FieldMetaData("jacket_number", TFieldRequirementType.DEFAULT, 
267
    put(_Fields.JACKET_NUMBER, new FieldMetaData("jacket_number", TFieldRequirementType.DEFAULT, 
259
        new FieldValueMetaData(TType.I64)));
268
        new FieldValueMetaData(TType.I64)));
260
    put(_Fields.CUSTOMER_CITY, new FieldMetaData("customer_city", TFieldRequirementType.DEFAULT, 
-
 
261
        new FieldValueMetaData(TType.STRING)));
-
 
262
    put(_Fields.CUSTOMER_STATE, new FieldMetaData("customer_state", TFieldRequirementType.DEFAULT, 
-
 
263
        new FieldValueMetaData(TType.STRING)));
-
 
264
  }});
269
  }});
265
 
270
 
266
  static {
271
  static {
267
    FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
272
    FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
268
  }
273
  }
Line 280... Line 285...
280
    long expected_delivery_time,
285
    long expected_delivery_time,
281
    long customer_id,
286
    long customer_id,
282
    String customer_name,
287
    String customer_name,
283
    String customer_mobilenumber,
288
    String customer_mobilenumber,
284
    String customer_pincode,
289
    String customer_pincode,
-
 
290
    String customer_address1,
285
    String customer_address,
291
    String customer_address2,
286
    String customer_email,
292
    String customer_email,
-
 
293
    String customer_city,
-
 
294
    String customer_state,
287
    OrderStatus status,
295
    OrderStatus status,
288
    String statusDescription,
296
    String statusDescription,
289
    double total_amount,
297
    double total_amount,
290
    double total_weight,
298
    double total_weight,
291
    String invoice_number,
299
    String invoice_number,
Line 293... Line 301...
293
    long created_timestamp,
301
    long created_timestamp,
294
    long accepted_timestamp,
302
    long accepted_timestamp,
295
    long billing_timestamp,
303
    long billing_timestamp,
296
    long shipping_timestamp,
304
    long shipping_timestamp,
297
    long delivery_timestamp,
305
    long delivery_timestamp,
298
    long jacket_number,
306
    long jacket_number)
299
    String customer_city,
-
 
300
    String customer_state)
-
 
301
  {
307
  {
302
    this();
308
    this();
303
    this.id = id;
309
    this.id = id;
304
    setIdIsSet(true);
310
    setIdIsSet(true);
305
    this.warehouse_id = warehouse_id;
311
    this.warehouse_id = warehouse_id;
Line 314... Line 320...
314
    this.customer_id = customer_id;
320
    this.customer_id = customer_id;
315
    setCustomer_idIsSet(true);
321
    setCustomer_idIsSet(true);
316
    this.customer_name = customer_name;
322
    this.customer_name = customer_name;
317
    this.customer_mobilenumber = customer_mobilenumber;
323
    this.customer_mobilenumber = customer_mobilenumber;
318
    this.customer_pincode = customer_pincode;
324
    this.customer_pincode = customer_pincode;
-
 
325
    this.customer_address1 = customer_address1;
319
    this.customer_address = customer_address;
326
    this.customer_address2 = customer_address2;
320
    this.customer_email = customer_email;
327
    this.customer_email = customer_email;
-
 
328
    this.customer_city = customer_city;
-
 
329
    this.customer_state = customer_state;
321
    this.status = status;
330
    this.status = status;
322
    this.statusDescription = statusDescription;
331
    this.statusDescription = statusDescription;
323
    this.total_amount = total_amount;
332
    this.total_amount = total_amount;
324
    setTotal_amountIsSet(true);
333
    setTotal_amountIsSet(true);
325
    this.total_weight = total_weight;
334
    this.total_weight = total_weight;
Line 336... Line 345...
336
    setShipping_timestampIsSet(true);
345
    setShipping_timestampIsSet(true);
337
    this.delivery_timestamp = delivery_timestamp;
346
    this.delivery_timestamp = delivery_timestamp;
338
    setDelivery_timestampIsSet(true);
347
    setDelivery_timestampIsSet(true);
339
    this.jacket_number = jacket_number;
348
    this.jacket_number = jacket_number;
340
    setJacket_numberIsSet(true);
349
    setJacket_numberIsSet(true);
341
    this.customer_city = customer_city;
-
 
342
    this.customer_state = customer_state;
-
 
343
  }
350
  }
344
 
351
 
345
  /**
352
  /**
346
   * Performs a deep copy on <i>other</i>.
353
   * Performs a deep copy on <i>other</i>.
347
   */
354
   */
Line 373... Line 380...
373
      this.customer_mobilenumber = other.customer_mobilenumber;
380
      this.customer_mobilenumber = other.customer_mobilenumber;
374
    }
381
    }
375
    if (other.isSetCustomer_pincode()) {
382
    if (other.isSetCustomer_pincode()) {
376
      this.customer_pincode = other.customer_pincode;
383
      this.customer_pincode = other.customer_pincode;
377
    }
384
    }
378
    if (other.isSetCustomer_address()) {
385
    if (other.isSetCustomer_address1()) {
-
 
386
      this.customer_address1 = other.customer_address1;
-
 
387
    }
-
 
388
    if (other.isSetCustomer_address2()) {
379
      this.customer_address = other.customer_address;
389
      this.customer_address2 = other.customer_address2;
380
    }
390
    }
381
    if (other.isSetCustomer_email()) {
391
    if (other.isSetCustomer_email()) {
382
      this.customer_email = other.customer_email;
392
      this.customer_email = other.customer_email;
383
    }
393
    }
-
 
394
    if (other.isSetCustomer_city()) {
-
 
395
      this.customer_city = other.customer_city;
-
 
396
    }
-
 
397
    if (other.isSetCustomer_state()) {
-
 
398
      this.customer_state = other.customer_state;
-
 
399
    }
384
    if (other.isSetStatus()) {
400
    if (other.isSetStatus()) {
385
      this.status = other.status;
401
      this.status = other.status;
386
    }
402
    }
387
    if (other.isSetStatusDescription()) {
403
    if (other.isSetStatusDescription()) {
388
      this.statusDescription = other.statusDescription;
404
      this.statusDescription = other.statusDescription;
Line 399... Line 415...
399
    this.accepted_timestamp = other.accepted_timestamp;
415
    this.accepted_timestamp = other.accepted_timestamp;
400
    this.billing_timestamp = other.billing_timestamp;
416
    this.billing_timestamp = other.billing_timestamp;
401
    this.shipping_timestamp = other.shipping_timestamp;
417
    this.shipping_timestamp = other.shipping_timestamp;
402
    this.delivery_timestamp = other.delivery_timestamp;
418
    this.delivery_timestamp = other.delivery_timestamp;
403
    this.jacket_number = other.jacket_number;
419
    this.jacket_number = other.jacket_number;
404
    if (other.isSetCustomer_city()) {
-
 
405
      this.customer_city = other.customer_city;
-
 
406
    }
-
 
407
    if (other.isSetCustomer_state()) {
-
 
408
      this.customer_state = other.customer_state;
-
 
409
    }
-
 
410
  }
420
  }
411
 
421
 
412
  public Order deepCopy() {
422
  public Order deepCopy() {
413
    return new Order(this);
423
    return new Order(this);
414
  }
424
  }
Line 714... Line 724...
714
    if (!value) {
724
    if (!value) {
715
      this.customer_pincode = null;
725
      this.customer_pincode = null;
716
    }
726
    }
717
  }
727
  }
718
 
728
 
719
  public String getCustomer_address() {
729
  public String getCustomer_address1() {
720
    return this.customer_address;
730
    return this.customer_address1;
721
  }
731
  }
722
 
732
 
723
  public Order setCustomer_address(String customer_address) {
733
  public Order setCustomer_address1(String customer_address1) {
724
    this.customer_address = customer_address;
734
    this.customer_address1 = customer_address1;
725
    return this;
735
    return this;
726
  }
736
  }
727
 
737
 
728
  public void unsetCustomer_address() {
738
  public void unsetCustomer_address1() {
729
    this.customer_address = null;
739
    this.customer_address1 = null;
730
  }
740
  }
731
 
741
 
732
  /** Returns true if field customer_address is set (has been asigned a value) and false otherwise */
742
  /** Returns true if field customer_address1 is set (has been asigned a value) and false otherwise */
733
  public boolean isSetCustomer_address() {
743
  public boolean isSetCustomer_address1() {
734
    return this.customer_address != null;
744
    return this.customer_address1 != null;
735
  }
745
  }
736
 
746
 
737
  public void setCustomer_addressIsSet(boolean value) {
747
  public void setCustomer_address1IsSet(boolean value) {
738
    if (!value) {
748
    if (!value) {
739
      this.customer_address = null;
749
      this.customer_address1 = null;
-
 
750
    }
-
 
751
  }
-
 
752
 
-
 
753
  public String getCustomer_address2() {
-
 
754
    return this.customer_address2;
-
 
755
  }
-
 
756
 
-
 
757
  public Order setCustomer_address2(String customer_address2) {
-
 
758
    this.customer_address2 = customer_address2;
-
 
759
    return this;
-
 
760
  }
-
 
761
 
-
 
762
  public void unsetCustomer_address2() {
-
 
763
    this.customer_address2 = null;
-
 
764
  }
-
 
765
 
-
 
766
  /** Returns true if field customer_address2 is set (has been asigned a value) and false otherwise */
-
 
767
  public boolean isSetCustomer_address2() {
-
 
768
    return this.customer_address2 != null;
-
 
769
  }
-
 
770
 
-
 
771
  public void setCustomer_address2IsSet(boolean value) {
-
 
772
    if (!value) {
-
 
773
      this.customer_address2 = null;
740
    }
774
    }
741
  }
775
  }
742
 
776
 
743
  public String getCustomer_email() {
777
  public String getCustomer_email() {
744
    return this.customer_email;
778
    return this.customer_email;
Line 762... Line 796...
762
    if (!value) {
796
    if (!value) {
763
      this.customer_email = null;
797
      this.customer_email = null;
764
    }
798
    }
765
  }
799
  }
766
 
800
 
-
 
801
  public String getCustomer_city() {
-
 
802
    return this.customer_city;
-
 
803
  }
-
 
804
 
-
 
805
  public Order setCustomer_city(String customer_city) {
-
 
806
    this.customer_city = customer_city;
-
 
807
    return this;
-
 
808
  }
-
 
809
 
-
 
810
  public void unsetCustomer_city() {
-
 
811
    this.customer_city = null;
-
 
812
  }
-
 
813
 
-
 
814
  /** Returns true if field customer_city is set (has been asigned a value) and false otherwise */
-
 
815
  public boolean isSetCustomer_city() {
-
 
816
    return this.customer_city != null;
-
 
817
  }
-
 
818
 
-
 
819
  public void setCustomer_cityIsSet(boolean value) {
-
 
820
    if (!value) {
-
 
821
      this.customer_city = null;
-
 
822
    }
-
 
823
  }
-
 
824
 
-
 
825
  public String getCustomer_state() {
-
 
826
    return this.customer_state;
-
 
827
  }
-
 
828
 
-
 
829
  public Order setCustomer_state(String customer_state) {
-
 
830
    this.customer_state = customer_state;
-
 
831
    return this;
-
 
832
  }
-
 
833
 
-
 
834
  public void unsetCustomer_state() {
-
 
835
    this.customer_state = null;
-
 
836
  }
-
 
837
 
-
 
838
  /** Returns true if field customer_state is set (has been asigned a value) and false otherwise */
-
 
839
  public boolean isSetCustomer_state() {
-
 
840
    return this.customer_state != null;
-
 
841
  }
-
 
842
 
-
 
843
  public void setCustomer_stateIsSet(boolean value) {
-
 
844
    if (!value) {
-
 
845
      this.customer_state = null;
-
 
846
    }
-
 
847
  }
-
 
848
 
767
  /**
849
  /**
768
   * 	status and misc info
850
   * 	status and misc info
769
   * *
851
   * *
770
   * 
852
   * 
771
   * @see OrderStatus
853
   * @see OrderStatus
Line 1070... Line 1152...
1070
 
1152
 
1071
  public void setJacket_numberIsSet(boolean value) {
1153
  public void setJacket_numberIsSet(boolean value) {
1072
    __isset_bit_vector.set(__JACKET_NUMBER_ISSET_ID, value);
1154
    __isset_bit_vector.set(__JACKET_NUMBER_ISSET_ID, value);
1073
  }
1155
  }
1074
 
1156
 
1075
  public String getCustomer_city() {
-
 
1076
    return this.customer_city;
-
 
1077
  }
-
 
1078
 
-
 
1079
  public Order setCustomer_city(String customer_city) {
-
 
1080
    this.customer_city = customer_city;
-
 
1081
    return this;
-
 
1082
  }
-
 
1083
 
-
 
1084
  public void unsetCustomer_city() {
-
 
1085
    this.customer_city = null;
-
 
1086
  }
-
 
1087
 
-
 
1088
  /** Returns true if field customer_city is set (has been asigned a value) and false otherwise */
-
 
1089
  public boolean isSetCustomer_city() {
-
 
1090
    return this.customer_city != null;
-
 
1091
  }
-
 
1092
 
-
 
1093
  public void setCustomer_cityIsSet(boolean value) {
-
 
1094
    if (!value) {
-
 
1095
      this.customer_city = null;
-
 
1096
    }
-
 
1097
  }
-
 
1098
 
-
 
1099
  public String getCustomer_state() {
-
 
1100
    return this.customer_state;
-
 
1101
  }
-
 
1102
 
-
 
1103
  public Order setCustomer_state(String customer_state) {
-
 
1104
    this.customer_state = customer_state;
-
 
1105
    return this;
-
 
1106
  }
-
 
1107
 
-
 
1108
  public void unsetCustomer_state() {
-
 
1109
    this.customer_state = null;
-
 
1110
  }
-
 
1111
 
-
 
1112
  /** Returns true if field customer_state is set (has been asigned a value) and false otherwise */
-
 
1113
  public boolean isSetCustomer_state() {
-
 
1114
    return this.customer_state != null;
-
 
1115
  }
-
 
1116
 
-
 
1117
  public void setCustomer_stateIsSet(boolean value) {
-
 
1118
    if (!value) {
-
 
1119
      this.customer_state = null;
-
 
1120
    }
-
 
1121
  }
-
 
1122
 
-
 
1123
  public void setFieldValue(_Fields field, Object value) {
1157
  public void setFieldValue(_Fields field, Object value) {
1124
    switch (field) {
1158
    switch (field) {
1125
    case ID:
1159
    case ID:
1126
      if (value == null) {
1160
      if (value == null) {
1127
        unsetId();
1161
        unsetId();
Line 1208... Line 1242...
1208
      } else {
1242
      } else {
1209
        setCustomer_pincode((String)value);
1243
        setCustomer_pincode((String)value);
1210
      }
1244
      }
1211
      break;
1245
      break;
1212
 
1246
 
1213
    case CUSTOMER_ADDRESS:
1247
    case CUSTOMER_ADDRESS1:
-
 
1248
      if (value == null) {
-
 
1249
        unsetCustomer_address1();
-
 
1250
      } else {
-
 
1251
        setCustomer_address1((String)value);
-
 
1252
      }
-
 
1253
      break;
-
 
1254
 
-
 
1255
    case CUSTOMER_ADDRESS2:
1214
      if (value == null) {
1256
      if (value == null) {
1215
        unsetCustomer_address();
1257
        unsetCustomer_address2();
1216
      } else {
1258
      } else {
1217
        setCustomer_address((String)value);
1259
        setCustomer_address2((String)value);
1218
      }
1260
      }
1219
      break;
1261
      break;
1220
 
1262
 
1221
    case CUSTOMER_EMAIL:
1263
    case CUSTOMER_EMAIL:
1222
      if (value == null) {
1264
      if (value == null) {
Line 1224... Line 1266...
1224
      } else {
1266
      } else {
1225
        setCustomer_email((String)value);
1267
        setCustomer_email((String)value);
1226
      }
1268
      }
1227
      break;
1269
      break;
1228
 
1270
 
-
 
1271
    case CUSTOMER_CITY:
-
 
1272
      if (value == null) {
-
 
1273
        unsetCustomer_city();
-
 
1274
      } else {
-
 
1275
        setCustomer_city((String)value);
-
 
1276
      }
-
 
1277
      break;
-
 
1278
 
-
 
1279
    case CUSTOMER_STATE:
-
 
1280
      if (value == null) {
-
 
1281
        unsetCustomer_state();
-
 
1282
      } else {
-
 
1283
        setCustomer_state((String)value);
-
 
1284
      }
-
 
1285
      break;
-
 
1286
 
1229
    case STATUS:
1287
    case STATUS:
1230
      if (value == null) {
1288
      if (value == null) {
1231
        unsetStatus();
1289
        unsetStatus();
1232
      } else {
1290
      } else {
1233
        setStatus((OrderStatus)value);
1291
        setStatus((OrderStatus)value);
Line 1320... Line 1378...
1320
      } else {
1378
      } else {
1321
        setJacket_number((Long)value);
1379
        setJacket_number((Long)value);
1322
      }
1380
      }
1323
      break;
1381
      break;
1324
 
1382
 
1325
    case CUSTOMER_CITY:
-
 
1326
      if (value == null) {
-
 
1327
        unsetCustomer_city();
-
 
1328
      } else {
-
 
1329
        setCustomer_city((String)value);
-
 
1330
      }
-
 
1331
      break;
-
 
1332
 
-
 
1333
    case CUSTOMER_STATE:
-
 
1334
      if (value == null) {
-
 
1335
        unsetCustomer_state();
-
 
1336
      } else {
-
 
1337
        setCustomer_state((String)value);
-
 
1338
      }
-
 
1339
      break;
-
 
1340
 
-
 
1341
    }
1383
    }
1342
  }
1384
  }
1343
 
1385
 
1344
  public void setFieldValue(int fieldID, Object value) {
1386
  public void setFieldValue(int fieldID, Object value) {
1345
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
1387
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 1378... Line 1420...
1378
      return getCustomer_mobilenumber();
1420
      return getCustomer_mobilenumber();
1379
 
1421
 
1380
    case CUSTOMER_PINCODE:
1422
    case CUSTOMER_PINCODE:
1381
      return getCustomer_pincode();
1423
      return getCustomer_pincode();
1382
 
1424
 
1383
    case CUSTOMER_ADDRESS:
1425
    case CUSTOMER_ADDRESS1:
-
 
1426
      return getCustomer_address1();
-
 
1427
 
-
 
1428
    case CUSTOMER_ADDRESS2:
1384
      return getCustomer_address();
1429
      return getCustomer_address2();
1385
 
1430
 
1386
    case CUSTOMER_EMAIL:
1431
    case CUSTOMER_EMAIL:
1387
      return getCustomer_email();
1432
      return getCustomer_email();
1388
 
1433
 
-
 
1434
    case CUSTOMER_CITY:
-
 
1435
      return getCustomer_city();
-
 
1436
 
-
 
1437
    case CUSTOMER_STATE:
-
 
1438
      return getCustomer_state();
-
 
1439
 
1389
    case STATUS:
1440
    case STATUS:
1390
      return getStatus();
1441
      return getStatus();
1391
 
1442
 
1392
    case STATUS_DESCRIPTION:
1443
    case STATUS_DESCRIPTION:
1393
      return getStatusDescription();
1444
      return getStatusDescription();
Line 1420... Line 1471...
1420
      return new Long(getDelivery_timestamp());
1471
      return new Long(getDelivery_timestamp());
1421
 
1472
 
1422
    case JACKET_NUMBER:
1473
    case JACKET_NUMBER:
1423
      return new Long(getJacket_number());
1474
      return new Long(getJacket_number());
1424
 
1475
 
1425
    case CUSTOMER_CITY:
-
 
1426
      return getCustomer_city();
-
 
1427
 
-
 
1428
    case CUSTOMER_STATE:
-
 
1429
      return getCustomer_state();
-
 
1430
 
-
 
1431
    }
1476
    }
1432
    throw new IllegalStateException();
1477
    throw new IllegalStateException();
1433
  }
1478
  }
1434
 
1479
 
1435
  public Object getFieldValue(int fieldId) {
1480
  public Object getFieldValue(int fieldId) {
Line 1459... Line 1504...
1459
      return isSetCustomer_name();
1504
      return isSetCustomer_name();
1460
    case CUSTOMER_MOBILENUMBER:
1505
    case CUSTOMER_MOBILENUMBER:
1461
      return isSetCustomer_mobilenumber();
1506
      return isSetCustomer_mobilenumber();
1462
    case CUSTOMER_PINCODE:
1507
    case CUSTOMER_PINCODE:
1463
      return isSetCustomer_pincode();
1508
      return isSetCustomer_pincode();
1464
    case CUSTOMER_ADDRESS:
1509
    case CUSTOMER_ADDRESS1:
-
 
1510
      return isSetCustomer_address1();
-
 
1511
    case CUSTOMER_ADDRESS2:
1465
      return isSetCustomer_address();
1512
      return isSetCustomer_address2();
1466
    case CUSTOMER_EMAIL:
1513
    case CUSTOMER_EMAIL:
1467
      return isSetCustomer_email();
1514
      return isSetCustomer_email();
-
 
1515
    case CUSTOMER_CITY:
-
 
1516
      return isSetCustomer_city();
-
 
1517
    case CUSTOMER_STATE:
-
 
1518
      return isSetCustomer_state();
1468
    case STATUS:
1519
    case STATUS:
1469
      return isSetStatus();
1520
      return isSetStatus();
1470
    case STATUS_DESCRIPTION:
1521
    case STATUS_DESCRIPTION:
1471
      return isSetStatusDescription();
1522
      return isSetStatusDescription();
1472
    case TOTAL_AMOUNT:
1523
    case TOTAL_AMOUNT:
Line 1487... Line 1538...
1487
      return isSetShipping_timestamp();
1538
      return isSetShipping_timestamp();
1488
    case DELIVERY_TIMESTAMP:
1539
    case DELIVERY_TIMESTAMP:
1489
      return isSetDelivery_timestamp();
1540
      return isSetDelivery_timestamp();
1490
    case JACKET_NUMBER:
1541
    case JACKET_NUMBER:
1491
      return isSetJacket_number();
1542
      return isSetJacket_number();
1492
    case CUSTOMER_CITY:
-
 
1493
      return isSetCustomer_city();
-
 
1494
    case CUSTOMER_STATE:
-
 
1495
      return isSetCustomer_state();
-
 
1496
    }
1543
    }
1497
    throw new IllegalStateException();
1544
    throw new IllegalStateException();
1498
  }
1545
  }
1499
 
1546
 
1500
  public boolean isSet(int fieldID) {
1547
  public boolean isSet(int fieldID) {
Line 1611... Line 1658...
1611
        return false;
1658
        return false;
1612
      if (!this.customer_pincode.equals(that.customer_pincode))
1659
      if (!this.customer_pincode.equals(that.customer_pincode))
1613
        return false;
1660
        return false;
1614
    }
1661
    }
1615
 
1662
 
1616
    boolean this_present_customer_address = true && this.isSetCustomer_address();
1663
    boolean this_present_customer_address1 = true && this.isSetCustomer_address1();
-
 
1664
    boolean that_present_customer_address1 = true && that.isSetCustomer_address1();
-
 
1665
    if (this_present_customer_address1 || that_present_customer_address1) {
-
 
1666
      if (!(this_present_customer_address1 && that_present_customer_address1))
-
 
1667
        return false;
-
 
1668
      if (!this.customer_address1.equals(that.customer_address1))
-
 
1669
        return false;
-
 
1670
    }
-
 
1671
 
-
 
1672
    boolean this_present_customer_address2 = true && this.isSetCustomer_address2();
1617
    boolean that_present_customer_address = true && that.isSetCustomer_address();
1673
    boolean that_present_customer_address2 = true && that.isSetCustomer_address2();
1618
    if (this_present_customer_address || that_present_customer_address) {
1674
    if (this_present_customer_address2 || that_present_customer_address2) {
1619
      if (!(this_present_customer_address && that_present_customer_address))
1675
      if (!(this_present_customer_address2 && that_present_customer_address2))
1620
        return false;
1676
        return false;
1621
      if (!this.customer_address.equals(that.customer_address))
1677
      if (!this.customer_address2.equals(that.customer_address2))
1622
        return false;
1678
        return false;
1623
    }
1679
    }
1624
 
1680
 
1625
    boolean this_present_customer_email = true && this.isSetCustomer_email();
1681
    boolean this_present_customer_email = true && this.isSetCustomer_email();
1626
    boolean that_present_customer_email = true && that.isSetCustomer_email();
1682
    boolean that_present_customer_email = true && that.isSetCustomer_email();
Line 1629... Line 1685...
1629
        return false;
1685
        return false;
1630
      if (!this.customer_email.equals(that.customer_email))
1686
      if (!this.customer_email.equals(that.customer_email))
1631
        return false;
1687
        return false;
1632
    }
1688
    }
1633
 
1689
 
-
 
1690
    boolean this_present_customer_city = true && this.isSetCustomer_city();
-
 
1691
    boolean that_present_customer_city = true && that.isSetCustomer_city();
-
 
1692
    if (this_present_customer_city || that_present_customer_city) {
-
 
1693
      if (!(this_present_customer_city && that_present_customer_city))
-
 
1694
        return false;
-
 
1695
      if (!this.customer_city.equals(that.customer_city))
-
 
1696
        return false;
-
 
1697
    }
-
 
1698
 
-
 
1699
    boolean this_present_customer_state = true && this.isSetCustomer_state();
-
 
1700
    boolean that_present_customer_state = true && that.isSetCustomer_state();
-
 
1701
    if (this_present_customer_state || that_present_customer_state) {
-
 
1702
      if (!(this_present_customer_state && that_present_customer_state))
-
 
1703
        return false;
-
 
1704
      if (!this.customer_state.equals(that.customer_state))
-
 
1705
        return false;
-
 
1706
    }
-
 
1707
 
1634
    boolean this_present_status = true && this.isSetStatus();
1708
    boolean this_present_status = true && this.isSetStatus();
1635
    boolean that_present_status = true && that.isSetStatus();
1709
    boolean that_present_status = true && that.isSetStatus();
1636
    if (this_present_status || that_present_status) {
1710
    if (this_present_status || that_present_status) {
1637
      if (!(this_present_status && that_present_status))
1711
      if (!(this_present_status && that_present_status))
1638
        return false;
1712
        return false;
Line 1737... Line 1811...
1737
        return false;
1811
        return false;
1738
      if (this.jacket_number != that.jacket_number)
1812
      if (this.jacket_number != that.jacket_number)
1739
        return false;
1813
        return false;
1740
    }
1814
    }
1741
 
1815
 
1742
    boolean this_present_customer_city = true && this.isSetCustomer_city();
-
 
1743
    boolean that_present_customer_city = true && that.isSetCustomer_city();
-
 
1744
    if (this_present_customer_city || that_present_customer_city) {
-
 
1745
      if (!(this_present_customer_city && that_present_customer_city))
-
 
1746
        return false;
-
 
1747
      if (!this.customer_city.equals(that.customer_city))
-
 
1748
        return false;
-
 
1749
    }
-
 
1750
 
-
 
1751
    boolean this_present_customer_state = true && this.isSetCustomer_state();
-
 
1752
    boolean that_present_customer_state = true && that.isSetCustomer_state();
-
 
1753
    if (this_present_customer_state || that_present_customer_state) {
-
 
1754
      if (!(this_present_customer_state && that_present_customer_state))
-
 
1755
        return false;
-
 
1756
      if (!this.customer_state.equals(that.customer_state))
-
 
1757
        return false;
-
 
1758
    }
-
 
1759
 
-
 
1760
    return true;
1816
    return true;
1761
  }
1817
  }
1762
 
1818
 
1763
  @Override
1819
  @Override
1764
  public int hashCode() {
1820
  public int hashCode() {
Line 1859... Line 1915...
1859
    }
1915
    }
1860
    lastComparison = TBaseHelper.compareTo(customer_pincode, typedOther.customer_pincode);
1916
    lastComparison = TBaseHelper.compareTo(customer_pincode, typedOther.customer_pincode);
1861
    if (lastComparison != 0) {
1917
    if (lastComparison != 0) {
1862
      return lastComparison;
1918
      return lastComparison;
1863
    }
1919
    }
1864
    lastComparison = Boolean.valueOf(isSetCustomer_address()).compareTo(isSetCustomer_address());
1920
    lastComparison = Boolean.valueOf(isSetCustomer_address1()).compareTo(isSetCustomer_address1());
-
 
1921
    if (lastComparison != 0) {
-
 
1922
      return lastComparison;
-
 
1923
    }
-
 
1924
    lastComparison = TBaseHelper.compareTo(customer_address1, typedOther.customer_address1);
1865
    if (lastComparison != 0) {
1925
    if (lastComparison != 0) {
1866
      return lastComparison;
1926
      return lastComparison;
1867
    }
1927
    }
-
 
1928
    lastComparison = Boolean.valueOf(isSetCustomer_address2()).compareTo(isSetCustomer_address2());
-
 
1929
    if (lastComparison != 0) {
-
 
1930
      return lastComparison;
-
 
1931
    }
1868
    lastComparison = TBaseHelper.compareTo(customer_address, typedOther.customer_address);
1932
    lastComparison = TBaseHelper.compareTo(customer_address2, typedOther.customer_address2);
1869
    if (lastComparison != 0) {
1933
    if (lastComparison != 0) {
1870
      return lastComparison;
1934
      return lastComparison;
1871
    }
1935
    }
1872
    lastComparison = Boolean.valueOf(isSetCustomer_email()).compareTo(isSetCustomer_email());
1936
    lastComparison = Boolean.valueOf(isSetCustomer_email()).compareTo(isSetCustomer_email());
1873
    if (lastComparison != 0) {
1937
    if (lastComparison != 0) {
Line 1875... Line 1939...
1875
    }
1939
    }
1876
    lastComparison = TBaseHelper.compareTo(customer_email, typedOther.customer_email);
1940
    lastComparison = TBaseHelper.compareTo(customer_email, typedOther.customer_email);
1877
    if (lastComparison != 0) {
1941
    if (lastComparison != 0) {
1878
      return lastComparison;
1942
      return lastComparison;
1879
    }
1943
    }
-
 
1944
    lastComparison = Boolean.valueOf(isSetCustomer_city()).compareTo(isSetCustomer_city());
-
 
1945
    if (lastComparison != 0) {
-
 
1946
      return lastComparison;
-
 
1947
    }
-
 
1948
    lastComparison = TBaseHelper.compareTo(customer_city, typedOther.customer_city);
-
 
1949
    if (lastComparison != 0) {
-
 
1950
      return lastComparison;
-
 
1951
    }
-
 
1952
    lastComparison = Boolean.valueOf(isSetCustomer_state()).compareTo(isSetCustomer_state());
-
 
1953
    if (lastComparison != 0) {
-
 
1954
      return lastComparison;
-
 
1955
    }
-
 
1956
    lastComparison = TBaseHelper.compareTo(customer_state, typedOther.customer_state);
-
 
1957
    if (lastComparison != 0) {
-
 
1958
      return lastComparison;
-
 
1959
    }
1880
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
1960
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
1881
    if (lastComparison != 0) {
1961
    if (lastComparison != 0) {
1882
      return lastComparison;
1962
      return lastComparison;
1883
    }
1963
    }
1884
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
1964
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
Line 1971... Line 2051...
1971
    }
2051
    }
1972
    lastComparison = TBaseHelper.compareTo(jacket_number, typedOther.jacket_number);
2052
    lastComparison = TBaseHelper.compareTo(jacket_number, typedOther.jacket_number);
1973
    if (lastComparison != 0) {
2053
    if (lastComparison != 0) {
1974
      return lastComparison;
2054
      return lastComparison;
1975
    }
2055
    }
1976
    lastComparison = Boolean.valueOf(isSetCustomer_city()).compareTo(isSetCustomer_city());
-
 
1977
    if (lastComparison != 0) {
-
 
1978
      return lastComparison;
-
 
1979
    }
-
 
1980
    lastComparison = TBaseHelper.compareTo(customer_city, typedOther.customer_city);
-
 
1981
    if (lastComparison != 0) {
-
 
1982
      return lastComparison;
-
 
1983
    }
-
 
1984
    lastComparison = Boolean.valueOf(isSetCustomer_state()).compareTo(isSetCustomer_state());
-
 
1985
    if (lastComparison != 0) {
-
 
1986
      return lastComparison;
-
 
1987
    }
-
 
1988
    lastComparison = TBaseHelper.compareTo(customer_state, typedOther.customer_state);
-
 
1989
    if (lastComparison != 0) {
-
 
1990
      return lastComparison;
-
 
1991
    }
-
 
1992
    return 0;
2056
    return 0;
1993
  }
2057
  }
1994
 
2058
 
1995
  public void read(TProtocol iprot) throws TException {
2059
  public void read(TProtocol iprot) throws TException {
1996
    TField field;
2060
    TField field;
Line 2097... Line 2161...
2097
              this.customer_pincode = iprot.readString();
2161
              this.customer_pincode = iprot.readString();
2098
            } else { 
2162
            } else { 
2099
              TProtocolUtil.skip(iprot, field.type);
2163
              TProtocolUtil.skip(iprot, field.type);
2100
            }
2164
            }
2101
            break;
2165
            break;
2102
          case CUSTOMER_ADDRESS:
2166
          case CUSTOMER_ADDRESS1:
2103
            if (field.type == TType.STRING) {
2167
            if (field.type == TType.STRING) {
2104
              this.customer_address = iprot.readString();
2168
              this.customer_address1 = iprot.readString();
-
 
2169
            } else { 
-
 
2170
              TProtocolUtil.skip(iprot, field.type);
-
 
2171
            }
-
 
2172
            break;
-
 
2173
          case CUSTOMER_ADDRESS2:
-
 
2174
            if (field.type == TType.STRING) {
-
 
2175
              this.customer_address2 = iprot.readString();
2105
            } else { 
2176
            } else { 
2106
              TProtocolUtil.skip(iprot, field.type);
2177
              TProtocolUtil.skip(iprot, field.type);
2107
            }
2178
            }
2108
            break;
2179
            break;
2109
          case CUSTOMER_EMAIL:
2180
          case CUSTOMER_EMAIL:
Line 2111... Line 2182...
2111
              this.customer_email = iprot.readString();
2182
              this.customer_email = iprot.readString();
2112
            } else { 
2183
            } else { 
2113
              TProtocolUtil.skip(iprot, field.type);
2184
              TProtocolUtil.skip(iprot, field.type);
2114
            }
2185
            }
2115
            break;
2186
            break;
-
 
2187
          case CUSTOMER_CITY:
-
 
2188
            if (field.type == TType.STRING) {
-
 
2189
              this.customer_city = iprot.readString();
-
 
2190
            } else { 
-
 
2191
              TProtocolUtil.skip(iprot, field.type);
-
 
2192
            }
-
 
2193
            break;
-
 
2194
          case CUSTOMER_STATE:
-
 
2195
            if (field.type == TType.STRING) {
-
 
2196
              this.customer_state = iprot.readString();
-
 
2197
            } else { 
-
 
2198
              TProtocolUtil.skip(iprot, field.type);
-
 
2199
            }
-
 
2200
            break;
2116
          case STATUS:
2201
          case STATUS:
2117
            if (field.type == TType.I32) {
2202
            if (field.type == TType.I32) {
2118
              this.status = OrderStatus.findByValue(iprot.readI32());
2203
              this.status = OrderStatus.findByValue(iprot.readI32());
2119
            } else { 
2204
            } else { 
2120
              TProtocolUtil.skip(iprot, field.type);
2205
              TProtocolUtil.skip(iprot, field.type);
Line 2203... Line 2288...
2203
              setJacket_numberIsSet(true);
2288
              setJacket_numberIsSet(true);
2204
            } else { 
2289
            } else { 
2205
              TProtocolUtil.skip(iprot, field.type);
2290
              TProtocolUtil.skip(iprot, field.type);
2206
            }
2291
            }
2207
            break;
2292
            break;
2208
          case CUSTOMER_CITY:
-
 
2209
            if (field.type == TType.STRING) {
-
 
2210
              this.customer_city = iprot.readString();
-
 
2211
            } else { 
-
 
2212
              TProtocolUtil.skip(iprot, field.type);
-
 
2213
            }
-
 
2214
            break;
-
 
2215
          case CUSTOMER_STATE:
-
 
2216
            if (field.type == TType.STRING) {
-
 
2217
              this.customer_state = iprot.readString();
-
 
2218
            } else { 
-
 
2219
              TProtocolUtil.skip(iprot, field.type);
-
 
2220
            }
-
 
2221
            break;
-
 
2222
        }
2293
        }
2223
        iprot.readFieldEnd();
2294
        iprot.readFieldEnd();
2224
      }
2295
      }
2225
    }
2296
    }
2226
    iprot.readStructEnd();
2297
    iprot.readStructEnd();
Line 2281... Line 2352...
2281
    if (this.customer_pincode != null) {
2352
    if (this.customer_pincode != null) {
2282
      oprot.writeFieldBegin(CUSTOMER_PINCODE_FIELD_DESC);
2353
      oprot.writeFieldBegin(CUSTOMER_PINCODE_FIELD_DESC);
2283
      oprot.writeString(this.customer_pincode);
2354
      oprot.writeString(this.customer_pincode);
2284
      oprot.writeFieldEnd();
2355
      oprot.writeFieldEnd();
2285
    }
2356
    }
2286
    if (this.customer_address != null) {
2357
    if (this.customer_address1 != null) {
-
 
2358
      oprot.writeFieldBegin(CUSTOMER_ADDRESS1_FIELD_DESC);
-
 
2359
      oprot.writeString(this.customer_address1);
-
 
2360
      oprot.writeFieldEnd();
-
 
2361
    }
-
 
2362
    if (this.customer_address2 != null) {
2287
      oprot.writeFieldBegin(CUSTOMER_ADDRESS_FIELD_DESC);
2363
      oprot.writeFieldBegin(CUSTOMER_ADDRESS2_FIELD_DESC);
2288
      oprot.writeString(this.customer_address);
2364
      oprot.writeString(this.customer_address2);
2289
      oprot.writeFieldEnd();
2365
      oprot.writeFieldEnd();
2290
    }
2366
    }
2291
    if (this.customer_email != null) {
2367
    if (this.customer_email != null) {
2292
      oprot.writeFieldBegin(CUSTOMER_EMAIL_FIELD_DESC);
2368
      oprot.writeFieldBegin(CUSTOMER_EMAIL_FIELD_DESC);
2293
      oprot.writeString(this.customer_email);
2369
      oprot.writeString(this.customer_email);
2294
      oprot.writeFieldEnd();
2370
      oprot.writeFieldEnd();
2295
    }
2371
    }
-
 
2372
    if (this.customer_city != null) {
-
 
2373
      oprot.writeFieldBegin(CUSTOMER_CITY_FIELD_DESC);
-
 
2374
      oprot.writeString(this.customer_city);
-
 
2375
      oprot.writeFieldEnd();
-
 
2376
    }
-
 
2377
    if (this.customer_state != null) {
-
 
2378
      oprot.writeFieldBegin(CUSTOMER_STATE_FIELD_DESC);
-
 
2379
      oprot.writeString(this.customer_state);
-
 
2380
      oprot.writeFieldEnd();
-
 
2381
    }
2296
    if (this.status != null) {
2382
    if (this.status != null) {
2297
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
2383
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
2298
      oprot.writeI32(this.status.getValue());
2384
      oprot.writeI32(this.status.getValue());
2299
      oprot.writeFieldEnd();
2385
      oprot.writeFieldEnd();
2300
    }
2386
    }
Line 2335... Line 2421...
2335
    oprot.writeI64(this.delivery_timestamp);
2421
    oprot.writeI64(this.delivery_timestamp);
2336
    oprot.writeFieldEnd();
2422
    oprot.writeFieldEnd();
2337
    oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
2423
    oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
2338
    oprot.writeI64(this.jacket_number);
2424
    oprot.writeI64(this.jacket_number);
2339
    oprot.writeFieldEnd();
2425
    oprot.writeFieldEnd();
2340
    if (this.customer_city != null) {
-
 
2341
      oprot.writeFieldBegin(CUSTOMER_CITY_FIELD_DESC);
-
 
2342
      oprot.writeString(this.customer_city);
-
 
2343
      oprot.writeFieldEnd();
-
 
2344
    }
-
 
2345
    if (this.customer_state != null) {
-
 
2346
      oprot.writeFieldBegin(CUSTOMER_STATE_FIELD_DESC);
-
 
2347
      oprot.writeString(this.customer_state);
-
 
2348
      oprot.writeFieldEnd();
-
 
2349
    }
-
 
2350
    oprot.writeFieldStop();
2426
    oprot.writeFieldStop();
2351
    oprot.writeStructEnd();
2427
    oprot.writeStructEnd();
2352
  }
2428
  }
2353
 
2429
 
2354
  @Override
2430
  @Override
Line 2422... Line 2498...
2422
    } else {
2498
    } else {
2423
      sb.append(this.customer_pincode);
2499
      sb.append(this.customer_pincode);
2424
    }
2500
    }
2425
    first = false;
2501
    first = false;
2426
    if (!first) sb.append(", ");
2502
    if (!first) sb.append(", ");
2427
    sb.append("customer_address:");
2503
    sb.append("customer_address1:");
2428
    if (this.customer_address == null) {
2504
    if (this.customer_address1 == null) {
2429
      sb.append("null");
2505
      sb.append("null");
2430
    } else {
2506
    } else {
2431
      sb.append(this.customer_address);
2507
      sb.append(this.customer_address1);
-
 
2508
    }
-
 
2509
    first = false;
-
 
2510
    if (!first) sb.append(", ");
-
 
2511
    sb.append("customer_address2:");
-
 
2512
    if (this.customer_address2 == null) {
-
 
2513
      sb.append("null");
-
 
2514
    } else {
-
 
2515
      sb.append(this.customer_address2);
2432
    }
2516
    }
2433
    first = false;
2517
    first = false;
2434
    if (!first) sb.append(", ");
2518
    if (!first) sb.append(", ");
2435
    sb.append("customer_email:");
2519
    sb.append("customer_email:");
2436
    if (this.customer_email == null) {
2520
    if (this.customer_email == null) {
Line 2438... Line 2522...
2438
    } else {
2522
    } else {
2439
      sb.append(this.customer_email);
2523
      sb.append(this.customer_email);
2440
    }
2524
    }
2441
    first = false;
2525
    first = false;
2442
    if (!first) sb.append(", ");
2526
    if (!first) sb.append(", ");
-
 
2527
    sb.append("customer_city:");
-
 
2528
    if (this.customer_city == null) {
-
 
2529
      sb.append("null");
-
 
2530
    } else {
-
 
2531
      sb.append(this.customer_city);
-
 
2532
    }
-
 
2533
    first = false;
-
 
2534
    if (!first) sb.append(", ");
-
 
2535
    sb.append("customer_state:");
-
 
2536
    if (this.customer_state == null) {
-
 
2537
      sb.append("null");
-
 
2538
    } else {
-
 
2539
      sb.append(this.customer_state);
-
 
2540
    }
-
 
2541
    first = false;
-
 
2542
    if (!first) sb.append(", ");
2443
    sb.append("status:");
2543
    sb.append("status:");
2444
    if (this.status == null) {
2544
    if (this.status == null) {
2445
      sb.append("null");
2545
      sb.append("null");
2446
    } else {
2546
    } else {
2447
      String status_name = status.name();
2547
      String status_name = status.name();
Line 2509... Line 2609...
2509
    first = false;
2609
    first = false;
2510
    if (!first) sb.append(", ");
2610
    if (!first) sb.append(", ");
2511
    sb.append("jacket_number:");
2611
    sb.append("jacket_number:");
2512
    sb.append(this.jacket_number);
2612
    sb.append(this.jacket_number);
2513
    first = false;
2613
    first = false;
2514
    if (!first) sb.append(", ");
-
 
2515
    sb.append("customer_city:");
-
 
2516
    if (this.customer_city == null) {
-
 
2517
      sb.append("null");
-
 
2518
    } else {
-
 
2519
      sb.append(this.customer_city);
-
 
2520
    }
-
 
2521
    first = false;
-
 
2522
    if (!first) sb.append(", ");
-
 
2523
    sb.append("customer_state:");
-
 
2524
    if (this.customer_state == null) {
-
 
2525
      sb.append("null");
-
 
2526
    } else {
-
 
2527
      sb.append(this.customer_state);
-
 
2528
    }
-
 
2529
    first = false;
-
 
2530
    sb.append(")");
2614
    sb.append(")");
2531
    return sb.toString();
2615
    return sb.toString();
2532
  }
2616
  }
2533
 
2617
 
2534
  public void validate() throws TException {
2618
  public void validate() throws TException {