Subversion Repositories SmartDukaan

Rev

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

Rev 6050 Rev 6228
Line 135... Line 135...
135
     */
135
     */
136
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
136
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
137
 
137
 
138
    /**
138
    /**
139
     * Initialize the payment pipe for a HDFC payment in case of a digital order. The URL the user should be redirected to is returned.
139
     * Initialize the payment pipe for a HDFC payment in case of a digital order. The URL the user should be redirected to is returned.
140
     * In case of any processing error, an exception is raised.
140
     * In case of any processing error, an exception is raised. The phone is a madatory field and is required in case of dth payments.
141
     * 
141
     * 
142
     * @param merchantPaymentId
142
     * @param merchantPaymentId
143
     * @param rechargeOrderId
143
     * @param rechargeOrderId
-
 
144
     * @param phone
144
     */
145
     */
145
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId) throws PaymentException, org.apache.thrift.TException;
146
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws PaymentException, org.apache.thrift.TException;
146
 
147
 
147
    /**
148
    /**
148
     * Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
149
     * Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
149
     * In case of any processing error, an exception is raised.
150
     * In case of any processing error, an exception is raised.
150
     * 
151
     * 
Line 237... Line 238...
237
 
238
 
238
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
239
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
239
 
240
 
240
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
241
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
241
 
242
 
242
    public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException;
243
    public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException;
243
 
244
 
244
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException;
245
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException;
245
 
246
 
246
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
247
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
247
 
248
 
Line 604... Line 605...
604
        throw result.pe;
605
        throw result.pe;
605
      }
606
      }
606
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
607
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
607
    }
608
    }
608
 
609
 
609
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId) throws PaymentException, org.apache.thrift.TException
610
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws PaymentException, org.apache.thrift.TException
610
    {
611
    {
611
      send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId);
612
      send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId, phone);
612
      return recv_doHdfcPaymentForDigitalOrder();
613
      return recv_doHdfcPaymentForDigitalOrder();
613
    }
614
    }
614
 
615
 
615
    public void send_doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId) throws org.apache.thrift.TException
616
    public void send_doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws org.apache.thrift.TException
616
    {
617
    {
617
      doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
618
      doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
618
      args.setMerchantPaymentId(merchantPaymentId);
619
      args.setMerchantPaymentId(merchantPaymentId);
619
      args.setRechargeOrderId(rechargeOrderId);
620
      args.setRechargeOrderId(rechargeOrderId);
-
 
621
      args.setPhone(phone);
620
      sendBase("doHdfcPaymentForDigitalOrder", args);
622
      sendBase("doHdfcPaymentForDigitalOrder", args);
621
    }
623
    }
622
 
624
 
623
    public String recv_doHdfcPaymentForDigitalOrder() throws PaymentException, org.apache.thrift.TException
625
    public String recv_doHdfcPaymentForDigitalOrder() throws PaymentException, org.apache.thrift.TException
624
    {
626
    {
Line 1253... Line 1255...
1253
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1255
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1254
        return (new Client(prot)).recv_initializeHdfcPayment();
1256
        return (new Client(prot)).recv_initializeHdfcPayment();
1255
      }
1257
      }
1256
    }
1258
    }
1257
 
1259
 
1258
    public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException {
1260
    public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException {
1259
      checkReady();
1261
      checkReady();
1260
      doHdfcPaymentForDigitalOrder_call method_call = new doHdfcPaymentForDigitalOrder_call(merchantPaymentId, rechargeOrderId, resultHandler, this, ___protocolFactory, ___transport);
1262
      doHdfcPaymentForDigitalOrder_call method_call = new doHdfcPaymentForDigitalOrder_call(merchantPaymentId, rechargeOrderId, phone, resultHandler, this, ___protocolFactory, ___transport);
1261
      this.___currentMethod = method_call;
1263
      this.___currentMethod = method_call;
1262
      ___manager.call(method_call);
1264
      ___manager.call(method_call);
1263
    }
1265
    }
1264
 
1266
 
1265
    public static class doHdfcPaymentForDigitalOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
1267
    public static class doHdfcPaymentForDigitalOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
1266
      private long merchantPaymentId;
1268
      private long merchantPaymentId;
1267
      private long rechargeOrderId;
1269
      private long rechargeOrderId;
-
 
1270
      private String phone;
1268
      public doHdfcPaymentForDigitalOrder_call(long merchantPaymentId, long rechargeOrderId, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_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 {
1271
      public doHdfcPaymentForDigitalOrder_call(long merchantPaymentId, long rechargeOrderId, String phone, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_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 {
1269
        super(client, protocolFactory, transport, resultHandler, false);
1272
        super(client, protocolFactory, transport, resultHandler, false);
1270
        this.merchantPaymentId = merchantPaymentId;
1273
        this.merchantPaymentId = merchantPaymentId;
1271
        this.rechargeOrderId = rechargeOrderId;
1274
        this.rechargeOrderId = rechargeOrderId;
-
 
1275
        this.phone = phone;
1272
      }
1276
      }
1273
 
1277
 
1274
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1278
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1275
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("doHdfcPaymentForDigitalOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1279
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("doHdfcPaymentForDigitalOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1276
        doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
1280
        doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
1277
        args.setMerchantPaymentId(merchantPaymentId);
1281
        args.setMerchantPaymentId(merchantPaymentId);
1278
        args.setRechargeOrderId(rechargeOrderId);
1282
        args.setRechargeOrderId(rechargeOrderId);
-
 
1283
        args.setPhone(phone);
1279
        args.write(prot);
1284
        args.write(prot);
1280
        prot.writeMessageEnd();
1285
        prot.writeMessageEnd();
1281
      }
1286
      }
1282
 
1287
 
1283
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1288
      public String getResult() throws PaymentException, org.apache.thrift.TException {
Line 1786... Line 1791...
1786
      }
1791
      }
1787
 
1792
 
1788
      protected doHdfcPaymentForDigitalOrder_result getResult(I iface, doHdfcPaymentForDigitalOrder_args args) throws org.apache.thrift.TException {
1793
      protected doHdfcPaymentForDigitalOrder_result getResult(I iface, doHdfcPaymentForDigitalOrder_args args) throws org.apache.thrift.TException {
1789
        doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
1794
        doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
1790
        try {
1795
        try {
1791
          result.success = iface.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId);
1796
          result.success = iface.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId, args.phone);
1792
        } catch (PaymentException pe) {
1797
        } catch (PaymentException pe) {
1793
          result.pe = pe;
1798
          result.pe = pe;
1794
        }
1799
        }
1795
        return result;
1800
        return result;
1796
      }
1801
      }
Line 12091... Line 12096...
12091
  public static class doHdfcPaymentForDigitalOrder_args implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_args, doHdfcPaymentForDigitalOrder_args._Fields>, java.io.Serializable, Cloneable   {
12096
  public static class doHdfcPaymentForDigitalOrder_args implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_args, doHdfcPaymentForDigitalOrder_args._Fields>, java.io.Serializable, Cloneable   {
12092
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_args");
12097
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_args");
12093
 
12098
 
12094
    private static final org.apache.thrift.protocol.TField MERCHANT_PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("merchantPaymentId", org.apache.thrift.protocol.TType.I64, (short)1);
12099
    private static final org.apache.thrift.protocol.TField MERCHANT_PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("merchantPaymentId", org.apache.thrift.protocol.TType.I64, (short)1);
12095
    private static final org.apache.thrift.protocol.TField RECHARGE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeOrderId", org.apache.thrift.protocol.TType.I64, (short)2);
12100
    private static final org.apache.thrift.protocol.TField RECHARGE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeOrderId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
12101
    private static final org.apache.thrift.protocol.TField PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("phone", org.apache.thrift.protocol.TType.STRING, (short)-1);
12096
 
12102
 
12097
    private long merchantPaymentId; // required
12103
    private long merchantPaymentId; // required
12098
    private long rechargeOrderId; // required
12104
    private long rechargeOrderId; // required
-
 
12105
    private String phone; // required
12099
 
12106
 
12100
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12107
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12101
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12108
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12102
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
12109
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
12103
      RECHARGE_ORDER_ID((short)2, "rechargeOrderId");
12110
      RECHARGE_ORDER_ID((short)2, "rechargeOrderId"),
-
 
12111
      PHONE((short)-1, "phone");
12104
 
12112
 
12105
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12113
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12106
 
12114
 
12107
      static {
12115
      static {
12108
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12116
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 12117... Line 12125...
12117
        switch(fieldId) {
12125
        switch(fieldId) {
12118
          case 1: // MERCHANT_PAYMENT_ID
12126
          case 1: // MERCHANT_PAYMENT_ID
12119
            return MERCHANT_PAYMENT_ID;
12127
            return MERCHANT_PAYMENT_ID;
12120
          case 2: // RECHARGE_ORDER_ID
12128
          case 2: // RECHARGE_ORDER_ID
12121
            return RECHARGE_ORDER_ID;
12129
            return RECHARGE_ORDER_ID;
-
 
12130
          case -1: // PHONE
-
 
12131
            return PHONE;
12122
          default:
12132
          default:
12123
            return null;
12133
            return null;
12124
        }
12134
        }
12125
      }
12135
      }
12126
 
12136
 
Line 12168... Line 12178...
12168
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12178
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12169
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12179
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12170
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12180
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12171
      tmpMap.put(_Fields.RECHARGE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12181
      tmpMap.put(_Fields.RECHARGE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12172
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12182
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
12183
      tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12184
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12173
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12185
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12174
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_args.class, metaDataMap);
12186
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_args.class, metaDataMap);
12175
    }
12187
    }
12176
 
12188
 
12177
    public doHdfcPaymentForDigitalOrder_args() {
12189
    public doHdfcPaymentForDigitalOrder_args() {
12178
    }
12190
    }
12179
 
12191
 
12180
    public doHdfcPaymentForDigitalOrder_args(
12192
    public doHdfcPaymentForDigitalOrder_args(
12181
      long merchantPaymentId,
12193
      long merchantPaymentId,
12182
      long rechargeOrderId)
12194
      long rechargeOrderId,
-
 
12195
      String phone)
12183
    {
12196
    {
12184
      this();
12197
      this();
12185
      this.merchantPaymentId = merchantPaymentId;
12198
      this.merchantPaymentId = merchantPaymentId;
12186
      setMerchantPaymentIdIsSet(true);
12199
      setMerchantPaymentIdIsSet(true);
12187
      this.rechargeOrderId = rechargeOrderId;
12200
      this.rechargeOrderId = rechargeOrderId;
12188
      setRechargeOrderIdIsSet(true);
12201
      setRechargeOrderIdIsSet(true);
-
 
12202
      this.phone = phone;
12189
    }
12203
    }
12190
 
12204
 
12191
    /**
12205
    /**
12192
     * Performs a deep copy on <i>other</i>.
12206
     * Performs a deep copy on <i>other</i>.
12193
     */
12207
     */
12194
    public doHdfcPaymentForDigitalOrder_args(doHdfcPaymentForDigitalOrder_args other) {
12208
    public doHdfcPaymentForDigitalOrder_args(doHdfcPaymentForDigitalOrder_args other) {
12195
      __isset_bit_vector.clear();
12209
      __isset_bit_vector.clear();
12196
      __isset_bit_vector.or(other.__isset_bit_vector);
12210
      __isset_bit_vector.or(other.__isset_bit_vector);
12197
      this.merchantPaymentId = other.merchantPaymentId;
12211
      this.merchantPaymentId = other.merchantPaymentId;
12198
      this.rechargeOrderId = other.rechargeOrderId;
12212
      this.rechargeOrderId = other.rechargeOrderId;
-
 
12213
      if (other.isSetPhone()) {
-
 
12214
        this.phone = other.phone;
-
 
12215
      }
12199
    }
12216
    }
12200
 
12217
 
12201
    public doHdfcPaymentForDigitalOrder_args deepCopy() {
12218
    public doHdfcPaymentForDigitalOrder_args deepCopy() {
12202
      return new doHdfcPaymentForDigitalOrder_args(this);
12219
      return new doHdfcPaymentForDigitalOrder_args(this);
12203
    }
12220
    }
Line 12206... Line 12223...
12206
    public void clear() {
12223
    public void clear() {
12207
      setMerchantPaymentIdIsSet(false);
12224
      setMerchantPaymentIdIsSet(false);
12208
      this.merchantPaymentId = 0;
12225
      this.merchantPaymentId = 0;
12209
      setRechargeOrderIdIsSet(false);
12226
      setRechargeOrderIdIsSet(false);
12210
      this.rechargeOrderId = 0;
12227
      this.rechargeOrderId = 0;
-
 
12228
      this.phone = null;
12211
    }
12229
    }
12212
 
12230
 
12213
    public long getMerchantPaymentId() {
12231
    public long getMerchantPaymentId() {
12214
      return this.merchantPaymentId;
12232
      return this.merchantPaymentId;
12215
    }
12233
    }
Line 12252... Line 12270...
12252
 
12270
 
12253
    public void setRechargeOrderIdIsSet(boolean value) {
12271
    public void setRechargeOrderIdIsSet(boolean value) {
12254
      __isset_bit_vector.set(__RECHARGEORDERID_ISSET_ID, value);
12272
      __isset_bit_vector.set(__RECHARGEORDERID_ISSET_ID, value);
12255
    }
12273
    }
12256
 
12274
 
-
 
12275
    public String getPhone() {
-
 
12276
      return this.phone;
-
 
12277
    }
-
 
12278
 
-
 
12279
    public void setPhone(String phone) {
-
 
12280
      this.phone = phone;
-
 
12281
    }
-
 
12282
 
-
 
12283
    public void unsetPhone() {
-
 
12284
      this.phone = null;
-
 
12285
    }
-
 
12286
 
-
 
12287
    /** Returns true if field phone is set (has been assigned a value) and false otherwise */
-
 
12288
    public boolean isSetPhone() {
-
 
12289
      return this.phone != null;
-
 
12290
    }
-
 
12291
 
-
 
12292
    public void setPhoneIsSet(boolean value) {
-
 
12293
      if (!value) {
-
 
12294
        this.phone = null;
-
 
12295
      }
-
 
12296
    }
-
 
12297
 
12257
    public void setFieldValue(_Fields field, Object value) {
12298
    public void setFieldValue(_Fields field, Object value) {
12258
      switch (field) {
12299
      switch (field) {
12259
      case MERCHANT_PAYMENT_ID:
12300
      case MERCHANT_PAYMENT_ID:
12260
        if (value == null) {
12301
        if (value == null) {
12261
          unsetMerchantPaymentId();
12302
          unsetMerchantPaymentId();
Line 12270... Line 12311...
12270
        } else {
12311
        } else {
12271
          setRechargeOrderId((Long)value);
12312
          setRechargeOrderId((Long)value);
12272
        }
12313
        }
12273
        break;
12314
        break;
12274
 
12315
 
-
 
12316
      case PHONE:
-
 
12317
        if (value == null) {
-
 
12318
          unsetPhone();
-
 
12319
        } else {
-
 
12320
          setPhone((String)value);
-
 
12321
        }
-
 
12322
        break;
-
 
12323
 
12275
      }
12324
      }
12276
    }
12325
    }
12277
 
12326
 
12278
    public Object getFieldValue(_Fields field) {
12327
    public Object getFieldValue(_Fields field) {
12279
      switch (field) {
12328
      switch (field) {
Line 12281... Line 12330...
12281
        return Long.valueOf(getMerchantPaymentId());
12330
        return Long.valueOf(getMerchantPaymentId());
12282
 
12331
 
12283
      case RECHARGE_ORDER_ID:
12332
      case RECHARGE_ORDER_ID:
12284
        return Long.valueOf(getRechargeOrderId());
12333
        return Long.valueOf(getRechargeOrderId());
12285
 
12334
 
-
 
12335
      case PHONE:
-
 
12336
        return getPhone();
-
 
12337
 
12286
      }
12338
      }
12287
      throw new IllegalStateException();
12339
      throw new IllegalStateException();
12288
    }
12340
    }
12289
 
12341
 
12290
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12342
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 12296... Line 12348...
12296
      switch (field) {
12348
      switch (field) {
12297
      case MERCHANT_PAYMENT_ID:
12349
      case MERCHANT_PAYMENT_ID:
12298
        return isSetMerchantPaymentId();
12350
        return isSetMerchantPaymentId();
12299
      case RECHARGE_ORDER_ID:
12351
      case RECHARGE_ORDER_ID:
12300
        return isSetRechargeOrderId();
12352
        return isSetRechargeOrderId();
-
 
12353
      case PHONE:
-
 
12354
        return isSetPhone();
12301
      }
12355
      }
12302
      throw new IllegalStateException();
12356
      throw new IllegalStateException();
12303
    }
12357
    }
12304
 
12358
 
12305
    @Override
12359
    @Override
Line 12331... Line 12385...
12331
          return false;
12385
          return false;
12332
        if (this.rechargeOrderId != that.rechargeOrderId)
12386
        if (this.rechargeOrderId != that.rechargeOrderId)
12333
          return false;
12387
          return false;
12334
      }
12388
      }
12335
 
12389
 
-
 
12390
      boolean this_present_phone = true && this.isSetPhone();
-
 
12391
      boolean that_present_phone = true && that.isSetPhone();
-
 
12392
      if (this_present_phone || that_present_phone) {
-
 
12393
        if (!(this_present_phone && that_present_phone))
-
 
12394
          return false;
-
 
12395
        if (!this.phone.equals(that.phone))
-
 
12396
          return false;
-
 
12397
      }
-
 
12398
 
12336
      return true;
12399
      return true;
12337
    }
12400
    }
12338
 
12401
 
12339
    @Override
12402
    @Override
12340
    public int hashCode() {
12403
    public int hashCode() {
Line 12367... Line 12430...
12367
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrderId, typedOther.rechargeOrderId);
12430
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrderId, typedOther.rechargeOrderId);
12368
        if (lastComparison != 0) {
12431
        if (lastComparison != 0) {
12369
          return lastComparison;
12432
          return lastComparison;
12370
        }
12433
        }
12371
      }
12434
      }
-
 
12435
      lastComparison = Boolean.valueOf(isSetPhone()).compareTo(typedOther.isSetPhone());
-
 
12436
      if (lastComparison != 0) {
-
 
12437
        return lastComparison;
-
 
12438
      }
-
 
12439
      if (isSetPhone()) {
-
 
12440
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);
-
 
12441
        if (lastComparison != 0) {
-
 
12442
          return lastComparison;
-
 
12443
        }
-
 
12444
      }
12372
      return 0;
12445
      return 0;
12373
    }
12446
    }
12374
 
12447
 
12375
    public _Fields fieldForId(int fieldId) {
12448
    public _Fields fieldForId(int fieldId) {
12376
      return _Fields.findByThriftId(fieldId);
12449
      return _Fields.findByThriftId(fieldId);
Line 12400... Line 12473...
12400
              setRechargeOrderIdIsSet(true);
12473
              setRechargeOrderIdIsSet(true);
12401
            } else { 
12474
            } else { 
12402
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12475
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12403
            }
12476
            }
12404
            break;
12477
            break;
-
 
12478
          case -1: // PHONE
-
 
12479
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
12480
              this.phone = iprot.readString();
-
 
12481
            } else { 
-
 
12482
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12483
            }
-
 
12484
            break;
12405
          default:
12485
          default:
12406
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12486
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12407
        }
12487
        }
12408
        iprot.readFieldEnd();
12488
        iprot.readFieldEnd();
12409
      }
12489
      }
Line 12413... Line 12493...
12413
 
12493
 
12414
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12494
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12415
      validate();
12495
      validate();
12416
 
12496
 
12417
      oprot.writeStructBegin(STRUCT_DESC);
12497
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12498
      if (this.phone != null) {
-
 
12499
        oprot.writeFieldBegin(PHONE_FIELD_DESC);
-
 
12500
        oprot.writeString(this.phone);
-
 
12501
        oprot.writeFieldEnd();
-
 
12502
      }
12418
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
12503
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
12419
      oprot.writeI64(this.merchantPaymentId);
12504
      oprot.writeI64(this.merchantPaymentId);
12420
      oprot.writeFieldEnd();
12505
      oprot.writeFieldEnd();
12421
      oprot.writeFieldBegin(RECHARGE_ORDER_ID_FIELD_DESC);
12506
      oprot.writeFieldBegin(RECHARGE_ORDER_ID_FIELD_DESC);
12422
      oprot.writeI64(this.rechargeOrderId);
12507
      oprot.writeI64(this.rechargeOrderId);
Line 12435... Line 12520...
12435
      first = false;
12520
      first = false;
12436
      if (!first) sb.append(", ");
12521
      if (!first) sb.append(", ");
12437
      sb.append("rechargeOrderId:");
12522
      sb.append("rechargeOrderId:");
12438
      sb.append(this.rechargeOrderId);
12523
      sb.append(this.rechargeOrderId);
12439
      first = false;
12524
      first = false;
-
 
12525
      if (!first) sb.append(", ");
-
 
12526
      sb.append("phone:");
-
 
12527
      if (this.phone == null) {
-
 
12528
        sb.append("null");
-
 
12529
      } else {
-
 
12530
        sb.append(this.phone);
-
 
12531
      }
-
 
12532
      first = false;
12440
      sb.append(")");
12533
      sb.append(")");
12441
      return sb.toString();
12534
      return sb.toString();
12442
    }
12535
    }
12443
 
12536
 
12444
    public void validate() throws org.apache.thrift.TException {
12537
    public void validate() throws org.apache.thrift.TException {