| Line 29... |
Line 29... |
| 29 |
*
|
29 |
*
|
| 30 |
* @param userId
|
30 |
* @param userId
|
| 31 |
* @param amount
|
31 |
* @param amount
|
| 32 |
* @param gatewayId
|
32 |
* @param gatewayId
|
| 33 |
* @param txnId
|
33 |
* @param txnId
|
| - |
|
34 |
* @param isDigital
|
| 34 |
*/
|
35 |
*/
|
| 35 |
public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, org.apache.thrift.TException;
|
36 |
public long createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException;
|
| 36 |
|
37 |
|
| 37 |
/**
|
38 |
/**
|
| 38 |
* Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
|
39 |
* Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
|
| 39 |
*
|
40 |
*
|
| 40 |
* @param userId
|
41 |
* @param userId
|
| Line 133... |
Line 134... |
| 133 |
* @param merchantPaymentId
|
134 |
* @param merchantPaymentId
|
| 134 |
*/
|
135 |
*/
|
| 135 |
public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
|
136 |
public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
|
| 136 |
|
137 |
|
| 137 |
/**
|
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.
|
| - |
|
140 |
* In case of any processing error, an exception is raised.
|
| - |
|
141 |
*
|
| - |
|
142 |
* @param merchantPaymentId
|
| - |
|
143 |
* @param rechargeOrderId
|
| - |
|
144 |
*/
|
| - |
|
145 |
public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId) throws PaymentException, org.apache.thrift.TException;
|
| - |
|
146 |
|
| - |
|
147 |
/**
|
| 138 |
* Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
|
148 |
* Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
|
| 139 |
* In case of any processing error, an exception is raised.
|
149 |
* In case of any processing error, an exception is raised.
|
| 140 |
*
|
150 |
*
|
| 141 |
* @param merchantPaymentId
|
151 |
* @param merchantPaymentId
|
| 142 |
*/
|
152 |
*/
|
| Line 203... |
Line 213... |
| 203 |
|
213 |
|
| 204 |
}
|
214 |
}
|
| 205 |
|
215 |
|
| 206 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
216 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
| 207 |
|
217 |
|
| 208 |
public void createPayment(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
|
218 |
public void createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
|
| 209 |
|
219 |
|
| 210 |
public void getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsForUser_call> resultHandler) throws org.apache.thrift.TException;
|
220 |
public void getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsForUser_call> resultHandler) throws org.apache.thrift.TException;
|
| 211 |
|
221 |
|
| 212 |
public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayments_call> resultHandler) throws org.apache.thrift.TException;
|
222 |
public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayments_call> resultHandler) throws org.apache.thrift.TException;
|
| 213 |
|
223 |
|
| Line 227... |
Line 237... |
| 227 |
|
237 |
|
| 228 |
public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
|
238 |
public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
|
| 229 |
|
239 |
|
| 230 |
public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
|
240 |
public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
|
| 231 |
|
241 |
|
| - |
|
242 |
public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException;
|
| - |
|
243 |
|
| 232 |
public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException;
|
244 |
public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException;
|
| 233 |
|
245 |
|
| 234 |
public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
|
246 |
public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
|
| 235 |
|
247 |
|
| 236 |
public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
|
248 |
public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
|
| Line 261... |
Line 273... |
| 261 |
|
273 |
|
| 262 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
274 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 263 |
super(iprot, oprot);
|
275 |
super(iprot, oprot);
|
| 264 |
}
|
276 |
}
|
| 265 |
|
277 |
|
| 266 |
public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, org.apache.thrift.TException
|
278 |
public long createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException
|
| 267 |
{
|
279 |
{
|
| 268 |
send_createPayment(userId, amount, gatewayId, txnId);
|
280 |
send_createPayment(userId, amount, gatewayId, txnId, isDigital);
|
| 269 |
return recv_createPayment();
|
281 |
return recv_createPayment();
|
| 270 |
}
|
282 |
}
|
| 271 |
|
283 |
|
| 272 |
public void send_createPayment(long userId, double amount, long gatewayId, long txnId) throws org.apache.thrift.TException
|
284 |
public void send_createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws org.apache.thrift.TException
|
| 273 |
{
|
285 |
{
|
| 274 |
createPayment_args args = new createPayment_args();
|
286 |
createPayment_args args = new createPayment_args();
|
| 275 |
args.setUserId(userId);
|
287 |
args.setUserId(userId);
|
| 276 |
args.setAmount(amount);
|
288 |
args.setAmount(amount);
|
| 277 |
args.setGatewayId(gatewayId);
|
289 |
args.setGatewayId(gatewayId);
|
| 278 |
args.setTxnId(txnId);
|
290 |
args.setTxnId(txnId);
|
| - |
|
291 |
args.setIsDigital(isDigital);
|
| 279 |
sendBase("createPayment", args);
|
292 |
sendBase("createPayment", args);
|
| 280 |
}
|
293 |
}
|
| 281 |
|
294 |
|
| 282 |
public long recv_createPayment() throws PaymentException, org.apache.thrift.TException
|
295 |
public long recv_createPayment() throws PaymentException, org.apache.thrift.TException
|
| 283 |
{
|
296 |
{
|
| Line 591... |
Line 604... |
| 591 |
throw result.pe;
|
604 |
throw result.pe;
|
| 592 |
}
|
605 |
}
|
| 593 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
|
606 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
|
| 594 |
}
|
607 |
}
|
| 595 |
|
608 |
|
| - |
|
609 |
public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId) throws PaymentException, org.apache.thrift.TException
|
| - |
|
610 |
{
|
| - |
|
611 |
send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId);
|
| - |
|
612 |
return recv_doHdfcPaymentForDigitalOrder();
|
| - |
|
613 |
}
|
| - |
|
614 |
|
| - |
|
615 |
public void send_doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId) throws org.apache.thrift.TException
|
| - |
|
616 |
{
|
| - |
|
617 |
doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
|
| - |
|
618 |
args.setMerchantPaymentId(merchantPaymentId);
|
| - |
|
619 |
args.setRechargeOrderId(rechargeOrderId);
|
| - |
|
620 |
sendBase("doHdfcPaymentForDigitalOrder", args);
|
| - |
|
621 |
}
|
| - |
|
622 |
|
| - |
|
623 |
public String recv_doHdfcPaymentForDigitalOrder() throws PaymentException, org.apache.thrift.TException
|
| - |
|
624 |
{
|
| - |
|
625 |
doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
|
| - |
|
626 |
receiveBase(result, "doHdfcPaymentForDigitalOrder");
|
| - |
|
627 |
if (result.isSetSuccess()) {
|
| - |
|
628 |
return result.success;
|
| - |
|
629 |
}
|
| - |
|
630 |
if (result.pe != null) {
|
| - |
|
631 |
throw result.pe;
|
| - |
|
632 |
}
|
| - |
|
633 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "doHdfcPaymentForDigitalOrder failed: unknown result");
|
| - |
|
634 |
}
|
| - |
|
635 |
|
| 596 |
public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
|
636 |
public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
|
| 597 |
{
|
637 |
{
|
| 598 |
send_initializeHdfcEmiPayment(merchantPaymentId);
|
638 |
send_initializeHdfcEmiPayment(merchantPaymentId);
|
| 599 |
return recv_initializeHdfcEmiPayment();
|
639 |
return recv_initializeHdfcEmiPayment();
|
| 600 |
}
|
640 |
}
|
| Line 763... |
Line 803... |
| 763 |
|
803 |
|
| 764 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
804 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
| 765 |
super(protocolFactory, clientManager, transport);
|
805 |
super(protocolFactory, clientManager, transport);
|
| 766 |
}
|
806 |
}
|
| 767 |
|
807 |
|
| 768 |
public void createPayment(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler) throws org.apache.thrift.TException {
|
808 |
public void createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler) throws org.apache.thrift.TException {
|
| 769 |
checkReady();
|
809 |
checkReady();
|
| 770 |
createPayment_call method_call = new createPayment_call(userId, amount, gatewayId, txnId, resultHandler, this, ___protocolFactory, ___transport);
|
810 |
createPayment_call method_call = new createPayment_call(userId, amount, gatewayId, txnId, isDigital, resultHandler, this, ___protocolFactory, ___transport);
|
| 771 |
this.___currentMethod = method_call;
|
811 |
this.___currentMethod = method_call;
|
| 772 |
___manager.call(method_call);
|
812 |
___manager.call(method_call);
|
| 773 |
}
|
813 |
}
|
| 774 |
|
814 |
|
| 775 |
public static class createPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
815 |
public static class createPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 776 |
private long userId;
|
816 |
private long userId;
|
| 777 |
private double amount;
|
817 |
private double amount;
|
| 778 |
private long gatewayId;
|
818 |
private long gatewayId;
|
| 779 |
private long txnId;
|
819 |
private long txnId;
|
| - |
|
820 |
private boolean isDigital;
|
| 780 |
public createPayment_call(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<createPayment_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 {
|
821 |
public createPayment_call(long userId, double amount, long gatewayId, long txnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<createPayment_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 {
|
| 781 |
super(client, protocolFactory, transport, resultHandler, false);
|
822 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 782 |
this.userId = userId;
|
823 |
this.userId = userId;
|
| 783 |
this.amount = amount;
|
824 |
this.amount = amount;
|
| 784 |
this.gatewayId = gatewayId;
|
825 |
this.gatewayId = gatewayId;
|
| 785 |
this.txnId = txnId;
|
826 |
this.txnId = txnId;
|
| - |
|
827 |
this.isDigital = isDigital;
|
| 786 |
}
|
828 |
}
|
| 787 |
|
829 |
|
| 788 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
830 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 789 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
831 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 790 |
createPayment_args args = new createPayment_args();
|
832 |
createPayment_args args = new createPayment_args();
|
| 791 |
args.setUserId(userId);
|
833 |
args.setUserId(userId);
|
| 792 |
args.setAmount(amount);
|
834 |
args.setAmount(amount);
|
| 793 |
args.setGatewayId(gatewayId);
|
835 |
args.setGatewayId(gatewayId);
|
| 794 |
args.setTxnId(txnId);
|
836 |
args.setTxnId(txnId);
|
| - |
|
837 |
args.setIsDigital(isDigital);
|
| 795 |
args.write(prot);
|
838 |
args.write(prot);
|
| 796 |
prot.writeMessageEnd();
|
839 |
prot.writeMessageEnd();
|
| 797 |
}
|
840 |
}
|
| 798 |
|
841 |
|
| 799 |
public long getResult() throws PaymentException, org.apache.thrift.TException {
|
842 |
public long getResult() throws PaymentException, org.apache.thrift.TException {
|
| Line 1210... |
Line 1253... |
| 1210 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
1253 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 1211 |
return (new Client(prot)).recv_initializeHdfcPayment();
|
1254 |
return (new Client(prot)).recv_initializeHdfcPayment();
|
| 1212 |
}
|
1255 |
}
|
| 1213 |
}
|
1256 |
}
|
| 1214 |
|
1257 |
|
| - |
|
1258 |
public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException {
|
| - |
|
1259 |
checkReady();
|
| - |
|
1260 |
doHdfcPaymentForDigitalOrder_call method_call = new doHdfcPaymentForDigitalOrder_call(merchantPaymentId, rechargeOrderId, resultHandler, this, ___protocolFactory, ___transport);
|
| - |
|
1261 |
this.___currentMethod = method_call;
|
| - |
|
1262 |
___manager.call(method_call);
|
| - |
|
1263 |
}
|
| - |
|
1264 |
|
| - |
|
1265 |
public static class doHdfcPaymentForDigitalOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
1266 |
private long merchantPaymentId;
|
| - |
|
1267 |
private long rechargeOrderId;
|
| - |
|
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 {
|
| - |
|
1269 |
super(client, protocolFactory, transport, resultHandler, false);
|
| - |
|
1270 |
this.merchantPaymentId = merchantPaymentId;
|
| - |
|
1271 |
this.rechargeOrderId = rechargeOrderId;
|
| - |
|
1272 |
}
|
| - |
|
1273 |
|
| - |
|
1274 |
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));
|
| - |
|
1276 |
doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
|
| - |
|
1277 |
args.setMerchantPaymentId(merchantPaymentId);
|
| - |
|
1278 |
args.setRechargeOrderId(rechargeOrderId);
|
| - |
|
1279 |
args.write(prot);
|
| - |
|
1280 |
prot.writeMessageEnd();
|
| - |
|
1281 |
}
|
| - |
|
1282 |
|
| - |
|
1283 |
public String getResult() throws PaymentException, org.apache.thrift.TException {
|
| - |
|
1284 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| - |
|
1285 |
throw new IllegalStateException("Method call not finished!");
|
| - |
|
1286 |
}
|
| - |
|
1287 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| - |
|
1288 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| - |
|
1289 |
return (new Client(prot)).recv_doHdfcPaymentForDigitalOrder();
|
| - |
|
1290 |
}
|
| - |
|
1291 |
}
|
| - |
|
1292 |
|
| 1215 |
public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException {
|
1293 |
public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException {
|
| 1216 |
checkReady();
|
1294 |
checkReady();
|
| 1217 |
initializeHdfcEmiPayment_call method_call = new initializeHdfcEmiPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
|
1295 |
initializeHdfcEmiPayment_call method_call = new initializeHdfcEmiPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
|
| 1218 |
this.___currentMethod = method_call;
|
1296 |
this.___currentMethod = method_call;
|
| 1219 |
___manager.call(method_call);
|
1297 |
___manager.call(method_call);
|
| Line 1448... |
Line 1526... |
| 1448 |
processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
|
1526 |
processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
|
| 1449 |
processMap.put("getSuccessfulPaymentForTxnId", new getSuccessfulPaymentForTxnId());
|
1527 |
processMap.put("getSuccessfulPaymentForTxnId", new getSuccessfulPaymentForTxnId());
|
| 1450 |
processMap.put("updatePaymentDetails", new updatePaymentDetails());
|
1528 |
processMap.put("updatePaymentDetails", new updatePaymentDetails());
|
| 1451 |
processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
|
1529 |
processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
|
| 1452 |
processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
|
1530 |
processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
|
| - |
|
1531 |
processMap.put("doHdfcPaymentForDigitalOrder", new doHdfcPaymentForDigitalOrder());
|
| 1453 |
processMap.put("initializeHdfcEmiPayment", new initializeHdfcEmiPayment());
|
1532 |
processMap.put("initializeHdfcEmiPayment", new initializeHdfcEmiPayment());
|
| 1454 |
processMap.put("createRefund", new createRefund());
|
1533 |
processMap.put("createRefund", new createRefund());
|
| 1455 |
processMap.put("capturePayment", new capturePayment());
|
1534 |
processMap.put("capturePayment", new capturePayment());
|
| 1456 |
processMap.put("partiallyCapturePayment", new partiallyCapturePayment());
|
1535 |
processMap.put("partiallyCapturePayment", new partiallyCapturePayment());
|
| 1457 |
processMap.put("getPaymentsRequiringExtraProcessing", new getPaymentsRequiringExtraProcessing());
|
1536 |
processMap.put("getPaymentsRequiringExtraProcessing", new getPaymentsRequiringExtraProcessing());
|
| Line 1469... |
Line 1548... |
| 1469 |
}
|
1548 |
}
|
| 1470 |
|
1549 |
|
| 1471 |
protected createPayment_result getResult(I iface, createPayment_args args) throws org.apache.thrift.TException {
|
1550 |
protected createPayment_result getResult(I iface, createPayment_args args) throws org.apache.thrift.TException {
|
| 1472 |
createPayment_result result = new createPayment_result();
|
1551 |
createPayment_result result = new createPayment_result();
|
| 1473 |
try {
|
1552 |
try {
|
| 1474 |
result.success = iface.createPayment(args.userId, args.amount, args.gatewayId, args.txnId);
|
1553 |
result.success = iface.createPayment(args.userId, args.amount, args.gatewayId, args.txnId, args.isDigital);
|
| 1475 |
result.setSuccessIsSet(true);
|
1554 |
result.setSuccessIsSet(true);
|
| 1476 |
} catch (PaymentException pe) {
|
1555 |
} catch (PaymentException pe) {
|
| 1477 |
result.pe = pe;
|
1556 |
result.pe = pe;
|
| 1478 |
}
|
1557 |
}
|
| 1479 |
return result;
|
1558 |
return result;
|
| Line 1695... |
Line 1774... |
| 1695 |
}
|
1774 |
}
|
| 1696 |
return result;
|
1775 |
return result;
|
| 1697 |
}
|
1776 |
}
|
| 1698 |
}
|
1777 |
}
|
| 1699 |
|
1778 |
|
| - |
|
1779 |
private static class doHdfcPaymentForDigitalOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, doHdfcPaymentForDigitalOrder_args> {
|
| - |
|
1780 |
public doHdfcPaymentForDigitalOrder() {
|
| - |
|
1781 |
super("doHdfcPaymentForDigitalOrder");
|
| - |
|
1782 |
}
|
| - |
|
1783 |
|
| - |
|
1784 |
protected doHdfcPaymentForDigitalOrder_args getEmptyArgsInstance() {
|
| - |
|
1785 |
return new doHdfcPaymentForDigitalOrder_args();
|
| - |
|
1786 |
}
|
| - |
|
1787 |
|
| - |
|
1788 |
protected doHdfcPaymentForDigitalOrder_result getResult(I iface, doHdfcPaymentForDigitalOrder_args args) throws org.apache.thrift.TException {
|
| - |
|
1789 |
doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
|
| - |
|
1790 |
try {
|
| - |
|
1791 |
result.success = iface.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId);
|
| - |
|
1792 |
} catch (PaymentException pe) {
|
| - |
|
1793 |
result.pe = pe;
|
| - |
|
1794 |
}
|
| - |
|
1795 |
return result;
|
| - |
|
1796 |
}
|
| - |
|
1797 |
}
|
| - |
|
1798 |
|
| 1700 |
private static class initializeHdfcEmiPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcEmiPayment_args> {
|
1799 |
private static class initializeHdfcEmiPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcEmiPayment_args> {
|
| 1701 |
public initializeHdfcEmiPayment() {
|
1800 |
public initializeHdfcEmiPayment() {
|
| 1702 |
super("initializeHdfcEmiPayment");
|
1801 |
super("initializeHdfcEmiPayment");
|
| 1703 |
}
|
1802 |
}
|
| 1704 |
|
1803 |
|
| Line 1819... |
Line 1918... |
| 1819 |
|
1918 |
|
| 1820 |
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);
|
1919 |
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);
|
| 1821 |
private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
|
1920 |
private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
|
| 1822 |
private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.I64, (short)3);
|
1921 |
private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.I64, (short)3);
|
| 1823 |
private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)4);
|
1922 |
private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)4);
|
| - |
|
1923 |
private static final org.apache.thrift.protocol.TField IS_DIGITAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isDigital", org.apache.thrift.protocol.TType.BOOL, (short)5);
|
| 1824 |
|
1924 |
|
| 1825 |
private long userId; // required
|
1925 |
private long userId; // required
|
| 1826 |
private double amount; // required
|
1926 |
private double amount; // required
|
| 1827 |
private long gatewayId; // required
|
1927 |
private long gatewayId; // required
|
| 1828 |
private long txnId; // required
|
1928 |
private long txnId; // required
|
| - |
|
1929 |
private boolean isDigital; // required
|
| 1829 |
|
1930 |
|
| 1830 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
1931 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 1831 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
1932 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1832 |
USER_ID((short)1, "userId"),
|
1933 |
USER_ID((short)1, "userId"),
|
| 1833 |
AMOUNT((short)2, "amount"),
|
1934 |
AMOUNT((short)2, "amount"),
|
| 1834 |
GATEWAY_ID((short)3, "gatewayId"),
|
1935 |
GATEWAY_ID((short)3, "gatewayId"),
|
| 1835 |
TXN_ID((short)4, "txnId");
|
1936 |
TXN_ID((short)4, "txnId"),
|
| - |
|
1937 |
IS_DIGITAL((short)5, "isDigital");
|
| 1836 |
|
1938 |
|
| 1837 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
1939 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 1838 |
|
1940 |
|
| 1839 |
static {
|
1941 |
static {
|
| 1840 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
1942 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 1853... |
Line 1955... |
| 1853 |
return AMOUNT;
|
1955 |
return AMOUNT;
|
| 1854 |
case 3: // GATEWAY_ID
|
1956 |
case 3: // GATEWAY_ID
|
| 1855 |
return GATEWAY_ID;
|
1957 |
return GATEWAY_ID;
|
| 1856 |
case 4: // TXN_ID
|
1958 |
case 4: // TXN_ID
|
| 1857 |
return TXN_ID;
|
1959 |
return TXN_ID;
|
| - |
|
1960 |
case 5: // IS_DIGITAL
|
| - |
|
1961 |
return IS_DIGITAL;
|
| 1858 |
default:
|
1962 |
default:
|
| 1859 |
return null;
|
1963 |
return null;
|
| 1860 |
}
|
1964 |
}
|
| 1861 |
}
|
1965 |
}
|
| 1862 |
|
1966 |
|
| Line 1897... |
Line 2001... |
| 1897 |
// isset id assignments
|
2001 |
// isset id assignments
|
| 1898 |
private static final int __USERID_ISSET_ID = 0;
|
2002 |
private static final int __USERID_ISSET_ID = 0;
|
| 1899 |
private static final int __AMOUNT_ISSET_ID = 1;
|
2003 |
private static final int __AMOUNT_ISSET_ID = 1;
|
| 1900 |
private static final int __GATEWAYID_ISSET_ID = 2;
|
2004 |
private static final int __GATEWAYID_ISSET_ID = 2;
|
| 1901 |
private static final int __TXNID_ISSET_ID = 3;
|
2005 |
private static final int __TXNID_ISSET_ID = 3;
|
| - |
|
2006 |
private static final int __ISDIGITAL_ISSET_ID = 4;
|
| 1902 |
private BitSet __isset_bit_vector = new BitSet(4);
|
2007 |
private BitSet __isset_bit_vector = new BitSet(5);
|
| 1903 |
|
2008 |
|
| 1904 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
2009 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1905 |
static {
|
2010 |
static {
|
| 1906 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
2011 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 1907 |
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
2012 |
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 1910... |
Line 2015... |
| 1910 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
2015 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 1911 |
tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
2016 |
tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 1912 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
2017 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 1913 |
tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
2018 |
tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 1914 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
2019 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
2020 |
tmpMap.put(_Fields.IS_DIGITAL, new org.apache.thrift.meta_data.FieldMetaData("isDigital", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
2021 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 1915 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
2022 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 1916 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
|
2023 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
|
| 1917 |
}
|
2024 |
}
|
| 1918 |
|
2025 |
|
| 1919 |
public createPayment_args() {
|
2026 |
public createPayment_args() {
|
| Line 1921... |
Line 2028... |
| 1921 |
|
2028 |
|
| 1922 |
public createPayment_args(
|
2029 |
public createPayment_args(
|
| 1923 |
long userId,
|
2030 |
long userId,
|
| 1924 |
double amount,
|
2031 |
double amount,
|
| 1925 |
long gatewayId,
|
2032 |
long gatewayId,
|
| 1926 |
long txnId)
|
2033 |
long txnId,
|
| - |
|
2034 |
boolean isDigital)
|
| 1927 |
{
|
2035 |
{
|
| 1928 |
this();
|
2036 |
this();
|
| 1929 |
this.userId = userId;
|
2037 |
this.userId = userId;
|
| 1930 |
setUserIdIsSet(true);
|
2038 |
setUserIdIsSet(true);
|
| 1931 |
this.amount = amount;
|
2039 |
this.amount = amount;
|
| 1932 |
setAmountIsSet(true);
|
2040 |
setAmountIsSet(true);
|
| 1933 |
this.gatewayId = gatewayId;
|
2041 |
this.gatewayId = gatewayId;
|
| 1934 |
setGatewayIdIsSet(true);
|
2042 |
setGatewayIdIsSet(true);
|
| 1935 |
this.txnId = txnId;
|
2043 |
this.txnId = txnId;
|
| 1936 |
setTxnIdIsSet(true);
|
2044 |
setTxnIdIsSet(true);
|
| - |
|
2045 |
this.isDigital = isDigital;
|
| - |
|
2046 |
setIsDigitalIsSet(true);
|
| 1937 |
}
|
2047 |
}
|
| 1938 |
|
2048 |
|
| 1939 |
/**
|
2049 |
/**
|
| 1940 |
* Performs a deep copy on <i>other</i>.
|
2050 |
* Performs a deep copy on <i>other</i>.
|
| 1941 |
*/
|
2051 |
*/
|
| Line 1944... |
Line 2054... |
| 1944 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
2054 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 1945 |
this.userId = other.userId;
|
2055 |
this.userId = other.userId;
|
| 1946 |
this.amount = other.amount;
|
2056 |
this.amount = other.amount;
|
| 1947 |
this.gatewayId = other.gatewayId;
|
2057 |
this.gatewayId = other.gatewayId;
|
| 1948 |
this.txnId = other.txnId;
|
2058 |
this.txnId = other.txnId;
|
| - |
|
2059 |
this.isDigital = other.isDigital;
|
| 1949 |
}
|
2060 |
}
|
| 1950 |
|
2061 |
|
| 1951 |
public createPayment_args deepCopy() {
|
2062 |
public createPayment_args deepCopy() {
|
| 1952 |
return new createPayment_args(this);
|
2063 |
return new createPayment_args(this);
|
| 1953 |
}
|
2064 |
}
|
| Line 1960... |
Line 2071... |
| 1960 |
this.amount = 0.0;
|
2071 |
this.amount = 0.0;
|
| 1961 |
setGatewayIdIsSet(false);
|
2072 |
setGatewayIdIsSet(false);
|
| 1962 |
this.gatewayId = 0;
|
2073 |
this.gatewayId = 0;
|
| 1963 |
setTxnIdIsSet(false);
|
2074 |
setTxnIdIsSet(false);
|
| 1964 |
this.txnId = 0;
|
2075 |
this.txnId = 0;
|
| - |
|
2076 |
setIsDigitalIsSet(false);
|
| - |
|
2077 |
this.isDigital = false;
|
| 1965 |
}
|
2078 |
}
|
| 1966 |
|
2079 |
|
| 1967 |
public long getUserId() {
|
2080 |
public long getUserId() {
|
| 1968 |
return this.userId;
|
2081 |
return this.userId;
|
| 1969 |
}
|
2082 |
}
|
| Line 2050... |
Line 2163... |
| 2050 |
|
2163 |
|
| 2051 |
public void setTxnIdIsSet(boolean value) {
|
2164 |
public void setTxnIdIsSet(boolean value) {
|
| 2052 |
__isset_bit_vector.set(__TXNID_ISSET_ID, value);
|
2165 |
__isset_bit_vector.set(__TXNID_ISSET_ID, value);
|
| 2053 |
}
|
2166 |
}
|
| 2054 |
|
2167 |
|
| - |
|
2168 |
public boolean isIsDigital() {
|
| - |
|
2169 |
return this.isDigital;
|
| - |
|
2170 |
}
|
| - |
|
2171 |
|
| - |
|
2172 |
public void setIsDigital(boolean isDigital) {
|
| - |
|
2173 |
this.isDigital = isDigital;
|
| - |
|
2174 |
setIsDigitalIsSet(true);
|
| - |
|
2175 |
}
|
| - |
|
2176 |
|
| - |
|
2177 |
public void unsetIsDigital() {
|
| - |
|
2178 |
__isset_bit_vector.clear(__ISDIGITAL_ISSET_ID);
|
| - |
|
2179 |
}
|
| - |
|
2180 |
|
| - |
|
2181 |
/** Returns true if field isDigital is set (has been assigned a value) and false otherwise */
|
| - |
|
2182 |
public boolean isSetIsDigital() {
|
| - |
|
2183 |
return __isset_bit_vector.get(__ISDIGITAL_ISSET_ID);
|
| - |
|
2184 |
}
|
| - |
|
2185 |
|
| - |
|
2186 |
public void setIsDigitalIsSet(boolean value) {
|
| - |
|
2187 |
__isset_bit_vector.set(__ISDIGITAL_ISSET_ID, value);
|
| - |
|
2188 |
}
|
| - |
|
2189 |
|
| 2055 |
public void setFieldValue(_Fields field, Object value) {
|
2190 |
public void setFieldValue(_Fields field, Object value) {
|
| 2056 |
switch (field) {
|
2191 |
switch (field) {
|
| 2057 |
case USER_ID:
|
2192 |
case USER_ID:
|
| 2058 |
if (value == null) {
|
2193 |
if (value == null) {
|
| 2059 |
unsetUserId();
|
2194 |
unsetUserId();
|
| Line 2084... |
Line 2219... |
| 2084 |
} else {
|
2219 |
} else {
|
| 2085 |
setTxnId((Long)value);
|
2220 |
setTxnId((Long)value);
|
| 2086 |
}
|
2221 |
}
|
| 2087 |
break;
|
2222 |
break;
|
| 2088 |
|
2223 |
|
| - |
|
2224 |
case IS_DIGITAL:
|
| - |
|
2225 |
if (value == null) {
|
| - |
|
2226 |
unsetIsDigital();
|
| - |
|
2227 |
} else {
|
| - |
|
2228 |
setIsDigital((Boolean)value);
|
| - |
|
2229 |
}
|
| - |
|
2230 |
break;
|
| - |
|
2231 |
|
| 2089 |
}
|
2232 |
}
|
| 2090 |
}
|
2233 |
}
|
| 2091 |
|
2234 |
|
| 2092 |
public Object getFieldValue(_Fields field) {
|
2235 |
public Object getFieldValue(_Fields field) {
|
| 2093 |
switch (field) {
|
2236 |
switch (field) {
|
| Line 2101... |
Line 2244... |
| 2101 |
return Long.valueOf(getGatewayId());
|
2244 |
return Long.valueOf(getGatewayId());
|
| 2102 |
|
2245 |
|
| 2103 |
case TXN_ID:
|
2246 |
case TXN_ID:
|
| 2104 |
return Long.valueOf(getTxnId());
|
2247 |
return Long.valueOf(getTxnId());
|
| 2105 |
|
2248 |
|
| - |
|
2249 |
case IS_DIGITAL:
|
| - |
|
2250 |
return Boolean.valueOf(isIsDigital());
|
| - |
|
2251 |
|
| 2106 |
}
|
2252 |
}
|
| 2107 |
throw new IllegalStateException();
|
2253 |
throw new IllegalStateException();
|
| 2108 |
}
|
2254 |
}
|
| 2109 |
|
2255 |
|
| 2110 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
2256 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 2120... |
Line 2266... |
| 2120 |
return isSetAmount();
|
2266 |
return isSetAmount();
|
| 2121 |
case GATEWAY_ID:
|
2267 |
case GATEWAY_ID:
|
| 2122 |
return isSetGatewayId();
|
2268 |
return isSetGatewayId();
|
| 2123 |
case TXN_ID:
|
2269 |
case TXN_ID:
|
| 2124 |
return isSetTxnId();
|
2270 |
return isSetTxnId();
|
| - |
|
2271 |
case IS_DIGITAL:
|
| - |
|
2272 |
return isSetIsDigital();
|
| 2125 |
}
|
2273 |
}
|
| 2126 |
throw new IllegalStateException();
|
2274 |
throw new IllegalStateException();
|
| 2127 |
}
|
2275 |
}
|
| 2128 |
|
2276 |
|
| 2129 |
@Override
|
2277 |
@Override
|
| Line 2173... |
Line 2321... |
| 2173 |
return false;
|
2321 |
return false;
|
| 2174 |
if (this.txnId != that.txnId)
|
2322 |
if (this.txnId != that.txnId)
|
| 2175 |
return false;
|
2323 |
return false;
|
| 2176 |
}
|
2324 |
}
|
| 2177 |
|
2325 |
|
| - |
|
2326 |
boolean this_present_isDigital = true;
|
| - |
|
2327 |
boolean that_present_isDigital = true;
|
| - |
|
2328 |
if (this_present_isDigital || that_present_isDigital) {
|
| - |
|
2329 |
if (!(this_present_isDigital && that_present_isDigital))
|
| - |
|
2330 |
return false;
|
| - |
|
2331 |
if (this.isDigital != that.isDigital)
|
| - |
|
2332 |
return false;
|
| - |
|
2333 |
}
|
| - |
|
2334 |
|
| 2178 |
return true;
|
2335 |
return true;
|
| 2179 |
}
|
2336 |
}
|
| 2180 |
|
2337 |
|
| 2181 |
@Override
|
2338 |
@Override
|
| 2182 |
public int hashCode() {
|
2339 |
public int hashCode() {
|
| Line 2229... |
Line 2386... |
| 2229 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
|
2386 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
|
| 2230 |
if (lastComparison != 0) {
|
2387 |
if (lastComparison != 0) {
|
| 2231 |
return lastComparison;
|
2388 |
return lastComparison;
|
| 2232 |
}
|
2389 |
}
|
| 2233 |
}
|
2390 |
}
|
| - |
|
2391 |
lastComparison = Boolean.valueOf(isSetIsDigital()).compareTo(typedOther.isSetIsDigital());
|
| - |
|
2392 |
if (lastComparison != 0) {
|
| - |
|
2393 |
return lastComparison;
|
| - |
|
2394 |
}
|
| - |
|
2395 |
if (isSetIsDigital()) {
|
| - |
|
2396 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDigital, typedOther.isDigital);
|
| - |
|
2397 |
if (lastComparison != 0) {
|
| - |
|
2398 |
return lastComparison;
|
| - |
|
2399 |
}
|
| - |
|
2400 |
}
|
| 2234 |
return 0;
|
2401 |
return 0;
|
| 2235 |
}
|
2402 |
}
|
| 2236 |
|
2403 |
|
| 2237 |
public _Fields fieldForId(int fieldId) {
|
2404 |
public _Fields fieldForId(int fieldId) {
|
| 2238 |
return _Fields.findByThriftId(fieldId);
|
2405 |
return _Fields.findByThriftId(fieldId);
|
| Line 2278... |
Line 2445... |
| 2278 |
setTxnIdIsSet(true);
|
2445 |
setTxnIdIsSet(true);
|
| 2279 |
} else {
|
2446 |
} else {
|
| 2280 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
2447 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2281 |
}
|
2448 |
}
|
| 2282 |
break;
|
2449 |
break;
|
| - |
|
2450 |
case 5: // IS_DIGITAL
|
| - |
|
2451 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
| - |
|
2452 |
this.isDigital = iprot.readBool();
|
| - |
|
2453 |
setIsDigitalIsSet(true);
|
| - |
|
2454 |
} else {
|
| - |
|
2455 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
2456 |
}
|
| - |
|
2457 |
break;
|
| 2283 |
default:
|
2458 |
default:
|
| 2284 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
2459 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2285 |
}
|
2460 |
}
|
| 2286 |
iprot.readFieldEnd();
|
2461 |
iprot.readFieldEnd();
|
| 2287 |
}
|
2462 |
}
|
| Line 2303... |
Line 2478... |
| 2303 |
oprot.writeI64(this.gatewayId);
|
2478 |
oprot.writeI64(this.gatewayId);
|
| 2304 |
oprot.writeFieldEnd();
|
2479 |
oprot.writeFieldEnd();
|
| 2305 |
oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
|
2480 |
oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
|
| 2306 |
oprot.writeI64(this.txnId);
|
2481 |
oprot.writeI64(this.txnId);
|
| 2307 |
oprot.writeFieldEnd();
|
2482 |
oprot.writeFieldEnd();
|
| - |
|
2483 |
oprot.writeFieldBegin(IS_DIGITAL_FIELD_DESC);
|
| - |
|
2484 |
oprot.writeBool(this.isDigital);
|
| - |
|
2485 |
oprot.writeFieldEnd();
|
| 2308 |
oprot.writeFieldStop();
|
2486 |
oprot.writeFieldStop();
|
| 2309 |
oprot.writeStructEnd();
|
2487 |
oprot.writeStructEnd();
|
| 2310 |
}
|
2488 |
}
|
| 2311 |
|
2489 |
|
| 2312 |
@Override
|
2490 |
@Override
|
| Line 2327... |
Line 2505... |
| 2327 |
first = false;
|
2505 |
first = false;
|
| 2328 |
if (!first) sb.append(", ");
|
2506 |
if (!first) sb.append(", ");
|
| 2329 |
sb.append("txnId:");
|
2507 |
sb.append("txnId:");
|
| 2330 |
sb.append(this.txnId);
|
2508 |
sb.append(this.txnId);
|
| 2331 |
first = false;
|
2509 |
first = false;
|
| - |
|
2510 |
if (!first) sb.append(", ");
|
| - |
|
2511 |
sb.append("isDigital:");
|
| - |
|
2512 |
sb.append(this.isDigital);
|
| - |
|
2513 |
first = false;
|
| 2332 |
sb.append(")");
|
2514 |
sb.append(")");
|
| 2333 |
return sb.toString();
|
2515 |
return sb.toString();
|
| 2334 |
}
|
2516 |
}
|
| 2335 |
|
2517 |
|
| 2336 |
public void validate() throws org.apache.thrift.TException {
|
2518 |
public void validate() throws org.apache.thrift.TException {
|
| Line 11866... |
Line 12048... |
| 11866 |
boolean first = true;
|
12048 |
boolean first = true;
|
| 11867 |
|
12049 |
|
| 11868 |
sb.append("success:");
|
12050 |
sb.append("success:");
|
| 11869 |
if (this.success == null) {
|
12051 |
if (this.success == null) {
|
| 11870 |
sb.append("null");
|
12052 |
sb.append("null");
|
| - |
|
12053 |
} else {
|
| - |
|
12054 |
sb.append(this.success);
|
| - |
|
12055 |
}
|
| - |
|
12056 |
first = false;
|
| - |
|
12057 |
if (!first) sb.append(", ");
|
| - |
|
12058 |
sb.append("pe:");
|
| - |
|
12059 |
if (this.pe == null) {
|
| - |
|
12060 |
sb.append("null");
|
| - |
|
12061 |
} else {
|
| - |
|
12062 |
sb.append(this.pe);
|
| - |
|
12063 |
}
|
| - |
|
12064 |
first = false;
|
| - |
|
12065 |
sb.append(")");
|
| - |
|
12066 |
return sb.toString();
|
| - |
|
12067 |
}
|
| - |
|
12068 |
|
| - |
|
12069 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
12070 |
// check for required fields
|
| - |
|
12071 |
}
|
| - |
|
12072 |
|
| - |
|
12073 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
12074 |
try {
|
| - |
|
12075 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
12076 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
12077 |
throw new java.io.IOException(te);
|
| - |
|
12078 |
}
|
| - |
|
12079 |
}
|
| - |
|
12080 |
|
| - |
|
12081 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
12082 |
try {
|
| - |
|
12083 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
12084 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
12085 |
throw new java.io.IOException(te);
|
| - |
|
12086 |
}
|
| - |
|
12087 |
}
|
| - |
|
12088 |
|
| - |
|
12089 |
}
|
| - |
|
12090 |
|
| - |
|
12091 |
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");
|
| - |
|
12093 |
|
| - |
|
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);
|
| - |
|
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);
|
| - |
|
12096 |
|
| - |
|
12097 |
private long merchantPaymentId; // required
|
| - |
|
12098 |
private long rechargeOrderId; // required
|
| - |
|
12099 |
|
| - |
|
12100 |
/** 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 {
|
| - |
|
12102 |
MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
|
| - |
|
12103 |
RECHARGE_ORDER_ID((short)2, "rechargeOrderId");
|
| - |
|
12104 |
|
| - |
|
12105 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
12106 |
|
| - |
|
12107 |
static {
|
| - |
|
12108 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
12109 |
byName.put(field.getFieldName(), field);
|
| - |
|
12110 |
}
|
| - |
|
12111 |
}
|
| - |
|
12112 |
|
| - |
|
12113 |
/**
|
| - |
|
12114 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
12115 |
*/
|
| - |
|
12116 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
12117 |
switch(fieldId) {
|
| - |
|
12118 |
case 1: // MERCHANT_PAYMENT_ID
|
| - |
|
12119 |
return MERCHANT_PAYMENT_ID;
|
| - |
|
12120 |
case 2: // RECHARGE_ORDER_ID
|
| - |
|
12121 |
return RECHARGE_ORDER_ID;
|
| - |
|
12122 |
default:
|
| - |
|
12123 |
return null;
|
| - |
|
12124 |
}
|
| - |
|
12125 |
}
|
| - |
|
12126 |
|
| - |
|
12127 |
/**
|
| - |
|
12128 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
12129 |
* if it is not found.
|
| - |
|
12130 |
*/
|
| - |
|
12131 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
12132 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
12133 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
12134 |
return fields;
|
| - |
|
12135 |
}
|
| - |
|
12136 |
|
| - |
|
12137 |
/**
|
| - |
|
12138 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
12139 |
*/
|
| - |
|
12140 |
public static _Fields findByName(String name) {
|
| - |
|
12141 |
return byName.get(name);
|
| - |
|
12142 |
}
|
| - |
|
12143 |
|
| - |
|
12144 |
private final short _thriftId;
|
| - |
|
12145 |
private final String _fieldName;
|
| - |
|
12146 |
|
| - |
|
12147 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
12148 |
_thriftId = thriftId;
|
| - |
|
12149 |
_fieldName = fieldName;
|
| - |
|
12150 |
}
|
| - |
|
12151 |
|
| - |
|
12152 |
public short getThriftFieldId() {
|
| - |
|
12153 |
return _thriftId;
|
| - |
|
12154 |
}
|
| - |
|
12155 |
|
| - |
|
12156 |
public String getFieldName() {
|
| - |
|
12157 |
return _fieldName;
|
| - |
|
12158 |
}
|
| - |
|
12159 |
}
|
| - |
|
12160 |
|
| - |
|
12161 |
// isset id assignments
|
| - |
|
12162 |
private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
|
| - |
|
12163 |
private static final int __RECHARGEORDERID_ISSET_ID = 1;
|
| - |
|
12164 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| - |
|
12165 |
|
| - |
|
12166 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
12167 |
static {
|
| - |
|
12168 |
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,
|
| - |
|
12170 |
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,
|
| - |
|
12172 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
12173 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
12174 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_args.class, metaDataMap);
|
| - |
|
12175 |
}
|
| - |
|
12176 |
|
| - |
|
12177 |
public doHdfcPaymentForDigitalOrder_args() {
|
| - |
|
12178 |
}
|
| - |
|
12179 |
|
| - |
|
12180 |
public doHdfcPaymentForDigitalOrder_args(
|
| - |
|
12181 |
long merchantPaymentId,
|
| - |
|
12182 |
long rechargeOrderId)
|
| - |
|
12183 |
{
|
| - |
|
12184 |
this();
|
| - |
|
12185 |
this.merchantPaymentId = merchantPaymentId;
|
| - |
|
12186 |
setMerchantPaymentIdIsSet(true);
|
| - |
|
12187 |
this.rechargeOrderId = rechargeOrderId;
|
| - |
|
12188 |
setRechargeOrderIdIsSet(true);
|
| - |
|
12189 |
}
|
| - |
|
12190 |
|
| - |
|
12191 |
/**
|
| - |
|
12192 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
12193 |
*/
|
| - |
|
12194 |
public doHdfcPaymentForDigitalOrder_args(doHdfcPaymentForDigitalOrder_args other) {
|
| - |
|
12195 |
__isset_bit_vector.clear();
|
| - |
|
12196 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| - |
|
12197 |
this.merchantPaymentId = other.merchantPaymentId;
|
| - |
|
12198 |
this.rechargeOrderId = other.rechargeOrderId;
|
| - |
|
12199 |
}
|
| - |
|
12200 |
|
| - |
|
12201 |
public doHdfcPaymentForDigitalOrder_args deepCopy() {
|
| - |
|
12202 |
return new doHdfcPaymentForDigitalOrder_args(this);
|
| - |
|
12203 |
}
|
| - |
|
12204 |
|
| - |
|
12205 |
@Override
|
| - |
|
12206 |
public void clear() {
|
| - |
|
12207 |
setMerchantPaymentIdIsSet(false);
|
| - |
|
12208 |
this.merchantPaymentId = 0;
|
| - |
|
12209 |
setRechargeOrderIdIsSet(false);
|
| - |
|
12210 |
this.rechargeOrderId = 0;
|
| - |
|
12211 |
}
|
| - |
|
12212 |
|
| - |
|
12213 |
public long getMerchantPaymentId() {
|
| - |
|
12214 |
return this.merchantPaymentId;
|
| - |
|
12215 |
}
|
| - |
|
12216 |
|
| - |
|
12217 |
public void setMerchantPaymentId(long merchantPaymentId) {
|
| - |
|
12218 |
this.merchantPaymentId = merchantPaymentId;
|
| - |
|
12219 |
setMerchantPaymentIdIsSet(true);
|
| - |
|
12220 |
}
|
| - |
|
12221 |
|
| - |
|
12222 |
public void unsetMerchantPaymentId() {
|
| - |
|
12223 |
__isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
|
| - |
|
12224 |
}
|
| - |
|
12225 |
|
| - |
|
12226 |
/** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
|
| - |
|
12227 |
public boolean isSetMerchantPaymentId() {
|
| - |
|
12228 |
return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
|
| - |
|
12229 |
}
|
| - |
|
12230 |
|
| - |
|
12231 |
public void setMerchantPaymentIdIsSet(boolean value) {
|
| - |
|
12232 |
__isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
|
| - |
|
12233 |
}
|
| - |
|
12234 |
|
| - |
|
12235 |
public long getRechargeOrderId() {
|
| - |
|
12236 |
return this.rechargeOrderId;
|
| - |
|
12237 |
}
|
| - |
|
12238 |
|
| - |
|
12239 |
public void setRechargeOrderId(long rechargeOrderId) {
|
| - |
|
12240 |
this.rechargeOrderId = rechargeOrderId;
|
| - |
|
12241 |
setRechargeOrderIdIsSet(true);
|
| - |
|
12242 |
}
|
| - |
|
12243 |
|
| - |
|
12244 |
public void unsetRechargeOrderId() {
|
| - |
|
12245 |
__isset_bit_vector.clear(__RECHARGEORDERID_ISSET_ID);
|
| - |
|
12246 |
}
|
| - |
|
12247 |
|
| - |
|
12248 |
/** Returns true if field rechargeOrderId is set (has been assigned a value) and false otherwise */
|
| - |
|
12249 |
public boolean isSetRechargeOrderId() {
|
| - |
|
12250 |
return __isset_bit_vector.get(__RECHARGEORDERID_ISSET_ID);
|
| - |
|
12251 |
}
|
| - |
|
12252 |
|
| - |
|
12253 |
public void setRechargeOrderIdIsSet(boolean value) {
|
| - |
|
12254 |
__isset_bit_vector.set(__RECHARGEORDERID_ISSET_ID, value);
|
| - |
|
12255 |
}
|
| - |
|
12256 |
|
| - |
|
12257 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
12258 |
switch (field) {
|
| - |
|
12259 |
case MERCHANT_PAYMENT_ID:
|
| - |
|
12260 |
if (value == null) {
|
| - |
|
12261 |
unsetMerchantPaymentId();
|
| - |
|
12262 |
} else {
|
| - |
|
12263 |
setMerchantPaymentId((Long)value);
|
| - |
|
12264 |
}
|
| - |
|
12265 |
break;
|
| - |
|
12266 |
|
| - |
|
12267 |
case RECHARGE_ORDER_ID:
|
| - |
|
12268 |
if (value == null) {
|
| - |
|
12269 |
unsetRechargeOrderId();
|
| - |
|
12270 |
} else {
|
| - |
|
12271 |
setRechargeOrderId((Long)value);
|
| - |
|
12272 |
}
|
| - |
|
12273 |
break;
|
| - |
|
12274 |
|
| - |
|
12275 |
}
|
| - |
|
12276 |
}
|
| - |
|
12277 |
|
| - |
|
12278 |
public Object getFieldValue(_Fields field) {
|
| - |
|
12279 |
switch (field) {
|
| - |
|
12280 |
case MERCHANT_PAYMENT_ID:
|
| - |
|
12281 |
return Long.valueOf(getMerchantPaymentId());
|
| - |
|
12282 |
|
| - |
|
12283 |
case RECHARGE_ORDER_ID:
|
| - |
|
12284 |
return Long.valueOf(getRechargeOrderId());
|
| - |
|
12285 |
|
| - |
|
12286 |
}
|
| - |
|
12287 |
throw new IllegalStateException();
|
| - |
|
12288 |
}
|
| - |
|
12289 |
|
| - |
|
12290 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
12291 |
public boolean isSet(_Fields field) {
|
| - |
|
12292 |
if (field == null) {
|
| - |
|
12293 |
throw new IllegalArgumentException();
|
| - |
|
12294 |
}
|
| - |
|
12295 |
|
| - |
|
12296 |
switch (field) {
|
| - |
|
12297 |
case MERCHANT_PAYMENT_ID:
|
| - |
|
12298 |
return isSetMerchantPaymentId();
|
| - |
|
12299 |
case RECHARGE_ORDER_ID:
|
| - |
|
12300 |
return isSetRechargeOrderId();
|
| - |
|
12301 |
}
|
| - |
|
12302 |
throw new IllegalStateException();
|
| - |
|
12303 |
}
|
| - |
|
12304 |
|
| - |
|
12305 |
@Override
|
| - |
|
12306 |
public boolean equals(Object that) {
|
| - |
|
12307 |
if (that == null)
|
| - |
|
12308 |
return false;
|
| - |
|
12309 |
if (that instanceof doHdfcPaymentForDigitalOrder_args)
|
| - |
|
12310 |
return this.equals((doHdfcPaymentForDigitalOrder_args)that);
|
| - |
|
12311 |
return false;
|
| - |
|
12312 |
}
|
| - |
|
12313 |
|
| - |
|
12314 |
public boolean equals(doHdfcPaymentForDigitalOrder_args that) {
|
| - |
|
12315 |
if (that == null)
|
| - |
|
12316 |
return false;
|
| - |
|
12317 |
|
| - |
|
12318 |
boolean this_present_merchantPaymentId = true;
|
| - |
|
12319 |
boolean that_present_merchantPaymentId = true;
|
| - |
|
12320 |
if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
|
| - |
|
12321 |
if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
|
| - |
|
12322 |
return false;
|
| - |
|
12323 |
if (this.merchantPaymentId != that.merchantPaymentId)
|
| - |
|
12324 |
return false;
|
| - |
|
12325 |
}
|
| - |
|
12326 |
|
| - |
|
12327 |
boolean this_present_rechargeOrderId = true;
|
| - |
|
12328 |
boolean that_present_rechargeOrderId = true;
|
| - |
|
12329 |
if (this_present_rechargeOrderId || that_present_rechargeOrderId) {
|
| - |
|
12330 |
if (!(this_present_rechargeOrderId && that_present_rechargeOrderId))
|
| - |
|
12331 |
return false;
|
| - |
|
12332 |
if (this.rechargeOrderId != that.rechargeOrderId)
|
| - |
|
12333 |
return false;
|
| - |
|
12334 |
}
|
| - |
|
12335 |
|
| - |
|
12336 |
return true;
|
| - |
|
12337 |
}
|
| - |
|
12338 |
|
| - |
|
12339 |
@Override
|
| - |
|
12340 |
public int hashCode() {
|
| - |
|
12341 |
return 0;
|
| - |
|
12342 |
}
|
| - |
|
12343 |
|
| - |
|
12344 |
public int compareTo(doHdfcPaymentForDigitalOrder_args other) {
|
| - |
|
12345 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
12346 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
12347 |
}
|
| - |
|
12348 |
|
| - |
|
12349 |
int lastComparison = 0;
|
| - |
|
12350 |
doHdfcPaymentForDigitalOrder_args typedOther = (doHdfcPaymentForDigitalOrder_args)other;
|
| - |
|
12351 |
|
| - |
|
12352 |
lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
|
| - |
|
12353 |
if (lastComparison != 0) {
|
| - |
|
12354 |
return lastComparison;
|
| - |
|
12355 |
}
|
| - |
|
12356 |
if (isSetMerchantPaymentId()) {
|
| - |
|
12357 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
|
| - |
|
12358 |
if (lastComparison != 0) {
|
| - |
|
12359 |
return lastComparison;
|
| - |
|
12360 |
}
|
| - |
|
12361 |
}
|
| - |
|
12362 |
lastComparison = Boolean.valueOf(isSetRechargeOrderId()).compareTo(typedOther.isSetRechargeOrderId());
|
| - |
|
12363 |
if (lastComparison != 0) {
|
| - |
|
12364 |
return lastComparison;
|
| - |
|
12365 |
}
|
| - |
|
12366 |
if (isSetRechargeOrderId()) {
|
| - |
|
12367 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrderId, typedOther.rechargeOrderId);
|
| - |
|
12368 |
if (lastComparison != 0) {
|
| - |
|
12369 |
return lastComparison;
|
| - |
|
12370 |
}
|
| - |
|
12371 |
}
|
| - |
|
12372 |
return 0;
|
| - |
|
12373 |
}
|
| - |
|
12374 |
|
| - |
|
12375 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
12376 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
12377 |
}
|
| - |
|
12378 |
|
| - |
|
12379 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
12380 |
org.apache.thrift.protocol.TField field;
|
| - |
|
12381 |
iprot.readStructBegin();
|
| - |
|
12382 |
while (true)
|
| - |
|
12383 |
{
|
| - |
|
12384 |
field = iprot.readFieldBegin();
|
| - |
|
12385 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
12386 |
break;
|
| - |
|
12387 |
}
|
| - |
|
12388 |
switch (field.id) {
|
| - |
|
12389 |
case 1: // MERCHANT_PAYMENT_ID
|
| - |
|
12390 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
12391 |
this.merchantPaymentId = iprot.readI64();
|
| - |
|
12392 |
setMerchantPaymentIdIsSet(true);
|
| - |
|
12393 |
} else {
|
| - |
|
12394 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12395 |
}
|
| - |
|
12396 |
break;
|
| - |
|
12397 |
case 2: // RECHARGE_ORDER_ID
|
| - |
|
12398 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
12399 |
this.rechargeOrderId = iprot.readI64();
|
| - |
|
12400 |
setRechargeOrderIdIsSet(true);
|
| - |
|
12401 |
} else {
|
| - |
|
12402 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12403 |
}
|
| - |
|
12404 |
break;
|
| - |
|
12405 |
default:
|
| - |
|
12406 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12407 |
}
|
| - |
|
12408 |
iprot.readFieldEnd();
|
| - |
|
12409 |
}
|
| - |
|
12410 |
iprot.readStructEnd();
|
| - |
|
12411 |
validate();
|
| - |
|
12412 |
}
|
| - |
|
12413 |
|
| - |
|
12414 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
12415 |
validate();
|
| - |
|
12416 |
|
| - |
|
12417 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
12418 |
oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
|
| - |
|
12419 |
oprot.writeI64(this.merchantPaymentId);
|
| - |
|
12420 |
oprot.writeFieldEnd();
|
| - |
|
12421 |
oprot.writeFieldBegin(RECHARGE_ORDER_ID_FIELD_DESC);
|
| - |
|
12422 |
oprot.writeI64(this.rechargeOrderId);
|
| - |
|
12423 |
oprot.writeFieldEnd();
|
| - |
|
12424 |
oprot.writeFieldStop();
|
| - |
|
12425 |
oprot.writeStructEnd();
|
| - |
|
12426 |
}
|
| - |
|
12427 |
|
| - |
|
12428 |
@Override
|
| - |
|
12429 |
public String toString() {
|
| - |
|
12430 |
StringBuilder sb = new StringBuilder("doHdfcPaymentForDigitalOrder_args(");
|
| - |
|
12431 |
boolean first = true;
|
| - |
|
12432 |
|
| - |
|
12433 |
sb.append("merchantPaymentId:");
|
| - |
|
12434 |
sb.append(this.merchantPaymentId);
|
| - |
|
12435 |
first = false;
|
| - |
|
12436 |
if (!first) sb.append(", ");
|
| - |
|
12437 |
sb.append("rechargeOrderId:");
|
| - |
|
12438 |
sb.append(this.rechargeOrderId);
|
| - |
|
12439 |
first = false;
|
| - |
|
12440 |
sb.append(")");
|
| - |
|
12441 |
return sb.toString();
|
| - |
|
12442 |
}
|
| - |
|
12443 |
|
| - |
|
12444 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
12445 |
// check for required fields
|
| - |
|
12446 |
}
|
| - |
|
12447 |
|
| - |
|
12448 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
12449 |
try {
|
| - |
|
12450 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
12451 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
12452 |
throw new java.io.IOException(te);
|
| - |
|
12453 |
}
|
| - |
|
12454 |
}
|
| - |
|
12455 |
|
| - |
|
12456 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
12457 |
try {
|
| - |
|
12458 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
12459 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
12460 |
throw new java.io.IOException(te);
|
| - |
|
12461 |
}
|
| - |
|
12462 |
}
|
| - |
|
12463 |
|
| - |
|
12464 |
}
|
| - |
|
12465 |
|
| - |
|
12466 |
public static class doHdfcPaymentForDigitalOrder_result implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_result, doHdfcPaymentForDigitalOrder_result._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
12467 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_result");
|
| - |
|
12468 |
|
| - |
|
12469 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
|
| - |
|
12470 |
private static final org.apache.thrift.protocol.TField PE_FIELD_DESC = new org.apache.thrift.protocol.TField("pe", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| - |
|
12471 |
|
| - |
|
12472 |
private String success; // required
|
| - |
|
12473 |
private PaymentException pe; // required
|
| - |
|
12474 |
|
| - |
|
12475 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
12476 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
12477 |
SUCCESS((short)0, "success"),
|
| - |
|
12478 |
PE((short)1, "pe");
|
| - |
|
12479 |
|
| - |
|
12480 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
12481 |
|
| - |
|
12482 |
static {
|
| - |
|
12483 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
12484 |
byName.put(field.getFieldName(), field);
|
| - |
|
12485 |
}
|
| - |
|
12486 |
}
|
| - |
|
12487 |
|
| - |
|
12488 |
/**
|
| - |
|
12489 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
12490 |
*/
|
| - |
|
12491 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
12492 |
switch(fieldId) {
|
| - |
|
12493 |
case 0: // SUCCESS
|
| - |
|
12494 |
return SUCCESS;
|
| - |
|
12495 |
case 1: // PE
|
| - |
|
12496 |
return PE;
|
| - |
|
12497 |
default:
|
| - |
|
12498 |
return null;
|
| - |
|
12499 |
}
|
| - |
|
12500 |
}
|
| - |
|
12501 |
|
| - |
|
12502 |
/**
|
| - |
|
12503 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
12504 |
* if it is not found.
|
| - |
|
12505 |
*/
|
| - |
|
12506 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
12507 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
12508 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
12509 |
return fields;
|
| - |
|
12510 |
}
|
| - |
|
12511 |
|
| - |
|
12512 |
/**
|
| - |
|
12513 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
12514 |
*/
|
| - |
|
12515 |
public static _Fields findByName(String name) {
|
| - |
|
12516 |
return byName.get(name);
|
| - |
|
12517 |
}
|
| - |
|
12518 |
|
| - |
|
12519 |
private final short _thriftId;
|
| - |
|
12520 |
private final String _fieldName;
|
| - |
|
12521 |
|
| - |
|
12522 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
12523 |
_thriftId = thriftId;
|
| - |
|
12524 |
_fieldName = fieldName;
|
| - |
|
12525 |
}
|
| - |
|
12526 |
|
| - |
|
12527 |
public short getThriftFieldId() {
|
| - |
|
12528 |
return _thriftId;
|
| - |
|
12529 |
}
|
| - |
|
12530 |
|
| - |
|
12531 |
public String getFieldName() {
|
| - |
|
12532 |
return _fieldName;
|
| - |
|
12533 |
}
|
| - |
|
12534 |
}
|
| - |
|
12535 |
|
| - |
|
12536 |
// isset id assignments
|
| - |
|
12537 |
|
| - |
|
12538 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
12539 |
static {
|
| - |
|
12540 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
12541 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
12542 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| - |
|
12543 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
12544 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
| - |
|
12545 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
12546 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_result.class, metaDataMap);
|
| - |
|
12547 |
}
|
| - |
|
12548 |
|
| - |
|
12549 |
public doHdfcPaymentForDigitalOrder_result() {
|
| - |
|
12550 |
}
|
| - |
|
12551 |
|
| - |
|
12552 |
public doHdfcPaymentForDigitalOrder_result(
|
| - |
|
12553 |
String success,
|
| - |
|
12554 |
PaymentException pe)
|
| - |
|
12555 |
{
|
| - |
|
12556 |
this();
|
| - |
|
12557 |
this.success = success;
|
| - |
|
12558 |
this.pe = pe;
|
| - |
|
12559 |
}
|
| - |
|
12560 |
|
| - |
|
12561 |
/**
|
| - |
|
12562 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
12563 |
*/
|
| - |
|
12564 |
public doHdfcPaymentForDigitalOrder_result(doHdfcPaymentForDigitalOrder_result other) {
|
| - |
|
12565 |
if (other.isSetSuccess()) {
|
| - |
|
12566 |
this.success = other.success;
|
| - |
|
12567 |
}
|
| - |
|
12568 |
if (other.isSetPe()) {
|
| - |
|
12569 |
this.pe = new PaymentException(other.pe);
|
| - |
|
12570 |
}
|
| - |
|
12571 |
}
|
| - |
|
12572 |
|
| - |
|
12573 |
public doHdfcPaymentForDigitalOrder_result deepCopy() {
|
| - |
|
12574 |
return new doHdfcPaymentForDigitalOrder_result(this);
|
| - |
|
12575 |
}
|
| - |
|
12576 |
|
| - |
|
12577 |
@Override
|
| - |
|
12578 |
public void clear() {
|
| - |
|
12579 |
this.success = null;
|
| - |
|
12580 |
this.pe = null;
|
| - |
|
12581 |
}
|
| - |
|
12582 |
|
| - |
|
12583 |
public String getSuccess() {
|
| - |
|
12584 |
return this.success;
|
| - |
|
12585 |
}
|
| - |
|
12586 |
|
| - |
|
12587 |
public void setSuccess(String success) {
|
| - |
|
12588 |
this.success = success;
|
| - |
|
12589 |
}
|
| - |
|
12590 |
|
| - |
|
12591 |
public void unsetSuccess() {
|
| - |
|
12592 |
this.success = null;
|
| - |
|
12593 |
}
|
| - |
|
12594 |
|
| - |
|
12595 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| - |
|
12596 |
public boolean isSetSuccess() {
|
| - |
|
12597 |
return this.success != null;
|
| - |
|
12598 |
}
|
| - |
|
12599 |
|
| - |
|
12600 |
public void setSuccessIsSet(boolean value) {
|
| - |
|
12601 |
if (!value) {
|
| - |
|
12602 |
this.success = null;
|
| - |
|
12603 |
}
|
| - |
|
12604 |
}
|
| - |
|
12605 |
|
| - |
|
12606 |
public PaymentException getPe() {
|
| - |
|
12607 |
return this.pe;
|
| - |
|
12608 |
}
|
| - |
|
12609 |
|
| - |
|
12610 |
public void setPe(PaymentException pe) {
|
| - |
|
12611 |
this.pe = pe;
|
| - |
|
12612 |
}
|
| - |
|
12613 |
|
| - |
|
12614 |
public void unsetPe() {
|
| - |
|
12615 |
this.pe = null;
|
| - |
|
12616 |
}
|
| - |
|
12617 |
|
| - |
|
12618 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| - |
|
12619 |
public boolean isSetPe() {
|
| - |
|
12620 |
return this.pe != null;
|
| - |
|
12621 |
}
|
| - |
|
12622 |
|
| - |
|
12623 |
public void setPeIsSet(boolean value) {
|
| - |
|
12624 |
if (!value) {
|
| - |
|
12625 |
this.pe = null;
|
| - |
|
12626 |
}
|
| - |
|
12627 |
}
|
| - |
|
12628 |
|
| - |
|
12629 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
12630 |
switch (field) {
|
| - |
|
12631 |
case SUCCESS:
|
| - |
|
12632 |
if (value == null) {
|
| - |
|
12633 |
unsetSuccess();
|
| - |
|
12634 |
} else {
|
| - |
|
12635 |
setSuccess((String)value);
|
| - |
|
12636 |
}
|
| - |
|
12637 |
break;
|
| - |
|
12638 |
|
| - |
|
12639 |
case PE:
|
| - |
|
12640 |
if (value == null) {
|
| - |
|
12641 |
unsetPe();
|
| - |
|
12642 |
} else {
|
| - |
|
12643 |
setPe((PaymentException)value);
|
| - |
|
12644 |
}
|
| - |
|
12645 |
break;
|
| - |
|
12646 |
|
| - |
|
12647 |
}
|
| - |
|
12648 |
}
|
| - |
|
12649 |
|
| - |
|
12650 |
public Object getFieldValue(_Fields field) {
|
| - |
|
12651 |
switch (field) {
|
| - |
|
12652 |
case SUCCESS:
|
| - |
|
12653 |
return getSuccess();
|
| - |
|
12654 |
|
| - |
|
12655 |
case PE:
|
| - |
|
12656 |
return getPe();
|
| - |
|
12657 |
|
| - |
|
12658 |
}
|
| - |
|
12659 |
throw new IllegalStateException();
|
| - |
|
12660 |
}
|
| - |
|
12661 |
|
| - |
|
12662 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
12663 |
public boolean isSet(_Fields field) {
|
| - |
|
12664 |
if (field == null) {
|
| - |
|
12665 |
throw new IllegalArgumentException();
|
| - |
|
12666 |
}
|
| - |
|
12667 |
|
| - |
|
12668 |
switch (field) {
|
| - |
|
12669 |
case SUCCESS:
|
| - |
|
12670 |
return isSetSuccess();
|
| - |
|
12671 |
case PE:
|
| - |
|
12672 |
return isSetPe();
|
| - |
|
12673 |
}
|
| - |
|
12674 |
throw new IllegalStateException();
|
| - |
|
12675 |
}
|
| - |
|
12676 |
|
| - |
|
12677 |
@Override
|
| - |
|
12678 |
public boolean equals(Object that) {
|
| - |
|
12679 |
if (that == null)
|
| - |
|
12680 |
return false;
|
| - |
|
12681 |
if (that instanceof doHdfcPaymentForDigitalOrder_result)
|
| - |
|
12682 |
return this.equals((doHdfcPaymentForDigitalOrder_result)that);
|
| - |
|
12683 |
return false;
|
| - |
|
12684 |
}
|
| - |
|
12685 |
|
| - |
|
12686 |
public boolean equals(doHdfcPaymentForDigitalOrder_result that) {
|
| - |
|
12687 |
if (that == null)
|
| - |
|
12688 |
return false;
|
| - |
|
12689 |
|
| - |
|
12690 |
boolean this_present_success = true && this.isSetSuccess();
|
| - |
|
12691 |
boolean that_present_success = true && that.isSetSuccess();
|
| - |
|
12692 |
if (this_present_success || that_present_success) {
|
| - |
|
12693 |
if (!(this_present_success && that_present_success))
|
| - |
|
12694 |
return false;
|
| - |
|
12695 |
if (!this.success.equals(that.success))
|
| - |
|
12696 |
return false;
|
| - |
|
12697 |
}
|
| - |
|
12698 |
|
| - |
|
12699 |
boolean this_present_pe = true && this.isSetPe();
|
| - |
|
12700 |
boolean that_present_pe = true && that.isSetPe();
|
| - |
|
12701 |
if (this_present_pe || that_present_pe) {
|
| - |
|
12702 |
if (!(this_present_pe && that_present_pe))
|
| - |
|
12703 |
return false;
|
| - |
|
12704 |
if (!this.pe.equals(that.pe))
|
| - |
|
12705 |
return false;
|
| - |
|
12706 |
}
|
| - |
|
12707 |
|
| - |
|
12708 |
return true;
|
| - |
|
12709 |
}
|
| - |
|
12710 |
|
| - |
|
12711 |
@Override
|
| - |
|
12712 |
public int hashCode() {
|
| - |
|
12713 |
return 0;
|
| - |
|
12714 |
}
|
| - |
|
12715 |
|
| - |
|
12716 |
public int compareTo(doHdfcPaymentForDigitalOrder_result other) {
|
| - |
|
12717 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
12718 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
12719 |
}
|
| - |
|
12720 |
|
| - |
|
12721 |
int lastComparison = 0;
|
| - |
|
12722 |
doHdfcPaymentForDigitalOrder_result typedOther = (doHdfcPaymentForDigitalOrder_result)other;
|
| - |
|
12723 |
|
| - |
|
12724 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| - |
|
12725 |
if (lastComparison != 0) {
|
| - |
|
12726 |
return lastComparison;
|
| - |
|
12727 |
}
|
| - |
|
12728 |
if (isSetSuccess()) {
|
| - |
|
12729 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
| - |
|
12730 |
if (lastComparison != 0) {
|
| - |
|
12731 |
return lastComparison;
|
| - |
|
12732 |
}
|
| - |
|
12733 |
}
|
| - |
|
12734 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| - |
|
12735 |
if (lastComparison != 0) {
|
| - |
|
12736 |
return lastComparison;
|
| - |
|
12737 |
}
|
| - |
|
12738 |
if (isSetPe()) {
|
| - |
|
12739 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
| - |
|
12740 |
if (lastComparison != 0) {
|
| - |
|
12741 |
return lastComparison;
|
| - |
|
12742 |
}
|
| - |
|
12743 |
}
|
| - |
|
12744 |
return 0;
|
| - |
|
12745 |
}
|
| - |
|
12746 |
|
| - |
|
12747 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
12748 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
12749 |
}
|
| - |
|
12750 |
|
| - |
|
12751 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
12752 |
org.apache.thrift.protocol.TField field;
|
| - |
|
12753 |
iprot.readStructBegin();
|
| - |
|
12754 |
while (true)
|
| - |
|
12755 |
{
|
| - |
|
12756 |
field = iprot.readFieldBegin();
|
| - |
|
12757 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
12758 |
break;
|
| - |
|
12759 |
}
|
| - |
|
12760 |
switch (field.id) {
|
| - |
|
12761 |
case 0: // SUCCESS
|
| - |
|
12762 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| - |
|
12763 |
this.success = iprot.readString();
|
| - |
|
12764 |
} else {
|
| - |
|
12765 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12766 |
}
|
| - |
|
12767 |
break;
|
| - |
|
12768 |
case 1: // PE
|
| - |
|
12769 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
| - |
|
12770 |
this.pe = new PaymentException();
|
| - |
|
12771 |
this.pe.read(iprot);
|
| - |
|
12772 |
} else {
|
| - |
|
12773 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12774 |
}
|
| - |
|
12775 |
break;
|
| - |
|
12776 |
default:
|
| - |
|
12777 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
12778 |
}
|
| - |
|
12779 |
iprot.readFieldEnd();
|
| - |
|
12780 |
}
|
| - |
|
12781 |
iprot.readStructEnd();
|
| - |
|
12782 |
validate();
|
| - |
|
12783 |
}
|
| - |
|
12784 |
|
| - |
|
12785 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
12786 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
12787 |
|
| - |
|
12788 |
if (this.isSetSuccess()) {
|
| - |
|
12789 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| - |
|
12790 |
oprot.writeString(this.success);
|
| - |
|
12791 |
oprot.writeFieldEnd();
|
| - |
|
12792 |
} else if (this.isSetPe()) {
|
| - |
|
12793 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
| - |
|
12794 |
this.pe.write(oprot);
|
| - |
|
12795 |
oprot.writeFieldEnd();
|
| - |
|
12796 |
}
|
| - |
|
12797 |
oprot.writeFieldStop();
|
| - |
|
12798 |
oprot.writeStructEnd();
|
| - |
|
12799 |
}
|
| - |
|
12800 |
|
| - |
|
12801 |
@Override
|
| - |
|
12802 |
public String toString() {
|
| - |
|
12803 |
StringBuilder sb = new StringBuilder("doHdfcPaymentForDigitalOrder_result(");
|
| - |
|
12804 |
boolean first = true;
|
| - |
|
12805 |
|
| - |
|
12806 |
sb.append("success:");
|
| - |
|
12807 |
if (this.success == null) {
|
| - |
|
12808 |
sb.append("null");
|
| 11871 |
} else {
|
12809 |
} else {
|
| 11872 |
sb.append(this.success);
|
12810 |
sb.append(this.success);
|
| 11873 |
}
|
12811 |
}
|
| 11874 |
first = false;
|
12812 |
first = false;
|
| 11875 |
if (!first) sb.append(", ");
|
12813 |
if (!first) sb.append(", ");
|