Subversion Repositories SmartDukaan

Rev

Rev 2690 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2690 chandransh 1
/**
2
 * Autogenerated by Thrift
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.order;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
 
22
import org.apache.thrift.*;
23
import org.apache.thrift.meta_data.*;
24
import org.apache.thrift.protocol.*;
25
 
26
public class ReturnOrder implements TBase<ReturnOrder._Fields>, java.io.Serializable, Cloneable, Comparable<ReturnOrder> {
27
  private static final TStruct STRUCT_DESC = new TStruct("ReturnOrder");
28
 
29
  private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
2697 chandransh 30
  private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)2);
31
  private static final TField JACKET_NUMBER_FIELD_DESC = new TField("jacketNumber", TType.I64, (short)3);
32
  private static final TField INVOICE_NUMBER_FIELD_DESC = new TField("invoiceNumber", TType.STRING, (short)4);
33
  private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)5);
34
  private static final TField PRODUCT_GROUP_FIELD_DESC = new TField("productGroup", TType.STRING, (short)6);
35
  private static final TField BRAND_FIELD_DESC = new TField("brand", TType.STRING, (short)7);
36
  private static final TField MODEL_NUMBER_FIELD_DESC = new TField("modelNumber", TType.STRING, (short)8);
37
  private static final TField MODEL_NAME_FIELD_DESC = new TField("modelName", TType.STRING, (short)9);
38
  private static final TField COLOR_FIELD_DESC = new TField("color", TType.STRING, (short)10);
39
  private static final TField TOTAL_PRICE_FIELD_DESC = new TField("totalPrice", TType.DOUBLE, (short)11);
40
  private static final TField TRANSFER_PRICE_FIELD_DESC = new TField("transferPrice", TType.DOUBLE, (short)12);
41
  private static final TField PROCESSED_STATUS_FIELD_DESC = new TField("processedStatus", TType.BOOL, (short)13);
42
  private static final TField CREATED_AT_FIELD_DESC = new TField("createdAt", TType.I64, (short)14);
43
  private static final TField PROCESSED_AT_FIELD_DESC = new TField("processedAt", TType.I64, (short)15);
2690 chandransh 44
 
45
  private long orderId;
2697 chandransh 46
  private long warehouseId;
2690 chandransh 47
  private long jacketNumber;
48
  private String invoiceNumber;
49
  private long itemId;
50
  private String productGroup;
51
  private String brand;
52
  private String modelNumber;
53
  private String modelName;
54
  private String color;
55
  private double totalPrice;
56
  private double transferPrice;
57
  private boolean processedStatus;
58
  private long createdAt;
59
  private long processedAt;
60
 
61
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
62
  public enum _Fields implements TFieldIdEnum {
63
    ORDER_ID((short)1, "orderId"),
2697 chandransh 64
    WAREHOUSE_ID((short)2, "warehouseId"),
65
    JACKET_NUMBER((short)3, "jacketNumber"),
66
    INVOICE_NUMBER((short)4, "invoiceNumber"),
67
    ITEM_ID((short)5, "itemId"),
68
    PRODUCT_GROUP((short)6, "productGroup"),
69
    BRAND((short)7, "brand"),
70
    MODEL_NUMBER((short)8, "modelNumber"),
71
    MODEL_NAME((short)9, "modelName"),
72
    COLOR((short)10, "color"),
73
    TOTAL_PRICE((short)11, "totalPrice"),
74
    TRANSFER_PRICE((short)12, "transferPrice"),
75
    PROCESSED_STATUS((short)13, "processedStatus"),
76
    CREATED_AT((short)14, "createdAt"),
77
    PROCESSED_AT((short)15, "processedAt");
2690 chandransh 78
 
79
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
80
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
81
 
82
    static {
83
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
84
        byId.put((int)field._thriftId, field);
85
        byName.put(field.getFieldName(), field);
86
      }
87
    }
88
 
89
    /**
90
     * Find the _Fields constant that matches fieldId, or null if its not found.
91
     */
92
    public static _Fields findByThriftId(int fieldId) {
93
      return byId.get(fieldId);
94
    }
95
 
96
    /**
97
     * Find the _Fields constant that matches fieldId, throwing an exception
98
     * if it is not found.
99
     */
100
    public static _Fields findByThriftIdOrThrow(int fieldId) {
101
      _Fields fields = findByThriftId(fieldId);
102
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
103
      return fields;
104
    }
105
 
106
    /**
107
     * Find the _Fields constant that matches name, or null if its not found.
108
     */
109
    public static _Fields findByName(String name) {
110
      return byName.get(name);
111
    }
112
 
113
    private final short _thriftId;
114
    private final String _fieldName;
115
 
116
    _Fields(short thriftId, String fieldName) {
117
      _thriftId = thriftId;
118
      _fieldName = fieldName;
119
    }
120
 
121
    public short getThriftFieldId() {
122
      return _thriftId;
123
    }
124
 
125
    public String getFieldName() {
126
      return _fieldName;
127
    }
128
  }
129
 
130
  // isset id assignments
131
  private static final int __ORDERID_ISSET_ID = 0;
2697 chandransh 132
  private static final int __WAREHOUSEID_ISSET_ID = 1;
133
  private static final int __JACKETNUMBER_ISSET_ID = 2;
134
  private static final int __ITEMID_ISSET_ID = 3;
135
  private static final int __TOTALPRICE_ISSET_ID = 4;
136
  private static final int __TRANSFERPRICE_ISSET_ID = 5;
137
  private static final int __PROCESSEDSTATUS_ISSET_ID = 6;
138
  private static final int __CREATEDAT_ISSET_ID = 7;
139
  private static final int __PROCESSEDAT_ISSET_ID = 8;
140
  private BitSet __isset_bit_vector = new BitSet(9);
2690 chandransh 141
 
142
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
143
    put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
144
        new FieldValueMetaData(TType.I64)));
2697 chandransh 145
    put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouseId", TFieldRequirementType.DEFAULT, 
146
        new FieldValueMetaData(TType.I64)));
2690 chandransh 147
    put(_Fields.JACKET_NUMBER, new FieldMetaData("jacketNumber", TFieldRequirementType.DEFAULT, 
148
        new FieldValueMetaData(TType.I64)));
149
    put(_Fields.INVOICE_NUMBER, new FieldMetaData("invoiceNumber", TFieldRequirementType.DEFAULT, 
150
        new FieldValueMetaData(TType.STRING)));
151
    put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
152
        new FieldValueMetaData(TType.I64)));
153
    put(_Fields.PRODUCT_GROUP, new FieldMetaData("productGroup", TFieldRequirementType.DEFAULT, 
154
        new FieldValueMetaData(TType.STRING)));
155
    put(_Fields.BRAND, new FieldMetaData("brand", TFieldRequirementType.DEFAULT, 
156
        new FieldValueMetaData(TType.STRING)));
157
    put(_Fields.MODEL_NUMBER, new FieldMetaData("modelNumber", TFieldRequirementType.DEFAULT, 
158
        new FieldValueMetaData(TType.STRING)));
159
    put(_Fields.MODEL_NAME, new FieldMetaData("modelName", TFieldRequirementType.DEFAULT, 
160
        new FieldValueMetaData(TType.STRING)));
161
    put(_Fields.COLOR, new FieldMetaData("color", TFieldRequirementType.DEFAULT, 
162
        new FieldValueMetaData(TType.STRING)));
163
    put(_Fields.TOTAL_PRICE, new FieldMetaData("totalPrice", TFieldRequirementType.DEFAULT, 
164
        new FieldValueMetaData(TType.DOUBLE)));
165
    put(_Fields.TRANSFER_PRICE, new FieldMetaData("transferPrice", TFieldRequirementType.DEFAULT, 
166
        new FieldValueMetaData(TType.DOUBLE)));
167
    put(_Fields.PROCESSED_STATUS, new FieldMetaData("processedStatus", TFieldRequirementType.DEFAULT, 
168
        new FieldValueMetaData(TType.BOOL)));
169
    put(_Fields.CREATED_AT, new FieldMetaData("createdAt", TFieldRequirementType.DEFAULT, 
170
        new FieldValueMetaData(TType.I64)));
171
    put(_Fields.PROCESSED_AT, new FieldMetaData("processedAt", TFieldRequirementType.DEFAULT, 
172
        new FieldValueMetaData(TType.I64)));
173
  }});
174
 
175
  static {
176
    FieldMetaData.addStructMetaDataMap(ReturnOrder.class, metaDataMap);
177
  }
178
 
179
  public ReturnOrder() {
180
  }
181
 
182
  public ReturnOrder(
183
    long orderId,
2697 chandransh 184
    long warehouseId,
2690 chandransh 185
    long jacketNumber,
186
    String invoiceNumber,
187
    long itemId,
188
    String productGroup,
189
    String brand,
190
    String modelNumber,
191
    String modelName,
192
    String color,
193
    double totalPrice,
194
    double transferPrice,
195
    boolean processedStatus,
196
    long createdAt,
197
    long processedAt)
198
  {
199
    this();
200
    this.orderId = orderId;
201
    setOrderIdIsSet(true);
2697 chandransh 202
    this.warehouseId = warehouseId;
203
    setWarehouseIdIsSet(true);
2690 chandransh 204
    this.jacketNumber = jacketNumber;
205
    setJacketNumberIsSet(true);
206
    this.invoiceNumber = invoiceNumber;
207
    this.itemId = itemId;
208
    setItemIdIsSet(true);
209
    this.productGroup = productGroup;
210
    this.brand = brand;
211
    this.modelNumber = modelNumber;
212
    this.modelName = modelName;
213
    this.color = color;
214
    this.totalPrice = totalPrice;
215
    setTotalPriceIsSet(true);
216
    this.transferPrice = transferPrice;
217
    setTransferPriceIsSet(true);
218
    this.processedStatus = processedStatus;
219
    setProcessedStatusIsSet(true);
220
    this.createdAt = createdAt;
221
    setCreatedAtIsSet(true);
222
    this.processedAt = processedAt;
223
    setProcessedAtIsSet(true);
224
  }
225
 
226
  /**
227
   * Performs a deep copy on <i>other</i>.
228
   */
229
  public ReturnOrder(ReturnOrder other) {
230
    __isset_bit_vector.clear();
231
    __isset_bit_vector.or(other.__isset_bit_vector);
232
    this.orderId = other.orderId;
2697 chandransh 233
    this.warehouseId = other.warehouseId;
2690 chandransh 234
    this.jacketNumber = other.jacketNumber;
235
    if (other.isSetInvoiceNumber()) {
236
      this.invoiceNumber = other.invoiceNumber;
237
    }
238
    this.itemId = other.itemId;
239
    if (other.isSetProductGroup()) {
240
      this.productGroup = other.productGroup;
241
    }
242
    if (other.isSetBrand()) {
243
      this.brand = other.brand;
244
    }
245
    if (other.isSetModelNumber()) {
246
      this.modelNumber = other.modelNumber;
247
    }
248
    if (other.isSetModelName()) {
249
      this.modelName = other.modelName;
250
    }
251
    if (other.isSetColor()) {
252
      this.color = other.color;
253
    }
254
    this.totalPrice = other.totalPrice;
255
    this.transferPrice = other.transferPrice;
256
    this.processedStatus = other.processedStatus;
257
    this.createdAt = other.createdAt;
258
    this.processedAt = other.processedAt;
259
  }
260
 
261
  public ReturnOrder deepCopy() {
262
    return new ReturnOrder(this);
263
  }
264
 
265
  @Deprecated
266
  public ReturnOrder clone() {
267
    return new ReturnOrder(this);
268
  }
269
 
270
  public long getOrderId() {
271
    return this.orderId;
272
  }
273
 
274
  public ReturnOrder setOrderId(long orderId) {
275
    this.orderId = orderId;
276
    setOrderIdIsSet(true);
277
    return this;
278
  }
279
 
280
  public void unsetOrderId() {
281
    __isset_bit_vector.clear(__ORDERID_ISSET_ID);
282
  }
283
 
284
  /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
285
  public boolean isSetOrderId() {
286
    return __isset_bit_vector.get(__ORDERID_ISSET_ID);
287
  }
288
 
289
  public void setOrderIdIsSet(boolean value) {
290
    __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
291
  }
292
 
2697 chandransh 293
  public long getWarehouseId() {
294
    return this.warehouseId;
295
  }
296
 
297
  public ReturnOrder setWarehouseId(long warehouseId) {
298
    this.warehouseId = warehouseId;
299
    setWarehouseIdIsSet(true);
300
    return this;
301
  }
302
 
303
  public void unsetWarehouseId() {
304
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
305
  }
306
 
307
  /** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */
308
  public boolean isSetWarehouseId() {
309
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
310
  }
311
 
312
  public void setWarehouseIdIsSet(boolean value) {
313
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
314
  }
315
 
2690 chandransh 316
  public long getJacketNumber() {
317
    return this.jacketNumber;
318
  }
319
 
320
  public ReturnOrder setJacketNumber(long jacketNumber) {
321
    this.jacketNumber = jacketNumber;
322
    setJacketNumberIsSet(true);
323
    return this;
324
  }
325
 
326
  public void unsetJacketNumber() {
327
    __isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
328
  }
329
 
330
  /** Returns true if field jacketNumber is set (has been asigned a value) and false otherwise */
331
  public boolean isSetJacketNumber() {
332
    return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
333
  }
334
 
335
  public void setJacketNumberIsSet(boolean value) {
336
    __isset_bit_vector.set(__JACKETNUMBER_ISSET_ID, value);
337
  }
338
 
339
  public String getInvoiceNumber() {
340
    return this.invoiceNumber;
341
  }
342
 
343
  public ReturnOrder setInvoiceNumber(String invoiceNumber) {
344
    this.invoiceNumber = invoiceNumber;
345
    return this;
346
  }
347
 
348
  public void unsetInvoiceNumber() {
349
    this.invoiceNumber = null;
350
  }
351
 
352
  /** Returns true if field invoiceNumber is set (has been asigned a value) and false otherwise */
353
  public boolean isSetInvoiceNumber() {
354
    return this.invoiceNumber != null;
355
  }
356
 
357
  public void setInvoiceNumberIsSet(boolean value) {
358
    if (!value) {
359
      this.invoiceNumber = null;
360
    }
361
  }
362
 
363
  public long getItemId() {
364
    return this.itemId;
365
  }
366
 
367
  public ReturnOrder setItemId(long itemId) {
368
    this.itemId = itemId;
369
    setItemIdIsSet(true);
370
    return this;
371
  }
372
 
373
  public void unsetItemId() {
374
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
375
  }
376
 
377
  /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
378
  public boolean isSetItemId() {
379
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
380
  }
381
 
382
  public void setItemIdIsSet(boolean value) {
383
    __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
384
  }
385
 
386
  public String getProductGroup() {
387
    return this.productGroup;
388
  }
389
 
390
  public ReturnOrder setProductGroup(String productGroup) {
391
    this.productGroup = productGroup;
392
    return this;
393
  }
394
 
395
  public void unsetProductGroup() {
396
    this.productGroup = null;
397
  }
398
 
399
  /** Returns true if field productGroup is set (has been asigned a value) and false otherwise */
400
  public boolean isSetProductGroup() {
401
    return this.productGroup != null;
402
  }
403
 
404
  public void setProductGroupIsSet(boolean value) {
405
    if (!value) {
406
      this.productGroup = null;
407
    }
408
  }
409
 
410
  public String getBrand() {
411
    return this.brand;
412
  }
413
 
414
  public ReturnOrder setBrand(String brand) {
415
    this.brand = brand;
416
    return this;
417
  }
418
 
419
  public void unsetBrand() {
420
    this.brand = null;
421
  }
422
 
423
  /** Returns true if field brand is set (has been asigned a value) and false otherwise */
424
  public boolean isSetBrand() {
425
    return this.brand != null;
426
  }
427
 
428
  public void setBrandIsSet(boolean value) {
429
    if (!value) {
430
      this.brand = null;
431
    }
432
  }
433
 
434
  public String getModelNumber() {
435
    return this.modelNumber;
436
  }
437
 
438
  public ReturnOrder setModelNumber(String modelNumber) {
439
    this.modelNumber = modelNumber;
440
    return this;
441
  }
442
 
443
  public void unsetModelNumber() {
444
    this.modelNumber = null;
445
  }
446
 
447
  /** Returns true if field modelNumber is set (has been asigned a value) and false otherwise */
448
  public boolean isSetModelNumber() {
449
    return this.modelNumber != null;
450
  }
451
 
452
  public void setModelNumberIsSet(boolean value) {
453
    if (!value) {
454
      this.modelNumber = null;
455
    }
456
  }
457
 
458
  public String getModelName() {
459
    return this.modelName;
460
  }
461
 
462
  public ReturnOrder setModelName(String modelName) {
463
    this.modelName = modelName;
464
    return this;
465
  }
466
 
467
  public void unsetModelName() {
468
    this.modelName = null;
469
  }
470
 
471
  /** Returns true if field modelName is set (has been asigned a value) and false otherwise */
472
  public boolean isSetModelName() {
473
    return this.modelName != null;
474
  }
475
 
476
  public void setModelNameIsSet(boolean value) {
477
    if (!value) {
478
      this.modelName = null;
479
    }
480
  }
481
 
482
  public String getColor() {
483
    return this.color;
484
  }
485
 
486
  public ReturnOrder setColor(String color) {
487
    this.color = color;
488
    return this;
489
  }
490
 
491
  public void unsetColor() {
492
    this.color = null;
493
  }
494
 
495
  /** Returns true if field color is set (has been asigned a value) and false otherwise */
496
  public boolean isSetColor() {
497
    return this.color != null;
498
  }
499
 
500
  public void setColorIsSet(boolean value) {
501
    if (!value) {
502
      this.color = null;
503
    }
504
  }
505
 
506
  public double getTotalPrice() {
507
    return this.totalPrice;
508
  }
509
 
510
  public ReturnOrder setTotalPrice(double totalPrice) {
511
    this.totalPrice = totalPrice;
512
    setTotalPriceIsSet(true);
513
    return this;
514
  }
515
 
516
  public void unsetTotalPrice() {
517
    __isset_bit_vector.clear(__TOTALPRICE_ISSET_ID);
518
  }
519
 
520
  /** Returns true if field totalPrice is set (has been asigned a value) and false otherwise */
521
  public boolean isSetTotalPrice() {
522
    return __isset_bit_vector.get(__TOTALPRICE_ISSET_ID);
523
  }
524
 
525
  public void setTotalPriceIsSet(boolean value) {
526
    __isset_bit_vector.set(__TOTALPRICE_ISSET_ID, value);
527
  }
528
 
529
  public double getTransferPrice() {
530
    return this.transferPrice;
531
  }
532
 
533
  public ReturnOrder setTransferPrice(double transferPrice) {
534
    this.transferPrice = transferPrice;
535
    setTransferPriceIsSet(true);
536
    return this;
537
  }
538
 
539
  public void unsetTransferPrice() {
540
    __isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
541
  }
542
 
543
  /** Returns true if field transferPrice is set (has been asigned a value) and false otherwise */
544
  public boolean isSetTransferPrice() {
545
    return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
546
  }
547
 
548
  public void setTransferPriceIsSet(boolean value) {
549
    __isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);
550
  }
551
 
552
  public boolean isProcessedStatus() {
553
    return this.processedStatus;
554
  }
555
 
556
  public ReturnOrder setProcessedStatus(boolean processedStatus) {
557
    this.processedStatus = processedStatus;
558
    setProcessedStatusIsSet(true);
559
    return this;
560
  }
561
 
562
  public void unsetProcessedStatus() {
563
    __isset_bit_vector.clear(__PROCESSEDSTATUS_ISSET_ID);
564
  }
565
 
566
  /** Returns true if field processedStatus is set (has been asigned a value) and false otherwise */
567
  public boolean isSetProcessedStatus() {
568
    return __isset_bit_vector.get(__PROCESSEDSTATUS_ISSET_ID);
569
  }
570
 
571
  public void setProcessedStatusIsSet(boolean value) {
572
    __isset_bit_vector.set(__PROCESSEDSTATUS_ISSET_ID, value);
573
  }
574
 
575
  public long getCreatedAt() {
576
    return this.createdAt;
577
  }
578
 
579
  public ReturnOrder setCreatedAt(long createdAt) {
580
    this.createdAt = createdAt;
581
    setCreatedAtIsSet(true);
582
    return this;
583
  }
584
 
585
  public void unsetCreatedAt() {
586
    __isset_bit_vector.clear(__CREATEDAT_ISSET_ID);
587
  }
588
 
589
  /** Returns true if field createdAt is set (has been asigned a value) and false otherwise */
590
  public boolean isSetCreatedAt() {
591
    return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);
592
  }
593
 
594
  public void setCreatedAtIsSet(boolean value) {
595
    __isset_bit_vector.set(__CREATEDAT_ISSET_ID, value);
596
  }
597
 
598
  public long getProcessedAt() {
599
    return this.processedAt;
600
  }
601
 
602
  public ReturnOrder setProcessedAt(long processedAt) {
603
    this.processedAt = processedAt;
604
    setProcessedAtIsSet(true);
605
    return this;
606
  }
607
 
608
  public void unsetProcessedAt() {
609
    __isset_bit_vector.clear(__PROCESSEDAT_ISSET_ID);
610
  }
611
 
612
  /** Returns true if field processedAt is set (has been asigned a value) and false otherwise */
613
  public boolean isSetProcessedAt() {
614
    return __isset_bit_vector.get(__PROCESSEDAT_ISSET_ID);
615
  }
616
 
617
  public void setProcessedAtIsSet(boolean value) {
618
    __isset_bit_vector.set(__PROCESSEDAT_ISSET_ID, value);
619
  }
620
 
621
  public void setFieldValue(_Fields field, Object value) {
622
    switch (field) {
623
    case ORDER_ID:
624
      if (value == null) {
625
        unsetOrderId();
626
      } else {
627
        setOrderId((Long)value);
628
      }
629
      break;
630
 
2697 chandransh 631
    case WAREHOUSE_ID:
632
      if (value == null) {
633
        unsetWarehouseId();
634
      } else {
635
        setWarehouseId((Long)value);
636
      }
637
      break;
638
 
2690 chandransh 639
    case JACKET_NUMBER:
640
      if (value == null) {
641
        unsetJacketNumber();
642
      } else {
643
        setJacketNumber((Long)value);
644
      }
645
      break;
646
 
647
    case INVOICE_NUMBER:
648
      if (value == null) {
649
        unsetInvoiceNumber();
650
      } else {
651
        setInvoiceNumber((String)value);
652
      }
653
      break;
654
 
655
    case ITEM_ID:
656
      if (value == null) {
657
        unsetItemId();
658
      } else {
659
        setItemId((Long)value);
660
      }
661
      break;
662
 
663
    case PRODUCT_GROUP:
664
      if (value == null) {
665
        unsetProductGroup();
666
      } else {
667
        setProductGroup((String)value);
668
      }
669
      break;
670
 
671
    case BRAND:
672
      if (value == null) {
673
        unsetBrand();
674
      } else {
675
        setBrand((String)value);
676
      }
677
      break;
678
 
679
    case MODEL_NUMBER:
680
      if (value == null) {
681
        unsetModelNumber();
682
      } else {
683
        setModelNumber((String)value);
684
      }
685
      break;
686
 
687
    case MODEL_NAME:
688
      if (value == null) {
689
        unsetModelName();
690
      } else {
691
        setModelName((String)value);
692
      }
693
      break;
694
 
695
    case COLOR:
696
      if (value == null) {
697
        unsetColor();
698
      } else {
699
        setColor((String)value);
700
      }
701
      break;
702
 
703
    case TOTAL_PRICE:
704
      if (value == null) {
705
        unsetTotalPrice();
706
      } else {
707
        setTotalPrice((Double)value);
708
      }
709
      break;
710
 
711
    case TRANSFER_PRICE:
712
      if (value == null) {
713
        unsetTransferPrice();
714
      } else {
715
        setTransferPrice((Double)value);
716
      }
717
      break;
718
 
719
    case PROCESSED_STATUS:
720
      if (value == null) {
721
        unsetProcessedStatus();
722
      } else {
723
        setProcessedStatus((Boolean)value);
724
      }
725
      break;
726
 
727
    case CREATED_AT:
728
      if (value == null) {
729
        unsetCreatedAt();
730
      } else {
731
        setCreatedAt((Long)value);
732
      }
733
      break;
734
 
735
    case PROCESSED_AT:
736
      if (value == null) {
737
        unsetProcessedAt();
738
      } else {
739
        setProcessedAt((Long)value);
740
      }
741
      break;
742
 
743
    }
744
  }
745
 
746
  public void setFieldValue(int fieldID, Object value) {
747
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
748
  }
749
 
750
  public Object getFieldValue(_Fields field) {
751
    switch (field) {
752
    case ORDER_ID:
753
      return new Long(getOrderId());
754
 
2697 chandransh 755
    case WAREHOUSE_ID:
756
      return new Long(getWarehouseId());
757
 
2690 chandransh 758
    case JACKET_NUMBER:
759
      return new Long(getJacketNumber());
760
 
761
    case INVOICE_NUMBER:
762
      return getInvoiceNumber();
763
 
764
    case ITEM_ID:
765
      return new Long(getItemId());
766
 
767
    case PRODUCT_GROUP:
768
      return getProductGroup();
769
 
770
    case BRAND:
771
      return getBrand();
772
 
773
    case MODEL_NUMBER:
774
      return getModelNumber();
775
 
776
    case MODEL_NAME:
777
      return getModelName();
778
 
779
    case COLOR:
780
      return getColor();
781
 
782
    case TOTAL_PRICE:
783
      return new Double(getTotalPrice());
784
 
785
    case TRANSFER_PRICE:
786
      return new Double(getTransferPrice());
787
 
788
    case PROCESSED_STATUS:
789
      return new Boolean(isProcessedStatus());
790
 
791
    case CREATED_AT:
792
      return new Long(getCreatedAt());
793
 
794
    case PROCESSED_AT:
795
      return new Long(getProcessedAt());
796
 
797
    }
798
    throw new IllegalStateException();
799
  }
800
 
801
  public Object getFieldValue(int fieldId) {
802
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
803
  }
804
 
805
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
806
  public boolean isSet(_Fields field) {
807
    switch (field) {
808
    case ORDER_ID:
809
      return isSetOrderId();
2697 chandransh 810
    case WAREHOUSE_ID:
811
      return isSetWarehouseId();
2690 chandransh 812
    case JACKET_NUMBER:
813
      return isSetJacketNumber();
814
    case INVOICE_NUMBER:
815
      return isSetInvoiceNumber();
816
    case ITEM_ID:
817
      return isSetItemId();
818
    case PRODUCT_GROUP:
819
      return isSetProductGroup();
820
    case BRAND:
821
      return isSetBrand();
822
    case MODEL_NUMBER:
823
      return isSetModelNumber();
824
    case MODEL_NAME:
825
      return isSetModelName();
826
    case COLOR:
827
      return isSetColor();
828
    case TOTAL_PRICE:
829
      return isSetTotalPrice();
830
    case TRANSFER_PRICE:
831
      return isSetTransferPrice();
832
    case PROCESSED_STATUS:
833
      return isSetProcessedStatus();
834
    case CREATED_AT:
835
      return isSetCreatedAt();
836
    case PROCESSED_AT:
837
      return isSetProcessedAt();
838
    }
839
    throw new IllegalStateException();
840
  }
841
 
842
  public boolean isSet(int fieldID) {
843
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
844
  }
845
 
846
  @Override
847
  public boolean equals(Object that) {
848
    if (that == null)
849
      return false;
850
    if (that instanceof ReturnOrder)
851
      return this.equals((ReturnOrder)that);
852
    return false;
853
  }
854
 
855
  public boolean equals(ReturnOrder that) {
856
    if (that == null)
857
      return false;
858
 
859
    boolean this_present_orderId = true;
860
    boolean that_present_orderId = true;
861
    if (this_present_orderId || that_present_orderId) {
862
      if (!(this_present_orderId && that_present_orderId))
863
        return false;
864
      if (this.orderId != that.orderId)
865
        return false;
866
    }
867
 
2697 chandransh 868
    boolean this_present_warehouseId = true;
869
    boolean that_present_warehouseId = true;
870
    if (this_present_warehouseId || that_present_warehouseId) {
871
      if (!(this_present_warehouseId && that_present_warehouseId))
872
        return false;
873
      if (this.warehouseId != that.warehouseId)
874
        return false;
875
    }
876
 
2690 chandransh 877
    boolean this_present_jacketNumber = true;
878
    boolean that_present_jacketNumber = true;
879
    if (this_present_jacketNumber || that_present_jacketNumber) {
880
      if (!(this_present_jacketNumber && that_present_jacketNumber))
881
        return false;
882
      if (this.jacketNumber != that.jacketNumber)
883
        return false;
884
    }
885
 
886
    boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
887
    boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
888
    if (this_present_invoiceNumber || that_present_invoiceNumber) {
889
      if (!(this_present_invoiceNumber && that_present_invoiceNumber))
890
        return false;
891
      if (!this.invoiceNumber.equals(that.invoiceNumber))
892
        return false;
893
    }
894
 
895
    boolean this_present_itemId = true;
896
    boolean that_present_itemId = true;
897
    if (this_present_itemId || that_present_itemId) {
898
      if (!(this_present_itemId && that_present_itemId))
899
        return false;
900
      if (this.itemId != that.itemId)
901
        return false;
902
    }
903
 
904
    boolean this_present_productGroup = true && this.isSetProductGroup();
905
    boolean that_present_productGroup = true && that.isSetProductGroup();
906
    if (this_present_productGroup || that_present_productGroup) {
907
      if (!(this_present_productGroup && that_present_productGroup))
908
        return false;
909
      if (!this.productGroup.equals(that.productGroup))
910
        return false;
911
    }
912
 
913
    boolean this_present_brand = true && this.isSetBrand();
914
    boolean that_present_brand = true && that.isSetBrand();
915
    if (this_present_brand || that_present_brand) {
916
      if (!(this_present_brand && that_present_brand))
917
        return false;
918
      if (!this.brand.equals(that.brand))
919
        return false;
920
    }
921
 
922
    boolean this_present_modelNumber = true && this.isSetModelNumber();
923
    boolean that_present_modelNumber = true && that.isSetModelNumber();
924
    if (this_present_modelNumber || that_present_modelNumber) {
925
      if (!(this_present_modelNumber && that_present_modelNumber))
926
        return false;
927
      if (!this.modelNumber.equals(that.modelNumber))
928
        return false;
929
    }
930
 
931
    boolean this_present_modelName = true && this.isSetModelName();
932
    boolean that_present_modelName = true && that.isSetModelName();
933
    if (this_present_modelName || that_present_modelName) {
934
      if (!(this_present_modelName && that_present_modelName))
935
        return false;
936
      if (!this.modelName.equals(that.modelName))
937
        return false;
938
    }
939
 
940
    boolean this_present_color = true && this.isSetColor();
941
    boolean that_present_color = true && that.isSetColor();
942
    if (this_present_color || that_present_color) {
943
      if (!(this_present_color && that_present_color))
944
        return false;
945
      if (!this.color.equals(that.color))
946
        return false;
947
    }
948
 
949
    boolean this_present_totalPrice = true;
950
    boolean that_present_totalPrice = true;
951
    if (this_present_totalPrice || that_present_totalPrice) {
952
      if (!(this_present_totalPrice && that_present_totalPrice))
953
        return false;
954
      if (this.totalPrice != that.totalPrice)
955
        return false;
956
    }
957
 
958
    boolean this_present_transferPrice = true;
959
    boolean that_present_transferPrice = true;
960
    if (this_present_transferPrice || that_present_transferPrice) {
961
      if (!(this_present_transferPrice && that_present_transferPrice))
962
        return false;
963
      if (this.transferPrice != that.transferPrice)
964
        return false;
965
    }
966
 
967
    boolean this_present_processedStatus = true;
968
    boolean that_present_processedStatus = true;
969
    if (this_present_processedStatus || that_present_processedStatus) {
970
      if (!(this_present_processedStatus && that_present_processedStatus))
971
        return false;
972
      if (this.processedStatus != that.processedStatus)
973
        return false;
974
    }
975
 
976
    boolean this_present_createdAt = true;
977
    boolean that_present_createdAt = true;
978
    if (this_present_createdAt || that_present_createdAt) {
979
      if (!(this_present_createdAt && that_present_createdAt))
980
        return false;
981
      if (this.createdAt != that.createdAt)
982
        return false;
983
    }
984
 
985
    boolean this_present_processedAt = true;
986
    boolean that_present_processedAt = true;
987
    if (this_present_processedAt || that_present_processedAt) {
988
      if (!(this_present_processedAt && that_present_processedAt))
989
        return false;
990
      if (this.processedAt != that.processedAt)
991
        return false;
992
    }
993
 
994
    return true;
995
  }
996
 
997
  @Override
998
  public int hashCode() {
999
    return 0;
1000
  }
1001
 
1002
  public int compareTo(ReturnOrder other) {
1003
    if (!getClass().equals(other.getClass())) {
1004
      return getClass().getName().compareTo(other.getClass().getName());
1005
    }
1006
 
1007
    int lastComparison = 0;
1008
    ReturnOrder typedOther = (ReturnOrder)other;
1009
 
1010
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
1011
    if (lastComparison != 0) {
1012
      return lastComparison;
1013
    }
1014
    lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
1015
    if (lastComparison != 0) {
1016
      return lastComparison;
1017
    }
2697 chandransh 1018
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());
1019
    if (lastComparison != 0) {
1020
      return lastComparison;
1021
    }
1022
    lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);
1023
    if (lastComparison != 0) {
1024
      return lastComparison;
1025
    }
2690 chandransh 1026
    lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(isSetJacketNumber());
1027
    if (lastComparison != 0) {
1028
      return lastComparison;
1029
    }
1030
    lastComparison = TBaseHelper.compareTo(jacketNumber, typedOther.jacketNumber);
1031
    if (lastComparison != 0) {
1032
      return lastComparison;
1033
    }
1034
    lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(isSetInvoiceNumber());
1035
    if (lastComparison != 0) {
1036
      return lastComparison;
1037
    }
1038
    lastComparison = TBaseHelper.compareTo(invoiceNumber, typedOther.invoiceNumber);
1039
    if (lastComparison != 0) {
1040
      return lastComparison;
1041
    }
1042
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
1043
    if (lastComparison != 0) {
1044
      return lastComparison;
1045
    }
1046
    lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
1047
    if (lastComparison != 0) {
1048
      return lastComparison;
1049
    }
1050
    lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(isSetProductGroup());
1051
    if (lastComparison != 0) {
1052
      return lastComparison;
1053
    }
1054
    lastComparison = TBaseHelper.compareTo(productGroup, typedOther.productGroup);
1055
    if (lastComparison != 0) {
1056
      return lastComparison;
1057
    }
1058
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(isSetBrand());
1059
    if (lastComparison != 0) {
1060
      return lastComparison;
1061
    }
1062
    lastComparison = TBaseHelper.compareTo(brand, typedOther.brand);
1063
    if (lastComparison != 0) {
1064
      return lastComparison;
1065
    }
1066
    lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(isSetModelNumber());
1067
    if (lastComparison != 0) {
1068
      return lastComparison;
1069
    }
1070
    lastComparison = TBaseHelper.compareTo(modelNumber, typedOther.modelNumber);
1071
    if (lastComparison != 0) {
1072
      return lastComparison;
1073
    }
1074
    lastComparison = Boolean.valueOf(isSetModelName()).compareTo(isSetModelName());
1075
    if (lastComparison != 0) {
1076
      return lastComparison;
1077
    }
1078
    lastComparison = TBaseHelper.compareTo(modelName, typedOther.modelName);
1079
    if (lastComparison != 0) {
1080
      return lastComparison;
1081
    }
1082
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(isSetColor());
1083
    if (lastComparison != 0) {
1084
      return lastComparison;
1085
    }
1086
    lastComparison = TBaseHelper.compareTo(color, typedOther.color);
1087
    if (lastComparison != 0) {
1088
      return lastComparison;
1089
    }
1090
    lastComparison = Boolean.valueOf(isSetTotalPrice()).compareTo(isSetTotalPrice());
1091
    if (lastComparison != 0) {
1092
      return lastComparison;
1093
    }
1094
    lastComparison = TBaseHelper.compareTo(totalPrice, typedOther.totalPrice);
1095
    if (lastComparison != 0) {
1096
      return lastComparison;
1097
    }
1098
    lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(isSetTransferPrice());
1099
    if (lastComparison != 0) {
1100
      return lastComparison;
1101
    }
1102
    lastComparison = TBaseHelper.compareTo(transferPrice, typedOther.transferPrice);
1103
    if (lastComparison != 0) {
1104
      return lastComparison;
1105
    }
1106
    lastComparison = Boolean.valueOf(isSetProcessedStatus()).compareTo(isSetProcessedStatus());
1107
    if (lastComparison != 0) {
1108
      return lastComparison;
1109
    }
1110
    lastComparison = TBaseHelper.compareTo(processedStatus, typedOther.processedStatus);
1111
    if (lastComparison != 0) {
1112
      return lastComparison;
1113
    }
1114
    lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(isSetCreatedAt());
1115
    if (lastComparison != 0) {
1116
      return lastComparison;
1117
    }
1118
    lastComparison = TBaseHelper.compareTo(createdAt, typedOther.createdAt);
1119
    if (lastComparison != 0) {
1120
      return lastComparison;
1121
    }
1122
    lastComparison = Boolean.valueOf(isSetProcessedAt()).compareTo(isSetProcessedAt());
1123
    if (lastComparison != 0) {
1124
      return lastComparison;
1125
    }
1126
    lastComparison = TBaseHelper.compareTo(processedAt, typedOther.processedAt);
1127
    if (lastComparison != 0) {
1128
      return lastComparison;
1129
    }
1130
    return 0;
1131
  }
1132
 
1133
  public void read(TProtocol iprot) throws TException {
1134
    TField field;
1135
    iprot.readStructBegin();
1136
    while (true)
1137
    {
1138
      field = iprot.readFieldBegin();
1139
      if (field.type == TType.STOP) { 
1140
        break;
1141
      }
1142
      _Fields fieldId = _Fields.findByThriftId(field.id);
1143
      if (fieldId == null) {
1144
        TProtocolUtil.skip(iprot, field.type);
1145
      } else {
1146
        switch (fieldId) {
1147
          case ORDER_ID:
1148
            if (field.type == TType.I64) {
1149
              this.orderId = iprot.readI64();
1150
              setOrderIdIsSet(true);
1151
            } else { 
1152
              TProtocolUtil.skip(iprot, field.type);
1153
            }
1154
            break;
2697 chandransh 1155
          case WAREHOUSE_ID:
1156
            if (field.type == TType.I64) {
1157
              this.warehouseId = iprot.readI64();
1158
              setWarehouseIdIsSet(true);
1159
            } else { 
1160
              TProtocolUtil.skip(iprot, field.type);
1161
            }
1162
            break;
2690 chandransh 1163
          case JACKET_NUMBER:
1164
            if (field.type == TType.I64) {
1165
              this.jacketNumber = iprot.readI64();
1166
              setJacketNumberIsSet(true);
1167
            } else { 
1168
              TProtocolUtil.skip(iprot, field.type);
1169
            }
1170
            break;
1171
          case INVOICE_NUMBER:
1172
            if (field.type == TType.STRING) {
1173
              this.invoiceNumber = iprot.readString();
1174
            } else { 
1175
              TProtocolUtil.skip(iprot, field.type);
1176
            }
1177
            break;
1178
          case ITEM_ID:
1179
            if (field.type == TType.I64) {
1180
              this.itemId = iprot.readI64();
1181
              setItemIdIsSet(true);
1182
            } else { 
1183
              TProtocolUtil.skip(iprot, field.type);
1184
            }
1185
            break;
1186
          case PRODUCT_GROUP:
1187
            if (field.type == TType.STRING) {
1188
              this.productGroup = iprot.readString();
1189
            } else { 
1190
              TProtocolUtil.skip(iprot, field.type);
1191
            }
1192
            break;
1193
          case BRAND:
1194
            if (field.type == TType.STRING) {
1195
              this.brand = iprot.readString();
1196
            } else { 
1197
              TProtocolUtil.skip(iprot, field.type);
1198
            }
1199
            break;
1200
          case MODEL_NUMBER:
1201
            if (field.type == TType.STRING) {
1202
              this.modelNumber = iprot.readString();
1203
            } else { 
1204
              TProtocolUtil.skip(iprot, field.type);
1205
            }
1206
            break;
1207
          case MODEL_NAME:
1208
            if (field.type == TType.STRING) {
1209
              this.modelName = iprot.readString();
1210
            } else { 
1211
              TProtocolUtil.skip(iprot, field.type);
1212
            }
1213
            break;
1214
          case COLOR:
1215
            if (field.type == TType.STRING) {
1216
              this.color = iprot.readString();
1217
            } else { 
1218
              TProtocolUtil.skip(iprot, field.type);
1219
            }
1220
            break;
1221
          case TOTAL_PRICE:
1222
            if (field.type == TType.DOUBLE) {
1223
              this.totalPrice = iprot.readDouble();
1224
              setTotalPriceIsSet(true);
1225
            } else { 
1226
              TProtocolUtil.skip(iprot, field.type);
1227
            }
1228
            break;
1229
          case TRANSFER_PRICE:
1230
            if (field.type == TType.DOUBLE) {
1231
              this.transferPrice = iprot.readDouble();
1232
              setTransferPriceIsSet(true);
1233
            } else { 
1234
              TProtocolUtil.skip(iprot, field.type);
1235
            }
1236
            break;
1237
          case PROCESSED_STATUS:
1238
            if (field.type == TType.BOOL) {
1239
              this.processedStatus = iprot.readBool();
1240
              setProcessedStatusIsSet(true);
1241
            } else { 
1242
              TProtocolUtil.skip(iprot, field.type);
1243
            }
1244
            break;
1245
          case CREATED_AT:
1246
            if (field.type == TType.I64) {
1247
              this.createdAt = iprot.readI64();
1248
              setCreatedAtIsSet(true);
1249
            } else { 
1250
              TProtocolUtil.skip(iprot, field.type);
1251
            }
1252
            break;
1253
          case PROCESSED_AT:
1254
            if (field.type == TType.I64) {
1255
              this.processedAt = iprot.readI64();
1256
              setProcessedAtIsSet(true);
1257
            } else { 
1258
              TProtocolUtil.skip(iprot, field.type);
1259
            }
1260
            break;
1261
        }
1262
        iprot.readFieldEnd();
1263
      }
1264
    }
1265
    iprot.readStructEnd();
1266
    validate();
1267
  }
1268
 
1269
  public void write(TProtocol oprot) throws TException {
1270
    validate();
1271
 
1272
    oprot.writeStructBegin(STRUCT_DESC);
1273
    oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
1274
    oprot.writeI64(this.orderId);
1275
    oprot.writeFieldEnd();
2697 chandransh 1276
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
1277
    oprot.writeI64(this.warehouseId);
1278
    oprot.writeFieldEnd();
2690 chandransh 1279
    oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
1280
    oprot.writeI64(this.jacketNumber);
1281
    oprot.writeFieldEnd();
1282
    if (this.invoiceNumber != null) {
1283
      oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
1284
      oprot.writeString(this.invoiceNumber);
1285
      oprot.writeFieldEnd();
1286
    }
1287
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
1288
    oprot.writeI64(this.itemId);
1289
    oprot.writeFieldEnd();
1290
    if (this.productGroup != null) {
1291
      oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
1292
      oprot.writeString(this.productGroup);
1293
      oprot.writeFieldEnd();
1294
    }
1295
    if (this.brand != null) {
1296
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
1297
      oprot.writeString(this.brand);
1298
      oprot.writeFieldEnd();
1299
    }
1300
    if (this.modelNumber != null) {
1301
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
1302
      oprot.writeString(this.modelNumber);
1303
      oprot.writeFieldEnd();
1304
    }
1305
    if (this.modelName != null) {
1306
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
1307
      oprot.writeString(this.modelName);
1308
      oprot.writeFieldEnd();
1309
    }
1310
    if (this.color != null) {
1311
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
1312
      oprot.writeString(this.color);
1313
      oprot.writeFieldEnd();
1314
    }
1315
    oprot.writeFieldBegin(TOTAL_PRICE_FIELD_DESC);
1316
    oprot.writeDouble(this.totalPrice);
1317
    oprot.writeFieldEnd();
1318
    oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
1319
    oprot.writeDouble(this.transferPrice);
1320
    oprot.writeFieldEnd();
1321
    oprot.writeFieldBegin(PROCESSED_STATUS_FIELD_DESC);
1322
    oprot.writeBool(this.processedStatus);
1323
    oprot.writeFieldEnd();
1324
    oprot.writeFieldBegin(CREATED_AT_FIELD_DESC);
1325
    oprot.writeI64(this.createdAt);
1326
    oprot.writeFieldEnd();
1327
    oprot.writeFieldBegin(PROCESSED_AT_FIELD_DESC);
1328
    oprot.writeI64(this.processedAt);
1329
    oprot.writeFieldEnd();
1330
    oprot.writeFieldStop();
1331
    oprot.writeStructEnd();
1332
  }
1333
 
1334
  @Override
1335
  public String toString() {
1336
    StringBuilder sb = new StringBuilder("ReturnOrder(");
1337
    boolean first = true;
1338
 
1339
    sb.append("orderId:");
1340
    sb.append(this.orderId);
1341
    first = false;
1342
    if (!first) sb.append(", ");
2697 chandransh 1343
    sb.append("warehouseId:");
1344
    sb.append(this.warehouseId);
1345
    first = false;
1346
    if (!first) sb.append(", ");
2690 chandransh 1347
    sb.append("jacketNumber:");
1348
    sb.append(this.jacketNumber);
1349
    first = false;
1350
    if (!first) sb.append(", ");
1351
    sb.append("invoiceNumber:");
1352
    if (this.invoiceNumber == null) {
1353
      sb.append("null");
1354
    } else {
1355
      sb.append(this.invoiceNumber);
1356
    }
1357
    first = false;
1358
    if (!first) sb.append(", ");
1359
    sb.append("itemId:");
1360
    sb.append(this.itemId);
1361
    first = false;
1362
    if (!first) sb.append(", ");
1363
    sb.append("productGroup:");
1364
    if (this.productGroup == null) {
1365
      sb.append("null");
1366
    } else {
1367
      sb.append(this.productGroup);
1368
    }
1369
    first = false;
1370
    if (!first) sb.append(", ");
1371
    sb.append("brand:");
1372
    if (this.brand == null) {
1373
      sb.append("null");
1374
    } else {
1375
      sb.append(this.brand);
1376
    }
1377
    first = false;
1378
    if (!first) sb.append(", ");
1379
    sb.append("modelNumber:");
1380
    if (this.modelNumber == null) {
1381
      sb.append("null");
1382
    } else {
1383
      sb.append(this.modelNumber);
1384
    }
1385
    first = false;
1386
    if (!first) sb.append(", ");
1387
    sb.append("modelName:");
1388
    if (this.modelName == null) {
1389
      sb.append("null");
1390
    } else {
1391
      sb.append(this.modelName);
1392
    }
1393
    first = false;
1394
    if (!first) sb.append(", ");
1395
    sb.append("color:");
1396
    if (this.color == null) {
1397
      sb.append("null");
1398
    } else {
1399
      sb.append(this.color);
1400
    }
1401
    first = false;
1402
    if (!first) sb.append(", ");
1403
    sb.append("totalPrice:");
1404
    sb.append(this.totalPrice);
1405
    first = false;
1406
    if (!first) sb.append(", ");
1407
    sb.append("transferPrice:");
1408
    sb.append(this.transferPrice);
1409
    first = false;
1410
    if (!first) sb.append(", ");
1411
    sb.append("processedStatus:");
1412
    sb.append(this.processedStatus);
1413
    first = false;
1414
    if (!first) sb.append(", ");
1415
    sb.append("createdAt:");
1416
    sb.append(this.createdAt);
1417
    first = false;
1418
    if (!first) sb.append(", ");
1419
    sb.append("processedAt:");
1420
    sb.append(this.processedAt);
1421
    first = false;
1422
    sb.append(")");
1423
    return sb.toString();
1424
  }
1425
 
1426
  public void validate() throws TException {
1427
    // check for required fields
1428
  }
1429
 
1430
}
1431