| 123 |
ashish |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 123 |
ashish |
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.payments;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
| 3430 |
rajveer |
18 |
import java.nio.ByteBuffer;
|
| 123 |
ashish |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class PaymentService {
|
|
|
24 |
|
| 3374 |
rajveer |
25 |
public interface Iface extends in.shop2020.generic.GenericService.Iface {
|
| 123 |
ashish |
26 |
|
| 695 |
rajveer |
27 |
/**
|
|
|
28 |
* create a new payment and return payment id, throws an exception if gateway is not active
|
|
|
29 |
*
|
|
|
30 |
* @param userId
|
|
|
31 |
* @param amount
|
|
|
32 |
* @param gatewayId
|
|
|
33 |
* @param txnId
|
| 6050 |
anupam.sin |
34 |
* @param isDigital
|
| 695 |
rajveer |
35 |
*/
|
| 6050 |
anupam.sin |
36 |
public long createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException;
|
| 123 |
ashish |
37 |
|
| 695 |
rajveer |
38 |
/**
|
| 4141 |
chandransh |
39 |
* Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
|
| 695 |
rajveer |
40 |
*
|
|
|
41 |
* @param userId
|
|
|
42 |
* @param fromTime
|
|
|
43 |
* @param toTime
|
|
|
44 |
* @param status
|
|
|
45 |
* @param gatewayId
|
|
|
46 |
*/
|
| 3430 |
rajveer |
47 |
public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
|
| 123 |
ashish |
48 |
|
| 695 |
rajveer |
49 |
/**
|
| 4141 |
chandransh |
50 |
* Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
|
| 695 |
rajveer |
51 |
*
|
|
|
52 |
* @param fromTime
|
|
|
53 |
* @param toTime
|
|
|
54 |
* @param status
|
|
|
55 |
* @param gatewayId
|
|
|
56 |
*/
|
| 3430 |
rajveer |
57 |
public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
|
| 123 |
ashish |
58 |
|
| 695 |
rajveer |
59 |
/**
|
| 4141 |
chandransh |
60 |
* Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
|
| 695 |
rajveer |
61 |
*
|
| 4141 |
chandransh |
62 |
* @param fromTime
|
|
|
63 |
* @param toTime
|
|
|
64 |
* @param gatewayId
|
|
|
65 |
*/
|
|
|
66 |
public List<Payment> getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws PaymentException, org.apache.thrift.TException;
|
|
|
67 |
|
|
|
68 |
/**
|
|
|
69 |
* Get the gateway for the given id.
|
| 695 |
rajveer |
70 |
*
|
|
|
71 |
* @param id
|
|
|
72 |
*/
|
| 3430 |
rajveer |
73 |
public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException;
|
| 420 |
ashish |
74 |
|
| 695 |
rajveer |
75 |
/**
|
| 4600 |
varun.gupt |
76 |
* Get all active Payment Gateways
|
|
|
77 |
*
|
|
|
78 |
*/
|
|
|
79 |
public List<PaymentGateway> getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException;
|
|
|
80 |
|
|
|
81 |
/**
|
| 695 |
rajveer |
82 |
* Get a particular payment info
|
|
|
83 |
*
|
|
|
84 |
*
|
|
|
85 |
* @param id
|
|
|
86 |
*/
|
| 3430 |
rajveer |
87 |
public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException;
|
| 420 |
ashish |
88 |
|
| 695 |
rajveer |
89 |
/**
|
| 4600 |
varun.gupt |
90 |
* Get payments for a transaction. Will raise exception.
|
| 695 |
rajveer |
91 |
*
|
|
|
92 |
*
|
|
|
93 |
* @param txnId
|
|
|
94 |
*/
|
| 3430 |
rajveer |
95 |
public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
|
| 420 |
ashish |
96 |
|
| 695 |
rajveer |
97 |
/**
|
| 4600 |
varun.gupt |
98 |
* Get successful payment for a transaction. Will raise exception.
|
|
|
99 |
*
|
|
|
100 |
*
|
|
|
101 |
* @param txnId
|
|
|
102 |
*/
|
|
|
103 |
public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
|
|
|
104 |
|
|
|
105 |
/**
|
| 695 |
rajveer |
106 |
* mark payment successful and store parameters
|
|
|
107 |
*
|
|
|
108 |
*
|
|
|
109 |
* @param id
|
|
|
110 |
* @param gatewayPaymentId
|
|
|
111 |
* @param sessionId
|
|
|
112 |
* @param gatewayTxnStatus
|
|
|
113 |
* @param description
|
|
|
114 |
* @param gatewayTxnId
|
|
|
115 |
* @param authCode
|
|
|
116 |
* @param referenceCode
|
|
|
117 |
* @param errorCode
|
|
|
118 |
* @param status
|
| 1119 |
rajveer |
119 |
* @param gatewayTxnDate
|
| 695 |
rajveer |
120 |
* @param attributes
|
|
|
121 |
*/
|
| 3430 |
rajveer |
122 |
public boolean updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes) throws PaymentException, org.apache.thrift.TException;
|
| 695 |
rajveer |
123 |
|
| 1629 |
ankur.sing |
124 |
/**
|
| 1731 |
ankur.sing |
125 |
* Returns the minimum and maximum amounts among successful payments.
|
|
|
126 |
* List contains two double values, first minimum and second maximum amount.
|
| 1629 |
ankur.sing |
127 |
*/
|
| 3430 |
rajveer |
128 |
public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException;
|
| 1629 |
ankur.sing |
129 |
|
| 2462 |
chandransh |
130 |
/**
|
|
|
131 |
* Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
|
|
|
132 |
* In case of any processing error, an exception is raised.
|
|
|
133 |
*
|
|
|
134 |
* @param merchantPaymentId
|
|
|
135 |
*/
|
| 3430 |
rajveer |
136 |
public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
|
| 2462 |
chandransh |
137 |
|
| 2690 |
chandransh |
138 |
/**
|
| 6050 |
anupam.sin |
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.
|
| 6228 |
anupam.sin |
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.
|
| 6050 |
anupam.sin |
141 |
*
|
|
|
142 |
* @param merchantPaymentId
|
|
|
143 |
* @param rechargeOrderId
|
| 6228 |
anupam.sin |
144 |
* @param phone
|
| 6050 |
anupam.sin |
145 |
*/
|
| 6228 |
anupam.sin |
146 |
public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws PaymentException, org.apache.thrift.TException;
|
| 6050 |
anupam.sin |
147 |
|
|
|
148 |
/**
|
| 3616 |
chandransh |
149 |
* Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
|
|
|
150 |
* In case of any processing error, an exception is raised.
|
|
|
151 |
*
|
|
|
152 |
* @param merchantPaymentId
|
|
|
153 |
*/
|
|
|
154 |
public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
|
|
|
155 |
|
|
|
156 |
/**
|
| 2690 |
chandransh |
157 |
* Create a refund of the given amount corresponding to the given order to be processed through the same
|
|
|
158 |
* payment gateway which processed the payment for the corresponding transaction.
|
|
|
159 |
* Returns the id of the newly created Refund.
|
|
|
160 |
*
|
|
|
161 |
* @param orderId
|
|
|
162 |
* @param merchantTxnId
|
|
|
163 |
* @param amount
|
|
|
164 |
*/
|
| 3430 |
rajveer |
165 |
public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException;
|
| 2690 |
chandransh |
166 |
|
| 3010 |
chandransh |
167 |
/**
|
|
|
168 |
* Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
| 4421 |
mandeep.dh |
169 |
* transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
|
|
|
170 |
* code 104 is thrown in case no payments are found for the transaction id passed.
|
|
|
171 |
* PaymentException is also thrown with error code 106 in case capture was not possible due to connection
|
|
|
172 |
* issue. Here, we payment also gets updated to CAPTURE_INPROCESS state
|
| 3010 |
chandransh |
173 |
*
|
|
|
174 |
* @param merchantTxnId
|
|
|
175 |
*/
|
| 3430 |
rajveer |
176 |
public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException;
|
| 3010 |
chandransh |
177 |
|
| 3956 |
chandransh |
178 |
/**
|
|
|
179 |
* Adds the given amount to the captured amount of a COD payment.
|
|
|
180 |
* Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
|
|
|
181 |
* If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
|
|
|
182 |
* Also sets the name of the entity which transferred the money, the date on which it was transferred
|
|
|
183 |
* and the corresponding transaction id.
|
|
|
184 |
*
|
|
|
185 |
* Returns false if the payment couldn't be captured.
|
|
|
186 |
* Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
|
|
|
187 |
*
|
|
|
188 |
* @param merchantTxnId
|
|
|
189 |
* @param amount
|
|
|
190 |
* @param xferBy
|
|
|
191 |
* @param xferTxnId
|
|
|
192 |
* @param xferDate
|
|
|
193 |
*/
|
|
|
194 |
public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException;
|
|
|
195 |
|
| 4008 |
mandeep.dh |
196 |
/**
|
|
|
197 |
* Returns the list of payments that require some extra processing and
|
|
|
198 |
* which belong to a particular category. This is currently used by CRM
|
|
|
199 |
* application.
|
|
|
200 |
*
|
|
|
201 |
* @param category
|
|
|
202 |
*/
|
|
|
203 |
public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
|
|
|
204 |
|
|
|
205 |
/**
|
|
|
206 |
* Marks a particular payment as processed for a particular cateogory.
|
|
|
207 |
* It essentially deletes the payment if it is processed for a particular
|
|
|
208 |
* category. This is currently used by CRM application.
|
|
|
209 |
*
|
|
|
210 |
* @param paymentId
|
|
|
211 |
* @param category
|
|
|
212 |
*/
|
|
|
213 |
public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
|
|
|
214 |
|
| 123 |
ashish |
215 |
}
|
|
|
216 |
|
| 3430 |
rajveer |
217 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
218 |
|
| 6050 |
anupam.sin |
219 |
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;
|
| 3430 |
rajveer |
220 |
|
|
|
221 |
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;
|
|
|
222 |
|
|
|
223 |
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;
|
|
|
224 |
|
| 4141 |
chandransh |
225 |
public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
226 |
|
| 3430 |
rajveer |
227 |
public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
228 |
|
| 4600 |
varun.gupt |
229 |
public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
230 |
|
| 3430 |
rajveer |
231 |
public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
232 |
|
|
|
233 |
public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
234 |
|
| 4600 |
varun.gupt |
235 |
public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
236 |
|
| 3430 |
rajveer |
237 |
public void updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePaymentDetails_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
238 |
|
|
|
239 |
public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
240 |
|
|
|
241 |
public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
242 |
|
| 6228 |
anupam.sin |
243 |
public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException;
|
| 6050 |
anupam.sin |
244 |
|
| 3616 |
chandransh |
245 |
public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
246 |
|
| 3430 |
rajveer |
247 |
public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
248 |
|
|
|
249 |
public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
250 |
|
| 3956 |
chandransh |
251 |
public void partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.partiallyCapturePayment_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
252 |
|
| 4008 |
mandeep.dh |
253 |
public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
254 |
|
|
|
255 |
public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
256 |
|
| 3430 |
rajveer |
257 |
}
|
|
|
258 |
|
| 3374 |
rajveer |
259 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 3430 |
rajveer |
260 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
261 |
public Factory() {}
|
|
|
262 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
263 |
return new Client(prot);
|
|
|
264 |
}
|
|
|
265 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
266 |
return new Client(iprot, oprot);
|
|
|
267 |
}
|
|
|
268 |
}
|
|
|
269 |
|
|
|
270 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
| 123 |
ashish |
271 |
{
|
| 3430 |
rajveer |
272 |
super(prot, prot);
|
| 123 |
ashish |
273 |
}
|
|
|
274 |
|
| 3430 |
rajveer |
275 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 3374 |
rajveer |
276 |
super(iprot, oprot);
|
| 123 |
ashish |
277 |
}
|
|
|
278 |
|
| 6050 |
anupam.sin |
279 |
public long createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException
|
| 123 |
ashish |
280 |
{
|
| 6050 |
anupam.sin |
281 |
send_createPayment(userId, amount, gatewayId, txnId, isDigital);
|
| 123 |
ashish |
282 |
return recv_createPayment();
|
|
|
283 |
}
|
|
|
284 |
|
| 6050 |
anupam.sin |
285 |
public void send_createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws org.apache.thrift.TException
|
| 123 |
ashish |
286 |
{
|
|
|
287 |
createPayment_args args = new createPayment_args();
|
| 3430 |
rajveer |
288 |
args.setUserId(userId);
|
|
|
289 |
args.setAmount(amount);
|
|
|
290 |
args.setGatewayId(gatewayId);
|
|
|
291 |
args.setTxnId(txnId);
|
| 6050 |
anupam.sin |
292 |
args.setIsDigital(isDigital);
|
| 3430 |
rajveer |
293 |
sendBase("createPayment", args);
|
| 123 |
ashish |
294 |
}
|
|
|
295 |
|
| 3430 |
rajveer |
296 |
public long recv_createPayment() throws PaymentException, org.apache.thrift.TException
|
| 123 |
ashish |
297 |
{
|
|
|
298 |
createPayment_result result = new createPayment_result();
|
| 3430 |
rajveer |
299 |
receiveBase(result, "createPayment");
|
| 123 |
ashish |
300 |
if (result.isSetSuccess()) {
|
|
|
301 |
return result.success;
|
|
|
302 |
}
|
|
|
303 |
if (result.pe != null) {
|
|
|
304 |
throw result.pe;
|
|
|
305 |
}
|
| 3430 |
rajveer |
306 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
|
| 123 |
ashish |
307 |
}
|
|
|
308 |
|
| 3430 |
rajveer |
309 |
public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
|
| 123 |
ashish |
310 |
{
|
| 695 |
rajveer |
311 |
send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId);
|
| 123 |
ashish |
312 |
return recv_getPaymentsForUser();
|
|
|
313 |
}
|
|
|
314 |
|
| 3430 |
rajveer |
315 |
public void send_getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
|
| 123 |
ashish |
316 |
{
|
|
|
317 |
getPaymentsForUser_args args = new getPaymentsForUser_args();
|
| 3430 |
rajveer |
318 |
args.setUserId(userId);
|
|
|
319 |
args.setFromTime(fromTime);
|
|
|
320 |
args.setToTime(toTime);
|
|
|
321 |
args.setStatus(status);
|
|
|
322 |
args.setGatewayId(gatewayId);
|
|
|
323 |
sendBase("getPaymentsForUser", args);
|
| 123 |
ashish |
324 |
}
|
|
|
325 |
|
| 3430 |
rajveer |
326 |
public List<Payment> recv_getPaymentsForUser() throws PaymentException, org.apache.thrift.TException
|
| 123 |
ashish |
327 |
{
|
|
|
328 |
getPaymentsForUser_result result = new getPaymentsForUser_result();
|
| 3430 |
rajveer |
329 |
receiveBase(result, "getPaymentsForUser");
|
| 123 |
ashish |
330 |
if (result.isSetSuccess()) {
|
|
|
331 |
return result.success;
|
|
|
332 |
}
|
|
|
333 |
if (result.pe != null) {
|
|
|
334 |
throw result.pe;
|
|
|
335 |
}
|
| 3430 |
rajveer |
336 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
|
| 123 |
ashish |
337 |
}
|
|
|
338 |
|
| 3430 |
rajveer |
339 |
public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
|
| 123 |
ashish |
340 |
{
|
| 695 |
rajveer |
341 |
send_getPayments(fromTime, toTime, status, gatewayId);
|
| 123 |
ashish |
342 |
return recv_getPayments();
|
|
|
343 |
}
|
|
|
344 |
|
| 3430 |
rajveer |
345 |
public void send_getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
|
| 123 |
ashish |
346 |
{
|
|
|
347 |
getPayments_args args = new getPayments_args();
|
| 3430 |
rajveer |
348 |
args.setFromTime(fromTime);
|
|
|
349 |
args.setToTime(toTime);
|
|
|
350 |
args.setStatus(status);
|
|
|
351 |
args.setGatewayId(gatewayId);
|
|
|
352 |
sendBase("getPayments", args);
|
| 123 |
ashish |
353 |
}
|
|
|
354 |
|
| 3430 |
rajveer |
355 |
public List<Payment> recv_getPayments() throws PaymentException, org.apache.thrift.TException
|
| 123 |
ashish |
356 |
{
|
|
|
357 |
getPayments_result result = new getPayments_result();
|
| 3430 |
rajveer |
358 |
receiveBase(result, "getPayments");
|
| 123 |
ashish |
359 |
if (result.isSetSuccess()) {
|
|
|
360 |
return result.success;
|
|
|
361 |
}
|
|
|
362 |
if (result.pe != null) {
|
|
|
363 |
throw result.pe;
|
|
|
364 |
}
|
| 3430 |
rajveer |
365 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
|
| 123 |
ashish |
366 |
}
|
|
|
367 |
|
| 4141 |
chandransh |
368 |
public List<Payment> getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws PaymentException, org.apache.thrift.TException
|
|
|
369 |
{
|
|
|
370 |
send_getPaymentsByCapturedDate(fromTime, toTime, gatewayId);
|
|
|
371 |
return recv_getPaymentsByCapturedDate();
|
|
|
372 |
}
|
|
|
373 |
|
|
|
374 |
public void send_getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws org.apache.thrift.TException
|
|
|
375 |
{
|
|
|
376 |
getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
|
|
|
377 |
args.setFromTime(fromTime);
|
|
|
378 |
args.setToTime(toTime);
|
|
|
379 |
args.setGatewayId(gatewayId);
|
|
|
380 |
sendBase("getPaymentsByCapturedDate", args);
|
|
|
381 |
}
|
|
|
382 |
|
|
|
383 |
public List<Payment> recv_getPaymentsByCapturedDate() throws PaymentException, org.apache.thrift.TException
|
|
|
384 |
{
|
|
|
385 |
getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
|
|
|
386 |
receiveBase(result, "getPaymentsByCapturedDate");
|
|
|
387 |
if (result.isSetSuccess()) {
|
|
|
388 |
return result.success;
|
|
|
389 |
}
|
|
|
390 |
if (result.pe != null) {
|
|
|
391 |
throw result.pe;
|
|
|
392 |
}
|
|
|
393 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsByCapturedDate failed: unknown result");
|
|
|
394 |
}
|
|
|
395 |
|
| 3430 |
rajveer |
396 |
public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
397 |
{
|
|
|
398 |
send_getPaymentGateway(id);
|
|
|
399 |
return recv_getPaymentGateway();
|
|
|
400 |
}
|
|
|
401 |
|
| 3430 |
rajveer |
402 |
public void send_getPaymentGateway(long id) throws org.apache.thrift.TException
|
| 420 |
ashish |
403 |
{
|
|
|
404 |
getPaymentGateway_args args = new getPaymentGateway_args();
|
| 3430 |
rajveer |
405 |
args.setId(id);
|
|
|
406 |
sendBase("getPaymentGateway", args);
|
| 420 |
ashish |
407 |
}
|
|
|
408 |
|
| 3430 |
rajveer |
409 |
public PaymentGateway recv_getPaymentGateway() throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
410 |
{
|
|
|
411 |
getPaymentGateway_result result = new getPaymentGateway_result();
|
| 3430 |
rajveer |
412 |
receiveBase(result, "getPaymentGateway");
|
| 420 |
ashish |
413 |
if (result.isSetSuccess()) {
|
|
|
414 |
return result.success;
|
|
|
415 |
}
|
|
|
416 |
if (result.pe != null) {
|
|
|
417 |
throw result.pe;
|
|
|
418 |
}
|
| 3430 |
rajveer |
419 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
|
| 420 |
ashish |
420 |
}
|
|
|
421 |
|
| 4600 |
varun.gupt |
422 |
public List<PaymentGateway> getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
|
|
|
423 |
{
|
|
|
424 |
send_getActivePaymentGateways();
|
|
|
425 |
return recv_getActivePaymentGateways();
|
|
|
426 |
}
|
|
|
427 |
|
|
|
428 |
public void send_getActivePaymentGateways() throws org.apache.thrift.TException
|
|
|
429 |
{
|
|
|
430 |
getActivePaymentGateways_args args = new getActivePaymentGateways_args();
|
|
|
431 |
sendBase("getActivePaymentGateways", args);
|
|
|
432 |
}
|
|
|
433 |
|
|
|
434 |
public List<PaymentGateway> recv_getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
|
|
|
435 |
{
|
|
|
436 |
getActivePaymentGateways_result result = new getActivePaymentGateways_result();
|
|
|
437 |
receiveBase(result, "getActivePaymentGateways");
|
|
|
438 |
if (result.isSetSuccess()) {
|
|
|
439 |
return result.success;
|
|
|
440 |
}
|
|
|
441 |
if (result.pe != null) {
|
|
|
442 |
throw result.pe;
|
|
|
443 |
}
|
|
|
444 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActivePaymentGateways failed: unknown result");
|
|
|
445 |
}
|
|
|
446 |
|
| 3430 |
rajveer |
447 |
public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
448 |
{
|
| 695 |
rajveer |
449 |
send_getPayment(id);
|
|
|
450 |
return recv_getPayment();
|
| 420 |
ashish |
451 |
}
|
|
|
452 |
|
| 3430 |
rajveer |
453 |
public void send_getPayment(long id) throws org.apache.thrift.TException
|
| 420 |
ashish |
454 |
{
|
| 695 |
rajveer |
455 |
getPayment_args args = new getPayment_args();
|
| 3430 |
rajveer |
456 |
args.setId(id);
|
|
|
457 |
sendBase("getPayment", args);
|
| 420 |
ashish |
458 |
}
|
|
|
459 |
|
| 3430 |
rajveer |
460 |
public Payment recv_getPayment() throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
461 |
{
|
| 695 |
rajveer |
462 |
getPayment_result result = new getPayment_result();
|
| 3430 |
rajveer |
463 |
receiveBase(result, "getPayment");
|
| 695 |
rajveer |
464 |
if (result.isSetSuccess()) {
|
|
|
465 |
return result.success;
|
|
|
466 |
}
|
| 420 |
ashish |
467 |
if (result.pe != null) {
|
|
|
468 |
throw result.pe;
|
|
|
469 |
}
|
| 3430 |
rajveer |
470 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
|
| 420 |
ashish |
471 |
}
|
|
|
472 |
|
| 3430 |
rajveer |
473 |
public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
474 |
{
|
| 695 |
rajveer |
475 |
send_getPaymentForTxnId(txnId);
|
|
|
476 |
return recv_getPaymentForTxnId();
|
| 420 |
ashish |
477 |
}
|
|
|
478 |
|
| 3430 |
rajveer |
479 |
public void send_getPaymentForTxnId(long txnId) throws org.apache.thrift.TException
|
| 420 |
ashish |
480 |
{
|
| 695 |
rajveer |
481 |
getPaymentForTxnId_args args = new getPaymentForTxnId_args();
|
| 3430 |
rajveer |
482 |
args.setTxnId(txnId);
|
|
|
483 |
sendBase("getPaymentForTxnId", args);
|
| 420 |
ashish |
484 |
}
|
|
|
485 |
|
| 3430 |
rajveer |
486 |
public List<Payment> recv_getPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
487 |
{
|
| 695 |
rajveer |
488 |
getPaymentForTxnId_result result = new getPaymentForTxnId_result();
|
| 3430 |
rajveer |
489 |
receiveBase(result, "getPaymentForTxnId");
|
| 420 |
ashish |
490 |
if (result.isSetSuccess()) {
|
|
|
491 |
return result.success;
|
|
|
492 |
}
|
|
|
493 |
if (result.pe != null) {
|
|
|
494 |
throw result.pe;
|
|
|
495 |
}
|
| 3430 |
rajveer |
496 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
|
| 420 |
ashish |
497 |
}
|
|
|
498 |
|
| 4600 |
varun.gupt |
499 |
public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
|
|
|
500 |
{
|
|
|
501 |
send_getSuccessfulPaymentForTxnId(txnId);
|
|
|
502 |
return recv_getSuccessfulPaymentForTxnId();
|
|
|
503 |
}
|
|
|
504 |
|
|
|
505 |
public void send_getSuccessfulPaymentForTxnId(long txnId) throws org.apache.thrift.TException
|
|
|
506 |
{
|
|
|
507 |
getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
|
|
|
508 |
args.setTxnId(txnId);
|
|
|
509 |
sendBase("getSuccessfulPaymentForTxnId", args);
|
|
|
510 |
}
|
|
|
511 |
|
|
|
512 |
public Payment recv_getSuccessfulPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
|
|
|
513 |
{
|
|
|
514 |
getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
|
|
|
515 |
receiveBase(result, "getSuccessfulPaymentForTxnId");
|
|
|
516 |
if (result.isSetSuccess()) {
|
|
|
517 |
return result.success;
|
|
|
518 |
}
|
|
|
519 |
if (result.pe != null) {
|
|
|
520 |
throw result.pe;
|
|
|
521 |
}
|
|
|
522 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentForTxnId failed: unknown result");
|
|
|
523 |
}
|
|
|
524 |
|
| 3430 |
rajveer |
525 |
public boolean updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes) throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
526 |
{
|
| 1119 |
rajveer |
527 |
send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes);
|
| 695 |
rajveer |
528 |
return recv_updatePaymentDetails();
|
| 420 |
ashish |
529 |
}
|
|
|
530 |
|
| 3430 |
rajveer |
531 |
public void send_updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes) throws org.apache.thrift.TException
|
| 420 |
ashish |
532 |
{
|
| 695 |
rajveer |
533 |
updatePaymentDetails_args args = new updatePaymentDetails_args();
|
| 3430 |
rajveer |
534 |
args.setId(id);
|
|
|
535 |
args.setGatewayPaymentId(gatewayPaymentId);
|
|
|
536 |
args.setSessionId(sessionId);
|
|
|
537 |
args.setGatewayTxnStatus(gatewayTxnStatus);
|
|
|
538 |
args.setDescription(description);
|
|
|
539 |
args.setGatewayTxnId(gatewayTxnId);
|
|
|
540 |
args.setAuthCode(authCode);
|
|
|
541 |
args.setReferenceCode(referenceCode);
|
|
|
542 |
args.setErrorCode(errorCode);
|
|
|
543 |
args.setStatus(status);
|
|
|
544 |
args.setGatewayTxnDate(gatewayTxnDate);
|
|
|
545 |
args.setAttributes(attributes);
|
|
|
546 |
sendBase("updatePaymentDetails", args);
|
| 420 |
ashish |
547 |
}
|
|
|
548 |
|
| 3430 |
rajveer |
549 |
public boolean recv_updatePaymentDetails() throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
550 |
{
|
| 695 |
rajveer |
551 |
updatePaymentDetails_result result = new updatePaymentDetails_result();
|
| 3430 |
rajveer |
552 |
receiveBase(result, "updatePaymentDetails");
|
| 695 |
rajveer |
553 |
if (result.isSetSuccess()) {
|
|
|
554 |
return result.success;
|
|
|
555 |
}
|
| 420 |
ashish |
556 |
if (result.pe != null) {
|
|
|
557 |
throw result.pe;
|
|
|
558 |
}
|
| 3430 |
rajveer |
559 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
|
| 420 |
ashish |
560 |
}
|
|
|
561 |
|
| 3430 |
rajveer |
562 |
public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
|
| 1629 |
ankur.sing |
563 |
{
|
| 1731 |
ankur.sing |
564 |
send_getSuccessfulPaymentsAmountRange();
|
|
|
565 |
return recv_getSuccessfulPaymentsAmountRange();
|
| 1629 |
ankur.sing |
566 |
}
|
|
|
567 |
|
| 3430 |
rajveer |
568 |
public void send_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
|
| 1629 |
ankur.sing |
569 |
{
|
| 1731 |
ankur.sing |
570 |
getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
|
| 3430 |
rajveer |
571 |
sendBase("getSuccessfulPaymentsAmountRange", args);
|
| 1629 |
ankur.sing |
572 |
}
|
|
|
573 |
|
| 3430 |
rajveer |
574 |
public List<Double> recv_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
|
| 1629 |
ankur.sing |
575 |
{
|
| 1731 |
ankur.sing |
576 |
getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
|
| 3430 |
rajveer |
577 |
receiveBase(result, "getSuccessfulPaymentsAmountRange");
|
| 1629 |
ankur.sing |
578 |
if (result.isSetSuccess()) {
|
|
|
579 |
return result.success;
|
|
|
580 |
}
|
| 3430 |
rajveer |
581 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
|
| 1629 |
ankur.sing |
582 |
}
|
|
|
583 |
|
| 3430 |
rajveer |
584 |
public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
|
| 2462 |
chandransh |
585 |
{
|
|
|
586 |
send_initializeHdfcPayment(merchantPaymentId);
|
|
|
587 |
return recv_initializeHdfcPayment();
|
|
|
588 |
}
|
|
|
589 |
|
| 3430 |
rajveer |
590 |
public void send_initializeHdfcPayment(long merchantPaymentId) throws org.apache.thrift.TException
|
| 2462 |
chandransh |
591 |
{
|
|
|
592 |
initializeHdfcPayment_args args = new initializeHdfcPayment_args();
|
| 3430 |
rajveer |
593 |
args.setMerchantPaymentId(merchantPaymentId);
|
|
|
594 |
sendBase("initializeHdfcPayment", args);
|
| 2462 |
chandransh |
595 |
}
|
|
|
596 |
|
| 3430 |
rajveer |
597 |
public String recv_initializeHdfcPayment() throws PaymentException, org.apache.thrift.TException
|
| 2462 |
chandransh |
598 |
{
|
|
|
599 |
initializeHdfcPayment_result result = new initializeHdfcPayment_result();
|
| 3430 |
rajveer |
600 |
receiveBase(result, "initializeHdfcPayment");
|
| 2462 |
chandransh |
601 |
if (result.isSetSuccess()) {
|
|
|
602 |
return result.success;
|
|
|
603 |
}
|
|
|
604 |
if (result.pe != null) {
|
|
|
605 |
throw result.pe;
|
|
|
606 |
}
|
| 3430 |
rajveer |
607 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
|
| 2462 |
chandransh |
608 |
}
|
|
|
609 |
|
| 6228 |
anupam.sin |
610 |
public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws PaymentException, org.apache.thrift.TException
|
| 6050 |
anupam.sin |
611 |
{
|
| 6228 |
anupam.sin |
612 |
send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId, phone);
|
| 6050 |
anupam.sin |
613 |
return recv_doHdfcPaymentForDigitalOrder();
|
|
|
614 |
}
|
|
|
615 |
|
| 6228 |
anupam.sin |
616 |
public void send_doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws org.apache.thrift.TException
|
| 6050 |
anupam.sin |
617 |
{
|
|
|
618 |
doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
|
|
|
619 |
args.setMerchantPaymentId(merchantPaymentId);
|
|
|
620 |
args.setRechargeOrderId(rechargeOrderId);
|
| 6228 |
anupam.sin |
621 |
args.setPhone(phone);
|
| 6050 |
anupam.sin |
622 |
sendBase("doHdfcPaymentForDigitalOrder", args);
|
|
|
623 |
}
|
|
|
624 |
|
|
|
625 |
public String recv_doHdfcPaymentForDigitalOrder() throws PaymentException, org.apache.thrift.TException
|
|
|
626 |
{
|
|
|
627 |
doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
|
|
|
628 |
receiveBase(result, "doHdfcPaymentForDigitalOrder");
|
|
|
629 |
if (result.isSetSuccess()) {
|
|
|
630 |
return result.success;
|
|
|
631 |
}
|
|
|
632 |
if (result.pe != null) {
|
|
|
633 |
throw result.pe;
|
|
|
634 |
}
|
|
|
635 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "doHdfcPaymentForDigitalOrder failed: unknown result");
|
|
|
636 |
}
|
|
|
637 |
|
| 3616 |
chandransh |
638 |
public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
|
|
|
639 |
{
|
|
|
640 |
send_initializeHdfcEmiPayment(merchantPaymentId);
|
|
|
641 |
return recv_initializeHdfcEmiPayment();
|
|
|
642 |
}
|
|
|
643 |
|
|
|
644 |
public void send_initializeHdfcEmiPayment(long merchantPaymentId) throws org.apache.thrift.TException
|
|
|
645 |
{
|
|
|
646 |
initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
|
|
|
647 |
args.setMerchantPaymentId(merchantPaymentId);
|
|
|
648 |
sendBase("initializeHdfcEmiPayment", args);
|
|
|
649 |
}
|
|
|
650 |
|
|
|
651 |
public String recv_initializeHdfcEmiPayment() throws PaymentException, org.apache.thrift.TException
|
|
|
652 |
{
|
|
|
653 |
initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
|
|
|
654 |
receiveBase(result, "initializeHdfcEmiPayment");
|
|
|
655 |
if (result.isSetSuccess()) {
|
|
|
656 |
return result.success;
|
|
|
657 |
}
|
|
|
658 |
if (result.pe != null) {
|
|
|
659 |
throw result.pe;
|
|
|
660 |
}
|
|
|
661 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcEmiPayment failed: unknown result");
|
|
|
662 |
}
|
|
|
663 |
|
| 3430 |
rajveer |
664 |
public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException
|
| 2690 |
chandransh |
665 |
{
|
|
|
666 |
send_createRefund(orderId, merchantTxnId, amount);
|
|
|
667 |
return recv_createRefund();
|
|
|
668 |
}
|
|
|
669 |
|
| 3430 |
rajveer |
670 |
public void send_createRefund(long orderId, long merchantTxnId, double amount) throws org.apache.thrift.TException
|
| 2690 |
chandransh |
671 |
{
|
|
|
672 |
createRefund_args args = new createRefund_args();
|
| 3430 |
rajveer |
673 |
args.setOrderId(orderId);
|
|
|
674 |
args.setMerchantTxnId(merchantTxnId);
|
|
|
675 |
args.setAmount(amount);
|
|
|
676 |
sendBase("createRefund", args);
|
| 2690 |
chandransh |
677 |
}
|
|
|
678 |
|
| 3430 |
rajveer |
679 |
public long recv_createRefund() throws PaymentException, org.apache.thrift.TException
|
| 2690 |
chandransh |
680 |
{
|
|
|
681 |
createRefund_result result = new createRefund_result();
|
| 3430 |
rajveer |
682 |
receiveBase(result, "createRefund");
|
| 2690 |
chandransh |
683 |
if (result.isSetSuccess()) {
|
|
|
684 |
return result.success;
|
|
|
685 |
}
|
|
|
686 |
if (result.pe != null) {
|
|
|
687 |
throw result.pe;
|
|
|
688 |
}
|
| 3430 |
rajveer |
689 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
|
| 2690 |
chandransh |
690 |
}
|
|
|
691 |
|
| 3430 |
rajveer |
692 |
public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException
|
| 3010 |
chandransh |
693 |
{
|
|
|
694 |
send_capturePayment(merchantTxnId);
|
|
|
695 |
return recv_capturePayment();
|
|
|
696 |
}
|
|
|
697 |
|
| 3430 |
rajveer |
698 |
public void send_capturePayment(long merchantTxnId) throws org.apache.thrift.TException
|
| 3010 |
chandransh |
699 |
{
|
|
|
700 |
capturePayment_args args = new capturePayment_args();
|
| 3430 |
rajveer |
701 |
args.setMerchantTxnId(merchantTxnId);
|
|
|
702 |
sendBase("capturePayment", args);
|
| 3010 |
chandransh |
703 |
}
|
|
|
704 |
|
| 3430 |
rajveer |
705 |
public boolean recv_capturePayment() throws PaymentException, org.apache.thrift.TException
|
| 3010 |
chandransh |
706 |
{
|
|
|
707 |
capturePayment_result result = new capturePayment_result();
|
| 3430 |
rajveer |
708 |
receiveBase(result, "capturePayment");
|
| 3010 |
chandransh |
709 |
if (result.isSetSuccess()) {
|
|
|
710 |
return result.success;
|
|
|
711 |
}
|
|
|
712 |
if (result.pe != null) {
|
|
|
713 |
throw result.pe;
|
|
|
714 |
}
|
| 3430 |
rajveer |
715 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
|
| 3010 |
chandransh |
716 |
}
|
|
|
717 |
|
| 3956 |
chandransh |
718 |
public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException
|
|
|
719 |
{
|
|
|
720 |
send_partiallyCapturePayment(merchantTxnId, amount, xferBy, xferTxnId, xferDate);
|
|
|
721 |
return recv_partiallyCapturePayment();
|
|
|
722 |
}
|
|
|
723 |
|
|
|
724 |
public void send_partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws org.apache.thrift.TException
|
|
|
725 |
{
|
|
|
726 |
partiallyCapturePayment_args args = new partiallyCapturePayment_args();
|
|
|
727 |
args.setMerchantTxnId(merchantTxnId);
|
|
|
728 |
args.setAmount(amount);
|
|
|
729 |
args.setXferBy(xferBy);
|
|
|
730 |
args.setXferTxnId(xferTxnId);
|
|
|
731 |
args.setXferDate(xferDate);
|
|
|
732 |
sendBase("partiallyCapturePayment", args);
|
|
|
733 |
}
|
|
|
734 |
|
|
|
735 |
public boolean recv_partiallyCapturePayment() throws PaymentException, org.apache.thrift.TException
|
|
|
736 |
{
|
|
|
737 |
partiallyCapturePayment_result result = new partiallyCapturePayment_result();
|
|
|
738 |
receiveBase(result, "partiallyCapturePayment");
|
|
|
739 |
if (result.isSetSuccess()) {
|
|
|
740 |
return result.success;
|
|
|
741 |
}
|
|
|
742 |
if (result.pe != null) {
|
|
|
743 |
throw result.pe;
|
|
|
744 |
}
|
|
|
745 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "partiallyCapturePayment failed: unknown result");
|
|
|
746 |
}
|
|
|
747 |
|
| 4008 |
mandeep.dh |
748 |
public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
|
|
|
749 |
{
|
|
|
750 |
send_getPaymentsRequiringExtraProcessing(category);
|
|
|
751 |
return recv_getPaymentsRequiringExtraProcessing();
|
|
|
752 |
}
|
|
|
753 |
|
|
|
754 |
public void send_getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
|
|
|
755 |
{
|
|
|
756 |
getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
|
|
|
757 |
args.setCategory(category);
|
|
|
758 |
sendBase("getPaymentsRequiringExtraProcessing", args);
|
|
|
759 |
}
|
|
|
760 |
|
|
|
761 |
public List<Long> recv_getPaymentsRequiringExtraProcessing() throws org.apache.thrift.TException
|
|
|
762 |
{
|
|
|
763 |
getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
|
|
|
764 |
receiveBase(result, "getPaymentsRequiringExtraProcessing");
|
|
|
765 |
if (result.isSetSuccess()) {
|
|
|
766 |
return result.success;
|
|
|
767 |
}
|
|
|
768 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsRequiringExtraProcessing failed: unknown result");
|
|
|
769 |
}
|
|
|
770 |
|
|
|
771 |
public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
|
|
|
772 |
{
|
|
|
773 |
send_markPaymentAsProcessed(paymentId, category);
|
|
|
774 |
recv_markPaymentAsProcessed();
|
|
|
775 |
}
|
|
|
776 |
|
|
|
777 |
public void send_markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
|
|
|
778 |
{
|
|
|
779 |
markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
|
|
|
780 |
args.setPaymentId(paymentId);
|
|
|
781 |
args.setCategory(category);
|
|
|
782 |
sendBase("markPaymentAsProcessed", args);
|
|
|
783 |
}
|
|
|
784 |
|
|
|
785 |
public void recv_markPaymentAsProcessed() throws org.apache.thrift.TException
|
|
|
786 |
{
|
|
|
787 |
markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
|
|
|
788 |
receiveBase(result, "markPaymentAsProcessed");
|
|
|
789 |
return;
|
|
|
790 |
}
|
|
|
791 |
|
| 123 |
ashish |
792 |
}
|
| 3430 |
rajveer |
793 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
794 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
795 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
796 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
797 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
798 |
this.clientManager = clientManager;
|
|
|
799 |
this.protocolFactory = protocolFactory;
|
|
|
800 |
}
|
|
|
801 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
802 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
803 |
}
|
| 123 |
ashish |
804 |
}
|
|
|
805 |
|
| 3430 |
rajveer |
806 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
807 |
super(protocolFactory, clientManager, transport);
|
|
|
808 |
}
|
| 123 |
ashish |
809 |
|
| 6050 |
anupam.sin |
810 |
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 {
|
| 3430 |
rajveer |
811 |
checkReady();
|
| 6050 |
anupam.sin |
812 |
createPayment_call method_call = new createPayment_call(userId, amount, gatewayId, txnId, isDigital, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
813 |
this.___currentMethod = method_call;
|
|
|
814 |
___manager.call(method_call);
|
|
|
815 |
}
|
|
|
816 |
|
|
|
817 |
public static class createPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
818 |
private long userId;
|
|
|
819 |
private double amount;
|
|
|
820 |
private long gatewayId;
|
|
|
821 |
private long txnId;
|
| 6050 |
anupam.sin |
822 |
private boolean isDigital;
|
|
|
823 |
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 {
|
| 3430 |
rajveer |
824 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
825 |
this.userId = userId;
|
|
|
826 |
this.amount = amount;
|
|
|
827 |
this.gatewayId = gatewayId;
|
|
|
828 |
this.txnId = txnId;
|
| 6050 |
anupam.sin |
829 |
this.isDigital = isDigital;
|
| 123 |
ashish |
830 |
}
|
| 3430 |
rajveer |
831 |
|
|
|
832 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
833 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
834 |
createPayment_args args = new createPayment_args();
|
|
|
835 |
args.setUserId(userId);
|
|
|
836 |
args.setAmount(amount);
|
|
|
837 |
args.setGatewayId(gatewayId);
|
|
|
838 |
args.setTxnId(txnId);
|
| 6050 |
anupam.sin |
839 |
args.setIsDigital(isDigital);
|
| 3430 |
rajveer |
840 |
args.write(prot);
|
|
|
841 |
prot.writeMessageEnd();
|
|
|
842 |
}
|
|
|
843 |
|
|
|
844 |
public long getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
845 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
846 |
throw new IllegalStateException("Method call not finished!");
|
|
|
847 |
}
|
|
|
848 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
849 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
850 |
return (new Client(prot)).recv_createPayment();
|
|
|
851 |
}
|
| 123 |
ashish |
852 |
}
|
|
|
853 |
|
| 3430 |
rajveer |
854 |
public void getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsForUser_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
855 |
checkReady();
|
|
|
856 |
getPaymentsForUser_call method_call = new getPaymentsForUser_call(userId, fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
857 |
this.___currentMethod = method_call;
|
|
|
858 |
___manager.call(method_call);
|
|
|
859 |
}
|
|
|
860 |
|
|
|
861 |
public static class getPaymentsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
862 |
private long userId;
|
|
|
863 |
private long fromTime;
|
|
|
864 |
private long toTime;
|
|
|
865 |
private PaymentStatus status;
|
|
|
866 |
private long gatewayId;
|
|
|
867 |
public getPaymentsForUser_call(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsForUser_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 {
|
|
|
868 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
869 |
this.userId = userId;
|
|
|
870 |
this.fromTime = fromTime;
|
|
|
871 |
this.toTime = toTime;
|
|
|
872 |
this.status = status;
|
|
|
873 |
this.gatewayId = gatewayId;
|
|
|
874 |
}
|
|
|
875 |
|
|
|
876 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
877 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
878 |
getPaymentsForUser_args args = new getPaymentsForUser_args();
|
|
|
879 |
args.setUserId(userId);
|
|
|
880 |
args.setFromTime(fromTime);
|
|
|
881 |
args.setToTime(toTime);
|
|
|
882 |
args.setStatus(status);
|
|
|
883 |
args.setGatewayId(gatewayId);
|
|
|
884 |
args.write(prot);
|
|
|
885 |
prot.writeMessageEnd();
|
|
|
886 |
}
|
|
|
887 |
|
|
|
888 |
public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
889 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
890 |
throw new IllegalStateException("Method call not finished!");
|
|
|
891 |
}
|
|
|
892 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
893 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
894 |
return (new Client(prot)).recv_getPaymentsForUser();
|
|
|
895 |
}
|
|
|
896 |
}
|
|
|
897 |
|
|
|
898 |
public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPayments_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
899 |
checkReady();
|
|
|
900 |
getPayments_call method_call = new getPayments_call(fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
901 |
this.___currentMethod = method_call;
|
|
|
902 |
___manager.call(method_call);
|
|
|
903 |
}
|
|
|
904 |
|
|
|
905 |
public static class getPayments_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
906 |
private long fromTime;
|
|
|
907 |
private long toTime;
|
|
|
908 |
private PaymentStatus status;
|
|
|
909 |
private long gatewayId;
|
|
|
910 |
public getPayments_call(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPayments_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 {
|
|
|
911 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
912 |
this.fromTime = fromTime;
|
|
|
913 |
this.toTime = toTime;
|
|
|
914 |
this.status = status;
|
|
|
915 |
this.gatewayId = gatewayId;
|
|
|
916 |
}
|
|
|
917 |
|
|
|
918 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
919 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayments", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
920 |
getPayments_args args = new getPayments_args();
|
|
|
921 |
args.setFromTime(fromTime);
|
|
|
922 |
args.setToTime(toTime);
|
|
|
923 |
args.setStatus(status);
|
|
|
924 |
args.setGatewayId(gatewayId);
|
|
|
925 |
args.write(prot);
|
|
|
926 |
prot.writeMessageEnd();
|
|
|
927 |
}
|
|
|
928 |
|
|
|
929 |
public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
930 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
931 |
throw new IllegalStateException("Method call not finished!");
|
|
|
932 |
}
|
|
|
933 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
934 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
935 |
return (new Client(prot)).recv_getPayments();
|
|
|
936 |
}
|
|
|
937 |
}
|
|
|
938 |
|
| 4141 |
chandransh |
939 |
public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
940 |
checkReady();
|
|
|
941 |
getPaymentsByCapturedDate_call method_call = new getPaymentsByCapturedDate_call(fromTime, toTime, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
942 |
this.___currentMethod = method_call;
|
|
|
943 |
___manager.call(method_call);
|
|
|
944 |
}
|
|
|
945 |
|
|
|
946 |
public static class getPaymentsByCapturedDate_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
947 |
private long fromTime;
|
|
|
948 |
private long toTime;
|
|
|
949 |
private long gatewayId;
|
|
|
950 |
public getPaymentsByCapturedDate_call(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsByCapturedDate_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 {
|
|
|
951 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
952 |
this.fromTime = fromTime;
|
|
|
953 |
this.toTime = toTime;
|
|
|
954 |
this.gatewayId = gatewayId;
|
|
|
955 |
}
|
|
|
956 |
|
|
|
957 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
958 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsByCapturedDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
959 |
getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
|
|
|
960 |
args.setFromTime(fromTime);
|
|
|
961 |
args.setToTime(toTime);
|
|
|
962 |
args.setGatewayId(gatewayId);
|
|
|
963 |
args.write(prot);
|
|
|
964 |
prot.writeMessageEnd();
|
|
|
965 |
}
|
|
|
966 |
|
|
|
967 |
public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
968 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
969 |
throw new IllegalStateException("Method call not finished!");
|
|
|
970 |
}
|
|
|
971 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
972 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
973 |
return (new Client(prot)).recv_getPaymentsByCapturedDate();
|
|
|
974 |
}
|
|
|
975 |
}
|
|
|
976 |
|
| 3430 |
rajveer |
977 |
public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
978 |
checkReady();
|
|
|
979 |
getPaymentGateway_call method_call = new getPaymentGateway_call(id, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
980 |
this.___currentMethod = method_call;
|
|
|
981 |
___manager.call(method_call);
|
|
|
982 |
}
|
|
|
983 |
|
|
|
984 |
public static class getPaymentGateway_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
985 |
private long id;
|
|
|
986 |
public getPaymentGateway_call(long id, org.apache.thrift.async.AsyncMethodCallback<getPaymentGateway_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 {
|
|
|
987 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
988 |
this.id = id;
|
|
|
989 |
}
|
|
|
990 |
|
|
|
991 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
992 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentGateway", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
993 |
getPaymentGateway_args args = new getPaymentGateway_args();
|
|
|
994 |
args.setId(id);
|
|
|
995 |
args.write(prot);
|
|
|
996 |
prot.writeMessageEnd();
|
|
|
997 |
}
|
|
|
998 |
|
|
|
999 |
public PaymentGateway getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1000 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1001 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1002 |
}
|
|
|
1003 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1004 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1005 |
return (new Client(prot)).recv_getPaymentGateway();
|
|
|
1006 |
}
|
|
|
1007 |
}
|
|
|
1008 |
|
| 4600 |
varun.gupt |
1009 |
public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1010 |
checkReady();
|
|
|
1011 |
getActivePaymentGateways_call method_call = new getActivePaymentGateways_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1012 |
this.___currentMethod = method_call;
|
|
|
1013 |
___manager.call(method_call);
|
|
|
1014 |
}
|
|
|
1015 |
|
|
|
1016 |
public static class getActivePaymentGateways_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1017 |
public getActivePaymentGateways_call(org.apache.thrift.async.AsyncMethodCallback<getActivePaymentGateways_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 {
|
|
|
1018 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1019 |
}
|
|
|
1020 |
|
|
|
1021 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1022 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActivePaymentGateways", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1023 |
getActivePaymentGateways_args args = new getActivePaymentGateways_args();
|
|
|
1024 |
args.write(prot);
|
|
|
1025 |
prot.writeMessageEnd();
|
|
|
1026 |
}
|
|
|
1027 |
|
|
|
1028 |
public List<PaymentGateway> getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1029 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1030 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1031 |
}
|
|
|
1032 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1033 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1034 |
return (new Client(prot)).recv_getActivePaymentGateways();
|
|
|
1035 |
}
|
|
|
1036 |
}
|
|
|
1037 |
|
| 3430 |
rajveer |
1038 |
public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<getPayment_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1039 |
checkReady();
|
|
|
1040 |
getPayment_call method_call = new getPayment_call(id, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1041 |
this.___currentMethod = method_call;
|
|
|
1042 |
___manager.call(method_call);
|
|
|
1043 |
}
|
|
|
1044 |
|
|
|
1045 |
public static class getPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1046 |
private long id;
|
|
|
1047 |
public getPayment_call(long id, org.apache.thrift.async.AsyncMethodCallback<getPayment_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 {
|
|
|
1048 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1049 |
this.id = id;
|
|
|
1050 |
}
|
|
|
1051 |
|
|
|
1052 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1053 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1054 |
getPayment_args args = new getPayment_args();
|
|
|
1055 |
args.setId(id);
|
|
|
1056 |
args.write(prot);
|
|
|
1057 |
prot.writeMessageEnd();
|
|
|
1058 |
}
|
|
|
1059 |
|
|
|
1060 |
public Payment getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1061 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1062 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1063 |
}
|
|
|
1064 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1065 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1066 |
return (new Client(prot)).recv_getPayment();
|
|
|
1067 |
}
|
|
|
1068 |
}
|
|
|
1069 |
|
|
|
1070 |
public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1071 |
checkReady();
|
|
|
1072 |
getPaymentForTxnId_call method_call = new getPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1073 |
this.___currentMethod = method_call;
|
|
|
1074 |
___manager.call(method_call);
|
|
|
1075 |
}
|
|
|
1076 |
|
|
|
1077 |
public static class getPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1078 |
private long txnId;
|
|
|
1079 |
public getPaymentForTxnId_call(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForTxnId_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 {
|
|
|
1080 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1081 |
this.txnId = txnId;
|
|
|
1082 |
}
|
|
|
1083 |
|
|
|
1084 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1085 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1086 |
getPaymentForTxnId_args args = new getPaymentForTxnId_args();
|
|
|
1087 |
args.setTxnId(txnId);
|
|
|
1088 |
args.write(prot);
|
|
|
1089 |
prot.writeMessageEnd();
|
|
|
1090 |
}
|
|
|
1091 |
|
|
|
1092 |
public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1093 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1094 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1095 |
}
|
|
|
1096 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1097 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1098 |
return (new Client(prot)).recv_getPaymentForTxnId();
|
|
|
1099 |
}
|
|
|
1100 |
}
|
|
|
1101 |
|
| 4600 |
varun.gupt |
1102 |
public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1103 |
checkReady();
|
|
|
1104 |
getSuccessfulPaymentForTxnId_call method_call = new getSuccessfulPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1105 |
this.___currentMethod = method_call;
|
|
|
1106 |
___manager.call(method_call);
|
|
|
1107 |
}
|
|
|
1108 |
|
|
|
1109 |
public static class getSuccessfulPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1110 |
private long txnId;
|
|
|
1111 |
public getSuccessfulPaymentForTxnId_call(long txnId, org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentForTxnId_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 {
|
|
|
1112 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1113 |
this.txnId = txnId;
|
|
|
1114 |
}
|
|
|
1115 |
|
|
|
1116 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1117 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1118 |
getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
|
|
|
1119 |
args.setTxnId(txnId);
|
|
|
1120 |
args.write(prot);
|
|
|
1121 |
prot.writeMessageEnd();
|
|
|
1122 |
}
|
|
|
1123 |
|
|
|
1124 |
public Payment getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1125 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1126 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1127 |
}
|
|
|
1128 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1129 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1130 |
return (new Client(prot)).recv_getSuccessfulPaymentForTxnId();
|
|
|
1131 |
}
|
|
|
1132 |
}
|
|
|
1133 |
|
| 3430 |
rajveer |
1134 |
public void updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<updatePaymentDetails_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1135 |
checkReady();
|
|
|
1136 |
updatePaymentDetails_call method_call = new updatePaymentDetails_call(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1137 |
this.___currentMethod = method_call;
|
|
|
1138 |
___manager.call(method_call);
|
|
|
1139 |
}
|
|
|
1140 |
|
|
|
1141 |
public static class updatePaymentDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1142 |
private long id;
|
|
|
1143 |
private String gatewayPaymentId;
|
|
|
1144 |
private String sessionId;
|
|
|
1145 |
private String gatewayTxnStatus;
|
|
|
1146 |
private String description;
|
|
|
1147 |
private String gatewayTxnId;
|
|
|
1148 |
private String authCode;
|
|
|
1149 |
private String referenceCode;
|
|
|
1150 |
private String errorCode;
|
|
|
1151 |
private PaymentStatus status;
|
|
|
1152 |
private String gatewayTxnDate;
|
|
|
1153 |
private List<Attribute> attributes;
|
|
|
1154 |
public updatePaymentDetails_call(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<updatePaymentDetails_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 {
|
|
|
1155 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1156 |
this.id = id;
|
|
|
1157 |
this.gatewayPaymentId = gatewayPaymentId;
|
|
|
1158 |
this.sessionId = sessionId;
|
|
|
1159 |
this.gatewayTxnStatus = gatewayTxnStatus;
|
|
|
1160 |
this.description = description;
|
|
|
1161 |
this.gatewayTxnId = gatewayTxnId;
|
|
|
1162 |
this.authCode = authCode;
|
|
|
1163 |
this.referenceCode = referenceCode;
|
|
|
1164 |
this.errorCode = errorCode;
|
|
|
1165 |
this.status = status;
|
|
|
1166 |
this.gatewayTxnDate = gatewayTxnDate;
|
|
|
1167 |
this.attributes = attributes;
|
|
|
1168 |
}
|
|
|
1169 |
|
|
|
1170 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1171 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePaymentDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1172 |
updatePaymentDetails_args args = new updatePaymentDetails_args();
|
|
|
1173 |
args.setId(id);
|
|
|
1174 |
args.setGatewayPaymentId(gatewayPaymentId);
|
|
|
1175 |
args.setSessionId(sessionId);
|
|
|
1176 |
args.setGatewayTxnStatus(gatewayTxnStatus);
|
|
|
1177 |
args.setDescription(description);
|
|
|
1178 |
args.setGatewayTxnId(gatewayTxnId);
|
|
|
1179 |
args.setAuthCode(authCode);
|
|
|
1180 |
args.setReferenceCode(referenceCode);
|
|
|
1181 |
args.setErrorCode(errorCode);
|
|
|
1182 |
args.setStatus(status);
|
|
|
1183 |
args.setGatewayTxnDate(gatewayTxnDate);
|
|
|
1184 |
args.setAttributes(attributes);
|
|
|
1185 |
args.write(prot);
|
|
|
1186 |
prot.writeMessageEnd();
|
|
|
1187 |
}
|
|
|
1188 |
|
|
|
1189 |
public boolean getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1190 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1191 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1192 |
}
|
|
|
1193 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1194 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1195 |
return (new Client(prot)).recv_updatePaymentDetails();
|
|
|
1196 |
}
|
|
|
1197 |
}
|
|
|
1198 |
|
|
|
1199 |
public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1200 |
checkReady();
|
|
|
1201 |
getSuccessfulPaymentsAmountRange_call method_call = new getSuccessfulPaymentsAmountRange_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1202 |
this.___currentMethod = method_call;
|
|
|
1203 |
___manager.call(method_call);
|
|
|
1204 |
}
|
|
|
1205 |
|
|
|
1206 |
public static class getSuccessfulPaymentsAmountRange_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1207 |
public getSuccessfulPaymentsAmountRange_call(org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentsAmountRange_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 {
|
|
|
1208 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1209 |
}
|
|
|
1210 |
|
|
|
1211 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1212 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentsAmountRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1213 |
getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
|
|
|
1214 |
args.write(prot);
|
|
|
1215 |
prot.writeMessageEnd();
|
|
|
1216 |
}
|
|
|
1217 |
|
|
|
1218 |
public List<Double> getResult() throws org.apache.thrift.TException {
|
|
|
1219 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1220 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1221 |
}
|
|
|
1222 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1223 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1224 |
return (new Client(prot)).recv_getSuccessfulPaymentsAmountRange();
|
|
|
1225 |
}
|
|
|
1226 |
}
|
|
|
1227 |
|
|
|
1228 |
public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1229 |
checkReady();
|
|
|
1230 |
initializeHdfcPayment_call method_call = new initializeHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1231 |
this.___currentMethod = method_call;
|
|
|
1232 |
___manager.call(method_call);
|
|
|
1233 |
}
|
|
|
1234 |
|
|
|
1235 |
public static class initializeHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1236 |
private long merchantPaymentId;
|
|
|
1237 |
public initializeHdfcPayment_call(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_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 {
|
|
|
1238 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1239 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
1240 |
}
|
|
|
1241 |
|
|
|
1242 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1243 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1244 |
initializeHdfcPayment_args args = new initializeHdfcPayment_args();
|
|
|
1245 |
args.setMerchantPaymentId(merchantPaymentId);
|
|
|
1246 |
args.write(prot);
|
|
|
1247 |
prot.writeMessageEnd();
|
|
|
1248 |
}
|
|
|
1249 |
|
|
|
1250 |
public String getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1251 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1252 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1253 |
}
|
|
|
1254 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1255 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1256 |
return (new Client(prot)).recv_initializeHdfcPayment();
|
|
|
1257 |
}
|
|
|
1258 |
}
|
|
|
1259 |
|
| 6228 |
anupam.sin |
1260 |
public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException {
|
| 6050 |
anupam.sin |
1261 |
checkReady();
|
| 6228 |
anupam.sin |
1262 |
doHdfcPaymentForDigitalOrder_call method_call = new doHdfcPaymentForDigitalOrder_call(merchantPaymentId, rechargeOrderId, phone, resultHandler, this, ___protocolFactory, ___transport);
|
| 6050 |
anupam.sin |
1263 |
this.___currentMethod = method_call;
|
|
|
1264 |
___manager.call(method_call);
|
|
|
1265 |
}
|
|
|
1266 |
|
|
|
1267 |
public static class doHdfcPaymentForDigitalOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1268 |
private long merchantPaymentId;
|
|
|
1269 |
private long rechargeOrderId;
|
| 6228 |
anupam.sin |
1270 |
private String phone;
|
|
|
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 {
|
| 6050 |
anupam.sin |
1272 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1273 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
1274 |
this.rechargeOrderId = rechargeOrderId;
|
| 6228 |
anupam.sin |
1275 |
this.phone = phone;
|
| 6050 |
anupam.sin |
1276 |
}
|
|
|
1277 |
|
|
|
1278 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1279 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("doHdfcPaymentForDigitalOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1280 |
doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
|
|
|
1281 |
args.setMerchantPaymentId(merchantPaymentId);
|
|
|
1282 |
args.setRechargeOrderId(rechargeOrderId);
|
| 6228 |
anupam.sin |
1283 |
args.setPhone(phone);
|
| 6050 |
anupam.sin |
1284 |
args.write(prot);
|
|
|
1285 |
prot.writeMessageEnd();
|
|
|
1286 |
}
|
|
|
1287 |
|
|
|
1288 |
public String getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1289 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1290 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1291 |
}
|
|
|
1292 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1293 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1294 |
return (new Client(prot)).recv_doHdfcPaymentForDigitalOrder();
|
|
|
1295 |
}
|
|
|
1296 |
}
|
|
|
1297 |
|
| 3616 |
chandransh |
1298 |
public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1299 |
checkReady();
|
|
|
1300 |
initializeHdfcEmiPayment_call method_call = new initializeHdfcEmiPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1301 |
this.___currentMethod = method_call;
|
|
|
1302 |
___manager.call(method_call);
|
|
|
1303 |
}
|
|
|
1304 |
|
|
|
1305 |
public static class initializeHdfcEmiPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1306 |
private long merchantPaymentId;
|
|
|
1307 |
public initializeHdfcEmiPayment_call(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_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 {
|
|
|
1308 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1309 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
1310 |
}
|
|
|
1311 |
|
|
|
1312 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1313 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcEmiPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1314 |
initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
|
|
|
1315 |
args.setMerchantPaymentId(merchantPaymentId);
|
|
|
1316 |
args.write(prot);
|
|
|
1317 |
prot.writeMessageEnd();
|
|
|
1318 |
}
|
|
|
1319 |
|
|
|
1320 |
public String getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1321 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1322 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1323 |
}
|
|
|
1324 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1325 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1326 |
return (new Client(prot)).recv_initializeHdfcEmiPayment();
|
|
|
1327 |
}
|
|
|
1328 |
}
|
|
|
1329 |
|
| 3430 |
rajveer |
1330 |
public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<createRefund_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1331 |
checkReady();
|
|
|
1332 |
createRefund_call method_call = new createRefund_call(orderId, merchantTxnId, amount, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1333 |
this.___currentMethod = method_call;
|
|
|
1334 |
___manager.call(method_call);
|
|
|
1335 |
}
|
|
|
1336 |
|
|
|
1337 |
public static class createRefund_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1338 |
private long orderId;
|
|
|
1339 |
private long merchantTxnId;
|
|
|
1340 |
private double amount;
|
|
|
1341 |
public createRefund_call(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<createRefund_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 {
|
|
|
1342 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1343 |
this.orderId = orderId;
|
|
|
1344 |
this.merchantTxnId = merchantTxnId;
|
|
|
1345 |
this.amount = amount;
|
|
|
1346 |
}
|
|
|
1347 |
|
|
|
1348 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1349 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRefund", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1350 |
createRefund_args args = new createRefund_args();
|
|
|
1351 |
args.setOrderId(orderId);
|
|
|
1352 |
args.setMerchantTxnId(merchantTxnId);
|
|
|
1353 |
args.setAmount(amount);
|
|
|
1354 |
args.write(prot);
|
|
|
1355 |
prot.writeMessageEnd();
|
|
|
1356 |
}
|
|
|
1357 |
|
|
|
1358 |
public long getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1359 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1360 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1361 |
}
|
|
|
1362 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1363 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1364 |
return (new Client(prot)).recv_createRefund();
|
|
|
1365 |
}
|
|
|
1366 |
}
|
|
|
1367 |
|
|
|
1368 |
public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<capturePayment_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1369 |
checkReady();
|
|
|
1370 |
capturePayment_call method_call = new capturePayment_call(merchantTxnId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1371 |
this.___currentMethod = method_call;
|
|
|
1372 |
___manager.call(method_call);
|
|
|
1373 |
}
|
|
|
1374 |
|
|
|
1375 |
public static class capturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1376 |
private long merchantTxnId;
|
|
|
1377 |
public capturePayment_call(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<capturePayment_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 {
|
|
|
1378 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1379 |
this.merchantTxnId = merchantTxnId;
|
|
|
1380 |
}
|
|
|
1381 |
|
|
|
1382 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1383 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("capturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1384 |
capturePayment_args args = new capturePayment_args();
|
|
|
1385 |
args.setMerchantTxnId(merchantTxnId);
|
|
|
1386 |
args.write(prot);
|
|
|
1387 |
prot.writeMessageEnd();
|
|
|
1388 |
}
|
|
|
1389 |
|
|
|
1390 |
public boolean getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1391 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1392 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1393 |
}
|
|
|
1394 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1395 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1396 |
return (new Client(prot)).recv_capturePayment();
|
|
|
1397 |
}
|
|
|
1398 |
}
|
|
|
1399 |
|
| 3956 |
chandransh |
1400 |
public void partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate, org.apache.thrift.async.AsyncMethodCallback<partiallyCapturePayment_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1401 |
checkReady();
|
|
|
1402 |
partiallyCapturePayment_call method_call = new partiallyCapturePayment_call(merchantTxnId, amount, xferBy, xferTxnId, xferDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1403 |
this.___currentMethod = method_call;
|
|
|
1404 |
___manager.call(method_call);
|
|
|
1405 |
}
|
|
|
1406 |
|
|
|
1407 |
public static class partiallyCapturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1408 |
private long merchantTxnId;
|
|
|
1409 |
private double amount;
|
|
|
1410 |
private String xferBy;
|
|
|
1411 |
private String xferTxnId;
|
|
|
1412 |
private long xferDate;
|
|
|
1413 |
public partiallyCapturePayment_call(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate, org.apache.thrift.async.AsyncMethodCallback<partiallyCapturePayment_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 {
|
|
|
1414 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1415 |
this.merchantTxnId = merchantTxnId;
|
|
|
1416 |
this.amount = amount;
|
|
|
1417 |
this.xferBy = xferBy;
|
|
|
1418 |
this.xferTxnId = xferTxnId;
|
|
|
1419 |
this.xferDate = xferDate;
|
|
|
1420 |
}
|
|
|
1421 |
|
|
|
1422 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1423 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("partiallyCapturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1424 |
partiallyCapturePayment_args args = new partiallyCapturePayment_args();
|
|
|
1425 |
args.setMerchantTxnId(merchantTxnId);
|
|
|
1426 |
args.setAmount(amount);
|
|
|
1427 |
args.setXferBy(xferBy);
|
|
|
1428 |
args.setXferTxnId(xferTxnId);
|
|
|
1429 |
args.setXferDate(xferDate);
|
|
|
1430 |
args.write(prot);
|
|
|
1431 |
prot.writeMessageEnd();
|
|
|
1432 |
}
|
|
|
1433 |
|
|
|
1434 |
public boolean getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1435 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1436 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1437 |
}
|
|
|
1438 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1439 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1440 |
return (new Client(prot)).recv_partiallyCapturePayment();
|
|
|
1441 |
}
|
|
|
1442 |
}
|
|
|
1443 |
|
| 4008 |
mandeep.dh |
1444 |
public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1445 |
checkReady();
|
|
|
1446 |
getPaymentsRequiringExtraProcessing_call method_call = new getPaymentsRequiringExtraProcessing_call(category, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1447 |
this.___currentMethod = method_call;
|
|
|
1448 |
___manager.call(method_call);
|
|
|
1449 |
}
|
|
|
1450 |
|
|
|
1451 |
public static class getPaymentsRequiringExtraProcessing_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1452 |
private ExtraPaymentProcessingType category;
|
|
|
1453 |
public getPaymentsRequiringExtraProcessing_call(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<getPaymentsRequiringExtraProcessing_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 {
|
|
|
1454 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1455 |
this.category = category;
|
|
|
1456 |
}
|
|
|
1457 |
|
|
|
1458 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1459 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsRequiringExtraProcessing", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1460 |
getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
|
|
|
1461 |
args.setCategory(category);
|
|
|
1462 |
args.write(prot);
|
|
|
1463 |
prot.writeMessageEnd();
|
|
|
1464 |
}
|
|
|
1465 |
|
|
|
1466 |
public List<Long> getResult() throws org.apache.thrift.TException {
|
|
|
1467 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1468 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1469 |
}
|
|
|
1470 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1471 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1472 |
return (new Client(prot)).recv_getPaymentsRequiringExtraProcessing();
|
|
|
1473 |
}
|
|
|
1474 |
}
|
|
|
1475 |
|
|
|
1476 |
public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1477 |
checkReady();
|
|
|
1478 |
markPaymentAsProcessed_call method_call = new markPaymentAsProcessed_call(paymentId, category, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1479 |
this.___currentMethod = method_call;
|
|
|
1480 |
___manager.call(method_call);
|
|
|
1481 |
}
|
|
|
1482 |
|
|
|
1483 |
public static class markPaymentAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1484 |
private long paymentId;
|
|
|
1485 |
private ExtraPaymentProcessingType category;
|
|
|
1486 |
public markPaymentAsProcessed_call(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<markPaymentAsProcessed_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 {
|
|
|
1487 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1488 |
this.paymentId = paymentId;
|
|
|
1489 |
this.category = category;
|
|
|
1490 |
}
|
|
|
1491 |
|
|
|
1492 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1493 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markPaymentAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1494 |
markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
|
|
|
1495 |
args.setPaymentId(paymentId);
|
|
|
1496 |
args.setCategory(category);
|
|
|
1497 |
args.write(prot);
|
|
|
1498 |
prot.writeMessageEnd();
|
|
|
1499 |
}
|
|
|
1500 |
|
|
|
1501 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
1502 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1503 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1504 |
}
|
|
|
1505 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1506 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1507 |
(new Client(prot)).recv_markPaymentAsProcessed();
|
|
|
1508 |
}
|
|
|
1509 |
}
|
|
|
1510 |
|
| 3430 |
rajveer |
1511 |
}
|
|
|
1512 |
|
|
|
1513 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
1514 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
1515 |
public Processor(I iface) {
|
|
|
1516 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
1517 |
}
|
|
|
1518 |
|
|
|
1519 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
1520 |
super(iface, getProcessMap(processMap));
|
|
|
1521 |
}
|
|
|
1522 |
|
|
|
1523 |
private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
1524 |
processMap.put("createPayment", new createPayment());
|
|
|
1525 |
processMap.put("getPaymentsForUser", new getPaymentsForUser());
|
|
|
1526 |
processMap.put("getPayments", new getPayments());
|
| 4141 |
chandransh |
1527 |
processMap.put("getPaymentsByCapturedDate", new getPaymentsByCapturedDate());
|
| 3430 |
rajveer |
1528 |
processMap.put("getPaymentGateway", new getPaymentGateway());
|
| 4600 |
varun.gupt |
1529 |
processMap.put("getActivePaymentGateways", new getActivePaymentGateways());
|
| 3430 |
rajveer |
1530 |
processMap.put("getPayment", new getPayment());
|
|
|
1531 |
processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
|
| 4600 |
varun.gupt |
1532 |
processMap.put("getSuccessfulPaymentForTxnId", new getSuccessfulPaymentForTxnId());
|
| 3430 |
rajveer |
1533 |
processMap.put("updatePaymentDetails", new updatePaymentDetails());
|
|
|
1534 |
processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
|
|
|
1535 |
processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
|
| 6050 |
anupam.sin |
1536 |
processMap.put("doHdfcPaymentForDigitalOrder", new doHdfcPaymentForDigitalOrder());
|
| 3616 |
chandransh |
1537 |
processMap.put("initializeHdfcEmiPayment", new initializeHdfcEmiPayment());
|
| 3430 |
rajveer |
1538 |
processMap.put("createRefund", new createRefund());
|
|
|
1539 |
processMap.put("capturePayment", new capturePayment());
|
| 3956 |
chandransh |
1540 |
processMap.put("partiallyCapturePayment", new partiallyCapturePayment());
|
| 4008 |
mandeep.dh |
1541 |
processMap.put("getPaymentsRequiringExtraProcessing", new getPaymentsRequiringExtraProcessing());
|
|
|
1542 |
processMap.put("markPaymentAsProcessed", new markPaymentAsProcessed());
|
| 3430 |
rajveer |
1543 |
return processMap;
|
|
|
1544 |
}
|
|
|
1545 |
|
|
|
1546 |
private static class createPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPayment_args> {
|
|
|
1547 |
public createPayment() {
|
|
|
1548 |
super("createPayment");
|
|
|
1549 |
}
|
|
|
1550 |
|
|
|
1551 |
protected createPayment_args getEmptyArgsInstance() {
|
|
|
1552 |
return new createPayment_args();
|
|
|
1553 |
}
|
|
|
1554 |
|
|
|
1555 |
protected createPayment_result getResult(I iface, createPayment_args args) throws org.apache.thrift.TException {
|
| 123 |
ashish |
1556 |
createPayment_result result = new createPayment_result();
|
|
|
1557 |
try {
|
| 6050 |
anupam.sin |
1558 |
result.success = iface.createPayment(args.userId, args.amount, args.gatewayId, args.txnId, args.isDigital);
|
| 420 |
ashish |
1559 |
result.setSuccessIsSet(true);
|
| 123 |
ashish |
1560 |
} catch (PaymentException pe) {
|
|
|
1561 |
result.pe = pe;
|
|
|
1562 |
}
|
| 3430 |
rajveer |
1563 |
return result;
|
| 123 |
ashish |
1564 |
}
|
|
|
1565 |
}
|
|
|
1566 |
|
| 3430 |
rajveer |
1567 |
private static class getPaymentsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsForUser_args> {
|
|
|
1568 |
public getPaymentsForUser() {
|
|
|
1569 |
super("getPaymentsForUser");
|
|
|
1570 |
}
|
|
|
1571 |
|
|
|
1572 |
protected getPaymentsForUser_args getEmptyArgsInstance() {
|
|
|
1573 |
return new getPaymentsForUser_args();
|
|
|
1574 |
}
|
|
|
1575 |
|
|
|
1576 |
protected getPaymentsForUser_result getResult(I iface, getPaymentsForUser_args args) throws org.apache.thrift.TException {
|
| 123 |
ashish |
1577 |
getPaymentsForUser_result result = new getPaymentsForUser_result();
|
|
|
1578 |
try {
|
| 3430 |
rajveer |
1579 |
result.success = iface.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId);
|
| 123 |
ashish |
1580 |
} catch (PaymentException pe) {
|
|
|
1581 |
result.pe = pe;
|
|
|
1582 |
}
|
| 3430 |
rajveer |
1583 |
return result;
|
| 123 |
ashish |
1584 |
}
|
|
|
1585 |
}
|
|
|
1586 |
|
| 3430 |
rajveer |
1587 |
private static class getPayments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayments_args> {
|
|
|
1588 |
public getPayments() {
|
|
|
1589 |
super("getPayments");
|
|
|
1590 |
}
|
|
|
1591 |
|
|
|
1592 |
protected getPayments_args getEmptyArgsInstance() {
|
|
|
1593 |
return new getPayments_args();
|
|
|
1594 |
}
|
|
|
1595 |
|
|
|
1596 |
protected getPayments_result getResult(I iface, getPayments_args args) throws org.apache.thrift.TException {
|
| 123 |
ashish |
1597 |
getPayments_result result = new getPayments_result();
|
|
|
1598 |
try {
|
| 3430 |
rajveer |
1599 |
result.success = iface.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId);
|
| 123 |
ashish |
1600 |
} catch (PaymentException pe) {
|
|
|
1601 |
result.pe = pe;
|
|
|
1602 |
}
|
| 3430 |
rajveer |
1603 |
return result;
|
| 123 |
ashish |
1604 |
}
|
|
|
1605 |
}
|
|
|
1606 |
|
| 4141 |
chandransh |
1607 |
private static class getPaymentsByCapturedDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsByCapturedDate_args> {
|
|
|
1608 |
public getPaymentsByCapturedDate() {
|
|
|
1609 |
super("getPaymentsByCapturedDate");
|
|
|
1610 |
}
|
|
|
1611 |
|
|
|
1612 |
protected getPaymentsByCapturedDate_args getEmptyArgsInstance() {
|
|
|
1613 |
return new getPaymentsByCapturedDate_args();
|
|
|
1614 |
}
|
|
|
1615 |
|
|
|
1616 |
protected getPaymentsByCapturedDate_result getResult(I iface, getPaymentsByCapturedDate_args args) throws org.apache.thrift.TException {
|
|
|
1617 |
getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
|
|
|
1618 |
try {
|
|
|
1619 |
result.success = iface.getPaymentsByCapturedDate(args.fromTime, args.toTime, args.gatewayId);
|
|
|
1620 |
} catch (PaymentException pe) {
|
|
|
1621 |
result.pe = pe;
|
|
|
1622 |
}
|
|
|
1623 |
return result;
|
|
|
1624 |
}
|
|
|
1625 |
}
|
|
|
1626 |
|
| 3430 |
rajveer |
1627 |
private static class getPaymentGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentGateway_args> {
|
|
|
1628 |
public getPaymentGateway() {
|
|
|
1629 |
super("getPaymentGateway");
|
|
|
1630 |
}
|
|
|
1631 |
|
|
|
1632 |
protected getPaymentGateway_args getEmptyArgsInstance() {
|
|
|
1633 |
return new getPaymentGateway_args();
|
|
|
1634 |
}
|
|
|
1635 |
|
|
|
1636 |
protected getPaymentGateway_result getResult(I iface, getPaymentGateway_args args) throws org.apache.thrift.TException {
|
| 420 |
ashish |
1637 |
getPaymentGateway_result result = new getPaymentGateway_result();
|
|
|
1638 |
try {
|
| 3430 |
rajveer |
1639 |
result.success = iface.getPaymentGateway(args.id);
|
| 420 |
ashish |
1640 |
} catch (PaymentException pe) {
|
|
|
1641 |
result.pe = pe;
|
|
|
1642 |
}
|
| 3430 |
rajveer |
1643 |
return result;
|
| 420 |
ashish |
1644 |
}
|
|
|
1645 |
}
|
|
|
1646 |
|
| 4600 |
varun.gupt |
1647 |
private static class getActivePaymentGateways<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActivePaymentGateways_args> {
|
|
|
1648 |
public getActivePaymentGateways() {
|
|
|
1649 |
super("getActivePaymentGateways");
|
|
|
1650 |
}
|
|
|
1651 |
|
|
|
1652 |
protected getActivePaymentGateways_args getEmptyArgsInstance() {
|
|
|
1653 |
return new getActivePaymentGateways_args();
|
|
|
1654 |
}
|
|
|
1655 |
|
|
|
1656 |
protected getActivePaymentGateways_result getResult(I iface, getActivePaymentGateways_args args) throws org.apache.thrift.TException {
|
|
|
1657 |
getActivePaymentGateways_result result = new getActivePaymentGateways_result();
|
|
|
1658 |
try {
|
|
|
1659 |
result.success = iface.getActivePaymentGateways();
|
|
|
1660 |
} catch (PaymentException pe) {
|
|
|
1661 |
result.pe = pe;
|
|
|
1662 |
}
|
|
|
1663 |
return result;
|
|
|
1664 |
}
|
|
|
1665 |
}
|
|
|
1666 |
|
| 3430 |
rajveer |
1667 |
private static class getPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayment_args> {
|
|
|
1668 |
public getPayment() {
|
|
|
1669 |
super("getPayment");
|
|
|
1670 |
}
|
|
|
1671 |
|
|
|
1672 |
protected getPayment_args getEmptyArgsInstance() {
|
|
|
1673 |
return new getPayment_args();
|
|
|
1674 |
}
|
|
|
1675 |
|
|
|
1676 |
protected getPayment_result getResult(I iface, getPayment_args args) throws org.apache.thrift.TException {
|
| 695 |
rajveer |
1677 |
getPayment_result result = new getPayment_result();
|
| 420 |
ashish |
1678 |
try {
|
| 3430 |
rajveer |
1679 |
result.success = iface.getPayment(args.id);
|
| 420 |
ashish |
1680 |
} catch (PaymentException pe) {
|
|
|
1681 |
result.pe = pe;
|
|
|
1682 |
}
|
| 3430 |
rajveer |
1683 |
return result;
|
| 420 |
ashish |
1684 |
}
|
|
|
1685 |
}
|
|
|
1686 |
|
| 3430 |
rajveer |
1687 |
private static class getPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentForTxnId_args> {
|
|
|
1688 |
public getPaymentForTxnId() {
|
|
|
1689 |
super("getPaymentForTxnId");
|
|
|
1690 |
}
|
|
|
1691 |
|
|
|
1692 |
protected getPaymentForTxnId_args getEmptyArgsInstance() {
|
|
|
1693 |
return new getPaymentForTxnId_args();
|
|
|
1694 |
}
|
|
|
1695 |
|
|
|
1696 |
protected getPaymentForTxnId_result getResult(I iface, getPaymentForTxnId_args args) throws org.apache.thrift.TException {
|
| 695 |
rajveer |
1697 |
getPaymentForTxnId_result result = new getPaymentForTxnId_result();
|
| 420 |
ashish |
1698 |
try {
|
| 3430 |
rajveer |
1699 |
result.success = iface.getPaymentForTxnId(args.txnId);
|
| 420 |
ashish |
1700 |
} catch (PaymentException pe) {
|
|
|
1701 |
result.pe = pe;
|
|
|
1702 |
}
|
| 3430 |
rajveer |
1703 |
return result;
|
| 420 |
ashish |
1704 |
}
|
|
|
1705 |
}
|
|
|
1706 |
|
| 4600 |
varun.gupt |
1707 |
private static class getSuccessfulPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentForTxnId_args> {
|
|
|
1708 |
public getSuccessfulPaymentForTxnId() {
|
|
|
1709 |
super("getSuccessfulPaymentForTxnId");
|
|
|
1710 |
}
|
|
|
1711 |
|
|
|
1712 |
protected getSuccessfulPaymentForTxnId_args getEmptyArgsInstance() {
|
|
|
1713 |
return new getSuccessfulPaymentForTxnId_args();
|
|
|
1714 |
}
|
|
|
1715 |
|
|
|
1716 |
protected getSuccessfulPaymentForTxnId_result getResult(I iface, getSuccessfulPaymentForTxnId_args args) throws org.apache.thrift.TException {
|
|
|
1717 |
getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
|
|
|
1718 |
try {
|
|
|
1719 |
result.success = iface.getSuccessfulPaymentForTxnId(args.txnId);
|
|
|
1720 |
} catch (PaymentException pe) {
|
|
|
1721 |
result.pe = pe;
|
|
|
1722 |
}
|
|
|
1723 |
return result;
|
|
|
1724 |
}
|
|
|
1725 |
}
|
|
|
1726 |
|
| 3430 |
rajveer |
1727 |
private static class updatePaymentDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePaymentDetails_args> {
|
|
|
1728 |
public updatePaymentDetails() {
|
|
|
1729 |
super("updatePaymentDetails");
|
|
|
1730 |
}
|
|
|
1731 |
|
|
|
1732 |
protected updatePaymentDetails_args getEmptyArgsInstance() {
|
|
|
1733 |
return new updatePaymentDetails_args();
|
|
|
1734 |
}
|
|
|
1735 |
|
|
|
1736 |
protected updatePaymentDetails_result getResult(I iface, updatePaymentDetails_args args) throws org.apache.thrift.TException {
|
| 695 |
rajveer |
1737 |
updatePaymentDetails_result result = new updatePaymentDetails_result();
|
| 420 |
ashish |
1738 |
try {
|
| 3430 |
rajveer |
1739 |
result.success = iface.updatePaymentDetails(args.id, args.gatewayPaymentId, args.sessionId, args.gatewayTxnStatus, args.description, args.gatewayTxnId, args.authCode, args.referenceCode, args.errorCode, args.status, args.gatewayTxnDate, args.attributes);
|
| 695 |
rajveer |
1740 |
result.setSuccessIsSet(true);
|
| 420 |
ashish |
1741 |
} catch (PaymentException pe) {
|
|
|
1742 |
result.pe = pe;
|
|
|
1743 |
}
|
| 3430 |
rajveer |
1744 |
return result;
|
| 420 |
ashish |
1745 |
}
|
|
|
1746 |
}
|
|
|
1747 |
|
| 3430 |
rajveer |
1748 |
private static class getSuccessfulPaymentsAmountRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentsAmountRange_args> {
|
|
|
1749 |
public getSuccessfulPaymentsAmountRange() {
|
|
|
1750 |
super("getSuccessfulPaymentsAmountRange");
|
|
|
1751 |
}
|
|
|
1752 |
|
|
|
1753 |
protected getSuccessfulPaymentsAmountRange_args getEmptyArgsInstance() {
|
|
|
1754 |
return new getSuccessfulPaymentsAmountRange_args();
|
|
|
1755 |
}
|
|
|
1756 |
|
|
|
1757 |
protected getSuccessfulPaymentsAmountRange_result getResult(I iface, getSuccessfulPaymentsAmountRange_args args) throws org.apache.thrift.TException {
|
| 1731 |
ankur.sing |
1758 |
getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
|
| 3430 |
rajveer |
1759 |
result.success = iface.getSuccessfulPaymentsAmountRange();
|
|
|
1760 |
return result;
|
| 1629 |
ankur.sing |
1761 |
}
|
|
|
1762 |
}
|
|
|
1763 |
|
| 3430 |
rajveer |
1764 |
private static class initializeHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcPayment_args> {
|
|
|
1765 |
public initializeHdfcPayment() {
|
|
|
1766 |
super("initializeHdfcPayment");
|
|
|
1767 |
}
|
|
|
1768 |
|
|
|
1769 |
protected initializeHdfcPayment_args getEmptyArgsInstance() {
|
|
|
1770 |
return new initializeHdfcPayment_args();
|
|
|
1771 |
}
|
|
|
1772 |
|
|
|
1773 |
protected initializeHdfcPayment_result getResult(I iface, initializeHdfcPayment_args args) throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
1774 |
initializeHdfcPayment_result result = new initializeHdfcPayment_result();
|
|
|
1775 |
try {
|
| 3430 |
rajveer |
1776 |
result.success = iface.initializeHdfcPayment(args.merchantPaymentId);
|
| 2462 |
chandransh |
1777 |
} catch (PaymentException pe) {
|
|
|
1778 |
result.pe = pe;
|
|
|
1779 |
}
|
| 3430 |
rajveer |
1780 |
return result;
|
| 2462 |
chandransh |
1781 |
}
|
|
|
1782 |
}
|
|
|
1783 |
|
| 6050 |
anupam.sin |
1784 |
private static class doHdfcPaymentForDigitalOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, doHdfcPaymentForDigitalOrder_args> {
|
|
|
1785 |
public doHdfcPaymentForDigitalOrder() {
|
|
|
1786 |
super("doHdfcPaymentForDigitalOrder");
|
|
|
1787 |
}
|
|
|
1788 |
|
|
|
1789 |
protected doHdfcPaymentForDigitalOrder_args getEmptyArgsInstance() {
|
|
|
1790 |
return new doHdfcPaymentForDigitalOrder_args();
|
|
|
1791 |
}
|
|
|
1792 |
|
|
|
1793 |
protected doHdfcPaymentForDigitalOrder_result getResult(I iface, doHdfcPaymentForDigitalOrder_args args) throws org.apache.thrift.TException {
|
|
|
1794 |
doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
|
|
|
1795 |
try {
|
| 6228 |
anupam.sin |
1796 |
result.success = iface.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId, args.phone);
|
| 6050 |
anupam.sin |
1797 |
} catch (PaymentException pe) {
|
|
|
1798 |
result.pe = pe;
|
|
|
1799 |
}
|
|
|
1800 |
return result;
|
|
|
1801 |
}
|
|
|
1802 |
}
|
|
|
1803 |
|
| 3616 |
chandransh |
1804 |
private static class initializeHdfcEmiPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcEmiPayment_args> {
|
|
|
1805 |
public initializeHdfcEmiPayment() {
|
|
|
1806 |
super("initializeHdfcEmiPayment");
|
|
|
1807 |
}
|
|
|
1808 |
|
|
|
1809 |
protected initializeHdfcEmiPayment_args getEmptyArgsInstance() {
|
|
|
1810 |
return new initializeHdfcEmiPayment_args();
|
|
|
1811 |
}
|
|
|
1812 |
|
|
|
1813 |
protected initializeHdfcEmiPayment_result getResult(I iface, initializeHdfcEmiPayment_args args) throws org.apache.thrift.TException {
|
|
|
1814 |
initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
|
|
|
1815 |
try {
|
|
|
1816 |
result.success = iface.initializeHdfcEmiPayment(args.merchantPaymentId);
|
|
|
1817 |
} catch (PaymentException pe) {
|
|
|
1818 |
result.pe = pe;
|
|
|
1819 |
}
|
|
|
1820 |
return result;
|
|
|
1821 |
}
|
|
|
1822 |
}
|
|
|
1823 |
|
| 3430 |
rajveer |
1824 |
private static class createRefund<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRefund_args> {
|
|
|
1825 |
public createRefund() {
|
|
|
1826 |
super("createRefund");
|
|
|
1827 |
}
|
|
|
1828 |
|
|
|
1829 |
protected createRefund_args getEmptyArgsInstance() {
|
|
|
1830 |
return new createRefund_args();
|
|
|
1831 |
}
|
|
|
1832 |
|
|
|
1833 |
protected createRefund_result getResult(I iface, createRefund_args args) throws org.apache.thrift.TException {
|
| 2690 |
chandransh |
1834 |
createRefund_result result = new createRefund_result();
|
|
|
1835 |
try {
|
| 3430 |
rajveer |
1836 |
result.success = iface.createRefund(args.orderId, args.merchantTxnId, args.amount);
|
| 2690 |
chandransh |
1837 |
result.setSuccessIsSet(true);
|
|
|
1838 |
} catch (PaymentException pe) {
|
|
|
1839 |
result.pe = pe;
|
|
|
1840 |
}
|
| 3430 |
rajveer |
1841 |
return result;
|
| 2690 |
chandransh |
1842 |
}
|
|
|
1843 |
}
|
|
|
1844 |
|
| 3430 |
rajveer |
1845 |
private static class capturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, capturePayment_args> {
|
|
|
1846 |
public capturePayment() {
|
|
|
1847 |
super("capturePayment");
|
|
|
1848 |
}
|
|
|
1849 |
|
|
|
1850 |
protected capturePayment_args getEmptyArgsInstance() {
|
|
|
1851 |
return new capturePayment_args();
|
|
|
1852 |
}
|
|
|
1853 |
|
|
|
1854 |
protected capturePayment_result getResult(I iface, capturePayment_args args) throws org.apache.thrift.TException {
|
| 3010 |
chandransh |
1855 |
capturePayment_result result = new capturePayment_result();
|
|
|
1856 |
try {
|
| 3430 |
rajveer |
1857 |
result.success = iface.capturePayment(args.merchantTxnId);
|
| 3010 |
chandransh |
1858 |
result.setSuccessIsSet(true);
|
|
|
1859 |
} catch (PaymentException pe) {
|
|
|
1860 |
result.pe = pe;
|
|
|
1861 |
}
|
| 3430 |
rajveer |
1862 |
return result;
|
| 3010 |
chandransh |
1863 |
}
|
|
|
1864 |
}
|
|
|
1865 |
|
| 3956 |
chandransh |
1866 |
private static class partiallyCapturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, partiallyCapturePayment_args> {
|
|
|
1867 |
public partiallyCapturePayment() {
|
|
|
1868 |
super("partiallyCapturePayment");
|
|
|
1869 |
}
|
|
|
1870 |
|
|
|
1871 |
protected partiallyCapturePayment_args getEmptyArgsInstance() {
|
|
|
1872 |
return new partiallyCapturePayment_args();
|
|
|
1873 |
}
|
|
|
1874 |
|
|
|
1875 |
protected partiallyCapturePayment_result getResult(I iface, partiallyCapturePayment_args args) throws org.apache.thrift.TException {
|
|
|
1876 |
partiallyCapturePayment_result result = new partiallyCapturePayment_result();
|
|
|
1877 |
try {
|
|
|
1878 |
result.success = iface.partiallyCapturePayment(args.merchantTxnId, args.amount, args.xferBy, args.xferTxnId, args.xferDate);
|
|
|
1879 |
result.setSuccessIsSet(true);
|
|
|
1880 |
} catch (PaymentException pe) {
|
|
|
1881 |
result.pe = pe;
|
|
|
1882 |
}
|
|
|
1883 |
return result;
|
|
|
1884 |
}
|
|
|
1885 |
}
|
|
|
1886 |
|
| 4008 |
mandeep.dh |
1887 |
private static class getPaymentsRequiringExtraProcessing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsRequiringExtraProcessing_args> {
|
|
|
1888 |
public getPaymentsRequiringExtraProcessing() {
|
|
|
1889 |
super("getPaymentsRequiringExtraProcessing");
|
|
|
1890 |
}
|
|
|
1891 |
|
|
|
1892 |
protected getPaymentsRequiringExtraProcessing_args getEmptyArgsInstance() {
|
|
|
1893 |
return new getPaymentsRequiringExtraProcessing_args();
|
|
|
1894 |
}
|
|
|
1895 |
|
|
|
1896 |
protected getPaymentsRequiringExtraProcessing_result getResult(I iface, getPaymentsRequiringExtraProcessing_args args) throws org.apache.thrift.TException {
|
|
|
1897 |
getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
|
|
|
1898 |
result.success = iface.getPaymentsRequiringExtraProcessing(args.category);
|
|
|
1899 |
return result;
|
|
|
1900 |
}
|
|
|
1901 |
}
|
|
|
1902 |
|
|
|
1903 |
private static class markPaymentAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markPaymentAsProcessed_args> {
|
|
|
1904 |
public markPaymentAsProcessed() {
|
|
|
1905 |
super("markPaymentAsProcessed");
|
|
|
1906 |
}
|
|
|
1907 |
|
|
|
1908 |
protected markPaymentAsProcessed_args getEmptyArgsInstance() {
|
|
|
1909 |
return new markPaymentAsProcessed_args();
|
|
|
1910 |
}
|
|
|
1911 |
|
|
|
1912 |
protected markPaymentAsProcessed_result getResult(I iface, markPaymentAsProcessed_args args) throws org.apache.thrift.TException {
|
|
|
1913 |
markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
|
|
|
1914 |
iface.markPaymentAsProcessed(args.paymentId, args.category);
|
|
|
1915 |
return result;
|
|
|
1916 |
}
|
|
|
1917 |
}
|
|
|
1918 |
|
| 123 |
ashish |
1919 |
}
|
|
|
1920 |
|
| 3430 |
rajveer |
1921 |
public static class createPayment_args implements org.apache.thrift.TBase<createPayment_args, createPayment_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1922 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_args");
|
| 123 |
ashish |
1923 |
|
| 3430 |
rajveer |
1924 |
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);
|
|
|
1925 |
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);
|
|
|
1926 |
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);
|
|
|
1927 |
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);
|
| 6050 |
anupam.sin |
1928 |
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);
|
| 123 |
ashish |
1929 |
|
| 3430 |
rajveer |
1930 |
private long userId; // required
|
|
|
1931 |
private double amount; // required
|
|
|
1932 |
private long gatewayId; // required
|
|
|
1933 |
private long txnId; // required
|
| 6050 |
anupam.sin |
1934 |
private boolean isDigital; // required
|
| 123 |
ashish |
1935 |
|
|
|
1936 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1937 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 695 |
rajveer |
1938 |
USER_ID((short)1, "userId"),
|
|
|
1939 |
AMOUNT((short)2, "amount"),
|
|
|
1940 |
GATEWAY_ID((short)3, "gatewayId"),
|
| 6050 |
anupam.sin |
1941 |
TXN_ID((short)4, "txnId"),
|
|
|
1942 |
IS_DIGITAL((short)5, "isDigital");
|
| 123 |
ashish |
1943 |
|
|
|
1944 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1945 |
|
|
|
1946 |
static {
|
|
|
1947 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1948 |
byName.put(field.getFieldName(), field);
|
|
|
1949 |
}
|
|
|
1950 |
}
|
|
|
1951 |
|
|
|
1952 |
/**
|
|
|
1953 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1954 |
*/
|
|
|
1955 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1956 |
switch(fieldId) {
|
|
|
1957 |
case 1: // USER_ID
|
|
|
1958 |
return USER_ID;
|
|
|
1959 |
case 2: // AMOUNT
|
|
|
1960 |
return AMOUNT;
|
|
|
1961 |
case 3: // GATEWAY_ID
|
|
|
1962 |
return GATEWAY_ID;
|
|
|
1963 |
case 4: // TXN_ID
|
|
|
1964 |
return TXN_ID;
|
| 6050 |
anupam.sin |
1965 |
case 5: // IS_DIGITAL
|
|
|
1966 |
return IS_DIGITAL;
|
| 3430 |
rajveer |
1967 |
default:
|
|
|
1968 |
return null;
|
|
|
1969 |
}
|
| 123 |
ashish |
1970 |
}
|
|
|
1971 |
|
|
|
1972 |
/**
|
|
|
1973 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1974 |
* if it is not found.
|
|
|
1975 |
*/
|
|
|
1976 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1977 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1978 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1979 |
return fields;
|
|
|
1980 |
}
|
|
|
1981 |
|
|
|
1982 |
/**
|
|
|
1983 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1984 |
*/
|
|
|
1985 |
public static _Fields findByName(String name) {
|
|
|
1986 |
return byName.get(name);
|
|
|
1987 |
}
|
|
|
1988 |
|
|
|
1989 |
private final short _thriftId;
|
|
|
1990 |
private final String _fieldName;
|
|
|
1991 |
|
|
|
1992 |
_Fields(short thriftId, String fieldName) {
|
|
|
1993 |
_thriftId = thriftId;
|
|
|
1994 |
_fieldName = fieldName;
|
|
|
1995 |
}
|
|
|
1996 |
|
|
|
1997 |
public short getThriftFieldId() {
|
|
|
1998 |
return _thriftId;
|
|
|
1999 |
}
|
|
|
2000 |
|
|
|
2001 |
public String getFieldName() {
|
|
|
2002 |
return _fieldName;
|
|
|
2003 |
}
|
|
|
2004 |
}
|
|
|
2005 |
|
|
|
2006 |
// isset id assignments
|
| 695 |
rajveer |
2007 |
private static final int __USERID_ISSET_ID = 0;
|
|
|
2008 |
private static final int __AMOUNT_ISSET_ID = 1;
|
|
|
2009 |
private static final int __GATEWAYID_ISSET_ID = 2;
|
|
|
2010 |
private static final int __TXNID_ISSET_ID = 3;
|
| 6050 |
anupam.sin |
2011 |
private static final int __ISDIGITAL_ISSET_ID = 4;
|
|
|
2012 |
private BitSet __isset_bit_vector = new BitSet(5);
|
| 123 |
ashish |
2013 |
|
| 3430 |
rajveer |
2014 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
2015 |
static {
|
| 3430 |
rajveer |
2016 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2017 |
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2018 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
2019 |
tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2020 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
2021 |
tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2022 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
2023 |
tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2024 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 6050 |
anupam.sin |
2025 |
tmpMap.put(_Fields.IS_DIGITAL, new org.apache.thrift.meta_data.FieldMetaData("isDigital", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2026 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 3430 |
rajveer |
2027 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2028 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
|
| 123 |
ashish |
2029 |
}
|
|
|
2030 |
|
|
|
2031 |
public createPayment_args() {
|
|
|
2032 |
}
|
|
|
2033 |
|
|
|
2034 |
public createPayment_args(
|
| 695 |
rajveer |
2035 |
long userId,
|
| 123 |
ashish |
2036 |
double amount,
|
| 695 |
rajveer |
2037 |
long gatewayId,
|
| 6050 |
anupam.sin |
2038 |
long txnId,
|
|
|
2039 |
boolean isDigital)
|
| 123 |
ashish |
2040 |
{
|
|
|
2041 |
this();
|
| 695 |
rajveer |
2042 |
this.userId = userId;
|
|
|
2043 |
setUserIdIsSet(true);
|
| 123 |
ashish |
2044 |
this.amount = amount;
|
|
|
2045 |
setAmountIsSet(true);
|
| 695 |
rajveer |
2046 |
this.gatewayId = gatewayId;
|
|
|
2047 |
setGatewayIdIsSet(true);
|
|
|
2048 |
this.txnId = txnId;
|
|
|
2049 |
setTxnIdIsSet(true);
|
| 6050 |
anupam.sin |
2050 |
this.isDigital = isDigital;
|
|
|
2051 |
setIsDigitalIsSet(true);
|
| 123 |
ashish |
2052 |
}
|
|
|
2053 |
|
|
|
2054 |
/**
|
|
|
2055 |
* Performs a deep copy on <i>other</i>.
|
|
|
2056 |
*/
|
|
|
2057 |
public createPayment_args(createPayment_args other) {
|
|
|
2058 |
__isset_bit_vector.clear();
|
|
|
2059 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 695 |
rajveer |
2060 |
this.userId = other.userId;
|
| 123 |
ashish |
2061 |
this.amount = other.amount;
|
| 695 |
rajveer |
2062 |
this.gatewayId = other.gatewayId;
|
|
|
2063 |
this.txnId = other.txnId;
|
| 6050 |
anupam.sin |
2064 |
this.isDigital = other.isDigital;
|
| 123 |
ashish |
2065 |
}
|
|
|
2066 |
|
|
|
2067 |
public createPayment_args deepCopy() {
|
|
|
2068 |
return new createPayment_args(this);
|
|
|
2069 |
}
|
|
|
2070 |
|
| 3430 |
rajveer |
2071 |
@Override
|
|
|
2072 |
public void clear() {
|
|
|
2073 |
setUserIdIsSet(false);
|
|
|
2074 |
this.userId = 0;
|
|
|
2075 |
setAmountIsSet(false);
|
|
|
2076 |
this.amount = 0.0;
|
|
|
2077 |
setGatewayIdIsSet(false);
|
|
|
2078 |
this.gatewayId = 0;
|
|
|
2079 |
setTxnIdIsSet(false);
|
|
|
2080 |
this.txnId = 0;
|
| 6050 |
anupam.sin |
2081 |
setIsDigitalIsSet(false);
|
|
|
2082 |
this.isDigital = false;
|
| 123 |
ashish |
2083 |
}
|
|
|
2084 |
|
| 695 |
rajveer |
2085 |
public long getUserId() {
|
|
|
2086 |
return this.userId;
|
| 123 |
ashish |
2087 |
}
|
|
|
2088 |
|
| 3430 |
rajveer |
2089 |
public void setUserId(long userId) {
|
| 695 |
rajveer |
2090 |
this.userId = userId;
|
|
|
2091 |
setUserIdIsSet(true);
|
| 123 |
ashish |
2092 |
}
|
|
|
2093 |
|
| 695 |
rajveer |
2094 |
public void unsetUserId() {
|
|
|
2095 |
__isset_bit_vector.clear(__USERID_ISSET_ID);
|
| 123 |
ashish |
2096 |
}
|
|
|
2097 |
|
| 3430 |
rajveer |
2098 |
/** Returns true if field userId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
2099 |
public boolean isSetUserId() {
|
|
|
2100 |
return __isset_bit_vector.get(__USERID_ISSET_ID);
|
| 123 |
ashish |
2101 |
}
|
|
|
2102 |
|
| 695 |
rajveer |
2103 |
public void setUserIdIsSet(boolean value) {
|
|
|
2104 |
__isset_bit_vector.set(__USERID_ISSET_ID, value);
|
| 123 |
ashish |
2105 |
}
|
|
|
2106 |
|
|
|
2107 |
public double getAmount() {
|
|
|
2108 |
return this.amount;
|
|
|
2109 |
}
|
|
|
2110 |
|
| 3430 |
rajveer |
2111 |
public void setAmount(double amount) {
|
| 123 |
ashish |
2112 |
this.amount = amount;
|
|
|
2113 |
setAmountIsSet(true);
|
|
|
2114 |
}
|
|
|
2115 |
|
|
|
2116 |
public void unsetAmount() {
|
|
|
2117 |
__isset_bit_vector.clear(__AMOUNT_ISSET_ID);
|
|
|
2118 |
}
|
|
|
2119 |
|
| 3430 |
rajveer |
2120 |
/** Returns true if field amount is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
2121 |
public boolean isSetAmount() {
|
|
|
2122 |
return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
|
|
|
2123 |
}
|
|
|
2124 |
|
|
|
2125 |
public void setAmountIsSet(boolean value) {
|
|
|
2126 |
__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
|
|
|
2127 |
}
|
|
|
2128 |
|
| 695 |
rajveer |
2129 |
public long getGatewayId() {
|
|
|
2130 |
return this.gatewayId;
|
| 123 |
ashish |
2131 |
}
|
|
|
2132 |
|
| 3430 |
rajveer |
2133 |
public void setGatewayId(long gatewayId) {
|
| 695 |
rajveer |
2134 |
this.gatewayId = gatewayId;
|
|
|
2135 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
2136 |
}
|
|
|
2137 |
|
| 695 |
rajveer |
2138 |
public void unsetGatewayId() {
|
|
|
2139 |
__isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
2140 |
}
|
|
|
2141 |
|
| 3430 |
rajveer |
2142 |
/** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
2143 |
public boolean isSetGatewayId() {
|
|
|
2144 |
return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
2145 |
}
|
|
|
2146 |
|
| 695 |
rajveer |
2147 |
public void setGatewayIdIsSet(boolean value) {
|
|
|
2148 |
__isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
|
| 123 |
ashish |
2149 |
}
|
|
|
2150 |
|
| 695 |
rajveer |
2151 |
public long getTxnId() {
|
|
|
2152 |
return this.txnId;
|
|
|
2153 |
}
|
|
|
2154 |
|
| 3430 |
rajveer |
2155 |
public void setTxnId(long txnId) {
|
| 695 |
rajveer |
2156 |
this.txnId = txnId;
|
|
|
2157 |
setTxnIdIsSet(true);
|
|
|
2158 |
}
|
|
|
2159 |
|
|
|
2160 |
public void unsetTxnId() {
|
|
|
2161 |
__isset_bit_vector.clear(__TXNID_ISSET_ID);
|
|
|
2162 |
}
|
|
|
2163 |
|
| 3430 |
rajveer |
2164 |
/** Returns true if field txnId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
2165 |
public boolean isSetTxnId() {
|
|
|
2166 |
return __isset_bit_vector.get(__TXNID_ISSET_ID);
|
|
|
2167 |
}
|
|
|
2168 |
|
|
|
2169 |
public void setTxnIdIsSet(boolean value) {
|
|
|
2170 |
__isset_bit_vector.set(__TXNID_ISSET_ID, value);
|
|
|
2171 |
}
|
|
|
2172 |
|
| 6050 |
anupam.sin |
2173 |
public boolean isIsDigital() {
|
|
|
2174 |
return this.isDigital;
|
|
|
2175 |
}
|
|
|
2176 |
|
|
|
2177 |
public void setIsDigital(boolean isDigital) {
|
|
|
2178 |
this.isDigital = isDigital;
|
|
|
2179 |
setIsDigitalIsSet(true);
|
|
|
2180 |
}
|
|
|
2181 |
|
|
|
2182 |
public void unsetIsDigital() {
|
|
|
2183 |
__isset_bit_vector.clear(__ISDIGITAL_ISSET_ID);
|
|
|
2184 |
}
|
|
|
2185 |
|
|
|
2186 |
/** Returns true if field isDigital is set (has been assigned a value) and false otherwise */
|
|
|
2187 |
public boolean isSetIsDigital() {
|
|
|
2188 |
return __isset_bit_vector.get(__ISDIGITAL_ISSET_ID);
|
|
|
2189 |
}
|
|
|
2190 |
|
|
|
2191 |
public void setIsDigitalIsSet(boolean value) {
|
|
|
2192 |
__isset_bit_vector.set(__ISDIGITAL_ISSET_ID, value);
|
|
|
2193 |
}
|
|
|
2194 |
|
| 123 |
ashish |
2195 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2196 |
switch (field) {
|
|
|
2197 |
case USER_ID:
|
|
|
2198 |
if (value == null) {
|
| 695 |
rajveer |
2199 |
unsetUserId();
|
| 123 |
ashish |
2200 |
} else {
|
| 695 |
rajveer |
2201 |
setUserId((Long)value);
|
| 123 |
ashish |
2202 |
}
|
|
|
2203 |
break;
|
|
|
2204 |
|
| 695 |
rajveer |
2205 |
case AMOUNT:
|
| 123 |
ashish |
2206 |
if (value == null) {
|
| 695 |
rajveer |
2207 |
unsetAmount();
|
| 123 |
ashish |
2208 |
} else {
|
| 695 |
rajveer |
2209 |
setAmount((Double)value);
|
| 123 |
ashish |
2210 |
}
|
|
|
2211 |
break;
|
|
|
2212 |
|
| 695 |
rajveer |
2213 |
case GATEWAY_ID:
|
| 123 |
ashish |
2214 |
if (value == null) {
|
| 695 |
rajveer |
2215 |
unsetGatewayId();
|
| 123 |
ashish |
2216 |
} else {
|
| 695 |
rajveer |
2217 |
setGatewayId((Long)value);
|
| 123 |
ashish |
2218 |
}
|
|
|
2219 |
break;
|
|
|
2220 |
|
| 695 |
rajveer |
2221 |
case TXN_ID:
|
| 123 |
ashish |
2222 |
if (value == null) {
|
| 695 |
rajveer |
2223 |
unsetTxnId();
|
| 123 |
ashish |
2224 |
} else {
|
| 695 |
rajveer |
2225 |
setTxnId((Long)value);
|
| 123 |
ashish |
2226 |
}
|
|
|
2227 |
break;
|
|
|
2228 |
|
| 6050 |
anupam.sin |
2229 |
case IS_DIGITAL:
|
|
|
2230 |
if (value == null) {
|
|
|
2231 |
unsetIsDigital();
|
|
|
2232 |
} else {
|
|
|
2233 |
setIsDigital((Boolean)value);
|
|
|
2234 |
}
|
|
|
2235 |
break;
|
|
|
2236 |
|
| 123 |
ashish |
2237 |
}
|
|
|
2238 |
}
|
|
|
2239 |
|
|
|
2240 |
public Object getFieldValue(_Fields field) {
|
|
|
2241 |
switch (field) {
|
|
|
2242 |
case USER_ID:
|
| 3430 |
rajveer |
2243 |
return Long.valueOf(getUserId());
|
| 123 |
ashish |
2244 |
|
|
|
2245 |
case AMOUNT:
|
| 3430 |
rajveer |
2246 |
return Double.valueOf(getAmount());
|
| 123 |
ashish |
2247 |
|
| 420 |
ashish |
2248 |
case GATEWAY_ID:
|
| 3430 |
rajveer |
2249 |
return Long.valueOf(getGatewayId());
|
| 123 |
ashish |
2250 |
|
| 695 |
rajveer |
2251 |
case TXN_ID:
|
| 3430 |
rajveer |
2252 |
return Long.valueOf(getTxnId());
|
| 695 |
rajveer |
2253 |
|
| 6050 |
anupam.sin |
2254 |
case IS_DIGITAL:
|
|
|
2255 |
return Boolean.valueOf(isIsDigital());
|
|
|
2256 |
|
| 123 |
ashish |
2257 |
}
|
|
|
2258 |
throw new IllegalStateException();
|
|
|
2259 |
}
|
|
|
2260 |
|
| 3430 |
rajveer |
2261 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2262 |
public boolean isSet(_Fields field) {
|
|
|
2263 |
if (field == null) {
|
|
|
2264 |
throw new IllegalArgumentException();
|
|
|
2265 |
}
|
| 123 |
ashish |
2266 |
|
|
|
2267 |
switch (field) {
|
|
|
2268 |
case USER_ID:
|
| 695 |
rajveer |
2269 |
return isSetUserId();
|
| 123 |
ashish |
2270 |
case AMOUNT:
|
|
|
2271 |
return isSetAmount();
|
| 420 |
ashish |
2272 |
case GATEWAY_ID:
|
| 695 |
rajveer |
2273 |
return isSetGatewayId();
|
|
|
2274 |
case TXN_ID:
|
|
|
2275 |
return isSetTxnId();
|
| 6050 |
anupam.sin |
2276 |
case IS_DIGITAL:
|
|
|
2277 |
return isSetIsDigital();
|
| 123 |
ashish |
2278 |
}
|
|
|
2279 |
throw new IllegalStateException();
|
|
|
2280 |
}
|
|
|
2281 |
|
|
|
2282 |
@Override
|
|
|
2283 |
public boolean equals(Object that) {
|
|
|
2284 |
if (that == null)
|
|
|
2285 |
return false;
|
|
|
2286 |
if (that instanceof createPayment_args)
|
|
|
2287 |
return this.equals((createPayment_args)that);
|
|
|
2288 |
return false;
|
|
|
2289 |
}
|
|
|
2290 |
|
|
|
2291 |
public boolean equals(createPayment_args that) {
|
|
|
2292 |
if (that == null)
|
|
|
2293 |
return false;
|
|
|
2294 |
|
| 695 |
rajveer |
2295 |
boolean this_present_userId = true;
|
|
|
2296 |
boolean that_present_userId = true;
|
|
|
2297 |
if (this_present_userId || that_present_userId) {
|
|
|
2298 |
if (!(this_present_userId && that_present_userId))
|
| 123 |
ashish |
2299 |
return false;
|
| 695 |
rajveer |
2300 |
if (this.userId != that.userId)
|
| 123 |
ashish |
2301 |
return false;
|
|
|
2302 |
}
|
|
|
2303 |
|
|
|
2304 |
boolean this_present_amount = true;
|
|
|
2305 |
boolean that_present_amount = true;
|
|
|
2306 |
if (this_present_amount || that_present_amount) {
|
|
|
2307 |
if (!(this_present_amount && that_present_amount))
|
|
|
2308 |
return false;
|
|
|
2309 |
if (this.amount != that.amount)
|
|
|
2310 |
return false;
|
|
|
2311 |
}
|
|
|
2312 |
|
| 695 |
rajveer |
2313 |
boolean this_present_gatewayId = true;
|
|
|
2314 |
boolean that_present_gatewayId = true;
|
|
|
2315 |
if (this_present_gatewayId || that_present_gatewayId) {
|
|
|
2316 |
if (!(this_present_gatewayId && that_present_gatewayId))
|
| 123 |
ashish |
2317 |
return false;
|
| 695 |
rajveer |
2318 |
if (this.gatewayId != that.gatewayId)
|
| 123 |
ashish |
2319 |
return false;
|
|
|
2320 |
}
|
|
|
2321 |
|
| 695 |
rajveer |
2322 |
boolean this_present_txnId = true;
|
|
|
2323 |
boolean that_present_txnId = true;
|
|
|
2324 |
if (this_present_txnId || that_present_txnId) {
|
|
|
2325 |
if (!(this_present_txnId && that_present_txnId))
|
|
|
2326 |
return false;
|
|
|
2327 |
if (this.txnId != that.txnId)
|
|
|
2328 |
return false;
|
|
|
2329 |
}
|
|
|
2330 |
|
| 6050 |
anupam.sin |
2331 |
boolean this_present_isDigital = true;
|
|
|
2332 |
boolean that_present_isDigital = true;
|
|
|
2333 |
if (this_present_isDigital || that_present_isDigital) {
|
|
|
2334 |
if (!(this_present_isDigital && that_present_isDigital))
|
|
|
2335 |
return false;
|
|
|
2336 |
if (this.isDigital != that.isDigital)
|
|
|
2337 |
return false;
|
|
|
2338 |
}
|
|
|
2339 |
|
| 123 |
ashish |
2340 |
return true;
|
|
|
2341 |
}
|
|
|
2342 |
|
|
|
2343 |
@Override
|
|
|
2344 |
public int hashCode() {
|
|
|
2345 |
return 0;
|
|
|
2346 |
}
|
|
|
2347 |
|
|
|
2348 |
public int compareTo(createPayment_args other) {
|
|
|
2349 |
if (!getClass().equals(other.getClass())) {
|
|
|
2350 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2351 |
}
|
|
|
2352 |
|
|
|
2353 |
int lastComparison = 0;
|
|
|
2354 |
createPayment_args typedOther = (createPayment_args)other;
|
|
|
2355 |
|
| 3430 |
rajveer |
2356 |
lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
|
| 123 |
ashish |
2357 |
if (lastComparison != 0) {
|
|
|
2358 |
return lastComparison;
|
|
|
2359 |
}
|
| 3430 |
rajveer |
2360 |
if (isSetUserId()) {
|
|
|
2361 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
|
|
|
2362 |
if (lastComparison != 0) {
|
|
|
2363 |
return lastComparison;
|
|
|
2364 |
}
|
| 123 |
ashish |
2365 |
}
|
| 3430 |
rajveer |
2366 |
lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
|
| 123 |
ashish |
2367 |
if (lastComparison != 0) {
|
|
|
2368 |
return lastComparison;
|
|
|
2369 |
}
|
| 3430 |
rajveer |
2370 |
if (isSetAmount()) {
|
|
|
2371 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
|
|
|
2372 |
if (lastComparison != 0) {
|
|
|
2373 |
return lastComparison;
|
|
|
2374 |
}
|
| 123 |
ashish |
2375 |
}
|
| 3430 |
rajveer |
2376 |
lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
|
| 123 |
ashish |
2377 |
if (lastComparison != 0) {
|
|
|
2378 |
return lastComparison;
|
|
|
2379 |
}
|
| 3430 |
rajveer |
2380 |
if (isSetGatewayId()) {
|
|
|
2381 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
|
|
|
2382 |
if (lastComparison != 0) {
|
|
|
2383 |
return lastComparison;
|
|
|
2384 |
}
|
| 123 |
ashish |
2385 |
}
|
| 3430 |
rajveer |
2386 |
lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
|
| 123 |
ashish |
2387 |
if (lastComparison != 0) {
|
|
|
2388 |
return lastComparison;
|
|
|
2389 |
}
|
| 3430 |
rajveer |
2390 |
if (isSetTxnId()) {
|
|
|
2391 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
|
|
|
2392 |
if (lastComparison != 0) {
|
|
|
2393 |
return lastComparison;
|
|
|
2394 |
}
|
| 123 |
ashish |
2395 |
}
|
| 6050 |
anupam.sin |
2396 |
lastComparison = Boolean.valueOf(isSetIsDigital()).compareTo(typedOther.isSetIsDigital());
|
|
|
2397 |
if (lastComparison != 0) {
|
|
|
2398 |
return lastComparison;
|
|
|
2399 |
}
|
|
|
2400 |
if (isSetIsDigital()) {
|
|
|
2401 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDigital, typedOther.isDigital);
|
|
|
2402 |
if (lastComparison != 0) {
|
|
|
2403 |
return lastComparison;
|
|
|
2404 |
}
|
|
|
2405 |
}
|
| 123 |
ashish |
2406 |
return 0;
|
|
|
2407 |
}
|
|
|
2408 |
|
| 3430 |
rajveer |
2409 |
public _Fields fieldForId(int fieldId) {
|
|
|
2410 |
return _Fields.findByThriftId(fieldId);
|
|
|
2411 |
}
|
|
|
2412 |
|
|
|
2413 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2414 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
2415 |
iprot.readStructBegin();
|
|
|
2416 |
while (true)
|
|
|
2417 |
{
|
|
|
2418 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2419 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
2420 |
break;
|
|
|
2421 |
}
|
| 3430 |
rajveer |
2422 |
switch (field.id) {
|
|
|
2423 |
case 1: // USER_ID
|
|
|
2424 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
2425 |
this.userId = iprot.readI64();
|
|
|
2426 |
setUserIdIsSet(true);
|
|
|
2427 |
} else {
|
|
|
2428 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2429 |
}
|
|
|
2430 |
break;
|
|
|
2431 |
case 2: // AMOUNT
|
|
|
2432 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
2433 |
this.amount = iprot.readDouble();
|
|
|
2434 |
setAmountIsSet(true);
|
|
|
2435 |
} else {
|
|
|
2436 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2437 |
}
|
|
|
2438 |
break;
|
|
|
2439 |
case 3: // GATEWAY_ID
|
|
|
2440 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
2441 |
this.gatewayId = iprot.readI64();
|
|
|
2442 |
setGatewayIdIsSet(true);
|
|
|
2443 |
} else {
|
|
|
2444 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2445 |
}
|
|
|
2446 |
break;
|
|
|
2447 |
case 4: // TXN_ID
|
|
|
2448 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
2449 |
this.txnId = iprot.readI64();
|
|
|
2450 |
setTxnIdIsSet(true);
|
|
|
2451 |
} else {
|
|
|
2452 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2453 |
}
|
|
|
2454 |
break;
|
| 6050 |
anupam.sin |
2455 |
case 5: // IS_DIGITAL
|
|
|
2456 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
2457 |
this.isDigital = iprot.readBool();
|
|
|
2458 |
setIsDigitalIsSet(true);
|
|
|
2459 |
} else {
|
|
|
2460 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2461 |
}
|
|
|
2462 |
break;
|
| 3430 |
rajveer |
2463 |
default:
|
|
|
2464 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
2465 |
}
|
| 3430 |
rajveer |
2466 |
iprot.readFieldEnd();
|
| 123 |
ashish |
2467 |
}
|
|
|
2468 |
iprot.readStructEnd();
|
|
|
2469 |
validate();
|
|
|
2470 |
}
|
|
|
2471 |
|
| 3430 |
rajveer |
2472 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
2473 |
validate();
|
|
|
2474 |
|
|
|
2475 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2476 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
| 695 |
rajveer |
2477 |
oprot.writeI64(this.userId);
|
| 123 |
ashish |
2478 |
oprot.writeFieldEnd();
|
|
|
2479 |
oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
|
|
|
2480 |
oprot.writeDouble(this.amount);
|
|
|
2481 |
oprot.writeFieldEnd();
|
| 420 |
ashish |
2482 |
oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
|
| 695 |
rajveer |
2483 |
oprot.writeI64(this.gatewayId);
|
| 420 |
ashish |
2484 |
oprot.writeFieldEnd();
|
| 695 |
rajveer |
2485 |
oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
|
|
|
2486 |
oprot.writeI64(this.txnId);
|
|
|
2487 |
oprot.writeFieldEnd();
|
| 6050 |
anupam.sin |
2488 |
oprot.writeFieldBegin(IS_DIGITAL_FIELD_DESC);
|
|
|
2489 |
oprot.writeBool(this.isDigital);
|
|
|
2490 |
oprot.writeFieldEnd();
|
| 123 |
ashish |
2491 |
oprot.writeFieldStop();
|
|
|
2492 |
oprot.writeStructEnd();
|
|
|
2493 |
}
|
|
|
2494 |
|
|
|
2495 |
@Override
|
|
|
2496 |
public String toString() {
|
|
|
2497 |
StringBuilder sb = new StringBuilder("createPayment_args(");
|
|
|
2498 |
boolean first = true;
|
|
|
2499 |
|
| 695 |
rajveer |
2500 |
sb.append("userId:");
|
|
|
2501 |
sb.append(this.userId);
|
| 123 |
ashish |
2502 |
first = false;
|
|
|
2503 |
if (!first) sb.append(", ");
|
|
|
2504 |
sb.append("amount:");
|
|
|
2505 |
sb.append(this.amount);
|
|
|
2506 |
first = false;
|
|
|
2507 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
2508 |
sb.append("gatewayId:");
|
|
|
2509 |
sb.append(this.gatewayId);
|
| 123 |
ashish |
2510 |
first = false;
|
| 695 |
rajveer |
2511 |
if (!first) sb.append(", ");
|
|
|
2512 |
sb.append("txnId:");
|
|
|
2513 |
sb.append(this.txnId);
|
|
|
2514 |
first = false;
|
| 6050 |
anupam.sin |
2515 |
if (!first) sb.append(", ");
|
|
|
2516 |
sb.append("isDigital:");
|
|
|
2517 |
sb.append(this.isDigital);
|
|
|
2518 |
first = false;
|
| 123 |
ashish |
2519 |
sb.append(")");
|
|
|
2520 |
return sb.toString();
|
|
|
2521 |
}
|
|
|
2522 |
|
| 3430 |
rajveer |
2523 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
2524 |
// check for required fields
|
|
|
2525 |
}
|
|
|
2526 |
|
| 3430 |
rajveer |
2527 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2528 |
try {
|
|
|
2529 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2530 |
} catch (org.apache.thrift.TException te) {
|
|
|
2531 |
throw new java.io.IOException(te);
|
|
|
2532 |
}
|
|
|
2533 |
}
|
|
|
2534 |
|
|
|
2535 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2536 |
try {
|
|
|
2537 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2538 |
} catch (org.apache.thrift.TException te) {
|
|
|
2539 |
throw new java.io.IOException(te);
|
|
|
2540 |
}
|
|
|
2541 |
}
|
|
|
2542 |
|
| 123 |
ashish |
2543 |
}
|
|
|
2544 |
|
| 3430 |
rajveer |
2545 |
public static class createPayment_result implements org.apache.thrift.TBase<createPayment_result, createPayment_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2546 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_result");
|
| 123 |
ashish |
2547 |
|
| 3430 |
rajveer |
2548 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
|
|
|
2549 |
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);
|
| 123 |
ashish |
2550 |
|
| 3430 |
rajveer |
2551 |
private long success; // required
|
|
|
2552 |
private PaymentException pe; // required
|
| 123 |
ashish |
2553 |
|
|
|
2554 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2555 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 123 |
ashish |
2556 |
SUCCESS((short)0, "success"),
|
|
|
2557 |
PE((short)1, "pe");
|
|
|
2558 |
|
|
|
2559 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2560 |
|
|
|
2561 |
static {
|
|
|
2562 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2563 |
byName.put(field.getFieldName(), field);
|
|
|
2564 |
}
|
|
|
2565 |
}
|
|
|
2566 |
|
|
|
2567 |
/**
|
|
|
2568 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2569 |
*/
|
|
|
2570 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2571 |
switch(fieldId) {
|
|
|
2572 |
case 0: // SUCCESS
|
|
|
2573 |
return SUCCESS;
|
|
|
2574 |
case 1: // PE
|
|
|
2575 |
return PE;
|
|
|
2576 |
default:
|
|
|
2577 |
return null;
|
|
|
2578 |
}
|
| 123 |
ashish |
2579 |
}
|
|
|
2580 |
|
|
|
2581 |
/**
|
|
|
2582 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2583 |
* if it is not found.
|
|
|
2584 |
*/
|
|
|
2585 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2586 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2587 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2588 |
return fields;
|
|
|
2589 |
}
|
|
|
2590 |
|
|
|
2591 |
/**
|
|
|
2592 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2593 |
*/
|
|
|
2594 |
public static _Fields findByName(String name) {
|
|
|
2595 |
return byName.get(name);
|
|
|
2596 |
}
|
|
|
2597 |
|
|
|
2598 |
private final short _thriftId;
|
|
|
2599 |
private final String _fieldName;
|
|
|
2600 |
|
|
|
2601 |
_Fields(short thriftId, String fieldName) {
|
|
|
2602 |
_thriftId = thriftId;
|
|
|
2603 |
_fieldName = fieldName;
|
|
|
2604 |
}
|
|
|
2605 |
|
|
|
2606 |
public short getThriftFieldId() {
|
|
|
2607 |
return _thriftId;
|
|
|
2608 |
}
|
|
|
2609 |
|
|
|
2610 |
public String getFieldName() {
|
|
|
2611 |
return _fieldName;
|
|
|
2612 |
}
|
|
|
2613 |
}
|
|
|
2614 |
|
|
|
2615 |
// isset id assignments
|
| 420 |
ashish |
2616 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
2617 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 123 |
ashish |
2618 |
|
| 3430 |
rajveer |
2619 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
2620 |
static {
|
| 3430 |
rajveer |
2621 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2622 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2623 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
2624 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2625 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
2626 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2627 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_result.class, metaDataMap);
|
| 123 |
ashish |
2628 |
}
|
|
|
2629 |
|
|
|
2630 |
public createPayment_result() {
|
|
|
2631 |
}
|
|
|
2632 |
|
|
|
2633 |
public createPayment_result(
|
| 420 |
ashish |
2634 |
long success,
|
| 123 |
ashish |
2635 |
PaymentException pe)
|
|
|
2636 |
{
|
|
|
2637 |
this();
|
|
|
2638 |
this.success = success;
|
| 420 |
ashish |
2639 |
setSuccessIsSet(true);
|
| 123 |
ashish |
2640 |
this.pe = pe;
|
|
|
2641 |
}
|
|
|
2642 |
|
|
|
2643 |
/**
|
|
|
2644 |
* Performs a deep copy on <i>other</i>.
|
|
|
2645 |
*/
|
|
|
2646 |
public createPayment_result(createPayment_result other) {
|
| 420 |
ashish |
2647 |
__isset_bit_vector.clear();
|
|
|
2648 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
2649 |
this.success = other.success;
|
| 123 |
ashish |
2650 |
if (other.isSetPe()) {
|
|
|
2651 |
this.pe = new PaymentException(other.pe);
|
|
|
2652 |
}
|
|
|
2653 |
}
|
|
|
2654 |
|
|
|
2655 |
public createPayment_result deepCopy() {
|
|
|
2656 |
return new createPayment_result(this);
|
|
|
2657 |
}
|
|
|
2658 |
|
| 3430 |
rajveer |
2659 |
@Override
|
|
|
2660 |
public void clear() {
|
|
|
2661 |
setSuccessIsSet(false);
|
|
|
2662 |
this.success = 0;
|
|
|
2663 |
this.pe = null;
|
| 123 |
ashish |
2664 |
}
|
|
|
2665 |
|
| 420 |
ashish |
2666 |
public long getSuccess() {
|
| 123 |
ashish |
2667 |
return this.success;
|
|
|
2668 |
}
|
|
|
2669 |
|
| 3430 |
rajveer |
2670 |
public void setSuccess(long success) {
|
| 123 |
ashish |
2671 |
this.success = success;
|
| 420 |
ashish |
2672 |
setSuccessIsSet(true);
|
| 123 |
ashish |
2673 |
}
|
|
|
2674 |
|
|
|
2675 |
public void unsetSuccess() {
|
| 420 |
ashish |
2676 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
| 123 |
ashish |
2677 |
}
|
|
|
2678 |
|
| 3430 |
rajveer |
2679 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
2680 |
public boolean isSetSuccess() {
|
| 420 |
ashish |
2681 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
| 123 |
ashish |
2682 |
}
|
|
|
2683 |
|
|
|
2684 |
public void setSuccessIsSet(boolean value) {
|
| 420 |
ashish |
2685 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
| 123 |
ashish |
2686 |
}
|
|
|
2687 |
|
|
|
2688 |
public PaymentException getPe() {
|
|
|
2689 |
return this.pe;
|
|
|
2690 |
}
|
|
|
2691 |
|
| 3430 |
rajveer |
2692 |
public void setPe(PaymentException pe) {
|
| 123 |
ashish |
2693 |
this.pe = pe;
|
|
|
2694 |
}
|
|
|
2695 |
|
|
|
2696 |
public void unsetPe() {
|
|
|
2697 |
this.pe = null;
|
|
|
2698 |
}
|
|
|
2699 |
|
| 3430 |
rajveer |
2700 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
2701 |
public boolean isSetPe() {
|
|
|
2702 |
return this.pe != null;
|
|
|
2703 |
}
|
|
|
2704 |
|
|
|
2705 |
public void setPeIsSet(boolean value) {
|
|
|
2706 |
if (!value) {
|
|
|
2707 |
this.pe = null;
|
|
|
2708 |
}
|
|
|
2709 |
}
|
|
|
2710 |
|
|
|
2711 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2712 |
switch (field) {
|
|
|
2713 |
case SUCCESS:
|
|
|
2714 |
if (value == null) {
|
|
|
2715 |
unsetSuccess();
|
|
|
2716 |
} else {
|
| 420 |
ashish |
2717 |
setSuccess((Long)value);
|
| 123 |
ashish |
2718 |
}
|
|
|
2719 |
break;
|
|
|
2720 |
|
|
|
2721 |
case PE:
|
|
|
2722 |
if (value == null) {
|
|
|
2723 |
unsetPe();
|
|
|
2724 |
} else {
|
|
|
2725 |
setPe((PaymentException)value);
|
|
|
2726 |
}
|
|
|
2727 |
break;
|
|
|
2728 |
|
|
|
2729 |
}
|
|
|
2730 |
}
|
|
|
2731 |
|
|
|
2732 |
public Object getFieldValue(_Fields field) {
|
|
|
2733 |
switch (field) {
|
|
|
2734 |
case SUCCESS:
|
| 3430 |
rajveer |
2735 |
return Long.valueOf(getSuccess());
|
| 123 |
ashish |
2736 |
|
|
|
2737 |
case PE:
|
|
|
2738 |
return getPe();
|
|
|
2739 |
|
|
|
2740 |
}
|
|
|
2741 |
throw new IllegalStateException();
|
|
|
2742 |
}
|
|
|
2743 |
|
| 3430 |
rajveer |
2744 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2745 |
public boolean isSet(_Fields field) {
|
|
|
2746 |
if (field == null) {
|
|
|
2747 |
throw new IllegalArgumentException();
|
|
|
2748 |
}
|
| 123 |
ashish |
2749 |
|
|
|
2750 |
switch (field) {
|
|
|
2751 |
case SUCCESS:
|
|
|
2752 |
return isSetSuccess();
|
|
|
2753 |
case PE:
|
|
|
2754 |
return isSetPe();
|
|
|
2755 |
}
|
|
|
2756 |
throw new IllegalStateException();
|
|
|
2757 |
}
|
|
|
2758 |
|
|
|
2759 |
@Override
|
|
|
2760 |
public boolean equals(Object that) {
|
|
|
2761 |
if (that == null)
|
|
|
2762 |
return false;
|
|
|
2763 |
if (that instanceof createPayment_result)
|
|
|
2764 |
return this.equals((createPayment_result)that);
|
|
|
2765 |
return false;
|
|
|
2766 |
}
|
|
|
2767 |
|
|
|
2768 |
public boolean equals(createPayment_result that) {
|
|
|
2769 |
if (that == null)
|
|
|
2770 |
return false;
|
|
|
2771 |
|
| 420 |
ashish |
2772 |
boolean this_present_success = true;
|
|
|
2773 |
boolean that_present_success = true;
|
| 123 |
ashish |
2774 |
if (this_present_success || that_present_success) {
|
|
|
2775 |
if (!(this_present_success && that_present_success))
|
|
|
2776 |
return false;
|
| 420 |
ashish |
2777 |
if (this.success != that.success)
|
| 123 |
ashish |
2778 |
return false;
|
|
|
2779 |
}
|
|
|
2780 |
|
|
|
2781 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
2782 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
2783 |
if (this_present_pe || that_present_pe) {
|
|
|
2784 |
if (!(this_present_pe && that_present_pe))
|
|
|
2785 |
return false;
|
|
|
2786 |
if (!this.pe.equals(that.pe))
|
|
|
2787 |
return false;
|
|
|
2788 |
}
|
|
|
2789 |
|
|
|
2790 |
return true;
|
|
|
2791 |
}
|
|
|
2792 |
|
|
|
2793 |
@Override
|
|
|
2794 |
public int hashCode() {
|
|
|
2795 |
return 0;
|
|
|
2796 |
}
|
|
|
2797 |
|
| 420 |
ashish |
2798 |
public int compareTo(createPayment_result other) {
|
|
|
2799 |
if (!getClass().equals(other.getClass())) {
|
|
|
2800 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2801 |
}
|
|
|
2802 |
|
|
|
2803 |
int lastComparison = 0;
|
|
|
2804 |
createPayment_result typedOther = (createPayment_result)other;
|
|
|
2805 |
|
| 3430 |
rajveer |
2806 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 420 |
ashish |
2807 |
if (lastComparison != 0) {
|
|
|
2808 |
return lastComparison;
|
|
|
2809 |
}
|
| 3430 |
rajveer |
2810 |
if (isSetSuccess()) {
|
|
|
2811 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
2812 |
if (lastComparison != 0) {
|
|
|
2813 |
return lastComparison;
|
|
|
2814 |
}
|
| 420 |
ashish |
2815 |
}
|
| 3430 |
rajveer |
2816 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 420 |
ashish |
2817 |
if (lastComparison != 0) {
|
|
|
2818 |
return lastComparison;
|
|
|
2819 |
}
|
| 3430 |
rajveer |
2820 |
if (isSetPe()) {
|
|
|
2821 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
2822 |
if (lastComparison != 0) {
|
|
|
2823 |
return lastComparison;
|
|
|
2824 |
}
|
| 420 |
ashish |
2825 |
}
|
|
|
2826 |
return 0;
|
|
|
2827 |
}
|
|
|
2828 |
|
| 3430 |
rajveer |
2829 |
public _Fields fieldForId(int fieldId) {
|
|
|
2830 |
return _Fields.findByThriftId(fieldId);
|
|
|
2831 |
}
|
|
|
2832 |
|
|
|
2833 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2834 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
2835 |
iprot.readStructBegin();
|
|
|
2836 |
while (true)
|
|
|
2837 |
{
|
|
|
2838 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2839 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
2840 |
break;
|
|
|
2841 |
}
|
| 3430 |
rajveer |
2842 |
switch (field.id) {
|
|
|
2843 |
case 0: // SUCCESS
|
|
|
2844 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
2845 |
this.success = iprot.readI64();
|
|
|
2846 |
setSuccessIsSet(true);
|
|
|
2847 |
} else {
|
|
|
2848 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2849 |
}
|
|
|
2850 |
break;
|
|
|
2851 |
case 1: // PE
|
|
|
2852 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2853 |
this.pe = new PaymentException();
|
|
|
2854 |
this.pe.read(iprot);
|
|
|
2855 |
} else {
|
|
|
2856 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2857 |
}
|
|
|
2858 |
break;
|
|
|
2859 |
default:
|
|
|
2860 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
2861 |
}
|
| 3430 |
rajveer |
2862 |
iprot.readFieldEnd();
|
| 123 |
ashish |
2863 |
}
|
|
|
2864 |
iprot.readStructEnd();
|
|
|
2865 |
validate();
|
|
|
2866 |
}
|
|
|
2867 |
|
| 3430 |
rajveer |
2868 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
2869 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2870 |
|
|
|
2871 |
if (this.isSetSuccess()) {
|
|
|
2872 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 420 |
ashish |
2873 |
oprot.writeI64(this.success);
|
| 123 |
ashish |
2874 |
oprot.writeFieldEnd();
|
|
|
2875 |
} else if (this.isSetPe()) {
|
|
|
2876 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
2877 |
this.pe.write(oprot);
|
|
|
2878 |
oprot.writeFieldEnd();
|
|
|
2879 |
}
|
|
|
2880 |
oprot.writeFieldStop();
|
|
|
2881 |
oprot.writeStructEnd();
|
|
|
2882 |
}
|
|
|
2883 |
|
|
|
2884 |
@Override
|
|
|
2885 |
public String toString() {
|
|
|
2886 |
StringBuilder sb = new StringBuilder("createPayment_result(");
|
|
|
2887 |
boolean first = true;
|
|
|
2888 |
|
|
|
2889 |
sb.append("success:");
|
| 420 |
ashish |
2890 |
sb.append(this.success);
|
| 123 |
ashish |
2891 |
first = false;
|
|
|
2892 |
if (!first) sb.append(", ");
|
|
|
2893 |
sb.append("pe:");
|
|
|
2894 |
if (this.pe == null) {
|
|
|
2895 |
sb.append("null");
|
|
|
2896 |
} else {
|
|
|
2897 |
sb.append(this.pe);
|
|
|
2898 |
}
|
|
|
2899 |
first = false;
|
|
|
2900 |
sb.append(")");
|
|
|
2901 |
return sb.toString();
|
|
|
2902 |
}
|
|
|
2903 |
|
| 3430 |
rajveer |
2904 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
2905 |
// check for required fields
|
|
|
2906 |
}
|
|
|
2907 |
|
| 3430 |
rajveer |
2908 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2909 |
try {
|
|
|
2910 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2911 |
} catch (org.apache.thrift.TException te) {
|
|
|
2912 |
throw new java.io.IOException(te);
|
|
|
2913 |
}
|
|
|
2914 |
}
|
|
|
2915 |
|
|
|
2916 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2917 |
try {
|
|
|
2918 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2919 |
} catch (org.apache.thrift.TException te) {
|
|
|
2920 |
throw new java.io.IOException(te);
|
|
|
2921 |
}
|
|
|
2922 |
}
|
|
|
2923 |
|
| 123 |
ashish |
2924 |
}
|
|
|
2925 |
|
| 3430 |
rajveer |
2926 |
public static class getPaymentsForUser_args implements org.apache.thrift.TBase<getPaymentsForUser_args, getPaymentsForUser_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2927 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_args");
|
| 123 |
ashish |
2928 |
|
| 3430 |
rajveer |
2929 |
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);
|
|
|
2930 |
private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
2931 |
private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
2932 |
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)4);
|
|
|
2933 |
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)5);
|
| 123 |
ashish |
2934 |
|
| 3430 |
rajveer |
2935 |
private long userId; // required
|
|
|
2936 |
private long fromTime; // required
|
|
|
2937 |
private long toTime; // required
|
|
|
2938 |
private PaymentStatus status; // required
|
|
|
2939 |
private long gatewayId; // required
|
| 123 |
ashish |
2940 |
|
|
|
2941 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2942 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 123 |
ashish |
2943 |
USER_ID((short)1, "userId"),
|
| 695 |
rajveer |
2944 |
FROM_TIME((short)2, "fromTime"),
|
|
|
2945 |
TO_TIME((short)3, "toTime"),
|
| 123 |
ashish |
2946 |
/**
|
|
|
2947 |
*
|
|
|
2948 |
* @see PaymentStatus
|
|
|
2949 |
*/
|
|
|
2950 |
STATUS((short)4, "status"),
|
| 695 |
rajveer |
2951 |
GATEWAY_ID((short)5, "gatewayId");
|
| 123 |
ashish |
2952 |
|
|
|
2953 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2954 |
|
|
|
2955 |
static {
|
|
|
2956 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2957 |
byName.put(field.getFieldName(), field);
|
|
|
2958 |
}
|
|
|
2959 |
}
|
|
|
2960 |
|
|
|
2961 |
/**
|
|
|
2962 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2963 |
*/
|
|
|
2964 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2965 |
switch(fieldId) {
|
|
|
2966 |
case 1: // USER_ID
|
|
|
2967 |
return USER_ID;
|
|
|
2968 |
case 2: // FROM_TIME
|
|
|
2969 |
return FROM_TIME;
|
|
|
2970 |
case 3: // TO_TIME
|
|
|
2971 |
return TO_TIME;
|
|
|
2972 |
case 4: // STATUS
|
|
|
2973 |
return STATUS;
|
|
|
2974 |
case 5: // GATEWAY_ID
|
|
|
2975 |
return GATEWAY_ID;
|
|
|
2976 |
default:
|
|
|
2977 |
return null;
|
|
|
2978 |
}
|
| 123 |
ashish |
2979 |
}
|
|
|
2980 |
|
|
|
2981 |
/**
|
|
|
2982 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2983 |
* if it is not found.
|
|
|
2984 |
*/
|
|
|
2985 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2986 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2987 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2988 |
return fields;
|
|
|
2989 |
}
|
|
|
2990 |
|
|
|
2991 |
/**
|
|
|
2992 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2993 |
*/
|
|
|
2994 |
public static _Fields findByName(String name) {
|
|
|
2995 |
return byName.get(name);
|
|
|
2996 |
}
|
|
|
2997 |
|
|
|
2998 |
private final short _thriftId;
|
|
|
2999 |
private final String _fieldName;
|
|
|
3000 |
|
|
|
3001 |
_Fields(short thriftId, String fieldName) {
|
|
|
3002 |
_thriftId = thriftId;
|
|
|
3003 |
_fieldName = fieldName;
|
|
|
3004 |
}
|
|
|
3005 |
|
|
|
3006 |
public short getThriftFieldId() {
|
|
|
3007 |
return _thriftId;
|
|
|
3008 |
}
|
|
|
3009 |
|
|
|
3010 |
public String getFieldName() {
|
|
|
3011 |
return _fieldName;
|
|
|
3012 |
}
|
|
|
3013 |
}
|
|
|
3014 |
|
|
|
3015 |
// isset id assignments
|
|
|
3016 |
private static final int __USERID_ISSET_ID = 0;
|
| 695 |
rajveer |
3017 |
private static final int __FROMTIME_ISSET_ID = 1;
|
|
|
3018 |
private static final int __TOTIME_ISSET_ID = 2;
|
|
|
3019 |
private static final int __GATEWAYID_ISSET_ID = 3;
|
| 420 |
ashish |
3020 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 123 |
ashish |
3021 |
|
| 3430 |
rajveer |
3022 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
3023 |
static {
|
| 3430 |
rajveer |
3024 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3025 |
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3026 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3027 |
tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3028 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3029 |
tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3030 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3031 |
tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3032 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
|
|
|
3033 |
tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3034 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3035 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3036 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_args.class, metaDataMap);
|
| 123 |
ashish |
3037 |
}
|
|
|
3038 |
|
|
|
3039 |
public getPaymentsForUser_args() {
|
|
|
3040 |
}
|
|
|
3041 |
|
|
|
3042 |
public getPaymentsForUser_args(
|
|
|
3043 |
long userId,
|
| 695 |
rajveer |
3044 |
long fromTime,
|
|
|
3045 |
long toTime,
|
| 123 |
ashish |
3046 |
PaymentStatus status,
|
| 695 |
rajveer |
3047 |
long gatewayId)
|
| 123 |
ashish |
3048 |
{
|
|
|
3049 |
this();
|
|
|
3050 |
this.userId = userId;
|
|
|
3051 |
setUserIdIsSet(true);
|
| 695 |
rajveer |
3052 |
this.fromTime = fromTime;
|
|
|
3053 |
setFromTimeIsSet(true);
|
|
|
3054 |
this.toTime = toTime;
|
|
|
3055 |
setToTimeIsSet(true);
|
| 123 |
ashish |
3056 |
this.status = status;
|
| 695 |
rajveer |
3057 |
this.gatewayId = gatewayId;
|
|
|
3058 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
3059 |
}
|
|
|
3060 |
|
|
|
3061 |
/**
|
|
|
3062 |
* Performs a deep copy on <i>other</i>.
|
|
|
3063 |
*/
|
|
|
3064 |
public getPaymentsForUser_args(getPaymentsForUser_args other) {
|
|
|
3065 |
__isset_bit_vector.clear();
|
|
|
3066 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
3067 |
this.userId = other.userId;
|
| 695 |
rajveer |
3068 |
this.fromTime = other.fromTime;
|
|
|
3069 |
this.toTime = other.toTime;
|
| 123 |
ashish |
3070 |
if (other.isSetStatus()) {
|
|
|
3071 |
this.status = other.status;
|
|
|
3072 |
}
|
| 695 |
rajveer |
3073 |
this.gatewayId = other.gatewayId;
|
| 123 |
ashish |
3074 |
}
|
|
|
3075 |
|
|
|
3076 |
public getPaymentsForUser_args deepCopy() {
|
|
|
3077 |
return new getPaymentsForUser_args(this);
|
|
|
3078 |
}
|
|
|
3079 |
|
| 3430 |
rajveer |
3080 |
@Override
|
|
|
3081 |
public void clear() {
|
|
|
3082 |
setUserIdIsSet(false);
|
|
|
3083 |
this.userId = 0;
|
|
|
3084 |
setFromTimeIsSet(false);
|
|
|
3085 |
this.fromTime = 0;
|
|
|
3086 |
setToTimeIsSet(false);
|
|
|
3087 |
this.toTime = 0;
|
|
|
3088 |
this.status = null;
|
|
|
3089 |
setGatewayIdIsSet(false);
|
|
|
3090 |
this.gatewayId = 0;
|
| 123 |
ashish |
3091 |
}
|
|
|
3092 |
|
|
|
3093 |
public long getUserId() {
|
|
|
3094 |
return this.userId;
|
|
|
3095 |
}
|
|
|
3096 |
|
| 3430 |
rajveer |
3097 |
public void setUserId(long userId) {
|
| 123 |
ashish |
3098 |
this.userId = userId;
|
|
|
3099 |
setUserIdIsSet(true);
|
|
|
3100 |
}
|
|
|
3101 |
|
|
|
3102 |
public void unsetUserId() {
|
|
|
3103 |
__isset_bit_vector.clear(__USERID_ISSET_ID);
|
|
|
3104 |
}
|
|
|
3105 |
|
| 3430 |
rajveer |
3106 |
/** Returns true if field userId is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
3107 |
public boolean isSetUserId() {
|
|
|
3108 |
return __isset_bit_vector.get(__USERID_ISSET_ID);
|
|
|
3109 |
}
|
|
|
3110 |
|
|
|
3111 |
public void setUserIdIsSet(boolean value) {
|
|
|
3112 |
__isset_bit_vector.set(__USERID_ISSET_ID, value);
|
|
|
3113 |
}
|
|
|
3114 |
|
| 695 |
rajveer |
3115 |
public long getFromTime() {
|
|
|
3116 |
return this.fromTime;
|
| 123 |
ashish |
3117 |
}
|
|
|
3118 |
|
| 3430 |
rajveer |
3119 |
public void setFromTime(long fromTime) {
|
| 695 |
rajveer |
3120 |
this.fromTime = fromTime;
|
|
|
3121 |
setFromTimeIsSet(true);
|
| 123 |
ashish |
3122 |
}
|
|
|
3123 |
|
| 695 |
rajveer |
3124 |
public void unsetFromTime() {
|
|
|
3125 |
__isset_bit_vector.clear(__FROMTIME_ISSET_ID);
|
| 123 |
ashish |
3126 |
}
|
|
|
3127 |
|
| 3430 |
rajveer |
3128 |
/** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
3129 |
public boolean isSetFromTime() {
|
|
|
3130 |
return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
|
| 123 |
ashish |
3131 |
}
|
|
|
3132 |
|
| 695 |
rajveer |
3133 |
public void setFromTimeIsSet(boolean value) {
|
|
|
3134 |
__isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
|
| 123 |
ashish |
3135 |
}
|
|
|
3136 |
|
| 695 |
rajveer |
3137 |
public long getToTime() {
|
|
|
3138 |
return this.toTime;
|
| 123 |
ashish |
3139 |
}
|
|
|
3140 |
|
| 3430 |
rajveer |
3141 |
public void setToTime(long toTime) {
|
| 695 |
rajveer |
3142 |
this.toTime = toTime;
|
|
|
3143 |
setToTimeIsSet(true);
|
| 123 |
ashish |
3144 |
}
|
|
|
3145 |
|
| 695 |
rajveer |
3146 |
public void unsetToTime() {
|
|
|
3147 |
__isset_bit_vector.clear(__TOTIME_ISSET_ID);
|
| 123 |
ashish |
3148 |
}
|
|
|
3149 |
|
| 3430 |
rajveer |
3150 |
/** Returns true if field toTime is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
3151 |
public boolean isSetToTime() {
|
|
|
3152 |
return __isset_bit_vector.get(__TOTIME_ISSET_ID);
|
| 123 |
ashish |
3153 |
}
|
|
|
3154 |
|
| 695 |
rajveer |
3155 |
public void setToTimeIsSet(boolean value) {
|
|
|
3156 |
__isset_bit_vector.set(__TOTIME_ISSET_ID, value);
|
| 123 |
ashish |
3157 |
}
|
|
|
3158 |
|
|
|
3159 |
/**
|
|
|
3160 |
*
|
|
|
3161 |
* @see PaymentStatus
|
|
|
3162 |
*/
|
|
|
3163 |
public PaymentStatus getStatus() {
|
|
|
3164 |
return this.status;
|
|
|
3165 |
}
|
|
|
3166 |
|
|
|
3167 |
/**
|
|
|
3168 |
*
|
|
|
3169 |
* @see PaymentStatus
|
|
|
3170 |
*/
|
| 3430 |
rajveer |
3171 |
public void setStatus(PaymentStatus status) {
|
| 123 |
ashish |
3172 |
this.status = status;
|
|
|
3173 |
}
|
|
|
3174 |
|
|
|
3175 |
public void unsetStatus() {
|
|
|
3176 |
this.status = null;
|
|
|
3177 |
}
|
|
|
3178 |
|
| 3430 |
rajveer |
3179 |
/** Returns true if field status is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
3180 |
public boolean isSetStatus() {
|
|
|
3181 |
return this.status != null;
|
|
|
3182 |
}
|
|
|
3183 |
|
|
|
3184 |
public void setStatusIsSet(boolean value) {
|
|
|
3185 |
if (!value) {
|
|
|
3186 |
this.status = null;
|
|
|
3187 |
}
|
|
|
3188 |
}
|
|
|
3189 |
|
| 695 |
rajveer |
3190 |
public long getGatewayId() {
|
|
|
3191 |
return this.gatewayId;
|
| 123 |
ashish |
3192 |
}
|
|
|
3193 |
|
| 3430 |
rajveer |
3194 |
public void setGatewayId(long gatewayId) {
|
| 695 |
rajveer |
3195 |
this.gatewayId = gatewayId;
|
|
|
3196 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
3197 |
}
|
|
|
3198 |
|
| 695 |
rajveer |
3199 |
public void unsetGatewayId() {
|
|
|
3200 |
__isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
3201 |
}
|
|
|
3202 |
|
| 3430 |
rajveer |
3203 |
/** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
3204 |
public boolean isSetGatewayId() {
|
|
|
3205 |
return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
3206 |
}
|
|
|
3207 |
|
| 695 |
rajveer |
3208 |
public void setGatewayIdIsSet(boolean value) {
|
|
|
3209 |
__isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
|
| 123 |
ashish |
3210 |
}
|
|
|
3211 |
|
|
|
3212 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3213 |
switch (field) {
|
|
|
3214 |
case USER_ID:
|
|
|
3215 |
if (value == null) {
|
|
|
3216 |
unsetUserId();
|
|
|
3217 |
} else {
|
|
|
3218 |
setUserId((Long)value);
|
|
|
3219 |
}
|
|
|
3220 |
break;
|
|
|
3221 |
|
|
|
3222 |
case FROM_TIME:
|
|
|
3223 |
if (value == null) {
|
| 695 |
rajveer |
3224 |
unsetFromTime();
|
| 123 |
ashish |
3225 |
} else {
|
| 695 |
rajveer |
3226 |
setFromTime((Long)value);
|
| 123 |
ashish |
3227 |
}
|
|
|
3228 |
break;
|
|
|
3229 |
|
|
|
3230 |
case TO_TIME:
|
|
|
3231 |
if (value == null) {
|
| 695 |
rajveer |
3232 |
unsetToTime();
|
| 123 |
ashish |
3233 |
} else {
|
| 695 |
rajveer |
3234 |
setToTime((Long)value);
|
| 123 |
ashish |
3235 |
}
|
|
|
3236 |
break;
|
|
|
3237 |
|
|
|
3238 |
case STATUS:
|
|
|
3239 |
if (value == null) {
|
|
|
3240 |
unsetStatus();
|
|
|
3241 |
} else {
|
|
|
3242 |
setStatus((PaymentStatus)value);
|
|
|
3243 |
}
|
|
|
3244 |
break;
|
|
|
3245 |
|
| 420 |
ashish |
3246 |
case GATEWAY_ID:
|
| 123 |
ashish |
3247 |
if (value == null) {
|
| 695 |
rajveer |
3248 |
unsetGatewayId();
|
| 123 |
ashish |
3249 |
} else {
|
| 695 |
rajveer |
3250 |
setGatewayId((Long)value);
|
| 123 |
ashish |
3251 |
}
|
|
|
3252 |
break;
|
|
|
3253 |
|
|
|
3254 |
}
|
|
|
3255 |
}
|
|
|
3256 |
|
|
|
3257 |
public Object getFieldValue(_Fields field) {
|
|
|
3258 |
switch (field) {
|
|
|
3259 |
case USER_ID:
|
| 3430 |
rajveer |
3260 |
return Long.valueOf(getUserId());
|
| 123 |
ashish |
3261 |
|
|
|
3262 |
case FROM_TIME:
|
| 3430 |
rajveer |
3263 |
return Long.valueOf(getFromTime());
|
| 123 |
ashish |
3264 |
|
|
|
3265 |
case TO_TIME:
|
| 3430 |
rajveer |
3266 |
return Long.valueOf(getToTime());
|
| 123 |
ashish |
3267 |
|
|
|
3268 |
case STATUS:
|
|
|
3269 |
return getStatus();
|
|
|
3270 |
|
| 420 |
ashish |
3271 |
case GATEWAY_ID:
|
| 3430 |
rajveer |
3272 |
return Long.valueOf(getGatewayId());
|
| 123 |
ashish |
3273 |
|
|
|
3274 |
}
|
|
|
3275 |
throw new IllegalStateException();
|
|
|
3276 |
}
|
|
|
3277 |
|
| 3430 |
rajveer |
3278 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3279 |
public boolean isSet(_Fields field) {
|
|
|
3280 |
if (field == null) {
|
|
|
3281 |
throw new IllegalArgumentException();
|
|
|
3282 |
}
|
| 123 |
ashish |
3283 |
|
|
|
3284 |
switch (field) {
|
|
|
3285 |
case USER_ID:
|
|
|
3286 |
return isSetUserId();
|
|
|
3287 |
case FROM_TIME:
|
| 695 |
rajveer |
3288 |
return isSetFromTime();
|
| 123 |
ashish |
3289 |
case TO_TIME:
|
| 695 |
rajveer |
3290 |
return isSetToTime();
|
| 123 |
ashish |
3291 |
case STATUS:
|
|
|
3292 |
return isSetStatus();
|
| 420 |
ashish |
3293 |
case GATEWAY_ID:
|
| 695 |
rajveer |
3294 |
return isSetGatewayId();
|
| 123 |
ashish |
3295 |
}
|
|
|
3296 |
throw new IllegalStateException();
|
|
|
3297 |
}
|
|
|
3298 |
|
|
|
3299 |
@Override
|
|
|
3300 |
public boolean equals(Object that) {
|
|
|
3301 |
if (that == null)
|
|
|
3302 |
return false;
|
|
|
3303 |
if (that instanceof getPaymentsForUser_args)
|
|
|
3304 |
return this.equals((getPaymentsForUser_args)that);
|
|
|
3305 |
return false;
|
|
|
3306 |
}
|
|
|
3307 |
|
|
|
3308 |
public boolean equals(getPaymentsForUser_args that) {
|
|
|
3309 |
if (that == null)
|
|
|
3310 |
return false;
|
|
|
3311 |
|
|
|
3312 |
boolean this_present_userId = true;
|
|
|
3313 |
boolean that_present_userId = true;
|
|
|
3314 |
if (this_present_userId || that_present_userId) {
|
|
|
3315 |
if (!(this_present_userId && that_present_userId))
|
|
|
3316 |
return false;
|
|
|
3317 |
if (this.userId != that.userId)
|
|
|
3318 |
return false;
|
|
|
3319 |
}
|
|
|
3320 |
|
| 695 |
rajveer |
3321 |
boolean this_present_fromTime = true;
|
|
|
3322 |
boolean that_present_fromTime = true;
|
|
|
3323 |
if (this_present_fromTime || that_present_fromTime) {
|
|
|
3324 |
if (!(this_present_fromTime && that_present_fromTime))
|
| 123 |
ashish |
3325 |
return false;
|
| 695 |
rajveer |
3326 |
if (this.fromTime != that.fromTime)
|
| 123 |
ashish |
3327 |
return false;
|
|
|
3328 |
}
|
|
|
3329 |
|
| 695 |
rajveer |
3330 |
boolean this_present_toTime = true;
|
|
|
3331 |
boolean that_present_toTime = true;
|
|
|
3332 |
if (this_present_toTime || that_present_toTime) {
|
|
|
3333 |
if (!(this_present_toTime && that_present_toTime))
|
| 123 |
ashish |
3334 |
return false;
|
| 695 |
rajveer |
3335 |
if (this.toTime != that.toTime)
|
| 123 |
ashish |
3336 |
return false;
|
|
|
3337 |
}
|
|
|
3338 |
|
|
|
3339 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
3340 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
3341 |
if (this_present_status || that_present_status) {
|
|
|
3342 |
if (!(this_present_status && that_present_status))
|
|
|
3343 |
return false;
|
|
|
3344 |
if (!this.status.equals(that.status))
|
|
|
3345 |
return false;
|
|
|
3346 |
}
|
|
|
3347 |
|
| 695 |
rajveer |
3348 |
boolean this_present_gatewayId = true;
|
|
|
3349 |
boolean that_present_gatewayId = true;
|
|
|
3350 |
if (this_present_gatewayId || that_present_gatewayId) {
|
|
|
3351 |
if (!(this_present_gatewayId && that_present_gatewayId))
|
| 123 |
ashish |
3352 |
return false;
|
| 695 |
rajveer |
3353 |
if (this.gatewayId != that.gatewayId)
|
| 123 |
ashish |
3354 |
return false;
|
|
|
3355 |
}
|
|
|
3356 |
|
|
|
3357 |
return true;
|
|
|
3358 |
}
|
|
|
3359 |
|
|
|
3360 |
@Override
|
|
|
3361 |
public int hashCode() {
|
|
|
3362 |
return 0;
|
|
|
3363 |
}
|
|
|
3364 |
|
|
|
3365 |
public int compareTo(getPaymentsForUser_args other) {
|
|
|
3366 |
if (!getClass().equals(other.getClass())) {
|
|
|
3367 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3368 |
}
|
|
|
3369 |
|
|
|
3370 |
int lastComparison = 0;
|
|
|
3371 |
getPaymentsForUser_args typedOther = (getPaymentsForUser_args)other;
|
|
|
3372 |
|
| 3430 |
rajveer |
3373 |
lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
|
| 123 |
ashish |
3374 |
if (lastComparison != 0) {
|
|
|
3375 |
return lastComparison;
|
|
|
3376 |
}
|
| 3430 |
rajveer |
3377 |
if (isSetUserId()) {
|
|
|
3378 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
|
|
|
3379 |
if (lastComparison != 0) {
|
|
|
3380 |
return lastComparison;
|
|
|
3381 |
}
|
| 123 |
ashish |
3382 |
}
|
| 3430 |
rajveer |
3383 |
lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
|
| 123 |
ashish |
3384 |
if (lastComparison != 0) {
|
|
|
3385 |
return lastComparison;
|
|
|
3386 |
}
|
| 3430 |
rajveer |
3387 |
if (isSetFromTime()) {
|
|
|
3388 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
|
|
|
3389 |
if (lastComparison != 0) {
|
|
|
3390 |
return lastComparison;
|
|
|
3391 |
}
|
| 123 |
ashish |
3392 |
}
|
| 3430 |
rajveer |
3393 |
lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
|
| 123 |
ashish |
3394 |
if (lastComparison != 0) {
|
|
|
3395 |
return lastComparison;
|
|
|
3396 |
}
|
| 3430 |
rajveer |
3397 |
if (isSetToTime()) {
|
|
|
3398 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
|
|
|
3399 |
if (lastComparison != 0) {
|
|
|
3400 |
return lastComparison;
|
|
|
3401 |
}
|
| 123 |
ashish |
3402 |
}
|
| 3430 |
rajveer |
3403 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
|
| 123 |
ashish |
3404 |
if (lastComparison != 0) {
|
|
|
3405 |
return lastComparison;
|
|
|
3406 |
}
|
| 3430 |
rajveer |
3407 |
if (isSetStatus()) {
|
|
|
3408 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
|
|
|
3409 |
if (lastComparison != 0) {
|
|
|
3410 |
return lastComparison;
|
|
|
3411 |
}
|
| 123 |
ashish |
3412 |
}
|
| 3430 |
rajveer |
3413 |
lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
|
| 123 |
ashish |
3414 |
if (lastComparison != 0) {
|
|
|
3415 |
return lastComparison;
|
|
|
3416 |
}
|
| 3430 |
rajveer |
3417 |
if (isSetGatewayId()) {
|
|
|
3418 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
|
|
|
3419 |
if (lastComparison != 0) {
|
|
|
3420 |
return lastComparison;
|
|
|
3421 |
}
|
| 123 |
ashish |
3422 |
}
|
|
|
3423 |
return 0;
|
|
|
3424 |
}
|
|
|
3425 |
|
| 3430 |
rajveer |
3426 |
public _Fields fieldForId(int fieldId) {
|
|
|
3427 |
return _Fields.findByThriftId(fieldId);
|
|
|
3428 |
}
|
|
|
3429 |
|
|
|
3430 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3431 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
3432 |
iprot.readStructBegin();
|
|
|
3433 |
while (true)
|
|
|
3434 |
{
|
|
|
3435 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3436 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
3437 |
break;
|
|
|
3438 |
}
|
| 3430 |
rajveer |
3439 |
switch (field.id) {
|
|
|
3440 |
case 1: // USER_ID
|
|
|
3441 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3442 |
this.userId = iprot.readI64();
|
|
|
3443 |
setUserIdIsSet(true);
|
|
|
3444 |
} else {
|
|
|
3445 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3446 |
}
|
|
|
3447 |
break;
|
|
|
3448 |
case 2: // FROM_TIME
|
|
|
3449 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3450 |
this.fromTime = iprot.readI64();
|
|
|
3451 |
setFromTimeIsSet(true);
|
|
|
3452 |
} else {
|
|
|
3453 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3454 |
}
|
|
|
3455 |
break;
|
|
|
3456 |
case 3: // TO_TIME
|
|
|
3457 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3458 |
this.toTime = iprot.readI64();
|
|
|
3459 |
setToTimeIsSet(true);
|
|
|
3460 |
} else {
|
|
|
3461 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3462 |
}
|
|
|
3463 |
break;
|
|
|
3464 |
case 4: // STATUS
|
|
|
3465 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
3466 |
this.status = PaymentStatus.findByValue(iprot.readI32());
|
|
|
3467 |
} else {
|
|
|
3468 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3469 |
}
|
|
|
3470 |
break;
|
|
|
3471 |
case 5: // GATEWAY_ID
|
|
|
3472 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3473 |
this.gatewayId = iprot.readI64();
|
|
|
3474 |
setGatewayIdIsSet(true);
|
|
|
3475 |
} else {
|
|
|
3476 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3477 |
}
|
|
|
3478 |
break;
|
|
|
3479 |
default:
|
|
|
3480 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
3481 |
}
|
| 3430 |
rajveer |
3482 |
iprot.readFieldEnd();
|
| 123 |
ashish |
3483 |
}
|
|
|
3484 |
iprot.readStructEnd();
|
|
|
3485 |
validate();
|
|
|
3486 |
}
|
|
|
3487 |
|
| 3430 |
rajveer |
3488 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
3489 |
validate();
|
|
|
3490 |
|
|
|
3491 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3492 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
|
|
3493 |
oprot.writeI64(this.userId);
|
|
|
3494 |
oprot.writeFieldEnd();
|
|
|
3495 |
oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
|
| 695 |
rajveer |
3496 |
oprot.writeI64(this.fromTime);
|
| 123 |
ashish |
3497 |
oprot.writeFieldEnd();
|
|
|
3498 |
oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
|
| 695 |
rajveer |
3499 |
oprot.writeI64(this.toTime);
|
| 123 |
ashish |
3500 |
oprot.writeFieldEnd();
|
|
|
3501 |
if (this.status != null) {
|
|
|
3502 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
3503 |
oprot.writeI32(this.status.getValue());
|
|
|
3504 |
oprot.writeFieldEnd();
|
|
|
3505 |
}
|
| 420 |
ashish |
3506 |
oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
|
| 695 |
rajveer |
3507 |
oprot.writeI64(this.gatewayId);
|
| 420 |
ashish |
3508 |
oprot.writeFieldEnd();
|
| 123 |
ashish |
3509 |
oprot.writeFieldStop();
|
|
|
3510 |
oprot.writeStructEnd();
|
|
|
3511 |
}
|
|
|
3512 |
|
|
|
3513 |
@Override
|
|
|
3514 |
public String toString() {
|
|
|
3515 |
StringBuilder sb = new StringBuilder("getPaymentsForUser_args(");
|
|
|
3516 |
boolean first = true;
|
|
|
3517 |
|
|
|
3518 |
sb.append("userId:");
|
|
|
3519 |
sb.append(this.userId);
|
|
|
3520 |
first = false;
|
|
|
3521 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
3522 |
sb.append("fromTime:");
|
|
|
3523 |
sb.append(this.fromTime);
|
| 123 |
ashish |
3524 |
first = false;
|
|
|
3525 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
3526 |
sb.append("toTime:");
|
|
|
3527 |
sb.append(this.toTime);
|
| 123 |
ashish |
3528 |
first = false;
|
|
|
3529 |
if (!first) sb.append(", ");
|
|
|
3530 |
sb.append("status:");
|
|
|
3531 |
if (this.status == null) {
|
|
|
3532 |
sb.append("null");
|
|
|
3533 |
} else {
|
|
|
3534 |
sb.append(this.status);
|
|
|
3535 |
}
|
|
|
3536 |
first = false;
|
|
|
3537 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
3538 |
sb.append("gatewayId:");
|
|
|
3539 |
sb.append(this.gatewayId);
|
| 123 |
ashish |
3540 |
first = false;
|
|
|
3541 |
sb.append(")");
|
|
|
3542 |
return sb.toString();
|
|
|
3543 |
}
|
|
|
3544 |
|
| 3430 |
rajveer |
3545 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
3546 |
// check for required fields
|
|
|
3547 |
}
|
|
|
3548 |
|
| 3430 |
rajveer |
3549 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3550 |
try {
|
|
|
3551 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3552 |
} catch (org.apache.thrift.TException te) {
|
|
|
3553 |
throw new java.io.IOException(te);
|
|
|
3554 |
}
|
|
|
3555 |
}
|
|
|
3556 |
|
|
|
3557 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3558 |
try {
|
|
|
3559 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3560 |
} catch (org.apache.thrift.TException te) {
|
|
|
3561 |
throw new java.io.IOException(te);
|
|
|
3562 |
}
|
|
|
3563 |
}
|
|
|
3564 |
|
| 123 |
ashish |
3565 |
}
|
|
|
3566 |
|
| 3430 |
rajveer |
3567 |
public static class getPaymentsForUser_result implements org.apache.thrift.TBase<getPaymentsForUser_result, getPaymentsForUser_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3568 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_result");
|
| 123 |
ashish |
3569 |
|
| 3430 |
rajveer |
3570 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
|
|
3571 |
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);
|
| 123 |
ashish |
3572 |
|
| 3430 |
rajveer |
3573 |
private List<Payment> success; // required
|
|
|
3574 |
private PaymentException pe; // required
|
| 123 |
ashish |
3575 |
|
|
|
3576 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3577 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 123 |
ashish |
3578 |
SUCCESS((short)0, "success"),
|
|
|
3579 |
PE((short)1, "pe");
|
|
|
3580 |
|
|
|
3581 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3582 |
|
|
|
3583 |
static {
|
|
|
3584 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3585 |
byName.put(field.getFieldName(), field);
|
|
|
3586 |
}
|
|
|
3587 |
}
|
|
|
3588 |
|
|
|
3589 |
/**
|
|
|
3590 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3591 |
*/
|
|
|
3592 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3593 |
switch(fieldId) {
|
|
|
3594 |
case 0: // SUCCESS
|
|
|
3595 |
return SUCCESS;
|
|
|
3596 |
case 1: // PE
|
|
|
3597 |
return PE;
|
|
|
3598 |
default:
|
|
|
3599 |
return null;
|
|
|
3600 |
}
|
| 123 |
ashish |
3601 |
}
|
|
|
3602 |
|
|
|
3603 |
/**
|
|
|
3604 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3605 |
* if it is not found.
|
|
|
3606 |
*/
|
|
|
3607 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3608 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3609 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3610 |
return fields;
|
|
|
3611 |
}
|
|
|
3612 |
|
|
|
3613 |
/**
|
|
|
3614 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3615 |
*/
|
|
|
3616 |
public static _Fields findByName(String name) {
|
|
|
3617 |
return byName.get(name);
|
|
|
3618 |
}
|
|
|
3619 |
|
|
|
3620 |
private final short _thriftId;
|
|
|
3621 |
private final String _fieldName;
|
|
|
3622 |
|
|
|
3623 |
_Fields(short thriftId, String fieldName) {
|
|
|
3624 |
_thriftId = thriftId;
|
|
|
3625 |
_fieldName = fieldName;
|
|
|
3626 |
}
|
|
|
3627 |
|
|
|
3628 |
public short getThriftFieldId() {
|
|
|
3629 |
return _thriftId;
|
|
|
3630 |
}
|
|
|
3631 |
|
|
|
3632 |
public String getFieldName() {
|
|
|
3633 |
return _fieldName;
|
|
|
3634 |
}
|
|
|
3635 |
}
|
|
|
3636 |
|
|
|
3637 |
// isset id assignments
|
|
|
3638 |
|
| 3430 |
rajveer |
3639 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
3640 |
static {
|
| 3430 |
rajveer |
3641 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3642 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3643 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
3644 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
|
|
|
3645 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3646 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
3647 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3648 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_result.class, metaDataMap);
|
| 123 |
ashish |
3649 |
}
|
|
|
3650 |
|
|
|
3651 |
public getPaymentsForUser_result() {
|
|
|
3652 |
}
|
|
|
3653 |
|
|
|
3654 |
public getPaymentsForUser_result(
|
|
|
3655 |
List<Payment> success,
|
|
|
3656 |
PaymentException pe)
|
|
|
3657 |
{
|
|
|
3658 |
this();
|
|
|
3659 |
this.success = success;
|
|
|
3660 |
this.pe = pe;
|
|
|
3661 |
}
|
|
|
3662 |
|
|
|
3663 |
/**
|
|
|
3664 |
* Performs a deep copy on <i>other</i>.
|
|
|
3665 |
*/
|
|
|
3666 |
public getPaymentsForUser_result(getPaymentsForUser_result other) {
|
|
|
3667 |
if (other.isSetSuccess()) {
|
|
|
3668 |
List<Payment> __this__success = new ArrayList<Payment>();
|
|
|
3669 |
for (Payment other_element : other.success) {
|
|
|
3670 |
__this__success.add(new Payment(other_element));
|
|
|
3671 |
}
|
|
|
3672 |
this.success = __this__success;
|
|
|
3673 |
}
|
|
|
3674 |
if (other.isSetPe()) {
|
|
|
3675 |
this.pe = new PaymentException(other.pe);
|
|
|
3676 |
}
|
|
|
3677 |
}
|
|
|
3678 |
|
|
|
3679 |
public getPaymentsForUser_result deepCopy() {
|
|
|
3680 |
return new getPaymentsForUser_result(this);
|
|
|
3681 |
}
|
|
|
3682 |
|
| 3430 |
rajveer |
3683 |
@Override
|
|
|
3684 |
public void clear() {
|
|
|
3685 |
this.success = null;
|
|
|
3686 |
this.pe = null;
|
| 123 |
ashish |
3687 |
}
|
|
|
3688 |
|
|
|
3689 |
public int getSuccessSize() {
|
|
|
3690 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
3691 |
}
|
|
|
3692 |
|
|
|
3693 |
public java.util.Iterator<Payment> getSuccessIterator() {
|
|
|
3694 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
3695 |
}
|
|
|
3696 |
|
|
|
3697 |
public void addToSuccess(Payment elem) {
|
|
|
3698 |
if (this.success == null) {
|
|
|
3699 |
this.success = new ArrayList<Payment>();
|
|
|
3700 |
}
|
|
|
3701 |
this.success.add(elem);
|
|
|
3702 |
}
|
|
|
3703 |
|
|
|
3704 |
public List<Payment> getSuccess() {
|
|
|
3705 |
return this.success;
|
|
|
3706 |
}
|
|
|
3707 |
|
| 3430 |
rajveer |
3708 |
public void setSuccess(List<Payment> success) {
|
| 123 |
ashish |
3709 |
this.success = success;
|
|
|
3710 |
}
|
|
|
3711 |
|
|
|
3712 |
public void unsetSuccess() {
|
|
|
3713 |
this.success = null;
|
|
|
3714 |
}
|
|
|
3715 |
|
| 3430 |
rajveer |
3716 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
3717 |
public boolean isSetSuccess() {
|
|
|
3718 |
return this.success != null;
|
|
|
3719 |
}
|
|
|
3720 |
|
|
|
3721 |
public void setSuccessIsSet(boolean value) {
|
|
|
3722 |
if (!value) {
|
|
|
3723 |
this.success = null;
|
|
|
3724 |
}
|
|
|
3725 |
}
|
|
|
3726 |
|
|
|
3727 |
public PaymentException getPe() {
|
|
|
3728 |
return this.pe;
|
|
|
3729 |
}
|
|
|
3730 |
|
| 3430 |
rajveer |
3731 |
public void setPe(PaymentException pe) {
|
| 123 |
ashish |
3732 |
this.pe = pe;
|
|
|
3733 |
}
|
|
|
3734 |
|
|
|
3735 |
public void unsetPe() {
|
|
|
3736 |
this.pe = null;
|
|
|
3737 |
}
|
|
|
3738 |
|
| 3430 |
rajveer |
3739 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
3740 |
public boolean isSetPe() {
|
|
|
3741 |
return this.pe != null;
|
|
|
3742 |
}
|
|
|
3743 |
|
|
|
3744 |
public void setPeIsSet(boolean value) {
|
|
|
3745 |
if (!value) {
|
|
|
3746 |
this.pe = null;
|
|
|
3747 |
}
|
|
|
3748 |
}
|
|
|
3749 |
|
|
|
3750 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3751 |
switch (field) {
|
|
|
3752 |
case SUCCESS:
|
|
|
3753 |
if (value == null) {
|
|
|
3754 |
unsetSuccess();
|
|
|
3755 |
} else {
|
|
|
3756 |
setSuccess((List<Payment>)value);
|
|
|
3757 |
}
|
|
|
3758 |
break;
|
|
|
3759 |
|
|
|
3760 |
case PE:
|
|
|
3761 |
if (value == null) {
|
|
|
3762 |
unsetPe();
|
|
|
3763 |
} else {
|
|
|
3764 |
setPe((PaymentException)value);
|
|
|
3765 |
}
|
|
|
3766 |
break;
|
|
|
3767 |
|
|
|
3768 |
}
|
|
|
3769 |
}
|
|
|
3770 |
|
|
|
3771 |
public Object getFieldValue(_Fields field) {
|
|
|
3772 |
switch (field) {
|
|
|
3773 |
case SUCCESS:
|
|
|
3774 |
return getSuccess();
|
|
|
3775 |
|
|
|
3776 |
case PE:
|
|
|
3777 |
return getPe();
|
|
|
3778 |
|
|
|
3779 |
}
|
|
|
3780 |
throw new IllegalStateException();
|
|
|
3781 |
}
|
|
|
3782 |
|
| 3430 |
rajveer |
3783 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3784 |
public boolean isSet(_Fields field) {
|
|
|
3785 |
if (field == null) {
|
|
|
3786 |
throw new IllegalArgumentException();
|
|
|
3787 |
}
|
| 123 |
ashish |
3788 |
|
|
|
3789 |
switch (field) {
|
|
|
3790 |
case SUCCESS:
|
|
|
3791 |
return isSetSuccess();
|
|
|
3792 |
case PE:
|
|
|
3793 |
return isSetPe();
|
|
|
3794 |
}
|
|
|
3795 |
throw new IllegalStateException();
|
|
|
3796 |
}
|
|
|
3797 |
|
|
|
3798 |
@Override
|
|
|
3799 |
public boolean equals(Object that) {
|
|
|
3800 |
if (that == null)
|
|
|
3801 |
return false;
|
|
|
3802 |
if (that instanceof getPaymentsForUser_result)
|
|
|
3803 |
return this.equals((getPaymentsForUser_result)that);
|
|
|
3804 |
return false;
|
|
|
3805 |
}
|
|
|
3806 |
|
|
|
3807 |
public boolean equals(getPaymentsForUser_result that) {
|
|
|
3808 |
if (that == null)
|
|
|
3809 |
return false;
|
|
|
3810 |
|
|
|
3811 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
3812 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
3813 |
if (this_present_success || that_present_success) {
|
|
|
3814 |
if (!(this_present_success && that_present_success))
|
|
|
3815 |
return false;
|
|
|
3816 |
if (!this.success.equals(that.success))
|
|
|
3817 |
return false;
|
|
|
3818 |
}
|
|
|
3819 |
|
|
|
3820 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
3821 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
3822 |
if (this_present_pe || that_present_pe) {
|
|
|
3823 |
if (!(this_present_pe && that_present_pe))
|
|
|
3824 |
return false;
|
|
|
3825 |
if (!this.pe.equals(that.pe))
|
|
|
3826 |
return false;
|
|
|
3827 |
}
|
|
|
3828 |
|
|
|
3829 |
return true;
|
|
|
3830 |
}
|
|
|
3831 |
|
|
|
3832 |
@Override
|
|
|
3833 |
public int hashCode() {
|
|
|
3834 |
return 0;
|
|
|
3835 |
}
|
|
|
3836 |
|
| 695 |
rajveer |
3837 |
public int compareTo(getPaymentsForUser_result other) {
|
| 123 |
ashish |
3838 |
if (!getClass().equals(other.getClass())) {
|
|
|
3839 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3840 |
}
|
|
|
3841 |
|
|
|
3842 |
int lastComparison = 0;
|
| 695 |
rajveer |
3843 |
getPaymentsForUser_result typedOther = (getPaymentsForUser_result)other;
|
| 123 |
ashish |
3844 |
|
| 3430 |
rajveer |
3845 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 123 |
ashish |
3846 |
if (lastComparison != 0) {
|
|
|
3847 |
return lastComparison;
|
|
|
3848 |
}
|
| 3430 |
rajveer |
3849 |
if (isSetSuccess()) {
|
|
|
3850 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
3851 |
if (lastComparison != 0) {
|
|
|
3852 |
return lastComparison;
|
|
|
3853 |
}
|
| 123 |
ashish |
3854 |
}
|
| 3430 |
rajveer |
3855 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 123 |
ashish |
3856 |
if (lastComparison != 0) {
|
|
|
3857 |
return lastComparison;
|
|
|
3858 |
}
|
| 3430 |
rajveer |
3859 |
if (isSetPe()) {
|
|
|
3860 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
3861 |
if (lastComparison != 0) {
|
|
|
3862 |
return lastComparison;
|
|
|
3863 |
}
|
| 123 |
ashish |
3864 |
}
|
|
|
3865 |
return 0;
|
|
|
3866 |
}
|
|
|
3867 |
|
| 3430 |
rajveer |
3868 |
public _Fields fieldForId(int fieldId) {
|
|
|
3869 |
return _Fields.findByThriftId(fieldId);
|
|
|
3870 |
}
|
|
|
3871 |
|
|
|
3872 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3873 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
3874 |
iprot.readStructBegin();
|
|
|
3875 |
while (true)
|
|
|
3876 |
{
|
|
|
3877 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3878 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
3879 |
break;
|
|
|
3880 |
}
|
| 3430 |
rajveer |
3881 |
switch (field.id) {
|
|
|
3882 |
case 0: // SUCCESS
|
|
|
3883 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
3884 |
{
|
|
|
3885 |
org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
|
|
|
3886 |
this.success = new ArrayList<Payment>(_list12.size);
|
|
|
3887 |
for (int _i13 = 0; _i13 < _list12.size; ++_i13)
|
| 123 |
ashish |
3888 |
{
|
| 3430 |
rajveer |
3889 |
Payment _elem14; // required
|
|
|
3890 |
_elem14 = new Payment();
|
|
|
3891 |
_elem14.read(iprot);
|
|
|
3892 |
this.success.add(_elem14);
|
| 123 |
ashish |
3893 |
}
|
| 3430 |
rajveer |
3894 |
iprot.readListEnd();
|
| 123 |
ashish |
3895 |
}
|
| 3430 |
rajveer |
3896 |
} else {
|
|
|
3897 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3898 |
}
|
|
|
3899 |
break;
|
|
|
3900 |
case 1: // PE
|
|
|
3901 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3902 |
this.pe = new PaymentException();
|
|
|
3903 |
this.pe.read(iprot);
|
|
|
3904 |
} else {
|
|
|
3905 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3906 |
}
|
|
|
3907 |
break;
|
|
|
3908 |
default:
|
|
|
3909 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
3910 |
}
|
| 3430 |
rajveer |
3911 |
iprot.readFieldEnd();
|
| 123 |
ashish |
3912 |
}
|
|
|
3913 |
iprot.readStructEnd();
|
|
|
3914 |
validate();
|
|
|
3915 |
}
|
|
|
3916 |
|
| 3430 |
rajveer |
3917 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
3918 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3919 |
|
|
|
3920 |
if (this.isSetSuccess()) {
|
|
|
3921 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
3922 |
{
|
| 3430 |
rajveer |
3923 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 2747 |
chandransh |
3924 |
for (Payment _iter15 : this.success)
|
| 123 |
ashish |
3925 |
{
|
| 2747 |
chandransh |
3926 |
_iter15.write(oprot);
|
| 123 |
ashish |
3927 |
}
|
|
|
3928 |
oprot.writeListEnd();
|
|
|
3929 |
}
|
|
|
3930 |
oprot.writeFieldEnd();
|
|
|
3931 |
} else if (this.isSetPe()) {
|
|
|
3932 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
3933 |
this.pe.write(oprot);
|
|
|
3934 |
oprot.writeFieldEnd();
|
|
|
3935 |
}
|
|
|
3936 |
oprot.writeFieldStop();
|
|
|
3937 |
oprot.writeStructEnd();
|
|
|
3938 |
}
|
|
|
3939 |
|
|
|
3940 |
@Override
|
|
|
3941 |
public String toString() {
|
| 695 |
rajveer |
3942 |
StringBuilder sb = new StringBuilder("getPaymentsForUser_result(");
|
| 123 |
ashish |
3943 |
boolean first = true;
|
|
|
3944 |
|
|
|
3945 |
sb.append("success:");
|
|
|
3946 |
if (this.success == null) {
|
|
|
3947 |
sb.append("null");
|
|
|
3948 |
} else {
|
|
|
3949 |
sb.append(this.success);
|
|
|
3950 |
}
|
|
|
3951 |
first = false;
|
|
|
3952 |
if (!first) sb.append(", ");
|
|
|
3953 |
sb.append("pe:");
|
|
|
3954 |
if (this.pe == null) {
|
|
|
3955 |
sb.append("null");
|
|
|
3956 |
} else {
|
|
|
3957 |
sb.append(this.pe);
|
|
|
3958 |
}
|
|
|
3959 |
first = false;
|
|
|
3960 |
sb.append(")");
|
|
|
3961 |
return sb.toString();
|
|
|
3962 |
}
|
|
|
3963 |
|
| 3430 |
rajveer |
3964 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
3965 |
// check for required fields
|
|
|
3966 |
}
|
|
|
3967 |
|
| 3430 |
rajveer |
3968 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3969 |
try {
|
|
|
3970 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3971 |
} catch (org.apache.thrift.TException te) {
|
|
|
3972 |
throw new java.io.IOException(te);
|
|
|
3973 |
}
|
|
|
3974 |
}
|
|
|
3975 |
|
|
|
3976 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3977 |
try {
|
|
|
3978 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3979 |
} catch (org.apache.thrift.TException te) {
|
|
|
3980 |
throw new java.io.IOException(te);
|
|
|
3981 |
}
|
|
|
3982 |
}
|
|
|
3983 |
|
| 123 |
ashish |
3984 |
}
|
|
|
3985 |
|
| 3430 |
rajveer |
3986 |
public static class getPayments_args implements org.apache.thrift.TBase<getPayments_args, getPayments_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3987 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_args");
|
| 123 |
ashish |
3988 |
|
| 3430 |
rajveer |
3989 |
private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
3990 |
private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
3991 |
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)3);
|
|
|
3992 |
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)4);
|
| 123 |
ashish |
3993 |
|
| 3430 |
rajveer |
3994 |
private long fromTime; // required
|
|
|
3995 |
private long toTime; // required
|
|
|
3996 |
private PaymentStatus status; // required
|
|
|
3997 |
private long gatewayId; // required
|
| 123 |
ashish |
3998 |
|
|
|
3999 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4000 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 695 |
rajveer |
4001 |
FROM_TIME((short)1, "fromTime"),
|
|
|
4002 |
TO_TIME((short)2, "toTime"),
|
| 123 |
ashish |
4003 |
/**
|
|
|
4004 |
*
|
|
|
4005 |
* @see PaymentStatus
|
|
|
4006 |
*/
|
|
|
4007 |
STATUS((short)3, "status"),
|
| 695 |
rajveer |
4008 |
GATEWAY_ID((short)4, "gatewayId");
|
| 123 |
ashish |
4009 |
|
|
|
4010 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4011 |
|
|
|
4012 |
static {
|
|
|
4013 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4014 |
byName.put(field.getFieldName(), field);
|
|
|
4015 |
}
|
|
|
4016 |
}
|
|
|
4017 |
|
|
|
4018 |
/**
|
|
|
4019 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4020 |
*/
|
|
|
4021 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4022 |
switch(fieldId) {
|
|
|
4023 |
case 1: // FROM_TIME
|
|
|
4024 |
return FROM_TIME;
|
|
|
4025 |
case 2: // TO_TIME
|
|
|
4026 |
return TO_TIME;
|
|
|
4027 |
case 3: // STATUS
|
|
|
4028 |
return STATUS;
|
|
|
4029 |
case 4: // GATEWAY_ID
|
|
|
4030 |
return GATEWAY_ID;
|
|
|
4031 |
default:
|
|
|
4032 |
return null;
|
|
|
4033 |
}
|
| 123 |
ashish |
4034 |
}
|
|
|
4035 |
|
|
|
4036 |
/**
|
|
|
4037 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4038 |
* if it is not found.
|
|
|
4039 |
*/
|
|
|
4040 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4041 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4042 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4043 |
return fields;
|
|
|
4044 |
}
|
|
|
4045 |
|
|
|
4046 |
/**
|
|
|
4047 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4048 |
*/
|
|
|
4049 |
public static _Fields findByName(String name) {
|
|
|
4050 |
return byName.get(name);
|
|
|
4051 |
}
|
|
|
4052 |
|
|
|
4053 |
private final short _thriftId;
|
|
|
4054 |
private final String _fieldName;
|
|
|
4055 |
|
|
|
4056 |
_Fields(short thriftId, String fieldName) {
|
|
|
4057 |
_thriftId = thriftId;
|
|
|
4058 |
_fieldName = fieldName;
|
|
|
4059 |
}
|
|
|
4060 |
|
|
|
4061 |
public short getThriftFieldId() {
|
|
|
4062 |
return _thriftId;
|
|
|
4063 |
}
|
|
|
4064 |
|
|
|
4065 |
public String getFieldName() {
|
|
|
4066 |
return _fieldName;
|
|
|
4067 |
}
|
|
|
4068 |
}
|
|
|
4069 |
|
|
|
4070 |
// isset id assignments
|
| 695 |
rajveer |
4071 |
private static final int __FROMTIME_ISSET_ID = 0;
|
|
|
4072 |
private static final int __TOTIME_ISSET_ID = 1;
|
|
|
4073 |
private static final int __GATEWAYID_ISSET_ID = 2;
|
| 420 |
ashish |
4074 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 123 |
ashish |
4075 |
|
| 3430 |
rajveer |
4076 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
4077 |
static {
|
| 3430 |
rajveer |
4078 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4079 |
tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4080 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
4081 |
tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4082 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
4083 |
tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4084 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
|
|
|
4085 |
tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4086 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
4087 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4088 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_args.class, metaDataMap);
|
| 123 |
ashish |
4089 |
}
|
|
|
4090 |
|
|
|
4091 |
public getPayments_args() {
|
|
|
4092 |
}
|
|
|
4093 |
|
|
|
4094 |
public getPayments_args(
|
| 695 |
rajveer |
4095 |
long fromTime,
|
|
|
4096 |
long toTime,
|
| 123 |
ashish |
4097 |
PaymentStatus status,
|
| 695 |
rajveer |
4098 |
long gatewayId)
|
| 123 |
ashish |
4099 |
{
|
|
|
4100 |
this();
|
| 695 |
rajveer |
4101 |
this.fromTime = fromTime;
|
|
|
4102 |
setFromTimeIsSet(true);
|
|
|
4103 |
this.toTime = toTime;
|
|
|
4104 |
setToTimeIsSet(true);
|
| 123 |
ashish |
4105 |
this.status = status;
|
| 695 |
rajveer |
4106 |
this.gatewayId = gatewayId;
|
|
|
4107 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
4108 |
}
|
|
|
4109 |
|
|
|
4110 |
/**
|
|
|
4111 |
* Performs a deep copy on <i>other</i>.
|
|
|
4112 |
*/
|
|
|
4113 |
public getPayments_args(getPayments_args other) {
|
|
|
4114 |
__isset_bit_vector.clear();
|
|
|
4115 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 695 |
rajveer |
4116 |
this.fromTime = other.fromTime;
|
|
|
4117 |
this.toTime = other.toTime;
|
| 123 |
ashish |
4118 |
if (other.isSetStatus()) {
|
|
|
4119 |
this.status = other.status;
|
|
|
4120 |
}
|
| 695 |
rajveer |
4121 |
this.gatewayId = other.gatewayId;
|
| 123 |
ashish |
4122 |
}
|
|
|
4123 |
|
|
|
4124 |
public getPayments_args deepCopy() {
|
|
|
4125 |
return new getPayments_args(this);
|
|
|
4126 |
}
|
|
|
4127 |
|
| 3430 |
rajveer |
4128 |
@Override
|
|
|
4129 |
public void clear() {
|
|
|
4130 |
setFromTimeIsSet(false);
|
|
|
4131 |
this.fromTime = 0;
|
|
|
4132 |
setToTimeIsSet(false);
|
|
|
4133 |
this.toTime = 0;
|
|
|
4134 |
this.status = null;
|
|
|
4135 |
setGatewayIdIsSet(false);
|
|
|
4136 |
this.gatewayId = 0;
|
| 123 |
ashish |
4137 |
}
|
|
|
4138 |
|
| 695 |
rajveer |
4139 |
public long getFromTime() {
|
|
|
4140 |
return this.fromTime;
|
| 123 |
ashish |
4141 |
}
|
|
|
4142 |
|
| 3430 |
rajveer |
4143 |
public void setFromTime(long fromTime) {
|
| 695 |
rajveer |
4144 |
this.fromTime = fromTime;
|
|
|
4145 |
setFromTimeIsSet(true);
|
| 123 |
ashish |
4146 |
}
|
|
|
4147 |
|
| 695 |
rajveer |
4148 |
public void unsetFromTime() {
|
|
|
4149 |
__isset_bit_vector.clear(__FROMTIME_ISSET_ID);
|
| 123 |
ashish |
4150 |
}
|
|
|
4151 |
|
| 3430 |
rajveer |
4152 |
/** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
4153 |
public boolean isSetFromTime() {
|
|
|
4154 |
return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
|
| 123 |
ashish |
4155 |
}
|
|
|
4156 |
|
| 695 |
rajveer |
4157 |
public void setFromTimeIsSet(boolean value) {
|
|
|
4158 |
__isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
|
| 123 |
ashish |
4159 |
}
|
|
|
4160 |
|
| 695 |
rajveer |
4161 |
public long getToTime() {
|
|
|
4162 |
return this.toTime;
|
| 123 |
ashish |
4163 |
}
|
|
|
4164 |
|
| 3430 |
rajveer |
4165 |
public void setToTime(long toTime) {
|
| 695 |
rajveer |
4166 |
this.toTime = toTime;
|
|
|
4167 |
setToTimeIsSet(true);
|
| 123 |
ashish |
4168 |
}
|
|
|
4169 |
|
| 695 |
rajveer |
4170 |
public void unsetToTime() {
|
|
|
4171 |
__isset_bit_vector.clear(__TOTIME_ISSET_ID);
|
| 123 |
ashish |
4172 |
}
|
|
|
4173 |
|
| 3430 |
rajveer |
4174 |
/** Returns true if field toTime is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
4175 |
public boolean isSetToTime() {
|
|
|
4176 |
return __isset_bit_vector.get(__TOTIME_ISSET_ID);
|
| 123 |
ashish |
4177 |
}
|
|
|
4178 |
|
| 695 |
rajveer |
4179 |
public void setToTimeIsSet(boolean value) {
|
|
|
4180 |
__isset_bit_vector.set(__TOTIME_ISSET_ID, value);
|
| 123 |
ashish |
4181 |
}
|
|
|
4182 |
|
|
|
4183 |
/**
|
|
|
4184 |
*
|
|
|
4185 |
* @see PaymentStatus
|
|
|
4186 |
*/
|
|
|
4187 |
public PaymentStatus getStatus() {
|
|
|
4188 |
return this.status;
|
|
|
4189 |
}
|
|
|
4190 |
|
|
|
4191 |
/**
|
|
|
4192 |
*
|
|
|
4193 |
* @see PaymentStatus
|
|
|
4194 |
*/
|
| 3430 |
rajveer |
4195 |
public void setStatus(PaymentStatus status) {
|
| 123 |
ashish |
4196 |
this.status = status;
|
|
|
4197 |
}
|
|
|
4198 |
|
|
|
4199 |
public void unsetStatus() {
|
|
|
4200 |
this.status = null;
|
|
|
4201 |
}
|
|
|
4202 |
|
| 3430 |
rajveer |
4203 |
/** Returns true if field status is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
4204 |
public boolean isSetStatus() {
|
|
|
4205 |
return this.status != null;
|
|
|
4206 |
}
|
|
|
4207 |
|
|
|
4208 |
public void setStatusIsSet(boolean value) {
|
|
|
4209 |
if (!value) {
|
|
|
4210 |
this.status = null;
|
|
|
4211 |
}
|
|
|
4212 |
}
|
|
|
4213 |
|
| 695 |
rajveer |
4214 |
public long getGatewayId() {
|
|
|
4215 |
return this.gatewayId;
|
| 123 |
ashish |
4216 |
}
|
|
|
4217 |
|
| 3430 |
rajveer |
4218 |
public void setGatewayId(long gatewayId) {
|
| 695 |
rajveer |
4219 |
this.gatewayId = gatewayId;
|
|
|
4220 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
4221 |
}
|
|
|
4222 |
|
| 695 |
rajveer |
4223 |
public void unsetGatewayId() {
|
|
|
4224 |
__isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
4225 |
}
|
|
|
4226 |
|
| 3430 |
rajveer |
4227 |
/** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
4228 |
public boolean isSetGatewayId() {
|
|
|
4229 |
return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
4230 |
}
|
|
|
4231 |
|
| 695 |
rajveer |
4232 |
public void setGatewayIdIsSet(boolean value) {
|
|
|
4233 |
__isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
|
| 123 |
ashish |
4234 |
}
|
|
|
4235 |
|
|
|
4236 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4237 |
switch (field) {
|
|
|
4238 |
case FROM_TIME:
|
|
|
4239 |
if (value == null) {
|
| 695 |
rajveer |
4240 |
unsetFromTime();
|
| 123 |
ashish |
4241 |
} else {
|
| 695 |
rajveer |
4242 |
setFromTime((Long)value);
|
| 123 |
ashish |
4243 |
}
|
|
|
4244 |
break;
|
|
|
4245 |
|
|
|
4246 |
case TO_TIME:
|
|
|
4247 |
if (value == null) {
|
| 695 |
rajveer |
4248 |
unsetToTime();
|
| 123 |
ashish |
4249 |
} else {
|
| 695 |
rajveer |
4250 |
setToTime((Long)value);
|
| 123 |
ashish |
4251 |
}
|
|
|
4252 |
break;
|
|
|
4253 |
|
|
|
4254 |
case STATUS:
|
|
|
4255 |
if (value == null) {
|
|
|
4256 |
unsetStatus();
|
|
|
4257 |
} else {
|
|
|
4258 |
setStatus((PaymentStatus)value);
|
|
|
4259 |
}
|
|
|
4260 |
break;
|
|
|
4261 |
|
| 420 |
ashish |
4262 |
case GATEWAY_ID:
|
| 123 |
ashish |
4263 |
if (value == null) {
|
| 695 |
rajveer |
4264 |
unsetGatewayId();
|
| 123 |
ashish |
4265 |
} else {
|
| 695 |
rajveer |
4266 |
setGatewayId((Long)value);
|
| 123 |
ashish |
4267 |
}
|
|
|
4268 |
break;
|
|
|
4269 |
|
|
|
4270 |
}
|
|
|
4271 |
}
|
|
|
4272 |
|
|
|
4273 |
public Object getFieldValue(_Fields field) {
|
|
|
4274 |
switch (field) {
|
|
|
4275 |
case FROM_TIME:
|
| 3430 |
rajveer |
4276 |
return Long.valueOf(getFromTime());
|
| 123 |
ashish |
4277 |
|
|
|
4278 |
case TO_TIME:
|
| 3430 |
rajveer |
4279 |
return Long.valueOf(getToTime());
|
| 123 |
ashish |
4280 |
|
|
|
4281 |
case STATUS:
|
|
|
4282 |
return getStatus();
|
|
|
4283 |
|
| 420 |
ashish |
4284 |
case GATEWAY_ID:
|
| 3430 |
rajveer |
4285 |
return Long.valueOf(getGatewayId());
|
| 123 |
ashish |
4286 |
|
|
|
4287 |
}
|
|
|
4288 |
throw new IllegalStateException();
|
|
|
4289 |
}
|
|
|
4290 |
|
| 3430 |
rajveer |
4291 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4292 |
public boolean isSet(_Fields field) {
|
|
|
4293 |
if (field == null) {
|
|
|
4294 |
throw new IllegalArgumentException();
|
|
|
4295 |
}
|
| 123 |
ashish |
4296 |
|
|
|
4297 |
switch (field) {
|
|
|
4298 |
case FROM_TIME:
|
| 695 |
rajveer |
4299 |
return isSetFromTime();
|
| 123 |
ashish |
4300 |
case TO_TIME:
|
| 695 |
rajveer |
4301 |
return isSetToTime();
|
| 123 |
ashish |
4302 |
case STATUS:
|
|
|
4303 |
return isSetStatus();
|
| 420 |
ashish |
4304 |
case GATEWAY_ID:
|
| 695 |
rajveer |
4305 |
return isSetGatewayId();
|
| 123 |
ashish |
4306 |
}
|
|
|
4307 |
throw new IllegalStateException();
|
|
|
4308 |
}
|
|
|
4309 |
|
|
|
4310 |
@Override
|
|
|
4311 |
public boolean equals(Object that) {
|
|
|
4312 |
if (that == null)
|
|
|
4313 |
return false;
|
|
|
4314 |
if (that instanceof getPayments_args)
|
|
|
4315 |
return this.equals((getPayments_args)that);
|
|
|
4316 |
return false;
|
|
|
4317 |
}
|
|
|
4318 |
|
|
|
4319 |
public boolean equals(getPayments_args that) {
|
|
|
4320 |
if (that == null)
|
|
|
4321 |
return false;
|
|
|
4322 |
|
| 695 |
rajveer |
4323 |
boolean this_present_fromTime = true;
|
|
|
4324 |
boolean that_present_fromTime = true;
|
|
|
4325 |
if (this_present_fromTime || that_present_fromTime) {
|
|
|
4326 |
if (!(this_present_fromTime && that_present_fromTime))
|
| 123 |
ashish |
4327 |
return false;
|
| 695 |
rajveer |
4328 |
if (this.fromTime != that.fromTime)
|
| 123 |
ashish |
4329 |
return false;
|
|
|
4330 |
}
|
|
|
4331 |
|
| 695 |
rajveer |
4332 |
boolean this_present_toTime = true;
|
|
|
4333 |
boolean that_present_toTime = true;
|
|
|
4334 |
if (this_present_toTime || that_present_toTime) {
|
|
|
4335 |
if (!(this_present_toTime && that_present_toTime))
|
| 123 |
ashish |
4336 |
return false;
|
| 695 |
rajveer |
4337 |
if (this.toTime != that.toTime)
|
| 123 |
ashish |
4338 |
return false;
|
|
|
4339 |
}
|
|
|
4340 |
|
|
|
4341 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
4342 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
4343 |
if (this_present_status || that_present_status) {
|
|
|
4344 |
if (!(this_present_status && that_present_status))
|
|
|
4345 |
return false;
|
|
|
4346 |
if (!this.status.equals(that.status))
|
|
|
4347 |
return false;
|
|
|
4348 |
}
|
|
|
4349 |
|
| 695 |
rajveer |
4350 |
boolean this_present_gatewayId = true;
|
|
|
4351 |
boolean that_present_gatewayId = true;
|
|
|
4352 |
if (this_present_gatewayId || that_present_gatewayId) {
|
|
|
4353 |
if (!(this_present_gatewayId && that_present_gatewayId))
|
| 123 |
ashish |
4354 |
return false;
|
| 695 |
rajveer |
4355 |
if (this.gatewayId != that.gatewayId)
|
| 123 |
ashish |
4356 |
return false;
|
|
|
4357 |
}
|
|
|
4358 |
|
|
|
4359 |
return true;
|
|
|
4360 |
}
|
|
|
4361 |
|
|
|
4362 |
@Override
|
|
|
4363 |
public int hashCode() {
|
|
|
4364 |
return 0;
|
|
|
4365 |
}
|
|
|
4366 |
|
|
|
4367 |
public int compareTo(getPayments_args other) {
|
|
|
4368 |
if (!getClass().equals(other.getClass())) {
|
|
|
4369 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4370 |
}
|
|
|
4371 |
|
|
|
4372 |
int lastComparison = 0;
|
|
|
4373 |
getPayments_args typedOther = (getPayments_args)other;
|
|
|
4374 |
|
| 3430 |
rajveer |
4375 |
lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
|
| 123 |
ashish |
4376 |
if (lastComparison != 0) {
|
|
|
4377 |
return lastComparison;
|
|
|
4378 |
}
|
| 3430 |
rajveer |
4379 |
if (isSetFromTime()) {
|
|
|
4380 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
|
|
|
4381 |
if (lastComparison != 0) {
|
|
|
4382 |
return lastComparison;
|
|
|
4383 |
}
|
| 123 |
ashish |
4384 |
}
|
| 3430 |
rajveer |
4385 |
lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
|
| 123 |
ashish |
4386 |
if (lastComparison != 0) {
|
|
|
4387 |
return lastComparison;
|
|
|
4388 |
}
|
| 3430 |
rajveer |
4389 |
if (isSetToTime()) {
|
|
|
4390 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
|
|
|
4391 |
if (lastComparison != 0) {
|
|
|
4392 |
return lastComparison;
|
|
|
4393 |
}
|
| 123 |
ashish |
4394 |
}
|
| 3430 |
rajveer |
4395 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
|
| 123 |
ashish |
4396 |
if (lastComparison != 0) {
|
|
|
4397 |
return lastComparison;
|
|
|
4398 |
}
|
| 3430 |
rajveer |
4399 |
if (isSetStatus()) {
|
|
|
4400 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
|
|
|
4401 |
if (lastComparison != 0) {
|
|
|
4402 |
return lastComparison;
|
|
|
4403 |
}
|
| 123 |
ashish |
4404 |
}
|
| 3430 |
rajveer |
4405 |
lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
|
| 123 |
ashish |
4406 |
if (lastComparison != 0) {
|
|
|
4407 |
return lastComparison;
|
|
|
4408 |
}
|
| 3430 |
rajveer |
4409 |
if (isSetGatewayId()) {
|
|
|
4410 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
|
|
|
4411 |
if (lastComparison != 0) {
|
|
|
4412 |
return lastComparison;
|
|
|
4413 |
}
|
| 123 |
ashish |
4414 |
}
|
|
|
4415 |
return 0;
|
|
|
4416 |
}
|
|
|
4417 |
|
| 3430 |
rajveer |
4418 |
public _Fields fieldForId(int fieldId) {
|
|
|
4419 |
return _Fields.findByThriftId(fieldId);
|
|
|
4420 |
}
|
|
|
4421 |
|
|
|
4422 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4423 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
4424 |
iprot.readStructBegin();
|
|
|
4425 |
while (true)
|
|
|
4426 |
{
|
|
|
4427 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4428 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
4429 |
break;
|
|
|
4430 |
}
|
| 3430 |
rajveer |
4431 |
switch (field.id) {
|
|
|
4432 |
case 1: // FROM_TIME
|
|
|
4433 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4434 |
this.fromTime = iprot.readI64();
|
|
|
4435 |
setFromTimeIsSet(true);
|
|
|
4436 |
} else {
|
|
|
4437 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4438 |
}
|
|
|
4439 |
break;
|
|
|
4440 |
case 2: // TO_TIME
|
|
|
4441 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4442 |
this.toTime = iprot.readI64();
|
|
|
4443 |
setToTimeIsSet(true);
|
|
|
4444 |
} else {
|
|
|
4445 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4446 |
}
|
|
|
4447 |
break;
|
|
|
4448 |
case 3: // STATUS
|
|
|
4449 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
4450 |
this.status = PaymentStatus.findByValue(iprot.readI32());
|
|
|
4451 |
} else {
|
|
|
4452 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4453 |
}
|
|
|
4454 |
break;
|
|
|
4455 |
case 4: // GATEWAY_ID
|
|
|
4456 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4457 |
this.gatewayId = iprot.readI64();
|
|
|
4458 |
setGatewayIdIsSet(true);
|
|
|
4459 |
} else {
|
|
|
4460 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4461 |
}
|
|
|
4462 |
break;
|
|
|
4463 |
default:
|
|
|
4464 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
4465 |
}
|
| 3430 |
rajveer |
4466 |
iprot.readFieldEnd();
|
| 123 |
ashish |
4467 |
}
|
|
|
4468 |
iprot.readStructEnd();
|
|
|
4469 |
validate();
|
|
|
4470 |
}
|
|
|
4471 |
|
| 3430 |
rajveer |
4472 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
4473 |
validate();
|
|
|
4474 |
|
|
|
4475 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4476 |
oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
|
| 695 |
rajveer |
4477 |
oprot.writeI64(this.fromTime);
|
| 123 |
ashish |
4478 |
oprot.writeFieldEnd();
|
|
|
4479 |
oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
|
| 695 |
rajveer |
4480 |
oprot.writeI64(this.toTime);
|
| 123 |
ashish |
4481 |
oprot.writeFieldEnd();
|
|
|
4482 |
if (this.status != null) {
|
|
|
4483 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
4484 |
oprot.writeI32(this.status.getValue());
|
|
|
4485 |
oprot.writeFieldEnd();
|
|
|
4486 |
}
|
| 420 |
ashish |
4487 |
oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
|
| 695 |
rajveer |
4488 |
oprot.writeI64(this.gatewayId);
|
| 420 |
ashish |
4489 |
oprot.writeFieldEnd();
|
| 123 |
ashish |
4490 |
oprot.writeFieldStop();
|
|
|
4491 |
oprot.writeStructEnd();
|
|
|
4492 |
}
|
|
|
4493 |
|
|
|
4494 |
@Override
|
|
|
4495 |
public String toString() {
|
|
|
4496 |
StringBuilder sb = new StringBuilder("getPayments_args(");
|
|
|
4497 |
boolean first = true;
|
|
|
4498 |
|
| 695 |
rajveer |
4499 |
sb.append("fromTime:");
|
|
|
4500 |
sb.append(this.fromTime);
|
| 123 |
ashish |
4501 |
first = false;
|
|
|
4502 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
4503 |
sb.append("toTime:");
|
|
|
4504 |
sb.append(this.toTime);
|
| 123 |
ashish |
4505 |
first = false;
|
|
|
4506 |
if (!first) sb.append(", ");
|
|
|
4507 |
sb.append("status:");
|
|
|
4508 |
if (this.status == null) {
|
|
|
4509 |
sb.append("null");
|
|
|
4510 |
} else {
|
|
|
4511 |
sb.append(this.status);
|
|
|
4512 |
}
|
|
|
4513 |
first = false;
|
|
|
4514 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
4515 |
sb.append("gatewayId:");
|
|
|
4516 |
sb.append(this.gatewayId);
|
| 123 |
ashish |
4517 |
first = false;
|
|
|
4518 |
sb.append(")");
|
|
|
4519 |
return sb.toString();
|
|
|
4520 |
}
|
|
|
4521 |
|
| 3430 |
rajveer |
4522 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
4523 |
// check for required fields
|
|
|
4524 |
}
|
|
|
4525 |
|
| 3430 |
rajveer |
4526 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4527 |
try {
|
|
|
4528 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4529 |
} catch (org.apache.thrift.TException te) {
|
|
|
4530 |
throw new java.io.IOException(te);
|
|
|
4531 |
}
|
|
|
4532 |
}
|
|
|
4533 |
|
|
|
4534 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4535 |
try {
|
|
|
4536 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4537 |
} catch (org.apache.thrift.TException te) {
|
|
|
4538 |
throw new java.io.IOException(te);
|
|
|
4539 |
}
|
|
|
4540 |
}
|
|
|
4541 |
|
| 123 |
ashish |
4542 |
}
|
|
|
4543 |
|
| 3430 |
rajveer |
4544 |
public static class getPayments_result implements org.apache.thrift.TBase<getPayments_result, getPayments_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4545 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_result");
|
| 123 |
ashish |
4546 |
|
| 3430 |
rajveer |
4547 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
|
|
4548 |
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);
|
| 123 |
ashish |
4549 |
|
| 3430 |
rajveer |
4550 |
private List<Payment> success; // required
|
|
|
4551 |
private PaymentException pe; // required
|
| 123 |
ashish |
4552 |
|
|
|
4553 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4554 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 123 |
ashish |
4555 |
SUCCESS((short)0, "success"),
|
|
|
4556 |
PE((short)1, "pe");
|
|
|
4557 |
|
|
|
4558 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4559 |
|
|
|
4560 |
static {
|
|
|
4561 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4562 |
byName.put(field.getFieldName(), field);
|
|
|
4563 |
}
|
|
|
4564 |
}
|
|
|
4565 |
|
|
|
4566 |
/**
|
|
|
4567 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4568 |
*/
|
|
|
4569 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4570 |
switch(fieldId) {
|
|
|
4571 |
case 0: // SUCCESS
|
|
|
4572 |
return SUCCESS;
|
|
|
4573 |
case 1: // PE
|
|
|
4574 |
return PE;
|
|
|
4575 |
default:
|
|
|
4576 |
return null;
|
|
|
4577 |
}
|
| 123 |
ashish |
4578 |
}
|
|
|
4579 |
|
|
|
4580 |
/**
|
|
|
4581 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4582 |
* if it is not found.
|
|
|
4583 |
*/
|
|
|
4584 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4585 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4586 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4587 |
return fields;
|
|
|
4588 |
}
|
|
|
4589 |
|
|
|
4590 |
/**
|
|
|
4591 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4592 |
*/
|
|
|
4593 |
public static _Fields findByName(String name) {
|
|
|
4594 |
return byName.get(name);
|
|
|
4595 |
}
|
|
|
4596 |
|
|
|
4597 |
private final short _thriftId;
|
|
|
4598 |
private final String _fieldName;
|
|
|
4599 |
|
|
|
4600 |
_Fields(short thriftId, String fieldName) {
|
|
|
4601 |
_thriftId = thriftId;
|
|
|
4602 |
_fieldName = fieldName;
|
|
|
4603 |
}
|
|
|
4604 |
|
|
|
4605 |
public short getThriftFieldId() {
|
|
|
4606 |
return _thriftId;
|
|
|
4607 |
}
|
|
|
4608 |
|
|
|
4609 |
public String getFieldName() {
|
|
|
4610 |
return _fieldName;
|
|
|
4611 |
}
|
|
|
4612 |
}
|
|
|
4613 |
|
|
|
4614 |
// isset id assignments
|
|
|
4615 |
|
| 3430 |
rajveer |
4616 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
4617 |
static {
|
| 3430 |
rajveer |
4618 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4619 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4620 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
4621 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
|
|
|
4622 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4623 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
4624 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4625 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_result.class, metaDataMap);
|
| 123 |
ashish |
4626 |
}
|
|
|
4627 |
|
|
|
4628 |
public getPayments_result() {
|
|
|
4629 |
}
|
|
|
4630 |
|
|
|
4631 |
public getPayments_result(
|
|
|
4632 |
List<Payment> success,
|
|
|
4633 |
PaymentException pe)
|
|
|
4634 |
{
|
|
|
4635 |
this();
|
|
|
4636 |
this.success = success;
|
|
|
4637 |
this.pe = pe;
|
|
|
4638 |
}
|
|
|
4639 |
|
|
|
4640 |
/**
|
|
|
4641 |
* Performs a deep copy on <i>other</i>.
|
|
|
4642 |
*/
|
|
|
4643 |
public getPayments_result(getPayments_result other) {
|
|
|
4644 |
if (other.isSetSuccess()) {
|
|
|
4645 |
List<Payment> __this__success = new ArrayList<Payment>();
|
|
|
4646 |
for (Payment other_element : other.success) {
|
|
|
4647 |
__this__success.add(new Payment(other_element));
|
|
|
4648 |
}
|
|
|
4649 |
this.success = __this__success;
|
|
|
4650 |
}
|
|
|
4651 |
if (other.isSetPe()) {
|
|
|
4652 |
this.pe = new PaymentException(other.pe);
|
|
|
4653 |
}
|
|
|
4654 |
}
|
|
|
4655 |
|
|
|
4656 |
public getPayments_result deepCopy() {
|
|
|
4657 |
return new getPayments_result(this);
|
|
|
4658 |
}
|
|
|
4659 |
|
| 3430 |
rajveer |
4660 |
@Override
|
|
|
4661 |
public void clear() {
|
|
|
4662 |
this.success = null;
|
|
|
4663 |
this.pe = null;
|
| 123 |
ashish |
4664 |
}
|
|
|
4665 |
|
|
|
4666 |
public int getSuccessSize() {
|
|
|
4667 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
4668 |
}
|
|
|
4669 |
|
|
|
4670 |
public java.util.Iterator<Payment> getSuccessIterator() {
|
|
|
4671 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
4672 |
}
|
|
|
4673 |
|
|
|
4674 |
public void addToSuccess(Payment elem) {
|
|
|
4675 |
if (this.success == null) {
|
|
|
4676 |
this.success = new ArrayList<Payment>();
|
|
|
4677 |
}
|
|
|
4678 |
this.success.add(elem);
|
|
|
4679 |
}
|
|
|
4680 |
|
|
|
4681 |
public List<Payment> getSuccess() {
|
|
|
4682 |
return this.success;
|
|
|
4683 |
}
|
|
|
4684 |
|
| 3430 |
rajveer |
4685 |
public void setSuccess(List<Payment> success) {
|
| 123 |
ashish |
4686 |
this.success = success;
|
|
|
4687 |
}
|
|
|
4688 |
|
|
|
4689 |
public void unsetSuccess() {
|
|
|
4690 |
this.success = null;
|
|
|
4691 |
}
|
|
|
4692 |
|
| 3430 |
rajveer |
4693 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
4694 |
public boolean isSetSuccess() {
|
|
|
4695 |
return this.success != null;
|
|
|
4696 |
}
|
|
|
4697 |
|
|
|
4698 |
public void setSuccessIsSet(boolean value) {
|
|
|
4699 |
if (!value) {
|
|
|
4700 |
this.success = null;
|
|
|
4701 |
}
|
|
|
4702 |
}
|
|
|
4703 |
|
|
|
4704 |
public PaymentException getPe() {
|
|
|
4705 |
return this.pe;
|
|
|
4706 |
}
|
|
|
4707 |
|
| 3430 |
rajveer |
4708 |
public void setPe(PaymentException pe) {
|
| 123 |
ashish |
4709 |
this.pe = pe;
|
|
|
4710 |
}
|
|
|
4711 |
|
|
|
4712 |
public void unsetPe() {
|
|
|
4713 |
this.pe = null;
|
|
|
4714 |
}
|
|
|
4715 |
|
| 3430 |
rajveer |
4716 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
4717 |
public boolean isSetPe() {
|
|
|
4718 |
return this.pe != null;
|
|
|
4719 |
}
|
|
|
4720 |
|
|
|
4721 |
public void setPeIsSet(boolean value) {
|
|
|
4722 |
if (!value) {
|
|
|
4723 |
this.pe = null;
|
|
|
4724 |
}
|
|
|
4725 |
}
|
|
|
4726 |
|
|
|
4727 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4728 |
switch (field) {
|
|
|
4729 |
case SUCCESS:
|
|
|
4730 |
if (value == null) {
|
|
|
4731 |
unsetSuccess();
|
|
|
4732 |
} else {
|
|
|
4733 |
setSuccess((List<Payment>)value);
|
|
|
4734 |
}
|
|
|
4735 |
break;
|
|
|
4736 |
|
|
|
4737 |
case PE:
|
|
|
4738 |
if (value == null) {
|
|
|
4739 |
unsetPe();
|
|
|
4740 |
} else {
|
|
|
4741 |
setPe((PaymentException)value);
|
|
|
4742 |
}
|
|
|
4743 |
break;
|
|
|
4744 |
|
|
|
4745 |
}
|
|
|
4746 |
}
|
|
|
4747 |
|
|
|
4748 |
public Object getFieldValue(_Fields field) {
|
|
|
4749 |
switch (field) {
|
|
|
4750 |
case SUCCESS:
|
|
|
4751 |
return getSuccess();
|
|
|
4752 |
|
|
|
4753 |
case PE:
|
|
|
4754 |
return getPe();
|
|
|
4755 |
|
|
|
4756 |
}
|
|
|
4757 |
throw new IllegalStateException();
|
|
|
4758 |
}
|
|
|
4759 |
|
| 3430 |
rajveer |
4760 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4761 |
public boolean isSet(_Fields field) {
|
|
|
4762 |
if (field == null) {
|
|
|
4763 |
throw new IllegalArgumentException();
|
|
|
4764 |
}
|
| 123 |
ashish |
4765 |
|
|
|
4766 |
switch (field) {
|
|
|
4767 |
case SUCCESS:
|
|
|
4768 |
return isSetSuccess();
|
|
|
4769 |
case PE:
|
|
|
4770 |
return isSetPe();
|
|
|
4771 |
}
|
|
|
4772 |
throw new IllegalStateException();
|
|
|
4773 |
}
|
|
|
4774 |
|
|
|
4775 |
@Override
|
|
|
4776 |
public boolean equals(Object that) {
|
|
|
4777 |
if (that == null)
|
|
|
4778 |
return false;
|
|
|
4779 |
if (that instanceof getPayments_result)
|
|
|
4780 |
return this.equals((getPayments_result)that);
|
|
|
4781 |
return false;
|
|
|
4782 |
}
|
|
|
4783 |
|
|
|
4784 |
public boolean equals(getPayments_result that) {
|
|
|
4785 |
if (that == null)
|
|
|
4786 |
return false;
|
|
|
4787 |
|
|
|
4788 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4789 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
4790 |
if (this_present_success || that_present_success) {
|
|
|
4791 |
if (!(this_present_success && that_present_success))
|
|
|
4792 |
return false;
|
|
|
4793 |
if (!this.success.equals(that.success))
|
|
|
4794 |
return false;
|
|
|
4795 |
}
|
|
|
4796 |
|
|
|
4797 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
4798 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
4799 |
if (this_present_pe || that_present_pe) {
|
|
|
4800 |
if (!(this_present_pe && that_present_pe))
|
|
|
4801 |
return false;
|
|
|
4802 |
if (!this.pe.equals(that.pe))
|
|
|
4803 |
return false;
|
|
|
4804 |
}
|
|
|
4805 |
|
|
|
4806 |
return true;
|
|
|
4807 |
}
|
|
|
4808 |
|
|
|
4809 |
@Override
|
|
|
4810 |
public int hashCode() {
|
|
|
4811 |
return 0;
|
|
|
4812 |
}
|
|
|
4813 |
|
| 695 |
rajveer |
4814 |
public int compareTo(getPayments_result other) {
|
| 123 |
ashish |
4815 |
if (!getClass().equals(other.getClass())) {
|
|
|
4816 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4817 |
}
|
|
|
4818 |
|
|
|
4819 |
int lastComparison = 0;
|
| 695 |
rajveer |
4820 |
getPayments_result typedOther = (getPayments_result)other;
|
| 123 |
ashish |
4821 |
|
| 3430 |
rajveer |
4822 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 123 |
ashish |
4823 |
if (lastComparison != 0) {
|
|
|
4824 |
return lastComparison;
|
|
|
4825 |
}
|
| 3430 |
rajveer |
4826 |
if (isSetSuccess()) {
|
|
|
4827 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4828 |
if (lastComparison != 0) {
|
|
|
4829 |
return lastComparison;
|
|
|
4830 |
}
|
| 123 |
ashish |
4831 |
}
|
| 3430 |
rajveer |
4832 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 695 |
rajveer |
4833 |
if (lastComparison != 0) {
|
|
|
4834 |
return lastComparison;
|
| 123 |
ashish |
4835 |
}
|
| 3430 |
rajveer |
4836 |
if (isSetPe()) {
|
|
|
4837 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
4838 |
if (lastComparison != 0) {
|
|
|
4839 |
return lastComparison;
|
|
|
4840 |
}
|
| 123 |
ashish |
4841 |
}
|
|
|
4842 |
return 0;
|
|
|
4843 |
}
|
|
|
4844 |
|
| 3430 |
rajveer |
4845 |
public _Fields fieldForId(int fieldId) {
|
|
|
4846 |
return _Fields.findByThriftId(fieldId);
|
|
|
4847 |
}
|
|
|
4848 |
|
|
|
4849 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4850 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
4851 |
iprot.readStructBegin();
|
|
|
4852 |
while (true)
|
|
|
4853 |
{
|
|
|
4854 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4855 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
4856 |
break;
|
|
|
4857 |
}
|
| 3430 |
rajveer |
4858 |
switch (field.id) {
|
|
|
4859 |
case 0: // SUCCESS
|
|
|
4860 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
4861 |
{
|
|
|
4862 |
org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
|
|
|
4863 |
this.success = new ArrayList<Payment>(_list16.size);
|
|
|
4864 |
for (int _i17 = 0; _i17 < _list16.size; ++_i17)
|
| 420 |
ashish |
4865 |
{
|
| 3430 |
rajveer |
4866 |
Payment _elem18; // required
|
|
|
4867 |
_elem18 = new Payment();
|
|
|
4868 |
_elem18.read(iprot);
|
|
|
4869 |
this.success.add(_elem18);
|
| 420 |
ashish |
4870 |
}
|
| 3430 |
rajveer |
4871 |
iprot.readListEnd();
|
| 123 |
ashish |
4872 |
}
|
| 3430 |
rajveer |
4873 |
} else {
|
|
|
4874 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4875 |
}
|
|
|
4876 |
break;
|
|
|
4877 |
case 1: // PE
|
|
|
4878 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4879 |
this.pe = new PaymentException();
|
|
|
4880 |
this.pe.read(iprot);
|
|
|
4881 |
} else {
|
|
|
4882 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4883 |
}
|
|
|
4884 |
break;
|
|
|
4885 |
default:
|
|
|
4886 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
4887 |
}
|
| 3430 |
rajveer |
4888 |
iprot.readFieldEnd();
|
| 123 |
ashish |
4889 |
}
|
|
|
4890 |
iprot.readStructEnd();
|
|
|
4891 |
validate();
|
|
|
4892 |
}
|
|
|
4893 |
|
| 3430 |
rajveer |
4894 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
4895 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4896 |
|
|
|
4897 |
if (this.isSetSuccess()) {
|
|
|
4898 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 420 |
ashish |
4899 |
{
|
| 3430 |
rajveer |
4900 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 2747 |
chandransh |
4901 |
for (Payment _iter19 : this.success)
|
| 420 |
ashish |
4902 |
{
|
| 2747 |
chandransh |
4903 |
_iter19.write(oprot);
|
| 420 |
ashish |
4904 |
}
|
|
|
4905 |
oprot.writeListEnd();
|
|
|
4906 |
}
|
| 123 |
ashish |
4907 |
oprot.writeFieldEnd();
|
|
|
4908 |
} else if (this.isSetPe()) {
|
|
|
4909 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
4910 |
this.pe.write(oprot);
|
|
|
4911 |
oprot.writeFieldEnd();
|
|
|
4912 |
}
|
|
|
4913 |
oprot.writeFieldStop();
|
|
|
4914 |
oprot.writeStructEnd();
|
|
|
4915 |
}
|
|
|
4916 |
|
|
|
4917 |
@Override
|
|
|
4918 |
public String toString() {
|
| 695 |
rajveer |
4919 |
StringBuilder sb = new StringBuilder("getPayments_result(");
|
| 123 |
ashish |
4920 |
boolean first = true;
|
|
|
4921 |
|
|
|
4922 |
sb.append("success:");
|
|
|
4923 |
if (this.success == null) {
|
|
|
4924 |
sb.append("null");
|
|
|
4925 |
} else {
|
|
|
4926 |
sb.append(this.success);
|
|
|
4927 |
}
|
|
|
4928 |
first = false;
|
|
|
4929 |
if (!first) sb.append(", ");
|
|
|
4930 |
sb.append("pe:");
|
|
|
4931 |
if (this.pe == null) {
|
|
|
4932 |
sb.append("null");
|
|
|
4933 |
} else {
|
|
|
4934 |
sb.append(this.pe);
|
|
|
4935 |
}
|
|
|
4936 |
first = false;
|
|
|
4937 |
sb.append(")");
|
|
|
4938 |
return sb.toString();
|
|
|
4939 |
}
|
|
|
4940 |
|
| 3430 |
rajveer |
4941 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
4942 |
// check for required fields
|
|
|
4943 |
}
|
|
|
4944 |
|
| 3430 |
rajveer |
4945 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4946 |
try {
|
|
|
4947 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4948 |
} catch (org.apache.thrift.TException te) {
|
|
|
4949 |
throw new java.io.IOException(te);
|
|
|
4950 |
}
|
|
|
4951 |
}
|
|
|
4952 |
|
|
|
4953 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4954 |
try {
|
|
|
4955 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4956 |
} catch (org.apache.thrift.TException te) {
|
|
|
4957 |
throw new java.io.IOException(te);
|
|
|
4958 |
}
|
|
|
4959 |
}
|
|
|
4960 |
|
| 123 |
ashish |
4961 |
}
|
|
|
4962 |
|
| 4141 |
chandransh |
4963 |
public static class getPaymentsByCapturedDate_args implements org.apache.thrift.TBase<getPaymentsByCapturedDate_args, getPaymentsByCapturedDate_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4964 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_args");
|
|
|
4965 |
|
|
|
4966 |
private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
4967 |
private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
4968 |
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);
|
|
|
4969 |
|
|
|
4970 |
private long fromTime; // required
|
|
|
4971 |
private long toTime; // required
|
|
|
4972 |
private long gatewayId; // required
|
|
|
4973 |
|
|
|
4974 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
4975 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
4976 |
FROM_TIME((short)1, "fromTime"),
|
|
|
4977 |
TO_TIME((short)2, "toTime"),
|
|
|
4978 |
GATEWAY_ID((short)3, "gatewayId");
|
|
|
4979 |
|
|
|
4980 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4981 |
|
|
|
4982 |
static {
|
|
|
4983 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4984 |
byName.put(field.getFieldName(), field);
|
|
|
4985 |
}
|
|
|
4986 |
}
|
|
|
4987 |
|
|
|
4988 |
/**
|
|
|
4989 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4990 |
*/
|
|
|
4991 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
4992 |
switch(fieldId) {
|
|
|
4993 |
case 1: // FROM_TIME
|
|
|
4994 |
return FROM_TIME;
|
|
|
4995 |
case 2: // TO_TIME
|
|
|
4996 |
return TO_TIME;
|
|
|
4997 |
case 3: // GATEWAY_ID
|
|
|
4998 |
return GATEWAY_ID;
|
|
|
4999 |
default:
|
|
|
5000 |
return null;
|
|
|
5001 |
}
|
|
|
5002 |
}
|
|
|
5003 |
|
|
|
5004 |
/**
|
|
|
5005 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5006 |
* if it is not found.
|
|
|
5007 |
*/
|
|
|
5008 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5009 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5010 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5011 |
return fields;
|
|
|
5012 |
}
|
|
|
5013 |
|
|
|
5014 |
/**
|
|
|
5015 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5016 |
*/
|
|
|
5017 |
public static _Fields findByName(String name) {
|
|
|
5018 |
return byName.get(name);
|
|
|
5019 |
}
|
|
|
5020 |
|
|
|
5021 |
private final short _thriftId;
|
|
|
5022 |
private final String _fieldName;
|
|
|
5023 |
|
|
|
5024 |
_Fields(short thriftId, String fieldName) {
|
|
|
5025 |
_thriftId = thriftId;
|
|
|
5026 |
_fieldName = fieldName;
|
|
|
5027 |
}
|
|
|
5028 |
|
|
|
5029 |
public short getThriftFieldId() {
|
|
|
5030 |
return _thriftId;
|
|
|
5031 |
}
|
|
|
5032 |
|
|
|
5033 |
public String getFieldName() {
|
|
|
5034 |
return _fieldName;
|
|
|
5035 |
}
|
|
|
5036 |
}
|
|
|
5037 |
|
|
|
5038 |
// isset id assignments
|
|
|
5039 |
private static final int __FROMTIME_ISSET_ID = 0;
|
|
|
5040 |
private static final int __TOTIME_ISSET_ID = 1;
|
|
|
5041 |
private static final int __GATEWAYID_ISSET_ID = 2;
|
|
|
5042 |
private BitSet __isset_bit_vector = new BitSet(3);
|
|
|
5043 |
|
|
|
5044 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
5045 |
static {
|
|
|
5046 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5047 |
tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5048 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5049 |
tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5050 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5051 |
tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5052 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5053 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5054 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_args.class, metaDataMap);
|
|
|
5055 |
}
|
|
|
5056 |
|
|
|
5057 |
public getPaymentsByCapturedDate_args() {
|
|
|
5058 |
}
|
|
|
5059 |
|
|
|
5060 |
public getPaymentsByCapturedDate_args(
|
|
|
5061 |
long fromTime,
|
|
|
5062 |
long toTime,
|
|
|
5063 |
long gatewayId)
|
|
|
5064 |
{
|
|
|
5065 |
this();
|
|
|
5066 |
this.fromTime = fromTime;
|
|
|
5067 |
setFromTimeIsSet(true);
|
|
|
5068 |
this.toTime = toTime;
|
|
|
5069 |
setToTimeIsSet(true);
|
|
|
5070 |
this.gatewayId = gatewayId;
|
|
|
5071 |
setGatewayIdIsSet(true);
|
|
|
5072 |
}
|
|
|
5073 |
|
|
|
5074 |
/**
|
|
|
5075 |
* Performs a deep copy on <i>other</i>.
|
|
|
5076 |
*/
|
|
|
5077 |
public getPaymentsByCapturedDate_args(getPaymentsByCapturedDate_args other) {
|
|
|
5078 |
__isset_bit_vector.clear();
|
|
|
5079 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
5080 |
this.fromTime = other.fromTime;
|
|
|
5081 |
this.toTime = other.toTime;
|
|
|
5082 |
this.gatewayId = other.gatewayId;
|
|
|
5083 |
}
|
|
|
5084 |
|
|
|
5085 |
public getPaymentsByCapturedDate_args deepCopy() {
|
|
|
5086 |
return new getPaymentsByCapturedDate_args(this);
|
|
|
5087 |
}
|
|
|
5088 |
|
|
|
5089 |
@Override
|
|
|
5090 |
public void clear() {
|
|
|
5091 |
setFromTimeIsSet(false);
|
|
|
5092 |
this.fromTime = 0;
|
|
|
5093 |
setToTimeIsSet(false);
|
|
|
5094 |
this.toTime = 0;
|
|
|
5095 |
setGatewayIdIsSet(false);
|
|
|
5096 |
this.gatewayId = 0;
|
|
|
5097 |
}
|
|
|
5098 |
|
|
|
5099 |
public long getFromTime() {
|
|
|
5100 |
return this.fromTime;
|
|
|
5101 |
}
|
|
|
5102 |
|
|
|
5103 |
public void setFromTime(long fromTime) {
|
|
|
5104 |
this.fromTime = fromTime;
|
|
|
5105 |
setFromTimeIsSet(true);
|
|
|
5106 |
}
|
|
|
5107 |
|
|
|
5108 |
public void unsetFromTime() {
|
|
|
5109 |
__isset_bit_vector.clear(__FROMTIME_ISSET_ID);
|
|
|
5110 |
}
|
|
|
5111 |
|
|
|
5112 |
/** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
|
|
|
5113 |
public boolean isSetFromTime() {
|
|
|
5114 |
return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
|
|
|
5115 |
}
|
|
|
5116 |
|
|
|
5117 |
public void setFromTimeIsSet(boolean value) {
|
|
|
5118 |
__isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
|
|
|
5119 |
}
|
|
|
5120 |
|
|
|
5121 |
public long getToTime() {
|
|
|
5122 |
return this.toTime;
|
|
|
5123 |
}
|
|
|
5124 |
|
|
|
5125 |
public void setToTime(long toTime) {
|
|
|
5126 |
this.toTime = toTime;
|
|
|
5127 |
setToTimeIsSet(true);
|
|
|
5128 |
}
|
|
|
5129 |
|
|
|
5130 |
public void unsetToTime() {
|
|
|
5131 |
__isset_bit_vector.clear(__TOTIME_ISSET_ID);
|
|
|
5132 |
}
|
|
|
5133 |
|
|
|
5134 |
/** Returns true if field toTime is set (has been assigned a value) and false otherwise */
|
|
|
5135 |
public boolean isSetToTime() {
|
|
|
5136 |
return __isset_bit_vector.get(__TOTIME_ISSET_ID);
|
|
|
5137 |
}
|
|
|
5138 |
|
|
|
5139 |
public void setToTimeIsSet(boolean value) {
|
|
|
5140 |
__isset_bit_vector.set(__TOTIME_ISSET_ID, value);
|
|
|
5141 |
}
|
|
|
5142 |
|
|
|
5143 |
public long getGatewayId() {
|
|
|
5144 |
return this.gatewayId;
|
|
|
5145 |
}
|
|
|
5146 |
|
|
|
5147 |
public void setGatewayId(long gatewayId) {
|
|
|
5148 |
this.gatewayId = gatewayId;
|
|
|
5149 |
setGatewayIdIsSet(true);
|
|
|
5150 |
}
|
|
|
5151 |
|
|
|
5152 |
public void unsetGatewayId() {
|
|
|
5153 |
__isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
|
|
|
5154 |
}
|
|
|
5155 |
|
|
|
5156 |
/** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
|
|
|
5157 |
public boolean isSetGatewayId() {
|
|
|
5158 |
return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
|
|
|
5159 |
}
|
|
|
5160 |
|
|
|
5161 |
public void setGatewayIdIsSet(boolean value) {
|
|
|
5162 |
__isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
|
|
|
5163 |
}
|
|
|
5164 |
|
|
|
5165 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5166 |
switch (field) {
|
|
|
5167 |
case FROM_TIME:
|
|
|
5168 |
if (value == null) {
|
|
|
5169 |
unsetFromTime();
|
|
|
5170 |
} else {
|
|
|
5171 |
setFromTime((Long)value);
|
|
|
5172 |
}
|
|
|
5173 |
break;
|
|
|
5174 |
|
|
|
5175 |
case TO_TIME:
|
|
|
5176 |
if (value == null) {
|
|
|
5177 |
unsetToTime();
|
|
|
5178 |
} else {
|
|
|
5179 |
setToTime((Long)value);
|
|
|
5180 |
}
|
|
|
5181 |
break;
|
|
|
5182 |
|
|
|
5183 |
case GATEWAY_ID:
|
|
|
5184 |
if (value == null) {
|
|
|
5185 |
unsetGatewayId();
|
|
|
5186 |
} else {
|
|
|
5187 |
setGatewayId((Long)value);
|
|
|
5188 |
}
|
|
|
5189 |
break;
|
|
|
5190 |
|
|
|
5191 |
}
|
|
|
5192 |
}
|
|
|
5193 |
|
|
|
5194 |
public Object getFieldValue(_Fields field) {
|
|
|
5195 |
switch (field) {
|
|
|
5196 |
case FROM_TIME:
|
|
|
5197 |
return Long.valueOf(getFromTime());
|
|
|
5198 |
|
|
|
5199 |
case TO_TIME:
|
|
|
5200 |
return Long.valueOf(getToTime());
|
|
|
5201 |
|
|
|
5202 |
case GATEWAY_ID:
|
|
|
5203 |
return Long.valueOf(getGatewayId());
|
|
|
5204 |
|
|
|
5205 |
}
|
|
|
5206 |
throw new IllegalStateException();
|
|
|
5207 |
}
|
|
|
5208 |
|
|
|
5209 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5210 |
public boolean isSet(_Fields field) {
|
|
|
5211 |
if (field == null) {
|
|
|
5212 |
throw new IllegalArgumentException();
|
|
|
5213 |
}
|
|
|
5214 |
|
|
|
5215 |
switch (field) {
|
|
|
5216 |
case FROM_TIME:
|
|
|
5217 |
return isSetFromTime();
|
|
|
5218 |
case TO_TIME:
|
|
|
5219 |
return isSetToTime();
|
|
|
5220 |
case GATEWAY_ID:
|
|
|
5221 |
return isSetGatewayId();
|
|
|
5222 |
}
|
|
|
5223 |
throw new IllegalStateException();
|
|
|
5224 |
}
|
|
|
5225 |
|
|
|
5226 |
@Override
|
|
|
5227 |
public boolean equals(Object that) {
|
|
|
5228 |
if (that == null)
|
|
|
5229 |
return false;
|
|
|
5230 |
if (that instanceof getPaymentsByCapturedDate_args)
|
|
|
5231 |
return this.equals((getPaymentsByCapturedDate_args)that);
|
|
|
5232 |
return false;
|
|
|
5233 |
}
|
|
|
5234 |
|
|
|
5235 |
public boolean equals(getPaymentsByCapturedDate_args that) {
|
|
|
5236 |
if (that == null)
|
|
|
5237 |
return false;
|
|
|
5238 |
|
|
|
5239 |
boolean this_present_fromTime = true;
|
|
|
5240 |
boolean that_present_fromTime = true;
|
|
|
5241 |
if (this_present_fromTime || that_present_fromTime) {
|
|
|
5242 |
if (!(this_present_fromTime && that_present_fromTime))
|
|
|
5243 |
return false;
|
|
|
5244 |
if (this.fromTime != that.fromTime)
|
|
|
5245 |
return false;
|
|
|
5246 |
}
|
|
|
5247 |
|
|
|
5248 |
boolean this_present_toTime = true;
|
|
|
5249 |
boolean that_present_toTime = true;
|
|
|
5250 |
if (this_present_toTime || that_present_toTime) {
|
|
|
5251 |
if (!(this_present_toTime && that_present_toTime))
|
|
|
5252 |
return false;
|
|
|
5253 |
if (this.toTime != that.toTime)
|
|
|
5254 |
return false;
|
|
|
5255 |
}
|
|
|
5256 |
|
|
|
5257 |
boolean this_present_gatewayId = true;
|
|
|
5258 |
boolean that_present_gatewayId = true;
|
|
|
5259 |
if (this_present_gatewayId || that_present_gatewayId) {
|
|
|
5260 |
if (!(this_present_gatewayId && that_present_gatewayId))
|
|
|
5261 |
return false;
|
|
|
5262 |
if (this.gatewayId != that.gatewayId)
|
|
|
5263 |
return false;
|
|
|
5264 |
}
|
|
|
5265 |
|
|
|
5266 |
return true;
|
|
|
5267 |
}
|
|
|
5268 |
|
|
|
5269 |
@Override
|
|
|
5270 |
public int hashCode() {
|
|
|
5271 |
return 0;
|
|
|
5272 |
}
|
|
|
5273 |
|
|
|
5274 |
public int compareTo(getPaymentsByCapturedDate_args other) {
|
|
|
5275 |
if (!getClass().equals(other.getClass())) {
|
|
|
5276 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5277 |
}
|
|
|
5278 |
|
|
|
5279 |
int lastComparison = 0;
|
|
|
5280 |
getPaymentsByCapturedDate_args typedOther = (getPaymentsByCapturedDate_args)other;
|
|
|
5281 |
|
|
|
5282 |
lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
|
|
|
5283 |
if (lastComparison != 0) {
|
|
|
5284 |
return lastComparison;
|
|
|
5285 |
}
|
|
|
5286 |
if (isSetFromTime()) {
|
|
|
5287 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
|
|
|
5288 |
if (lastComparison != 0) {
|
|
|
5289 |
return lastComparison;
|
|
|
5290 |
}
|
|
|
5291 |
}
|
|
|
5292 |
lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
|
|
|
5293 |
if (lastComparison != 0) {
|
|
|
5294 |
return lastComparison;
|
|
|
5295 |
}
|
|
|
5296 |
if (isSetToTime()) {
|
|
|
5297 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
|
|
|
5298 |
if (lastComparison != 0) {
|
|
|
5299 |
return lastComparison;
|
|
|
5300 |
}
|
|
|
5301 |
}
|
|
|
5302 |
lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
|
|
|
5303 |
if (lastComparison != 0) {
|
|
|
5304 |
return lastComparison;
|
|
|
5305 |
}
|
|
|
5306 |
if (isSetGatewayId()) {
|
|
|
5307 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
|
|
|
5308 |
if (lastComparison != 0) {
|
|
|
5309 |
return lastComparison;
|
|
|
5310 |
}
|
|
|
5311 |
}
|
|
|
5312 |
return 0;
|
|
|
5313 |
}
|
|
|
5314 |
|
|
|
5315 |
public _Fields fieldForId(int fieldId) {
|
|
|
5316 |
return _Fields.findByThriftId(fieldId);
|
|
|
5317 |
}
|
|
|
5318 |
|
|
|
5319 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5320 |
org.apache.thrift.protocol.TField field;
|
|
|
5321 |
iprot.readStructBegin();
|
|
|
5322 |
while (true)
|
|
|
5323 |
{
|
|
|
5324 |
field = iprot.readFieldBegin();
|
|
|
5325 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
5326 |
break;
|
|
|
5327 |
}
|
|
|
5328 |
switch (field.id) {
|
|
|
5329 |
case 1: // FROM_TIME
|
|
|
5330 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5331 |
this.fromTime = iprot.readI64();
|
|
|
5332 |
setFromTimeIsSet(true);
|
|
|
5333 |
} else {
|
|
|
5334 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5335 |
}
|
|
|
5336 |
break;
|
|
|
5337 |
case 2: // TO_TIME
|
|
|
5338 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5339 |
this.toTime = iprot.readI64();
|
|
|
5340 |
setToTimeIsSet(true);
|
|
|
5341 |
} else {
|
|
|
5342 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5343 |
}
|
|
|
5344 |
break;
|
|
|
5345 |
case 3: // GATEWAY_ID
|
|
|
5346 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5347 |
this.gatewayId = iprot.readI64();
|
|
|
5348 |
setGatewayIdIsSet(true);
|
|
|
5349 |
} else {
|
|
|
5350 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5351 |
}
|
|
|
5352 |
break;
|
|
|
5353 |
default:
|
|
|
5354 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5355 |
}
|
|
|
5356 |
iprot.readFieldEnd();
|
|
|
5357 |
}
|
|
|
5358 |
iprot.readStructEnd();
|
|
|
5359 |
validate();
|
|
|
5360 |
}
|
|
|
5361 |
|
|
|
5362 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
5363 |
validate();
|
|
|
5364 |
|
|
|
5365 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5366 |
oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
|
|
|
5367 |
oprot.writeI64(this.fromTime);
|
|
|
5368 |
oprot.writeFieldEnd();
|
|
|
5369 |
oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
|
|
|
5370 |
oprot.writeI64(this.toTime);
|
|
|
5371 |
oprot.writeFieldEnd();
|
|
|
5372 |
oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
|
|
|
5373 |
oprot.writeI64(this.gatewayId);
|
|
|
5374 |
oprot.writeFieldEnd();
|
|
|
5375 |
oprot.writeFieldStop();
|
|
|
5376 |
oprot.writeStructEnd();
|
|
|
5377 |
}
|
|
|
5378 |
|
|
|
5379 |
@Override
|
|
|
5380 |
public String toString() {
|
|
|
5381 |
StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_args(");
|
|
|
5382 |
boolean first = true;
|
|
|
5383 |
|
|
|
5384 |
sb.append("fromTime:");
|
|
|
5385 |
sb.append(this.fromTime);
|
|
|
5386 |
first = false;
|
|
|
5387 |
if (!first) sb.append(", ");
|
|
|
5388 |
sb.append("toTime:");
|
|
|
5389 |
sb.append(this.toTime);
|
|
|
5390 |
first = false;
|
|
|
5391 |
if (!first) sb.append(", ");
|
|
|
5392 |
sb.append("gatewayId:");
|
|
|
5393 |
sb.append(this.gatewayId);
|
|
|
5394 |
first = false;
|
|
|
5395 |
sb.append(")");
|
|
|
5396 |
return sb.toString();
|
|
|
5397 |
}
|
|
|
5398 |
|
|
|
5399 |
public void validate() throws org.apache.thrift.TException {
|
|
|
5400 |
// check for required fields
|
|
|
5401 |
}
|
|
|
5402 |
|
|
|
5403 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5404 |
try {
|
|
|
5405 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5406 |
} catch (org.apache.thrift.TException te) {
|
|
|
5407 |
throw new java.io.IOException(te);
|
|
|
5408 |
}
|
|
|
5409 |
}
|
|
|
5410 |
|
|
|
5411 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5412 |
try {
|
|
|
5413 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5414 |
} catch (org.apache.thrift.TException te) {
|
|
|
5415 |
throw new java.io.IOException(te);
|
|
|
5416 |
}
|
|
|
5417 |
}
|
|
|
5418 |
|
|
|
5419 |
}
|
|
|
5420 |
|
|
|
5421 |
public static class getPaymentsByCapturedDate_result implements org.apache.thrift.TBase<getPaymentsByCapturedDate_result, getPaymentsByCapturedDate_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5422 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_result");
|
|
|
5423 |
|
|
|
5424 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
|
|
5425 |
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);
|
|
|
5426 |
|
|
|
5427 |
private List<Payment> success; // required
|
|
|
5428 |
private PaymentException pe; // required
|
|
|
5429 |
|
|
|
5430 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
5431 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
5432 |
SUCCESS((short)0, "success"),
|
|
|
5433 |
PE((short)1, "pe");
|
|
|
5434 |
|
|
|
5435 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5436 |
|
|
|
5437 |
static {
|
|
|
5438 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5439 |
byName.put(field.getFieldName(), field);
|
|
|
5440 |
}
|
|
|
5441 |
}
|
|
|
5442 |
|
|
|
5443 |
/**
|
|
|
5444 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5445 |
*/
|
|
|
5446 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
5447 |
switch(fieldId) {
|
|
|
5448 |
case 0: // SUCCESS
|
|
|
5449 |
return SUCCESS;
|
|
|
5450 |
case 1: // PE
|
|
|
5451 |
return PE;
|
|
|
5452 |
default:
|
|
|
5453 |
return null;
|
|
|
5454 |
}
|
|
|
5455 |
}
|
|
|
5456 |
|
|
|
5457 |
/**
|
|
|
5458 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5459 |
* if it is not found.
|
|
|
5460 |
*/
|
|
|
5461 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5462 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5463 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5464 |
return fields;
|
|
|
5465 |
}
|
|
|
5466 |
|
|
|
5467 |
/**
|
|
|
5468 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5469 |
*/
|
|
|
5470 |
public static _Fields findByName(String name) {
|
|
|
5471 |
return byName.get(name);
|
|
|
5472 |
}
|
|
|
5473 |
|
|
|
5474 |
private final short _thriftId;
|
|
|
5475 |
private final String _fieldName;
|
|
|
5476 |
|
|
|
5477 |
_Fields(short thriftId, String fieldName) {
|
|
|
5478 |
_thriftId = thriftId;
|
|
|
5479 |
_fieldName = fieldName;
|
|
|
5480 |
}
|
|
|
5481 |
|
|
|
5482 |
public short getThriftFieldId() {
|
|
|
5483 |
return _thriftId;
|
|
|
5484 |
}
|
|
|
5485 |
|
|
|
5486 |
public String getFieldName() {
|
|
|
5487 |
return _fieldName;
|
|
|
5488 |
}
|
|
|
5489 |
}
|
|
|
5490 |
|
|
|
5491 |
// isset id assignments
|
|
|
5492 |
|
|
|
5493 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
5494 |
static {
|
|
|
5495 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5496 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5497 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
5498 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
|
|
|
5499 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5500 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
5501 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5502 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_result.class, metaDataMap);
|
|
|
5503 |
}
|
|
|
5504 |
|
|
|
5505 |
public getPaymentsByCapturedDate_result() {
|
|
|
5506 |
}
|
|
|
5507 |
|
|
|
5508 |
public getPaymentsByCapturedDate_result(
|
|
|
5509 |
List<Payment> success,
|
|
|
5510 |
PaymentException pe)
|
|
|
5511 |
{
|
|
|
5512 |
this();
|
|
|
5513 |
this.success = success;
|
|
|
5514 |
this.pe = pe;
|
|
|
5515 |
}
|
|
|
5516 |
|
|
|
5517 |
/**
|
|
|
5518 |
* Performs a deep copy on <i>other</i>.
|
|
|
5519 |
*/
|
|
|
5520 |
public getPaymentsByCapturedDate_result(getPaymentsByCapturedDate_result other) {
|
|
|
5521 |
if (other.isSetSuccess()) {
|
|
|
5522 |
List<Payment> __this__success = new ArrayList<Payment>();
|
|
|
5523 |
for (Payment other_element : other.success) {
|
|
|
5524 |
__this__success.add(new Payment(other_element));
|
|
|
5525 |
}
|
|
|
5526 |
this.success = __this__success;
|
|
|
5527 |
}
|
|
|
5528 |
if (other.isSetPe()) {
|
|
|
5529 |
this.pe = new PaymentException(other.pe);
|
|
|
5530 |
}
|
|
|
5531 |
}
|
|
|
5532 |
|
|
|
5533 |
public getPaymentsByCapturedDate_result deepCopy() {
|
|
|
5534 |
return new getPaymentsByCapturedDate_result(this);
|
|
|
5535 |
}
|
|
|
5536 |
|
|
|
5537 |
@Override
|
|
|
5538 |
public void clear() {
|
|
|
5539 |
this.success = null;
|
|
|
5540 |
this.pe = null;
|
|
|
5541 |
}
|
|
|
5542 |
|
|
|
5543 |
public int getSuccessSize() {
|
|
|
5544 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
5545 |
}
|
|
|
5546 |
|
|
|
5547 |
public java.util.Iterator<Payment> getSuccessIterator() {
|
|
|
5548 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
5549 |
}
|
|
|
5550 |
|
|
|
5551 |
public void addToSuccess(Payment elem) {
|
|
|
5552 |
if (this.success == null) {
|
|
|
5553 |
this.success = new ArrayList<Payment>();
|
|
|
5554 |
}
|
|
|
5555 |
this.success.add(elem);
|
|
|
5556 |
}
|
|
|
5557 |
|
|
|
5558 |
public List<Payment> getSuccess() {
|
|
|
5559 |
return this.success;
|
|
|
5560 |
}
|
|
|
5561 |
|
|
|
5562 |
public void setSuccess(List<Payment> success) {
|
|
|
5563 |
this.success = success;
|
|
|
5564 |
}
|
|
|
5565 |
|
|
|
5566 |
public void unsetSuccess() {
|
|
|
5567 |
this.success = null;
|
|
|
5568 |
}
|
|
|
5569 |
|
|
|
5570 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
5571 |
public boolean isSetSuccess() {
|
|
|
5572 |
return this.success != null;
|
|
|
5573 |
}
|
|
|
5574 |
|
|
|
5575 |
public void setSuccessIsSet(boolean value) {
|
|
|
5576 |
if (!value) {
|
|
|
5577 |
this.success = null;
|
|
|
5578 |
}
|
|
|
5579 |
}
|
|
|
5580 |
|
|
|
5581 |
public PaymentException getPe() {
|
|
|
5582 |
return this.pe;
|
|
|
5583 |
}
|
|
|
5584 |
|
|
|
5585 |
public void setPe(PaymentException pe) {
|
|
|
5586 |
this.pe = pe;
|
|
|
5587 |
}
|
|
|
5588 |
|
|
|
5589 |
public void unsetPe() {
|
|
|
5590 |
this.pe = null;
|
|
|
5591 |
}
|
|
|
5592 |
|
|
|
5593 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
|
|
5594 |
public boolean isSetPe() {
|
|
|
5595 |
return this.pe != null;
|
|
|
5596 |
}
|
|
|
5597 |
|
|
|
5598 |
public void setPeIsSet(boolean value) {
|
|
|
5599 |
if (!value) {
|
|
|
5600 |
this.pe = null;
|
|
|
5601 |
}
|
|
|
5602 |
}
|
|
|
5603 |
|
|
|
5604 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5605 |
switch (field) {
|
|
|
5606 |
case SUCCESS:
|
|
|
5607 |
if (value == null) {
|
|
|
5608 |
unsetSuccess();
|
|
|
5609 |
} else {
|
|
|
5610 |
setSuccess((List<Payment>)value);
|
|
|
5611 |
}
|
|
|
5612 |
break;
|
|
|
5613 |
|
|
|
5614 |
case PE:
|
|
|
5615 |
if (value == null) {
|
|
|
5616 |
unsetPe();
|
|
|
5617 |
} else {
|
|
|
5618 |
setPe((PaymentException)value);
|
|
|
5619 |
}
|
|
|
5620 |
break;
|
|
|
5621 |
|
|
|
5622 |
}
|
|
|
5623 |
}
|
|
|
5624 |
|
|
|
5625 |
public Object getFieldValue(_Fields field) {
|
|
|
5626 |
switch (field) {
|
|
|
5627 |
case SUCCESS:
|
|
|
5628 |
return getSuccess();
|
|
|
5629 |
|
|
|
5630 |
case PE:
|
|
|
5631 |
return getPe();
|
|
|
5632 |
|
|
|
5633 |
}
|
|
|
5634 |
throw new IllegalStateException();
|
|
|
5635 |
}
|
|
|
5636 |
|
|
|
5637 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5638 |
public boolean isSet(_Fields field) {
|
|
|
5639 |
if (field == null) {
|
|
|
5640 |
throw new IllegalArgumentException();
|
|
|
5641 |
}
|
|
|
5642 |
|
|
|
5643 |
switch (field) {
|
|
|
5644 |
case SUCCESS:
|
|
|
5645 |
return isSetSuccess();
|
|
|
5646 |
case PE:
|
|
|
5647 |
return isSetPe();
|
|
|
5648 |
}
|
|
|
5649 |
throw new IllegalStateException();
|
|
|
5650 |
}
|
|
|
5651 |
|
|
|
5652 |
@Override
|
|
|
5653 |
public boolean equals(Object that) {
|
|
|
5654 |
if (that == null)
|
|
|
5655 |
return false;
|
|
|
5656 |
if (that instanceof getPaymentsByCapturedDate_result)
|
|
|
5657 |
return this.equals((getPaymentsByCapturedDate_result)that);
|
|
|
5658 |
return false;
|
|
|
5659 |
}
|
|
|
5660 |
|
|
|
5661 |
public boolean equals(getPaymentsByCapturedDate_result that) {
|
|
|
5662 |
if (that == null)
|
|
|
5663 |
return false;
|
|
|
5664 |
|
|
|
5665 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
5666 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
5667 |
if (this_present_success || that_present_success) {
|
|
|
5668 |
if (!(this_present_success && that_present_success))
|
|
|
5669 |
return false;
|
|
|
5670 |
if (!this.success.equals(that.success))
|
|
|
5671 |
return false;
|
|
|
5672 |
}
|
|
|
5673 |
|
|
|
5674 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
5675 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
5676 |
if (this_present_pe || that_present_pe) {
|
|
|
5677 |
if (!(this_present_pe && that_present_pe))
|
|
|
5678 |
return false;
|
|
|
5679 |
if (!this.pe.equals(that.pe))
|
|
|
5680 |
return false;
|
|
|
5681 |
}
|
|
|
5682 |
|
|
|
5683 |
return true;
|
|
|
5684 |
}
|
|
|
5685 |
|
|
|
5686 |
@Override
|
|
|
5687 |
public int hashCode() {
|
|
|
5688 |
return 0;
|
|
|
5689 |
}
|
|
|
5690 |
|
|
|
5691 |
public int compareTo(getPaymentsByCapturedDate_result other) {
|
|
|
5692 |
if (!getClass().equals(other.getClass())) {
|
|
|
5693 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5694 |
}
|
|
|
5695 |
|
|
|
5696 |
int lastComparison = 0;
|
|
|
5697 |
getPaymentsByCapturedDate_result typedOther = (getPaymentsByCapturedDate_result)other;
|
|
|
5698 |
|
|
|
5699 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
5700 |
if (lastComparison != 0) {
|
|
|
5701 |
return lastComparison;
|
|
|
5702 |
}
|
|
|
5703 |
if (isSetSuccess()) {
|
|
|
5704 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
5705 |
if (lastComparison != 0) {
|
|
|
5706 |
return lastComparison;
|
|
|
5707 |
}
|
|
|
5708 |
}
|
|
|
5709 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
|
|
5710 |
if (lastComparison != 0) {
|
|
|
5711 |
return lastComparison;
|
|
|
5712 |
}
|
|
|
5713 |
if (isSetPe()) {
|
|
|
5714 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
5715 |
if (lastComparison != 0) {
|
|
|
5716 |
return lastComparison;
|
|
|
5717 |
}
|
|
|
5718 |
}
|
|
|
5719 |
return 0;
|
|
|
5720 |
}
|
|
|
5721 |
|
|
|
5722 |
public _Fields fieldForId(int fieldId) {
|
|
|
5723 |
return _Fields.findByThriftId(fieldId);
|
|
|
5724 |
}
|
|
|
5725 |
|
|
|
5726 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5727 |
org.apache.thrift.protocol.TField field;
|
|
|
5728 |
iprot.readStructBegin();
|
|
|
5729 |
while (true)
|
|
|
5730 |
{
|
|
|
5731 |
field = iprot.readFieldBegin();
|
|
|
5732 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
5733 |
break;
|
|
|
5734 |
}
|
|
|
5735 |
switch (field.id) {
|
|
|
5736 |
case 0: // SUCCESS
|
|
|
5737 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
5738 |
{
|
|
|
5739 |
org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
|
|
|
5740 |
this.success = new ArrayList<Payment>(_list20.size);
|
|
|
5741 |
for (int _i21 = 0; _i21 < _list20.size; ++_i21)
|
|
|
5742 |
{
|
|
|
5743 |
Payment _elem22; // required
|
|
|
5744 |
_elem22 = new Payment();
|
|
|
5745 |
_elem22.read(iprot);
|
|
|
5746 |
this.success.add(_elem22);
|
|
|
5747 |
}
|
|
|
5748 |
iprot.readListEnd();
|
|
|
5749 |
}
|
|
|
5750 |
} else {
|
|
|
5751 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5752 |
}
|
|
|
5753 |
break;
|
|
|
5754 |
case 1: // PE
|
|
|
5755 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5756 |
this.pe = new PaymentException();
|
|
|
5757 |
this.pe.read(iprot);
|
|
|
5758 |
} else {
|
|
|
5759 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5760 |
}
|
|
|
5761 |
break;
|
|
|
5762 |
default:
|
|
|
5763 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5764 |
}
|
|
|
5765 |
iprot.readFieldEnd();
|
|
|
5766 |
}
|
|
|
5767 |
iprot.readStructEnd();
|
|
|
5768 |
validate();
|
|
|
5769 |
}
|
|
|
5770 |
|
|
|
5771 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
5772 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5773 |
|
|
|
5774 |
if (this.isSetSuccess()) {
|
|
|
5775 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
5776 |
{
|
|
|
5777 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
5778 |
for (Payment _iter23 : this.success)
|
|
|
5779 |
{
|
|
|
5780 |
_iter23.write(oprot);
|
|
|
5781 |
}
|
|
|
5782 |
oprot.writeListEnd();
|
|
|
5783 |
}
|
|
|
5784 |
oprot.writeFieldEnd();
|
|
|
5785 |
} else if (this.isSetPe()) {
|
|
|
5786 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
5787 |
this.pe.write(oprot);
|
|
|
5788 |
oprot.writeFieldEnd();
|
|
|
5789 |
}
|
|
|
5790 |
oprot.writeFieldStop();
|
|
|
5791 |
oprot.writeStructEnd();
|
|
|
5792 |
}
|
|
|
5793 |
|
|
|
5794 |
@Override
|
|
|
5795 |
public String toString() {
|
|
|
5796 |
StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_result(");
|
|
|
5797 |
boolean first = true;
|
|
|
5798 |
|
|
|
5799 |
sb.append("success:");
|
|
|
5800 |
if (this.success == null) {
|
|
|
5801 |
sb.append("null");
|
|
|
5802 |
} else {
|
|
|
5803 |
sb.append(this.success);
|
|
|
5804 |
}
|
|
|
5805 |
first = false;
|
|
|
5806 |
if (!first) sb.append(", ");
|
|
|
5807 |
sb.append("pe:");
|
|
|
5808 |
if (this.pe == null) {
|
|
|
5809 |
sb.append("null");
|
|
|
5810 |
} else {
|
|
|
5811 |
sb.append(this.pe);
|
|
|
5812 |
}
|
|
|
5813 |
first = false;
|
|
|
5814 |
sb.append(")");
|
|
|
5815 |
return sb.toString();
|
|
|
5816 |
}
|
|
|
5817 |
|
|
|
5818 |
public void validate() throws org.apache.thrift.TException {
|
|
|
5819 |
// check for required fields
|
|
|
5820 |
}
|
|
|
5821 |
|
|
|
5822 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5823 |
try {
|
|
|
5824 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5825 |
} catch (org.apache.thrift.TException te) {
|
|
|
5826 |
throw new java.io.IOException(te);
|
|
|
5827 |
}
|
|
|
5828 |
}
|
|
|
5829 |
|
|
|
5830 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5831 |
try {
|
|
|
5832 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5833 |
} catch (org.apache.thrift.TException te) {
|
|
|
5834 |
throw new java.io.IOException(te);
|
|
|
5835 |
}
|
|
|
5836 |
}
|
|
|
5837 |
|
|
|
5838 |
}
|
|
|
5839 |
|
| 3430 |
rajveer |
5840 |
public static class getPaymentGateway_args implements org.apache.thrift.TBase<getPaymentGateway_args, getPaymentGateway_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5841 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_args");
|
| 123 |
ashish |
5842 |
|
| 3430 |
rajveer |
5843 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 123 |
ashish |
5844 |
|
| 3430 |
rajveer |
5845 |
private long id; // required
|
| 123 |
ashish |
5846 |
|
|
|
5847 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5848 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 695 |
rajveer |
5849 |
ID((short)1, "id");
|
| 123 |
ashish |
5850 |
|
|
|
5851 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5852 |
|
|
|
5853 |
static {
|
|
|
5854 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5855 |
byName.put(field.getFieldName(), field);
|
|
|
5856 |
}
|
|
|
5857 |
}
|
|
|
5858 |
|
|
|
5859 |
/**
|
|
|
5860 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5861 |
*/
|
|
|
5862 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5863 |
switch(fieldId) {
|
|
|
5864 |
case 1: // ID
|
|
|
5865 |
return ID;
|
|
|
5866 |
default:
|
|
|
5867 |
return null;
|
|
|
5868 |
}
|
| 123 |
ashish |
5869 |
}
|
|
|
5870 |
|
|
|
5871 |
/**
|
|
|
5872 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5873 |
* if it is not found.
|
|
|
5874 |
*/
|
|
|
5875 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5876 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5877 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5878 |
return fields;
|
|
|
5879 |
}
|
|
|
5880 |
|
|
|
5881 |
/**
|
|
|
5882 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5883 |
*/
|
|
|
5884 |
public static _Fields findByName(String name) {
|
|
|
5885 |
return byName.get(name);
|
|
|
5886 |
}
|
|
|
5887 |
|
|
|
5888 |
private final short _thriftId;
|
|
|
5889 |
private final String _fieldName;
|
|
|
5890 |
|
|
|
5891 |
_Fields(short thriftId, String fieldName) {
|
|
|
5892 |
_thriftId = thriftId;
|
|
|
5893 |
_fieldName = fieldName;
|
|
|
5894 |
}
|
|
|
5895 |
|
|
|
5896 |
public short getThriftFieldId() {
|
|
|
5897 |
return _thriftId;
|
|
|
5898 |
}
|
|
|
5899 |
|
|
|
5900 |
public String getFieldName() {
|
|
|
5901 |
return _fieldName;
|
|
|
5902 |
}
|
|
|
5903 |
}
|
|
|
5904 |
|
|
|
5905 |
// isset id assignments
|
| 420 |
ashish |
5906 |
private static final int __ID_ISSET_ID = 0;
|
| 123 |
ashish |
5907 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
5908 |
|
| 3430 |
rajveer |
5909 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
5910 |
static {
|
| 3430 |
rajveer |
5911 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5912 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5913 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5914 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5915 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_args.class, metaDataMap);
|
| 123 |
ashish |
5916 |
}
|
|
|
5917 |
|
| 695 |
rajveer |
5918 |
public getPaymentGateway_args() {
|
| 123 |
ashish |
5919 |
}
|
|
|
5920 |
|
| 695 |
rajveer |
5921 |
public getPaymentGateway_args(
|
|
|
5922 |
long id)
|
| 123 |
ashish |
5923 |
{
|
|
|
5924 |
this();
|
| 420 |
ashish |
5925 |
this.id = id;
|
|
|
5926 |
setIdIsSet(true);
|
| 123 |
ashish |
5927 |
}
|
|
|
5928 |
|
|
|
5929 |
/**
|
|
|
5930 |
* Performs a deep copy on <i>other</i>.
|
|
|
5931 |
*/
|
| 695 |
rajveer |
5932 |
public getPaymentGateway_args(getPaymentGateway_args other) {
|
| 123 |
ashish |
5933 |
__isset_bit_vector.clear();
|
|
|
5934 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 420 |
ashish |
5935 |
this.id = other.id;
|
| 123 |
ashish |
5936 |
}
|
|
|
5937 |
|
| 695 |
rajveer |
5938 |
public getPaymentGateway_args deepCopy() {
|
|
|
5939 |
return new getPaymentGateway_args(this);
|
| 123 |
ashish |
5940 |
}
|
|
|
5941 |
|
| 3430 |
rajveer |
5942 |
@Override
|
|
|
5943 |
public void clear() {
|
|
|
5944 |
setIdIsSet(false);
|
|
|
5945 |
this.id = 0;
|
| 123 |
ashish |
5946 |
}
|
|
|
5947 |
|
| 420 |
ashish |
5948 |
public long getId() {
|
|
|
5949 |
return this.id;
|
| 123 |
ashish |
5950 |
}
|
|
|
5951 |
|
| 3430 |
rajveer |
5952 |
public void setId(long id) {
|
| 420 |
ashish |
5953 |
this.id = id;
|
|
|
5954 |
setIdIsSet(true);
|
| 123 |
ashish |
5955 |
}
|
|
|
5956 |
|
| 420 |
ashish |
5957 |
public void unsetId() {
|
|
|
5958 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
| 123 |
ashish |
5959 |
}
|
|
|
5960 |
|
| 3430 |
rajveer |
5961 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
5962 |
public boolean isSetId() {
|
|
|
5963 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
| 123 |
ashish |
5964 |
}
|
|
|
5965 |
|
| 420 |
ashish |
5966 |
public void setIdIsSet(boolean value) {
|
|
|
5967 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
| 123 |
ashish |
5968 |
}
|
|
|
5969 |
|
|
|
5970 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5971 |
switch (field) {
|
| 420 |
ashish |
5972 |
case ID:
|
| 123 |
ashish |
5973 |
if (value == null) {
|
| 420 |
ashish |
5974 |
unsetId();
|
| 123 |
ashish |
5975 |
} else {
|
| 420 |
ashish |
5976 |
setId((Long)value);
|
| 123 |
ashish |
5977 |
}
|
|
|
5978 |
break;
|
|
|
5979 |
|
|
|
5980 |
}
|
|
|
5981 |
}
|
|
|
5982 |
|
|
|
5983 |
public Object getFieldValue(_Fields field) {
|
|
|
5984 |
switch (field) {
|
| 420 |
ashish |
5985 |
case ID:
|
| 3430 |
rajveer |
5986 |
return Long.valueOf(getId());
|
| 123 |
ashish |
5987 |
|
|
|
5988 |
}
|
|
|
5989 |
throw new IllegalStateException();
|
|
|
5990 |
}
|
|
|
5991 |
|
| 3430 |
rajveer |
5992 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5993 |
public boolean isSet(_Fields field) {
|
|
|
5994 |
if (field == null) {
|
|
|
5995 |
throw new IllegalArgumentException();
|
|
|
5996 |
}
|
| 123 |
ashish |
5997 |
|
|
|
5998 |
switch (field) {
|
| 420 |
ashish |
5999 |
case ID:
|
|
|
6000 |
return isSetId();
|
| 123 |
ashish |
6001 |
}
|
|
|
6002 |
throw new IllegalStateException();
|
|
|
6003 |
}
|
|
|
6004 |
|
|
|
6005 |
@Override
|
|
|
6006 |
public boolean equals(Object that) {
|
|
|
6007 |
if (that == null)
|
|
|
6008 |
return false;
|
| 695 |
rajveer |
6009 |
if (that instanceof getPaymentGateway_args)
|
|
|
6010 |
return this.equals((getPaymentGateway_args)that);
|
| 123 |
ashish |
6011 |
return false;
|
|
|
6012 |
}
|
|
|
6013 |
|
| 695 |
rajveer |
6014 |
public boolean equals(getPaymentGateway_args that) {
|
| 123 |
ashish |
6015 |
if (that == null)
|
|
|
6016 |
return false;
|
|
|
6017 |
|
| 420 |
ashish |
6018 |
boolean this_present_id = true;
|
|
|
6019 |
boolean that_present_id = true;
|
|
|
6020 |
if (this_present_id || that_present_id) {
|
|
|
6021 |
if (!(this_present_id && that_present_id))
|
| 123 |
ashish |
6022 |
return false;
|
| 420 |
ashish |
6023 |
if (this.id != that.id)
|
| 123 |
ashish |
6024 |
return false;
|
|
|
6025 |
}
|
|
|
6026 |
|
|
|
6027 |
return true;
|
|
|
6028 |
}
|
|
|
6029 |
|
|
|
6030 |
@Override
|
|
|
6031 |
public int hashCode() {
|
|
|
6032 |
return 0;
|
|
|
6033 |
}
|
|
|
6034 |
|
| 695 |
rajveer |
6035 |
public int compareTo(getPaymentGateway_args other) {
|
| 123 |
ashish |
6036 |
if (!getClass().equals(other.getClass())) {
|
|
|
6037 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6038 |
}
|
|
|
6039 |
|
|
|
6040 |
int lastComparison = 0;
|
| 695 |
rajveer |
6041 |
getPaymentGateway_args typedOther = (getPaymentGateway_args)other;
|
| 123 |
ashish |
6042 |
|
| 3430 |
rajveer |
6043 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| 123 |
ashish |
6044 |
if (lastComparison != 0) {
|
|
|
6045 |
return lastComparison;
|
|
|
6046 |
}
|
| 3430 |
rajveer |
6047 |
if (isSetId()) {
|
|
|
6048 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
6049 |
if (lastComparison != 0) {
|
|
|
6050 |
return lastComparison;
|
|
|
6051 |
}
|
| 123 |
ashish |
6052 |
}
|
|
|
6053 |
return 0;
|
|
|
6054 |
}
|
|
|
6055 |
|
| 3430 |
rajveer |
6056 |
public _Fields fieldForId(int fieldId) {
|
|
|
6057 |
return _Fields.findByThriftId(fieldId);
|
|
|
6058 |
}
|
|
|
6059 |
|
|
|
6060 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6061 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
6062 |
iprot.readStructBegin();
|
|
|
6063 |
while (true)
|
|
|
6064 |
{
|
|
|
6065 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6066 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
6067 |
break;
|
|
|
6068 |
}
|
| 3430 |
rajveer |
6069 |
switch (field.id) {
|
|
|
6070 |
case 1: // ID
|
|
|
6071 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6072 |
this.id = iprot.readI64();
|
|
|
6073 |
setIdIsSet(true);
|
|
|
6074 |
} else {
|
|
|
6075 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6076 |
}
|
|
|
6077 |
break;
|
|
|
6078 |
default:
|
|
|
6079 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
6080 |
}
|
| 3430 |
rajveer |
6081 |
iprot.readFieldEnd();
|
| 123 |
ashish |
6082 |
}
|
|
|
6083 |
iprot.readStructEnd();
|
|
|
6084 |
validate();
|
|
|
6085 |
}
|
|
|
6086 |
|
| 3430 |
rajveer |
6087 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
6088 |
validate();
|
|
|
6089 |
|
|
|
6090 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 420 |
ashish |
6091 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
6092 |
oprot.writeI64(this.id);
|
| 123 |
ashish |
6093 |
oprot.writeFieldEnd();
|
|
|
6094 |
oprot.writeFieldStop();
|
|
|
6095 |
oprot.writeStructEnd();
|
|
|
6096 |
}
|
|
|
6097 |
|
|
|
6098 |
@Override
|
|
|
6099 |
public String toString() {
|
| 695 |
rajveer |
6100 |
StringBuilder sb = new StringBuilder("getPaymentGateway_args(");
|
| 123 |
ashish |
6101 |
boolean first = true;
|
|
|
6102 |
|
| 420 |
ashish |
6103 |
sb.append("id:");
|
|
|
6104 |
sb.append(this.id);
|
| 123 |
ashish |
6105 |
first = false;
|
|
|
6106 |
sb.append(")");
|
|
|
6107 |
return sb.toString();
|
|
|
6108 |
}
|
|
|
6109 |
|
| 3430 |
rajveer |
6110 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
6111 |
// check for required fields
|
|
|
6112 |
}
|
|
|
6113 |
|
| 3430 |
rajveer |
6114 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6115 |
try {
|
|
|
6116 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6117 |
} catch (org.apache.thrift.TException te) {
|
|
|
6118 |
throw new java.io.IOException(te);
|
|
|
6119 |
}
|
|
|
6120 |
}
|
|
|
6121 |
|
|
|
6122 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6123 |
try {
|
|
|
6124 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
6125 |
__isset_bit_vector = new BitSet(1);
|
|
|
6126 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6127 |
} catch (org.apache.thrift.TException te) {
|
|
|
6128 |
throw new java.io.IOException(te);
|
|
|
6129 |
}
|
|
|
6130 |
}
|
|
|
6131 |
|
| 123 |
ashish |
6132 |
}
|
|
|
6133 |
|
| 3430 |
rajveer |
6134 |
public static class getPaymentGateway_result implements org.apache.thrift.TBase<getPaymentGateway_result, getPaymentGateway_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6135 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_result");
|
| 123 |
ashish |
6136 |
|
| 3430 |
rajveer |
6137 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
|
|
6138 |
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);
|
| 123 |
ashish |
6139 |
|
| 3430 |
rajveer |
6140 |
private PaymentGateway success; // required
|
|
|
6141 |
private PaymentException pe; // required
|
| 123 |
ashish |
6142 |
|
|
|
6143 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6144 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 420 |
ashish |
6145 |
SUCCESS((short)0, "success"),
|
|
|
6146 |
PE((short)1, "pe");
|
|
|
6147 |
|
|
|
6148 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6149 |
|
|
|
6150 |
static {
|
|
|
6151 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6152 |
byName.put(field.getFieldName(), field);
|
|
|
6153 |
}
|
|
|
6154 |
}
|
|
|
6155 |
|
|
|
6156 |
/**
|
|
|
6157 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6158 |
*/
|
|
|
6159 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6160 |
switch(fieldId) {
|
|
|
6161 |
case 0: // SUCCESS
|
|
|
6162 |
return SUCCESS;
|
|
|
6163 |
case 1: // PE
|
|
|
6164 |
return PE;
|
|
|
6165 |
default:
|
|
|
6166 |
return null;
|
|
|
6167 |
}
|
| 420 |
ashish |
6168 |
}
|
|
|
6169 |
|
|
|
6170 |
/**
|
|
|
6171 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6172 |
* if it is not found.
|
|
|
6173 |
*/
|
|
|
6174 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6175 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6176 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6177 |
return fields;
|
|
|
6178 |
}
|
|
|
6179 |
|
|
|
6180 |
/**
|
|
|
6181 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6182 |
*/
|
|
|
6183 |
public static _Fields findByName(String name) {
|
|
|
6184 |
return byName.get(name);
|
|
|
6185 |
}
|
|
|
6186 |
|
|
|
6187 |
private final short _thriftId;
|
|
|
6188 |
private final String _fieldName;
|
|
|
6189 |
|
|
|
6190 |
_Fields(short thriftId, String fieldName) {
|
|
|
6191 |
_thriftId = thriftId;
|
|
|
6192 |
_fieldName = fieldName;
|
|
|
6193 |
}
|
|
|
6194 |
|
|
|
6195 |
public short getThriftFieldId() {
|
|
|
6196 |
return _thriftId;
|
|
|
6197 |
}
|
|
|
6198 |
|
|
|
6199 |
public String getFieldName() {
|
|
|
6200 |
return _fieldName;
|
|
|
6201 |
}
|
|
|
6202 |
}
|
|
|
6203 |
|
|
|
6204 |
// isset id assignments
|
|
|
6205 |
|
| 3430 |
rajveer |
6206 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
6207 |
static {
|
| 3430 |
rajveer |
6208 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6209 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6210 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class)));
|
|
|
6211 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6212 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
6213 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6214 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_result.class, metaDataMap);
|
| 420 |
ashish |
6215 |
}
|
|
|
6216 |
|
| 695 |
rajveer |
6217 |
public getPaymentGateway_result() {
|
| 420 |
ashish |
6218 |
}
|
|
|
6219 |
|
| 695 |
rajveer |
6220 |
public getPaymentGateway_result(
|
|
|
6221 |
PaymentGateway success,
|
| 420 |
ashish |
6222 |
PaymentException pe)
|
|
|
6223 |
{
|
|
|
6224 |
this();
|
|
|
6225 |
this.success = success;
|
|
|
6226 |
this.pe = pe;
|
|
|
6227 |
}
|
|
|
6228 |
|
|
|
6229 |
/**
|
|
|
6230 |
* Performs a deep copy on <i>other</i>.
|
|
|
6231 |
*/
|
| 695 |
rajveer |
6232 |
public getPaymentGateway_result(getPaymentGateway_result other) {
|
| 420 |
ashish |
6233 |
if (other.isSetSuccess()) {
|
| 695 |
rajveer |
6234 |
this.success = new PaymentGateway(other.success);
|
| 420 |
ashish |
6235 |
}
|
|
|
6236 |
if (other.isSetPe()) {
|
|
|
6237 |
this.pe = new PaymentException(other.pe);
|
|
|
6238 |
}
|
|
|
6239 |
}
|
|
|
6240 |
|
| 695 |
rajveer |
6241 |
public getPaymentGateway_result deepCopy() {
|
|
|
6242 |
return new getPaymentGateway_result(this);
|
| 420 |
ashish |
6243 |
}
|
|
|
6244 |
|
| 3430 |
rajveer |
6245 |
@Override
|
|
|
6246 |
public void clear() {
|
|
|
6247 |
this.success = null;
|
|
|
6248 |
this.pe = null;
|
| 420 |
ashish |
6249 |
}
|
|
|
6250 |
|
| 695 |
rajveer |
6251 |
public PaymentGateway getSuccess() {
|
| 420 |
ashish |
6252 |
return this.success;
|
|
|
6253 |
}
|
|
|
6254 |
|
| 3430 |
rajveer |
6255 |
public void setSuccess(PaymentGateway success) {
|
| 420 |
ashish |
6256 |
this.success = success;
|
|
|
6257 |
}
|
|
|
6258 |
|
|
|
6259 |
public void unsetSuccess() {
|
|
|
6260 |
this.success = null;
|
|
|
6261 |
}
|
|
|
6262 |
|
| 3430 |
rajveer |
6263 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
6264 |
public boolean isSetSuccess() {
|
|
|
6265 |
return this.success != null;
|
|
|
6266 |
}
|
|
|
6267 |
|
|
|
6268 |
public void setSuccessIsSet(boolean value) {
|
|
|
6269 |
if (!value) {
|
|
|
6270 |
this.success = null;
|
|
|
6271 |
}
|
|
|
6272 |
}
|
|
|
6273 |
|
|
|
6274 |
public PaymentException getPe() {
|
|
|
6275 |
return this.pe;
|
|
|
6276 |
}
|
|
|
6277 |
|
| 3430 |
rajveer |
6278 |
public void setPe(PaymentException pe) {
|
| 420 |
ashish |
6279 |
this.pe = pe;
|
|
|
6280 |
}
|
|
|
6281 |
|
|
|
6282 |
public void unsetPe() {
|
|
|
6283 |
this.pe = null;
|
|
|
6284 |
}
|
|
|
6285 |
|
| 3430 |
rajveer |
6286 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
6287 |
public boolean isSetPe() {
|
|
|
6288 |
return this.pe != null;
|
|
|
6289 |
}
|
|
|
6290 |
|
|
|
6291 |
public void setPeIsSet(boolean value) {
|
|
|
6292 |
if (!value) {
|
|
|
6293 |
this.pe = null;
|
|
|
6294 |
}
|
|
|
6295 |
}
|
|
|
6296 |
|
|
|
6297 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6298 |
switch (field) {
|
|
|
6299 |
case SUCCESS:
|
|
|
6300 |
if (value == null) {
|
|
|
6301 |
unsetSuccess();
|
|
|
6302 |
} else {
|
| 695 |
rajveer |
6303 |
setSuccess((PaymentGateway)value);
|
| 420 |
ashish |
6304 |
}
|
|
|
6305 |
break;
|
|
|
6306 |
|
|
|
6307 |
case PE:
|
|
|
6308 |
if (value == null) {
|
|
|
6309 |
unsetPe();
|
|
|
6310 |
} else {
|
|
|
6311 |
setPe((PaymentException)value);
|
|
|
6312 |
}
|
|
|
6313 |
break;
|
|
|
6314 |
|
|
|
6315 |
}
|
|
|
6316 |
}
|
|
|
6317 |
|
|
|
6318 |
public Object getFieldValue(_Fields field) {
|
|
|
6319 |
switch (field) {
|
|
|
6320 |
case SUCCESS:
|
|
|
6321 |
return getSuccess();
|
|
|
6322 |
|
|
|
6323 |
case PE:
|
|
|
6324 |
return getPe();
|
|
|
6325 |
|
|
|
6326 |
}
|
|
|
6327 |
throw new IllegalStateException();
|
|
|
6328 |
}
|
|
|
6329 |
|
| 3430 |
rajveer |
6330 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6331 |
public boolean isSet(_Fields field) {
|
|
|
6332 |
if (field == null) {
|
|
|
6333 |
throw new IllegalArgumentException();
|
|
|
6334 |
}
|
| 420 |
ashish |
6335 |
|
|
|
6336 |
switch (field) {
|
|
|
6337 |
case SUCCESS:
|
|
|
6338 |
return isSetSuccess();
|
|
|
6339 |
case PE:
|
|
|
6340 |
return isSetPe();
|
|
|
6341 |
}
|
|
|
6342 |
throw new IllegalStateException();
|
|
|
6343 |
}
|
|
|
6344 |
|
|
|
6345 |
@Override
|
|
|
6346 |
public boolean equals(Object that) {
|
|
|
6347 |
if (that == null)
|
|
|
6348 |
return false;
|
| 695 |
rajveer |
6349 |
if (that instanceof getPaymentGateway_result)
|
|
|
6350 |
return this.equals((getPaymentGateway_result)that);
|
| 420 |
ashish |
6351 |
return false;
|
|
|
6352 |
}
|
|
|
6353 |
|
| 695 |
rajveer |
6354 |
public boolean equals(getPaymentGateway_result that) {
|
| 420 |
ashish |
6355 |
if (that == null)
|
|
|
6356 |
return false;
|
|
|
6357 |
|
|
|
6358 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6359 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
6360 |
if (this_present_success || that_present_success) {
|
|
|
6361 |
if (!(this_present_success && that_present_success))
|
|
|
6362 |
return false;
|
|
|
6363 |
if (!this.success.equals(that.success))
|
|
|
6364 |
return false;
|
|
|
6365 |
}
|
|
|
6366 |
|
|
|
6367 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
6368 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
6369 |
if (this_present_pe || that_present_pe) {
|
|
|
6370 |
if (!(this_present_pe && that_present_pe))
|
|
|
6371 |
return false;
|
|
|
6372 |
if (!this.pe.equals(that.pe))
|
|
|
6373 |
return false;
|
|
|
6374 |
}
|
|
|
6375 |
|
|
|
6376 |
return true;
|
|
|
6377 |
}
|
|
|
6378 |
|
|
|
6379 |
@Override
|
|
|
6380 |
public int hashCode() {
|
|
|
6381 |
return 0;
|
|
|
6382 |
}
|
|
|
6383 |
|
| 695 |
rajveer |
6384 |
public int compareTo(getPaymentGateway_result other) {
|
|
|
6385 |
if (!getClass().equals(other.getClass())) {
|
|
|
6386 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6387 |
}
|
|
|
6388 |
|
|
|
6389 |
int lastComparison = 0;
|
|
|
6390 |
getPaymentGateway_result typedOther = (getPaymentGateway_result)other;
|
|
|
6391 |
|
| 3430 |
rajveer |
6392 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 695 |
rajveer |
6393 |
if (lastComparison != 0) {
|
|
|
6394 |
return lastComparison;
|
|
|
6395 |
}
|
| 3430 |
rajveer |
6396 |
if (isSetSuccess()) {
|
|
|
6397 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6398 |
if (lastComparison != 0) {
|
|
|
6399 |
return lastComparison;
|
|
|
6400 |
}
|
| 695 |
rajveer |
6401 |
}
|
| 3430 |
rajveer |
6402 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 695 |
rajveer |
6403 |
if (lastComparison != 0) {
|
|
|
6404 |
return lastComparison;
|
|
|
6405 |
}
|
| 3430 |
rajveer |
6406 |
if (isSetPe()) {
|
|
|
6407 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
6408 |
if (lastComparison != 0) {
|
|
|
6409 |
return lastComparison;
|
|
|
6410 |
}
|
| 695 |
rajveer |
6411 |
}
|
|
|
6412 |
return 0;
|
|
|
6413 |
}
|
|
|
6414 |
|
| 3430 |
rajveer |
6415 |
public _Fields fieldForId(int fieldId) {
|
|
|
6416 |
return _Fields.findByThriftId(fieldId);
|
|
|
6417 |
}
|
|
|
6418 |
|
|
|
6419 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6420 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
6421 |
iprot.readStructBegin();
|
|
|
6422 |
while (true)
|
|
|
6423 |
{
|
|
|
6424 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6425 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
6426 |
break;
|
|
|
6427 |
}
|
| 3430 |
rajveer |
6428 |
switch (field.id) {
|
|
|
6429 |
case 0: // SUCCESS
|
|
|
6430 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6431 |
this.success = new PaymentGateway();
|
|
|
6432 |
this.success.read(iprot);
|
|
|
6433 |
} else {
|
|
|
6434 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6435 |
}
|
|
|
6436 |
break;
|
|
|
6437 |
case 1: // PE
|
|
|
6438 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6439 |
this.pe = new PaymentException();
|
|
|
6440 |
this.pe.read(iprot);
|
|
|
6441 |
} else {
|
|
|
6442 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6443 |
}
|
|
|
6444 |
break;
|
|
|
6445 |
default:
|
|
|
6446 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
6447 |
}
|
| 3430 |
rajveer |
6448 |
iprot.readFieldEnd();
|
| 420 |
ashish |
6449 |
}
|
|
|
6450 |
iprot.readStructEnd();
|
|
|
6451 |
validate();
|
|
|
6452 |
}
|
|
|
6453 |
|
| 3430 |
rajveer |
6454 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
6455 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6456 |
|
|
|
6457 |
if (this.isSetSuccess()) {
|
|
|
6458 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 695 |
rajveer |
6459 |
this.success.write(oprot);
|
| 420 |
ashish |
6460 |
oprot.writeFieldEnd();
|
|
|
6461 |
} else if (this.isSetPe()) {
|
|
|
6462 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
6463 |
this.pe.write(oprot);
|
|
|
6464 |
oprot.writeFieldEnd();
|
|
|
6465 |
}
|
|
|
6466 |
oprot.writeFieldStop();
|
|
|
6467 |
oprot.writeStructEnd();
|
|
|
6468 |
}
|
|
|
6469 |
|
|
|
6470 |
@Override
|
|
|
6471 |
public String toString() {
|
| 695 |
rajveer |
6472 |
StringBuilder sb = new StringBuilder("getPaymentGateway_result(");
|
| 420 |
ashish |
6473 |
boolean first = true;
|
|
|
6474 |
|
|
|
6475 |
sb.append("success:");
|
|
|
6476 |
if (this.success == null) {
|
|
|
6477 |
sb.append("null");
|
|
|
6478 |
} else {
|
|
|
6479 |
sb.append(this.success);
|
|
|
6480 |
}
|
|
|
6481 |
first = false;
|
|
|
6482 |
if (!first) sb.append(", ");
|
|
|
6483 |
sb.append("pe:");
|
|
|
6484 |
if (this.pe == null) {
|
|
|
6485 |
sb.append("null");
|
|
|
6486 |
} else {
|
|
|
6487 |
sb.append(this.pe);
|
|
|
6488 |
}
|
|
|
6489 |
first = false;
|
|
|
6490 |
sb.append(")");
|
|
|
6491 |
return sb.toString();
|
|
|
6492 |
}
|
|
|
6493 |
|
| 3430 |
rajveer |
6494 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
6495 |
// check for required fields
|
|
|
6496 |
}
|
|
|
6497 |
|
| 3430 |
rajveer |
6498 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6499 |
try {
|
|
|
6500 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6501 |
} catch (org.apache.thrift.TException te) {
|
|
|
6502 |
throw new java.io.IOException(te);
|
|
|
6503 |
}
|
|
|
6504 |
}
|
|
|
6505 |
|
|
|
6506 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6507 |
try {
|
|
|
6508 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6509 |
} catch (org.apache.thrift.TException te) {
|
|
|
6510 |
throw new java.io.IOException(te);
|
|
|
6511 |
}
|
|
|
6512 |
}
|
|
|
6513 |
|
| 420 |
ashish |
6514 |
}
|
|
|
6515 |
|
| 4600 |
varun.gupt |
6516 |
public static class getActivePaymentGateways_args implements org.apache.thrift.TBase<getActivePaymentGateways_args, getActivePaymentGateways_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6517 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_args");
|
|
|
6518 |
|
|
|
6519 |
|
|
|
6520 |
|
|
|
6521 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6522 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6523 |
;
|
|
|
6524 |
|
|
|
6525 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6526 |
|
|
|
6527 |
static {
|
|
|
6528 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6529 |
byName.put(field.getFieldName(), field);
|
|
|
6530 |
}
|
|
|
6531 |
}
|
|
|
6532 |
|
|
|
6533 |
/**
|
|
|
6534 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6535 |
*/
|
|
|
6536 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6537 |
switch(fieldId) {
|
|
|
6538 |
default:
|
|
|
6539 |
return null;
|
|
|
6540 |
}
|
|
|
6541 |
}
|
|
|
6542 |
|
|
|
6543 |
/**
|
|
|
6544 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6545 |
* if it is not found.
|
|
|
6546 |
*/
|
|
|
6547 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6548 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6549 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6550 |
return fields;
|
|
|
6551 |
}
|
|
|
6552 |
|
|
|
6553 |
/**
|
|
|
6554 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6555 |
*/
|
|
|
6556 |
public static _Fields findByName(String name) {
|
|
|
6557 |
return byName.get(name);
|
|
|
6558 |
}
|
|
|
6559 |
|
|
|
6560 |
private final short _thriftId;
|
|
|
6561 |
private final String _fieldName;
|
|
|
6562 |
|
|
|
6563 |
_Fields(short thriftId, String fieldName) {
|
|
|
6564 |
_thriftId = thriftId;
|
|
|
6565 |
_fieldName = fieldName;
|
|
|
6566 |
}
|
|
|
6567 |
|
|
|
6568 |
public short getThriftFieldId() {
|
|
|
6569 |
return _thriftId;
|
|
|
6570 |
}
|
|
|
6571 |
|
|
|
6572 |
public String getFieldName() {
|
|
|
6573 |
return _fieldName;
|
|
|
6574 |
}
|
|
|
6575 |
}
|
|
|
6576 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6577 |
static {
|
|
|
6578 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6579 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6580 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_args.class, metaDataMap);
|
|
|
6581 |
}
|
|
|
6582 |
|
|
|
6583 |
public getActivePaymentGateways_args() {
|
|
|
6584 |
}
|
|
|
6585 |
|
|
|
6586 |
/**
|
|
|
6587 |
* Performs a deep copy on <i>other</i>.
|
|
|
6588 |
*/
|
|
|
6589 |
public getActivePaymentGateways_args(getActivePaymentGateways_args other) {
|
|
|
6590 |
}
|
|
|
6591 |
|
|
|
6592 |
public getActivePaymentGateways_args deepCopy() {
|
|
|
6593 |
return new getActivePaymentGateways_args(this);
|
|
|
6594 |
}
|
|
|
6595 |
|
|
|
6596 |
@Override
|
|
|
6597 |
public void clear() {
|
|
|
6598 |
}
|
|
|
6599 |
|
|
|
6600 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6601 |
switch (field) {
|
|
|
6602 |
}
|
|
|
6603 |
}
|
|
|
6604 |
|
|
|
6605 |
public Object getFieldValue(_Fields field) {
|
|
|
6606 |
switch (field) {
|
|
|
6607 |
}
|
|
|
6608 |
throw new IllegalStateException();
|
|
|
6609 |
}
|
|
|
6610 |
|
|
|
6611 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6612 |
public boolean isSet(_Fields field) {
|
|
|
6613 |
if (field == null) {
|
|
|
6614 |
throw new IllegalArgumentException();
|
|
|
6615 |
}
|
|
|
6616 |
|
|
|
6617 |
switch (field) {
|
|
|
6618 |
}
|
|
|
6619 |
throw new IllegalStateException();
|
|
|
6620 |
}
|
|
|
6621 |
|
|
|
6622 |
@Override
|
|
|
6623 |
public boolean equals(Object that) {
|
|
|
6624 |
if (that == null)
|
|
|
6625 |
return false;
|
|
|
6626 |
if (that instanceof getActivePaymentGateways_args)
|
|
|
6627 |
return this.equals((getActivePaymentGateways_args)that);
|
|
|
6628 |
return false;
|
|
|
6629 |
}
|
|
|
6630 |
|
|
|
6631 |
public boolean equals(getActivePaymentGateways_args that) {
|
|
|
6632 |
if (that == null)
|
|
|
6633 |
return false;
|
|
|
6634 |
|
|
|
6635 |
return true;
|
|
|
6636 |
}
|
|
|
6637 |
|
|
|
6638 |
@Override
|
|
|
6639 |
public int hashCode() {
|
|
|
6640 |
return 0;
|
|
|
6641 |
}
|
|
|
6642 |
|
|
|
6643 |
public int compareTo(getActivePaymentGateways_args other) {
|
|
|
6644 |
if (!getClass().equals(other.getClass())) {
|
|
|
6645 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6646 |
}
|
|
|
6647 |
|
|
|
6648 |
int lastComparison = 0;
|
|
|
6649 |
getActivePaymentGateways_args typedOther = (getActivePaymentGateways_args)other;
|
|
|
6650 |
|
|
|
6651 |
return 0;
|
|
|
6652 |
}
|
|
|
6653 |
|
|
|
6654 |
public _Fields fieldForId(int fieldId) {
|
|
|
6655 |
return _Fields.findByThriftId(fieldId);
|
|
|
6656 |
}
|
|
|
6657 |
|
|
|
6658 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6659 |
org.apache.thrift.protocol.TField field;
|
|
|
6660 |
iprot.readStructBegin();
|
|
|
6661 |
while (true)
|
|
|
6662 |
{
|
|
|
6663 |
field = iprot.readFieldBegin();
|
|
|
6664 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
6665 |
break;
|
|
|
6666 |
}
|
|
|
6667 |
switch (field.id) {
|
|
|
6668 |
default:
|
|
|
6669 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6670 |
}
|
|
|
6671 |
iprot.readFieldEnd();
|
|
|
6672 |
}
|
|
|
6673 |
iprot.readStructEnd();
|
|
|
6674 |
validate();
|
|
|
6675 |
}
|
|
|
6676 |
|
|
|
6677 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
6678 |
validate();
|
|
|
6679 |
|
|
|
6680 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6681 |
oprot.writeFieldStop();
|
|
|
6682 |
oprot.writeStructEnd();
|
|
|
6683 |
}
|
|
|
6684 |
|
|
|
6685 |
@Override
|
|
|
6686 |
public String toString() {
|
|
|
6687 |
StringBuilder sb = new StringBuilder("getActivePaymentGateways_args(");
|
|
|
6688 |
boolean first = true;
|
|
|
6689 |
|
|
|
6690 |
sb.append(")");
|
|
|
6691 |
return sb.toString();
|
|
|
6692 |
}
|
|
|
6693 |
|
|
|
6694 |
public void validate() throws org.apache.thrift.TException {
|
|
|
6695 |
// check for required fields
|
|
|
6696 |
}
|
|
|
6697 |
|
|
|
6698 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6699 |
try {
|
|
|
6700 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6701 |
} catch (org.apache.thrift.TException te) {
|
|
|
6702 |
throw new java.io.IOException(te);
|
|
|
6703 |
}
|
|
|
6704 |
}
|
|
|
6705 |
|
|
|
6706 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6707 |
try {
|
|
|
6708 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6709 |
} catch (org.apache.thrift.TException te) {
|
|
|
6710 |
throw new java.io.IOException(te);
|
|
|
6711 |
}
|
|
|
6712 |
}
|
|
|
6713 |
|
|
|
6714 |
}
|
|
|
6715 |
|
|
|
6716 |
public static class getActivePaymentGateways_result implements org.apache.thrift.TBase<getActivePaymentGateways_result, getActivePaymentGateways_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6717 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_result");
|
|
|
6718 |
|
|
|
6719 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
|
|
6720 |
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);
|
|
|
6721 |
|
|
|
6722 |
private List<PaymentGateway> success; // required
|
|
|
6723 |
private PaymentException pe; // required
|
|
|
6724 |
|
|
|
6725 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6726 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
6727 |
SUCCESS((short)0, "success"),
|
|
|
6728 |
PE((short)1, "pe");
|
|
|
6729 |
|
|
|
6730 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6731 |
|
|
|
6732 |
static {
|
|
|
6733 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6734 |
byName.put(field.getFieldName(), field);
|
|
|
6735 |
}
|
|
|
6736 |
}
|
|
|
6737 |
|
|
|
6738 |
/**
|
|
|
6739 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6740 |
*/
|
|
|
6741 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6742 |
switch(fieldId) {
|
|
|
6743 |
case 0: // SUCCESS
|
|
|
6744 |
return SUCCESS;
|
|
|
6745 |
case 1: // PE
|
|
|
6746 |
return PE;
|
|
|
6747 |
default:
|
|
|
6748 |
return null;
|
|
|
6749 |
}
|
|
|
6750 |
}
|
|
|
6751 |
|
|
|
6752 |
/**
|
|
|
6753 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6754 |
* if it is not found.
|
|
|
6755 |
*/
|
|
|
6756 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6757 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6758 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6759 |
return fields;
|
|
|
6760 |
}
|
|
|
6761 |
|
|
|
6762 |
/**
|
|
|
6763 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6764 |
*/
|
|
|
6765 |
public static _Fields findByName(String name) {
|
|
|
6766 |
return byName.get(name);
|
|
|
6767 |
}
|
|
|
6768 |
|
|
|
6769 |
private final short _thriftId;
|
|
|
6770 |
private final String _fieldName;
|
|
|
6771 |
|
|
|
6772 |
_Fields(short thriftId, String fieldName) {
|
|
|
6773 |
_thriftId = thriftId;
|
|
|
6774 |
_fieldName = fieldName;
|
|
|
6775 |
}
|
|
|
6776 |
|
|
|
6777 |
public short getThriftFieldId() {
|
|
|
6778 |
return _thriftId;
|
|
|
6779 |
}
|
|
|
6780 |
|
|
|
6781 |
public String getFieldName() {
|
|
|
6782 |
return _fieldName;
|
|
|
6783 |
}
|
|
|
6784 |
}
|
|
|
6785 |
|
|
|
6786 |
// isset id assignments
|
|
|
6787 |
|
|
|
6788 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
6789 |
static {
|
|
|
6790 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6791 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6792 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
6793 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class))));
|
|
|
6794 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6795 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
6796 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6797 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_result.class, metaDataMap);
|
|
|
6798 |
}
|
|
|
6799 |
|
|
|
6800 |
public getActivePaymentGateways_result() {
|
|
|
6801 |
}
|
|
|
6802 |
|
|
|
6803 |
public getActivePaymentGateways_result(
|
|
|
6804 |
List<PaymentGateway> success,
|
|
|
6805 |
PaymentException pe)
|
|
|
6806 |
{
|
|
|
6807 |
this();
|
|
|
6808 |
this.success = success;
|
|
|
6809 |
this.pe = pe;
|
|
|
6810 |
}
|
|
|
6811 |
|
|
|
6812 |
/**
|
|
|
6813 |
* Performs a deep copy on <i>other</i>.
|
|
|
6814 |
*/
|
|
|
6815 |
public getActivePaymentGateways_result(getActivePaymentGateways_result other) {
|
|
|
6816 |
if (other.isSetSuccess()) {
|
|
|
6817 |
List<PaymentGateway> __this__success = new ArrayList<PaymentGateway>();
|
|
|
6818 |
for (PaymentGateway other_element : other.success) {
|
|
|
6819 |
__this__success.add(new PaymentGateway(other_element));
|
|
|
6820 |
}
|
|
|
6821 |
this.success = __this__success;
|
|
|
6822 |
}
|
|
|
6823 |
if (other.isSetPe()) {
|
|
|
6824 |
this.pe = new PaymentException(other.pe);
|
|
|
6825 |
}
|
|
|
6826 |
}
|
|
|
6827 |
|
|
|
6828 |
public getActivePaymentGateways_result deepCopy() {
|
|
|
6829 |
return new getActivePaymentGateways_result(this);
|
|
|
6830 |
}
|
|
|
6831 |
|
|
|
6832 |
@Override
|
|
|
6833 |
public void clear() {
|
|
|
6834 |
this.success = null;
|
|
|
6835 |
this.pe = null;
|
|
|
6836 |
}
|
|
|
6837 |
|
|
|
6838 |
public int getSuccessSize() {
|
|
|
6839 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
6840 |
}
|
|
|
6841 |
|
|
|
6842 |
public java.util.Iterator<PaymentGateway> getSuccessIterator() {
|
|
|
6843 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
6844 |
}
|
|
|
6845 |
|
|
|
6846 |
public void addToSuccess(PaymentGateway elem) {
|
|
|
6847 |
if (this.success == null) {
|
|
|
6848 |
this.success = new ArrayList<PaymentGateway>();
|
|
|
6849 |
}
|
|
|
6850 |
this.success.add(elem);
|
|
|
6851 |
}
|
|
|
6852 |
|
|
|
6853 |
public List<PaymentGateway> getSuccess() {
|
|
|
6854 |
return this.success;
|
|
|
6855 |
}
|
|
|
6856 |
|
|
|
6857 |
public void setSuccess(List<PaymentGateway> success) {
|
|
|
6858 |
this.success = success;
|
|
|
6859 |
}
|
|
|
6860 |
|
|
|
6861 |
public void unsetSuccess() {
|
|
|
6862 |
this.success = null;
|
|
|
6863 |
}
|
|
|
6864 |
|
|
|
6865 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
6866 |
public boolean isSetSuccess() {
|
|
|
6867 |
return this.success != null;
|
|
|
6868 |
}
|
|
|
6869 |
|
|
|
6870 |
public void setSuccessIsSet(boolean value) {
|
|
|
6871 |
if (!value) {
|
|
|
6872 |
this.success = null;
|
|
|
6873 |
}
|
|
|
6874 |
}
|
|
|
6875 |
|
|
|
6876 |
public PaymentException getPe() {
|
|
|
6877 |
return this.pe;
|
|
|
6878 |
}
|
|
|
6879 |
|
|
|
6880 |
public void setPe(PaymentException pe) {
|
|
|
6881 |
this.pe = pe;
|
|
|
6882 |
}
|
|
|
6883 |
|
|
|
6884 |
public void unsetPe() {
|
|
|
6885 |
this.pe = null;
|
|
|
6886 |
}
|
|
|
6887 |
|
|
|
6888 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
|
|
6889 |
public boolean isSetPe() {
|
|
|
6890 |
return this.pe != null;
|
|
|
6891 |
}
|
|
|
6892 |
|
|
|
6893 |
public void setPeIsSet(boolean value) {
|
|
|
6894 |
if (!value) {
|
|
|
6895 |
this.pe = null;
|
|
|
6896 |
}
|
|
|
6897 |
}
|
|
|
6898 |
|
|
|
6899 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6900 |
switch (field) {
|
|
|
6901 |
case SUCCESS:
|
|
|
6902 |
if (value == null) {
|
|
|
6903 |
unsetSuccess();
|
|
|
6904 |
} else {
|
|
|
6905 |
setSuccess((List<PaymentGateway>)value);
|
|
|
6906 |
}
|
|
|
6907 |
break;
|
|
|
6908 |
|
|
|
6909 |
case PE:
|
|
|
6910 |
if (value == null) {
|
|
|
6911 |
unsetPe();
|
|
|
6912 |
} else {
|
|
|
6913 |
setPe((PaymentException)value);
|
|
|
6914 |
}
|
|
|
6915 |
break;
|
|
|
6916 |
|
|
|
6917 |
}
|
|
|
6918 |
}
|
|
|
6919 |
|
|
|
6920 |
public Object getFieldValue(_Fields field) {
|
|
|
6921 |
switch (field) {
|
|
|
6922 |
case SUCCESS:
|
|
|
6923 |
return getSuccess();
|
|
|
6924 |
|
|
|
6925 |
case PE:
|
|
|
6926 |
return getPe();
|
|
|
6927 |
|
|
|
6928 |
}
|
|
|
6929 |
throw new IllegalStateException();
|
|
|
6930 |
}
|
|
|
6931 |
|
|
|
6932 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6933 |
public boolean isSet(_Fields field) {
|
|
|
6934 |
if (field == null) {
|
|
|
6935 |
throw new IllegalArgumentException();
|
|
|
6936 |
}
|
|
|
6937 |
|
|
|
6938 |
switch (field) {
|
|
|
6939 |
case SUCCESS:
|
|
|
6940 |
return isSetSuccess();
|
|
|
6941 |
case PE:
|
|
|
6942 |
return isSetPe();
|
|
|
6943 |
}
|
|
|
6944 |
throw new IllegalStateException();
|
|
|
6945 |
}
|
|
|
6946 |
|
|
|
6947 |
@Override
|
|
|
6948 |
public boolean equals(Object that) {
|
|
|
6949 |
if (that == null)
|
|
|
6950 |
return false;
|
|
|
6951 |
if (that instanceof getActivePaymentGateways_result)
|
|
|
6952 |
return this.equals((getActivePaymentGateways_result)that);
|
|
|
6953 |
return false;
|
|
|
6954 |
}
|
|
|
6955 |
|
|
|
6956 |
public boolean equals(getActivePaymentGateways_result that) {
|
|
|
6957 |
if (that == null)
|
|
|
6958 |
return false;
|
|
|
6959 |
|
|
|
6960 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6961 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
6962 |
if (this_present_success || that_present_success) {
|
|
|
6963 |
if (!(this_present_success && that_present_success))
|
|
|
6964 |
return false;
|
|
|
6965 |
if (!this.success.equals(that.success))
|
|
|
6966 |
return false;
|
|
|
6967 |
}
|
|
|
6968 |
|
|
|
6969 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
6970 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
6971 |
if (this_present_pe || that_present_pe) {
|
|
|
6972 |
if (!(this_present_pe && that_present_pe))
|
|
|
6973 |
return false;
|
|
|
6974 |
if (!this.pe.equals(that.pe))
|
|
|
6975 |
return false;
|
|
|
6976 |
}
|
|
|
6977 |
|
|
|
6978 |
return true;
|
|
|
6979 |
}
|
|
|
6980 |
|
|
|
6981 |
@Override
|
|
|
6982 |
public int hashCode() {
|
|
|
6983 |
return 0;
|
|
|
6984 |
}
|
|
|
6985 |
|
|
|
6986 |
public int compareTo(getActivePaymentGateways_result other) {
|
|
|
6987 |
if (!getClass().equals(other.getClass())) {
|
|
|
6988 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6989 |
}
|
|
|
6990 |
|
|
|
6991 |
int lastComparison = 0;
|
|
|
6992 |
getActivePaymentGateways_result typedOther = (getActivePaymentGateways_result)other;
|
|
|
6993 |
|
|
|
6994 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
6995 |
if (lastComparison != 0) {
|
|
|
6996 |
return lastComparison;
|
|
|
6997 |
}
|
|
|
6998 |
if (isSetSuccess()) {
|
|
|
6999 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
7000 |
if (lastComparison != 0) {
|
|
|
7001 |
return lastComparison;
|
|
|
7002 |
}
|
|
|
7003 |
}
|
|
|
7004 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
|
|
7005 |
if (lastComparison != 0) {
|
|
|
7006 |
return lastComparison;
|
|
|
7007 |
}
|
|
|
7008 |
if (isSetPe()) {
|
|
|
7009 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
7010 |
if (lastComparison != 0) {
|
|
|
7011 |
return lastComparison;
|
|
|
7012 |
}
|
|
|
7013 |
}
|
|
|
7014 |
return 0;
|
|
|
7015 |
}
|
|
|
7016 |
|
|
|
7017 |
public _Fields fieldForId(int fieldId) {
|
|
|
7018 |
return _Fields.findByThriftId(fieldId);
|
|
|
7019 |
}
|
|
|
7020 |
|
|
|
7021 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7022 |
org.apache.thrift.protocol.TField field;
|
|
|
7023 |
iprot.readStructBegin();
|
|
|
7024 |
while (true)
|
|
|
7025 |
{
|
|
|
7026 |
field = iprot.readFieldBegin();
|
|
|
7027 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7028 |
break;
|
|
|
7029 |
}
|
|
|
7030 |
switch (field.id) {
|
|
|
7031 |
case 0: // SUCCESS
|
|
|
7032 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
7033 |
{
|
|
|
7034 |
org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
|
|
|
7035 |
this.success = new ArrayList<PaymentGateway>(_list24.size);
|
|
|
7036 |
for (int _i25 = 0; _i25 < _list24.size; ++_i25)
|
|
|
7037 |
{
|
|
|
7038 |
PaymentGateway _elem26; // required
|
|
|
7039 |
_elem26 = new PaymentGateway();
|
|
|
7040 |
_elem26.read(iprot);
|
|
|
7041 |
this.success.add(_elem26);
|
|
|
7042 |
}
|
|
|
7043 |
iprot.readListEnd();
|
|
|
7044 |
}
|
|
|
7045 |
} else {
|
|
|
7046 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7047 |
}
|
|
|
7048 |
break;
|
|
|
7049 |
case 1: // PE
|
|
|
7050 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
7051 |
this.pe = new PaymentException();
|
|
|
7052 |
this.pe.read(iprot);
|
|
|
7053 |
} else {
|
|
|
7054 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7055 |
}
|
|
|
7056 |
break;
|
|
|
7057 |
default:
|
|
|
7058 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7059 |
}
|
|
|
7060 |
iprot.readFieldEnd();
|
|
|
7061 |
}
|
|
|
7062 |
iprot.readStructEnd();
|
|
|
7063 |
validate();
|
|
|
7064 |
}
|
|
|
7065 |
|
|
|
7066 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7067 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7068 |
|
|
|
7069 |
if (this.isSetSuccess()) {
|
|
|
7070 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
7071 |
{
|
|
|
7072 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
7073 |
for (PaymentGateway _iter27 : this.success)
|
|
|
7074 |
{
|
|
|
7075 |
_iter27.write(oprot);
|
|
|
7076 |
}
|
|
|
7077 |
oprot.writeListEnd();
|
|
|
7078 |
}
|
|
|
7079 |
oprot.writeFieldEnd();
|
|
|
7080 |
} else if (this.isSetPe()) {
|
|
|
7081 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
7082 |
this.pe.write(oprot);
|
|
|
7083 |
oprot.writeFieldEnd();
|
|
|
7084 |
}
|
|
|
7085 |
oprot.writeFieldStop();
|
|
|
7086 |
oprot.writeStructEnd();
|
|
|
7087 |
}
|
|
|
7088 |
|
|
|
7089 |
@Override
|
|
|
7090 |
public String toString() {
|
|
|
7091 |
StringBuilder sb = new StringBuilder("getActivePaymentGateways_result(");
|
|
|
7092 |
boolean first = true;
|
|
|
7093 |
|
|
|
7094 |
sb.append("success:");
|
|
|
7095 |
if (this.success == null) {
|
|
|
7096 |
sb.append("null");
|
|
|
7097 |
} else {
|
|
|
7098 |
sb.append(this.success);
|
|
|
7099 |
}
|
|
|
7100 |
first = false;
|
|
|
7101 |
if (!first) sb.append(", ");
|
|
|
7102 |
sb.append("pe:");
|
|
|
7103 |
if (this.pe == null) {
|
|
|
7104 |
sb.append("null");
|
|
|
7105 |
} else {
|
|
|
7106 |
sb.append(this.pe);
|
|
|
7107 |
}
|
|
|
7108 |
first = false;
|
|
|
7109 |
sb.append(")");
|
|
|
7110 |
return sb.toString();
|
|
|
7111 |
}
|
|
|
7112 |
|
|
|
7113 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7114 |
// check for required fields
|
|
|
7115 |
}
|
|
|
7116 |
|
|
|
7117 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7118 |
try {
|
|
|
7119 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7120 |
} catch (org.apache.thrift.TException te) {
|
|
|
7121 |
throw new java.io.IOException(te);
|
|
|
7122 |
}
|
|
|
7123 |
}
|
|
|
7124 |
|
|
|
7125 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7126 |
try {
|
|
|
7127 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7128 |
} catch (org.apache.thrift.TException te) {
|
|
|
7129 |
throw new java.io.IOException(te);
|
|
|
7130 |
}
|
|
|
7131 |
}
|
|
|
7132 |
|
|
|
7133 |
}
|
|
|
7134 |
|
| 3430 |
rajveer |
7135 |
public static class getPayment_args implements org.apache.thrift.TBase<getPayment_args, getPayment_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
7136 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_args");
|
| 420 |
ashish |
7137 |
|
| 3430 |
rajveer |
7138 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 420 |
ashish |
7139 |
|
| 3430 |
rajveer |
7140 |
private long id; // required
|
| 420 |
ashish |
7141 |
|
|
|
7142 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
7143 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 420 |
ashish |
7144 |
ID((short)1, "id");
|
|
|
7145 |
|
|
|
7146 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7147 |
|
|
|
7148 |
static {
|
|
|
7149 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7150 |
byName.put(field.getFieldName(), field);
|
|
|
7151 |
}
|
|
|
7152 |
}
|
|
|
7153 |
|
|
|
7154 |
/**
|
|
|
7155 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7156 |
*/
|
|
|
7157 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
7158 |
switch(fieldId) {
|
|
|
7159 |
case 1: // ID
|
|
|
7160 |
return ID;
|
|
|
7161 |
default:
|
|
|
7162 |
return null;
|
|
|
7163 |
}
|
| 420 |
ashish |
7164 |
}
|
|
|
7165 |
|
|
|
7166 |
/**
|
|
|
7167 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7168 |
* if it is not found.
|
|
|
7169 |
*/
|
|
|
7170 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7171 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7172 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7173 |
return fields;
|
|
|
7174 |
}
|
|
|
7175 |
|
|
|
7176 |
/**
|
|
|
7177 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7178 |
*/
|
|
|
7179 |
public static _Fields findByName(String name) {
|
|
|
7180 |
return byName.get(name);
|
|
|
7181 |
}
|
|
|
7182 |
|
|
|
7183 |
private final short _thriftId;
|
|
|
7184 |
private final String _fieldName;
|
|
|
7185 |
|
|
|
7186 |
_Fields(short thriftId, String fieldName) {
|
|
|
7187 |
_thriftId = thriftId;
|
|
|
7188 |
_fieldName = fieldName;
|
|
|
7189 |
}
|
|
|
7190 |
|
|
|
7191 |
public short getThriftFieldId() {
|
|
|
7192 |
return _thriftId;
|
|
|
7193 |
}
|
|
|
7194 |
|
|
|
7195 |
public String getFieldName() {
|
|
|
7196 |
return _fieldName;
|
|
|
7197 |
}
|
|
|
7198 |
}
|
|
|
7199 |
|
|
|
7200 |
// isset id assignments
|
|
|
7201 |
private static final int __ID_ISSET_ID = 0;
|
|
|
7202 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
7203 |
|
| 3430 |
rajveer |
7204 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
7205 |
static {
|
| 3430 |
rajveer |
7206 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7207 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7208 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
7209 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7210 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_args.class, metaDataMap);
|
| 420 |
ashish |
7211 |
}
|
|
|
7212 |
|
| 695 |
rajveer |
7213 |
public getPayment_args() {
|
| 420 |
ashish |
7214 |
}
|
|
|
7215 |
|
| 695 |
rajveer |
7216 |
public getPayment_args(
|
| 420 |
ashish |
7217 |
long id)
|
|
|
7218 |
{
|
|
|
7219 |
this();
|
|
|
7220 |
this.id = id;
|
|
|
7221 |
setIdIsSet(true);
|
|
|
7222 |
}
|
|
|
7223 |
|
|
|
7224 |
/**
|
|
|
7225 |
* Performs a deep copy on <i>other</i>.
|
|
|
7226 |
*/
|
| 695 |
rajveer |
7227 |
public getPayment_args(getPayment_args other) {
|
| 420 |
ashish |
7228 |
__isset_bit_vector.clear();
|
|
|
7229 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
7230 |
this.id = other.id;
|
|
|
7231 |
}
|
|
|
7232 |
|
| 695 |
rajveer |
7233 |
public getPayment_args deepCopy() {
|
|
|
7234 |
return new getPayment_args(this);
|
| 420 |
ashish |
7235 |
}
|
|
|
7236 |
|
| 3430 |
rajveer |
7237 |
@Override
|
|
|
7238 |
public void clear() {
|
|
|
7239 |
setIdIsSet(false);
|
|
|
7240 |
this.id = 0;
|
| 420 |
ashish |
7241 |
}
|
|
|
7242 |
|
|
|
7243 |
public long getId() {
|
|
|
7244 |
return this.id;
|
|
|
7245 |
}
|
|
|
7246 |
|
| 3430 |
rajveer |
7247 |
public void setId(long id) {
|
| 420 |
ashish |
7248 |
this.id = id;
|
|
|
7249 |
setIdIsSet(true);
|
|
|
7250 |
}
|
|
|
7251 |
|
|
|
7252 |
public void unsetId() {
|
|
|
7253 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
7254 |
}
|
|
|
7255 |
|
| 3430 |
rajveer |
7256 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
7257 |
public boolean isSetId() {
|
|
|
7258 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
7259 |
}
|
|
|
7260 |
|
|
|
7261 |
public void setIdIsSet(boolean value) {
|
|
|
7262 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
7263 |
}
|
|
|
7264 |
|
|
|
7265 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7266 |
switch (field) {
|
|
|
7267 |
case ID:
|
|
|
7268 |
if (value == null) {
|
|
|
7269 |
unsetId();
|
|
|
7270 |
} else {
|
|
|
7271 |
setId((Long)value);
|
|
|
7272 |
}
|
|
|
7273 |
break;
|
|
|
7274 |
|
|
|
7275 |
}
|
|
|
7276 |
}
|
|
|
7277 |
|
|
|
7278 |
public Object getFieldValue(_Fields field) {
|
|
|
7279 |
switch (field) {
|
|
|
7280 |
case ID:
|
| 3430 |
rajveer |
7281 |
return Long.valueOf(getId());
|
| 420 |
ashish |
7282 |
|
|
|
7283 |
}
|
|
|
7284 |
throw new IllegalStateException();
|
|
|
7285 |
}
|
|
|
7286 |
|
| 3430 |
rajveer |
7287 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7288 |
public boolean isSet(_Fields field) {
|
|
|
7289 |
if (field == null) {
|
|
|
7290 |
throw new IllegalArgumentException();
|
|
|
7291 |
}
|
| 420 |
ashish |
7292 |
|
|
|
7293 |
switch (field) {
|
|
|
7294 |
case ID:
|
|
|
7295 |
return isSetId();
|
|
|
7296 |
}
|
|
|
7297 |
throw new IllegalStateException();
|
|
|
7298 |
}
|
|
|
7299 |
|
|
|
7300 |
@Override
|
|
|
7301 |
public boolean equals(Object that) {
|
|
|
7302 |
if (that == null)
|
|
|
7303 |
return false;
|
| 695 |
rajveer |
7304 |
if (that instanceof getPayment_args)
|
|
|
7305 |
return this.equals((getPayment_args)that);
|
| 420 |
ashish |
7306 |
return false;
|
|
|
7307 |
}
|
|
|
7308 |
|
| 695 |
rajveer |
7309 |
public boolean equals(getPayment_args that) {
|
| 420 |
ashish |
7310 |
if (that == null)
|
|
|
7311 |
return false;
|
|
|
7312 |
|
|
|
7313 |
boolean this_present_id = true;
|
|
|
7314 |
boolean that_present_id = true;
|
|
|
7315 |
if (this_present_id || that_present_id) {
|
|
|
7316 |
if (!(this_present_id && that_present_id))
|
|
|
7317 |
return false;
|
|
|
7318 |
if (this.id != that.id)
|
|
|
7319 |
return false;
|
|
|
7320 |
}
|
|
|
7321 |
|
|
|
7322 |
return true;
|
|
|
7323 |
}
|
|
|
7324 |
|
|
|
7325 |
@Override
|
|
|
7326 |
public int hashCode() {
|
|
|
7327 |
return 0;
|
|
|
7328 |
}
|
|
|
7329 |
|
| 695 |
rajveer |
7330 |
public int compareTo(getPayment_args other) {
|
| 420 |
ashish |
7331 |
if (!getClass().equals(other.getClass())) {
|
|
|
7332 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7333 |
}
|
|
|
7334 |
|
|
|
7335 |
int lastComparison = 0;
|
| 695 |
rajveer |
7336 |
getPayment_args typedOther = (getPayment_args)other;
|
| 420 |
ashish |
7337 |
|
| 3430 |
rajveer |
7338 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| 420 |
ashish |
7339 |
if (lastComparison != 0) {
|
|
|
7340 |
return lastComparison;
|
|
|
7341 |
}
|
| 3430 |
rajveer |
7342 |
if (isSetId()) {
|
|
|
7343 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
7344 |
if (lastComparison != 0) {
|
|
|
7345 |
return lastComparison;
|
|
|
7346 |
}
|
| 420 |
ashish |
7347 |
}
|
|
|
7348 |
return 0;
|
|
|
7349 |
}
|
|
|
7350 |
|
| 3430 |
rajveer |
7351 |
public _Fields fieldForId(int fieldId) {
|
|
|
7352 |
return _Fields.findByThriftId(fieldId);
|
|
|
7353 |
}
|
|
|
7354 |
|
|
|
7355 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7356 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
7357 |
iprot.readStructBegin();
|
|
|
7358 |
while (true)
|
|
|
7359 |
{
|
|
|
7360 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7361 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
7362 |
break;
|
|
|
7363 |
}
|
| 3430 |
rajveer |
7364 |
switch (field.id) {
|
|
|
7365 |
case 1: // ID
|
|
|
7366 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7367 |
this.id = iprot.readI64();
|
|
|
7368 |
setIdIsSet(true);
|
|
|
7369 |
} else {
|
|
|
7370 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7371 |
}
|
|
|
7372 |
break;
|
|
|
7373 |
default:
|
|
|
7374 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
7375 |
}
|
| 3430 |
rajveer |
7376 |
iprot.readFieldEnd();
|
| 420 |
ashish |
7377 |
}
|
|
|
7378 |
iprot.readStructEnd();
|
|
|
7379 |
validate();
|
|
|
7380 |
}
|
|
|
7381 |
|
| 3430 |
rajveer |
7382 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
7383 |
validate();
|
|
|
7384 |
|
|
|
7385 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7386 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
7387 |
oprot.writeI64(this.id);
|
|
|
7388 |
oprot.writeFieldEnd();
|
|
|
7389 |
oprot.writeFieldStop();
|
|
|
7390 |
oprot.writeStructEnd();
|
|
|
7391 |
}
|
|
|
7392 |
|
|
|
7393 |
@Override
|
|
|
7394 |
public String toString() {
|
| 695 |
rajveer |
7395 |
StringBuilder sb = new StringBuilder("getPayment_args(");
|
| 420 |
ashish |
7396 |
boolean first = true;
|
|
|
7397 |
|
|
|
7398 |
sb.append("id:");
|
|
|
7399 |
sb.append(this.id);
|
|
|
7400 |
first = false;
|
|
|
7401 |
sb.append(")");
|
|
|
7402 |
return sb.toString();
|
|
|
7403 |
}
|
|
|
7404 |
|
| 3430 |
rajveer |
7405 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
7406 |
// check for required fields
|
|
|
7407 |
}
|
|
|
7408 |
|
| 3430 |
rajveer |
7409 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7410 |
try {
|
|
|
7411 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7412 |
} catch (org.apache.thrift.TException te) {
|
|
|
7413 |
throw new java.io.IOException(te);
|
|
|
7414 |
}
|
|
|
7415 |
}
|
|
|
7416 |
|
|
|
7417 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7418 |
try {
|
|
|
7419 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
7420 |
__isset_bit_vector = new BitSet(1);
|
|
|
7421 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7422 |
} catch (org.apache.thrift.TException te) {
|
|
|
7423 |
throw new java.io.IOException(te);
|
|
|
7424 |
}
|
|
|
7425 |
}
|
|
|
7426 |
|
| 420 |
ashish |
7427 |
}
|
|
|
7428 |
|
| 3430 |
rajveer |
7429 |
public static class getPayment_result implements org.apache.thrift.TBase<getPayment_result, getPayment_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7430 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_result");
|
| 420 |
ashish |
7431 |
|
| 3430 |
rajveer |
7432 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
|
|
7433 |
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);
|
| 420 |
ashish |
7434 |
|
| 3430 |
rajveer |
7435 |
private Payment success; // required
|
|
|
7436 |
private PaymentException pe; // required
|
| 420 |
ashish |
7437 |
|
|
|
7438 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
7439 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 420 |
ashish |
7440 |
SUCCESS((short)0, "success"),
|
|
|
7441 |
PE((short)1, "pe");
|
|
|
7442 |
|
|
|
7443 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7444 |
|
|
|
7445 |
static {
|
|
|
7446 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7447 |
byName.put(field.getFieldName(), field);
|
|
|
7448 |
}
|
|
|
7449 |
}
|
|
|
7450 |
|
|
|
7451 |
/**
|
|
|
7452 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7453 |
*/
|
|
|
7454 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
7455 |
switch(fieldId) {
|
|
|
7456 |
case 0: // SUCCESS
|
|
|
7457 |
return SUCCESS;
|
|
|
7458 |
case 1: // PE
|
|
|
7459 |
return PE;
|
|
|
7460 |
default:
|
|
|
7461 |
return null;
|
|
|
7462 |
}
|
| 420 |
ashish |
7463 |
}
|
|
|
7464 |
|
|
|
7465 |
/**
|
|
|
7466 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7467 |
* if it is not found.
|
|
|
7468 |
*/
|
|
|
7469 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7470 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7471 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7472 |
return fields;
|
|
|
7473 |
}
|
|
|
7474 |
|
|
|
7475 |
/**
|
|
|
7476 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7477 |
*/
|
|
|
7478 |
public static _Fields findByName(String name) {
|
|
|
7479 |
return byName.get(name);
|
|
|
7480 |
}
|
|
|
7481 |
|
|
|
7482 |
private final short _thriftId;
|
|
|
7483 |
private final String _fieldName;
|
|
|
7484 |
|
|
|
7485 |
_Fields(short thriftId, String fieldName) {
|
|
|
7486 |
_thriftId = thriftId;
|
|
|
7487 |
_fieldName = fieldName;
|
|
|
7488 |
}
|
|
|
7489 |
|
|
|
7490 |
public short getThriftFieldId() {
|
|
|
7491 |
return _thriftId;
|
|
|
7492 |
}
|
|
|
7493 |
|
|
|
7494 |
public String getFieldName() {
|
|
|
7495 |
return _fieldName;
|
|
|
7496 |
}
|
|
|
7497 |
}
|
|
|
7498 |
|
|
|
7499 |
// isset id assignments
|
|
|
7500 |
|
| 3430 |
rajveer |
7501 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
7502 |
static {
|
| 3430 |
rajveer |
7503 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7504 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7505 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
|
|
|
7506 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7507 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
7508 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7509 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_result.class, metaDataMap);
|
| 420 |
ashish |
7510 |
}
|
|
|
7511 |
|
| 695 |
rajveer |
7512 |
public getPayment_result() {
|
| 420 |
ashish |
7513 |
}
|
|
|
7514 |
|
| 695 |
rajveer |
7515 |
public getPayment_result(
|
|
|
7516 |
Payment success,
|
| 420 |
ashish |
7517 |
PaymentException pe)
|
|
|
7518 |
{
|
|
|
7519 |
this();
|
|
|
7520 |
this.success = success;
|
|
|
7521 |
this.pe = pe;
|
|
|
7522 |
}
|
|
|
7523 |
|
|
|
7524 |
/**
|
|
|
7525 |
* Performs a deep copy on <i>other</i>.
|
|
|
7526 |
*/
|
| 695 |
rajveer |
7527 |
public getPayment_result(getPayment_result other) {
|
| 420 |
ashish |
7528 |
if (other.isSetSuccess()) {
|
| 695 |
rajveer |
7529 |
this.success = new Payment(other.success);
|
| 420 |
ashish |
7530 |
}
|
|
|
7531 |
if (other.isSetPe()) {
|
|
|
7532 |
this.pe = new PaymentException(other.pe);
|
|
|
7533 |
}
|
|
|
7534 |
}
|
|
|
7535 |
|
| 695 |
rajveer |
7536 |
public getPayment_result deepCopy() {
|
|
|
7537 |
return new getPayment_result(this);
|
| 420 |
ashish |
7538 |
}
|
|
|
7539 |
|
| 3430 |
rajveer |
7540 |
@Override
|
|
|
7541 |
public void clear() {
|
|
|
7542 |
this.success = null;
|
|
|
7543 |
this.pe = null;
|
| 420 |
ashish |
7544 |
}
|
|
|
7545 |
|
| 695 |
rajveer |
7546 |
public Payment getSuccess() {
|
| 420 |
ashish |
7547 |
return this.success;
|
|
|
7548 |
}
|
|
|
7549 |
|
| 3430 |
rajveer |
7550 |
public void setSuccess(Payment success) {
|
| 420 |
ashish |
7551 |
this.success = success;
|
|
|
7552 |
}
|
|
|
7553 |
|
|
|
7554 |
public void unsetSuccess() {
|
|
|
7555 |
this.success = null;
|
|
|
7556 |
}
|
|
|
7557 |
|
| 3430 |
rajveer |
7558 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
7559 |
public boolean isSetSuccess() {
|
|
|
7560 |
return this.success != null;
|
|
|
7561 |
}
|
|
|
7562 |
|
|
|
7563 |
public void setSuccessIsSet(boolean value) {
|
|
|
7564 |
if (!value) {
|
|
|
7565 |
this.success = null;
|
|
|
7566 |
}
|
|
|
7567 |
}
|
|
|
7568 |
|
|
|
7569 |
public PaymentException getPe() {
|
|
|
7570 |
return this.pe;
|
|
|
7571 |
}
|
|
|
7572 |
|
| 3430 |
rajveer |
7573 |
public void setPe(PaymentException pe) {
|
| 420 |
ashish |
7574 |
this.pe = pe;
|
|
|
7575 |
}
|
|
|
7576 |
|
|
|
7577 |
public void unsetPe() {
|
|
|
7578 |
this.pe = null;
|
|
|
7579 |
}
|
|
|
7580 |
|
| 3430 |
rajveer |
7581 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
7582 |
public boolean isSetPe() {
|
|
|
7583 |
return this.pe != null;
|
|
|
7584 |
}
|
|
|
7585 |
|
|
|
7586 |
public void setPeIsSet(boolean value) {
|
|
|
7587 |
if (!value) {
|
|
|
7588 |
this.pe = null;
|
|
|
7589 |
}
|
|
|
7590 |
}
|
|
|
7591 |
|
|
|
7592 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7593 |
switch (field) {
|
|
|
7594 |
case SUCCESS:
|
|
|
7595 |
if (value == null) {
|
|
|
7596 |
unsetSuccess();
|
|
|
7597 |
} else {
|
| 695 |
rajveer |
7598 |
setSuccess((Payment)value);
|
| 420 |
ashish |
7599 |
}
|
|
|
7600 |
break;
|
|
|
7601 |
|
|
|
7602 |
case PE:
|
|
|
7603 |
if (value == null) {
|
|
|
7604 |
unsetPe();
|
|
|
7605 |
} else {
|
|
|
7606 |
setPe((PaymentException)value);
|
|
|
7607 |
}
|
|
|
7608 |
break;
|
|
|
7609 |
|
|
|
7610 |
}
|
|
|
7611 |
}
|
|
|
7612 |
|
|
|
7613 |
public Object getFieldValue(_Fields field) {
|
|
|
7614 |
switch (field) {
|
|
|
7615 |
case SUCCESS:
|
|
|
7616 |
return getSuccess();
|
|
|
7617 |
|
|
|
7618 |
case PE:
|
|
|
7619 |
return getPe();
|
|
|
7620 |
|
|
|
7621 |
}
|
|
|
7622 |
throw new IllegalStateException();
|
|
|
7623 |
}
|
|
|
7624 |
|
| 3430 |
rajveer |
7625 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7626 |
public boolean isSet(_Fields field) {
|
|
|
7627 |
if (field == null) {
|
|
|
7628 |
throw new IllegalArgumentException();
|
|
|
7629 |
}
|
| 420 |
ashish |
7630 |
|
|
|
7631 |
switch (field) {
|
|
|
7632 |
case SUCCESS:
|
|
|
7633 |
return isSetSuccess();
|
|
|
7634 |
case PE:
|
|
|
7635 |
return isSetPe();
|
|
|
7636 |
}
|
|
|
7637 |
throw new IllegalStateException();
|
|
|
7638 |
}
|
|
|
7639 |
|
|
|
7640 |
@Override
|
|
|
7641 |
public boolean equals(Object that) {
|
|
|
7642 |
if (that == null)
|
|
|
7643 |
return false;
|
| 695 |
rajveer |
7644 |
if (that instanceof getPayment_result)
|
|
|
7645 |
return this.equals((getPayment_result)that);
|
| 420 |
ashish |
7646 |
return false;
|
|
|
7647 |
}
|
|
|
7648 |
|
| 695 |
rajveer |
7649 |
public boolean equals(getPayment_result that) {
|
| 420 |
ashish |
7650 |
if (that == null)
|
|
|
7651 |
return false;
|
|
|
7652 |
|
|
|
7653 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
7654 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
7655 |
if (this_present_success || that_present_success) {
|
|
|
7656 |
if (!(this_present_success && that_present_success))
|
|
|
7657 |
return false;
|
|
|
7658 |
if (!this.success.equals(that.success))
|
|
|
7659 |
return false;
|
|
|
7660 |
}
|
|
|
7661 |
|
|
|
7662 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
7663 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
7664 |
if (this_present_pe || that_present_pe) {
|
|
|
7665 |
if (!(this_present_pe && that_present_pe))
|
|
|
7666 |
return false;
|
|
|
7667 |
if (!this.pe.equals(that.pe))
|
|
|
7668 |
return false;
|
|
|
7669 |
}
|
|
|
7670 |
|
|
|
7671 |
return true;
|
|
|
7672 |
}
|
|
|
7673 |
|
|
|
7674 |
@Override
|
|
|
7675 |
public int hashCode() {
|
|
|
7676 |
return 0;
|
|
|
7677 |
}
|
|
|
7678 |
|
| 695 |
rajveer |
7679 |
public int compareTo(getPayment_result other) {
|
| 420 |
ashish |
7680 |
if (!getClass().equals(other.getClass())) {
|
|
|
7681 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7682 |
}
|
|
|
7683 |
|
|
|
7684 |
int lastComparison = 0;
|
| 695 |
rajveer |
7685 |
getPayment_result typedOther = (getPayment_result)other;
|
| 420 |
ashish |
7686 |
|
| 3430 |
rajveer |
7687 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 420 |
ashish |
7688 |
if (lastComparison != 0) {
|
|
|
7689 |
return lastComparison;
|
|
|
7690 |
}
|
| 3430 |
rajveer |
7691 |
if (isSetSuccess()) {
|
|
|
7692 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
7693 |
if (lastComparison != 0) {
|
|
|
7694 |
return lastComparison;
|
|
|
7695 |
}
|
| 420 |
ashish |
7696 |
}
|
| 3430 |
rajveer |
7697 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 420 |
ashish |
7698 |
if (lastComparison != 0) {
|
|
|
7699 |
return lastComparison;
|
|
|
7700 |
}
|
| 3430 |
rajveer |
7701 |
if (isSetPe()) {
|
|
|
7702 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
7703 |
if (lastComparison != 0) {
|
|
|
7704 |
return lastComparison;
|
|
|
7705 |
}
|
| 420 |
ashish |
7706 |
}
|
|
|
7707 |
return 0;
|
|
|
7708 |
}
|
|
|
7709 |
|
| 3430 |
rajveer |
7710 |
public _Fields fieldForId(int fieldId) {
|
|
|
7711 |
return _Fields.findByThriftId(fieldId);
|
|
|
7712 |
}
|
|
|
7713 |
|
|
|
7714 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7715 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
7716 |
iprot.readStructBegin();
|
|
|
7717 |
while (true)
|
|
|
7718 |
{
|
|
|
7719 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7720 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
7721 |
break;
|
|
|
7722 |
}
|
| 3430 |
rajveer |
7723 |
switch (field.id) {
|
|
|
7724 |
case 0: // SUCCESS
|
|
|
7725 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
7726 |
this.success = new Payment();
|
|
|
7727 |
this.success.read(iprot);
|
|
|
7728 |
} else {
|
|
|
7729 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7730 |
}
|
|
|
7731 |
break;
|
|
|
7732 |
case 1: // PE
|
|
|
7733 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
7734 |
this.pe = new PaymentException();
|
|
|
7735 |
this.pe.read(iprot);
|
|
|
7736 |
} else {
|
|
|
7737 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7738 |
}
|
|
|
7739 |
break;
|
|
|
7740 |
default:
|
|
|
7741 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
7742 |
}
|
| 3430 |
rajveer |
7743 |
iprot.readFieldEnd();
|
| 420 |
ashish |
7744 |
}
|
|
|
7745 |
iprot.readStructEnd();
|
|
|
7746 |
validate();
|
|
|
7747 |
}
|
|
|
7748 |
|
| 3430 |
rajveer |
7749 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
7750 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7751 |
|
| 695 |
rajveer |
7752 |
if (this.isSetSuccess()) {
|
|
|
7753 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
7754 |
this.success.write(oprot);
|
|
|
7755 |
oprot.writeFieldEnd();
|
|
|
7756 |
} else if (this.isSetPe()) {
|
| 420 |
ashish |
7757 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
7758 |
this.pe.write(oprot);
|
|
|
7759 |
oprot.writeFieldEnd();
|
|
|
7760 |
}
|
|
|
7761 |
oprot.writeFieldStop();
|
|
|
7762 |
oprot.writeStructEnd();
|
|
|
7763 |
}
|
|
|
7764 |
|
|
|
7765 |
@Override
|
|
|
7766 |
public String toString() {
|
| 695 |
rajveer |
7767 |
StringBuilder sb = new StringBuilder("getPayment_result(");
|
| 420 |
ashish |
7768 |
boolean first = true;
|
|
|
7769 |
|
| 695 |
rajveer |
7770 |
sb.append("success:");
|
|
|
7771 |
if (this.success == null) {
|
|
|
7772 |
sb.append("null");
|
|
|
7773 |
} else {
|
|
|
7774 |
sb.append(this.success);
|
|
|
7775 |
}
|
|
|
7776 |
first = false;
|
|
|
7777 |
if (!first) sb.append(", ");
|
| 420 |
ashish |
7778 |
sb.append("pe:");
|
|
|
7779 |
if (this.pe == null) {
|
|
|
7780 |
sb.append("null");
|
|
|
7781 |
} else {
|
|
|
7782 |
sb.append(this.pe);
|
|
|
7783 |
}
|
|
|
7784 |
first = false;
|
|
|
7785 |
sb.append(")");
|
|
|
7786 |
return sb.toString();
|
|
|
7787 |
}
|
|
|
7788 |
|
| 3430 |
rajveer |
7789 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
7790 |
// check for required fields
|
|
|
7791 |
}
|
|
|
7792 |
|
| 3430 |
rajveer |
7793 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7794 |
try {
|
|
|
7795 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7796 |
} catch (org.apache.thrift.TException te) {
|
|
|
7797 |
throw new java.io.IOException(te);
|
|
|
7798 |
}
|
|
|
7799 |
}
|
|
|
7800 |
|
|
|
7801 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7802 |
try {
|
|
|
7803 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7804 |
} catch (org.apache.thrift.TException te) {
|
|
|
7805 |
throw new java.io.IOException(te);
|
|
|
7806 |
}
|
|
|
7807 |
}
|
|
|
7808 |
|
| 420 |
ashish |
7809 |
}
|
|
|
7810 |
|
| 3430 |
rajveer |
7811 |
public static class getPaymentForTxnId_args implements org.apache.thrift.TBase<getPaymentForTxnId_args, getPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
7812 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_args");
|
| 420 |
ashish |
7813 |
|
| 3430 |
rajveer |
7814 |
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)1);
|
| 420 |
ashish |
7815 |
|
| 3430 |
rajveer |
7816 |
private long txnId; // required
|
| 420 |
ashish |
7817 |
|
|
|
7818 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
7819 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 695 |
rajveer |
7820 |
TXN_ID((short)1, "txnId");
|
| 420 |
ashish |
7821 |
|
|
|
7822 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7823 |
|
|
|
7824 |
static {
|
|
|
7825 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7826 |
byName.put(field.getFieldName(), field);
|
|
|
7827 |
}
|
|
|
7828 |
}
|
|
|
7829 |
|
|
|
7830 |
/**
|
|
|
7831 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7832 |
*/
|
|
|
7833 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
7834 |
switch(fieldId) {
|
|
|
7835 |
case 1: // TXN_ID
|
|
|
7836 |
return TXN_ID;
|
|
|
7837 |
default:
|
|
|
7838 |
return null;
|
|
|
7839 |
}
|
| 420 |
ashish |
7840 |
}
|
|
|
7841 |
|
|
|
7842 |
/**
|
|
|
7843 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7844 |
* if it is not found.
|
|
|
7845 |
*/
|
|
|
7846 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7847 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7848 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7849 |
return fields;
|
|
|
7850 |
}
|
|
|
7851 |
|
|
|
7852 |
/**
|
|
|
7853 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7854 |
*/
|
|
|
7855 |
public static _Fields findByName(String name) {
|
|
|
7856 |
return byName.get(name);
|
|
|
7857 |
}
|
|
|
7858 |
|
|
|
7859 |
private final short _thriftId;
|
|
|
7860 |
private final String _fieldName;
|
|
|
7861 |
|
|
|
7862 |
_Fields(short thriftId, String fieldName) {
|
|
|
7863 |
_thriftId = thriftId;
|
|
|
7864 |
_fieldName = fieldName;
|
|
|
7865 |
}
|
|
|
7866 |
|
|
|
7867 |
public short getThriftFieldId() {
|
|
|
7868 |
return _thriftId;
|
|
|
7869 |
}
|
|
|
7870 |
|
|
|
7871 |
public String getFieldName() {
|
|
|
7872 |
return _fieldName;
|
|
|
7873 |
}
|
|
|
7874 |
}
|
|
|
7875 |
|
|
|
7876 |
// isset id assignments
|
| 695 |
rajveer |
7877 |
private static final int __TXNID_ISSET_ID = 0;
|
| 420 |
ashish |
7878 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
7879 |
|
| 3430 |
rajveer |
7880 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
7881 |
static {
|
| 3430 |
rajveer |
7882 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7883 |
tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7884 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
7885 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7886 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_args.class, metaDataMap);
|
| 420 |
ashish |
7887 |
}
|
|
|
7888 |
|
| 695 |
rajveer |
7889 |
public getPaymentForTxnId_args() {
|
| 420 |
ashish |
7890 |
}
|
|
|
7891 |
|
| 695 |
rajveer |
7892 |
public getPaymentForTxnId_args(
|
|
|
7893 |
long txnId)
|
| 420 |
ashish |
7894 |
{
|
|
|
7895 |
this();
|
| 695 |
rajveer |
7896 |
this.txnId = txnId;
|
|
|
7897 |
setTxnIdIsSet(true);
|
| 420 |
ashish |
7898 |
}
|
|
|
7899 |
|
|
|
7900 |
/**
|
|
|
7901 |
* Performs a deep copy on <i>other</i>.
|
|
|
7902 |
*/
|
| 695 |
rajveer |
7903 |
public getPaymentForTxnId_args(getPaymentForTxnId_args other) {
|
| 420 |
ashish |
7904 |
__isset_bit_vector.clear();
|
|
|
7905 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 695 |
rajveer |
7906 |
this.txnId = other.txnId;
|
| 420 |
ashish |
7907 |
}
|
|
|
7908 |
|
| 695 |
rajveer |
7909 |
public getPaymentForTxnId_args deepCopy() {
|
|
|
7910 |
return new getPaymentForTxnId_args(this);
|
| 420 |
ashish |
7911 |
}
|
|
|
7912 |
|
| 3430 |
rajveer |
7913 |
@Override
|
|
|
7914 |
public void clear() {
|
|
|
7915 |
setTxnIdIsSet(false);
|
|
|
7916 |
this.txnId = 0;
|
| 420 |
ashish |
7917 |
}
|
|
|
7918 |
|
| 695 |
rajveer |
7919 |
public long getTxnId() {
|
|
|
7920 |
return this.txnId;
|
| 420 |
ashish |
7921 |
}
|
|
|
7922 |
|
| 3430 |
rajveer |
7923 |
public void setTxnId(long txnId) {
|
| 695 |
rajveer |
7924 |
this.txnId = txnId;
|
|
|
7925 |
setTxnIdIsSet(true);
|
| 420 |
ashish |
7926 |
}
|
|
|
7927 |
|
| 695 |
rajveer |
7928 |
public void unsetTxnId() {
|
|
|
7929 |
__isset_bit_vector.clear(__TXNID_ISSET_ID);
|
| 420 |
ashish |
7930 |
}
|
|
|
7931 |
|
| 3430 |
rajveer |
7932 |
/** Returns true if field txnId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
7933 |
public boolean isSetTxnId() {
|
|
|
7934 |
return __isset_bit_vector.get(__TXNID_ISSET_ID);
|
| 420 |
ashish |
7935 |
}
|
|
|
7936 |
|
| 695 |
rajveer |
7937 |
public void setTxnIdIsSet(boolean value) {
|
|
|
7938 |
__isset_bit_vector.set(__TXNID_ISSET_ID, value);
|
| 420 |
ashish |
7939 |
}
|
|
|
7940 |
|
|
|
7941 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7942 |
switch (field) {
|
| 695 |
rajveer |
7943 |
case TXN_ID:
|
| 420 |
ashish |
7944 |
if (value == null) {
|
| 695 |
rajveer |
7945 |
unsetTxnId();
|
| 420 |
ashish |
7946 |
} else {
|
| 695 |
rajveer |
7947 |
setTxnId((Long)value);
|
| 420 |
ashish |
7948 |
}
|
|
|
7949 |
break;
|
|
|
7950 |
|
|
|
7951 |
}
|
|
|
7952 |
}
|
|
|
7953 |
|
|
|
7954 |
public Object getFieldValue(_Fields field) {
|
|
|
7955 |
switch (field) {
|
| 695 |
rajveer |
7956 |
case TXN_ID:
|
| 3430 |
rajveer |
7957 |
return Long.valueOf(getTxnId());
|
| 420 |
ashish |
7958 |
|
|
|
7959 |
}
|
|
|
7960 |
throw new IllegalStateException();
|
|
|
7961 |
}
|
|
|
7962 |
|
| 3430 |
rajveer |
7963 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7964 |
public boolean isSet(_Fields field) {
|
|
|
7965 |
if (field == null) {
|
|
|
7966 |
throw new IllegalArgumentException();
|
|
|
7967 |
}
|
| 420 |
ashish |
7968 |
|
|
|
7969 |
switch (field) {
|
| 695 |
rajveer |
7970 |
case TXN_ID:
|
|
|
7971 |
return isSetTxnId();
|
| 420 |
ashish |
7972 |
}
|
|
|
7973 |
throw new IllegalStateException();
|
|
|
7974 |
}
|
|
|
7975 |
|
|
|
7976 |
@Override
|
|
|
7977 |
public boolean equals(Object that) {
|
|
|
7978 |
if (that == null)
|
|
|
7979 |
return false;
|
| 695 |
rajveer |
7980 |
if (that instanceof getPaymentForTxnId_args)
|
|
|
7981 |
return this.equals((getPaymentForTxnId_args)that);
|
| 420 |
ashish |
7982 |
return false;
|
|
|
7983 |
}
|
|
|
7984 |
|
| 695 |
rajveer |
7985 |
public boolean equals(getPaymentForTxnId_args that) {
|
| 420 |
ashish |
7986 |
if (that == null)
|
|
|
7987 |
return false;
|
|
|
7988 |
|
| 695 |
rajveer |
7989 |
boolean this_present_txnId = true;
|
|
|
7990 |
boolean that_present_txnId = true;
|
|
|
7991 |
if (this_present_txnId || that_present_txnId) {
|
|
|
7992 |
if (!(this_present_txnId && that_present_txnId))
|
| 420 |
ashish |
7993 |
return false;
|
| 695 |
rajveer |
7994 |
if (this.txnId != that.txnId)
|
| 420 |
ashish |
7995 |
return false;
|
|
|
7996 |
}
|
|
|
7997 |
|
|
|
7998 |
return true;
|
|
|
7999 |
}
|
|
|
8000 |
|
|
|
8001 |
@Override
|
|
|
8002 |
public int hashCode() {
|
|
|
8003 |
return 0;
|
|
|
8004 |
}
|
|
|
8005 |
|
| 695 |
rajveer |
8006 |
public int compareTo(getPaymentForTxnId_args other) {
|
| 420 |
ashish |
8007 |
if (!getClass().equals(other.getClass())) {
|
|
|
8008 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8009 |
}
|
|
|
8010 |
|
|
|
8011 |
int lastComparison = 0;
|
| 695 |
rajveer |
8012 |
getPaymentForTxnId_args typedOther = (getPaymentForTxnId_args)other;
|
| 420 |
ashish |
8013 |
|
| 3430 |
rajveer |
8014 |
lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
|
| 420 |
ashish |
8015 |
if (lastComparison != 0) {
|
|
|
8016 |
return lastComparison;
|
|
|
8017 |
}
|
| 3430 |
rajveer |
8018 |
if (isSetTxnId()) {
|
|
|
8019 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
|
|
|
8020 |
if (lastComparison != 0) {
|
|
|
8021 |
return lastComparison;
|
|
|
8022 |
}
|
| 420 |
ashish |
8023 |
}
|
|
|
8024 |
return 0;
|
|
|
8025 |
}
|
|
|
8026 |
|
| 3430 |
rajveer |
8027 |
public _Fields fieldForId(int fieldId) {
|
|
|
8028 |
return _Fields.findByThriftId(fieldId);
|
|
|
8029 |
}
|
|
|
8030 |
|
|
|
8031 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8032 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
8033 |
iprot.readStructBegin();
|
|
|
8034 |
while (true)
|
|
|
8035 |
{
|
|
|
8036 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
8037 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
8038 |
break;
|
|
|
8039 |
}
|
| 3430 |
rajveer |
8040 |
switch (field.id) {
|
|
|
8041 |
case 1: // TXN_ID
|
|
|
8042 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
8043 |
this.txnId = iprot.readI64();
|
|
|
8044 |
setTxnIdIsSet(true);
|
|
|
8045 |
} else {
|
|
|
8046 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8047 |
}
|
|
|
8048 |
break;
|
|
|
8049 |
default:
|
|
|
8050 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
8051 |
}
|
| 3430 |
rajveer |
8052 |
iprot.readFieldEnd();
|
| 420 |
ashish |
8053 |
}
|
|
|
8054 |
iprot.readStructEnd();
|
|
|
8055 |
validate();
|
|
|
8056 |
}
|
|
|
8057 |
|
| 3430 |
rajveer |
8058 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
8059 |
validate();
|
|
|
8060 |
|
|
|
8061 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 695 |
rajveer |
8062 |
oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
|
|
|
8063 |
oprot.writeI64(this.txnId);
|
| 420 |
ashish |
8064 |
oprot.writeFieldEnd();
|
|
|
8065 |
oprot.writeFieldStop();
|
|
|
8066 |
oprot.writeStructEnd();
|
|
|
8067 |
}
|
|
|
8068 |
|
|
|
8069 |
@Override
|
|
|
8070 |
public String toString() {
|
| 695 |
rajveer |
8071 |
StringBuilder sb = new StringBuilder("getPaymentForTxnId_args(");
|
| 420 |
ashish |
8072 |
boolean first = true;
|
|
|
8073 |
|
| 695 |
rajveer |
8074 |
sb.append("txnId:");
|
|
|
8075 |
sb.append(this.txnId);
|
| 420 |
ashish |
8076 |
first = false;
|
|
|
8077 |
sb.append(")");
|
|
|
8078 |
return sb.toString();
|
|
|
8079 |
}
|
|
|
8080 |
|
| 3430 |
rajveer |
8081 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
8082 |
// check for required fields
|
|
|
8083 |
}
|
|
|
8084 |
|
| 3430 |
rajveer |
8085 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8086 |
try {
|
|
|
8087 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8088 |
} catch (org.apache.thrift.TException te) {
|
|
|
8089 |
throw new java.io.IOException(te);
|
|
|
8090 |
}
|
|
|
8091 |
}
|
|
|
8092 |
|
|
|
8093 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8094 |
try {
|
|
|
8095 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
8096 |
__isset_bit_vector = new BitSet(1);
|
|
|
8097 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8098 |
} catch (org.apache.thrift.TException te) {
|
|
|
8099 |
throw new java.io.IOException(te);
|
|
|
8100 |
}
|
|
|
8101 |
}
|
|
|
8102 |
|
| 420 |
ashish |
8103 |
}
|
|
|
8104 |
|
| 3430 |
rajveer |
8105 |
public static class getPaymentForTxnId_result implements org.apache.thrift.TBase<getPaymentForTxnId_result, getPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8106 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_result");
|
| 420 |
ashish |
8107 |
|
| 3430 |
rajveer |
8108 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
|
|
8109 |
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);
|
| 420 |
ashish |
8110 |
|
| 3430 |
rajveer |
8111 |
private List<Payment> success; // required
|
|
|
8112 |
private PaymentException pe; // required
|
| 420 |
ashish |
8113 |
|
|
|
8114 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
8115 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 420 |
ashish |
8116 |
SUCCESS((short)0, "success"),
|
|
|
8117 |
PE((short)1, "pe");
|
|
|
8118 |
|
|
|
8119 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8120 |
|
|
|
8121 |
static {
|
|
|
8122 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8123 |
byName.put(field.getFieldName(), field);
|
|
|
8124 |
}
|
|
|
8125 |
}
|
|
|
8126 |
|
|
|
8127 |
/**
|
|
|
8128 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8129 |
*/
|
|
|
8130 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
8131 |
switch(fieldId) {
|
|
|
8132 |
case 0: // SUCCESS
|
|
|
8133 |
return SUCCESS;
|
|
|
8134 |
case 1: // PE
|
|
|
8135 |
return PE;
|
|
|
8136 |
default:
|
|
|
8137 |
return null;
|
|
|
8138 |
}
|
| 420 |
ashish |
8139 |
}
|
|
|
8140 |
|
|
|
8141 |
/**
|
|
|
8142 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8143 |
* if it is not found.
|
|
|
8144 |
*/
|
|
|
8145 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8146 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8147 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8148 |
return fields;
|
|
|
8149 |
}
|
|
|
8150 |
|
|
|
8151 |
/**
|
|
|
8152 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8153 |
*/
|
|
|
8154 |
public static _Fields findByName(String name) {
|
|
|
8155 |
return byName.get(name);
|
|
|
8156 |
}
|
|
|
8157 |
|
|
|
8158 |
private final short _thriftId;
|
|
|
8159 |
private final String _fieldName;
|
|
|
8160 |
|
|
|
8161 |
_Fields(short thriftId, String fieldName) {
|
|
|
8162 |
_thriftId = thriftId;
|
|
|
8163 |
_fieldName = fieldName;
|
|
|
8164 |
}
|
|
|
8165 |
|
|
|
8166 |
public short getThriftFieldId() {
|
|
|
8167 |
return _thriftId;
|
|
|
8168 |
}
|
|
|
8169 |
|
|
|
8170 |
public String getFieldName() {
|
|
|
8171 |
return _fieldName;
|
|
|
8172 |
}
|
|
|
8173 |
}
|
|
|
8174 |
|
|
|
8175 |
// isset id assignments
|
|
|
8176 |
|
| 3430 |
rajveer |
8177 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
8178 |
static {
|
| 3430 |
rajveer |
8179 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8180 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8181 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
8182 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
|
|
|
8183 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8184 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
8185 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8186 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_result.class, metaDataMap);
|
| 420 |
ashish |
8187 |
}
|
|
|
8188 |
|
| 695 |
rajveer |
8189 |
public getPaymentForTxnId_result() {
|
| 420 |
ashish |
8190 |
}
|
|
|
8191 |
|
| 695 |
rajveer |
8192 |
public getPaymentForTxnId_result(
|
|
|
8193 |
List<Payment> success,
|
| 420 |
ashish |
8194 |
PaymentException pe)
|
|
|
8195 |
{
|
|
|
8196 |
this();
|
|
|
8197 |
this.success = success;
|
|
|
8198 |
this.pe = pe;
|
|
|
8199 |
}
|
|
|
8200 |
|
|
|
8201 |
/**
|
|
|
8202 |
* Performs a deep copy on <i>other</i>.
|
|
|
8203 |
*/
|
| 695 |
rajveer |
8204 |
public getPaymentForTxnId_result(getPaymentForTxnId_result other) {
|
| 420 |
ashish |
8205 |
if (other.isSetSuccess()) {
|
| 695 |
rajveer |
8206 |
List<Payment> __this__success = new ArrayList<Payment>();
|
|
|
8207 |
for (Payment other_element : other.success) {
|
|
|
8208 |
__this__success.add(new Payment(other_element));
|
|
|
8209 |
}
|
|
|
8210 |
this.success = __this__success;
|
| 420 |
ashish |
8211 |
}
|
|
|
8212 |
if (other.isSetPe()) {
|
|
|
8213 |
this.pe = new PaymentException(other.pe);
|
|
|
8214 |
}
|
|
|
8215 |
}
|
|
|
8216 |
|
| 695 |
rajveer |
8217 |
public getPaymentForTxnId_result deepCopy() {
|
|
|
8218 |
return new getPaymentForTxnId_result(this);
|
| 420 |
ashish |
8219 |
}
|
|
|
8220 |
|
| 3430 |
rajveer |
8221 |
@Override
|
|
|
8222 |
public void clear() {
|
|
|
8223 |
this.success = null;
|
|
|
8224 |
this.pe = null;
|
| 420 |
ashish |
8225 |
}
|
|
|
8226 |
|
| 695 |
rajveer |
8227 |
public int getSuccessSize() {
|
|
|
8228 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
8229 |
}
|
|
|
8230 |
|
|
|
8231 |
public java.util.Iterator<Payment> getSuccessIterator() {
|
|
|
8232 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
8233 |
}
|
|
|
8234 |
|
|
|
8235 |
public void addToSuccess(Payment elem) {
|
|
|
8236 |
if (this.success == null) {
|
|
|
8237 |
this.success = new ArrayList<Payment>();
|
|
|
8238 |
}
|
|
|
8239 |
this.success.add(elem);
|
|
|
8240 |
}
|
|
|
8241 |
|
|
|
8242 |
public List<Payment> getSuccess() {
|
| 420 |
ashish |
8243 |
return this.success;
|
|
|
8244 |
}
|
|
|
8245 |
|
| 3430 |
rajveer |
8246 |
public void setSuccess(List<Payment> success) {
|
| 420 |
ashish |
8247 |
this.success = success;
|
|
|
8248 |
}
|
|
|
8249 |
|
|
|
8250 |
public void unsetSuccess() {
|
|
|
8251 |
this.success = null;
|
|
|
8252 |
}
|
|
|
8253 |
|
| 3430 |
rajveer |
8254 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
8255 |
public boolean isSetSuccess() {
|
|
|
8256 |
return this.success != null;
|
|
|
8257 |
}
|
|
|
8258 |
|
|
|
8259 |
public void setSuccessIsSet(boolean value) {
|
|
|
8260 |
if (!value) {
|
|
|
8261 |
this.success = null;
|
|
|
8262 |
}
|
|
|
8263 |
}
|
|
|
8264 |
|
|
|
8265 |
public PaymentException getPe() {
|
|
|
8266 |
return this.pe;
|
|
|
8267 |
}
|
|
|
8268 |
|
| 3430 |
rajveer |
8269 |
public void setPe(PaymentException pe) {
|
| 420 |
ashish |
8270 |
this.pe = pe;
|
|
|
8271 |
}
|
|
|
8272 |
|
|
|
8273 |
public void unsetPe() {
|
|
|
8274 |
this.pe = null;
|
|
|
8275 |
}
|
|
|
8276 |
|
| 3430 |
rajveer |
8277 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
8278 |
public boolean isSetPe() {
|
|
|
8279 |
return this.pe != null;
|
|
|
8280 |
}
|
|
|
8281 |
|
|
|
8282 |
public void setPeIsSet(boolean value) {
|
|
|
8283 |
if (!value) {
|
|
|
8284 |
this.pe = null;
|
|
|
8285 |
}
|
|
|
8286 |
}
|
|
|
8287 |
|
|
|
8288 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8289 |
switch (field) {
|
|
|
8290 |
case SUCCESS:
|
|
|
8291 |
if (value == null) {
|
|
|
8292 |
unsetSuccess();
|
|
|
8293 |
} else {
|
| 695 |
rajveer |
8294 |
setSuccess((List<Payment>)value);
|
| 420 |
ashish |
8295 |
}
|
|
|
8296 |
break;
|
|
|
8297 |
|
|
|
8298 |
case PE:
|
|
|
8299 |
if (value == null) {
|
|
|
8300 |
unsetPe();
|
|
|
8301 |
} else {
|
|
|
8302 |
setPe((PaymentException)value);
|
|
|
8303 |
}
|
|
|
8304 |
break;
|
|
|
8305 |
|
|
|
8306 |
}
|
|
|
8307 |
}
|
|
|
8308 |
|
|
|
8309 |
public Object getFieldValue(_Fields field) {
|
|
|
8310 |
switch (field) {
|
|
|
8311 |
case SUCCESS:
|
|
|
8312 |
return getSuccess();
|
|
|
8313 |
|
|
|
8314 |
case PE:
|
|
|
8315 |
return getPe();
|
|
|
8316 |
|
|
|
8317 |
}
|
|
|
8318 |
throw new IllegalStateException();
|
|
|
8319 |
}
|
|
|
8320 |
|
| 3430 |
rajveer |
8321 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8322 |
public boolean isSet(_Fields field) {
|
|
|
8323 |
if (field == null) {
|
|
|
8324 |
throw new IllegalArgumentException();
|
|
|
8325 |
}
|
| 420 |
ashish |
8326 |
|
|
|
8327 |
switch (field) {
|
|
|
8328 |
case SUCCESS:
|
|
|
8329 |
return isSetSuccess();
|
|
|
8330 |
case PE:
|
|
|
8331 |
return isSetPe();
|
|
|
8332 |
}
|
|
|
8333 |
throw new IllegalStateException();
|
|
|
8334 |
}
|
|
|
8335 |
|
|
|
8336 |
@Override
|
|
|
8337 |
public boolean equals(Object that) {
|
|
|
8338 |
if (that == null)
|
|
|
8339 |
return false;
|
| 695 |
rajveer |
8340 |
if (that instanceof getPaymentForTxnId_result)
|
|
|
8341 |
return this.equals((getPaymentForTxnId_result)that);
|
| 420 |
ashish |
8342 |
return false;
|
|
|
8343 |
}
|
|
|
8344 |
|
| 695 |
rajveer |
8345 |
public boolean equals(getPaymentForTxnId_result that) {
|
| 420 |
ashish |
8346 |
if (that == null)
|
|
|
8347 |
return false;
|
|
|
8348 |
|
|
|
8349 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8350 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
8351 |
if (this_present_success || that_present_success) {
|
|
|
8352 |
if (!(this_present_success && that_present_success))
|
|
|
8353 |
return false;
|
|
|
8354 |
if (!this.success.equals(that.success))
|
|
|
8355 |
return false;
|
|
|
8356 |
}
|
|
|
8357 |
|
|
|
8358 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
8359 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
8360 |
if (this_present_pe || that_present_pe) {
|
|
|
8361 |
if (!(this_present_pe && that_present_pe))
|
|
|
8362 |
return false;
|
|
|
8363 |
if (!this.pe.equals(that.pe))
|
|
|
8364 |
return false;
|
|
|
8365 |
}
|
|
|
8366 |
|
|
|
8367 |
return true;
|
|
|
8368 |
}
|
|
|
8369 |
|
|
|
8370 |
@Override
|
|
|
8371 |
public int hashCode() {
|
|
|
8372 |
return 0;
|
|
|
8373 |
}
|
|
|
8374 |
|
| 695 |
rajveer |
8375 |
public int compareTo(getPaymentForTxnId_result other) {
|
|
|
8376 |
if (!getClass().equals(other.getClass())) {
|
|
|
8377 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8378 |
}
|
|
|
8379 |
|
|
|
8380 |
int lastComparison = 0;
|
|
|
8381 |
getPaymentForTxnId_result typedOther = (getPaymentForTxnId_result)other;
|
|
|
8382 |
|
| 3430 |
rajveer |
8383 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 695 |
rajveer |
8384 |
if (lastComparison != 0) {
|
|
|
8385 |
return lastComparison;
|
|
|
8386 |
}
|
| 3430 |
rajveer |
8387 |
if (isSetSuccess()) {
|
|
|
8388 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
8389 |
if (lastComparison != 0) {
|
|
|
8390 |
return lastComparison;
|
|
|
8391 |
}
|
| 695 |
rajveer |
8392 |
}
|
| 3430 |
rajveer |
8393 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 695 |
rajveer |
8394 |
if (lastComparison != 0) {
|
|
|
8395 |
return lastComparison;
|
|
|
8396 |
}
|
| 3430 |
rajveer |
8397 |
if (isSetPe()) {
|
|
|
8398 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
8399 |
if (lastComparison != 0) {
|
|
|
8400 |
return lastComparison;
|
|
|
8401 |
}
|
| 695 |
rajveer |
8402 |
}
|
|
|
8403 |
return 0;
|
|
|
8404 |
}
|
|
|
8405 |
|
| 3430 |
rajveer |
8406 |
public _Fields fieldForId(int fieldId) {
|
|
|
8407 |
return _Fields.findByThriftId(fieldId);
|
|
|
8408 |
}
|
|
|
8409 |
|
|
|
8410 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8411 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
8412 |
iprot.readStructBegin();
|
|
|
8413 |
while (true)
|
|
|
8414 |
{
|
|
|
8415 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
8416 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
8417 |
break;
|
|
|
8418 |
}
|
| 3430 |
rajveer |
8419 |
switch (field.id) {
|
|
|
8420 |
case 0: // SUCCESS
|
|
|
8421 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
8422 |
{
|
| 4600 |
varun.gupt |
8423 |
org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
|
|
|
8424 |
this.success = new ArrayList<Payment>(_list28.size);
|
|
|
8425 |
for (int _i29 = 0; _i29 < _list28.size; ++_i29)
|
| 695 |
rajveer |
8426 |
{
|
| 4600 |
varun.gupt |
8427 |
Payment _elem30; // required
|
|
|
8428 |
_elem30 = new Payment();
|
|
|
8429 |
_elem30.read(iprot);
|
|
|
8430 |
this.success.add(_elem30);
|
| 695 |
rajveer |
8431 |
}
|
| 3430 |
rajveer |
8432 |
iprot.readListEnd();
|
| 420 |
ashish |
8433 |
}
|
| 3430 |
rajveer |
8434 |
} else {
|
|
|
8435 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8436 |
}
|
|
|
8437 |
break;
|
|
|
8438 |
case 1: // PE
|
|
|
8439 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
8440 |
this.pe = new PaymentException();
|
|
|
8441 |
this.pe.read(iprot);
|
|
|
8442 |
} else {
|
|
|
8443 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8444 |
}
|
|
|
8445 |
break;
|
|
|
8446 |
default:
|
|
|
8447 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
8448 |
}
|
| 3430 |
rajveer |
8449 |
iprot.readFieldEnd();
|
| 420 |
ashish |
8450 |
}
|
|
|
8451 |
iprot.readStructEnd();
|
|
|
8452 |
validate();
|
|
|
8453 |
}
|
|
|
8454 |
|
| 3430 |
rajveer |
8455 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
8456 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8457 |
|
|
|
8458 |
if (this.isSetSuccess()) {
|
|
|
8459 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 695 |
rajveer |
8460 |
{
|
| 3430 |
rajveer |
8461 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 4600 |
varun.gupt |
8462 |
for (Payment _iter31 : this.success)
|
| 695 |
rajveer |
8463 |
{
|
| 4600 |
varun.gupt |
8464 |
_iter31.write(oprot);
|
| 695 |
rajveer |
8465 |
}
|
|
|
8466 |
oprot.writeListEnd();
|
|
|
8467 |
}
|
| 420 |
ashish |
8468 |
oprot.writeFieldEnd();
|
|
|
8469 |
} else if (this.isSetPe()) {
|
|
|
8470 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
8471 |
this.pe.write(oprot);
|
|
|
8472 |
oprot.writeFieldEnd();
|
|
|
8473 |
}
|
|
|
8474 |
oprot.writeFieldStop();
|
|
|
8475 |
oprot.writeStructEnd();
|
|
|
8476 |
}
|
|
|
8477 |
|
|
|
8478 |
@Override
|
|
|
8479 |
public String toString() {
|
| 695 |
rajveer |
8480 |
StringBuilder sb = new StringBuilder("getPaymentForTxnId_result(");
|
| 420 |
ashish |
8481 |
boolean first = true;
|
|
|
8482 |
|
|
|
8483 |
sb.append("success:");
|
|
|
8484 |
if (this.success == null) {
|
|
|
8485 |
sb.append("null");
|
|
|
8486 |
} else {
|
|
|
8487 |
sb.append(this.success);
|
|
|
8488 |
}
|
|
|
8489 |
first = false;
|
|
|
8490 |
if (!first) sb.append(", ");
|
|
|
8491 |
sb.append("pe:");
|
|
|
8492 |
if (this.pe == null) {
|
|
|
8493 |
sb.append("null");
|
|
|
8494 |
} else {
|
|
|
8495 |
sb.append(this.pe);
|
|
|
8496 |
}
|
|
|
8497 |
first = false;
|
|
|
8498 |
sb.append(")");
|
|
|
8499 |
return sb.toString();
|
|
|
8500 |
}
|
|
|
8501 |
|
| 3430 |
rajveer |
8502 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
8503 |
// check for required fields
|
|
|
8504 |
}
|
|
|
8505 |
|
| 3430 |
rajveer |
8506 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8507 |
try {
|
|
|
8508 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8509 |
} catch (org.apache.thrift.TException te) {
|
|
|
8510 |
throw new java.io.IOException(te);
|
|
|
8511 |
}
|
|
|
8512 |
}
|
|
|
8513 |
|
|
|
8514 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8515 |
try {
|
|
|
8516 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8517 |
} catch (org.apache.thrift.TException te) {
|
|
|
8518 |
throw new java.io.IOException(te);
|
|
|
8519 |
}
|
|
|
8520 |
}
|
|
|
8521 |
|
| 420 |
ashish |
8522 |
}
|
|
|
8523 |
|
| 4600 |
varun.gupt |
8524 |
public static class getSuccessfulPaymentForTxnId_args implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_args, getSuccessfulPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8525 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_args");
|
|
|
8526 |
|
|
|
8527 |
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)1);
|
|
|
8528 |
|
|
|
8529 |
private long txnId; // required
|
|
|
8530 |
|
|
|
8531 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8532 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8533 |
TXN_ID((short)1, "txnId");
|
|
|
8534 |
|
|
|
8535 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8536 |
|
|
|
8537 |
static {
|
|
|
8538 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8539 |
byName.put(field.getFieldName(), field);
|
|
|
8540 |
}
|
|
|
8541 |
}
|
|
|
8542 |
|
|
|
8543 |
/**
|
|
|
8544 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8545 |
*/
|
|
|
8546 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8547 |
switch(fieldId) {
|
|
|
8548 |
case 1: // TXN_ID
|
|
|
8549 |
return TXN_ID;
|
|
|
8550 |
default:
|
|
|
8551 |
return null;
|
|
|
8552 |
}
|
|
|
8553 |
}
|
|
|
8554 |
|
|
|
8555 |
/**
|
|
|
8556 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8557 |
* if it is not found.
|
|
|
8558 |
*/
|
|
|
8559 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8560 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8561 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8562 |
return fields;
|
|
|
8563 |
}
|
|
|
8564 |
|
|
|
8565 |
/**
|
|
|
8566 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8567 |
*/
|
|
|
8568 |
public static _Fields findByName(String name) {
|
|
|
8569 |
return byName.get(name);
|
|
|
8570 |
}
|
|
|
8571 |
|
|
|
8572 |
private final short _thriftId;
|
|
|
8573 |
private final String _fieldName;
|
|
|
8574 |
|
|
|
8575 |
_Fields(short thriftId, String fieldName) {
|
|
|
8576 |
_thriftId = thriftId;
|
|
|
8577 |
_fieldName = fieldName;
|
|
|
8578 |
}
|
|
|
8579 |
|
|
|
8580 |
public short getThriftFieldId() {
|
|
|
8581 |
return _thriftId;
|
|
|
8582 |
}
|
|
|
8583 |
|
|
|
8584 |
public String getFieldName() {
|
|
|
8585 |
return _fieldName;
|
|
|
8586 |
}
|
|
|
8587 |
}
|
|
|
8588 |
|
|
|
8589 |
// isset id assignments
|
|
|
8590 |
private static final int __TXNID_ISSET_ID = 0;
|
|
|
8591 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
8592 |
|
|
|
8593 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8594 |
static {
|
|
|
8595 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8596 |
tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8597 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
8598 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8599 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_args.class, metaDataMap);
|
|
|
8600 |
}
|
|
|
8601 |
|
|
|
8602 |
public getSuccessfulPaymentForTxnId_args() {
|
|
|
8603 |
}
|
|
|
8604 |
|
|
|
8605 |
public getSuccessfulPaymentForTxnId_args(
|
|
|
8606 |
long txnId)
|
|
|
8607 |
{
|
|
|
8608 |
this();
|
|
|
8609 |
this.txnId = txnId;
|
|
|
8610 |
setTxnIdIsSet(true);
|
|
|
8611 |
}
|
|
|
8612 |
|
|
|
8613 |
/**
|
|
|
8614 |
* Performs a deep copy on <i>other</i>.
|
|
|
8615 |
*/
|
|
|
8616 |
public getSuccessfulPaymentForTxnId_args(getSuccessfulPaymentForTxnId_args other) {
|
|
|
8617 |
__isset_bit_vector.clear();
|
|
|
8618 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
8619 |
this.txnId = other.txnId;
|
|
|
8620 |
}
|
|
|
8621 |
|
|
|
8622 |
public getSuccessfulPaymentForTxnId_args deepCopy() {
|
|
|
8623 |
return new getSuccessfulPaymentForTxnId_args(this);
|
|
|
8624 |
}
|
|
|
8625 |
|
|
|
8626 |
@Override
|
|
|
8627 |
public void clear() {
|
|
|
8628 |
setTxnIdIsSet(false);
|
|
|
8629 |
this.txnId = 0;
|
|
|
8630 |
}
|
|
|
8631 |
|
|
|
8632 |
public long getTxnId() {
|
|
|
8633 |
return this.txnId;
|
|
|
8634 |
}
|
|
|
8635 |
|
|
|
8636 |
public void setTxnId(long txnId) {
|
|
|
8637 |
this.txnId = txnId;
|
|
|
8638 |
setTxnIdIsSet(true);
|
|
|
8639 |
}
|
|
|
8640 |
|
|
|
8641 |
public void unsetTxnId() {
|
|
|
8642 |
__isset_bit_vector.clear(__TXNID_ISSET_ID);
|
|
|
8643 |
}
|
|
|
8644 |
|
|
|
8645 |
/** Returns true if field txnId is set (has been assigned a value) and false otherwise */
|
|
|
8646 |
public boolean isSetTxnId() {
|
|
|
8647 |
return __isset_bit_vector.get(__TXNID_ISSET_ID);
|
|
|
8648 |
}
|
|
|
8649 |
|
|
|
8650 |
public void setTxnIdIsSet(boolean value) {
|
|
|
8651 |
__isset_bit_vector.set(__TXNID_ISSET_ID, value);
|
|
|
8652 |
}
|
|
|
8653 |
|
|
|
8654 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8655 |
switch (field) {
|
|
|
8656 |
case TXN_ID:
|
|
|
8657 |
if (value == null) {
|
|
|
8658 |
unsetTxnId();
|
|
|
8659 |
} else {
|
|
|
8660 |
setTxnId((Long)value);
|
|
|
8661 |
}
|
|
|
8662 |
break;
|
|
|
8663 |
|
|
|
8664 |
}
|
|
|
8665 |
}
|
|
|
8666 |
|
|
|
8667 |
public Object getFieldValue(_Fields field) {
|
|
|
8668 |
switch (field) {
|
|
|
8669 |
case TXN_ID:
|
|
|
8670 |
return Long.valueOf(getTxnId());
|
|
|
8671 |
|
|
|
8672 |
}
|
|
|
8673 |
throw new IllegalStateException();
|
|
|
8674 |
}
|
|
|
8675 |
|
|
|
8676 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8677 |
public boolean isSet(_Fields field) {
|
|
|
8678 |
if (field == null) {
|
|
|
8679 |
throw new IllegalArgumentException();
|
|
|
8680 |
}
|
|
|
8681 |
|
|
|
8682 |
switch (field) {
|
|
|
8683 |
case TXN_ID:
|
|
|
8684 |
return isSetTxnId();
|
|
|
8685 |
}
|
|
|
8686 |
throw new IllegalStateException();
|
|
|
8687 |
}
|
|
|
8688 |
|
|
|
8689 |
@Override
|
|
|
8690 |
public boolean equals(Object that) {
|
|
|
8691 |
if (that == null)
|
|
|
8692 |
return false;
|
|
|
8693 |
if (that instanceof getSuccessfulPaymentForTxnId_args)
|
|
|
8694 |
return this.equals((getSuccessfulPaymentForTxnId_args)that);
|
|
|
8695 |
return false;
|
|
|
8696 |
}
|
|
|
8697 |
|
|
|
8698 |
public boolean equals(getSuccessfulPaymentForTxnId_args that) {
|
|
|
8699 |
if (that == null)
|
|
|
8700 |
return false;
|
|
|
8701 |
|
|
|
8702 |
boolean this_present_txnId = true;
|
|
|
8703 |
boolean that_present_txnId = true;
|
|
|
8704 |
if (this_present_txnId || that_present_txnId) {
|
|
|
8705 |
if (!(this_present_txnId && that_present_txnId))
|
|
|
8706 |
return false;
|
|
|
8707 |
if (this.txnId != that.txnId)
|
|
|
8708 |
return false;
|
|
|
8709 |
}
|
|
|
8710 |
|
|
|
8711 |
return true;
|
|
|
8712 |
}
|
|
|
8713 |
|
|
|
8714 |
@Override
|
|
|
8715 |
public int hashCode() {
|
|
|
8716 |
return 0;
|
|
|
8717 |
}
|
|
|
8718 |
|
|
|
8719 |
public int compareTo(getSuccessfulPaymentForTxnId_args other) {
|
|
|
8720 |
if (!getClass().equals(other.getClass())) {
|
|
|
8721 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8722 |
}
|
|
|
8723 |
|
|
|
8724 |
int lastComparison = 0;
|
|
|
8725 |
getSuccessfulPaymentForTxnId_args typedOther = (getSuccessfulPaymentForTxnId_args)other;
|
|
|
8726 |
|
|
|
8727 |
lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
|
|
|
8728 |
if (lastComparison != 0) {
|
|
|
8729 |
return lastComparison;
|
|
|
8730 |
}
|
|
|
8731 |
if (isSetTxnId()) {
|
|
|
8732 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
|
|
|
8733 |
if (lastComparison != 0) {
|
|
|
8734 |
return lastComparison;
|
|
|
8735 |
}
|
|
|
8736 |
}
|
|
|
8737 |
return 0;
|
|
|
8738 |
}
|
|
|
8739 |
|
|
|
8740 |
public _Fields fieldForId(int fieldId) {
|
|
|
8741 |
return _Fields.findByThriftId(fieldId);
|
|
|
8742 |
}
|
|
|
8743 |
|
|
|
8744 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8745 |
org.apache.thrift.protocol.TField field;
|
|
|
8746 |
iprot.readStructBegin();
|
|
|
8747 |
while (true)
|
|
|
8748 |
{
|
|
|
8749 |
field = iprot.readFieldBegin();
|
|
|
8750 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8751 |
break;
|
|
|
8752 |
}
|
|
|
8753 |
switch (field.id) {
|
|
|
8754 |
case 1: // TXN_ID
|
|
|
8755 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
8756 |
this.txnId = iprot.readI64();
|
|
|
8757 |
setTxnIdIsSet(true);
|
|
|
8758 |
} else {
|
|
|
8759 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8760 |
}
|
|
|
8761 |
break;
|
|
|
8762 |
default:
|
|
|
8763 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8764 |
}
|
|
|
8765 |
iprot.readFieldEnd();
|
|
|
8766 |
}
|
|
|
8767 |
iprot.readStructEnd();
|
|
|
8768 |
validate();
|
|
|
8769 |
}
|
|
|
8770 |
|
|
|
8771 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8772 |
validate();
|
|
|
8773 |
|
|
|
8774 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8775 |
oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
|
|
|
8776 |
oprot.writeI64(this.txnId);
|
|
|
8777 |
oprot.writeFieldEnd();
|
|
|
8778 |
oprot.writeFieldStop();
|
|
|
8779 |
oprot.writeStructEnd();
|
|
|
8780 |
}
|
|
|
8781 |
|
|
|
8782 |
@Override
|
|
|
8783 |
public String toString() {
|
|
|
8784 |
StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_args(");
|
|
|
8785 |
boolean first = true;
|
|
|
8786 |
|
|
|
8787 |
sb.append("txnId:");
|
|
|
8788 |
sb.append(this.txnId);
|
|
|
8789 |
first = false;
|
|
|
8790 |
sb.append(")");
|
|
|
8791 |
return sb.toString();
|
|
|
8792 |
}
|
|
|
8793 |
|
|
|
8794 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8795 |
// check for required fields
|
|
|
8796 |
}
|
|
|
8797 |
|
|
|
8798 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8799 |
try {
|
|
|
8800 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8801 |
} catch (org.apache.thrift.TException te) {
|
|
|
8802 |
throw new java.io.IOException(te);
|
|
|
8803 |
}
|
|
|
8804 |
}
|
|
|
8805 |
|
|
|
8806 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8807 |
try {
|
|
|
8808 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
8809 |
__isset_bit_vector = new BitSet(1);
|
|
|
8810 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8811 |
} catch (org.apache.thrift.TException te) {
|
|
|
8812 |
throw new java.io.IOException(te);
|
|
|
8813 |
}
|
|
|
8814 |
}
|
|
|
8815 |
|
|
|
8816 |
}
|
|
|
8817 |
|
|
|
8818 |
public static class getSuccessfulPaymentForTxnId_result implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_result, getSuccessfulPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8819 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_result");
|
|
|
8820 |
|
|
|
8821 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
|
|
8822 |
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);
|
|
|
8823 |
|
|
|
8824 |
private Payment success; // required
|
|
|
8825 |
private PaymentException pe; // required
|
|
|
8826 |
|
|
|
8827 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8828 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8829 |
SUCCESS((short)0, "success"),
|
|
|
8830 |
PE((short)1, "pe");
|
|
|
8831 |
|
|
|
8832 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8833 |
|
|
|
8834 |
static {
|
|
|
8835 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8836 |
byName.put(field.getFieldName(), field);
|
|
|
8837 |
}
|
|
|
8838 |
}
|
|
|
8839 |
|
|
|
8840 |
/**
|
|
|
8841 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8842 |
*/
|
|
|
8843 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8844 |
switch(fieldId) {
|
|
|
8845 |
case 0: // SUCCESS
|
|
|
8846 |
return SUCCESS;
|
|
|
8847 |
case 1: // PE
|
|
|
8848 |
return PE;
|
|
|
8849 |
default:
|
|
|
8850 |
return null;
|
|
|
8851 |
}
|
|
|
8852 |
}
|
|
|
8853 |
|
|
|
8854 |
/**
|
|
|
8855 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8856 |
* if it is not found.
|
|
|
8857 |
*/
|
|
|
8858 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8859 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8860 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8861 |
return fields;
|
|
|
8862 |
}
|
|
|
8863 |
|
|
|
8864 |
/**
|
|
|
8865 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8866 |
*/
|
|
|
8867 |
public static _Fields findByName(String name) {
|
|
|
8868 |
return byName.get(name);
|
|
|
8869 |
}
|
|
|
8870 |
|
|
|
8871 |
private final short _thriftId;
|
|
|
8872 |
private final String _fieldName;
|
|
|
8873 |
|
|
|
8874 |
_Fields(short thriftId, String fieldName) {
|
|
|
8875 |
_thriftId = thriftId;
|
|
|
8876 |
_fieldName = fieldName;
|
|
|
8877 |
}
|
|
|
8878 |
|
|
|
8879 |
public short getThriftFieldId() {
|
|
|
8880 |
return _thriftId;
|
|
|
8881 |
}
|
|
|
8882 |
|
|
|
8883 |
public String getFieldName() {
|
|
|
8884 |
return _fieldName;
|
|
|
8885 |
}
|
|
|
8886 |
}
|
|
|
8887 |
|
|
|
8888 |
// isset id assignments
|
|
|
8889 |
|
|
|
8890 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8891 |
static {
|
|
|
8892 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8893 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8894 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
|
|
|
8895 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8896 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
8897 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8898 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_result.class, metaDataMap);
|
|
|
8899 |
}
|
|
|
8900 |
|
|
|
8901 |
public getSuccessfulPaymentForTxnId_result() {
|
|
|
8902 |
}
|
|
|
8903 |
|
|
|
8904 |
public getSuccessfulPaymentForTxnId_result(
|
|
|
8905 |
Payment success,
|
|
|
8906 |
PaymentException pe)
|
|
|
8907 |
{
|
|
|
8908 |
this();
|
|
|
8909 |
this.success = success;
|
|
|
8910 |
this.pe = pe;
|
|
|
8911 |
}
|
|
|
8912 |
|
|
|
8913 |
/**
|
|
|
8914 |
* Performs a deep copy on <i>other</i>.
|
|
|
8915 |
*/
|
|
|
8916 |
public getSuccessfulPaymentForTxnId_result(getSuccessfulPaymentForTxnId_result other) {
|
|
|
8917 |
if (other.isSetSuccess()) {
|
|
|
8918 |
this.success = new Payment(other.success);
|
|
|
8919 |
}
|
|
|
8920 |
if (other.isSetPe()) {
|
|
|
8921 |
this.pe = new PaymentException(other.pe);
|
|
|
8922 |
}
|
|
|
8923 |
}
|
|
|
8924 |
|
|
|
8925 |
public getSuccessfulPaymentForTxnId_result deepCopy() {
|
|
|
8926 |
return new getSuccessfulPaymentForTxnId_result(this);
|
|
|
8927 |
}
|
|
|
8928 |
|
|
|
8929 |
@Override
|
|
|
8930 |
public void clear() {
|
|
|
8931 |
this.success = null;
|
|
|
8932 |
this.pe = null;
|
|
|
8933 |
}
|
|
|
8934 |
|
|
|
8935 |
public Payment getSuccess() {
|
|
|
8936 |
return this.success;
|
|
|
8937 |
}
|
|
|
8938 |
|
|
|
8939 |
public void setSuccess(Payment success) {
|
|
|
8940 |
this.success = success;
|
|
|
8941 |
}
|
|
|
8942 |
|
|
|
8943 |
public void unsetSuccess() {
|
|
|
8944 |
this.success = null;
|
|
|
8945 |
}
|
|
|
8946 |
|
|
|
8947 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
8948 |
public boolean isSetSuccess() {
|
|
|
8949 |
return this.success != null;
|
|
|
8950 |
}
|
|
|
8951 |
|
|
|
8952 |
public void setSuccessIsSet(boolean value) {
|
|
|
8953 |
if (!value) {
|
|
|
8954 |
this.success = null;
|
|
|
8955 |
}
|
|
|
8956 |
}
|
|
|
8957 |
|
|
|
8958 |
public PaymentException getPe() {
|
|
|
8959 |
return this.pe;
|
|
|
8960 |
}
|
|
|
8961 |
|
|
|
8962 |
public void setPe(PaymentException pe) {
|
|
|
8963 |
this.pe = pe;
|
|
|
8964 |
}
|
|
|
8965 |
|
|
|
8966 |
public void unsetPe() {
|
|
|
8967 |
this.pe = null;
|
|
|
8968 |
}
|
|
|
8969 |
|
|
|
8970 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
|
|
8971 |
public boolean isSetPe() {
|
|
|
8972 |
return this.pe != null;
|
|
|
8973 |
}
|
|
|
8974 |
|
|
|
8975 |
public void setPeIsSet(boolean value) {
|
|
|
8976 |
if (!value) {
|
|
|
8977 |
this.pe = null;
|
|
|
8978 |
}
|
|
|
8979 |
}
|
|
|
8980 |
|
|
|
8981 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8982 |
switch (field) {
|
|
|
8983 |
case SUCCESS:
|
|
|
8984 |
if (value == null) {
|
|
|
8985 |
unsetSuccess();
|
|
|
8986 |
} else {
|
|
|
8987 |
setSuccess((Payment)value);
|
|
|
8988 |
}
|
|
|
8989 |
break;
|
|
|
8990 |
|
|
|
8991 |
case PE:
|
|
|
8992 |
if (value == null) {
|
|
|
8993 |
unsetPe();
|
|
|
8994 |
} else {
|
|
|
8995 |
setPe((PaymentException)value);
|
|
|
8996 |
}
|
|
|
8997 |
break;
|
|
|
8998 |
|
|
|
8999 |
}
|
|
|
9000 |
}
|
|
|
9001 |
|
|
|
9002 |
public Object getFieldValue(_Fields field) {
|
|
|
9003 |
switch (field) {
|
|
|
9004 |
case SUCCESS:
|
|
|
9005 |
return getSuccess();
|
|
|
9006 |
|
|
|
9007 |
case PE:
|
|
|
9008 |
return getPe();
|
|
|
9009 |
|
|
|
9010 |
}
|
|
|
9011 |
throw new IllegalStateException();
|
|
|
9012 |
}
|
|
|
9013 |
|
|
|
9014 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9015 |
public boolean isSet(_Fields field) {
|
|
|
9016 |
if (field == null) {
|
|
|
9017 |
throw new IllegalArgumentException();
|
|
|
9018 |
}
|
|
|
9019 |
|
|
|
9020 |
switch (field) {
|
|
|
9021 |
case SUCCESS:
|
|
|
9022 |
return isSetSuccess();
|
|
|
9023 |
case PE:
|
|
|
9024 |
return isSetPe();
|
|
|
9025 |
}
|
|
|
9026 |
throw new IllegalStateException();
|
|
|
9027 |
}
|
|
|
9028 |
|
|
|
9029 |
@Override
|
|
|
9030 |
public boolean equals(Object that) {
|
|
|
9031 |
if (that == null)
|
|
|
9032 |
return false;
|
|
|
9033 |
if (that instanceof getSuccessfulPaymentForTxnId_result)
|
|
|
9034 |
return this.equals((getSuccessfulPaymentForTxnId_result)that);
|
|
|
9035 |
return false;
|
|
|
9036 |
}
|
|
|
9037 |
|
|
|
9038 |
public boolean equals(getSuccessfulPaymentForTxnId_result that) {
|
|
|
9039 |
if (that == null)
|
|
|
9040 |
return false;
|
|
|
9041 |
|
|
|
9042 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
9043 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
9044 |
if (this_present_success || that_present_success) {
|
|
|
9045 |
if (!(this_present_success && that_present_success))
|
|
|
9046 |
return false;
|
|
|
9047 |
if (!this.success.equals(that.success))
|
|
|
9048 |
return false;
|
|
|
9049 |
}
|
|
|
9050 |
|
|
|
9051 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
9052 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
9053 |
if (this_present_pe || that_present_pe) {
|
|
|
9054 |
if (!(this_present_pe && that_present_pe))
|
|
|
9055 |
return false;
|
|
|
9056 |
if (!this.pe.equals(that.pe))
|
|
|
9057 |
return false;
|
|
|
9058 |
}
|
|
|
9059 |
|
|
|
9060 |
return true;
|
|
|
9061 |
}
|
|
|
9062 |
|
|
|
9063 |
@Override
|
|
|
9064 |
public int hashCode() {
|
|
|
9065 |
return 0;
|
|
|
9066 |
}
|
|
|
9067 |
|
|
|
9068 |
public int compareTo(getSuccessfulPaymentForTxnId_result other) {
|
|
|
9069 |
if (!getClass().equals(other.getClass())) {
|
|
|
9070 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9071 |
}
|
|
|
9072 |
|
|
|
9073 |
int lastComparison = 0;
|
|
|
9074 |
getSuccessfulPaymentForTxnId_result typedOther = (getSuccessfulPaymentForTxnId_result)other;
|
|
|
9075 |
|
|
|
9076 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
9077 |
if (lastComparison != 0) {
|
|
|
9078 |
return lastComparison;
|
|
|
9079 |
}
|
|
|
9080 |
if (isSetSuccess()) {
|
|
|
9081 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
9082 |
if (lastComparison != 0) {
|
|
|
9083 |
return lastComparison;
|
|
|
9084 |
}
|
|
|
9085 |
}
|
|
|
9086 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
|
|
9087 |
if (lastComparison != 0) {
|
|
|
9088 |
return lastComparison;
|
|
|
9089 |
}
|
|
|
9090 |
if (isSetPe()) {
|
|
|
9091 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
9092 |
if (lastComparison != 0) {
|
|
|
9093 |
return lastComparison;
|
|
|
9094 |
}
|
|
|
9095 |
}
|
|
|
9096 |
return 0;
|
|
|
9097 |
}
|
|
|
9098 |
|
|
|
9099 |
public _Fields fieldForId(int fieldId) {
|
|
|
9100 |
return _Fields.findByThriftId(fieldId);
|
|
|
9101 |
}
|
|
|
9102 |
|
|
|
9103 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9104 |
org.apache.thrift.protocol.TField field;
|
|
|
9105 |
iprot.readStructBegin();
|
|
|
9106 |
while (true)
|
|
|
9107 |
{
|
|
|
9108 |
field = iprot.readFieldBegin();
|
|
|
9109 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9110 |
break;
|
|
|
9111 |
}
|
|
|
9112 |
switch (field.id) {
|
|
|
9113 |
case 0: // SUCCESS
|
|
|
9114 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9115 |
this.success = new Payment();
|
|
|
9116 |
this.success.read(iprot);
|
|
|
9117 |
} else {
|
|
|
9118 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9119 |
}
|
|
|
9120 |
break;
|
|
|
9121 |
case 1: // PE
|
|
|
9122 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9123 |
this.pe = new PaymentException();
|
|
|
9124 |
this.pe.read(iprot);
|
|
|
9125 |
} else {
|
|
|
9126 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9127 |
}
|
|
|
9128 |
break;
|
|
|
9129 |
default:
|
|
|
9130 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9131 |
}
|
|
|
9132 |
iprot.readFieldEnd();
|
|
|
9133 |
}
|
|
|
9134 |
iprot.readStructEnd();
|
|
|
9135 |
validate();
|
|
|
9136 |
}
|
|
|
9137 |
|
|
|
9138 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9139 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9140 |
|
|
|
9141 |
if (this.isSetSuccess()) {
|
|
|
9142 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
9143 |
this.success.write(oprot);
|
|
|
9144 |
oprot.writeFieldEnd();
|
|
|
9145 |
} else if (this.isSetPe()) {
|
|
|
9146 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
9147 |
this.pe.write(oprot);
|
|
|
9148 |
oprot.writeFieldEnd();
|
|
|
9149 |
}
|
|
|
9150 |
oprot.writeFieldStop();
|
|
|
9151 |
oprot.writeStructEnd();
|
|
|
9152 |
}
|
|
|
9153 |
|
|
|
9154 |
@Override
|
|
|
9155 |
public String toString() {
|
|
|
9156 |
StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_result(");
|
|
|
9157 |
boolean first = true;
|
|
|
9158 |
|
|
|
9159 |
sb.append("success:");
|
|
|
9160 |
if (this.success == null) {
|
|
|
9161 |
sb.append("null");
|
|
|
9162 |
} else {
|
|
|
9163 |
sb.append(this.success);
|
|
|
9164 |
}
|
|
|
9165 |
first = false;
|
|
|
9166 |
if (!first) sb.append(", ");
|
|
|
9167 |
sb.append("pe:");
|
|
|
9168 |
if (this.pe == null) {
|
|
|
9169 |
sb.append("null");
|
|
|
9170 |
} else {
|
|
|
9171 |
sb.append(this.pe);
|
|
|
9172 |
}
|
|
|
9173 |
first = false;
|
|
|
9174 |
sb.append(")");
|
|
|
9175 |
return sb.toString();
|
|
|
9176 |
}
|
|
|
9177 |
|
|
|
9178 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9179 |
// check for required fields
|
|
|
9180 |
}
|
|
|
9181 |
|
|
|
9182 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9183 |
try {
|
|
|
9184 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9185 |
} catch (org.apache.thrift.TException te) {
|
|
|
9186 |
throw new java.io.IOException(te);
|
|
|
9187 |
}
|
|
|
9188 |
}
|
|
|
9189 |
|
|
|
9190 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9191 |
try {
|
|
|
9192 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9193 |
} catch (org.apache.thrift.TException te) {
|
|
|
9194 |
throw new java.io.IOException(te);
|
|
|
9195 |
}
|
|
|
9196 |
}
|
|
|
9197 |
|
|
|
9198 |
}
|
|
|
9199 |
|
| 3430 |
rajveer |
9200 |
public static class updatePaymentDetails_args implements org.apache.thrift.TBase<updatePaymentDetails_args, updatePaymentDetails_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9201 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_args");
|
| 420 |
ashish |
9202 |
|
| 3430 |
rajveer |
9203 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
9204 |
private static final org.apache.thrift.protocol.TField GATEWAY_PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayPaymentId", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
9205 |
private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
9206 |
private static final org.apache.thrift.protocol.TField GATEWAY_TXN_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayTxnStatus", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
9207 |
private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)5);
|
|
|
9208 |
private static final org.apache.thrift.protocol.TField GATEWAY_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayTxnId", org.apache.thrift.protocol.TType.STRING, (short)6);
|
|
|
9209 |
private static final org.apache.thrift.protocol.TField AUTH_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("authCode", org.apache.thrift.protocol.TType.STRING, (short)7);
|
|
|
9210 |
private static final org.apache.thrift.protocol.TField REFERENCE_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceCode", org.apache.thrift.protocol.TType.STRING, (short)8);
|
|
|
9211 |
private static final org.apache.thrift.protocol.TField ERROR_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("errorCode", org.apache.thrift.protocol.TType.STRING, (short)9);
|
|
|
9212 |
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)10);
|
|
|
9213 |
private static final org.apache.thrift.protocol.TField GATEWAY_TXN_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayTxnDate", org.apache.thrift.protocol.TType.STRING, (short)11);
|
|
|
9214 |
private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.LIST, (short)12);
|
| 420 |
ashish |
9215 |
|
| 3430 |
rajveer |
9216 |
private long id; // required
|
|
|
9217 |
private String gatewayPaymentId; // required
|
|
|
9218 |
private String sessionId; // required
|
|
|
9219 |
private String gatewayTxnStatus; // required
|
|
|
9220 |
private String description; // required
|
|
|
9221 |
private String gatewayTxnId; // required
|
|
|
9222 |
private String authCode; // required
|
|
|
9223 |
private String referenceCode; // required
|
|
|
9224 |
private String errorCode; // required
|
|
|
9225 |
private PaymentStatus status; // required
|
|
|
9226 |
private String gatewayTxnDate; // required
|
|
|
9227 |
private List<Attribute> attributes; // required
|
| 420 |
ashish |
9228 |
|
|
|
9229 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
9230 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 420 |
ashish |
9231 |
ID((short)1, "id"),
|
| 695 |
rajveer |
9232 |
GATEWAY_PAYMENT_ID((short)2, "gatewayPaymentId"),
|
|
|
9233 |
SESSION_ID((short)3, "sessionId"),
|
|
|
9234 |
GATEWAY_TXN_STATUS((short)4, "gatewayTxnStatus"),
|
|
|
9235 |
DESCRIPTION((short)5, "description"),
|
|
|
9236 |
GATEWAY_TXN_ID((short)6, "gatewayTxnId"),
|
|
|
9237 |
AUTH_CODE((short)7, "authCode"),
|
|
|
9238 |
REFERENCE_CODE((short)8, "referenceCode"),
|
|
|
9239 |
ERROR_CODE((short)9, "errorCode"),
|
|
|
9240 |
/**
|
|
|
9241 |
*
|
|
|
9242 |
* @see PaymentStatus
|
|
|
9243 |
*/
|
|
|
9244 |
STATUS((short)10, "status"),
|
| 1119 |
rajveer |
9245 |
GATEWAY_TXN_DATE((short)11, "gatewayTxnDate"),
|
|
|
9246 |
ATTRIBUTES((short)12, "attributes");
|
| 420 |
ashish |
9247 |
|
|
|
9248 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9249 |
|
|
|
9250 |
static {
|
|
|
9251 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9252 |
byName.put(field.getFieldName(), field);
|
|
|
9253 |
}
|
|
|
9254 |
}
|
|
|
9255 |
|
|
|
9256 |
/**
|
|
|
9257 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9258 |
*/
|
|
|
9259 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
9260 |
switch(fieldId) {
|
|
|
9261 |
case 1: // ID
|
|
|
9262 |
return ID;
|
|
|
9263 |
case 2: // GATEWAY_PAYMENT_ID
|
|
|
9264 |
return GATEWAY_PAYMENT_ID;
|
|
|
9265 |
case 3: // SESSION_ID
|
|
|
9266 |
return SESSION_ID;
|
|
|
9267 |
case 4: // GATEWAY_TXN_STATUS
|
|
|
9268 |
return GATEWAY_TXN_STATUS;
|
|
|
9269 |
case 5: // DESCRIPTION
|
|
|
9270 |
return DESCRIPTION;
|
|
|
9271 |
case 6: // GATEWAY_TXN_ID
|
|
|
9272 |
return GATEWAY_TXN_ID;
|
|
|
9273 |
case 7: // AUTH_CODE
|
|
|
9274 |
return AUTH_CODE;
|
|
|
9275 |
case 8: // REFERENCE_CODE
|
|
|
9276 |
return REFERENCE_CODE;
|
|
|
9277 |
case 9: // ERROR_CODE
|
|
|
9278 |
return ERROR_CODE;
|
|
|
9279 |
case 10: // STATUS
|
|
|
9280 |
return STATUS;
|
|
|
9281 |
case 11: // GATEWAY_TXN_DATE
|
|
|
9282 |
return GATEWAY_TXN_DATE;
|
|
|
9283 |
case 12: // ATTRIBUTES
|
|
|
9284 |
return ATTRIBUTES;
|
|
|
9285 |
default:
|
|
|
9286 |
return null;
|
|
|
9287 |
}
|
| 420 |
ashish |
9288 |
}
|
|
|
9289 |
|
|
|
9290 |
/**
|
|
|
9291 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9292 |
* if it is not found.
|
|
|
9293 |
*/
|
|
|
9294 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9295 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9296 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9297 |
return fields;
|
|
|
9298 |
}
|
|
|
9299 |
|
|
|
9300 |
/**
|
|
|
9301 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9302 |
*/
|
|
|
9303 |
public static _Fields findByName(String name) {
|
|
|
9304 |
return byName.get(name);
|
|
|
9305 |
}
|
|
|
9306 |
|
|
|
9307 |
private final short _thriftId;
|
|
|
9308 |
private final String _fieldName;
|
|
|
9309 |
|
|
|
9310 |
_Fields(short thriftId, String fieldName) {
|
|
|
9311 |
_thriftId = thriftId;
|
|
|
9312 |
_fieldName = fieldName;
|
|
|
9313 |
}
|
|
|
9314 |
|
|
|
9315 |
public short getThriftFieldId() {
|
|
|
9316 |
return _thriftId;
|
|
|
9317 |
}
|
|
|
9318 |
|
|
|
9319 |
public String getFieldName() {
|
|
|
9320 |
return _fieldName;
|
|
|
9321 |
}
|
|
|
9322 |
}
|
|
|
9323 |
|
|
|
9324 |
// isset id assignments
|
|
|
9325 |
private static final int __ID_ISSET_ID = 0;
|
|
|
9326 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
9327 |
|
| 3430 |
rajveer |
9328 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
9329 |
static {
|
| 3430 |
rajveer |
9330 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9331 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9332 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9333 |
tmpMap.put(_Fields.GATEWAY_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9334 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
9335 |
tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9336 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
9337 |
tmpMap.put(_Fields.GATEWAY_TXN_STATUS, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9338 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
9339 |
tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9340 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
9341 |
tmpMap.put(_Fields.GATEWAY_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9342 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
9343 |
tmpMap.put(_Fields.AUTH_CODE, new org.apache.thrift.meta_data.FieldMetaData("authCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9344 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
9345 |
tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9346 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
9347 |
tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9348 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
9349 |
tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9350 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
|
|
|
9351 |
tmpMap.put(_Fields.GATEWAY_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9352 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
9353 |
tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9354 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
9355 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
|
|
|
9356 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9357 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_args.class, metaDataMap);
|
| 420 |
ashish |
9358 |
}
|
|
|
9359 |
|
| 695 |
rajveer |
9360 |
public updatePaymentDetails_args() {
|
| 420 |
ashish |
9361 |
}
|
|
|
9362 |
|
| 695 |
rajveer |
9363 |
public updatePaymentDetails_args(
|
| 420 |
ashish |
9364 |
long id,
|
| 695 |
rajveer |
9365 |
String gatewayPaymentId,
|
|
|
9366 |
String sessionId,
|
|
|
9367 |
String gatewayTxnStatus,
|
|
|
9368 |
String description,
|
|
|
9369 |
String gatewayTxnId,
|
|
|
9370 |
String authCode,
|
|
|
9371 |
String referenceCode,
|
|
|
9372 |
String errorCode,
|
|
|
9373 |
PaymentStatus status,
|
| 1119 |
rajveer |
9374 |
String gatewayTxnDate,
|
| 695 |
rajveer |
9375 |
List<Attribute> attributes)
|
| 420 |
ashish |
9376 |
{
|
|
|
9377 |
this();
|
|
|
9378 |
this.id = id;
|
|
|
9379 |
setIdIsSet(true);
|
| 695 |
rajveer |
9380 |
this.gatewayPaymentId = gatewayPaymentId;
|
|
|
9381 |
this.sessionId = sessionId;
|
|
|
9382 |
this.gatewayTxnStatus = gatewayTxnStatus;
|
|
|
9383 |
this.description = description;
|
|
|
9384 |
this.gatewayTxnId = gatewayTxnId;
|
|
|
9385 |
this.authCode = authCode;
|
|
|
9386 |
this.referenceCode = referenceCode;
|
|
|
9387 |
this.errorCode = errorCode;
|
|
|
9388 |
this.status = status;
|
| 1119 |
rajveer |
9389 |
this.gatewayTxnDate = gatewayTxnDate;
|
| 695 |
rajveer |
9390 |
this.attributes = attributes;
|
| 420 |
ashish |
9391 |
}
|
|
|
9392 |
|
|
|
9393 |
/**
|
|
|
9394 |
* Performs a deep copy on <i>other</i>.
|
|
|
9395 |
*/
|
| 695 |
rajveer |
9396 |
public updatePaymentDetails_args(updatePaymentDetails_args other) {
|
| 420 |
ashish |
9397 |
__isset_bit_vector.clear();
|
|
|
9398 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9399 |
this.id = other.id;
|
| 695 |
rajveer |
9400 |
if (other.isSetGatewayPaymentId()) {
|
|
|
9401 |
this.gatewayPaymentId = other.gatewayPaymentId;
|
| 420 |
ashish |
9402 |
}
|
| 695 |
rajveer |
9403 |
if (other.isSetSessionId()) {
|
|
|
9404 |
this.sessionId = other.sessionId;
|
| 420 |
ashish |
9405 |
}
|
| 695 |
rajveer |
9406 |
if (other.isSetGatewayTxnStatus()) {
|
|
|
9407 |
this.gatewayTxnStatus = other.gatewayTxnStatus;
|
| 420 |
ashish |
9408 |
}
|
| 695 |
rajveer |
9409 |
if (other.isSetDescription()) {
|
|
|
9410 |
this.description = other.description;
|
| 420 |
ashish |
9411 |
}
|
| 695 |
rajveer |
9412 |
if (other.isSetGatewayTxnId()) {
|
|
|
9413 |
this.gatewayTxnId = other.gatewayTxnId;
|
| 420 |
ashish |
9414 |
}
|
| 695 |
rajveer |
9415 |
if (other.isSetAuthCode()) {
|
|
|
9416 |
this.authCode = other.authCode;
|
| 420 |
ashish |
9417 |
}
|
| 695 |
rajveer |
9418 |
if (other.isSetReferenceCode()) {
|
|
|
9419 |
this.referenceCode = other.referenceCode;
|
| 420 |
ashish |
9420 |
}
|
| 695 |
rajveer |
9421 |
if (other.isSetErrorCode()) {
|
|
|
9422 |
this.errorCode = other.errorCode;
|
|
|
9423 |
}
|
|
|
9424 |
if (other.isSetStatus()) {
|
|
|
9425 |
this.status = other.status;
|
|
|
9426 |
}
|
| 1119 |
rajveer |
9427 |
if (other.isSetGatewayTxnDate()) {
|
|
|
9428 |
this.gatewayTxnDate = other.gatewayTxnDate;
|
|
|
9429 |
}
|
| 695 |
rajveer |
9430 |
if (other.isSetAttributes()) {
|
|
|
9431 |
List<Attribute> __this__attributes = new ArrayList<Attribute>();
|
|
|
9432 |
for (Attribute other_element : other.attributes) {
|
|
|
9433 |
__this__attributes.add(new Attribute(other_element));
|
|
|
9434 |
}
|
|
|
9435 |
this.attributes = __this__attributes;
|
|
|
9436 |
}
|
| 420 |
ashish |
9437 |
}
|
|
|
9438 |
|
| 695 |
rajveer |
9439 |
public updatePaymentDetails_args deepCopy() {
|
|
|
9440 |
return new updatePaymentDetails_args(this);
|
| 420 |
ashish |
9441 |
}
|
|
|
9442 |
|
| 3430 |
rajveer |
9443 |
@Override
|
|
|
9444 |
public void clear() {
|
|
|
9445 |
setIdIsSet(false);
|
|
|
9446 |
this.id = 0;
|
|
|
9447 |
this.gatewayPaymentId = null;
|
|
|
9448 |
this.sessionId = null;
|
|
|
9449 |
this.gatewayTxnStatus = null;
|
|
|
9450 |
this.description = null;
|
|
|
9451 |
this.gatewayTxnId = null;
|
|
|
9452 |
this.authCode = null;
|
|
|
9453 |
this.referenceCode = null;
|
|
|
9454 |
this.errorCode = null;
|
|
|
9455 |
this.status = null;
|
|
|
9456 |
this.gatewayTxnDate = null;
|
|
|
9457 |
this.attributes = null;
|
| 420 |
ashish |
9458 |
}
|
|
|
9459 |
|
|
|
9460 |
public long getId() {
|
|
|
9461 |
return this.id;
|
|
|
9462 |
}
|
|
|
9463 |
|
| 3430 |
rajveer |
9464 |
public void setId(long id) {
|
| 420 |
ashish |
9465 |
this.id = id;
|
|
|
9466 |
setIdIsSet(true);
|
|
|
9467 |
}
|
|
|
9468 |
|
|
|
9469 |
public void unsetId() {
|
|
|
9470 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
9471 |
}
|
|
|
9472 |
|
| 3430 |
rajveer |
9473 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
9474 |
public boolean isSetId() {
|
|
|
9475 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
9476 |
}
|
|
|
9477 |
|
|
|
9478 |
public void setIdIsSet(boolean value) {
|
|
|
9479 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
9480 |
}
|
|
|
9481 |
|
| 695 |
rajveer |
9482 |
public String getGatewayPaymentId() {
|
|
|
9483 |
return this.gatewayPaymentId;
|
| 420 |
ashish |
9484 |
}
|
|
|
9485 |
|
| 3430 |
rajveer |
9486 |
public void setGatewayPaymentId(String gatewayPaymentId) {
|
| 695 |
rajveer |
9487 |
this.gatewayPaymentId = gatewayPaymentId;
|
| 420 |
ashish |
9488 |
}
|
|
|
9489 |
|
| 695 |
rajveer |
9490 |
public void unsetGatewayPaymentId() {
|
|
|
9491 |
this.gatewayPaymentId = null;
|
| 420 |
ashish |
9492 |
}
|
|
|
9493 |
|
| 3430 |
rajveer |
9494 |
/** Returns true if field gatewayPaymentId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
9495 |
public boolean isSetGatewayPaymentId() {
|
|
|
9496 |
return this.gatewayPaymentId != null;
|
| 420 |
ashish |
9497 |
}
|
|
|
9498 |
|
| 695 |
rajveer |
9499 |
public void setGatewayPaymentIdIsSet(boolean value) {
|
| 420 |
ashish |
9500 |
if (!value) {
|
| 695 |
rajveer |
9501 |
this.gatewayPaymentId = null;
|
| 420 |
ashish |
9502 |
}
|
|
|
9503 |
}
|
|
|
9504 |
|
| 695 |
rajveer |
9505 |
public String getSessionId() {
|
|
|
9506 |
return this.sessionId;
|
| 420 |
ashish |
9507 |
}
|
|
|
9508 |
|
| 3430 |
rajveer |
9509 |
public void setSessionId(String sessionId) {
|
| 695 |
rajveer |
9510 |
this.sessionId = sessionId;
|
| 420 |
ashish |
9511 |
}
|
|
|
9512 |
|
| 695 |
rajveer |
9513 |
public void unsetSessionId() {
|
|
|
9514 |
this.sessionId = null;
|
| 420 |
ashish |
9515 |
}
|
|
|
9516 |
|
| 3430 |
rajveer |
9517 |
/** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
9518 |
public boolean isSetSessionId() {
|
|
|
9519 |
return this.sessionId != null;
|
| 420 |
ashish |
9520 |
}
|
|
|
9521 |
|
| 695 |
rajveer |
9522 |
public void setSessionIdIsSet(boolean value) {
|
| 420 |
ashish |
9523 |
if (!value) {
|
| 695 |
rajveer |
9524 |
this.sessionId = null;
|
| 420 |
ashish |
9525 |
}
|
|
|
9526 |
}
|
|
|
9527 |
|
| 695 |
rajveer |
9528 |
public String getGatewayTxnStatus() {
|
|
|
9529 |
return this.gatewayTxnStatus;
|
| 420 |
ashish |
9530 |
}
|
|
|
9531 |
|
| 3430 |
rajveer |
9532 |
public void setGatewayTxnStatus(String gatewayTxnStatus) {
|
| 695 |
rajveer |
9533 |
this.gatewayTxnStatus = gatewayTxnStatus;
|
| 420 |
ashish |
9534 |
}
|
|
|
9535 |
|
| 695 |
rajveer |
9536 |
public void unsetGatewayTxnStatus() {
|
|
|
9537 |
this.gatewayTxnStatus = null;
|
| 420 |
ashish |
9538 |
}
|
|
|
9539 |
|
| 3430 |
rajveer |
9540 |
/** Returns true if field gatewayTxnStatus is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
9541 |
public boolean isSetGatewayTxnStatus() {
|
|
|
9542 |
return this.gatewayTxnStatus != null;
|
| 420 |
ashish |
9543 |
}
|
|
|
9544 |
|
| 695 |
rajveer |
9545 |
public void setGatewayTxnStatusIsSet(boolean value) {
|
| 420 |
ashish |
9546 |
if (!value) {
|
| 695 |
rajveer |
9547 |
this.gatewayTxnStatus = null;
|
| 420 |
ashish |
9548 |
}
|
|
|
9549 |
}
|
|
|
9550 |
|
| 695 |
rajveer |
9551 |
public String getDescription() {
|
|
|
9552 |
return this.description;
|
| 420 |
ashish |
9553 |
}
|
|
|
9554 |
|
| 3430 |
rajveer |
9555 |
public void setDescription(String description) {
|
| 695 |
rajveer |
9556 |
this.description = description;
|
| 420 |
ashish |
9557 |
}
|
|
|
9558 |
|
| 695 |
rajveer |
9559 |
public void unsetDescription() {
|
|
|
9560 |
this.description = null;
|
| 420 |
ashish |
9561 |
}
|
|
|
9562 |
|
| 3430 |
rajveer |
9563 |
/** Returns true if field description is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
9564 |
public boolean isSetDescription() {
|
|
|
9565 |
return this.description != null;
|
| 420 |
ashish |
9566 |
}
|
|
|
9567 |
|
| 695 |
rajveer |
9568 |
public void setDescriptionIsSet(boolean value) {
|
| 420 |
ashish |
9569 |
if (!value) {
|
| 695 |
rajveer |
9570 |
this.description = null;
|
| 420 |
ashish |
9571 |
}
|
|
|
9572 |
}
|
|
|
9573 |
|
| 695 |
rajveer |
9574 |
public String getGatewayTxnId() {
|
|
|
9575 |
return this.gatewayTxnId;
|
| 420 |
ashish |
9576 |
}
|
|
|
9577 |
|
| 3430 |
rajveer |
9578 |
public void setGatewayTxnId(String gatewayTxnId) {
|
| 695 |
rajveer |
9579 |
this.gatewayTxnId = gatewayTxnId;
|
| 420 |
ashish |
9580 |
}
|
|
|
9581 |
|
| 695 |
rajveer |
9582 |
public void unsetGatewayTxnId() {
|
|
|
9583 |
this.gatewayTxnId = null;
|
| 420 |
ashish |
9584 |
}
|
|
|
9585 |
|
| 3430 |
rajveer |
9586 |
/** Returns true if field gatewayTxnId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
9587 |
public boolean isSetGatewayTxnId() {
|
|
|
9588 |
return this.gatewayTxnId != null;
|
| 420 |
ashish |
9589 |
}
|
|
|
9590 |
|
| 695 |
rajveer |
9591 |
public void setGatewayTxnIdIsSet(boolean value) {
|
| 420 |
ashish |
9592 |
if (!value) {
|
| 695 |
rajveer |
9593 |
this.gatewayTxnId = null;
|
| 420 |
ashish |
9594 |
}
|
|
|
9595 |
}
|
|
|
9596 |
|
| 695 |
rajveer |
9597 |
public String getAuthCode() {
|
|
|
9598 |
return this.authCode;
|
| 420 |
ashish |
9599 |
}
|
|
|
9600 |
|
| 3430 |
rajveer |
9601 |
public void setAuthCode(String authCode) {
|
| 695 |
rajveer |
9602 |
this.authCode = authCode;
|
| 420 |
ashish |
9603 |
}
|
|
|
9604 |
|
| 695 |
rajveer |
9605 |
public void unsetAuthCode() {
|
|
|
9606 |
this.authCode = null;
|
| 420 |
ashish |
9607 |
}
|
|
|
9608 |
|
| 3430 |
rajveer |
9609 |
/** Returns true if field authCode is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
9610 |
public boolean isSetAuthCode() {
|
|
|
9611 |
return this.authCode != null;
|
| 420 |
ashish |
9612 |
}
|
|
|
9613 |
|
| 695 |
rajveer |
9614 |
public void setAuthCodeIsSet(boolean value) {
|
| 420 |
ashish |
9615 |
if (!value) {
|
| 695 |
rajveer |
9616 |
this.authCode = null;
|
| 420 |
ashish |
9617 |
}
|
|
|
9618 |
}
|
|
|
9619 |
|
| 695 |
rajveer |
9620 |
public String getReferenceCode() {
|
|
|
9621 |
return this.referenceCode;
|
| 420 |
ashish |
9622 |
}
|
|
|
9623 |
|
| 3430 |
rajveer |
9624 |
public void setReferenceCode(String referenceCode) {
|
| 695 |
rajveer |
9625 |
this.referenceCode = referenceCode;
|
| 420 |
ashish |
9626 |
}
|
|
|
9627 |
|
| 695 |
rajveer |
9628 |
public void unsetReferenceCode() {
|
|
|
9629 |
this.referenceCode = null;
|
| 420 |
ashish |
9630 |
}
|
|
|
9631 |
|
| 3430 |
rajveer |
9632 |
/** Returns true if field referenceCode is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
9633 |
public boolean isSetReferenceCode() {
|
|
|
9634 |
return this.referenceCode != null;
|
| 420 |
ashish |
9635 |
}
|
|
|
9636 |
|
| 695 |
rajveer |
9637 |
public void setReferenceCodeIsSet(boolean value) {
|
| 420 |
ashish |
9638 |
if (!value) {
|
| 695 |
rajveer |
9639 |
this.referenceCode = null;
|
| 420 |
ashish |
9640 |
}
|
|
|
9641 |
}
|
|
|
9642 |
|
| 695 |
rajveer |
9643 |
public String getErrorCode() {
|
|
|
9644 |
return this.errorCode;
|
|
|
9645 |
}
|
|
|
9646 |
|
| 3430 |
rajveer |
9647 |
public void setErrorCode(String errorCode) {
|
| 695 |
rajveer |
9648 |
this.errorCode = errorCode;
|
|
|
9649 |
}
|
|
|
9650 |
|
|
|
9651 |
public void unsetErrorCode() {
|
|
|
9652 |
this.errorCode = null;
|
|
|
9653 |
}
|
|
|
9654 |
|
| 3430 |
rajveer |
9655 |
/** Returns true if field errorCode is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
9656 |
public boolean isSetErrorCode() {
|
|
|
9657 |
return this.errorCode != null;
|
|
|
9658 |
}
|
|
|
9659 |
|
|
|
9660 |
public void setErrorCodeIsSet(boolean value) {
|
|
|
9661 |
if (!value) {
|
|
|
9662 |
this.errorCode = null;
|
|
|
9663 |
}
|
|
|
9664 |
}
|
|
|
9665 |
|
|
|
9666 |
/**
|
|
|
9667 |
*
|
|
|
9668 |
* @see PaymentStatus
|
|
|
9669 |
*/
|
|
|
9670 |
public PaymentStatus getStatus() {
|
|
|
9671 |
return this.status;
|
|
|
9672 |
}
|
|
|
9673 |
|
|
|
9674 |
/**
|
|
|
9675 |
*
|
|
|
9676 |
* @see PaymentStatus
|
|
|
9677 |
*/
|
| 3430 |
rajveer |
9678 |
public void setStatus(PaymentStatus status) {
|
| 695 |
rajveer |
9679 |
this.status = status;
|
|
|
9680 |
}
|
|
|
9681 |
|
|
|
9682 |
public void unsetStatus() {
|
|
|
9683 |
this.status = null;
|
|
|
9684 |
}
|
|
|
9685 |
|
| 3430 |
rajveer |
9686 |
/** Returns true if field status is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
9687 |
public boolean isSetStatus() {
|
|
|
9688 |
return this.status != null;
|
|
|
9689 |
}
|
|
|
9690 |
|
|
|
9691 |
public void setStatusIsSet(boolean value) {
|
|
|
9692 |
if (!value) {
|
|
|
9693 |
this.status = null;
|
|
|
9694 |
}
|
|
|
9695 |
}
|
|
|
9696 |
|
| 1119 |
rajveer |
9697 |
public String getGatewayTxnDate() {
|
|
|
9698 |
return this.gatewayTxnDate;
|
|
|
9699 |
}
|
|
|
9700 |
|
| 3430 |
rajveer |
9701 |
public void setGatewayTxnDate(String gatewayTxnDate) {
|
| 1119 |
rajveer |
9702 |
this.gatewayTxnDate = gatewayTxnDate;
|
|
|
9703 |
}
|
|
|
9704 |
|
|
|
9705 |
public void unsetGatewayTxnDate() {
|
|
|
9706 |
this.gatewayTxnDate = null;
|
|
|
9707 |
}
|
|
|
9708 |
|
| 3430 |
rajveer |
9709 |
/** Returns true if field gatewayTxnDate is set (has been assigned a value) and false otherwise */
|
| 1119 |
rajveer |
9710 |
public boolean isSetGatewayTxnDate() {
|
|
|
9711 |
return this.gatewayTxnDate != null;
|
|
|
9712 |
}
|
|
|
9713 |
|
|
|
9714 |
public void setGatewayTxnDateIsSet(boolean value) {
|
|
|
9715 |
if (!value) {
|
|
|
9716 |
this.gatewayTxnDate = null;
|
|
|
9717 |
}
|
|
|
9718 |
}
|
|
|
9719 |
|
| 695 |
rajveer |
9720 |
public int getAttributesSize() {
|
|
|
9721 |
return (this.attributes == null) ? 0 : this.attributes.size();
|
|
|
9722 |
}
|
|
|
9723 |
|
|
|
9724 |
public java.util.Iterator<Attribute> getAttributesIterator() {
|
|
|
9725 |
return (this.attributes == null) ? null : this.attributes.iterator();
|
|
|
9726 |
}
|
|
|
9727 |
|
|
|
9728 |
public void addToAttributes(Attribute elem) {
|
|
|
9729 |
if (this.attributes == null) {
|
|
|
9730 |
this.attributes = new ArrayList<Attribute>();
|
|
|
9731 |
}
|
|
|
9732 |
this.attributes.add(elem);
|
|
|
9733 |
}
|
|
|
9734 |
|
|
|
9735 |
public List<Attribute> getAttributes() {
|
|
|
9736 |
return this.attributes;
|
|
|
9737 |
}
|
|
|
9738 |
|
| 3430 |
rajveer |
9739 |
public void setAttributes(List<Attribute> attributes) {
|
| 695 |
rajveer |
9740 |
this.attributes = attributes;
|
|
|
9741 |
}
|
|
|
9742 |
|
|
|
9743 |
public void unsetAttributes() {
|
|
|
9744 |
this.attributes = null;
|
|
|
9745 |
}
|
|
|
9746 |
|
| 3430 |
rajveer |
9747 |
/** Returns true if field attributes is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
9748 |
public boolean isSetAttributes() {
|
|
|
9749 |
return this.attributes != null;
|
|
|
9750 |
}
|
|
|
9751 |
|
|
|
9752 |
public void setAttributesIsSet(boolean value) {
|
|
|
9753 |
if (!value) {
|
|
|
9754 |
this.attributes = null;
|
|
|
9755 |
}
|
|
|
9756 |
}
|
|
|
9757 |
|
| 420 |
ashish |
9758 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9759 |
switch (field) {
|
|
|
9760 |
case ID:
|
|
|
9761 |
if (value == null) {
|
|
|
9762 |
unsetId();
|
|
|
9763 |
} else {
|
|
|
9764 |
setId((Long)value);
|
|
|
9765 |
}
|
|
|
9766 |
break;
|
|
|
9767 |
|
| 695 |
rajveer |
9768 |
case GATEWAY_PAYMENT_ID:
|
| 420 |
ashish |
9769 |
if (value == null) {
|
| 695 |
rajveer |
9770 |
unsetGatewayPaymentId();
|
| 420 |
ashish |
9771 |
} else {
|
| 695 |
rajveer |
9772 |
setGatewayPaymentId((String)value);
|
| 420 |
ashish |
9773 |
}
|
|
|
9774 |
break;
|
|
|
9775 |
|
| 695 |
rajveer |
9776 |
case SESSION_ID:
|
| 420 |
ashish |
9777 |
if (value == null) {
|
| 695 |
rajveer |
9778 |
unsetSessionId();
|
| 420 |
ashish |
9779 |
} else {
|
| 695 |
rajveer |
9780 |
setSessionId((String)value);
|
| 420 |
ashish |
9781 |
}
|
|
|
9782 |
break;
|
|
|
9783 |
|
| 695 |
rajveer |
9784 |
case GATEWAY_TXN_STATUS:
|
| 420 |
ashish |
9785 |
if (value == null) {
|
| 695 |
rajveer |
9786 |
unsetGatewayTxnStatus();
|
| 420 |
ashish |
9787 |
} else {
|
| 695 |
rajveer |
9788 |
setGatewayTxnStatus((String)value);
|
| 420 |
ashish |
9789 |
}
|
|
|
9790 |
break;
|
|
|
9791 |
|
| 695 |
rajveer |
9792 |
case DESCRIPTION:
|
| 420 |
ashish |
9793 |
if (value == null) {
|
| 695 |
rajveer |
9794 |
unsetDescription();
|
| 420 |
ashish |
9795 |
} else {
|
| 695 |
rajveer |
9796 |
setDescription((String)value);
|
| 420 |
ashish |
9797 |
}
|
|
|
9798 |
break;
|
|
|
9799 |
|
| 695 |
rajveer |
9800 |
case GATEWAY_TXN_ID:
|
| 420 |
ashish |
9801 |
if (value == null) {
|
| 695 |
rajveer |
9802 |
unsetGatewayTxnId();
|
| 420 |
ashish |
9803 |
} else {
|
| 695 |
rajveer |
9804 |
setGatewayTxnId((String)value);
|
| 420 |
ashish |
9805 |
}
|
|
|
9806 |
break;
|
|
|
9807 |
|
|
|
9808 |
case AUTH_CODE:
|
|
|
9809 |
if (value == null) {
|
| 695 |
rajveer |
9810 |
unsetAuthCode();
|
| 420 |
ashish |
9811 |
} else {
|
| 695 |
rajveer |
9812 |
setAuthCode((String)value);
|
| 420 |
ashish |
9813 |
}
|
|
|
9814 |
break;
|
|
|
9815 |
|
| 695 |
rajveer |
9816 |
case REFERENCE_CODE:
|
| 420 |
ashish |
9817 |
if (value == null) {
|
| 695 |
rajveer |
9818 |
unsetReferenceCode();
|
| 420 |
ashish |
9819 |
} else {
|
| 695 |
rajveer |
9820 |
setReferenceCode((String)value);
|
| 420 |
ashish |
9821 |
}
|
|
|
9822 |
break;
|
|
|
9823 |
|
| 695 |
rajveer |
9824 |
case ERROR_CODE:
|
|
|
9825 |
if (value == null) {
|
|
|
9826 |
unsetErrorCode();
|
|
|
9827 |
} else {
|
|
|
9828 |
setErrorCode((String)value);
|
|
|
9829 |
}
|
|
|
9830 |
break;
|
|
|
9831 |
|
|
|
9832 |
case STATUS:
|
|
|
9833 |
if (value == null) {
|
|
|
9834 |
unsetStatus();
|
|
|
9835 |
} else {
|
|
|
9836 |
setStatus((PaymentStatus)value);
|
|
|
9837 |
}
|
|
|
9838 |
break;
|
|
|
9839 |
|
| 1119 |
rajveer |
9840 |
case GATEWAY_TXN_DATE:
|
|
|
9841 |
if (value == null) {
|
|
|
9842 |
unsetGatewayTxnDate();
|
|
|
9843 |
} else {
|
|
|
9844 |
setGatewayTxnDate((String)value);
|
|
|
9845 |
}
|
|
|
9846 |
break;
|
|
|
9847 |
|
| 695 |
rajveer |
9848 |
case ATTRIBUTES:
|
|
|
9849 |
if (value == null) {
|
|
|
9850 |
unsetAttributes();
|
|
|
9851 |
} else {
|
|
|
9852 |
setAttributes((List<Attribute>)value);
|
|
|
9853 |
}
|
|
|
9854 |
break;
|
|
|
9855 |
|
| 420 |
ashish |
9856 |
}
|
|
|
9857 |
}
|
|
|
9858 |
|
|
|
9859 |
public Object getFieldValue(_Fields field) {
|
|
|
9860 |
switch (field) {
|
|
|
9861 |
case ID:
|
| 3430 |
rajveer |
9862 |
return Long.valueOf(getId());
|
| 420 |
ashish |
9863 |
|
| 695 |
rajveer |
9864 |
case GATEWAY_PAYMENT_ID:
|
|
|
9865 |
return getGatewayPaymentId();
|
| 420 |
ashish |
9866 |
|
| 695 |
rajveer |
9867 |
case SESSION_ID:
|
|
|
9868 |
return getSessionId();
|
| 420 |
ashish |
9869 |
|
| 695 |
rajveer |
9870 |
case GATEWAY_TXN_STATUS:
|
|
|
9871 |
return getGatewayTxnStatus();
|
| 420 |
ashish |
9872 |
|
| 695 |
rajveer |
9873 |
case DESCRIPTION:
|
|
|
9874 |
return getDescription();
|
| 420 |
ashish |
9875 |
|
| 695 |
rajveer |
9876 |
case GATEWAY_TXN_ID:
|
|
|
9877 |
return getGatewayTxnId();
|
| 420 |
ashish |
9878 |
|
|
|
9879 |
case AUTH_CODE:
|
| 695 |
rajveer |
9880 |
return getAuthCode();
|
| 420 |
ashish |
9881 |
|
| 695 |
rajveer |
9882 |
case REFERENCE_CODE:
|
|
|
9883 |
return getReferenceCode();
|
| 420 |
ashish |
9884 |
|
| 695 |
rajveer |
9885 |
case ERROR_CODE:
|
|
|
9886 |
return getErrorCode();
|
|
|
9887 |
|
|
|
9888 |
case STATUS:
|
|
|
9889 |
return getStatus();
|
|
|
9890 |
|
| 1119 |
rajveer |
9891 |
case GATEWAY_TXN_DATE:
|
|
|
9892 |
return getGatewayTxnDate();
|
|
|
9893 |
|
| 695 |
rajveer |
9894 |
case ATTRIBUTES:
|
|
|
9895 |
return getAttributes();
|
|
|
9896 |
|
| 420 |
ashish |
9897 |
}
|
|
|
9898 |
throw new IllegalStateException();
|
|
|
9899 |
}
|
|
|
9900 |
|
| 3430 |
rajveer |
9901 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9902 |
public boolean isSet(_Fields field) {
|
|
|
9903 |
if (field == null) {
|
|
|
9904 |
throw new IllegalArgumentException();
|
|
|
9905 |
}
|
| 420 |
ashish |
9906 |
|
|
|
9907 |
switch (field) {
|
|
|
9908 |
case ID:
|
|
|
9909 |
return isSetId();
|
| 695 |
rajveer |
9910 |
case GATEWAY_PAYMENT_ID:
|
|
|
9911 |
return isSetGatewayPaymentId();
|
| 420 |
ashish |
9912 |
case SESSION_ID:
|
| 695 |
rajveer |
9913 |
return isSetSessionId();
|
|
|
9914 |
case GATEWAY_TXN_STATUS:
|
|
|
9915 |
return isSetGatewayTxnStatus();
|
|
|
9916 |
case DESCRIPTION:
|
|
|
9917 |
return isSetDescription();
|
|
|
9918 |
case GATEWAY_TXN_ID:
|
|
|
9919 |
return isSetGatewayTxnId();
|
| 420 |
ashish |
9920 |
case AUTH_CODE:
|
| 695 |
rajveer |
9921 |
return isSetAuthCode();
|
|
|
9922 |
case REFERENCE_CODE:
|
|
|
9923 |
return isSetReferenceCode();
|
|
|
9924 |
case ERROR_CODE:
|
|
|
9925 |
return isSetErrorCode();
|
|
|
9926 |
case STATUS:
|
|
|
9927 |
return isSetStatus();
|
| 1119 |
rajveer |
9928 |
case GATEWAY_TXN_DATE:
|
|
|
9929 |
return isSetGatewayTxnDate();
|
| 695 |
rajveer |
9930 |
case ATTRIBUTES:
|
|
|
9931 |
return isSetAttributes();
|
| 420 |
ashish |
9932 |
}
|
|
|
9933 |
throw new IllegalStateException();
|
|
|
9934 |
}
|
|
|
9935 |
|
|
|
9936 |
@Override
|
|
|
9937 |
public boolean equals(Object that) {
|
|
|
9938 |
if (that == null)
|
|
|
9939 |
return false;
|
| 695 |
rajveer |
9940 |
if (that instanceof updatePaymentDetails_args)
|
|
|
9941 |
return this.equals((updatePaymentDetails_args)that);
|
| 420 |
ashish |
9942 |
return false;
|
|
|
9943 |
}
|
|
|
9944 |
|
| 695 |
rajveer |
9945 |
public boolean equals(updatePaymentDetails_args that) {
|
| 420 |
ashish |
9946 |
if (that == null)
|
|
|
9947 |
return false;
|
|
|
9948 |
|
|
|
9949 |
boolean this_present_id = true;
|
|
|
9950 |
boolean that_present_id = true;
|
|
|
9951 |
if (this_present_id || that_present_id) {
|
|
|
9952 |
if (!(this_present_id && that_present_id))
|
|
|
9953 |
return false;
|
|
|
9954 |
if (this.id != that.id)
|
|
|
9955 |
return false;
|
|
|
9956 |
}
|
|
|
9957 |
|
| 695 |
rajveer |
9958 |
boolean this_present_gatewayPaymentId = true && this.isSetGatewayPaymentId();
|
|
|
9959 |
boolean that_present_gatewayPaymentId = true && that.isSetGatewayPaymentId();
|
|
|
9960 |
if (this_present_gatewayPaymentId || that_present_gatewayPaymentId) {
|
|
|
9961 |
if (!(this_present_gatewayPaymentId && that_present_gatewayPaymentId))
|
| 420 |
ashish |
9962 |
return false;
|
| 695 |
rajveer |
9963 |
if (!this.gatewayPaymentId.equals(that.gatewayPaymentId))
|
| 420 |
ashish |
9964 |
return false;
|
|
|
9965 |
}
|
|
|
9966 |
|
| 695 |
rajveer |
9967 |
boolean this_present_sessionId = true && this.isSetSessionId();
|
|
|
9968 |
boolean that_present_sessionId = true && that.isSetSessionId();
|
|
|
9969 |
if (this_present_sessionId || that_present_sessionId) {
|
|
|
9970 |
if (!(this_present_sessionId && that_present_sessionId))
|
| 420 |
ashish |
9971 |
return false;
|
| 695 |
rajveer |
9972 |
if (!this.sessionId.equals(that.sessionId))
|
| 420 |
ashish |
9973 |
return false;
|
|
|
9974 |
}
|
|
|
9975 |
|
| 695 |
rajveer |
9976 |
boolean this_present_gatewayTxnStatus = true && this.isSetGatewayTxnStatus();
|
|
|
9977 |
boolean that_present_gatewayTxnStatus = true && that.isSetGatewayTxnStatus();
|
|
|
9978 |
if (this_present_gatewayTxnStatus || that_present_gatewayTxnStatus) {
|
|
|
9979 |
if (!(this_present_gatewayTxnStatus && that_present_gatewayTxnStatus))
|
| 420 |
ashish |
9980 |
return false;
|
| 695 |
rajveer |
9981 |
if (!this.gatewayTxnStatus.equals(that.gatewayTxnStatus))
|
| 420 |
ashish |
9982 |
return false;
|
|
|
9983 |
}
|
|
|
9984 |
|
| 695 |
rajveer |
9985 |
boolean this_present_description = true && this.isSetDescription();
|
|
|
9986 |
boolean that_present_description = true && that.isSetDescription();
|
|
|
9987 |
if (this_present_description || that_present_description) {
|
|
|
9988 |
if (!(this_present_description && that_present_description))
|
| 420 |
ashish |
9989 |
return false;
|
| 695 |
rajveer |
9990 |
if (!this.description.equals(that.description))
|
| 420 |
ashish |
9991 |
return false;
|
|
|
9992 |
}
|
|
|
9993 |
|
| 695 |
rajveer |
9994 |
boolean this_present_gatewayTxnId = true && this.isSetGatewayTxnId();
|
|
|
9995 |
boolean that_present_gatewayTxnId = true && that.isSetGatewayTxnId();
|
|
|
9996 |
if (this_present_gatewayTxnId || that_present_gatewayTxnId) {
|
|
|
9997 |
if (!(this_present_gatewayTxnId && that_present_gatewayTxnId))
|
| 420 |
ashish |
9998 |
return false;
|
| 695 |
rajveer |
9999 |
if (!this.gatewayTxnId.equals(that.gatewayTxnId))
|
| 420 |
ashish |
10000 |
return false;
|
|
|
10001 |
}
|
|
|
10002 |
|
| 695 |
rajveer |
10003 |
boolean this_present_authCode = true && this.isSetAuthCode();
|
|
|
10004 |
boolean that_present_authCode = true && that.isSetAuthCode();
|
|
|
10005 |
if (this_present_authCode || that_present_authCode) {
|
|
|
10006 |
if (!(this_present_authCode && that_present_authCode))
|
| 420 |
ashish |
10007 |
return false;
|
| 695 |
rajveer |
10008 |
if (!this.authCode.equals(that.authCode))
|
| 420 |
ashish |
10009 |
return false;
|
|
|
10010 |
}
|
|
|
10011 |
|
| 695 |
rajveer |
10012 |
boolean this_present_referenceCode = true && this.isSetReferenceCode();
|
|
|
10013 |
boolean that_present_referenceCode = true && that.isSetReferenceCode();
|
|
|
10014 |
if (this_present_referenceCode || that_present_referenceCode) {
|
|
|
10015 |
if (!(this_present_referenceCode && that_present_referenceCode))
|
| 420 |
ashish |
10016 |
return false;
|
| 695 |
rajveer |
10017 |
if (!this.referenceCode.equals(that.referenceCode))
|
| 420 |
ashish |
10018 |
return false;
|
|
|
10019 |
}
|
|
|
10020 |
|
| 695 |
rajveer |
10021 |
boolean this_present_errorCode = true && this.isSetErrorCode();
|
|
|
10022 |
boolean that_present_errorCode = true && that.isSetErrorCode();
|
|
|
10023 |
if (this_present_errorCode || that_present_errorCode) {
|
|
|
10024 |
if (!(this_present_errorCode && that_present_errorCode))
|
|
|
10025 |
return false;
|
|
|
10026 |
if (!this.errorCode.equals(that.errorCode))
|
|
|
10027 |
return false;
|
|
|
10028 |
}
|
|
|
10029 |
|
|
|
10030 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
10031 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
10032 |
if (this_present_status || that_present_status) {
|
|
|
10033 |
if (!(this_present_status && that_present_status))
|
|
|
10034 |
return false;
|
|
|
10035 |
if (!this.status.equals(that.status))
|
|
|
10036 |
return false;
|
|
|
10037 |
}
|
|
|
10038 |
|
| 1119 |
rajveer |
10039 |
boolean this_present_gatewayTxnDate = true && this.isSetGatewayTxnDate();
|
|
|
10040 |
boolean that_present_gatewayTxnDate = true && that.isSetGatewayTxnDate();
|
|
|
10041 |
if (this_present_gatewayTxnDate || that_present_gatewayTxnDate) {
|
|
|
10042 |
if (!(this_present_gatewayTxnDate && that_present_gatewayTxnDate))
|
|
|
10043 |
return false;
|
|
|
10044 |
if (!this.gatewayTxnDate.equals(that.gatewayTxnDate))
|
|
|
10045 |
return false;
|
|
|
10046 |
}
|
|
|
10047 |
|
| 695 |
rajveer |
10048 |
boolean this_present_attributes = true && this.isSetAttributes();
|
|
|
10049 |
boolean that_present_attributes = true && that.isSetAttributes();
|
|
|
10050 |
if (this_present_attributes || that_present_attributes) {
|
|
|
10051 |
if (!(this_present_attributes && that_present_attributes))
|
|
|
10052 |
return false;
|
|
|
10053 |
if (!this.attributes.equals(that.attributes))
|
|
|
10054 |
return false;
|
|
|
10055 |
}
|
|
|
10056 |
|
| 420 |
ashish |
10057 |
return true;
|
|
|
10058 |
}
|
|
|
10059 |
|
|
|
10060 |
@Override
|
|
|
10061 |
public int hashCode() {
|
|
|
10062 |
return 0;
|
|
|
10063 |
}
|
|
|
10064 |
|
| 695 |
rajveer |
10065 |
public int compareTo(updatePaymentDetails_args other) {
|
| 420 |
ashish |
10066 |
if (!getClass().equals(other.getClass())) {
|
|
|
10067 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10068 |
}
|
|
|
10069 |
|
|
|
10070 |
int lastComparison = 0;
|
| 695 |
rajveer |
10071 |
updatePaymentDetails_args typedOther = (updatePaymentDetails_args)other;
|
| 420 |
ashish |
10072 |
|
| 3430 |
rajveer |
10073 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| 420 |
ashish |
10074 |
if (lastComparison != 0) {
|
|
|
10075 |
return lastComparison;
|
|
|
10076 |
}
|
| 3430 |
rajveer |
10077 |
if (isSetId()) {
|
|
|
10078 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
10079 |
if (lastComparison != 0) {
|
|
|
10080 |
return lastComparison;
|
|
|
10081 |
}
|
| 420 |
ashish |
10082 |
}
|
| 3430 |
rajveer |
10083 |
lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(typedOther.isSetGatewayPaymentId());
|
| 420 |
ashish |
10084 |
if (lastComparison != 0) {
|
|
|
10085 |
return lastComparison;
|
|
|
10086 |
}
|
| 3430 |
rajveer |
10087 |
if (isSetGatewayPaymentId()) {
|
|
|
10088 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayPaymentId, typedOther.gatewayPaymentId);
|
|
|
10089 |
if (lastComparison != 0) {
|
|
|
10090 |
return lastComparison;
|
|
|
10091 |
}
|
| 420 |
ashish |
10092 |
}
|
| 3430 |
rajveer |
10093 |
lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId());
|
| 420 |
ashish |
10094 |
if (lastComparison != 0) {
|
|
|
10095 |
return lastComparison;
|
|
|
10096 |
}
|
| 3430 |
rajveer |
10097 |
if (isSetSessionId()) {
|
|
|
10098 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId);
|
|
|
10099 |
if (lastComparison != 0) {
|
|
|
10100 |
return lastComparison;
|
|
|
10101 |
}
|
| 420 |
ashish |
10102 |
}
|
| 3430 |
rajveer |
10103 |
lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(typedOther.isSetGatewayTxnStatus());
|
| 420 |
ashish |
10104 |
if (lastComparison != 0) {
|
|
|
10105 |
return lastComparison;
|
|
|
10106 |
}
|
| 3430 |
rajveer |
10107 |
if (isSetGatewayTxnStatus()) {
|
|
|
10108 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnStatus, typedOther.gatewayTxnStatus);
|
|
|
10109 |
if (lastComparison != 0) {
|
|
|
10110 |
return lastComparison;
|
|
|
10111 |
}
|
| 420 |
ashish |
10112 |
}
|
| 3430 |
rajveer |
10113 |
lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
|
| 420 |
ashish |
10114 |
if (lastComparison != 0) {
|
|
|
10115 |
return lastComparison;
|
|
|
10116 |
}
|
| 3430 |
rajveer |
10117 |
if (isSetDescription()) {
|
|
|
10118 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
|
|
|
10119 |
if (lastComparison != 0) {
|
|
|
10120 |
return lastComparison;
|
|
|
10121 |
}
|
| 420 |
ashish |
10122 |
}
|
| 3430 |
rajveer |
10123 |
lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(typedOther.isSetGatewayTxnId());
|
| 420 |
ashish |
10124 |
if (lastComparison != 0) {
|
|
|
10125 |
return lastComparison;
|
|
|
10126 |
}
|
| 3430 |
rajveer |
10127 |
if (isSetGatewayTxnId()) {
|
|
|
10128 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnId, typedOther.gatewayTxnId);
|
|
|
10129 |
if (lastComparison != 0) {
|
|
|
10130 |
return lastComparison;
|
|
|
10131 |
}
|
| 420 |
ashish |
10132 |
}
|
| 3430 |
rajveer |
10133 |
lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(typedOther.isSetAuthCode());
|
| 420 |
ashish |
10134 |
if (lastComparison != 0) {
|
|
|
10135 |
return lastComparison;
|
|
|
10136 |
}
|
| 3430 |
rajveer |
10137 |
if (isSetAuthCode()) {
|
|
|
10138 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authCode, typedOther.authCode);
|
|
|
10139 |
if (lastComparison != 0) {
|
|
|
10140 |
return lastComparison;
|
|
|
10141 |
}
|
| 420 |
ashish |
10142 |
}
|
| 3430 |
rajveer |
10143 |
lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(typedOther.isSetReferenceCode());
|
| 420 |
ashish |
10144 |
if (lastComparison != 0) {
|
|
|
10145 |
return lastComparison;
|
|
|
10146 |
}
|
| 3430 |
rajveer |
10147 |
if (isSetReferenceCode()) {
|
|
|
10148 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceCode, typedOther.referenceCode);
|
|
|
10149 |
if (lastComparison != 0) {
|
|
|
10150 |
return lastComparison;
|
|
|
10151 |
}
|
| 420 |
ashish |
10152 |
}
|
| 3430 |
rajveer |
10153 |
lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode());
|
| 695 |
rajveer |
10154 |
if (lastComparison != 0) {
|
|
|
10155 |
return lastComparison;
|
|
|
10156 |
}
|
| 3430 |
rajveer |
10157 |
if (isSetErrorCode()) {
|
|
|
10158 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
|
|
|
10159 |
if (lastComparison != 0) {
|
|
|
10160 |
return lastComparison;
|
|
|
10161 |
}
|
| 695 |
rajveer |
10162 |
}
|
| 3430 |
rajveer |
10163 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
|
| 695 |
rajveer |
10164 |
if (lastComparison != 0) {
|
|
|
10165 |
return lastComparison;
|
|
|
10166 |
}
|
| 3430 |
rajveer |
10167 |
if (isSetStatus()) {
|
|
|
10168 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
|
|
|
10169 |
if (lastComparison != 0) {
|
|
|
10170 |
return lastComparison;
|
|
|
10171 |
}
|
| 695 |
rajveer |
10172 |
}
|
| 3430 |
rajveer |
10173 |
lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(typedOther.isSetGatewayTxnDate());
|
| 1119 |
rajveer |
10174 |
if (lastComparison != 0) {
|
|
|
10175 |
return lastComparison;
|
|
|
10176 |
}
|
| 3430 |
rajveer |
10177 |
if (isSetGatewayTxnDate()) {
|
|
|
10178 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnDate, typedOther.gatewayTxnDate);
|
|
|
10179 |
if (lastComparison != 0) {
|
|
|
10180 |
return lastComparison;
|
|
|
10181 |
}
|
| 1119 |
rajveer |
10182 |
}
|
| 3430 |
rajveer |
10183 |
lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
|
| 695 |
rajveer |
10184 |
if (lastComparison != 0) {
|
|
|
10185 |
return lastComparison;
|
|
|
10186 |
}
|
| 3430 |
rajveer |
10187 |
if (isSetAttributes()) {
|
|
|
10188 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
|
|
|
10189 |
if (lastComparison != 0) {
|
|
|
10190 |
return lastComparison;
|
|
|
10191 |
}
|
| 695 |
rajveer |
10192 |
}
|
| 420 |
ashish |
10193 |
return 0;
|
|
|
10194 |
}
|
|
|
10195 |
|
| 3430 |
rajveer |
10196 |
public _Fields fieldForId(int fieldId) {
|
|
|
10197 |
return _Fields.findByThriftId(fieldId);
|
|
|
10198 |
}
|
|
|
10199 |
|
|
|
10200 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10201 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
10202 |
iprot.readStructBegin();
|
|
|
10203 |
while (true)
|
|
|
10204 |
{
|
|
|
10205 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
10206 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
10207 |
break;
|
|
|
10208 |
}
|
| 3430 |
rajveer |
10209 |
switch (field.id) {
|
|
|
10210 |
case 1: // ID
|
|
|
10211 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10212 |
this.id = iprot.readI64();
|
|
|
10213 |
setIdIsSet(true);
|
|
|
10214 |
} else {
|
|
|
10215 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10216 |
}
|
|
|
10217 |
break;
|
|
|
10218 |
case 2: // GATEWAY_PAYMENT_ID
|
|
|
10219 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
10220 |
this.gatewayPaymentId = iprot.readString();
|
|
|
10221 |
} else {
|
|
|
10222 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10223 |
}
|
|
|
10224 |
break;
|
|
|
10225 |
case 3: // SESSION_ID
|
|
|
10226 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
10227 |
this.sessionId = iprot.readString();
|
|
|
10228 |
} else {
|
|
|
10229 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10230 |
}
|
|
|
10231 |
break;
|
|
|
10232 |
case 4: // GATEWAY_TXN_STATUS
|
|
|
10233 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
10234 |
this.gatewayTxnStatus = iprot.readString();
|
|
|
10235 |
} else {
|
|
|
10236 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10237 |
}
|
|
|
10238 |
break;
|
|
|
10239 |
case 5: // DESCRIPTION
|
|
|
10240 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
10241 |
this.description = iprot.readString();
|
|
|
10242 |
} else {
|
|
|
10243 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10244 |
}
|
|
|
10245 |
break;
|
|
|
10246 |
case 6: // GATEWAY_TXN_ID
|
|
|
10247 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
10248 |
this.gatewayTxnId = iprot.readString();
|
|
|
10249 |
} else {
|
|
|
10250 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10251 |
}
|
|
|
10252 |
break;
|
|
|
10253 |
case 7: // AUTH_CODE
|
|
|
10254 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
10255 |
this.authCode = iprot.readString();
|
|
|
10256 |
} else {
|
|
|
10257 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10258 |
}
|
|
|
10259 |
break;
|
|
|
10260 |
case 8: // REFERENCE_CODE
|
|
|
10261 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
10262 |
this.referenceCode = iprot.readString();
|
|
|
10263 |
} else {
|
|
|
10264 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10265 |
}
|
|
|
10266 |
break;
|
|
|
10267 |
case 9: // ERROR_CODE
|
|
|
10268 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
10269 |
this.errorCode = iprot.readString();
|
|
|
10270 |
} else {
|
|
|
10271 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10272 |
}
|
|
|
10273 |
break;
|
|
|
10274 |
case 10: // STATUS
|
|
|
10275 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
10276 |
this.status = PaymentStatus.findByValue(iprot.readI32());
|
|
|
10277 |
} else {
|
|
|
10278 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10279 |
}
|
|
|
10280 |
break;
|
|
|
10281 |
case 11: // GATEWAY_TXN_DATE
|
|
|
10282 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
10283 |
this.gatewayTxnDate = iprot.readString();
|
|
|
10284 |
} else {
|
|
|
10285 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10286 |
}
|
|
|
10287 |
break;
|
|
|
10288 |
case 12: // ATTRIBUTES
|
|
|
10289 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
10290 |
{
|
| 4600 |
varun.gupt |
10291 |
org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
|
|
|
10292 |
this.attributes = new ArrayList<Attribute>(_list32.size);
|
|
|
10293 |
for (int _i33 = 0; _i33 < _list32.size; ++_i33)
|
| 695 |
rajveer |
10294 |
{
|
| 4600 |
varun.gupt |
10295 |
Attribute _elem34; // required
|
|
|
10296 |
_elem34 = new Attribute();
|
|
|
10297 |
_elem34.read(iprot);
|
|
|
10298 |
this.attributes.add(_elem34);
|
| 695 |
rajveer |
10299 |
}
|
| 3430 |
rajveer |
10300 |
iprot.readListEnd();
|
| 695 |
rajveer |
10301 |
}
|
| 3430 |
rajveer |
10302 |
} else {
|
|
|
10303 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10304 |
}
|
|
|
10305 |
break;
|
|
|
10306 |
default:
|
|
|
10307 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
10308 |
}
|
| 3430 |
rajveer |
10309 |
iprot.readFieldEnd();
|
| 420 |
ashish |
10310 |
}
|
|
|
10311 |
iprot.readStructEnd();
|
|
|
10312 |
validate();
|
|
|
10313 |
}
|
|
|
10314 |
|
| 3430 |
rajveer |
10315 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
10316 |
validate();
|
|
|
10317 |
|
|
|
10318 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10319 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
10320 |
oprot.writeI64(this.id);
|
|
|
10321 |
oprot.writeFieldEnd();
|
| 695 |
rajveer |
10322 |
if (this.gatewayPaymentId != null) {
|
|
|
10323 |
oprot.writeFieldBegin(GATEWAY_PAYMENT_ID_FIELD_DESC);
|
|
|
10324 |
oprot.writeString(this.gatewayPaymentId);
|
| 420 |
ashish |
10325 |
oprot.writeFieldEnd();
|
|
|
10326 |
}
|
| 695 |
rajveer |
10327 |
if (this.sessionId != null) {
|
|
|
10328 |
oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
|
|
|
10329 |
oprot.writeString(this.sessionId);
|
| 420 |
ashish |
10330 |
oprot.writeFieldEnd();
|
|
|
10331 |
}
|
| 695 |
rajveer |
10332 |
if (this.gatewayTxnStatus != null) {
|
|
|
10333 |
oprot.writeFieldBegin(GATEWAY_TXN_STATUS_FIELD_DESC);
|
|
|
10334 |
oprot.writeString(this.gatewayTxnStatus);
|
| 420 |
ashish |
10335 |
oprot.writeFieldEnd();
|
|
|
10336 |
}
|
| 695 |
rajveer |
10337 |
if (this.description != null) {
|
|
|
10338 |
oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
|
|
|
10339 |
oprot.writeString(this.description);
|
| 420 |
ashish |
10340 |
oprot.writeFieldEnd();
|
|
|
10341 |
}
|
| 695 |
rajveer |
10342 |
if (this.gatewayTxnId != null) {
|
|
|
10343 |
oprot.writeFieldBegin(GATEWAY_TXN_ID_FIELD_DESC);
|
|
|
10344 |
oprot.writeString(this.gatewayTxnId);
|
| 420 |
ashish |
10345 |
oprot.writeFieldEnd();
|
|
|
10346 |
}
|
| 695 |
rajveer |
10347 |
if (this.authCode != null) {
|
| 420 |
ashish |
10348 |
oprot.writeFieldBegin(AUTH_CODE_FIELD_DESC);
|
| 695 |
rajveer |
10349 |
oprot.writeString(this.authCode);
|
| 420 |
ashish |
10350 |
oprot.writeFieldEnd();
|
|
|
10351 |
}
|
| 695 |
rajveer |
10352 |
if (this.referenceCode != null) {
|
|
|
10353 |
oprot.writeFieldBegin(REFERENCE_CODE_FIELD_DESC);
|
|
|
10354 |
oprot.writeString(this.referenceCode);
|
| 420 |
ashish |
10355 |
oprot.writeFieldEnd();
|
|
|
10356 |
}
|
| 695 |
rajveer |
10357 |
if (this.errorCode != null) {
|
|
|
10358 |
oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
|
|
|
10359 |
oprot.writeString(this.errorCode);
|
|
|
10360 |
oprot.writeFieldEnd();
|
|
|
10361 |
}
|
|
|
10362 |
if (this.status != null) {
|
|
|
10363 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
10364 |
oprot.writeI32(this.status.getValue());
|
|
|
10365 |
oprot.writeFieldEnd();
|
|
|
10366 |
}
|
| 1119 |
rajveer |
10367 |
if (this.gatewayTxnDate != null) {
|
|
|
10368 |
oprot.writeFieldBegin(GATEWAY_TXN_DATE_FIELD_DESC);
|
|
|
10369 |
oprot.writeString(this.gatewayTxnDate);
|
|
|
10370 |
oprot.writeFieldEnd();
|
|
|
10371 |
}
|
| 695 |
rajveer |
10372 |
if (this.attributes != null) {
|
|
|
10373 |
oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
|
|
|
10374 |
{
|
| 3430 |
rajveer |
10375 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
|
| 4600 |
varun.gupt |
10376 |
for (Attribute _iter35 : this.attributes)
|
| 695 |
rajveer |
10377 |
{
|
| 4600 |
varun.gupt |
10378 |
_iter35.write(oprot);
|
| 695 |
rajveer |
10379 |
}
|
|
|
10380 |
oprot.writeListEnd();
|
|
|
10381 |
}
|
|
|
10382 |
oprot.writeFieldEnd();
|
|
|
10383 |
}
|
| 420 |
ashish |
10384 |
oprot.writeFieldStop();
|
|
|
10385 |
oprot.writeStructEnd();
|
|
|
10386 |
}
|
|
|
10387 |
|
|
|
10388 |
@Override
|
|
|
10389 |
public String toString() {
|
| 695 |
rajveer |
10390 |
StringBuilder sb = new StringBuilder("updatePaymentDetails_args(");
|
| 420 |
ashish |
10391 |
boolean first = true;
|
|
|
10392 |
|
|
|
10393 |
sb.append("id:");
|
|
|
10394 |
sb.append(this.id);
|
|
|
10395 |
first = false;
|
|
|
10396 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
10397 |
sb.append("gatewayPaymentId:");
|
|
|
10398 |
if (this.gatewayPaymentId == null) {
|
| 420 |
ashish |
10399 |
sb.append("null");
|
|
|
10400 |
} else {
|
| 695 |
rajveer |
10401 |
sb.append(this.gatewayPaymentId);
|
| 420 |
ashish |
10402 |
}
|
|
|
10403 |
first = false;
|
|
|
10404 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
10405 |
sb.append("sessionId:");
|
|
|
10406 |
if (this.sessionId == null) {
|
| 420 |
ashish |
10407 |
sb.append("null");
|
|
|
10408 |
} else {
|
| 695 |
rajveer |
10409 |
sb.append(this.sessionId);
|
| 420 |
ashish |
10410 |
}
|
|
|
10411 |
first = false;
|
|
|
10412 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
10413 |
sb.append("gatewayTxnStatus:");
|
|
|
10414 |
if (this.gatewayTxnStatus == null) {
|
| 420 |
ashish |
10415 |
sb.append("null");
|
|
|
10416 |
} else {
|
| 695 |
rajveer |
10417 |
sb.append(this.gatewayTxnStatus);
|
| 420 |
ashish |
10418 |
}
|
|
|
10419 |
first = false;
|
|
|
10420 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
10421 |
sb.append("description:");
|
|
|
10422 |
if (this.description == null) {
|
| 420 |
ashish |
10423 |
sb.append("null");
|
|
|
10424 |
} else {
|
| 695 |
rajveer |
10425 |
sb.append(this.description);
|
| 420 |
ashish |
10426 |
}
|
|
|
10427 |
first = false;
|
|
|
10428 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
10429 |
sb.append("gatewayTxnId:");
|
|
|
10430 |
if (this.gatewayTxnId == null) {
|
| 420 |
ashish |
10431 |
sb.append("null");
|
|
|
10432 |
} else {
|
| 695 |
rajveer |
10433 |
sb.append(this.gatewayTxnId);
|
| 420 |
ashish |
10434 |
}
|
|
|
10435 |
first = false;
|
|
|
10436 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
10437 |
sb.append("authCode:");
|
|
|
10438 |
if (this.authCode == null) {
|
| 420 |
ashish |
10439 |
sb.append("null");
|
|
|
10440 |
} else {
|
| 695 |
rajveer |
10441 |
sb.append(this.authCode);
|
| 420 |
ashish |
10442 |
}
|
|
|
10443 |
first = false;
|
|
|
10444 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
10445 |
sb.append("referenceCode:");
|
|
|
10446 |
if (this.referenceCode == null) {
|
| 420 |
ashish |
10447 |
sb.append("null");
|
|
|
10448 |
} else {
|
| 695 |
rajveer |
10449 |
sb.append(this.referenceCode);
|
| 420 |
ashish |
10450 |
}
|
|
|
10451 |
first = false;
|
| 695 |
rajveer |
10452 |
if (!first) sb.append(", ");
|
|
|
10453 |
sb.append("errorCode:");
|
|
|
10454 |
if (this.errorCode == null) {
|
|
|
10455 |
sb.append("null");
|
|
|
10456 |
} else {
|
|
|
10457 |
sb.append(this.errorCode);
|
|
|
10458 |
}
|
|
|
10459 |
first = false;
|
|
|
10460 |
if (!first) sb.append(", ");
|
|
|
10461 |
sb.append("status:");
|
|
|
10462 |
if (this.status == null) {
|
|
|
10463 |
sb.append("null");
|
|
|
10464 |
} else {
|
|
|
10465 |
sb.append(this.status);
|
|
|
10466 |
}
|
|
|
10467 |
first = false;
|
|
|
10468 |
if (!first) sb.append(", ");
|
| 1119 |
rajveer |
10469 |
sb.append("gatewayTxnDate:");
|
|
|
10470 |
if (this.gatewayTxnDate == null) {
|
|
|
10471 |
sb.append("null");
|
|
|
10472 |
} else {
|
|
|
10473 |
sb.append(this.gatewayTxnDate);
|
|
|
10474 |
}
|
|
|
10475 |
first = false;
|
|
|
10476 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
10477 |
sb.append("attributes:");
|
|
|
10478 |
if (this.attributes == null) {
|
|
|
10479 |
sb.append("null");
|
|
|
10480 |
} else {
|
|
|
10481 |
sb.append(this.attributes);
|
|
|
10482 |
}
|
|
|
10483 |
first = false;
|
| 420 |
ashish |
10484 |
sb.append(")");
|
|
|
10485 |
return sb.toString();
|
|
|
10486 |
}
|
|
|
10487 |
|
| 3430 |
rajveer |
10488 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
10489 |
// check for required fields
|
|
|
10490 |
}
|
|
|
10491 |
|
| 3430 |
rajveer |
10492 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10493 |
try {
|
|
|
10494 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10495 |
} catch (org.apache.thrift.TException te) {
|
|
|
10496 |
throw new java.io.IOException(te);
|
|
|
10497 |
}
|
|
|
10498 |
}
|
|
|
10499 |
|
|
|
10500 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10501 |
try {
|
|
|
10502 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
10503 |
__isset_bit_vector = new BitSet(1);
|
|
|
10504 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10505 |
} catch (org.apache.thrift.TException te) {
|
|
|
10506 |
throw new java.io.IOException(te);
|
|
|
10507 |
}
|
|
|
10508 |
}
|
|
|
10509 |
|
| 420 |
ashish |
10510 |
}
|
|
|
10511 |
|
| 3430 |
rajveer |
10512 |
public static class updatePaymentDetails_result implements org.apache.thrift.TBase<updatePaymentDetails_result, updatePaymentDetails_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
10513 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_result");
|
| 420 |
ashish |
10514 |
|
| 3430 |
rajveer |
10515 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
|
|
|
10516 |
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);
|
| 420 |
ashish |
10517 |
|
| 3430 |
rajveer |
10518 |
private boolean success; // required
|
|
|
10519 |
private PaymentException pe; // required
|
| 420 |
ashish |
10520 |
|
|
|
10521 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
10522 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 695 |
rajveer |
10523 |
SUCCESS((short)0, "success"),
|
| 420 |
ashish |
10524 |
PE((short)1, "pe");
|
|
|
10525 |
|
|
|
10526 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10527 |
|
|
|
10528 |
static {
|
|
|
10529 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10530 |
byName.put(field.getFieldName(), field);
|
|
|
10531 |
}
|
|
|
10532 |
}
|
|
|
10533 |
|
|
|
10534 |
/**
|
|
|
10535 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10536 |
*/
|
|
|
10537 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
10538 |
switch(fieldId) {
|
|
|
10539 |
case 0: // SUCCESS
|
|
|
10540 |
return SUCCESS;
|
|
|
10541 |
case 1: // PE
|
|
|
10542 |
return PE;
|
|
|
10543 |
default:
|
|
|
10544 |
return null;
|
|
|
10545 |
}
|
| 420 |
ashish |
10546 |
}
|
|
|
10547 |
|
|
|
10548 |
/**
|
|
|
10549 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10550 |
* if it is not found.
|
|
|
10551 |
*/
|
|
|
10552 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10553 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10554 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10555 |
return fields;
|
|
|
10556 |
}
|
|
|
10557 |
|
|
|
10558 |
/**
|
|
|
10559 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10560 |
*/
|
|
|
10561 |
public static _Fields findByName(String name) {
|
|
|
10562 |
return byName.get(name);
|
|
|
10563 |
}
|
|
|
10564 |
|
|
|
10565 |
private final short _thriftId;
|
|
|
10566 |
private final String _fieldName;
|
|
|
10567 |
|
|
|
10568 |
_Fields(short thriftId, String fieldName) {
|
|
|
10569 |
_thriftId = thriftId;
|
|
|
10570 |
_fieldName = fieldName;
|
|
|
10571 |
}
|
|
|
10572 |
|
|
|
10573 |
public short getThriftFieldId() {
|
|
|
10574 |
return _thriftId;
|
|
|
10575 |
}
|
|
|
10576 |
|
|
|
10577 |
public String getFieldName() {
|
|
|
10578 |
return _fieldName;
|
|
|
10579 |
}
|
|
|
10580 |
}
|
|
|
10581 |
|
|
|
10582 |
// isset id assignments
|
| 695 |
rajveer |
10583 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
10584 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 420 |
ashish |
10585 |
|
| 3430 |
rajveer |
10586 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
10587 |
static {
|
| 3430 |
rajveer |
10588 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10589 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10590 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
10591 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10592 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
10593 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10594 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_result.class, metaDataMap);
|
| 420 |
ashish |
10595 |
}
|
|
|
10596 |
|
| 695 |
rajveer |
10597 |
public updatePaymentDetails_result() {
|
| 420 |
ashish |
10598 |
}
|
|
|
10599 |
|
| 695 |
rajveer |
10600 |
public updatePaymentDetails_result(
|
|
|
10601 |
boolean success,
|
| 420 |
ashish |
10602 |
PaymentException pe)
|
|
|
10603 |
{
|
|
|
10604 |
this();
|
| 695 |
rajveer |
10605 |
this.success = success;
|
|
|
10606 |
setSuccessIsSet(true);
|
| 420 |
ashish |
10607 |
this.pe = pe;
|
|
|
10608 |
}
|
|
|
10609 |
|
|
|
10610 |
/**
|
|
|
10611 |
* Performs a deep copy on <i>other</i>.
|
|
|
10612 |
*/
|
| 695 |
rajveer |
10613 |
public updatePaymentDetails_result(updatePaymentDetails_result other) {
|
|
|
10614 |
__isset_bit_vector.clear();
|
|
|
10615 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
10616 |
this.success = other.success;
|
| 420 |
ashish |
10617 |
if (other.isSetPe()) {
|
|
|
10618 |
this.pe = new PaymentException(other.pe);
|
|
|
10619 |
}
|
|
|
10620 |
}
|
|
|
10621 |
|
| 695 |
rajveer |
10622 |
public updatePaymentDetails_result deepCopy() {
|
|
|
10623 |
return new updatePaymentDetails_result(this);
|
| 420 |
ashish |
10624 |
}
|
|
|
10625 |
|
| 3430 |
rajveer |
10626 |
@Override
|
|
|
10627 |
public void clear() {
|
|
|
10628 |
setSuccessIsSet(false);
|
|
|
10629 |
this.success = false;
|
|
|
10630 |
this.pe = null;
|
| 420 |
ashish |
10631 |
}
|
|
|
10632 |
|
| 695 |
rajveer |
10633 |
public boolean isSuccess() {
|
|
|
10634 |
return this.success;
|
|
|
10635 |
}
|
|
|
10636 |
|
| 3430 |
rajveer |
10637 |
public void setSuccess(boolean success) {
|
| 695 |
rajveer |
10638 |
this.success = success;
|
|
|
10639 |
setSuccessIsSet(true);
|
|
|
10640 |
}
|
|
|
10641 |
|
|
|
10642 |
public void unsetSuccess() {
|
|
|
10643 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
10644 |
}
|
|
|
10645 |
|
| 3430 |
rajveer |
10646 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
10647 |
public boolean isSetSuccess() {
|
|
|
10648 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
10649 |
}
|
|
|
10650 |
|
|
|
10651 |
public void setSuccessIsSet(boolean value) {
|
|
|
10652 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
10653 |
}
|
|
|
10654 |
|
| 420 |
ashish |
10655 |
public PaymentException getPe() {
|
|
|
10656 |
return this.pe;
|
|
|
10657 |
}
|
|
|
10658 |
|
| 3430 |
rajveer |
10659 |
public void setPe(PaymentException pe) {
|
| 420 |
ashish |
10660 |
this.pe = pe;
|
|
|
10661 |
}
|
|
|
10662 |
|
|
|
10663 |
public void unsetPe() {
|
|
|
10664 |
this.pe = null;
|
|
|
10665 |
}
|
|
|
10666 |
|
| 3430 |
rajveer |
10667 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
10668 |
public boolean isSetPe() {
|
|
|
10669 |
return this.pe != null;
|
|
|
10670 |
}
|
|
|
10671 |
|
|
|
10672 |
public void setPeIsSet(boolean value) {
|
|
|
10673 |
if (!value) {
|
|
|
10674 |
this.pe = null;
|
|
|
10675 |
}
|
|
|
10676 |
}
|
|
|
10677 |
|
|
|
10678 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10679 |
switch (field) {
|
| 695 |
rajveer |
10680 |
case SUCCESS:
|
|
|
10681 |
if (value == null) {
|
|
|
10682 |
unsetSuccess();
|
|
|
10683 |
} else {
|
|
|
10684 |
setSuccess((Boolean)value);
|
|
|
10685 |
}
|
|
|
10686 |
break;
|
|
|
10687 |
|
| 420 |
ashish |
10688 |
case PE:
|
|
|
10689 |
if (value == null) {
|
|
|
10690 |
unsetPe();
|
|
|
10691 |
} else {
|
|
|
10692 |
setPe((PaymentException)value);
|
|
|
10693 |
}
|
|
|
10694 |
break;
|
|
|
10695 |
|
|
|
10696 |
}
|
|
|
10697 |
}
|
|
|
10698 |
|
|
|
10699 |
public Object getFieldValue(_Fields field) {
|
|
|
10700 |
switch (field) {
|
| 695 |
rajveer |
10701 |
case SUCCESS:
|
| 3430 |
rajveer |
10702 |
return Boolean.valueOf(isSuccess());
|
| 695 |
rajveer |
10703 |
|
| 420 |
ashish |
10704 |
case PE:
|
|
|
10705 |
return getPe();
|
|
|
10706 |
|
|
|
10707 |
}
|
|
|
10708 |
throw new IllegalStateException();
|
|
|
10709 |
}
|
|
|
10710 |
|
| 3430 |
rajveer |
10711 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10712 |
public boolean isSet(_Fields field) {
|
|
|
10713 |
if (field == null) {
|
|
|
10714 |
throw new IllegalArgumentException();
|
|
|
10715 |
}
|
| 420 |
ashish |
10716 |
|
|
|
10717 |
switch (field) {
|
| 695 |
rajveer |
10718 |
case SUCCESS:
|
|
|
10719 |
return isSetSuccess();
|
| 420 |
ashish |
10720 |
case PE:
|
|
|
10721 |
return isSetPe();
|
|
|
10722 |
}
|
|
|
10723 |
throw new IllegalStateException();
|
|
|
10724 |
}
|
|
|
10725 |
|
|
|
10726 |
@Override
|
|
|
10727 |
public boolean equals(Object that) {
|
|
|
10728 |
if (that == null)
|
|
|
10729 |
return false;
|
| 695 |
rajveer |
10730 |
if (that instanceof updatePaymentDetails_result)
|
|
|
10731 |
return this.equals((updatePaymentDetails_result)that);
|
| 420 |
ashish |
10732 |
return false;
|
|
|
10733 |
}
|
|
|
10734 |
|
| 695 |
rajveer |
10735 |
public boolean equals(updatePaymentDetails_result that) {
|
| 420 |
ashish |
10736 |
if (that == null)
|
|
|
10737 |
return false;
|
|
|
10738 |
|
| 695 |
rajveer |
10739 |
boolean this_present_success = true;
|
|
|
10740 |
boolean that_present_success = true;
|
|
|
10741 |
if (this_present_success || that_present_success) {
|
|
|
10742 |
if (!(this_present_success && that_present_success))
|
|
|
10743 |
return false;
|
|
|
10744 |
if (this.success != that.success)
|
|
|
10745 |
return false;
|
|
|
10746 |
}
|
|
|
10747 |
|
| 420 |
ashish |
10748 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
10749 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
10750 |
if (this_present_pe || that_present_pe) {
|
|
|
10751 |
if (!(this_present_pe && that_present_pe))
|
|
|
10752 |
return false;
|
|
|
10753 |
if (!this.pe.equals(that.pe))
|
|
|
10754 |
return false;
|
|
|
10755 |
}
|
|
|
10756 |
|
|
|
10757 |
return true;
|
|
|
10758 |
}
|
|
|
10759 |
|
|
|
10760 |
@Override
|
|
|
10761 |
public int hashCode() {
|
|
|
10762 |
return 0;
|
|
|
10763 |
}
|
|
|
10764 |
|
| 695 |
rajveer |
10765 |
public int compareTo(updatePaymentDetails_result other) {
|
| 420 |
ashish |
10766 |
if (!getClass().equals(other.getClass())) {
|
|
|
10767 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10768 |
}
|
|
|
10769 |
|
|
|
10770 |
int lastComparison = 0;
|
| 695 |
rajveer |
10771 |
updatePaymentDetails_result typedOther = (updatePaymentDetails_result)other;
|
| 420 |
ashish |
10772 |
|
| 3430 |
rajveer |
10773 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 695 |
rajveer |
10774 |
if (lastComparison != 0) {
|
|
|
10775 |
return lastComparison;
|
|
|
10776 |
}
|
| 3430 |
rajveer |
10777 |
if (isSetSuccess()) {
|
|
|
10778 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
10779 |
if (lastComparison != 0) {
|
|
|
10780 |
return lastComparison;
|
|
|
10781 |
}
|
| 695 |
rajveer |
10782 |
}
|
| 3430 |
rajveer |
10783 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 420 |
ashish |
10784 |
if (lastComparison != 0) {
|
|
|
10785 |
return lastComparison;
|
|
|
10786 |
}
|
| 3430 |
rajveer |
10787 |
if (isSetPe()) {
|
|
|
10788 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
10789 |
if (lastComparison != 0) {
|
|
|
10790 |
return lastComparison;
|
|
|
10791 |
}
|
| 420 |
ashish |
10792 |
}
|
|
|
10793 |
return 0;
|
|
|
10794 |
}
|
|
|
10795 |
|
| 3430 |
rajveer |
10796 |
public _Fields fieldForId(int fieldId) {
|
|
|
10797 |
return _Fields.findByThriftId(fieldId);
|
|
|
10798 |
}
|
|
|
10799 |
|
|
|
10800 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10801 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
10802 |
iprot.readStructBegin();
|
|
|
10803 |
while (true)
|
|
|
10804 |
{
|
|
|
10805 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
10806 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
10807 |
break;
|
|
|
10808 |
}
|
| 3430 |
rajveer |
10809 |
switch (field.id) {
|
|
|
10810 |
case 0: // SUCCESS
|
|
|
10811 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
10812 |
this.success = iprot.readBool();
|
|
|
10813 |
setSuccessIsSet(true);
|
|
|
10814 |
} else {
|
|
|
10815 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10816 |
}
|
|
|
10817 |
break;
|
|
|
10818 |
case 1: // PE
|
|
|
10819 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
10820 |
this.pe = new PaymentException();
|
|
|
10821 |
this.pe.read(iprot);
|
|
|
10822 |
} else {
|
|
|
10823 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10824 |
}
|
|
|
10825 |
break;
|
|
|
10826 |
default:
|
|
|
10827 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
10828 |
}
|
| 3430 |
rajveer |
10829 |
iprot.readFieldEnd();
|
| 420 |
ashish |
10830 |
}
|
|
|
10831 |
iprot.readStructEnd();
|
|
|
10832 |
validate();
|
|
|
10833 |
}
|
|
|
10834 |
|
| 3430 |
rajveer |
10835 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
10836 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10837 |
|
| 695 |
rajveer |
10838 |
if (this.isSetSuccess()) {
|
|
|
10839 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
10840 |
oprot.writeBool(this.success);
|
|
|
10841 |
oprot.writeFieldEnd();
|
|
|
10842 |
} else if (this.isSetPe()) {
|
| 420 |
ashish |
10843 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
10844 |
this.pe.write(oprot);
|
|
|
10845 |
oprot.writeFieldEnd();
|
|
|
10846 |
}
|
|
|
10847 |
oprot.writeFieldStop();
|
|
|
10848 |
oprot.writeStructEnd();
|
|
|
10849 |
}
|
|
|
10850 |
|
|
|
10851 |
@Override
|
|
|
10852 |
public String toString() {
|
| 695 |
rajveer |
10853 |
StringBuilder sb = new StringBuilder("updatePaymentDetails_result(");
|
| 420 |
ashish |
10854 |
boolean first = true;
|
|
|
10855 |
|
| 695 |
rajveer |
10856 |
sb.append("success:");
|
|
|
10857 |
sb.append(this.success);
|
|
|
10858 |
first = false;
|
|
|
10859 |
if (!first) sb.append(", ");
|
| 420 |
ashish |
10860 |
sb.append("pe:");
|
|
|
10861 |
if (this.pe == null) {
|
|
|
10862 |
sb.append("null");
|
|
|
10863 |
} else {
|
|
|
10864 |
sb.append(this.pe);
|
|
|
10865 |
}
|
|
|
10866 |
first = false;
|
|
|
10867 |
sb.append(")");
|
|
|
10868 |
return sb.toString();
|
|
|
10869 |
}
|
|
|
10870 |
|
| 3430 |
rajveer |
10871 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
10872 |
// check for required fields
|
|
|
10873 |
}
|
|
|
10874 |
|
| 3430 |
rajveer |
10875 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10876 |
try {
|
|
|
10877 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10878 |
} catch (org.apache.thrift.TException te) {
|
|
|
10879 |
throw new java.io.IOException(te);
|
|
|
10880 |
}
|
|
|
10881 |
}
|
|
|
10882 |
|
|
|
10883 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10884 |
try {
|
|
|
10885 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10886 |
} catch (org.apache.thrift.TException te) {
|
|
|
10887 |
throw new java.io.IOException(te);
|
|
|
10888 |
}
|
|
|
10889 |
}
|
|
|
10890 |
|
| 420 |
ashish |
10891 |
}
|
|
|
10892 |
|
| 3430 |
rajveer |
10893 |
public static class getSuccessfulPaymentsAmountRange_args implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_args, getSuccessfulPaymentsAmountRange_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
10894 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_args");
|
| 1629 |
ankur.sing |
10895 |
|
|
|
10896 |
|
|
|
10897 |
|
|
|
10898 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
10899 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1629 |
ankur.sing |
10900 |
;
|
|
|
10901 |
|
|
|
10902 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10903 |
|
|
|
10904 |
static {
|
|
|
10905 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10906 |
byName.put(field.getFieldName(), field);
|
|
|
10907 |
}
|
|
|
10908 |
}
|
|
|
10909 |
|
|
|
10910 |
/**
|
|
|
10911 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10912 |
*/
|
|
|
10913 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
10914 |
switch(fieldId) {
|
|
|
10915 |
default:
|
|
|
10916 |
return null;
|
|
|
10917 |
}
|
| 1629 |
ankur.sing |
10918 |
}
|
|
|
10919 |
|
|
|
10920 |
/**
|
|
|
10921 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10922 |
* if it is not found.
|
|
|
10923 |
*/
|
|
|
10924 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10925 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10926 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10927 |
return fields;
|
|
|
10928 |
}
|
|
|
10929 |
|
|
|
10930 |
/**
|
|
|
10931 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10932 |
*/
|
|
|
10933 |
public static _Fields findByName(String name) {
|
|
|
10934 |
return byName.get(name);
|
|
|
10935 |
}
|
|
|
10936 |
|
|
|
10937 |
private final short _thriftId;
|
|
|
10938 |
private final String _fieldName;
|
|
|
10939 |
|
|
|
10940 |
_Fields(short thriftId, String fieldName) {
|
|
|
10941 |
_thriftId = thriftId;
|
|
|
10942 |
_fieldName = fieldName;
|
|
|
10943 |
}
|
|
|
10944 |
|
|
|
10945 |
public short getThriftFieldId() {
|
|
|
10946 |
return _thriftId;
|
|
|
10947 |
}
|
|
|
10948 |
|
|
|
10949 |
public String getFieldName() {
|
|
|
10950 |
return _fieldName;
|
|
|
10951 |
}
|
|
|
10952 |
}
|
| 3430 |
rajveer |
10953 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1629 |
ankur.sing |
10954 |
static {
|
| 3430 |
rajveer |
10955 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10956 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10957 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_args.class, metaDataMap);
|
| 1629 |
ankur.sing |
10958 |
}
|
|
|
10959 |
|
| 1731 |
ankur.sing |
10960 |
public getSuccessfulPaymentsAmountRange_args() {
|
| 1629 |
ankur.sing |
10961 |
}
|
|
|
10962 |
|
|
|
10963 |
/**
|
|
|
10964 |
* Performs a deep copy on <i>other</i>.
|
|
|
10965 |
*/
|
| 1731 |
ankur.sing |
10966 |
public getSuccessfulPaymentsAmountRange_args(getSuccessfulPaymentsAmountRange_args other) {
|
| 1629 |
ankur.sing |
10967 |
}
|
|
|
10968 |
|
| 1731 |
ankur.sing |
10969 |
public getSuccessfulPaymentsAmountRange_args deepCopy() {
|
|
|
10970 |
return new getSuccessfulPaymentsAmountRange_args(this);
|
| 1629 |
ankur.sing |
10971 |
}
|
|
|
10972 |
|
| 3430 |
rajveer |
10973 |
@Override
|
|
|
10974 |
public void clear() {
|
| 1629 |
ankur.sing |
10975 |
}
|
|
|
10976 |
|
|
|
10977 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10978 |
switch (field) {
|
|
|
10979 |
}
|
|
|
10980 |
}
|
|
|
10981 |
|
|
|
10982 |
public Object getFieldValue(_Fields field) {
|
|
|
10983 |
switch (field) {
|
|
|
10984 |
}
|
|
|
10985 |
throw new IllegalStateException();
|
|
|
10986 |
}
|
|
|
10987 |
|
| 3430 |
rajveer |
10988 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10989 |
public boolean isSet(_Fields field) {
|
|
|
10990 |
if (field == null) {
|
|
|
10991 |
throw new IllegalArgumentException();
|
|
|
10992 |
}
|
| 1629 |
ankur.sing |
10993 |
|
|
|
10994 |
switch (field) {
|
|
|
10995 |
}
|
|
|
10996 |
throw new IllegalStateException();
|
|
|
10997 |
}
|
|
|
10998 |
|
|
|
10999 |
@Override
|
|
|
11000 |
public boolean equals(Object that) {
|
|
|
11001 |
if (that == null)
|
|
|
11002 |
return false;
|
| 1731 |
ankur.sing |
11003 |
if (that instanceof getSuccessfulPaymentsAmountRange_args)
|
|
|
11004 |
return this.equals((getSuccessfulPaymentsAmountRange_args)that);
|
| 1629 |
ankur.sing |
11005 |
return false;
|
|
|
11006 |
}
|
|
|
11007 |
|
| 1731 |
ankur.sing |
11008 |
public boolean equals(getSuccessfulPaymentsAmountRange_args that) {
|
| 1629 |
ankur.sing |
11009 |
if (that == null)
|
|
|
11010 |
return false;
|
|
|
11011 |
|
|
|
11012 |
return true;
|
|
|
11013 |
}
|
|
|
11014 |
|
|
|
11015 |
@Override
|
|
|
11016 |
public int hashCode() {
|
|
|
11017 |
return 0;
|
|
|
11018 |
}
|
|
|
11019 |
|
| 1731 |
ankur.sing |
11020 |
public int compareTo(getSuccessfulPaymentsAmountRange_args other) {
|
| 1629 |
ankur.sing |
11021 |
if (!getClass().equals(other.getClass())) {
|
|
|
11022 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11023 |
}
|
|
|
11024 |
|
|
|
11025 |
int lastComparison = 0;
|
| 1731 |
ankur.sing |
11026 |
getSuccessfulPaymentsAmountRange_args typedOther = (getSuccessfulPaymentsAmountRange_args)other;
|
| 1629 |
ankur.sing |
11027 |
|
|
|
11028 |
return 0;
|
|
|
11029 |
}
|
|
|
11030 |
|
| 3430 |
rajveer |
11031 |
public _Fields fieldForId(int fieldId) {
|
|
|
11032 |
return _Fields.findByThriftId(fieldId);
|
|
|
11033 |
}
|
|
|
11034 |
|
|
|
11035 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11036 |
org.apache.thrift.protocol.TField field;
|
| 1629 |
ankur.sing |
11037 |
iprot.readStructBegin();
|
|
|
11038 |
while (true)
|
|
|
11039 |
{
|
|
|
11040 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
11041 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1629 |
ankur.sing |
11042 |
break;
|
|
|
11043 |
}
|
| 3430 |
rajveer |
11044 |
switch (field.id) {
|
|
|
11045 |
default:
|
|
|
11046 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1629 |
ankur.sing |
11047 |
}
|
| 3430 |
rajveer |
11048 |
iprot.readFieldEnd();
|
| 1629 |
ankur.sing |
11049 |
}
|
|
|
11050 |
iprot.readStructEnd();
|
|
|
11051 |
validate();
|
|
|
11052 |
}
|
|
|
11053 |
|
| 3430 |
rajveer |
11054 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1629 |
ankur.sing |
11055 |
validate();
|
|
|
11056 |
|
|
|
11057 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11058 |
oprot.writeFieldStop();
|
|
|
11059 |
oprot.writeStructEnd();
|
|
|
11060 |
}
|
|
|
11061 |
|
|
|
11062 |
@Override
|
|
|
11063 |
public String toString() {
|
| 1731 |
ankur.sing |
11064 |
StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_args(");
|
| 1629 |
ankur.sing |
11065 |
boolean first = true;
|
|
|
11066 |
|
|
|
11067 |
sb.append(")");
|
|
|
11068 |
return sb.toString();
|
|
|
11069 |
}
|
|
|
11070 |
|
| 3430 |
rajveer |
11071 |
public void validate() throws org.apache.thrift.TException {
|
| 1629 |
ankur.sing |
11072 |
// check for required fields
|
|
|
11073 |
}
|
|
|
11074 |
|
| 3430 |
rajveer |
11075 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11076 |
try {
|
|
|
11077 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11078 |
} catch (org.apache.thrift.TException te) {
|
|
|
11079 |
throw new java.io.IOException(te);
|
|
|
11080 |
}
|
|
|
11081 |
}
|
|
|
11082 |
|
|
|
11083 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11084 |
try {
|
|
|
11085 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11086 |
} catch (org.apache.thrift.TException te) {
|
|
|
11087 |
throw new java.io.IOException(te);
|
|
|
11088 |
}
|
|
|
11089 |
}
|
|
|
11090 |
|
| 1629 |
ankur.sing |
11091 |
}
|
|
|
11092 |
|
| 3430 |
rajveer |
11093 |
public static class getSuccessfulPaymentsAmountRange_result implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_result, getSuccessfulPaymentsAmountRange_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11094 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_result");
|
| 1629 |
ankur.sing |
11095 |
|
| 3430 |
rajveer |
11096 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
| 1629 |
ankur.sing |
11097 |
|
| 3430 |
rajveer |
11098 |
private List<Double> success; // required
|
| 1629 |
ankur.sing |
11099 |
|
|
|
11100 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
11101 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1629 |
ankur.sing |
11102 |
SUCCESS((short)0, "success");
|
|
|
11103 |
|
|
|
11104 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11105 |
|
|
|
11106 |
static {
|
|
|
11107 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11108 |
byName.put(field.getFieldName(), field);
|
|
|
11109 |
}
|
|
|
11110 |
}
|
|
|
11111 |
|
|
|
11112 |
/**
|
|
|
11113 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11114 |
*/
|
|
|
11115 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
11116 |
switch(fieldId) {
|
|
|
11117 |
case 0: // SUCCESS
|
|
|
11118 |
return SUCCESS;
|
|
|
11119 |
default:
|
|
|
11120 |
return null;
|
|
|
11121 |
}
|
| 1629 |
ankur.sing |
11122 |
}
|
|
|
11123 |
|
|
|
11124 |
/**
|
|
|
11125 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11126 |
* if it is not found.
|
|
|
11127 |
*/
|
|
|
11128 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11129 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11130 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11131 |
return fields;
|
|
|
11132 |
}
|
|
|
11133 |
|
|
|
11134 |
/**
|
|
|
11135 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11136 |
*/
|
|
|
11137 |
public static _Fields findByName(String name) {
|
|
|
11138 |
return byName.get(name);
|
|
|
11139 |
}
|
|
|
11140 |
|
|
|
11141 |
private final short _thriftId;
|
|
|
11142 |
private final String _fieldName;
|
|
|
11143 |
|
|
|
11144 |
_Fields(short thriftId, String fieldName) {
|
|
|
11145 |
_thriftId = thriftId;
|
|
|
11146 |
_fieldName = fieldName;
|
|
|
11147 |
}
|
|
|
11148 |
|
|
|
11149 |
public short getThriftFieldId() {
|
|
|
11150 |
return _thriftId;
|
|
|
11151 |
}
|
|
|
11152 |
|
|
|
11153 |
public String getFieldName() {
|
|
|
11154 |
return _fieldName;
|
|
|
11155 |
}
|
|
|
11156 |
}
|
|
|
11157 |
|
|
|
11158 |
// isset id assignments
|
|
|
11159 |
|
| 3430 |
rajveer |
11160 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1629 |
ankur.sing |
11161 |
static {
|
| 3430 |
rajveer |
11162 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11163 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11164 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
11165 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
|
|
|
11166 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11167 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_result.class, metaDataMap);
|
| 1629 |
ankur.sing |
11168 |
}
|
|
|
11169 |
|
| 1731 |
ankur.sing |
11170 |
public getSuccessfulPaymentsAmountRange_result() {
|
| 1629 |
ankur.sing |
11171 |
}
|
|
|
11172 |
|
| 1731 |
ankur.sing |
11173 |
public getSuccessfulPaymentsAmountRange_result(
|
|
|
11174 |
List<Double> success)
|
| 1629 |
ankur.sing |
11175 |
{
|
|
|
11176 |
this();
|
|
|
11177 |
this.success = success;
|
|
|
11178 |
}
|
|
|
11179 |
|
|
|
11180 |
/**
|
|
|
11181 |
* Performs a deep copy on <i>other</i>.
|
|
|
11182 |
*/
|
| 1731 |
ankur.sing |
11183 |
public getSuccessfulPaymentsAmountRange_result(getSuccessfulPaymentsAmountRange_result other) {
|
|
|
11184 |
if (other.isSetSuccess()) {
|
|
|
11185 |
List<Double> __this__success = new ArrayList<Double>();
|
|
|
11186 |
for (Double other_element : other.success) {
|
|
|
11187 |
__this__success.add(other_element);
|
| 1629 |
ankur.sing |
11188 |
}
|
| 1731 |
ankur.sing |
11189 |
this.success = __this__success;
|
| 1629 |
ankur.sing |
11190 |
}
|
|
|
11191 |
}
|
|
|
11192 |
|
| 1731 |
ankur.sing |
11193 |
public getSuccessfulPaymentsAmountRange_result deepCopy() {
|
|
|
11194 |
return new getSuccessfulPaymentsAmountRange_result(this);
|
| 1629 |
ankur.sing |
11195 |
}
|
|
|
11196 |
|
| 3430 |
rajveer |
11197 |
@Override
|
|
|
11198 |
public void clear() {
|
|
|
11199 |
this.success = null;
|
| 1629 |
ankur.sing |
11200 |
}
|
|
|
11201 |
|
| 1731 |
ankur.sing |
11202 |
public int getSuccessSize() {
|
|
|
11203 |
return (this.success == null) ? 0 : this.success.size();
|
| 1629 |
ankur.sing |
11204 |
}
|
|
|
11205 |
|
| 1731 |
ankur.sing |
11206 |
public java.util.Iterator<Double> getSuccessIterator() {
|
|
|
11207 |
return (this.success == null) ? null : this.success.iterator();
|
| 1629 |
ankur.sing |
11208 |
}
|
|
|
11209 |
|
| 1731 |
ankur.sing |
11210 |
public void addToSuccess(double elem) {
|
|
|
11211 |
if (this.success == null) {
|
|
|
11212 |
this.success = new ArrayList<Double>();
|
| 1629 |
ankur.sing |
11213 |
}
|
| 1731 |
ankur.sing |
11214 |
this.success.add(elem);
|
| 1629 |
ankur.sing |
11215 |
}
|
|
|
11216 |
|
| 1731 |
ankur.sing |
11217 |
public List<Double> getSuccess() {
|
| 1629 |
ankur.sing |
11218 |
return this.success;
|
|
|
11219 |
}
|
|
|
11220 |
|
| 3430 |
rajveer |
11221 |
public void setSuccess(List<Double> success) {
|
| 1629 |
ankur.sing |
11222 |
this.success = success;
|
|
|
11223 |
}
|
|
|
11224 |
|
|
|
11225 |
public void unsetSuccess() {
|
| 1731 |
ankur.sing |
11226 |
this.success = null;
|
| 1629 |
ankur.sing |
11227 |
}
|
|
|
11228 |
|
| 3430 |
rajveer |
11229 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 1629 |
ankur.sing |
11230 |
public boolean isSetSuccess() {
|
| 1731 |
ankur.sing |
11231 |
return this.success != null;
|
| 1629 |
ankur.sing |
11232 |
}
|
|
|
11233 |
|
|
|
11234 |
public void setSuccessIsSet(boolean value) {
|
| 1731 |
ankur.sing |
11235 |
if (!value) {
|
|
|
11236 |
this.success = null;
|
|
|
11237 |
}
|
| 1629 |
ankur.sing |
11238 |
}
|
|
|
11239 |
|
|
|
11240 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11241 |
switch (field) {
|
|
|
11242 |
case SUCCESS:
|
|
|
11243 |
if (value == null) {
|
|
|
11244 |
unsetSuccess();
|
|
|
11245 |
} else {
|
| 1731 |
ankur.sing |
11246 |
setSuccess((List<Double>)value);
|
| 1629 |
ankur.sing |
11247 |
}
|
|
|
11248 |
break;
|
|
|
11249 |
|
|
|
11250 |
}
|
|
|
11251 |
}
|
|
|
11252 |
|
|
|
11253 |
public Object getFieldValue(_Fields field) {
|
|
|
11254 |
switch (field) {
|
|
|
11255 |
case SUCCESS:
|
| 1731 |
ankur.sing |
11256 |
return getSuccess();
|
| 1629 |
ankur.sing |
11257 |
|
|
|
11258 |
}
|
|
|
11259 |
throw new IllegalStateException();
|
|
|
11260 |
}
|
|
|
11261 |
|
| 3430 |
rajveer |
11262 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11263 |
public boolean isSet(_Fields field) {
|
|
|
11264 |
if (field == null) {
|
|
|
11265 |
throw new IllegalArgumentException();
|
|
|
11266 |
}
|
| 1629 |
ankur.sing |
11267 |
|
|
|
11268 |
switch (field) {
|
|
|
11269 |
case SUCCESS:
|
|
|
11270 |
return isSetSuccess();
|
|
|
11271 |
}
|
|
|
11272 |
throw new IllegalStateException();
|
|
|
11273 |
}
|
|
|
11274 |
|
|
|
11275 |
@Override
|
|
|
11276 |
public boolean equals(Object that) {
|
|
|
11277 |
if (that == null)
|
|
|
11278 |
return false;
|
| 1731 |
ankur.sing |
11279 |
if (that instanceof getSuccessfulPaymentsAmountRange_result)
|
|
|
11280 |
return this.equals((getSuccessfulPaymentsAmountRange_result)that);
|
| 1629 |
ankur.sing |
11281 |
return false;
|
|
|
11282 |
}
|
|
|
11283 |
|
| 1731 |
ankur.sing |
11284 |
public boolean equals(getSuccessfulPaymentsAmountRange_result that) {
|
| 1629 |
ankur.sing |
11285 |
if (that == null)
|
|
|
11286 |
return false;
|
|
|
11287 |
|
| 1731 |
ankur.sing |
11288 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
11289 |
boolean that_present_success = true && that.isSetSuccess();
|
| 1629 |
ankur.sing |
11290 |
if (this_present_success || that_present_success) {
|
|
|
11291 |
if (!(this_present_success && that_present_success))
|
|
|
11292 |
return false;
|
| 1731 |
ankur.sing |
11293 |
if (!this.success.equals(that.success))
|
| 1629 |
ankur.sing |
11294 |
return false;
|
|
|
11295 |
}
|
|
|
11296 |
|
|
|
11297 |
return true;
|
|
|
11298 |
}
|
|
|
11299 |
|
|
|
11300 |
@Override
|
|
|
11301 |
public int hashCode() {
|
|
|
11302 |
return 0;
|
|
|
11303 |
}
|
|
|
11304 |
|
| 1731 |
ankur.sing |
11305 |
public int compareTo(getSuccessfulPaymentsAmountRange_result other) {
|
| 1629 |
ankur.sing |
11306 |
if (!getClass().equals(other.getClass())) {
|
|
|
11307 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11308 |
}
|
|
|
11309 |
|
|
|
11310 |
int lastComparison = 0;
|
| 1731 |
ankur.sing |
11311 |
getSuccessfulPaymentsAmountRange_result typedOther = (getSuccessfulPaymentsAmountRange_result)other;
|
| 1629 |
ankur.sing |
11312 |
|
| 3430 |
rajveer |
11313 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 1629 |
ankur.sing |
11314 |
if (lastComparison != 0) {
|
|
|
11315 |
return lastComparison;
|
|
|
11316 |
}
|
| 3430 |
rajveer |
11317 |
if (isSetSuccess()) {
|
|
|
11318 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
11319 |
if (lastComparison != 0) {
|
|
|
11320 |
return lastComparison;
|
|
|
11321 |
}
|
| 1629 |
ankur.sing |
11322 |
}
|
|
|
11323 |
return 0;
|
|
|
11324 |
}
|
|
|
11325 |
|
| 3430 |
rajveer |
11326 |
public _Fields fieldForId(int fieldId) {
|
|
|
11327 |
return _Fields.findByThriftId(fieldId);
|
|
|
11328 |
}
|
|
|
11329 |
|
|
|
11330 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11331 |
org.apache.thrift.protocol.TField field;
|
| 1629 |
ankur.sing |
11332 |
iprot.readStructBegin();
|
|
|
11333 |
while (true)
|
|
|
11334 |
{
|
|
|
11335 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
11336 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1629 |
ankur.sing |
11337 |
break;
|
|
|
11338 |
}
|
| 3430 |
rajveer |
11339 |
switch (field.id) {
|
|
|
11340 |
case 0: // SUCCESS
|
|
|
11341 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
11342 |
{
|
| 4600 |
varun.gupt |
11343 |
org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
|
|
|
11344 |
this.success = new ArrayList<Double>(_list36.size);
|
|
|
11345 |
for (int _i37 = 0; _i37 < _list36.size; ++_i37)
|
| 1731 |
ankur.sing |
11346 |
{
|
| 4600 |
varun.gupt |
11347 |
double _elem38; // required
|
|
|
11348 |
_elem38 = iprot.readDouble();
|
|
|
11349 |
this.success.add(_elem38);
|
| 1731 |
ankur.sing |
11350 |
}
|
| 3430 |
rajveer |
11351 |
iprot.readListEnd();
|
| 1629 |
ankur.sing |
11352 |
}
|
| 3430 |
rajveer |
11353 |
} else {
|
|
|
11354 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11355 |
}
|
|
|
11356 |
break;
|
|
|
11357 |
default:
|
|
|
11358 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1629 |
ankur.sing |
11359 |
}
|
| 3430 |
rajveer |
11360 |
iprot.readFieldEnd();
|
| 1629 |
ankur.sing |
11361 |
}
|
|
|
11362 |
iprot.readStructEnd();
|
|
|
11363 |
validate();
|
|
|
11364 |
}
|
|
|
11365 |
|
| 3430 |
rajveer |
11366 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1629 |
ankur.sing |
11367 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11368 |
|
|
|
11369 |
if (this.isSetSuccess()) {
|
|
|
11370 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 1731 |
ankur.sing |
11371 |
{
|
| 3430 |
rajveer |
11372 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
|
| 4600 |
varun.gupt |
11373 |
for (double _iter39 : this.success)
|
| 1731 |
ankur.sing |
11374 |
{
|
| 4600 |
varun.gupt |
11375 |
oprot.writeDouble(_iter39);
|
| 1731 |
ankur.sing |
11376 |
}
|
|
|
11377 |
oprot.writeListEnd();
|
|
|
11378 |
}
|
| 1629 |
ankur.sing |
11379 |
oprot.writeFieldEnd();
|
|
|
11380 |
}
|
|
|
11381 |
oprot.writeFieldStop();
|
|
|
11382 |
oprot.writeStructEnd();
|
|
|
11383 |
}
|
|
|
11384 |
|
|
|
11385 |
@Override
|
|
|
11386 |
public String toString() {
|
| 1731 |
ankur.sing |
11387 |
StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_result(");
|
| 1629 |
ankur.sing |
11388 |
boolean first = true;
|
|
|
11389 |
|
|
|
11390 |
sb.append("success:");
|
| 1731 |
ankur.sing |
11391 |
if (this.success == null) {
|
|
|
11392 |
sb.append("null");
|
|
|
11393 |
} else {
|
|
|
11394 |
sb.append(this.success);
|
|
|
11395 |
}
|
| 1629 |
ankur.sing |
11396 |
first = false;
|
|
|
11397 |
sb.append(")");
|
|
|
11398 |
return sb.toString();
|
|
|
11399 |
}
|
|
|
11400 |
|
| 3430 |
rajveer |
11401 |
public void validate() throws org.apache.thrift.TException {
|
| 1629 |
ankur.sing |
11402 |
// check for required fields
|
|
|
11403 |
}
|
|
|
11404 |
|
| 3430 |
rajveer |
11405 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11406 |
try {
|
|
|
11407 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11408 |
} catch (org.apache.thrift.TException te) {
|
|
|
11409 |
throw new java.io.IOException(te);
|
|
|
11410 |
}
|
|
|
11411 |
}
|
|
|
11412 |
|
|
|
11413 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11414 |
try {
|
|
|
11415 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11416 |
} catch (org.apache.thrift.TException te) {
|
|
|
11417 |
throw new java.io.IOException(te);
|
|
|
11418 |
}
|
|
|
11419 |
}
|
|
|
11420 |
|
| 1629 |
ankur.sing |
11421 |
}
|
|
|
11422 |
|
| 3430 |
rajveer |
11423 |
public static class initializeHdfcPayment_args implements org.apache.thrift.TBase<initializeHdfcPayment_args, initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
11424 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_args");
|
| 2462 |
chandransh |
11425 |
|
| 3430 |
rajveer |
11426 |
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);
|
| 2462 |
chandransh |
11427 |
|
| 3430 |
rajveer |
11428 |
private long merchantPaymentId; // required
|
| 2462 |
chandransh |
11429 |
|
|
|
11430 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
11431 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2462 |
chandransh |
11432 |
MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
|
|
|
11433 |
|
|
|
11434 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11435 |
|
|
|
11436 |
static {
|
|
|
11437 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11438 |
byName.put(field.getFieldName(), field);
|
|
|
11439 |
}
|
|
|
11440 |
}
|
|
|
11441 |
|
|
|
11442 |
/**
|
|
|
11443 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11444 |
*/
|
|
|
11445 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
11446 |
switch(fieldId) {
|
|
|
11447 |
case 1: // MERCHANT_PAYMENT_ID
|
|
|
11448 |
return MERCHANT_PAYMENT_ID;
|
|
|
11449 |
default:
|
|
|
11450 |
return null;
|
|
|
11451 |
}
|
| 2462 |
chandransh |
11452 |
}
|
|
|
11453 |
|
|
|
11454 |
/**
|
|
|
11455 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11456 |
* if it is not found.
|
|
|
11457 |
*/
|
|
|
11458 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11459 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11460 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11461 |
return fields;
|
|
|
11462 |
}
|
|
|
11463 |
|
|
|
11464 |
/**
|
|
|
11465 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11466 |
*/
|
|
|
11467 |
public static _Fields findByName(String name) {
|
|
|
11468 |
return byName.get(name);
|
|
|
11469 |
}
|
|
|
11470 |
|
|
|
11471 |
private final short _thriftId;
|
|
|
11472 |
private final String _fieldName;
|
|
|
11473 |
|
|
|
11474 |
_Fields(short thriftId, String fieldName) {
|
|
|
11475 |
_thriftId = thriftId;
|
|
|
11476 |
_fieldName = fieldName;
|
|
|
11477 |
}
|
|
|
11478 |
|
|
|
11479 |
public short getThriftFieldId() {
|
|
|
11480 |
return _thriftId;
|
|
|
11481 |
}
|
|
|
11482 |
|
|
|
11483 |
public String getFieldName() {
|
|
|
11484 |
return _fieldName;
|
|
|
11485 |
}
|
|
|
11486 |
}
|
|
|
11487 |
|
|
|
11488 |
// isset id assignments
|
|
|
11489 |
private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
|
|
|
11490 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
11491 |
|
| 3430 |
rajveer |
11492 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2462 |
chandransh |
11493 |
static {
|
| 3430 |
rajveer |
11494 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11495 |
tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11496 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
11497 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11498 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
|
| 2462 |
chandransh |
11499 |
}
|
|
|
11500 |
|
| 3010 |
chandransh |
11501 |
public initializeHdfcPayment_args() {
|
| 2462 |
chandransh |
11502 |
}
|
|
|
11503 |
|
| 3010 |
chandransh |
11504 |
public initializeHdfcPayment_args(
|
| 2462 |
chandransh |
11505 |
long merchantPaymentId)
|
|
|
11506 |
{
|
|
|
11507 |
this();
|
|
|
11508 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
11509 |
setMerchantPaymentIdIsSet(true);
|
|
|
11510 |
}
|
|
|
11511 |
|
|
|
11512 |
/**
|
|
|
11513 |
* Performs a deep copy on <i>other</i>.
|
|
|
11514 |
*/
|
| 3010 |
chandransh |
11515 |
public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
|
| 2462 |
chandransh |
11516 |
__isset_bit_vector.clear();
|
|
|
11517 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
11518 |
this.merchantPaymentId = other.merchantPaymentId;
|
|
|
11519 |
}
|
|
|
11520 |
|
| 3010 |
chandransh |
11521 |
public initializeHdfcPayment_args deepCopy() {
|
|
|
11522 |
return new initializeHdfcPayment_args(this);
|
| 2462 |
chandransh |
11523 |
}
|
|
|
11524 |
|
| 3430 |
rajveer |
11525 |
@Override
|
|
|
11526 |
public void clear() {
|
|
|
11527 |
setMerchantPaymentIdIsSet(false);
|
|
|
11528 |
this.merchantPaymentId = 0;
|
| 2462 |
chandransh |
11529 |
}
|
|
|
11530 |
|
|
|
11531 |
public long getMerchantPaymentId() {
|
|
|
11532 |
return this.merchantPaymentId;
|
|
|
11533 |
}
|
|
|
11534 |
|
| 3430 |
rajveer |
11535 |
public void setMerchantPaymentId(long merchantPaymentId) {
|
| 2462 |
chandransh |
11536 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
11537 |
setMerchantPaymentIdIsSet(true);
|
|
|
11538 |
}
|
|
|
11539 |
|
|
|
11540 |
public void unsetMerchantPaymentId() {
|
|
|
11541 |
__isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
11542 |
}
|
|
|
11543 |
|
| 3430 |
rajveer |
11544 |
/** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
|
| 2462 |
chandransh |
11545 |
public boolean isSetMerchantPaymentId() {
|
|
|
11546 |
return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
11547 |
}
|
|
|
11548 |
|
|
|
11549 |
public void setMerchantPaymentIdIsSet(boolean value) {
|
|
|
11550 |
__isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
|
|
|
11551 |
}
|
|
|
11552 |
|
|
|
11553 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11554 |
switch (field) {
|
|
|
11555 |
case MERCHANT_PAYMENT_ID:
|
|
|
11556 |
if (value == null) {
|
|
|
11557 |
unsetMerchantPaymentId();
|
|
|
11558 |
} else {
|
|
|
11559 |
setMerchantPaymentId((Long)value);
|
|
|
11560 |
}
|
|
|
11561 |
break;
|
|
|
11562 |
|
|
|
11563 |
}
|
|
|
11564 |
}
|
|
|
11565 |
|
|
|
11566 |
public Object getFieldValue(_Fields field) {
|
|
|
11567 |
switch (field) {
|
|
|
11568 |
case MERCHANT_PAYMENT_ID:
|
| 3430 |
rajveer |
11569 |
return Long.valueOf(getMerchantPaymentId());
|
| 2462 |
chandransh |
11570 |
|
|
|
11571 |
}
|
|
|
11572 |
throw new IllegalStateException();
|
|
|
11573 |
}
|
|
|
11574 |
|
| 3430 |
rajveer |
11575 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11576 |
public boolean isSet(_Fields field) {
|
|
|
11577 |
if (field == null) {
|
|
|
11578 |
throw new IllegalArgumentException();
|
|
|
11579 |
}
|
| 2462 |
chandransh |
11580 |
|
|
|
11581 |
switch (field) {
|
|
|
11582 |
case MERCHANT_PAYMENT_ID:
|
|
|
11583 |
return isSetMerchantPaymentId();
|
|
|
11584 |
}
|
|
|
11585 |
throw new IllegalStateException();
|
|
|
11586 |
}
|
|
|
11587 |
|
|
|
11588 |
@Override
|
|
|
11589 |
public boolean equals(Object that) {
|
|
|
11590 |
if (that == null)
|
|
|
11591 |
return false;
|
| 3010 |
chandransh |
11592 |
if (that instanceof initializeHdfcPayment_args)
|
|
|
11593 |
return this.equals((initializeHdfcPayment_args)that);
|
| 2462 |
chandransh |
11594 |
return false;
|
|
|
11595 |
}
|
|
|
11596 |
|
| 3010 |
chandransh |
11597 |
public boolean equals(initializeHdfcPayment_args that) {
|
| 2462 |
chandransh |
11598 |
if (that == null)
|
|
|
11599 |
return false;
|
|
|
11600 |
|
|
|
11601 |
boolean this_present_merchantPaymentId = true;
|
|
|
11602 |
boolean that_present_merchantPaymentId = true;
|
|
|
11603 |
if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
|
|
|
11604 |
if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
|
|
|
11605 |
return false;
|
|
|
11606 |
if (this.merchantPaymentId != that.merchantPaymentId)
|
|
|
11607 |
return false;
|
|
|
11608 |
}
|
|
|
11609 |
|
|
|
11610 |
return true;
|
|
|
11611 |
}
|
|
|
11612 |
|
|
|
11613 |
@Override
|
|
|
11614 |
public int hashCode() {
|
|
|
11615 |
return 0;
|
|
|
11616 |
}
|
|
|
11617 |
|
| 3010 |
chandransh |
11618 |
public int compareTo(initializeHdfcPayment_args other) {
|
| 2462 |
chandransh |
11619 |
if (!getClass().equals(other.getClass())) {
|
|
|
11620 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11621 |
}
|
|
|
11622 |
|
|
|
11623 |
int lastComparison = 0;
|
| 3010 |
chandransh |
11624 |
initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
|
| 2462 |
chandransh |
11625 |
|
| 3430 |
rajveer |
11626 |
lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
|
| 2462 |
chandransh |
11627 |
if (lastComparison != 0) {
|
|
|
11628 |
return lastComparison;
|
|
|
11629 |
}
|
| 3430 |
rajveer |
11630 |
if (isSetMerchantPaymentId()) {
|
|
|
11631 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
|
|
|
11632 |
if (lastComparison != 0) {
|
|
|
11633 |
return lastComparison;
|
|
|
11634 |
}
|
| 2462 |
chandransh |
11635 |
}
|
|
|
11636 |
return 0;
|
|
|
11637 |
}
|
|
|
11638 |
|
| 3430 |
rajveer |
11639 |
public _Fields fieldForId(int fieldId) {
|
|
|
11640 |
return _Fields.findByThriftId(fieldId);
|
|
|
11641 |
}
|
|
|
11642 |
|
|
|
11643 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11644 |
org.apache.thrift.protocol.TField field;
|
| 2462 |
chandransh |
11645 |
iprot.readStructBegin();
|
|
|
11646 |
while (true)
|
|
|
11647 |
{
|
|
|
11648 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
11649 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2462 |
chandransh |
11650 |
break;
|
|
|
11651 |
}
|
| 3430 |
rajveer |
11652 |
switch (field.id) {
|
|
|
11653 |
case 1: // MERCHANT_PAYMENT_ID
|
|
|
11654 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
11655 |
this.merchantPaymentId = iprot.readI64();
|
|
|
11656 |
setMerchantPaymentIdIsSet(true);
|
|
|
11657 |
} else {
|
|
|
11658 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11659 |
}
|
|
|
11660 |
break;
|
|
|
11661 |
default:
|
|
|
11662 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2462 |
chandransh |
11663 |
}
|
| 3430 |
rajveer |
11664 |
iprot.readFieldEnd();
|
| 2462 |
chandransh |
11665 |
}
|
|
|
11666 |
iprot.readStructEnd();
|
|
|
11667 |
validate();
|
|
|
11668 |
}
|
|
|
11669 |
|
| 3430 |
rajveer |
11670 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
11671 |
validate();
|
|
|
11672 |
|
|
|
11673 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11674 |
oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
|
|
|
11675 |
oprot.writeI64(this.merchantPaymentId);
|
|
|
11676 |
oprot.writeFieldEnd();
|
|
|
11677 |
oprot.writeFieldStop();
|
|
|
11678 |
oprot.writeStructEnd();
|
|
|
11679 |
}
|
|
|
11680 |
|
|
|
11681 |
@Override
|
|
|
11682 |
public String toString() {
|
| 3010 |
chandransh |
11683 |
StringBuilder sb = new StringBuilder("initializeHdfcPayment_args(");
|
| 2462 |
chandransh |
11684 |
boolean first = true;
|
|
|
11685 |
|
|
|
11686 |
sb.append("merchantPaymentId:");
|
|
|
11687 |
sb.append(this.merchantPaymentId);
|
|
|
11688 |
first = false;
|
|
|
11689 |
sb.append(")");
|
|
|
11690 |
return sb.toString();
|
|
|
11691 |
}
|
|
|
11692 |
|
| 3430 |
rajveer |
11693 |
public void validate() throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
11694 |
// check for required fields
|
|
|
11695 |
}
|
|
|
11696 |
|
| 3430 |
rajveer |
11697 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11698 |
try {
|
|
|
11699 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11700 |
} catch (org.apache.thrift.TException te) {
|
|
|
11701 |
throw new java.io.IOException(te);
|
|
|
11702 |
}
|
|
|
11703 |
}
|
|
|
11704 |
|
|
|
11705 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11706 |
try {
|
|
|
11707 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11708 |
} catch (org.apache.thrift.TException te) {
|
|
|
11709 |
throw new java.io.IOException(te);
|
|
|
11710 |
}
|
|
|
11711 |
}
|
|
|
11712 |
|
| 2462 |
chandransh |
11713 |
}
|
|
|
11714 |
|
| 3430 |
rajveer |
11715 |
public static class initializeHdfcPayment_result implements org.apache.thrift.TBase<initializeHdfcPayment_result, initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11716 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_result");
|
| 2462 |
chandransh |
11717 |
|
| 3430 |
rajveer |
11718 |
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);
|
|
|
11719 |
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);
|
| 2462 |
chandransh |
11720 |
|
| 3430 |
rajveer |
11721 |
private String success; // required
|
|
|
11722 |
private PaymentException pe; // required
|
| 2462 |
chandransh |
11723 |
|
|
|
11724 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
11725 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2462 |
chandransh |
11726 |
SUCCESS((short)0, "success"),
|
|
|
11727 |
PE((short)1, "pe");
|
|
|
11728 |
|
|
|
11729 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11730 |
|
|
|
11731 |
static {
|
|
|
11732 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11733 |
byName.put(field.getFieldName(), field);
|
|
|
11734 |
}
|
|
|
11735 |
}
|
|
|
11736 |
|
|
|
11737 |
/**
|
|
|
11738 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11739 |
*/
|
|
|
11740 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
11741 |
switch(fieldId) {
|
|
|
11742 |
case 0: // SUCCESS
|
|
|
11743 |
return SUCCESS;
|
|
|
11744 |
case 1: // PE
|
|
|
11745 |
return PE;
|
|
|
11746 |
default:
|
|
|
11747 |
return null;
|
|
|
11748 |
}
|
| 2462 |
chandransh |
11749 |
}
|
|
|
11750 |
|
|
|
11751 |
/**
|
|
|
11752 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11753 |
* if it is not found.
|
|
|
11754 |
*/
|
|
|
11755 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11756 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11757 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11758 |
return fields;
|
|
|
11759 |
}
|
|
|
11760 |
|
|
|
11761 |
/**
|
|
|
11762 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11763 |
*/
|
|
|
11764 |
public static _Fields findByName(String name) {
|
|
|
11765 |
return byName.get(name);
|
|
|
11766 |
}
|
|
|
11767 |
|
|
|
11768 |
private final short _thriftId;
|
|
|
11769 |
private final String _fieldName;
|
|
|
11770 |
|
|
|
11771 |
_Fields(short thriftId, String fieldName) {
|
|
|
11772 |
_thriftId = thriftId;
|
|
|
11773 |
_fieldName = fieldName;
|
|
|
11774 |
}
|
|
|
11775 |
|
|
|
11776 |
public short getThriftFieldId() {
|
|
|
11777 |
return _thriftId;
|
|
|
11778 |
}
|
|
|
11779 |
|
|
|
11780 |
public String getFieldName() {
|
|
|
11781 |
return _fieldName;
|
|
|
11782 |
}
|
|
|
11783 |
}
|
|
|
11784 |
|
|
|
11785 |
// isset id assignments
|
|
|
11786 |
|
| 3430 |
rajveer |
11787 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2462 |
chandransh |
11788 |
static {
|
| 3430 |
rajveer |
11789 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11790 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11791 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
11792 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11793 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
11794 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11795 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
|
| 2462 |
chandransh |
11796 |
}
|
|
|
11797 |
|
| 3010 |
chandransh |
11798 |
public initializeHdfcPayment_result() {
|
| 2462 |
chandransh |
11799 |
}
|
|
|
11800 |
|
| 3010 |
chandransh |
11801 |
public initializeHdfcPayment_result(
|
|
|
11802 |
String success,
|
| 2462 |
chandransh |
11803 |
PaymentException pe)
|
|
|
11804 |
{
|
|
|
11805 |
this();
|
|
|
11806 |
this.success = success;
|
|
|
11807 |
this.pe = pe;
|
|
|
11808 |
}
|
|
|
11809 |
|
|
|
11810 |
/**
|
|
|
11811 |
* Performs a deep copy on <i>other</i>.
|
|
|
11812 |
*/
|
| 3010 |
chandransh |
11813 |
public initializeHdfcPayment_result(initializeHdfcPayment_result other) {
|
| 2462 |
chandransh |
11814 |
if (other.isSetSuccess()) {
|
| 3010 |
chandransh |
11815 |
this.success = other.success;
|
| 2462 |
chandransh |
11816 |
}
|
|
|
11817 |
if (other.isSetPe()) {
|
|
|
11818 |
this.pe = new PaymentException(other.pe);
|
|
|
11819 |
}
|
|
|
11820 |
}
|
|
|
11821 |
|
| 3010 |
chandransh |
11822 |
public initializeHdfcPayment_result deepCopy() {
|
|
|
11823 |
return new initializeHdfcPayment_result(this);
|
| 2462 |
chandransh |
11824 |
}
|
|
|
11825 |
|
| 3430 |
rajveer |
11826 |
@Override
|
|
|
11827 |
public void clear() {
|
|
|
11828 |
this.success = null;
|
|
|
11829 |
this.pe = null;
|
| 2462 |
chandransh |
11830 |
}
|
|
|
11831 |
|
| 3010 |
chandransh |
11832 |
public String getSuccess() {
|
| 2462 |
chandransh |
11833 |
return this.success;
|
|
|
11834 |
}
|
|
|
11835 |
|
| 3430 |
rajveer |
11836 |
public void setSuccess(String success) {
|
| 2462 |
chandransh |
11837 |
this.success = success;
|
|
|
11838 |
}
|
|
|
11839 |
|
|
|
11840 |
public void unsetSuccess() {
|
|
|
11841 |
this.success = null;
|
|
|
11842 |
}
|
|
|
11843 |
|
| 3430 |
rajveer |
11844 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2462 |
chandransh |
11845 |
public boolean isSetSuccess() {
|
|
|
11846 |
return this.success != null;
|
|
|
11847 |
}
|
|
|
11848 |
|
|
|
11849 |
public void setSuccessIsSet(boolean value) {
|
|
|
11850 |
if (!value) {
|
|
|
11851 |
this.success = null;
|
|
|
11852 |
}
|
|
|
11853 |
}
|
|
|
11854 |
|
|
|
11855 |
public PaymentException getPe() {
|
|
|
11856 |
return this.pe;
|
|
|
11857 |
}
|
|
|
11858 |
|
| 3430 |
rajveer |
11859 |
public void setPe(PaymentException pe) {
|
| 2462 |
chandransh |
11860 |
this.pe = pe;
|
|
|
11861 |
}
|
|
|
11862 |
|
|
|
11863 |
public void unsetPe() {
|
|
|
11864 |
this.pe = null;
|
|
|
11865 |
}
|
|
|
11866 |
|
| 3430 |
rajveer |
11867 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 2462 |
chandransh |
11868 |
public boolean isSetPe() {
|
|
|
11869 |
return this.pe != null;
|
|
|
11870 |
}
|
|
|
11871 |
|
|
|
11872 |
public void setPeIsSet(boolean value) {
|
|
|
11873 |
if (!value) {
|
|
|
11874 |
this.pe = null;
|
|
|
11875 |
}
|
|
|
11876 |
}
|
|
|
11877 |
|
|
|
11878 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11879 |
switch (field) {
|
|
|
11880 |
case SUCCESS:
|
|
|
11881 |
if (value == null) {
|
|
|
11882 |
unsetSuccess();
|
|
|
11883 |
} else {
|
| 3010 |
chandransh |
11884 |
setSuccess((String)value);
|
| 2462 |
chandransh |
11885 |
}
|
|
|
11886 |
break;
|
|
|
11887 |
|
|
|
11888 |
case PE:
|
|
|
11889 |
if (value == null) {
|
|
|
11890 |
unsetPe();
|
|
|
11891 |
} else {
|
|
|
11892 |
setPe((PaymentException)value);
|
|
|
11893 |
}
|
|
|
11894 |
break;
|
|
|
11895 |
|
|
|
11896 |
}
|
|
|
11897 |
}
|
|
|
11898 |
|
|
|
11899 |
public Object getFieldValue(_Fields field) {
|
|
|
11900 |
switch (field) {
|
|
|
11901 |
case SUCCESS:
|
|
|
11902 |
return getSuccess();
|
|
|
11903 |
|
|
|
11904 |
case PE:
|
|
|
11905 |
return getPe();
|
|
|
11906 |
|
|
|
11907 |
}
|
|
|
11908 |
throw new IllegalStateException();
|
|
|
11909 |
}
|
|
|
11910 |
|
| 3430 |
rajveer |
11911 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11912 |
public boolean isSet(_Fields field) {
|
|
|
11913 |
if (field == null) {
|
|
|
11914 |
throw new IllegalArgumentException();
|
|
|
11915 |
}
|
| 2462 |
chandransh |
11916 |
|
|
|
11917 |
switch (field) {
|
|
|
11918 |
case SUCCESS:
|
|
|
11919 |
return isSetSuccess();
|
|
|
11920 |
case PE:
|
|
|
11921 |
return isSetPe();
|
|
|
11922 |
}
|
|
|
11923 |
throw new IllegalStateException();
|
|
|
11924 |
}
|
|
|
11925 |
|
|
|
11926 |
@Override
|
|
|
11927 |
public boolean equals(Object that) {
|
|
|
11928 |
if (that == null)
|
|
|
11929 |
return false;
|
| 3010 |
chandransh |
11930 |
if (that instanceof initializeHdfcPayment_result)
|
|
|
11931 |
return this.equals((initializeHdfcPayment_result)that);
|
| 2462 |
chandransh |
11932 |
return false;
|
|
|
11933 |
}
|
|
|
11934 |
|
| 3010 |
chandransh |
11935 |
public boolean equals(initializeHdfcPayment_result that) {
|
| 2462 |
chandransh |
11936 |
if (that == null)
|
|
|
11937 |
return false;
|
|
|
11938 |
|
|
|
11939 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
11940 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
11941 |
if (this_present_success || that_present_success) {
|
|
|
11942 |
if (!(this_present_success && that_present_success))
|
|
|
11943 |
return false;
|
|
|
11944 |
if (!this.success.equals(that.success))
|
|
|
11945 |
return false;
|
|
|
11946 |
}
|
|
|
11947 |
|
|
|
11948 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
11949 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
11950 |
if (this_present_pe || that_present_pe) {
|
|
|
11951 |
if (!(this_present_pe && that_present_pe))
|
|
|
11952 |
return false;
|
|
|
11953 |
if (!this.pe.equals(that.pe))
|
|
|
11954 |
return false;
|
|
|
11955 |
}
|
|
|
11956 |
|
|
|
11957 |
return true;
|
|
|
11958 |
}
|
|
|
11959 |
|
|
|
11960 |
@Override
|
|
|
11961 |
public int hashCode() {
|
|
|
11962 |
return 0;
|
|
|
11963 |
}
|
|
|
11964 |
|
| 3010 |
chandransh |
11965 |
public int compareTo(initializeHdfcPayment_result other) {
|
|
|
11966 |
if (!getClass().equals(other.getClass())) {
|
|
|
11967 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11968 |
}
|
|
|
11969 |
|
|
|
11970 |
int lastComparison = 0;
|
|
|
11971 |
initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
|
|
|
11972 |
|
| 3430 |
rajveer |
11973 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 3010 |
chandransh |
11974 |
if (lastComparison != 0) {
|
|
|
11975 |
return lastComparison;
|
|
|
11976 |
}
|
| 3430 |
rajveer |
11977 |
if (isSetSuccess()) {
|
|
|
11978 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
11979 |
if (lastComparison != 0) {
|
|
|
11980 |
return lastComparison;
|
|
|
11981 |
}
|
| 3010 |
chandransh |
11982 |
}
|
| 3430 |
rajveer |
11983 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 3010 |
chandransh |
11984 |
if (lastComparison != 0) {
|
|
|
11985 |
return lastComparison;
|
|
|
11986 |
}
|
| 3430 |
rajveer |
11987 |
if (isSetPe()) {
|
|
|
11988 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
11989 |
if (lastComparison != 0) {
|
|
|
11990 |
return lastComparison;
|
|
|
11991 |
}
|
| 3010 |
chandransh |
11992 |
}
|
|
|
11993 |
return 0;
|
|
|
11994 |
}
|
|
|
11995 |
|
| 3430 |
rajveer |
11996 |
public _Fields fieldForId(int fieldId) {
|
|
|
11997 |
return _Fields.findByThriftId(fieldId);
|
|
|
11998 |
}
|
|
|
11999 |
|
|
|
12000 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12001 |
org.apache.thrift.protocol.TField field;
|
| 2462 |
chandransh |
12002 |
iprot.readStructBegin();
|
|
|
12003 |
while (true)
|
|
|
12004 |
{
|
|
|
12005 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
12006 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2462 |
chandransh |
12007 |
break;
|
|
|
12008 |
}
|
| 3430 |
rajveer |
12009 |
switch (field.id) {
|
|
|
12010 |
case 0: // SUCCESS
|
|
|
12011 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
12012 |
this.success = iprot.readString();
|
|
|
12013 |
} else {
|
|
|
12014 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12015 |
}
|
|
|
12016 |
break;
|
|
|
12017 |
case 1: // PE
|
|
|
12018 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
12019 |
this.pe = new PaymentException();
|
|
|
12020 |
this.pe.read(iprot);
|
|
|
12021 |
} else {
|
|
|
12022 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12023 |
}
|
|
|
12024 |
break;
|
|
|
12025 |
default:
|
|
|
12026 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2462 |
chandransh |
12027 |
}
|
| 3430 |
rajveer |
12028 |
iprot.readFieldEnd();
|
| 2462 |
chandransh |
12029 |
}
|
|
|
12030 |
iprot.readStructEnd();
|
|
|
12031 |
validate();
|
|
|
12032 |
}
|
|
|
12033 |
|
| 3430 |
rajveer |
12034 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
12035 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12036 |
|
|
|
12037 |
if (this.isSetSuccess()) {
|
|
|
12038 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 3010 |
chandransh |
12039 |
oprot.writeString(this.success);
|
| 2462 |
chandransh |
12040 |
oprot.writeFieldEnd();
|
|
|
12041 |
} else if (this.isSetPe()) {
|
|
|
12042 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
12043 |
this.pe.write(oprot);
|
|
|
12044 |
oprot.writeFieldEnd();
|
|
|
12045 |
}
|
|
|
12046 |
oprot.writeFieldStop();
|
|
|
12047 |
oprot.writeStructEnd();
|
|
|
12048 |
}
|
|
|
12049 |
|
|
|
12050 |
@Override
|
|
|
12051 |
public String toString() {
|
| 3010 |
chandransh |
12052 |
StringBuilder sb = new StringBuilder("initializeHdfcPayment_result(");
|
| 2462 |
chandransh |
12053 |
boolean first = true;
|
|
|
12054 |
|
|
|
12055 |
sb.append("success:");
|
|
|
12056 |
if (this.success == null) {
|
|
|
12057 |
sb.append("null");
|
|
|
12058 |
} else {
|
|
|
12059 |
sb.append(this.success);
|
|
|
12060 |
}
|
|
|
12061 |
first = false;
|
|
|
12062 |
if (!first) sb.append(", ");
|
|
|
12063 |
sb.append("pe:");
|
|
|
12064 |
if (this.pe == null) {
|
|
|
12065 |
sb.append("null");
|
|
|
12066 |
} else {
|
|
|
12067 |
sb.append(this.pe);
|
|
|
12068 |
}
|
|
|
12069 |
first = false;
|
|
|
12070 |
sb.append(")");
|
|
|
12071 |
return sb.toString();
|
|
|
12072 |
}
|
|
|
12073 |
|
| 3430 |
rajveer |
12074 |
public void validate() throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
12075 |
// check for required fields
|
|
|
12076 |
}
|
|
|
12077 |
|
| 3430 |
rajveer |
12078 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12079 |
try {
|
|
|
12080 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12081 |
} catch (org.apache.thrift.TException te) {
|
|
|
12082 |
throw new java.io.IOException(te);
|
|
|
12083 |
}
|
|
|
12084 |
}
|
|
|
12085 |
|
|
|
12086 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12087 |
try {
|
|
|
12088 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12089 |
} catch (org.apache.thrift.TException te) {
|
|
|
12090 |
throw new java.io.IOException(te);
|
|
|
12091 |
}
|
|
|
12092 |
}
|
|
|
12093 |
|
| 2462 |
chandransh |
12094 |
}
|
|
|
12095 |
|
| 6050 |
anupam.sin |
12096 |
public static class doHdfcPaymentForDigitalOrder_args implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_args, doHdfcPaymentForDigitalOrder_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
12097 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_args");
|
|
|
12098 |
|
|
|
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);
|
|
|
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);
|
| 6228 |
anupam.sin |
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);
|
| 6050 |
anupam.sin |
12102 |
|
|
|
12103 |
private long merchantPaymentId; // required
|
|
|
12104 |
private long rechargeOrderId; // required
|
| 6228 |
anupam.sin |
12105 |
private String phone; // required
|
| 6050 |
anupam.sin |
12106 |
|
|
|
12107 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12108 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12109 |
MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
|
| 6228 |
anupam.sin |
12110 |
RECHARGE_ORDER_ID((short)2, "rechargeOrderId"),
|
|
|
12111 |
PHONE((short)-1, "phone");
|
| 6050 |
anupam.sin |
12112 |
|
|
|
12113 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12114 |
|
|
|
12115 |
static {
|
|
|
12116 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12117 |
byName.put(field.getFieldName(), field);
|
|
|
12118 |
}
|
|
|
12119 |
}
|
|
|
12120 |
|
|
|
12121 |
/**
|
|
|
12122 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12123 |
*/
|
|
|
12124 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12125 |
switch(fieldId) {
|
|
|
12126 |
case 1: // MERCHANT_PAYMENT_ID
|
|
|
12127 |
return MERCHANT_PAYMENT_ID;
|
|
|
12128 |
case 2: // RECHARGE_ORDER_ID
|
|
|
12129 |
return RECHARGE_ORDER_ID;
|
| 6228 |
anupam.sin |
12130 |
case -1: // PHONE
|
|
|
12131 |
return PHONE;
|
| 6050 |
anupam.sin |
12132 |
default:
|
|
|
12133 |
return null;
|
|
|
12134 |
}
|
|
|
12135 |
}
|
|
|
12136 |
|
|
|
12137 |
/**
|
|
|
12138 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12139 |
* if it is not found.
|
|
|
12140 |
*/
|
|
|
12141 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12142 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12143 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12144 |
return fields;
|
|
|
12145 |
}
|
|
|
12146 |
|
|
|
12147 |
/**
|
|
|
12148 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12149 |
*/
|
|
|
12150 |
public static _Fields findByName(String name) {
|
|
|
12151 |
return byName.get(name);
|
|
|
12152 |
}
|
|
|
12153 |
|
|
|
12154 |
private final short _thriftId;
|
|
|
12155 |
private final String _fieldName;
|
|
|
12156 |
|
|
|
12157 |
_Fields(short thriftId, String fieldName) {
|
|
|
12158 |
_thriftId = thriftId;
|
|
|
12159 |
_fieldName = fieldName;
|
|
|
12160 |
}
|
|
|
12161 |
|
|
|
12162 |
public short getThriftFieldId() {
|
|
|
12163 |
return _thriftId;
|
|
|
12164 |
}
|
|
|
12165 |
|
|
|
12166 |
public String getFieldName() {
|
|
|
12167 |
return _fieldName;
|
|
|
12168 |
}
|
|
|
12169 |
}
|
|
|
12170 |
|
|
|
12171 |
// isset id assignments
|
|
|
12172 |
private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
|
|
|
12173 |
private static final int __RECHARGEORDERID_ISSET_ID = 1;
|
|
|
12174 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
12175 |
|
|
|
12176 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12177 |
static {
|
|
|
12178 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12179 |
tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12180 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
12181 |
tmpMap.put(_Fields.RECHARGE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12182 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 6228 |
anupam.sin |
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)));
|
| 6050 |
anupam.sin |
12185 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12186 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_args.class, metaDataMap);
|
|
|
12187 |
}
|
|
|
12188 |
|
|
|
12189 |
public doHdfcPaymentForDigitalOrder_args() {
|
|
|
12190 |
}
|
|
|
12191 |
|
|
|
12192 |
public doHdfcPaymentForDigitalOrder_args(
|
|
|
12193 |
long merchantPaymentId,
|
| 6228 |
anupam.sin |
12194 |
long rechargeOrderId,
|
|
|
12195 |
String phone)
|
| 6050 |
anupam.sin |
12196 |
{
|
|
|
12197 |
this();
|
|
|
12198 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
12199 |
setMerchantPaymentIdIsSet(true);
|
|
|
12200 |
this.rechargeOrderId = rechargeOrderId;
|
|
|
12201 |
setRechargeOrderIdIsSet(true);
|
| 6228 |
anupam.sin |
12202 |
this.phone = phone;
|
| 6050 |
anupam.sin |
12203 |
}
|
|
|
12204 |
|
|
|
12205 |
/**
|
|
|
12206 |
* Performs a deep copy on <i>other</i>.
|
|
|
12207 |
*/
|
|
|
12208 |
public doHdfcPaymentForDigitalOrder_args(doHdfcPaymentForDigitalOrder_args other) {
|
|
|
12209 |
__isset_bit_vector.clear();
|
|
|
12210 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
12211 |
this.merchantPaymentId = other.merchantPaymentId;
|
|
|
12212 |
this.rechargeOrderId = other.rechargeOrderId;
|
| 6228 |
anupam.sin |
12213 |
if (other.isSetPhone()) {
|
|
|
12214 |
this.phone = other.phone;
|
|
|
12215 |
}
|
| 6050 |
anupam.sin |
12216 |
}
|
|
|
12217 |
|
|
|
12218 |
public doHdfcPaymentForDigitalOrder_args deepCopy() {
|
|
|
12219 |
return new doHdfcPaymentForDigitalOrder_args(this);
|
|
|
12220 |
}
|
|
|
12221 |
|
|
|
12222 |
@Override
|
|
|
12223 |
public void clear() {
|
|
|
12224 |
setMerchantPaymentIdIsSet(false);
|
|
|
12225 |
this.merchantPaymentId = 0;
|
|
|
12226 |
setRechargeOrderIdIsSet(false);
|
|
|
12227 |
this.rechargeOrderId = 0;
|
| 6228 |
anupam.sin |
12228 |
this.phone = null;
|
| 6050 |
anupam.sin |
12229 |
}
|
|
|
12230 |
|
|
|
12231 |
public long getMerchantPaymentId() {
|
|
|
12232 |
return this.merchantPaymentId;
|
|
|
12233 |
}
|
|
|
12234 |
|
|
|
12235 |
public void setMerchantPaymentId(long merchantPaymentId) {
|
|
|
12236 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
12237 |
setMerchantPaymentIdIsSet(true);
|
|
|
12238 |
}
|
|
|
12239 |
|
|
|
12240 |
public void unsetMerchantPaymentId() {
|
|
|
12241 |
__isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
12242 |
}
|
|
|
12243 |
|
|
|
12244 |
/** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
|
|
|
12245 |
public boolean isSetMerchantPaymentId() {
|
|
|
12246 |
return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
12247 |
}
|
|
|
12248 |
|
|
|
12249 |
public void setMerchantPaymentIdIsSet(boolean value) {
|
|
|
12250 |
__isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
|
|
|
12251 |
}
|
|
|
12252 |
|
|
|
12253 |
public long getRechargeOrderId() {
|
|
|
12254 |
return this.rechargeOrderId;
|
|
|
12255 |
}
|
|
|
12256 |
|
|
|
12257 |
public void setRechargeOrderId(long rechargeOrderId) {
|
|
|
12258 |
this.rechargeOrderId = rechargeOrderId;
|
|
|
12259 |
setRechargeOrderIdIsSet(true);
|
|
|
12260 |
}
|
|
|
12261 |
|
|
|
12262 |
public void unsetRechargeOrderId() {
|
|
|
12263 |
__isset_bit_vector.clear(__RECHARGEORDERID_ISSET_ID);
|
|
|
12264 |
}
|
|
|
12265 |
|
|
|
12266 |
/** Returns true if field rechargeOrderId is set (has been assigned a value) and false otherwise */
|
|
|
12267 |
public boolean isSetRechargeOrderId() {
|
|
|
12268 |
return __isset_bit_vector.get(__RECHARGEORDERID_ISSET_ID);
|
|
|
12269 |
}
|
|
|
12270 |
|
|
|
12271 |
public void setRechargeOrderIdIsSet(boolean value) {
|
|
|
12272 |
__isset_bit_vector.set(__RECHARGEORDERID_ISSET_ID, value);
|
|
|
12273 |
}
|
|
|
12274 |
|
| 6228 |
anupam.sin |
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 |
|
| 6050 |
anupam.sin |
12298 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12299 |
switch (field) {
|
|
|
12300 |
case MERCHANT_PAYMENT_ID:
|
|
|
12301 |
if (value == null) {
|
|
|
12302 |
unsetMerchantPaymentId();
|
|
|
12303 |
} else {
|
|
|
12304 |
setMerchantPaymentId((Long)value);
|
|
|
12305 |
}
|
|
|
12306 |
break;
|
|
|
12307 |
|
|
|
12308 |
case RECHARGE_ORDER_ID:
|
|
|
12309 |
if (value == null) {
|
|
|
12310 |
unsetRechargeOrderId();
|
|
|
12311 |
} else {
|
|
|
12312 |
setRechargeOrderId((Long)value);
|
|
|
12313 |
}
|
|
|
12314 |
break;
|
|
|
12315 |
|
| 6228 |
anupam.sin |
12316 |
case PHONE:
|
|
|
12317 |
if (value == null) {
|
|
|
12318 |
unsetPhone();
|
|
|
12319 |
} else {
|
|
|
12320 |
setPhone((String)value);
|
|
|
12321 |
}
|
|
|
12322 |
break;
|
|
|
12323 |
|
| 6050 |
anupam.sin |
12324 |
}
|
|
|
12325 |
}
|
|
|
12326 |
|
|
|
12327 |
public Object getFieldValue(_Fields field) {
|
|
|
12328 |
switch (field) {
|
|
|
12329 |
case MERCHANT_PAYMENT_ID:
|
|
|
12330 |
return Long.valueOf(getMerchantPaymentId());
|
|
|
12331 |
|
|
|
12332 |
case RECHARGE_ORDER_ID:
|
|
|
12333 |
return Long.valueOf(getRechargeOrderId());
|
|
|
12334 |
|
| 6228 |
anupam.sin |
12335 |
case PHONE:
|
|
|
12336 |
return getPhone();
|
|
|
12337 |
|
| 6050 |
anupam.sin |
12338 |
}
|
|
|
12339 |
throw new IllegalStateException();
|
|
|
12340 |
}
|
|
|
12341 |
|
|
|
12342 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12343 |
public boolean isSet(_Fields field) {
|
|
|
12344 |
if (field == null) {
|
|
|
12345 |
throw new IllegalArgumentException();
|
|
|
12346 |
}
|
|
|
12347 |
|
|
|
12348 |
switch (field) {
|
|
|
12349 |
case MERCHANT_PAYMENT_ID:
|
|
|
12350 |
return isSetMerchantPaymentId();
|
|
|
12351 |
case RECHARGE_ORDER_ID:
|
|
|
12352 |
return isSetRechargeOrderId();
|
| 6228 |
anupam.sin |
12353 |
case PHONE:
|
|
|
12354 |
return isSetPhone();
|
| 6050 |
anupam.sin |
12355 |
}
|
|
|
12356 |
throw new IllegalStateException();
|
|
|
12357 |
}
|
|
|
12358 |
|
|
|
12359 |
@Override
|
|
|
12360 |
public boolean equals(Object that) {
|
|
|
12361 |
if (that == null)
|
|
|
12362 |
return false;
|
|
|
12363 |
if (that instanceof doHdfcPaymentForDigitalOrder_args)
|
|
|
12364 |
return this.equals((doHdfcPaymentForDigitalOrder_args)that);
|
|
|
12365 |
return false;
|
|
|
12366 |
}
|
|
|
12367 |
|
|
|
12368 |
public boolean equals(doHdfcPaymentForDigitalOrder_args that) {
|
|
|
12369 |
if (that == null)
|
|
|
12370 |
return false;
|
|
|
12371 |
|
|
|
12372 |
boolean this_present_merchantPaymentId = true;
|
|
|
12373 |
boolean that_present_merchantPaymentId = true;
|
|
|
12374 |
if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
|
|
|
12375 |
if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
|
|
|
12376 |
return false;
|
|
|
12377 |
if (this.merchantPaymentId != that.merchantPaymentId)
|
|
|
12378 |
return false;
|
|
|
12379 |
}
|
|
|
12380 |
|
|
|
12381 |
boolean this_present_rechargeOrderId = true;
|
|
|
12382 |
boolean that_present_rechargeOrderId = true;
|
|
|
12383 |
if (this_present_rechargeOrderId || that_present_rechargeOrderId) {
|
|
|
12384 |
if (!(this_present_rechargeOrderId && that_present_rechargeOrderId))
|
|
|
12385 |
return false;
|
|
|
12386 |
if (this.rechargeOrderId != that.rechargeOrderId)
|
|
|
12387 |
return false;
|
|
|
12388 |
}
|
|
|
12389 |
|
| 6228 |
anupam.sin |
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 |
|
| 6050 |
anupam.sin |
12399 |
return true;
|
|
|
12400 |
}
|
|
|
12401 |
|
|
|
12402 |
@Override
|
|
|
12403 |
public int hashCode() {
|
|
|
12404 |
return 0;
|
|
|
12405 |
}
|
|
|
12406 |
|
|
|
12407 |
public int compareTo(doHdfcPaymentForDigitalOrder_args other) {
|
|
|
12408 |
if (!getClass().equals(other.getClass())) {
|
|
|
12409 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12410 |
}
|
|
|
12411 |
|
|
|
12412 |
int lastComparison = 0;
|
|
|
12413 |
doHdfcPaymentForDigitalOrder_args typedOther = (doHdfcPaymentForDigitalOrder_args)other;
|
|
|
12414 |
|
|
|
12415 |
lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
|
|
|
12416 |
if (lastComparison != 0) {
|
|
|
12417 |
return lastComparison;
|
|
|
12418 |
}
|
|
|
12419 |
if (isSetMerchantPaymentId()) {
|
|
|
12420 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
|
|
|
12421 |
if (lastComparison != 0) {
|
|
|
12422 |
return lastComparison;
|
|
|
12423 |
}
|
|
|
12424 |
}
|
|
|
12425 |
lastComparison = Boolean.valueOf(isSetRechargeOrderId()).compareTo(typedOther.isSetRechargeOrderId());
|
|
|
12426 |
if (lastComparison != 0) {
|
|
|
12427 |
return lastComparison;
|
|
|
12428 |
}
|
|
|
12429 |
if (isSetRechargeOrderId()) {
|
|
|
12430 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrderId, typedOther.rechargeOrderId);
|
|
|
12431 |
if (lastComparison != 0) {
|
|
|
12432 |
return lastComparison;
|
|
|
12433 |
}
|
|
|
12434 |
}
|
| 6228 |
anupam.sin |
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 |
}
|
| 6050 |
anupam.sin |
12445 |
return 0;
|
|
|
12446 |
}
|
|
|
12447 |
|
|
|
12448 |
public _Fields fieldForId(int fieldId) {
|
|
|
12449 |
return _Fields.findByThriftId(fieldId);
|
|
|
12450 |
}
|
|
|
12451 |
|
|
|
12452 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12453 |
org.apache.thrift.protocol.TField field;
|
|
|
12454 |
iprot.readStructBegin();
|
|
|
12455 |
while (true)
|
|
|
12456 |
{
|
|
|
12457 |
field = iprot.readFieldBegin();
|
|
|
12458 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12459 |
break;
|
|
|
12460 |
}
|
|
|
12461 |
switch (field.id) {
|
|
|
12462 |
case 1: // MERCHANT_PAYMENT_ID
|
|
|
12463 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
12464 |
this.merchantPaymentId = iprot.readI64();
|
|
|
12465 |
setMerchantPaymentIdIsSet(true);
|
|
|
12466 |
} else {
|
|
|
12467 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12468 |
}
|
|
|
12469 |
break;
|
|
|
12470 |
case 2: // RECHARGE_ORDER_ID
|
|
|
12471 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
12472 |
this.rechargeOrderId = iprot.readI64();
|
|
|
12473 |
setRechargeOrderIdIsSet(true);
|
|
|
12474 |
} else {
|
|
|
12475 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12476 |
}
|
|
|
12477 |
break;
|
| 6228 |
anupam.sin |
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;
|
| 6050 |
anupam.sin |
12485 |
default:
|
|
|
12486 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12487 |
}
|
|
|
12488 |
iprot.readFieldEnd();
|
|
|
12489 |
}
|
|
|
12490 |
iprot.readStructEnd();
|
|
|
12491 |
validate();
|
|
|
12492 |
}
|
|
|
12493 |
|
|
|
12494 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12495 |
validate();
|
|
|
12496 |
|
|
|
12497 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 6228 |
anupam.sin |
12498 |
if (this.phone != null) {
|
|
|
12499 |
oprot.writeFieldBegin(PHONE_FIELD_DESC);
|
|
|
12500 |
oprot.writeString(this.phone);
|
|
|
12501 |
oprot.writeFieldEnd();
|
|
|
12502 |
}
|
| 6050 |
anupam.sin |
12503 |
oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
|
|
|
12504 |
oprot.writeI64(this.merchantPaymentId);
|
|
|
12505 |
oprot.writeFieldEnd();
|
|
|
12506 |
oprot.writeFieldBegin(RECHARGE_ORDER_ID_FIELD_DESC);
|
|
|
12507 |
oprot.writeI64(this.rechargeOrderId);
|
|
|
12508 |
oprot.writeFieldEnd();
|
|
|
12509 |
oprot.writeFieldStop();
|
|
|
12510 |
oprot.writeStructEnd();
|
|
|
12511 |
}
|
|
|
12512 |
|
|
|
12513 |
@Override
|
|
|
12514 |
public String toString() {
|
|
|
12515 |
StringBuilder sb = new StringBuilder("doHdfcPaymentForDigitalOrder_args(");
|
|
|
12516 |
boolean first = true;
|
|
|
12517 |
|
|
|
12518 |
sb.append("merchantPaymentId:");
|
|
|
12519 |
sb.append(this.merchantPaymentId);
|
|
|
12520 |
first = false;
|
|
|
12521 |
if (!first) sb.append(", ");
|
|
|
12522 |
sb.append("rechargeOrderId:");
|
|
|
12523 |
sb.append(this.rechargeOrderId);
|
|
|
12524 |
first = false;
|
| 6228 |
anupam.sin |
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;
|
| 6050 |
anupam.sin |
12533 |
sb.append(")");
|
|
|
12534 |
return sb.toString();
|
|
|
12535 |
}
|
|
|
12536 |
|
|
|
12537 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12538 |
// check for required fields
|
|
|
12539 |
}
|
|
|
12540 |
|
|
|
12541 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12542 |
try {
|
|
|
12543 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12544 |
} catch (org.apache.thrift.TException te) {
|
|
|
12545 |
throw new java.io.IOException(te);
|
|
|
12546 |
}
|
|
|
12547 |
}
|
|
|
12548 |
|
|
|
12549 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12550 |
try {
|
|
|
12551 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12552 |
} catch (org.apache.thrift.TException te) {
|
|
|
12553 |
throw new java.io.IOException(te);
|
|
|
12554 |
}
|
|
|
12555 |
}
|
|
|
12556 |
|
|
|
12557 |
}
|
|
|
12558 |
|
|
|
12559 |
public static class doHdfcPaymentForDigitalOrder_result implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_result, doHdfcPaymentForDigitalOrder_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
12560 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_result");
|
|
|
12561 |
|
|
|
12562 |
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);
|
|
|
12563 |
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);
|
|
|
12564 |
|
|
|
12565 |
private String success; // required
|
|
|
12566 |
private PaymentException pe; // required
|
|
|
12567 |
|
|
|
12568 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12569 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12570 |
SUCCESS((short)0, "success"),
|
|
|
12571 |
PE((short)1, "pe");
|
|
|
12572 |
|
|
|
12573 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12574 |
|
|
|
12575 |
static {
|
|
|
12576 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12577 |
byName.put(field.getFieldName(), field);
|
|
|
12578 |
}
|
|
|
12579 |
}
|
|
|
12580 |
|
|
|
12581 |
/**
|
|
|
12582 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12583 |
*/
|
|
|
12584 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12585 |
switch(fieldId) {
|
|
|
12586 |
case 0: // SUCCESS
|
|
|
12587 |
return SUCCESS;
|
|
|
12588 |
case 1: // PE
|
|
|
12589 |
return PE;
|
|
|
12590 |
default:
|
|
|
12591 |
return null;
|
|
|
12592 |
}
|
|
|
12593 |
}
|
|
|
12594 |
|
|
|
12595 |
/**
|
|
|
12596 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12597 |
* if it is not found.
|
|
|
12598 |
*/
|
|
|
12599 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12600 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12601 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12602 |
return fields;
|
|
|
12603 |
}
|
|
|
12604 |
|
|
|
12605 |
/**
|
|
|
12606 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12607 |
*/
|
|
|
12608 |
public static _Fields findByName(String name) {
|
|
|
12609 |
return byName.get(name);
|
|
|
12610 |
}
|
|
|
12611 |
|
|
|
12612 |
private final short _thriftId;
|
|
|
12613 |
private final String _fieldName;
|
|
|
12614 |
|
|
|
12615 |
_Fields(short thriftId, String fieldName) {
|
|
|
12616 |
_thriftId = thriftId;
|
|
|
12617 |
_fieldName = fieldName;
|
|
|
12618 |
}
|
|
|
12619 |
|
|
|
12620 |
public short getThriftFieldId() {
|
|
|
12621 |
return _thriftId;
|
|
|
12622 |
}
|
|
|
12623 |
|
|
|
12624 |
public String getFieldName() {
|
|
|
12625 |
return _fieldName;
|
|
|
12626 |
}
|
|
|
12627 |
}
|
|
|
12628 |
|
|
|
12629 |
// isset id assignments
|
|
|
12630 |
|
|
|
12631 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12632 |
static {
|
|
|
12633 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12634 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12635 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
12636 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12637 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
12638 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12639 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_result.class, metaDataMap);
|
|
|
12640 |
}
|
|
|
12641 |
|
|
|
12642 |
public doHdfcPaymentForDigitalOrder_result() {
|
|
|
12643 |
}
|
|
|
12644 |
|
|
|
12645 |
public doHdfcPaymentForDigitalOrder_result(
|
|
|
12646 |
String success,
|
|
|
12647 |
PaymentException pe)
|
|
|
12648 |
{
|
|
|
12649 |
this();
|
|
|
12650 |
this.success = success;
|
|
|
12651 |
this.pe = pe;
|
|
|
12652 |
}
|
|
|
12653 |
|
|
|
12654 |
/**
|
|
|
12655 |
* Performs a deep copy on <i>other</i>.
|
|
|
12656 |
*/
|
|
|
12657 |
public doHdfcPaymentForDigitalOrder_result(doHdfcPaymentForDigitalOrder_result other) {
|
|
|
12658 |
if (other.isSetSuccess()) {
|
|
|
12659 |
this.success = other.success;
|
|
|
12660 |
}
|
|
|
12661 |
if (other.isSetPe()) {
|
|
|
12662 |
this.pe = new PaymentException(other.pe);
|
|
|
12663 |
}
|
|
|
12664 |
}
|
|
|
12665 |
|
|
|
12666 |
public doHdfcPaymentForDigitalOrder_result deepCopy() {
|
|
|
12667 |
return new doHdfcPaymentForDigitalOrder_result(this);
|
|
|
12668 |
}
|
|
|
12669 |
|
|
|
12670 |
@Override
|
|
|
12671 |
public void clear() {
|
|
|
12672 |
this.success = null;
|
|
|
12673 |
this.pe = null;
|
|
|
12674 |
}
|
|
|
12675 |
|
|
|
12676 |
public String getSuccess() {
|
|
|
12677 |
return this.success;
|
|
|
12678 |
}
|
|
|
12679 |
|
|
|
12680 |
public void setSuccess(String success) {
|
|
|
12681 |
this.success = success;
|
|
|
12682 |
}
|
|
|
12683 |
|
|
|
12684 |
public void unsetSuccess() {
|
|
|
12685 |
this.success = null;
|
|
|
12686 |
}
|
|
|
12687 |
|
|
|
12688 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
12689 |
public boolean isSetSuccess() {
|
|
|
12690 |
return this.success != null;
|
|
|
12691 |
}
|
|
|
12692 |
|
|
|
12693 |
public void setSuccessIsSet(boolean value) {
|
|
|
12694 |
if (!value) {
|
|
|
12695 |
this.success = null;
|
|
|
12696 |
}
|
|
|
12697 |
}
|
|
|
12698 |
|
|
|
12699 |
public PaymentException getPe() {
|
|
|
12700 |
return this.pe;
|
|
|
12701 |
}
|
|
|
12702 |
|
|
|
12703 |
public void setPe(PaymentException pe) {
|
|
|
12704 |
this.pe = pe;
|
|
|
12705 |
}
|
|
|
12706 |
|
|
|
12707 |
public void unsetPe() {
|
|
|
12708 |
this.pe = null;
|
|
|
12709 |
}
|
|
|
12710 |
|
|
|
12711 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
|
|
12712 |
public boolean isSetPe() {
|
|
|
12713 |
return this.pe != null;
|
|
|
12714 |
}
|
|
|
12715 |
|
|
|
12716 |
public void setPeIsSet(boolean value) {
|
|
|
12717 |
if (!value) {
|
|
|
12718 |
this.pe = null;
|
|
|
12719 |
}
|
|
|
12720 |
}
|
|
|
12721 |
|
|
|
12722 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12723 |
switch (field) {
|
|
|
12724 |
case SUCCESS:
|
|
|
12725 |
if (value == null) {
|
|
|
12726 |
unsetSuccess();
|
|
|
12727 |
} else {
|
|
|
12728 |
setSuccess((String)value);
|
|
|
12729 |
}
|
|
|
12730 |
break;
|
|
|
12731 |
|
|
|
12732 |
case PE:
|
|
|
12733 |
if (value == null) {
|
|
|
12734 |
unsetPe();
|
|
|
12735 |
} else {
|
|
|
12736 |
setPe((PaymentException)value);
|
|
|
12737 |
}
|
|
|
12738 |
break;
|
|
|
12739 |
|
|
|
12740 |
}
|
|
|
12741 |
}
|
|
|
12742 |
|
|
|
12743 |
public Object getFieldValue(_Fields field) {
|
|
|
12744 |
switch (field) {
|
|
|
12745 |
case SUCCESS:
|
|
|
12746 |
return getSuccess();
|
|
|
12747 |
|
|
|
12748 |
case PE:
|
|
|
12749 |
return getPe();
|
|
|
12750 |
|
|
|
12751 |
}
|
|
|
12752 |
throw new IllegalStateException();
|
|
|
12753 |
}
|
|
|
12754 |
|
|
|
12755 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12756 |
public boolean isSet(_Fields field) {
|
|
|
12757 |
if (field == null) {
|
|
|
12758 |
throw new IllegalArgumentException();
|
|
|
12759 |
}
|
|
|
12760 |
|
|
|
12761 |
switch (field) {
|
|
|
12762 |
case SUCCESS:
|
|
|
12763 |
return isSetSuccess();
|
|
|
12764 |
case PE:
|
|
|
12765 |
return isSetPe();
|
|
|
12766 |
}
|
|
|
12767 |
throw new IllegalStateException();
|
|
|
12768 |
}
|
|
|
12769 |
|
|
|
12770 |
@Override
|
|
|
12771 |
public boolean equals(Object that) {
|
|
|
12772 |
if (that == null)
|
|
|
12773 |
return false;
|
|
|
12774 |
if (that instanceof doHdfcPaymentForDigitalOrder_result)
|
|
|
12775 |
return this.equals((doHdfcPaymentForDigitalOrder_result)that);
|
|
|
12776 |
return false;
|
|
|
12777 |
}
|
|
|
12778 |
|
|
|
12779 |
public boolean equals(doHdfcPaymentForDigitalOrder_result that) {
|
|
|
12780 |
if (that == null)
|
|
|
12781 |
return false;
|
|
|
12782 |
|
|
|
12783 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
12784 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
12785 |
if (this_present_success || that_present_success) {
|
|
|
12786 |
if (!(this_present_success && that_present_success))
|
|
|
12787 |
return false;
|
|
|
12788 |
if (!this.success.equals(that.success))
|
|
|
12789 |
return false;
|
|
|
12790 |
}
|
|
|
12791 |
|
|
|
12792 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
12793 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
12794 |
if (this_present_pe || that_present_pe) {
|
|
|
12795 |
if (!(this_present_pe && that_present_pe))
|
|
|
12796 |
return false;
|
|
|
12797 |
if (!this.pe.equals(that.pe))
|
|
|
12798 |
return false;
|
|
|
12799 |
}
|
|
|
12800 |
|
|
|
12801 |
return true;
|
|
|
12802 |
}
|
|
|
12803 |
|
|
|
12804 |
@Override
|
|
|
12805 |
public int hashCode() {
|
|
|
12806 |
return 0;
|
|
|
12807 |
}
|
|
|
12808 |
|
|
|
12809 |
public int compareTo(doHdfcPaymentForDigitalOrder_result other) {
|
|
|
12810 |
if (!getClass().equals(other.getClass())) {
|
|
|
12811 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12812 |
}
|
|
|
12813 |
|
|
|
12814 |
int lastComparison = 0;
|
|
|
12815 |
doHdfcPaymentForDigitalOrder_result typedOther = (doHdfcPaymentForDigitalOrder_result)other;
|
|
|
12816 |
|
|
|
12817 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
12818 |
if (lastComparison != 0) {
|
|
|
12819 |
return lastComparison;
|
|
|
12820 |
}
|
|
|
12821 |
if (isSetSuccess()) {
|
|
|
12822 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
12823 |
if (lastComparison != 0) {
|
|
|
12824 |
return lastComparison;
|
|
|
12825 |
}
|
|
|
12826 |
}
|
|
|
12827 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
|
|
12828 |
if (lastComparison != 0) {
|
|
|
12829 |
return lastComparison;
|
|
|
12830 |
}
|
|
|
12831 |
if (isSetPe()) {
|
|
|
12832 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
12833 |
if (lastComparison != 0) {
|
|
|
12834 |
return lastComparison;
|
|
|
12835 |
}
|
|
|
12836 |
}
|
|
|
12837 |
return 0;
|
|
|
12838 |
}
|
|
|
12839 |
|
|
|
12840 |
public _Fields fieldForId(int fieldId) {
|
|
|
12841 |
return _Fields.findByThriftId(fieldId);
|
|
|
12842 |
}
|
|
|
12843 |
|
|
|
12844 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12845 |
org.apache.thrift.protocol.TField field;
|
|
|
12846 |
iprot.readStructBegin();
|
|
|
12847 |
while (true)
|
|
|
12848 |
{
|
|
|
12849 |
field = iprot.readFieldBegin();
|
|
|
12850 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12851 |
break;
|
|
|
12852 |
}
|
|
|
12853 |
switch (field.id) {
|
|
|
12854 |
case 0: // SUCCESS
|
|
|
12855 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
12856 |
this.success = iprot.readString();
|
|
|
12857 |
} else {
|
|
|
12858 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12859 |
}
|
|
|
12860 |
break;
|
|
|
12861 |
case 1: // PE
|
|
|
12862 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
12863 |
this.pe = new PaymentException();
|
|
|
12864 |
this.pe.read(iprot);
|
|
|
12865 |
} else {
|
|
|
12866 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12867 |
}
|
|
|
12868 |
break;
|
|
|
12869 |
default:
|
|
|
12870 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12871 |
}
|
|
|
12872 |
iprot.readFieldEnd();
|
|
|
12873 |
}
|
|
|
12874 |
iprot.readStructEnd();
|
|
|
12875 |
validate();
|
|
|
12876 |
}
|
|
|
12877 |
|
|
|
12878 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12879 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12880 |
|
|
|
12881 |
if (this.isSetSuccess()) {
|
|
|
12882 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
12883 |
oprot.writeString(this.success);
|
|
|
12884 |
oprot.writeFieldEnd();
|
|
|
12885 |
} else if (this.isSetPe()) {
|
|
|
12886 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
12887 |
this.pe.write(oprot);
|
|
|
12888 |
oprot.writeFieldEnd();
|
|
|
12889 |
}
|
|
|
12890 |
oprot.writeFieldStop();
|
|
|
12891 |
oprot.writeStructEnd();
|
|
|
12892 |
}
|
|
|
12893 |
|
|
|
12894 |
@Override
|
|
|
12895 |
public String toString() {
|
|
|
12896 |
StringBuilder sb = new StringBuilder("doHdfcPaymentForDigitalOrder_result(");
|
|
|
12897 |
boolean first = true;
|
|
|
12898 |
|
|
|
12899 |
sb.append("success:");
|
|
|
12900 |
if (this.success == null) {
|
|
|
12901 |
sb.append("null");
|
|
|
12902 |
} else {
|
|
|
12903 |
sb.append(this.success);
|
|
|
12904 |
}
|
|
|
12905 |
first = false;
|
|
|
12906 |
if (!first) sb.append(", ");
|
|
|
12907 |
sb.append("pe:");
|
|
|
12908 |
if (this.pe == null) {
|
|
|
12909 |
sb.append("null");
|
|
|
12910 |
} else {
|
|
|
12911 |
sb.append(this.pe);
|
|
|
12912 |
}
|
|
|
12913 |
first = false;
|
|
|
12914 |
sb.append(")");
|
|
|
12915 |
return sb.toString();
|
|
|
12916 |
}
|
|
|
12917 |
|
|
|
12918 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12919 |
// check for required fields
|
|
|
12920 |
}
|
|
|
12921 |
|
|
|
12922 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12923 |
try {
|
|
|
12924 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12925 |
} catch (org.apache.thrift.TException te) {
|
|
|
12926 |
throw new java.io.IOException(te);
|
|
|
12927 |
}
|
|
|
12928 |
}
|
|
|
12929 |
|
|
|
12930 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12931 |
try {
|
|
|
12932 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12933 |
} catch (org.apache.thrift.TException te) {
|
|
|
12934 |
throw new java.io.IOException(te);
|
|
|
12935 |
}
|
|
|
12936 |
}
|
|
|
12937 |
|
|
|
12938 |
}
|
|
|
12939 |
|
| 3616 |
chandransh |
12940 |
public static class initializeHdfcEmiPayment_args implements org.apache.thrift.TBase<initializeHdfcEmiPayment_args, initializeHdfcEmiPayment_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
12941 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_args");
|
|
|
12942 |
|
|
|
12943 |
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);
|
|
|
12944 |
|
|
|
12945 |
private long merchantPaymentId; // required
|
|
|
12946 |
|
|
|
12947 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12948 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12949 |
MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
|
|
|
12950 |
|
|
|
12951 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12952 |
|
|
|
12953 |
static {
|
|
|
12954 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12955 |
byName.put(field.getFieldName(), field);
|
|
|
12956 |
}
|
|
|
12957 |
}
|
|
|
12958 |
|
|
|
12959 |
/**
|
|
|
12960 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12961 |
*/
|
|
|
12962 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12963 |
switch(fieldId) {
|
|
|
12964 |
case 1: // MERCHANT_PAYMENT_ID
|
|
|
12965 |
return MERCHANT_PAYMENT_ID;
|
|
|
12966 |
default:
|
|
|
12967 |
return null;
|
|
|
12968 |
}
|
|
|
12969 |
}
|
|
|
12970 |
|
|
|
12971 |
/**
|
|
|
12972 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12973 |
* if it is not found.
|
|
|
12974 |
*/
|
|
|
12975 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12976 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12977 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12978 |
return fields;
|
|
|
12979 |
}
|
|
|
12980 |
|
|
|
12981 |
/**
|
|
|
12982 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12983 |
*/
|
|
|
12984 |
public static _Fields findByName(String name) {
|
|
|
12985 |
return byName.get(name);
|
|
|
12986 |
}
|
|
|
12987 |
|
|
|
12988 |
private final short _thriftId;
|
|
|
12989 |
private final String _fieldName;
|
|
|
12990 |
|
|
|
12991 |
_Fields(short thriftId, String fieldName) {
|
|
|
12992 |
_thriftId = thriftId;
|
|
|
12993 |
_fieldName = fieldName;
|
|
|
12994 |
}
|
|
|
12995 |
|
|
|
12996 |
public short getThriftFieldId() {
|
|
|
12997 |
return _thriftId;
|
|
|
12998 |
}
|
|
|
12999 |
|
|
|
13000 |
public String getFieldName() {
|
|
|
13001 |
return _fieldName;
|
|
|
13002 |
}
|
|
|
13003 |
}
|
|
|
13004 |
|
|
|
13005 |
// isset id assignments
|
|
|
13006 |
private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
|
|
|
13007 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
13008 |
|
|
|
13009 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13010 |
static {
|
|
|
13011 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13012 |
tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13013 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
13014 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13015 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_args.class, metaDataMap);
|
|
|
13016 |
}
|
|
|
13017 |
|
|
|
13018 |
public initializeHdfcEmiPayment_args() {
|
|
|
13019 |
}
|
|
|
13020 |
|
|
|
13021 |
public initializeHdfcEmiPayment_args(
|
|
|
13022 |
long merchantPaymentId)
|
|
|
13023 |
{
|
|
|
13024 |
this();
|
|
|
13025 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
13026 |
setMerchantPaymentIdIsSet(true);
|
|
|
13027 |
}
|
|
|
13028 |
|
|
|
13029 |
/**
|
|
|
13030 |
* Performs a deep copy on <i>other</i>.
|
|
|
13031 |
*/
|
|
|
13032 |
public initializeHdfcEmiPayment_args(initializeHdfcEmiPayment_args other) {
|
|
|
13033 |
__isset_bit_vector.clear();
|
|
|
13034 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
13035 |
this.merchantPaymentId = other.merchantPaymentId;
|
|
|
13036 |
}
|
|
|
13037 |
|
|
|
13038 |
public initializeHdfcEmiPayment_args deepCopy() {
|
|
|
13039 |
return new initializeHdfcEmiPayment_args(this);
|
|
|
13040 |
}
|
|
|
13041 |
|
|
|
13042 |
@Override
|
|
|
13043 |
public void clear() {
|
|
|
13044 |
setMerchantPaymentIdIsSet(false);
|
|
|
13045 |
this.merchantPaymentId = 0;
|
|
|
13046 |
}
|
|
|
13047 |
|
|
|
13048 |
public long getMerchantPaymentId() {
|
|
|
13049 |
return this.merchantPaymentId;
|
|
|
13050 |
}
|
|
|
13051 |
|
|
|
13052 |
public void setMerchantPaymentId(long merchantPaymentId) {
|
|
|
13053 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
13054 |
setMerchantPaymentIdIsSet(true);
|
|
|
13055 |
}
|
|
|
13056 |
|
|
|
13057 |
public void unsetMerchantPaymentId() {
|
|
|
13058 |
__isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
13059 |
}
|
|
|
13060 |
|
|
|
13061 |
/** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
|
|
|
13062 |
public boolean isSetMerchantPaymentId() {
|
|
|
13063 |
return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
13064 |
}
|
|
|
13065 |
|
|
|
13066 |
public void setMerchantPaymentIdIsSet(boolean value) {
|
|
|
13067 |
__isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
|
|
|
13068 |
}
|
|
|
13069 |
|
|
|
13070 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13071 |
switch (field) {
|
|
|
13072 |
case MERCHANT_PAYMENT_ID:
|
|
|
13073 |
if (value == null) {
|
|
|
13074 |
unsetMerchantPaymentId();
|
|
|
13075 |
} else {
|
|
|
13076 |
setMerchantPaymentId((Long)value);
|
|
|
13077 |
}
|
|
|
13078 |
break;
|
|
|
13079 |
|
|
|
13080 |
}
|
|
|
13081 |
}
|
|
|
13082 |
|
|
|
13083 |
public Object getFieldValue(_Fields field) {
|
|
|
13084 |
switch (field) {
|
|
|
13085 |
case MERCHANT_PAYMENT_ID:
|
|
|
13086 |
return Long.valueOf(getMerchantPaymentId());
|
|
|
13087 |
|
|
|
13088 |
}
|
|
|
13089 |
throw new IllegalStateException();
|
|
|
13090 |
}
|
|
|
13091 |
|
|
|
13092 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13093 |
public boolean isSet(_Fields field) {
|
|
|
13094 |
if (field == null) {
|
|
|
13095 |
throw new IllegalArgumentException();
|
|
|
13096 |
}
|
|
|
13097 |
|
|
|
13098 |
switch (field) {
|
|
|
13099 |
case MERCHANT_PAYMENT_ID:
|
|
|
13100 |
return isSetMerchantPaymentId();
|
|
|
13101 |
}
|
|
|
13102 |
throw new IllegalStateException();
|
|
|
13103 |
}
|
|
|
13104 |
|
|
|
13105 |
@Override
|
|
|
13106 |
public boolean equals(Object that) {
|
|
|
13107 |
if (that == null)
|
|
|
13108 |
return false;
|
|
|
13109 |
if (that instanceof initializeHdfcEmiPayment_args)
|
|
|
13110 |
return this.equals((initializeHdfcEmiPayment_args)that);
|
|
|
13111 |
return false;
|
|
|
13112 |
}
|
|
|
13113 |
|
|
|
13114 |
public boolean equals(initializeHdfcEmiPayment_args that) {
|
|
|
13115 |
if (that == null)
|
|
|
13116 |
return false;
|
|
|
13117 |
|
|
|
13118 |
boolean this_present_merchantPaymentId = true;
|
|
|
13119 |
boolean that_present_merchantPaymentId = true;
|
|
|
13120 |
if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
|
|
|
13121 |
if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
|
|
|
13122 |
return false;
|
|
|
13123 |
if (this.merchantPaymentId != that.merchantPaymentId)
|
|
|
13124 |
return false;
|
|
|
13125 |
}
|
|
|
13126 |
|
|
|
13127 |
return true;
|
|
|
13128 |
}
|
|
|
13129 |
|
|
|
13130 |
@Override
|
|
|
13131 |
public int hashCode() {
|
|
|
13132 |
return 0;
|
|
|
13133 |
}
|
|
|
13134 |
|
|
|
13135 |
public int compareTo(initializeHdfcEmiPayment_args other) {
|
|
|
13136 |
if (!getClass().equals(other.getClass())) {
|
|
|
13137 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13138 |
}
|
|
|
13139 |
|
|
|
13140 |
int lastComparison = 0;
|
|
|
13141 |
initializeHdfcEmiPayment_args typedOther = (initializeHdfcEmiPayment_args)other;
|
|
|
13142 |
|
|
|
13143 |
lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
|
|
|
13144 |
if (lastComparison != 0) {
|
|
|
13145 |
return lastComparison;
|
|
|
13146 |
}
|
|
|
13147 |
if (isSetMerchantPaymentId()) {
|
|
|
13148 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
|
|
|
13149 |
if (lastComparison != 0) {
|
|
|
13150 |
return lastComparison;
|
|
|
13151 |
}
|
|
|
13152 |
}
|
|
|
13153 |
return 0;
|
|
|
13154 |
}
|
|
|
13155 |
|
|
|
13156 |
public _Fields fieldForId(int fieldId) {
|
|
|
13157 |
return _Fields.findByThriftId(fieldId);
|
|
|
13158 |
}
|
|
|
13159 |
|
|
|
13160 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13161 |
org.apache.thrift.protocol.TField field;
|
|
|
13162 |
iprot.readStructBegin();
|
|
|
13163 |
while (true)
|
|
|
13164 |
{
|
|
|
13165 |
field = iprot.readFieldBegin();
|
|
|
13166 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13167 |
break;
|
|
|
13168 |
}
|
|
|
13169 |
switch (field.id) {
|
|
|
13170 |
case 1: // MERCHANT_PAYMENT_ID
|
|
|
13171 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
13172 |
this.merchantPaymentId = iprot.readI64();
|
|
|
13173 |
setMerchantPaymentIdIsSet(true);
|
|
|
13174 |
} else {
|
|
|
13175 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13176 |
}
|
|
|
13177 |
break;
|
|
|
13178 |
default:
|
|
|
13179 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13180 |
}
|
|
|
13181 |
iprot.readFieldEnd();
|
|
|
13182 |
}
|
|
|
13183 |
iprot.readStructEnd();
|
|
|
13184 |
validate();
|
|
|
13185 |
}
|
|
|
13186 |
|
|
|
13187 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13188 |
validate();
|
|
|
13189 |
|
|
|
13190 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13191 |
oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
|
|
|
13192 |
oprot.writeI64(this.merchantPaymentId);
|
|
|
13193 |
oprot.writeFieldEnd();
|
|
|
13194 |
oprot.writeFieldStop();
|
|
|
13195 |
oprot.writeStructEnd();
|
|
|
13196 |
}
|
|
|
13197 |
|
|
|
13198 |
@Override
|
|
|
13199 |
public String toString() {
|
|
|
13200 |
StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_args(");
|
|
|
13201 |
boolean first = true;
|
|
|
13202 |
|
|
|
13203 |
sb.append("merchantPaymentId:");
|
|
|
13204 |
sb.append(this.merchantPaymentId);
|
|
|
13205 |
first = false;
|
|
|
13206 |
sb.append(")");
|
|
|
13207 |
return sb.toString();
|
|
|
13208 |
}
|
|
|
13209 |
|
|
|
13210 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13211 |
// check for required fields
|
|
|
13212 |
}
|
|
|
13213 |
|
|
|
13214 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13215 |
try {
|
|
|
13216 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13217 |
} catch (org.apache.thrift.TException te) {
|
|
|
13218 |
throw new java.io.IOException(te);
|
|
|
13219 |
}
|
|
|
13220 |
}
|
|
|
13221 |
|
|
|
13222 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13223 |
try {
|
|
|
13224 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13225 |
} catch (org.apache.thrift.TException te) {
|
|
|
13226 |
throw new java.io.IOException(te);
|
|
|
13227 |
}
|
|
|
13228 |
}
|
|
|
13229 |
|
|
|
13230 |
}
|
|
|
13231 |
|
|
|
13232 |
public static class initializeHdfcEmiPayment_result implements org.apache.thrift.TBase<initializeHdfcEmiPayment_result, initializeHdfcEmiPayment_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
13233 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_result");
|
|
|
13234 |
|
|
|
13235 |
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);
|
|
|
13236 |
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);
|
|
|
13237 |
|
|
|
13238 |
private String success; // required
|
|
|
13239 |
private PaymentException pe; // required
|
|
|
13240 |
|
|
|
13241 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13242 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13243 |
SUCCESS((short)0, "success"),
|
|
|
13244 |
PE((short)1, "pe");
|
|
|
13245 |
|
|
|
13246 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13247 |
|
|
|
13248 |
static {
|
|
|
13249 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13250 |
byName.put(field.getFieldName(), field);
|
|
|
13251 |
}
|
|
|
13252 |
}
|
|
|
13253 |
|
|
|
13254 |
/**
|
|
|
13255 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13256 |
*/
|
|
|
13257 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13258 |
switch(fieldId) {
|
|
|
13259 |
case 0: // SUCCESS
|
|
|
13260 |
return SUCCESS;
|
|
|
13261 |
case 1: // PE
|
|
|
13262 |
return PE;
|
|
|
13263 |
default:
|
|
|
13264 |
return null;
|
|
|
13265 |
}
|
|
|
13266 |
}
|
|
|
13267 |
|
|
|
13268 |
/**
|
|
|
13269 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13270 |
* if it is not found.
|
|
|
13271 |
*/
|
|
|
13272 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13273 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13274 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13275 |
return fields;
|
|
|
13276 |
}
|
|
|
13277 |
|
|
|
13278 |
/**
|
|
|
13279 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13280 |
*/
|
|
|
13281 |
public static _Fields findByName(String name) {
|
|
|
13282 |
return byName.get(name);
|
|
|
13283 |
}
|
|
|
13284 |
|
|
|
13285 |
private final short _thriftId;
|
|
|
13286 |
private final String _fieldName;
|
|
|
13287 |
|
|
|
13288 |
_Fields(short thriftId, String fieldName) {
|
|
|
13289 |
_thriftId = thriftId;
|
|
|
13290 |
_fieldName = fieldName;
|
|
|
13291 |
}
|
|
|
13292 |
|
|
|
13293 |
public short getThriftFieldId() {
|
|
|
13294 |
return _thriftId;
|
|
|
13295 |
}
|
|
|
13296 |
|
|
|
13297 |
public String getFieldName() {
|
|
|
13298 |
return _fieldName;
|
|
|
13299 |
}
|
|
|
13300 |
}
|
|
|
13301 |
|
|
|
13302 |
// isset id assignments
|
|
|
13303 |
|
|
|
13304 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13305 |
static {
|
|
|
13306 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13307 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13308 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
13309 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13310 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
13311 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13312 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_result.class, metaDataMap);
|
|
|
13313 |
}
|
|
|
13314 |
|
|
|
13315 |
public initializeHdfcEmiPayment_result() {
|
|
|
13316 |
}
|
|
|
13317 |
|
|
|
13318 |
public initializeHdfcEmiPayment_result(
|
|
|
13319 |
String success,
|
|
|
13320 |
PaymentException pe)
|
|
|
13321 |
{
|
|
|
13322 |
this();
|
|
|
13323 |
this.success = success;
|
|
|
13324 |
this.pe = pe;
|
|
|
13325 |
}
|
|
|
13326 |
|
|
|
13327 |
/**
|
|
|
13328 |
* Performs a deep copy on <i>other</i>.
|
|
|
13329 |
*/
|
|
|
13330 |
public initializeHdfcEmiPayment_result(initializeHdfcEmiPayment_result other) {
|
|
|
13331 |
if (other.isSetSuccess()) {
|
|
|
13332 |
this.success = other.success;
|
|
|
13333 |
}
|
|
|
13334 |
if (other.isSetPe()) {
|
|
|
13335 |
this.pe = new PaymentException(other.pe);
|
|
|
13336 |
}
|
|
|
13337 |
}
|
|
|
13338 |
|
|
|
13339 |
public initializeHdfcEmiPayment_result deepCopy() {
|
|
|
13340 |
return new initializeHdfcEmiPayment_result(this);
|
|
|
13341 |
}
|
|
|
13342 |
|
|
|
13343 |
@Override
|
|
|
13344 |
public void clear() {
|
|
|
13345 |
this.success = null;
|
|
|
13346 |
this.pe = null;
|
|
|
13347 |
}
|
|
|
13348 |
|
|
|
13349 |
public String getSuccess() {
|
|
|
13350 |
return this.success;
|
|
|
13351 |
}
|
|
|
13352 |
|
|
|
13353 |
public void setSuccess(String success) {
|
|
|
13354 |
this.success = success;
|
|
|
13355 |
}
|
|
|
13356 |
|
|
|
13357 |
public void unsetSuccess() {
|
|
|
13358 |
this.success = null;
|
|
|
13359 |
}
|
|
|
13360 |
|
|
|
13361 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
13362 |
public boolean isSetSuccess() {
|
|
|
13363 |
return this.success != null;
|
|
|
13364 |
}
|
|
|
13365 |
|
|
|
13366 |
public void setSuccessIsSet(boolean value) {
|
|
|
13367 |
if (!value) {
|
|
|
13368 |
this.success = null;
|
|
|
13369 |
}
|
|
|
13370 |
}
|
|
|
13371 |
|
|
|
13372 |
public PaymentException getPe() {
|
|
|
13373 |
return this.pe;
|
|
|
13374 |
}
|
|
|
13375 |
|
|
|
13376 |
public void setPe(PaymentException pe) {
|
|
|
13377 |
this.pe = pe;
|
|
|
13378 |
}
|
|
|
13379 |
|
|
|
13380 |
public void unsetPe() {
|
|
|
13381 |
this.pe = null;
|
|
|
13382 |
}
|
|
|
13383 |
|
|
|
13384 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
|
|
13385 |
public boolean isSetPe() {
|
|
|
13386 |
return this.pe != null;
|
|
|
13387 |
}
|
|
|
13388 |
|
|
|
13389 |
public void setPeIsSet(boolean value) {
|
|
|
13390 |
if (!value) {
|
|
|
13391 |
this.pe = null;
|
|
|
13392 |
}
|
|
|
13393 |
}
|
|
|
13394 |
|
|
|
13395 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13396 |
switch (field) {
|
|
|
13397 |
case SUCCESS:
|
|
|
13398 |
if (value == null) {
|
|
|
13399 |
unsetSuccess();
|
|
|
13400 |
} else {
|
|
|
13401 |
setSuccess((String)value);
|
|
|
13402 |
}
|
|
|
13403 |
break;
|
|
|
13404 |
|
|
|
13405 |
case PE:
|
|
|
13406 |
if (value == null) {
|
|
|
13407 |
unsetPe();
|
|
|
13408 |
} else {
|
|
|
13409 |
setPe((PaymentException)value);
|
|
|
13410 |
}
|
|
|
13411 |
break;
|
|
|
13412 |
|
|
|
13413 |
}
|
|
|
13414 |
}
|
|
|
13415 |
|
|
|
13416 |
public Object getFieldValue(_Fields field) {
|
|
|
13417 |
switch (field) {
|
|
|
13418 |
case SUCCESS:
|
|
|
13419 |
return getSuccess();
|
|
|
13420 |
|
|
|
13421 |
case PE:
|
|
|
13422 |
return getPe();
|
|
|
13423 |
|
|
|
13424 |
}
|
|
|
13425 |
throw new IllegalStateException();
|
|
|
13426 |
}
|
|
|
13427 |
|
|
|
13428 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13429 |
public boolean isSet(_Fields field) {
|
|
|
13430 |
if (field == null) {
|
|
|
13431 |
throw new IllegalArgumentException();
|
|
|
13432 |
}
|
|
|
13433 |
|
|
|
13434 |
switch (field) {
|
|
|
13435 |
case SUCCESS:
|
|
|
13436 |
return isSetSuccess();
|
|
|
13437 |
case PE:
|
|
|
13438 |
return isSetPe();
|
|
|
13439 |
}
|
|
|
13440 |
throw new IllegalStateException();
|
|
|
13441 |
}
|
|
|
13442 |
|
|
|
13443 |
@Override
|
|
|
13444 |
public boolean equals(Object that) {
|
|
|
13445 |
if (that == null)
|
|
|
13446 |
return false;
|
|
|
13447 |
if (that instanceof initializeHdfcEmiPayment_result)
|
|
|
13448 |
return this.equals((initializeHdfcEmiPayment_result)that);
|
|
|
13449 |
return false;
|
|
|
13450 |
}
|
|
|
13451 |
|
|
|
13452 |
public boolean equals(initializeHdfcEmiPayment_result that) {
|
|
|
13453 |
if (that == null)
|
|
|
13454 |
return false;
|
|
|
13455 |
|
|
|
13456 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
13457 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
13458 |
if (this_present_success || that_present_success) {
|
|
|
13459 |
if (!(this_present_success && that_present_success))
|
|
|
13460 |
return false;
|
|
|
13461 |
if (!this.success.equals(that.success))
|
|
|
13462 |
return false;
|
|
|
13463 |
}
|
|
|
13464 |
|
|
|
13465 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
13466 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
13467 |
if (this_present_pe || that_present_pe) {
|
|
|
13468 |
if (!(this_present_pe && that_present_pe))
|
|
|
13469 |
return false;
|
|
|
13470 |
if (!this.pe.equals(that.pe))
|
|
|
13471 |
return false;
|
|
|
13472 |
}
|
|
|
13473 |
|
|
|
13474 |
return true;
|
|
|
13475 |
}
|
|
|
13476 |
|
|
|
13477 |
@Override
|
|
|
13478 |
public int hashCode() {
|
|
|
13479 |
return 0;
|
|
|
13480 |
}
|
|
|
13481 |
|
|
|
13482 |
public int compareTo(initializeHdfcEmiPayment_result other) {
|
|
|
13483 |
if (!getClass().equals(other.getClass())) {
|
|
|
13484 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13485 |
}
|
|
|
13486 |
|
|
|
13487 |
int lastComparison = 0;
|
|
|
13488 |
initializeHdfcEmiPayment_result typedOther = (initializeHdfcEmiPayment_result)other;
|
|
|
13489 |
|
|
|
13490 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
13491 |
if (lastComparison != 0) {
|
|
|
13492 |
return lastComparison;
|
|
|
13493 |
}
|
|
|
13494 |
if (isSetSuccess()) {
|
|
|
13495 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
13496 |
if (lastComparison != 0) {
|
|
|
13497 |
return lastComparison;
|
|
|
13498 |
}
|
|
|
13499 |
}
|
|
|
13500 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
|
|
13501 |
if (lastComparison != 0) {
|
|
|
13502 |
return lastComparison;
|
|
|
13503 |
}
|
|
|
13504 |
if (isSetPe()) {
|
|
|
13505 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
13506 |
if (lastComparison != 0) {
|
|
|
13507 |
return lastComparison;
|
|
|
13508 |
}
|
|
|
13509 |
}
|
|
|
13510 |
return 0;
|
|
|
13511 |
}
|
|
|
13512 |
|
|
|
13513 |
public _Fields fieldForId(int fieldId) {
|
|
|
13514 |
return _Fields.findByThriftId(fieldId);
|
|
|
13515 |
}
|
|
|
13516 |
|
|
|
13517 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13518 |
org.apache.thrift.protocol.TField field;
|
|
|
13519 |
iprot.readStructBegin();
|
|
|
13520 |
while (true)
|
|
|
13521 |
{
|
|
|
13522 |
field = iprot.readFieldBegin();
|
|
|
13523 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13524 |
break;
|
|
|
13525 |
}
|
|
|
13526 |
switch (field.id) {
|
|
|
13527 |
case 0: // SUCCESS
|
|
|
13528 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
13529 |
this.success = iprot.readString();
|
|
|
13530 |
} else {
|
|
|
13531 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13532 |
}
|
|
|
13533 |
break;
|
|
|
13534 |
case 1: // PE
|
|
|
13535 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
13536 |
this.pe = new PaymentException();
|
|
|
13537 |
this.pe.read(iprot);
|
|
|
13538 |
} else {
|
|
|
13539 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13540 |
}
|
|
|
13541 |
break;
|
|
|
13542 |
default:
|
|
|
13543 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13544 |
}
|
|
|
13545 |
iprot.readFieldEnd();
|
|
|
13546 |
}
|
|
|
13547 |
iprot.readStructEnd();
|
|
|
13548 |
validate();
|
|
|
13549 |
}
|
|
|
13550 |
|
|
|
13551 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13552 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13553 |
|
|
|
13554 |
if (this.isSetSuccess()) {
|
|
|
13555 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
13556 |
oprot.writeString(this.success);
|
|
|
13557 |
oprot.writeFieldEnd();
|
|
|
13558 |
} else if (this.isSetPe()) {
|
|
|
13559 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
13560 |
this.pe.write(oprot);
|
|
|
13561 |
oprot.writeFieldEnd();
|
|
|
13562 |
}
|
|
|
13563 |
oprot.writeFieldStop();
|
|
|
13564 |
oprot.writeStructEnd();
|
|
|
13565 |
}
|
|
|
13566 |
|
|
|
13567 |
@Override
|
|
|
13568 |
public String toString() {
|
|
|
13569 |
StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_result(");
|
|
|
13570 |
boolean first = true;
|
|
|
13571 |
|
|
|
13572 |
sb.append("success:");
|
|
|
13573 |
if (this.success == null) {
|
|
|
13574 |
sb.append("null");
|
|
|
13575 |
} else {
|
|
|
13576 |
sb.append(this.success);
|
|
|
13577 |
}
|
|
|
13578 |
first = false;
|
|
|
13579 |
if (!first) sb.append(", ");
|
|
|
13580 |
sb.append("pe:");
|
|
|
13581 |
if (this.pe == null) {
|
|
|
13582 |
sb.append("null");
|
|
|
13583 |
} else {
|
|
|
13584 |
sb.append(this.pe);
|
|
|
13585 |
}
|
|
|
13586 |
first = false;
|
|
|
13587 |
sb.append(")");
|
|
|
13588 |
return sb.toString();
|
|
|
13589 |
}
|
|
|
13590 |
|
|
|
13591 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13592 |
// check for required fields
|
|
|
13593 |
}
|
|
|
13594 |
|
|
|
13595 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13596 |
try {
|
|
|
13597 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13598 |
} catch (org.apache.thrift.TException te) {
|
|
|
13599 |
throw new java.io.IOException(te);
|
|
|
13600 |
}
|
|
|
13601 |
}
|
|
|
13602 |
|
|
|
13603 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13604 |
try {
|
|
|
13605 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13606 |
} catch (org.apache.thrift.TException te) {
|
|
|
13607 |
throw new java.io.IOException(te);
|
|
|
13608 |
}
|
|
|
13609 |
}
|
|
|
13610 |
|
|
|
13611 |
}
|
|
|
13612 |
|
| 3430 |
rajveer |
13613 |
public static class createRefund_args implements org.apache.thrift.TBase<createRefund_args, createRefund_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
13614 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_args");
|
| 2462 |
chandransh |
13615 |
|
| 3430 |
rajveer |
13616 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
13617 |
private static final org.apache.thrift.protocol.TField MERCHANT_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("merchantTxnId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
13618 |
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)3);
|
| 2462 |
chandransh |
13619 |
|
| 3430 |
rajveer |
13620 |
private long orderId; // required
|
|
|
13621 |
private long merchantTxnId; // required
|
|
|
13622 |
private double amount; // required
|
| 2462 |
chandransh |
13623 |
|
|
|
13624 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
13625 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3010 |
chandransh |
13626 |
ORDER_ID((short)1, "orderId"),
|
|
|
13627 |
MERCHANT_TXN_ID((short)2, "merchantTxnId"),
|
|
|
13628 |
AMOUNT((short)3, "amount");
|
| 2462 |
chandransh |
13629 |
|
|
|
13630 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13631 |
|
|
|
13632 |
static {
|
|
|
13633 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13634 |
byName.put(field.getFieldName(), field);
|
|
|
13635 |
}
|
|
|
13636 |
}
|
|
|
13637 |
|
|
|
13638 |
/**
|
|
|
13639 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13640 |
*/
|
|
|
13641 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
13642 |
switch(fieldId) {
|
|
|
13643 |
case 1: // ORDER_ID
|
|
|
13644 |
return ORDER_ID;
|
|
|
13645 |
case 2: // MERCHANT_TXN_ID
|
|
|
13646 |
return MERCHANT_TXN_ID;
|
|
|
13647 |
case 3: // AMOUNT
|
|
|
13648 |
return AMOUNT;
|
|
|
13649 |
default:
|
|
|
13650 |
return null;
|
|
|
13651 |
}
|
| 2462 |
chandransh |
13652 |
}
|
|
|
13653 |
|
|
|
13654 |
/**
|
|
|
13655 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13656 |
* if it is not found.
|
|
|
13657 |
*/
|
|
|
13658 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13659 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13660 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13661 |
return fields;
|
|
|
13662 |
}
|
|
|
13663 |
|
|
|
13664 |
/**
|
|
|
13665 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13666 |
*/
|
|
|
13667 |
public static _Fields findByName(String name) {
|
|
|
13668 |
return byName.get(name);
|
|
|
13669 |
}
|
|
|
13670 |
|
|
|
13671 |
private final short _thriftId;
|
|
|
13672 |
private final String _fieldName;
|
|
|
13673 |
|
|
|
13674 |
_Fields(short thriftId, String fieldName) {
|
|
|
13675 |
_thriftId = thriftId;
|
|
|
13676 |
_fieldName = fieldName;
|
|
|
13677 |
}
|
|
|
13678 |
|
|
|
13679 |
public short getThriftFieldId() {
|
|
|
13680 |
return _thriftId;
|
|
|
13681 |
}
|
|
|
13682 |
|
|
|
13683 |
public String getFieldName() {
|
|
|
13684 |
return _fieldName;
|
|
|
13685 |
}
|
|
|
13686 |
}
|
|
|
13687 |
|
|
|
13688 |
// isset id assignments
|
| 3010 |
chandransh |
13689 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
13690 |
private static final int __MERCHANTTXNID_ISSET_ID = 1;
|
|
|
13691 |
private static final int __AMOUNT_ISSET_ID = 2;
|
|
|
13692 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 2462 |
chandransh |
13693 |
|
| 3430 |
rajveer |
13694 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2462 |
chandransh |
13695 |
static {
|
| 3430 |
rajveer |
13696 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13697 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13698 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
13699 |
tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13700 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
13701 |
tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13702 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
13703 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13704 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_args.class, metaDataMap);
|
| 2462 |
chandransh |
13705 |
}
|
|
|
13706 |
|
| 3010 |
chandransh |
13707 |
public createRefund_args() {
|
| 2462 |
chandransh |
13708 |
}
|
|
|
13709 |
|
| 3010 |
chandransh |
13710 |
public createRefund_args(
|
|
|
13711 |
long orderId,
|
|
|
13712 |
long merchantTxnId,
|
|
|
13713 |
double amount)
|
| 2462 |
chandransh |
13714 |
{
|
|
|
13715 |
this();
|
| 3010 |
chandransh |
13716 |
this.orderId = orderId;
|
|
|
13717 |
setOrderIdIsSet(true);
|
|
|
13718 |
this.merchantTxnId = merchantTxnId;
|
|
|
13719 |
setMerchantTxnIdIsSet(true);
|
|
|
13720 |
this.amount = amount;
|
|
|
13721 |
setAmountIsSet(true);
|
| 2462 |
chandransh |
13722 |
}
|
|
|
13723 |
|
|
|
13724 |
/**
|
|
|
13725 |
* Performs a deep copy on <i>other</i>.
|
|
|
13726 |
*/
|
| 3010 |
chandransh |
13727 |
public createRefund_args(createRefund_args other) {
|
| 2462 |
chandransh |
13728 |
__isset_bit_vector.clear();
|
|
|
13729 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 3010 |
chandransh |
13730 |
this.orderId = other.orderId;
|
|
|
13731 |
this.merchantTxnId = other.merchantTxnId;
|
|
|
13732 |
this.amount = other.amount;
|
| 2462 |
chandransh |
13733 |
}
|
|
|
13734 |
|
| 3010 |
chandransh |
13735 |
public createRefund_args deepCopy() {
|
|
|
13736 |
return new createRefund_args(this);
|
| 2462 |
chandransh |
13737 |
}
|
|
|
13738 |
|
| 3430 |
rajveer |
13739 |
@Override
|
|
|
13740 |
public void clear() {
|
|
|
13741 |
setOrderIdIsSet(false);
|
|
|
13742 |
this.orderId = 0;
|
|
|
13743 |
setMerchantTxnIdIsSet(false);
|
|
|
13744 |
this.merchantTxnId = 0;
|
|
|
13745 |
setAmountIsSet(false);
|
|
|
13746 |
this.amount = 0.0;
|
| 2462 |
chandransh |
13747 |
}
|
|
|
13748 |
|
| 3010 |
chandransh |
13749 |
public long getOrderId() {
|
|
|
13750 |
return this.orderId;
|
| 2462 |
chandransh |
13751 |
}
|
|
|
13752 |
|
| 3430 |
rajveer |
13753 |
public void setOrderId(long orderId) {
|
| 3010 |
chandransh |
13754 |
this.orderId = orderId;
|
|
|
13755 |
setOrderIdIsSet(true);
|
| 2462 |
chandransh |
13756 |
}
|
|
|
13757 |
|
| 3010 |
chandransh |
13758 |
public void unsetOrderId() {
|
|
|
13759 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
| 2462 |
chandransh |
13760 |
}
|
|
|
13761 |
|
| 3430 |
rajveer |
13762 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
| 3010 |
chandransh |
13763 |
public boolean isSetOrderId() {
|
|
|
13764 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
| 2462 |
chandransh |
13765 |
}
|
|
|
13766 |
|
| 3010 |
chandransh |
13767 |
public void setOrderIdIsSet(boolean value) {
|
|
|
13768 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| 2462 |
chandransh |
13769 |
}
|
|
|
13770 |
|
| 3010 |
chandransh |
13771 |
public long getMerchantTxnId() {
|
|
|
13772 |
return this.merchantTxnId;
|
|
|
13773 |
}
|
|
|
13774 |
|
| 3430 |
rajveer |
13775 |
public void setMerchantTxnId(long merchantTxnId) {
|
| 3010 |
chandransh |
13776 |
this.merchantTxnId = merchantTxnId;
|
|
|
13777 |
setMerchantTxnIdIsSet(true);
|
|
|
13778 |
}
|
|
|
13779 |
|
|
|
13780 |
public void unsetMerchantTxnId() {
|
|
|
13781 |
__isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
|
|
|
13782 |
}
|
|
|
13783 |
|
| 3430 |
rajveer |
13784 |
/** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
|
| 3010 |
chandransh |
13785 |
public boolean isSetMerchantTxnId() {
|
|
|
13786 |
return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
|
|
|
13787 |
}
|
|
|
13788 |
|
|
|
13789 |
public void setMerchantTxnIdIsSet(boolean value) {
|
|
|
13790 |
__isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
|
|
|
13791 |
}
|
|
|
13792 |
|
|
|
13793 |
public double getAmount() {
|
|
|
13794 |
return this.amount;
|
|
|
13795 |
}
|
|
|
13796 |
|
| 3430 |
rajveer |
13797 |
public void setAmount(double amount) {
|
| 3010 |
chandransh |
13798 |
this.amount = amount;
|
|
|
13799 |
setAmountIsSet(true);
|
|
|
13800 |
}
|
|
|
13801 |
|
|
|
13802 |
public void unsetAmount() {
|
|
|
13803 |
__isset_bit_vector.clear(__AMOUNT_ISSET_ID);
|
|
|
13804 |
}
|
|
|
13805 |
|
| 3430 |
rajveer |
13806 |
/** Returns true if field amount is set (has been assigned a value) and false otherwise */
|
| 3010 |
chandransh |
13807 |
public boolean isSetAmount() {
|
|
|
13808 |
return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
|
|
|
13809 |
}
|
|
|
13810 |
|
|
|
13811 |
public void setAmountIsSet(boolean value) {
|
|
|
13812 |
__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
|
|
|
13813 |
}
|
|
|
13814 |
|
| 2462 |
chandransh |
13815 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13816 |
switch (field) {
|
| 3010 |
chandransh |
13817 |
case ORDER_ID:
|
| 2462 |
chandransh |
13818 |
if (value == null) {
|
| 3010 |
chandransh |
13819 |
unsetOrderId();
|
| 2462 |
chandransh |
13820 |
} else {
|
| 3010 |
chandransh |
13821 |
setOrderId((Long)value);
|
| 2462 |
chandransh |
13822 |
}
|
|
|
13823 |
break;
|
|
|
13824 |
|
| 3010 |
chandransh |
13825 |
case MERCHANT_TXN_ID:
|
|
|
13826 |
if (value == null) {
|
|
|
13827 |
unsetMerchantTxnId();
|
|
|
13828 |
} else {
|
|
|
13829 |
setMerchantTxnId((Long)value);
|
|
|
13830 |
}
|
|
|
13831 |
break;
|
|
|
13832 |
|
|
|
13833 |
case AMOUNT:
|
|
|
13834 |
if (value == null) {
|
|
|
13835 |
unsetAmount();
|
|
|
13836 |
} else {
|
|
|
13837 |
setAmount((Double)value);
|
|
|
13838 |
}
|
|
|
13839 |
break;
|
|
|
13840 |
|
| 2462 |
chandransh |
13841 |
}
|
|
|
13842 |
}
|
|
|
13843 |
|
|
|
13844 |
public Object getFieldValue(_Fields field) {
|
|
|
13845 |
switch (field) {
|
| 3010 |
chandransh |
13846 |
case ORDER_ID:
|
| 3430 |
rajveer |
13847 |
return Long.valueOf(getOrderId());
|
| 2462 |
chandransh |
13848 |
|
| 3010 |
chandransh |
13849 |
case MERCHANT_TXN_ID:
|
| 3430 |
rajveer |
13850 |
return Long.valueOf(getMerchantTxnId());
|
| 3010 |
chandransh |
13851 |
|
|
|
13852 |
case AMOUNT:
|
| 3430 |
rajveer |
13853 |
return Double.valueOf(getAmount());
|
| 3010 |
chandransh |
13854 |
|
| 2462 |
chandransh |
13855 |
}
|
|
|
13856 |
throw new IllegalStateException();
|
|
|
13857 |
}
|
|
|
13858 |
|
| 3430 |
rajveer |
13859 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13860 |
public boolean isSet(_Fields field) {
|
|
|
13861 |
if (field == null) {
|
|
|
13862 |
throw new IllegalArgumentException();
|
|
|
13863 |
}
|
| 2462 |
chandransh |
13864 |
|
|
|
13865 |
switch (field) {
|
| 3010 |
chandransh |
13866 |
case ORDER_ID:
|
|
|
13867 |
return isSetOrderId();
|
|
|
13868 |
case MERCHANT_TXN_ID:
|
|
|
13869 |
return isSetMerchantTxnId();
|
|
|
13870 |
case AMOUNT:
|
|
|
13871 |
return isSetAmount();
|
| 2462 |
chandransh |
13872 |
}
|
|
|
13873 |
throw new IllegalStateException();
|
|
|
13874 |
}
|
|
|
13875 |
|
|
|
13876 |
@Override
|
|
|
13877 |
public boolean equals(Object that) {
|
|
|
13878 |
if (that == null)
|
|
|
13879 |
return false;
|
| 3010 |
chandransh |
13880 |
if (that instanceof createRefund_args)
|
|
|
13881 |
return this.equals((createRefund_args)that);
|
| 2462 |
chandransh |
13882 |
return false;
|
|
|
13883 |
}
|
|
|
13884 |
|
| 3010 |
chandransh |
13885 |
public boolean equals(createRefund_args that) {
|
| 2462 |
chandransh |
13886 |
if (that == null)
|
|
|
13887 |
return false;
|
|
|
13888 |
|
| 3010 |
chandransh |
13889 |
boolean this_present_orderId = true;
|
|
|
13890 |
boolean that_present_orderId = true;
|
|
|
13891 |
if (this_present_orderId || that_present_orderId) {
|
|
|
13892 |
if (!(this_present_orderId && that_present_orderId))
|
| 2462 |
chandransh |
13893 |
return false;
|
| 3010 |
chandransh |
13894 |
if (this.orderId != that.orderId)
|
| 2462 |
chandransh |
13895 |
return false;
|
|
|
13896 |
}
|
|
|
13897 |
|
| 3010 |
chandransh |
13898 |
boolean this_present_merchantTxnId = true;
|
|
|
13899 |
boolean that_present_merchantTxnId = true;
|
|
|
13900 |
if (this_present_merchantTxnId || that_present_merchantTxnId) {
|
|
|
13901 |
if (!(this_present_merchantTxnId && that_present_merchantTxnId))
|
|
|
13902 |
return false;
|
|
|
13903 |
if (this.merchantTxnId != that.merchantTxnId)
|
|
|
13904 |
return false;
|
|
|
13905 |
}
|
|
|
13906 |
|
|
|
13907 |
boolean this_present_amount = true;
|
|
|
13908 |
boolean that_present_amount = true;
|
|
|
13909 |
if (this_present_amount || that_present_amount) {
|
|
|
13910 |
if (!(this_present_amount && that_present_amount))
|
|
|
13911 |
return false;
|
|
|
13912 |
if (this.amount != that.amount)
|
|
|
13913 |
return false;
|
|
|
13914 |
}
|
|
|
13915 |
|
| 2462 |
chandransh |
13916 |
return true;
|
|
|
13917 |
}
|
|
|
13918 |
|
|
|
13919 |
@Override
|
|
|
13920 |
public int hashCode() {
|
|
|
13921 |
return 0;
|
|
|
13922 |
}
|
|
|
13923 |
|
| 3010 |
chandransh |
13924 |
public int compareTo(createRefund_args other) {
|
| 2462 |
chandransh |
13925 |
if (!getClass().equals(other.getClass())) {
|
|
|
13926 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13927 |
}
|
|
|
13928 |
|
|
|
13929 |
int lastComparison = 0;
|
| 3010 |
chandransh |
13930 |
createRefund_args typedOther = (createRefund_args)other;
|
| 2462 |
chandransh |
13931 |
|
| 3430 |
rajveer |
13932 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| 2462 |
chandransh |
13933 |
if (lastComparison != 0) {
|
|
|
13934 |
return lastComparison;
|
|
|
13935 |
}
|
| 3430 |
rajveer |
13936 |
if (isSetOrderId()) {
|
|
|
13937 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
13938 |
if (lastComparison != 0) {
|
|
|
13939 |
return lastComparison;
|
|
|
13940 |
}
|
| 2462 |
chandransh |
13941 |
}
|
| 3430 |
rajveer |
13942 |
lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
|
| 3010 |
chandransh |
13943 |
if (lastComparison != 0) {
|
|
|
13944 |
return lastComparison;
|
|
|
13945 |
}
|
| 3430 |
rajveer |
13946 |
if (isSetMerchantTxnId()) {
|
|
|
13947 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
|
|
|
13948 |
if (lastComparison != 0) {
|
|
|
13949 |
return lastComparison;
|
|
|
13950 |
}
|
| 3010 |
chandransh |
13951 |
}
|
| 3430 |
rajveer |
13952 |
lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
|
| 3010 |
chandransh |
13953 |
if (lastComparison != 0) {
|
|
|
13954 |
return lastComparison;
|
|
|
13955 |
}
|
| 3430 |
rajveer |
13956 |
if (isSetAmount()) {
|
|
|
13957 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
|
|
|
13958 |
if (lastComparison != 0) {
|
|
|
13959 |
return lastComparison;
|
|
|
13960 |
}
|
| 3010 |
chandransh |
13961 |
}
|
| 2462 |
chandransh |
13962 |
return 0;
|
|
|
13963 |
}
|
|
|
13964 |
|
| 3430 |
rajveer |
13965 |
public _Fields fieldForId(int fieldId) {
|
|
|
13966 |
return _Fields.findByThriftId(fieldId);
|
|
|
13967 |
}
|
|
|
13968 |
|
|
|
13969 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13970 |
org.apache.thrift.protocol.TField field;
|
| 2462 |
chandransh |
13971 |
iprot.readStructBegin();
|
|
|
13972 |
while (true)
|
|
|
13973 |
{
|
|
|
13974 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
13975 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2462 |
chandransh |
13976 |
break;
|
|
|
13977 |
}
|
| 3430 |
rajveer |
13978 |
switch (field.id) {
|
|
|
13979 |
case 1: // ORDER_ID
|
|
|
13980 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
13981 |
this.orderId = iprot.readI64();
|
|
|
13982 |
setOrderIdIsSet(true);
|
|
|
13983 |
} else {
|
|
|
13984 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13985 |
}
|
|
|
13986 |
break;
|
|
|
13987 |
case 2: // MERCHANT_TXN_ID
|
|
|
13988 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
13989 |
this.merchantTxnId = iprot.readI64();
|
|
|
13990 |
setMerchantTxnIdIsSet(true);
|
|
|
13991 |
} else {
|
|
|
13992 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13993 |
}
|
|
|
13994 |
break;
|
|
|
13995 |
case 3: // AMOUNT
|
|
|
13996 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
13997 |
this.amount = iprot.readDouble();
|
|
|
13998 |
setAmountIsSet(true);
|
|
|
13999 |
} else {
|
|
|
14000 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14001 |
}
|
|
|
14002 |
break;
|
|
|
14003 |
default:
|
|
|
14004 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2462 |
chandransh |
14005 |
}
|
| 3430 |
rajveer |
14006 |
iprot.readFieldEnd();
|
| 2462 |
chandransh |
14007 |
}
|
|
|
14008 |
iprot.readStructEnd();
|
|
|
14009 |
validate();
|
|
|
14010 |
}
|
|
|
14011 |
|
| 3430 |
rajveer |
14012 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
14013 |
validate();
|
|
|
14014 |
|
|
|
14015 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 3010 |
chandransh |
14016 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
14017 |
oprot.writeI64(this.orderId);
|
| 2462 |
chandransh |
14018 |
oprot.writeFieldEnd();
|
| 3010 |
chandransh |
14019 |
oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
|
|
|
14020 |
oprot.writeI64(this.merchantTxnId);
|
|
|
14021 |
oprot.writeFieldEnd();
|
|
|
14022 |
oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
|
|
|
14023 |
oprot.writeDouble(this.amount);
|
|
|
14024 |
oprot.writeFieldEnd();
|
| 2462 |
chandransh |
14025 |
oprot.writeFieldStop();
|
|
|
14026 |
oprot.writeStructEnd();
|
|
|
14027 |
}
|
|
|
14028 |
|
|
|
14029 |
@Override
|
|
|
14030 |
public String toString() {
|
| 3010 |
chandransh |
14031 |
StringBuilder sb = new StringBuilder("createRefund_args(");
|
| 2462 |
chandransh |
14032 |
boolean first = true;
|
|
|
14033 |
|
| 3010 |
chandransh |
14034 |
sb.append("orderId:");
|
|
|
14035 |
sb.append(this.orderId);
|
| 2462 |
chandransh |
14036 |
first = false;
|
| 3010 |
chandransh |
14037 |
if (!first) sb.append(", ");
|
|
|
14038 |
sb.append("merchantTxnId:");
|
|
|
14039 |
sb.append(this.merchantTxnId);
|
|
|
14040 |
first = false;
|
|
|
14041 |
if (!first) sb.append(", ");
|
|
|
14042 |
sb.append("amount:");
|
|
|
14043 |
sb.append(this.amount);
|
|
|
14044 |
first = false;
|
| 2462 |
chandransh |
14045 |
sb.append(")");
|
|
|
14046 |
return sb.toString();
|
|
|
14047 |
}
|
|
|
14048 |
|
| 3430 |
rajveer |
14049 |
public void validate() throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
14050 |
// check for required fields
|
|
|
14051 |
}
|
|
|
14052 |
|
| 3430 |
rajveer |
14053 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14054 |
try {
|
|
|
14055 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14056 |
} catch (org.apache.thrift.TException te) {
|
|
|
14057 |
throw new java.io.IOException(te);
|
|
|
14058 |
}
|
|
|
14059 |
}
|
|
|
14060 |
|
|
|
14061 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14062 |
try {
|
|
|
14063 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14064 |
} catch (org.apache.thrift.TException te) {
|
|
|
14065 |
throw new java.io.IOException(te);
|
|
|
14066 |
}
|
|
|
14067 |
}
|
|
|
14068 |
|
| 2462 |
chandransh |
14069 |
}
|
|
|
14070 |
|
| 3430 |
rajveer |
14071 |
public static class createRefund_result implements org.apache.thrift.TBase<createRefund_result, createRefund_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
14072 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_result");
|
| 2462 |
chandransh |
14073 |
|
| 3430 |
rajveer |
14074 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
|
|
|
14075 |
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);
|
| 2462 |
chandransh |
14076 |
|
| 3430 |
rajveer |
14077 |
private long success; // required
|
|
|
14078 |
private PaymentException pe; // required
|
| 2462 |
chandransh |
14079 |
|
|
|
14080 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
14081 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2462 |
chandransh |
14082 |
SUCCESS((short)0, "success"),
|
|
|
14083 |
PE((short)1, "pe");
|
|
|
14084 |
|
|
|
14085 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14086 |
|
|
|
14087 |
static {
|
|
|
14088 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14089 |
byName.put(field.getFieldName(), field);
|
|
|
14090 |
}
|
|
|
14091 |
}
|
|
|
14092 |
|
|
|
14093 |
/**
|
|
|
14094 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14095 |
*/
|
|
|
14096 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
14097 |
switch(fieldId) {
|
|
|
14098 |
case 0: // SUCCESS
|
|
|
14099 |
return SUCCESS;
|
|
|
14100 |
case 1: // PE
|
|
|
14101 |
return PE;
|
|
|
14102 |
default:
|
|
|
14103 |
return null;
|
|
|
14104 |
}
|
| 2462 |
chandransh |
14105 |
}
|
|
|
14106 |
|
|
|
14107 |
/**
|
|
|
14108 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14109 |
* if it is not found.
|
|
|
14110 |
*/
|
|
|
14111 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14112 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14113 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14114 |
return fields;
|
|
|
14115 |
}
|
|
|
14116 |
|
|
|
14117 |
/**
|
|
|
14118 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14119 |
*/
|
|
|
14120 |
public static _Fields findByName(String name) {
|
|
|
14121 |
return byName.get(name);
|
|
|
14122 |
}
|
|
|
14123 |
|
|
|
14124 |
private final short _thriftId;
|
|
|
14125 |
private final String _fieldName;
|
|
|
14126 |
|
|
|
14127 |
_Fields(short thriftId, String fieldName) {
|
|
|
14128 |
_thriftId = thriftId;
|
|
|
14129 |
_fieldName = fieldName;
|
|
|
14130 |
}
|
|
|
14131 |
|
|
|
14132 |
public short getThriftFieldId() {
|
|
|
14133 |
return _thriftId;
|
|
|
14134 |
}
|
|
|
14135 |
|
|
|
14136 |
public String getFieldName() {
|
|
|
14137 |
return _fieldName;
|
|
|
14138 |
}
|
|
|
14139 |
}
|
|
|
14140 |
|
|
|
14141 |
// isset id assignments
|
| 3010 |
chandransh |
14142 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
14143 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 2462 |
chandransh |
14144 |
|
| 3430 |
rajveer |
14145 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2462 |
chandransh |
14146 |
static {
|
| 3430 |
rajveer |
14147 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14148 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
14150 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14151 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
14152 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14153 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_result.class, metaDataMap);
|
| 2462 |
chandransh |
14154 |
}
|
|
|
14155 |
|
| 3010 |
chandransh |
14156 |
public createRefund_result() {
|
| 2462 |
chandransh |
14157 |
}
|
|
|
14158 |
|
| 3010 |
chandransh |
14159 |
public createRefund_result(
|
|
|
14160 |
long success,
|
| 2462 |
chandransh |
14161 |
PaymentException pe)
|
|
|
14162 |
{
|
|
|
14163 |
this();
|
|
|
14164 |
this.success = success;
|
| 3010 |
chandransh |
14165 |
setSuccessIsSet(true);
|
| 2462 |
chandransh |
14166 |
this.pe = pe;
|
|
|
14167 |
}
|
|
|
14168 |
|
|
|
14169 |
/**
|
|
|
14170 |
* Performs a deep copy on <i>other</i>.
|
|
|
14171 |
*/
|
| 3010 |
chandransh |
14172 |
public createRefund_result(createRefund_result other) {
|
|
|
14173 |
__isset_bit_vector.clear();
|
|
|
14174 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
14175 |
this.success = other.success;
|
| 2462 |
chandransh |
14176 |
if (other.isSetPe()) {
|
|
|
14177 |
this.pe = new PaymentException(other.pe);
|
|
|
14178 |
}
|
|
|
14179 |
}
|
|
|
14180 |
|
| 3010 |
chandransh |
14181 |
public createRefund_result deepCopy() {
|
|
|
14182 |
return new createRefund_result(this);
|
| 2462 |
chandransh |
14183 |
}
|
|
|
14184 |
|
| 3430 |
rajveer |
14185 |
@Override
|
|
|
14186 |
public void clear() {
|
|
|
14187 |
setSuccessIsSet(false);
|
|
|
14188 |
this.success = 0;
|
|
|
14189 |
this.pe = null;
|
| 2462 |
chandransh |
14190 |
}
|
|
|
14191 |
|
| 3010 |
chandransh |
14192 |
public long getSuccess() {
|
| 2462 |
chandransh |
14193 |
return this.success;
|
|
|
14194 |
}
|
|
|
14195 |
|
| 3430 |
rajveer |
14196 |
public void setSuccess(long success) {
|
| 2462 |
chandransh |
14197 |
this.success = success;
|
| 3010 |
chandransh |
14198 |
setSuccessIsSet(true);
|
| 2462 |
chandransh |
14199 |
}
|
|
|
14200 |
|
|
|
14201 |
public void unsetSuccess() {
|
| 3010 |
chandransh |
14202 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
| 2462 |
chandransh |
14203 |
}
|
|
|
14204 |
|
| 3430 |
rajveer |
14205 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2462 |
chandransh |
14206 |
public boolean isSetSuccess() {
|
| 3010 |
chandransh |
14207 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
| 2462 |
chandransh |
14208 |
}
|
|
|
14209 |
|
|
|
14210 |
public void setSuccessIsSet(boolean value) {
|
| 3010 |
chandransh |
14211 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
| 2462 |
chandransh |
14212 |
}
|
|
|
14213 |
|
|
|
14214 |
public PaymentException getPe() {
|
|
|
14215 |
return this.pe;
|
|
|
14216 |
}
|
|
|
14217 |
|
| 3430 |
rajveer |
14218 |
public void setPe(PaymentException pe) {
|
| 2462 |
chandransh |
14219 |
this.pe = pe;
|
|
|
14220 |
}
|
|
|
14221 |
|
|
|
14222 |
public void unsetPe() {
|
|
|
14223 |
this.pe = null;
|
|
|
14224 |
}
|
|
|
14225 |
|
| 3430 |
rajveer |
14226 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 2462 |
chandransh |
14227 |
public boolean isSetPe() {
|
|
|
14228 |
return this.pe != null;
|
|
|
14229 |
}
|
|
|
14230 |
|
|
|
14231 |
public void setPeIsSet(boolean value) {
|
|
|
14232 |
if (!value) {
|
|
|
14233 |
this.pe = null;
|
|
|
14234 |
}
|
|
|
14235 |
}
|
|
|
14236 |
|
|
|
14237 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14238 |
switch (field) {
|
|
|
14239 |
case SUCCESS:
|
|
|
14240 |
if (value == null) {
|
|
|
14241 |
unsetSuccess();
|
|
|
14242 |
} else {
|
| 3010 |
chandransh |
14243 |
setSuccess((Long)value);
|
| 2462 |
chandransh |
14244 |
}
|
|
|
14245 |
break;
|
|
|
14246 |
|
|
|
14247 |
case PE:
|
|
|
14248 |
if (value == null) {
|
|
|
14249 |
unsetPe();
|
|
|
14250 |
} else {
|
|
|
14251 |
setPe((PaymentException)value);
|
|
|
14252 |
}
|
|
|
14253 |
break;
|
|
|
14254 |
|
|
|
14255 |
}
|
|
|
14256 |
}
|
|
|
14257 |
|
|
|
14258 |
public Object getFieldValue(_Fields field) {
|
|
|
14259 |
switch (field) {
|
|
|
14260 |
case SUCCESS:
|
| 3430 |
rajveer |
14261 |
return Long.valueOf(getSuccess());
|
| 2462 |
chandransh |
14262 |
|
|
|
14263 |
case PE:
|
|
|
14264 |
return getPe();
|
|
|
14265 |
|
|
|
14266 |
}
|
|
|
14267 |
throw new IllegalStateException();
|
|
|
14268 |
}
|
|
|
14269 |
|
| 3430 |
rajveer |
14270 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14271 |
public boolean isSet(_Fields field) {
|
|
|
14272 |
if (field == null) {
|
|
|
14273 |
throw new IllegalArgumentException();
|
|
|
14274 |
}
|
| 2462 |
chandransh |
14275 |
|
|
|
14276 |
switch (field) {
|
|
|
14277 |
case SUCCESS:
|
|
|
14278 |
return isSetSuccess();
|
|
|
14279 |
case PE:
|
|
|
14280 |
return isSetPe();
|
|
|
14281 |
}
|
|
|
14282 |
throw new IllegalStateException();
|
|
|
14283 |
}
|
|
|
14284 |
|
|
|
14285 |
@Override
|
|
|
14286 |
public boolean equals(Object that) {
|
|
|
14287 |
if (that == null)
|
|
|
14288 |
return false;
|
| 3010 |
chandransh |
14289 |
if (that instanceof createRefund_result)
|
|
|
14290 |
return this.equals((createRefund_result)that);
|
| 2462 |
chandransh |
14291 |
return false;
|
|
|
14292 |
}
|
|
|
14293 |
|
| 3010 |
chandransh |
14294 |
public boolean equals(createRefund_result that) {
|
| 2462 |
chandransh |
14295 |
if (that == null)
|
|
|
14296 |
return false;
|
|
|
14297 |
|
| 3010 |
chandransh |
14298 |
boolean this_present_success = true;
|
|
|
14299 |
boolean that_present_success = true;
|
| 2462 |
chandransh |
14300 |
if (this_present_success || that_present_success) {
|
|
|
14301 |
if (!(this_present_success && that_present_success))
|
|
|
14302 |
return false;
|
| 3010 |
chandransh |
14303 |
if (this.success != that.success)
|
| 2462 |
chandransh |
14304 |
return false;
|
|
|
14305 |
}
|
|
|
14306 |
|
|
|
14307 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
14308 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
14309 |
if (this_present_pe || that_present_pe) {
|
|
|
14310 |
if (!(this_present_pe && that_present_pe))
|
|
|
14311 |
return false;
|
|
|
14312 |
if (!this.pe.equals(that.pe))
|
|
|
14313 |
return false;
|
|
|
14314 |
}
|
|
|
14315 |
|
|
|
14316 |
return true;
|
|
|
14317 |
}
|
|
|
14318 |
|
|
|
14319 |
@Override
|
|
|
14320 |
public int hashCode() {
|
|
|
14321 |
return 0;
|
|
|
14322 |
}
|
|
|
14323 |
|
| 3010 |
chandransh |
14324 |
public int compareTo(createRefund_result other) {
|
| 2462 |
chandransh |
14325 |
if (!getClass().equals(other.getClass())) {
|
|
|
14326 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14327 |
}
|
|
|
14328 |
|
|
|
14329 |
int lastComparison = 0;
|
| 3010 |
chandransh |
14330 |
createRefund_result typedOther = (createRefund_result)other;
|
| 2462 |
chandransh |
14331 |
|
| 3430 |
rajveer |
14332 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2462 |
chandransh |
14333 |
if (lastComparison != 0) {
|
|
|
14334 |
return lastComparison;
|
|
|
14335 |
}
|
| 3430 |
rajveer |
14336 |
if (isSetSuccess()) {
|
|
|
14337 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
14338 |
if (lastComparison != 0) {
|
|
|
14339 |
return lastComparison;
|
|
|
14340 |
}
|
| 2462 |
chandransh |
14341 |
}
|
| 3430 |
rajveer |
14342 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 2462 |
chandransh |
14343 |
if (lastComparison != 0) {
|
|
|
14344 |
return lastComparison;
|
|
|
14345 |
}
|
| 3430 |
rajveer |
14346 |
if (isSetPe()) {
|
|
|
14347 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
14348 |
if (lastComparison != 0) {
|
|
|
14349 |
return lastComparison;
|
|
|
14350 |
}
|
| 2462 |
chandransh |
14351 |
}
|
|
|
14352 |
return 0;
|
|
|
14353 |
}
|
|
|
14354 |
|
| 3430 |
rajveer |
14355 |
public _Fields fieldForId(int fieldId) {
|
|
|
14356 |
return _Fields.findByThriftId(fieldId);
|
|
|
14357 |
}
|
|
|
14358 |
|
|
|
14359 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14360 |
org.apache.thrift.protocol.TField field;
|
| 2462 |
chandransh |
14361 |
iprot.readStructBegin();
|
|
|
14362 |
while (true)
|
|
|
14363 |
{
|
|
|
14364 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
14365 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2462 |
chandransh |
14366 |
break;
|
|
|
14367 |
}
|
| 3430 |
rajveer |
14368 |
switch (field.id) {
|
|
|
14369 |
case 0: // SUCCESS
|
|
|
14370 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
14371 |
this.success = iprot.readI64();
|
|
|
14372 |
setSuccessIsSet(true);
|
|
|
14373 |
} else {
|
|
|
14374 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14375 |
}
|
|
|
14376 |
break;
|
|
|
14377 |
case 1: // PE
|
|
|
14378 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
14379 |
this.pe = new PaymentException();
|
|
|
14380 |
this.pe.read(iprot);
|
|
|
14381 |
} else {
|
|
|
14382 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14383 |
}
|
|
|
14384 |
break;
|
|
|
14385 |
default:
|
|
|
14386 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2462 |
chandransh |
14387 |
}
|
| 3430 |
rajveer |
14388 |
iprot.readFieldEnd();
|
| 2462 |
chandransh |
14389 |
}
|
|
|
14390 |
iprot.readStructEnd();
|
|
|
14391 |
validate();
|
|
|
14392 |
}
|
|
|
14393 |
|
| 3430 |
rajveer |
14394 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
14395 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14396 |
|
|
|
14397 |
if (this.isSetSuccess()) {
|
|
|
14398 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 3010 |
chandransh |
14399 |
oprot.writeI64(this.success);
|
| 2462 |
chandransh |
14400 |
oprot.writeFieldEnd();
|
|
|
14401 |
} else if (this.isSetPe()) {
|
|
|
14402 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
14403 |
this.pe.write(oprot);
|
|
|
14404 |
oprot.writeFieldEnd();
|
|
|
14405 |
}
|
|
|
14406 |
oprot.writeFieldStop();
|
|
|
14407 |
oprot.writeStructEnd();
|
|
|
14408 |
}
|
|
|
14409 |
|
|
|
14410 |
@Override
|
|
|
14411 |
public String toString() {
|
| 3010 |
chandransh |
14412 |
StringBuilder sb = new StringBuilder("createRefund_result(");
|
| 2462 |
chandransh |
14413 |
boolean first = true;
|
|
|
14414 |
|
|
|
14415 |
sb.append("success:");
|
| 3010 |
chandransh |
14416 |
sb.append(this.success);
|
| 2462 |
chandransh |
14417 |
first = false;
|
|
|
14418 |
if (!first) sb.append(", ");
|
|
|
14419 |
sb.append("pe:");
|
|
|
14420 |
if (this.pe == null) {
|
|
|
14421 |
sb.append("null");
|
|
|
14422 |
} else {
|
|
|
14423 |
sb.append(this.pe);
|
|
|
14424 |
}
|
|
|
14425 |
first = false;
|
|
|
14426 |
sb.append(")");
|
|
|
14427 |
return sb.toString();
|
|
|
14428 |
}
|
|
|
14429 |
|
| 3430 |
rajveer |
14430 |
public void validate() throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
14431 |
// check for required fields
|
|
|
14432 |
}
|
|
|
14433 |
|
| 3430 |
rajveer |
14434 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14435 |
try {
|
|
|
14436 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14437 |
} catch (org.apache.thrift.TException te) {
|
|
|
14438 |
throw new java.io.IOException(te);
|
|
|
14439 |
}
|
|
|
14440 |
}
|
|
|
14441 |
|
|
|
14442 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14443 |
try {
|
|
|
14444 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14445 |
} catch (org.apache.thrift.TException te) {
|
|
|
14446 |
throw new java.io.IOException(te);
|
|
|
14447 |
}
|
|
|
14448 |
}
|
|
|
14449 |
|
| 2462 |
chandransh |
14450 |
}
|
|
|
14451 |
|
| 3430 |
rajveer |
14452 |
public static class capturePayment_args implements org.apache.thrift.TBase<capturePayment_args, capturePayment_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
14453 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_args");
|
| 2690 |
chandransh |
14454 |
|
| 3430 |
rajveer |
14455 |
private static final org.apache.thrift.protocol.TField MERCHANT_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("merchantTxnId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 2690 |
chandransh |
14456 |
|
| 3430 |
rajveer |
14457 |
private long merchantTxnId; // required
|
| 2690 |
chandransh |
14458 |
|
|
|
14459 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
14460 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3010 |
chandransh |
14461 |
MERCHANT_TXN_ID((short)1, "merchantTxnId");
|
| 2690 |
chandransh |
14462 |
|
|
|
14463 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14464 |
|
|
|
14465 |
static {
|
|
|
14466 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14467 |
byName.put(field.getFieldName(), field);
|
|
|
14468 |
}
|
|
|
14469 |
}
|
|
|
14470 |
|
|
|
14471 |
/**
|
|
|
14472 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14473 |
*/
|
|
|
14474 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
14475 |
switch(fieldId) {
|
|
|
14476 |
case 1: // MERCHANT_TXN_ID
|
|
|
14477 |
return MERCHANT_TXN_ID;
|
|
|
14478 |
default:
|
|
|
14479 |
return null;
|
|
|
14480 |
}
|
| 2690 |
chandransh |
14481 |
}
|
|
|
14482 |
|
|
|
14483 |
/**
|
|
|
14484 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14485 |
* if it is not found.
|
|
|
14486 |
*/
|
|
|
14487 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14488 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14489 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14490 |
return fields;
|
|
|
14491 |
}
|
|
|
14492 |
|
|
|
14493 |
/**
|
|
|
14494 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14495 |
*/
|
|
|
14496 |
public static _Fields findByName(String name) {
|
|
|
14497 |
return byName.get(name);
|
|
|
14498 |
}
|
|
|
14499 |
|
|
|
14500 |
private final short _thriftId;
|
|
|
14501 |
private final String _fieldName;
|
|
|
14502 |
|
|
|
14503 |
_Fields(short thriftId, String fieldName) {
|
|
|
14504 |
_thriftId = thriftId;
|
|
|
14505 |
_fieldName = fieldName;
|
|
|
14506 |
}
|
|
|
14507 |
|
|
|
14508 |
public short getThriftFieldId() {
|
|
|
14509 |
return _thriftId;
|
|
|
14510 |
}
|
|
|
14511 |
|
|
|
14512 |
public String getFieldName() {
|
|
|
14513 |
return _fieldName;
|
|
|
14514 |
}
|
|
|
14515 |
}
|
|
|
14516 |
|
|
|
14517 |
// isset id assignments
|
| 3010 |
chandransh |
14518 |
private static final int __MERCHANTTXNID_ISSET_ID = 0;
|
|
|
14519 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 2690 |
chandransh |
14520 |
|
| 3430 |
rajveer |
14521 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2690 |
chandransh |
14522 |
static {
|
| 3430 |
rajveer |
14523 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14524 |
tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14525 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
14526 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14527 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_args.class, metaDataMap);
|
| 2690 |
chandransh |
14528 |
}
|
|
|
14529 |
|
| 3010 |
chandransh |
14530 |
public capturePayment_args() {
|
| 2690 |
chandransh |
14531 |
}
|
|
|
14532 |
|
| 3010 |
chandransh |
14533 |
public capturePayment_args(
|
|
|
14534 |
long merchantTxnId)
|
| 2690 |
chandransh |
14535 |
{
|
|
|
14536 |
this();
|
|
|
14537 |
this.merchantTxnId = merchantTxnId;
|
|
|
14538 |
setMerchantTxnIdIsSet(true);
|
|
|
14539 |
}
|
|
|
14540 |
|
|
|
14541 |
/**
|
|
|
14542 |
* Performs a deep copy on <i>other</i>.
|
|
|
14543 |
*/
|
| 3010 |
chandransh |
14544 |
public capturePayment_args(capturePayment_args other) {
|
| 2690 |
chandransh |
14545 |
__isset_bit_vector.clear();
|
|
|
14546 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
14547 |
this.merchantTxnId = other.merchantTxnId;
|
|
|
14548 |
}
|
|
|
14549 |
|
| 3010 |
chandransh |
14550 |
public capturePayment_args deepCopy() {
|
|
|
14551 |
return new capturePayment_args(this);
|
| 2690 |
chandransh |
14552 |
}
|
|
|
14553 |
|
| 3430 |
rajveer |
14554 |
@Override
|
|
|
14555 |
public void clear() {
|
|
|
14556 |
setMerchantTxnIdIsSet(false);
|
|
|
14557 |
this.merchantTxnId = 0;
|
| 2690 |
chandransh |
14558 |
}
|
|
|
14559 |
|
|
|
14560 |
public long getMerchantTxnId() {
|
|
|
14561 |
return this.merchantTxnId;
|
|
|
14562 |
}
|
|
|
14563 |
|
| 3430 |
rajveer |
14564 |
public void setMerchantTxnId(long merchantTxnId) {
|
| 2690 |
chandransh |
14565 |
this.merchantTxnId = merchantTxnId;
|
|
|
14566 |
setMerchantTxnIdIsSet(true);
|
|
|
14567 |
}
|
|
|
14568 |
|
|
|
14569 |
public void unsetMerchantTxnId() {
|
|
|
14570 |
__isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
|
|
|
14571 |
}
|
|
|
14572 |
|
| 3430 |
rajveer |
14573 |
/** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
14574 |
public boolean isSetMerchantTxnId() {
|
|
|
14575 |
return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
|
|
|
14576 |
}
|
|
|
14577 |
|
|
|
14578 |
public void setMerchantTxnIdIsSet(boolean value) {
|
|
|
14579 |
__isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
|
|
|
14580 |
}
|
|
|
14581 |
|
|
|
14582 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14583 |
switch (field) {
|
|
|
14584 |
case MERCHANT_TXN_ID:
|
|
|
14585 |
if (value == null) {
|
|
|
14586 |
unsetMerchantTxnId();
|
|
|
14587 |
} else {
|
|
|
14588 |
setMerchantTxnId((Long)value);
|
|
|
14589 |
}
|
|
|
14590 |
break;
|
|
|
14591 |
|
|
|
14592 |
}
|
|
|
14593 |
}
|
|
|
14594 |
|
|
|
14595 |
public Object getFieldValue(_Fields field) {
|
|
|
14596 |
switch (field) {
|
|
|
14597 |
case MERCHANT_TXN_ID:
|
| 3430 |
rajveer |
14598 |
return Long.valueOf(getMerchantTxnId());
|
| 2690 |
chandransh |
14599 |
|
|
|
14600 |
}
|
|
|
14601 |
throw new IllegalStateException();
|
|
|
14602 |
}
|
|
|
14603 |
|
| 3430 |
rajveer |
14604 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14605 |
public boolean isSet(_Fields field) {
|
|
|
14606 |
if (field == null) {
|
|
|
14607 |
throw new IllegalArgumentException();
|
|
|
14608 |
}
|
| 2690 |
chandransh |
14609 |
|
|
|
14610 |
switch (field) {
|
|
|
14611 |
case MERCHANT_TXN_ID:
|
|
|
14612 |
return isSetMerchantTxnId();
|
|
|
14613 |
}
|
|
|
14614 |
throw new IllegalStateException();
|
|
|
14615 |
}
|
|
|
14616 |
|
|
|
14617 |
@Override
|
|
|
14618 |
public boolean equals(Object that) {
|
|
|
14619 |
if (that == null)
|
|
|
14620 |
return false;
|
| 3010 |
chandransh |
14621 |
if (that instanceof capturePayment_args)
|
|
|
14622 |
return this.equals((capturePayment_args)that);
|
| 2690 |
chandransh |
14623 |
return false;
|
|
|
14624 |
}
|
|
|
14625 |
|
| 3010 |
chandransh |
14626 |
public boolean equals(capturePayment_args that) {
|
| 2690 |
chandransh |
14627 |
if (that == null)
|
|
|
14628 |
return false;
|
|
|
14629 |
|
|
|
14630 |
boolean this_present_merchantTxnId = true;
|
|
|
14631 |
boolean that_present_merchantTxnId = true;
|
|
|
14632 |
if (this_present_merchantTxnId || that_present_merchantTxnId) {
|
|
|
14633 |
if (!(this_present_merchantTxnId && that_present_merchantTxnId))
|
|
|
14634 |
return false;
|
|
|
14635 |
if (this.merchantTxnId != that.merchantTxnId)
|
|
|
14636 |
return false;
|
|
|
14637 |
}
|
|
|
14638 |
|
|
|
14639 |
return true;
|
|
|
14640 |
}
|
|
|
14641 |
|
|
|
14642 |
@Override
|
|
|
14643 |
public int hashCode() {
|
|
|
14644 |
return 0;
|
|
|
14645 |
}
|
|
|
14646 |
|
| 3010 |
chandransh |
14647 |
public int compareTo(capturePayment_args other) {
|
| 2690 |
chandransh |
14648 |
if (!getClass().equals(other.getClass())) {
|
|
|
14649 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14650 |
}
|
|
|
14651 |
|
|
|
14652 |
int lastComparison = 0;
|
| 3010 |
chandransh |
14653 |
capturePayment_args typedOther = (capturePayment_args)other;
|
| 2690 |
chandransh |
14654 |
|
| 3430 |
rajveer |
14655 |
lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
|
| 2690 |
chandransh |
14656 |
if (lastComparison != 0) {
|
|
|
14657 |
return lastComparison;
|
|
|
14658 |
}
|
| 3430 |
rajveer |
14659 |
if (isSetMerchantTxnId()) {
|
|
|
14660 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
|
|
|
14661 |
if (lastComparison != 0) {
|
|
|
14662 |
return lastComparison;
|
|
|
14663 |
}
|
| 2690 |
chandransh |
14664 |
}
|
|
|
14665 |
return 0;
|
|
|
14666 |
}
|
|
|
14667 |
|
| 3430 |
rajveer |
14668 |
public _Fields fieldForId(int fieldId) {
|
|
|
14669 |
return _Fields.findByThriftId(fieldId);
|
|
|
14670 |
}
|
|
|
14671 |
|
|
|
14672 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14673 |
org.apache.thrift.protocol.TField field;
|
| 2690 |
chandransh |
14674 |
iprot.readStructBegin();
|
|
|
14675 |
while (true)
|
|
|
14676 |
{
|
|
|
14677 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
14678 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2690 |
chandransh |
14679 |
break;
|
|
|
14680 |
}
|
| 3430 |
rajveer |
14681 |
switch (field.id) {
|
|
|
14682 |
case 1: // MERCHANT_TXN_ID
|
|
|
14683 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
14684 |
this.merchantTxnId = iprot.readI64();
|
|
|
14685 |
setMerchantTxnIdIsSet(true);
|
|
|
14686 |
} else {
|
|
|
14687 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14688 |
}
|
|
|
14689 |
break;
|
|
|
14690 |
default:
|
|
|
14691 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2690 |
chandransh |
14692 |
}
|
| 3430 |
rajveer |
14693 |
iprot.readFieldEnd();
|
| 2690 |
chandransh |
14694 |
}
|
|
|
14695 |
iprot.readStructEnd();
|
|
|
14696 |
validate();
|
|
|
14697 |
}
|
|
|
14698 |
|
| 3430 |
rajveer |
14699 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2690 |
chandransh |
14700 |
validate();
|
|
|
14701 |
|
|
|
14702 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14703 |
oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
|
|
|
14704 |
oprot.writeI64(this.merchantTxnId);
|
|
|
14705 |
oprot.writeFieldEnd();
|
|
|
14706 |
oprot.writeFieldStop();
|
|
|
14707 |
oprot.writeStructEnd();
|
|
|
14708 |
}
|
|
|
14709 |
|
|
|
14710 |
@Override
|
|
|
14711 |
public String toString() {
|
| 3010 |
chandransh |
14712 |
StringBuilder sb = new StringBuilder("capturePayment_args(");
|
| 2690 |
chandransh |
14713 |
boolean first = true;
|
|
|
14714 |
|
|
|
14715 |
sb.append("merchantTxnId:");
|
|
|
14716 |
sb.append(this.merchantTxnId);
|
|
|
14717 |
first = false;
|
|
|
14718 |
sb.append(")");
|
|
|
14719 |
return sb.toString();
|
|
|
14720 |
}
|
|
|
14721 |
|
| 3430 |
rajveer |
14722 |
public void validate() throws org.apache.thrift.TException {
|
| 2690 |
chandransh |
14723 |
// check for required fields
|
|
|
14724 |
}
|
|
|
14725 |
|
| 3430 |
rajveer |
14726 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14727 |
try {
|
|
|
14728 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14729 |
} catch (org.apache.thrift.TException te) {
|
|
|
14730 |
throw new java.io.IOException(te);
|
|
|
14731 |
}
|
|
|
14732 |
}
|
|
|
14733 |
|
|
|
14734 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14735 |
try {
|
|
|
14736 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14737 |
} catch (org.apache.thrift.TException te) {
|
|
|
14738 |
throw new java.io.IOException(te);
|
|
|
14739 |
}
|
|
|
14740 |
}
|
|
|
14741 |
|
| 2690 |
chandransh |
14742 |
}
|
|
|
14743 |
|
| 3430 |
rajveer |
14744 |
public static class capturePayment_result implements org.apache.thrift.TBase<capturePayment_result, capturePayment_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
14745 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_result");
|
| 2690 |
chandransh |
14746 |
|
| 3430 |
rajveer |
14747 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
|
|
|
14748 |
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);
|
| 2690 |
chandransh |
14749 |
|
| 3430 |
rajveer |
14750 |
private boolean success; // required
|
|
|
14751 |
private PaymentException pe; // required
|
| 2690 |
chandransh |
14752 |
|
|
|
14753 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
14754 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2690 |
chandransh |
14755 |
SUCCESS((short)0, "success"),
|
|
|
14756 |
PE((short)1, "pe");
|
|
|
14757 |
|
|
|
14758 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14759 |
|
|
|
14760 |
static {
|
|
|
14761 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14762 |
byName.put(field.getFieldName(), field);
|
|
|
14763 |
}
|
|
|
14764 |
}
|
|
|
14765 |
|
|
|
14766 |
/**
|
|
|
14767 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14768 |
*/
|
|
|
14769 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
14770 |
switch(fieldId) {
|
|
|
14771 |
case 0: // SUCCESS
|
|
|
14772 |
return SUCCESS;
|
|
|
14773 |
case 1: // PE
|
|
|
14774 |
return PE;
|
|
|
14775 |
default:
|
|
|
14776 |
return null;
|
|
|
14777 |
}
|
| 2690 |
chandransh |
14778 |
}
|
|
|
14779 |
|
|
|
14780 |
/**
|
|
|
14781 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14782 |
* if it is not found.
|
|
|
14783 |
*/
|
|
|
14784 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14785 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14786 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14787 |
return fields;
|
|
|
14788 |
}
|
|
|
14789 |
|
|
|
14790 |
/**
|
|
|
14791 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14792 |
*/
|
|
|
14793 |
public static _Fields findByName(String name) {
|
|
|
14794 |
return byName.get(name);
|
|
|
14795 |
}
|
|
|
14796 |
|
|
|
14797 |
private final short _thriftId;
|
|
|
14798 |
private final String _fieldName;
|
|
|
14799 |
|
|
|
14800 |
_Fields(short thriftId, String fieldName) {
|
|
|
14801 |
_thriftId = thriftId;
|
|
|
14802 |
_fieldName = fieldName;
|
|
|
14803 |
}
|
|
|
14804 |
|
|
|
14805 |
public short getThriftFieldId() {
|
|
|
14806 |
return _thriftId;
|
|
|
14807 |
}
|
|
|
14808 |
|
|
|
14809 |
public String getFieldName() {
|
|
|
14810 |
return _fieldName;
|
|
|
14811 |
}
|
|
|
14812 |
}
|
|
|
14813 |
|
|
|
14814 |
// isset id assignments
|
|
|
14815 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
14816 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
14817 |
|
| 3430 |
rajveer |
14818 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2690 |
chandransh |
14819 |
static {
|
| 3430 |
rajveer |
14820 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14821 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14822 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
14823 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14824 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
14825 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14826 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_result.class, metaDataMap);
|
| 2690 |
chandransh |
14827 |
}
|
|
|
14828 |
|
| 3010 |
chandransh |
14829 |
public capturePayment_result() {
|
| 2690 |
chandransh |
14830 |
}
|
|
|
14831 |
|
| 3010 |
chandransh |
14832 |
public capturePayment_result(
|
|
|
14833 |
boolean success,
|
| 2690 |
chandransh |
14834 |
PaymentException pe)
|
|
|
14835 |
{
|
|
|
14836 |
this();
|
|
|
14837 |
this.success = success;
|
|
|
14838 |
setSuccessIsSet(true);
|
|
|
14839 |
this.pe = pe;
|
|
|
14840 |
}
|
|
|
14841 |
|
|
|
14842 |
/**
|
|
|
14843 |
* Performs a deep copy on <i>other</i>.
|
|
|
14844 |
*/
|
| 3010 |
chandransh |
14845 |
public capturePayment_result(capturePayment_result other) {
|
| 2690 |
chandransh |
14846 |
__isset_bit_vector.clear();
|
|
|
14847 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
14848 |
this.success = other.success;
|
|
|
14849 |
if (other.isSetPe()) {
|
|
|
14850 |
this.pe = new PaymentException(other.pe);
|
|
|
14851 |
}
|
|
|
14852 |
}
|
|
|
14853 |
|
| 3010 |
chandransh |
14854 |
public capturePayment_result deepCopy() {
|
|
|
14855 |
return new capturePayment_result(this);
|
| 2690 |
chandransh |
14856 |
}
|
|
|
14857 |
|
| 3430 |
rajveer |
14858 |
@Override
|
|
|
14859 |
public void clear() {
|
|
|
14860 |
setSuccessIsSet(false);
|
|
|
14861 |
this.success = false;
|
|
|
14862 |
this.pe = null;
|
| 2690 |
chandransh |
14863 |
}
|
|
|
14864 |
|
| 3010 |
chandransh |
14865 |
public boolean isSuccess() {
|
| 2690 |
chandransh |
14866 |
return this.success;
|
|
|
14867 |
}
|
|
|
14868 |
|
| 3430 |
rajveer |
14869 |
public void setSuccess(boolean success) {
|
| 2690 |
chandransh |
14870 |
this.success = success;
|
|
|
14871 |
setSuccessIsSet(true);
|
|
|
14872 |
}
|
|
|
14873 |
|
|
|
14874 |
public void unsetSuccess() {
|
|
|
14875 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
14876 |
}
|
|
|
14877 |
|
| 3430 |
rajveer |
14878 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
14879 |
public boolean isSetSuccess() {
|
|
|
14880 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
14881 |
}
|
|
|
14882 |
|
|
|
14883 |
public void setSuccessIsSet(boolean value) {
|
|
|
14884 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
14885 |
}
|
|
|
14886 |
|
|
|
14887 |
public PaymentException getPe() {
|
|
|
14888 |
return this.pe;
|
|
|
14889 |
}
|
|
|
14890 |
|
| 3430 |
rajveer |
14891 |
public void setPe(PaymentException pe) {
|
| 2690 |
chandransh |
14892 |
this.pe = pe;
|
|
|
14893 |
}
|
|
|
14894 |
|
|
|
14895 |
public void unsetPe() {
|
|
|
14896 |
this.pe = null;
|
|
|
14897 |
}
|
|
|
14898 |
|
| 3430 |
rajveer |
14899 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
14900 |
public boolean isSetPe() {
|
|
|
14901 |
return this.pe != null;
|
|
|
14902 |
}
|
|
|
14903 |
|
|
|
14904 |
public void setPeIsSet(boolean value) {
|
|
|
14905 |
if (!value) {
|
|
|
14906 |
this.pe = null;
|
|
|
14907 |
}
|
|
|
14908 |
}
|
|
|
14909 |
|
|
|
14910 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14911 |
switch (field) {
|
|
|
14912 |
case SUCCESS:
|
|
|
14913 |
if (value == null) {
|
|
|
14914 |
unsetSuccess();
|
|
|
14915 |
} else {
|
| 3010 |
chandransh |
14916 |
setSuccess((Boolean)value);
|
| 2690 |
chandransh |
14917 |
}
|
|
|
14918 |
break;
|
|
|
14919 |
|
|
|
14920 |
case PE:
|
|
|
14921 |
if (value == null) {
|
|
|
14922 |
unsetPe();
|
|
|
14923 |
} else {
|
|
|
14924 |
setPe((PaymentException)value);
|
|
|
14925 |
}
|
|
|
14926 |
break;
|
|
|
14927 |
|
|
|
14928 |
}
|
|
|
14929 |
}
|
|
|
14930 |
|
|
|
14931 |
public Object getFieldValue(_Fields field) {
|
|
|
14932 |
switch (field) {
|
|
|
14933 |
case SUCCESS:
|
| 3430 |
rajveer |
14934 |
return Boolean.valueOf(isSuccess());
|
| 2690 |
chandransh |
14935 |
|
|
|
14936 |
case PE:
|
|
|
14937 |
return getPe();
|
|
|
14938 |
|
|
|
14939 |
}
|
|
|
14940 |
throw new IllegalStateException();
|
|
|
14941 |
}
|
|
|
14942 |
|
| 3430 |
rajveer |
14943 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14944 |
public boolean isSet(_Fields field) {
|
|
|
14945 |
if (field == null) {
|
|
|
14946 |
throw new IllegalArgumentException();
|
|
|
14947 |
}
|
| 2690 |
chandransh |
14948 |
|
|
|
14949 |
switch (field) {
|
|
|
14950 |
case SUCCESS:
|
|
|
14951 |
return isSetSuccess();
|
|
|
14952 |
case PE:
|
|
|
14953 |
return isSetPe();
|
|
|
14954 |
}
|
|
|
14955 |
throw new IllegalStateException();
|
|
|
14956 |
}
|
|
|
14957 |
|
|
|
14958 |
@Override
|
|
|
14959 |
public boolean equals(Object that) {
|
|
|
14960 |
if (that == null)
|
|
|
14961 |
return false;
|
| 3010 |
chandransh |
14962 |
if (that instanceof capturePayment_result)
|
|
|
14963 |
return this.equals((capturePayment_result)that);
|
| 2690 |
chandransh |
14964 |
return false;
|
|
|
14965 |
}
|
|
|
14966 |
|
| 3010 |
chandransh |
14967 |
public boolean equals(capturePayment_result that) {
|
| 2690 |
chandransh |
14968 |
if (that == null)
|
|
|
14969 |
return false;
|
|
|
14970 |
|
|
|
14971 |
boolean this_present_success = true;
|
|
|
14972 |
boolean that_present_success = true;
|
|
|
14973 |
if (this_present_success || that_present_success) {
|
|
|
14974 |
if (!(this_present_success && that_present_success))
|
|
|
14975 |
return false;
|
|
|
14976 |
if (this.success != that.success)
|
|
|
14977 |
return false;
|
|
|
14978 |
}
|
|
|
14979 |
|
|
|
14980 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
14981 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
14982 |
if (this_present_pe || that_present_pe) {
|
|
|
14983 |
if (!(this_present_pe && that_present_pe))
|
|
|
14984 |
return false;
|
|
|
14985 |
if (!this.pe.equals(that.pe))
|
|
|
14986 |
return false;
|
|
|
14987 |
}
|
|
|
14988 |
|
|
|
14989 |
return true;
|
|
|
14990 |
}
|
|
|
14991 |
|
|
|
14992 |
@Override
|
|
|
14993 |
public int hashCode() {
|
|
|
14994 |
return 0;
|
|
|
14995 |
}
|
|
|
14996 |
|
| 3010 |
chandransh |
14997 |
public int compareTo(capturePayment_result other) {
|
| 2690 |
chandransh |
14998 |
if (!getClass().equals(other.getClass())) {
|
|
|
14999 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
15000 |
}
|
|
|
15001 |
|
|
|
15002 |
int lastComparison = 0;
|
| 3010 |
chandransh |
15003 |
capturePayment_result typedOther = (capturePayment_result)other;
|
| 2690 |
chandransh |
15004 |
|
| 3430 |
rajveer |
15005 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2690 |
chandransh |
15006 |
if (lastComparison != 0) {
|
|
|
15007 |
return lastComparison;
|
|
|
15008 |
}
|
| 3430 |
rajveer |
15009 |
if (isSetSuccess()) {
|
|
|
15010 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
15011 |
if (lastComparison != 0) {
|
|
|
15012 |
return lastComparison;
|
|
|
15013 |
}
|
| 2690 |
chandransh |
15014 |
}
|
| 3430 |
rajveer |
15015 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 2690 |
chandransh |
15016 |
if (lastComparison != 0) {
|
|
|
15017 |
return lastComparison;
|
|
|
15018 |
}
|
| 3430 |
rajveer |
15019 |
if (isSetPe()) {
|
|
|
15020 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
15021 |
if (lastComparison != 0) {
|
|
|
15022 |
return lastComparison;
|
|
|
15023 |
}
|
| 2690 |
chandransh |
15024 |
}
|
|
|
15025 |
return 0;
|
|
|
15026 |
}
|
|
|
15027 |
|
| 3430 |
rajveer |
15028 |
public _Fields fieldForId(int fieldId) {
|
|
|
15029 |
return _Fields.findByThriftId(fieldId);
|
|
|
15030 |
}
|
|
|
15031 |
|
|
|
15032 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
15033 |
org.apache.thrift.protocol.TField field;
|
| 2690 |
chandransh |
15034 |
iprot.readStructBegin();
|
|
|
15035 |
while (true)
|
|
|
15036 |
{
|
|
|
15037 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
15038 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2690 |
chandransh |
15039 |
break;
|
|
|
15040 |
}
|
| 3430 |
rajveer |
15041 |
switch (field.id) {
|
|
|
15042 |
case 0: // SUCCESS
|
|
|
15043 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
15044 |
this.success = iprot.readBool();
|
|
|
15045 |
setSuccessIsSet(true);
|
|
|
15046 |
} else {
|
|
|
15047 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15048 |
}
|
|
|
15049 |
break;
|
|
|
15050 |
case 1: // PE
|
|
|
15051 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
15052 |
this.pe = new PaymentException();
|
|
|
15053 |
this.pe.read(iprot);
|
|
|
15054 |
} else {
|
|
|
15055 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15056 |
}
|
|
|
15057 |
break;
|
|
|
15058 |
default:
|
|
|
15059 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2690 |
chandransh |
15060 |
}
|
| 3430 |
rajveer |
15061 |
iprot.readFieldEnd();
|
| 2690 |
chandransh |
15062 |
}
|
|
|
15063 |
iprot.readStructEnd();
|
|
|
15064 |
validate();
|
|
|
15065 |
}
|
|
|
15066 |
|
| 3430 |
rajveer |
15067 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2690 |
chandransh |
15068 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15069 |
|
|
|
15070 |
if (this.isSetSuccess()) {
|
|
|
15071 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 3010 |
chandransh |
15072 |
oprot.writeBool(this.success);
|
| 2690 |
chandransh |
15073 |
oprot.writeFieldEnd();
|
|
|
15074 |
} else if (this.isSetPe()) {
|
|
|
15075 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
15076 |
this.pe.write(oprot);
|
|
|
15077 |
oprot.writeFieldEnd();
|
|
|
15078 |
}
|
|
|
15079 |
oprot.writeFieldStop();
|
|
|
15080 |
oprot.writeStructEnd();
|
|
|
15081 |
}
|
|
|
15082 |
|
|
|
15083 |
@Override
|
|
|
15084 |
public String toString() {
|
| 3010 |
chandransh |
15085 |
StringBuilder sb = new StringBuilder("capturePayment_result(");
|
| 2690 |
chandransh |
15086 |
boolean first = true;
|
|
|
15087 |
|
|
|
15088 |
sb.append("success:");
|
|
|
15089 |
sb.append(this.success);
|
|
|
15090 |
first = false;
|
|
|
15091 |
if (!first) sb.append(", ");
|
|
|
15092 |
sb.append("pe:");
|
|
|
15093 |
if (this.pe == null) {
|
|
|
15094 |
sb.append("null");
|
|
|
15095 |
} else {
|
|
|
15096 |
sb.append(this.pe);
|
|
|
15097 |
}
|
|
|
15098 |
first = false;
|
|
|
15099 |
sb.append(")");
|
|
|
15100 |
return sb.toString();
|
|
|
15101 |
}
|
|
|
15102 |
|
| 3430 |
rajveer |
15103 |
public void validate() throws org.apache.thrift.TException {
|
| 2690 |
chandransh |
15104 |
// check for required fields
|
|
|
15105 |
}
|
|
|
15106 |
|
| 3430 |
rajveer |
15107 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15108 |
try {
|
|
|
15109 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15110 |
} catch (org.apache.thrift.TException te) {
|
|
|
15111 |
throw new java.io.IOException(te);
|
|
|
15112 |
}
|
|
|
15113 |
}
|
|
|
15114 |
|
|
|
15115 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15116 |
try {
|
|
|
15117 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15118 |
} catch (org.apache.thrift.TException te) {
|
|
|
15119 |
throw new java.io.IOException(te);
|
|
|
15120 |
}
|
|
|
15121 |
}
|
|
|
15122 |
|
| 2690 |
chandransh |
15123 |
}
|
|
|
15124 |
|
| 3956 |
chandransh |
15125 |
public static class partiallyCapturePayment_args implements org.apache.thrift.TBase<partiallyCapturePayment_args, partiallyCapturePayment_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
15126 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_args");
|
|
|
15127 |
|
|
|
15128 |
private static final org.apache.thrift.protocol.TField MERCHANT_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("merchantTxnId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
15129 |
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);
|
|
|
15130 |
private static final org.apache.thrift.protocol.TField XFER_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("xferBy", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
15131 |
private static final org.apache.thrift.protocol.TField XFER_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("xferTxnId", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
15132 |
private static final org.apache.thrift.protocol.TField XFER_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("xferDate", org.apache.thrift.protocol.TType.I64, (short)5);
|
|
|
15133 |
|
|
|
15134 |
private long merchantTxnId; // required
|
|
|
15135 |
private double amount; // required
|
|
|
15136 |
private String xferBy; // required
|
|
|
15137 |
private String xferTxnId; // required
|
|
|
15138 |
private long xferDate; // required
|
|
|
15139 |
|
|
|
15140 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15141 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15142 |
MERCHANT_TXN_ID((short)1, "merchantTxnId"),
|
|
|
15143 |
AMOUNT((short)2, "amount"),
|
|
|
15144 |
XFER_BY((short)3, "xferBy"),
|
|
|
15145 |
XFER_TXN_ID((short)4, "xferTxnId"),
|
|
|
15146 |
XFER_DATE((short)5, "xferDate");
|
|
|
15147 |
|
|
|
15148 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15149 |
|
|
|
15150 |
static {
|
|
|
15151 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15152 |
byName.put(field.getFieldName(), field);
|
|
|
15153 |
}
|
|
|
15154 |
}
|
|
|
15155 |
|
|
|
15156 |
/**
|
|
|
15157 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15158 |
*/
|
|
|
15159 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15160 |
switch(fieldId) {
|
|
|
15161 |
case 1: // MERCHANT_TXN_ID
|
|
|
15162 |
return MERCHANT_TXN_ID;
|
|
|
15163 |
case 2: // AMOUNT
|
|
|
15164 |
return AMOUNT;
|
|
|
15165 |
case 3: // XFER_BY
|
|
|
15166 |
return XFER_BY;
|
|
|
15167 |
case 4: // XFER_TXN_ID
|
|
|
15168 |
return XFER_TXN_ID;
|
|
|
15169 |
case 5: // XFER_DATE
|
|
|
15170 |
return XFER_DATE;
|
|
|
15171 |
default:
|
|
|
15172 |
return null;
|
|
|
15173 |
}
|
|
|
15174 |
}
|
|
|
15175 |
|
|
|
15176 |
/**
|
|
|
15177 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15178 |
* if it is not found.
|
|
|
15179 |
*/
|
|
|
15180 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15181 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15182 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15183 |
return fields;
|
|
|
15184 |
}
|
|
|
15185 |
|
|
|
15186 |
/**
|
|
|
15187 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15188 |
*/
|
|
|
15189 |
public static _Fields findByName(String name) {
|
|
|
15190 |
return byName.get(name);
|
|
|
15191 |
}
|
|
|
15192 |
|
|
|
15193 |
private final short _thriftId;
|
|
|
15194 |
private final String _fieldName;
|
|
|
15195 |
|
|
|
15196 |
_Fields(short thriftId, String fieldName) {
|
|
|
15197 |
_thriftId = thriftId;
|
|
|
15198 |
_fieldName = fieldName;
|
|
|
15199 |
}
|
|
|
15200 |
|
|
|
15201 |
public short getThriftFieldId() {
|
|
|
15202 |
return _thriftId;
|
|
|
15203 |
}
|
|
|
15204 |
|
|
|
15205 |
public String getFieldName() {
|
|
|
15206 |
return _fieldName;
|
|
|
15207 |
}
|
|
|
15208 |
}
|
|
|
15209 |
|
|
|
15210 |
// isset id assignments
|
|
|
15211 |
private static final int __MERCHANTTXNID_ISSET_ID = 0;
|
|
|
15212 |
private static final int __AMOUNT_ISSET_ID = 1;
|
|
|
15213 |
private static final int __XFERDATE_ISSET_ID = 2;
|
|
|
15214 |
private BitSet __isset_bit_vector = new BitSet(3);
|
|
|
15215 |
|
|
|
15216 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15217 |
static {
|
|
|
15218 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15219 |
tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15220 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
15221 |
tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15222 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
15223 |
tmpMap.put(_Fields.XFER_BY, new org.apache.thrift.meta_data.FieldMetaData("xferBy", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15224 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
15225 |
tmpMap.put(_Fields.XFER_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("xferTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15226 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
15227 |
tmpMap.put(_Fields.XFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("xferDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15228 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
15229 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15230 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_args.class, metaDataMap);
|
|
|
15231 |
}
|
|
|
15232 |
|
|
|
15233 |
public partiallyCapturePayment_args() {
|
|
|
15234 |
}
|
|
|
15235 |
|
|
|
15236 |
public partiallyCapturePayment_args(
|
|
|
15237 |
long merchantTxnId,
|
|
|
15238 |
double amount,
|
|
|
15239 |
String xferBy,
|
|
|
15240 |
String xferTxnId,
|
|
|
15241 |
long xferDate)
|
|
|
15242 |
{
|
|
|
15243 |
this();
|
|
|
15244 |
this.merchantTxnId = merchantTxnId;
|
|
|
15245 |
setMerchantTxnIdIsSet(true);
|
|
|
15246 |
this.amount = amount;
|
|
|
15247 |
setAmountIsSet(true);
|
|
|
15248 |
this.xferBy = xferBy;
|
|
|
15249 |
this.xferTxnId = xferTxnId;
|
|
|
15250 |
this.xferDate = xferDate;
|
|
|
15251 |
setXferDateIsSet(true);
|
|
|
15252 |
}
|
|
|
15253 |
|
|
|
15254 |
/**
|
|
|
15255 |
* Performs a deep copy on <i>other</i>.
|
|
|
15256 |
*/
|
|
|
15257 |
public partiallyCapturePayment_args(partiallyCapturePayment_args other) {
|
|
|
15258 |
__isset_bit_vector.clear();
|
|
|
15259 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
15260 |
this.merchantTxnId = other.merchantTxnId;
|
|
|
15261 |
this.amount = other.amount;
|
|
|
15262 |
if (other.isSetXferBy()) {
|
|
|
15263 |
this.xferBy = other.xferBy;
|
|
|
15264 |
}
|
|
|
15265 |
if (other.isSetXferTxnId()) {
|
|
|
15266 |
this.xferTxnId = other.xferTxnId;
|
|
|
15267 |
}
|
|
|
15268 |
this.xferDate = other.xferDate;
|
|
|
15269 |
}
|
|
|
15270 |
|
|
|
15271 |
public partiallyCapturePayment_args deepCopy() {
|
|
|
15272 |
return new partiallyCapturePayment_args(this);
|
|
|
15273 |
}
|
|
|
15274 |
|
|
|
15275 |
@Override
|
|
|
15276 |
public void clear() {
|
|
|
15277 |
setMerchantTxnIdIsSet(false);
|
|
|
15278 |
this.merchantTxnId = 0;
|
|
|
15279 |
setAmountIsSet(false);
|
|
|
15280 |
this.amount = 0.0;
|
|
|
15281 |
this.xferBy = null;
|
|
|
15282 |
this.xferTxnId = null;
|
|
|
15283 |
setXferDateIsSet(false);
|
|
|
15284 |
this.xferDate = 0;
|
|
|
15285 |
}
|
|
|
15286 |
|
|
|
15287 |
public long getMerchantTxnId() {
|
|
|
15288 |
return this.merchantTxnId;
|
|
|
15289 |
}
|
|
|
15290 |
|
|
|
15291 |
public void setMerchantTxnId(long merchantTxnId) {
|
|
|
15292 |
this.merchantTxnId = merchantTxnId;
|
|
|
15293 |
setMerchantTxnIdIsSet(true);
|
|
|
15294 |
}
|
|
|
15295 |
|
|
|
15296 |
public void unsetMerchantTxnId() {
|
|
|
15297 |
__isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
|
|
|
15298 |
}
|
|
|
15299 |
|
|
|
15300 |
/** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
|
|
|
15301 |
public boolean isSetMerchantTxnId() {
|
|
|
15302 |
return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
|
|
|
15303 |
}
|
|
|
15304 |
|
|
|
15305 |
public void setMerchantTxnIdIsSet(boolean value) {
|
|
|
15306 |
__isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
|
|
|
15307 |
}
|
|
|
15308 |
|
|
|
15309 |
public double getAmount() {
|
|
|
15310 |
return this.amount;
|
|
|
15311 |
}
|
|
|
15312 |
|
|
|
15313 |
public void setAmount(double amount) {
|
|
|
15314 |
this.amount = amount;
|
|
|
15315 |
setAmountIsSet(true);
|
|
|
15316 |
}
|
|
|
15317 |
|
|
|
15318 |
public void unsetAmount() {
|
|
|
15319 |
__isset_bit_vector.clear(__AMOUNT_ISSET_ID);
|
|
|
15320 |
}
|
|
|
15321 |
|
|
|
15322 |
/** Returns true if field amount is set (has been assigned a value) and false otherwise */
|
|
|
15323 |
public boolean isSetAmount() {
|
|
|
15324 |
return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
|
|
|
15325 |
}
|
|
|
15326 |
|
|
|
15327 |
public void setAmountIsSet(boolean value) {
|
|
|
15328 |
__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
|
|
|
15329 |
}
|
|
|
15330 |
|
|
|
15331 |
public String getXferBy() {
|
|
|
15332 |
return this.xferBy;
|
|
|
15333 |
}
|
|
|
15334 |
|
|
|
15335 |
public void setXferBy(String xferBy) {
|
|
|
15336 |
this.xferBy = xferBy;
|
|
|
15337 |
}
|
|
|
15338 |
|
|
|
15339 |
public void unsetXferBy() {
|
|
|
15340 |
this.xferBy = null;
|
|
|
15341 |
}
|
|
|
15342 |
|
|
|
15343 |
/** Returns true if field xferBy is set (has been assigned a value) and false otherwise */
|
|
|
15344 |
public boolean isSetXferBy() {
|
|
|
15345 |
return this.xferBy != null;
|
|
|
15346 |
}
|
|
|
15347 |
|
|
|
15348 |
public void setXferByIsSet(boolean value) {
|
|
|
15349 |
if (!value) {
|
|
|
15350 |
this.xferBy = null;
|
|
|
15351 |
}
|
|
|
15352 |
}
|
|
|
15353 |
|
|
|
15354 |
public String getXferTxnId() {
|
|
|
15355 |
return this.xferTxnId;
|
|
|
15356 |
}
|
|
|
15357 |
|
|
|
15358 |
public void setXferTxnId(String xferTxnId) {
|
|
|
15359 |
this.xferTxnId = xferTxnId;
|
|
|
15360 |
}
|
|
|
15361 |
|
|
|
15362 |
public void unsetXferTxnId() {
|
|
|
15363 |
this.xferTxnId = null;
|
|
|
15364 |
}
|
|
|
15365 |
|
|
|
15366 |
/** Returns true if field xferTxnId is set (has been assigned a value) and false otherwise */
|
|
|
15367 |
public boolean isSetXferTxnId() {
|
|
|
15368 |
return this.xferTxnId != null;
|
|
|
15369 |
}
|
|
|
15370 |
|
|
|
15371 |
public void setXferTxnIdIsSet(boolean value) {
|
|
|
15372 |
if (!value) {
|
|
|
15373 |
this.xferTxnId = null;
|
|
|
15374 |
}
|
|
|
15375 |
}
|
|
|
15376 |
|
|
|
15377 |
public long getXferDate() {
|
|
|
15378 |
return this.xferDate;
|
|
|
15379 |
}
|
|
|
15380 |
|
|
|
15381 |
public void setXferDate(long xferDate) {
|
|
|
15382 |
this.xferDate = xferDate;
|
|
|
15383 |
setXferDateIsSet(true);
|
|
|
15384 |
}
|
|
|
15385 |
|
|
|
15386 |
public void unsetXferDate() {
|
|
|
15387 |
__isset_bit_vector.clear(__XFERDATE_ISSET_ID);
|
|
|
15388 |
}
|
|
|
15389 |
|
|
|
15390 |
/** Returns true if field xferDate is set (has been assigned a value) and false otherwise */
|
|
|
15391 |
public boolean isSetXferDate() {
|
|
|
15392 |
return __isset_bit_vector.get(__XFERDATE_ISSET_ID);
|
|
|
15393 |
}
|
|
|
15394 |
|
|
|
15395 |
public void setXferDateIsSet(boolean value) {
|
|
|
15396 |
__isset_bit_vector.set(__XFERDATE_ISSET_ID, value);
|
|
|
15397 |
}
|
|
|
15398 |
|
|
|
15399 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15400 |
switch (field) {
|
|
|
15401 |
case MERCHANT_TXN_ID:
|
|
|
15402 |
if (value == null) {
|
|
|
15403 |
unsetMerchantTxnId();
|
|
|
15404 |
} else {
|
|
|
15405 |
setMerchantTxnId((Long)value);
|
|
|
15406 |
}
|
|
|
15407 |
break;
|
|
|
15408 |
|
|
|
15409 |
case AMOUNT:
|
|
|
15410 |
if (value == null) {
|
|
|
15411 |
unsetAmount();
|
|
|
15412 |
} else {
|
|
|
15413 |
setAmount((Double)value);
|
|
|
15414 |
}
|
|
|
15415 |
break;
|
|
|
15416 |
|
|
|
15417 |
case XFER_BY:
|
|
|
15418 |
if (value == null) {
|
|
|
15419 |
unsetXferBy();
|
|
|
15420 |
} else {
|
|
|
15421 |
setXferBy((String)value);
|
|
|
15422 |
}
|
|
|
15423 |
break;
|
|
|
15424 |
|
|
|
15425 |
case XFER_TXN_ID:
|
|
|
15426 |
if (value == null) {
|
|
|
15427 |
unsetXferTxnId();
|
|
|
15428 |
} else {
|
|
|
15429 |
setXferTxnId((String)value);
|
|
|
15430 |
}
|
|
|
15431 |
break;
|
|
|
15432 |
|
|
|
15433 |
case XFER_DATE:
|
|
|
15434 |
if (value == null) {
|
|
|
15435 |
unsetXferDate();
|
|
|
15436 |
} else {
|
|
|
15437 |
setXferDate((Long)value);
|
|
|
15438 |
}
|
|
|
15439 |
break;
|
|
|
15440 |
|
|
|
15441 |
}
|
|
|
15442 |
}
|
|
|
15443 |
|
|
|
15444 |
public Object getFieldValue(_Fields field) {
|
|
|
15445 |
switch (field) {
|
|
|
15446 |
case MERCHANT_TXN_ID:
|
|
|
15447 |
return Long.valueOf(getMerchantTxnId());
|
|
|
15448 |
|
|
|
15449 |
case AMOUNT:
|
|
|
15450 |
return Double.valueOf(getAmount());
|
|
|
15451 |
|
|
|
15452 |
case XFER_BY:
|
|
|
15453 |
return getXferBy();
|
|
|
15454 |
|
|
|
15455 |
case XFER_TXN_ID:
|
|
|
15456 |
return getXferTxnId();
|
|
|
15457 |
|
|
|
15458 |
case XFER_DATE:
|
|
|
15459 |
return Long.valueOf(getXferDate());
|
|
|
15460 |
|
|
|
15461 |
}
|
|
|
15462 |
throw new IllegalStateException();
|
|
|
15463 |
}
|
|
|
15464 |
|
|
|
15465 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15466 |
public boolean isSet(_Fields field) {
|
|
|
15467 |
if (field == null) {
|
|
|
15468 |
throw new IllegalArgumentException();
|
|
|
15469 |
}
|
|
|
15470 |
|
|
|
15471 |
switch (field) {
|
|
|
15472 |
case MERCHANT_TXN_ID:
|
|
|
15473 |
return isSetMerchantTxnId();
|
|
|
15474 |
case AMOUNT:
|
|
|
15475 |
return isSetAmount();
|
|
|
15476 |
case XFER_BY:
|
|
|
15477 |
return isSetXferBy();
|
|
|
15478 |
case XFER_TXN_ID:
|
|
|
15479 |
return isSetXferTxnId();
|
|
|
15480 |
case XFER_DATE:
|
|
|
15481 |
return isSetXferDate();
|
|
|
15482 |
}
|
|
|
15483 |
throw new IllegalStateException();
|
|
|
15484 |
}
|
|
|
15485 |
|
|
|
15486 |
@Override
|
|
|
15487 |
public boolean equals(Object that) {
|
|
|
15488 |
if (that == null)
|
|
|
15489 |
return false;
|
|
|
15490 |
if (that instanceof partiallyCapturePayment_args)
|
|
|
15491 |
return this.equals((partiallyCapturePayment_args)that);
|
|
|
15492 |
return false;
|
|
|
15493 |
}
|
|
|
15494 |
|
|
|
15495 |
public boolean equals(partiallyCapturePayment_args that) {
|
|
|
15496 |
if (that == null)
|
|
|
15497 |
return false;
|
|
|
15498 |
|
|
|
15499 |
boolean this_present_merchantTxnId = true;
|
|
|
15500 |
boolean that_present_merchantTxnId = true;
|
|
|
15501 |
if (this_present_merchantTxnId || that_present_merchantTxnId) {
|
|
|
15502 |
if (!(this_present_merchantTxnId && that_present_merchantTxnId))
|
|
|
15503 |
return false;
|
|
|
15504 |
if (this.merchantTxnId != that.merchantTxnId)
|
|
|
15505 |
return false;
|
|
|
15506 |
}
|
|
|
15507 |
|
|
|
15508 |
boolean this_present_amount = true;
|
|
|
15509 |
boolean that_present_amount = true;
|
|
|
15510 |
if (this_present_amount || that_present_amount) {
|
|
|
15511 |
if (!(this_present_amount && that_present_amount))
|
|
|
15512 |
return false;
|
|
|
15513 |
if (this.amount != that.amount)
|
|
|
15514 |
return false;
|
|
|
15515 |
}
|
|
|
15516 |
|
|
|
15517 |
boolean this_present_xferBy = true && this.isSetXferBy();
|
|
|
15518 |
boolean that_present_xferBy = true && that.isSetXferBy();
|
|
|
15519 |
if (this_present_xferBy || that_present_xferBy) {
|
|
|
15520 |
if (!(this_present_xferBy && that_present_xferBy))
|
|
|
15521 |
return false;
|
|
|
15522 |
if (!this.xferBy.equals(that.xferBy))
|
|
|
15523 |
return false;
|
|
|
15524 |
}
|
|
|
15525 |
|
|
|
15526 |
boolean this_present_xferTxnId = true && this.isSetXferTxnId();
|
|
|
15527 |
boolean that_present_xferTxnId = true && that.isSetXferTxnId();
|
|
|
15528 |
if (this_present_xferTxnId || that_present_xferTxnId) {
|
|
|
15529 |
if (!(this_present_xferTxnId && that_present_xferTxnId))
|
|
|
15530 |
return false;
|
|
|
15531 |
if (!this.xferTxnId.equals(that.xferTxnId))
|
|
|
15532 |
return false;
|
|
|
15533 |
}
|
|
|
15534 |
|
|
|
15535 |
boolean this_present_xferDate = true;
|
|
|
15536 |
boolean that_present_xferDate = true;
|
|
|
15537 |
if (this_present_xferDate || that_present_xferDate) {
|
|
|
15538 |
if (!(this_present_xferDate && that_present_xferDate))
|
|
|
15539 |
return false;
|
|
|
15540 |
if (this.xferDate != that.xferDate)
|
|
|
15541 |
return false;
|
|
|
15542 |
}
|
|
|
15543 |
|
|
|
15544 |
return true;
|
|
|
15545 |
}
|
|
|
15546 |
|
|
|
15547 |
@Override
|
|
|
15548 |
public int hashCode() {
|
|
|
15549 |
return 0;
|
|
|
15550 |
}
|
|
|
15551 |
|
|
|
15552 |
public int compareTo(partiallyCapturePayment_args other) {
|
|
|
15553 |
if (!getClass().equals(other.getClass())) {
|
|
|
15554 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
15555 |
}
|
|
|
15556 |
|
|
|
15557 |
int lastComparison = 0;
|
|
|
15558 |
partiallyCapturePayment_args typedOther = (partiallyCapturePayment_args)other;
|
|
|
15559 |
|
|
|
15560 |
lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
|
|
|
15561 |
if (lastComparison != 0) {
|
|
|
15562 |
return lastComparison;
|
|
|
15563 |
}
|
|
|
15564 |
if (isSetMerchantTxnId()) {
|
|
|
15565 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
|
|
|
15566 |
if (lastComparison != 0) {
|
|
|
15567 |
return lastComparison;
|
|
|
15568 |
}
|
|
|
15569 |
}
|
|
|
15570 |
lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
|
|
|
15571 |
if (lastComparison != 0) {
|
|
|
15572 |
return lastComparison;
|
|
|
15573 |
}
|
|
|
15574 |
if (isSetAmount()) {
|
|
|
15575 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
|
|
|
15576 |
if (lastComparison != 0) {
|
|
|
15577 |
return lastComparison;
|
|
|
15578 |
}
|
|
|
15579 |
}
|
|
|
15580 |
lastComparison = Boolean.valueOf(isSetXferBy()).compareTo(typedOther.isSetXferBy());
|
|
|
15581 |
if (lastComparison != 0) {
|
|
|
15582 |
return lastComparison;
|
|
|
15583 |
}
|
|
|
15584 |
if (isSetXferBy()) {
|
|
|
15585 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferBy, typedOther.xferBy);
|
|
|
15586 |
if (lastComparison != 0) {
|
|
|
15587 |
return lastComparison;
|
|
|
15588 |
}
|
|
|
15589 |
}
|
|
|
15590 |
lastComparison = Boolean.valueOf(isSetXferTxnId()).compareTo(typedOther.isSetXferTxnId());
|
|
|
15591 |
if (lastComparison != 0) {
|
|
|
15592 |
return lastComparison;
|
|
|
15593 |
}
|
|
|
15594 |
if (isSetXferTxnId()) {
|
|
|
15595 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferTxnId, typedOther.xferTxnId);
|
|
|
15596 |
if (lastComparison != 0) {
|
|
|
15597 |
return lastComparison;
|
|
|
15598 |
}
|
|
|
15599 |
}
|
|
|
15600 |
lastComparison = Boolean.valueOf(isSetXferDate()).compareTo(typedOther.isSetXferDate());
|
|
|
15601 |
if (lastComparison != 0) {
|
|
|
15602 |
return lastComparison;
|
|
|
15603 |
}
|
|
|
15604 |
if (isSetXferDate()) {
|
|
|
15605 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferDate, typedOther.xferDate);
|
|
|
15606 |
if (lastComparison != 0) {
|
|
|
15607 |
return lastComparison;
|
|
|
15608 |
}
|
|
|
15609 |
}
|
|
|
15610 |
return 0;
|
|
|
15611 |
}
|
|
|
15612 |
|
|
|
15613 |
public _Fields fieldForId(int fieldId) {
|
|
|
15614 |
return _Fields.findByThriftId(fieldId);
|
|
|
15615 |
}
|
|
|
15616 |
|
|
|
15617 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
15618 |
org.apache.thrift.protocol.TField field;
|
|
|
15619 |
iprot.readStructBegin();
|
|
|
15620 |
while (true)
|
|
|
15621 |
{
|
|
|
15622 |
field = iprot.readFieldBegin();
|
|
|
15623 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
15624 |
break;
|
|
|
15625 |
}
|
|
|
15626 |
switch (field.id) {
|
|
|
15627 |
case 1: // MERCHANT_TXN_ID
|
|
|
15628 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
15629 |
this.merchantTxnId = iprot.readI64();
|
|
|
15630 |
setMerchantTxnIdIsSet(true);
|
|
|
15631 |
} else {
|
|
|
15632 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15633 |
}
|
|
|
15634 |
break;
|
|
|
15635 |
case 2: // AMOUNT
|
|
|
15636 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
15637 |
this.amount = iprot.readDouble();
|
|
|
15638 |
setAmountIsSet(true);
|
|
|
15639 |
} else {
|
|
|
15640 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15641 |
}
|
|
|
15642 |
break;
|
|
|
15643 |
case 3: // XFER_BY
|
|
|
15644 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
15645 |
this.xferBy = iprot.readString();
|
|
|
15646 |
} else {
|
|
|
15647 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15648 |
}
|
|
|
15649 |
break;
|
|
|
15650 |
case 4: // XFER_TXN_ID
|
|
|
15651 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
15652 |
this.xferTxnId = iprot.readString();
|
|
|
15653 |
} else {
|
|
|
15654 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15655 |
}
|
|
|
15656 |
break;
|
|
|
15657 |
case 5: // XFER_DATE
|
|
|
15658 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
15659 |
this.xferDate = iprot.readI64();
|
|
|
15660 |
setXferDateIsSet(true);
|
|
|
15661 |
} else {
|
|
|
15662 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15663 |
}
|
|
|
15664 |
break;
|
|
|
15665 |
default:
|
|
|
15666 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15667 |
}
|
|
|
15668 |
iprot.readFieldEnd();
|
|
|
15669 |
}
|
|
|
15670 |
iprot.readStructEnd();
|
|
|
15671 |
validate();
|
|
|
15672 |
}
|
|
|
15673 |
|
|
|
15674 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15675 |
validate();
|
|
|
15676 |
|
|
|
15677 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15678 |
oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
|
|
|
15679 |
oprot.writeI64(this.merchantTxnId);
|
|
|
15680 |
oprot.writeFieldEnd();
|
|
|
15681 |
oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
|
|
|
15682 |
oprot.writeDouble(this.amount);
|
|
|
15683 |
oprot.writeFieldEnd();
|
|
|
15684 |
if (this.xferBy != null) {
|
|
|
15685 |
oprot.writeFieldBegin(XFER_BY_FIELD_DESC);
|
|
|
15686 |
oprot.writeString(this.xferBy);
|
|
|
15687 |
oprot.writeFieldEnd();
|
|
|
15688 |
}
|
|
|
15689 |
if (this.xferTxnId != null) {
|
|
|
15690 |
oprot.writeFieldBegin(XFER_TXN_ID_FIELD_DESC);
|
|
|
15691 |
oprot.writeString(this.xferTxnId);
|
|
|
15692 |
oprot.writeFieldEnd();
|
|
|
15693 |
}
|
|
|
15694 |
oprot.writeFieldBegin(XFER_DATE_FIELD_DESC);
|
|
|
15695 |
oprot.writeI64(this.xferDate);
|
|
|
15696 |
oprot.writeFieldEnd();
|
|
|
15697 |
oprot.writeFieldStop();
|
|
|
15698 |
oprot.writeStructEnd();
|
|
|
15699 |
}
|
|
|
15700 |
|
|
|
15701 |
@Override
|
|
|
15702 |
public String toString() {
|
|
|
15703 |
StringBuilder sb = new StringBuilder("partiallyCapturePayment_args(");
|
|
|
15704 |
boolean first = true;
|
|
|
15705 |
|
|
|
15706 |
sb.append("merchantTxnId:");
|
|
|
15707 |
sb.append(this.merchantTxnId);
|
|
|
15708 |
first = false;
|
|
|
15709 |
if (!first) sb.append(", ");
|
|
|
15710 |
sb.append("amount:");
|
|
|
15711 |
sb.append(this.amount);
|
|
|
15712 |
first = false;
|
|
|
15713 |
if (!first) sb.append(", ");
|
|
|
15714 |
sb.append("xferBy:");
|
|
|
15715 |
if (this.xferBy == null) {
|
|
|
15716 |
sb.append("null");
|
|
|
15717 |
} else {
|
|
|
15718 |
sb.append(this.xferBy);
|
|
|
15719 |
}
|
|
|
15720 |
first = false;
|
|
|
15721 |
if (!first) sb.append(", ");
|
|
|
15722 |
sb.append("xferTxnId:");
|
|
|
15723 |
if (this.xferTxnId == null) {
|
|
|
15724 |
sb.append("null");
|
|
|
15725 |
} else {
|
|
|
15726 |
sb.append(this.xferTxnId);
|
|
|
15727 |
}
|
|
|
15728 |
first = false;
|
|
|
15729 |
if (!first) sb.append(", ");
|
|
|
15730 |
sb.append("xferDate:");
|
|
|
15731 |
sb.append(this.xferDate);
|
|
|
15732 |
first = false;
|
|
|
15733 |
sb.append(")");
|
|
|
15734 |
return sb.toString();
|
|
|
15735 |
}
|
|
|
15736 |
|
|
|
15737 |
public void validate() throws org.apache.thrift.TException {
|
|
|
15738 |
// check for required fields
|
|
|
15739 |
}
|
|
|
15740 |
|
|
|
15741 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15742 |
try {
|
|
|
15743 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15744 |
} catch (org.apache.thrift.TException te) {
|
|
|
15745 |
throw new java.io.IOException(te);
|
|
|
15746 |
}
|
|
|
15747 |
}
|
|
|
15748 |
|
|
|
15749 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15750 |
try {
|
|
|
15751 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15752 |
} catch (org.apache.thrift.TException te) {
|
|
|
15753 |
throw new java.io.IOException(te);
|
|
|
15754 |
}
|
|
|
15755 |
}
|
|
|
15756 |
|
|
|
15757 |
}
|
|
|
15758 |
|
|
|
15759 |
public static class partiallyCapturePayment_result implements org.apache.thrift.TBase<partiallyCapturePayment_result, partiallyCapturePayment_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
15760 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_result");
|
|
|
15761 |
|
|
|
15762 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
|
|
|
15763 |
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);
|
|
|
15764 |
|
|
|
15765 |
private boolean success; // required
|
|
|
15766 |
private PaymentException pe; // required
|
|
|
15767 |
|
|
|
15768 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15769 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15770 |
SUCCESS((short)0, "success"),
|
|
|
15771 |
PE((short)1, "pe");
|
|
|
15772 |
|
|
|
15773 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15774 |
|
|
|
15775 |
static {
|
|
|
15776 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15777 |
byName.put(field.getFieldName(), field);
|
|
|
15778 |
}
|
|
|
15779 |
}
|
|
|
15780 |
|
|
|
15781 |
/**
|
|
|
15782 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15783 |
*/
|
|
|
15784 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15785 |
switch(fieldId) {
|
|
|
15786 |
case 0: // SUCCESS
|
|
|
15787 |
return SUCCESS;
|
|
|
15788 |
case 1: // PE
|
|
|
15789 |
return PE;
|
|
|
15790 |
default:
|
|
|
15791 |
return null;
|
|
|
15792 |
}
|
|
|
15793 |
}
|
|
|
15794 |
|
|
|
15795 |
/**
|
|
|
15796 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15797 |
* if it is not found.
|
|
|
15798 |
*/
|
|
|
15799 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15800 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15801 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15802 |
return fields;
|
|
|
15803 |
}
|
|
|
15804 |
|
|
|
15805 |
/**
|
|
|
15806 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15807 |
*/
|
|
|
15808 |
public static _Fields findByName(String name) {
|
|
|
15809 |
return byName.get(name);
|
|
|
15810 |
}
|
|
|
15811 |
|
|
|
15812 |
private final short _thriftId;
|
|
|
15813 |
private final String _fieldName;
|
|
|
15814 |
|
|
|
15815 |
_Fields(short thriftId, String fieldName) {
|
|
|
15816 |
_thriftId = thriftId;
|
|
|
15817 |
_fieldName = fieldName;
|
|
|
15818 |
}
|
|
|
15819 |
|
|
|
15820 |
public short getThriftFieldId() {
|
|
|
15821 |
return _thriftId;
|
|
|
15822 |
}
|
|
|
15823 |
|
|
|
15824 |
public String getFieldName() {
|
|
|
15825 |
return _fieldName;
|
|
|
15826 |
}
|
|
|
15827 |
}
|
|
|
15828 |
|
|
|
15829 |
// isset id assignments
|
|
|
15830 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
15831 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
15832 |
|
|
|
15833 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15834 |
static {
|
|
|
15835 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15836 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15837 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
15838 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15839 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
15840 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15841 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_result.class, metaDataMap);
|
|
|
15842 |
}
|
|
|
15843 |
|
|
|
15844 |
public partiallyCapturePayment_result() {
|
|
|
15845 |
}
|
|
|
15846 |
|
|
|
15847 |
public partiallyCapturePayment_result(
|
|
|
15848 |
boolean success,
|
|
|
15849 |
PaymentException pe)
|
|
|
15850 |
{
|
|
|
15851 |
this();
|
|
|
15852 |
this.success = success;
|
|
|
15853 |
setSuccessIsSet(true);
|
|
|
15854 |
this.pe = pe;
|
|
|
15855 |
}
|
|
|
15856 |
|
|
|
15857 |
/**
|
|
|
15858 |
* Performs a deep copy on <i>other</i>.
|
|
|
15859 |
*/
|
|
|
15860 |
public partiallyCapturePayment_result(partiallyCapturePayment_result other) {
|
|
|
15861 |
__isset_bit_vector.clear();
|
|
|
15862 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
15863 |
this.success = other.success;
|
|
|
15864 |
if (other.isSetPe()) {
|
|
|
15865 |
this.pe = new PaymentException(other.pe);
|
|
|
15866 |
}
|
|
|
15867 |
}
|
|
|
15868 |
|
|
|
15869 |
public partiallyCapturePayment_result deepCopy() {
|
|
|
15870 |
return new partiallyCapturePayment_result(this);
|
|
|
15871 |
}
|
|
|
15872 |
|
|
|
15873 |
@Override
|
|
|
15874 |
public void clear() {
|
|
|
15875 |
setSuccessIsSet(false);
|
|
|
15876 |
this.success = false;
|
|
|
15877 |
this.pe = null;
|
|
|
15878 |
}
|
|
|
15879 |
|
|
|
15880 |
public boolean isSuccess() {
|
|
|
15881 |
return this.success;
|
|
|
15882 |
}
|
|
|
15883 |
|
|
|
15884 |
public void setSuccess(boolean success) {
|
|
|
15885 |
this.success = success;
|
|
|
15886 |
setSuccessIsSet(true);
|
|
|
15887 |
}
|
|
|
15888 |
|
|
|
15889 |
public void unsetSuccess() {
|
|
|
15890 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
15891 |
}
|
|
|
15892 |
|
|
|
15893 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
15894 |
public boolean isSetSuccess() {
|
|
|
15895 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
15896 |
}
|
|
|
15897 |
|
|
|
15898 |
public void setSuccessIsSet(boolean value) {
|
|
|
15899 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
15900 |
}
|
|
|
15901 |
|
|
|
15902 |
public PaymentException getPe() {
|
|
|
15903 |
return this.pe;
|
|
|
15904 |
}
|
|
|
15905 |
|
|
|
15906 |
public void setPe(PaymentException pe) {
|
|
|
15907 |
this.pe = pe;
|
|
|
15908 |
}
|
|
|
15909 |
|
|
|
15910 |
public void unsetPe() {
|
|
|
15911 |
this.pe = null;
|
|
|
15912 |
}
|
|
|
15913 |
|
|
|
15914 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
|
|
15915 |
public boolean isSetPe() {
|
|
|
15916 |
return this.pe != null;
|
|
|
15917 |
}
|
|
|
15918 |
|
|
|
15919 |
public void setPeIsSet(boolean value) {
|
|
|
15920 |
if (!value) {
|
|
|
15921 |
this.pe = null;
|
|
|
15922 |
}
|
|
|
15923 |
}
|
|
|
15924 |
|
|
|
15925 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15926 |
switch (field) {
|
|
|
15927 |
case SUCCESS:
|
|
|
15928 |
if (value == null) {
|
|
|
15929 |
unsetSuccess();
|
|
|
15930 |
} else {
|
|
|
15931 |
setSuccess((Boolean)value);
|
|
|
15932 |
}
|
|
|
15933 |
break;
|
|
|
15934 |
|
|
|
15935 |
case PE:
|
|
|
15936 |
if (value == null) {
|
|
|
15937 |
unsetPe();
|
|
|
15938 |
} else {
|
|
|
15939 |
setPe((PaymentException)value);
|
|
|
15940 |
}
|
|
|
15941 |
break;
|
|
|
15942 |
|
|
|
15943 |
}
|
|
|
15944 |
}
|
|
|
15945 |
|
|
|
15946 |
public Object getFieldValue(_Fields field) {
|
|
|
15947 |
switch (field) {
|
|
|
15948 |
case SUCCESS:
|
|
|
15949 |
return Boolean.valueOf(isSuccess());
|
|
|
15950 |
|
|
|
15951 |
case PE:
|
|
|
15952 |
return getPe();
|
|
|
15953 |
|
|
|
15954 |
}
|
|
|
15955 |
throw new IllegalStateException();
|
|
|
15956 |
}
|
|
|
15957 |
|
|
|
15958 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15959 |
public boolean isSet(_Fields field) {
|
|
|
15960 |
if (field == null) {
|
|
|
15961 |
throw new IllegalArgumentException();
|
|
|
15962 |
}
|
|
|
15963 |
|
|
|
15964 |
switch (field) {
|
|
|
15965 |
case SUCCESS:
|
|
|
15966 |
return isSetSuccess();
|
|
|
15967 |
case PE:
|
|
|
15968 |
return isSetPe();
|
|
|
15969 |
}
|
|
|
15970 |
throw new IllegalStateException();
|
|
|
15971 |
}
|
|
|
15972 |
|
|
|
15973 |
@Override
|
|
|
15974 |
public boolean equals(Object that) {
|
|
|
15975 |
if (that == null)
|
|
|
15976 |
return false;
|
|
|
15977 |
if (that instanceof partiallyCapturePayment_result)
|
|
|
15978 |
return this.equals((partiallyCapturePayment_result)that);
|
|
|
15979 |
return false;
|
|
|
15980 |
}
|
|
|
15981 |
|
|
|
15982 |
public boolean equals(partiallyCapturePayment_result that) {
|
|
|
15983 |
if (that == null)
|
|
|
15984 |
return false;
|
|
|
15985 |
|
|
|
15986 |
boolean this_present_success = true;
|
|
|
15987 |
boolean that_present_success = true;
|
|
|
15988 |
if (this_present_success || that_present_success) {
|
|
|
15989 |
if (!(this_present_success && that_present_success))
|
|
|
15990 |
return false;
|
|
|
15991 |
if (this.success != that.success)
|
|
|
15992 |
return false;
|
|
|
15993 |
}
|
|
|
15994 |
|
|
|
15995 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
15996 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
15997 |
if (this_present_pe || that_present_pe) {
|
|
|
15998 |
if (!(this_present_pe && that_present_pe))
|
|
|
15999 |
return false;
|
|
|
16000 |
if (!this.pe.equals(that.pe))
|
|
|
16001 |
return false;
|
|
|
16002 |
}
|
|
|
16003 |
|
|
|
16004 |
return true;
|
|
|
16005 |
}
|
|
|
16006 |
|
|
|
16007 |
@Override
|
|
|
16008 |
public int hashCode() {
|
|
|
16009 |
return 0;
|
|
|
16010 |
}
|
|
|
16011 |
|
|
|
16012 |
public int compareTo(partiallyCapturePayment_result other) {
|
|
|
16013 |
if (!getClass().equals(other.getClass())) {
|
|
|
16014 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16015 |
}
|
|
|
16016 |
|
|
|
16017 |
int lastComparison = 0;
|
|
|
16018 |
partiallyCapturePayment_result typedOther = (partiallyCapturePayment_result)other;
|
|
|
16019 |
|
|
|
16020 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
16021 |
if (lastComparison != 0) {
|
|
|
16022 |
return lastComparison;
|
|
|
16023 |
}
|
|
|
16024 |
if (isSetSuccess()) {
|
|
|
16025 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
16026 |
if (lastComparison != 0) {
|
|
|
16027 |
return lastComparison;
|
|
|
16028 |
}
|
|
|
16029 |
}
|
|
|
16030 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
|
|
16031 |
if (lastComparison != 0) {
|
|
|
16032 |
return lastComparison;
|
|
|
16033 |
}
|
|
|
16034 |
if (isSetPe()) {
|
|
|
16035 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
16036 |
if (lastComparison != 0) {
|
|
|
16037 |
return lastComparison;
|
|
|
16038 |
}
|
|
|
16039 |
}
|
|
|
16040 |
return 0;
|
|
|
16041 |
}
|
|
|
16042 |
|
|
|
16043 |
public _Fields fieldForId(int fieldId) {
|
|
|
16044 |
return _Fields.findByThriftId(fieldId);
|
|
|
16045 |
}
|
|
|
16046 |
|
|
|
16047 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16048 |
org.apache.thrift.protocol.TField field;
|
|
|
16049 |
iprot.readStructBegin();
|
|
|
16050 |
while (true)
|
|
|
16051 |
{
|
|
|
16052 |
field = iprot.readFieldBegin();
|
|
|
16053 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16054 |
break;
|
|
|
16055 |
}
|
|
|
16056 |
switch (field.id) {
|
|
|
16057 |
case 0: // SUCCESS
|
|
|
16058 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
16059 |
this.success = iprot.readBool();
|
|
|
16060 |
setSuccessIsSet(true);
|
|
|
16061 |
} else {
|
|
|
16062 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16063 |
}
|
|
|
16064 |
break;
|
|
|
16065 |
case 1: // PE
|
|
|
16066 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
16067 |
this.pe = new PaymentException();
|
|
|
16068 |
this.pe.read(iprot);
|
|
|
16069 |
} else {
|
|
|
16070 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16071 |
}
|
|
|
16072 |
break;
|
|
|
16073 |
default:
|
|
|
16074 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16075 |
}
|
|
|
16076 |
iprot.readFieldEnd();
|
|
|
16077 |
}
|
|
|
16078 |
iprot.readStructEnd();
|
|
|
16079 |
validate();
|
|
|
16080 |
}
|
|
|
16081 |
|
|
|
16082 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16083 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
16084 |
|
|
|
16085 |
if (this.isSetSuccess()) {
|
|
|
16086 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
16087 |
oprot.writeBool(this.success);
|
|
|
16088 |
oprot.writeFieldEnd();
|
|
|
16089 |
} else if (this.isSetPe()) {
|
|
|
16090 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
16091 |
this.pe.write(oprot);
|
|
|
16092 |
oprot.writeFieldEnd();
|
|
|
16093 |
}
|
|
|
16094 |
oprot.writeFieldStop();
|
|
|
16095 |
oprot.writeStructEnd();
|
|
|
16096 |
}
|
|
|
16097 |
|
|
|
16098 |
@Override
|
|
|
16099 |
public String toString() {
|
|
|
16100 |
StringBuilder sb = new StringBuilder("partiallyCapturePayment_result(");
|
|
|
16101 |
boolean first = true;
|
|
|
16102 |
|
|
|
16103 |
sb.append("success:");
|
|
|
16104 |
sb.append(this.success);
|
|
|
16105 |
first = false;
|
|
|
16106 |
if (!first) sb.append(", ");
|
|
|
16107 |
sb.append("pe:");
|
|
|
16108 |
if (this.pe == null) {
|
|
|
16109 |
sb.append("null");
|
|
|
16110 |
} else {
|
|
|
16111 |
sb.append(this.pe);
|
|
|
16112 |
}
|
|
|
16113 |
first = false;
|
|
|
16114 |
sb.append(")");
|
|
|
16115 |
return sb.toString();
|
|
|
16116 |
}
|
|
|
16117 |
|
|
|
16118 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16119 |
// check for required fields
|
|
|
16120 |
}
|
|
|
16121 |
|
|
|
16122 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16123 |
try {
|
|
|
16124 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16125 |
} catch (org.apache.thrift.TException te) {
|
|
|
16126 |
throw new java.io.IOException(te);
|
|
|
16127 |
}
|
|
|
16128 |
}
|
|
|
16129 |
|
|
|
16130 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16131 |
try {
|
|
|
16132 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16133 |
} catch (org.apache.thrift.TException te) {
|
|
|
16134 |
throw new java.io.IOException(te);
|
|
|
16135 |
}
|
|
|
16136 |
}
|
|
|
16137 |
|
|
|
16138 |
}
|
|
|
16139 |
|
| 4008 |
mandeep.dh |
16140 |
public static class getPaymentsRequiringExtraProcessing_args implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_args, getPaymentsRequiringExtraProcessing_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
16141 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_args");
|
|
|
16142 |
|
|
|
16143 |
private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I32, (short)1);
|
|
|
16144 |
|
|
|
16145 |
private ExtraPaymentProcessingType category; // required
|
|
|
16146 |
|
|
|
16147 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16148 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
16149 |
/**
|
|
|
16150 |
*
|
|
|
16151 |
* @see ExtraPaymentProcessingType
|
|
|
16152 |
*/
|
|
|
16153 |
CATEGORY((short)1, "category");
|
|
|
16154 |
|
|
|
16155 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16156 |
|
|
|
16157 |
static {
|
|
|
16158 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16159 |
byName.put(field.getFieldName(), field);
|
|
|
16160 |
}
|
|
|
16161 |
}
|
|
|
16162 |
|
|
|
16163 |
/**
|
|
|
16164 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16165 |
*/
|
|
|
16166 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16167 |
switch(fieldId) {
|
|
|
16168 |
case 1: // CATEGORY
|
|
|
16169 |
return CATEGORY;
|
|
|
16170 |
default:
|
|
|
16171 |
return null;
|
|
|
16172 |
}
|
|
|
16173 |
}
|
|
|
16174 |
|
|
|
16175 |
/**
|
|
|
16176 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16177 |
* if it is not found.
|
|
|
16178 |
*/
|
|
|
16179 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16180 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16181 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16182 |
return fields;
|
|
|
16183 |
}
|
|
|
16184 |
|
|
|
16185 |
/**
|
|
|
16186 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16187 |
*/
|
|
|
16188 |
public static _Fields findByName(String name) {
|
|
|
16189 |
return byName.get(name);
|
|
|
16190 |
}
|
|
|
16191 |
|
|
|
16192 |
private final short _thriftId;
|
|
|
16193 |
private final String _fieldName;
|
|
|
16194 |
|
|
|
16195 |
_Fields(short thriftId, String fieldName) {
|
|
|
16196 |
_thriftId = thriftId;
|
|
|
16197 |
_fieldName = fieldName;
|
|
|
16198 |
}
|
|
|
16199 |
|
|
|
16200 |
public short getThriftFieldId() {
|
|
|
16201 |
return _thriftId;
|
|
|
16202 |
}
|
|
|
16203 |
|
|
|
16204 |
public String getFieldName() {
|
|
|
16205 |
return _fieldName;
|
|
|
16206 |
}
|
|
|
16207 |
}
|
|
|
16208 |
|
|
|
16209 |
// isset id assignments
|
|
|
16210 |
|
|
|
16211 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
16212 |
static {
|
|
|
16213 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
16214 |
tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
16215 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
|
|
|
16216 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
16217 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_args.class, metaDataMap);
|
|
|
16218 |
}
|
|
|
16219 |
|
|
|
16220 |
public getPaymentsRequiringExtraProcessing_args() {
|
|
|
16221 |
}
|
|
|
16222 |
|
|
|
16223 |
public getPaymentsRequiringExtraProcessing_args(
|
|
|
16224 |
ExtraPaymentProcessingType category)
|
|
|
16225 |
{
|
|
|
16226 |
this();
|
|
|
16227 |
this.category = category;
|
|
|
16228 |
}
|
|
|
16229 |
|
|
|
16230 |
/**
|
|
|
16231 |
* Performs a deep copy on <i>other</i>.
|
|
|
16232 |
*/
|
|
|
16233 |
public getPaymentsRequiringExtraProcessing_args(getPaymentsRequiringExtraProcessing_args other) {
|
|
|
16234 |
if (other.isSetCategory()) {
|
|
|
16235 |
this.category = other.category;
|
|
|
16236 |
}
|
|
|
16237 |
}
|
|
|
16238 |
|
|
|
16239 |
public getPaymentsRequiringExtraProcessing_args deepCopy() {
|
|
|
16240 |
return new getPaymentsRequiringExtraProcessing_args(this);
|
|
|
16241 |
}
|
|
|
16242 |
|
|
|
16243 |
@Override
|
|
|
16244 |
public void clear() {
|
|
|
16245 |
this.category = null;
|
|
|
16246 |
}
|
|
|
16247 |
|
|
|
16248 |
/**
|
|
|
16249 |
*
|
|
|
16250 |
* @see ExtraPaymentProcessingType
|
|
|
16251 |
*/
|
|
|
16252 |
public ExtraPaymentProcessingType getCategory() {
|
|
|
16253 |
return this.category;
|
|
|
16254 |
}
|
|
|
16255 |
|
|
|
16256 |
/**
|
|
|
16257 |
*
|
|
|
16258 |
* @see ExtraPaymentProcessingType
|
|
|
16259 |
*/
|
|
|
16260 |
public void setCategory(ExtraPaymentProcessingType category) {
|
|
|
16261 |
this.category = category;
|
|
|
16262 |
}
|
|
|
16263 |
|
|
|
16264 |
public void unsetCategory() {
|
|
|
16265 |
this.category = null;
|
|
|
16266 |
}
|
|
|
16267 |
|
|
|
16268 |
/** Returns true if field category is set (has been assigned a value) and false otherwise */
|
|
|
16269 |
public boolean isSetCategory() {
|
|
|
16270 |
return this.category != null;
|
|
|
16271 |
}
|
|
|
16272 |
|
|
|
16273 |
public void setCategoryIsSet(boolean value) {
|
|
|
16274 |
if (!value) {
|
|
|
16275 |
this.category = null;
|
|
|
16276 |
}
|
|
|
16277 |
}
|
|
|
16278 |
|
|
|
16279 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
16280 |
switch (field) {
|
|
|
16281 |
case CATEGORY:
|
|
|
16282 |
if (value == null) {
|
|
|
16283 |
unsetCategory();
|
|
|
16284 |
} else {
|
|
|
16285 |
setCategory((ExtraPaymentProcessingType)value);
|
|
|
16286 |
}
|
|
|
16287 |
break;
|
|
|
16288 |
|
|
|
16289 |
}
|
|
|
16290 |
}
|
|
|
16291 |
|
|
|
16292 |
public Object getFieldValue(_Fields field) {
|
|
|
16293 |
switch (field) {
|
|
|
16294 |
case CATEGORY:
|
|
|
16295 |
return getCategory();
|
|
|
16296 |
|
|
|
16297 |
}
|
|
|
16298 |
throw new IllegalStateException();
|
|
|
16299 |
}
|
|
|
16300 |
|
|
|
16301 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
16302 |
public boolean isSet(_Fields field) {
|
|
|
16303 |
if (field == null) {
|
|
|
16304 |
throw new IllegalArgumentException();
|
|
|
16305 |
}
|
|
|
16306 |
|
|
|
16307 |
switch (field) {
|
|
|
16308 |
case CATEGORY:
|
|
|
16309 |
return isSetCategory();
|
|
|
16310 |
}
|
|
|
16311 |
throw new IllegalStateException();
|
|
|
16312 |
}
|
|
|
16313 |
|
|
|
16314 |
@Override
|
|
|
16315 |
public boolean equals(Object that) {
|
|
|
16316 |
if (that == null)
|
|
|
16317 |
return false;
|
|
|
16318 |
if (that instanceof getPaymentsRequiringExtraProcessing_args)
|
|
|
16319 |
return this.equals((getPaymentsRequiringExtraProcessing_args)that);
|
|
|
16320 |
return false;
|
|
|
16321 |
}
|
|
|
16322 |
|
|
|
16323 |
public boolean equals(getPaymentsRequiringExtraProcessing_args that) {
|
|
|
16324 |
if (that == null)
|
|
|
16325 |
return false;
|
|
|
16326 |
|
|
|
16327 |
boolean this_present_category = true && this.isSetCategory();
|
|
|
16328 |
boolean that_present_category = true && that.isSetCategory();
|
|
|
16329 |
if (this_present_category || that_present_category) {
|
|
|
16330 |
if (!(this_present_category && that_present_category))
|
|
|
16331 |
return false;
|
|
|
16332 |
if (!this.category.equals(that.category))
|
|
|
16333 |
return false;
|
|
|
16334 |
}
|
|
|
16335 |
|
|
|
16336 |
return true;
|
|
|
16337 |
}
|
|
|
16338 |
|
|
|
16339 |
@Override
|
|
|
16340 |
public int hashCode() {
|
|
|
16341 |
return 0;
|
|
|
16342 |
}
|
|
|
16343 |
|
|
|
16344 |
public int compareTo(getPaymentsRequiringExtraProcessing_args other) {
|
|
|
16345 |
if (!getClass().equals(other.getClass())) {
|
|
|
16346 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16347 |
}
|
|
|
16348 |
|
|
|
16349 |
int lastComparison = 0;
|
|
|
16350 |
getPaymentsRequiringExtraProcessing_args typedOther = (getPaymentsRequiringExtraProcessing_args)other;
|
|
|
16351 |
|
|
|
16352 |
lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
|
|
|
16353 |
if (lastComparison != 0) {
|
|
|
16354 |
return lastComparison;
|
|
|
16355 |
}
|
|
|
16356 |
if (isSetCategory()) {
|
|
|
16357 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
|
|
|
16358 |
if (lastComparison != 0) {
|
|
|
16359 |
return lastComparison;
|
|
|
16360 |
}
|
|
|
16361 |
}
|
|
|
16362 |
return 0;
|
|
|
16363 |
}
|
|
|
16364 |
|
|
|
16365 |
public _Fields fieldForId(int fieldId) {
|
|
|
16366 |
return _Fields.findByThriftId(fieldId);
|
|
|
16367 |
}
|
|
|
16368 |
|
|
|
16369 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16370 |
org.apache.thrift.protocol.TField field;
|
|
|
16371 |
iprot.readStructBegin();
|
|
|
16372 |
while (true)
|
|
|
16373 |
{
|
|
|
16374 |
field = iprot.readFieldBegin();
|
|
|
16375 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16376 |
break;
|
|
|
16377 |
}
|
|
|
16378 |
switch (field.id) {
|
|
|
16379 |
case 1: // CATEGORY
|
|
|
16380 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
16381 |
this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
|
|
|
16382 |
} else {
|
|
|
16383 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16384 |
}
|
|
|
16385 |
break;
|
|
|
16386 |
default:
|
|
|
16387 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16388 |
}
|
|
|
16389 |
iprot.readFieldEnd();
|
|
|
16390 |
}
|
|
|
16391 |
iprot.readStructEnd();
|
|
|
16392 |
validate();
|
|
|
16393 |
}
|
|
|
16394 |
|
|
|
16395 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16396 |
validate();
|
|
|
16397 |
|
|
|
16398 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
16399 |
if (this.category != null) {
|
|
|
16400 |
oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
|
|
|
16401 |
oprot.writeI32(this.category.getValue());
|
|
|
16402 |
oprot.writeFieldEnd();
|
|
|
16403 |
}
|
|
|
16404 |
oprot.writeFieldStop();
|
|
|
16405 |
oprot.writeStructEnd();
|
|
|
16406 |
}
|
|
|
16407 |
|
|
|
16408 |
@Override
|
|
|
16409 |
public String toString() {
|
|
|
16410 |
StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_args(");
|
|
|
16411 |
boolean first = true;
|
|
|
16412 |
|
|
|
16413 |
sb.append("category:");
|
|
|
16414 |
if (this.category == null) {
|
|
|
16415 |
sb.append("null");
|
|
|
16416 |
} else {
|
|
|
16417 |
sb.append(this.category);
|
|
|
16418 |
}
|
|
|
16419 |
first = false;
|
|
|
16420 |
sb.append(")");
|
|
|
16421 |
return sb.toString();
|
|
|
16422 |
}
|
|
|
16423 |
|
|
|
16424 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16425 |
// check for required fields
|
|
|
16426 |
}
|
|
|
16427 |
|
|
|
16428 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16429 |
try {
|
|
|
16430 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16431 |
} catch (org.apache.thrift.TException te) {
|
|
|
16432 |
throw new java.io.IOException(te);
|
|
|
16433 |
}
|
|
|
16434 |
}
|
|
|
16435 |
|
|
|
16436 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16437 |
try {
|
|
|
16438 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16439 |
} catch (org.apache.thrift.TException te) {
|
|
|
16440 |
throw new java.io.IOException(te);
|
|
|
16441 |
}
|
|
|
16442 |
}
|
|
|
16443 |
|
|
|
16444 |
}
|
|
|
16445 |
|
|
|
16446 |
public static class getPaymentsRequiringExtraProcessing_result implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_result, getPaymentsRequiringExtraProcessing_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
16447 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_result");
|
|
|
16448 |
|
|
|
16449 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
|
|
16450 |
|
|
|
16451 |
private List<Long> success; // required
|
|
|
16452 |
|
|
|
16453 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16454 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
16455 |
SUCCESS((short)0, "success");
|
|
|
16456 |
|
|
|
16457 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16458 |
|
|
|
16459 |
static {
|
|
|
16460 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16461 |
byName.put(field.getFieldName(), field);
|
|
|
16462 |
}
|
|
|
16463 |
}
|
|
|
16464 |
|
|
|
16465 |
/**
|
|
|
16466 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16467 |
*/
|
|
|
16468 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16469 |
switch(fieldId) {
|
|
|
16470 |
case 0: // SUCCESS
|
|
|
16471 |
return SUCCESS;
|
|
|
16472 |
default:
|
|
|
16473 |
return null;
|
|
|
16474 |
}
|
|
|
16475 |
}
|
|
|
16476 |
|
|
|
16477 |
/**
|
|
|
16478 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16479 |
* if it is not found.
|
|
|
16480 |
*/
|
|
|
16481 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16482 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16483 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16484 |
return fields;
|
|
|
16485 |
}
|
|
|
16486 |
|
|
|
16487 |
/**
|
|
|
16488 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16489 |
*/
|
|
|
16490 |
public static _Fields findByName(String name) {
|
|
|
16491 |
return byName.get(name);
|
|
|
16492 |
}
|
|
|
16493 |
|
|
|
16494 |
private final short _thriftId;
|
|
|
16495 |
private final String _fieldName;
|
|
|
16496 |
|
|
|
16497 |
_Fields(short thriftId, String fieldName) {
|
|
|
16498 |
_thriftId = thriftId;
|
|
|
16499 |
_fieldName = fieldName;
|
|
|
16500 |
}
|
|
|
16501 |
|
|
|
16502 |
public short getThriftFieldId() {
|
|
|
16503 |
return _thriftId;
|
|
|
16504 |
}
|
|
|
16505 |
|
|
|
16506 |
public String getFieldName() {
|
|
|
16507 |
return _fieldName;
|
|
|
16508 |
}
|
|
|
16509 |
}
|
|
|
16510 |
|
|
|
16511 |
// isset id assignments
|
|
|
16512 |
|
|
|
16513 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
16514 |
static {
|
|
|
16515 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
16516 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
16517 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
16518 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
|
|
|
16519 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
16520 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_result.class, metaDataMap);
|
|
|
16521 |
}
|
|
|
16522 |
|
|
|
16523 |
public getPaymentsRequiringExtraProcessing_result() {
|
|
|
16524 |
}
|
|
|
16525 |
|
|
|
16526 |
public getPaymentsRequiringExtraProcessing_result(
|
|
|
16527 |
List<Long> success)
|
|
|
16528 |
{
|
|
|
16529 |
this();
|
|
|
16530 |
this.success = success;
|
|
|
16531 |
}
|
|
|
16532 |
|
|
|
16533 |
/**
|
|
|
16534 |
* Performs a deep copy on <i>other</i>.
|
|
|
16535 |
*/
|
|
|
16536 |
public getPaymentsRequiringExtraProcessing_result(getPaymentsRequiringExtraProcessing_result other) {
|
|
|
16537 |
if (other.isSetSuccess()) {
|
|
|
16538 |
List<Long> __this__success = new ArrayList<Long>();
|
|
|
16539 |
for (Long other_element : other.success) {
|
|
|
16540 |
__this__success.add(other_element);
|
|
|
16541 |
}
|
|
|
16542 |
this.success = __this__success;
|
|
|
16543 |
}
|
|
|
16544 |
}
|
|
|
16545 |
|
|
|
16546 |
public getPaymentsRequiringExtraProcessing_result deepCopy() {
|
|
|
16547 |
return new getPaymentsRequiringExtraProcessing_result(this);
|
|
|
16548 |
}
|
|
|
16549 |
|
|
|
16550 |
@Override
|
|
|
16551 |
public void clear() {
|
|
|
16552 |
this.success = null;
|
|
|
16553 |
}
|
|
|
16554 |
|
|
|
16555 |
public int getSuccessSize() {
|
|
|
16556 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
16557 |
}
|
|
|
16558 |
|
|
|
16559 |
public java.util.Iterator<Long> getSuccessIterator() {
|
|
|
16560 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
16561 |
}
|
|
|
16562 |
|
|
|
16563 |
public void addToSuccess(long elem) {
|
|
|
16564 |
if (this.success == null) {
|
|
|
16565 |
this.success = new ArrayList<Long>();
|
|
|
16566 |
}
|
|
|
16567 |
this.success.add(elem);
|
|
|
16568 |
}
|
|
|
16569 |
|
|
|
16570 |
public List<Long> getSuccess() {
|
|
|
16571 |
return this.success;
|
|
|
16572 |
}
|
|
|
16573 |
|
|
|
16574 |
public void setSuccess(List<Long> success) {
|
|
|
16575 |
this.success = success;
|
|
|
16576 |
}
|
|
|
16577 |
|
|
|
16578 |
public void unsetSuccess() {
|
|
|
16579 |
this.success = null;
|
|
|
16580 |
}
|
|
|
16581 |
|
|
|
16582 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
16583 |
public boolean isSetSuccess() {
|
|
|
16584 |
return this.success != null;
|
|
|
16585 |
}
|
|
|
16586 |
|
|
|
16587 |
public void setSuccessIsSet(boolean value) {
|
|
|
16588 |
if (!value) {
|
|
|
16589 |
this.success = null;
|
|
|
16590 |
}
|
|
|
16591 |
}
|
|
|
16592 |
|
|
|
16593 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
16594 |
switch (field) {
|
|
|
16595 |
case SUCCESS:
|
|
|
16596 |
if (value == null) {
|
|
|
16597 |
unsetSuccess();
|
|
|
16598 |
} else {
|
|
|
16599 |
setSuccess((List<Long>)value);
|
|
|
16600 |
}
|
|
|
16601 |
break;
|
|
|
16602 |
|
|
|
16603 |
}
|
|
|
16604 |
}
|
|
|
16605 |
|
|
|
16606 |
public Object getFieldValue(_Fields field) {
|
|
|
16607 |
switch (field) {
|
|
|
16608 |
case SUCCESS:
|
|
|
16609 |
return getSuccess();
|
|
|
16610 |
|
|
|
16611 |
}
|
|
|
16612 |
throw new IllegalStateException();
|
|
|
16613 |
}
|
|
|
16614 |
|
|
|
16615 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
16616 |
public boolean isSet(_Fields field) {
|
|
|
16617 |
if (field == null) {
|
|
|
16618 |
throw new IllegalArgumentException();
|
|
|
16619 |
}
|
|
|
16620 |
|
|
|
16621 |
switch (field) {
|
|
|
16622 |
case SUCCESS:
|
|
|
16623 |
return isSetSuccess();
|
|
|
16624 |
}
|
|
|
16625 |
throw new IllegalStateException();
|
|
|
16626 |
}
|
|
|
16627 |
|
|
|
16628 |
@Override
|
|
|
16629 |
public boolean equals(Object that) {
|
|
|
16630 |
if (that == null)
|
|
|
16631 |
return false;
|
|
|
16632 |
if (that instanceof getPaymentsRequiringExtraProcessing_result)
|
|
|
16633 |
return this.equals((getPaymentsRequiringExtraProcessing_result)that);
|
|
|
16634 |
return false;
|
|
|
16635 |
}
|
|
|
16636 |
|
|
|
16637 |
public boolean equals(getPaymentsRequiringExtraProcessing_result that) {
|
|
|
16638 |
if (that == null)
|
|
|
16639 |
return false;
|
|
|
16640 |
|
|
|
16641 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
16642 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
16643 |
if (this_present_success || that_present_success) {
|
|
|
16644 |
if (!(this_present_success && that_present_success))
|
|
|
16645 |
return false;
|
|
|
16646 |
if (!this.success.equals(that.success))
|
|
|
16647 |
return false;
|
|
|
16648 |
}
|
|
|
16649 |
|
|
|
16650 |
return true;
|
|
|
16651 |
}
|
|
|
16652 |
|
|
|
16653 |
@Override
|
|
|
16654 |
public int hashCode() {
|
|
|
16655 |
return 0;
|
|
|
16656 |
}
|
|
|
16657 |
|
|
|
16658 |
public int compareTo(getPaymentsRequiringExtraProcessing_result other) {
|
|
|
16659 |
if (!getClass().equals(other.getClass())) {
|
|
|
16660 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16661 |
}
|
|
|
16662 |
|
|
|
16663 |
int lastComparison = 0;
|
|
|
16664 |
getPaymentsRequiringExtraProcessing_result typedOther = (getPaymentsRequiringExtraProcessing_result)other;
|
|
|
16665 |
|
|
|
16666 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
16667 |
if (lastComparison != 0) {
|
|
|
16668 |
return lastComparison;
|
|
|
16669 |
}
|
|
|
16670 |
if (isSetSuccess()) {
|
|
|
16671 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
16672 |
if (lastComparison != 0) {
|
|
|
16673 |
return lastComparison;
|
|
|
16674 |
}
|
|
|
16675 |
}
|
|
|
16676 |
return 0;
|
|
|
16677 |
}
|
|
|
16678 |
|
|
|
16679 |
public _Fields fieldForId(int fieldId) {
|
|
|
16680 |
return _Fields.findByThriftId(fieldId);
|
|
|
16681 |
}
|
|
|
16682 |
|
|
|
16683 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16684 |
org.apache.thrift.protocol.TField field;
|
|
|
16685 |
iprot.readStructBegin();
|
|
|
16686 |
while (true)
|
|
|
16687 |
{
|
|
|
16688 |
field = iprot.readFieldBegin();
|
|
|
16689 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16690 |
break;
|
|
|
16691 |
}
|
|
|
16692 |
switch (field.id) {
|
|
|
16693 |
case 0: // SUCCESS
|
|
|
16694 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
16695 |
{
|
| 4600 |
varun.gupt |
16696 |
org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
|
|
|
16697 |
this.success = new ArrayList<Long>(_list40.size);
|
|
|
16698 |
for (int _i41 = 0; _i41 < _list40.size; ++_i41)
|
| 4008 |
mandeep.dh |
16699 |
{
|
| 4600 |
varun.gupt |
16700 |
long _elem42; // required
|
|
|
16701 |
_elem42 = iprot.readI64();
|
|
|
16702 |
this.success.add(_elem42);
|
| 4008 |
mandeep.dh |
16703 |
}
|
|
|
16704 |
iprot.readListEnd();
|
|
|
16705 |
}
|
|
|
16706 |
} else {
|
|
|
16707 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16708 |
}
|
|
|
16709 |
break;
|
|
|
16710 |
default:
|
|
|
16711 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16712 |
}
|
|
|
16713 |
iprot.readFieldEnd();
|
|
|
16714 |
}
|
|
|
16715 |
iprot.readStructEnd();
|
|
|
16716 |
validate();
|
|
|
16717 |
}
|
|
|
16718 |
|
|
|
16719 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16720 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
16721 |
|
|
|
16722 |
if (this.isSetSuccess()) {
|
|
|
16723 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
16724 |
{
|
|
|
16725 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
|
| 4600 |
varun.gupt |
16726 |
for (long _iter43 : this.success)
|
| 4008 |
mandeep.dh |
16727 |
{
|
| 4600 |
varun.gupt |
16728 |
oprot.writeI64(_iter43);
|
| 4008 |
mandeep.dh |
16729 |
}
|
|
|
16730 |
oprot.writeListEnd();
|
|
|
16731 |
}
|
|
|
16732 |
oprot.writeFieldEnd();
|
|
|
16733 |
}
|
|
|
16734 |
oprot.writeFieldStop();
|
|
|
16735 |
oprot.writeStructEnd();
|
|
|
16736 |
}
|
|
|
16737 |
|
|
|
16738 |
@Override
|
|
|
16739 |
public String toString() {
|
|
|
16740 |
StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_result(");
|
|
|
16741 |
boolean first = true;
|
|
|
16742 |
|
|
|
16743 |
sb.append("success:");
|
|
|
16744 |
if (this.success == null) {
|
|
|
16745 |
sb.append("null");
|
|
|
16746 |
} else {
|
|
|
16747 |
sb.append(this.success);
|
|
|
16748 |
}
|
|
|
16749 |
first = false;
|
|
|
16750 |
sb.append(")");
|
|
|
16751 |
return sb.toString();
|
|
|
16752 |
}
|
|
|
16753 |
|
|
|
16754 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16755 |
// check for required fields
|
|
|
16756 |
}
|
|
|
16757 |
|
|
|
16758 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16759 |
try {
|
|
|
16760 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16761 |
} catch (org.apache.thrift.TException te) {
|
|
|
16762 |
throw new java.io.IOException(te);
|
|
|
16763 |
}
|
|
|
16764 |
}
|
|
|
16765 |
|
|
|
16766 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16767 |
try {
|
|
|
16768 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16769 |
} catch (org.apache.thrift.TException te) {
|
|
|
16770 |
throw new java.io.IOException(te);
|
|
|
16771 |
}
|
|
|
16772 |
}
|
|
|
16773 |
|
|
|
16774 |
}
|
|
|
16775 |
|
|
|
16776 |
public static class markPaymentAsProcessed_args implements org.apache.thrift.TBase<markPaymentAsProcessed_args, markPaymentAsProcessed_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
16777 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_args");
|
|
|
16778 |
|
|
|
16779 |
private static final org.apache.thrift.protocol.TField PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
16780 |
private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I32, (short)2);
|
|
|
16781 |
|
|
|
16782 |
private long paymentId; // required
|
|
|
16783 |
private ExtraPaymentProcessingType category; // required
|
|
|
16784 |
|
|
|
16785 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16786 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
16787 |
PAYMENT_ID((short)1, "paymentId"),
|
|
|
16788 |
/**
|
|
|
16789 |
*
|
|
|
16790 |
* @see ExtraPaymentProcessingType
|
|
|
16791 |
*/
|
|
|
16792 |
CATEGORY((short)2, "category");
|
|
|
16793 |
|
|
|
16794 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16795 |
|
|
|
16796 |
static {
|
|
|
16797 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16798 |
byName.put(field.getFieldName(), field);
|
|
|
16799 |
}
|
|
|
16800 |
}
|
|
|
16801 |
|
|
|
16802 |
/**
|
|
|
16803 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16804 |
*/
|
|
|
16805 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16806 |
switch(fieldId) {
|
|
|
16807 |
case 1: // PAYMENT_ID
|
|
|
16808 |
return PAYMENT_ID;
|
|
|
16809 |
case 2: // CATEGORY
|
|
|
16810 |
return CATEGORY;
|
|
|
16811 |
default:
|
|
|
16812 |
return null;
|
|
|
16813 |
}
|
|
|
16814 |
}
|
|
|
16815 |
|
|
|
16816 |
/**
|
|
|
16817 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16818 |
* if it is not found.
|
|
|
16819 |
*/
|
|
|
16820 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16821 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16822 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16823 |
return fields;
|
|
|
16824 |
}
|
|
|
16825 |
|
|
|
16826 |
/**
|
|
|
16827 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16828 |
*/
|
|
|
16829 |
public static _Fields findByName(String name) {
|
|
|
16830 |
return byName.get(name);
|
|
|
16831 |
}
|
|
|
16832 |
|
|
|
16833 |
private final short _thriftId;
|
|
|
16834 |
private final String _fieldName;
|
|
|
16835 |
|
|
|
16836 |
_Fields(short thriftId, String fieldName) {
|
|
|
16837 |
_thriftId = thriftId;
|
|
|
16838 |
_fieldName = fieldName;
|
|
|
16839 |
}
|
|
|
16840 |
|
|
|
16841 |
public short getThriftFieldId() {
|
|
|
16842 |
return _thriftId;
|
|
|
16843 |
}
|
|
|
16844 |
|
|
|
16845 |
public String getFieldName() {
|
|
|
16846 |
return _fieldName;
|
|
|
16847 |
}
|
|
|
16848 |
}
|
|
|
16849 |
|
|
|
16850 |
// isset id assignments
|
|
|
16851 |
private static final int __PAYMENTID_ISSET_ID = 0;
|
|
|
16852 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
16853 |
|
|
|
16854 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
16855 |
static {
|
|
|
16856 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
16857 |
tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
16858 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
16859 |
tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
16860 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
|
|
|
16861 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
16862 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_args.class, metaDataMap);
|
|
|
16863 |
}
|
|
|
16864 |
|
|
|
16865 |
public markPaymentAsProcessed_args() {
|
|
|
16866 |
}
|
|
|
16867 |
|
|
|
16868 |
public markPaymentAsProcessed_args(
|
|
|
16869 |
long paymentId,
|
|
|
16870 |
ExtraPaymentProcessingType category)
|
|
|
16871 |
{
|
|
|
16872 |
this();
|
|
|
16873 |
this.paymentId = paymentId;
|
|
|
16874 |
setPaymentIdIsSet(true);
|
|
|
16875 |
this.category = category;
|
|
|
16876 |
}
|
|
|
16877 |
|
|
|
16878 |
/**
|
|
|
16879 |
* Performs a deep copy on <i>other</i>.
|
|
|
16880 |
*/
|
|
|
16881 |
public markPaymentAsProcessed_args(markPaymentAsProcessed_args other) {
|
|
|
16882 |
__isset_bit_vector.clear();
|
|
|
16883 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
16884 |
this.paymentId = other.paymentId;
|
|
|
16885 |
if (other.isSetCategory()) {
|
|
|
16886 |
this.category = other.category;
|
|
|
16887 |
}
|
|
|
16888 |
}
|
|
|
16889 |
|
|
|
16890 |
public markPaymentAsProcessed_args deepCopy() {
|
|
|
16891 |
return new markPaymentAsProcessed_args(this);
|
|
|
16892 |
}
|
|
|
16893 |
|
|
|
16894 |
@Override
|
|
|
16895 |
public void clear() {
|
|
|
16896 |
setPaymentIdIsSet(false);
|
|
|
16897 |
this.paymentId = 0;
|
|
|
16898 |
this.category = null;
|
|
|
16899 |
}
|
|
|
16900 |
|
|
|
16901 |
public long getPaymentId() {
|
|
|
16902 |
return this.paymentId;
|
|
|
16903 |
}
|
|
|
16904 |
|
|
|
16905 |
public void setPaymentId(long paymentId) {
|
|
|
16906 |
this.paymentId = paymentId;
|
|
|
16907 |
setPaymentIdIsSet(true);
|
|
|
16908 |
}
|
|
|
16909 |
|
|
|
16910 |
public void unsetPaymentId() {
|
|
|
16911 |
__isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
|
|
|
16912 |
}
|
|
|
16913 |
|
|
|
16914 |
/** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
|
|
|
16915 |
public boolean isSetPaymentId() {
|
|
|
16916 |
return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
|
|
|
16917 |
}
|
|
|
16918 |
|
|
|
16919 |
public void setPaymentIdIsSet(boolean value) {
|
|
|
16920 |
__isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
|
|
|
16921 |
}
|
|
|
16922 |
|
|
|
16923 |
/**
|
|
|
16924 |
*
|
|
|
16925 |
* @see ExtraPaymentProcessingType
|
|
|
16926 |
*/
|
|
|
16927 |
public ExtraPaymentProcessingType getCategory() {
|
|
|
16928 |
return this.category;
|
|
|
16929 |
}
|
|
|
16930 |
|
|
|
16931 |
/**
|
|
|
16932 |
*
|
|
|
16933 |
* @see ExtraPaymentProcessingType
|
|
|
16934 |
*/
|
|
|
16935 |
public void setCategory(ExtraPaymentProcessingType category) {
|
|
|
16936 |
this.category = category;
|
|
|
16937 |
}
|
|
|
16938 |
|
|
|
16939 |
public void unsetCategory() {
|
|
|
16940 |
this.category = null;
|
|
|
16941 |
}
|
|
|
16942 |
|
|
|
16943 |
/** Returns true if field category is set (has been assigned a value) and false otherwise */
|
|
|
16944 |
public boolean isSetCategory() {
|
|
|
16945 |
return this.category != null;
|
|
|
16946 |
}
|
|
|
16947 |
|
|
|
16948 |
public void setCategoryIsSet(boolean value) {
|
|
|
16949 |
if (!value) {
|
|
|
16950 |
this.category = null;
|
|
|
16951 |
}
|
|
|
16952 |
}
|
|
|
16953 |
|
|
|
16954 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
16955 |
switch (field) {
|
|
|
16956 |
case PAYMENT_ID:
|
|
|
16957 |
if (value == null) {
|
|
|
16958 |
unsetPaymentId();
|
|
|
16959 |
} else {
|
|
|
16960 |
setPaymentId((Long)value);
|
|
|
16961 |
}
|
|
|
16962 |
break;
|
|
|
16963 |
|
|
|
16964 |
case CATEGORY:
|
|
|
16965 |
if (value == null) {
|
|
|
16966 |
unsetCategory();
|
|
|
16967 |
} else {
|
|
|
16968 |
setCategory((ExtraPaymentProcessingType)value);
|
|
|
16969 |
}
|
|
|
16970 |
break;
|
|
|
16971 |
|
|
|
16972 |
}
|
|
|
16973 |
}
|
|
|
16974 |
|
|
|
16975 |
public Object getFieldValue(_Fields field) {
|
|
|
16976 |
switch (field) {
|
|
|
16977 |
case PAYMENT_ID:
|
|
|
16978 |
return Long.valueOf(getPaymentId());
|
|
|
16979 |
|
|
|
16980 |
case CATEGORY:
|
|
|
16981 |
return getCategory();
|
|
|
16982 |
|
|
|
16983 |
}
|
|
|
16984 |
throw new IllegalStateException();
|
|
|
16985 |
}
|
|
|
16986 |
|
|
|
16987 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
16988 |
public boolean isSet(_Fields field) {
|
|
|
16989 |
if (field == null) {
|
|
|
16990 |
throw new IllegalArgumentException();
|
|
|
16991 |
}
|
|
|
16992 |
|
|
|
16993 |
switch (field) {
|
|
|
16994 |
case PAYMENT_ID:
|
|
|
16995 |
return isSetPaymentId();
|
|
|
16996 |
case CATEGORY:
|
|
|
16997 |
return isSetCategory();
|
|
|
16998 |
}
|
|
|
16999 |
throw new IllegalStateException();
|
|
|
17000 |
}
|
|
|
17001 |
|
|
|
17002 |
@Override
|
|
|
17003 |
public boolean equals(Object that) {
|
|
|
17004 |
if (that == null)
|
|
|
17005 |
return false;
|
|
|
17006 |
if (that instanceof markPaymentAsProcessed_args)
|
|
|
17007 |
return this.equals((markPaymentAsProcessed_args)that);
|
|
|
17008 |
return false;
|
|
|
17009 |
}
|
|
|
17010 |
|
|
|
17011 |
public boolean equals(markPaymentAsProcessed_args that) {
|
|
|
17012 |
if (that == null)
|
|
|
17013 |
return false;
|
|
|
17014 |
|
|
|
17015 |
boolean this_present_paymentId = true;
|
|
|
17016 |
boolean that_present_paymentId = true;
|
|
|
17017 |
if (this_present_paymentId || that_present_paymentId) {
|
|
|
17018 |
if (!(this_present_paymentId && that_present_paymentId))
|
|
|
17019 |
return false;
|
|
|
17020 |
if (this.paymentId != that.paymentId)
|
|
|
17021 |
return false;
|
|
|
17022 |
}
|
|
|
17023 |
|
|
|
17024 |
boolean this_present_category = true && this.isSetCategory();
|
|
|
17025 |
boolean that_present_category = true && that.isSetCategory();
|
|
|
17026 |
if (this_present_category || that_present_category) {
|
|
|
17027 |
if (!(this_present_category && that_present_category))
|
|
|
17028 |
return false;
|
|
|
17029 |
if (!this.category.equals(that.category))
|
|
|
17030 |
return false;
|
|
|
17031 |
}
|
|
|
17032 |
|
|
|
17033 |
return true;
|
|
|
17034 |
}
|
|
|
17035 |
|
|
|
17036 |
@Override
|
|
|
17037 |
public int hashCode() {
|
|
|
17038 |
return 0;
|
|
|
17039 |
}
|
|
|
17040 |
|
|
|
17041 |
public int compareTo(markPaymentAsProcessed_args other) {
|
|
|
17042 |
if (!getClass().equals(other.getClass())) {
|
|
|
17043 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
17044 |
}
|
|
|
17045 |
|
|
|
17046 |
int lastComparison = 0;
|
|
|
17047 |
markPaymentAsProcessed_args typedOther = (markPaymentAsProcessed_args)other;
|
|
|
17048 |
|
|
|
17049 |
lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
|
|
|
17050 |
if (lastComparison != 0) {
|
|
|
17051 |
return lastComparison;
|
|
|
17052 |
}
|
|
|
17053 |
if (isSetPaymentId()) {
|
|
|
17054 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
|
|
|
17055 |
if (lastComparison != 0) {
|
|
|
17056 |
return lastComparison;
|
|
|
17057 |
}
|
|
|
17058 |
}
|
|
|
17059 |
lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
|
|
|
17060 |
if (lastComparison != 0) {
|
|
|
17061 |
return lastComparison;
|
|
|
17062 |
}
|
|
|
17063 |
if (isSetCategory()) {
|
|
|
17064 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
|
|
|
17065 |
if (lastComparison != 0) {
|
|
|
17066 |
return lastComparison;
|
|
|
17067 |
}
|
|
|
17068 |
}
|
|
|
17069 |
return 0;
|
|
|
17070 |
}
|
|
|
17071 |
|
|
|
17072 |
public _Fields fieldForId(int fieldId) {
|
|
|
17073 |
return _Fields.findByThriftId(fieldId);
|
|
|
17074 |
}
|
|
|
17075 |
|
|
|
17076 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
17077 |
org.apache.thrift.protocol.TField field;
|
|
|
17078 |
iprot.readStructBegin();
|
|
|
17079 |
while (true)
|
|
|
17080 |
{
|
|
|
17081 |
field = iprot.readFieldBegin();
|
|
|
17082 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
17083 |
break;
|
|
|
17084 |
}
|
|
|
17085 |
switch (field.id) {
|
|
|
17086 |
case 1: // PAYMENT_ID
|
|
|
17087 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
17088 |
this.paymentId = iprot.readI64();
|
|
|
17089 |
setPaymentIdIsSet(true);
|
|
|
17090 |
} else {
|
|
|
17091 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17092 |
}
|
|
|
17093 |
break;
|
|
|
17094 |
case 2: // CATEGORY
|
|
|
17095 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
17096 |
this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
|
|
|
17097 |
} else {
|
|
|
17098 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17099 |
}
|
|
|
17100 |
break;
|
|
|
17101 |
default:
|
|
|
17102 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17103 |
}
|
|
|
17104 |
iprot.readFieldEnd();
|
|
|
17105 |
}
|
|
|
17106 |
iprot.readStructEnd();
|
|
|
17107 |
validate();
|
|
|
17108 |
}
|
|
|
17109 |
|
|
|
17110 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
17111 |
validate();
|
|
|
17112 |
|
|
|
17113 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
17114 |
oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
|
|
|
17115 |
oprot.writeI64(this.paymentId);
|
|
|
17116 |
oprot.writeFieldEnd();
|
|
|
17117 |
if (this.category != null) {
|
|
|
17118 |
oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
|
|
|
17119 |
oprot.writeI32(this.category.getValue());
|
|
|
17120 |
oprot.writeFieldEnd();
|
|
|
17121 |
}
|
|
|
17122 |
oprot.writeFieldStop();
|
|
|
17123 |
oprot.writeStructEnd();
|
|
|
17124 |
}
|
|
|
17125 |
|
|
|
17126 |
@Override
|
|
|
17127 |
public String toString() {
|
|
|
17128 |
StringBuilder sb = new StringBuilder("markPaymentAsProcessed_args(");
|
|
|
17129 |
boolean first = true;
|
|
|
17130 |
|
|
|
17131 |
sb.append("paymentId:");
|
|
|
17132 |
sb.append(this.paymentId);
|
|
|
17133 |
first = false;
|
|
|
17134 |
if (!first) sb.append(", ");
|
|
|
17135 |
sb.append("category:");
|
|
|
17136 |
if (this.category == null) {
|
|
|
17137 |
sb.append("null");
|
|
|
17138 |
} else {
|
|
|
17139 |
sb.append(this.category);
|
|
|
17140 |
}
|
|
|
17141 |
first = false;
|
|
|
17142 |
sb.append(")");
|
|
|
17143 |
return sb.toString();
|
|
|
17144 |
}
|
|
|
17145 |
|
|
|
17146 |
public void validate() throws org.apache.thrift.TException {
|
|
|
17147 |
// check for required fields
|
|
|
17148 |
}
|
|
|
17149 |
|
|
|
17150 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
17151 |
try {
|
|
|
17152 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
17153 |
} catch (org.apache.thrift.TException te) {
|
|
|
17154 |
throw new java.io.IOException(te);
|
|
|
17155 |
}
|
|
|
17156 |
}
|
|
|
17157 |
|
|
|
17158 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
17159 |
try {
|
|
|
17160 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
17161 |
} catch (org.apache.thrift.TException te) {
|
|
|
17162 |
throw new java.io.IOException(te);
|
|
|
17163 |
}
|
|
|
17164 |
}
|
|
|
17165 |
|
|
|
17166 |
}
|
|
|
17167 |
|
|
|
17168 |
public static class markPaymentAsProcessed_result implements org.apache.thrift.TBase<markPaymentAsProcessed_result, markPaymentAsProcessed_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
17169 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_result");
|
|
|
17170 |
|
|
|
17171 |
|
|
|
17172 |
|
|
|
17173 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
17174 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
17175 |
;
|
|
|
17176 |
|
|
|
17177 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
17178 |
|
|
|
17179 |
static {
|
|
|
17180 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
17181 |
byName.put(field.getFieldName(), field);
|
|
|
17182 |
}
|
|
|
17183 |
}
|
|
|
17184 |
|
|
|
17185 |
/**
|
|
|
17186 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
17187 |
*/
|
|
|
17188 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
17189 |
switch(fieldId) {
|
|
|
17190 |
default:
|
|
|
17191 |
return null;
|
|
|
17192 |
}
|
|
|
17193 |
}
|
|
|
17194 |
|
|
|
17195 |
/**
|
|
|
17196 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
17197 |
* if it is not found.
|
|
|
17198 |
*/
|
|
|
17199 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
17200 |
_Fields fields = findByThriftId(fieldId);
|
|
|
17201 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
17202 |
return fields;
|
|
|
17203 |
}
|
|
|
17204 |
|
|
|
17205 |
/**
|
|
|
17206 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
17207 |
*/
|
|
|
17208 |
public static _Fields findByName(String name) {
|
|
|
17209 |
return byName.get(name);
|
|
|
17210 |
}
|
|
|
17211 |
|
|
|
17212 |
private final short _thriftId;
|
|
|
17213 |
private final String _fieldName;
|
|
|
17214 |
|
|
|
17215 |
_Fields(short thriftId, String fieldName) {
|
|
|
17216 |
_thriftId = thriftId;
|
|
|
17217 |
_fieldName = fieldName;
|
|
|
17218 |
}
|
|
|
17219 |
|
|
|
17220 |
public short getThriftFieldId() {
|
|
|
17221 |
return _thriftId;
|
|
|
17222 |
}
|
|
|
17223 |
|
|
|
17224 |
public String getFieldName() {
|
|
|
17225 |
return _fieldName;
|
|
|
17226 |
}
|
|
|
17227 |
}
|
|
|
17228 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
17229 |
static {
|
|
|
17230 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
17231 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
17232 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_result.class, metaDataMap);
|
|
|
17233 |
}
|
|
|
17234 |
|
|
|
17235 |
public markPaymentAsProcessed_result() {
|
|
|
17236 |
}
|
|
|
17237 |
|
|
|
17238 |
/**
|
|
|
17239 |
* Performs a deep copy on <i>other</i>.
|
|
|
17240 |
*/
|
|
|
17241 |
public markPaymentAsProcessed_result(markPaymentAsProcessed_result other) {
|
|
|
17242 |
}
|
|
|
17243 |
|
|
|
17244 |
public markPaymentAsProcessed_result deepCopy() {
|
|
|
17245 |
return new markPaymentAsProcessed_result(this);
|
|
|
17246 |
}
|
|
|
17247 |
|
|
|
17248 |
@Override
|
|
|
17249 |
public void clear() {
|
|
|
17250 |
}
|
|
|
17251 |
|
|
|
17252 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
17253 |
switch (field) {
|
|
|
17254 |
}
|
|
|
17255 |
}
|
|
|
17256 |
|
|
|
17257 |
public Object getFieldValue(_Fields field) {
|
|
|
17258 |
switch (field) {
|
|
|
17259 |
}
|
|
|
17260 |
throw new IllegalStateException();
|
|
|
17261 |
}
|
|
|
17262 |
|
|
|
17263 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
17264 |
public boolean isSet(_Fields field) {
|
|
|
17265 |
if (field == null) {
|
|
|
17266 |
throw new IllegalArgumentException();
|
|
|
17267 |
}
|
|
|
17268 |
|
|
|
17269 |
switch (field) {
|
|
|
17270 |
}
|
|
|
17271 |
throw new IllegalStateException();
|
|
|
17272 |
}
|
|
|
17273 |
|
|
|
17274 |
@Override
|
|
|
17275 |
public boolean equals(Object that) {
|
|
|
17276 |
if (that == null)
|
|
|
17277 |
return false;
|
|
|
17278 |
if (that instanceof markPaymentAsProcessed_result)
|
|
|
17279 |
return this.equals((markPaymentAsProcessed_result)that);
|
|
|
17280 |
return false;
|
|
|
17281 |
}
|
|
|
17282 |
|
|
|
17283 |
public boolean equals(markPaymentAsProcessed_result that) {
|
|
|
17284 |
if (that == null)
|
|
|
17285 |
return false;
|
|
|
17286 |
|
|
|
17287 |
return true;
|
|
|
17288 |
}
|
|
|
17289 |
|
|
|
17290 |
@Override
|
|
|
17291 |
public int hashCode() {
|
|
|
17292 |
return 0;
|
|
|
17293 |
}
|
|
|
17294 |
|
|
|
17295 |
public int compareTo(markPaymentAsProcessed_result other) {
|
|
|
17296 |
if (!getClass().equals(other.getClass())) {
|
|
|
17297 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
17298 |
}
|
|
|
17299 |
|
|
|
17300 |
int lastComparison = 0;
|
|
|
17301 |
markPaymentAsProcessed_result typedOther = (markPaymentAsProcessed_result)other;
|
|
|
17302 |
|
|
|
17303 |
return 0;
|
|
|
17304 |
}
|
|
|
17305 |
|
|
|
17306 |
public _Fields fieldForId(int fieldId) {
|
|
|
17307 |
return _Fields.findByThriftId(fieldId);
|
|
|
17308 |
}
|
|
|
17309 |
|
|
|
17310 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
17311 |
org.apache.thrift.protocol.TField field;
|
|
|
17312 |
iprot.readStructBegin();
|
|
|
17313 |
while (true)
|
|
|
17314 |
{
|
|
|
17315 |
field = iprot.readFieldBegin();
|
|
|
17316 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
17317 |
break;
|
|
|
17318 |
}
|
|
|
17319 |
switch (field.id) {
|
|
|
17320 |
default:
|
|
|
17321 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17322 |
}
|
|
|
17323 |
iprot.readFieldEnd();
|
|
|
17324 |
}
|
|
|
17325 |
iprot.readStructEnd();
|
|
|
17326 |
validate();
|
|
|
17327 |
}
|
|
|
17328 |
|
|
|
17329 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
17330 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
17331 |
|
|
|
17332 |
oprot.writeFieldStop();
|
|
|
17333 |
oprot.writeStructEnd();
|
|
|
17334 |
}
|
|
|
17335 |
|
|
|
17336 |
@Override
|
|
|
17337 |
public String toString() {
|
|
|
17338 |
StringBuilder sb = new StringBuilder("markPaymentAsProcessed_result(");
|
|
|
17339 |
boolean first = true;
|
|
|
17340 |
|
|
|
17341 |
sb.append(")");
|
|
|
17342 |
return sb.toString();
|
|
|
17343 |
}
|
|
|
17344 |
|
|
|
17345 |
public void validate() throws org.apache.thrift.TException {
|
|
|
17346 |
// check for required fields
|
|
|
17347 |
}
|
|
|
17348 |
|
|
|
17349 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
17350 |
try {
|
|
|
17351 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
17352 |
} catch (org.apache.thrift.TException te) {
|
|
|
17353 |
throw new java.io.IOException(te);
|
|
|
17354 |
}
|
|
|
17355 |
}
|
|
|
17356 |
|
|
|
17357 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
17358 |
try {
|
|
|
17359 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
17360 |
} catch (org.apache.thrift.TException te) {
|
|
|
17361 |
throw new java.io.IOException(te);
|
|
|
17362 |
}
|
|
|
17363 |
}
|
|
|
17364 |
|
|
|
17365 |
}
|
|
|
17366 |
|
| 123 |
ashish |
17367 |
}
|