Subversion Repositories SmartDukaan

Rev

Rev 23144 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23144 Rev 23157
Line 23... Line 23...
23
public class StateGstRate implements org.apache.thrift.TBase<StateGstRate, StateGstRate._Fields>, java.io.Serializable, Cloneable {
23
public class StateGstRate implements org.apache.thrift.TBase<StateGstRate, StateGstRate._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StateGstRate");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StateGstRate");
25
 
25
 
26
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField TAX_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("taxRate", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
28
  private static final org.apache.thrift.protocol.TField IGST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("igstRate", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
-
 
29
  private static final org.apache.thrift.protocol.TField CGST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("cgstRate", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
-
 
30
  private static final org.apache.thrift.protocol.TField SGST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("sgstRate", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
29
 
31
 
30
  private long itemId; // required
32
  private long itemId; // required
31
  private long stateId; // required
33
  private long stateId; // required
-
 
34
  private double igstRate; // required
32
  private double taxRate; // required
35
  private double cgstRate; // required
-
 
36
  private double sgstRate; // required
33
 
37
 
34
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36
    ITEM_ID((short)1, "itemId"),
40
    ITEM_ID((short)1, "itemId"),
37
    STATE_ID((short)2, "stateId"),
41
    STATE_ID((short)2, "stateId"),
-
 
42
    IGST_RATE((short)3, "igstRate"),
-
 
43
    CGST_RATE((short)4, "cgstRate"),
38
    TAX_RATE((short)3, "taxRate");
44
    SGST_RATE((short)5, "sgstRate");
39
 
45
 
40
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41
 
47
 
42
    static {
48
    static {
43
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
49
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 52... Line 58...
52
      switch(fieldId) {
58
      switch(fieldId) {
53
        case 1: // ITEM_ID
59
        case 1: // ITEM_ID
54
          return ITEM_ID;
60
          return ITEM_ID;
55
        case 2: // STATE_ID
61
        case 2: // STATE_ID
56
          return STATE_ID;
62
          return STATE_ID;
57
        case 3: // TAX_RATE
63
        case 3: // IGST_RATE
-
 
64
          return IGST_RATE;
-
 
65
        case 4: // CGST_RATE
-
 
66
          return CGST_RATE;
-
 
67
        case 5: // SGST_RATE
58
          return TAX_RATE;
68
          return SGST_RATE;
59
        default:
69
        default:
60
          return null;
70
          return null;
61
      }
71
      }
62
    }
72
    }
63
 
73
 
Line 96... Line 106...
96
  }
106
  }
97
 
107
 
98
  // isset id assignments
108
  // isset id assignments
99
  private static final int __ITEMID_ISSET_ID = 0;
109
  private static final int __ITEMID_ISSET_ID = 0;
100
  private static final int __STATEID_ISSET_ID = 1;
110
  private static final int __STATEID_ISSET_ID = 1;
101
  private static final int __TAXRATE_ISSET_ID = 2;
111
  private static final int __IGSTRATE_ISSET_ID = 2;
-
 
112
  private static final int __CGSTRATE_ISSET_ID = 3;
-
 
113
  private static final int __SGSTRATE_ISSET_ID = 4;
102
  private BitSet __isset_bit_vector = new BitSet(3);
114
  private BitSet __isset_bit_vector = new BitSet(5);
103
 
115
 
104
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
116
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
105
  static {
117
  static {
106
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
118
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
107
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
119
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
108
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
120
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
109
    tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
121
    tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
110
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
122
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
111
    tmpMap.put(_Fields.TAX_RATE, new org.apache.thrift.meta_data.FieldMetaData("taxRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
123
    tmpMap.put(_Fields.IGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("igstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
124
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
125
    tmpMap.put(_Fields.CGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("cgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
126
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
127
    tmpMap.put(_Fields.SGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("sgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
112
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
128
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
113
    metaDataMap = Collections.unmodifiableMap(tmpMap);
129
    metaDataMap = Collections.unmodifiableMap(tmpMap);
114
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StateGstRate.class, metaDataMap);
130
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StateGstRate.class, metaDataMap);
115
  }
131
  }
116
 
132
 
Line 118... Line 134...
118
  }
134
  }
119
 
135
 
120
  public StateGstRate(
136
  public StateGstRate(
121
    long itemId,
137
    long itemId,
122
    long stateId,
138
    long stateId,
-
 
139
    double igstRate,
-
 
140
    double cgstRate,
123
    double taxRate)
141
    double sgstRate)
124
  {
142
  {
125
    this();
143
    this();
126
    this.itemId = itemId;
144
    this.itemId = itemId;
127
    setItemIdIsSet(true);
145
    setItemIdIsSet(true);
128
    this.stateId = stateId;
146
    this.stateId = stateId;
129
    setStateIdIsSet(true);
147
    setStateIdIsSet(true);
-
 
148
    this.igstRate = igstRate;
-
 
149
    setIgstRateIsSet(true);
130
    this.taxRate = taxRate;
150
    this.cgstRate = cgstRate;
-
 
151
    setCgstRateIsSet(true);
-
 
152
    this.sgstRate = sgstRate;
131
    setTaxRateIsSet(true);
153
    setSgstRateIsSet(true);
132
  }
154
  }
133
 
155
 
134
  /**
156
  /**
135
   * Performs a deep copy on <i>other</i>.
157
   * Performs a deep copy on <i>other</i>.
136
   */
158
   */
137
  public StateGstRate(StateGstRate other) {
159
  public StateGstRate(StateGstRate other) {
138
    __isset_bit_vector.clear();
160
    __isset_bit_vector.clear();
139
    __isset_bit_vector.or(other.__isset_bit_vector);
161
    __isset_bit_vector.or(other.__isset_bit_vector);
140
    this.itemId = other.itemId;
162
    this.itemId = other.itemId;
141
    this.stateId = other.stateId;
163
    this.stateId = other.stateId;
-
 
164
    this.igstRate = other.igstRate;
-
 
165
    this.cgstRate = other.cgstRate;
142
    this.taxRate = other.taxRate;
166
    this.sgstRate = other.sgstRate;
143
  }
167
  }
144
 
168
 
145
  public StateGstRate deepCopy() {
169
  public StateGstRate deepCopy() {
146
    return new StateGstRate(this);
170
    return new StateGstRate(this);
147
  }
171
  }
Line 150... Line 174...
150
  public void clear() {
174
  public void clear() {
151
    setItemIdIsSet(false);
175
    setItemIdIsSet(false);
152
    this.itemId = 0;
176
    this.itemId = 0;
153
    setStateIdIsSet(false);
177
    setStateIdIsSet(false);
154
    this.stateId = 0;
178
    this.stateId = 0;
155
    setTaxRateIsSet(false);
179
    setIgstRateIsSet(false);
-
 
180
    this.igstRate = 0.0;
-
 
181
    setCgstRateIsSet(false);
-
 
182
    this.cgstRate = 0.0;
-
 
183
    setSgstRateIsSet(false);
156
    this.taxRate = 0.0;
184
    this.sgstRate = 0.0;
157
  }
185
  }
158
 
186
 
159
  public long getItemId() {
187
  public long getItemId() {
160
    return this.itemId;
188
    return this.itemId;
161
  }
189
  }
Line 198... Line 226...
198
 
226
 
199
  public void setStateIdIsSet(boolean value) {
227
  public void setStateIdIsSet(boolean value) {
200
    __isset_bit_vector.set(__STATEID_ISSET_ID, value);
228
    __isset_bit_vector.set(__STATEID_ISSET_ID, value);
201
  }
229
  }
202
 
230
 
203
  public double getTaxRate() {
231
  public double getIgstRate() {
-
 
232
    return this.igstRate;
-
 
233
  }
-
 
234
 
-
 
235
  public void setIgstRate(double igstRate) {
-
 
236
    this.igstRate = igstRate;
-
 
237
    setIgstRateIsSet(true);
-
 
238
  }
-
 
239
 
-
 
240
  public void unsetIgstRate() {
-
 
241
    __isset_bit_vector.clear(__IGSTRATE_ISSET_ID);
-
 
242
  }
-
 
243
 
-
 
244
  /** Returns true if field igstRate is set (has been assigned a value) and false otherwise */
-
 
245
  public boolean isSetIgstRate() {
-
 
246
    return __isset_bit_vector.get(__IGSTRATE_ISSET_ID);
-
 
247
  }
-
 
248
 
-
 
249
  public void setIgstRateIsSet(boolean value) {
-
 
250
    __isset_bit_vector.set(__IGSTRATE_ISSET_ID, value);
-
 
251
  }
-
 
252
 
-
 
253
  public double getCgstRate() {
204
    return this.taxRate;
254
    return this.cgstRate;
-
 
255
  }
-
 
256
 
-
 
257
  public void setCgstRate(double cgstRate) {
-
 
258
    this.cgstRate = cgstRate;
-
 
259
    setCgstRateIsSet(true);
-
 
260
  }
-
 
261
 
-
 
262
  public void unsetCgstRate() {
-
 
263
    __isset_bit_vector.clear(__CGSTRATE_ISSET_ID);
-
 
264
  }
-
 
265
 
-
 
266
  /** Returns true if field cgstRate is set (has been assigned a value) and false otherwise */
-
 
267
  public boolean isSetCgstRate() {
-
 
268
    return __isset_bit_vector.get(__CGSTRATE_ISSET_ID);
205
  }
269
  }
206
 
270
 
207
  public void setTaxRate(double taxRate) {
271
  public void setCgstRateIsSet(boolean value) {
208
    this.taxRate = taxRate;
-
 
209
    setTaxRateIsSet(true);
272
    __isset_bit_vector.set(__CGSTRATE_ISSET_ID, value);
210
  }
273
  }
211
 
274
 
212
  public void unsetTaxRate() {
275
  public double getSgstRate() {
213
    __isset_bit_vector.clear(__TAXRATE_ISSET_ID);
276
    return this.sgstRate;
214
  }
277
  }
215
 
278
 
216
  /** Returns true if field taxRate is set (has been assigned a value) and false otherwise */
279
  public void setSgstRate(double sgstRate) {
217
  public boolean isSetTaxRate() {
280
    this.sgstRate = sgstRate;
218
    return __isset_bit_vector.get(__TAXRATE_ISSET_ID);
281
    setSgstRateIsSet(true);
219
  }
282
  }
220
 
283
 
-
 
284
  public void unsetSgstRate() {
-
 
285
    __isset_bit_vector.clear(__SGSTRATE_ISSET_ID);
-
 
286
  }
-
 
287
 
-
 
288
  /** Returns true if field sgstRate is set (has been assigned a value) and false otherwise */
-
 
289
  public boolean isSetSgstRate() {
-
 
290
    return __isset_bit_vector.get(__SGSTRATE_ISSET_ID);
-
 
291
  }
-
 
292
 
221
  public void setTaxRateIsSet(boolean value) {
293
  public void setSgstRateIsSet(boolean value) {
222
    __isset_bit_vector.set(__TAXRATE_ISSET_ID, value);
294
    __isset_bit_vector.set(__SGSTRATE_ISSET_ID, value);
223
  }
295
  }
224
 
296
 
225
  public void setFieldValue(_Fields field, Object value) {
297
  public void setFieldValue(_Fields field, Object value) {
226
    switch (field) {
298
    switch (field) {
227
    case ITEM_ID:
299
    case ITEM_ID:
Line 238... Line 310...
238
      } else {
310
      } else {
239
        setStateId((Long)value);
311
        setStateId((Long)value);
240
      }
312
      }
241
      break;
313
      break;
242
 
314
 
243
    case TAX_RATE:
315
    case IGST_RATE:
-
 
316
      if (value == null) {
-
 
317
        unsetIgstRate();
-
 
318
      } else {
-
 
319
        setIgstRate((Double)value);
-
 
320
      }
-
 
321
      break;
-
 
322
 
-
 
323
    case CGST_RATE:
244
      if (value == null) {
324
      if (value == null) {
245
        unsetTaxRate();
325
        unsetCgstRate();
246
      } else {
326
      } else {
247
        setTaxRate((Double)value);
327
        setCgstRate((Double)value);
-
 
328
      }
-
 
329
      break;
-
 
330
 
-
 
331
    case SGST_RATE:
-
 
332
      if (value == null) {
-
 
333
        unsetSgstRate();
-
 
334
      } else {
-
 
335
        setSgstRate((Double)value);
248
      }
336
      }
249
      break;
337
      break;
250
 
338
 
251
    }
339
    }
252
  }
340
  }
Line 257... Line 345...
257
      return Long.valueOf(getItemId());
345
      return Long.valueOf(getItemId());
258
 
346
 
259
    case STATE_ID:
347
    case STATE_ID:
260
      return Long.valueOf(getStateId());
348
      return Long.valueOf(getStateId());
261
 
349
 
-
 
350
    case IGST_RATE:
-
 
351
      return Double.valueOf(getIgstRate());
-
 
352
 
262
    case TAX_RATE:
353
    case CGST_RATE:
-
 
354
      return Double.valueOf(getCgstRate());
-
 
355
 
-
 
356
    case SGST_RATE:
263
      return Double.valueOf(getTaxRate());
357
      return Double.valueOf(getSgstRate());
264
 
358
 
265
    }
359
    }
266
    throw new IllegalStateException();
360
    throw new IllegalStateException();
267
  }
361
  }
268
 
362
 
Line 275... Line 369...
275
    switch (field) {
369
    switch (field) {
276
    case ITEM_ID:
370
    case ITEM_ID:
277
      return isSetItemId();
371
      return isSetItemId();
278
    case STATE_ID:
372
    case STATE_ID:
279
      return isSetStateId();
373
      return isSetStateId();
-
 
374
    case IGST_RATE:
-
 
375
      return isSetIgstRate();
280
    case TAX_RATE:
376
    case CGST_RATE:
-
 
377
      return isSetCgstRate();
-
 
378
    case SGST_RATE:
281
      return isSetTaxRate();
379
      return isSetSgstRate();
282
    }
380
    }
283
    throw new IllegalStateException();
381
    throw new IllegalStateException();
284
  }
382
  }
285
 
383
 
286
  @Override
384
  @Override
Line 312... Line 410...
312
        return false;
410
        return false;
313
      if (this.stateId != that.stateId)
411
      if (this.stateId != that.stateId)
314
        return false;
412
        return false;
315
    }
413
    }
316
 
414
 
317
    boolean this_present_taxRate = true;
415
    boolean this_present_igstRate = true;
-
 
416
    boolean that_present_igstRate = true;
-
 
417
    if (this_present_igstRate || that_present_igstRate) {
-
 
418
      if (!(this_present_igstRate && that_present_igstRate))
-
 
419
        return false;
-
 
420
      if (this.igstRate != that.igstRate)
-
 
421
        return false;
-
 
422
    }
-
 
423
 
-
 
424
    boolean this_present_cgstRate = true;
318
    boolean that_present_taxRate = true;
425
    boolean that_present_cgstRate = true;
319
    if (this_present_taxRate || that_present_taxRate) {
426
    if (this_present_cgstRate || that_present_cgstRate) {
320
      if (!(this_present_taxRate && that_present_taxRate))
427
      if (!(this_present_cgstRate && that_present_cgstRate))
321
        return false;
428
        return false;
322
      if (this.taxRate != that.taxRate)
429
      if (this.cgstRate != that.cgstRate)
-
 
430
        return false;
-
 
431
    }
-
 
432
 
-
 
433
    boolean this_present_sgstRate = true;
-
 
434
    boolean that_present_sgstRate = true;
-
 
435
    if (this_present_sgstRate || that_present_sgstRate) {
-
 
436
      if (!(this_present_sgstRate && that_present_sgstRate))
-
 
437
        return false;
-
 
438
      if (this.sgstRate != that.sgstRate)
323
        return false;
439
        return false;
324
    }
440
    }
325
 
441
 
326
    return true;
442
    return true;
327
  }
443
  }
Line 357... Line 473...
357
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stateId, typedOther.stateId);
473
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stateId, typedOther.stateId);
358
      if (lastComparison != 0) {
474
      if (lastComparison != 0) {
359
        return lastComparison;
475
        return lastComparison;
360
      }
476
      }
361
    }
477
    }
362
    lastComparison = Boolean.valueOf(isSetTaxRate()).compareTo(typedOther.isSetTaxRate());
478
    lastComparison = Boolean.valueOf(isSetIgstRate()).compareTo(typedOther.isSetIgstRate());
-
 
479
    if (lastComparison != 0) {
-
 
480
      return lastComparison;
-
 
481
    }
-
 
482
    if (isSetIgstRate()) {
-
 
483
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.igstRate, typedOther.igstRate);
-
 
484
      if (lastComparison != 0) {
-
 
485
        return lastComparison;
-
 
486
      }
-
 
487
    }
-
 
488
    lastComparison = Boolean.valueOf(isSetCgstRate()).compareTo(typedOther.isSetCgstRate());
-
 
489
    if (lastComparison != 0) {
-
 
490
      return lastComparison;
-
 
491
    }
-
 
492
    if (isSetCgstRate()) {
-
 
493
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cgstRate, typedOther.cgstRate);
-
 
494
      if (lastComparison != 0) {
-
 
495
        return lastComparison;
-
 
496
      }
-
 
497
    }
-
 
498
    lastComparison = Boolean.valueOf(isSetSgstRate()).compareTo(typedOther.isSetSgstRate());
363
    if (lastComparison != 0) {
499
    if (lastComparison != 0) {
364
      return lastComparison;
500
      return lastComparison;
365
    }
501
    }
366
    if (isSetTaxRate()) {
502
    if (isSetSgstRate()) {
367
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taxRate, typedOther.taxRate);
503
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sgstRate, typedOther.sgstRate);
368
      if (lastComparison != 0) {
504
      if (lastComparison != 0) {
369
        return lastComparison;
505
        return lastComparison;
370
      }
506
      }
371
    }
507
    }
372
    return 0;
508
    return 0;
Line 400... Line 536...
400
            setStateIdIsSet(true);
536
            setStateIdIsSet(true);
401
          } else { 
537
          } else { 
402
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
403
          }
539
          }
404
          break;
540
          break;
405
        case 3: // TAX_RATE
541
        case 3: // IGST_RATE
-
 
542
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
543
            this.igstRate = iprot.readDouble();
-
 
544
            setIgstRateIsSet(true);
-
 
545
          } else { 
-
 
546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
547
          }
-
 
548
          break;
-
 
549
        case 4: // CGST_RATE
-
 
550
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
551
            this.cgstRate = iprot.readDouble();
-
 
552
            setCgstRateIsSet(true);
-
 
553
          } else { 
-
 
554
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
555
          }
-
 
556
          break;
-
 
557
        case 5: // SGST_RATE
406
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
558
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
407
            this.taxRate = iprot.readDouble();
559
            this.sgstRate = iprot.readDouble();
408
            setTaxRateIsSet(true);
560
            setSgstRateIsSet(true);
409
          } else { 
561
          } else { 
410
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
411
          }
563
          }
412
          break;
564
          break;
413
        default:
565
        default:
Line 427... Line 579...
427
    oprot.writeI64(this.itemId);
579
    oprot.writeI64(this.itemId);
428
    oprot.writeFieldEnd();
580
    oprot.writeFieldEnd();
429
    oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
581
    oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
430
    oprot.writeI64(this.stateId);
582
    oprot.writeI64(this.stateId);
431
    oprot.writeFieldEnd();
583
    oprot.writeFieldEnd();
432
    oprot.writeFieldBegin(TAX_RATE_FIELD_DESC);
584
    oprot.writeFieldBegin(IGST_RATE_FIELD_DESC);
-
 
585
    oprot.writeDouble(this.igstRate);
-
 
586
    oprot.writeFieldEnd();
-
 
587
    oprot.writeFieldBegin(CGST_RATE_FIELD_DESC);
-
 
588
    oprot.writeDouble(this.cgstRate);
-
 
589
    oprot.writeFieldEnd();
-
 
590
    oprot.writeFieldBegin(SGST_RATE_FIELD_DESC);
433
    oprot.writeDouble(this.taxRate);
591
    oprot.writeDouble(this.sgstRate);
434
    oprot.writeFieldEnd();
592
    oprot.writeFieldEnd();
435
    oprot.writeFieldStop();
593
    oprot.writeFieldStop();
436
    oprot.writeStructEnd();
594
    oprot.writeStructEnd();
437
  }
595
  }
438
 
596
 
Line 447... Line 605...
447
    if (!first) sb.append(", ");
605
    if (!first) sb.append(", ");
448
    sb.append("stateId:");
606
    sb.append("stateId:");
449
    sb.append(this.stateId);
607
    sb.append(this.stateId);
450
    first = false;
608
    first = false;
451
    if (!first) sb.append(", ");
609
    if (!first) sb.append(", ");
452
    sb.append("taxRate:");
610
    sb.append("igstRate:");
-
 
611
    sb.append(this.igstRate);
-
 
612
    first = false;
-
 
613
    if (!first) sb.append(", ");
-
 
614
    sb.append("cgstRate:");
-
 
615
    sb.append(this.cgstRate);
-
 
616
    first = false;
-
 
617
    if (!first) sb.append(", ");
-
 
618
    sb.append("sgstRate:");
453
    sb.append(this.taxRate);
619
    sb.append(this.sgstRate);
454
    first = false;
620
    first = false;
455
    sb.append(")");
621
    sb.append(")");
456
    return sb.toString();
622
    return sb.toString();
457
  }
623
  }
458
 
624