Subversion Repositories SmartDukaan

Rev

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

Rev 21134 Rev 21363
Line 1274... Line 1274...
1274
 
1274
 
1275
    public List<Long> getStatsForAssociates(String associateEmail) throws org.apache.thrift.TException;
1275
    public List<Long> getStatsForAssociates(String associateEmail) throws org.apache.thrift.TException;
1276
 
1276
 
1277
    public Pmsa getmypmsaprofile(String associateEmail) throws org.apache.thrift.TException;
1277
    public Pmsa getmypmsaprofile(String associateEmail) throws org.apache.thrift.TException;
1278
 
1278
 
1279
    public boolean creditUserWallet(long userId, long amount) throws org.apache.thrift.TException;
1279
    public boolean creditUserWallet(long userId, long amount, double cash_back) throws org.apache.thrift.TException;
1280
 
1280
 
1281
  }
1281
  }
1282
 
1282
 
1283
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1283
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1284
 
1284
 
Line 1918... Line 1918...
1918
 
1918
 
1919
    public void getStatsForAssociates(String associateEmail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStatsForAssociates_call> resultHandler) throws org.apache.thrift.TException;
1919
    public void getStatsForAssociates(String associateEmail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStatsForAssociates_call> resultHandler) throws org.apache.thrift.TException;
1920
 
1920
 
1921
    public void getmypmsaprofile(String associateEmail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getmypmsaprofile_call> resultHandler) throws org.apache.thrift.TException;
1921
    public void getmypmsaprofile(String associateEmail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getmypmsaprofile_call> resultHandler) throws org.apache.thrift.TException;
1922
 
1922
 
1923
    public void creditUserWallet(long userId, long amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.creditUserWallet_call> resultHandler) throws org.apache.thrift.TException;
1923
    public void creditUserWallet(long userId, long amount, double cash_back, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.creditUserWallet_call> resultHandler) throws org.apache.thrift.TException;
1924
 
1924
 
1925
  }
1925
  }
1926
 
1926
 
1927
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1927
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1928
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1928
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
Line 9824... Line 9824...
9824
        return result.success;
9824
        return result.success;
9825
      }
9825
      }
9826
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getmypmsaprofile failed: unknown result");
9826
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getmypmsaprofile failed: unknown result");
9827
    }
9827
    }
9828
 
9828
 
9829
    public boolean creditUserWallet(long userId, long amount) throws org.apache.thrift.TException
9829
    public boolean creditUserWallet(long userId, long amount, double cash_back) throws org.apache.thrift.TException
9830
    {
9830
    {
9831
      send_creditUserWallet(userId, amount);
9831
      send_creditUserWallet(userId, amount, cash_back);
9832
      return recv_creditUserWallet();
9832
      return recv_creditUserWallet();
9833
    }
9833
    }
9834
 
9834
 
9835
    public void send_creditUserWallet(long userId, long amount) throws org.apache.thrift.TException
9835
    public void send_creditUserWallet(long userId, long amount, double cash_back) throws org.apache.thrift.TException
9836
    {
9836
    {
9837
      creditUserWallet_args args = new creditUserWallet_args();
9837
      creditUserWallet_args args = new creditUserWallet_args();
9838
      args.setUserId(userId);
9838
      args.setUserId(userId);
9839
      args.setAmount(amount);
9839
      args.setAmount(amount);
-
 
9840
      args.setCash_back(cash_back);
9840
      sendBase("creditUserWallet", args);
9841
      sendBase("creditUserWallet", args);
9841
    }
9842
    }
9842
 
9843
 
9843
    public boolean recv_creditUserWallet() throws org.apache.thrift.TException
9844
    public boolean recv_creditUserWallet() throws org.apache.thrift.TException
9844
    {
9845
    {
Line 20971... Line 20972...
20971
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
20972
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
20972
        return (new Client(prot)).recv_getmypmsaprofile();
20973
        return (new Client(prot)).recv_getmypmsaprofile();
20973
      }
20974
      }
20974
    }
20975
    }
20975
 
20976
 
20976
    public void creditUserWallet(long userId, long amount, org.apache.thrift.async.AsyncMethodCallback<creditUserWallet_call> resultHandler) throws org.apache.thrift.TException {
20977
    public void creditUserWallet(long userId, long amount, double cash_back, org.apache.thrift.async.AsyncMethodCallback<creditUserWallet_call> resultHandler) throws org.apache.thrift.TException {
20977
      checkReady();
20978
      checkReady();
20978
      creditUserWallet_call method_call = new creditUserWallet_call(userId, amount, resultHandler, this, ___protocolFactory, ___transport);
20979
      creditUserWallet_call method_call = new creditUserWallet_call(userId, amount, cash_back, resultHandler, this, ___protocolFactory, ___transport);
20979
      this.___currentMethod = method_call;
20980
      this.___currentMethod = method_call;
20980
      ___manager.call(method_call);
20981
      ___manager.call(method_call);
20981
    }
20982
    }
20982
 
20983
 
20983
    public static class creditUserWallet_call extends org.apache.thrift.async.TAsyncMethodCall {
20984
    public static class creditUserWallet_call extends org.apache.thrift.async.TAsyncMethodCall {
20984
      private long userId;
20985
      private long userId;
20985
      private long amount;
20986
      private long amount;
-
 
20987
      private double cash_back;
20986
      public creditUserWallet_call(long userId, long amount, org.apache.thrift.async.AsyncMethodCallback<creditUserWallet_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
20988
      public creditUserWallet_call(long userId, long amount, double cash_back, org.apache.thrift.async.AsyncMethodCallback<creditUserWallet_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
20987
        super(client, protocolFactory, transport, resultHandler, false);
20989
        super(client, protocolFactory, transport, resultHandler, false);
20988
        this.userId = userId;
20990
        this.userId = userId;
20989
        this.amount = amount;
20991
        this.amount = amount;
-
 
20992
        this.cash_back = cash_back;
20990
      }
20993
      }
20991
 
20994
 
20992
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
20995
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
20993
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("creditUserWallet", org.apache.thrift.protocol.TMessageType.CALL, 0));
20996
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("creditUserWallet", org.apache.thrift.protocol.TMessageType.CALL, 0));
20994
        creditUserWallet_args args = new creditUserWallet_args();
20997
        creditUserWallet_args args = new creditUserWallet_args();
20995
        args.setUserId(userId);
20998
        args.setUserId(userId);
20996
        args.setAmount(amount);
20999
        args.setAmount(amount);
-
 
21000
        args.setCash_back(cash_back);
20997
        args.write(prot);
21001
        args.write(prot);
20998
        prot.writeMessageEnd();
21002
        prot.writeMessageEnd();
20999
      }
21003
      }
21000
 
21004
 
21001
      public boolean getResult() throws org.apache.thrift.TException {
21005
      public boolean getResult() throws org.apache.thrift.TException {
Line 27096... Line 27100...
27096
        return new creditUserWallet_args();
27100
        return new creditUserWallet_args();
27097
      }
27101
      }
27098
 
27102
 
27099
      protected creditUserWallet_result getResult(I iface, creditUserWallet_args args) throws org.apache.thrift.TException {
27103
      protected creditUserWallet_result getResult(I iface, creditUserWallet_args args) throws org.apache.thrift.TException {
27100
        creditUserWallet_result result = new creditUserWallet_result();
27104
        creditUserWallet_result result = new creditUserWallet_result();
27101
        result.success = iface.creditUserWallet(args.userId, args.amount);
27105
        result.success = iface.creditUserWallet(args.userId, args.amount, args.cash_back);
27102
        result.setSuccessIsSet(true);
27106
        result.setSuccessIsSet(true);
27103
        return result;
27107
        return result;
27104
      }
27108
      }
27105
    }
27109
    }
27106
 
27110
 
Line 54826... Line 54830...
54826
      }
54830
      }
54827
    }
54831
    }
54828
 
54832
 
54829
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54833
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54830
      try {
54834
      try {
-
 
54835
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
54836
        __isset_bit_vector = new BitSet(1);
54831
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54837
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54832
      } catch (org.apache.thrift.TException te) {
54838
      } catch (org.apache.thrift.TException te) {
54833
        throw new java.io.IOException(te);
54839
        throw new java.io.IOException(te);
54834
      }
54840
      }
54835
    }
54841
    }
Line 72476... Line 72482...
72476
      }
72482
      }
72477
    }
72483
    }
72478
 
72484
 
72479
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
72485
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
72480
      try {
72486
      try {
-
 
72487
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
72488
        __isset_bit_vector = new BitSet(1);
72481
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
72489
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
72482
      } catch (org.apache.thrift.TException te) {
72490
      } catch (org.apache.thrift.TException te) {
72483
        throw new java.io.IOException(te);
72491
        throw new java.io.IOException(te);
72484
      }
72492
      }
72485
    }
72493
    }
Line 254308... Line 254316...
254308
  public static class creditUserWallet_args implements org.apache.thrift.TBase<creditUserWallet_args, creditUserWallet_args._Fields>, java.io.Serializable, Cloneable   {
254316
  public static class creditUserWallet_args implements org.apache.thrift.TBase<creditUserWallet_args, creditUserWallet_args._Fields>, java.io.Serializable, Cloneable   {
254309
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("creditUserWallet_args");
254317
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("creditUserWallet_args");
254310
 
254318
 
254311
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
254319
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
254312
    private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.I64, (short)2);
254320
    private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
254321
    private static final org.apache.thrift.protocol.TField CASH_BACK_FIELD_DESC = new org.apache.thrift.protocol.TField("cash_back", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
254313
 
254322
 
254314
    private long userId; // required
254323
    private long userId; // required
254315
    private long amount; // required
254324
    private long amount; // required
-
 
254325
    private double cash_back; // required
254316
 
254326
 
254317
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
254327
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
254318
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
254328
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
254319
      USER_ID((short)1, "userId"),
254329
      USER_ID((short)1, "userId"),
254320
      AMOUNT((short)2, "amount");
254330
      AMOUNT((short)2, "amount"),
-
 
254331
      CASH_BACK((short)3, "cash_back");
254321
 
254332
 
254322
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
254333
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
254323
 
254334
 
254324
      static {
254335
      static {
254325
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
254336
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 254334... Line 254345...
254334
        switch(fieldId) {
254345
        switch(fieldId) {
254335
          case 1: // USER_ID
254346
          case 1: // USER_ID
254336
            return USER_ID;
254347
            return USER_ID;
254337
          case 2: // AMOUNT
254348
          case 2: // AMOUNT
254338
            return AMOUNT;
254349
            return AMOUNT;
-
 
254350
          case 3: // CASH_BACK
-
 
254351
            return CASH_BACK;
254339
          default:
254352
          default:
254340
            return null;
254353
            return null;
254341
        }
254354
        }
254342
      }
254355
      }
254343
 
254356
 
Line 254376... Line 254389...
254376
    }
254389
    }
254377
 
254390
 
254378
    // isset id assignments
254391
    // isset id assignments
254379
    private static final int __USERID_ISSET_ID = 0;
254392
    private static final int __USERID_ISSET_ID = 0;
254380
    private static final int __AMOUNT_ISSET_ID = 1;
254393
    private static final int __AMOUNT_ISSET_ID = 1;
-
 
254394
    private static final int __CASH_BACK_ISSET_ID = 2;
254381
    private BitSet __isset_bit_vector = new BitSet(2);
254395
    private BitSet __isset_bit_vector = new BitSet(3);
254382
 
254396
 
254383
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
254397
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
254384
    static {
254398
    static {
254385
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
254399
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
254386
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
254400
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
254387
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
254401
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
254388
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
254402
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
254389
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
254403
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
254404
      tmpMap.put(_Fields.CASH_BACK, new org.apache.thrift.meta_data.FieldMetaData("cash_back", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
254405
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
254390
      metaDataMap = Collections.unmodifiableMap(tmpMap);
254406
      metaDataMap = Collections.unmodifiableMap(tmpMap);
254391
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(creditUserWallet_args.class, metaDataMap);
254407
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(creditUserWallet_args.class, metaDataMap);
254392
    }
254408
    }
254393
 
254409
 
254394
    public creditUserWallet_args() {
254410
    public creditUserWallet_args() {
254395
    }
254411
    }
254396
 
254412
 
254397
    public creditUserWallet_args(
254413
    public creditUserWallet_args(
254398
      long userId,
254414
      long userId,
254399
      long amount)
254415
      long amount,
-
 
254416
      double cash_back)
254400
    {
254417
    {
254401
      this();
254418
      this();
254402
      this.userId = userId;
254419
      this.userId = userId;
254403
      setUserIdIsSet(true);
254420
      setUserIdIsSet(true);
254404
      this.amount = amount;
254421
      this.amount = amount;
254405
      setAmountIsSet(true);
254422
      setAmountIsSet(true);
-
 
254423
      this.cash_back = cash_back;
-
 
254424
      setCash_backIsSet(true);
254406
    }
254425
    }
254407
 
254426
 
254408
    /**
254427
    /**
254409
     * Performs a deep copy on <i>other</i>.
254428
     * Performs a deep copy on <i>other</i>.
254410
     */
254429
     */
254411
    public creditUserWallet_args(creditUserWallet_args other) {
254430
    public creditUserWallet_args(creditUserWallet_args other) {
254412
      __isset_bit_vector.clear();
254431
      __isset_bit_vector.clear();
254413
      __isset_bit_vector.or(other.__isset_bit_vector);
254432
      __isset_bit_vector.or(other.__isset_bit_vector);
254414
      this.userId = other.userId;
254433
      this.userId = other.userId;
254415
      this.amount = other.amount;
254434
      this.amount = other.amount;
-
 
254435
      this.cash_back = other.cash_back;
254416
    }
254436
    }
254417
 
254437
 
254418
    public creditUserWallet_args deepCopy() {
254438
    public creditUserWallet_args deepCopy() {
254419
      return new creditUserWallet_args(this);
254439
      return new creditUserWallet_args(this);
254420
    }
254440
    }
Line 254423... Line 254443...
254423
    public void clear() {
254443
    public void clear() {
254424
      setUserIdIsSet(false);
254444
      setUserIdIsSet(false);
254425
      this.userId = 0;
254445
      this.userId = 0;
254426
      setAmountIsSet(false);
254446
      setAmountIsSet(false);
254427
      this.amount = 0;
254447
      this.amount = 0;
-
 
254448
      setCash_backIsSet(false);
-
 
254449
      this.cash_back = 0.0;
254428
    }
254450
    }
254429
 
254451
 
254430
    public long getUserId() {
254452
    public long getUserId() {
254431
      return this.userId;
254453
      return this.userId;
254432
    }
254454
    }
Line 254469... Line 254491...
254469
 
254491
 
254470
    public void setAmountIsSet(boolean value) {
254492
    public void setAmountIsSet(boolean value) {
254471
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
254493
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
254472
    }
254494
    }
254473
 
254495
 
-
 
254496
    public double getCash_back() {
-
 
254497
      return this.cash_back;
-
 
254498
    }
-
 
254499
 
-
 
254500
    public void setCash_back(double cash_back) {
-
 
254501
      this.cash_back = cash_back;
-
 
254502
      setCash_backIsSet(true);
-
 
254503
    }
-
 
254504
 
-
 
254505
    public void unsetCash_back() {
-
 
254506
      __isset_bit_vector.clear(__CASH_BACK_ISSET_ID);
-
 
254507
    }
-
 
254508
 
-
 
254509
    /** Returns true if field cash_back is set (has been assigned a value) and false otherwise */
-
 
254510
    public boolean isSetCash_back() {
-
 
254511
      return __isset_bit_vector.get(__CASH_BACK_ISSET_ID);
-
 
254512
    }
-
 
254513
 
-
 
254514
    public void setCash_backIsSet(boolean value) {
-
 
254515
      __isset_bit_vector.set(__CASH_BACK_ISSET_ID, value);
-
 
254516
    }
-
 
254517
 
254474
    public void setFieldValue(_Fields field, Object value) {
254518
    public void setFieldValue(_Fields field, Object value) {
254475
      switch (field) {
254519
      switch (field) {
254476
      case USER_ID:
254520
      case USER_ID:
254477
        if (value == null) {
254521
        if (value == null) {
254478
          unsetUserId();
254522
          unsetUserId();
Line 254487... Line 254531...
254487
        } else {
254531
        } else {
254488
          setAmount((Long)value);
254532
          setAmount((Long)value);
254489
        }
254533
        }
254490
        break;
254534
        break;
254491
 
254535
 
-
 
254536
      case CASH_BACK:
-
 
254537
        if (value == null) {
-
 
254538
          unsetCash_back();
-
 
254539
        } else {
-
 
254540
          setCash_back((Double)value);
-
 
254541
        }
-
 
254542
        break;
-
 
254543
 
254492
      }
254544
      }
254493
    }
254545
    }
254494
 
254546
 
254495
    public Object getFieldValue(_Fields field) {
254547
    public Object getFieldValue(_Fields field) {
254496
      switch (field) {
254548
      switch (field) {
Line 254498... Line 254550...
254498
        return Long.valueOf(getUserId());
254550
        return Long.valueOf(getUserId());
254499
 
254551
 
254500
      case AMOUNT:
254552
      case AMOUNT:
254501
        return Long.valueOf(getAmount());
254553
        return Long.valueOf(getAmount());
254502
 
254554
 
-
 
254555
      case CASH_BACK:
-
 
254556
        return Double.valueOf(getCash_back());
-
 
254557
 
254503
      }
254558
      }
254504
      throw new IllegalStateException();
254559
      throw new IllegalStateException();
254505
    }
254560
    }
254506
 
254561
 
254507
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
254562
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 254513... Line 254568...
254513
      switch (field) {
254568
      switch (field) {
254514
      case USER_ID:
254569
      case USER_ID:
254515
        return isSetUserId();
254570
        return isSetUserId();
254516
      case AMOUNT:
254571
      case AMOUNT:
254517
        return isSetAmount();
254572
        return isSetAmount();
-
 
254573
      case CASH_BACK:
-
 
254574
        return isSetCash_back();
254518
      }
254575
      }
254519
      throw new IllegalStateException();
254576
      throw new IllegalStateException();
254520
    }
254577
    }
254521
 
254578
 
254522
    @Override
254579
    @Override
Line 254548... Line 254605...
254548
          return false;
254605
          return false;
254549
        if (this.amount != that.amount)
254606
        if (this.amount != that.amount)
254550
          return false;
254607
          return false;
254551
      }
254608
      }
254552
 
254609
 
-
 
254610
      boolean this_present_cash_back = true;
-
 
254611
      boolean that_present_cash_back = true;
-
 
254612
      if (this_present_cash_back || that_present_cash_back) {
-
 
254613
        if (!(this_present_cash_back && that_present_cash_back))
-
 
254614
          return false;
-
 
254615
        if (this.cash_back != that.cash_back)
-
 
254616
          return false;
-
 
254617
      }
-
 
254618
 
254553
      return true;
254619
      return true;
254554
    }
254620
    }
254555
 
254621
 
254556
    @Override
254622
    @Override
254557
    public int hashCode() {
254623
    public int hashCode() {
Line 254584... Line 254650...
254584
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
254650
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
254585
        if (lastComparison != 0) {
254651
        if (lastComparison != 0) {
254586
          return lastComparison;
254652
          return lastComparison;
254587
        }
254653
        }
254588
      }
254654
      }
-
 
254655
      lastComparison = Boolean.valueOf(isSetCash_back()).compareTo(typedOther.isSetCash_back());
-
 
254656
      if (lastComparison != 0) {
-
 
254657
        return lastComparison;
-
 
254658
      }
-
 
254659
      if (isSetCash_back()) {
-
 
254660
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cash_back, typedOther.cash_back);
-
 
254661
        if (lastComparison != 0) {
-
 
254662
          return lastComparison;
-
 
254663
        }
-
 
254664
      }
254589
      return 0;
254665
      return 0;
254590
    }
254666
    }
254591
 
254667
 
254592
    public _Fields fieldForId(int fieldId) {
254668
    public _Fields fieldForId(int fieldId) {
254593
      return _Fields.findByThriftId(fieldId);
254669
      return _Fields.findByThriftId(fieldId);
Line 254617... Line 254693...
254617
              setAmountIsSet(true);
254693
              setAmountIsSet(true);
254618
            } else { 
254694
            } else { 
254619
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
254695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
254620
            }
254696
            }
254621
            break;
254697
            break;
-
 
254698
          case 3: // CASH_BACK
-
 
254699
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
254700
              this.cash_back = iprot.readDouble();
-
 
254701
              setCash_backIsSet(true);
-
 
254702
            } else { 
-
 
254703
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
254704
            }
-
 
254705
            break;
254622
          default:
254706
          default:
254623
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
254707
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
254624
        }
254708
        }
254625
        iprot.readFieldEnd();
254709
        iprot.readFieldEnd();
254626
      }
254710
      }
Line 254636... Line 254720...
254636
      oprot.writeI64(this.userId);
254720
      oprot.writeI64(this.userId);
254637
      oprot.writeFieldEnd();
254721
      oprot.writeFieldEnd();
254638
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
254722
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
254639
      oprot.writeI64(this.amount);
254723
      oprot.writeI64(this.amount);
254640
      oprot.writeFieldEnd();
254724
      oprot.writeFieldEnd();
-
 
254725
      oprot.writeFieldBegin(CASH_BACK_FIELD_DESC);
-
 
254726
      oprot.writeDouble(this.cash_back);
-
 
254727
      oprot.writeFieldEnd();
254641
      oprot.writeFieldStop();
254728
      oprot.writeFieldStop();
254642
      oprot.writeStructEnd();
254729
      oprot.writeStructEnd();
254643
    }
254730
    }
254644
 
254731
 
254645
    @Override
254732
    @Override
Line 254652... Line 254739...
254652
      first = false;
254739
      first = false;
254653
      if (!first) sb.append(", ");
254740
      if (!first) sb.append(", ");
254654
      sb.append("amount:");
254741
      sb.append("amount:");
254655
      sb.append(this.amount);
254742
      sb.append(this.amount);
254656
      first = false;
254743
      first = false;
-
 
254744
      if (!first) sb.append(", ");
-
 
254745
      sb.append("cash_back:");
-
 
254746
      sb.append(this.cash_back);
-
 
254747
      first = false;
254657
      sb.append(")");
254748
      sb.append(")");
254658
      return sb.toString();
254749
      return sb.toString();
254659
    }
254750
    }
254660
 
254751
 
254661
    public void validate() throws org.apache.thrift.TException {
254752
    public void validate() throws org.apache.thrift.TException {