Subversion Repositories SmartDukaan

Rev

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

Rev 7190 Rev 7293
Line 90... Line 90...
90
  private static final org.apache.thrift.protocol.TField INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("insurer", org.apache.thrift.protocol.TType.I64, (short)65);
90
  private static final org.apache.thrift.protocol.TField INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("insurer", org.apache.thrift.protocol.TType.I64, (short)65);
91
  private static final org.apache.thrift.protocol.TField INSURANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("insuranceAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)66);
91
  private static final org.apache.thrift.protocol.TField INSURANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("insuranceAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)66);
92
  private static final org.apache.thrift.protocol.TField DOB_FIELD_DESC = new org.apache.thrift.protocol.TField("dob", org.apache.thrift.protocol.TType.STRING, (short)67);
92
  private static final org.apache.thrift.protocol.TField DOB_FIELD_DESC = new org.apache.thrift.protocol.TField("dob", org.apache.thrift.protocol.TType.STRING, (short)67);
93
  private static final org.apache.thrift.protocol.TField GUARDIAN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("guardianName", org.apache.thrift.protocol.TType.STRING, (short)68);
93
  private static final org.apache.thrift.protocol.TField GUARDIAN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("guardianName", org.apache.thrift.protocol.TType.STRING, (short)68);
94
  private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.I64, (short)69);
94
  private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.I64, (short)69);
-
 
95
  private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)70);
-
 
96
  private static final org.apache.thrift.protocol.TField ADVANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("advanceAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)71);
-
 
97
  private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)72);
95
 
98
 
96
  private long id; // required
99
  private long id; // required
97
  private long warehouse_id; // required
100
  private long warehouse_id; // required
98
  private List<LineItem> lineitems; // required
101
  private List<LineItem> lineitems; // required
99
  private long logistics_provider_id; // required
102
  private long logistics_provider_id; // required
Line 160... Line 163...
160
  private long insurer; // required
163
  private long insurer; // required
161
  private double insuranceAmount; // required
164
  private double insuranceAmount; // required
162
  private String dob; // required
165
  private String dob; // required
163
  private String guardianName; // required
166
  private String guardianName; // required
164
  private long freebieItemId; // required
167
  private long freebieItemId; // required
-
 
168
  private long source; // required
-
 
169
  private double advanceAmount; // required
-
 
170
  private long storeId; // required
165
 
171
 
166
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
172
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
167
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
173
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
168
    ID((short)1, "id"),
174
    ID((short)1, "id"),
169
    WAREHOUSE_ID((short)2, "warehouse_id"),
175
    WAREHOUSE_ID((short)2, "warehouse_id"),
Line 269... Line 275...
269
    COURIER_DELIVERY_TIME((short)64, "courier_delivery_time"),
275
    COURIER_DELIVERY_TIME((short)64, "courier_delivery_time"),
270
    INSURER((short)65, "insurer"),
276
    INSURER((short)65, "insurer"),
271
    INSURANCE_AMOUNT((short)66, "insuranceAmount"),
277
    INSURANCE_AMOUNT((short)66, "insuranceAmount"),
272
    DOB((short)67, "dob"),
278
    DOB((short)67, "dob"),
273
    GUARDIAN_NAME((short)68, "guardianName"),
279
    GUARDIAN_NAME((short)68, "guardianName"),
274
    FREEBIE_ITEM_ID((short)69, "freebieItemId");
280
    FREEBIE_ITEM_ID((short)69, "freebieItemId"),
-
 
281
    SOURCE((short)70, "source"),
-
 
282
    ADVANCE_AMOUNT((short)71, "advanceAmount"),
-
 
283
    STORE_ID((short)72, "storeId");
275
 
284
 
276
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
285
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
277
 
286
 
278
    static {
287
    static {
279
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
288
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 422... Line 431...
422
          return DOB;
431
          return DOB;
423
        case 68: // GUARDIAN_NAME
432
        case 68: // GUARDIAN_NAME
424
          return GUARDIAN_NAME;
433
          return GUARDIAN_NAME;
425
        case 69: // FREEBIE_ITEM_ID
434
        case 69: // FREEBIE_ITEM_ID
426
          return FREEBIE_ITEM_ID;
435
          return FREEBIE_ITEM_ID;
-
 
436
        case 70: // SOURCE
-
 
437
          return SOURCE;
-
 
438
        case 71: // ADVANCE_AMOUNT
-
 
439
          return ADVANCE_AMOUNT;
-
 
440
        case 72: // STORE_ID
-
 
441
          return STORE_ID;
427
        default:
442
        default:
428
          return null;
443
          return null;
429
      }
444
      }
430
    }
445
    }
431
 
446
 
Line 506... Line 521...
506
  private static final int __OTG_ISSET_ID = 39;
521
  private static final int __OTG_ISSET_ID = 39;
507
  private static final int __COURIER_DELIVERY_TIME_ISSET_ID = 40;
522
  private static final int __COURIER_DELIVERY_TIME_ISSET_ID = 40;
508
  private static final int __INSURER_ISSET_ID = 41;
523
  private static final int __INSURER_ISSET_ID = 41;
509
  private static final int __INSURANCEAMOUNT_ISSET_ID = 42;
524
  private static final int __INSURANCEAMOUNT_ISSET_ID = 42;
510
  private static final int __FREEBIEITEMID_ISSET_ID = 43;
525
  private static final int __FREEBIEITEMID_ISSET_ID = 43;
-
 
526
  private static final int __SOURCE_ISSET_ID = 44;
-
 
527
  private static final int __ADVANCEAMOUNT_ISSET_ID = 45;
-
 
528
  private static final int __STOREID_ISSET_ID = 46;
511
  private BitSet __isset_bit_vector = new BitSet(44);
529
  private BitSet __isset_bit_vector = new BitSet(47);
512
 
530
 
513
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
531
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
514
  static {
532
  static {
515
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
533
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
516
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
534
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 650... Line 668...
650
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
668
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
651
    tmpMap.put(_Fields.GUARDIAN_NAME, new org.apache.thrift.meta_data.FieldMetaData("guardianName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
669
    tmpMap.put(_Fields.GUARDIAN_NAME, new org.apache.thrift.meta_data.FieldMetaData("guardianName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
652
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
670
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
653
    tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
671
    tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
654
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
672
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
673
    tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
674
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
675
    tmpMap.put(_Fields.ADVANCE_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("advanceAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
676
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
677
    tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
678
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
655
    metaDataMap = Collections.unmodifiableMap(tmpMap);
679
    metaDataMap = Collections.unmodifiableMap(tmpMap);
656
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
680
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
657
  }
681
  }
658
 
682
 
659
  public Order() {
683
  public Order() {
Line 719... Line 743...
719
    long courier_delivery_time,
743
    long courier_delivery_time,
720
    long insurer,
744
    long insurer,
721
    double insuranceAmount,
745
    double insuranceAmount,
722
    String dob,
746
    String dob,
723
    String guardianName,
747
    String guardianName,
724
    long freebieItemId)
748
    long freebieItemId,
-
 
749
    long source,
-
 
750
    double advanceAmount,
-
 
751
    long storeId)
725
  {
752
  {
726
    this();
753
    this();
727
    this.id = id;
754
    this.id = id;
728
    setIdIsSet(true);
755
    setIdIsSet(true);
729
    this.warehouse_id = warehouse_id;
756
    this.warehouse_id = warehouse_id;
Line 821... Line 848...
821
    setInsuranceAmountIsSet(true);
848
    setInsuranceAmountIsSet(true);
822
    this.dob = dob;
849
    this.dob = dob;
823
    this.guardianName = guardianName;
850
    this.guardianName = guardianName;
824
    this.freebieItemId = freebieItemId;
851
    this.freebieItemId = freebieItemId;
825
    setFreebieItemIdIsSet(true);
852
    setFreebieItemIdIsSet(true);
-
 
853
    this.source = source;
-
 
854
    setSourceIsSet(true);
-
 
855
    this.advanceAmount = advanceAmount;
-
 
856
    setAdvanceAmountIsSet(true);
-
 
857
    this.storeId = storeId;
-
 
858
    setStoreIdIsSet(true);
826
  }
859
  }
827
 
860
 
828
  /**
861
  /**
829
   * Performs a deep copy on <i>other</i>.
862
   * Performs a deep copy on <i>other</i>.
830
   */
863
   */
Line 952... Line 985...
952
    }
985
    }
953
    if (other.isSetGuardianName()) {
986
    if (other.isSetGuardianName()) {
954
      this.guardianName = other.guardianName;
987
      this.guardianName = other.guardianName;
955
    }
988
    }
956
    this.freebieItemId = other.freebieItemId;
989
    this.freebieItemId = other.freebieItemId;
-
 
990
    this.source = other.source;
-
 
991
    this.advanceAmount = other.advanceAmount;
-
 
992
    this.storeId = other.storeId;
957
  }
993
  }
958
 
994
 
959
  public Order deepCopy() {
995
  public Order deepCopy() {
960
    return new Order(this);
996
    return new Order(this);
961
  }
997
  }
Line 1073... Line 1109...
1073
    this.insuranceAmount = 0.0;
1109
    this.insuranceAmount = 0.0;
1074
    this.dob = null;
1110
    this.dob = null;
1075
    this.guardianName = null;
1111
    this.guardianName = null;
1076
    setFreebieItemIdIsSet(false);
1112
    setFreebieItemIdIsSet(false);
1077
    this.freebieItemId = 0;
1113
    this.freebieItemId = 0;
-
 
1114
    setSourceIsSet(false);
-
 
1115
    this.source = 0;
-
 
1116
    setAdvanceAmountIsSet(false);
-
 
1117
    this.advanceAmount = 0.0;
-
 
1118
    setStoreIdIsSet(false);
-
 
1119
    this.storeId = 0;
1078
  }
1120
  }
1079
 
1121
 
1080
  public long getId() {
1122
  public long getId() {
1081
    return this.id;
1123
    return this.id;
1082
  }
1124
  }
Line 2709... Line 2751...
2709
 
2751
 
2710
  public void setFreebieItemIdIsSet(boolean value) {
2752
  public void setFreebieItemIdIsSet(boolean value) {
2711
    __isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
2753
    __isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
2712
  }
2754
  }
2713
 
2755
 
-
 
2756
  public long getSource() {
-
 
2757
    return this.source;
-
 
2758
  }
-
 
2759
 
-
 
2760
  public void setSource(long source) {
-
 
2761
    this.source = source;
-
 
2762
    setSourceIsSet(true);
-
 
2763
  }
-
 
2764
 
-
 
2765
  public void unsetSource() {
-
 
2766
    __isset_bit_vector.clear(__SOURCE_ISSET_ID);
-
 
2767
  }
-
 
2768
 
-
 
2769
  /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
2770
  public boolean isSetSource() {
-
 
2771
    return __isset_bit_vector.get(__SOURCE_ISSET_ID);
-
 
2772
  }
-
 
2773
 
-
 
2774
  public void setSourceIsSet(boolean value) {
-
 
2775
    __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
-
 
2776
  }
-
 
2777
 
-
 
2778
  public double getAdvanceAmount() {
-
 
2779
    return this.advanceAmount;
-
 
2780
  }
-
 
2781
 
-
 
2782
  public void setAdvanceAmount(double advanceAmount) {
-
 
2783
    this.advanceAmount = advanceAmount;
-
 
2784
    setAdvanceAmountIsSet(true);
-
 
2785
  }
-
 
2786
 
-
 
2787
  public void unsetAdvanceAmount() {
-
 
2788
    __isset_bit_vector.clear(__ADVANCEAMOUNT_ISSET_ID);
-
 
2789
  }
-
 
2790
 
-
 
2791
  /** Returns true if field advanceAmount is set (has been assigned a value) and false otherwise */
-
 
2792
  public boolean isSetAdvanceAmount() {
-
 
2793
    return __isset_bit_vector.get(__ADVANCEAMOUNT_ISSET_ID);
-
 
2794
  }
-
 
2795
 
-
 
2796
  public void setAdvanceAmountIsSet(boolean value) {
-
 
2797
    __isset_bit_vector.set(__ADVANCEAMOUNT_ISSET_ID, value);
-
 
2798
  }
-
 
2799
 
-
 
2800
  public long getStoreId() {
-
 
2801
    return this.storeId;
-
 
2802
  }
-
 
2803
 
-
 
2804
  public void setStoreId(long storeId) {
-
 
2805
    this.storeId = storeId;
-
 
2806
    setStoreIdIsSet(true);
-
 
2807
  }
-
 
2808
 
-
 
2809
  public void unsetStoreId() {
-
 
2810
    __isset_bit_vector.clear(__STOREID_ISSET_ID);
-
 
2811
  }
-
 
2812
 
-
 
2813
  /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
-
 
2814
  public boolean isSetStoreId() {
-
 
2815
    return __isset_bit_vector.get(__STOREID_ISSET_ID);
-
 
2816
  }
-
 
2817
 
-
 
2818
  public void setStoreIdIsSet(boolean value) {
-
 
2819
    __isset_bit_vector.set(__STOREID_ISSET_ID, value);
-
 
2820
  }
-
 
2821
 
2714
  public void setFieldValue(_Fields field, Object value) {
2822
  public void setFieldValue(_Fields field, Object value) {
2715
    switch (field) {
2823
    switch (field) {
2716
    case ID:
2824
    case ID:
2717
      if (value == null) {
2825
      if (value == null) {
2718
        unsetId();
2826
        unsetId();
Line 3263... Line 3371...
3263
      } else {
3371
      } else {
3264
        setFreebieItemId((Long)value);
3372
        setFreebieItemId((Long)value);
3265
      }
3373
      }
3266
      break;
3374
      break;
3267
 
3375
 
-
 
3376
    case SOURCE:
-
 
3377
      if (value == null) {
-
 
3378
        unsetSource();
-
 
3379
      } else {
-
 
3380
        setSource((Long)value);
-
 
3381
      }
-
 
3382
      break;
-
 
3383
 
-
 
3384
    case ADVANCE_AMOUNT:
-
 
3385
      if (value == null) {
-
 
3386
        unsetAdvanceAmount();
-
 
3387
      } else {
-
 
3388
        setAdvanceAmount((Double)value);
-
 
3389
      }
-
 
3390
      break;
-
 
3391
 
-
 
3392
    case STORE_ID:
-
 
3393
      if (value == null) {
-
 
3394
        unsetStoreId();
-
 
3395
      } else {
-
 
3396
        setStoreId((Long)value);
-
 
3397
      }
-
 
3398
      break;
-
 
3399
 
3268
    }
3400
    }
3269
  }
3401
  }
3270
 
3402
 
3271
  public Object getFieldValue(_Fields field) {
3403
  public Object getFieldValue(_Fields field) {
3272
    switch (field) {
3404
    switch (field) {
Line 3475... Line 3607...
3475
      return getGuardianName();
3607
      return getGuardianName();
3476
 
3608
 
3477
    case FREEBIE_ITEM_ID:
3609
    case FREEBIE_ITEM_ID:
3478
      return Long.valueOf(getFreebieItemId());
3610
      return Long.valueOf(getFreebieItemId());
3479
 
3611
 
-
 
3612
    case SOURCE:
-
 
3613
      return Long.valueOf(getSource());
-
 
3614
 
-
 
3615
    case ADVANCE_AMOUNT:
-
 
3616
      return Double.valueOf(getAdvanceAmount());
-
 
3617
 
-
 
3618
    case STORE_ID:
-
 
3619
      return Long.valueOf(getStoreId());
-
 
3620
 
3480
    }
3621
    }
3481
    throw new IllegalStateException();
3622
    throw new IllegalStateException();
3482
  }
3623
  }
3483
 
3624
 
3484
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3625
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 3624... Line 3765...
3624
      return isSetDob();
3765
      return isSetDob();
3625
    case GUARDIAN_NAME:
3766
    case GUARDIAN_NAME:
3626
      return isSetGuardianName();
3767
      return isSetGuardianName();
3627
    case FREEBIE_ITEM_ID:
3768
    case FREEBIE_ITEM_ID:
3628
      return isSetFreebieItemId();
3769
      return isSetFreebieItemId();
-
 
3770
    case SOURCE:
-
 
3771
      return isSetSource();
-
 
3772
    case ADVANCE_AMOUNT:
-
 
3773
      return isSetAdvanceAmount();
-
 
3774
    case STORE_ID:
-
 
3775
      return isSetStoreId();
3629
    }
3776
    }
3630
    throw new IllegalStateException();
3777
    throw new IllegalStateException();
3631
  }
3778
  }
3632
 
3779
 
3633
  @Override
3780
  @Override
Line 4262... Line 4409...
4262
        return false;
4409
        return false;
4263
      if (this.freebieItemId != that.freebieItemId)
4410
      if (this.freebieItemId != that.freebieItemId)
4264
        return false;
4411
        return false;
4265
    }
4412
    }
4266
 
4413
 
-
 
4414
    boolean this_present_source = true;
-
 
4415
    boolean that_present_source = true;
-
 
4416
    if (this_present_source || that_present_source) {
-
 
4417
      if (!(this_present_source && that_present_source))
-
 
4418
        return false;
-
 
4419
      if (this.source != that.source)
-
 
4420
        return false;
-
 
4421
    }
-
 
4422
 
-
 
4423
    boolean this_present_advanceAmount = true;
-
 
4424
    boolean that_present_advanceAmount = true;
-
 
4425
    if (this_present_advanceAmount || that_present_advanceAmount) {
-
 
4426
      if (!(this_present_advanceAmount && that_present_advanceAmount))
-
 
4427
        return false;
-
 
4428
      if (this.advanceAmount != that.advanceAmount)
-
 
4429
        return false;
-
 
4430
    }
-
 
4431
 
-
 
4432
    boolean this_present_storeId = true;
-
 
4433
    boolean that_present_storeId = true;
-
 
4434
    if (this_present_storeId || that_present_storeId) {
-
 
4435
      if (!(this_present_storeId && that_present_storeId))
-
 
4436
        return false;
-
 
4437
      if (this.storeId != that.storeId)
-
 
4438
        return false;
-
 
4439
    }
-
 
4440
 
4267
    return true;
4441
    return true;
4268
  }
4442
  }
4269
 
4443
 
4270
  @Override
4444
  @Override
4271
  public int hashCode() {
4445
  public int hashCode() {
Line 4968... Line 5142...
4968
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
5142
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
4969
      if (lastComparison != 0) {
5143
      if (lastComparison != 0) {
4970
        return lastComparison;
5144
        return lastComparison;
4971
      }
5145
      }
4972
    }
5146
    }
-
 
5147
    lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
5148
    if (lastComparison != 0) {
-
 
5149
      return lastComparison;
-
 
5150
    }
-
 
5151
    if (isSetSource()) {
-
 
5152
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
5153
      if (lastComparison != 0) {
-
 
5154
        return lastComparison;
-
 
5155
      }
-
 
5156
    }
-
 
5157
    lastComparison = Boolean.valueOf(isSetAdvanceAmount()).compareTo(typedOther.isSetAdvanceAmount());
-
 
5158
    if (lastComparison != 0) {
-
 
5159
      return lastComparison;
-
 
5160
    }
-
 
5161
    if (isSetAdvanceAmount()) {
-
 
5162
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.advanceAmount, typedOther.advanceAmount);
-
 
5163
      if (lastComparison != 0) {
-
 
5164
        return lastComparison;
-
 
5165
      }
-
 
5166
    }
-
 
5167
    lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
-
 
5168
    if (lastComparison != 0) {
-
 
5169
      return lastComparison;
-
 
5170
    }
-
 
5171
    if (isSetStoreId()) {
-
 
5172
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
-
 
5173
      if (lastComparison != 0) {
-
 
5174
        return lastComparison;
-
 
5175
      }
-
 
5176
    }
4973
    return 0;
5177
    return 0;
4974
  }
5178
  }
4975
 
5179
 
4976
  public _Fields fieldForId(int fieldId) {
5180
  public _Fields fieldForId(int fieldId) {
4977
    return _Fields.findByThriftId(fieldId);
5181
    return _Fields.findByThriftId(fieldId);
Line 5523... Line 5727...
5523
            setFreebieItemIdIsSet(true);
5727
            setFreebieItemIdIsSet(true);
5524
          } else { 
5728
          } else { 
5525
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5729
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5526
          }
5730
          }
5527
          break;
5731
          break;
-
 
5732
        case 70: // SOURCE
-
 
5733
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
5734
            this.source = iprot.readI64();
-
 
5735
            setSourceIsSet(true);
-
 
5736
          } else { 
-
 
5737
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5738
          }
-
 
5739
          break;
-
 
5740
        case 71: // ADVANCE_AMOUNT
-
 
5741
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
5742
            this.advanceAmount = iprot.readDouble();
-
 
5743
            setAdvanceAmountIsSet(true);
-
 
5744
          } else { 
-
 
5745
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5746
          }
-
 
5747
          break;
-
 
5748
        case 72: // STORE_ID
-
 
5749
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
5750
            this.storeId = iprot.readI64();
-
 
5751
            setStoreIdIsSet(true);
-
 
5752
          } else { 
-
 
5753
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5754
          }
-
 
5755
          break;
5528
        default:
5756
        default:
5529
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5757
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5530
      }
5758
      }
5531
      iprot.readFieldEnd();
5759
      iprot.readFieldEnd();
5532
    }
5760
    }
Line 5814... Line 6042...
5814
      oprot.writeFieldEnd();
6042
      oprot.writeFieldEnd();
5815
    }
6043
    }
5816
    oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
6044
    oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
5817
    oprot.writeI64(this.freebieItemId);
6045
    oprot.writeI64(this.freebieItemId);
5818
    oprot.writeFieldEnd();
6046
    oprot.writeFieldEnd();
-
 
6047
    oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
6048
    oprot.writeI64(this.source);
-
 
6049
    oprot.writeFieldEnd();
-
 
6050
    oprot.writeFieldBegin(ADVANCE_AMOUNT_FIELD_DESC);
-
 
6051
    oprot.writeDouble(this.advanceAmount);
-
 
6052
    oprot.writeFieldEnd();
-
 
6053
    oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
-
 
6054
    oprot.writeI64(this.storeId);
-
 
6055
    oprot.writeFieldEnd();
5819
    oprot.writeFieldStop();
6056
    oprot.writeFieldStop();
5820
    oprot.writeStructEnd();
6057
    oprot.writeStructEnd();
5821
  }
6058
  }
5822
 
6059
 
5823
  @Override
6060
  @Override
Line 6212... Line 6449...
6212
    first = false;
6449
    first = false;
6213
    if (!first) sb.append(", ");
6450
    if (!first) sb.append(", ");
6214
    sb.append("freebieItemId:");
6451
    sb.append("freebieItemId:");
6215
    sb.append(this.freebieItemId);
6452
    sb.append(this.freebieItemId);
6216
    first = false;
6453
    first = false;
-
 
6454
    if (!first) sb.append(", ");
-
 
6455
    sb.append("source:");
-
 
6456
    sb.append(this.source);
-
 
6457
    first = false;
-
 
6458
    if (!first) sb.append(", ");
-
 
6459
    sb.append("advanceAmount:");
-
 
6460
    sb.append(this.advanceAmount);
-
 
6461
    first = false;
-
 
6462
    if (!first) sb.append(", ");
-
 
6463
    sb.append("storeId:");
-
 
6464
    sb.append(this.storeId);
-
 
6465
    first = false;
6217
    sb.append(")");
6466
    sb.append(")");
6218
    return sb.toString();
6467
    return sb.toString();
6219
  }
6468
  }
6220
 
6469
 
6221
  public void validate() throws org.apache.thrift.TException {
6470
  public void validate() throws org.apache.thrift.TException {