Subversion Repositories SmartDukaan

Rev

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

Rev 19714 Rev 21844
Line 46... Line 46...
46
  private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)21);
46
  private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)21);
47
  private static final org.apache.thrift.protocol.TField LOGISTICS_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsCost", org.apache.thrift.protocol.TType.DOUBLE, (short)22);
47
  private static final org.apache.thrift.protocol.TField LOGISTICS_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsCost", org.apache.thrift.protocol.TType.DOUBLE, (short)22);
48
  private static final org.apache.thrift.protocol.TField COD_COLLECTION_CHARGES_FIELD_DESC = new org.apache.thrift.protocol.TField("codCollectionCharges", org.apache.thrift.protocol.TType.DOUBLE, (short)23);
48
  private static final org.apache.thrift.protocol.TField COD_COLLECTION_CHARGES_FIELD_DESC = new org.apache.thrift.protocol.TField("codCollectionCharges", org.apache.thrift.protocol.TType.DOUBLE, (short)23);
49
  private static final org.apache.thrift.protocol.TField RETURN_QTY_FIELD_DESC = new org.apache.thrift.protocol.TField("returnQty", org.apache.thrift.protocol.TType.DOUBLE, (short)24);
49
  private static final org.apache.thrift.protocol.TField RETURN_QTY_FIELD_DESC = new org.apache.thrift.protocol.TField("returnQty", org.apache.thrift.protocol.TType.DOUBLE, (short)24);
50
  private static final org.apache.thrift.protocol.TField DAMAGED_EXPIRY_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("damaged_expiry_timestamp", org.apache.thrift.protocol.TType.I64, (short)25);
50
  private static final org.apache.thrift.protocol.TField DAMAGED_EXPIRY_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("damaged_expiry_timestamp", org.apache.thrift.protocol.TType.I64, (short)25);
-
 
51
  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)26);
-
 
52
  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)27);
-
 
53
  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)28);
-
 
54
  private static final org.apache.thrift.protocol.TField HSN_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("hsnCode", org.apache.thrift.protocol.TType.STRING, (short)29);
51
 
55
 
52
  private long id; // required
56
  private long id; // required
53
  private long item_id; // required
57
  private long item_id; // required
54
  private String productGroup; // required
58
  private String productGroup; // required
55
  private String brand; // required
59
  private String brand; // required
Line 72... Line 76...
72
  private double nlc; // required
76
  private double nlc; // required
73
  private double logisticsCost; // required
77
  private double logisticsCost; // required
74
  private double codCollectionCharges; // required
78
  private double codCollectionCharges; // required
75
  private double returnQty; // required
79
  private double returnQty; // required
76
  private long damaged_expiry_timestamp; // required
80
  private long damaged_expiry_timestamp; // required
-
 
81
  private double igstRate; // required
-
 
82
  private double cgstRate; // required
-
 
83
  private double sgstRate; // required
-
 
84
  private String hsnCode; // required
77
 
85
 
78
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
86
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
79
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
87
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
80
    ID((short)1, "id"),
88
    ID((short)1, "id"),
81
    ITEM_ID((short)2, "item_id"),
89
    ITEM_ID((short)2, "item_id"),
Line 99... Line 107...
99
    VAT_RATE((short)20, "vatRate"),
107
    VAT_RATE((short)20, "vatRate"),
100
    NLC((short)21, "nlc"),
108
    NLC((short)21, "nlc"),
101
    LOGISTICS_COST((short)22, "logisticsCost"),
109
    LOGISTICS_COST((short)22, "logisticsCost"),
102
    COD_COLLECTION_CHARGES((short)23, "codCollectionCharges"),
110
    COD_COLLECTION_CHARGES((short)23, "codCollectionCharges"),
103
    RETURN_QTY((short)24, "returnQty"),
111
    RETURN_QTY((short)24, "returnQty"),
104
    DAMAGED_EXPIRY_TIMESTAMP((short)25, "damaged_expiry_timestamp");
112
    DAMAGED_EXPIRY_TIMESTAMP((short)25, "damaged_expiry_timestamp"),
-
 
113
    IGST_RATE((short)26, "igstRate"),
-
 
114
    CGST_RATE((short)27, "cgstRate"),
-
 
115
    SGST_RATE((short)28, "sgstRate"),
-
 
116
    HSN_CODE((short)29, "hsnCode");
105
 
117
 
106
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
118
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
107
 
119
 
108
    static {
120
    static {
109
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
121
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 164... Line 176...
164
          return COD_COLLECTION_CHARGES;
176
          return COD_COLLECTION_CHARGES;
165
        case 24: // RETURN_QTY
177
        case 24: // RETURN_QTY
166
          return RETURN_QTY;
178
          return RETURN_QTY;
167
        case 25: // DAMAGED_EXPIRY_TIMESTAMP
179
        case 25: // DAMAGED_EXPIRY_TIMESTAMP
168
          return DAMAGED_EXPIRY_TIMESTAMP;
180
          return DAMAGED_EXPIRY_TIMESTAMP;
-
 
181
        case 26: // IGST_RATE
-
 
182
          return IGST_RATE;
-
 
183
        case 27: // CGST_RATE
-
 
184
          return CGST_RATE;
-
 
185
        case 28: // SGST_RATE
-
 
186
          return SGST_RATE;
-
 
187
        case 29: // HSN_CODE
-
 
188
          return HSN_CODE;
169
        default:
189
        default:
170
          return null;
190
          return null;
171
      }
191
      }
172
    }
192
    }
173
 
193
 
Line 220... Line 240...
220
  private static final int __NLC_ISSET_ID = 11;
240
  private static final int __NLC_ISSET_ID = 11;
221
  private static final int __LOGISTICSCOST_ISSET_ID = 12;
241
  private static final int __LOGISTICSCOST_ISSET_ID = 12;
222
  private static final int __CODCOLLECTIONCHARGES_ISSET_ID = 13;
242
  private static final int __CODCOLLECTIONCHARGES_ISSET_ID = 13;
223
  private static final int __RETURNQTY_ISSET_ID = 14;
243
  private static final int __RETURNQTY_ISSET_ID = 14;
224
  private static final int __DAMAGED_EXPIRY_TIMESTAMP_ISSET_ID = 15;
244
  private static final int __DAMAGED_EXPIRY_TIMESTAMP_ISSET_ID = 15;
-
 
245
  private static final int __IGSTRATE_ISSET_ID = 16;
-
 
246
  private static final int __CGSTRATE_ISSET_ID = 17;
-
 
247
  private static final int __SGSTRATE_ISSET_ID = 18;
225
  private BitSet __isset_bit_vector = new BitSet(16);
248
  private BitSet __isset_bit_vector = new BitSet(19);
226
 
249
 
227
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
250
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
228
  static {
251
  static {
229
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
252
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
230
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
253
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 275... Line 298...
275
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
298
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
276
    tmpMap.put(_Fields.RETURN_QTY, new org.apache.thrift.meta_data.FieldMetaData("returnQty", org.apache.thrift.TFieldRequirementType.DEFAULT, 
299
    tmpMap.put(_Fields.RETURN_QTY, new org.apache.thrift.meta_data.FieldMetaData("returnQty", org.apache.thrift.TFieldRequirementType.DEFAULT, 
277
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
300
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
278
    tmpMap.put(_Fields.DAMAGED_EXPIRY_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("damaged_expiry_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
301
    tmpMap.put(_Fields.DAMAGED_EXPIRY_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("damaged_expiry_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
279
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
302
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
303
    tmpMap.put(_Fields.IGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("igstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
304
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
305
    tmpMap.put(_Fields.CGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("cgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
306
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
307
    tmpMap.put(_Fields.SGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("sgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
308
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
309
    tmpMap.put(_Fields.HSN_CODE, new org.apache.thrift.meta_data.FieldMetaData("hsnCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
310
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
280
    metaDataMap = Collections.unmodifiableMap(tmpMap);
311
    metaDataMap = Collections.unmodifiableMap(tmpMap);
281
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
312
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
282
  }
313
  }
283
 
314
 
284
  public LineItem() {
315
  public LineItem() {
Line 304... Line 335...
304
    double vatRate,
335
    double vatRate,
305
    double nlc,
336
    double nlc,
306
    double logisticsCost,
337
    double logisticsCost,
307
    double codCollectionCharges,
338
    double codCollectionCharges,
308
    double returnQty,
339
    double returnQty,
309
    long damaged_expiry_timestamp)
340
    long damaged_expiry_timestamp,
-
 
341
    double igstRate,
-
 
342
    double cgstRate,
-
 
343
    double sgstRate,
-
 
344
    String hsnCode)
310
  {
345
  {
311
    this();
346
    this();
312
    this.id = id;
347
    this.id = id;
313
    setIdIsSet(true);
348
    setIdIsSet(true);
314
    this.item_id = item_id;
349
    this.item_id = item_id;
Line 345... Line 380...
345
    setCodCollectionChargesIsSet(true);
380
    setCodCollectionChargesIsSet(true);
346
    this.returnQty = returnQty;
381
    this.returnQty = returnQty;
347
    setReturnQtyIsSet(true);
382
    setReturnQtyIsSet(true);
348
    this.damaged_expiry_timestamp = damaged_expiry_timestamp;
383
    this.damaged_expiry_timestamp = damaged_expiry_timestamp;
349
    setDamaged_expiry_timestampIsSet(true);
384
    setDamaged_expiry_timestampIsSet(true);
-
 
385
    this.igstRate = igstRate;
-
 
386
    setIgstRateIsSet(true);
-
 
387
    this.cgstRate = cgstRate;
-
 
388
    setCgstRateIsSet(true);
-
 
389
    this.sgstRate = sgstRate;
-
 
390
    setSgstRateIsSet(true);
-
 
391
    this.hsnCode = hsnCode;
350
  }
392
  }
351
 
393
 
352
  /**
394
  /**
353
   * Performs a deep copy on <i>other</i>.
395
   * Performs a deep copy on <i>other</i>.
354
   */
396
   */
Line 396... Line 438...
396
    this.nlc = other.nlc;
438
    this.nlc = other.nlc;
397
    this.logisticsCost = other.logisticsCost;
439
    this.logisticsCost = other.logisticsCost;
398
    this.codCollectionCharges = other.codCollectionCharges;
440
    this.codCollectionCharges = other.codCollectionCharges;
399
    this.returnQty = other.returnQty;
441
    this.returnQty = other.returnQty;
400
    this.damaged_expiry_timestamp = other.damaged_expiry_timestamp;
442
    this.damaged_expiry_timestamp = other.damaged_expiry_timestamp;
-
 
443
    this.igstRate = other.igstRate;
-
 
444
    this.cgstRate = other.cgstRate;
-
 
445
    this.sgstRate = other.sgstRate;
-
 
446
    if (other.isSetHsnCode()) {
-
 
447
      this.hsnCode = other.hsnCode;
-
 
448
    }
401
  }
449
  }
402
 
450
 
403
  public LineItem deepCopy() {
451
  public LineItem deepCopy() {
404
    return new LineItem(this);
452
    return new LineItem(this);
405
  }
453
  }
Line 445... Line 493...
445
    this.codCollectionCharges = 0.0;
493
    this.codCollectionCharges = 0.0;
446
    setReturnQtyIsSet(false);
494
    setReturnQtyIsSet(false);
447
    this.returnQty = 0.0;
495
    this.returnQty = 0.0;
448
    setDamaged_expiry_timestampIsSet(false);
496
    setDamaged_expiry_timestampIsSet(false);
449
    this.damaged_expiry_timestamp = 0;
497
    this.damaged_expiry_timestamp = 0;
-
 
498
    setIgstRateIsSet(false);
-
 
499
    this.igstRate = 0.0;
-
 
500
    setCgstRateIsSet(false);
-
 
501
    this.cgstRate = 0.0;
-
 
502
    setSgstRateIsSet(false);
-
 
503
    this.sgstRate = 0.0;
-
 
504
    this.hsnCode = null;
450
  }
505
  }
451
 
506
 
452
  public long getId() {
507
  public long getId() {
453
    return this.id;
508
    return this.id;
454
  }
509
  }
Line 1006... Line 1061...
1006
 
1061
 
1007
  public void setDamaged_expiry_timestampIsSet(boolean value) {
1062
  public void setDamaged_expiry_timestampIsSet(boolean value) {
1008
    __isset_bit_vector.set(__DAMAGED_EXPIRY_TIMESTAMP_ISSET_ID, value);
1063
    __isset_bit_vector.set(__DAMAGED_EXPIRY_TIMESTAMP_ISSET_ID, value);
1009
  }
1064
  }
1010
 
1065
 
-
 
1066
  public double getIgstRate() {
-
 
1067
    return this.igstRate;
-
 
1068
  }
-
 
1069
 
-
 
1070
  public void setIgstRate(double igstRate) {
-
 
1071
    this.igstRate = igstRate;
-
 
1072
    setIgstRateIsSet(true);
-
 
1073
  }
-
 
1074
 
-
 
1075
  public void unsetIgstRate() {
-
 
1076
    __isset_bit_vector.clear(__IGSTRATE_ISSET_ID);
-
 
1077
  }
-
 
1078
 
-
 
1079
  /** Returns true if field igstRate is set (has been assigned a value) and false otherwise */
-
 
1080
  public boolean isSetIgstRate() {
-
 
1081
    return __isset_bit_vector.get(__IGSTRATE_ISSET_ID);
-
 
1082
  }
-
 
1083
 
-
 
1084
  public void setIgstRateIsSet(boolean value) {
-
 
1085
    __isset_bit_vector.set(__IGSTRATE_ISSET_ID, value);
-
 
1086
  }
-
 
1087
 
-
 
1088
  public double getCgstRate() {
-
 
1089
    return this.cgstRate;
-
 
1090
  }
-
 
1091
 
-
 
1092
  public void setCgstRate(double cgstRate) {
-
 
1093
    this.cgstRate = cgstRate;
-
 
1094
    setCgstRateIsSet(true);
-
 
1095
  }
-
 
1096
 
-
 
1097
  public void unsetCgstRate() {
-
 
1098
    __isset_bit_vector.clear(__CGSTRATE_ISSET_ID);
-
 
1099
  }
-
 
1100
 
-
 
1101
  /** Returns true if field cgstRate is set (has been assigned a value) and false otherwise */
-
 
1102
  public boolean isSetCgstRate() {
-
 
1103
    return __isset_bit_vector.get(__CGSTRATE_ISSET_ID);
-
 
1104
  }
-
 
1105
 
-
 
1106
  public void setCgstRateIsSet(boolean value) {
-
 
1107
    __isset_bit_vector.set(__CGSTRATE_ISSET_ID, value);
-
 
1108
  }
-
 
1109
 
-
 
1110
  public double getSgstRate() {
-
 
1111
    return this.sgstRate;
-
 
1112
  }
-
 
1113
 
-
 
1114
  public void setSgstRate(double sgstRate) {
-
 
1115
    this.sgstRate = sgstRate;
-
 
1116
    setSgstRateIsSet(true);
-
 
1117
  }
-
 
1118
 
-
 
1119
  public void unsetSgstRate() {
-
 
1120
    __isset_bit_vector.clear(__SGSTRATE_ISSET_ID);
-
 
1121
  }
-
 
1122
 
-
 
1123
  /** Returns true if field sgstRate is set (has been assigned a value) and false otherwise */
-
 
1124
  public boolean isSetSgstRate() {
-
 
1125
    return __isset_bit_vector.get(__SGSTRATE_ISSET_ID);
-
 
1126
  }
-
 
1127
 
-
 
1128
  public void setSgstRateIsSet(boolean value) {
-
 
1129
    __isset_bit_vector.set(__SGSTRATE_ISSET_ID, value);
-
 
1130
  }
-
 
1131
 
-
 
1132
  public String getHsnCode() {
-
 
1133
    return this.hsnCode;
-
 
1134
  }
-
 
1135
 
-
 
1136
  public void setHsnCode(String hsnCode) {
-
 
1137
    this.hsnCode = hsnCode;
-
 
1138
  }
-
 
1139
 
-
 
1140
  public void unsetHsnCode() {
-
 
1141
    this.hsnCode = null;
-
 
1142
  }
-
 
1143
 
-
 
1144
  /** Returns true if field hsnCode is set (has been assigned a value) and false otherwise */
-
 
1145
  public boolean isSetHsnCode() {
-
 
1146
    return this.hsnCode != null;
-
 
1147
  }
-
 
1148
 
-
 
1149
  public void setHsnCodeIsSet(boolean value) {
-
 
1150
    if (!value) {
-
 
1151
      this.hsnCode = null;
-
 
1152
    }
-
 
1153
  }
-
 
1154
 
1011
  public void setFieldValue(_Fields field, Object value) {
1155
  public void setFieldValue(_Fields field, Object value) {
1012
    switch (field) {
1156
    switch (field) {
1013
    case ID:
1157
    case ID:
1014
      if (value == null) {
1158
      if (value == null) {
1015
        unsetId();
1159
        unsetId();
Line 1208... Line 1352...
1208
      } else {
1352
      } else {
1209
        setDamaged_expiry_timestamp((Long)value);
1353
        setDamaged_expiry_timestamp((Long)value);
1210
      }
1354
      }
1211
      break;
1355
      break;
1212
 
1356
 
-
 
1357
    case IGST_RATE:
-
 
1358
      if (value == null) {
-
 
1359
        unsetIgstRate();
-
 
1360
      } else {
-
 
1361
        setIgstRate((Double)value);
-
 
1362
      }
-
 
1363
      break;
-
 
1364
 
-
 
1365
    case CGST_RATE:
-
 
1366
      if (value == null) {
-
 
1367
        unsetCgstRate();
-
 
1368
      } else {
-
 
1369
        setCgstRate((Double)value);
-
 
1370
      }
-
 
1371
      break;
-
 
1372
 
-
 
1373
    case SGST_RATE:
-
 
1374
      if (value == null) {
-
 
1375
        unsetSgstRate();
-
 
1376
      } else {
-
 
1377
        setSgstRate((Double)value);
-
 
1378
      }
-
 
1379
      break;
-
 
1380
 
-
 
1381
    case HSN_CODE:
-
 
1382
      if (value == null) {
-
 
1383
        unsetHsnCode();
-
 
1384
      } else {
-
 
1385
        setHsnCode((String)value);
-
 
1386
      }
-
 
1387
      break;
-
 
1388
 
1213
    }
1389
    }
1214
  }
1390
  }
1215
 
1391
 
1216
  public Object getFieldValue(_Fields field) {
1392
  public Object getFieldValue(_Fields field) {
1217
    switch (field) {
1393
    switch (field) {
Line 1288... Line 1464...
1288
      return Double.valueOf(getReturnQty());
1464
      return Double.valueOf(getReturnQty());
1289
 
1465
 
1290
    case DAMAGED_EXPIRY_TIMESTAMP:
1466
    case DAMAGED_EXPIRY_TIMESTAMP:
1291
      return Long.valueOf(getDamaged_expiry_timestamp());
1467
      return Long.valueOf(getDamaged_expiry_timestamp());
1292
 
1468
 
-
 
1469
    case IGST_RATE:
-
 
1470
      return Double.valueOf(getIgstRate());
-
 
1471
 
-
 
1472
    case CGST_RATE:
-
 
1473
      return Double.valueOf(getCgstRate());
-
 
1474
 
-
 
1475
    case SGST_RATE:
-
 
1476
      return Double.valueOf(getSgstRate());
-
 
1477
 
-
 
1478
    case HSN_CODE:
-
 
1479
      return getHsnCode();
-
 
1480
 
1293
    }
1481
    }
1294
    throw new IllegalStateException();
1482
    throw new IllegalStateException();
1295
  }
1483
  }
1296
 
1484
 
1297
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1485
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 1349... Line 1537...
1349
      return isSetCodCollectionCharges();
1537
      return isSetCodCollectionCharges();
1350
    case RETURN_QTY:
1538
    case RETURN_QTY:
1351
      return isSetReturnQty();
1539
      return isSetReturnQty();
1352
    case DAMAGED_EXPIRY_TIMESTAMP:
1540
    case DAMAGED_EXPIRY_TIMESTAMP:
1353
      return isSetDamaged_expiry_timestamp();
1541
      return isSetDamaged_expiry_timestamp();
-
 
1542
    case IGST_RATE:
-
 
1543
      return isSetIgstRate();
-
 
1544
    case CGST_RATE:
-
 
1545
      return isSetCgstRate();
-
 
1546
    case SGST_RATE:
-
 
1547
      return isSetSgstRate();
-
 
1548
    case HSN_CODE:
-
 
1549
      return isSetHsnCode();
1354
    }
1550
    }
1355
    throw new IllegalStateException();
1551
    throw new IllegalStateException();
1356
  }
1552
  }
1357
 
1553
 
1358
  @Override
1554
  @Override
Line 1591... Line 1787...
1591
        return false;
1787
        return false;
1592
      if (this.damaged_expiry_timestamp != that.damaged_expiry_timestamp)
1788
      if (this.damaged_expiry_timestamp != that.damaged_expiry_timestamp)
1593
        return false;
1789
        return false;
1594
    }
1790
    }
1595
 
1791
 
-
 
1792
    boolean this_present_igstRate = true;
-
 
1793
    boolean that_present_igstRate = true;
-
 
1794
    if (this_present_igstRate || that_present_igstRate) {
-
 
1795
      if (!(this_present_igstRate && that_present_igstRate))
-
 
1796
        return false;
-
 
1797
      if (this.igstRate != that.igstRate)
-
 
1798
        return false;
-
 
1799
    }
-
 
1800
 
-
 
1801
    boolean this_present_cgstRate = true;
-
 
1802
    boolean that_present_cgstRate = true;
-
 
1803
    if (this_present_cgstRate || that_present_cgstRate) {
-
 
1804
      if (!(this_present_cgstRate && that_present_cgstRate))
-
 
1805
        return false;
-
 
1806
      if (this.cgstRate != that.cgstRate)
-
 
1807
        return false;
-
 
1808
    }
-
 
1809
 
-
 
1810
    boolean this_present_sgstRate = true;
-
 
1811
    boolean that_present_sgstRate = true;
-
 
1812
    if (this_present_sgstRate || that_present_sgstRate) {
-
 
1813
      if (!(this_present_sgstRate && that_present_sgstRate))
-
 
1814
        return false;
-
 
1815
      if (this.sgstRate != that.sgstRate)
-
 
1816
        return false;
-
 
1817
    }
-
 
1818
 
-
 
1819
    boolean this_present_hsnCode = true && this.isSetHsnCode();
-
 
1820
    boolean that_present_hsnCode = true && that.isSetHsnCode();
-
 
1821
    if (this_present_hsnCode || that_present_hsnCode) {
-
 
1822
      if (!(this_present_hsnCode && that_present_hsnCode))
-
 
1823
        return false;
-
 
1824
      if (!this.hsnCode.equals(that.hsnCode))
-
 
1825
        return false;
-
 
1826
    }
-
 
1827
 
1596
    return true;
1828
    return true;
1597
  }
1829
  }
1598
 
1830
 
1599
  @Override
1831
  @Override
1600
  public int hashCode() {
1832
  public int hashCode() {
Line 1857... Line 2089...
1857
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.damaged_expiry_timestamp, typedOther.damaged_expiry_timestamp);
2089
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.damaged_expiry_timestamp, typedOther.damaged_expiry_timestamp);
1858
      if (lastComparison != 0) {
2090
      if (lastComparison != 0) {
1859
        return lastComparison;
2091
        return lastComparison;
1860
      }
2092
      }
1861
    }
2093
    }
-
 
2094
    lastComparison = Boolean.valueOf(isSetIgstRate()).compareTo(typedOther.isSetIgstRate());
-
 
2095
    if (lastComparison != 0) {
-
 
2096
      return lastComparison;
-
 
2097
    }
-
 
2098
    if (isSetIgstRate()) {
-
 
2099
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.igstRate, typedOther.igstRate);
-
 
2100
      if (lastComparison != 0) {
-
 
2101
        return lastComparison;
-
 
2102
      }
-
 
2103
    }
-
 
2104
    lastComparison = Boolean.valueOf(isSetCgstRate()).compareTo(typedOther.isSetCgstRate());
-
 
2105
    if (lastComparison != 0) {
-
 
2106
      return lastComparison;
-
 
2107
    }
-
 
2108
    if (isSetCgstRate()) {
-
 
2109
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cgstRate, typedOther.cgstRate);
-
 
2110
      if (lastComparison != 0) {
-
 
2111
        return lastComparison;
-
 
2112
      }
-
 
2113
    }
-
 
2114
    lastComparison = Boolean.valueOf(isSetSgstRate()).compareTo(typedOther.isSetSgstRate());
-
 
2115
    if (lastComparison != 0) {
-
 
2116
      return lastComparison;
-
 
2117
    }
-
 
2118
    if (isSetSgstRate()) {
-
 
2119
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sgstRate, typedOther.sgstRate);
-
 
2120
      if (lastComparison != 0) {
-
 
2121
        return lastComparison;
-
 
2122
      }
-
 
2123
    }
-
 
2124
    lastComparison = Boolean.valueOf(isSetHsnCode()).compareTo(typedOther.isSetHsnCode());
-
 
2125
    if (lastComparison != 0) {
-
 
2126
      return lastComparison;
-
 
2127
    }
-
 
2128
    if (isSetHsnCode()) {
-
 
2129
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsnCode, typedOther.hsnCode);
-
 
2130
      if (lastComparison != 0) {
-
 
2131
        return lastComparison;
-
 
2132
      }
-
 
2133
    }
1862
    return 0;
2134
    return 0;
1863
  }
2135
  }
1864
 
2136
 
1865
  public _Fields fieldForId(int fieldId) {
2137
  public _Fields fieldForId(int fieldId) {
1866
    return _Fields.findByThriftId(fieldId);
2138
    return _Fields.findByThriftId(fieldId);
Line 2065... Line 2337...
2065
            setDamaged_expiry_timestampIsSet(true);
2337
            setDamaged_expiry_timestampIsSet(true);
2066
          } else { 
2338
          } else { 
2067
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2339
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2068
          }
2340
          }
2069
          break;
2341
          break;
-
 
2342
        case 26: // IGST_RATE
-
 
2343
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
2344
            this.igstRate = iprot.readDouble();
-
 
2345
            setIgstRateIsSet(true);
-
 
2346
          } else { 
-
 
2347
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2348
          }
-
 
2349
          break;
-
 
2350
        case 27: // CGST_RATE
-
 
2351
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
2352
            this.cgstRate = iprot.readDouble();
-
 
2353
            setCgstRateIsSet(true);
-
 
2354
          } else { 
-
 
2355
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2356
          }
-
 
2357
          break;
-
 
2358
        case 28: // SGST_RATE
-
 
2359
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
2360
            this.sgstRate = iprot.readDouble();
-
 
2361
            setSgstRateIsSet(true);
-
 
2362
          } else { 
-
 
2363
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2364
          }
-
 
2365
          break;
-
 
2366
        case 29: // HSN_CODE
-
 
2367
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
2368
            this.hsnCode = iprot.readString();
-
 
2369
          } else { 
-
 
2370
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2371
          }
-
 
2372
          break;
2070
        default:
2373
        default:
2071
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2374
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2072
      }
2375
      }
2073
      iprot.readFieldEnd();
2376
      iprot.readFieldEnd();
2074
    }
2377
    }
Line 2177... Line 2480...
2177
    oprot.writeDouble(this.returnQty);
2480
    oprot.writeDouble(this.returnQty);
2178
    oprot.writeFieldEnd();
2481
    oprot.writeFieldEnd();
2179
    oprot.writeFieldBegin(DAMAGED_EXPIRY_TIMESTAMP_FIELD_DESC);
2482
    oprot.writeFieldBegin(DAMAGED_EXPIRY_TIMESTAMP_FIELD_DESC);
2180
    oprot.writeI64(this.damaged_expiry_timestamp);
2483
    oprot.writeI64(this.damaged_expiry_timestamp);
2181
    oprot.writeFieldEnd();
2484
    oprot.writeFieldEnd();
-
 
2485
    oprot.writeFieldBegin(IGST_RATE_FIELD_DESC);
-
 
2486
    oprot.writeDouble(this.igstRate);
-
 
2487
    oprot.writeFieldEnd();
-
 
2488
    oprot.writeFieldBegin(CGST_RATE_FIELD_DESC);
-
 
2489
    oprot.writeDouble(this.cgstRate);
-
 
2490
    oprot.writeFieldEnd();
-
 
2491
    oprot.writeFieldBegin(SGST_RATE_FIELD_DESC);
-
 
2492
    oprot.writeDouble(this.sgstRate);
-
 
2493
    oprot.writeFieldEnd();
-
 
2494
    if (this.hsnCode != null) {
-
 
2495
      oprot.writeFieldBegin(HSN_CODE_FIELD_DESC);
-
 
2496
      oprot.writeString(this.hsnCode);
-
 
2497
      oprot.writeFieldEnd();
-
 
2498
    }
2182
    oprot.writeFieldStop();
2499
    oprot.writeFieldStop();
2183
    oprot.writeStructEnd();
2500
    oprot.writeStructEnd();
2184
  }
2501
  }
2185
 
2502
 
2186
  @Override
2503
  @Override
Line 2327... Line 2644...
2327
    first = false;
2644
    first = false;
2328
    if (!first) sb.append(", ");
2645
    if (!first) sb.append(", ");
2329
    sb.append("damaged_expiry_timestamp:");
2646
    sb.append("damaged_expiry_timestamp:");
2330
    sb.append(this.damaged_expiry_timestamp);
2647
    sb.append(this.damaged_expiry_timestamp);
2331
    first = false;
2648
    first = false;
-
 
2649
    if (!first) sb.append(", ");
-
 
2650
    sb.append("igstRate:");
-
 
2651
    sb.append(this.igstRate);
-
 
2652
    first = false;
-
 
2653
    if (!first) sb.append(", ");
-
 
2654
    sb.append("cgstRate:");
-
 
2655
    sb.append(this.cgstRate);
-
 
2656
    first = false;
-
 
2657
    if (!first) sb.append(", ");
-
 
2658
    sb.append("sgstRate:");
-
 
2659
    sb.append(this.sgstRate);
-
 
2660
    first = false;
-
 
2661
    if (!first) sb.append(", ");
-
 
2662
    sb.append("hsnCode:");
-
 
2663
    if (this.hsnCode == null) {
-
 
2664
      sb.append("null");
-
 
2665
    } else {
-
 
2666
      sb.append(this.hsnCode);
-
 
2667
    }
-
 
2668
    first = false;
2332
    sb.append(")");
2669
    sb.append(")");
2333
    return sb.toString();
2670
    return sb.toString();
2334
  }
2671
  }
2335
 
2672
 
2336
  public void validate() throws org.apache.thrift.TException {
2673
  public void validate() throws org.apache.thrift.TException {