Subversion Repositories SmartDukaan

Rev

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

Rev 6159 Rev 6433
Line 39... Line 39...
39
  private static final org.apache.thrift.protocol.TField CREATION_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("creationTimestamp", org.apache.thrift.protocol.TType.I64, (short)14);
39
  private static final org.apache.thrift.protocol.TField CREATION_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("creationTimestamp", org.apache.thrift.protocol.TType.I64, (short)14);
40
  private static final org.apache.thrift.protocol.TField SPICE_TID_FIELD_DESC = new org.apache.thrift.protocol.TField("spiceTID", org.apache.thrift.protocol.TType.STRING, (short)15);
40
  private static final org.apache.thrift.protocol.TField SPICE_TID_FIELD_DESC = new org.apache.thrift.protocol.TField("spiceTID", org.apache.thrift.protocol.TType.STRING, (short)15);
41
  private static final org.apache.thrift.protocol.TField RESPONSE_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("responseTimestamp", org.apache.thrift.protocol.TType.I64, (short)16);
41
  private static final org.apache.thrift.protocol.TField RESPONSE_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("responseTimestamp", org.apache.thrift.protocol.TType.I64, (short)16);
42
  private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)17);
42
  private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)17);
43
  private static final org.apache.thrift.protocol.TField PLAN_FIELD_DESC = new org.apache.thrift.protocol.TField("plan", org.apache.thrift.protocol.TType.STRING, (short)18);
43
  private static final org.apache.thrift.protocol.TField PLAN_FIELD_DESC = new org.apache.thrift.protocol.TField("plan", org.apache.thrift.protocol.TType.STRING, (short)18);
-
 
44
  private static final org.apache.thrift.protocol.TField COUPON_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("couponCode", org.apache.thrift.protocol.TType.STRING, (short)19);
-
 
45
  private static final org.apache.thrift.protocol.TField COUPON_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("couponAmount", org.apache.thrift.protocol.TType.I64, (short)20);
44
 
46
 
45
  private long id; // required
47
  private long id; // required
46
  private String displayId; // required
48
  private String displayId; // required
47
  private long totalAmount; // required
49
  private long totalAmount; // required
48
  private long walletAmount; // required
50
  private long walletAmount; // required
Line 58... Line 60...
58
  private long creationTimestamp; // required
60
  private long creationTimestamp; // required
59
  private String spiceTID; // required
61
  private String spiceTID; // required
60
  private long responseTimestamp; // required
62
  private long responseTimestamp; // required
61
  private String description; // required
63
  private String description; // required
62
  private String plan; // required
64
  private String plan; // required
-
 
65
  private String couponCode; // required
-
 
66
  private long couponAmount; // required
63
 
67
 
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
68
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
65
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
69
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
66
    ID((short)1, "id"),
70
    ID((short)1, "id"),
67
    DISPLAY_ID((short)2, "displayId"),
71
    DISPLAY_ID((short)2, "displayId"),
Line 90... Line 94...
90
    USER_EMAIL_ID((short)13, "userEmailId"),
94
    USER_EMAIL_ID((short)13, "userEmailId"),
91
    CREATION_TIMESTAMP((short)14, "creationTimestamp"),
95
    CREATION_TIMESTAMP((short)14, "creationTimestamp"),
92
    SPICE_TID((short)15, "spiceTID"),
96
    SPICE_TID((short)15, "spiceTID"),
93
    RESPONSE_TIMESTAMP((short)16, "responseTimestamp"),
97
    RESPONSE_TIMESTAMP((short)16, "responseTimestamp"),
94
    DESCRIPTION((short)17, "description"),
98
    DESCRIPTION((short)17, "description"),
95
    PLAN((short)18, "plan");
99
    PLAN((short)18, "plan"),
-
 
100
    COUPON_CODE((short)19, "couponCode"),
-
 
101
    COUPON_AMOUNT((short)20, "couponAmount");
96
 
102
 
97
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
103
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
98
 
104
 
99
    static {
105
    static {
100
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
106
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 141... Line 147...
141
          return RESPONSE_TIMESTAMP;
147
          return RESPONSE_TIMESTAMP;
142
        case 17: // DESCRIPTION
148
        case 17: // DESCRIPTION
143
          return DESCRIPTION;
149
          return DESCRIPTION;
144
        case 18: // PLAN
150
        case 18: // PLAN
145
          return PLAN;
151
          return PLAN;
-
 
152
        case 19: // COUPON_CODE
-
 
153
          return COUPON_CODE;
-
 
154
        case 20: // COUPON_AMOUNT
-
 
155
          return COUPON_AMOUNT;
146
        default:
156
        default:
147
          return null;
157
          return null;
148
      }
158
      }
149
    }
159
    }
150
 
160
 
Line 190... Line 200...
190
  private static final int __INVOICENUMBER_ISSET_ID = 4;
200
  private static final int __INVOICENUMBER_ISSET_ID = 4;
191
  private static final int __OPERATORID_ISSET_ID = 5;
201
  private static final int __OPERATORID_ISSET_ID = 5;
192
  private static final int __USERID_ISSET_ID = 6;
202
  private static final int __USERID_ISSET_ID = 6;
193
  private static final int __CREATIONTIMESTAMP_ISSET_ID = 7;
203
  private static final int __CREATIONTIMESTAMP_ISSET_ID = 7;
194
  private static final int __RESPONSETIMESTAMP_ISSET_ID = 8;
204
  private static final int __RESPONSETIMESTAMP_ISSET_ID = 8;
-
 
205
  private static final int __COUPONAMOUNT_ISSET_ID = 9;
195
  private BitSet __isset_bit_vector = new BitSet(9);
206
  private BitSet __isset_bit_vector = new BitSet(10);
196
 
207
 
197
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
208
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
198
  static {
209
  static {
199
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
210
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
200
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
211
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 231... Line 242...
231
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
242
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
232
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
243
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
233
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
244
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
234
    tmpMap.put(_Fields.PLAN, new org.apache.thrift.meta_data.FieldMetaData("plan", org.apache.thrift.TFieldRequirementType.DEFAULT, 
245
    tmpMap.put(_Fields.PLAN, new org.apache.thrift.meta_data.FieldMetaData("plan", org.apache.thrift.TFieldRequirementType.DEFAULT, 
235
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
246
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
247
    tmpMap.put(_Fields.COUPON_CODE, new org.apache.thrift.meta_data.FieldMetaData("couponCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
248
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
249
    tmpMap.put(_Fields.COUPON_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("couponAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
250
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
236
    metaDataMap = Collections.unmodifiableMap(tmpMap);
251
    metaDataMap = Collections.unmodifiableMap(tmpMap);
237
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeOrder.class, metaDataMap);
252
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeOrder.class, metaDataMap);
238
  }
253
  }
239
 
254
 
240
  public RechargeOrder() {
255
  public RechargeOrder() {
Line 256... Line 271...
256
    String userEmailId,
271
    String userEmailId,
257
    long creationTimestamp,
272
    long creationTimestamp,
258
    String spiceTID,
273
    String spiceTID,
259
    long responseTimestamp,
274
    long responseTimestamp,
260
    String description,
275
    String description,
261
    String plan)
276
    String plan,
-
 
277
    String couponCode,
-
 
278
    long couponAmount)
262
  {
279
  {
263
    this();
280
    this();
264
    this.id = id;
281
    this.id = id;
265
    setIdIsSet(true);
282
    setIdIsSet(true);
266
    this.displayId = displayId;
283
    this.displayId = displayId;
Line 286... Line 303...
286
    this.spiceTID = spiceTID;
303
    this.spiceTID = spiceTID;
287
    this.responseTimestamp = responseTimestamp;
304
    this.responseTimestamp = responseTimestamp;
288
    setResponseTimestampIsSet(true);
305
    setResponseTimestampIsSet(true);
289
    this.description = description;
306
    this.description = description;
290
    this.plan = plan;
307
    this.plan = plan;
-
 
308
    this.couponCode = couponCode;
-
 
309
    this.couponAmount = couponAmount;
-
 
310
    setCouponAmountIsSet(true);
291
  }
311
  }
292
 
312
 
293
  /**
313
  /**
294
   * Performs a deep copy on <i>other</i>.
314
   * Performs a deep copy on <i>other</i>.
295
   */
315
   */
Line 330... Line 350...
330
      this.description = other.description;
350
      this.description = other.description;
331
    }
351
    }
332
    if (other.isSetPlan()) {
352
    if (other.isSetPlan()) {
333
      this.plan = other.plan;
353
      this.plan = other.plan;
334
    }
354
    }
-
 
355
    if (other.isSetCouponCode()) {
-
 
356
      this.couponCode = other.couponCode;
-
 
357
    }
-
 
358
    this.couponAmount = other.couponAmount;
335
  }
359
  }
336
 
360
 
337
  public RechargeOrder deepCopy() {
361
  public RechargeOrder deepCopy() {
338
    return new RechargeOrder(this);
362
    return new RechargeOrder(this);
339
  }
363
  }
Line 365... Line 389...
365
    this.spiceTID = null;
389
    this.spiceTID = null;
366
    setResponseTimestampIsSet(false);
390
    setResponseTimestampIsSet(false);
367
    this.responseTimestamp = 0;
391
    this.responseTimestamp = 0;
368
    this.description = null;
392
    this.description = null;
369
    this.plan = null;
393
    this.plan = null;
-
 
394
    this.couponCode = null;
-
 
395
    setCouponAmountIsSet(false);
-
 
396
    this.couponAmount = 0;
370
  }
397
  }
371
 
398
 
372
  public long getId() {
399
  public long getId() {
373
    return this.id;
400
    return this.id;
374
  }
401
  }
Line 796... Line 823...
796
    if (!value) {
823
    if (!value) {
797
      this.plan = null;
824
      this.plan = null;
798
    }
825
    }
799
  }
826
  }
800
 
827
 
-
 
828
  public String getCouponCode() {
-
 
829
    return this.couponCode;
-
 
830
  }
-
 
831
 
-
 
832
  public void setCouponCode(String couponCode) {
-
 
833
    this.couponCode = couponCode;
-
 
834
  }
-
 
835
 
-
 
836
  public void unsetCouponCode() {
-
 
837
    this.couponCode = null;
-
 
838
  }
-
 
839
 
-
 
840
  /** Returns true if field couponCode is set (has been assigned a value) and false otherwise */
-
 
841
  public boolean isSetCouponCode() {
-
 
842
    return this.couponCode != null;
-
 
843
  }
-
 
844
 
-
 
845
  public void setCouponCodeIsSet(boolean value) {
-
 
846
    if (!value) {
-
 
847
      this.couponCode = null;
-
 
848
    }
-
 
849
  }
-
 
850
 
-
 
851
  public long getCouponAmount() {
-
 
852
    return this.couponAmount;
-
 
853
  }
-
 
854
 
-
 
855
  public void setCouponAmount(long couponAmount) {
-
 
856
    this.couponAmount = couponAmount;
-
 
857
    setCouponAmountIsSet(true);
-
 
858
  }
-
 
859
 
-
 
860
  public void unsetCouponAmount() {
-
 
861
    __isset_bit_vector.clear(__COUPONAMOUNT_ISSET_ID);
-
 
862
  }
-
 
863
 
-
 
864
  /** Returns true if field couponAmount is set (has been assigned a value) and false otherwise */
-
 
865
  public boolean isSetCouponAmount() {
-
 
866
    return __isset_bit_vector.get(__COUPONAMOUNT_ISSET_ID);
-
 
867
  }
-
 
868
 
-
 
869
  public void setCouponAmountIsSet(boolean value) {
-
 
870
    __isset_bit_vector.set(__COUPONAMOUNT_ISSET_ID, value);
-
 
871
  }
-
 
872
 
801
  public void setFieldValue(_Fields field, Object value) {
873
  public void setFieldValue(_Fields field, Object value) {
802
    switch (field) {
874
    switch (field) {
803
    case ID:
875
    case ID:
804
      if (value == null) {
876
      if (value == null) {
805
        unsetId();
877
        unsetId();
Line 942... Line 1014...
942
      } else {
1014
      } else {
943
        setPlan((String)value);
1015
        setPlan((String)value);
944
      }
1016
      }
945
      break;
1017
      break;
946
 
1018
 
-
 
1019
    case COUPON_CODE:
-
 
1020
      if (value == null) {
-
 
1021
        unsetCouponCode();
-
 
1022
      } else {
-
 
1023
        setCouponCode((String)value);
-
 
1024
      }
-
 
1025
      break;
-
 
1026
 
-
 
1027
    case COUPON_AMOUNT:
-
 
1028
      if (value == null) {
-
 
1029
        unsetCouponAmount();
-
 
1030
      } else {
-
 
1031
        setCouponAmount((Long)value);
-
 
1032
      }
-
 
1033
      break;
-
 
1034
 
947
    }
1035
    }
948
  }
1036
  }
949
 
1037
 
950
  public Object getFieldValue(_Fields field) {
1038
  public Object getFieldValue(_Fields field) {
951
    switch (field) {
1039
    switch (field) {
Line 1001... Line 1089...
1001
      return getDescription();
1089
      return getDescription();
1002
 
1090
 
1003
    case PLAN:
1091
    case PLAN:
1004
      return getPlan();
1092
      return getPlan();
1005
 
1093
 
-
 
1094
    case COUPON_CODE:
-
 
1095
      return getCouponCode();
-
 
1096
 
-
 
1097
    case COUPON_AMOUNT:
-
 
1098
      return Long.valueOf(getCouponAmount());
-
 
1099
 
1006
    }
1100
    }
1007
    throw new IllegalStateException();
1101
    throw new IllegalStateException();
1008
  }
1102
  }
1009
 
1103
 
1010
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1104
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 1048... Line 1142...
1048
      return isSetResponseTimestamp();
1142
      return isSetResponseTimestamp();
1049
    case DESCRIPTION:
1143
    case DESCRIPTION:
1050
      return isSetDescription();
1144
      return isSetDescription();
1051
    case PLAN:
1145
    case PLAN:
1052
      return isSetPlan();
1146
      return isSetPlan();
-
 
1147
    case COUPON_CODE:
-
 
1148
      return isSetCouponCode();
-
 
1149
    case COUPON_AMOUNT:
-
 
1150
      return isSetCouponAmount();
1053
    }
1151
    }
1054
    throw new IllegalStateException();
1152
    throw new IllegalStateException();
1055
  }
1153
  }
1056
 
1154
 
1057
  @Override
1155
  @Override
Line 1227... Line 1325...
1227
        return false;
1325
        return false;
1228
      if (!this.plan.equals(that.plan))
1326
      if (!this.plan.equals(that.plan))
1229
        return false;
1327
        return false;
1230
    }
1328
    }
1231
 
1329
 
-
 
1330
    boolean this_present_couponCode = true && this.isSetCouponCode();
-
 
1331
    boolean that_present_couponCode = true && that.isSetCouponCode();
-
 
1332
    if (this_present_couponCode || that_present_couponCode) {
-
 
1333
      if (!(this_present_couponCode && that_present_couponCode))
-
 
1334
        return false;
-
 
1335
      if (!this.couponCode.equals(that.couponCode))
-
 
1336
        return false;
-
 
1337
    }
-
 
1338
 
-
 
1339
    boolean this_present_couponAmount = true;
-
 
1340
    boolean that_present_couponAmount = true;
-
 
1341
    if (this_present_couponAmount || that_present_couponAmount) {
-
 
1342
      if (!(this_present_couponAmount && that_present_couponAmount))
-
 
1343
        return false;
-
 
1344
      if (this.couponAmount != that.couponAmount)
-
 
1345
        return false;
-
 
1346
    }
-
 
1347
 
1232
    return true;
1348
    return true;
1233
  }
1349
  }
1234
 
1350
 
1235
  @Override
1351
  @Override
1236
  public int hashCode() {
1352
  public int hashCode() {
Line 1423... Line 1539...
1423
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.plan, typedOther.plan);
1539
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.plan, typedOther.plan);
1424
      if (lastComparison != 0) {
1540
      if (lastComparison != 0) {
1425
        return lastComparison;
1541
        return lastComparison;
1426
      }
1542
      }
1427
    }
1543
    }
-
 
1544
    lastComparison = Boolean.valueOf(isSetCouponCode()).compareTo(typedOther.isSetCouponCode());
-
 
1545
    if (lastComparison != 0) {
-
 
1546
      return lastComparison;
-
 
1547
    }
-
 
1548
    if (isSetCouponCode()) {
-
 
1549
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.couponCode, typedOther.couponCode);
-
 
1550
      if (lastComparison != 0) {
-
 
1551
        return lastComparison;
-
 
1552
      }
-
 
1553
    }
-
 
1554
    lastComparison = Boolean.valueOf(isSetCouponAmount()).compareTo(typedOther.isSetCouponAmount());
-
 
1555
    if (lastComparison != 0) {
-
 
1556
      return lastComparison;
-
 
1557
    }
-
 
1558
    if (isSetCouponAmount()) {
-
 
1559
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.couponAmount, typedOther.couponAmount);
-
 
1560
      if (lastComparison != 0) {
-
 
1561
        return lastComparison;
-
 
1562
      }
-
 
1563
    }
1428
    return 0;
1564
    return 0;
1429
  }
1565
  }
1430
 
1566
 
1431
  public _Fields fieldForId(int fieldId) {
1567
  public _Fields fieldForId(int fieldId) {
1432
    return _Fields.findByThriftId(fieldId);
1568
    return _Fields.findByThriftId(fieldId);
Line 1575... Line 1711...
1575
            this.plan = iprot.readString();
1711
            this.plan = iprot.readString();
1576
          } else { 
1712
          } else { 
1577
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1713
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1578
          }
1714
          }
1579
          break;
1715
          break;
-
 
1716
        case 19: // COUPON_CODE
-
 
1717
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1718
            this.couponCode = iprot.readString();
-
 
1719
          } else { 
-
 
1720
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1721
          }
-
 
1722
          break;
-
 
1723
        case 20: // COUPON_AMOUNT
-
 
1724
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1725
            this.couponAmount = iprot.readI64();
-
 
1726
            setCouponAmountIsSet(true);
-
 
1727
          } else { 
-
 
1728
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1729
          }
-
 
1730
          break;
1580
        default:
1731
        default:
1581
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1732
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1582
      }
1733
      }
1583
      iprot.readFieldEnd();
1734
      iprot.readFieldEnd();
1584
    }
1735
    }
Line 1660... Line 1811...
1660
    if (this.plan != null) {
1811
    if (this.plan != null) {
1661
      oprot.writeFieldBegin(PLAN_FIELD_DESC);
1812
      oprot.writeFieldBegin(PLAN_FIELD_DESC);
1662
      oprot.writeString(this.plan);
1813
      oprot.writeString(this.plan);
1663
      oprot.writeFieldEnd();
1814
      oprot.writeFieldEnd();
1664
    }
1815
    }
-
 
1816
    if (this.couponCode != null) {
-
 
1817
      oprot.writeFieldBegin(COUPON_CODE_FIELD_DESC);
-
 
1818
      oprot.writeString(this.couponCode);
-
 
1819
      oprot.writeFieldEnd();
-
 
1820
    }
-
 
1821
    oprot.writeFieldBegin(COUPON_AMOUNT_FIELD_DESC);
-
 
1822
    oprot.writeI64(this.couponAmount);
-
 
1823
    oprot.writeFieldEnd();
1665
    oprot.writeFieldStop();
1824
    oprot.writeFieldStop();
1666
    oprot.writeStructEnd();
1825
    oprot.writeStructEnd();
1667
  }
1826
  }
1668
 
1827
 
1669
  @Override
1828
  @Override
Line 1776... Line 1935...
1776
      sb.append("null");
1935
      sb.append("null");
1777
    } else {
1936
    } else {
1778
      sb.append(this.plan);
1937
      sb.append(this.plan);
1779
    }
1938
    }
1780
    first = false;
1939
    first = false;
-
 
1940
    if (!first) sb.append(", ");
-
 
1941
    sb.append("couponCode:");
-
 
1942
    if (this.couponCode == null) {
-
 
1943
      sb.append("null");
-
 
1944
    } else {
-
 
1945
      sb.append(this.couponCode);
-
 
1946
    }
-
 
1947
    first = false;
-
 
1948
    if (!first) sb.append(", ");
-
 
1949
    sb.append("couponAmount:");
-
 
1950
    sb.append(this.couponAmount);
-
 
1951
    first = false;
1781
    sb.append(")");
1952
    sb.append(")");
1782
    return sb.toString();
1953
    return sb.toString();
1783
  }
1954
  }
1784
 
1955
 
1785
  public void validate() throws org.apache.thrift.TException {
1956
  public void validate() throws org.apache.thrift.TException {