Subversion Repositories SmartDukaan

Rev

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

Rev 6392 Rev 6410
Line 29... Line 29...
29
  private static final org.apache.thrift.protocol.TField TENURE_FIELD_DESC = new org.apache.thrift.protocol.TField("tenure", org.apache.thrift.protocol.TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField TENURE_FIELD_DESC = new org.apache.thrift.protocol.TField("tenure", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField BANK_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("bankName", org.apache.thrift.protocol.TType.STRING, (short)5);
30
  private static final org.apache.thrift.protocol.TField BANK_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("bankName", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField MIN_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("minAmount", org.apache.thrift.protocol.TType.I64, (short)6);
31
  private static final org.apache.thrift.protocol.TField MIN_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("minAmount", org.apache.thrift.protocol.TType.I64, (short)6);
32
  private static final org.apache.thrift.protocol.TField TENURE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("tenureDescription", org.apache.thrift.protocol.TType.STRING, (short)7);
32
  private static final org.apache.thrift.protocol.TField TENURE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("tenureDescription", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField CHARGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("chargeType", org.apache.thrift.protocol.TType.I32, (short)8);
33
  private static final org.apache.thrift.protocol.TField CHARGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("chargeType", org.apache.thrift.protocol.TType.I32, (short)8);
34
  private static final org.apache.thrift.protocol.TField CHARGE_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("chargeValue", org.apache.thrift.protocol.TType.I64, (short)9);
34
  private static final org.apache.thrift.protocol.TField CHARGE_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("chargeValue", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
 
35
 
36
  private long id; // required
36
  private long id; // required
37
  private long gatewayId; // required
37
  private long gatewayId; // required
38
  private long bankId; // required
38
  private long bankId; // required
39
  private long tenure; // required
39
  private long tenure; // required
40
  private String bankName; // required
40
  private String bankName; // required
41
  private long minAmount; // required
41
  private long minAmount; // required
42
  private String tenureDescription; // required
42
  private String tenureDescription; // required
43
  private EmiChargeType chargeType; // required
43
  private EmiChargeType chargeType; // required
44
  private long chargeValue; // required
44
  private double chargeValue; // required
45
 
45
 
46
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48
    ID((short)1, "id"),
48
    ID((short)1, "id"),
49
    GATEWAY_ID((short)2, "gatewayId"),
49
    GATEWAY_ID((short)2, "gatewayId"),
Line 156... Line 156...
156
    tmpMap.put(_Fields.TENURE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("tenureDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, 
156
    tmpMap.put(_Fields.TENURE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("tenureDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, 
157
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
157
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
158
    tmpMap.put(_Fields.CHARGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("chargeType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
158
    tmpMap.put(_Fields.CHARGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("chargeType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
159
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, EmiChargeType.class)));
159
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, EmiChargeType.class)));
160
    tmpMap.put(_Fields.CHARGE_VALUE, new org.apache.thrift.meta_data.FieldMetaData("chargeValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
160
    tmpMap.put(_Fields.CHARGE_VALUE, new org.apache.thrift.meta_data.FieldMetaData("chargeValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
161
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
161
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
162
    metaDataMap = Collections.unmodifiableMap(tmpMap);
162
    metaDataMap = Collections.unmodifiableMap(tmpMap);
163
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(EmiScheme.class, metaDataMap);
163
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(EmiScheme.class, metaDataMap);
164
  }
164
  }
165
 
165
 
166
  public EmiScheme() {
166
  public EmiScheme() {
Line 173... Line 173...
173
    long tenure,
173
    long tenure,
174
    String bankName,
174
    String bankName,
175
    long minAmount,
175
    long minAmount,
176
    String tenureDescription,
176
    String tenureDescription,
177
    EmiChargeType chargeType,
177
    EmiChargeType chargeType,
178
    long chargeValue)
178
    double chargeValue)
179
  {
179
  {
180
    this();
180
    this();
181
    this.id = id;
181
    this.id = id;
182
    setIdIsSet(true);
182
    setIdIsSet(true);
183
    this.gatewayId = gatewayId;
183
    this.gatewayId = gatewayId;
Line 236... Line 236...
236
    setMinAmountIsSet(false);
236
    setMinAmountIsSet(false);
237
    this.minAmount = 0;
237
    this.minAmount = 0;
238
    this.tenureDescription = null;
238
    this.tenureDescription = null;
239
    this.chargeType = null;
239
    this.chargeType = null;
240
    setChargeValueIsSet(false);
240
    setChargeValueIsSet(false);
241
    this.chargeValue = 0;
241
    this.chargeValue = 0.0;
242
  }
242
  }
243
 
243
 
244
  public long getId() {
244
  public long getId() {
245
    return this.id;
245
    return this.id;
246
  }
246
  }
Line 426... Line 426...
426
    if (!value) {
426
    if (!value) {
427
      this.chargeType = null;
427
      this.chargeType = null;
428
    }
428
    }
429
  }
429
  }
430
 
430
 
431
  public long getChargeValue() {
431
  public double getChargeValue() {
432
    return this.chargeValue;
432
    return this.chargeValue;
433
  }
433
  }
434
 
434
 
435
  public void setChargeValue(long chargeValue) {
435
  public void setChargeValue(double chargeValue) {
436
    this.chargeValue = chargeValue;
436
    this.chargeValue = chargeValue;
437
    setChargeValueIsSet(true);
437
    setChargeValueIsSet(true);
438
  }
438
  }
439
 
439
 
440
  public void unsetChargeValue() {
440
  public void unsetChargeValue() {
Line 518... Line 518...
518
 
518
 
519
    case CHARGE_VALUE:
519
    case CHARGE_VALUE:
520
      if (value == null) {
520
      if (value == null) {
521
        unsetChargeValue();
521
        unsetChargeValue();
522
      } else {
522
      } else {
523
        setChargeValue((Long)value);
523
        setChargeValue((Double)value);
524
      }
524
      }
525
      break;
525
      break;
526
 
526
 
527
    }
527
    }
528
  }
528
  }
Line 552... Line 552...
552
 
552
 
553
    case CHARGE_TYPE:
553
    case CHARGE_TYPE:
554
      return getChargeType();
554
      return getChargeType();
555
 
555
 
556
    case CHARGE_VALUE:
556
    case CHARGE_VALUE:
557
      return Long.valueOf(getChargeValue());
557
      return Double.valueOf(getChargeValue());
558
 
558
 
559
    }
559
    }
560
    throw new IllegalStateException();
560
    throw new IllegalStateException();
561
  }
561
  }
562
 
562
 
Line 866... Line 866...
866
          } else { 
866
          } else { 
867
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
867
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
868
          }
868
          }
869
          break;
869
          break;
870
        case 9: // CHARGE_VALUE
870
        case 9: // CHARGE_VALUE
871
          if (field.type == org.apache.thrift.protocol.TType.I64) {
871
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
872
            this.chargeValue = iprot.readI64();
872
            this.chargeValue = iprot.readDouble();
873
            setChargeValueIsSet(true);
873
            setChargeValueIsSet(true);
874
          } else { 
874
          } else { 
875
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
875
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
876
          }
876
          }
877
          break;
877
          break;
Line 917... Line 917...
917
      oprot.writeFieldBegin(CHARGE_TYPE_FIELD_DESC);
917
      oprot.writeFieldBegin(CHARGE_TYPE_FIELD_DESC);
918
      oprot.writeI32(this.chargeType.getValue());
918
      oprot.writeI32(this.chargeType.getValue());
919
      oprot.writeFieldEnd();
919
      oprot.writeFieldEnd();
920
    }
920
    }
921
    oprot.writeFieldBegin(CHARGE_VALUE_FIELD_DESC);
921
    oprot.writeFieldBegin(CHARGE_VALUE_FIELD_DESC);
922
    oprot.writeI64(this.chargeValue);
922
    oprot.writeDouble(this.chargeValue);
923
    oprot.writeFieldEnd();
923
    oprot.writeFieldEnd();
924
    oprot.writeFieldStop();
924
    oprot.writeFieldStop();
925
    oprot.writeStructEnd();
925
    oprot.writeStructEnd();
926
  }
926
  }
927
 
927