Subversion Repositories SmartDukaan

Rev

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

Rev 14764 Rev 15903
Line 33... Line 33...
33
  private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("source_id", org.apache.thrift.protocol.TType.I64, (short)5);
33
  private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("source_id", org.apache.thrift.protocol.TType.I64, (short)5);
34
  private static final org.apache.thrift.protocol.TField SOURCE_PRODUCT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_product_name", org.apache.thrift.protocol.TType.STRING, (short)6);
34
  private static final org.apache.thrift.protocol.TField SOURCE_PRODUCT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_product_name", org.apache.thrift.protocol.TType.STRING, (short)6);
35
  private static final org.apache.thrift.protocol.TField THUMBNAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("thumbnail", org.apache.thrift.protocol.TType.STRING, (short)7);
35
  private static final org.apache.thrift.protocol.TField THUMBNAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("thumbnail", org.apache.thrift.protocol.TType.STRING, (short)7);
36
  private static final org.apache.thrift.protocol.TField CASH_BACK_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("cash_back_type", org.apache.thrift.protocol.TType.I64, (short)8);
36
  private static final org.apache.thrift.protocol.TField CASH_BACK_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("cash_back_type", org.apache.thrift.protocol.TType.I64, (short)8);
37
  private static final org.apache.thrift.protocol.TField CASH_BACK_FIELD_DESC = new org.apache.thrift.protocol.TField("cash_back", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
37
  private static final org.apache.thrift.protocol.TField CASH_BACK_FIELD_DESC = new org.apache.thrift.protocol.TField("cash_back", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
-
 
38
  private static final org.apache.thrift.protocol.TField COUPON_FIELD_DESC = new org.apache.thrift.protocol.TField("coupon", org.apache.thrift.protocol.TType.STRING, (short)10);
-
 
39
  private static final org.apache.thrift.protocol.TField COD_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("codAvailable", org.apache.thrift.protocol.TType.BOOL, (short)11);
38
 
40
 
39
  private long _id; // required
41
  private long _id; // required
40
  private double available_price; // required
42
  private double available_price; // required
41
  private String marketPlaceUrl; // required
43
  private String marketPlaceUrl; // required
42
  private long in_stock; // required
44
  private long in_stock; // required
43
  private long source_id; // required
45
  private long source_id; // required
44
  private String source_product_name; // required
46
  private String source_product_name; // required
45
  private String thumbnail; // required
47
  private String thumbnail; // required
46
  private long cash_back_type; // required
48
  private long cash_back_type; // required
47
  private double cash_back; // required
49
  private double cash_back; // required
-
 
50
  private String coupon; // required
-
 
51
  private boolean codAvailable; // required
48
 
52
 
49
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51
    _ID((short)1, "_id"),
55
    _ID((short)1, "_id"),
52
    AVAILABLE_PRICE((short)2, "available_price"),
56
    AVAILABLE_PRICE((short)2, "available_price"),
Line 54... Line 58...
54
    IN_STOCK((short)4, "in_stock"),
58
    IN_STOCK((short)4, "in_stock"),
55
    SOURCE_ID((short)5, "source_id"),
59
    SOURCE_ID((short)5, "source_id"),
56
    SOURCE_PRODUCT_NAME((short)6, "source_product_name"),
60
    SOURCE_PRODUCT_NAME((short)6, "source_product_name"),
57
    THUMBNAIL((short)7, "thumbnail"),
61
    THUMBNAIL((short)7, "thumbnail"),
58
    CASH_BACK_TYPE((short)8, "cash_back_type"),
62
    CASH_BACK_TYPE((short)8, "cash_back_type"),
59
    CASH_BACK((short)9, "cash_back");
63
    CASH_BACK((short)9, "cash_back"),
-
 
64
    COUPON((short)10, "coupon"),
-
 
65
    COD_AVAILABLE((short)11, "codAvailable");
60
 
66
 
61
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
67
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
62
 
68
 
63
    static {
69
    static {
64
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
70
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 87... Line 93...
87
          return THUMBNAIL;
93
          return THUMBNAIL;
88
        case 8: // CASH_BACK_TYPE
94
        case 8: // CASH_BACK_TYPE
89
          return CASH_BACK_TYPE;
95
          return CASH_BACK_TYPE;
90
        case 9: // CASH_BACK
96
        case 9: // CASH_BACK
91
          return CASH_BACK;
97
          return CASH_BACK;
-
 
98
        case 10: // COUPON
-
 
99
          return COUPON;
-
 
100
        case 11: // COD_AVAILABLE
-
 
101
          return COD_AVAILABLE;
92
        default:
102
        default:
93
          return null;
103
          return null;
94
      }
104
      }
95
    }
105
    }
96
 
106
 
Line 133... Line 143...
133
  private static final int __AVAILABLE_PRICE_ISSET_ID = 1;
143
  private static final int __AVAILABLE_PRICE_ISSET_ID = 1;
134
  private static final int __IN_STOCK_ISSET_ID = 2;
144
  private static final int __IN_STOCK_ISSET_ID = 2;
135
  private static final int __SOURCE_ID_ISSET_ID = 3;
145
  private static final int __SOURCE_ID_ISSET_ID = 3;
136
  private static final int __CASH_BACK_TYPE_ISSET_ID = 4;
146
  private static final int __CASH_BACK_TYPE_ISSET_ID = 4;
137
  private static final int __CASH_BACK_ISSET_ID = 5;
147
  private static final int __CASH_BACK_ISSET_ID = 5;
-
 
148
  private static final int __CODAVAILABLE_ISSET_ID = 6;
138
  private BitSet __isset_bit_vector = new BitSet(6);
149
  private BitSet __isset_bit_vector = new BitSet(7);
139
 
150
 
140
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
151
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
141
  static {
152
  static {
142
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
153
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
143
    tmpMap.put(_Fields._ID, new org.apache.thrift.meta_data.FieldMetaData("_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
154
    tmpMap.put(_Fields._ID, new org.apache.thrift.meta_data.FieldMetaData("_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 156... Line 167...
156
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
157
    tmpMap.put(_Fields.CASH_BACK_TYPE, new org.apache.thrift.meta_data.FieldMetaData("cash_back_type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
    tmpMap.put(_Fields.CASH_BACK_TYPE, new org.apache.thrift.meta_data.FieldMetaData("cash_back_type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
159
    tmpMap.put(_Fields.CASH_BACK, new org.apache.thrift.meta_data.FieldMetaData("cash_back", org.apache.thrift.TFieldRequirementType.DEFAULT, 
170
    tmpMap.put(_Fields.CASH_BACK, new org.apache.thrift.meta_data.FieldMetaData("cash_back", org.apache.thrift.TFieldRequirementType.DEFAULT, 
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
172
    tmpMap.put(_Fields.COUPON, new org.apache.thrift.meta_data.FieldMetaData("coupon", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
173
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
174
    tmpMap.put(_Fields.COD_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("codAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
175
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
161
    metaDataMap = Collections.unmodifiableMap(tmpMap);
176
    metaDataMap = Collections.unmodifiableMap(tmpMap);
162
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LivePricing.class, metaDataMap);
177
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LivePricing.class, metaDataMap);
163
  }
178
  }
164
 
179
 
165
  public LivePricing() {
180
  public LivePricing() {
Line 172... Line 187...
172
    long in_stock,
187
    long in_stock,
173
    long source_id,
188
    long source_id,
174
    String source_product_name,
189
    String source_product_name,
175
    String thumbnail,
190
    String thumbnail,
176
    long cash_back_type,
191
    long cash_back_type,
177
    double cash_back)
192
    double cash_back,
-
 
193
    String coupon,
-
 
194
    boolean codAvailable)
178
  {
195
  {
179
    this();
196
    this();
180
    this._id = _id;
197
    this._id = _id;
181
    set_idIsSet(true);
198
    set_idIsSet(true);
182
    this.available_price = available_price;
199
    this.available_price = available_price;
Line 190... Line 207...
190
    this.thumbnail = thumbnail;
207
    this.thumbnail = thumbnail;
191
    this.cash_back_type = cash_back_type;
208
    this.cash_back_type = cash_back_type;
192
    setCash_back_typeIsSet(true);
209
    setCash_back_typeIsSet(true);
193
    this.cash_back = cash_back;
210
    this.cash_back = cash_back;
194
    setCash_backIsSet(true);
211
    setCash_backIsSet(true);
-
 
212
    this.coupon = coupon;
-
 
213
    this.codAvailable = codAvailable;
-
 
214
    setCodAvailableIsSet(true);
195
  }
215
  }
196
 
216
 
197
  /**
217
  /**
198
   * Performs a deep copy on <i>other</i>.
218
   * Performs a deep copy on <i>other</i>.
199
   */
219
   */
Line 213... Line 233...
213
    if (other.isSetThumbnail()) {
233
    if (other.isSetThumbnail()) {
214
      this.thumbnail = other.thumbnail;
234
      this.thumbnail = other.thumbnail;
215
    }
235
    }
216
    this.cash_back_type = other.cash_back_type;
236
    this.cash_back_type = other.cash_back_type;
217
    this.cash_back = other.cash_back;
237
    this.cash_back = other.cash_back;
-
 
238
    if (other.isSetCoupon()) {
-
 
239
      this.coupon = other.coupon;
-
 
240
    }
-
 
241
    this.codAvailable = other.codAvailable;
218
  }
242
  }
219
 
243
 
220
  public LivePricing deepCopy() {
244
  public LivePricing deepCopy() {
221
    return new LivePricing(this);
245
    return new LivePricing(this);
222
  }
246
  }
Line 236... Line 260...
236
    this.thumbnail = null;
260
    this.thumbnail = null;
237
    setCash_back_typeIsSet(false);
261
    setCash_back_typeIsSet(false);
238
    this.cash_back_type = 0;
262
    this.cash_back_type = 0;
239
    setCash_backIsSet(false);
263
    setCash_backIsSet(false);
240
    this.cash_back = 0.0;
264
    this.cash_back = 0.0;
-
 
265
    this.coupon = null;
-
 
266
    setCodAvailableIsSet(false);
-
 
267
    this.codAvailable = false;
241
  }
268
  }
242
 
269
 
243
  public long get_id() {
270
  public long get_id() {
244
    return this._id;
271
    return this._id;
245
  }
272
  }
Line 439... Line 466...
439
 
466
 
440
  public void setCash_backIsSet(boolean value) {
467
  public void setCash_backIsSet(boolean value) {
441
    __isset_bit_vector.set(__CASH_BACK_ISSET_ID, value);
468
    __isset_bit_vector.set(__CASH_BACK_ISSET_ID, value);
442
  }
469
  }
443
 
470
 
-
 
471
  public String getCoupon() {
-
 
472
    return this.coupon;
-
 
473
  }
-
 
474
 
-
 
475
  public void setCoupon(String coupon) {
-
 
476
    this.coupon = coupon;
-
 
477
  }
-
 
478
 
-
 
479
  public void unsetCoupon() {
-
 
480
    this.coupon = null;
-
 
481
  }
-
 
482
 
-
 
483
  /** Returns true if field coupon is set (has been assigned a value) and false otherwise */
-
 
484
  public boolean isSetCoupon() {
-
 
485
    return this.coupon != null;
-
 
486
  }
-
 
487
 
-
 
488
  public void setCouponIsSet(boolean value) {
-
 
489
    if (!value) {
-
 
490
      this.coupon = null;
-
 
491
    }
-
 
492
  }
-
 
493
 
-
 
494
  public boolean isCodAvailable() {
-
 
495
    return this.codAvailable;
-
 
496
  }
-
 
497
 
-
 
498
  public void setCodAvailable(boolean codAvailable) {
-
 
499
    this.codAvailable = codAvailable;
-
 
500
    setCodAvailableIsSet(true);
-
 
501
  }
-
 
502
 
-
 
503
  public void unsetCodAvailable() {
-
 
504
    __isset_bit_vector.clear(__CODAVAILABLE_ISSET_ID);
-
 
505
  }
-
 
506
 
-
 
507
  /** Returns true if field codAvailable is set (has been assigned a value) and false otherwise */
-
 
508
  public boolean isSetCodAvailable() {
-
 
509
    return __isset_bit_vector.get(__CODAVAILABLE_ISSET_ID);
-
 
510
  }
-
 
511
 
-
 
512
  public void setCodAvailableIsSet(boolean value) {
-
 
513
    __isset_bit_vector.set(__CODAVAILABLE_ISSET_ID, value);
-
 
514
  }
-
 
515
 
444
  public void setFieldValue(_Fields field, Object value) {
516
  public void setFieldValue(_Fields field, Object value) {
445
    switch (field) {
517
    switch (field) {
446
    case _ID:
518
    case _ID:
447
      if (value == null) {
519
      if (value == null) {
448
        unset_id();
520
        unset_id();
Line 513... Line 585...
513
      } else {
585
      } else {
514
        setCash_back((Double)value);
586
        setCash_back((Double)value);
515
      }
587
      }
516
      break;
588
      break;
517
 
589
 
-
 
590
    case COUPON:
-
 
591
      if (value == null) {
-
 
592
        unsetCoupon();
-
 
593
      } else {
-
 
594
        setCoupon((String)value);
-
 
595
      }
-
 
596
      break;
-
 
597
 
-
 
598
    case COD_AVAILABLE:
-
 
599
      if (value == null) {
-
 
600
        unsetCodAvailable();
-
 
601
      } else {
-
 
602
        setCodAvailable((Boolean)value);
-
 
603
      }
-
 
604
      break;
-
 
605
 
518
    }
606
    }
519
  }
607
  }
520
 
608
 
521
  public Object getFieldValue(_Fields field) {
609
  public Object getFieldValue(_Fields field) {
522
    switch (field) {
610
    switch (field) {
Line 545... Line 633...
545
      return Long.valueOf(getCash_back_type());
633
      return Long.valueOf(getCash_back_type());
546
 
634
 
547
    case CASH_BACK:
635
    case CASH_BACK:
548
      return Double.valueOf(getCash_back());
636
      return Double.valueOf(getCash_back());
549
 
637
 
-
 
638
    case COUPON:
-
 
639
      return getCoupon();
-
 
640
 
-
 
641
    case COD_AVAILABLE:
-
 
642
      return Boolean.valueOf(isCodAvailable());
-
 
643
 
550
    }
644
    }
551
    throw new IllegalStateException();
645
    throw new IllegalStateException();
552
  }
646
  }
553
 
647
 
554
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
648
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 574... Line 668...
574
      return isSetThumbnail();
668
      return isSetThumbnail();
575
    case CASH_BACK_TYPE:
669
    case CASH_BACK_TYPE:
576
      return isSetCash_back_type();
670
      return isSetCash_back_type();
577
    case CASH_BACK:
671
    case CASH_BACK:
578
      return isSetCash_back();
672
      return isSetCash_back();
-
 
673
    case COUPON:
-
 
674
      return isSetCoupon();
-
 
675
    case COD_AVAILABLE:
-
 
676
      return isSetCodAvailable();
579
    }
677
    }
580
    throw new IllegalStateException();
678
    throw new IllegalStateException();
581
  }
679
  }
582
 
680
 
583
  @Override
681
  @Override
Line 672... Line 770...
672
        return false;
770
        return false;
673
      if (this.cash_back != that.cash_back)
771
      if (this.cash_back != that.cash_back)
674
        return false;
772
        return false;
675
    }
773
    }
676
 
774
 
-
 
775
    boolean this_present_coupon = true && this.isSetCoupon();
-
 
776
    boolean that_present_coupon = true && that.isSetCoupon();
-
 
777
    if (this_present_coupon || that_present_coupon) {
-
 
778
      if (!(this_present_coupon && that_present_coupon))
-
 
779
        return false;
-
 
780
      if (!this.coupon.equals(that.coupon))
-
 
781
        return false;
-
 
782
    }
-
 
783
 
-
 
784
    boolean this_present_codAvailable = true;
-
 
785
    boolean that_present_codAvailable = true;
-
 
786
    if (this_present_codAvailable || that_present_codAvailable) {
-
 
787
      if (!(this_present_codAvailable && that_present_codAvailable))
-
 
788
        return false;
-
 
789
      if (this.codAvailable != that.codAvailable)
-
 
790
        return false;
-
 
791
    }
-
 
792
 
677
    return true;
793
    return true;
678
  }
794
  }
679
 
795
 
680
  @Override
796
  @Override
681
  public int hashCode() {
797
  public int hashCode() {
Line 778... Line 894...
778
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cash_back, typedOther.cash_back);
894
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cash_back, typedOther.cash_back);
779
      if (lastComparison != 0) {
895
      if (lastComparison != 0) {
780
        return lastComparison;
896
        return lastComparison;
781
      }
897
      }
782
    }
898
    }
-
 
899
    lastComparison = Boolean.valueOf(isSetCoupon()).compareTo(typedOther.isSetCoupon());
-
 
900
    if (lastComparison != 0) {
-
 
901
      return lastComparison;
-
 
902
    }
-
 
903
    if (isSetCoupon()) {
-
 
904
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.coupon, typedOther.coupon);
-
 
905
      if (lastComparison != 0) {
-
 
906
        return lastComparison;
-
 
907
      }
-
 
908
    }
-
 
909
    lastComparison = Boolean.valueOf(isSetCodAvailable()).compareTo(typedOther.isSetCodAvailable());
-
 
910
    if (lastComparison != 0) {
-
 
911
      return lastComparison;
-
 
912
    }
-
 
913
    if (isSetCodAvailable()) {
-
 
914
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codAvailable, typedOther.codAvailable);
-
 
915
      if (lastComparison != 0) {
-
 
916
        return lastComparison;
-
 
917
      }
-
 
918
    }
783
    return 0;
919
    return 0;
784
  }
920
  }
785
 
921
 
786
  public _Fields fieldForId(int fieldId) {
922
  public _Fields fieldForId(int fieldId) {
787
    return _Fields.findByThriftId(fieldId);
923
    return _Fields.findByThriftId(fieldId);
Line 864... Line 1000...
864
            setCash_backIsSet(true);
1000
            setCash_backIsSet(true);
865
          } else { 
1001
          } else { 
866
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1002
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
867
          }
1003
          }
868
          break;
1004
          break;
-
 
1005
        case 10: // COUPON
-
 
1006
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1007
            this.coupon = iprot.readString();
-
 
1008
          } else { 
-
 
1009
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1010
          }
-
 
1011
          break;
-
 
1012
        case 11: // COD_AVAILABLE
-
 
1013
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
1014
            this.codAvailable = iprot.readBool();
-
 
1015
            setCodAvailableIsSet(true);
-
 
1016
          } else { 
-
 
1017
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1018
          }
-
 
1019
          break;
869
        default:
1020
        default:
870
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1021
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
871
      }
1022
      }
872
      iprot.readFieldEnd();
1023
      iprot.readFieldEnd();
873
    }
1024
    }
Line 910... Line 1061...
910
    oprot.writeI64(this.cash_back_type);
1061
    oprot.writeI64(this.cash_back_type);
911
    oprot.writeFieldEnd();
1062
    oprot.writeFieldEnd();
912
    oprot.writeFieldBegin(CASH_BACK_FIELD_DESC);
1063
    oprot.writeFieldBegin(CASH_BACK_FIELD_DESC);
913
    oprot.writeDouble(this.cash_back);
1064
    oprot.writeDouble(this.cash_back);
914
    oprot.writeFieldEnd();
1065
    oprot.writeFieldEnd();
-
 
1066
    if (this.coupon != null) {
-
 
1067
      oprot.writeFieldBegin(COUPON_FIELD_DESC);
-
 
1068
      oprot.writeString(this.coupon);
-
 
1069
      oprot.writeFieldEnd();
-
 
1070
    }
-
 
1071
    oprot.writeFieldBegin(COD_AVAILABLE_FIELD_DESC);
-
 
1072
    oprot.writeBool(this.codAvailable);
-
 
1073
    oprot.writeFieldEnd();
915
    oprot.writeFieldStop();
1074
    oprot.writeFieldStop();
916
    oprot.writeStructEnd();
1075
    oprot.writeStructEnd();
917
  }
1076
  }
918
 
1077
 
919
  @Override
1078
  @Override
Line 966... Line 1125...
966
    first = false;
1125
    first = false;
967
    if (!first) sb.append(", ");
1126
    if (!first) sb.append(", ");
968
    sb.append("cash_back:");
1127
    sb.append("cash_back:");
969
    sb.append(this.cash_back);
1128
    sb.append(this.cash_back);
970
    first = false;
1129
    first = false;
-
 
1130
    if (!first) sb.append(", ");
-
 
1131
    sb.append("coupon:");
-
 
1132
    if (this.coupon == null) {
-
 
1133
      sb.append("null");
-
 
1134
    } else {
-
 
1135
      sb.append(this.coupon);
-
 
1136
    }
-
 
1137
    first = false;
-
 
1138
    if (!first) sb.append(", ");
-
 
1139
    sb.append("codAvailable:");
-
 
1140
    sb.append(this.codAvailable);
-
 
1141
    first = false;
971
    sb.append(")");
1142
    sb.append(")");
972
    return sb.toString();
1143
    return sb.toString();
973
  }
1144
  }
974
 
1145
 
975
  public void validate() throws org.apache.thrift.TException {
1146
  public void validate() throws org.apache.thrift.TException {