Subversion Repositories SmartDukaan

Rev

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

Rev 5327 Rev 6903
Line 31... Line 31...
31
  private static final org.apache.thrift.protocol.TField LINE_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("lineStatus", org.apache.thrift.protocol.TType.I32, (short)6);
31
  private static final org.apache.thrift.protocol.TField LINE_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("lineStatus", org.apache.thrift.protocol.TType.I32, (short)6);
32
  private static final org.apache.thrift.protocol.TField ESTIMATE_FIELD_DESC = new org.apache.thrift.protocol.TField("estimate", org.apache.thrift.protocol.TType.I32, (short)7);
32
  private static final org.apache.thrift.protocol.TField ESTIMATE_FIELD_DESC = new org.apache.thrift.protocol.TField("estimate", org.apache.thrift.protocol.TType.I32, (short)7);
33
  private static final org.apache.thrift.protocol.TField ACTUAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("actualPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
33
  private static final org.apache.thrift.protocol.TField ACTUAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("actualPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
34
  private static final org.apache.thrift.protocol.TField DISCOUNTED_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("discountedPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
34
  private static final org.apache.thrift.protocol.TField DISCOUNTED_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("discountedPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
  private static final org.apache.thrift.protocol.TField DISCOUNTS_FIELD_DESC = new org.apache.thrift.protocol.TField("discounts", org.apache.thrift.protocol.TType.LIST, (short)10);
35
  private static final org.apache.thrift.protocol.TField DISCOUNTS_FIELD_DESC = new org.apache.thrift.protocol.TField("discounts", org.apache.thrift.protocol.TType.LIST, (short)10);
-
 
36
  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)11);
-
 
37
  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)12);
36
 
38
 
37
  private long cartId; // required
39
  private long cartId; // required
38
  private long itemId; // required
40
  private long itemId; // required
39
  private double quantity; // required
41
  private double quantity; // required
40
  private long createdOn; // required
42
  private long createdOn; // required
Line 42... Line 44...
42
  private LineStatus lineStatus; // required
44
  private LineStatus lineStatus; // required
43
  private int estimate; // required
45
  private int estimate; // required
44
  private double actualPrice; // required
46
  private double actualPrice; // required
45
  private double discountedPrice; // required
47
  private double discountedPrice; // required
46
  private List<Discount> discounts; // required
48
  private List<Discount> discounts; // required
-
 
49
  private long insurer; // required
-
 
50
  private double insuranceAmount; // required
47
 
51
 
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50
    CART_ID((short)1, "cartId"),
54
    CART_ID((short)1, "cartId"),
51
    ITEM_ID((short)2, "itemId"),
55
    ITEM_ID((short)2, "itemId"),
Line 58... Line 62...
58
     */
62
     */
59
    LINE_STATUS((short)6, "lineStatus"),
63
    LINE_STATUS((short)6, "lineStatus"),
60
    ESTIMATE((short)7, "estimate"),
64
    ESTIMATE((short)7, "estimate"),
61
    ACTUAL_PRICE((short)8, "actualPrice"),
65
    ACTUAL_PRICE((short)8, "actualPrice"),
62
    DISCOUNTED_PRICE((short)9, "discountedPrice"),
66
    DISCOUNTED_PRICE((short)9, "discountedPrice"),
63
    DISCOUNTS((short)10, "discounts");
67
    DISCOUNTS((short)10, "discounts"),
-
 
68
    INSURER((short)11, "insurer"),
-
 
69
    INSURANCE_AMOUNT((short)12, "insuranceAmount");
64
 
70
 
65
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
71
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
66
 
72
 
67
    static {
73
    static {
68
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
74
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 93... Line 99...
93
          return ACTUAL_PRICE;
99
          return ACTUAL_PRICE;
94
        case 9: // DISCOUNTED_PRICE
100
        case 9: // DISCOUNTED_PRICE
95
          return DISCOUNTED_PRICE;
101
          return DISCOUNTED_PRICE;
96
        case 10: // DISCOUNTS
102
        case 10: // DISCOUNTS
97
          return DISCOUNTS;
103
          return DISCOUNTS;
-
 
104
        case 11: // INSURER
-
 
105
          return INSURER;
-
 
106
        case 12: // INSURANCE_AMOUNT
-
 
107
          return INSURANCE_AMOUNT;
98
        default:
108
        default:
99
          return null;
109
          return null;
100
      }
110
      }
101
    }
111
    }
102
 
112
 
Line 141... Line 151...
141
  private static final int __CREATEDON_ISSET_ID = 3;
151
  private static final int __CREATEDON_ISSET_ID = 3;
142
  private static final int __UPDATEDON_ISSET_ID = 4;
152
  private static final int __UPDATEDON_ISSET_ID = 4;
143
  private static final int __ESTIMATE_ISSET_ID = 5;
153
  private static final int __ESTIMATE_ISSET_ID = 5;
144
  private static final int __ACTUALPRICE_ISSET_ID = 6;
154
  private static final int __ACTUALPRICE_ISSET_ID = 6;
145
  private static final int __DISCOUNTEDPRICE_ISSET_ID = 7;
155
  private static final int __DISCOUNTEDPRICE_ISSET_ID = 7;
-
 
156
  private static final int __INSURER_ISSET_ID = 8;
-
 
157
  private static final int __INSURANCEAMOUNT_ISSET_ID = 9;
146
  private BitSet __isset_bit_vector = new BitSet(8);
158
  private BitSet __isset_bit_vector = new BitSet(10);
147
 
159
 
148
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
160
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
149
  static {
161
  static {
150
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
162
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
151
    tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
163
    tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 167... Line 179...
167
    tmpMap.put(_Fields.DISCOUNTED_PRICE, new org.apache.thrift.meta_data.FieldMetaData("discountedPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
179
    tmpMap.put(_Fields.DISCOUNTED_PRICE, new org.apache.thrift.meta_data.FieldMetaData("discountedPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
180
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
169
    tmpMap.put(_Fields.DISCOUNTS, new org.apache.thrift.meta_data.FieldMetaData("discounts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
181
    tmpMap.put(_Fields.DISCOUNTS, new org.apache.thrift.meta_data.FieldMetaData("discounts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
170
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
182
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
171
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Discount.class))));
183
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Discount.class))));
-
 
184
    tmpMap.put(_Fields.INSURER, new org.apache.thrift.meta_data.FieldMetaData("insurer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
185
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
186
    tmpMap.put(_Fields.INSURANCE_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("insuranceAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
187
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
172
    metaDataMap = Collections.unmodifiableMap(tmpMap);
188
    metaDataMap = Collections.unmodifiableMap(tmpMap);
173
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Line.class, metaDataMap);
189
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Line.class, metaDataMap);
174
  }
190
  }
175
 
191
 
176
  public Line() {
192
  public Line() {
Line 184... Line 200...
184
    long updatedOn,
200
    long updatedOn,
185
    LineStatus lineStatus,
201
    LineStatus lineStatus,
186
    int estimate,
202
    int estimate,
187
    double actualPrice,
203
    double actualPrice,
188
    double discountedPrice,
204
    double discountedPrice,
189
    List<Discount> discounts)
205
    List<Discount> discounts,
-
 
206
    long insurer,
-
 
207
    double insuranceAmount)
190
  {
208
  {
191
    this();
209
    this();
192
    this.cartId = cartId;
210
    this.cartId = cartId;
193
    setCartIdIsSet(true);
211
    setCartIdIsSet(true);
194
    this.itemId = itemId;
212
    this.itemId = itemId;
Line 205... Line 223...
205
    this.actualPrice = actualPrice;
223
    this.actualPrice = actualPrice;
206
    setActualPriceIsSet(true);
224
    setActualPriceIsSet(true);
207
    this.discountedPrice = discountedPrice;
225
    this.discountedPrice = discountedPrice;
208
    setDiscountedPriceIsSet(true);
226
    setDiscountedPriceIsSet(true);
209
    this.discounts = discounts;
227
    this.discounts = discounts;
-
 
228
    this.insurer = insurer;
-
 
229
    setInsurerIsSet(true);
-
 
230
    this.insuranceAmount = insuranceAmount;
-
 
231
    setInsuranceAmountIsSet(true);
210
  }
232
  }
211
 
233
 
212
  /**
234
  /**
213
   * Performs a deep copy on <i>other</i>.
235
   * Performs a deep copy on <i>other</i>.
214
   */
236
   */
Line 231... Line 253...
231
      for (Discount other_element : other.discounts) {
253
      for (Discount other_element : other.discounts) {
232
        __this__discounts.add(new Discount(other_element));
254
        __this__discounts.add(new Discount(other_element));
233
      }
255
      }
234
      this.discounts = __this__discounts;
256
      this.discounts = __this__discounts;
235
    }
257
    }
-
 
258
    this.insurer = other.insurer;
-
 
259
    this.insuranceAmount = other.insuranceAmount;
236
  }
260
  }
237
 
261
 
238
  public Line deepCopy() {
262
  public Line deepCopy() {
239
    return new Line(this);
263
    return new Line(this);
240
  }
264
  }
Line 257... Line 281...
257
    setActualPriceIsSet(false);
281
    setActualPriceIsSet(false);
258
    this.actualPrice = 0.0;
282
    this.actualPrice = 0.0;
259
    setDiscountedPriceIsSet(false);
283
    setDiscountedPriceIsSet(false);
260
    this.discountedPrice = 0.0;
284
    this.discountedPrice = 0.0;
261
    this.discounts = null;
285
    this.discounts = null;
-
 
286
    setInsurerIsSet(false);
-
 
287
    this.insurer = 0;
-
 
288
    setInsuranceAmountIsSet(false);
-
 
289
    this.insuranceAmount = 0.0;
262
  }
290
  }
263
 
291
 
264
  public long getCartId() {
292
  public long getCartId() {
265
    return this.cartId;
293
    return this.cartId;
266
  }
294
  }
Line 504... Line 532...
504
    if (!value) {
532
    if (!value) {
505
      this.discounts = null;
533
      this.discounts = null;
506
    }
534
    }
507
  }
535
  }
508
 
536
 
-
 
537
  public long getInsurer() {
-
 
538
    return this.insurer;
-
 
539
  }
-
 
540
 
-
 
541
  public void setInsurer(long insurer) {
-
 
542
    this.insurer = insurer;
-
 
543
    setInsurerIsSet(true);
-
 
544
  }
-
 
545
 
-
 
546
  public void unsetInsurer() {
-
 
547
    __isset_bit_vector.clear(__INSURER_ISSET_ID);
-
 
548
  }
-
 
549
 
-
 
550
  /** Returns true if field insurer is set (has been assigned a value) and false otherwise */
-
 
551
  public boolean isSetInsurer() {
-
 
552
    return __isset_bit_vector.get(__INSURER_ISSET_ID);
-
 
553
  }
-
 
554
 
-
 
555
  public void setInsurerIsSet(boolean value) {
-
 
556
    __isset_bit_vector.set(__INSURER_ISSET_ID, value);
-
 
557
  }
-
 
558
 
-
 
559
  public double getInsuranceAmount() {
-
 
560
    return this.insuranceAmount;
-
 
561
  }
-
 
562
 
-
 
563
  public void setInsuranceAmount(double insuranceAmount) {
-
 
564
    this.insuranceAmount = insuranceAmount;
-
 
565
    setInsuranceAmountIsSet(true);
-
 
566
  }
-
 
567
 
-
 
568
  public void unsetInsuranceAmount() {
-
 
569
    __isset_bit_vector.clear(__INSURANCEAMOUNT_ISSET_ID);
-
 
570
  }
-
 
571
 
-
 
572
  /** Returns true if field insuranceAmount is set (has been assigned a value) and false otherwise */
-
 
573
  public boolean isSetInsuranceAmount() {
-
 
574
    return __isset_bit_vector.get(__INSURANCEAMOUNT_ISSET_ID);
-
 
575
  }
-
 
576
 
-
 
577
  public void setInsuranceAmountIsSet(boolean value) {
-
 
578
    __isset_bit_vector.set(__INSURANCEAMOUNT_ISSET_ID, value);
-
 
579
  }
-
 
580
 
509
  public void setFieldValue(_Fields field, Object value) {
581
  public void setFieldValue(_Fields field, Object value) {
510
    switch (field) {
582
    switch (field) {
511
    case CART_ID:
583
    case CART_ID:
512
      if (value == null) {
584
      if (value == null) {
513
        unsetCartId();
585
        unsetCartId();
Line 586... Line 658...
586
      } else {
658
      } else {
587
        setDiscounts((List<Discount>)value);
659
        setDiscounts((List<Discount>)value);
588
      }
660
      }
589
      break;
661
      break;
590
 
662
 
-
 
663
    case INSURER:
-
 
664
      if (value == null) {
-
 
665
        unsetInsurer();
-
 
666
      } else {
-
 
667
        setInsurer((Long)value);
-
 
668
      }
-
 
669
      break;
-
 
670
 
-
 
671
    case INSURANCE_AMOUNT:
-
 
672
      if (value == null) {
-
 
673
        unsetInsuranceAmount();
-
 
674
      } else {
-
 
675
        setInsuranceAmount((Double)value);
-
 
676
      }
-
 
677
      break;
-
 
678
 
591
    }
679
    }
592
  }
680
  }
593
 
681
 
594
  public Object getFieldValue(_Fields field) {
682
  public Object getFieldValue(_Fields field) {
595
    switch (field) {
683
    switch (field) {
Line 621... Line 709...
621
      return Double.valueOf(getDiscountedPrice());
709
      return Double.valueOf(getDiscountedPrice());
622
 
710
 
623
    case DISCOUNTS:
711
    case DISCOUNTS:
624
      return getDiscounts();
712
      return getDiscounts();
625
 
713
 
-
 
714
    case INSURER:
-
 
715
      return Long.valueOf(getInsurer());
-
 
716
 
-
 
717
    case INSURANCE_AMOUNT:
-
 
718
      return Double.valueOf(getInsuranceAmount());
-
 
719
 
626
    }
720
    }
627
    throw new IllegalStateException();
721
    throw new IllegalStateException();
628
  }
722
  }
629
 
723
 
630
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
724
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 652... Line 746...
652
      return isSetActualPrice();
746
      return isSetActualPrice();
653
    case DISCOUNTED_PRICE:
747
    case DISCOUNTED_PRICE:
654
      return isSetDiscountedPrice();
748
      return isSetDiscountedPrice();
655
    case DISCOUNTS:
749
    case DISCOUNTS:
656
      return isSetDiscounts();
750
      return isSetDiscounts();
-
 
751
    case INSURER:
-
 
752
      return isSetInsurer();
-
 
753
    case INSURANCE_AMOUNT:
-
 
754
      return isSetInsuranceAmount();
657
    }
755
    }
658
    throw new IllegalStateException();
756
    throw new IllegalStateException();
659
  }
757
  }
660
 
758
 
661
  @Override
759
  @Override
Line 759... Line 857...
759
        return false;
857
        return false;
760
      if (!this.discounts.equals(that.discounts))
858
      if (!this.discounts.equals(that.discounts))
761
        return false;
859
        return false;
762
    }
860
    }
763
 
861
 
-
 
862
    boolean this_present_insurer = true;
-
 
863
    boolean that_present_insurer = true;
-
 
864
    if (this_present_insurer || that_present_insurer) {
-
 
865
      if (!(this_present_insurer && that_present_insurer))
-
 
866
        return false;
-
 
867
      if (this.insurer != that.insurer)
-
 
868
        return false;
-
 
869
    }
-
 
870
 
-
 
871
    boolean this_present_insuranceAmount = true;
-
 
872
    boolean that_present_insuranceAmount = true;
-
 
873
    if (this_present_insuranceAmount || that_present_insuranceAmount) {
-
 
874
      if (!(this_present_insuranceAmount && that_present_insuranceAmount))
-
 
875
        return false;
-
 
876
      if (this.insuranceAmount != that.insuranceAmount)
-
 
877
        return false;
-
 
878
    }
-
 
879
 
764
    return true;
880
    return true;
765
  }
881
  }
766
 
882
 
767
  @Override
883
  @Override
768
  public int hashCode() {
884
  public int hashCode() {
Line 875... Line 991...
875
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.discounts, typedOther.discounts);
991
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.discounts, typedOther.discounts);
876
      if (lastComparison != 0) {
992
      if (lastComparison != 0) {
877
        return lastComparison;
993
        return lastComparison;
878
      }
994
      }
879
    }
995
    }
-
 
996
    lastComparison = Boolean.valueOf(isSetInsurer()).compareTo(typedOther.isSetInsurer());
-
 
997
    if (lastComparison != 0) {
-
 
998
      return lastComparison;
-
 
999
    }
-
 
1000
    if (isSetInsurer()) {
-
 
1001
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insurer, typedOther.insurer);
-
 
1002
      if (lastComparison != 0) {
-
 
1003
        return lastComparison;
-
 
1004
      }
-
 
1005
    }
-
 
1006
    lastComparison = Boolean.valueOf(isSetInsuranceAmount()).compareTo(typedOther.isSetInsuranceAmount());
-
 
1007
    if (lastComparison != 0) {
-
 
1008
      return lastComparison;
-
 
1009
    }
-
 
1010
    if (isSetInsuranceAmount()) {
-
 
1011
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insuranceAmount, typedOther.insuranceAmount);
-
 
1012
      if (lastComparison != 0) {
-
 
1013
        return lastComparison;
-
 
1014
      }
-
 
1015
    }
880
    return 0;
1016
    return 0;
881
  }
1017
  }
882
 
1018
 
883
  public _Fields fieldForId(int fieldId) {
1019
  public _Fields fieldForId(int fieldId) {
884
    return _Fields.findByThriftId(fieldId);
1020
    return _Fields.findByThriftId(fieldId);
Line 981... Line 1117...
981
            }
1117
            }
982
          } else { 
1118
          } else { 
983
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1119
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
984
          }
1120
          }
985
          break;
1121
          break;
-
 
1122
        case 11: // INSURER
-
 
1123
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1124
            this.insurer = iprot.readI64();
-
 
1125
            setInsurerIsSet(true);
-
 
1126
          } else { 
-
 
1127
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1128
          }
-
 
1129
          break;
-
 
1130
        case 12: // INSURANCE_AMOUNT
-
 
1131
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
1132
            this.insuranceAmount = iprot.readDouble();
-
 
1133
            setInsuranceAmountIsSet(true);
-
 
1134
          } else { 
-
 
1135
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1136
          }
-
 
1137
          break;
986
        default:
1138
        default:
987
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
988
      }
1140
      }
989
      iprot.readFieldEnd();
1141
      iprot.readFieldEnd();
990
    }
1142
    }
Line 1035... Line 1187...
1035
        }
1187
        }
1036
        oprot.writeListEnd();
1188
        oprot.writeListEnd();
1037
      }
1189
      }
1038
      oprot.writeFieldEnd();
1190
      oprot.writeFieldEnd();
1039
    }
1191
    }
-
 
1192
    oprot.writeFieldBegin(INSURER_FIELD_DESC);
-
 
1193
    oprot.writeI64(this.insurer);
-
 
1194
    oprot.writeFieldEnd();
-
 
1195
    oprot.writeFieldBegin(INSURANCE_AMOUNT_FIELD_DESC);
-
 
1196
    oprot.writeDouble(this.insuranceAmount);
-
 
1197
    oprot.writeFieldEnd();
1040
    oprot.writeFieldStop();
1198
    oprot.writeFieldStop();
1041
    oprot.writeStructEnd();
1199
    oprot.writeStructEnd();
1042
  }
1200
  }
1043
 
1201
 
1044
  @Override
1202
  @Override
Line 1091... Line 1249...
1091
      sb.append("null");
1249
      sb.append("null");
1092
    } else {
1250
    } else {
1093
      sb.append(this.discounts);
1251
      sb.append(this.discounts);
1094
    }
1252
    }
1095
    first = false;
1253
    first = false;
-
 
1254
    if (!first) sb.append(", ");
-
 
1255
    sb.append("insurer:");
-
 
1256
    sb.append(this.insurer);
-
 
1257
    first = false;
-
 
1258
    if (!first) sb.append(", ");
-
 
1259
    sb.append("insuranceAmount:");
-
 
1260
    sb.append(this.insuranceAmount);
-
 
1261
    first = false;
1096
    sb.append(")");
1262
    sb.append(")");
1097
    return sb.toString();
1263
    return sb.toString();
1098
  }
1264
  }
1099
 
1265
 
1100
  public void validate() throws org.apache.thrift.TException {
1266
  public void validate() throws org.apache.thrift.TException {