Subversion Repositories SmartDukaan

Rev

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

Rev 14384 Rev 14764
Line 31... Line 31...
31
  private static final org.apache.thrift.protocol.TField MARKET_PLACE_URL_FIELD_DESC = new org.apache.thrift.protocol.TField("marketPlaceUrl", org.apache.thrift.protocol.TType.STRING, (short)3);
31
  private static final org.apache.thrift.protocol.TField MARKET_PLACE_URL_FIELD_DESC = new org.apache.thrift.protocol.TField("marketPlaceUrl", org.apache.thrift.protocol.TType.STRING, (short)3);
32
  private static final org.apache.thrift.protocol.TField IN_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("in_stock", org.apache.thrift.protocol.TType.I64, (short)4);
32
  private static final org.apache.thrift.protocol.TField IN_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("in_stock", org.apache.thrift.protocol.TType.I64, (short)4);
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);
-
 
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);
36
 
38
 
37
  private long _id; // required
39
  private long _id; // required
38
  private double available_price; // required
40
  private double available_price; // required
39
  private String marketPlaceUrl; // required
41
  private String marketPlaceUrl; // required
40
  private long in_stock; // required
42
  private long in_stock; // required
41
  private long source_id; // required
43
  private long source_id; // required
42
  private String source_product_name; // required
44
  private String source_product_name; // required
43
  private String thumbnail; // required
45
  private String thumbnail; // required
-
 
46
  private long cash_back_type; // required
-
 
47
  private double cash_back; // required
44
 
48
 
45
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47
    _ID((short)1, "_id"),
51
    _ID((short)1, "_id"),
48
    AVAILABLE_PRICE((short)2, "available_price"),
52
    AVAILABLE_PRICE((short)2, "available_price"),
49
    MARKET_PLACE_URL((short)3, "marketPlaceUrl"),
53
    MARKET_PLACE_URL((short)3, "marketPlaceUrl"),
50
    IN_STOCK((short)4, "in_stock"),
54
    IN_STOCK((short)4, "in_stock"),
51
    SOURCE_ID((short)5, "source_id"),
55
    SOURCE_ID((short)5, "source_id"),
52
    SOURCE_PRODUCT_NAME((short)6, "source_product_name"),
56
    SOURCE_PRODUCT_NAME((short)6, "source_product_name"),
53
    THUMBNAIL((short)7, "thumbnail");
57
    THUMBNAIL((short)7, "thumbnail"),
-
 
58
    CASH_BACK_TYPE((short)8, "cash_back_type"),
-
 
59
    CASH_BACK((short)9, "cash_back");
54
 
60
 
55
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
61
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56
 
62
 
57
    static {
63
    static {
58
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
64
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 77... Line 83...
77
          return SOURCE_ID;
83
          return SOURCE_ID;
78
        case 6: // SOURCE_PRODUCT_NAME
84
        case 6: // SOURCE_PRODUCT_NAME
79
          return SOURCE_PRODUCT_NAME;
85
          return SOURCE_PRODUCT_NAME;
80
        case 7: // THUMBNAIL
86
        case 7: // THUMBNAIL
81
          return THUMBNAIL;
87
          return THUMBNAIL;
-
 
88
        case 8: // CASH_BACK_TYPE
-
 
89
          return CASH_BACK_TYPE;
-
 
90
        case 9: // CASH_BACK
-
 
91
          return CASH_BACK;
82
        default:
92
        default:
83
          return null;
93
          return null;
84
      }
94
      }
85
    }
95
    }
86
 
96
 
Line 121... Line 131...
121
  // isset id assignments
131
  // isset id assignments
122
  private static final int ___ID_ISSET_ID = 0;
132
  private static final int ___ID_ISSET_ID = 0;
123
  private static final int __AVAILABLE_PRICE_ISSET_ID = 1;
133
  private static final int __AVAILABLE_PRICE_ISSET_ID = 1;
124
  private static final int __IN_STOCK_ISSET_ID = 2;
134
  private static final int __IN_STOCK_ISSET_ID = 2;
125
  private static final int __SOURCE_ID_ISSET_ID = 3;
135
  private static final int __SOURCE_ID_ISSET_ID = 3;
-
 
136
  private static final int __CASH_BACK_TYPE_ISSET_ID = 4;
-
 
137
  private static final int __CASH_BACK_ISSET_ID = 5;
126
  private BitSet __isset_bit_vector = new BitSet(4);
138
  private BitSet __isset_bit_vector = new BitSet(6);
127
 
139
 
128
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
140
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
129
  static {
141
  static {
130
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
142
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
131
    tmpMap.put(_Fields._ID, new org.apache.thrift.meta_data.FieldMetaData("_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
143
    tmpMap.put(_Fields._ID, new org.apache.thrift.meta_data.FieldMetaData("_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 140... Line 152...
140
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
152
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
141
    tmpMap.put(_Fields.SOURCE_PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_product_name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
153
    tmpMap.put(_Fields.SOURCE_PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_product_name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
142
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
154
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
143
    tmpMap.put(_Fields.THUMBNAIL, new org.apache.thrift.meta_data.FieldMetaData("thumbnail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
155
    tmpMap.put(_Fields.THUMBNAIL, new org.apache.thrift.meta_data.FieldMetaData("thumbnail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
144
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
156
        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, 
-
 
158
        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, 
-
 
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
145
    metaDataMap = Collections.unmodifiableMap(tmpMap);
161
    metaDataMap = Collections.unmodifiableMap(tmpMap);
146
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LivePricing.class, metaDataMap);
162
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LivePricing.class, metaDataMap);
147
  }
163
  }
148
 
164
 
149
  public LivePricing() {
165
  public LivePricing() {
Line 154... Line 170...
154
    double available_price,
170
    double available_price,
155
    String marketPlaceUrl,
171
    String marketPlaceUrl,
156
    long in_stock,
172
    long in_stock,
157
    long source_id,
173
    long source_id,
158
    String source_product_name,
174
    String source_product_name,
159
    String thumbnail)
175
    String thumbnail,
-
 
176
    long cash_back_type,
-
 
177
    double cash_back)
160
  {
178
  {
161
    this();
179
    this();
162
    this._id = _id;
180
    this._id = _id;
163
    set_idIsSet(true);
181
    set_idIsSet(true);
164
    this.available_price = available_price;
182
    this.available_price = available_price;
Line 168... Line 186...
168
    setIn_stockIsSet(true);
186
    setIn_stockIsSet(true);
169
    this.source_id = source_id;
187
    this.source_id = source_id;
170
    setSource_idIsSet(true);
188
    setSource_idIsSet(true);
171
    this.source_product_name = source_product_name;
189
    this.source_product_name = source_product_name;
172
    this.thumbnail = thumbnail;
190
    this.thumbnail = thumbnail;
-
 
191
    this.cash_back_type = cash_back_type;
-
 
192
    setCash_back_typeIsSet(true);
-
 
193
    this.cash_back = cash_back;
-
 
194
    setCash_backIsSet(true);
173
  }
195
  }
174
 
196
 
175
  /**
197
  /**
176
   * Performs a deep copy on <i>other</i>.
198
   * Performs a deep copy on <i>other</i>.
177
   */
199
   */
Line 189... Line 211...
189
      this.source_product_name = other.source_product_name;
211
      this.source_product_name = other.source_product_name;
190
    }
212
    }
191
    if (other.isSetThumbnail()) {
213
    if (other.isSetThumbnail()) {
192
      this.thumbnail = other.thumbnail;
214
      this.thumbnail = other.thumbnail;
193
    }
215
    }
-
 
216
    this.cash_back_type = other.cash_back_type;
-
 
217
    this.cash_back = other.cash_back;
194
  }
218
  }
195
 
219
 
196
  public LivePricing deepCopy() {
220
  public LivePricing deepCopy() {
197
    return new LivePricing(this);
221
    return new LivePricing(this);
198
  }
222
  }
Line 208... Line 232...
208
    this.in_stock = 0;
232
    this.in_stock = 0;
209
    setSource_idIsSet(false);
233
    setSource_idIsSet(false);
210
    this.source_id = 0;
234
    this.source_id = 0;
211
    this.source_product_name = null;
235
    this.source_product_name = null;
212
    this.thumbnail = null;
236
    this.thumbnail = null;
-
 
237
    setCash_back_typeIsSet(false);
-
 
238
    this.cash_back_type = 0;
-
 
239
    setCash_backIsSet(false);
-
 
240
    this.cash_back = 0.0;
213
  }
241
  }
214
 
242
 
215
  public long get_id() {
243
  public long get_id() {
216
    return this._id;
244
    return this._id;
217
  }
245
  }
Line 367... Line 395...
367
    if (!value) {
395
    if (!value) {
368
      this.thumbnail = null;
396
      this.thumbnail = null;
369
    }
397
    }
370
  }
398
  }
371
 
399
 
-
 
400
  public long getCash_back_type() {
-
 
401
    return this.cash_back_type;
-
 
402
  }
-
 
403
 
-
 
404
  public void setCash_back_type(long cash_back_type) {
-
 
405
    this.cash_back_type = cash_back_type;
-
 
406
    setCash_back_typeIsSet(true);
-
 
407
  }
-
 
408
 
-
 
409
  public void unsetCash_back_type() {
-
 
410
    __isset_bit_vector.clear(__CASH_BACK_TYPE_ISSET_ID);
-
 
411
  }
-
 
412
 
-
 
413
  /** Returns true if field cash_back_type is set (has been assigned a value) and false otherwise */
-
 
414
  public boolean isSetCash_back_type() {
-
 
415
    return __isset_bit_vector.get(__CASH_BACK_TYPE_ISSET_ID);
-
 
416
  }
-
 
417
 
-
 
418
  public void setCash_back_typeIsSet(boolean value) {
-
 
419
    __isset_bit_vector.set(__CASH_BACK_TYPE_ISSET_ID, value);
-
 
420
  }
-
 
421
 
-
 
422
  public double getCash_back() {
-
 
423
    return this.cash_back;
-
 
424
  }
-
 
425
 
-
 
426
  public void setCash_back(double cash_back) {
-
 
427
    this.cash_back = cash_back;
-
 
428
    setCash_backIsSet(true);
-
 
429
  }
-
 
430
 
-
 
431
  public void unsetCash_back() {
-
 
432
    __isset_bit_vector.clear(__CASH_BACK_ISSET_ID);
-
 
433
  }
-
 
434
 
-
 
435
  /** Returns true if field cash_back is set (has been assigned a value) and false otherwise */
-
 
436
  public boolean isSetCash_back() {
-
 
437
    return __isset_bit_vector.get(__CASH_BACK_ISSET_ID);
-
 
438
  }
-
 
439
 
-
 
440
  public void setCash_backIsSet(boolean value) {
-
 
441
    __isset_bit_vector.set(__CASH_BACK_ISSET_ID, value);
-
 
442
  }
-
 
443
 
372
  public void setFieldValue(_Fields field, Object value) {
444
  public void setFieldValue(_Fields field, Object value) {
373
    switch (field) {
445
    switch (field) {
374
    case _ID:
446
    case _ID:
375
      if (value == null) {
447
      if (value == null) {
376
        unset_id();
448
        unset_id();
Line 425... Line 497...
425
      } else {
497
      } else {
426
        setThumbnail((String)value);
498
        setThumbnail((String)value);
427
      }
499
      }
428
      break;
500
      break;
429
 
501
 
-
 
502
    case CASH_BACK_TYPE:
-
 
503
      if (value == null) {
-
 
504
        unsetCash_back_type();
-
 
505
      } else {
-
 
506
        setCash_back_type((Long)value);
-
 
507
      }
-
 
508
      break;
-
 
509
 
-
 
510
    case CASH_BACK:
-
 
511
      if (value == null) {
-
 
512
        unsetCash_back();
-
 
513
      } else {
-
 
514
        setCash_back((Double)value);
-
 
515
      }
-
 
516
      break;
-
 
517
 
430
    }
518
    }
431
  }
519
  }
432
 
520
 
433
  public Object getFieldValue(_Fields field) {
521
  public Object getFieldValue(_Fields field) {
434
    switch (field) {
522
    switch (field) {
Line 451... Line 539...
451
      return getSource_product_name();
539
      return getSource_product_name();
452
 
540
 
453
    case THUMBNAIL:
541
    case THUMBNAIL:
454
      return getThumbnail();
542
      return getThumbnail();
455
 
543
 
-
 
544
    case CASH_BACK_TYPE:
-
 
545
      return Long.valueOf(getCash_back_type());
-
 
546
 
-
 
547
    case CASH_BACK:
-
 
548
      return Double.valueOf(getCash_back());
-
 
549
 
456
    }
550
    }
457
    throw new IllegalStateException();
551
    throw new IllegalStateException();
458
  }
552
  }
459
 
553
 
460
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
554
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 476... Line 570...
476
      return isSetSource_id();
570
      return isSetSource_id();
477
    case SOURCE_PRODUCT_NAME:
571
    case SOURCE_PRODUCT_NAME:
478
      return isSetSource_product_name();
572
      return isSetSource_product_name();
479
    case THUMBNAIL:
573
    case THUMBNAIL:
480
      return isSetThumbnail();
574
      return isSetThumbnail();
-
 
575
    case CASH_BACK_TYPE:
-
 
576
      return isSetCash_back_type();
-
 
577
    case CASH_BACK:
-
 
578
      return isSetCash_back();
481
    }
579
    }
482
    throw new IllegalStateException();
580
    throw new IllegalStateException();
483
  }
581
  }
484
 
582
 
485
  @Override
583
  @Override
Line 556... Line 654...
556
        return false;
654
        return false;
557
      if (!this.thumbnail.equals(that.thumbnail))
655
      if (!this.thumbnail.equals(that.thumbnail))
558
        return false;
656
        return false;
559
    }
657
    }
560
 
658
 
-
 
659
    boolean this_present_cash_back_type = true;
-
 
660
    boolean that_present_cash_back_type = true;
-
 
661
    if (this_present_cash_back_type || that_present_cash_back_type) {
-
 
662
      if (!(this_present_cash_back_type && that_present_cash_back_type))
-
 
663
        return false;
-
 
664
      if (this.cash_back_type != that.cash_back_type)
-
 
665
        return false;
-
 
666
    }
-
 
667
 
-
 
668
    boolean this_present_cash_back = true;
-
 
669
    boolean that_present_cash_back = true;
-
 
670
    if (this_present_cash_back || that_present_cash_back) {
-
 
671
      if (!(this_present_cash_back && that_present_cash_back))
-
 
672
        return false;
-
 
673
      if (this.cash_back != that.cash_back)
-
 
674
        return false;
-
 
675
    }
-
 
676
 
561
    return true;
677
    return true;
562
  }
678
  }
563
 
679
 
564
  @Override
680
  @Override
565
  public int hashCode() {
681
  public int hashCode() {
Line 642... Line 758...
642
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.thumbnail, typedOther.thumbnail);
758
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.thumbnail, typedOther.thumbnail);
643
      if (lastComparison != 0) {
759
      if (lastComparison != 0) {
644
        return lastComparison;
760
        return lastComparison;
645
      }
761
      }
646
    }
762
    }
-
 
763
    lastComparison = Boolean.valueOf(isSetCash_back_type()).compareTo(typedOther.isSetCash_back_type());
-
 
764
    if (lastComparison != 0) {
-
 
765
      return lastComparison;
-
 
766
    }
-
 
767
    if (isSetCash_back_type()) {
-
 
768
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cash_back_type, typedOther.cash_back_type);
-
 
769
      if (lastComparison != 0) {
-
 
770
        return lastComparison;
-
 
771
      }
-
 
772
    }
-
 
773
    lastComparison = Boolean.valueOf(isSetCash_back()).compareTo(typedOther.isSetCash_back());
-
 
774
    if (lastComparison != 0) {
-
 
775
      return lastComparison;
-
 
776
    }
-
 
777
    if (isSetCash_back()) {
-
 
778
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cash_back, typedOther.cash_back);
-
 
779
      if (lastComparison != 0) {
-
 
780
        return lastComparison;
-
 
781
      }
-
 
782
    }
647
    return 0;
783
    return 0;
648
  }
784
  }
649
 
785
 
650
  public _Fields fieldForId(int fieldId) {
786
  public _Fields fieldForId(int fieldId) {
651
    return _Fields.findByThriftId(fieldId);
787
    return _Fields.findByThriftId(fieldId);
Line 712... Line 848...
712
            this.thumbnail = iprot.readString();
848
            this.thumbnail = iprot.readString();
713
          } else { 
849
          } else { 
714
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
850
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
715
          }
851
          }
716
          break;
852
          break;
-
 
853
        case 8: // CASH_BACK_TYPE
-
 
854
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
855
            this.cash_back_type = iprot.readI64();
-
 
856
            setCash_back_typeIsSet(true);
-
 
857
          } else { 
-
 
858
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
859
          }
-
 
860
          break;
-
 
861
        case 9: // CASH_BACK
-
 
862
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
863
            this.cash_back = iprot.readDouble();
-
 
864
            setCash_backIsSet(true);
-
 
865
          } else { 
-
 
866
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
867
          }
-
 
868
          break;
717
        default:
869
        default:
718
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
870
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
719
      }
871
      }
720
      iprot.readFieldEnd();
872
      iprot.readFieldEnd();
721
    }
873
    }
Line 752... Line 904...
752
    if (this.thumbnail != null) {
904
    if (this.thumbnail != null) {
753
      oprot.writeFieldBegin(THUMBNAIL_FIELD_DESC);
905
      oprot.writeFieldBegin(THUMBNAIL_FIELD_DESC);
754
      oprot.writeString(this.thumbnail);
906
      oprot.writeString(this.thumbnail);
755
      oprot.writeFieldEnd();
907
      oprot.writeFieldEnd();
756
    }
908
    }
-
 
909
    oprot.writeFieldBegin(CASH_BACK_TYPE_FIELD_DESC);
-
 
910
    oprot.writeI64(this.cash_back_type);
-
 
911
    oprot.writeFieldEnd();
-
 
912
    oprot.writeFieldBegin(CASH_BACK_FIELD_DESC);
-
 
913
    oprot.writeDouble(this.cash_back);
-
 
914
    oprot.writeFieldEnd();
757
    oprot.writeFieldStop();
915
    oprot.writeFieldStop();
758
    oprot.writeStructEnd();
916
    oprot.writeStructEnd();
759
  }
917
  }
760
 
918
 
761
  @Override
919
  @Override
Line 800... Line 958...
800
      sb.append("null");
958
      sb.append("null");
801
    } else {
959
    } else {
802
      sb.append(this.thumbnail);
960
      sb.append(this.thumbnail);
803
    }
961
    }
804
    first = false;
962
    first = false;
-
 
963
    if (!first) sb.append(", ");
-
 
964
    sb.append("cash_back_type:");
-
 
965
    sb.append(this.cash_back_type);
-
 
966
    first = false;
-
 
967
    if (!first) sb.append(", ");
-
 
968
    sb.append("cash_back:");
-
 
969
    sb.append(this.cash_back);
-
 
970
    first = false;
805
    sb.append(")");
971
    sb.append(")");
806
    return sb.toString();
972
    return sb.toString();
807
  }
973
  }
808
 
974
 
809
  public void validate() throws org.apache.thrift.TException {
975
  public void validate() throws org.apache.thrift.TException {