| 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 |
*
|
|
|
31 |
* @param userId
|
|
|
32 |
* @param amount
|
|
|
33 |
* @param gatewayId
|
|
|
34 |
* @param txnId
|
|
|
35 |
*/
|
| 3430 |
rajveer |
36 |
public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, org.apache.thrift.TException;
|
| 123 |
ashish |
37 |
|
| 695 |
rajveer |
38 |
/**
|
|
|
39 |
* get payment for user. If status and gateway are null, it is ignored. Same for times as well.
|
|
|
40 |
*
|
|
|
41 |
*
|
|
|
42 |
* @param userId
|
|
|
43 |
* @param fromTime
|
|
|
44 |
* @param toTime
|
|
|
45 |
* @param status
|
|
|
46 |
* @param gatewayId
|
|
|
47 |
*/
|
| 3430 |
rajveer |
48 |
public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
|
| 123 |
ashish |
49 |
|
| 695 |
rajveer |
50 |
/**
|
| 2060 |
ankur.sing |
51 |
* get all payments for user. If gatewayId is 0, then it is ignored while filtering.
|
| 695 |
rajveer |
52 |
*
|
| 1855 |
chandransh |
53 |
*
|
| 695 |
rajveer |
54 |
* @param fromTime
|
|
|
55 |
* @param toTime
|
|
|
56 |
* @param status
|
|
|
57 |
* @param gatewayId
|
|
|
58 |
*/
|
| 3430 |
rajveer |
59 |
public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
|
| 123 |
ashish |
60 |
|
| 695 |
rajveer |
61 |
/**
|
|
|
62 |
* Get a particular gateway
|
|
|
63 |
*
|
|
|
64 |
*
|
|
|
65 |
* @param id
|
|
|
66 |
*/
|
| 3430 |
rajveer |
67 |
public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException;
|
| 420 |
ashish |
68 |
|
| 695 |
rajveer |
69 |
/**
|
|
|
70 |
* Get a particular payment info
|
|
|
71 |
*
|
|
|
72 |
*
|
|
|
73 |
* @param id
|
|
|
74 |
*/
|
| 3430 |
rajveer |
75 |
public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException;
|
| 420 |
ashish |
76 |
|
| 695 |
rajveer |
77 |
/**
|
|
|
78 |
* Get a particular payment for a transaction. Will raise exception.
|
|
|
79 |
*
|
|
|
80 |
*
|
|
|
81 |
* @param txnId
|
|
|
82 |
*/
|
| 3430 |
rajveer |
83 |
public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
|
| 420 |
ashish |
84 |
|
| 695 |
rajveer |
85 |
/**
|
|
|
86 |
* mark payment successful and store parameters
|
|
|
87 |
*
|
|
|
88 |
*
|
|
|
89 |
* @param id
|
|
|
90 |
* @param gatewayPaymentId
|
|
|
91 |
* @param sessionId
|
|
|
92 |
* @param gatewayTxnStatus
|
|
|
93 |
* @param description
|
|
|
94 |
* @param gatewayTxnId
|
|
|
95 |
* @param authCode
|
|
|
96 |
* @param referenceCode
|
|
|
97 |
* @param errorCode
|
|
|
98 |
* @param status
|
| 1119 |
rajveer |
99 |
* @param gatewayTxnDate
|
| 695 |
rajveer |
100 |
* @param attributes
|
|
|
101 |
*/
|
| 3430 |
rajveer |
102 |
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 |
103 |
|
| 1629 |
ankur.sing |
104 |
/**
|
| 1731 |
ankur.sing |
105 |
* Returns the minimum and maximum amounts among successful payments.
|
|
|
106 |
* List contains two double values, first minimum and second maximum amount.
|
| 1629 |
ankur.sing |
107 |
*/
|
| 3430 |
rajveer |
108 |
public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException;
|
| 1629 |
ankur.sing |
109 |
|
| 2462 |
chandransh |
110 |
/**
|
| 2708 |
chandransh |
111 |
* Captures an already authorized EBS Payment and returns a map containing the details of the captured transaction
|
| 2462 |
chandransh |
112 |
*
|
|
|
113 |
* @param merchantPaymentId
|
|
|
114 |
*/
|
| 3430 |
rajveer |
115 |
public Map<String,String> captureEbsPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
|
| 2708 |
chandransh |
116 |
|
|
|
117 |
/**
|
|
|
118 |
* Captures an already authorized Hdfc Payment and returns a map containing the details of the captured transaction
|
|
|
119 |
*
|
|
|
120 |
* @param merchantPaymentId
|
|
|
121 |
*/
|
| 3430 |
rajveer |
122 |
public Map<String,String> captureHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
|
| 2462 |
chandransh |
123 |
|
|
|
124 |
/**
|
|
|
125 |
* Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
|
|
|
126 |
* In case of any processing error, an exception is raised.
|
|
|
127 |
*
|
|
|
128 |
* @param merchantPaymentId
|
|
|
129 |
*/
|
| 3430 |
rajveer |
130 |
public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
|
| 2462 |
chandransh |
131 |
|
| 2690 |
chandransh |
132 |
/**
|
|
|
133 |
* Create a refund of the given amount corresponding to the given order to be processed through the same
|
|
|
134 |
* payment gateway which processed the payment for the corresponding transaction.
|
|
|
135 |
* Returns the id of the newly created Refund.
|
|
|
136 |
*
|
|
|
137 |
* @param orderId
|
|
|
138 |
* @param merchantTxnId
|
|
|
139 |
* @param amount
|
|
|
140 |
*/
|
| 3430 |
rajveer |
141 |
public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException;
|
| 2690 |
chandransh |
142 |
|
| 3010 |
chandransh |
143 |
/**
|
|
|
144 |
* Capture the payment for the given merchant transaction id. It processes the last payment for the given
|
|
|
145 |
* transaction. If the capture attempt failed, the payment is marked as failed.
|
|
|
146 |
*
|
|
|
147 |
* @param merchantTxnId
|
|
|
148 |
*/
|
| 3430 |
rajveer |
149 |
public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException;
|
| 3010 |
chandransh |
150 |
|
| 123 |
ashish |
151 |
}
|
|
|
152 |
|
| 3430 |
rajveer |
153 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
154 |
|
|
|
155 |
public void createPayment(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
156 |
|
|
|
157 |
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;
|
|
|
158 |
|
|
|
159 |
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;
|
|
|
160 |
|
|
|
161 |
public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
162 |
|
|
|
163 |
public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
164 |
|
|
|
165 |
public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
166 |
|
|
|
167 |
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;
|
|
|
168 |
|
|
|
169 |
public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
170 |
|
|
|
171 |
public void captureEbsPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.captureEbsPayment_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
172 |
|
|
|
173 |
public void captureHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.captureHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
174 |
|
|
|
175 |
public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
176 |
|
|
|
177 |
public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
178 |
|
|
|
179 |
public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
180 |
|
|
|
181 |
}
|
|
|
182 |
|
| 3374 |
rajveer |
183 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 3430 |
rajveer |
184 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
185 |
public Factory() {}
|
|
|
186 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
187 |
return new Client(prot);
|
|
|
188 |
}
|
|
|
189 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
190 |
return new Client(iprot, oprot);
|
|
|
191 |
}
|
|
|
192 |
}
|
|
|
193 |
|
|
|
194 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
| 123 |
ashish |
195 |
{
|
| 3430 |
rajveer |
196 |
super(prot, prot);
|
| 123 |
ashish |
197 |
}
|
|
|
198 |
|
| 3430 |
rajveer |
199 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 3374 |
rajveer |
200 |
super(iprot, oprot);
|
| 123 |
ashish |
201 |
}
|
|
|
202 |
|
| 3430 |
rajveer |
203 |
public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, org.apache.thrift.TException
|
| 123 |
ashish |
204 |
{
|
| 695 |
rajveer |
205 |
send_createPayment(userId, amount, gatewayId, txnId);
|
| 123 |
ashish |
206 |
return recv_createPayment();
|
|
|
207 |
}
|
|
|
208 |
|
| 3430 |
rajveer |
209 |
public void send_createPayment(long userId, double amount, long gatewayId, long txnId) throws org.apache.thrift.TException
|
| 123 |
ashish |
210 |
{
|
|
|
211 |
createPayment_args args = new createPayment_args();
|
| 3430 |
rajveer |
212 |
args.setUserId(userId);
|
|
|
213 |
args.setAmount(amount);
|
|
|
214 |
args.setGatewayId(gatewayId);
|
|
|
215 |
args.setTxnId(txnId);
|
|
|
216 |
sendBase("createPayment", args);
|
| 123 |
ashish |
217 |
}
|
|
|
218 |
|
| 3430 |
rajveer |
219 |
public long recv_createPayment() throws PaymentException, org.apache.thrift.TException
|
| 123 |
ashish |
220 |
{
|
|
|
221 |
createPayment_result result = new createPayment_result();
|
| 3430 |
rajveer |
222 |
receiveBase(result, "createPayment");
|
| 123 |
ashish |
223 |
if (result.isSetSuccess()) {
|
|
|
224 |
return result.success;
|
|
|
225 |
}
|
|
|
226 |
if (result.pe != null) {
|
|
|
227 |
throw result.pe;
|
|
|
228 |
}
|
| 3430 |
rajveer |
229 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
|
| 123 |
ashish |
230 |
}
|
|
|
231 |
|
| 3430 |
rajveer |
232 |
public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
|
| 123 |
ashish |
233 |
{
|
| 695 |
rajveer |
234 |
send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId);
|
| 123 |
ashish |
235 |
return recv_getPaymentsForUser();
|
|
|
236 |
}
|
|
|
237 |
|
| 3430 |
rajveer |
238 |
public void send_getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
|
| 123 |
ashish |
239 |
{
|
|
|
240 |
getPaymentsForUser_args args = new getPaymentsForUser_args();
|
| 3430 |
rajveer |
241 |
args.setUserId(userId);
|
|
|
242 |
args.setFromTime(fromTime);
|
|
|
243 |
args.setToTime(toTime);
|
|
|
244 |
args.setStatus(status);
|
|
|
245 |
args.setGatewayId(gatewayId);
|
|
|
246 |
sendBase("getPaymentsForUser", args);
|
| 123 |
ashish |
247 |
}
|
|
|
248 |
|
| 3430 |
rajveer |
249 |
public List<Payment> recv_getPaymentsForUser() throws PaymentException, org.apache.thrift.TException
|
| 123 |
ashish |
250 |
{
|
|
|
251 |
getPaymentsForUser_result result = new getPaymentsForUser_result();
|
| 3430 |
rajveer |
252 |
receiveBase(result, "getPaymentsForUser");
|
| 123 |
ashish |
253 |
if (result.isSetSuccess()) {
|
|
|
254 |
return result.success;
|
|
|
255 |
}
|
|
|
256 |
if (result.pe != null) {
|
|
|
257 |
throw result.pe;
|
|
|
258 |
}
|
| 3430 |
rajveer |
259 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
|
| 123 |
ashish |
260 |
}
|
|
|
261 |
|
| 3430 |
rajveer |
262 |
public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
|
| 123 |
ashish |
263 |
{
|
| 695 |
rajveer |
264 |
send_getPayments(fromTime, toTime, status, gatewayId);
|
| 123 |
ashish |
265 |
return recv_getPayments();
|
|
|
266 |
}
|
|
|
267 |
|
| 3430 |
rajveer |
268 |
public void send_getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
|
| 123 |
ashish |
269 |
{
|
|
|
270 |
getPayments_args args = new getPayments_args();
|
| 3430 |
rajveer |
271 |
args.setFromTime(fromTime);
|
|
|
272 |
args.setToTime(toTime);
|
|
|
273 |
args.setStatus(status);
|
|
|
274 |
args.setGatewayId(gatewayId);
|
|
|
275 |
sendBase("getPayments", args);
|
| 123 |
ashish |
276 |
}
|
|
|
277 |
|
| 3430 |
rajveer |
278 |
public List<Payment> recv_getPayments() throws PaymentException, org.apache.thrift.TException
|
| 123 |
ashish |
279 |
{
|
|
|
280 |
getPayments_result result = new getPayments_result();
|
| 3430 |
rajveer |
281 |
receiveBase(result, "getPayments");
|
| 123 |
ashish |
282 |
if (result.isSetSuccess()) {
|
|
|
283 |
return result.success;
|
|
|
284 |
}
|
|
|
285 |
if (result.pe != null) {
|
|
|
286 |
throw result.pe;
|
|
|
287 |
}
|
| 3430 |
rajveer |
288 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
|
| 123 |
ashish |
289 |
}
|
|
|
290 |
|
| 3430 |
rajveer |
291 |
public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
292 |
{
|
|
|
293 |
send_getPaymentGateway(id);
|
|
|
294 |
return recv_getPaymentGateway();
|
|
|
295 |
}
|
|
|
296 |
|
| 3430 |
rajveer |
297 |
public void send_getPaymentGateway(long id) throws org.apache.thrift.TException
|
| 420 |
ashish |
298 |
{
|
|
|
299 |
getPaymentGateway_args args = new getPaymentGateway_args();
|
| 3430 |
rajveer |
300 |
args.setId(id);
|
|
|
301 |
sendBase("getPaymentGateway", args);
|
| 420 |
ashish |
302 |
}
|
|
|
303 |
|
| 3430 |
rajveer |
304 |
public PaymentGateway recv_getPaymentGateway() throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
305 |
{
|
|
|
306 |
getPaymentGateway_result result = new getPaymentGateway_result();
|
| 3430 |
rajveer |
307 |
receiveBase(result, "getPaymentGateway");
|
| 420 |
ashish |
308 |
if (result.isSetSuccess()) {
|
|
|
309 |
return result.success;
|
|
|
310 |
}
|
|
|
311 |
if (result.pe != null) {
|
|
|
312 |
throw result.pe;
|
|
|
313 |
}
|
| 3430 |
rajveer |
314 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
|
| 420 |
ashish |
315 |
}
|
|
|
316 |
|
| 3430 |
rajveer |
317 |
public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
318 |
{
|
| 695 |
rajveer |
319 |
send_getPayment(id);
|
|
|
320 |
return recv_getPayment();
|
| 420 |
ashish |
321 |
}
|
|
|
322 |
|
| 3430 |
rajveer |
323 |
public void send_getPayment(long id) throws org.apache.thrift.TException
|
| 420 |
ashish |
324 |
{
|
| 695 |
rajveer |
325 |
getPayment_args args = new getPayment_args();
|
| 3430 |
rajveer |
326 |
args.setId(id);
|
|
|
327 |
sendBase("getPayment", args);
|
| 420 |
ashish |
328 |
}
|
|
|
329 |
|
| 3430 |
rajveer |
330 |
public Payment recv_getPayment() throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
331 |
{
|
| 695 |
rajveer |
332 |
getPayment_result result = new getPayment_result();
|
| 3430 |
rajveer |
333 |
receiveBase(result, "getPayment");
|
| 695 |
rajveer |
334 |
if (result.isSetSuccess()) {
|
|
|
335 |
return result.success;
|
|
|
336 |
}
|
| 420 |
ashish |
337 |
if (result.pe != null) {
|
|
|
338 |
throw result.pe;
|
|
|
339 |
}
|
| 3430 |
rajveer |
340 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
|
| 420 |
ashish |
341 |
}
|
|
|
342 |
|
| 3430 |
rajveer |
343 |
public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
344 |
{
|
| 695 |
rajveer |
345 |
send_getPaymentForTxnId(txnId);
|
|
|
346 |
return recv_getPaymentForTxnId();
|
| 420 |
ashish |
347 |
}
|
|
|
348 |
|
| 3430 |
rajveer |
349 |
public void send_getPaymentForTxnId(long txnId) throws org.apache.thrift.TException
|
| 420 |
ashish |
350 |
{
|
| 695 |
rajveer |
351 |
getPaymentForTxnId_args args = new getPaymentForTxnId_args();
|
| 3430 |
rajveer |
352 |
args.setTxnId(txnId);
|
|
|
353 |
sendBase("getPaymentForTxnId", args);
|
| 420 |
ashish |
354 |
}
|
|
|
355 |
|
| 3430 |
rajveer |
356 |
public List<Payment> recv_getPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
357 |
{
|
| 695 |
rajveer |
358 |
getPaymentForTxnId_result result = new getPaymentForTxnId_result();
|
| 3430 |
rajveer |
359 |
receiveBase(result, "getPaymentForTxnId");
|
| 420 |
ashish |
360 |
if (result.isSetSuccess()) {
|
|
|
361 |
return result.success;
|
|
|
362 |
}
|
|
|
363 |
if (result.pe != null) {
|
|
|
364 |
throw result.pe;
|
|
|
365 |
}
|
| 3430 |
rajveer |
366 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
|
| 420 |
ashish |
367 |
}
|
|
|
368 |
|
| 3430 |
rajveer |
369 |
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 |
370 |
{
|
| 1119 |
rajveer |
371 |
send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes);
|
| 695 |
rajveer |
372 |
return recv_updatePaymentDetails();
|
| 420 |
ashish |
373 |
}
|
|
|
374 |
|
| 3430 |
rajveer |
375 |
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 |
376 |
{
|
| 695 |
rajveer |
377 |
updatePaymentDetails_args args = new updatePaymentDetails_args();
|
| 3430 |
rajveer |
378 |
args.setId(id);
|
|
|
379 |
args.setGatewayPaymentId(gatewayPaymentId);
|
|
|
380 |
args.setSessionId(sessionId);
|
|
|
381 |
args.setGatewayTxnStatus(gatewayTxnStatus);
|
|
|
382 |
args.setDescription(description);
|
|
|
383 |
args.setGatewayTxnId(gatewayTxnId);
|
|
|
384 |
args.setAuthCode(authCode);
|
|
|
385 |
args.setReferenceCode(referenceCode);
|
|
|
386 |
args.setErrorCode(errorCode);
|
|
|
387 |
args.setStatus(status);
|
|
|
388 |
args.setGatewayTxnDate(gatewayTxnDate);
|
|
|
389 |
args.setAttributes(attributes);
|
|
|
390 |
sendBase("updatePaymentDetails", args);
|
| 420 |
ashish |
391 |
}
|
|
|
392 |
|
| 3430 |
rajveer |
393 |
public boolean recv_updatePaymentDetails() throws PaymentException, org.apache.thrift.TException
|
| 420 |
ashish |
394 |
{
|
| 695 |
rajveer |
395 |
updatePaymentDetails_result result = new updatePaymentDetails_result();
|
| 3430 |
rajveer |
396 |
receiveBase(result, "updatePaymentDetails");
|
| 695 |
rajveer |
397 |
if (result.isSetSuccess()) {
|
|
|
398 |
return result.success;
|
|
|
399 |
}
|
| 420 |
ashish |
400 |
if (result.pe != null) {
|
|
|
401 |
throw result.pe;
|
|
|
402 |
}
|
| 3430 |
rajveer |
403 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
|
| 420 |
ashish |
404 |
}
|
|
|
405 |
|
| 3430 |
rajveer |
406 |
public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
|
| 1629 |
ankur.sing |
407 |
{
|
| 1731 |
ankur.sing |
408 |
send_getSuccessfulPaymentsAmountRange();
|
|
|
409 |
return recv_getSuccessfulPaymentsAmountRange();
|
| 1629 |
ankur.sing |
410 |
}
|
|
|
411 |
|
| 3430 |
rajveer |
412 |
public void send_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
|
| 1629 |
ankur.sing |
413 |
{
|
| 1731 |
ankur.sing |
414 |
getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
|
| 3430 |
rajveer |
415 |
sendBase("getSuccessfulPaymentsAmountRange", args);
|
| 1629 |
ankur.sing |
416 |
}
|
|
|
417 |
|
| 3430 |
rajveer |
418 |
public List<Double> recv_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
|
| 1629 |
ankur.sing |
419 |
{
|
| 1731 |
ankur.sing |
420 |
getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
|
| 3430 |
rajveer |
421 |
receiveBase(result, "getSuccessfulPaymentsAmountRange");
|
| 1629 |
ankur.sing |
422 |
if (result.isSetSuccess()) {
|
|
|
423 |
return result.success;
|
|
|
424 |
}
|
| 3430 |
rajveer |
425 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
|
| 1629 |
ankur.sing |
426 |
}
|
|
|
427 |
|
| 3430 |
rajveer |
428 |
public Map<String,String> captureEbsPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
|
| 2708 |
chandransh |
429 |
{
|
|
|
430 |
send_captureEbsPayment(merchantPaymentId);
|
|
|
431 |
return recv_captureEbsPayment();
|
|
|
432 |
}
|
|
|
433 |
|
| 3430 |
rajveer |
434 |
public void send_captureEbsPayment(long merchantPaymentId) throws org.apache.thrift.TException
|
| 2708 |
chandransh |
435 |
{
|
|
|
436 |
captureEbsPayment_args args = new captureEbsPayment_args();
|
| 3430 |
rajveer |
437 |
args.setMerchantPaymentId(merchantPaymentId);
|
|
|
438 |
sendBase("captureEbsPayment", args);
|
| 2708 |
chandransh |
439 |
}
|
|
|
440 |
|
| 3430 |
rajveer |
441 |
public Map<String,String> recv_captureEbsPayment() throws PaymentException, org.apache.thrift.TException
|
| 2708 |
chandransh |
442 |
{
|
|
|
443 |
captureEbsPayment_result result = new captureEbsPayment_result();
|
| 3430 |
rajveer |
444 |
receiveBase(result, "captureEbsPayment");
|
| 2708 |
chandransh |
445 |
if (result.isSetSuccess()) {
|
|
|
446 |
return result.success;
|
|
|
447 |
}
|
|
|
448 |
if (result.pe != null) {
|
|
|
449 |
throw result.pe;
|
|
|
450 |
}
|
| 3430 |
rajveer |
451 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "captureEbsPayment failed: unknown result");
|
| 2708 |
chandransh |
452 |
}
|
|
|
453 |
|
| 3430 |
rajveer |
454 |
public Map<String,String> captureHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
|
| 2462 |
chandransh |
455 |
{
|
|
|
456 |
send_captureHdfcPayment(merchantPaymentId);
|
|
|
457 |
return recv_captureHdfcPayment();
|
|
|
458 |
}
|
|
|
459 |
|
| 3430 |
rajveer |
460 |
public void send_captureHdfcPayment(long merchantPaymentId) throws org.apache.thrift.TException
|
| 2462 |
chandransh |
461 |
{
|
|
|
462 |
captureHdfcPayment_args args = new captureHdfcPayment_args();
|
| 3430 |
rajveer |
463 |
args.setMerchantPaymentId(merchantPaymentId);
|
|
|
464 |
sendBase("captureHdfcPayment", args);
|
| 2462 |
chandransh |
465 |
}
|
|
|
466 |
|
| 3430 |
rajveer |
467 |
public Map<String,String> recv_captureHdfcPayment() throws PaymentException, org.apache.thrift.TException
|
| 2462 |
chandransh |
468 |
{
|
|
|
469 |
captureHdfcPayment_result result = new captureHdfcPayment_result();
|
| 3430 |
rajveer |
470 |
receiveBase(result, "captureHdfcPayment");
|
| 2462 |
chandransh |
471 |
if (result.isSetSuccess()) {
|
|
|
472 |
return result.success;
|
|
|
473 |
}
|
|
|
474 |
if (result.pe != null) {
|
|
|
475 |
throw result.pe;
|
|
|
476 |
}
|
| 3430 |
rajveer |
477 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "captureHdfcPayment failed: unknown result");
|
| 2462 |
chandransh |
478 |
}
|
|
|
479 |
|
| 3430 |
rajveer |
480 |
public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
|
| 2462 |
chandransh |
481 |
{
|
|
|
482 |
send_initializeHdfcPayment(merchantPaymentId);
|
|
|
483 |
return recv_initializeHdfcPayment();
|
|
|
484 |
}
|
|
|
485 |
|
| 3430 |
rajveer |
486 |
public void send_initializeHdfcPayment(long merchantPaymentId) throws org.apache.thrift.TException
|
| 2462 |
chandransh |
487 |
{
|
|
|
488 |
initializeHdfcPayment_args args = new initializeHdfcPayment_args();
|
| 3430 |
rajveer |
489 |
args.setMerchantPaymentId(merchantPaymentId);
|
|
|
490 |
sendBase("initializeHdfcPayment", args);
|
| 2462 |
chandransh |
491 |
}
|
|
|
492 |
|
| 3430 |
rajveer |
493 |
public String recv_initializeHdfcPayment() throws PaymentException, org.apache.thrift.TException
|
| 2462 |
chandransh |
494 |
{
|
|
|
495 |
initializeHdfcPayment_result result = new initializeHdfcPayment_result();
|
| 3430 |
rajveer |
496 |
receiveBase(result, "initializeHdfcPayment");
|
| 2462 |
chandransh |
497 |
if (result.isSetSuccess()) {
|
|
|
498 |
return result.success;
|
|
|
499 |
}
|
|
|
500 |
if (result.pe != null) {
|
|
|
501 |
throw result.pe;
|
|
|
502 |
}
|
| 3430 |
rajveer |
503 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
|
| 2462 |
chandransh |
504 |
}
|
|
|
505 |
|
| 3430 |
rajveer |
506 |
public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException
|
| 2690 |
chandransh |
507 |
{
|
|
|
508 |
send_createRefund(orderId, merchantTxnId, amount);
|
|
|
509 |
return recv_createRefund();
|
|
|
510 |
}
|
|
|
511 |
|
| 3430 |
rajveer |
512 |
public void send_createRefund(long orderId, long merchantTxnId, double amount) throws org.apache.thrift.TException
|
| 2690 |
chandransh |
513 |
{
|
|
|
514 |
createRefund_args args = new createRefund_args();
|
| 3430 |
rajveer |
515 |
args.setOrderId(orderId);
|
|
|
516 |
args.setMerchantTxnId(merchantTxnId);
|
|
|
517 |
args.setAmount(amount);
|
|
|
518 |
sendBase("createRefund", args);
|
| 2690 |
chandransh |
519 |
}
|
|
|
520 |
|
| 3430 |
rajveer |
521 |
public long recv_createRefund() throws PaymentException, org.apache.thrift.TException
|
| 2690 |
chandransh |
522 |
{
|
|
|
523 |
createRefund_result result = new createRefund_result();
|
| 3430 |
rajveer |
524 |
receiveBase(result, "createRefund");
|
| 2690 |
chandransh |
525 |
if (result.isSetSuccess()) {
|
|
|
526 |
return result.success;
|
|
|
527 |
}
|
|
|
528 |
if (result.pe != null) {
|
|
|
529 |
throw result.pe;
|
|
|
530 |
}
|
| 3430 |
rajveer |
531 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
|
| 2690 |
chandransh |
532 |
}
|
|
|
533 |
|
| 3430 |
rajveer |
534 |
public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException
|
| 3010 |
chandransh |
535 |
{
|
|
|
536 |
send_capturePayment(merchantTxnId);
|
|
|
537 |
return recv_capturePayment();
|
|
|
538 |
}
|
|
|
539 |
|
| 3430 |
rajveer |
540 |
public void send_capturePayment(long merchantTxnId) throws org.apache.thrift.TException
|
| 3010 |
chandransh |
541 |
{
|
|
|
542 |
capturePayment_args args = new capturePayment_args();
|
| 3430 |
rajveer |
543 |
args.setMerchantTxnId(merchantTxnId);
|
|
|
544 |
sendBase("capturePayment", args);
|
| 3010 |
chandransh |
545 |
}
|
|
|
546 |
|
| 3430 |
rajveer |
547 |
public boolean recv_capturePayment() throws PaymentException, org.apache.thrift.TException
|
| 3010 |
chandransh |
548 |
{
|
|
|
549 |
capturePayment_result result = new capturePayment_result();
|
| 3430 |
rajveer |
550 |
receiveBase(result, "capturePayment");
|
| 3010 |
chandransh |
551 |
if (result.isSetSuccess()) {
|
|
|
552 |
return result.success;
|
|
|
553 |
}
|
|
|
554 |
if (result.pe != null) {
|
|
|
555 |
throw result.pe;
|
|
|
556 |
}
|
| 3430 |
rajveer |
557 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
|
| 3010 |
chandransh |
558 |
}
|
|
|
559 |
|
| 123 |
ashish |
560 |
}
|
| 3430 |
rajveer |
561 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
562 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
563 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
564 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
565 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
566 |
this.clientManager = clientManager;
|
|
|
567 |
this.protocolFactory = protocolFactory;
|
|
|
568 |
}
|
|
|
569 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
570 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
571 |
}
|
| 123 |
ashish |
572 |
}
|
|
|
573 |
|
| 3430 |
rajveer |
574 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
575 |
super(protocolFactory, clientManager, transport);
|
|
|
576 |
}
|
| 123 |
ashish |
577 |
|
| 3430 |
rajveer |
578 |
public void createPayment(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
579 |
checkReady();
|
|
|
580 |
createPayment_call method_call = new createPayment_call(userId, amount, gatewayId, txnId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
581 |
this.___currentMethod = method_call;
|
|
|
582 |
___manager.call(method_call);
|
|
|
583 |
}
|
|
|
584 |
|
|
|
585 |
public static class createPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
586 |
private long userId;
|
|
|
587 |
private double amount;
|
|
|
588 |
private long gatewayId;
|
|
|
589 |
private long txnId;
|
|
|
590 |
public createPayment_call(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
591 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
592 |
this.userId = userId;
|
|
|
593 |
this.amount = amount;
|
|
|
594 |
this.gatewayId = gatewayId;
|
|
|
595 |
this.txnId = txnId;
|
| 123 |
ashish |
596 |
}
|
| 3430 |
rajveer |
597 |
|
|
|
598 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
599 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
600 |
createPayment_args args = new createPayment_args();
|
|
|
601 |
args.setUserId(userId);
|
|
|
602 |
args.setAmount(amount);
|
|
|
603 |
args.setGatewayId(gatewayId);
|
|
|
604 |
args.setTxnId(txnId);
|
|
|
605 |
args.write(prot);
|
|
|
606 |
prot.writeMessageEnd();
|
|
|
607 |
}
|
|
|
608 |
|
|
|
609 |
public long getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
610 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
611 |
throw new IllegalStateException("Method call not finished!");
|
|
|
612 |
}
|
|
|
613 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
614 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
615 |
return (new Client(prot)).recv_createPayment();
|
|
|
616 |
}
|
| 123 |
ashish |
617 |
}
|
|
|
618 |
|
| 3430 |
rajveer |
619 |
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 {
|
|
|
620 |
checkReady();
|
|
|
621 |
getPaymentsForUser_call method_call = new getPaymentsForUser_call(userId, fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
622 |
this.___currentMethod = method_call;
|
|
|
623 |
___manager.call(method_call);
|
|
|
624 |
}
|
|
|
625 |
|
|
|
626 |
public static class getPaymentsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
627 |
private long userId;
|
|
|
628 |
private long fromTime;
|
|
|
629 |
private long toTime;
|
|
|
630 |
private PaymentStatus status;
|
|
|
631 |
private long gatewayId;
|
|
|
632 |
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 {
|
|
|
633 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
634 |
this.userId = userId;
|
|
|
635 |
this.fromTime = fromTime;
|
|
|
636 |
this.toTime = toTime;
|
|
|
637 |
this.status = status;
|
|
|
638 |
this.gatewayId = gatewayId;
|
|
|
639 |
}
|
|
|
640 |
|
|
|
641 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
642 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
643 |
getPaymentsForUser_args args = new getPaymentsForUser_args();
|
|
|
644 |
args.setUserId(userId);
|
|
|
645 |
args.setFromTime(fromTime);
|
|
|
646 |
args.setToTime(toTime);
|
|
|
647 |
args.setStatus(status);
|
|
|
648 |
args.setGatewayId(gatewayId);
|
|
|
649 |
args.write(prot);
|
|
|
650 |
prot.writeMessageEnd();
|
|
|
651 |
}
|
|
|
652 |
|
|
|
653 |
public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
654 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
655 |
throw new IllegalStateException("Method call not finished!");
|
|
|
656 |
}
|
|
|
657 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
658 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
659 |
return (new Client(prot)).recv_getPaymentsForUser();
|
|
|
660 |
}
|
|
|
661 |
}
|
|
|
662 |
|
|
|
663 |
public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPayments_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
664 |
checkReady();
|
|
|
665 |
getPayments_call method_call = new getPayments_call(fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
666 |
this.___currentMethod = method_call;
|
|
|
667 |
___manager.call(method_call);
|
|
|
668 |
}
|
|
|
669 |
|
|
|
670 |
public static class getPayments_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
671 |
private long fromTime;
|
|
|
672 |
private long toTime;
|
|
|
673 |
private PaymentStatus status;
|
|
|
674 |
private long gatewayId;
|
|
|
675 |
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 {
|
|
|
676 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
677 |
this.fromTime = fromTime;
|
|
|
678 |
this.toTime = toTime;
|
|
|
679 |
this.status = status;
|
|
|
680 |
this.gatewayId = gatewayId;
|
|
|
681 |
}
|
|
|
682 |
|
|
|
683 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
684 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayments", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
685 |
getPayments_args args = new getPayments_args();
|
|
|
686 |
args.setFromTime(fromTime);
|
|
|
687 |
args.setToTime(toTime);
|
|
|
688 |
args.setStatus(status);
|
|
|
689 |
args.setGatewayId(gatewayId);
|
|
|
690 |
args.write(prot);
|
|
|
691 |
prot.writeMessageEnd();
|
|
|
692 |
}
|
|
|
693 |
|
|
|
694 |
public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
695 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
696 |
throw new IllegalStateException("Method call not finished!");
|
|
|
697 |
}
|
|
|
698 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
699 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
700 |
return (new Client(prot)).recv_getPayments();
|
|
|
701 |
}
|
|
|
702 |
}
|
|
|
703 |
|
|
|
704 |
public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
705 |
checkReady();
|
|
|
706 |
getPaymentGateway_call method_call = new getPaymentGateway_call(id, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
707 |
this.___currentMethod = method_call;
|
|
|
708 |
___manager.call(method_call);
|
|
|
709 |
}
|
|
|
710 |
|
|
|
711 |
public static class getPaymentGateway_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
712 |
private long id;
|
|
|
713 |
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 {
|
|
|
714 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
715 |
this.id = id;
|
|
|
716 |
}
|
|
|
717 |
|
|
|
718 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
719 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentGateway", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
720 |
getPaymentGateway_args args = new getPaymentGateway_args();
|
|
|
721 |
args.setId(id);
|
|
|
722 |
args.write(prot);
|
|
|
723 |
prot.writeMessageEnd();
|
|
|
724 |
}
|
|
|
725 |
|
|
|
726 |
public PaymentGateway getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
727 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
728 |
throw new IllegalStateException("Method call not finished!");
|
|
|
729 |
}
|
|
|
730 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
731 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
732 |
return (new Client(prot)).recv_getPaymentGateway();
|
|
|
733 |
}
|
|
|
734 |
}
|
|
|
735 |
|
|
|
736 |
public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<getPayment_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
737 |
checkReady();
|
|
|
738 |
getPayment_call method_call = new getPayment_call(id, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
739 |
this.___currentMethod = method_call;
|
|
|
740 |
___manager.call(method_call);
|
|
|
741 |
}
|
|
|
742 |
|
|
|
743 |
public static class getPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
744 |
private long id;
|
|
|
745 |
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 {
|
|
|
746 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
747 |
this.id = id;
|
|
|
748 |
}
|
|
|
749 |
|
|
|
750 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
751 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
752 |
getPayment_args args = new getPayment_args();
|
|
|
753 |
args.setId(id);
|
|
|
754 |
args.write(prot);
|
|
|
755 |
prot.writeMessageEnd();
|
|
|
756 |
}
|
|
|
757 |
|
|
|
758 |
public Payment getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
759 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
760 |
throw new IllegalStateException("Method call not finished!");
|
|
|
761 |
}
|
|
|
762 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
763 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
764 |
return (new Client(prot)).recv_getPayment();
|
|
|
765 |
}
|
|
|
766 |
}
|
|
|
767 |
|
|
|
768 |
public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
769 |
checkReady();
|
|
|
770 |
getPaymentForTxnId_call method_call = new getPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
771 |
this.___currentMethod = method_call;
|
|
|
772 |
___manager.call(method_call);
|
|
|
773 |
}
|
|
|
774 |
|
|
|
775 |
public static class getPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
776 |
private long txnId;
|
|
|
777 |
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 {
|
|
|
778 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
779 |
this.txnId = txnId;
|
|
|
780 |
}
|
|
|
781 |
|
|
|
782 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
783 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
784 |
getPaymentForTxnId_args args = new getPaymentForTxnId_args();
|
|
|
785 |
args.setTxnId(txnId);
|
|
|
786 |
args.write(prot);
|
|
|
787 |
prot.writeMessageEnd();
|
|
|
788 |
}
|
|
|
789 |
|
|
|
790 |
public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
791 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
792 |
throw new IllegalStateException("Method call not finished!");
|
|
|
793 |
}
|
|
|
794 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
795 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
796 |
return (new Client(prot)).recv_getPaymentForTxnId();
|
|
|
797 |
}
|
|
|
798 |
}
|
|
|
799 |
|
|
|
800 |
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 {
|
|
|
801 |
checkReady();
|
|
|
802 |
updatePaymentDetails_call method_call = new updatePaymentDetails_call(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
803 |
this.___currentMethod = method_call;
|
|
|
804 |
___manager.call(method_call);
|
|
|
805 |
}
|
|
|
806 |
|
|
|
807 |
public static class updatePaymentDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
808 |
private long id;
|
|
|
809 |
private String gatewayPaymentId;
|
|
|
810 |
private String sessionId;
|
|
|
811 |
private String gatewayTxnStatus;
|
|
|
812 |
private String description;
|
|
|
813 |
private String gatewayTxnId;
|
|
|
814 |
private String authCode;
|
|
|
815 |
private String referenceCode;
|
|
|
816 |
private String errorCode;
|
|
|
817 |
private PaymentStatus status;
|
|
|
818 |
private String gatewayTxnDate;
|
|
|
819 |
private List<Attribute> attributes;
|
|
|
820 |
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 {
|
|
|
821 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
822 |
this.id = id;
|
|
|
823 |
this.gatewayPaymentId = gatewayPaymentId;
|
|
|
824 |
this.sessionId = sessionId;
|
|
|
825 |
this.gatewayTxnStatus = gatewayTxnStatus;
|
|
|
826 |
this.description = description;
|
|
|
827 |
this.gatewayTxnId = gatewayTxnId;
|
|
|
828 |
this.authCode = authCode;
|
|
|
829 |
this.referenceCode = referenceCode;
|
|
|
830 |
this.errorCode = errorCode;
|
|
|
831 |
this.status = status;
|
|
|
832 |
this.gatewayTxnDate = gatewayTxnDate;
|
|
|
833 |
this.attributes = attributes;
|
|
|
834 |
}
|
|
|
835 |
|
|
|
836 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
837 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePaymentDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
838 |
updatePaymentDetails_args args = new updatePaymentDetails_args();
|
|
|
839 |
args.setId(id);
|
|
|
840 |
args.setGatewayPaymentId(gatewayPaymentId);
|
|
|
841 |
args.setSessionId(sessionId);
|
|
|
842 |
args.setGatewayTxnStatus(gatewayTxnStatus);
|
|
|
843 |
args.setDescription(description);
|
|
|
844 |
args.setGatewayTxnId(gatewayTxnId);
|
|
|
845 |
args.setAuthCode(authCode);
|
|
|
846 |
args.setReferenceCode(referenceCode);
|
|
|
847 |
args.setErrorCode(errorCode);
|
|
|
848 |
args.setStatus(status);
|
|
|
849 |
args.setGatewayTxnDate(gatewayTxnDate);
|
|
|
850 |
args.setAttributes(attributes);
|
|
|
851 |
args.write(prot);
|
|
|
852 |
prot.writeMessageEnd();
|
|
|
853 |
}
|
|
|
854 |
|
|
|
855 |
public boolean getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
856 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
857 |
throw new IllegalStateException("Method call not finished!");
|
|
|
858 |
}
|
|
|
859 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
860 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
861 |
return (new Client(prot)).recv_updatePaymentDetails();
|
|
|
862 |
}
|
|
|
863 |
}
|
|
|
864 |
|
|
|
865 |
public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
866 |
checkReady();
|
|
|
867 |
getSuccessfulPaymentsAmountRange_call method_call = new getSuccessfulPaymentsAmountRange_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
868 |
this.___currentMethod = method_call;
|
|
|
869 |
___manager.call(method_call);
|
|
|
870 |
}
|
|
|
871 |
|
|
|
872 |
public static class getSuccessfulPaymentsAmountRange_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
873 |
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 {
|
|
|
874 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
875 |
}
|
|
|
876 |
|
|
|
877 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
878 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentsAmountRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
879 |
getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
|
|
|
880 |
args.write(prot);
|
|
|
881 |
prot.writeMessageEnd();
|
|
|
882 |
}
|
|
|
883 |
|
|
|
884 |
public List<Double> getResult() throws org.apache.thrift.TException {
|
|
|
885 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
886 |
throw new IllegalStateException("Method call not finished!");
|
|
|
887 |
}
|
|
|
888 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
889 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
890 |
return (new Client(prot)).recv_getSuccessfulPaymentsAmountRange();
|
|
|
891 |
}
|
|
|
892 |
}
|
|
|
893 |
|
|
|
894 |
public void captureEbsPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<captureEbsPayment_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
895 |
checkReady();
|
|
|
896 |
captureEbsPayment_call method_call = new captureEbsPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
897 |
this.___currentMethod = method_call;
|
|
|
898 |
___manager.call(method_call);
|
|
|
899 |
}
|
|
|
900 |
|
|
|
901 |
public static class captureEbsPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
902 |
private long merchantPaymentId;
|
|
|
903 |
public captureEbsPayment_call(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<captureEbsPayment_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 {
|
|
|
904 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
905 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
906 |
}
|
|
|
907 |
|
|
|
908 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
909 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("captureEbsPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
910 |
captureEbsPayment_args args = new captureEbsPayment_args();
|
|
|
911 |
args.setMerchantPaymentId(merchantPaymentId);
|
|
|
912 |
args.write(prot);
|
|
|
913 |
prot.writeMessageEnd();
|
|
|
914 |
}
|
|
|
915 |
|
|
|
916 |
public Map<String,String> getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
917 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
918 |
throw new IllegalStateException("Method call not finished!");
|
|
|
919 |
}
|
|
|
920 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
921 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
922 |
return (new Client(prot)).recv_captureEbsPayment();
|
|
|
923 |
}
|
|
|
924 |
}
|
|
|
925 |
|
|
|
926 |
public void captureHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<captureHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
927 |
checkReady();
|
|
|
928 |
captureHdfcPayment_call method_call = new captureHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
929 |
this.___currentMethod = method_call;
|
|
|
930 |
___manager.call(method_call);
|
|
|
931 |
}
|
|
|
932 |
|
|
|
933 |
public static class captureHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
934 |
private long merchantPaymentId;
|
|
|
935 |
public captureHdfcPayment_call(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<captureHdfcPayment_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 {
|
|
|
936 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
937 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
938 |
}
|
|
|
939 |
|
|
|
940 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
941 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("captureHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
942 |
captureHdfcPayment_args args = new captureHdfcPayment_args();
|
|
|
943 |
args.setMerchantPaymentId(merchantPaymentId);
|
|
|
944 |
args.write(prot);
|
|
|
945 |
prot.writeMessageEnd();
|
|
|
946 |
}
|
|
|
947 |
|
|
|
948 |
public Map<String,String> getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
949 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
950 |
throw new IllegalStateException("Method call not finished!");
|
|
|
951 |
}
|
|
|
952 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
953 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
954 |
return (new Client(prot)).recv_captureHdfcPayment();
|
|
|
955 |
}
|
|
|
956 |
}
|
|
|
957 |
|
|
|
958 |
public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
959 |
checkReady();
|
|
|
960 |
initializeHdfcPayment_call method_call = new initializeHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
961 |
this.___currentMethod = method_call;
|
|
|
962 |
___manager.call(method_call);
|
|
|
963 |
}
|
|
|
964 |
|
|
|
965 |
public static class initializeHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
966 |
private long merchantPaymentId;
|
|
|
967 |
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 {
|
|
|
968 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
969 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
970 |
}
|
|
|
971 |
|
|
|
972 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
973 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
974 |
initializeHdfcPayment_args args = new initializeHdfcPayment_args();
|
|
|
975 |
args.setMerchantPaymentId(merchantPaymentId);
|
|
|
976 |
args.write(prot);
|
|
|
977 |
prot.writeMessageEnd();
|
|
|
978 |
}
|
|
|
979 |
|
|
|
980 |
public String getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
981 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
982 |
throw new IllegalStateException("Method call not finished!");
|
|
|
983 |
}
|
|
|
984 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
985 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
986 |
return (new Client(prot)).recv_initializeHdfcPayment();
|
|
|
987 |
}
|
|
|
988 |
}
|
|
|
989 |
|
|
|
990 |
public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<createRefund_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
991 |
checkReady();
|
|
|
992 |
createRefund_call method_call = new createRefund_call(orderId, merchantTxnId, amount, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
993 |
this.___currentMethod = method_call;
|
|
|
994 |
___manager.call(method_call);
|
|
|
995 |
}
|
|
|
996 |
|
|
|
997 |
public static class createRefund_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
998 |
private long orderId;
|
|
|
999 |
private long merchantTxnId;
|
|
|
1000 |
private double amount;
|
|
|
1001 |
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 {
|
|
|
1002 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1003 |
this.orderId = orderId;
|
|
|
1004 |
this.merchantTxnId = merchantTxnId;
|
|
|
1005 |
this.amount = amount;
|
|
|
1006 |
}
|
|
|
1007 |
|
|
|
1008 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1009 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRefund", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1010 |
createRefund_args args = new createRefund_args();
|
|
|
1011 |
args.setOrderId(orderId);
|
|
|
1012 |
args.setMerchantTxnId(merchantTxnId);
|
|
|
1013 |
args.setAmount(amount);
|
|
|
1014 |
args.write(prot);
|
|
|
1015 |
prot.writeMessageEnd();
|
|
|
1016 |
}
|
|
|
1017 |
|
|
|
1018 |
public long getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1019 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1020 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1021 |
}
|
|
|
1022 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1023 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1024 |
return (new Client(prot)).recv_createRefund();
|
|
|
1025 |
}
|
|
|
1026 |
}
|
|
|
1027 |
|
|
|
1028 |
public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<capturePayment_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1029 |
checkReady();
|
|
|
1030 |
capturePayment_call method_call = new capturePayment_call(merchantTxnId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1031 |
this.___currentMethod = method_call;
|
|
|
1032 |
___manager.call(method_call);
|
|
|
1033 |
}
|
|
|
1034 |
|
|
|
1035 |
public static class capturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1036 |
private long merchantTxnId;
|
|
|
1037 |
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 {
|
|
|
1038 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1039 |
this.merchantTxnId = merchantTxnId;
|
|
|
1040 |
}
|
|
|
1041 |
|
|
|
1042 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1043 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("capturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1044 |
capturePayment_args args = new capturePayment_args();
|
|
|
1045 |
args.setMerchantTxnId(merchantTxnId);
|
|
|
1046 |
args.write(prot);
|
|
|
1047 |
prot.writeMessageEnd();
|
|
|
1048 |
}
|
|
|
1049 |
|
|
|
1050 |
public boolean getResult() throws PaymentException, org.apache.thrift.TException {
|
|
|
1051 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1052 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1053 |
}
|
|
|
1054 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1055 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1056 |
return (new Client(prot)).recv_capturePayment();
|
|
|
1057 |
}
|
|
|
1058 |
}
|
|
|
1059 |
|
|
|
1060 |
}
|
|
|
1061 |
|
|
|
1062 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
1063 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
1064 |
public Processor(I iface) {
|
|
|
1065 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
1066 |
}
|
|
|
1067 |
|
|
|
1068 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
1069 |
super(iface, getProcessMap(processMap));
|
|
|
1070 |
}
|
|
|
1071 |
|
|
|
1072 |
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) {
|
|
|
1073 |
processMap.put("createPayment", new createPayment());
|
|
|
1074 |
processMap.put("getPaymentsForUser", new getPaymentsForUser());
|
|
|
1075 |
processMap.put("getPayments", new getPayments());
|
|
|
1076 |
processMap.put("getPaymentGateway", new getPaymentGateway());
|
|
|
1077 |
processMap.put("getPayment", new getPayment());
|
|
|
1078 |
processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
|
|
|
1079 |
processMap.put("updatePaymentDetails", new updatePaymentDetails());
|
|
|
1080 |
processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
|
|
|
1081 |
processMap.put("captureEbsPayment", new captureEbsPayment());
|
|
|
1082 |
processMap.put("captureHdfcPayment", new captureHdfcPayment());
|
|
|
1083 |
processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
|
|
|
1084 |
processMap.put("createRefund", new createRefund());
|
|
|
1085 |
processMap.put("capturePayment", new capturePayment());
|
|
|
1086 |
return processMap;
|
|
|
1087 |
}
|
|
|
1088 |
|
|
|
1089 |
private static class createPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPayment_args> {
|
|
|
1090 |
public createPayment() {
|
|
|
1091 |
super("createPayment");
|
|
|
1092 |
}
|
|
|
1093 |
|
|
|
1094 |
protected createPayment_args getEmptyArgsInstance() {
|
|
|
1095 |
return new createPayment_args();
|
|
|
1096 |
}
|
|
|
1097 |
|
|
|
1098 |
protected createPayment_result getResult(I iface, createPayment_args args) throws org.apache.thrift.TException {
|
| 123 |
ashish |
1099 |
createPayment_result result = new createPayment_result();
|
|
|
1100 |
try {
|
| 3430 |
rajveer |
1101 |
result.success = iface.createPayment(args.userId, args.amount, args.gatewayId, args.txnId);
|
| 420 |
ashish |
1102 |
result.setSuccessIsSet(true);
|
| 123 |
ashish |
1103 |
} catch (PaymentException pe) {
|
|
|
1104 |
result.pe = pe;
|
|
|
1105 |
}
|
| 3430 |
rajveer |
1106 |
return result;
|
| 123 |
ashish |
1107 |
}
|
|
|
1108 |
}
|
|
|
1109 |
|
| 3430 |
rajveer |
1110 |
private static class getPaymentsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsForUser_args> {
|
|
|
1111 |
public getPaymentsForUser() {
|
|
|
1112 |
super("getPaymentsForUser");
|
|
|
1113 |
}
|
|
|
1114 |
|
|
|
1115 |
protected getPaymentsForUser_args getEmptyArgsInstance() {
|
|
|
1116 |
return new getPaymentsForUser_args();
|
|
|
1117 |
}
|
|
|
1118 |
|
|
|
1119 |
protected getPaymentsForUser_result getResult(I iface, getPaymentsForUser_args args) throws org.apache.thrift.TException {
|
| 123 |
ashish |
1120 |
getPaymentsForUser_result result = new getPaymentsForUser_result();
|
|
|
1121 |
try {
|
| 3430 |
rajveer |
1122 |
result.success = iface.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId);
|
| 123 |
ashish |
1123 |
} catch (PaymentException pe) {
|
|
|
1124 |
result.pe = pe;
|
|
|
1125 |
}
|
| 3430 |
rajveer |
1126 |
return result;
|
| 123 |
ashish |
1127 |
}
|
|
|
1128 |
}
|
|
|
1129 |
|
| 3430 |
rajveer |
1130 |
private static class getPayments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayments_args> {
|
|
|
1131 |
public getPayments() {
|
|
|
1132 |
super("getPayments");
|
|
|
1133 |
}
|
|
|
1134 |
|
|
|
1135 |
protected getPayments_args getEmptyArgsInstance() {
|
|
|
1136 |
return new getPayments_args();
|
|
|
1137 |
}
|
|
|
1138 |
|
|
|
1139 |
protected getPayments_result getResult(I iface, getPayments_args args) throws org.apache.thrift.TException {
|
| 123 |
ashish |
1140 |
getPayments_result result = new getPayments_result();
|
|
|
1141 |
try {
|
| 3430 |
rajveer |
1142 |
result.success = iface.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId);
|
| 123 |
ashish |
1143 |
} catch (PaymentException pe) {
|
|
|
1144 |
result.pe = pe;
|
|
|
1145 |
}
|
| 3430 |
rajveer |
1146 |
return result;
|
| 123 |
ashish |
1147 |
}
|
|
|
1148 |
}
|
|
|
1149 |
|
| 3430 |
rajveer |
1150 |
private static class getPaymentGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentGateway_args> {
|
|
|
1151 |
public getPaymentGateway() {
|
|
|
1152 |
super("getPaymentGateway");
|
|
|
1153 |
}
|
|
|
1154 |
|
|
|
1155 |
protected getPaymentGateway_args getEmptyArgsInstance() {
|
|
|
1156 |
return new getPaymentGateway_args();
|
|
|
1157 |
}
|
|
|
1158 |
|
|
|
1159 |
protected getPaymentGateway_result getResult(I iface, getPaymentGateway_args args) throws org.apache.thrift.TException {
|
| 420 |
ashish |
1160 |
getPaymentGateway_result result = new getPaymentGateway_result();
|
|
|
1161 |
try {
|
| 3430 |
rajveer |
1162 |
result.success = iface.getPaymentGateway(args.id);
|
| 420 |
ashish |
1163 |
} catch (PaymentException pe) {
|
|
|
1164 |
result.pe = pe;
|
|
|
1165 |
}
|
| 3430 |
rajveer |
1166 |
return result;
|
| 420 |
ashish |
1167 |
}
|
|
|
1168 |
}
|
|
|
1169 |
|
| 3430 |
rajveer |
1170 |
private static class getPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayment_args> {
|
|
|
1171 |
public getPayment() {
|
|
|
1172 |
super("getPayment");
|
|
|
1173 |
}
|
|
|
1174 |
|
|
|
1175 |
protected getPayment_args getEmptyArgsInstance() {
|
|
|
1176 |
return new getPayment_args();
|
|
|
1177 |
}
|
|
|
1178 |
|
|
|
1179 |
protected getPayment_result getResult(I iface, getPayment_args args) throws org.apache.thrift.TException {
|
| 695 |
rajveer |
1180 |
getPayment_result result = new getPayment_result();
|
| 420 |
ashish |
1181 |
try {
|
| 3430 |
rajveer |
1182 |
result.success = iface.getPayment(args.id);
|
| 420 |
ashish |
1183 |
} catch (PaymentException pe) {
|
|
|
1184 |
result.pe = pe;
|
|
|
1185 |
}
|
| 3430 |
rajveer |
1186 |
return result;
|
| 420 |
ashish |
1187 |
}
|
|
|
1188 |
}
|
|
|
1189 |
|
| 3430 |
rajveer |
1190 |
private static class getPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentForTxnId_args> {
|
|
|
1191 |
public getPaymentForTxnId() {
|
|
|
1192 |
super("getPaymentForTxnId");
|
|
|
1193 |
}
|
|
|
1194 |
|
|
|
1195 |
protected getPaymentForTxnId_args getEmptyArgsInstance() {
|
|
|
1196 |
return new getPaymentForTxnId_args();
|
|
|
1197 |
}
|
|
|
1198 |
|
|
|
1199 |
protected getPaymentForTxnId_result getResult(I iface, getPaymentForTxnId_args args) throws org.apache.thrift.TException {
|
| 695 |
rajveer |
1200 |
getPaymentForTxnId_result result = new getPaymentForTxnId_result();
|
| 420 |
ashish |
1201 |
try {
|
| 3430 |
rajveer |
1202 |
result.success = iface.getPaymentForTxnId(args.txnId);
|
| 420 |
ashish |
1203 |
} catch (PaymentException pe) {
|
|
|
1204 |
result.pe = pe;
|
|
|
1205 |
}
|
| 3430 |
rajveer |
1206 |
return result;
|
| 420 |
ashish |
1207 |
}
|
|
|
1208 |
}
|
|
|
1209 |
|
| 3430 |
rajveer |
1210 |
private static class updatePaymentDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePaymentDetails_args> {
|
|
|
1211 |
public updatePaymentDetails() {
|
|
|
1212 |
super("updatePaymentDetails");
|
|
|
1213 |
}
|
|
|
1214 |
|
|
|
1215 |
protected updatePaymentDetails_args getEmptyArgsInstance() {
|
|
|
1216 |
return new updatePaymentDetails_args();
|
|
|
1217 |
}
|
|
|
1218 |
|
|
|
1219 |
protected updatePaymentDetails_result getResult(I iface, updatePaymentDetails_args args) throws org.apache.thrift.TException {
|
| 695 |
rajveer |
1220 |
updatePaymentDetails_result result = new updatePaymentDetails_result();
|
| 420 |
ashish |
1221 |
try {
|
| 3430 |
rajveer |
1222 |
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 |
1223 |
result.setSuccessIsSet(true);
|
| 420 |
ashish |
1224 |
} catch (PaymentException pe) {
|
|
|
1225 |
result.pe = pe;
|
|
|
1226 |
}
|
| 3430 |
rajveer |
1227 |
return result;
|
| 420 |
ashish |
1228 |
}
|
|
|
1229 |
}
|
|
|
1230 |
|
| 3430 |
rajveer |
1231 |
private static class getSuccessfulPaymentsAmountRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentsAmountRange_args> {
|
|
|
1232 |
public getSuccessfulPaymentsAmountRange() {
|
|
|
1233 |
super("getSuccessfulPaymentsAmountRange");
|
|
|
1234 |
}
|
|
|
1235 |
|
|
|
1236 |
protected getSuccessfulPaymentsAmountRange_args getEmptyArgsInstance() {
|
|
|
1237 |
return new getSuccessfulPaymentsAmountRange_args();
|
|
|
1238 |
}
|
|
|
1239 |
|
|
|
1240 |
protected getSuccessfulPaymentsAmountRange_result getResult(I iface, getSuccessfulPaymentsAmountRange_args args) throws org.apache.thrift.TException {
|
| 1731 |
ankur.sing |
1241 |
getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
|
| 3430 |
rajveer |
1242 |
result.success = iface.getSuccessfulPaymentsAmountRange();
|
|
|
1243 |
return result;
|
| 1629 |
ankur.sing |
1244 |
}
|
|
|
1245 |
}
|
|
|
1246 |
|
| 3430 |
rajveer |
1247 |
private static class captureEbsPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, captureEbsPayment_args> {
|
|
|
1248 |
public captureEbsPayment() {
|
|
|
1249 |
super("captureEbsPayment");
|
|
|
1250 |
}
|
|
|
1251 |
|
|
|
1252 |
protected captureEbsPayment_args getEmptyArgsInstance() {
|
|
|
1253 |
return new captureEbsPayment_args();
|
|
|
1254 |
}
|
|
|
1255 |
|
|
|
1256 |
protected captureEbsPayment_result getResult(I iface, captureEbsPayment_args args) throws org.apache.thrift.TException {
|
| 2708 |
chandransh |
1257 |
captureEbsPayment_result result = new captureEbsPayment_result();
|
|
|
1258 |
try {
|
| 3430 |
rajveer |
1259 |
result.success = iface.captureEbsPayment(args.merchantPaymentId);
|
| 2708 |
chandransh |
1260 |
} catch (PaymentException pe) {
|
|
|
1261 |
result.pe = pe;
|
|
|
1262 |
}
|
| 3430 |
rajveer |
1263 |
return result;
|
| 2708 |
chandransh |
1264 |
}
|
|
|
1265 |
}
|
|
|
1266 |
|
| 3430 |
rajveer |
1267 |
private static class captureHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, captureHdfcPayment_args> {
|
|
|
1268 |
public captureHdfcPayment() {
|
|
|
1269 |
super("captureHdfcPayment");
|
|
|
1270 |
}
|
|
|
1271 |
|
|
|
1272 |
protected captureHdfcPayment_args getEmptyArgsInstance() {
|
|
|
1273 |
return new captureHdfcPayment_args();
|
|
|
1274 |
}
|
|
|
1275 |
|
|
|
1276 |
protected captureHdfcPayment_result getResult(I iface, captureHdfcPayment_args args) throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
1277 |
captureHdfcPayment_result result = new captureHdfcPayment_result();
|
|
|
1278 |
try {
|
| 3430 |
rajveer |
1279 |
result.success = iface.captureHdfcPayment(args.merchantPaymentId);
|
| 2462 |
chandransh |
1280 |
} catch (PaymentException pe) {
|
|
|
1281 |
result.pe = pe;
|
|
|
1282 |
}
|
| 3430 |
rajveer |
1283 |
return result;
|
| 2462 |
chandransh |
1284 |
}
|
|
|
1285 |
}
|
|
|
1286 |
|
| 3430 |
rajveer |
1287 |
private static class initializeHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcPayment_args> {
|
|
|
1288 |
public initializeHdfcPayment() {
|
|
|
1289 |
super("initializeHdfcPayment");
|
|
|
1290 |
}
|
|
|
1291 |
|
|
|
1292 |
protected initializeHdfcPayment_args getEmptyArgsInstance() {
|
|
|
1293 |
return new initializeHdfcPayment_args();
|
|
|
1294 |
}
|
|
|
1295 |
|
|
|
1296 |
protected initializeHdfcPayment_result getResult(I iface, initializeHdfcPayment_args args) throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
1297 |
initializeHdfcPayment_result result = new initializeHdfcPayment_result();
|
|
|
1298 |
try {
|
| 3430 |
rajveer |
1299 |
result.success = iface.initializeHdfcPayment(args.merchantPaymentId);
|
| 2462 |
chandransh |
1300 |
} catch (PaymentException pe) {
|
|
|
1301 |
result.pe = pe;
|
|
|
1302 |
}
|
| 3430 |
rajveer |
1303 |
return result;
|
| 2462 |
chandransh |
1304 |
}
|
|
|
1305 |
}
|
|
|
1306 |
|
| 3430 |
rajveer |
1307 |
private static class createRefund<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRefund_args> {
|
|
|
1308 |
public createRefund() {
|
|
|
1309 |
super("createRefund");
|
|
|
1310 |
}
|
|
|
1311 |
|
|
|
1312 |
protected createRefund_args getEmptyArgsInstance() {
|
|
|
1313 |
return new createRefund_args();
|
|
|
1314 |
}
|
|
|
1315 |
|
|
|
1316 |
protected createRefund_result getResult(I iface, createRefund_args args) throws org.apache.thrift.TException {
|
| 2690 |
chandransh |
1317 |
createRefund_result result = new createRefund_result();
|
|
|
1318 |
try {
|
| 3430 |
rajveer |
1319 |
result.success = iface.createRefund(args.orderId, args.merchantTxnId, args.amount);
|
| 2690 |
chandransh |
1320 |
result.setSuccessIsSet(true);
|
|
|
1321 |
} catch (PaymentException pe) {
|
|
|
1322 |
result.pe = pe;
|
|
|
1323 |
}
|
| 3430 |
rajveer |
1324 |
return result;
|
| 2690 |
chandransh |
1325 |
}
|
|
|
1326 |
}
|
|
|
1327 |
|
| 3430 |
rajveer |
1328 |
private static class capturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, capturePayment_args> {
|
|
|
1329 |
public capturePayment() {
|
|
|
1330 |
super("capturePayment");
|
|
|
1331 |
}
|
|
|
1332 |
|
|
|
1333 |
protected capturePayment_args getEmptyArgsInstance() {
|
|
|
1334 |
return new capturePayment_args();
|
|
|
1335 |
}
|
|
|
1336 |
|
|
|
1337 |
protected capturePayment_result getResult(I iface, capturePayment_args args) throws org.apache.thrift.TException {
|
| 3010 |
chandransh |
1338 |
capturePayment_result result = new capturePayment_result();
|
|
|
1339 |
try {
|
| 3430 |
rajveer |
1340 |
result.success = iface.capturePayment(args.merchantTxnId);
|
| 3010 |
chandransh |
1341 |
result.setSuccessIsSet(true);
|
|
|
1342 |
} catch (PaymentException pe) {
|
|
|
1343 |
result.pe = pe;
|
|
|
1344 |
}
|
| 3430 |
rajveer |
1345 |
return result;
|
| 3010 |
chandransh |
1346 |
}
|
|
|
1347 |
}
|
|
|
1348 |
|
| 123 |
ashish |
1349 |
}
|
|
|
1350 |
|
| 3430 |
rajveer |
1351 |
public static class createPayment_args implements org.apache.thrift.TBase<createPayment_args, createPayment_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1352 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_args");
|
| 123 |
ashish |
1353 |
|
| 3430 |
rajveer |
1354 |
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);
|
|
|
1355 |
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);
|
|
|
1356 |
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);
|
|
|
1357 |
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);
|
| 123 |
ashish |
1358 |
|
| 3430 |
rajveer |
1359 |
private long userId; // required
|
|
|
1360 |
private double amount; // required
|
|
|
1361 |
private long gatewayId; // required
|
|
|
1362 |
private long txnId; // required
|
| 123 |
ashish |
1363 |
|
|
|
1364 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1365 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 695 |
rajveer |
1366 |
USER_ID((short)1, "userId"),
|
|
|
1367 |
AMOUNT((short)2, "amount"),
|
|
|
1368 |
GATEWAY_ID((short)3, "gatewayId"),
|
|
|
1369 |
TXN_ID((short)4, "txnId");
|
| 123 |
ashish |
1370 |
|
|
|
1371 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1372 |
|
|
|
1373 |
static {
|
|
|
1374 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1375 |
byName.put(field.getFieldName(), field);
|
|
|
1376 |
}
|
|
|
1377 |
}
|
|
|
1378 |
|
|
|
1379 |
/**
|
|
|
1380 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1381 |
*/
|
|
|
1382 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1383 |
switch(fieldId) {
|
|
|
1384 |
case 1: // USER_ID
|
|
|
1385 |
return USER_ID;
|
|
|
1386 |
case 2: // AMOUNT
|
|
|
1387 |
return AMOUNT;
|
|
|
1388 |
case 3: // GATEWAY_ID
|
|
|
1389 |
return GATEWAY_ID;
|
|
|
1390 |
case 4: // TXN_ID
|
|
|
1391 |
return TXN_ID;
|
|
|
1392 |
default:
|
|
|
1393 |
return null;
|
|
|
1394 |
}
|
| 123 |
ashish |
1395 |
}
|
|
|
1396 |
|
|
|
1397 |
/**
|
|
|
1398 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1399 |
* if it is not found.
|
|
|
1400 |
*/
|
|
|
1401 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1402 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1403 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1404 |
return fields;
|
|
|
1405 |
}
|
|
|
1406 |
|
|
|
1407 |
/**
|
|
|
1408 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1409 |
*/
|
|
|
1410 |
public static _Fields findByName(String name) {
|
|
|
1411 |
return byName.get(name);
|
|
|
1412 |
}
|
|
|
1413 |
|
|
|
1414 |
private final short _thriftId;
|
|
|
1415 |
private final String _fieldName;
|
|
|
1416 |
|
|
|
1417 |
_Fields(short thriftId, String fieldName) {
|
|
|
1418 |
_thriftId = thriftId;
|
|
|
1419 |
_fieldName = fieldName;
|
|
|
1420 |
}
|
|
|
1421 |
|
|
|
1422 |
public short getThriftFieldId() {
|
|
|
1423 |
return _thriftId;
|
|
|
1424 |
}
|
|
|
1425 |
|
|
|
1426 |
public String getFieldName() {
|
|
|
1427 |
return _fieldName;
|
|
|
1428 |
}
|
|
|
1429 |
}
|
|
|
1430 |
|
|
|
1431 |
// isset id assignments
|
| 695 |
rajveer |
1432 |
private static final int __USERID_ISSET_ID = 0;
|
|
|
1433 |
private static final int __AMOUNT_ISSET_ID = 1;
|
|
|
1434 |
private static final int __GATEWAYID_ISSET_ID = 2;
|
|
|
1435 |
private static final int __TXNID_ISSET_ID = 3;
|
| 420 |
ashish |
1436 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 123 |
ashish |
1437 |
|
| 3430 |
rajveer |
1438 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
1439 |
static {
|
| 3430 |
rajveer |
1440 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1441 |
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1442 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
1443 |
tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1444 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
1445 |
tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1446 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
1447 |
tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1448 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
1449 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1450 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
|
| 123 |
ashish |
1451 |
}
|
|
|
1452 |
|
|
|
1453 |
public createPayment_args() {
|
|
|
1454 |
}
|
|
|
1455 |
|
|
|
1456 |
public createPayment_args(
|
| 695 |
rajveer |
1457 |
long userId,
|
| 123 |
ashish |
1458 |
double amount,
|
| 695 |
rajveer |
1459 |
long gatewayId,
|
|
|
1460 |
long txnId)
|
| 123 |
ashish |
1461 |
{
|
|
|
1462 |
this();
|
| 695 |
rajveer |
1463 |
this.userId = userId;
|
|
|
1464 |
setUserIdIsSet(true);
|
| 123 |
ashish |
1465 |
this.amount = amount;
|
|
|
1466 |
setAmountIsSet(true);
|
| 695 |
rajveer |
1467 |
this.gatewayId = gatewayId;
|
|
|
1468 |
setGatewayIdIsSet(true);
|
|
|
1469 |
this.txnId = txnId;
|
|
|
1470 |
setTxnIdIsSet(true);
|
| 123 |
ashish |
1471 |
}
|
|
|
1472 |
|
|
|
1473 |
/**
|
|
|
1474 |
* Performs a deep copy on <i>other</i>.
|
|
|
1475 |
*/
|
|
|
1476 |
public createPayment_args(createPayment_args other) {
|
|
|
1477 |
__isset_bit_vector.clear();
|
|
|
1478 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 695 |
rajveer |
1479 |
this.userId = other.userId;
|
| 123 |
ashish |
1480 |
this.amount = other.amount;
|
| 695 |
rajveer |
1481 |
this.gatewayId = other.gatewayId;
|
|
|
1482 |
this.txnId = other.txnId;
|
| 123 |
ashish |
1483 |
}
|
|
|
1484 |
|
|
|
1485 |
public createPayment_args deepCopy() {
|
|
|
1486 |
return new createPayment_args(this);
|
|
|
1487 |
}
|
|
|
1488 |
|
| 3430 |
rajveer |
1489 |
@Override
|
|
|
1490 |
public void clear() {
|
|
|
1491 |
setUserIdIsSet(false);
|
|
|
1492 |
this.userId = 0;
|
|
|
1493 |
setAmountIsSet(false);
|
|
|
1494 |
this.amount = 0.0;
|
|
|
1495 |
setGatewayIdIsSet(false);
|
|
|
1496 |
this.gatewayId = 0;
|
|
|
1497 |
setTxnIdIsSet(false);
|
|
|
1498 |
this.txnId = 0;
|
| 123 |
ashish |
1499 |
}
|
|
|
1500 |
|
| 695 |
rajveer |
1501 |
public long getUserId() {
|
|
|
1502 |
return this.userId;
|
| 123 |
ashish |
1503 |
}
|
|
|
1504 |
|
| 3430 |
rajveer |
1505 |
public void setUserId(long userId) {
|
| 695 |
rajveer |
1506 |
this.userId = userId;
|
|
|
1507 |
setUserIdIsSet(true);
|
| 123 |
ashish |
1508 |
}
|
|
|
1509 |
|
| 695 |
rajveer |
1510 |
public void unsetUserId() {
|
|
|
1511 |
__isset_bit_vector.clear(__USERID_ISSET_ID);
|
| 123 |
ashish |
1512 |
}
|
|
|
1513 |
|
| 3430 |
rajveer |
1514 |
/** Returns true if field userId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
1515 |
public boolean isSetUserId() {
|
|
|
1516 |
return __isset_bit_vector.get(__USERID_ISSET_ID);
|
| 123 |
ashish |
1517 |
}
|
|
|
1518 |
|
| 695 |
rajveer |
1519 |
public void setUserIdIsSet(boolean value) {
|
|
|
1520 |
__isset_bit_vector.set(__USERID_ISSET_ID, value);
|
| 123 |
ashish |
1521 |
}
|
|
|
1522 |
|
|
|
1523 |
public double getAmount() {
|
|
|
1524 |
return this.amount;
|
|
|
1525 |
}
|
|
|
1526 |
|
| 3430 |
rajveer |
1527 |
public void setAmount(double amount) {
|
| 123 |
ashish |
1528 |
this.amount = amount;
|
|
|
1529 |
setAmountIsSet(true);
|
|
|
1530 |
}
|
|
|
1531 |
|
|
|
1532 |
public void unsetAmount() {
|
|
|
1533 |
__isset_bit_vector.clear(__AMOUNT_ISSET_ID);
|
|
|
1534 |
}
|
|
|
1535 |
|
| 3430 |
rajveer |
1536 |
/** Returns true if field amount is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
1537 |
public boolean isSetAmount() {
|
|
|
1538 |
return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
|
|
|
1539 |
}
|
|
|
1540 |
|
|
|
1541 |
public void setAmountIsSet(boolean value) {
|
|
|
1542 |
__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
|
|
|
1543 |
}
|
|
|
1544 |
|
| 695 |
rajveer |
1545 |
public long getGatewayId() {
|
|
|
1546 |
return this.gatewayId;
|
| 123 |
ashish |
1547 |
}
|
|
|
1548 |
|
| 3430 |
rajveer |
1549 |
public void setGatewayId(long gatewayId) {
|
| 695 |
rajveer |
1550 |
this.gatewayId = gatewayId;
|
|
|
1551 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
1552 |
}
|
|
|
1553 |
|
| 695 |
rajveer |
1554 |
public void unsetGatewayId() {
|
|
|
1555 |
__isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
1556 |
}
|
|
|
1557 |
|
| 3430 |
rajveer |
1558 |
/** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
1559 |
public boolean isSetGatewayId() {
|
|
|
1560 |
return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
1561 |
}
|
|
|
1562 |
|
| 695 |
rajveer |
1563 |
public void setGatewayIdIsSet(boolean value) {
|
|
|
1564 |
__isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
|
| 123 |
ashish |
1565 |
}
|
|
|
1566 |
|
| 695 |
rajveer |
1567 |
public long getTxnId() {
|
|
|
1568 |
return this.txnId;
|
|
|
1569 |
}
|
|
|
1570 |
|
| 3430 |
rajveer |
1571 |
public void setTxnId(long txnId) {
|
| 695 |
rajveer |
1572 |
this.txnId = txnId;
|
|
|
1573 |
setTxnIdIsSet(true);
|
|
|
1574 |
}
|
|
|
1575 |
|
|
|
1576 |
public void unsetTxnId() {
|
|
|
1577 |
__isset_bit_vector.clear(__TXNID_ISSET_ID);
|
|
|
1578 |
}
|
|
|
1579 |
|
| 3430 |
rajveer |
1580 |
/** Returns true if field txnId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
1581 |
public boolean isSetTxnId() {
|
|
|
1582 |
return __isset_bit_vector.get(__TXNID_ISSET_ID);
|
|
|
1583 |
}
|
|
|
1584 |
|
|
|
1585 |
public void setTxnIdIsSet(boolean value) {
|
|
|
1586 |
__isset_bit_vector.set(__TXNID_ISSET_ID, value);
|
|
|
1587 |
}
|
|
|
1588 |
|
| 123 |
ashish |
1589 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1590 |
switch (field) {
|
|
|
1591 |
case USER_ID:
|
|
|
1592 |
if (value == null) {
|
| 695 |
rajveer |
1593 |
unsetUserId();
|
| 123 |
ashish |
1594 |
} else {
|
| 695 |
rajveer |
1595 |
setUserId((Long)value);
|
| 123 |
ashish |
1596 |
}
|
|
|
1597 |
break;
|
|
|
1598 |
|
| 695 |
rajveer |
1599 |
case AMOUNT:
|
| 123 |
ashish |
1600 |
if (value == null) {
|
| 695 |
rajveer |
1601 |
unsetAmount();
|
| 123 |
ashish |
1602 |
} else {
|
| 695 |
rajveer |
1603 |
setAmount((Double)value);
|
| 123 |
ashish |
1604 |
}
|
|
|
1605 |
break;
|
|
|
1606 |
|
| 695 |
rajveer |
1607 |
case GATEWAY_ID:
|
| 123 |
ashish |
1608 |
if (value == null) {
|
| 695 |
rajveer |
1609 |
unsetGatewayId();
|
| 123 |
ashish |
1610 |
} else {
|
| 695 |
rajveer |
1611 |
setGatewayId((Long)value);
|
| 123 |
ashish |
1612 |
}
|
|
|
1613 |
break;
|
|
|
1614 |
|
| 695 |
rajveer |
1615 |
case TXN_ID:
|
| 123 |
ashish |
1616 |
if (value == null) {
|
| 695 |
rajveer |
1617 |
unsetTxnId();
|
| 123 |
ashish |
1618 |
} else {
|
| 695 |
rajveer |
1619 |
setTxnId((Long)value);
|
| 123 |
ashish |
1620 |
}
|
|
|
1621 |
break;
|
|
|
1622 |
|
|
|
1623 |
}
|
|
|
1624 |
}
|
|
|
1625 |
|
|
|
1626 |
public Object getFieldValue(_Fields field) {
|
|
|
1627 |
switch (field) {
|
|
|
1628 |
case USER_ID:
|
| 3430 |
rajveer |
1629 |
return Long.valueOf(getUserId());
|
| 123 |
ashish |
1630 |
|
|
|
1631 |
case AMOUNT:
|
| 3430 |
rajveer |
1632 |
return Double.valueOf(getAmount());
|
| 123 |
ashish |
1633 |
|
| 420 |
ashish |
1634 |
case GATEWAY_ID:
|
| 3430 |
rajveer |
1635 |
return Long.valueOf(getGatewayId());
|
| 123 |
ashish |
1636 |
|
| 695 |
rajveer |
1637 |
case TXN_ID:
|
| 3430 |
rajveer |
1638 |
return Long.valueOf(getTxnId());
|
| 695 |
rajveer |
1639 |
|
| 123 |
ashish |
1640 |
}
|
|
|
1641 |
throw new IllegalStateException();
|
|
|
1642 |
}
|
|
|
1643 |
|
| 3430 |
rajveer |
1644 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1645 |
public boolean isSet(_Fields field) {
|
|
|
1646 |
if (field == null) {
|
|
|
1647 |
throw new IllegalArgumentException();
|
|
|
1648 |
}
|
| 123 |
ashish |
1649 |
|
|
|
1650 |
switch (field) {
|
|
|
1651 |
case USER_ID:
|
| 695 |
rajveer |
1652 |
return isSetUserId();
|
| 123 |
ashish |
1653 |
case AMOUNT:
|
|
|
1654 |
return isSetAmount();
|
| 420 |
ashish |
1655 |
case GATEWAY_ID:
|
| 695 |
rajveer |
1656 |
return isSetGatewayId();
|
|
|
1657 |
case TXN_ID:
|
|
|
1658 |
return isSetTxnId();
|
| 123 |
ashish |
1659 |
}
|
|
|
1660 |
throw new IllegalStateException();
|
|
|
1661 |
}
|
|
|
1662 |
|
|
|
1663 |
@Override
|
|
|
1664 |
public boolean equals(Object that) {
|
|
|
1665 |
if (that == null)
|
|
|
1666 |
return false;
|
|
|
1667 |
if (that instanceof createPayment_args)
|
|
|
1668 |
return this.equals((createPayment_args)that);
|
|
|
1669 |
return false;
|
|
|
1670 |
}
|
|
|
1671 |
|
|
|
1672 |
public boolean equals(createPayment_args that) {
|
|
|
1673 |
if (that == null)
|
|
|
1674 |
return false;
|
|
|
1675 |
|
| 695 |
rajveer |
1676 |
boolean this_present_userId = true;
|
|
|
1677 |
boolean that_present_userId = true;
|
|
|
1678 |
if (this_present_userId || that_present_userId) {
|
|
|
1679 |
if (!(this_present_userId && that_present_userId))
|
| 123 |
ashish |
1680 |
return false;
|
| 695 |
rajveer |
1681 |
if (this.userId != that.userId)
|
| 123 |
ashish |
1682 |
return false;
|
|
|
1683 |
}
|
|
|
1684 |
|
|
|
1685 |
boolean this_present_amount = true;
|
|
|
1686 |
boolean that_present_amount = true;
|
|
|
1687 |
if (this_present_amount || that_present_amount) {
|
|
|
1688 |
if (!(this_present_amount && that_present_amount))
|
|
|
1689 |
return false;
|
|
|
1690 |
if (this.amount != that.amount)
|
|
|
1691 |
return false;
|
|
|
1692 |
}
|
|
|
1693 |
|
| 695 |
rajveer |
1694 |
boolean this_present_gatewayId = true;
|
|
|
1695 |
boolean that_present_gatewayId = true;
|
|
|
1696 |
if (this_present_gatewayId || that_present_gatewayId) {
|
|
|
1697 |
if (!(this_present_gatewayId && that_present_gatewayId))
|
| 123 |
ashish |
1698 |
return false;
|
| 695 |
rajveer |
1699 |
if (this.gatewayId != that.gatewayId)
|
| 123 |
ashish |
1700 |
return false;
|
|
|
1701 |
}
|
|
|
1702 |
|
| 695 |
rajveer |
1703 |
boolean this_present_txnId = true;
|
|
|
1704 |
boolean that_present_txnId = true;
|
|
|
1705 |
if (this_present_txnId || that_present_txnId) {
|
|
|
1706 |
if (!(this_present_txnId && that_present_txnId))
|
|
|
1707 |
return false;
|
|
|
1708 |
if (this.txnId != that.txnId)
|
|
|
1709 |
return false;
|
|
|
1710 |
}
|
|
|
1711 |
|
| 123 |
ashish |
1712 |
return true;
|
|
|
1713 |
}
|
|
|
1714 |
|
|
|
1715 |
@Override
|
|
|
1716 |
public int hashCode() {
|
|
|
1717 |
return 0;
|
|
|
1718 |
}
|
|
|
1719 |
|
|
|
1720 |
public int compareTo(createPayment_args other) {
|
|
|
1721 |
if (!getClass().equals(other.getClass())) {
|
|
|
1722 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1723 |
}
|
|
|
1724 |
|
|
|
1725 |
int lastComparison = 0;
|
|
|
1726 |
createPayment_args typedOther = (createPayment_args)other;
|
|
|
1727 |
|
| 3430 |
rajveer |
1728 |
lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
|
| 123 |
ashish |
1729 |
if (lastComparison != 0) {
|
|
|
1730 |
return lastComparison;
|
|
|
1731 |
}
|
| 3430 |
rajveer |
1732 |
if (isSetUserId()) {
|
|
|
1733 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
|
|
|
1734 |
if (lastComparison != 0) {
|
|
|
1735 |
return lastComparison;
|
|
|
1736 |
}
|
| 123 |
ashish |
1737 |
}
|
| 3430 |
rajveer |
1738 |
lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
|
| 123 |
ashish |
1739 |
if (lastComparison != 0) {
|
|
|
1740 |
return lastComparison;
|
|
|
1741 |
}
|
| 3430 |
rajveer |
1742 |
if (isSetAmount()) {
|
|
|
1743 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
|
|
|
1744 |
if (lastComparison != 0) {
|
|
|
1745 |
return lastComparison;
|
|
|
1746 |
}
|
| 123 |
ashish |
1747 |
}
|
| 3430 |
rajveer |
1748 |
lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
|
| 123 |
ashish |
1749 |
if (lastComparison != 0) {
|
|
|
1750 |
return lastComparison;
|
|
|
1751 |
}
|
| 3430 |
rajveer |
1752 |
if (isSetGatewayId()) {
|
|
|
1753 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
|
|
|
1754 |
if (lastComparison != 0) {
|
|
|
1755 |
return lastComparison;
|
|
|
1756 |
}
|
| 123 |
ashish |
1757 |
}
|
| 3430 |
rajveer |
1758 |
lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
|
| 123 |
ashish |
1759 |
if (lastComparison != 0) {
|
|
|
1760 |
return lastComparison;
|
|
|
1761 |
}
|
| 3430 |
rajveer |
1762 |
if (isSetTxnId()) {
|
|
|
1763 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
|
|
|
1764 |
if (lastComparison != 0) {
|
|
|
1765 |
return lastComparison;
|
|
|
1766 |
}
|
| 123 |
ashish |
1767 |
}
|
|
|
1768 |
return 0;
|
|
|
1769 |
}
|
|
|
1770 |
|
| 3430 |
rajveer |
1771 |
public _Fields fieldForId(int fieldId) {
|
|
|
1772 |
return _Fields.findByThriftId(fieldId);
|
|
|
1773 |
}
|
|
|
1774 |
|
|
|
1775 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1776 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
1777 |
iprot.readStructBegin();
|
|
|
1778 |
while (true)
|
|
|
1779 |
{
|
|
|
1780 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1781 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
1782 |
break;
|
|
|
1783 |
}
|
| 3430 |
rajveer |
1784 |
switch (field.id) {
|
|
|
1785 |
case 1: // USER_ID
|
|
|
1786 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1787 |
this.userId = iprot.readI64();
|
|
|
1788 |
setUserIdIsSet(true);
|
|
|
1789 |
} else {
|
|
|
1790 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1791 |
}
|
|
|
1792 |
break;
|
|
|
1793 |
case 2: // AMOUNT
|
|
|
1794 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1795 |
this.amount = iprot.readDouble();
|
|
|
1796 |
setAmountIsSet(true);
|
|
|
1797 |
} else {
|
|
|
1798 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1799 |
}
|
|
|
1800 |
break;
|
|
|
1801 |
case 3: // GATEWAY_ID
|
|
|
1802 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1803 |
this.gatewayId = iprot.readI64();
|
|
|
1804 |
setGatewayIdIsSet(true);
|
|
|
1805 |
} else {
|
|
|
1806 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1807 |
}
|
|
|
1808 |
break;
|
|
|
1809 |
case 4: // TXN_ID
|
|
|
1810 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1811 |
this.txnId = iprot.readI64();
|
|
|
1812 |
setTxnIdIsSet(true);
|
|
|
1813 |
} else {
|
|
|
1814 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1815 |
}
|
|
|
1816 |
break;
|
|
|
1817 |
default:
|
|
|
1818 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
1819 |
}
|
| 3430 |
rajveer |
1820 |
iprot.readFieldEnd();
|
| 123 |
ashish |
1821 |
}
|
|
|
1822 |
iprot.readStructEnd();
|
|
|
1823 |
validate();
|
|
|
1824 |
}
|
|
|
1825 |
|
| 3430 |
rajveer |
1826 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
1827 |
validate();
|
|
|
1828 |
|
|
|
1829 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1830 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
| 695 |
rajveer |
1831 |
oprot.writeI64(this.userId);
|
| 123 |
ashish |
1832 |
oprot.writeFieldEnd();
|
|
|
1833 |
oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
|
|
|
1834 |
oprot.writeDouble(this.amount);
|
|
|
1835 |
oprot.writeFieldEnd();
|
| 420 |
ashish |
1836 |
oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
|
| 695 |
rajveer |
1837 |
oprot.writeI64(this.gatewayId);
|
| 420 |
ashish |
1838 |
oprot.writeFieldEnd();
|
| 695 |
rajveer |
1839 |
oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
|
|
|
1840 |
oprot.writeI64(this.txnId);
|
|
|
1841 |
oprot.writeFieldEnd();
|
| 123 |
ashish |
1842 |
oprot.writeFieldStop();
|
|
|
1843 |
oprot.writeStructEnd();
|
|
|
1844 |
}
|
|
|
1845 |
|
|
|
1846 |
@Override
|
|
|
1847 |
public String toString() {
|
|
|
1848 |
StringBuilder sb = new StringBuilder("createPayment_args(");
|
|
|
1849 |
boolean first = true;
|
|
|
1850 |
|
| 695 |
rajveer |
1851 |
sb.append("userId:");
|
|
|
1852 |
sb.append(this.userId);
|
| 123 |
ashish |
1853 |
first = false;
|
|
|
1854 |
if (!first) sb.append(", ");
|
|
|
1855 |
sb.append("amount:");
|
|
|
1856 |
sb.append(this.amount);
|
|
|
1857 |
first = false;
|
|
|
1858 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
1859 |
sb.append("gatewayId:");
|
|
|
1860 |
sb.append(this.gatewayId);
|
| 123 |
ashish |
1861 |
first = false;
|
| 695 |
rajveer |
1862 |
if (!first) sb.append(", ");
|
|
|
1863 |
sb.append("txnId:");
|
|
|
1864 |
sb.append(this.txnId);
|
|
|
1865 |
first = false;
|
| 123 |
ashish |
1866 |
sb.append(")");
|
|
|
1867 |
return sb.toString();
|
|
|
1868 |
}
|
|
|
1869 |
|
| 3430 |
rajveer |
1870 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
1871 |
// check for required fields
|
|
|
1872 |
}
|
|
|
1873 |
|
| 3430 |
rajveer |
1874 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1875 |
try {
|
|
|
1876 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1877 |
} catch (org.apache.thrift.TException te) {
|
|
|
1878 |
throw new java.io.IOException(te);
|
|
|
1879 |
}
|
|
|
1880 |
}
|
|
|
1881 |
|
|
|
1882 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1883 |
try {
|
|
|
1884 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1885 |
} catch (org.apache.thrift.TException te) {
|
|
|
1886 |
throw new java.io.IOException(te);
|
|
|
1887 |
}
|
|
|
1888 |
}
|
|
|
1889 |
|
| 123 |
ashish |
1890 |
}
|
|
|
1891 |
|
| 3430 |
rajveer |
1892 |
public static class createPayment_result implements org.apache.thrift.TBase<createPayment_result, createPayment_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
1893 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_result");
|
| 123 |
ashish |
1894 |
|
| 3430 |
rajveer |
1895 |
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);
|
|
|
1896 |
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 |
1897 |
|
| 3430 |
rajveer |
1898 |
private long success; // required
|
|
|
1899 |
private PaymentException pe; // required
|
| 123 |
ashish |
1900 |
|
|
|
1901 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1902 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 123 |
ashish |
1903 |
SUCCESS((short)0, "success"),
|
|
|
1904 |
PE((short)1, "pe");
|
|
|
1905 |
|
|
|
1906 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1907 |
|
|
|
1908 |
static {
|
|
|
1909 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1910 |
byName.put(field.getFieldName(), field);
|
|
|
1911 |
}
|
|
|
1912 |
}
|
|
|
1913 |
|
|
|
1914 |
/**
|
|
|
1915 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1916 |
*/
|
|
|
1917 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1918 |
switch(fieldId) {
|
|
|
1919 |
case 0: // SUCCESS
|
|
|
1920 |
return SUCCESS;
|
|
|
1921 |
case 1: // PE
|
|
|
1922 |
return PE;
|
|
|
1923 |
default:
|
|
|
1924 |
return null;
|
|
|
1925 |
}
|
| 123 |
ashish |
1926 |
}
|
|
|
1927 |
|
|
|
1928 |
/**
|
|
|
1929 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1930 |
* if it is not found.
|
|
|
1931 |
*/
|
|
|
1932 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1933 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1934 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1935 |
return fields;
|
|
|
1936 |
}
|
|
|
1937 |
|
|
|
1938 |
/**
|
|
|
1939 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1940 |
*/
|
|
|
1941 |
public static _Fields findByName(String name) {
|
|
|
1942 |
return byName.get(name);
|
|
|
1943 |
}
|
|
|
1944 |
|
|
|
1945 |
private final short _thriftId;
|
|
|
1946 |
private final String _fieldName;
|
|
|
1947 |
|
|
|
1948 |
_Fields(short thriftId, String fieldName) {
|
|
|
1949 |
_thriftId = thriftId;
|
|
|
1950 |
_fieldName = fieldName;
|
|
|
1951 |
}
|
|
|
1952 |
|
|
|
1953 |
public short getThriftFieldId() {
|
|
|
1954 |
return _thriftId;
|
|
|
1955 |
}
|
|
|
1956 |
|
|
|
1957 |
public String getFieldName() {
|
|
|
1958 |
return _fieldName;
|
|
|
1959 |
}
|
|
|
1960 |
}
|
|
|
1961 |
|
|
|
1962 |
// isset id assignments
|
| 420 |
ashish |
1963 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
1964 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 123 |
ashish |
1965 |
|
| 3430 |
rajveer |
1966 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
1967 |
static {
|
| 3430 |
rajveer |
1968 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1969 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1970 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
1971 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1972 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
1973 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1974 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_result.class, metaDataMap);
|
| 123 |
ashish |
1975 |
}
|
|
|
1976 |
|
|
|
1977 |
public createPayment_result() {
|
|
|
1978 |
}
|
|
|
1979 |
|
|
|
1980 |
public createPayment_result(
|
| 420 |
ashish |
1981 |
long success,
|
| 123 |
ashish |
1982 |
PaymentException pe)
|
|
|
1983 |
{
|
|
|
1984 |
this();
|
|
|
1985 |
this.success = success;
|
| 420 |
ashish |
1986 |
setSuccessIsSet(true);
|
| 123 |
ashish |
1987 |
this.pe = pe;
|
|
|
1988 |
}
|
|
|
1989 |
|
|
|
1990 |
/**
|
|
|
1991 |
* Performs a deep copy on <i>other</i>.
|
|
|
1992 |
*/
|
|
|
1993 |
public createPayment_result(createPayment_result other) {
|
| 420 |
ashish |
1994 |
__isset_bit_vector.clear();
|
|
|
1995 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
1996 |
this.success = other.success;
|
| 123 |
ashish |
1997 |
if (other.isSetPe()) {
|
|
|
1998 |
this.pe = new PaymentException(other.pe);
|
|
|
1999 |
}
|
|
|
2000 |
}
|
|
|
2001 |
|
|
|
2002 |
public createPayment_result deepCopy() {
|
|
|
2003 |
return new createPayment_result(this);
|
|
|
2004 |
}
|
|
|
2005 |
|
| 3430 |
rajveer |
2006 |
@Override
|
|
|
2007 |
public void clear() {
|
|
|
2008 |
setSuccessIsSet(false);
|
|
|
2009 |
this.success = 0;
|
|
|
2010 |
this.pe = null;
|
| 123 |
ashish |
2011 |
}
|
|
|
2012 |
|
| 420 |
ashish |
2013 |
public long getSuccess() {
|
| 123 |
ashish |
2014 |
return this.success;
|
|
|
2015 |
}
|
|
|
2016 |
|
| 3430 |
rajveer |
2017 |
public void setSuccess(long success) {
|
| 123 |
ashish |
2018 |
this.success = success;
|
| 420 |
ashish |
2019 |
setSuccessIsSet(true);
|
| 123 |
ashish |
2020 |
}
|
|
|
2021 |
|
|
|
2022 |
public void unsetSuccess() {
|
| 420 |
ashish |
2023 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
| 123 |
ashish |
2024 |
}
|
|
|
2025 |
|
| 3430 |
rajveer |
2026 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
2027 |
public boolean isSetSuccess() {
|
| 420 |
ashish |
2028 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
| 123 |
ashish |
2029 |
}
|
|
|
2030 |
|
|
|
2031 |
public void setSuccessIsSet(boolean value) {
|
| 420 |
ashish |
2032 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
| 123 |
ashish |
2033 |
}
|
|
|
2034 |
|
|
|
2035 |
public PaymentException getPe() {
|
|
|
2036 |
return this.pe;
|
|
|
2037 |
}
|
|
|
2038 |
|
| 3430 |
rajveer |
2039 |
public void setPe(PaymentException pe) {
|
| 123 |
ashish |
2040 |
this.pe = pe;
|
|
|
2041 |
}
|
|
|
2042 |
|
|
|
2043 |
public void unsetPe() {
|
|
|
2044 |
this.pe = null;
|
|
|
2045 |
}
|
|
|
2046 |
|
| 3430 |
rajveer |
2047 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
2048 |
public boolean isSetPe() {
|
|
|
2049 |
return this.pe != null;
|
|
|
2050 |
}
|
|
|
2051 |
|
|
|
2052 |
public void setPeIsSet(boolean value) {
|
|
|
2053 |
if (!value) {
|
|
|
2054 |
this.pe = null;
|
|
|
2055 |
}
|
|
|
2056 |
}
|
|
|
2057 |
|
|
|
2058 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2059 |
switch (field) {
|
|
|
2060 |
case SUCCESS:
|
|
|
2061 |
if (value == null) {
|
|
|
2062 |
unsetSuccess();
|
|
|
2063 |
} else {
|
| 420 |
ashish |
2064 |
setSuccess((Long)value);
|
| 123 |
ashish |
2065 |
}
|
|
|
2066 |
break;
|
|
|
2067 |
|
|
|
2068 |
case PE:
|
|
|
2069 |
if (value == null) {
|
|
|
2070 |
unsetPe();
|
|
|
2071 |
} else {
|
|
|
2072 |
setPe((PaymentException)value);
|
|
|
2073 |
}
|
|
|
2074 |
break;
|
|
|
2075 |
|
|
|
2076 |
}
|
|
|
2077 |
}
|
|
|
2078 |
|
|
|
2079 |
public Object getFieldValue(_Fields field) {
|
|
|
2080 |
switch (field) {
|
|
|
2081 |
case SUCCESS:
|
| 3430 |
rajveer |
2082 |
return Long.valueOf(getSuccess());
|
| 123 |
ashish |
2083 |
|
|
|
2084 |
case PE:
|
|
|
2085 |
return getPe();
|
|
|
2086 |
|
|
|
2087 |
}
|
|
|
2088 |
throw new IllegalStateException();
|
|
|
2089 |
}
|
|
|
2090 |
|
| 3430 |
rajveer |
2091 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2092 |
public boolean isSet(_Fields field) {
|
|
|
2093 |
if (field == null) {
|
|
|
2094 |
throw new IllegalArgumentException();
|
|
|
2095 |
}
|
| 123 |
ashish |
2096 |
|
|
|
2097 |
switch (field) {
|
|
|
2098 |
case SUCCESS:
|
|
|
2099 |
return isSetSuccess();
|
|
|
2100 |
case PE:
|
|
|
2101 |
return isSetPe();
|
|
|
2102 |
}
|
|
|
2103 |
throw new IllegalStateException();
|
|
|
2104 |
}
|
|
|
2105 |
|
|
|
2106 |
@Override
|
|
|
2107 |
public boolean equals(Object that) {
|
|
|
2108 |
if (that == null)
|
|
|
2109 |
return false;
|
|
|
2110 |
if (that instanceof createPayment_result)
|
|
|
2111 |
return this.equals((createPayment_result)that);
|
|
|
2112 |
return false;
|
|
|
2113 |
}
|
|
|
2114 |
|
|
|
2115 |
public boolean equals(createPayment_result that) {
|
|
|
2116 |
if (that == null)
|
|
|
2117 |
return false;
|
|
|
2118 |
|
| 420 |
ashish |
2119 |
boolean this_present_success = true;
|
|
|
2120 |
boolean that_present_success = true;
|
| 123 |
ashish |
2121 |
if (this_present_success || that_present_success) {
|
|
|
2122 |
if (!(this_present_success && that_present_success))
|
|
|
2123 |
return false;
|
| 420 |
ashish |
2124 |
if (this.success != that.success)
|
| 123 |
ashish |
2125 |
return false;
|
|
|
2126 |
}
|
|
|
2127 |
|
|
|
2128 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
2129 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
2130 |
if (this_present_pe || that_present_pe) {
|
|
|
2131 |
if (!(this_present_pe && that_present_pe))
|
|
|
2132 |
return false;
|
|
|
2133 |
if (!this.pe.equals(that.pe))
|
|
|
2134 |
return false;
|
|
|
2135 |
}
|
|
|
2136 |
|
|
|
2137 |
return true;
|
|
|
2138 |
}
|
|
|
2139 |
|
|
|
2140 |
@Override
|
|
|
2141 |
public int hashCode() {
|
|
|
2142 |
return 0;
|
|
|
2143 |
}
|
|
|
2144 |
|
| 420 |
ashish |
2145 |
public int compareTo(createPayment_result other) {
|
|
|
2146 |
if (!getClass().equals(other.getClass())) {
|
|
|
2147 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2148 |
}
|
|
|
2149 |
|
|
|
2150 |
int lastComparison = 0;
|
|
|
2151 |
createPayment_result typedOther = (createPayment_result)other;
|
|
|
2152 |
|
| 3430 |
rajveer |
2153 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 420 |
ashish |
2154 |
if (lastComparison != 0) {
|
|
|
2155 |
return lastComparison;
|
|
|
2156 |
}
|
| 3430 |
rajveer |
2157 |
if (isSetSuccess()) {
|
|
|
2158 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
2159 |
if (lastComparison != 0) {
|
|
|
2160 |
return lastComparison;
|
|
|
2161 |
}
|
| 420 |
ashish |
2162 |
}
|
| 3430 |
rajveer |
2163 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 420 |
ashish |
2164 |
if (lastComparison != 0) {
|
|
|
2165 |
return lastComparison;
|
|
|
2166 |
}
|
| 3430 |
rajveer |
2167 |
if (isSetPe()) {
|
|
|
2168 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
2169 |
if (lastComparison != 0) {
|
|
|
2170 |
return lastComparison;
|
|
|
2171 |
}
|
| 420 |
ashish |
2172 |
}
|
|
|
2173 |
return 0;
|
|
|
2174 |
}
|
|
|
2175 |
|
| 3430 |
rajveer |
2176 |
public _Fields fieldForId(int fieldId) {
|
|
|
2177 |
return _Fields.findByThriftId(fieldId);
|
|
|
2178 |
}
|
|
|
2179 |
|
|
|
2180 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2181 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
2182 |
iprot.readStructBegin();
|
|
|
2183 |
while (true)
|
|
|
2184 |
{
|
|
|
2185 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2186 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
2187 |
break;
|
|
|
2188 |
}
|
| 3430 |
rajveer |
2189 |
switch (field.id) {
|
|
|
2190 |
case 0: // SUCCESS
|
|
|
2191 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
2192 |
this.success = iprot.readI64();
|
|
|
2193 |
setSuccessIsSet(true);
|
|
|
2194 |
} else {
|
|
|
2195 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2196 |
}
|
|
|
2197 |
break;
|
|
|
2198 |
case 1: // PE
|
|
|
2199 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2200 |
this.pe = new PaymentException();
|
|
|
2201 |
this.pe.read(iprot);
|
|
|
2202 |
} else {
|
|
|
2203 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2204 |
}
|
|
|
2205 |
break;
|
|
|
2206 |
default:
|
|
|
2207 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
2208 |
}
|
| 3430 |
rajveer |
2209 |
iprot.readFieldEnd();
|
| 123 |
ashish |
2210 |
}
|
|
|
2211 |
iprot.readStructEnd();
|
|
|
2212 |
validate();
|
|
|
2213 |
}
|
|
|
2214 |
|
| 3430 |
rajveer |
2215 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
2216 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2217 |
|
|
|
2218 |
if (this.isSetSuccess()) {
|
|
|
2219 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 420 |
ashish |
2220 |
oprot.writeI64(this.success);
|
| 123 |
ashish |
2221 |
oprot.writeFieldEnd();
|
|
|
2222 |
} else if (this.isSetPe()) {
|
|
|
2223 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
2224 |
this.pe.write(oprot);
|
|
|
2225 |
oprot.writeFieldEnd();
|
|
|
2226 |
}
|
|
|
2227 |
oprot.writeFieldStop();
|
|
|
2228 |
oprot.writeStructEnd();
|
|
|
2229 |
}
|
|
|
2230 |
|
|
|
2231 |
@Override
|
|
|
2232 |
public String toString() {
|
|
|
2233 |
StringBuilder sb = new StringBuilder("createPayment_result(");
|
|
|
2234 |
boolean first = true;
|
|
|
2235 |
|
|
|
2236 |
sb.append("success:");
|
| 420 |
ashish |
2237 |
sb.append(this.success);
|
| 123 |
ashish |
2238 |
first = false;
|
|
|
2239 |
if (!first) sb.append(", ");
|
|
|
2240 |
sb.append("pe:");
|
|
|
2241 |
if (this.pe == null) {
|
|
|
2242 |
sb.append("null");
|
|
|
2243 |
} else {
|
|
|
2244 |
sb.append(this.pe);
|
|
|
2245 |
}
|
|
|
2246 |
first = false;
|
|
|
2247 |
sb.append(")");
|
|
|
2248 |
return sb.toString();
|
|
|
2249 |
}
|
|
|
2250 |
|
| 3430 |
rajveer |
2251 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
2252 |
// check for required fields
|
|
|
2253 |
}
|
|
|
2254 |
|
| 3430 |
rajveer |
2255 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2256 |
try {
|
|
|
2257 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2258 |
} catch (org.apache.thrift.TException te) {
|
|
|
2259 |
throw new java.io.IOException(te);
|
|
|
2260 |
}
|
|
|
2261 |
}
|
|
|
2262 |
|
|
|
2263 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2264 |
try {
|
|
|
2265 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2266 |
} catch (org.apache.thrift.TException te) {
|
|
|
2267 |
throw new java.io.IOException(te);
|
|
|
2268 |
}
|
|
|
2269 |
}
|
|
|
2270 |
|
| 123 |
ashish |
2271 |
}
|
|
|
2272 |
|
| 3430 |
rajveer |
2273 |
public static class getPaymentsForUser_args implements org.apache.thrift.TBase<getPaymentsForUser_args, getPaymentsForUser_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2274 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_args");
|
| 123 |
ashish |
2275 |
|
| 3430 |
rajveer |
2276 |
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);
|
|
|
2277 |
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);
|
|
|
2278 |
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);
|
|
|
2279 |
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);
|
|
|
2280 |
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 |
2281 |
|
| 3430 |
rajveer |
2282 |
private long userId; // required
|
|
|
2283 |
private long fromTime; // required
|
|
|
2284 |
private long toTime; // required
|
|
|
2285 |
private PaymentStatus status; // required
|
|
|
2286 |
private long gatewayId; // required
|
| 123 |
ashish |
2287 |
|
|
|
2288 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2289 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 123 |
ashish |
2290 |
USER_ID((short)1, "userId"),
|
| 695 |
rajveer |
2291 |
FROM_TIME((short)2, "fromTime"),
|
|
|
2292 |
TO_TIME((short)3, "toTime"),
|
| 123 |
ashish |
2293 |
/**
|
|
|
2294 |
*
|
|
|
2295 |
* @see PaymentStatus
|
|
|
2296 |
*/
|
|
|
2297 |
STATUS((short)4, "status"),
|
| 695 |
rajveer |
2298 |
GATEWAY_ID((short)5, "gatewayId");
|
| 123 |
ashish |
2299 |
|
|
|
2300 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2301 |
|
|
|
2302 |
static {
|
|
|
2303 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2304 |
byName.put(field.getFieldName(), field);
|
|
|
2305 |
}
|
|
|
2306 |
}
|
|
|
2307 |
|
|
|
2308 |
/**
|
|
|
2309 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2310 |
*/
|
|
|
2311 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2312 |
switch(fieldId) {
|
|
|
2313 |
case 1: // USER_ID
|
|
|
2314 |
return USER_ID;
|
|
|
2315 |
case 2: // FROM_TIME
|
|
|
2316 |
return FROM_TIME;
|
|
|
2317 |
case 3: // TO_TIME
|
|
|
2318 |
return TO_TIME;
|
|
|
2319 |
case 4: // STATUS
|
|
|
2320 |
return STATUS;
|
|
|
2321 |
case 5: // GATEWAY_ID
|
|
|
2322 |
return GATEWAY_ID;
|
|
|
2323 |
default:
|
|
|
2324 |
return null;
|
|
|
2325 |
}
|
| 123 |
ashish |
2326 |
}
|
|
|
2327 |
|
|
|
2328 |
/**
|
|
|
2329 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2330 |
* if it is not found.
|
|
|
2331 |
*/
|
|
|
2332 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2333 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2334 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2335 |
return fields;
|
|
|
2336 |
}
|
|
|
2337 |
|
|
|
2338 |
/**
|
|
|
2339 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2340 |
*/
|
|
|
2341 |
public static _Fields findByName(String name) {
|
|
|
2342 |
return byName.get(name);
|
|
|
2343 |
}
|
|
|
2344 |
|
|
|
2345 |
private final short _thriftId;
|
|
|
2346 |
private final String _fieldName;
|
|
|
2347 |
|
|
|
2348 |
_Fields(short thriftId, String fieldName) {
|
|
|
2349 |
_thriftId = thriftId;
|
|
|
2350 |
_fieldName = fieldName;
|
|
|
2351 |
}
|
|
|
2352 |
|
|
|
2353 |
public short getThriftFieldId() {
|
|
|
2354 |
return _thriftId;
|
|
|
2355 |
}
|
|
|
2356 |
|
|
|
2357 |
public String getFieldName() {
|
|
|
2358 |
return _fieldName;
|
|
|
2359 |
}
|
|
|
2360 |
}
|
|
|
2361 |
|
|
|
2362 |
// isset id assignments
|
|
|
2363 |
private static final int __USERID_ISSET_ID = 0;
|
| 695 |
rajveer |
2364 |
private static final int __FROMTIME_ISSET_ID = 1;
|
|
|
2365 |
private static final int __TOTIME_ISSET_ID = 2;
|
|
|
2366 |
private static final int __GATEWAYID_ISSET_ID = 3;
|
| 420 |
ashish |
2367 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 123 |
ashish |
2368 |
|
| 3430 |
rajveer |
2369 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
2370 |
static {
|
| 3430 |
rajveer |
2371 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2372 |
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2373 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
2374 |
tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2375 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
2376 |
tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2377 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
2378 |
tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2379 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
|
|
|
2380 |
tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2381 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
2382 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2383 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_args.class, metaDataMap);
|
| 123 |
ashish |
2384 |
}
|
|
|
2385 |
|
|
|
2386 |
public getPaymentsForUser_args() {
|
|
|
2387 |
}
|
|
|
2388 |
|
|
|
2389 |
public getPaymentsForUser_args(
|
|
|
2390 |
long userId,
|
| 695 |
rajveer |
2391 |
long fromTime,
|
|
|
2392 |
long toTime,
|
| 123 |
ashish |
2393 |
PaymentStatus status,
|
| 695 |
rajveer |
2394 |
long gatewayId)
|
| 123 |
ashish |
2395 |
{
|
|
|
2396 |
this();
|
|
|
2397 |
this.userId = userId;
|
|
|
2398 |
setUserIdIsSet(true);
|
| 695 |
rajveer |
2399 |
this.fromTime = fromTime;
|
|
|
2400 |
setFromTimeIsSet(true);
|
|
|
2401 |
this.toTime = toTime;
|
|
|
2402 |
setToTimeIsSet(true);
|
| 123 |
ashish |
2403 |
this.status = status;
|
| 695 |
rajveer |
2404 |
this.gatewayId = gatewayId;
|
|
|
2405 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
2406 |
}
|
|
|
2407 |
|
|
|
2408 |
/**
|
|
|
2409 |
* Performs a deep copy on <i>other</i>.
|
|
|
2410 |
*/
|
|
|
2411 |
public getPaymentsForUser_args(getPaymentsForUser_args other) {
|
|
|
2412 |
__isset_bit_vector.clear();
|
|
|
2413 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
2414 |
this.userId = other.userId;
|
| 695 |
rajveer |
2415 |
this.fromTime = other.fromTime;
|
|
|
2416 |
this.toTime = other.toTime;
|
| 123 |
ashish |
2417 |
if (other.isSetStatus()) {
|
|
|
2418 |
this.status = other.status;
|
|
|
2419 |
}
|
| 695 |
rajveer |
2420 |
this.gatewayId = other.gatewayId;
|
| 123 |
ashish |
2421 |
}
|
|
|
2422 |
|
|
|
2423 |
public getPaymentsForUser_args deepCopy() {
|
|
|
2424 |
return new getPaymentsForUser_args(this);
|
|
|
2425 |
}
|
|
|
2426 |
|
| 3430 |
rajveer |
2427 |
@Override
|
|
|
2428 |
public void clear() {
|
|
|
2429 |
setUserIdIsSet(false);
|
|
|
2430 |
this.userId = 0;
|
|
|
2431 |
setFromTimeIsSet(false);
|
|
|
2432 |
this.fromTime = 0;
|
|
|
2433 |
setToTimeIsSet(false);
|
|
|
2434 |
this.toTime = 0;
|
|
|
2435 |
this.status = null;
|
|
|
2436 |
setGatewayIdIsSet(false);
|
|
|
2437 |
this.gatewayId = 0;
|
| 123 |
ashish |
2438 |
}
|
|
|
2439 |
|
|
|
2440 |
public long getUserId() {
|
|
|
2441 |
return this.userId;
|
|
|
2442 |
}
|
|
|
2443 |
|
| 3430 |
rajveer |
2444 |
public void setUserId(long userId) {
|
| 123 |
ashish |
2445 |
this.userId = userId;
|
|
|
2446 |
setUserIdIsSet(true);
|
|
|
2447 |
}
|
|
|
2448 |
|
|
|
2449 |
public void unsetUserId() {
|
|
|
2450 |
__isset_bit_vector.clear(__USERID_ISSET_ID);
|
|
|
2451 |
}
|
|
|
2452 |
|
| 3430 |
rajveer |
2453 |
/** Returns true if field userId is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
2454 |
public boolean isSetUserId() {
|
|
|
2455 |
return __isset_bit_vector.get(__USERID_ISSET_ID);
|
|
|
2456 |
}
|
|
|
2457 |
|
|
|
2458 |
public void setUserIdIsSet(boolean value) {
|
|
|
2459 |
__isset_bit_vector.set(__USERID_ISSET_ID, value);
|
|
|
2460 |
}
|
|
|
2461 |
|
| 695 |
rajveer |
2462 |
public long getFromTime() {
|
|
|
2463 |
return this.fromTime;
|
| 123 |
ashish |
2464 |
}
|
|
|
2465 |
|
| 3430 |
rajveer |
2466 |
public void setFromTime(long fromTime) {
|
| 695 |
rajveer |
2467 |
this.fromTime = fromTime;
|
|
|
2468 |
setFromTimeIsSet(true);
|
| 123 |
ashish |
2469 |
}
|
|
|
2470 |
|
| 695 |
rajveer |
2471 |
public void unsetFromTime() {
|
|
|
2472 |
__isset_bit_vector.clear(__FROMTIME_ISSET_ID);
|
| 123 |
ashish |
2473 |
}
|
|
|
2474 |
|
| 3430 |
rajveer |
2475 |
/** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
2476 |
public boolean isSetFromTime() {
|
|
|
2477 |
return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
|
| 123 |
ashish |
2478 |
}
|
|
|
2479 |
|
| 695 |
rajveer |
2480 |
public void setFromTimeIsSet(boolean value) {
|
|
|
2481 |
__isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
|
| 123 |
ashish |
2482 |
}
|
|
|
2483 |
|
| 695 |
rajveer |
2484 |
public long getToTime() {
|
|
|
2485 |
return this.toTime;
|
| 123 |
ashish |
2486 |
}
|
|
|
2487 |
|
| 3430 |
rajveer |
2488 |
public void setToTime(long toTime) {
|
| 695 |
rajveer |
2489 |
this.toTime = toTime;
|
|
|
2490 |
setToTimeIsSet(true);
|
| 123 |
ashish |
2491 |
}
|
|
|
2492 |
|
| 695 |
rajveer |
2493 |
public void unsetToTime() {
|
|
|
2494 |
__isset_bit_vector.clear(__TOTIME_ISSET_ID);
|
| 123 |
ashish |
2495 |
}
|
|
|
2496 |
|
| 3430 |
rajveer |
2497 |
/** Returns true if field toTime is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
2498 |
public boolean isSetToTime() {
|
|
|
2499 |
return __isset_bit_vector.get(__TOTIME_ISSET_ID);
|
| 123 |
ashish |
2500 |
}
|
|
|
2501 |
|
| 695 |
rajveer |
2502 |
public void setToTimeIsSet(boolean value) {
|
|
|
2503 |
__isset_bit_vector.set(__TOTIME_ISSET_ID, value);
|
| 123 |
ashish |
2504 |
}
|
|
|
2505 |
|
|
|
2506 |
/**
|
|
|
2507 |
*
|
|
|
2508 |
* @see PaymentStatus
|
|
|
2509 |
*/
|
|
|
2510 |
public PaymentStatus getStatus() {
|
|
|
2511 |
return this.status;
|
|
|
2512 |
}
|
|
|
2513 |
|
|
|
2514 |
/**
|
|
|
2515 |
*
|
|
|
2516 |
* @see PaymentStatus
|
|
|
2517 |
*/
|
| 3430 |
rajveer |
2518 |
public void setStatus(PaymentStatus status) {
|
| 123 |
ashish |
2519 |
this.status = status;
|
|
|
2520 |
}
|
|
|
2521 |
|
|
|
2522 |
public void unsetStatus() {
|
|
|
2523 |
this.status = null;
|
|
|
2524 |
}
|
|
|
2525 |
|
| 3430 |
rajveer |
2526 |
/** Returns true if field status is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
2527 |
public boolean isSetStatus() {
|
|
|
2528 |
return this.status != null;
|
|
|
2529 |
}
|
|
|
2530 |
|
|
|
2531 |
public void setStatusIsSet(boolean value) {
|
|
|
2532 |
if (!value) {
|
|
|
2533 |
this.status = null;
|
|
|
2534 |
}
|
|
|
2535 |
}
|
|
|
2536 |
|
| 695 |
rajveer |
2537 |
public long getGatewayId() {
|
|
|
2538 |
return this.gatewayId;
|
| 123 |
ashish |
2539 |
}
|
|
|
2540 |
|
| 3430 |
rajveer |
2541 |
public void setGatewayId(long gatewayId) {
|
| 695 |
rajveer |
2542 |
this.gatewayId = gatewayId;
|
|
|
2543 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
2544 |
}
|
|
|
2545 |
|
| 695 |
rajveer |
2546 |
public void unsetGatewayId() {
|
|
|
2547 |
__isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
2548 |
}
|
|
|
2549 |
|
| 3430 |
rajveer |
2550 |
/** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
2551 |
public boolean isSetGatewayId() {
|
|
|
2552 |
return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
2553 |
}
|
|
|
2554 |
|
| 695 |
rajveer |
2555 |
public void setGatewayIdIsSet(boolean value) {
|
|
|
2556 |
__isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
|
| 123 |
ashish |
2557 |
}
|
|
|
2558 |
|
|
|
2559 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2560 |
switch (field) {
|
|
|
2561 |
case USER_ID:
|
|
|
2562 |
if (value == null) {
|
|
|
2563 |
unsetUserId();
|
|
|
2564 |
} else {
|
|
|
2565 |
setUserId((Long)value);
|
|
|
2566 |
}
|
|
|
2567 |
break;
|
|
|
2568 |
|
|
|
2569 |
case FROM_TIME:
|
|
|
2570 |
if (value == null) {
|
| 695 |
rajveer |
2571 |
unsetFromTime();
|
| 123 |
ashish |
2572 |
} else {
|
| 695 |
rajveer |
2573 |
setFromTime((Long)value);
|
| 123 |
ashish |
2574 |
}
|
|
|
2575 |
break;
|
|
|
2576 |
|
|
|
2577 |
case TO_TIME:
|
|
|
2578 |
if (value == null) {
|
| 695 |
rajveer |
2579 |
unsetToTime();
|
| 123 |
ashish |
2580 |
} else {
|
| 695 |
rajveer |
2581 |
setToTime((Long)value);
|
| 123 |
ashish |
2582 |
}
|
|
|
2583 |
break;
|
|
|
2584 |
|
|
|
2585 |
case STATUS:
|
|
|
2586 |
if (value == null) {
|
|
|
2587 |
unsetStatus();
|
|
|
2588 |
} else {
|
|
|
2589 |
setStatus((PaymentStatus)value);
|
|
|
2590 |
}
|
|
|
2591 |
break;
|
|
|
2592 |
|
| 420 |
ashish |
2593 |
case GATEWAY_ID:
|
| 123 |
ashish |
2594 |
if (value == null) {
|
| 695 |
rajveer |
2595 |
unsetGatewayId();
|
| 123 |
ashish |
2596 |
} else {
|
| 695 |
rajveer |
2597 |
setGatewayId((Long)value);
|
| 123 |
ashish |
2598 |
}
|
|
|
2599 |
break;
|
|
|
2600 |
|
|
|
2601 |
}
|
|
|
2602 |
}
|
|
|
2603 |
|
|
|
2604 |
public Object getFieldValue(_Fields field) {
|
|
|
2605 |
switch (field) {
|
|
|
2606 |
case USER_ID:
|
| 3430 |
rajveer |
2607 |
return Long.valueOf(getUserId());
|
| 123 |
ashish |
2608 |
|
|
|
2609 |
case FROM_TIME:
|
| 3430 |
rajveer |
2610 |
return Long.valueOf(getFromTime());
|
| 123 |
ashish |
2611 |
|
|
|
2612 |
case TO_TIME:
|
| 3430 |
rajveer |
2613 |
return Long.valueOf(getToTime());
|
| 123 |
ashish |
2614 |
|
|
|
2615 |
case STATUS:
|
|
|
2616 |
return getStatus();
|
|
|
2617 |
|
| 420 |
ashish |
2618 |
case GATEWAY_ID:
|
| 3430 |
rajveer |
2619 |
return Long.valueOf(getGatewayId());
|
| 123 |
ashish |
2620 |
|
|
|
2621 |
}
|
|
|
2622 |
throw new IllegalStateException();
|
|
|
2623 |
}
|
|
|
2624 |
|
| 3430 |
rajveer |
2625 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2626 |
public boolean isSet(_Fields field) {
|
|
|
2627 |
if (field == null) {
|
|
|
2628 |
throw new IllegalArgumentException();
|
|
|
2629 |
}
|
| 123 |
ashish |
2630 |
|
|
|
2631 |
switch (field) {
|
|
|
2632 |
case USER_ID:
|
|
|
2633 |
return isSetUserId();
|
|
|
2634 |
case FROM_TIME:
|
| 695 |
rajveer |
2635 |
return isSetFromTime();
|
| 123 |
ashish |
2636 |
case TO_TIME:
|
| 695 |
rajveer |
2637 |
return isSetToTime();
|
| 123 |
ashish |
2638 |
case STATUS:
|
|
|
2639 |
return isSetStatus();
|
| 420 |
ashish |
2640 |
case GATEWAY_ID:
|
| 695 |
rajveer |
2641 |
return isSetGatewayId();
|
| 123 |
ashish |
2642 |
}
|
|
|
2643 |
throw new IllegalStateException();
|
|
|
2644 |
}
|
|
|
2645 |
|
|
|
2646 |
@Override
|
|
|
2647 |
public boolean equals(Object that) {
|
|
|
2648 |
if (that == null)
|
|
|
2649 |
return false;
|
|
|
2650 |
if (that instanceof getPaymentsForUser_args)
|
|
|
2651 |
return this.equals((getPaymentsForUser_args)that);
|
|
|
2652 |
return false;
|
|
|
2653 |
}
|
|
|
2654 |
|
|
|
2655 |
public boolean equals(getPaymentsForUser_args that) {
|
|
|
2656 |
if (that == null)
|
|
|
2657 |
return false;
|
|
|
2658 |
|
|
|
2659 |
boolean this_present_userId = true;
|
|
|
2660 |
boolean that_present_userId = true;
|
|
|
2661 |
if (this_present_userId || that_present_userId) {
|
|
|
2662 |
if (!(this_present_userId && that_present_userId))
|
|
|
2663 |
return false;
|
|
|
2664 |
if (this.userId != that.userId)
|
|
|
2665 |
return false;
|
|
|
2666 |
}
|
|
|
2667 |
|
| 695 |
rajveer |
2668 |
boolean this_present_fromTime = true;
|
|
|
2669 |
boolean that_present_fromTime = true;
|
|
|
2670 |
if (this_present_fromTime || that_present_fromTime) {
|
|
|
2671 |
if (!(this_present_fromTime && that_present_fromTime))
|
| 123 |
ashish |
2672 |
return false;
|
| 695 |
rajveer |
2673 |
if (this.fromTime != that.fromTime)
|
| 123 |
ashish |
2674 |
return false;
|
|
|
2675 |
}
|
|
|
2676 |
|
| 695 |
rajveer |
2677 |
boolean this_present_toTime = true;
|
|
|
2678 |
boolean that_present_toTime = true;
|
|
|
2679 |
if (this_present_toTime || that_present_toTime) {
|
|
|
2680 |
if (!(this_present_toTime && that_present_toTime))
|
| 123 |
ashish |
2681 |
return false;
|
| 695 |
rajveer |
2682 |
if (this.toTime != that.toTime)
|
| 123 |
ashish |
2683 |
return false;
|
|
|
2684 |
}
|
|
|
2685 |
|
|
|
2686 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
2687 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
2688 |
if (this_present_status || that_present_status) {
|
|
|
2689 |
if (!(this_present_status && that_present_status))
|
|
|
2690 |
return false;
|
|
|
2691 |
if (!this.status.equals(that.status))
|
|
|
2692 |
return false;
|
|
|
2693 |
}
|
|
|
2694 |
|
| 695 |
rajveer |
2695 |
boolean this_present_gatewayId = true;
|
|
|
2696 |
boolean that_present_gatewayId = true;
|
|
|
2697 |
if (this_present_gatewayId || that_present_gatewayId) {
|
|
|
2698 |
if (!(this_present_gatewayId && that_present_gatewayId))
|
| 123 |
ashish |
2699 |
return false;
|
| 695 |
rajveer |
2700 |
if (this.gatewayId != that.gatewayId)
|
| 123 |
ashish |
2701 |
return false;
|
|
|
2702 |
}
|
|
|
2703 |
|
|
|
2704 |
return true;
|
|
|
2705 |
}
|
|
|
2706 |
|
|
|
2707 |
@Override
|
|
|
2708 |
public int hashCode() {
|
|
|
2709 |
return 0;
|
|
|
2710 |
}
|
|
|
2711 |
|
|
|
2712 |
public int compareTo(getPaymentsForUser_args other) {
|
|
|
2713 |
if (!getClass().equals(other.getClass())) {
|
|
|
2714 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2715 |
}
|
|
|
2716 |
|
|
|
2717 |
int lastComparison = 0;
|
|
|
2718 |
getPaymentsForUser_args typedOther = (getPaymentsForUser_args)other;
|
|
|
2719 |
|
| 3430 |
rajveer |
2720 |
lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
|
| 123 |
ashish |
2721 |
if (lastComparison != 0) {
|
|
|
2722 |
return lastComparison;
|
|
|
2723 |
}
|
| 3430 |
rajveer |
2724 |
if (isSetUserId()) {
|
|
|
2725 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
|
|
|
2726 |
if (lastComparison != 0) {
|
|
|
2727 |
return lastComparison;
|
|
|
2728 |
}
|
| 123 |
ashish |
2729 |
}
|
| 3430 |
rajveer |
2730 |
lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
|
| 123 |
ashish |
2731 |
if (lastComparison != 0) {
|
|
|
2732 |
return lastComparison;
|
|
|
2733 |
}
|
| 3430 |
rajveer |
2734 |
if (isSetFromTime()) {
|
|
|
2735 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
|
|
|
2736 |
if (lastComparison != 0) {
|
|
|
2737 |
return lastComparison;
|
|
|
2738 |
}
|
| 123 |
ashish |
2739 |
}
|
| 3430 |
rajveer |
2740 |
lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
|
| 123 |
ashish |
2741 |
if (lastComparison != 0) {
|
|
|
2742 |
return lastComparison;
|
|
|
2743 |
}
|
| 3430 |
rajveer |
2744 |
if (isSetToTime()) {
|
|
|
2745 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
|
|
|
2746 |
if (lastComparison != 0) {
|
|
|
2747 |
return lastComparison;
|
|
|
2748 |
}
|
| 123 |
ashish |
2749 |
}
|
| 3430 |
rajveer |
2750 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
|
| 123 |
ashish |
2751 |
if (lastComparison != 0) {
|
|
|
2752 |
return lastComparison;
|
|
|
2753 |
}
|
| 3430 |
rajveer |
2754 |
if (isSetStatus()) {
|
|
|
2755 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
|
|
|
2756 |
if (lastComparison != 0) {
|
|
|
2757 |
return lastComparison;
|
|
|
2758 |
}
|
| 123 |
ashish |
2759 |
}
|
| 3430 |
rajveer |
2760 |
lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
|
| 123 |
ashish |
2761 |
if (lastComparison != 0) {
|
|
|
2762 |
return lastComparison;
|
|
|
2763 |
}
|
| 3430 |
rajveer |
2764 |
if (isSetGatewayId()) {
|
|
|
2765 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
|
|
|
2766 |
if (lastComparison != 0) {
|
|
|
2767 |
return lastComparison;
|
|
|
2768 |
}
|
| 123 |
ashish |
2769 |
}
|
|
|
2770 |
return 0;
|
|
|
2771 |
}
|
|
|
2772 |
|
| 3430 |
rajveer |
2773 |
public _Fields fieldForId(int fieldId) {
|
|
|
2774 |
return _Fields.findByThriftId(fieldId);
|
|
|
2775 |
}
|
|
|
2776 |
|
|
|
2777 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2778 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
2779 |
iprot.readStructBegin();
|
|
|
2780 |
while (true)
|
|
|
2781 |
{
|
|
|
2782 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2783 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
2784 |
break;
|
|
|
2785 |
}
|
| 3430 |
rajveer |
2786 |
switch (field.id) {
|
|
|
2787 |
case 1: // USER_ID
|
|
|
2788 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
2789 |
this.userId = iprot.readI64();
|
|
|
2790 |
setUserIdIsSet(true);
|
|
|
2791 |
} else {
|
|
|
2792 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2793 |
}
|
|
|
2794 |
break;
|
|
|
2795 |
case 2: // FROM_TIME
|
|
|
2796 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
2797 |
this.fromTime = iprot.readI64();
|
|
|
2798 |
setFromTimeIsSet(true);
|
|
|
2799 |
} else {
|
|
|
2800 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2801 |
}
|
|
|
2802 |
break;
|
|
|
2803 |
case 3: // TO_TIME
|
|
|
2804 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
2805 |
this.toTime = iprot.readI64();
|
|
|
2806 |
setToTimeIsSet(true);
|
|
|
2807 |
} else {
|
|
|
2808 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2809 |
}
|
|
|
2810 |
break;
|
|
|
2811 |
case 4: // STATUS
|
|
|
2812 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
2813 |
this.status = PaymentStatus.findByValue(iprot.readI32());
|
|
|
2814 |
} else {
|
|
|
2815 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2816 |
}
|
|
|
2817 |
break;
|
|
|
2818 |
case 5: // GATEWAY_ID
|
|
|
2819 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
2820 |
this.gatewayId = iprot.readI64();
|
|
|
2821 |
setGatewayIdIsSet(true);
|
|
|
2822 |
} else {
|
|
|
2823 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2824 |
}
|
|
|
2825 |
break;
|
|
|
2826 |
default:
|
|
|
2827 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
2828 |
}
|
| 3430 |
rajveer |
2829 |
iprot.readFieldEnd();
|
| 123 |
ashish |
2830 |
}
|
|
|
2831 |
iprot.readStructEnd();
|
|
|
2832 |
validate();
|
|
|
2833 |
}
|
|
|
2834 |
|
| 3430 |
rajveer |
2835 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
2836 |
validate();
|
|
|
2837 |
|
|
|
2838 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2839 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
|
|
2840 |
oprot.writeI64(this.userId);
|
|
|
2841 |
oprot.writeFieldEnd();
|
|
|
2842 |
oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
|
| 695 |
rajveer |
2843 |
oprot.writeI64(this.fromTime);
|
| 123 |
ashish |
2844 |
oprot.writeFieldEnd();
|
|
|
2845 |
oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
|
| 695 |
rajveer |
2846 |
oprot.writeI64(this.toTime);
|
| 123 |
ashish |
2847 |
oprot.writeFieldEnd();
|
|
|
2848 |
if (this.status != null) {
|
|
|
2849 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
2850 |
oprot.writeI32(this.status.getValue());
|
|
|
2851 |
oprot.writeFieldEnd();
|
|
|
2852 |
}
|
| 420 |
ashish |
2853 |
oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
|
| 695 |
rajveer |
2854 |
oprot.writeI64(this.gatewayId);
|
| 420 |
ashish |
2855 |
oprot.writeFieldEnd();
|
| 123 |
ashish |
2856 |
oprot.writeFieldStop();
|
|
|
2857 |
oprot.writeStructEnd();
|
|
|
2858 |
}
|
|
|
2859 |
|
|
|
2860 |
@Override
|
|
|
2861 |
public String toString() {
|
|
|
2862 |
StringBuilder sb = new StringBuilder("getPaymentsForUser_args(");
|
|
|
2863 |
boolean first = true;
|
|
|
2864 |
|
|
|
2865 |
sb.append("userId:");
|
|
|
2866 |
sb.append(this.userId);
|
|
|
2867 |
first = false;
|
|
|
2868 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
2869 |
sb.append("fromTime:");
|
|
|
2870 |
sb.append(this.fromTime);
|
| 123 |
ashish |
2871 |
first = false;
|
|
|
2872 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
2873 |
sb.append("toTime:");
|
|
|
2874 |
sb.append(this.toTime);
|
| 123 |
ashish |
2875 |
first = false;
|
|
|
2876 |
if (!first) sb.append(", ");
|
|
|
2877 |
sb.append("status:");
|
|
|
2878 |
if (this.status == null) {
|
|
|
2879 |
sb.append("null");
|
|
|
2880 |
} else {
|
|
|
2881 |
sb.append(this.status);
|
|
|
2882 |
}
|
|
|
2883 |
first = false;
|
|
|
2884 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
2885 |
sb.append("gatewayId:");
|
|
|
2886 |
sb.append(this.gatewayId);
|
| 123 |
ashish |
2887 |
first = false;
|
|
|
2888 |
sb.append(")");
|
|
|
2889 |
return sb.toString();
|
|
|
2890 |
}
|
|
|
2891 |
|
| 3430 |
rajveer |
2892 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
2893 |
// check for required fields
|
|
|
2894 |
}
|
|
|
2895 |
|
| 3430 |
rajveer |
2896 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2897 |
try {
|
|
|
2898 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2899 |
} catch (org.apache.thrift.TException te) {
|
|
|
2900 |
throw new java.io.IOException(te);
|
|
|
2901 |
}
|
|
|
2902 |
}
|
|
|
2903 |
|
|
|
2904 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2905 |
try {
|
|
|
2906 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2907 |
} catch (org.apache.thrift.TException te) {
|
|
|
2908 |
throw new java.io.IOException(te);
|
|
|
2909 |
}
|
|
|
2910 |
}
|
|
|
2911 |
|
| 123 |
ashish |
2912 |
}
|
|
|
2913 |
|
| 3430 |
rajveer |
2914 |
public static class getPaymentsForUser_result implements org.apache.thrift.TBase<getPaymentsForUser_result, getPaymentsForUser_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2915 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_result");
|
| 123 |
ashish |
2916 |
|
| 3430 |
rajveer |
2917 |
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);
|
|
|
2918 |
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 |
2919 |
|
| 3430 |
rajveer |
2920 |
private List<Payment> success; // required
|
|
|
2921 |
private PaymentException pe; // required
|
| 123 |
ashish |
2922 |
|
|
|
2923 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2924 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 123 |
ashish |
2925 |
SUCCESS((short)0, "success"),
|
|
|
2926 |
PE((short)1, "pe");
|
|
|
2927 |
|
|
|
2928 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2929 |
|
|
|
2930 |
static {
|
|
|
2931 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2932 |
byName.put(field.getFieldName(), field);
|
|
|
2933 |
}
|
|
|
2934 |
}
|
|
|
2935 |
|
|
|
2936 |
/**
|
|
|
2937 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2938 |
*/
|
|
|
2939 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2940 |
switch(fieldId) {
|
|
|
2941 |
case 0: // SUCCESS
|
|
|
2942 |
return SUCCESS;
|
|
|
2943 |
case 1: // PE
|
|
|
2944 |
return PE;
|
|
|
2945 |
default:
|
|
|
2946 |
return null;
|
|
|
2947 |
}
|
| 123 |
ashish |
2948 |
}
|
|
|
2949 |
|
|
|
2950 |
/**
|
|
|
2951 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2952 |
* if it is not found.
|
|
|
2953 |
*/
|
|
|
2954 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2955 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2956 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2957 |
return fields;
|
|
|
2958 |
}
|
|
|
2959 |
|
|
|
2960 |
/**
|
|
|
2961 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2962 |
*/
|
|
|
2963 |
public static _Fields findByName(String name) {
|
|
|
2964 |
return byName.get(name);
|
|
|
2965 |
}
|
|
|
2966 |
|
|
|
2967 |
private final short _thriftId;
|
|
|
2968 |
private final String _fieldName;
|
|
|
2969 |
|
|
|
2970 |
_Fields(short thriftId, String fieldName) {
|
|
|
2971 |
_thriftId = thriftId;
|
|
|
2972 |
_fieldName = fieldName;
|
|
|
2973 |
}
|
|
|
2974 |
|
|
|
2975 |
public short getThriftFieldId() {
|
|
|
2976 |
return _thriftId;
|
|
|
2977 |
}
|
|
|
2978 |
|
|
|
2979 |
public String getFieldName() {
|
|
|
2980 |
return _fieldName;
|
|
|
2981 |
}
|
|
|
2982 |
}
|
|
|
2983 |
|
|
|
2984 |
// isset id assignments
|
|
|
2985 |
|
| 3430 |
rajveer |
2986 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
2987 |
static {
|
| 3430 |
rajveer |
2988 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2989 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2990 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
2991 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
|
|
|
2992 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2993 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
2994 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2995 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_result.class, metaDataMap);
|
| 123 |
ashish |
2996 |
}
|
|
|
2997 |
|
|
|
2998 |
public getPaymentsForUser_result() {
|
|
|
2999 |
}
|
|
|
3000 |
|
|
|
3001 |
public getPaymentsForUser_result(
|
|
|
3002 |
List<Payment> success,
|
|
|
3003 |
PaymentException pe)
|
|
|
3004 |
{
|
|
|
3005 |
this();
|
|
|
3006 |
this.success = success;
|
|
|
3007 |
this.pe = pe;
|
|
|
3008 |
}
|
|
|
3009 |
|
|
|
3010 |
/**
|
|
|
3011 |
* Performs a deep copy on <i>other</i>.
|
|
|
3012 |
*/
|
|
|
3013 |
public getPaymentsForUser_result(getPaymentsForUser_result other) {
|
|
|
3014 |
if (other.isSetSuccess()) {
|
|
|
3015 |
List<Payment> __this__success = new ArrayList<Payment>();
|
|
|
3016 |
for (Payment other_element : other.success) {
|
|
|
3017 |
__this__success.add(new Payment(other_element));
|
|
|
3018 |
}
|
|
|
3019 |
this.success = __this__success;
|
|
|
3020 |
}
|
|
|
3021 |
if (other.isSetPe()) {
|
|
|
3022 |
this.pe = new PaymentException(other.pe);
|
|
|
3023 |
}
|
|
|
3024 |
}
|
|
|
3025 |
|
|
|
3026 |
public getPaymentsForUser_result deepCopy() {
|
|
|
3027 |
return new getPaymentsForUser_result(this);
|
|
|
3028 |
}
|
|
|
3029 |
|
| 3430 |
rajveer |
3030 |
@Override
|
|
|
3031 |
public void clear() {
|
|
|
3032 |
this.success = null;
|
|
|
3033 |
this.pe = null;
|
| 123 |
ashish |
3034 |
}
|
|
|
3035 |
|
|
|
3036 |
public int getSuccessSize() {
|
|
|
3037 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
3038 |
}
|
|
|
3039 |
|
|
|
3040 |
public java.util.Iterator<Payment> getSuccessIterator() {
|
|
|
3041 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
3042 |
}
|
|
|
3043 |
|
|
|
3044 |
public void addToSuccess(Payment elem) {
|
|
|
3045 |
if (this.success == null) {
|
|
|
3046 |
this.success = new ArrayList<Payment>();
|
|
|
3047 |
}
|
|
|
3048 |
this.success.add(elem);
|
|
|
3049 |
}
|
|
|
3050 |
|
|
|
3051 |
public List<Payment> getSuccess() {
|
|
|
3052 |
return this.success;
|
|
|
3053 |
}
|
|
|
3054 |
|
| 3430 |
rajveer |
3055 |
public void setSuccess(List<Payment> success) {
|
| 123 |
ashish |
3056 |
this.success = success;
|
|
|
3057 |
}
|
|
|
3058 |
|
|
|
3059 |
public void unsetSuccess() {
|
|
|
3060 |
this.success = null;
|
|
|
3061 |
}
|
|
|
3062 |
|
| 3430 |
rajveer |
3063 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
3064 |
public boolean isSetSuccess() {
|
|
|
3065 |
return this.success != null;
|
|
|
3066 |
}
|
|
|
3067 |
|
|
|
3068 |
public void setSuccessIsSet(boolean value) {
|
|
|
3069 |
if (!value) {
|
|
|
3070 |
this.success = null;
|
|
|
3071 |
}
|
|
|
3072 |
}
|
|
|
3073 |
|
|
|
3074 |
public PaymentException getPe() {
|
|
|
3075 |
return this.pe;
|
|
|
3076 |
}
|
|
|
3077 |
|
| 3430 |
rajveer |
3078 |
public void setPe(PaymentException pe) {
|
| 123 |
ashish |
3079 |
this.pe = pe;
|
|
|
3080 |
}
|
|
|
3081 |
|
|
|
3082 |
public void unsetPe() {
|
|
|
3083 |
this.pe = null;
|
|
|
3084 |
}
|
|
|
3085 |
|
| 3430 |
rajveer |
3086 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
3087 |
public boolean isSetPe() {
|
|
|
3088 |
return this.pe != null;
|
|
|
3089 |
}
|
|
|
3090 |
|
|
|
3091 |
public void setPeIsSet(boolean value) {
|
|
|
3092 |
if (!value) {
|
|
|
3093 |
this.pe = null;
|
|
|
3094 |
}
|
|
|
3095 |
}
|
|
|
3096 |
|
|
|
3097 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3098 |
switch (field) {
|
|
|
3099 |
case SUCCESS:
|
|
|
3100 |
if (value == null) {
|
|
|
3101 |
unsetSuccess();
|
|
|
3102 |
} else {
|
|
|
3103 |
setSuccess((List<Payment>)value);
|
|
|
3104 |
}
|
|
|
3105 |
break;
|
|
|
3106 |
|
|
|
3107 |
case PE:
|
|
|
3108 |
if (value == null) {
|
|
|
3109 |
unsetPe();
|
|
|
3110 |
} else {
|
|
|
3111 |
setPe((PaymentException)value);
|
|
|
3112 |
}
|
|
|
3113 |
break;
|
|
|
3114 |
|
|
|
3115 |
}
|
|
|
3116 |
}
|
|
|
3117 |
|
|
|
3118 |
public Object getFieldValue(_Fields field) {
|
|
|
3119 |
switch (field) {
|
|
|
3120 |
case SUCCESS:
|
|
|
3121 |
return getSuccess();
|
|
|
3122 |
|
|
|
3123 |
case PE:
|
|
|
3124 |
return getPe();
|
|
|
3125 |
|
|
|
3126 |
}
|
|
|
3127 |
throw new IllegalStateException();
|
|
|
3128 |
}
|
|
|
3129 |
|
| 3430 |
rajveer |
3130 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3131 |
public boolean isSet(_Fields field) {
|
|
|
3132 |
if (field == null) {
|
|
|
3133 |
throw new IllegalArgumentException();
|
|
|
3134 |
}
|
| 123 |
ashish |
3135 |
|
|
|
3136 |
switch (field) {
|
|
|
3137 |
case SUCCESS:
|
|
|
3138 |
return isSetSuccess();
|
|
|
3139 |
case PE:
|
|
|
3140 |
return isSetPe();
|
|
|
3141 |
}
|
|
|
3142 |
throw new IllegalStateException();
|
|
|
3143 |
}
|
|
|
3144 |
|
|
|
3145 |
@Override
|
|
|
3146 |
public boolean equals(Object that) {
|
|
|
3147 |
if (that == null)
|
|
|
3148 |
return false;
|
|
|
3149 |
if (that instanceof getPaymentsForUser_result)
|
|
|
3150 |
return this.equals((getPaymentsForUser_result)that);
|
|
|
3151 |
return false;
|
|
|
3152 |
}
|
|
|
3153 |
|
|
|
3154 |
public boolean equals(getPaymentsForUser_result that) {
|
|
|
3155 |
if (that == null)
|
|
|
3156 |
return false;
|
|
|
3157 |
|
|
|
3158 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
3159 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
3160 |
if (this_present_success || that_present_success) {
|
|
|
3161 |
if (!(this_present_success && that_present_success))
|
|
|
3162 |
return false;
|
|
|
3163 |
if (!this.success.equals(that.success))
|
|
|
3164 |
return false;
|
|
|
3165 |
}
|
|
|
3166 |
|
|
|
3167 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
3168 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
3169 |
if (this_present_pe || that_present_pe) {
|
|
|
3170 |
if (!(this_present_pe && that_present_pe))
|
|
|
3171 |
return false;
|
|
|
3172 |
if (!this.pe.equals(that.pe))
|
|
|
3173 |
return false;
|
|
|
3174 |
}
|
|
|
3175 |
|
|
|
3176 |
return true;
|
|
|
3177 |
}
|
|
|
3178 |
|
|
|
3179 |
@Override
|
|
|
3180 |
public int hashCode() {
|
|
|
3181 |
return 0;
|
|
|
3182 |
}
|
|
|
3183 |
|
| 695 |
rajveer |
3184 |
public int compareTo(getPaymentsForUser_result other) {
|
| 123 |
ashish |
3185 |
if (!getClass().equals(other.getClass())) {
|
|
|
3186 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3187 |
}
|
|
|
3188 |
|
|
|
3189 |
int lastComparison = 0;
|
| 695 |
rajveer |
3190 |
getPaymentsForUser_result typedOther = (getPaymentsForUser_result)other;
|
| 123 |
ashish |
3191 |
|
| 3430 |
rajveer |
3192 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 123 |
ashish |
3193 |
if (lastComparison != 0) {
|
|
|
3194 |
return lastComparison;
|
|
|
3195 |
}
|
| 3430 |
rajveer |
3196 |
if (isSetSuccess()) {
|
|
|
3197 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
3198 |
if (lastComparison != 0) {
|
|
|
3199 |
return lastComparison;
|
|
|
3200 |
}
|
| 123 |
ashish |
3201 |
}
|
| 3430 |
rajveer |
3202 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 123 |
ashish |
3203 |
if (lastComparison != 0) {
|
|
|
3204 |
return lastComparison;
|
|
|
3205 |
}
|
| 3430 |
rajveer |
3206 |
if (isSetPe()) {
|
|
|
3207 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
3208 |
if (lastComparison != 0) {
|
|
|
3209 |
return lastComparison;
|
|
|
3210 |
}
|
| 123 |
ashish |
3211 |
}
|
|
|
3212 |
return 0;
|
|
|
3213 |
}
|
|
|
3214 |
|
| 3430 |
rajveer |
3215 |
public _Fields fieldForId(int fieldId) {
|
|
|
3216 |
return _Fields.findByThriftId(fieldId);
|
|
|
3217 |
}
|
|
|
3218 |
|
|
|
3219 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3220 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
3221 |
iprot.readStructBegin();
|
|
|
3222 |
while (true)
|
|
|
3223 |
{
|
|
|
3224 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3225 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
3226 |
break;
|
|
|
3227 |
}
|
| 3430 |
rajveer |
3228 |
switch (field.id) {
|
|
|
3229 |
case 0: // SUCCESS
|
|
|
3230 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
3231 |
{
|
|
|
3232 |
org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
|
|
|
3233 |
this.success = new ArrayList<Payment>(_list12.size);
|
|
|
3234 |
for (int _i13 = 0; _i13 < _list12.size; ++_i13)
|
| 123 |
ashish |
3235 |
{
|
| 3430 |
rajveer |
3236 |
Payment _elem14; // required
|
|
|
3237 |
_elem14 = new Payment();
|
|
|
3238 |
_elem14.read(iprot);
|
|
|
3239 |
this.success.add(_elem14);
|
| 123 |
ashish |
3240 |
}
|
| 3430 |
rajveer |
3241 |
iprot.readListEnd();
|
| 123 |
ashish |
3242 |
}
|
| 3430 |
rajveer |
3243 |
} else {
|
|
|
3244 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3245 |
}
|
|
|
3246 |
break;
|
|
|
3247 |
case 1: // PE
|
|
|
3248 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3249 |
this.pe = new PaymentException();
|
|
|
3250 |
this.pe.read(iprot);
|
|
|
3251 |
} else {
|
|
|
3252 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3253 |
}
|
|
|
3254 |
break;
|
|
|
3255 |
default:
|
|
|
3256 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
3257 |
}
|
| 3430 |
rajveer |
3258 |
iprot.readFieldEnd();
|
| 123 |
ashish |
3259 |
}
|
|
|
3260 |
iprot.readStructEnd();
|
|
|
3261 |
validate();
|
|
|
3262 |
}
|
|
|
3263 |
|
| 3430 |
rajveer |
3264 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
3265 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3266 |
|
|
|
3267 |
if (this.isSetSuccess()) {
|
|
|
3268 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
3269 |
{
|
| 3430 |
rajveer |
3270 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 2747 |
chandransh |
3271 |
for (Payment _iter15 : this.success)
|
| 123 |
ashish |
3272 |
{
|
| 2747 |
chandransh |
3273 |
_iter15.write(oprot);
|
| 123 |
ashish |
3274 |
}
|
|
|
3275 |
oprot.writeListEnd();
|
|
|
3276 |
}
|
|
|
3277 |
oprot.writeFieldEnd();
|
|
|
3278 |
} else if (this.isSetPe()) {
|
|
|
3279 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
3280 |
this.pe.write(oprot);
|
|
|
3281 |
oprot.writeFieldEnd();
|
|
|
3282 |
}
|
|
|
3283 |
oprot.writeFieldStop();
|
|
|
3284 |
oprot.writeStructEnd();
|
|
|
3285 |
}
|
|
|
3286 |
|
|
|
3287 |
@Override
|
|
|
3288 |
public String toString() {
|
| 695 |
rajveer |
3289 |
StringBuilder sb = new StringBuilder("getPaymentsForUser_result(");
|
| 123 |
ashish |
3290 |
boolean first = true;
|
|
|
3291 |
|
|
|
3292 |
sb.append("success:");
|
|
|
3293 |
if (this.success == null) {
|
|
|
3294 |
sb.append("null");
|
|
|
3295 |
} else {
|
|
|
3296 |
sb.append(this.success);
|
|
|
3297 |
}
|
|
|
3298 |
first = false;
|
|
|
3299 |
if (!first) sb.append(", ");
|
|
|
3300 |
sb.append("pe:");
|
|
|
3301 |
if (this.pe == null) {
|
|
|
3302 |
sb.append("null");
|
|
|
3303 |
} else {
|
|
|
3304 |
sb.append(this.pe);
|
|
|
3305 |
}
|
|
|
3306 |
first = false;
|
|
|
3307 |
sb.append(")");
|
|
|
3308 |
return sb.toString();
|
|
|
3309 |
}
|
|
|
3310 |
|
| 3430 |
rajveer |
3311 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
3312 |
// check for required fields
|
|
|
3313 |
}
|
|
|
3314 |
|
| 3430 |
rajveer |
3315 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3316 |
try {
|
|
|
3317 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3318 |
} catch (org.apache.thrift.TException te) {
|
|
|
3319 |
throw new java.io.IOException(te);
|
|
|
3320 |
}
|
|
|
3321 |
}
|
|
|
3322 |
|
|
|
3323 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3324 |
try {
|
|
|
3325 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3326 |
} catch (org.apache.thrift.TException te) {
|
|
|
3327 |
throw new java.io.IOException(te);
|
|
|
3328 |
}
|
|
|
3329 |
}
|
|
|
3330 |
|
| 123 |
ashish |
3331 |
}
|
|
|
3332 |
|
| 3430 |
rajveer |
3333 |
public static class getPayments_args implements org.apache.thrift.TBase<getPayments_args, getPayments_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3334 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_args");
|
| 123 |
ashish |
3335 |
|
| 3430 |
rajveer |
3336 |
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);
|
|
|
3337 |
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);
|
|
|
3338 |
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);
|
|
|
3339 |
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 |
3340 |
|
| 3430 |
rajveer |
3341 |
private long fromTime; // required
|
|
|
3342 |
private long toTime; // required
|
|
|
3343 |
private PaymentStatus status; // required
|
|
|
3344 |
private long gatewayId; // required
|
| 123 |
ashish |
3345 |
|
|
|
3346 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3347 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 695 |
rajveer |
3348 |
FROM_TIME((short)1, "fromTime"),
|
|
|
3349 |
TO_TIME((short)2, "toTime"),
|
| 123 |
ashish |
3350 |
/**
|
|
|
3351 |
*
|
|
|
3352 |
* @see PaymentStatus
|
|
|
3353 |
*/
|
|
|
3354 |
STATUS((short)3, "status"),
|
| 695 |
rajveer |
3355 |
GATEWAY_ID((short)4, "gatewayId");
|
| 123 |
ashish |
3356 |
|
|
|
3357 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3358 |
|
|
|
3359 |
static {
|
|
|
3360 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3361 |
byName.put(field.getFieldName(), field);
|
|
|
3362 |
}
|
|
|
3363 |
}
|
|
|
3364 |
|
|
|
3365 |
/**
|
|
|
3366 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3367 |
*/
|
|
|
3368 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3369 |
switch(fieldId) {
|
|
|
3370 |
case 1: // FROM_TIME
|
|
|
3371 |
return FROM_TIME;
|
|
|
3372 |
case 2: // TO_TIME
|
|
|
3373 |
return TO_TIME;
|
|
|
3374 |
case 3: // STATUS
|
|
|
3375 |
return STATUS;
|
|
|
3376 |
case 4: // GATEWAY_ID
|
|
|
3377 |
return GATEWAY_ID;
|
|
|
3378 |
default:
|
|
|
3379 |
return null;
|
|
|
3380 |
}
|
| 123 |
ashish |
3381 |
}
|
|
|
3382 |
|
|
|
3383 |
/**
|
|
|
3384 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3385 |
* if it is not found.
|
|
|
3386 |
*/
|
|
|
3387 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3388 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3389 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3390 |
return fields;
|
|
|
3391 |
}
|
|
|
3392 |
|
|
|
3393 |
/**
|
|
|
3394 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3395 |
*/
|
|
|
3396 |
public static _Fields findByName(String name) {
|
|
|
3397 |
return byName.get(name);
|
|
|
3398 |
}
|
|
|
3399 |
|
|
|
3400 |
private final short _thriftId;
|
|
|
3401 |
private final String _fieldName;
|
|
|
3402 |
|
|
|
3403 |
_Fields(short thriftId, String fieldName) {
|
|
|
3404 |
_thriftId = thriftId;
|
|
|
3405 |
_fieldName = fieldName;
|
|
|
3406 |
}
|
|
|
3407 |
|
|
|
3408 |
public short getThriftFieldId() {
|
|
|
3409 |
return _thriftId;
|
|
|
3410 |
}
|
|
|
3411 |
|
|
|
3412 |
public String getFieldName() {
|
|
|
3413 |
return _fieldName;
|
|
|
3414 |
}
|
|
|
3415 |
}
|
|
|
3416 |
|
|
|
3417 |
// isset id assignments
|
| 695 |
rajveer |
3418 |
private static final int __FROMTIME_ISSET_ID = 0;
|
|
|
3419 |
private static final int __TOTIME_ISSET_ID = 1;
|
|
|
3420 |
private static final int __GATEWAYID_ISSET_ID = 2;
|
| 420 |
ashish |
3421 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 123 |
ashish |
3422 |
|
| 3430 |
rajveer |
3423 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
3424 |
static {
|
| 3430 |
rajveer |
3425 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3426 |
tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3427 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3428 |
tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3429 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3430 |
tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3431 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
|
|
|
3432 |
tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3433 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3434 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3435 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_args.class, metaDataMap);
|
| 123 |
ashish |
3436 |
}
|
|
|
3437 |
|
|
|
3438 |
public getPayments_args() {
|
|
|
3439 |
}
|
|
|
3440 |
|
|
|
3441 |
public getPayments_args(
|
| 695 |
rajveer |
3442 |
long fromTime,
|
|
|
3443 |
long toTime,
|
| 123 |
ashish |
3444 |
PaymentStatus status,
|
| 695 |
rajveer |
3445 |
long gatewayId)
|
| 123 |
ashish |
3446 |
{
|
|
|
3447 |
this();
|
| 695 |
rajveer |
3448 |
this.fromTime = fromTime;
|
|
|
3449 |
setFromTimeIsSet(true);
|
|
|
3450 |
this.toTime = toTime;
|
|
|
3451 |
setToTimeIsSet(true);
|
| 123 |
ashish |
3452 |
this.status = status;
|
| 695 |
rajveer |
3453 |
this.gatewayId = gatewayId;
|
|
|
3454 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
3455 |
}
|
|
|
3456 |
|
|
|
3457 |
/**
|
|
|
3458 |
* Performs a deep copy on <i>other</i>.
|
|
|
3459 |
*/
|
|
|
3460 |
public getPayments_args(getPayments_args other) {
|
|
|
3461 |
__isset_bit_vector.clear();
|
|
|
3462 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 695 |
rajveer |
3463 |
this.fromTime = other.fromTime;
|
|
|
3464 |
this.toTime = other.toTime;
|
| 123 |
ashish |
3465 |
if (other.isSetStatus()) {
|
|
|
3466 |
this.status = other.status;
|
|
|
3467 |
}
|
| 695 |
rajveer |
3468 |
this.gatewayId = other.gatewayId;
|
| 123 |
ashish |
3469 |
}
|
|
|
3470 |
|
|
|
3471 |
public getPayments_args deepCopy() {
|
|
|
3472 |
return new getPayments_args(this);
|
|
|
3473 |
}
|
|
|
3474 |
|
| 3430 |
rajveer |
3475 |
@Override
|
|
|
3476 |
public void clear() {
|
|
|
3477 |
setFromTimeIsSet(false);
|
|
|
3478 |
this.fromTime = 0;
|
|
|
3479 |
setToTimeIsSet(false);
|
|
|
3480 |
this.toTime = 0;
|
|
|
3481 |
this.status = null;
|
|
|
3482 |
setGatewayIdIsSet(false);
|
|
|
3483 |
this.gatewayId = 0;
|
| 123 |
ashish |
3484 |
}
|
|
|
3485 |
|
| 695 |
rajveer |
3486 |
public long getFromTime() {
|
|
|
3487 |
return this.fromTime;
|
| 123 |
ashish |
3488 |
}
|
|
|
3489 |
|
| 3430 |
rajveer |
3490 |
public void setFromTime(long fromTime) {
|
| 695 |
rajveer |
3491 |
this.fromTime = fromTime;
|
|
|
3492 |
setFromTimeIsSet(true);
|
| 123 |
ashish |
3493 |
}
|
|
|
3494 |
|
| 695 |
rajveer |
3495 |
public void unsetFromTime() {
|
|
|
3496 |
__isset_bit_vector.clear(__FROMTIME_ISSET_ID);
|
| 123 |
ashish |
3497 |
}
|
|
|
3498 |
|
| 3430 |
rajveer |
3499 |
/** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
3500 |
public boolean isSetFromTime() {
|
|
|
3501 |
return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
|
| 123 |
ashish |
3502 |
}
|
|
|
3503 |
|
| 695 |
rajveer |
3504 |
public void setFromTimeIsSet(boolean value) {
|
|
|
3505 |
__isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
|
| 123 |
ashish |
3506 |
}
|
|
|
3507 |
|
| 695 |
rajveer |
3508 |
public long getToTime() {
|
|
|
3509 |
return this.toTime;
|
| 123 |
ashish |
3510 |
}
|
|
|
3511 |
|
| 3430 |
rajveer |
3512 |
public void setToTime(long toTime) {
|
| 695 |
rajveer |
3513 |
this.toTime = toTime;
|
|
|
3514 |
setToTimeIsSet(true);
|
| 123 |
ashish |
3515 |
}
|
|
|
3516 |
|
| 695 |
rajveer |
3517 |
public void unsetToTime() {
|
|
|
3518 |
__isset_bit_vector.clear(__TOTIME_ISSET_ID);
|
| 123 |
ashish |
3519 |
}
|
|
|
3520 |
|
| 3430 |
rajveer |
3521 |
/** Returns true if field toTime is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
3522 |
public boolean isSetToTime() {
|
|
|
3523 |
return __isset_bit_vector.get(__TOTIME_ISSET_ID);
|
| 123 |
ashish |
3524 |
}
|
|
|
3525 |
|
| 695 |
rajveer |
3526 |
public void setToTimeIsSet(boolean value) {
|
|
|
3527 |
__isset_bit_vector.set(__TOTIME_ISSET_ID, value);
|
| 123 |
ashish |
3528 |
}
|
|
|
3529 |
|
|
|
3530 |
/**
|
|
|
3531 |
*
|
|
|
3532 |
* @see PaymentStatus
|
|
|
3533 |
*/
|
|
|
3534 |
public PaymentStatus getStatus() {
|
|
|
3535 |
return this.status;
|
|
|
3536 |
}
|
|
|
3537 |
|
|
|
3538 |
/**
|
|
|
3539 |
*
|
|
|
3540 |
* @see PaymentStatus
|
|
|
3541 |
*/
|
| 3430 |
rajveer |
3542 |
public void setStatus(PaymentStatus status) {
|
| 123 |
ashish |
3543 |
this.status = status;
|
|
|
3544 |
}
|
|
|
3545 |
|
|
|
3546 |
public void unsetStatus() {
|
|
|
3547 |
this.status = null;
|
|
|
3548 |
}
|
|
|
3549 |
|
| 3430 |
rajveer |
3550 |
/** Returns true if field status is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
3551 |
public boolean isSetStatus() {
|
|
|
3552 |
return this.status != null;
|
|
|
3553 |
}
|
|
|
3554 |
|
|
|
3555 |
public void setStatusIsSet(boolean value) {
|
|
|
3556 |
if (!value) {
|
|
|
3557 |
this.status = null;
|
|
|
3558 |
}
|
|
|
3559 |
}
|
|
|
3560 |
|
| 695 |
rajveer |
3561 |
public long getGatewayId() {
|
|
|
3562 |
return this.gatewayId;
|
| 123 |
ashish |
3563 |
}
|
|
|
3564 |
|
| 3430 |
rajveer |
3565 |
public void setGatewayId(long gatewayId) {
|
| 695 |
rajveer |
3566 |
this.gatewayId = gatewayId;
|
|
|
3567 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
3568 |
}
|
|
|
3569 |
|
| 695 |
rajveer |
3570 |
public void unsetGatewayId() {
|
|
|
3571 |
__isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
3572 |
}
|
|
|
3573 |
|
| 3430 |
rajveer |
3574 |
/** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
3575 |
public boolean isSetGatewayId() {
|
|
|
3576 |
return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
3577 |
}
|
|
|
3578 |
|
| 695 |
rajveer |
3579 |
public void setGatewayIdIsSet(boolean value) {
|
|
|
3580 |
__isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
|
| 123 |
ashish |
3581 |
}
|
|
|
3582 |
|
|
|
3583 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3584 |
switch (field) {
|
|
|
3585 |
case FROM_TIME:
|
|
|
3586 |
if (value == null) {
|
| 695 |
rajveer |
3587 |
unsetFromTime();
|
| 123 |
ashish |
3588 |
} else {
|
| 695 |
rajveer |
3589 |
setFromTime((Long)value);
|
| 123 |
ashish |
3590 |
}
|
|
|
3591 |
break;
|
|
|
3592 |
|
|
|
3593 |
case TO_TIME:
|
|
|
3594 |
if (value == null) {
|
| 695 |
rajveer |
3595 |
unsetToTime();
|
| 123 |
ashish |
3596 |
} else {
|
| 695 |
rajveer |
3597 |
setToTime((Long)value);
|
| 123 |
ashish |
3598 |
}
|
|
|
3599 |
break;
|
|
|
3600 |
|
|
|
3601 |
case STATUS:
|
|
|
3602 |
if (value == null) {
|
|
|
3603 |
unsetStatus();
|
|
|
3604 |
} else {
|
|
|
3605 |
setStatus((PaymentStatus)value);
|
|
|
3606 |
}
|
|
|
3607 |
break;
|
|
|
3608 |
|
| 420 |
ashish |
3609 |
case GATEWAY_ID:
|
| 123 |
ashish |
3610 |
if (value == null) {
|
| 695 |
rajveer |
3611 |
unsetGatewayId();
|
| 123 |
ashish |
3612 |
} else {
|
| 695 |
rajveer |
3613 |
setGatewayId((Long)value);
|
| 123 |
ashish |
3614 |
}
|
|
|
3615 |
break;
|
|
|
3616 |
|
|
|
3617 |
}
|
|
|
3618 |
}
|
|
|
3619 |
|
|
|
3620 |
public Object getFieldValue(_Fields field) {
|
|
|
3621 |
switch (field) {
|
|
|
3622 |
case FROM_TIME:
|
| 3430 |
rajveer |
3623 |
return Long.valueOf(getFromTime());
|
| 123 |
ashish |
3624 |
|
|
|
3625 |
case TO_TIME:
|
| 3430 |
rajveer |
3626 |
return Long.valueOf(getToTime());
|
| 123 |
ashish |
3627 |
|
|
|
3628 |
case STATUS:
|
|
|
3629 |
return getStatus();
|
|
|
3630 |
|
| 420 |
ashish |
3631 |
case GATEWAY_ID:
|
| 3430 |
rajveer |
3632 |
return Long.valueOf(getGatewayId());
|
| 123 |
ashish |
3633 |
|
|
|
3634 |
}
|
|
|
3635 |
throw new IllegalStateException();
|
|
|
3636 |
}
|
|
|
3637 |
|
| 3430 |
rajveer |
3638 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3639 |
public boolean isSet(_Fields field) {
|
|
|
3640 |
if (field == null) {
|
|
|
3641 |
throw new IllegalArgumentException();
|
|
|
3642 |
}
|
| 123 |
ashish |
3643 |
|
|
|
3644 |
switch (field) {
|
|
|
3645 |
case FROM_TIME:
|
| 695 |
rajveer |
3646 |
return isSetFromTime();
|
| 123 |
ashish |
3647 |
case TO_TIME:
|
| 695 |
rajveer |
3648 |
return isSetToTime();
|
| 123 |
ashish |
3649 |
case STATUS:
|
|
|
3650 |
return isSetStatus();
|
| 420 |
ashish |
3651 |
case GATEWAY_ID:
|
| 695 |
rajveer |
3652 |
return isSetGatewayId();
|
| 123 |
ashish |
3653 |
}
|
|
|
3654 |
throw new IllegalStateException();
|
|
|
3655 |
}
|
|
|
3656 |
|
|
|
3657 |
@Override
|
|
|
3658 |
public boolean equals(Object that) {
|
|
|
3659 |
if (that == null)
|
|
|
3660 |
return false;
|
|
|
3661 |
if (that instanceof getPayments_args)
|
|
|
3662 |
return this.equals((getPayments_args)that);
|
|
|
3663 |
return false;
|
|
|
3664 |
}
|
|
|
3665 |
|
|
|
3666 |
public boolean equals(getPayments_args that) {
|
|
|
3667 |
if (that == null)
|
|
|
3668 |
return false;
|
|
|
3669 |
|
| 695 |
rajveer |
3670 |
boolean this_present_fromTime = true;
|
|
|
3671 |
boolean that_present_fromTime = true;
|
|
|
3672 |
if (this_present_fromTime || that_present_fromTime) {
|
|
|
3673 |
if (!(this_present_fromTime && that_present_fromTime))
|
| 123 |
ashish |
3674 |
return false;
|
| 695 |
rajveer |
3675 |
if (this.fromTime != that.fromTime)
|
| 123 |
ashish |
3676 |
return false;
|
|
|
3677 |
}
|
|
|
3678 |
|
| 695 |
rajveer |
3679 |
boolean this_present_toTime = true;
|
|
|
3680 |
boolean that_present_toTime = true;
|
|
|
3681 |
if (this_present_toTime || that_present_toTime) {
|
|
|
3682 |
if (!(this_present_toTime && that_present_toTime))
|
| 123 |
ashish |
3683 |
return false;
|
| 695 |
rajveer |
3684 |
if (this.toTime != that.toTime)
|
| 123 |
ashish |
3685 |
return false;
|
|
|
3686 |
}
|
|
|
3687 |
|
|
|
3688 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
3689 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
3690 |
if (this_present_status || that_present_status) {
|
|
|
3691 |
if (!(this_present_status && that_present_status))
|
|
|
3692 |
return false;
|
|
|
3693 |
if (!this.status.equals(that.status))
|
|
|
3694 |
return false;
|
|
|
3695 |
}
|
|
|
3696 |
|
| 695 |
rajveer |
3697 |
boolean this_present_gatewayId = true;
|
|
|
3698 |
boolean that_present_gatewayId = true;
|
|
|
3699 |
if (this_present_gatewayId || that_present_gatewayId) {
|
|
|
3700 |
if (!(this_present_gatewayId && that_present_gatewayId))
|
| 123 |
ashish |
3701 |
return false;
|
| 695 |
rajveer |
3702 |
if (this.gatewayId != that.gatewayId)
|
| 123 |
ashish |
3703 |
return false;
|
|
|
3704 |
}
|
|
|
3705 |
|
|
|
3706 |
return true;
|
|
|
3707 |
}
|
|
|
3708 |
|
|
|
3709 |
@Override
|
|
|
3710 |
public int hashCode() {
|
|
|
3711 |
return 0;
|
|
|
3712 |
}
|
|
|
3713 |
|
|
|
3714 |
public int compareTo(getPayments_args other) {
|
|
|
3715 |
if (!getClass().equals(other.getClass())) {
|
|
|
3716 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3717 |
}
|
|
|
3718 |
|
|
|
3719 |
int lastComparison = 0;
|
|
|
3720 |
getPayments_args typedOther = (getPayments_args)other;
|
|
|
3721 |
|
| 3430 |
rajveer |
3722 |
lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
|
| 123 |
ashish |
3723 |
if (lastComparison != 0) {
|
|
|
3724 |
return lastComparison;
|
|
|
3725 |
}
|
| 3430 |
rajveer |
3726 |
if (isSetFromTime()) {
|
|
|
3727 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
|
|
|
3728 |
if (lastComparison != 0) {
|
|
|
3729 |
return lastComparison;
|
|
|
3730 |
}
|
| 123 |
ashish |
3731 |
}
|
| 3430 |
rajveer |
3732 |
lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
|
| 123 |
ashish |
3733 |
if (lastComparison != 0) {
|
|
|
3734 |
return lastComparison;
|
|
|
3735 |
}
|
| 3430 |
rajveer |
3736 |
if (isSetToTime()) {
|
|
|
3737 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
|
|
|
3738 |
if (lastComparison != 0) {
|
|
|
3739 |
return lastComparison;
|
|
|
3740 |
}
|
| 123 |
ashish |
3741 |
}
|
| 3430 |
rajveer |
3742 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
|
| 123 |
ashish |
3743 |
if (lastComparison != 0) {
|
|
|
3744 |
return lastComparison;
|
|
|
3745 |
}
|
| 3430 |
rajveer |
3746 |
if (isSetStatus()) {
|
|
|
3747 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
|
|
|
3748 |
if (lastComparison != 0) {
|
|
|
3749 |
return lastComparison;
|
|
|
3750 |
}
|
| 123 |
ashish |
3751 |
}
|
| 3430 |
rajveer |
3752 |
lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
|
| 123 |
ashish |
3753 |
if (lastComparison != 0) {
|
|
|
3754 |
return lastComparison;
|
|
|
3755 |
}
|
| 3430 |
rajveer |
3756 |
if (isSetGatewayId()) {
|
|
|
3757 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
|
|
|
3758 |
if (lastComparison != 0) {
|
|
|
3759 |
return lastComparison;
|
|
|
3760 |
}
|
| 123 |
ashish |
3761 |
}
|
|
|
3762 |
return 0;
|
|
|
3763 |
}
|
|
|
3764 |
|
| 3430 |
rajveer |
3765 |
public _Fields fieldForId(int fieldId) {
|
|
|
3766 |
return _Fields.findByThriftId(fieldId);
|
|
|
3767 |
}
|
|
|
3768 |
|
|
|
3769 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3770 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
3771 |
iprot.readStructBegin();
|
|
|
3772 |
while (true)
|
|
|
3773 |
{
|
|
|
3774 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3775 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
3776 |
break;
|
|
|
3777 |
}
|
| 3430 |
rajveer |
3778 |
switch (field.id) {
|
|
|
3779 |
case 1: // FROM_TIME
|
|
|
3780 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3781 |
this.fromTime = iprot.readI64();
|
|
|
3782 |
setFromTimeIsSet(true);
|
|
|
3783 |
} else {
|
|
|
3784 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3785 |
}
|
|
|
3786 |
break;
|
|
|
3787 |
case 2: // TO_TIME
|
|
|
3788 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3789 |
this.toTime = iprot.readI64();
|
|
|
3790 |
setToTimeIsSet(true);
|
|
|
3791 |
} else {
|
|
|
3792 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3793 |
}
|
|
|
3794 |
break;
|
|
|
3795 |
case 3: // STATUS
|
|
|
3796 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
3797 |
this.status = PaymentStatus.findByValue(iprot.readI32());
|
|
|
3798 |
} else {
|
|
|
3799 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3800 |
}
|
|
|
3801 |
break;
|
|
|
3802 |
case 4: // GATEWAY_ID
|
|
|
3803 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3804 |
this.gatewayId = iprot.readI64();
|
|
|
3805 |
setGatewayIdIsSet(true);
|
|
|
3806 |
} else {
|
|
|
3807 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3808 |
}
|
|
|
3809 |
break;
|
|
|
3810 |
default:
|
|
|
3811 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
3812 |
}
|
| 3430 |
rajveer |
3813 |
iprot.readFieldEnd();
|
| 123 |
ashish |
3814 |
}
|
|
|
3815 |
iprot.readStructEnd();
|
|
|
3816 |
validate();
|
|
|
3817 |
}
|
|
|
3818 |
|
| 3430 |
rajveer |
3819 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
3820 |
validate();
|
|
|
3821 |
|
|
|
3822 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3823 |
oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
|
| 695 |
rajveer |
3824 |
oprot.writeI64(this.fromTime);
|
| 123 |
ashish |
3825 |
oprot.writeFieldEnd();
|
|
|
3826 |
oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
|
| 695 |
rajveer |
3827 |
oprot.writeI64(this.toTime);
|
| 123 |
ashish |
3828 |
oprot.writeFieldEnd();
|
|
|
3829 |
if (this.status != null) {
|
|
|
3830 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
3831 |
oprot.writeI32(this.status.getValue());
|
|
|
3832 |
oprot.writeFieldEnd();
|
|
|
3833 |
}
|
| 420 |
ashish |
3834 |
oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
|
| 695 |
rajveer |
3835 |
oprot.writeI64(this.gatewayId);
|
| 420 |
ashish |
3836 |
oprot.writeFieldEnd();
|
| 123 |
ashish |
3837 |
oprot.writeFieldStop();
|
|
|
3838 |
oprot.writeStructEnd();
|
|
|
3839 |
}
|
|
|
3840 |
|
|
|
3841 |
@Override
|
|
|
3842 |
public String toString() {
|
|
|
3843 |
StringBuilder sb = new StringBuilder("getPayments_args(");
|
|
|
3844 |
boolean first = true;
|
|
|
3845 |
|
| 695 |
rajveer |
3846 |
sb.append("fromTime:");
|
|
|
3847 |
sb.append(this.fromTime);
|
| 123 |
ashish |
3848 |
first = false;
|
|
|
3849 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
3850 |
sb.append("toTime:");
|
|
|
3851 |
sb.append(this.toTime);
|
| 123 |
ashish |
3852 |
first = false;
|
|
|
3853 |
if (!first) sb.append(", ");
|
|
|
3854 |
sb.append("status:");
|
|
|
3855 |
if (this.status == null) {
|
|
|
3856 |
sb.append("null");
|
|
|
3857 |
} else {
|
|
|
3858 |
sb.append(this.status);
|
|
|
3859 |
}
|
|
|
3860 |
first = false;
|
|
|
3861 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
3862 |
sb.append("gatewayId:");
|
|
|
3863 |
sb.append(this.gatewayId);
|
| 123 |
ashish |
3864 |
first = false;
|
|
|
3865 |
sb.append(")");
|
|
|
3866 |
return sb.toString();
|
|
|
3867 |
}
|
|
|
3868 |
|
| 3430 |
rajveer |
3869 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
3870 |
// check for required fields
|
|
|
3871 |
}
|
|
|
3872 |
|
| 3430 |
rajveer |
3873 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3874 |
try {
|
|
|
3875 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3876 |
} catch (org.apache.thrift.TException te) {
|
|
|
3877 |
throw new java.io.IOException(te);
|
|
|
3878 |
}
|
|
|
3879 |
}
|
|
|
3880 |
|
|
|
3881 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3882 |
try {
|
|
|
3883 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3884 |
} catch (org.apache.thrift.TException te) {
|
|
|
3885 |
throw new java.io.IOException(te);
|
|
|
3886 |
}
|
|
|
3887 |
}
|
|
|
3888 |
|
| 123 |
ashish |
3889 |
}
|
|
|
3890 |
|
| 3430 |
rajveer |
3891 |
public static class getPayments_result implements org.apache.thrift.TBase<getPayments_result, getPayments_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3892 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_result");
|
| 123 |
ashish |
3893 |
|
| 3430 |
rajveer |
3894 |
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);
|
|
|
3895 |
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 |
3896 |
|
| 3430 |
rajveer |
3897 |
private List<Payment> success; // required
|
|
|
3898 |
private PaymentException pe; // required
|
| 123 |
ashish |
3899 |
|
|
|
3900 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3901 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 123 |
ashish |
3902 |
SUCCESS((short)0, "success"),
|
|
|
3903 |
PE((short)1, "pe");
|
|
|
3904 |
|
|
|
3905 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3906 |
|
|
|
3907 |
static {
|
|
|
3908 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3909 |
byName.put(field.getFieldName(), field);
|
|
|
3910 |
}
|
|
|
3911 |
}
|
|
|
3912 |
|
|
|
3913 |
/**
|
|
|
3914 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3915 |
*/
|
|
|
3916 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3917 |
switch(fieldId) {
|
|
|
3918 |
case 0: // SUCCESS
|
|
|
3919 |
return SUCCESS;
|
|
|
3920 |
case 1: // PE
|
|
|
3921 |
return PE;
|
|
|
3922 |
default:
|
|
|
3923 |
return null;
|
|
|
3924 |
}
|
| 123 |
ashish |
3925 |
}
|
|
|
3926 |
|
|
|
3927 |
/**
|
|
|
3928 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3929 |
* if it is not found.
|
|
|
3930 |
*/
|
|
|
3931 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3932 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3933 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3934 |
return fields;
|
|
|
3935 |
}
|
|
|
3936 |
|
|
|
3937 |
/**
|
|
|
3938 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3939 |
*/
|
|
|
3940 |
public static _Fields findByName(String name) {
|
|
|
3941 |
return byName.get(name);
|
|
|
3942 |
}
|
|
|
3943 |
|
|
|
3944 |
private final short _thriftId;
|
|
|
3945 |
private final String _fieldName;
|
|
|
3946 |
|
|
|
3947 |
_Fields(short thriftId, String fieldName) {
|
|
|
3948 |
_thriftId = thriftId;
|
|
|
3949 |
_fieldName = fieldName;
|
|
|
3950 |
}
|
|
|
3951 |
|
|
|
3952 |
public short getThriftFieldId() {
|
|
|
3953 |
return _thriftId;
|
|
|
3954 |
}
|
|
|
3955 |
|
|
|
3956 |
public String getFieldName() {
|
|
|
3957 |
return _fieldName;
|
|
|
3958 |
}
|
|
|
3959 |
}
|
|
|
3960 |
|
|
|
3961 |
// isset id assignments
|
|
|
3962 |
|
| 3430 |
rajveer |
3963 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
3964 |
static {
|
| 3430 |
rajveer |
3965 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3966 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3967 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
3968 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
|
|
|
3969 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3970 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
3971 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3972 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_result.class, metaDataMap);
|
| 123 |
ashish |
3973 |
}
|
|
|
3974 |
|
|
|
3975 |
public getPayments_result() {
|
|
|
3976 |
}
|
|
|
3977 |
|
|
|
3978 |
public getPayments_result(
|
|
|
3979 |
List<Payment> success,
|
|
|
3980 |
PaymentException pe)
|
|
|
3981 |
{
|
|
|
3982 |
this();
|
|
|
3983 |
this.success = success;
|
|
|
3984 |
this.pe = pe;
|
|
|
3985 |
}
|
|
|
3986 |
|
|
|
3987 |
/**
|
|
|
3988 |
* Performs a deep copy on <i>other</i>.
|
|
|
3989 |
*/
|
|
|
3990 |
public getPayments_result(getPayments_result other) {
|
|
|
3991 |
if (other.isSetSuccess()) {
|
|
|
3992 |
List<Payment> __this__success = new ArrayList<Payment>();
|
|
|
3993 |
for (Payment other_element : other.success) {
|
|
|
3994 |
__this__success.add(new Payment(other_element));
|
|
|
3995 |
}
|
|
|
3996 |
this.success = __this__success;
|
|
|
3997 |
}
|
|
|
3998 |
if (other.isSetPe()) {
|
|
|
3999 |
this.pe = new PaymentException(other.pe);
|
|
|
4000 |
}
|
|
|
4001 |
}
|
|
|
4002 |
|
|
|
4003 |
public getPayments_result deepCopy() {
|
|
|
4004 |
return new getPayments_result(this);
|
|
|
4005 |
}
|
|
|
4006 |
|
| 3430 |
rajveer |
4007 |
@Override
|
|
|
4008 |
public void clear() {
|
|
|
4009 |
this.success = null;
|
|
|
4010 |
this.pe = null;
|
| 123 |
ashish |
4011 |
}
|
|
|
4012 |
|
|
|
4013 |
public int getSuccessSize() {
|
|
|
4014 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
4015 |
}
|
|
|
4016 |
|
|
|
4017 |
public java.util.Iterator<Payment> getSuccessIterator() {
|
|
|
4018 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
4019 |
}
|
|
|
4020 |
|
|
|
4021 |
public void addToSuccess(Payment elem) {
|
|
|
4022 |
if (this.success == null) {
|
|
|
4023 |
this.success = new ArrayList<Payment>();
|
|
|
4024 |
}
|
|
|
4025 |
this.success.add(elem);
|
|
|
4026 |
}
|
|
|
4027 |
|
|
|
4028 |
public List<Payment> getSuccess() {
|
|
|
4029 |
return this.success;
|
|
|
4030 |
}
|
|
|
4031 |
|
| 3430 |
rajveer |
4032 |
public void setSuccess(List<Payment> success) {
|
| 123 |
ashish |
4033 |
this.success = success;
|
|
|
4034 |
}
|
|
|
4035 |
|
|
|
4036 |
public void unsetSuccess() {
|
|
|
4037 |
this.success = null;
|
|
|
4038 |
}
|
|
|
4039 |
|
| 3430 |
rajveer |
4040 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
4041 |
public boolean isSetSuccess() {
|
|
|
4042 |
return this.success != null;
|
|
|
4043 |
}
|
|
|
4044 |
|
|
|
4045 |
public void setSuccessIsSet(boolean value) {
|
|
|
4046 |
if (!value) {
|
|
|
4047 |
this.success = null;
|
|
|
4048 |
}
|
|
|
4049 |
}
|
|
|
4050 |
|
|
|
4051 |
public PaymentException getPe() {
|
|
|
4052 |
return this.pe;
|
|
|
4053 |
}
|
|
|
4054 |
|
| 3430 |
rajveer |
4055 |
public void setPe(PaymentException pe) {
|
| 123 |
ashish |
4056 |
this.pe = pe;
|
|
|
4057 |
}
|
|
|
4058 |
|
|
|
4059 |
public void unsetPe() {
|
|
|
4060 |
this.pe = null;
|
|
|
4061 |
}
|
|
|
4062 |
|
| 3430 |
rajveer |
4063 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
4064 |
public boolean isSetPe() {
|
|
|
4065 |
return this.pe != null;
|
|
|
4066 |
}
|
|
|
4067 |
|
|
|
4068 |
public void setPeIsSet(boolean value) {
|
|
|
4069 |
if (!value) {
|
|
|
4070 |
this.pe = null;
|
|
|
4071 |
}
|
|
|
4072 |
}
|
|
|
4073 |
|
|
|
4074 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4075 |
switch (field) {
|
|
|
4076 |
case SUCCESS:
|
|
|
4077 |
if (value == null) {
|
|
|
4078 |
unsetSuccess();
|
|
|
4079 |
} else {
|
|
|
4080 |
setSuccess((List<Payment>)value);
|
|
|
4081 |
}
|
|
|
4082 |
break;
|
|
|
4083 |
|
|
|
4084 |
case PE:
|
|
|
4085 |
if (value == null) {
|
|
|
4086 |
unsetPe();
|
|
|
4087 |
} else {
|
|
|
4088 |
setPe((PaymentException)value);
|
|
|
4089 |
}
|
|
|
4090 |
break;
|
|
|
4091 |
|
|
|
4092 |
}
|
|
|
4093 |
}
|
|
|
4094 |
|
|
|
4095 |
public Object getFieldValue(_Fields field) {
|
|
|
4096 |
switch (field) {
|
|
|
4097 |
case SUCCESS:
|
|
|
4098 |
return getSuccess();
|
|
|
4099 |
|
|
|
4100 |
case PE:
|
|
|
4101 |
return getPe();
|
|
|
4102 |
|
|
|
4103 |
}
|
|
|
4104 |
throw new IllegalStateException();
|
|
|
4105 |
}
|
|
|
4106 |
|
| 3430 |
rajveer |
4107 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4108 |
public boolean isSet(_Fields field) {
|
|
|
4109 |
if (field == null) {
|
|
|
4110 |
throw new IllegalArgumentException();
|
|
|
4111 |
}
|
| 123 |
ashish |
4112 |
|
|
|
4113 |
switch (field) {
|
|
|
4114 |
case SUCCESS:
|
|
|
4115 |
return isSetSuccess();
|
|
|
4116 |
case PE:
|
|
|
4117 |
return isSetPe();
|
|
|
4118 |
}
|
|
|
4119 |
throw new IllegalStateException();
|
|
|
4120 |
}
|
|
|
4121 |
|
|
|
4122 |
@Override
|
|
|
4123 |
public boolean equals(Object that) {
|
|
|
4124 |
if (that == null)
|
|
|
4125 |
return false;
|
|
|
4126 |
if (that instanceof getPayments_result)
|
|
|
4127 |
return this.equals((getPayments_result)that);
|
|
|
4128 |
return false;
|
|
|
4129 |
}
|
|
|
4130 |
|
|
|
4131 |
public boolean equals(getPayments_result that) {
|
|
|
4132 |
if (that == null)
|
|
|
4133 |
return false;
|
|
|
4134 |
|
|
|
4135 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4136 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
4137 |
if (this_present_success || that_present_success) {
|
|
|
4138 |
if (!(this_present_success && that_present_success))
|
|
|
4139 |
return false;
|
|
|
4140 |
if (!this.success.equals(that.success))
|
|
|
4141 |
return false;
|
|
|
4142 |
}
|
|
|
4143 |
|
|
|
4144 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
4145 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
4146 |
if (this_present_pe || that_present_pe) {
|
|
|
4147 |
if (!(this_present_pe && that_present_pe))
|
|
|
4148 |
return false;
|
|
|
4149 |
if (!this.pe.equals(that.pe))
|
|
|
4150 |
return false;
|
|
|
4151 |
}
|
|
|
4152 |
|
|
|
4153 |
return true;
|
|
|
4154 |
}
|
|
|
4155 |
|
|
|
4156 |
@Override
|
|
|
4157 |
public int hashCode() {
|
|
|
4158 |
return 0;
|
|
|
4159 |
}
|
|
|
4160 |
|
| 695 |
rajveer |
4161 |
public int compareTo(getPayments_result other) {
|
| 123 |
ashish |
4162 |
if (!getClass().equals(other.getClass())) {
|
|
|
4163 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4164 |
}
|
|
|
4165 |
|
|
|
4166 |
int lastComparison = 0;
|
| 695 |
rajveer |
4167 |
getPayments_result typedOther = (getPayments_result)other;
|
| 123 |
ashish |
4168 |
|
| 3430 |
rajveer |
4169 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 123 |
ashish |
4170 |
if (lastComparison != 0) {
|
|
|
4171 |
return lastComparison;
|
|
|
4172 |
}
|
| 3430 |
rajveer |
4173 |
if (isSetSuccess()) {
|
|
|
4174 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4175 |
if (lastComparison != 0) {
|
|
|
4176 |
return lastComparison;
|
|
|
4177 |
}
|
| 123 |
ashish |
4178 |
}
|
| 3430 |
rajveer |
4179 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 695 |
rajveer |
4180 |
if (lastComparison != 0) {
|
|
|
4181 |
return lastComparison;
|
| 123 |
ashish |
4182 |
}
|
| 3430 |
rajveer |
4183 |
if (isSetPe()) {
|
|
|
4184 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
4185 |
if (lastComparison != 0) {
|
|
|
4186 |
return lastComparison;
|
|
|
4187 |
}
|
| 123 |
ashish |
4188 |
}
|
|
|
4189 |
return 0;
|
|
|
4190 |
}
|
|
|
4191 |
|
| 3430 |
rajveer |
4192 |
public _Fields fieldForId(int fieldId) {
|
|
|
4193 |
return _Fields.findByThriftId(fieldId);
|
|
|
4194 |
}
|
|
|
4195 |
|
|
|
4196 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4197 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
4198 |
iprot.readStructBegin();
|
|
|
4199 |
while (true)
|
|
|
4200 |
{
|
|
|
4201 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4202 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
4203 |
break;
|
|
|
4204 |
}
|
| 3430 |
rajveer |
4205 |
switch (field.id) {
|
|
|
4206 |
case 0: // SUCCESS
|
|
|
4207 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
4208 |
{
|
|
|
4209 |
org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
|
|
|
4210 |
this.success = new ArrayList<Payment>(_list16.size);
|
|
|
4211 |
for (int _i17 = 0; _i17 < _list16.size; ++_i17)
|
| 420 |
ashish |
4212 |
{
|
| 3430 |
rajveer |
4213 |
Payment _elem18; // required
|
|
|
4214 |
_elem18 = new Payment();
|
|
|
4215 |
_elem18.read(iprot);
|
|
|
4216 |
this.success.add(_elem18);
|
| 420 |
ashish |
4217 |
}
|
| 3430 |
rajveer |
4218 |
iprot.readListEnd();
|
| 123 |
ashish |
4219 |
}
|
| 3430 |
rajveer |
4220 |
} else {
|
|
|
4221 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4222 |
}
|
|
|
4223 |
break;
|
|
|
4224 |
case 1: // PE
|
|
|
4225 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4226 |
this.pe = new PaymentException();
|
|
|
4227 |
this.pe.read(iprot);
|
|
|
4228 |
} else {
|
|
|
4229 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4230 |
}
|
|
|
4231 |
break;
|
|
|
4232 |
default:
|
|
|
4233 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
4234 |
}
|
| 3430 |
rajveer |
4235 |
iprot.readFieldEnd();
|
| 123 |
ashish |
4236 |
}
|
|
|
4237 |
iprot.readStructEnd();
|
|
|
4238 |
validate();
|
|
|
4239 |
}
|
|
|
4240 |
|
| 3430 |
rajveer |
4241 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
4242 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4243 |
|
|
|
4244 |
if (this.isSetSuccess()) {
|
|
|
4245 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 420 |
ashish |
4246 |
{
|
| 3430 |
rajveer |
4247 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 2747 |
chandransh |
4248 |
for (Payment _iter19 : this.success)
|
| 420 |
ashish |
4249 |
{
|
| 2747 |
chandransh |
4250 |
_iter19.write(oprot);
|
| 420 |
ashish |
4251 |
}
|
|
|
4252 |
oprot.writeListEnd();
|
|
|
4253 |
}
|
| 123 |
ashish |
4254 |
oprot.writeFieldEnd();
|
|
|
4255 |
} else if (this.isSetPe()) {
|
|
|
4256 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
4257 |
this.pe.write(oprot);
|
|
|
4258 |
oprot.writeFieldEnd();
|
|
|
4259 |
}
|
|
|
4260 |
oprot.writeFieldStop();
|
|
|
4261 |
oprot.writeStructEnd();
|
|
|
4262 |
}
|
|
|
4263 |
|
|
|
4264 |
@Override
|
|
|
4265 |
public String toString() {
|
| 695 |
rajveer |
4266 |
StringBuilder sb = new StringBuilder("getPayments_result(");
|
| 123 |
ashish |
4267 |
boolean first = true;
|
|
|
4268 |
|
|
|
4269 |
sb.append("success:");
|
|
|
4270 |
if (this.success == null) {
|
|
|
4271 |
sb.append("null");
|
|
|
4272 |
} else {
|
|
|
4273 |
sb.append(this.success);
|
|
|
4274 |
}
|
|
|
4275 |
first = false;
|
|
|
4276 |
if (!first) sb.append(", ");
|
|
|
4277 |
sb.append("pe:");
|
|
|
4278 |
if (this.pe == null) {
|
|
|
4279 |
sb.append("null");
|
|
|
4280 |
} else {
|
|
|
4281 |
sb.append(this.pe);
|
|
|
4282 |
}
|
|
|
4283 |
first = false;
|
|
|
4284 |
sb.append(")");
|
|
|
4285 |
return sb.toString();
|
|
|
4286 |
}
|
|
|
4287 |
|
| 3430 |
rajveer |
4288 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
4289 |
// check for required fields
|
|
|
4290 |
}
|
|
|
4291 |
|
| 3430 |
rajveer |
4292 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4293 |
try {
|
|
|
4294 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4295 |
} catch (org.apache.thrift.TException te) {
|
|
|
4296 |
throw new java.io.IOException(te);
|
|
|
4297 |
}
|
|
|
4298 |
}
|
|
|
4299 |
|
|
|
4300 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4301 |
try {
|
|
|
4302 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4303 |
} catch (org.apache.thrift.TException te) {
|
|
|
4304 |
throw new java.io.IOException(te);
|
|
|
4305 |
}
|
|
|
4306 |
}
|
|
|
4307 |
|
| 123 |
ashish |
4308 |
}
|
|
|
4309 |
|
| 3430 |
rajveer |
4310 |
public static class getPaymentGateway_args implements org.apache.thrift.TBase<getPaymentGateway_args, getPaymentGateway_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4311 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_args");
|
| 123 |
ashish |
4312 |
|
| 3430 |
rajveer |
4313 |
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 |
4314 |
|
| 3430 |
rajveer |
4315 |
private long id; // required
|
| 123 |
ashish |
4316 |
|
|
|
4317 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4318 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 695 |
rajveer |
4319 |
ID((short)1, "id");
|
| 123 |
ashish |
4320 |
|
|
|
4321 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4322 |
|
|
|
4323 |
static {
|
|
|
4324 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4325 |
byName.put(field.getFieldName(), field);
|
|
|
4326 |
}
|
|
|
4327 |
}
|
|
|
4328 |
|
|
|
4329 |
/**
|
|
|
4330 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4331 |
*/
|
|
|
4332 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4333 |
switch(fieldId) {
|
|
|
4334 |
case 1: // ID
|
|
|
4335 |
return ID;
|
|
|
4336 |
default:
|
|
|
4337 |
return null;
|
|
|
4338 |
}
|
| 123 |
ashish |
4339 |
}
|
|
|
4340 |
|
|
|
4341 |
/**
|
|
|
4342 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4343 |
* if it is not found.
|
|
|
4344 |
*/
|
|
|
4345 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4346 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4347 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4348 |
return fields;
|
|
|
4349 |
}
|
|
|
4350 |
|
|
|
4351 |
/**
|
|
|
4352 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4353 |
*/
|
|
|
4354 |
public static _Fields findByName(String name) {
|
|
|
4355 |
return byName.get(name);
|
|
|
4356 |
}
|
|
|
4357 |
|
|
|
4358 |
private final short _thriftId;
|
|
|
4359 |
private final String _fieldName;
|
|
|
4360 |
|
|
|
4361 |
_Fields(short thriftId, String fieldName) {
|
|
|
4362 |
_thriftId = thriftId;
|
|
|
4363 |
_fieldName = fieldName;
|
|
|
4364 |
}
|
|
|
4365 |
|
|
|
4366 |
public short getThriftFieldId() {
|
|
|
4367 |
return _thriftId;
|
|
|
4368 |
}
|
|
|
4369 |
|
|
|
4370 |
public String getFieldName() {
|
|
|
4371 |
return _fieldName;
|
|
|
4372 |
}
|
|
|
4373 |
}
|
|
|
4374 |
|
|
|
4375 |
// isset id assignments
|
| 420 |
ashish |
4376 |
private static final int __ID_ISSET_ID = 0;
|
| 123 |
ashish |
4377 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
4378 |
|
| 3430 |
rajveer |
4379 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
4380 |
static {
|
| 3430 |
rajveer |
4381 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4382 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4383 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
4384 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4385 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_args.class, metaDataMap);
|
| 123 |
ashish |
4386 |
}
|
|
|
4387 |
|
| 695 |
rajveer |
4388 |
public getPaymentGateway_args() {
|
| 123 |
ashish |
4389 |
}
|
|
|
4390 |
|
| 695 |
rajveer |
4391 |
public getPaymentGateway_args(
|
|
|
4392 |
long id)
|
| 123 |
ashish |
4393 |
{
|
|
|
4394 |
this();
|
| 420 |
ashish |
4395 |
this.id = id;
|
|
|
4396 |
setIdIsSet(true);
|
| 123 |
ashish |
4397 |
}
|
|
|
4398 |
|
|
|
4399 |
/**
|
|
|
4400 |
* Performs a deep copy on <i>other</i>.
|
|
|
4401 |
*/
|
| 695 |
rajveer |
4402 |
public getPaymentGateway_args(getPaymentGateway_args other) {
|
| 123 |
ashish |
4403 |
__isset_bit_vector.clear();
|
|
|
4404 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 420 |
ashish |
4405 |
this.id = other.id;
|
| 123 |
ashish |
4406 |
}
|
|
|
4407 |
|
| 695 |
rajveer |
4408 |
public getPaymentGateway_args deepCopy() {
|
|
|
4409 |
return new getPaymentGateway_args(this);
|
| 123 |
ashish |
4410 |
}
|
|
|
4411 |
|
| 3430 |
rajveer |
4412 |
@Override
|
|
|
4413 |
public void clear() {
|
|
|
4414 |
setIdIsSet(false);
|
|
|
4415 |
this.id = 0;
|
| 123 |
ashish |
4416 |
}
|
|
|
4417 |
|
| 420 |
ashish |
4418 |
public long getId() {
|
|
|
4419 |
return this.id;
|
| 123 |
ashish |
4420 |
}
|
|
|
4421 |
|
| 3430 |
rajveer |
4422 |
public void setId(long id) {
|
| 420 |
ashish |
4423 |
this.id = id;
|
|
|
4424 |
setIdIsSet(true);
|
| 123 |
ashish |
4425 |
}
|
|
|
4426 |
|
| 420 |
ashish |
4427 |
public void unsetId() {
|
|
|
4428 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
| 123 |
ashish |
4429 |
}
|
|
|
4430 |
|
| 3430 |
rajveer |
4431 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
4432 |
public boolean isSetId() {
|
|
|
4433 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
| 123 |
ashish |
4434 |
}
|
|
|
4435 |
|
| 420 |
ashish |
4436 |
public void setIdIsSet(boolean value) {
|
|
|
4437 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
| 123 |
ashish |
4438 |
}
|
|
|
4439 |
|
|
|
4440 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4441 |
switch (field) {
|
| 420 |
ashish |
4442 |
case ID:
|
| 123 |
ashish |
4443 |
if (value == null) {
|
| 420 |
ashish |
4444 |
unsetId();
|
| 123 |
ashish |
4445 |
} else {
|
| 420 |
ashish |
4446 |
setId((Long)value);
|
| 123 |
ashish |
4447 |
}
|
|
|
4448 |
break;
|
|
|
4449 |
|
|
|
4450 |
}
|
|
|
4451 |
}
|
|
|
4452 |
|
|
|
4453 |
public Object getFieldValue(_Fields field) {
|
|
|
4454 |
switch (field) {
|
| 420 |
ashish |
4455 |
case ID:
|
| 3430 |
rajveer |
4456 |
return Long.valueOf(getId());
|
| 123 |
ashish |
4457 |
|
|
|
4458 |
}
|
|
|
4459 |
throw new IllegalStateException();
|
|
|
4460 |
}
|
|
|
4461 |
|
| 3430 |
rajveer |
4462 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4463 |
public boolean isSet(_Fields field) {
|
|
|
4464 |
if (field == null) {
|
|
|
4465 |
throw new IllegalArgumentException();
|
|
|
4466 |
}
|
| 123 |
ashish |
4467 |
|
|
|
4468 |
switch (field) {
|
| 420 |
ashish |
4469 |
case ID:
|
|
|
4470 |
return isSetId();
|
| 123 |
ashish |
4471 |
}
|
|
|
4472 |
throw new IllegalStateException();
|
|
|
4473 |
}
|
|
|
4474 |
|
|
|
4475 |
@Override
|
|
|
4476 |
public boolean equals(Object that) {
|
|
|
4477 |
if (that == null)
|
|
|
4478 |
return false;
|
| 695 |
rajveer |
4479 |
if (that instanceof getPaymentGateway_args)
|
|
|
4480 |
return this.equals((getPaymentGateway_args)that);
|
| 123 |
ashish |
4481 |
return false;
|
|
|
4482 |
}
|
|
|
4483 |
|
| 695 |
rajveer |
4484 |
public boolean equals(getPaymentGateway_args that) {
|
| 123 |
ashish |
4485 |
if (that == null)
|
|
|
4486 |
return false;
|
|
|
4487 |
|
| 420 |
ashish |
4488 |
boolean this_present_id = true;
|
|
|
4489 |
boolean that_present_id = true;
|
|
|
4490 |
if (this_present_id || that_present_id) {
|
|
|
4491 |
if (!(this_present_id && that_present_id))
|
| 123 |
ashish |
4492 |
return false;
|
| 420 |
ashish |
4493 |
if (this.id != that.id)
|
| 123 |
ashish |
4494 |
return false;
|
|
|
4495 |
}
|
|
|
4496 |
|
|
|
4497 |
return true;
|
|
|
4498 |
}
|
|
|
4499 |
|
|
|
4500 |
@Override
|
|
|
4501 |
public int hashCode() {
|
|
|
4502 |
return 0;
|
|
|
4503 |
}
|
|
|
4504 |
|
| 695 |
rajveer |
4505 |
public int compareTo(getPaymentGateway_args other) {
|
| 123 |
ashish |
4506 |
if (!getClass().equals(other.getClass())) {
|
|
|
4507 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4508 |
}
|
|
|
4509 |
|
|
|
4510 |
int lastComparison = 0;
|
| 695 |
rajveer |
4511 |
getPaymentGateway_args typedOther = (getPaymentGateway_args)other;
|
| 123 |
ashish |
4512 |
|
| 3430 |
rajveer |
4513 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| 123 |
ashish |
4514 |
if (lastComparison != 0) {
|
|
|
4515 |
return lastComparison;
|
|
|
4516 |
}
|
| 3430 |
rajveer |
4517 |
if (isSetId()) {
|
|
|
4518 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
4519 |
if (lastComparison != 0) {
|
|
|
4520 |
return lastComparison;
|
|
|
4521 |
}
|
| 123 |
ashish |
4522 |
}
|
|
|
4523 |
return 0;
|
|
|
4524 |
}
|
|
|
4525 |
|
| 3430 |
rajveer |
4526 |
public _Fields fieldForId(int fieldId) {
|
|
|
4527 |
return _Fields.findByThriftId(fieldId);
|
|
|
4528 |
}
|
|
|
4529 |
|
|
|
4530 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4531 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
4532 |
iprot.readStructBegin();
|
|
|
4533 |
while (true)
|
|
|
4534 |
{
|
|
|
4535 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4536 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
4537 |
break;
|
|
|
4538 |
}
|
| 3430 |
rajveer |
4539 |
switch (field.id) {
|
|
|
4540 |
case 1: // ID
|
|
|
4541 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4542 |
this.id = iprot.readI64();
|
|
|
4543 |
setIdIsSet(true);
|
|
|
4544 |
} else {
|
|
|
4545 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4546 |
}
|
|
|
4547 |
break;
|
|
|
4548 |
default:
|
|
|
4549 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
4550 |
}
|
| 3430 |
rajveer |
4551 |
iprot.readFieldEnd();
|
| 123 |
ashish |
4552 |
}
|
|
|
4553 |
iprot.readStructEnd();
|
|
|
4554 |
validate();
|
|
|
4555 |
}
|
|
|
4556 |
|
| 3430 |
rajveer |
4557 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
4558 |
validate();
|
|
|
4559 |
|
|
|
4560 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 420 |
ashish |
4561 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
4562 |
oprot.writeI64(this.id);
|
| 123 |
ashish |
4563 |
oprot.writeFieldEnd();
|
|
|
4564 |
oprot.writeFieldStop();
|
|
|
4565 |
oprot.writeStructEnd();
|
|
|
4566 |
}
|
|
|
4567 |
|
|
|
4568 |
@Override
|
|
|
4569 |
public String toString() {
|
| 695 |
rajveer |
4570 |
StringBuilder sb = new StringBuilder("getPaymentGateway_args(");
|
| 123 |
ashish |
4571 |
boolean first = true;
|
|
|
4572 |
|
| 420 |
ashish |
4573 |
sb.append("id:");
|
|
|
4574 |
sb.append(this.id);
|
| 123 |
ashish |
4575 |
first = false;
|
|
|
4576 |
sb.append(")");
|
|
|
4577 |
return sb.toString();
|
|
|
4578 |
}
|
|
|
4579 |
|
| 3430 |
rajveer |
4580 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
4581 |
// check for required fields
|
|
|
4582 |
}
|
|
|
4583 |
|
| 3430 |
rajveer |
4584 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4585 |
try {
|
|
|
4586 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4587 |
} catch (org.apache.thrift.TException te) {
|
|
|
4588 |
throw new java.io.IOException(te);
|
|
|
4589 |
}
|
|
|
4590 |
}
|
|
|
4591 |
|
|
|
4592 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4593 |
try {
|
|
|
4594 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
4595 |
__isset_bit_vector = new BitSet(1);
|
|
|
4596 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4597 |
} catch (org.apache.thrift.TException te) {
|
|
|
4598 |
throw new java.io.IOException(te);
|
|
|
4599 |
}
|
|
|
4600 |
}
|
|
|
4601 |
|
| 123 |
ashish |
4602 |
}
|
|
|
4603 |
|
| 3430 |
rajveer |
4604 |
public static class getPaymentGateway_result implements org.apache.thrift.TBase<getPaymentGateway_result, getPaymentGateway_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4605 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_result");
|
| 123 |
ashish |
4606 |
|
| 3430 |
rajveer |
4607 |
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);
|
|
|
4608 |
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 |
4609 |
|
| 3430 |
rajveer |
4610 |
private PaymentGateway success; // required
|
|
|
4611 |
private PaymentException pe; // required
|
| 123 |
ashish |
4612 |
|
|
|
4613 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4614 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 420 |
ashish |
4615 |
SUCCESS((short)0, "success"),
|
|
|
4616 |
PE((short)1, "pe");
|
|
|
4617 |
|
|
|
4618 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4619 |
|
|
|
4620 |
static {
|
|
|
4621 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4622 |
byName.put(field.getFieldName(), field);
|
|
|
4623 |
}
|
|
|
4624 |
}
|
|
|
4625 |
|
|
|
4626 |
/**
|
|
|
4627 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4628 |
*/
|
|
|
4629 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4630 |
switch(fieldId) {
|
|
|
4631 |
case 0: // SUCCESS
|
|
|
4632 |
return SUCCESS;
|
|
|
4633 |
case 1: // PE
|
|
|
4634 |
return PE;
|
|
|
4635 |
default:
|
|
|
4636 |
return null;
|
|
|
4637 |
}
|
| 420 |
ashish |
4638 |
}
|
|
|
4639 |
|
|
|
4640 |
/**
|
|
|
4641 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4642 |
* if it is not found.
|
|
|
4643 |
*/
|
|
|
4644 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4645 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4646 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4647 |
return fields;
|
|
|
4648 |
}
|
|
|
4649 |
|
|
|
4650 |
/**
|
|
|
4651 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4652 |
*/
|
|
|
4653 |
public static _Fields findByName(String name) {
|
|
|
4654 |
return byName.get(name);
|
|
|
4655 |
}
|
|
|
4656 |
|
|
|
4657 |
private final short _thriftId;
|
|
|
4658 |
private final String _fieldName;
|
|
|
4659 |
|
|
|
4660 |
_Fields(short thriftId, String fieldName) {
|
|
|
4661 |
_thriftId = thriftId;
|
|
|
4662 |
_fieldName = fieldName;
|
|
|
4663 |
}
|
|
|
4664 |
|
|
|
4665 |
public short getThriftFieldId() {
|
|
|
4666 |
return _thriftId;
|
|
|
4667 |
}
|
|
|
4668 |
|
|
|
4669 |
public String getFieldName() {
|
|
|
4670 |
return _fieldName;
|
|
|
4671 |
}
|
|
|
4672 |
}
|
|
|
4673 |
|
|
|
4674 |
// isset id assignments
|
|
|
4675 |
|
| 3430 |
rajveer |
4676 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
4677 |
static {
|
| 3430 |
rajveer |
4678 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4679 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4680 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class)));
|
|
|
4681 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4682 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
4683 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4684 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_result.class, metaDataMap);
|
| 420 |
ashish |
4685 |
}
|
|
|
4686 |
|
| 695 |
rajveer |
4687 |
public getPaymentGateway_result() {
|
| 420 |
ashish |
4688 |
}
|
|
|
4689 |
|
| 695 |
rajveer |
4690 |
public getPaymentGateway_result(
|
|
|
4691 |
PaymentGateway success,
|
| 420 |
ashish |
4692 |
PaymentException pe)
|
|
|
4693 |
{
|
|
|
4694 |
this();
|
|
|
4695 |
this.success = success;
|
|
|
4696 |
this.pe = pe;
|
|
|
4697 |
}
|
|
|
4698 |
|
|
|
4699 |
/**
|
|
|
4700 |
* Performs a deep copy on <i>other</i>.
|
|
|
4701 |
*/
|
| 695 |
rajveer |
4702 |
public getPaymentGateway_result(getPaymentGateway_result other) {
|
| 420 |
ashish |
4703 |
if (other.isSetSuccess()) {
|
| 695 |
rajveer |
4704 |
this.success = new PaymentGateway(other.success);
|
| 420 |
ashish |
4705 |
}
|
|
|
4706 |
if (other.isSetPe()) {
|
|
|
4707 |
this.pe = new PaymentException(other.pe);
|
|
|
4708 |
}
|
|
|
4709 |
}
|
|
|
4710 |
|
| 695 |
rajveer |
4711 |
public getPaymentGateway_result deepCopy() {
|
|
|
4712 |
return new getPaymentGateway_result(this);
|
| 420 |
ashish |
4713 |
}
|
|
|
4714 |
|
| 3430 |
rajveer |
4715 |
@Override
|
|
|
4716 |
public void clear() {
|
|
|
4717 |
this.success = null;
|
|
|
4718 |
this.pe = null;
|
| 420 |
ashish |
4719 |
}
|
|
|
4720 |
|
| 695 |
rajveer |
4721 |
public PaymentGateway getSuccess() {
|
| 420 |
ashish |
4722 |
return this.success;
|
|
|
4723 |
}
|
|
|
4724 |
|
| 3430 |
rajveer |
4725 |
public void setSuccess(PaymentGateway success) {
|
| 420 |
ashish |
4726 |
this.success = success;
|
|
|
4727 |
}
|
|
|
4728 |
|
|
|
4729 |
public void unsetSuccess() {
|
|
|
4730 |
this.success = null;
|
|
|
4731 |
}
|
|
|
4732 |
|
| 3430 |
rajveer |
4733 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
4734 |
public boolean isSetSuccess() {
|
|
|
4735 |
return this.success != null;
|
|
|
4736 |
}
|
|
|
4737 |
|
|
|
4738 |
public void setSuccessIsSet(boolean value) {
|
|
|
4739 |
if (!value) {
|
|
|
4740 |
this.success = null;
|
|
|
4741 |
}
|
|
|
4742 |
}
|
|
|
4743 |
|
|
|
4744 |
public PaymentException getPe() {
|
|
|
4745 |
return this.pe;
|
|
|
4746 |
}
|
|
|
4747 |
|
| 3430 |
rajveer |
4748 |
public void setPe(PaymentException pe) {
|
| 420 |
ashish |
4749 |
this.pe = pe;
|
|
|
4750 |
}
|
|
|
4751 |
|
|
|
4752 |
public void unsetPe() {
|
|
|
4753 |
this.pe = null;
|
|
|
4754 |
}
|
|
|
4755 |
|
| 3430 |
rajveer |
4756 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
4757 |
public boolean isSetPe() {
|
|
|
4758 |
return this.pe != null;
|
|
|
4759 |
}
|
|
|
4760 |
|
|
|
4761 |
public void setPeIsSet(boolean value) {
|
|
|
4762 |
if (!value) {
|
|
|
4763 |
this.pe = null;
|
|
|
4764 |
}
|
|
|
4765 |
}
|
|
|
4766 |
|
|
|
4767 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4768 |
switch (field) {
|
|
|
4769 |
case SUCCESS:
|
|
|
4770 |
if (value == null) {
|
|
|
4771 |
unsetSuccess();
|
|
|
4772 |
} else {
|
| 695 |
rajveer |
4773 |
setSuccess((PaymentGateway)value);
|
| 420 |
ashish |
4774 |
}
|
|
|
4775 |
break;
|
|
|
4776 |
|
|
|
4777 |
case PE:
|
|
|
4778 |
if (value == null) {
|
|
|
4779 |
unsetPe();
|
|
|
4780 |
} else {
|
|
|
4781 |
setPe((PaymentException)value);
|
|
|
4782 |
}
|
|
|
4783 |
break;
|
|
|
4784 |
|
|
|
4785 |
}
|
|
|
4786 |
}
|
|
|
4787 |
|
|
|
4788 |
public Object getFieldValue(_Fields field) {
|
|
|
4789 |
switch (field) {
|
|
|
4790 |
case SUCCESS:
|
|
|
4791 |
return getSuccess();
|
|
|
4792 |
|
|
|
4793 |
case PE:
|
|
|
4794 |
return getPe();
|
|
|
4795 |
|
|
|
4796 |
}
|
|
|
4797 |
throw new IllegalStateException();
|
|
|
4798 |
}
|
|
|
4799 |
|
| 3430 |
rajveer |
4800 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4801 |
public boolean isSet(_Fields field) {
|
|
|
4802 |
if (field == null) {
|
|
|
4803 |
throw new IllegalArgumentException();
|
|
|
4804 |
}
|
| 420 |
ashish |
4805 |
|
|
|
4806 |
switch (field) {
|
|
|
4807 |
case SUCCESS:
|
|
|
4808 |
return isSetSuccess();
|
|
|
4809 |
case PE:
|
|
|
4810 |
return isSetPe();
|
|
|
4811 |
}
|
|
|
4812 |
throw new IllegalStateException();
|
|
|
4813 |
}
|
|
|
4814 |
|
|
|
4815 |
@Override
|
|
|
4816 |
public boolean equals(Object that) {
|
|
|
4817 |
if (that == null)
|
|
|
4818 |
return false;
|
| 695 |
rajveer |
4819 |
if (that instanceof getPaymentGateway_result)
|
|
|
4820 |
return this.equals((getPaymentGateway_result)that);
|
| 420 |
ashish |
4821 |
return false;
|
|
|
4822 |
}
|
|
|
4823 |
|
| 695 |
rajveer |
4824 |
public boolean equals(getPaymentGateway_result that) {
|
| 420 |
ashish |
4825 |
if (that == null)
|
|
|
4826 |
return false;
|
|
|
4827 |
|
|
|
4828 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4829 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
4830 |
if (this_present_success || that_present_success) {
|
|
|
4831 |
if (!(this_present_success && that_present_success))
|
|
|
4832 |
return false;
|
|
|
4833 |
if (!this.success.equals(that.success))
|
|
|
4834 |
return false;
|
|
|
4835 |
}
|
|
|
4836 |
|
|
|
4837 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
4838 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
4839 |
if (this_present_pe || that_present_pe) {
|
|
|
4840 |
if (!(this_present_pe && that_present_pe))
|
|
|
4841 |
return false;
|
|
|
4842 |
if (!this.pe.equals(that.pe))
|
|
|
4843 |
return false;
|
|
|
4844 |
}
|
|
|
4845 |
|
|
|
4846 |
return true;
|
|
|
4847 |
}
|
|
|
4848 |
|
|
|
4849 |
@Override
|
|
|
4850 |
public int hashCode() {
|
|
|
4851 |
return 0;
|
|
|
4852 |
}
|
|
|
4853 |
|
| 695 |
rajveer |
4854 |
public int compareTo(getPaymentGateway_result other) {
|
|
|
4855 |
if (!getClass().equals(other.getClass())) {
|
|
|
4856 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4857 |
}
|
|
|
4858 |
|
|
|
4859 |
int lastComparison = 0;
|
|
|
4860 |
getPaymentGateway_result typedOther = (getPaymentGateway_result)other;
|
|
|
4861 |
|
| 3430 |
rajveer |
4862 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 695 |
rajveer |
4863 |
if (lastComparison != 0) {
|
|
|
4864 |
return lastComparison;
|
|
|
4865 |
}
|
| 3430 |
rajveer |
4866 |
if (isSetSuccess()) {
|
|
|
4867 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4868 |
if (lastComparison != 0) {
|
|
|
4869 |
return lastComparison;
|
|
|
4870 |
}
|
| 695 |
rajveer |
4871 |
}
|
| 3430 |
rajveer |
4872 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 695 |
rajveer |
4873 |
if (lastComparison != 0) {
|
|
|
4874 |
return lastComparison;
|
|
|
4875 |
}
|
| 3430 |
rajveer |
4876 |
if (isSetPe()) {
|
|
|
4877 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
4878 |
if (lastComparison != 0) {
|
|
|
4879 |
return lastComparison;
|
|
|
4880 |
}
|
| 695 |
rajveer |
4881 |
}
|
|
|
4882 |
return 0;
|
|
|
4883 |
}
|
|
|
4884 |
|
| 3430 |
rajveer |
4885 |
public _Fields fieldForId(int fieldId) {
|
|
|
4886 |
return _Fields.findByThriftId(fieldId);
|
|
|
4887 |
}
|
|
|
4888 |
|
|
|
4889 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4890 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
4891 |
iprot.readStructBegin();
|
|
|
4892 |
while (true)
|
|
|
4893 |
{
|
|
|
4894 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4895 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
4896 |
break;
|
|
|
4897 |
}
|
| 3430 |
rajveer |
4898 |
switch (field.id) {
|
|
|
4899 |
case 0: // SUCCESS
|
|
|
4900 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4901 |
this.success = new PaymentGateway();
|
|
|
4902 |
this.success.read(iprot);
|
|
|
4903 |
} else {
|
|
|
4904 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4905 |
}
|
|
|
4906 |
break;
|
|
|
4907 |
case 1: // PE
|
|
|
4908 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4909 |
this.pe = new PaymentException();
|
|
|
4910 |
this.pe.read(iprot);
|
|
|
4911 |
} else {
|
|
|
4912 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4913 |
}
|
|
|
4914 |
break;
|
|
|
4915 |
default:
|
|
|
4916 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
4917 |
}
|
| 3430 |
rajveer |
4918 |
iprot.readFieldEnd();
|
| 420 |
ashish |
4919 |
}
|
|
|
4920 |
iprot.readStructEnd();
|
|
|
4921 |
validate();
|
|
|
4922 |
}
|
|
|
4923 |
|
| 3430 |
rajveer |
4924 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
4925 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4926 |
|
|
|
4927 |
if (this.isSetSuccess()) {
|
|
|
4928 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 695 |
rajveer |
4929 |
this.success.write(oprot);
|
| 420 |
ashish |
4930 |
oprot.writeFieldEnd();
|
|
|
4931 |
} else if (this.isSetPe()) {
|
|
|
4932 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
4933 |
this.pe.write(oprot);
|
|
|
4934 |
oprot.writeFieldEnd();
|
|
|
4935 |
}
|
|
|
4936 |
oprot.writeFieldStop();
|
|
|
4937 |
oprot.writeStructEnd();
|
|
|
4938 |
}
|
|
|
4939 |
|
|
|
4940 |
@Override
|
|
|
4941 |
public String toString() {
|
| 695 |
rajveer |
4942 |
StringBuilder sb = new StringBuilder("getPaymentGateway_result(");
|
| 420 |
ashish |
4943 |
boolean first = true;
|
|
|
4944 |
|
|
|
4945 |
sb.append("success:");
|
|
|
4946 |
if (this.success == null) {
|
|
|
4947 |
sb.append("null");
|
|
|
4948 |
} else {
|
|
|
4949 |
sb.append(this.success);
|
|
|
4950 |
}
|
|
|
4951 |
first = false;
|
|
|
4952 |
if (!first) sb.append(", ");
|
|
|
4953 |
sb.append("pe:");
|
|
|
4954 |
if (this.pe == null) {
|
|
|
4955 |
sb.append("null");
|
|
|
4956 |
} else {
|
|
|
4957 |
sb.append(this.pe);
|
|
|
4958 |
}
|
|
|
4959 |
first = false;
|
|
|
4960 |
sb.append(")");
|
|
|
4961 |
return sb.toString();
|
|
|
4962 |
}
|
|
|
4963 |
|
| 3430 |
rajveer |
4964 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
4965 |
// check for required fields
|
|
|
4966 |
}
|
|
|
4967 |
|
| 3430 |
rajveer |
4968 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4969 |
try {
|
|
|
4970 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4971 |
} catch (org.apache.thrift.TException te) {
|
|
|
4972 |
throw new java.io.IOException(te);
|
|
|
4973 |
}
|
|
|
4974 |
}
|
|
|
4975 |
|
|
|
4976 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4977 |
try {
|
|
|
4978 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4979 |
} catch (org.apache.thrift.TException te) {
|
|
|
4980 |
throw new java.io.IOException(te);
|
|
|
4981 |
}
|
|
|
4982 |
}
|
|
|
4983 |
|
| 420 |
ashish |
4984 |
}
|
|
|
4985 |
|
| 3430 |
rajveer |
4986 |
public static class getPayment_args implements org.apache.thrift.TBase<getPayment_args, getPayment_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4987 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_args");
|
| 420 |
ashish |
4988 |
|
| 3430 |
rajveer |
4989 |
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 |
4990 |
|
| 3430 |
rajveer |
4991 |
private long id; // required
|
| 420 |
ashish |
4992 |
|
|
|
4993 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4994 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 420 |
ashish |
4995 |
ID((short)1, "id");
|
|
|
4996 |
|
|
|
4997 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4998 |
|
|
|
4999 |
static {
|
|
|
5000 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5001 |
byName.put(field.getFieldName(), field);
|
|
|
5002 |
}
|
|
|
5003 |
}
|
|
|
5004 |
|
|
|
5005 |
/**
|
|
|
5006 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5007 |
*/
|
|
|
5008 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5009 |
switch(fieldId) {
|
|
|
5010 |
case 1: // ID
|
|
|
5011 |
return ID;
|
|
|
5012 |
default:
|
|
|
5013 |
return null;
|
|
|
5014 |
}
|
| 420 |
ashish |
5015 |
}
|
|
|
5016 |
|
|
|
5017 |
/**
|
|
|
5018 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5019 |
* if it is not found.
|
|
|
5020 |
*/
|
|
|
5021 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5022 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5023 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5024 |
return fields;
|
|
|
5025 |
}
|
|
|
5026 |
|
|
|
5027 |
/**
|
|
|
5028 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5029 |
*/
|
|
|
5030 |
public static _Fields findByName(String name) {
|
|
|
5031 |
return byName.get(name);
|
|
|
5032 |
}
|
|
|
5033 |
|
|
|
5034 |
private final short _thriftId;
|
|
|
5035 |
private final String _fieldName;
|
|
|
5036 |
|
|
|
5037 |
_Fields(short thriftId, String fieldName) {
|
|
|
5038 |
_thriftId = thriftId;
|
|
|
5039 |
_fieldName = fieldName;
|
|
|
5040 |
}
|
|
|
5041 |
|
|
|
5042 |
public short getThriftFieldId() {
|
|
|
5043 |
return _thriftId;
|
|
|
5044 |
}
|
|
|
5045 |
|
|
|
5046 |
public String getFieldName() {
|
|
|
5047 |
return _fieldName;
|
|
|
5048 |
}
|
|
|
5049 |
}
|
|
|
5050 |
|
|
|
5051 |
// isset id assignments
|
|
|
5052 |
private static final int __ID_ISSET_ID = 0;
|
|
|
5053 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
5054 |
|
| 3430 |
rajveer |
5055 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
5056 |
static {
|
| 3430 |
rajveer |
5057 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5058 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5059 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5060 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5061 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_args.class, metaDataMap);
|
| 420 |
ashish |
5062 |
}
|
|
|
5063 |
|
| 695 |
rajveer |
5064 |
public getPayment_args() {
|
| 420 |
ashish |
5065 |
}
|
|
|
5066 |
|
| 695 |
rajveer |
5067 |
public getPayment_args(
|
| 420 |
ashish |
5068 |
long id)
|
|
|
5069 |
{
|
|
|
5070 |
this();
|
|
|
5071 |
this.id = id;
|
|
|
5072 |
setIdIsSet(true);
|
|
|
5073 |
}
|
|
|
5074 |
|
|
|
5075 |
/**
|
|
|
5076 |
* Performs a deep copy on <i>other</i>.
|
|
|
5077 |
*/
|
| 695 |
rajveer |
5078 |
public getPayment_args(getPayment_args other) {
|
| 420 |
ashish |
5079 |
__isset_bit_vector.clear();
|
|
|
5080 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
5081 |
this.id = other.id;
|
|
|
5082 |
}
|
|
|
5083 |
|
| 695 |
rajveer |
5084 |
public getPayment_args deepCopy() {
|
|
|
5085 |
return new getPayment_args(this);
|
| 420 |
ashish |
5086 |
}
|
|
|
5087 |
|
| 3430 |
rajveer |
5088 |
@Override
|
|
|
5089 |
public void clear() {
|
|
|
5090 |
setIdIsSet(false);
|
|
|
5091 |
this.id = 0;
|
| 420 |
ashish |
5092 |
}
|
|
|
5093 |
|
|
|
5094 |
public long getId() {
|
|
|
5095 |
return this.id;
|
|
|
5096 |
}
|
|
|
5097 |
|
| 3430 |
rajveer |
5098 |
public void setId(long id) {
|
| 420 |
ashish |
5099 |
this.id = id;
|
|
|
5100 |
setIdIsSet(true);
|
|
|
5101 |
}
|
|
|
5102 |
|
|
|
5103 |
public void unsetId() {
|
|
|
5104 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
5105 |
}
|
|
|
5106 |
|
| 3430 |
rajveer |
5107 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
5108 |
public boolean isSetId() {
|
|
|
5109 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
5110 |
}
|
|
|
5111 |
|
|
|
5112 |
public void setIdIsSet(boolean value) {
|
|
|
5113 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
5114 |
}
|
|
|
5115 |
|
|
|
5116 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5117 |
switch (field) {
|
|
|
5118 |
case ID:
|
|
|
5119 |
if (value == null) {
|
|
|
5120 |
unsetId();
|
|
|
5121 |
} else {
|
|
|
5122 |
setId((Long)value);
|
|
|
5123 |
}
|
|
|
5124 |
break;
|
|
|
5125 |
|
|
|
5126 |
}
|
|
|
5127 |
}
|
|
|
5128 |
|
|
|
5129 |
public Object getFieldValue(_Fields field) {
|
|
|
5130 |
switch (field) {
|
|
|
5131 |
case ID:
|
| 3430 |
rajveer |
5132 |
return Long.valueOf(getId());
|
| 420 |
ashish |
5133 |
|
|
|
5134 |
}
|
|
|
5135 |
throw new IllegalStateException();
|
|
|
5136 |
}
|
|
|
5137 |
|
| 3430 |
rajveer |
5138 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5139 |
public boolean isSet(_Fields field) {
|
|
|
5140 |
if (field == null) {
|
|
|
5141 |
throw new IllegalArgumentException();
|
|
|
5142 |
}
|
| 420 |
ashish |
5143 |
|
|
|
5144 |
switch (field) {
|
|
|
5145 |
case ID:
|
|
|
5146 |
return isSetId();
|
|
|
5147 |
}
|
|
|
5148 |
throw new IllegalStateException();
|
|
|
5149 |
}
|
|
|
5150 |
|
|
|
5151 |
@Override
|
|
|
5152 |
public boolean equals(Object that) {
|
|
|
5153 |
if (that == null)
|
|
|
5154 |
return false;
|
| 695 |
rajveer |
5155 |
if (that instanceof getPayment_args)
|
|
|
5156 |
return this.equals((getPayment_args)that);
|
| 420 |
ashish |
5157 |
return false;
|
|
|
5158 |
}
|
|
|
5159 |
|
| 695 |
rajveer |
5160 |
public boolean equals(getPayment_args that) {
|
| 420 |
ashish |
5161 |
if (that == null)
|
|
|
5162 |
return false;
|
|
|
5163 |
|
|
|
5164 |
boolean this_present_id = true;
|
|
|
5165 |
boolean that_present_id = true;
|
|
|
5166 |
if (this_present_id || that_present_id) {
|
|
|
5167 |
if (!(this_present_id && that_present_id))
|
|
|
5168 |
return false;
|
|
|
5169 |
if (this.id != that.id)
|
|
|
5170 |
return false;
|
|
|
5171 |
}
|
|
|
5172 |
|
|
|
5173 |
return true;
|
|
|
5174 |
}
|
|
|
5175 |
|
|
|
5176 |
@Override
|
|
|
5177 |
public int hashCode() {
|
|
|
5178 |
return 0;
|
|
|
5179 |
}
|
|
|
5180 |
|
| 695 |
rajveer |
5181 |
public int compareTo(getPayment_args other) {
|
| 420 |
ashish |
5182 |
if (!getClass().equals(other.getClass())) {
|
|
|
5183 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5184 |
}
|
|
|
5185 |
|
|
|
5186 |
int lastComparison = 0;
|
| 695 |
rajveer |
5187 |
getPayment_args typedOther = (getPayment_args)other;
|
| 420 |
ashish |
5188 |
|
| 3430 |
rajveer |
5189 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| 420 |
ashish |
5190 |
if (lastComparison != 0) {
|
|
|
5191 |
return lastComparison;
|
|
|
5192 |
}
|
| 3430 |
rajveer |
5193 |
if (isSetId()) {
|
|
|
5194 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
5195 |
if (lastComparison != 0) {
|
|
|
5196 |
return lastComparison;
|
|
|
5197 |
}
|
| 420 |
ashish |
5198 |
}
|
|
|
5199 |
return 0;
|
|
|
5200 |
}
|
|
|
5201 |
|
| 3430 |
rajveer |
5202 |
public _Fields fieldForId(int fieldId) {
|
|
|
5203 |
return _Fields.findByThriftId(fieldId);
|
|
|
5204 |
}
|
|
|
5205 |
|
|
|
5206 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5207 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
5208 |
iprot.readStructBegin();
|
|
|
5209 |
while (true)
|
|
|
5210 |
{
|
|
|
5211 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5212 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
5213 |
break;
|
|
|
5214 |
}
|
| 3430 |
rajveer |
5215 |
switch (field.id) {
|
|
|
5216 |
case 1: // ID
|
|
|
5217 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5218 |
this.id = iprot.readI64();
|
|
|
5219 |
setIdIsSet(true);
|
|
|
5220 |
} else {
|
|
|
5221 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5222 |
}
|
|
|
5223 |
break;
|
|
|
5224 |
default:
|
|
|
5225 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
5226 |
}
|
| 3430 |
rajveer |
5227 |
iprot.readFieldEnd();
|
| 420 |
ashish |
5228 |
}
|
|
|
5229 |
iprot.readStructEnd();
|
|
|
5230 |
validate();
|
|
|
5231 |
}
|
|
|
5232 |
|
| 3430 |
rajveer |
5233 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
5234 |
validate();
|
|
|
5235 |
|
|
|
5236 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5237 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
5238 |
oprot.writeI64(this.id);
|
|
|
5239 |
oprot.writeFieldEnd();
|
|
|
5240 |
oprot.writeFieldStop();
|
|
|
5241 |
oprot.writeStructEnd();
|
|
|
5242 |
}
|
|
|
5243 |
|
|
|
5244 |
@Override
|
|
|
5245 |
public String toString() {
|
| 695 |
rajveer |
5246 |
StringBuilder sb = new StringBuilder("getPayment_args(");
|
| 420 |
ashish |
5247 |
boolean first = true;
|
|
|
5248 |
|
|
|
5249 |
sb.append("id:");
|
|
|
5250 |
sb.append(this.id);
|
|
|
5251 |
first = false;
|
|
|
5252 |
sb.append(")");
|
|
|
5253 |
return sb.toString();
|
|
|
5254 |
}
|
|
|
5255 |
|
| 3430 |
rajveer |
5256 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
5257 |
// check for required fields
|
|
|
5258 |
}
|
|
|
5259 |
|
| 3430 |
rajveer |
5260 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5261 |
try {
|
|
|
5262 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5263 |
} catch (org.apache.thrift.TException te) {
|
|
|
5264 |
throw new java.io.IOException(te);
|
|
|
5265 |
}
|
|
|
5266 |
}
|
|
|
5267 |
|
|
|
5268 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5269 |
try {
|
|
|
5270 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
5271 |
__isset_bit_vector = new BitSet(1);
|
|
|
5272 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5273 |
} catch (org.apache.thrift.TException te) {
|
|
|
5274 |
throw new java.io.IOException(te);
|
|
|
5275 |
}
|
|
|
5276 |
}
|
|
|
5277 |
|
| 420 |
ashish |
5278 |
}
|
|
|
5279 |
|
| 3430 |
rajveer |
5280 |
public static class getPayment_result implements org.apache.thrift.TBase<getPayment_result, getPayment_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5281 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_result");
|
| 420 |
ashish |
5282 |
|
| 3430 |
rajveer |
5283 |
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);
|
|
|
5284 |
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 |
5285 |
|
| 3430 |
rajveer |
5286 |
private Payment success; // required
|
|
|
5287 |
private PaymentException pe; // required
|
| 420 |
ashish |
5288 |
|
|
|
5289 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5290 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 420 |
ashish |
5291 |
SUCCESS((short)0, "success"),
|
|
|
5292 |
PE((short)1, "pe");
|
|
|
5293 |
|
|
|
5294 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5295 |
|
|
|
5296 |
static {
|
|
|
5297 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5298 |
byName.put(field.getFieldName(), field);
|
|
|
5299 |
}
|
|
|
5300 |
}
|
|
|
5301 |
|
|
|
5302 |
/**
|
|
|
5303 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5304 |
*/
|
|
|
5305 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5306 |
switch(fieldId) {
|
|
|
5307 |
case 0: // SUCCESS
|
|
|
5308 |
return SUCCESS;
|
|
|
5309 |
case 1: // PE
|
|
|
5310 |
return PE;
|
|
|
5311 |
default:
|
|
|
5312 |
return null;
|
|
|
5313 |
}
|
| 420 |
ashish |
5314 |
}
|
|
|
5315 |
|
|
|
5316 |
/**
|
|
|
5317 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5318 |
* if it is not found.
|
|
|
5319 |
*/
|
|
|
5320 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5321 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5322 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5323 |
return fields;
|
|
|
5324 |
}
|
|
|
5325 |
|
|
|
5326 |
/**
|
|
|
5327 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5328 |
*/
|
|
|
5329 |
public static _Fields findByName(String name) {
|
|
|
5330 |
return byName.get(name);
|
|
|
5331 |
}
|
|
|
5332 |
|
|
|
5333 |
private final short _thriftId;
|
|
|
5334 |
private final String _fieldName;
|
|
|
5335 |
|
|
|
5336 |
_Fields(short thriftId, String fieldName) {
|
|
|
5337 |
_thriftId = thriftId;
|
|
|
5338 |
_fieldName = fieldName;
|
|
|
5339 |
}
|
|
|
5340 |
|
|
|
5341 |
public short getThriftFieldId() {
|
|
|
5342 |
return _thriftId;
|
|
|
5343 |
}
|
|
|
5344 |
|
|
|
5345 |
public String getFieldName() {
|
|
|
5346 |
return _fieldName;
|
|
|
5347 |
}
|
|
|
5348 |
}
|
|
|
5349 |
|
|
|
5350 |
// isset id assignments
|
|
|
5351 |
|
| 3430 |
rajveer |
5352 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
5353 |
static {
|
| 3430 |
rajveer |
5354 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5355 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5356 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
|
|
|
5357 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5358 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
5359 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5360 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_result.class, metaDataMap);
|
| 420 |
ashish |
5361 |
}
|
|
|
5362 |
|
| 695 |
rajveer |
5363 |
public getPayment_result() {
|
| 420 |
ashish |
5364 |
}
|
|
|
5365 |
|
| 695 |
rajveer |
5366 |
public getPayment_result(
|
|
|
5367 |
Payment success,
|
| 420 |
ashish |
5368 |
PaymentException pe)
|
|
|
5369 |
{
|
|
|
5370 |
this();
|
|
|
5371 |
this.success = success;
|
|
|
5372 |
this.pe = pe;
|
|
|
5373 |
}
|
|
|
5374 |
|
|
|
5375 |
/**
|
|
|
5376 |
* Performs a deep copy on <i>other</i>.
|
|
|
5377 |
*/
|
| 695 |
rajveer |
5378 |
public getPayment_result(getPayment_result other) {
|
| 420 |
ashish |
5379 |
if (other.isSetSuccess()) {
|
| 695 |
rajveer |
5380 |
this.success = new Payment(other.success);
|
| 420 |
ashish |
5381 |
}
|
|
|
5382 |
if (other.isSetPe()) {
|
|
|
5383 |
this.pe = new PaymentException(other.pe);
|
|
|
5384 |
}
|
|
|
5385 |
}
|
|
|
5386 |
|
| 695 |
rajveer |
5387 |
public getPayment_result deepCopy() {
|
|
|
5388 |
return new getPayment_result(this);
|
| 420 |
ashish |
5389 |
}
|
|
|
5390 |
|
| 3430 |
rajveer |
5391 |
@Override
|
|
|
5392 |
public void clear() {
|
|
|
5393 |
this.success = null;
|
|
|
5394 |
this.pe = null;
|
| 420 |
ashish |
5395 |
}
|
|
|
5396 |
|
| 695 |
rajveer |
5397 |
public Payment getSuccess() {
|
| 420 |
ashish |
5398 |
return this.success;
|
|
|
5399 |
}
|
|
|
5400 |
|
| 3430 |
rajveer |
5401 |
public void setSuccess(Payment success) {
|
| 420 |
ashish |
5402 |
this.success = success;
|
|
|
5403 |
}
|
|
|
5404 |
|
|
|
5405 |
public void unsetSuccess() {
|
|
|
5406 |
this.success = null;
|
|
|
5407 |
}
|
|
|
5408 |
|
| 3430 |
rajveer |
5409 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
5410 |
public boolean isSetSuccess() {
|
|
|
5411 |
return this.success != null;
|
|
|
5412 |
}
|
|
|
5413 |
|
|
|
5414 |
public void setSuccessIsSet(boolean value) {
|
|
|
5415 |
if (!value) {
|
|
|
5416 |
this.success = null;
|
|
|
5417 |
}
|
|
|
5418 |
}
|
|
|
5419 |
|
|
|
5420 |
public PaymentException getPe() {
|
|
|
5421 |
return this.pe;
|
|
|
5422 |
}
|
|
|
5423 |
|
| 3430 |
rajveer |
5424 |
public void setPe(PaymentException pe) {
|
| 420 |
ashish |
5425 |
this.pe = pe;
|
|
|
5426 |
}
|
|
|
5427 |
|
|
|
5428 |
public void unsetPe() {
|
|
|
5429 |
this.pe = null;
|
|
|
5430 |
}
|
|
|
5431 |
|
| 3430 |
rajveer |
5432 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
5433 |
public boolean isSetPe() {
|
|
|
5434 |
return this.pe != null;
|
|
|
5435 |
}
|
|
|
5436 |
|
|
|
5437 |
public void setPeIsSet(boolean value) {
|
|
|
5438 |
if (!value) {
|
|
|
5439 |
this.pe = null;
|
|
|
5440 |
}
|
|
|
5441 |
}
|
|
|
5442 |
|
|
|
5443 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5444 |
switch (field) {
|
|
|
5445 |
case SUCCESS:
|
|
|
5446 |
if (value == null) {
|
|
|
5447 |
unsetSuccess();
|
|
|
5448 |
} else {
|
| 695 |
rajveer |
5449 |
setSuccess((Payment)value);
|
| 420 |
ashish |
5450 |
}
|
|
|
5451 |
break;
|
|
|
5452 |
|
|
|
5453 |
case PE:
|
|
|
5454 |
if (value == null) {
|
|
|
5455 |
unsetPe();
|
|
|
5456 |
} else {
|
|
|
5457 |
setPe((PaymentException)value);
|
|
|
5458 |
}
|
|
|
5459 |
break;
|
|
|
5460 |
|
|
|
5461 |
}
|
|
|
5462 |
}
|
|
|
5463 |
|
|
|
5464 |
public Object getFieldValue(_Fields field) {
|
|
|
5465 |
switch (field) {
|
|
|
5466 |
case SUCCESS:
|
|
|
5467 |
return getSuccess();
|
|
|
5468 |
|
|
|
5469 |
case PE:
|
|
|
5470 |
return getPe();
|
|
|
5471 |
|
|
|
5472 |
}
|
|
|
5473 |
throw new IllegalStateException();
|
|
|
5474 |
}
|
|
|
5475 |
|
| 3430 |
rajveer |
5476 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5477 |
public boolean isSet(_Fields field) {
|
|
|
5478 |
if (field == null) {
|
|
|
5479 |
throw new IllegalArgumentException();
|
|
|
5480 |
}
|
| 420 |
ashish |
5481 |
|
|
|
5482 |
switch (field) {
|
|
|
5483 |
case SUCCESS:
|
|
|
5484 |
return isSetSuccess();
|
|
|
5485 |
case PE:
|
|
|
5486 |
return isSetPe();
|
|
|
5487 |
}
|
|
|
5488 |
throw new IllegalStateException();
|
|
|
5489 |
}
|
|
|
5490 |
|
|
|
5491 |
@Override
|
|
|
5492 |
public boolean equals(Object that) {
|
|
|
5493 |
if (that == null)
|
|
|
5494 |
return false;
|
| 695 |
rajveer |
5495 |
if (that instanceof getPayment_result)
|
|
|
5496 |
return this.equals((getPayment_result)that);
|
| 420 |
ashish |
5497 |
return false;
|
|
|
5498 |
}
|
|
|
5499 |
|
| 695 |
rajveer |
5500 |
public boolean equals(getPayment_result that) {
|
| 420 |
ashish |
5501 |
if (that == null)
|
|
|
5502 |
return false;
|
|
|
5503 |
|
|
|
5504 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
5505 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
5506 |
if (this_present_success || that_present_success) {
|
|
|
5507 |
if (!(this_present_success && that_present_success))
|
|
|
5508 |
return false;
|
|
|
5509 |
if (!this.success.equals(that.success))
|
|
|
5510 |
return false;
|
|
|
5511 |
}
|
|
|
5512 |
|
|
|
5513 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
5514 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
5515 |
if (this_present_pe || that_present_pe) {
|
|
|
5516 |
if (!(this_present_pe && that_present_pe))
|
|
|
5517 |
return false;
|
|
|
5518 |
if (!this.pe.equals(that.pe))
|
|
|
5519 |
return false;
|
|
|
5520 |
}
|
|
|
5521 |
|
|
|
5522 |
return true;
|
|
|
5523 |
}
|
|
|
5524 |
|
|
|
5525 |
@Override
|
|
|
5526 |
public int hashCode() {
|
|
|
5527 |
return 0;
|
|
|
5528 |
}
|
|
|
5529 |
|
| 695 |
rajveer |
5530 |
public int compareTo(getPayment_result other) {
|
| 420 |
ashish |
5531 |
if (!getClass().equals(other.getClass())) {
|
|
|
5532 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5533 |
}
|
|
|
5534 |
|
|
|
5535 |
int lastComparison = 0;
|
| 695 |
rajveer |
5536 |
getPayment_result typedOther = (getPayment_result)other;
|
| 420 |
ashish |
5537 |
|
| 3430 |
rajveer |
5538 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 420 |
ashish |
5539 |
if (lastComparison != 0) {
|
|
|
5540 |
return lastComparison;
|
|
|
5541 |
}
|
| 3430 |
rajveer |
5542 |
if (isSetSuccess()) {
|
|
|
5543 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
5544 |
if (lastComparison != 0) {
|
|
|
5545 |
return lastComparison;
|
|
|
5546 |
}
|
| 420 |
ashish |
5547 |
}
|
| 3430 |
rajveer |
5548 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 420 |
ashish |
5549 |
if (lastComparison != 0) {
|
|
|
5550 |
return lastComparison;
|
|
|
5551 |
}
|
| 3430 |
rajveer |
5552 |
if (isSetPe()) {
|
|
|
5553 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
5554 |
if (lastComparison != 0) {
|
|
|
5555 |
return lastComparison;
|
|
|
5556 |
}
|
| 420 |
ashish |
5557 |
}
|
|
|
5558 |
return 0;
|
|
|
5559 |
}
|
|
|
5560 |
|
| 3430 |
rajveer |
5561 |
public _Fields fieldForId(int fieldId) {
|
|
|
5562 |
return _Fields.findByThriftId(fieldId);
|
|
|
5563 |
}
|
|
|
5564 |
|
|
|
5565 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5566 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
5567 |
iprot.readStructBegin();
|
|
|
5568 |
while (true)
|
|
|
5569 |
{
|
|
|
5570 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5571 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
5572 |
break;
|
|
|
5573 |
}
|
| 3430 |
rajveer |
5574 |
switch (field.id) {
|
|
|
5575 |
case 0: // SUCCESS
|
|
|
5576 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5577 |
this.success = new Payment();
|
|
|
5578 |
this.success.read(iprot);
|
|
|
5579 |
} else {
|
|
|
5580 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5581 |
}
|
|
|
5582 |
break;
|
|
|
5583 |
case 1: // PE
|
|
|
5584 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5585 |
this.pe = new PaymentException();
|
|
|
5586 |
this.pe.read(iprot);
|
|
|
5587 |
} else {
|
|
|
5588 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5589 |
}
|
|
|
5590 |
break;
|
|
|
5591 |
default:
|
|
|
5592 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
5593 |
}
|
| 3430 |
rajveer |
5594 |
iprot.readFieldEnd();
|
| 420 |
ashish |
5595 |
}
|
|
|
5596 |
iprot.readStructEnd();
|
|
|
5597 |
validate();
|
|
|
5598 |
}
|
|
|
5599 |
|
| 3430 |
rajveer |
5600 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
5601 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5602 |
|
| 695 |
rajveer |
5603 |
if (this.isSetSuccess()) {
|
|
|
5604 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
5605 |
this.success.write(oprot);
|
|
|
5606 |
oprot.writeFieldEnd();
|
|
|
5607 |
} else if (this.isSetPe()) {
|
| 420 |
ashish |
5608 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
5609 |
this.pe.write(oprot);
|
|
|
5610 |
oprot.writeFieldEnd();
|
|
|
5611 |
}
|
|
|
5612 |
oprot.writeFieldStop();
|
|
|
5613 |
oprot.writeStructEnd();
|
|
|
5614 |
}
|
|
|
5615 |
|
|
|
5616 |
@Override
|
|
|
5617 |
public String toString() {
|
| 695 |
rajveer |
5618 |
StringBuilder sb = new StringBuilder("getPayment_result(");
|
| 420 |
ashish |
5619 |
boolean first = true;
|
|
|
5620 |
|
| 695 |
rajveer |
5621 |
sb.append("success:");
|
|
|
5622 |
if (this.success == null) {
|
|
|
5623 |
sb.append("null");
|
|
|
5624 |
} else {
|
|
|
5625 |
sb.append(this.success);
|
|
|
5626 |
}
|
|
|
5627 |
first = false;
|
|
|
5628 |
if (!first) sb.append(", ");
|
| 420 |
ashish |
5629 |
sb.append("pe:");
|
|
|
5630 |
if (this.pe == null) {
|
|
|
5631 |
sb.append("null");
|
|
|
5632 |
} else {
|
|
|
5633 |
sb.append(this.pe);
|
|
|
5634 |
}
|
|
|
5635 |
first = false;
|
|
|
5636 |
sb.append(")");
|
|
|
5637 |
return sb.toString();
|
|
|
5638 |
}
|
|
|
5639 |
|
| 3430 |
rajveer |
5640 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
5641 |
// check for required fields
|
|
|
5642 |
}
|
|
|
5643 |
|
| 3430 |
rajveer |
5644 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5645 |
try {
|
|
|
5646 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5647 |
} catch (org.apache.thrift.TException te) {
|
|
|
5648 |
throw new java.io.IOException(te);
|
|
|
5649 |
}
|
|
|
5650 |
}
|
|
|
5651 |
|
|
|
5652 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5653 |
try {
|
|
|
5654 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5655 |
} catch (org.apache.thrift.TException te) {
|
|
|
5656 |
throw new java.io.IOException(te);
|
|
|
5657 |
}
|
|
|
5658 |
}
|
|
|
5659 |
|
| 420 |
ashish |
5660 |
}
|
|
|
5661 |
|
| 3430 |
rajveer |
5662 |
public static class getPaymentForTxnId_args implements org.apache.thrift.TBase<getPaymentForTxnId_args, getPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5663 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_args");
|
| 420 |
ashish |
5664 |
|
| 3430 |
rajveer |
5665 |
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 |
5666 |
|
| 3430 |
rajveer |
5667 |
private long txnId; // required
|
| 420 |
ashish |
5668 |
|
|
|
5669 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5670 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 695 |
rajveer |
5671 |
TXN_ID((short)1, "txnId");
|
| 420 |
ashish |
5672 |
|
|
|
5673 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5674 |
|
|
|
5675 |
static {
|
|
|
5676 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5677 |
byName.put(field.getFieldName(), field);
|
|
|
5678 |
}
|
|
|
5679 |
}
|
|
|
5680 |
|
|
|
5681 |
/**
|
|
|
5682 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5683 |
*/
|
|
|
5684 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5685 |
switch(fieldId) {
|
|
|
5686 |
case 1: // TXN_ID
|
|
|
5687 |
return TXN_ID;
|
|
|
5688 |
default:
|
|
|
5689 |
return null;
|
|
|
5690 |
}
|
| 420 |
ashish |
5691 |
}
|
|
|
5692 |
|
|
|
5693 |
/**
|
|
|
5694 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5695 |
* if it is not found.
|
|
|
5696 |
*/
|
|
|
5697 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5698 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5699 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5700 |
return fields;
|
|
|
5701 |
}
|
|
|
5702 |
|
|
|
5703 |
/**
|
|
|
5704 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5705 |
*/
|
|
|
5706 |
public static _Fields findByName(String name) {
|
|
|
5707 |
return byName.get(name);
|
|
|
5708 |
}
|
|
|
5709 |
|
|
|
5710 |
private final short _thriftId;
|
|
|
5711 |
private final String _fieldName;
|
|
|
5712 |
|
|
|
5713 |
_Fields(short thriftId, String fieldName) {
|
|
|
5714 |
_thriftId = thriftId;
|
|
|
5715 |
_fieldName = fieldName;
|
|
|
5716 |
}
|
|
|
5717 |
|
|
|
5718 |
public short getThriftFieldId() {
|
|
|
5719 |
return _thriftId;
|
|
|
5720 |
}
|
|
|
5721 |
|
|
|
5722 |
public String getFieldName() {
|
|
|
5723 |
return _fieldName;
|
|
|
5724 |
}
|
|
|
5725 |
}
|
|
|
5726 |
|
|
|
5727 |
// isset id assignments
|
| 695 |
rajveer |
5728 |
private static final int __TXNID_ISSET_ID = 0;
|
| 420 |
ashish |
5729 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
5730 |
|
| 3430 |
rajveer |
5731 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
5732 |
static {
|
| 3430 |
rajveer |
5733 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5734 |
tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5735 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5736 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5737 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_args.class, metaDataMap);
|
| 420 |
ashish |
5738 |
}
|
|
|
5739 |
|
| 695 |
rajveer |
5740 |
public getPaymentForTxnId_args() {
|
| 420 |
ashish |
5741 |
}
|
|
|
5742 |
|
| 695 |
rajveer |
5743 |
public getPaymentForTxnId_args(
|
|
|
5744 |
long txnId)
|
| 420 |
ashish |
5745 |
{
|
|
|
5746 |
this();
|
| 695 |
rajveer |
5747 |
this.txnId = txnId;
|
|
|
5748 |
setTxnIdIsSet(true);
|
| 420 |
ashish |
5749 |
}
|
|
|
5750 |
|
|
|
5751 |
/**
|
|
|
5752 |
* Performs a deep copy on <i>other</i>.
|
|
|
5753 |
*/
|
| 695 |
rajveer |
5754 |
public getPaymentForTxnId_args(getPaymentForTxnId_args other) {
|
| 420 |
ashish |
5755 |
__isset_bit_vector.clear();
|
|
|
5756 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 695 |
rajveer |
5757 |
this.txnId = other.txnId;
|
| 420 |
ashish |
5758 |
}
|
|
|
5759 |
|
| 695 |
rajveer |
5760 |
public getPaymentForTxnId_args deepCopy() {
|
|
|
5761 |
return new getPaymentForTxnId_args(this);
|
| 420 |
ashish |
5762 |
}
|
|
|
5763 |
|
| 3430 |
rajveer |
5764 |
@Override
|
|
|
5765 |
public void clear() {
|
|
|
5766 |
setTxnIdIsSet(false);
|
|
|
5767 |
this.txnId = 0;
|
| 420 |
ashish |
5768 |
}
|
|
|
5769 |
|
| 695 |
rajveer |
5770 |
public long getTxnId() {
|
|
|
5771 |
return this.txnId;
|
| 420 |
ashish |
5772 |
}
|
|
|
5773 |
|
| 3430 |
rajveer |
5774 |
public void setTxnId(long txnId) {
|
| 695 |
rajveer |
5775 |
this.txnId = txnId;
|
|
|
5776 |
setTxnIdIsSet(true);
|
| 420 |
ashish |
5777 |
}
|
|
|
5778 |
|
| 695 |
rajveer |
5779 |
public void unsetTxnId() {
|
|
|
5780 |
__isset_bit_vector.clear(__TXNID_ISSET_ID);
|
| 420 |
ashish |
5781 |
}
|
|
|
5782 |
|
| 3430 |
rajveer |
5783 |
/** Returns true if field txnId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
5784 |
public boolean isSetTxnId() {
|
|
|
5785 |
return __isset_bit_vector.get(__TXNID_ISSET_ID);
|
| 420 |
ashish |
5786 |
}
|
|
|
5787 |
|
| 695 |
rajveer |
5788 |
public void setTxnIdIsSet(boolean value) {
|
|
|
5789 |
__isset_bit_vector.set(__TXNID_ISSET_ID, value);
|
| 420 |
ashish |
5790 |
}
|
|
|
5791 |
|
|
|
5792 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5793 |
switch (field) {
|
| 695 |
rajveer |
5794 |
case TXN_ID:
|
| 420 |
ashish |
5795 |
if (value == null) {
|
| 695 |
rajveer |
5796 |
unsetTxnId();
|
| 420 |
ashish |
5797 |
} else {
|
| 695 |
rajveer |
5798 |
setTxnId((Long)value);
|
| 420 |
ashish |
5799 |
}
|
|
|
5800 |
break;
|
|
|
5801 |
|
|
|
5802 |
}
|
|
|
5803 |
}
|
|
|
5804 |
|
|
|
5805 |
public Object getFieldValue(_Fields field) {
|
|
|
5806 |
switch (field) {
|
| 695 |
rajveer |
5807 |
case TXN_ID:
|
| 3430 |
rajveer |
5808 |
return Long.valueOf(getTxnId());
|
| 420 |
ashish |
5809 |
|
|
|
5810 |
}
|
|
|
5811 |
throw new IllegalStateException();
|
|
|
5812 |
}
|
|
|
5813 |
|
| 3430 |
rajveer |
5814 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5815 |
public boolean isSet(_Fields field) {
|
|
|
5816 |
if (field == null) {
|
|
|
5817 |
throw new IllegalArgumentException();
|
|
|
5818 |
}
|
| 420 |
ashish |
5819 |
|
|
|
5820 |
switch (field) {
|
| 695 |
rajveer |
5821 |
case TXN_ID:
|
|
|
5822 |
return isSetTxnId();
|
| 420 |
ashish |
5823 |
}
|
|
|
5824 |
throw new IllegalStateException();
|
|
|
5825 |
}
|
|
|
5826 |
|
|
|
5827 |
@Override
|
|
|
5828 |
public boolean equals(Object that) {
|
|
|
5829 |
if (that == null)
|
|
|
5830 |
return false;
|
| 695 |
rajveer |
5831 |
if (that instanceof getPaymentForTxnId_args)
|
|
|
5832 |
return this.equals((getPaymentForTxnId_args)that);
|
| 420 |
ashish |
5833 |
return false;
|
|
|
5834 |
}
|
|
|
5835 |
|
| 695 |
rajveer |
5836 |
public boolean equals(getPaymentForTxnId_args that) {
|
| 420 |
ashish |
5837 |
if (that == null)
|
|
|
5838 |
return false;
|
|
|
5839 |
|
| 695 |
rajveer |
5840 |
boolean this_present_txnId = true;
|
|
|
5841 |
boolean that_present_txnId = true;
|
|
|
5842 |
if (this_present_txnId || that_present_txnId) {
|
|
|
5843 |
if (!(this_present_txnId && that_present_txnId))
|
| 420 |
ashish |
5844 |
return false;
|
| 695 |
rajveer |
5845 |
if (this.txnId != that.txnId)
|
| 420 |
ashish |
5846 |
return false;
|
|
|
5847 |
}
|
|
|
5848 |
|
|
|
5849 |
return true;
|
|
|
5850 |
}
|
|
|
5851 |
|
|
|
5852 |
@Override
|
|
|
5853 |
public int hashCode() {
|
|
|
5854 |
return 0;
|
|
|
5855 |
}
|
|
|
5856 |
|
| 695 |
rajveer |
5857 |
public int compareTo(getPaymentForTxnId_args other) {
|
| 420 |
ashish |
5858 |
if (!getClass().equals(other.getClass())) {
|
|
|
5859 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5860 |
}
|
|
|
5861 |
|
|
|
5862 |
int lastComparison = 0;
|
| 695 |
rajveer |
5863 |
getPaymentForTxnId_args typedOther = (getPaymentForTxnId_args)other;
|
| 420 |
ashish |
5864 |
|
| 3430 |
rajveer |
5865 |
lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
|
| 420 |
ashish |
5866 |
if (lastComparison != 0) {
|
|
|
5867 |
return lastComparison;
|
|
|
5868 |
}
|
| 3430 |
rajveer |
5869 |
if (isSetTxnId()) {
|
|
|
5870 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
|
|
|
5871 |
if (lastComparison != 0) {
|
|
|
5872 |
return lastComparison;
|
|
|
5873 |
}
|
| 420 |
ashish |
5874 |
}
|
|
|
5875 |
return 0;
|
|
|
5876 |
}
|
|
|
5877 |
|
| 3430 |
rajveer |
5878 |
public _Fields fieldForId(int fieldId) {
|
|
|
5879 |
return _Fields.findByThriftId(fieldId);
|
|
|
5880 |
}
|
|
|
5881 |
|
|
|
5882 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5883 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
5884 |
iprot.readStructBegin();
|
|
|
5885 |
while (true)
|
|
|
5886 |
{
|
|
|
5887 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5888 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
5889 |
break;
|
|
|
5890 |
}
|
| 3430 |
rajveer |
5891 |
switch (field.id) {
|
|
|
5892 |
case 1: // TXN_ID
|
|
|
5893 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5894 |
this.txnId = iprot.readI64();
|
|
|
5895 |
setTxnIdIsSet(true);
|
|
|
5896 |
} else {
|
|
|
5897 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5898 |
}
|
|
|
5899 |
break;
|
|
|
5900 |
default:
|
|
|
5901 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
5902 |
}
|
| 3430 |
rajveer |
5903 |
iprot.readFieldEnd();
|
| 420 |
ashish |
5904 |
}
|
|
|
5905 |
iprot.readStructEnd();
|
|
|
5906 |
validate();
|
|
|
5907 |
}
|
|
|
5908 |
|
| 3430 |
rajveer |
5909 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
5910 |
validate();
|
|
|
5911 |
|
|
|
5912 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 695 |
rajveer |
5913 |
oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
|
|
|
5914 |
oprot.writeI64(this.txnId);
|
| 420 |
ashish |
5915 |
oprot.writeFieldEnd();
|
|
|
5916 |
oprot.writeFieldStop();
|
|
|
5917 |
oprot.writeStructEnd();
|
|
|
5918 |
}
|
|
|
5919 |
|
|
|
5920 |
@Override
|
|
|
5921 |
public String toString() {
|
| 695 |
rajveer |
5922 |
StringBuilder sb = new StringBuilder("getPaymentForTxnId_args(");
|
| 420 |
ashish |
5923 |
boolean first = true;
|
|
|
5924 |
|
| 695 |
rajveer |
5925 |
sb.append("txnId:");
|
|
|
5926 |
sb.append(this.txnId);
|
| 420 |
ashish |
5927 |
first = false;
|
|
|
5928 |
sb.append(")");
|
|
|
5929 |
return sb.toString();
|
|
|
5930 |
}
|
|
|
5931 |
|
| 3430 |
rajveer |
5932 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
5933 |
// check for required fields
|
|
|
5934 |
}
|
|
|
5935 |
|
| 3430 |
rajveer |
5936 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5937 |
try {
|
|
|
5938 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5939 |
} catch (org.apache.thrift.TException te) {
|
|
|
5940 |
throw new java.io.IOException(te);
|
|
|
5941 |
}
|
|
|
5942 |
}
|
|
|
5943 |
|
|
|
5944 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5945 |
try {
|
|
|
5946 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
5947 |
__isset_bit_vector = new BitSet(1);
|
|
|
5948 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5949 |
} catch (org.apache.thrift.TException te) {
|
|
|
5950 |
throw new java.io.IOException(te);
|
|
|
5951 |
}
|
|
|
5952 |
}
|
|
|
5953 |
|
| 420 |
ashish |
5954 |
}
|
|
|
5955 |
|
| 3430 |
rajveer |
5956 |
public static class getPaymentForTxnId_result implements org.apache.thrift.TBase<getPaymentForTxnId_result, getPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5957 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_result");
|
| 420 |
ashish |
5958 |
|
| 3430 |
rajveer |
5959 |
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);
|
|
|
5960 |
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 |
5961 |
|
| 3430 |
rajveer |
5962 |
private List<Payment> success; // required
|
|
|
5963 |
private PaymentException pe; // required
|
| 420 |
ashish |
5964 |
|
|
|
5965 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5966 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 420 |
ashish |
5967 |
SUCCESS((short)0, "success"),
|
|
|
5968 |
PE((short)1, "pe");
|
|
|
5969 |
|
|
|
5970 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5971 |
|
|
|
5972 |
static {
|
|
|
5973 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5974 |
byName.put(field.getFieldName(), field);
|
|
|
5975 |
}
|
|
|
5976 |
}
|
|
|
5977 |
|
|
|
5978 |
/**
|
|
|
5979 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5980 |
*/
|
|
|
5981 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5982 |
switch(fieldId) {
|
|
|
5983 |
case 0: // SUCCESS
|
|
|
5984 |
return SUCCESS;
|
|
|
5985 |
case 1: // PE
|
|
|
5986 |
return PE;
|
|
|
5987 |
default:
|
|
|
5988 |
return null;
|
|
|
5989 |
}
|
| 420 |
ashish |
5990 |
}
|
|
|
5991 |
|
|
|
5992 |
/**
|
|
|
5993 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5994 |
* if it is not found.
|
|
|
5995 |
*/
|
|
|
5996 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5997 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5998 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5999 |
return fields;
|
|
|
6000 |
}
|
|
|
6001 |
|
|
|
6002 |
/**
|
|
|
6003 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6004 |
*/
|
|
|
6005 |
public static _Fields findByName(String name) {
|
|
|
6006 |
return byName.get(name);
|
|
|
6007 |
}
|
|
|
6008 |
|
|
|
6009 |
private final short _thriftId;
|
|
|
6010 |
private final String _fieldName;
|
|
|
6011 |
|
|
|
6012 |
_Fields(short thriftId, String fieldName) {
|
|
|
6013 |
_thriftId = thriftId;
|
|
|
6014 |
_fieldName = fieldName;
|
|
|
6015 |
}
|
|
|
6016 |
|
|
|
6017 |
public short getThriftFieldId() {
|
|
|
6018 |
return _thriftId;
|
|
|
6019 |
}
|
|
|
6020 |
|
|
|
6021 |
public String getFieldName() {
|
|
|
6022 |
return _fieldName;
|
|
|
6023 |
}
|
|
|
6024 |
}
|
|
|
6025 |
|
|
|
6026 |
// isset id assignments
|
|
|
6027 |
|
| 3430 |
rajveer |
6028 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
6029 |
static {
|
| 3430 |
rajveer |
6030 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6031 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6032 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
6033 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
|
|
|
6034 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6035 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
6036 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6037 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_result.class, metaDataMap);
|
| 420 |
ashish |
6038 |
}
|
|
|
6039 |
|
| 695 |
rajveer |
6040 |
public getPaymentForTxnId_result() {
|
| 420 |
ashish |
6041 |
}
|
|
|
6042 |
|
| 695 |
rajveer |
6043 |
public getPaymentForTxnId_result(
|
|
|
6044 |
List<Payment> success,
|
| 420 |
ashish |
6045 |
PaymentException pe)
|
|
|
6046 |
{
|
|
|
6047 |
this();
|
|
|
6048 |
this.success = success;
|
|
|
6049 |
this.pe = pe;
|
|
|
6050 |
}
|
|
|
6051 |
|
|
|
6052 |
/**
|
|
|
6053 |
* Performs a deep copy on <i>other</i>.
|
|
|
6054 |
*/
|
| 695 |
rajveer |
6055 |
public getPaymentForTxnId_result(getPaymentForTxnId_result other) {
|
| 420 |
ashish |
6056 |
if (other.isSetSuccess()) {
|
| 695 |
rajveer |
6057 |
List<Payment> __this__success = new ArrayList<Payment>();
|
|
|
6058 |
for (Payment other_element : other.success) {
|
|
|
6059 |
__this__success.add(new Payment(other_element));
|
|
|
6060 |
}
|
|
|
6061 |
this.success = __this__success;
|
| 420 |
ashish |
6062 |
}
|
|
|
6063 |
if (other.isSetPe()) {
|
|
|
6064 |
this.pe = new PaymentException(other.pe);
|
|
|
6065 |
}
|
|
|
6066 |
}
|
|
|
6067 |
|
| 695 |
rajveer |
6068 |
public getPaymentForTxnId_result deepCopy() {
|
|
|
6069 |
return new getPaymentForTxnId_result(this);
|
| 420 |
ashish |
6070 |
}
|
|
|
6071 |
|
| 3430 |
rajveer |
6072 |
@Override
|
|
|
6073 |
public void clear() {
|
|
|
6074 |
this.success = null;
|
|
|
6075 |
this.pe = null;
|
| 420 |
ashish |
6076 |
}
|
|
|
6077 |
|
| 695 |
rajveer |
6078 |
public int getSuccessSize() {
|
|
|
6079 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
6080 |
}
|
|
|
6081 |
|
|
|
6082 |
public java.util.Iterator<Payment> getSuccessIterator() {
|
|
|
6083 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
6084 |
}
|
|
|
6085 |
|
|
|
6086 |
public void addToSuccess(Payment elem) {
|
|
|
6087 |
if (this.success == null) {
|
|
|
6088 |
this.success = new ArrayList<Payment>();
|
|
|
6089 |
}
|
|
|
6090 |
this.success.add(elem);
|
|
|
6091 |
}
|
|
|
6092 |
|
|
|
6093 |
public List<Payment> getSuccess() {
|
| 420 |
ashish |
6094 |
return this.success;
|
|
|
6095 |
}
|
|
|
6096 |
|
| 3430 |
rajveer |
6097 |
public void setSuccess(List<Payment> success) {
|
| 420 |
ashish |
6098 |
this.success = success;
|
|
|
6099 |
}
|
|
|
6100 |
|
|
|
6101 |
public void unsetSuccess() {
|
|
|
6102 |
this.success = null;
|
|
|
6103 |
}
|
|
|
6104 |
|
| 3430 |
rajveer |
6105 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
6106 |
public boolean isSetSuccess() {
|
|
|
6107 |
return this.success != null;
|
|
|
6108 |
}
|
|
|
6109 |
|
|
|
6110 |
public void setSuccessIsSet(boolean value) {
|
|
|
6111 |
if (!value) {
|
|
|
6112 |
this.success = null;
|
|
|
6113 |
}
|
|
|
6114 |
}
|
|
|
6115 |
|
|
|
6116 |
public PaymentException getPe() {
|
|
|
6117 |
return this.pe;
|
|
|
6118 |
}
|
|
|
6119 |
|
| 3430 |
rajveer |
6120 |
public void setPe(PaymentException pe) {
|
| 420 |
ashish |
6121 |
this.pe = pe;
|
|
|
6122 |
}
|
|
|
6123 |
|
|
|
6124 |
public void unsetPe() {
|
|
|
6125 |
this.pe = null;
|
|
|
6126 |
}
|
|
|
6127 |
|
| 3430 |
rajveer |
6128 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
6129 |
public boolean isSetPe() {
|
|
|
6130 |
return this.pe != null;
|
|
|
6131 |
}
|
|
|
6132 |
|
|
|
6133 |
public void setPeIsSet(boolean value) {
|
|
|
6134 |
if (!value) {
|
|
|
6135 |
this.pe = null;
|
|
|
6136 |
}
|
|
|
6137 |
}
|
|
|
6138 |
|
|
|
6139 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6140 |
switch (field) {
|
|
|
6141 |
case SUCCESS:
|
|
|
6142 |
if (value == null) {
|
|
|
6143 |
unsetSuccess();
|
|
|
6144 |
} else {
|
| 695 |
rajveer |
6145 |
setSuccess((List<Payment>)value);
|
| 420 |
ashish |
6146 |
}
|
|
|
6147 |
break;
|
|
|
6148 |
|
|
|
6149 |
case PE:
|
|
|
6150 |
if (value == null) {
|
|
|
6151 |
unsetPe();
|
|
|
6152 |
} else {
|
|
|
6153 |
setPe((PaymentException)value);
|
|
|
6154 |
}
|
|
|
6155 |
break;
|
|
|
6156 |
|
|
|
6157 |
}
|
|
|
6158 |
}
|
|
|
6159 |
|
|
|
6160 |
public Object getFieldValue(_Fields field) {
|
|
|
6161 |
switch (field) {
|
|
|
6162 |
case SUCCESS:
|
|
|
6163 |
return getSuccess();
|
|
|
6164 |
|
|
|
6165 |
case PE:
|
|
|
6166 |
return getPe();
|
|
|
6167 |
|
|
|
6168 |
}
|
|
|
6169 |
throw new IllegalStateException();
|
|
|
6170 |
}
|
|
|
6171 |
|
| 3430 |
rajveer |
6172 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6173 |
public boolean isSet(_Fields field) {
|
|
|
6174 |
if (field == null) {
|
|
|
6175 |
throw new IllegalArgumentException();
|
|
|
6176 |
}
|
| 420 |
ashish |
6177 |
|
|
|
6178 |
switch (field) {
|
|
|
6179 |
case SUCCESS:
|
|
|
6180 |
return isSetSuccess();
|
|
|
6181 |
case PE:
|
|
|
6182 |
return isSetPe();
|
|
|
6183 |
}
|
|
|
6184 |
throw new IllegalStateException();
|
|
|
6185 |
}
|
|
|
6186 |
|
|
|
6187 |
@Override
|
|
|
6188 |
public boolean equals(Object that) {
|
|
|
6189 |
if (that == null)
|
|
|
6190 |
return false;
|
| 695 |
rajveer |
6191 |
if (that instanceof getPaymentForTxnId_result)
|
|
|
6192 |
return this.equals((getPaymentForTxnId_result)that);
|
| 420 |
ashish |
6193 |
return false;
|
|
|
6194 |
}
|
|
|
6195 |
|
| 695 |
rajveer |
6196 |
public boolean equals(getPaymentForTxnId_result that) {
|
| 420 |
ashish |
6197 |
if (that == null)
|
|
|
6198 |
return false;
|
|
|
6199 |
|
|
|
6200 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6201 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
6202 |
if (this_present_success || that_present_success) {
|
|
|
6203 |
if (!(this_present_success && that_present_success))
|
|
|
6204 |
return false;
|
|
|
6205 |
if (!this.success.equals(that.success))
|
|
|
6206 |
return false;
|
|
|
6207 |
}
|
|
|
6208 |
|
|
|
6209 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
6210 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
6211 |
if (this_present_pe || that_present_pe) {
|
|
|
6212 |
if (!(this_present_pe && that_present_pe))
|
|
|
6213 |
return false;
|
|
|
6214 |
if (!this.pe.equals(that.pe))
|
|
|
6215 |
return false;
|
|
|
6216 |
}
|
|
|
6217 |
|
|
|
6218 |
return true;
|
|
|
6219 |
}
|
|
|
6220 |
|
|
|
6221 |
@Override
|
|
|
6222 |
public int hashCode() {
|
|
|
6223 |
return 0;
|
|
|
6224 |
}
|
|
|
6225 |
|
| 695 |
rajveer |
6226 |
public int compareTo(getPaymentForTxnId_result other) {
|
|
|
6227 |
if (!getClass().equals(other.getClass())) {
|
|
|
6228 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6229 |
}
|
|
|
6230 |
|
|
|
6231 |
int lastComparison = 0;
|
|
|
6232 |
getPaymentForTxnId_result typedOther = (getPaymentForTxnId_result)other;
|
|
|
6233 |
|
| 3430 |
rajveer |
6234 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 695 |
rajveer |
6235 |
if (lastComparison != 0) {
|
|
|
6236 |
return lastComparison;
|
|
|
6237 |
}
|
| 3430 |
rajveer |
6238 |
if (isSetSuccess()) {
|
|
|
6239 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6240 |
if (lastComparison != 0) {
|
|
|
6241 |
return lastComparison;
|
|
|
6242 |
}
|
| 695 |
rajveer |
6243 |
}
|
| 3430 |
rajveer |
6244 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 695 |
rajveer |
6245 |
if (lastComparison != 0) {
|
|
|
6246 |
return lastComparison;
|
|
|
6247 |
}
|
| 3430 |
rajveer |
6248 |
if (isSetPe()) {
|
|
|
6249 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
6250 |
if (lastComparison != 0) {
|
|
|
6251 |
return lastComparison;
|
|
|
6252 |
}
|
| 695 |
rajveer |
6253 |
}
|
|
|
6254 |
return 0;
|
|
|
6255 |
}
|
|
|
6256 |
|
| 3430 |
rajveer |
6257 |
public _Fields fieldForId(int fieldId) {
|
|
|
6258 |
return _Fields.findByThriftId(fieldId);
|
|
|
6259 |
}
|
|
|
6260 |
|
|
|
6261 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6262 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
6263 |
iprot.readStructBegin();
|
|
|
6264 |
while (true)
|
|
|
6265 |
{
|
|
|
6266 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6267 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
6268 |
break;
|
|
|
6269 |
}
|
| 3430 |
rajveer |
6270 |
switch (field.id) {
|
|
|
6271 |
case 0: // SUCCESS
|
|
|
6272 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
6273 |
{
|
|
|
6274 |
org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
|
|
|
6275 |
this.success = new ArrayList<Payment>(_list20.size);
|
|
|
6276 |
for (int _i21 = 0; _i21 < _list20.size; ++_i21)
|
| 695 |
rajveer |
6277 |
{
|
| 3430 |
rajveer |
6278 |
Payment _elem22; // required
|
|
|
6279 |
_elem22 = new Payment();
|
|
|
6280 |
_elem22.read(iprot);
|
|
|
6281 |
this.success.add(_elem22);
|
| 695 |
rajveer |
6282 |
}
|
| 3430 |
rajveer |
6283 |
iprot.readListEnd();
|
| 420 |
ashish |
6284 |
}
|
| 3430 |
rajveer |
6285 |
} else {
|
|
|
6286 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6287 |
}
|
|
|
6288 |
break;
|
|
|
6289 |
case 1: // PE
|
|
|
6290 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6291 |
this.pe = new PaymentException();
|
|
|
6292 |
this.pe.read(iprot);
|
|
|
6293 |
} else {
|
|
|
6294 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6295 |
}
|
|
|
6296 |
break;
|
|
|
6297 |
default:
|
|
|
6298 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
6299 |
}
|
| 3430 |
rajveer |
6300 |
iprot.readFieldEnd();
|
| 420 |
ashish |
6301 |
}
|
|
|
6302 |
iprot.readStructEnd();
|
|
|
6303 |
validate();
|
|
|
6304 |
}
|
|
|
6305 |
|
| 3430 |
rajveer |
6306 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
6307 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6308 |
|
|
|
6309 |
if (this.isSetSuccess()) {
|
|
|
6310 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 695 |
rajveer |
6311 |
{
|
| 3430 |
rajveer |
6312 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 2747 |
chandransh |
6313 |
for (Payment _iter23 : this.success)
|
| 695 |
rajveer |
6314 |
{
|
| 2747 |
chandransh |
6315 |
_iter23.write(oprot);
|
| 695 |
rajveer |
6316 |
}
|
|
|
6317 |
oprot.writeListEnd();
|
|
|
6318 |
}
|
| 420 |
ashish |
6319 |
oprot.writeFieldEnd();
|
|
|
6320 |
} else if (this.isSetPe()) {
|
|
|
6321 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
6322 |
this.pe.write(oprot);
|
|
|
6323 |
oprot.writeFieldEnd();
|
|
|
6324 |
}
|
|
|
6325 |
oprot.writeFieldStop();
|
|
|
6326 |
oprot.writeStructEnd();
|
|
|
6327 |
}
|
|
|
6328 |
|
|
|
6329 |
@Override
|
|
|
6330 |
public String toString() {
|
| 695 |
rajveer |
6331 |
StringBuilder sb = new StringBuilder("getPaymentForTxnId_result(");
|
| 420 |
ashish |
6332 |
boolean first = true;
|
|
|
6333 |
|
|
|
6334 |
sb.append("success:");
|
|
|
6335 |
if (this.success == null) {
|
|
|
6336 |
sb.append("null");
|
|
|
6337 |
} else {
|
|
|
6338 |
sb.append(this.success);
|
|
|
6339 |
}
|
|
|
6340 |
first = false;
|
|
|
6341 |
if (!first) sb.append(", ");
|
|
|
6342 |
sb.append("pe:");
|
|
|
6343 |
if (this.pe == null) {
|
|
|
6344 |
sb.append("null");
|
|
|
6345 |
} else {
|
|
|
6346 |
sb.append(this.pe);
|
|
|
6347 |
}
|
|
|
6348 |
first = false;
|
|
|
6349 |
sb.append(")");
|
|
|
6350 |
return sb.toString();
|
|
|
6351 |
}
|
|
|
6352 |
|
| 3430 |
rajveer |
6353 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
6354 |
// check for required fields
|
|
|
6355 |
}
|
|
|
6356 |
|
| 3430 |
rajveer |
6357 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6358 |
try {
|
|
|
6359 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6360 |
} catch (org.apache.thrift.TException te) {
|
|
|
6361 |
throw new java.io.IOException(te);
|
|
|
6362 |
}
|
|
|
6363 |
}
|
|
|
6364 |
|
|
|
6365 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6366 |
try {
|
|
|
6367 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6368 |
} catch (org.apache.thrift.TException te) {
|
|
|
6369 |
throw new java.io.IOException(te);
|
|
|
6370 |
}
|
|
|
6371 |
}
|
|
|
6372 |
|
| 420 |
ashish |
6373 |
}
|
|
|
6374 |
|
| 3430 |
rajveer |
6375 |
public static class updatePaymentDetails_args implements org.apache.thrift.TBase<updatePaymentDetails_args, updatePaymentDetails_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6376 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_args");
|
| 420 |
ashish |
6377 |
|
| 3430 |
rajveer |
6378 |
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);
|
|
|
6379 |
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);
|
|
|
6380 |
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);
|
|
|
6381 |
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);
|
|
|
6382 |
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);
|
|
|
6383 |
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);
|
|
|
6384 |
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);
|
|
|
6385 |
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);
|
|
|
6386 |
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);
|
|
|
6387 |
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);
|
|
|
6388 |
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);
|
|
|
6389 |
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 |
6390 |
|
| 3430 |
rajveer |
6391 |
private long id; // required
|
|
|
6392 |
private String gatewayPaymentId; // required
|
|
|
6393 |
private String sessionId; // required
|
|
|
6394 |
private String gatewayTxnStatus; // required
|
|
|
6395 |
private String description; // required
|
|
|
6396 |
private String gatewayTxnId; // required
|
|
|
6397 |
private String authCode; // required
|
|
|
6398 |
private String referenceCode; // required
|
|
|
6399 |
private String errorCode; // required
|
|
|
6400 |
private PaymentStatus status; // required
|
|
|
6401 |
private String gatewayTxnDate; // required
|
|
|
6402 |
private List<Attribute> attributes; // required
|
| 420 |
ashish |
6403 |
|
|
|
6404 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6405 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 420 |
ashish |
6406 |
ID((short)1, "id"),
|
| 695 |
rajveer |
6407 |
GATEWAY_PAYMENT_ID((short)2, "gatewayPaymentId"),
|
|
|
6408 |
SESSION_ID((short)3, "sessionId"),
|
|
|
6409 |
GATEWAY_TXN_STATUS((short)4, "gatewayTxnStatus"),
|
|
|
6410 |
DESCRIPTION((short)5, "description"),
|
|
|
6411 |
GATEWAY_TXN_ID((short)6, "gatewayTxnId"),
|
|
|
6412 |
AUTH_CODE((short)7, "authCode"),
|
|
|
6413 |
REFERENCE_CODE((short)8, "referenceCode"),
|
|
|
6414 |
ERROR_CODE((short)9, "errorCode"),
|
|
|
6415 |
/**
|
|
|
6416 |
*
|
|
|
6417 |
* @see PaymentStatus
|
|
|
6418 |
*/
|
|
|
6419 |
STATUS((short)10, "status"),
|
| 1119 |
rajveer |
6420 |
GATEWAY_TXN_DATE((short)11, "gatewayTxnDate"),
|
|
|
6421 |
ATTRIBUTES((short)12, "attributes");
|
| 420 |
ashish |
6422 |
|
|
|
6423 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6424 |
|
|
|
6425 |
static {
|
|
|
6426 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6427 |
byName.put(field.getFieldName(), field);
|
|
|
6428 |
}
|
|
|
6429 |
}
|
|
|
6430 |
|
|
|
6431 |
/**
|
|
|
6432 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6433 |
*/
|
|
|
6434 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6435 |
switch(fieldId) {
|
|
|
6436 |
case 1: // ID
|
|
|
6437 |
return ID;
|
|
|
6438 |
case 2: // GATEWAY_PAYMENT_ID
|
|
|
6439 |
return GATEWAY_PAYMENT_ID;
|
|
|
6440 |
case 3: // SESSION_ID
|
|
|
6441 |
return SESSION_ID;
|
|
|
6442 |
case 4: // GATEWAY_TXN_STATUS
|
|
|
6443 |
return GATEWAY_TXN_STATUS;
|
|
|
6444 |
case 5: // DESCRIPTION
|
|
|
6445 |
return DESCRIPTION;
|
|
|
6446 |
case 6: // GATEWAY_TXN_ID
|
|
|
6447 |
return GATEWAY_TXN_ID;
|
|
|
6448 |
case 7: // AUTH_CODE
|
|
|
6449 |
return AUTH_CODE;
|
|
|
6450 |
case 8: // REFERENCE_CODE
|
|
|
6451 |
return REFERENCE_CODE;
|
|
|
6452 |
case 9: // ERROR_CODE
|
|
|
6453 |
return ERROR_CODE;
|
|
|
6454 |
case 10: // STATUS
|
|
|
6455 |
return STATUS;
|
|
|
6456 |
case 11: // GATEWAY_TXN_DATE
|
|
|
6457 |
return GATEWAY_TXN_DATE;
|
|
|
6458 |
case 12: // ATTRIBUTES
|
|
|
6459 |
return ATTRIBUTES;
|
|
|
6460 |
default:
|
|
|
6461 |
return null;
|
|
|
6462 |
}
|
| 420 |
ashish |
6463 |
}
|
|
|
6464 |
|
|
|
6465 |
/**
|
|
|
6466 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6467 |
* if it is not found.
|
|
|
6468 |
*/
|
|
|
6469 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6470 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6471 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6472 |
return fields;
|
|
|
6473 |
}
|
|
|
6474 |
|
|
|
6475 |
/**
|
|
|
6476 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6477 |
*/
|
|
|
6478 |
public static _Fields findByName(String name) {
|
|
|
6479 |
return byName.get(name);
|
|
|
6480 |
}
|
|
|
6481 |
|
|
|
6482 |
private final short _thriftId;
|
|
|
6483 |
private final String _fieldName;
|
|
|
6484 |
|
|
|
6485 |
_Fields(short thriftId, String fieldName) {
|
|
|
6486 |
_thriftId = thriftId;
|
|
|
6487 |
_fieldName = fieldName;
|
|
|
6488 |
}
|
|
|
6489 |
|
|
|
6490 |
public short getThriftFieldId() {
|
|
|
6491 |
return _thriftId;
|
|
|
6492 |
}
|
|
|
6493 |
|
|
|
6494 |
public String getFieldName() {
|
|
|
6495 |
return _fieldName;
|
|
|
6496 |
}
|
|
|
6497 |
}
|
|
|
6498 |
|
|
|
6499 |
// isset id assignments
|
|
|
6500 |
private static final int __ID_ISSET_ID = 0;
|
|
|
6501 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
6502 |
|
| 3430 |
rajveer |
6503 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
6504 |
static {
|
| 3430 |
rajveer |
6505 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6506 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6507 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
6508 |
tmpMap.put(_Fields.GATEWAY_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6509 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6510 |
tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6511 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6512 |
tmpMap.put(_Fields.GATEWAY_TXN_STATUS, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6513 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6514 |
tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6515 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6516 |
tmpMap.put(_Fields.GATEWAY_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6517 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6518 |
tmpMap.put(_Fields.AUTH_CODE, new org.apache.thrift.meta_data.FieldMetaData("authCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6519 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6520 |
tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6521 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6522 |
tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6523 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6524 |
tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6525 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
|
|
|
6526 |
tmpMap.put(_Fields.GATEWAY_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6527 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6528 |
tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6529 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
6530 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
|
|
|
6531 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6532 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_args.class, metaDataMap);
|
| 420 |
ashish |
6533 |
}
|
|
|
6534 |
|
| 695 |
rajveer |
6535 |
public updatePaymentDetails_args() {
|
| 420 |
ashish |
6536 |
}
|
|
|
6537 |
|
| 695 |
rajveer |
6538 |
public updatePaymentDetails_args(
|
| 420 |
ashish |
6539 |
long id,
|
| 695 |
rajveer |
6540 |
String gatewayPaymentId,
|
|
|
6541 |
String sessionId,
|
|
|
6542 |
String gatewayTxnStatus,
|
|
|
6543 |
String description,
|
|
|
6544 |
String gatewayTxnId,
|
|
|
6545 |
String authCode,
|
|
|
6546 |
String referenceCode,
|
|
|
6547 |
String errorCode,
|
|
|
6548 |
PaymentStatus status,
|
| 1119 |
rajveer |
6549 |
String gatewayTxnDate,
|
| 695 |
rajveer |
6550 |
List<Attribute> attributes)
|
| 420 |
ashish |
6551 |
{
|
|
|
6552 |
this();
|
|
|
6553 |
this.id = id;
|
|
|
6554 |
setIdIsSet(true);
|
| 695 |
rajveer |
6555 |
this.gatewayPaymentId = gatewayPaymentId;
|
|
|
6556 |
this.sessionId = sessionId;
|
|
|
6557 |
this.gatewayTxnStatus = gatewayTxnStatus;
|
|
|
6558 |
this.description = description;
|
|
|
6559 |
this.gatewayTxnId = gatewayTxnId;
|
|
|
6560 |
this.authCode = authCode;
|
|
|
6561 |
this.referenceCode = referenceCode;
|
|
|
6562 |
this.errorCode = errorCode;
|
|
|
6563 |
this.status = status;
|
| 1119 |
rajveer |
6564 |
this.gatewayTxnDate = gatewayTxnDate;
|
| 695 |
rajveer |
6565 |
this.attributes = attributes;
|
| 420 |
ashish |
6566 |
}
|
|
|
6567 |
|
|
|
6568 |
/**
|
|
|
6569 |
* Performs a deep copy on <i>other</i>.
|
|
|
6570 |
*/
|
| 695 |
rajveer |
6571 |
public updatePaymentDetails_args(updatePaymentDetails_args other) {
|
| 420 |
ashish |
6572 |
__isset_bit_vector.clear();
|
|
|
6573 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
6574 |
this.id = other.id;
|
| 695 |
rajveer |
6575 |
if (other.isSetGatewayPaymentId()) {
|
|
|
6576 |
this.gatewayPaymentId = other.gatewayPaymentId;
|
| 420 |
ashish |
6577 |
}
|
| 695 |
rajveer |
6578 |
if (other.isSetSessionId()) {
|
|
|
6579 |
this.sessionId = other.sessionId;
|
| 420 |
ashish |
6580 |
}
|
| 695 |
rajveer |
6581 |
if (other.isSetGatewayTxnStatus()) {
|
|
|
6582 |
this.gatewayTxnStatus = other.gatewayTxnStatus;
|
| 420 |
ashish |
6583 |
}
|
| 695 |
rajveer |
6584 |
if (other.isSetDescription()) {
|
|
|
6585 |
this.description = other.description;
|
| 420 |
ashish |
6586 |
}
|
| 695 |
rajveer |
6587 |
if (other.isSetGatewayTxnId()) {
|
|
|
6588 |
this.gatewayTxnId = other.gatewayTxnId;
|
| 420 |
ashish |
6589 |
}
|
| 695 |
rajveer |
6590 |
if (other.isSetAuthCode()) {
|
|
|
6591 |
this.authCode = other.authCode;
|
| 420 |
ashish |
6592 |
}
|
| 695 |
rajveer |
6593 |
if (other.isSetReferenceCode()) {
|
|
|
6594 |
this.referenceCode = other.referenceCode;
|
| 420 |
ashish |
6595 |
}
|
| 695 |
rajveer |
6596 |
if (other.isSetErrorCode()) {
|
|
|
6597 |
this.errorCode = other.errorCode;
|
|
|
6598 |
}
|
|
|
6599 |
if (other.isSetStatus()) {
|
|
|
6600 |
this.status = other.status;
|
|
|
6601 |
}
|
| 1119 |
rajveer |
6602 |
if (other.isSetGatewayTxnDate()) {
|
|
|
6603 |
this.gatewayTxnDate = other.gatewayTxnDate;
|
|
|
6604 |
}
|
| 695 |
rajveer |
6605 |
if (other.isSetAttributes()) {
|
|
|
6606 |
List<Attribute> __this__attributes = new ArrayList<Attribute>();
|
|
|
6607 |
for (Attribute other_element : other.attributes) {
|
|
|
6608 |
__this__attributes.add(new Attribute(other_element));
|
|
|
6609 |
}
|
|
|
6610 |
this.attributes = __this__attributes;
|
|
|
6611 |
}
|
| 420 |
ashish |
6612 |
}
|
|
|
6613 |
|
| 695 |
rajveer |
6614 |
public updatePaymentDetails_args deepCopy() {
|
|
|
6615 |
return new updatePaymentDetails_args(this);
|
| 420 |
ashish |
6616 |
}
|
|
|
6617 |
|
| 3430 |
rajveer |
6618 |
@Override
|
|
|
6619 |
public void clear() {
|
|
|
6620 |
setIdIsSet(false);
|
|
|
6621 |
this.id = 0;
|
|
|
6622 |
this.gatewayPaymentId = null;
|
|
|
6623 |
this.sessionId = null;
|
|
|
6624 |
this.gatewayTxnStatus = null;
|
|
|
6625 |
this.description = null;
|
|
|
6626 |
this.gatewayTxnId = null;
|
|
|
6627 |
this.authCode = null;
|
|
|
6628 |
this.referenceCode = null;
|
|
|
6629 |
this.errorCode = null;
|
|
|
6630 |
this.status = null;
|
|
|
6631 |
this.gatewayTxnDate = null;
|
|
|
6632 |
this.attributes = null;
|
| 420 |
ashish |
6633 |
}
|
|
|
6634 |
|
|
|
6635 |
public long getId() {
|
|
|
6636 |
return this.id;
|
|
|
6637 |
}
|
|
|
6638 |
|
| 3430 |
rajveer |
6639 |
public void setId(long id) {
|
| 420 |
ashish |
6640 |
this.id = id;
|
|
|
6641 |
setIdIsSet(true);
|
|
|
6642 |
}
|
|
|
6643 |
|
|
|
6644 |
public void unsetId() {
|
|
|
6645 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
6646 |
}
|
|
|
6647 |
|
| 3430 |
rajveer |
6648 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
6649 |
public boolean isSetId() {
|
|
|
6650 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
6651 |
}
|
|
|
6652 |
|
|
|
6653 |
public void setIdIsSet(boolean value) {
|
|
|
6654 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
6655 |
}
|
|
|
6656 |
|
| 695 |
rajveer |
6657 |
public String getGatewayPaymentId() {
|
|
|
6658 |
return this.gatewayPaymentId;
|
| 420 |
ashish |
6659 |
}
|
|
|
6660 |
|
| 3430 |
rajveer |
6661 |
public void setGatewayPaymentId(String gatewayPaymentId) {
|
| 695 |
rajveer |
6662 |
this.gatewayPaymentId = gatewayPaymentId;
|
| 420 |
ashish |
6663 |
}
|
|
|
6664 |
|
| 695 |
rajveer |
6665 |
public void unsetGatewayPaymentId() {
|
|
|
6666 |
this.gatewayPaymentId = null;
|
| 420 |
ashish |
6667 |
}
|
|
|
6668 |
|
| 3430 |
rajveer |
6669 |
/** Returns true if field gatewayPaymentId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
6670 |
public boolean isSetGatewayPaymentId() {
|
|
|
6671 |
return this.gatewayPaymentId != null;
|
| 420 |
ashish |
6672 |
}
|
|
|
6673 |
|
| 695 |
rajveer |
6674 |
public void setGatewayPaymentIdIsSet(boolean value) {
|
| 420 |
ashish |
6675 |
if (!value) {
|
| 695 |
rajveer |
6676 |
this.gatewayPaymentId = null;
|
| 420 |
ashish |
6677 |
}
|
|
|
6678 |
}
|
|
|
6679 |
|
| 695 |
rajveer |
6680 |
public String getSessionId() {
|
|
|
6681 |
return this.sessionId;
|
| 420 |
ashish |
6682 |
}
|
|
|
6683 |
|
| 3430 |
rajveer |
6684 |
public void setSessionId(String sessionId) {
|
| 695 |
rajveer |
6685 |
this.sessionId = sessionId;
|
| 420 |
ashish |
6686 |
}
|
|
|
6687 |
|
| 695 |
rajveer |
6688 |
public void unsetSessionId() {
|
|
|
6689 |
this.sessionId = null;
|
| 420 |
ashish |
6690 |
}
|
|
|
6691 |
|
| 3430 |
rajveer |
6692 |
/** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
6693 |
public boolean isSetSessionId() {
|
|
|
6694 |
return this.sessionId != null;
|
| 420 |
ashish |
6695 |
}
|
|
|
6696 |
|
| 695 |
rajveer |
6697 |
public void setSessionIdIsSet(boolean value) {
|
| 420 |
ashish |
6698 |
if (!value) {
|
| 695 |
rajveer |
6699 |
this.sessionId = null;
|
| 420 |
ashish |
6700 |
}
|
|
|
6701 |
}
|
|
|
6702 |
|
| 695 |
rajveer |
6703 |
public String getGatewayTxnStatus() {
|
|
|
6704 |
return this.gatewayTxnStatus;
|
| 420 |
ashish |
6705 |
}
|
|
|
6706 |
|
| 3430 |
rajveer |
6707 |
public void setGatewayTxnStatus(String gatewayTxnStatus) {
|
| 695 |
rajveer |
6708 |
this.gatewayTxnStatus = gatewayTxnStatus;
|
| 420 |
ashish |
6709 |
}
|
|
|
6710 |
|
| 695 |
rajveer |
6711 |
public void unsetGatewayTxnStatus() {
|
|
|
6712 |
this.gatewayTxnStatus = null;
|
| 420 |
ashish |
6713 |
}
|
|
|
6714 |
|
| 3430 |
rajveer |
6715 |
/** Returns true if field gatewayTxnStatus is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
6716 |
public boolean isSetGatewayTxnStatus() {
|
|
|
6717 |
return this.gatewayTxnStatus != null;
|
| 420 |
ashish |
6718 |
}
|
|
|
6719 |
|
| 695 |
rajveer |
6720 |
public void setGatewayTxnStatusIsSet(boolean value) {
|
| 420 |
ashish |
6721 |
if (!value) {
|
| 695 |
rajveer |
6722 |
this.gatewayTxnStatus = null;
|
| 420 |
ashish |
6723 |
}
|
|
|
6724 |
}
|
|
|
6725 |
|
| 695 |
rajveer |
6726 |
public String getDescription() {
|
|
|
6727 |
return this.description;
|
| 420 |
ashish |
6728 |
}
|
|
|
6729 |
|
| 3430 |
rajveer |
6730 |
public void setDescription(String description) {
|
| 695 |
rajveer |
6731 |
this.description = description;
|
| 420 |
ashish |
6732 |
}
|
|
|
6733 |
|
| 695 |
rajveer |
6734 |
public void unsetDescription() {
|
|
|
6735 |
this.description = null;
|
| 420 |
ashish |
6736 |
}
|
|
|
6737 |
|
| 3430 |
rajveer |
6738 |
/** Returns true if field description is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
6739 |
public boolean isSetDescription() {
|
|
|
6740 |
return this.description != null;
|
| 420 |
ashish |
6741 |
}
|
|
|
6742 |
|
| 695 |
rajveer |
6743 |
public void setDescriptionIsSet(boolean value) {
|
| 420 |
ashish |
6744 |
if (!value) {
|
| 695 |
rajveer |
6745 |
this.description = null;
|
| 420 |
ashish |
6746 |
}
|
|
|
6747 |
}
|
|
|
6748 |
|
| 695 |
rajveer |
6749 |
public String getGatewayTxnId() {
|
|
|
6750 |
return this.gatewayTxnId;
|
| 420 |
ashish |
6751 |
}
|
|
|
6752 |
|
| 3430 |
rajveer |
6753 |
public void setGatewayTxnId(String gatewayTxnId) {
|
| 695 |
rajveer |
6754 |
this.gatewayTxnId = gatewayTxnId;
|
| 420 |
ashish |
6755 |
}
|
|
|
6756 |
|
| 695 |
rajveer |
6757 |
public void unsetGatewayTxnId() {
|
|
|
6758 |
this.gatewayTxnId = null;
|
| 420 |
ashish |
6759 |
}
|
|
|
6760 |
|
| 3430 |
rajveer |
6761 |
/** Returns true if field gatewayTxnId is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
6762 |
public boolean isSetGatewayTxnId() {
|
|
|
6763 |
return this.gatewayTxnId != null;
|
| 420 |
ashish |
6764 |
}
|
|
|
6765 |
|
| 695 |
rajveer |
6766 |
public void setGatewayTxnIdIsSet(boolean value) {
|
| 420 |
ashish |
6767 |
if (!value) {
|
| 695 |
rajveer |
6768 |
this.gatewayTxnId = null;
|
| 420 |
ashish |
6769 |
}
|
|
|
6770 |
}
|
|
|
6771 |
|
| 695 |
rajveer |
6772 |
public String getAuthCode() {
|
|
|
6773 |
return this.authCode;
|
| 420 |
ashish |
6774 |
}
|
|
|
6775 |
|
| 3430 |
rajveer |
6776 |
public void setAuthCode(String authCode) {
|
| 695 |
rajveer |
6777 |
this.authCode = authCode;
|
| 420 |
ashish |
6778 |
}
|
|
|
6779 |
|
| 695 |
rajveer |
6780 |
public void unsetAuthCode() {
|
|
|
6781 |
this.authCode = null;
|
| 420 |
ashish |
6782 |
}
|
|
|
6783 |
|
| 3430 |
rajveer |
6784 |
/** Returns true if field authCode is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
6785 |
public boolean isSetAuthCode() {
|
|
|
6786 |
return this.authCode != null;
|
| 420 |
ashish |
6787 |
}
|
|
|
6788 |
|
| 695 |
rajveer |
6789 |
public void setAuthCodeIsSet(boolean value) {
|
| 420 |
ashish |
6790 |
if (!value) {
|
| 695 |
rajveer |
6791 |
this.authCode = null;
|
| 420 |
ashish |
6792 |
}
|
|
|
6793 |
}
|
|
|
6794 |
|
| 695 |
rajveer |
6795 |
public String getReferenceCode() {
|
|
|
6796 |
return this.referenceCode;
|
| 420 |
ashish |
6797 |
}
|
|
|
6798 |
|
| 3430 |
rajveer |
6799 |
public void setReferenceCode(String referenceCode) {
|
| 695 |
rajveer |
6800 |
this.referenceCode = referenceCode;
|
| 420 |
ashish |
6801 |
}
|
|
|
6802 |
|
| 695 |
rajveer |
6803 |
public void unsetReferenceCode() {
|
|
|
6804 |
this.referenceCode = null;
|
| 420 |
ashish |
6805 |
}
|
|
|
6806 |
|
| 3430 |
rajveer |
6807 |
/** Returns true if field referenceCode is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
6808 |
public boolean isSetReferenceCode() {
|
|
|
6809 |
return this.referenceCode != null;
|
| 420 |
ashish |
6810 |
}
|
|
|
6811 |
|
| 695 |
rajveer |
6812 |
public void setReferenceCodeIsSet(boolean value) {
|
| 420 |
ashish |
6813 |
if (!value) {
|
| 695 |
rajveer |
6814 |
this.referenceCode = null;
|
| 420 |
ashish |
6815 |
}
|
|
|
6816 |
}
|
|
|
6817 |
|
| 695 |
rajveer |
6818 |
public String getErrorCode() {
|
|
|
6819 |
return this.errorCode;
|
|
|
6820 |
}
|
|
|
6821 |
|
| 3430 |
rajveer |
6822 |
public void setErrorCode(String errorCode) {
|
| 695 |
rajveer |
6823 |
this.errorCode = errorCode;
|
|
|
6824 |
}
|
|
|
6825 |
|
|
|
6826 |
public void unsetErrorCode() {
|
|
|
6827 |
this.errorCode = null;
|
|
|
6828 |
}
|
|
|
6829 |
|
| 3430 |
rajveer |
6830 |
/** Returns true if field errorCode is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
6831 |
public boolean isSetErrorCode() {
|
|
|
6832 |
return this.errorCode != null;
|
|
|
6833 |
}
|
|
|
6834 |
|
|
|
6835 |
public void setErrorCodeIsSet(boolean value) {
|
|
|
6836 |
if (!value) {
|
|
|
6837 |
this.errorCode = null;
|
|
|
6838 |
}
|
|
|
6839 |
}
|
|
|
6840 |
|
|
|
6841 |
/**
|
|
|
6842 |
*
|
|
|
6843 |
* @see PaymentStatus
|
|
|
6844 |
*/
|
|
|
6845 |
public PaymentStatus getStatus() {
|
|
|
6846 |
return this.status;
|
|
|
6847 |
}
|
|
|
6848 |
|
|
|
6849 |
/**
|
|
|
6850 |
*
|
|
|
6851 |
* @see PaymentStatus
|
|
|
6852 |
*/
|
| 3430 |
rajveer |
6853 |
public void setStatus(PaymentStatus status) {
|
| 695 |
rajveer |
6854 |
this.status = status;
|
|
|
6855 |
}
|
|
|
6856 |
|
|
|
6857 |
public void unsetStatus() {
|
|
|
6858 |
this.status = null;
|
|
|
6859 |
}
|
|
|
6860 |
|
| 3430 |
rajveer |
6861 |
/** Returns true if field status is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
6862 |
public boolean isSetStatus() {
|
|
|
6863 |
return this.status != null;
|
|
|
6864 |
}
|
|
|
6865 |
|
|
|
6866 |
public void setStatusIsSet(boolean value) {
|
|
|
6867 |
if (!value) {
|
|
|
6868 |
this.status = null;
|
|
|
6869 |
}
|
|
|
6870 |
}
|
|
|
6871 |
|
| 1119 |
rajveer |
6872 |
public String getGatewayTxnDate() {
|
|
|
6873 |
return this.gatewayTxnDate;
|
|
|
6874 |
}
|
|
|
6875 |
|
| 3430 |
rajveer |
6876 |
public void setGatewayTxnDate(String gatewayTxnDate) {
|
| 1119 |
rajveer |
6877 |
this.gatewayTxnDate = gatewayTxnDate;
|
|
|
6878 |
}
|
|
|
6879 |
|
|
|
6880 |
public void unsetGatewayTxnDate() {
|
|
|
6881 |
this.gatewayTxnDate = null;
|
|
|
6882 |
}
|
|
|
6883 |
|
| 3430 |
rajveer |
6884 |
/** Returns true if field gatewayTxnDate is set (has been assigned a value) and false otherwise */
|
| 1119 |
rajveer |
6885 |
public boolean isSetGatewayTxnDate() {
|
|
|
6886 |
return this.gatewayTxnDate != null;
|
|
|
6887 |
}
|
|
|
6888 |
|
|
|
6889 |
public void setGatewayTxnDateIsSet(boolean value) {
|
|
|
6890 |
if (!value) {
|
|
|
6891 |
this.gatewayTxnDate = null;
|
|
|
6892 |
}
|
|
|
6893 |
}
|
|
|
6894 |
|
| 695 |
rajveer |
6895 |
public int getAttributesSize() {
|
|
|
6896 |
return (this.attributes == null) ? 0 : this.attributes.size();
|
|
|
6897 |
}
|
|
|
6898 |
|
|
|
6899 |
public java.util.Iterator<Attribute> getAttributesIterator() {
|
|
|
6900 |
return (this.attributes == null) ? null : this.attributes.iterator();
|
|
|
6901 |
}
|
|
|
6902 |
|
|
|
6903 |
public void addToAttributes(Attribute elem) {
|
|
|
6904 |
if (this.attributes == null) {
|
|
|
6905 |
this.attributes = new ArrayList<Attribute>();
|
|
|
6906 |
}
|
|
|
6907 |
this.attributes.add(elem);
|
|
|
6908 |
}
|
|
|
6909 |
|
|
|
6910 |
public List<Attribute> getAttributes() {
|
|
|
6911 |
return this.attributes;
|
|
|
6912 |
}
|
|
|
6913 |
|
| 3430 |
rajveer |
6914 |
public void setAttributes(List<Attribute> attributes) {
|
| 695 |
rajveer |
6915 |
this.attributes = attributes;
|
|
|
6916 |
}
|
|
|
6917 |
|
|
|
6918 |
public void unsetAttributes() {
|
|
|
6919 |
this.attributes = null;
|
|
|
6920 |
}
|
|
|
6921 |
|
| 3430 |
rajveer |
6922 |
/** Returns true if field attributes is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
6923 |
public boolean isSetAttributes() {
|
|
|
6924 |
return this.attributes != null;
|
|
|
6925 |
}
|
|
|
6926 |
|
|
|
6927 |
public void setAttributesIsSet(boolean value) {
|
|
|
6928 |
if (!value) {
|
|
|
6929 |
this.attributes = null;
|
|
|
6930 |
}
|
|
|
6931 |
}
|
|
|
6932 |
|
| 420 |
ashish |
6933 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6934 |
switch (field) {
|
|
|
6935 |
case ID:
|
|
|
6936 |
if (value == null) {
|
|
|
6937 |
unsetId();
|
|
|
6938 |
} else {
|
|
|
6939 |
setId((Long)value);
|
|
|
6940 |
}
|
|
|
6941 |
break;
|
|
|
6942 |
|
| 695 |
rajveer |
6943 |
case GATEWAY_PAYMENT_ID:
|
| 420 |
ashish |
6944 |
if (value == null) {
|
| 695 |
rajveer |
6945 |
unsetGatewayPaymentId();
|
| 420 |
ashish |
6946 |
} else {
|
| 695 |
rajveer |
6947 |
setGatewayPaymentId((String)value);
|
| 420 |
ashish |
6948 |
}
|
|
|
6949 |
break;
|
|
|
6950 |
|
| 695 |
rajveer |
6951 |
case SESSION_ID:
|
| 420 |
ashish |
6952 |
if (value == null) {
|
| 695 |
rajveer |
6953 |
unsetSessionId();
|
| 420 |
ashish |
6954 |
} else {
|
| 695 |
rajveer |
6955 |
setSessionId((String)value);
|
| 420 |
ashish |
6956 |
}
|
|
|
6957 |
break;
|
|
|
6958 |
|
| 695 |
rajveer |
6959 |
case GATEWAY_TXN_STATUS:
|
| 420 |
ashish |
6960 |
if (value == null) {
|
| 695 |
rajveer |
6961 |
unsetGatewayTxnStatus();
|
| 420 |
ashish |
6962 |
} else {
|
| 695 |
rajveer |
6963 |
setGatewayTxnStatus((String)value);
|
| 420 |
ashish |
6964 |
}
|
|
|
6965 |
break;
|
|
|
6966 |
|
| 695 |
rajveer |
6967 |
case DESCRIPTION:
|
| 420 |
ashish |
6968 |
if (value == null) {
|
| 695 |
rajveer |
6969 |
unsetDescription();
|
| 420 |
ashish |
6970 |
} else {
|
| 695 |
rajveer |
6971 |
setDescription((String)value);
|
| 420 |
ashish |
6972 |
}
|
|
|
6973 |
break;
|
|
|
6974 |
|
| 695 |
rajveer |
6975 |
case GATEWAY_TXN_ID:
|
| 420 |
ashish |
6976 |
if (value == null) {
|
| 695 |
rajveer |
6977 |
unsetGatewayTxnId();
|
| 420 |
ashish |
6978 |
} else {
|
| 695 |
rajveer |
6979 |
setGatewayTxnId((String)value);
|
| 420 |
ashish |
6980 |
}
|
|
|
6981 |
break;
|
|
|
6982 |
|
|
|
6983 |
case AUTH_CODE:
|
|
|
6984 |
if (value == null) {
|
| 695 |
rajveer |
6985 |
unsetAuthCode();
|
| 420 |
ashish |
6986 |
} else {
|
| 695 |
rajveer |
6987 |
setAuthCode((String)value);
|
| 420 |
ashish |
6988 |
}
|
|
|
6989 |
break;
|
|
|
6990 |
|
| 695 |
rajveer |
6991 |
case REFERENCE_CODE:
|
| 420 |
ashish |
6992 |
if (value == null) {
|
| 695 |
rajveer |
6993 |
unsetReferenceCode();
|
| 420 |
ashish |
6994 |
} else {
|
| 695 |
rajveer |
6995 |
setReferenceCode((String)value);
|
| 420 |
ashish |
6996 |
}
|
|
|
6997 |
break;
|
|
|
6998 |
|
| 695 |
rajveer |
6999 |
case ERROR_CODE:
|
|
|
7000 |
if (value == null) {
|
|
|
7001 |
unsetErrorCode();
|
|
|
7002 |
} else {
|
|
|
7003 |
setErrorCode((String)value);
|
|
|
7004 |
}
|
|
|
7005 |
break;
|
|
|
7006 |
|
|
|
7007 |
case STATUS:
|
|
|
7008 |
if (value == null) {
|
|
|
7009 |
unsetStatus();
|
|
|
7010 |
} else {
|
|
|
7011 |
setStatus((PaymentStatus)value);
|
|
|
7012 |
}
|
|
|
7013 |
break;
|
|
|
7014 |
|
| 1119 |
rajveer |
7015 |
case GATEWAY_TXN_DATE:
|
|
|
7016 |
if (value == null) {
|
|
|
7017 |
unsetGatewayTxnDate();
|
|
|
7018 |
} else {
|
|
|
7019 |
setGatewayTxnDate((String)value);
|
|
|
7020 |
}
|
|
|
7021 |
break;
|
|
|
7022 |
|
| 695 |
rajveer |
7023 |
case ATTRIBUTES:
|
|
|
7024 |
if (value == null) {
|
|
|
7025 |
unsetAttributes();
|
|
|
7026 |
} else {
|
|
|
7027 |
setAttributes((List<Attribute>)value);
|
|
|
7028 |
}
|
|
|
7029 |
break;
|
|
|
7030 |
|
| 420 |
ashish |
7031 |
}
|
|
|
7032 |
}
|
|
|
7033 |
|
|
|
7034 |
public Object getFieldValue(_Fields field) {
|
|
|
7035 |
switch (field) {
|
|
|
7036 |
case ID:
|
| 3430 |
rajveer |
7037 |
return Long.valueOf(getId());
|
| 420 |
ashish |
7038 |
|
| 695 |
rajveer |
7039 |
case GATEWAY_PAYMENT_ID:
|
|
|
7040 |
return getGatewayPaymentId();
|
| 420 |
ashish |
7041 |
|
| 695 |
rajveer |
7042 |
case SESSION_ID:
|
|
|
7043 |
return getSessionId();
|
| 420 |
ashish |
7044 |
|
| 695 |
rajveer |
7045 |
case GATEWAY_TXN_STATUS:
|
|
|
7046 |
return getGatewayTxnStatus();
|
| 420 |
ashish |
7047 |
|
| 695 |
rajveer |
7048 |
case DESCRIPTION:
|
|
|
7049 |
return getDescription();
|
| 420 |
ashish |
7050 |
|
| 695 |
rajveer |
7051 |
case GATEWAY_TXN_ID:
|
|
|
7052 |
return getGatewayTxnId();
|
| 420 |
ashish |
7053 |
|
|
|
7054 |
case AUTH_CODE:
|
| 695 |
rajveer |
7055 |
return getAuthCode();
|
| 420 |
ashish |
7056 |
|
| 695 |
rajveer |
7057 |
case REFERENCE_CODE:
|
|
|
7058 |
return getReferenceCode();
|
| 420 |
ashish |
7059 |
|
| 695 |
rajveer |
7060 |
case ERROR_CODE:
|
|
|
7061 |
return getErrorCode();
|
|
|
7062 |
|
|
|
7063 |
case STATUS:
|
|
|
7064 |
return getStatus();
|
|
|
7065 |
|
| 1119 |
rajveer |
7066 |
case GATEWAY_TXN_DATE:
|
|
|
7067 |
return getGatewayTxnDate();
|
|
|
7068 |
|
| 695 |
rajveer |
7069 |
case ATTRIBUTES:
|
|
|
7070 |
return getAttributes();
|
|
|
7071 |
|
| 420 |
ashish |
7072 |
}
|
|
|
7073 |
throw new IllegalStateException();
|
|
|
7074 |
}
|
|
|
7075 |
|
| 3430 |
rajveer |
7076 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7077 |
public boolean isSet(_Fields field) {
|
|
|
7078 |
if (field == null) {
|
|
|
7079 |
throw new IllegalArgumentException();
|
|
|
7080 |
}
|
| 420 |
ashish |
7081 |
|
|
|
7082 |
switch (field) {
|
|
|
7083 |
case ID:
|
|
|
7084 |
return isSetId();
|
| 695 |
rajveer |
7085 |
case GATEWAY_PAYMENT_ID:
|
|
|
7086 |
return isSetGatewayPaymentId();
|
| 420 |
ashish |
7087 |
case SESSION_ID:
|
| 695 |
rajveer |
7088 |
return isSetSessionId();
|
|
|
7089 |
case GATEWAY_TXN_STATUS:
|
|
|
7090 |
return isSetGatewayTxnStatus();
|
|
|
7091 |
case DESCRIPTION:
|
|
|
7092 |
return isSetDescription();
|
|
|
7093 |
case GATEWAY_TXN_ID:
|
|
|
7094 |
return isSetGatewayTxnId();
|
| 420 |
ashish |
7095 |
case AUTH_CODE:
|
| 695 |
rajveer |
7096 |
return isSetAuthCode();
|
|
|
7097 |
case REFERENCE_CODE:
|
|
|
7098 |
return isSetReferenceCode();
|
|
|
7099 |
case ERROR_CODE:
|
|
|
7100 |
return isSetErrorCode();
|
|
|
7101 |
case STATUS:
|
|
|
7102 |
return isSetStatus();
|
| 1119 |
rajveer |
7103 |
case GATEWAY_TXN_DATE:
|
|
|
7104 |
return isSetGatewayTxnDate();
|
| 695 |
rajveer |
7105 |
case ATTRIBUTES:
|
|
|
7106 |
return isSetAttributes();
|
| 420 |
ashish |
7107 |
}
|
|
|
7108 |
throw new IllegalStateException();
|
|
|
7109 |
}
|
|
|
7110 |
|
|
|
7111 |
@Override
|
|
|
7112 |
public boolean equals(Object that) {
|
|
|
7113 |
if (that == null)
|
|
|
7114 |
return false;
|
| 695 |
rajveer |
7115 |
if (that instanceof updatePaymentDetails_args)
|
|
|
7116 |
return this.equals((updatePaymentDetails_args)that);
|
| 420 |
ashish |
7117 |
return false;
|
|
|
7118 |
}
|
|
|
7119 |
|
| 695 |
rajveer |
7120 |
public boolean equals(updatePaymentDetails_args that) {
|
| 420 |
ashish |
7121 |
if (that == null)
|
|
|
7122 |
return false;
|
|
|
7123 |
|
|
|
7124 |
boolean this_present_id = true;
|
|
|
7125 |
boolean that_present_id = true;
|
|
|
7126 |
if (this_present_id || that_present_id) {
|
|
|
7127 |
if (!(this_present_id && that_present_id))
|
|
|
7128 |
return false;
|
|
|
7129 |
if (this.id != that.id)
|
|
|
7130 |
return false;
|
|
|
7131 |
}
|
|
|
7132 |
|
| 695 |
rajveer |
7133 |
boolean this_present_gatewayPaymentId = true && this.isSetGatewayPaymentId();
|
|
|
7134 |
boolean that_present_gatewayPaymentId = true && that.isSetGatewayPaymentId();
|
|
|
7135 |
if (this_present_gatewayPaymentId || that_present_gatewayPaymentId) {
|
|
|
7136 |
if (!(this_present_gatewayPaymentId && that_present_gatewayPaymentId))
|
| 420 |
ashish |
7137 |
return false;
|
| 695 |
rajveer |
7138 |
if (!this.gatewayPaymentId.equals(that.gatewayPaymentId))
|
| 420 |
ashish |
7139 |
return false;
|
|
|
7140 |
}
|
|
|
7141 |
|
| 695 |
rajveer |
7142 |
boolean this_present_sessionId = true && this.isSetSessionId();
|
|
|
7143 |
boolean that_present_sessionId = true && that.isSetSessionId();
|
|
|
7144 |
if (this_present_sessionId || that_present_sessionId) {
|
|
|
7145 |
if (!(this_present_sessionId && that_present_sessionId))
|
| 420 |
ashish |
7146 |
return false;
|
| 695 |
rajveer |
7147 |
if (!this.sessionId.equals(that.sessionId))
|
| 420 |
ashish |
7148 |
return false;
|
|
|
7149 |
}
|
|
|
7150 |
|
| 695 |
rajveer |
7151 |
boolean this_present_gatewayTxnStatus = true && this.isSetGatewayTxnStatus();
|
|
|
7152 |
boolean that_present_gatewayTxnStatus = true && that.isSetGatewayTxnStatus();
|
|
|
7153 |
if (this_present_gatewayTxnStatus || that_present_gatewayTxnStatus) {
|
|
|
7154 |
if (!(this_present_gatewayTxnStatus && that_present_gatewayTxnStatus))
|
| 420 |
ashish |
7155 |
return false;
|
| 695 |
rajveer |
7156 |
if (!this.gatewayTxnStatus.equals(that.gatewayTxnStatus))
|
| 420 |
ashish |
7157 |
return false;
|
|
|
7158 |
}
|
|
|
7159 |
|
| 695 |
rajveer |
7160 |
boolean this_present_description = true && this.isSetDescription();
|
|
|
7161 |
boolean that_present_description = true && that.isSetDescription();
|
|
|
7162 |
if (this_present_description || that_present_description) {
|
|
|
7163 |
if (!(this_present_description && that_present_description))
|
| 420 |
ashish |
7164 |
return false;
|
| 695 |
rajveer |
7165 |
if (!this.description.equals(that.description))
|
| 420 |
ashish |
7166 |
return false;
|
|
|
7167 |
}
|
|
|
7168 |
|
| 695 |
rajveer |
7169 |
boolean this_present_gatewayTxnId = true && this.isSetGatewayTxnId();
|
|
|
7170 |
boolean that_present_gatewayTxnId = true && that.isSetGatewayTxnId();
|
|
|
7171 |
if (this_present_gatewayTxnId || that_present_gatewayTxnId) {
|
|
|
7172 |
if (!(this_present_gatewayTxnId && that_present_gatewayTxnId))
|
| 420 |
ashish |
7173 |
return false;
|
| 695 |
rajveer |
7174 |
if (!this.gatewayTxnId.equals(that.gatewayTxnId))
|
| 420 |
ashish |
7175 |
return false;
|
|
|
7176 |
}
|
|
|
7177 |
|
| 695 |
rajveer |
7178 |
boolean this_present_authCode = true && this.isSetAuthCode();
|
|
|
7179 |
boolean that_present_authCode = true && that.isSetAuthCode();
|
|
|
7180 |
if (this_present_authCode || that_present_authCode) {
|
|
|
7181 |
if (!(this_present_authCode && that_present_authCode))
|
| 420 |
ashish |
7182 |
return false;
|
| 695 |
rajveer |
7183 |
if (!this.authCode.equals(that.authCode))
|
| 420 |
ashish |
7184 |
return false;
|
|
|
7185 |
}
|
|
|
7186 |
|
| 695 |
rajveer |
7187 |
boolean this_present_referenceCode = true && this.isSetReferenceCode();
|
|
|
7188 |
boolean that_present_referenceCode = true && that.isSetReferenceCode();
|
|
|
7189 |
if (this_present_referenceCode || that_present_referenceCode) {
|
|
|
7190 |
if (!(this_present_referenceCode && that_present_referenceCode))
|
| 420 |
ashish |
7191 |
return false;
|
| 695 |
rajveer |
7192 |
if (!this.referenceCode.equals(that.referenceCode))
|
| 420 |
ashish |
7193 |
return false;
|
|
|
7194 |
}
|
|
|
7195 |
|
| 695 |
rajveer |
7196 |
boolean this_present_errorCode = true && this.isSetErrorCode();
|
|
|
7197 |
boolean that_present_errorCode = true && that.isSetErrorCode();
|
|
|
7198 |
if (this_present_errorCode || that_present_errorCode) {
|
|
|
7199 |
if (!(this_present_errorCode && that_present_errorCode))
|
|
|
7200 |
return false;
|
|
|
7201 |
if (!this.errorCode.equals(that.errorCode))
|
|
|
7202 |
return false;
|
|
|
7203 |
}
|
|
|
7204 |
|
|
|
7205 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
7206 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
7207 |
if (this_present_status || that_present_status) {
|
|
|
7208 |
if (!(this_present_status && that_present_status))
|
|
|
7209 |
return false;
|
|
|
7210 |
if (!this.status.equals(that.status))
|
|
|
7211 |
return false;
|
|
|
7212 |
}
|
|
|
7213 |
|
| 1119 |
rajveer |
7214 |
boolean this_present_gatewayTxnDate = true && this.isSetGatewayTxnDate();
|
|
|
7215 |
boolean that_present_gatewayTxnDate = true && that.isSetGatewayTxnDate();
|
|
|
7216 |
if (this_present_gatewayTxnDate || that_present_gatewayTxnDate) {
|
|
|
7217 |
if (!(this_present_gatewayTxnDate && that_present_gatewayTxnDate))
|
|
|
7218 |
return false;
|
|
|
7219 |
if (!this.gatewayTxnDate.equals(that.gatewayTxnDate))
|
|
|
7220 |
return false;
|
|
|
7221 |
}
|
|
|
7222 |
|
| 695 |
rajveer |
7223 |
boolean this_present_attributes = true && this.isSetAttributes();
|
|
|
7224 |
boolean that_present_attributes = true && that.isSetAttributes();
|
|
|
7225 |
if (this_present_attributes || that_present_attributes) {
|
|
|
7226 |
if (!(this_present_attributes && that_present_attributes))
|
|
|
7227 |
return false;
|
|
|
7228 |
if (!this.attributes.equals(that.attributes))
|
|
|
7229 |
return false;
|
|
|
7230 |
}
|
|
|
7231 |
|
| 420 |
ashish |
7232 |
return true;
|
|
|
7233 |
}
|
|
|
7234 |
|
|
|
7235 |
@Override
|
|
|
7236 |
public int hashCode() {
|
|
|
7237 |
return 0;
|
|
|
7238 |
}
|
|
|
7239 |
|
| 695 |
rajveer |
7240 |
public int compareTo(updatePaymentDetails_args other) {
|
| 420 |
ashish |
7241 |
if (!getClass().equals(other.getClass())) {
|
|
|
7242 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7243 |
}
|
|
|
7244 |
|
|
|
7245 |
int lastComparison = 0;
|
| 695 |
rajveer |
7246 |
updatePaymentDetails_args typedOther = (updatePaymentDetails_args)other;
|
| 420 |
ashish |
7247 |
|
| 3430 |
rajveer |
7248 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| 420 |
ashish |
7249 |
if (lastComparison != 0) {
|
|
|
7250 |
return lastComparison;
|
|
|
7251 |
}
|
| 3430 |
rajveer |
7252 |
if (isSetId()) {
|
|
|
7253 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
7254 |
if (lastComparison != 0) {
|
|
|
7255 |
return lastComparison;
|
|
|
7256 |
}
|
| 420 |
ashish |
7257 |
}
|
| 3430 |
rajveer |
7258 |
lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(typedOther.isSetGatewayPaymentId());
|
| 420 |
ashish |
7259 |
if (lastComparison != 0) {
|
|
|
7260 |
return lastComparison;
|
|
|
7261 |
}
|
| 3430 |
rajveer |
7262 |
if (isSetGatewayPaymentId()) {
|
|
|
7263 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayPaymentId, typedOther.gatewayPaymentId);
|
|
|
7264 |
if (lastComparison != 0) {
|
|
|
7265 |
return lastComparison;
|
|
|
7266 |
}
|
| 420 |
ashish |
7267 |
}
|
| 3430 |
rajveer |
7268 |
lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId());
|
| 420 |
ashish |
7269 |
if (lastComparison != 0) {
|
|
|
7270 |
return lastComparison;
|
|
|
7271 |
}
|
| 3430 |
rajveer |
7272 |
if (isSetSessionId()) {
|
|
|
7273 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId);
|
|
|
7274 |
if (lastComparison != 0) {
|
|
|
7275 |
return lastComparison;
|
|
|
7276 |
}
|
| 420 |
ashish |
7277 |
}
|
| 3430 |
rajveer |
7278 |
lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(typedOther.isSetGatewayTxnStatus());
|
| 420 |
ashish |
7279 |
if (lastComparison != 0) {
|
|
|
7280 |
return lastComparison;
|
|
|
7281 |
}
|
| 3430 |
rajveer |
7282 |
if (isSetGatewayTxnStatus()) {
|
|
|
7283 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnStatus, typedOther.gatewayTxnStatus);
|
|
|
7284 |
if (lastComparison != 0) {
|
|
|
7285 |
return lastComparison;
|
|
|
7286 |
}
|
| 420 |
ashish |
7287 |
}
|
| 3430 |
rajveer |
7288 |
lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
|
| 420 |
ashish |
7289 |
if (lastComparison != 0) {
|
|
|
7290 |
return lastComparison;
|
|
|
7291 |
}
|
| 3430 |
rajveer |
7292 |
if (isSetDescription()) {
|
|
|
7293 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
|
|
|
7294 |
if (lastComparison != 0) {
|
|
|
7295 |
return lastComparison;
|
|
|
7296 |
}
|
| 420 |
ashish |
7297 |
}
|
| 3430 |
rajveer |
7298 |
lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(typedOther.isSetGatewayTxnId());
|
| 420 |
ashish |
7299 |
if (lastComparison != 0) {
|
|
|
7300 |
return lastComparison;
|
|
|
7301 |
}
|
| 3430 |
rajveer |
7302 |
if (isSetGatewayTxnId()) {
|
|
|
7303 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnId, typedOther.gatewayTxnId);
|
|
|
7304 |
if (lastComparison != 0) {
|
|
|
7305 |
return lastComparison;
|
|
|
7306 |
}
|
| 420 |
ashish |
7307 |
}
|
| 3430 |
rajveer |
7308 |
lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(typedOther.isSetAuthCode());
|
| 420 |
ashish |
7309 |
if (lastComparison != 0) {
|
|
|
7310 |
return lastComparison;
|
|
|
7311 |
}
|
| 3430 |
rajveer |
7312 |
if (isSetAuthCode()) {
|
|
|
7313 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authCode, typedOther.authCode);
|
|
|
7314 |
if (lastComparison != 0) {
|
|
|
7315 |
return lastComparison;
|
|
|
7316 |
}
|
| 420 |
ashish |
7317 |
}
|
| 3430 |
rajveer |
7318 |
lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(typedOther.isSetReferenceCode());
|
| 420 |
ashish |
7319 |
if (lastComparison != 0) {
|
|
|
7320 |
return lastComparison;
|
|
|
7321 |
}
|
| 3430 |
rajveer |
7322 |
if (isSetReferenceCode()) {
|
|
|
7323 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceCode, typedOther.referenceCode);
|
|
|
7324 |
if (lastComparison != 0) {
|
|
|
7325 |
return lastComparison;
|
|
|
7326 |
}
|
| 420 |
ashish |
7327 |
}
|
| 3430 |
rajveer |
7328 |
lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode());
|
| 695 |
rajveer |
7329 |
if (lastComparison != 0) {
|
|
|
7330 |
return lastComparison;
|
|
|
7331 |
}
|
| 3430 |
rajveer |
7332 |
if (isSetErrorCode()) {
|
|
|
7333 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
|
|
|
7334 |
if (lastComparison != 0) {
|
|
|
7335 |
return lastComparison;
|
|
|
7336 |
}
|
| 695 |
rajveer |
7337 |
}
|
| 3430 |
rajveer |
7338 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
|
| 695 |
rajveer |
7339 |
if (lastComparison != 0) {
|
|
|
7340 |
return lastComparison;
|
|
|
7341 |
}
|
| 3430 |
rajveer |
7342 |
if (isSetStatus()) {
|
|
|
7343 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
|
|
|
7344 |
if (lastComparison != 0) {
|
|
|
7345 |
return lastComparison;
|
|
|
7346 |
}
|
| 695 |
rajveer |
7347 |
}
|
| 3430 |
rajveer |
7348 |
lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(typedOther.isSetGatewayTxnDate());
|
| 1119 |
rajveer |
7349 |
if (lastComparison != 0) {
|
|
|
7350 |
return lastComparison;
|
|
|
7351 |
}
|
| 3430 |
rajveer |
7352 |
if (isSetGatewayTxnDate()) {
|
|
|
7353 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnDate, typedOther.gatewayTxnDate);
|
|
|
7354 |
if (lastComparison != 0) {
|
|
|
7355 |
return lastComparison;
|
|
|
7356 |
}
|
| 1119 |
rajveer |
7357 |
}
|
| 3430 |
rajveer |
7358 |
lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
|
| 695 |
rajveer |
7359 |
if (lastComparison != 0) {
|
|
|
7360 |
return lastComparison;
|
|
|
7361 |
}
|
| 3430 |
rajveer |
7362 |
if (isSetAttributes()) {
|
|
|
7363 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
|
|
|
7364 |
if (lastComparison != 0) {
|
|
|
7365 |
return lastComparison;
|
|
|
7366 |
}
|
| 695 |
rajveer |
7367 |
}
|
| 420 |
ashish |
7368 |
return 0;
|
|
|
7369 |
}
|
|
|
7370 |
|
| 3430 |
rajveer |
7371 |
public _Fields fieldForId(int fieldId) {
|
|
|
7372 |
return _Fields.findByThriftId(fieldId);
|
|
|
7373 |
}
|
|
|
7374 |
|
|
|
7375 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7376 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
7377 |
iprot.readStructBegin();
|
|
|
7378 |
while (true)
|
|
|
7379 |
{
|
|
|
7380 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7381 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
7382 |
break;
|
|
|
7383 |
}
|
| 3430 |
rajveer |
7384 |
switch (field.id) {
|
|
|
7385 |
case 1: // ID
|
|
|
7386 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7387 |
this.id = iprot.readI64();
|
|
|
7388 |
setIdIsSet(true);
|
|
|
7389 |
} else {
|
|
|
7390 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7391 |
}
|
|
|
7392 |
break;
|
|
|
7393 |
case 2: // GATEWAY_PAYMENT_ID
|
|
|
7394 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7395 |
this.gatewayPaymentId = iprot.readString();
|
|
|
7396 |
} else {
|
|
|
7397 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7398 |
}
|
|
|
7399 |
break;
|
|
|
7400 |
case 3: // SESSION_ID
|
|
|
7401 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7402 |
this.sessionId = iprot.readString();
|
|
|
7403 |
} else {
|
|
|
7404 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7405 |
}
|
|
|
7406 |
break;
|
|
|
7407 |
case 4: // GATEWAY_TXN_STATUS
|
|
|
7408 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7409 |
this.gatewayTxnStatus = iprot.readString();
|
|
|
7410 |
} else {
|
|
|
7411 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7412 |
}
|
|
|
7413 |
break;
|
|
|
7414 |
case 5: // DESCRIPTION
|
|
|
7415 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7416 |
this.description = iprot.readString();
|
|
|
7417 |
} else {
|
|
|
7418 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7419 |
}
|
|
|
7420 |
break;
|
|
|
7421 |
case 6: // GATEWAY_TXN_ID
|
|
|
7422 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7423 |
this.gatewayTxnId = iprot.readString();
|
|
|
7424 |
} else {
|
|
|
7425 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7426 |
}
|
|
|
7427 |
break;
|
|
|
7428 |
case 7: // AUTH_CODE
|
|
|
7429 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7430 |
this.authCode = iprot.readString();
|
|
|
7431 |
} else {
|
|
|
7432 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7433 |
}
|
|
|
7434 |
break;
|
|
|
7435 |
case 8: // REFERENCE_CODE
|
|
|
7436 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7437 |
this.referenceCode = iprot.readString();
|
|
|
7438 |
} else {
|
|
|
7439 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7440 |
}
|
|
|
7441 |
break;
|
|
|
7442 |
case 9: // ERROR_CODE
|
|
|
7443 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7444 |
this.errorCode = iprot.readString();
|
|
|
7445 |
} else {
|
|
|
7446 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7447 |
}
|
|
|
7448 |
break;
|
|
|
7449 |
case 10: // STATUS
|
|
|
7450 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
7451 |
this.status = PaymentStatus.findByValue(iprot.readI32());
|
|
|
7452 |
} else {
|
|
|
7453 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7454 |
}
|
|
|
7455 |
break;
|
|
|
7456 |
case 11: // GATEWAY_TXN_DATE
|
|
|
7457 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7458 |
this.gatewayTxnDate = iprot.readString();
|
|
|
7459 |
} else {
|
|
|
7460 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7461 |
}
|
|
|
7462 |
break;
|
|
|
7463 |
case 12: // ATTRIBUTES
|
|
|
7464 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
7465 |
{
|
|
|
7466 |
org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
|
|
|
7467 |
this.attributes = new ArrayList<Attribute>(_list24.size);
|
|
|
7468 |
for (int _i25 = 0; _i25 < _list24.size; ++_i25)
|
| 695 |
rajveer |
7469 |
{
|
| 3430 |
rajveer |
7470 |
Attribute _elem26; // required
|
|
|
7471 |
_elem26 = new Attribute();
|
|
|
7472 |
_elem26.read(iprot);
|
|
|
7473 |
this.attributes.add(_elem26);
|
| 695 |
rajveer |
7474 |
}
|
| 3430 |
rajveer |
7475 |
iprot.readListEnd();
|
| 695 |
rajveer |
7476 |
}
|
| 3430 |
rajveer |
7477 |
} else {
|
|
|
7478 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7479 |
}
|
|
|
7480 |
break;
|
|
|
7481 |
default:
|
|
|
7482 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
7483 |
}
|
| 3430 |
rajveer |
7484 |
iprot.readFieldEnd();
|
| 420 |
ashish |
7485 |
}
|
|
|
7486 |
iprot.readStructEnd();
|
|
|
7487 |
validate();
|
|
|
7488 |
}
|
|
|
7489 |
|
| 3430 |
rajveer |
7490 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
7491 |
validate();
|
|
|
7492 |
|
|
|
7493 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7494 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
7495 |
oprot.writeI64(this.id);
|
|
|
7496 |
oprot.writeFieldEnd();
|
| 695 |
rajveer |
7497 |
if (this.gatewayPaymentId != null) {
|
|
|
7498 |
oprot.writeFieldBegin(GATEWAY_PAYMENT_ID_FIELD_DESC);
|
|
|
7499 |
oprot.writeString(this.gatewayPaymentId);
|
| 420 |
ashish |
7500 |
oprot.writeFieldEnd();
|
|
|
7501 |
}
|
| 695 |
rajveer |
7502 |
if (this.sessionId != null) {
|
|
|
7503 |
oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
|
|
|
7504 |
oprot.writeString(this.sessionId);
|
| 420 |
ashish |
7505 |
oprot.writeFieldEnd();
|
|
|
7506 |
}
|
| 695 |
rajveer |
7507 |
if (this.gatewayTxnStatus != null) {
|
|
|
7508 |
oprot.writeFieldBegin(GATEWAY_TXN_STATUS_FIELD_DESC);
|
|
|
7509 |
oprot.writeString(this.gatewayTxnStatus);
|
| 420 |
ashish |
7510 |
oprot.writeFieldEnd();
|
|
|
7511 |
}
|
| 695 |
rajveer |
7512 |
if (this.description != null) {
|
|
|
7513 |
oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
|
|
|
7514 |
oprot.writeString(this.description);
|
| 420 |
ashish |
7515 |
oprot.writeFieldEnd();
|
|
|
7516 |
}
|
| 695 |
rajveer |
7517 |
if (this.gatewayTxnId != null) {
|
|
|
7518 |
oprot.writeFieldBegin(GATEWAY_TXN_ID_FIELD_DESC);
|
|
|
7519 |
oprot.writeString(this.gatewayTxnId);
|
| 420 |
ashish |
7520 |
oprot.writeFieldEnd();
|
|
|
7521 |
}
|
| 695 |
rajveer |
7522 |
if (this.authCode != null) {
|
| 420 |
ashish |
7523 |
oprot.writeFieldBegin(AUTH_CODE_FIELD_DESC);
|
| 695 |
rajveer |
7524 |
oprot.writeString(this.authCode);
|
| 420 |
ashish |
7525 |
oprot.writeFieldEnd();
|
|
|
7526 |
}
|
| 695 |
rajveer |
7527 |
if (this.referenceCode != null) {
|
|
|
7528 |
oprot.writeFieldBegin(REFERENCE_CODE_FIELD_DESC);
|
|
|
7529 |
oprot.writeString(this.referenceCode);
|
| 420 |
ashish |
7530 |
oprot.writeFieldEnd();
|
|
|
7531 |
}
|
| 695 |
rajveer |
7532 |
if (this.errorCode != null) {
|
|
|
7533 |
oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
|
|
|
7534 |
oprot.writeString(this.errorCode);
|
|
|
7535 |
oprot.writeFieldEnd();
|
|
|
7536 |
}
|
|
|
7537 |
if (this.status != null) {
|
|
|
7538 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
7539 |
oprot.writeI32(this.status.getValue());
|
|
|
7540 |
oprot.writeFieldEnd();
|
|
|
7541 |
}
|
| 1119 |
rajveer |
7542 |
if (this.gatewayTxnDate != null) {
|
|
|
7543 |
oprot.writeFieldBegin(GATEWAY_TXN_DATE_FIELD_DESC);
|
|
|
7544 |
oprot.writeString(this.gatewayTxnDate);
|
|
|
7545 |
oprot.writeFieldEnd();
|
|
|
7546 |
}
|
| 695 |
rajveer |
7547 |
if (this.attributes != null) {
|
|
|
7548 |
oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
|
|
|
7549 |
{
|
| 3430 |
rajveer |
7550 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
|
| 2747 |
chandransh |
7551 |
for (Attribute _iter27 : this.attributes)
|
| 695 |
rajveer |
7552 |
{
|
| 2747 |
chandransh |
7553 |
_iter27.write(oprot);
|
| 695 |
rajveer |
7554 |
}
|
|
|
7555 |
oprot.writeListEnd();
|
|
|
7556 |
}
|
|
|
7557 |
oprot.writeFieldEnd();
|
|
|
7558 |
}
|
| 420 |
ashish |
7559 |
oprot.writeFieldStop();
|
|
|
7560 |
oprot.writeStructEnd();
|
|
|
7561 |
}
|
|
|
7562 |
|
|
|
7563 |
@Override
|
|
|
7564 |
public String toString() {
|
| 695 |
rajveer |
7565 |
StringBuilder sb = new StringBuilder("updatePaymentDetails_args(");
|
| 420 |
ashish |
7566 |
boolean first = true;
|
|
|
7567 |
|
|
|
7568 |
sb.append("id:");
|
|
|
7569 |
sb.append(this.id);
|
|
|
7570 |
first = false;
|
|
|
7571 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7572 |
sb.append("gatewayPaymentId:");
|
|
|
7573 |
if (this.gatewayPaymentId == null) {
|
| 420 |
ashish |
7574 |
sb.append("null");
|
|
|
7575 |
} else {
|
| 695 |
rajveer |
7576 |
sb.append(this.gatewayPaymentId);
|
| 420 |
ashish |
7577 |
}
|
|
|
7578 |
first = false;
|
|
|
7579 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7580 |
sb.append("sessionId:");
|
|
|
7581 |
if (this.sessionId == null) {
|
| 420 |
ashish |
7582 |
sb.append("null");
|
|
|
7583 |
} else {
|
| 695 |
rajveer |
7584 |
sb.append(this.sessionId);
|
| 420 |
ashish |
7585 |
}
|
|
|
7586 |
first = false;
|
|
|
7587 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7588 |
sb.append("gatewayTxnStatus:");
|
|
|
7589 |
if (this.gatewayTxnStatus == null) {
|
| 420 |
ashish |
7590 |
sb.append("null");
|
|
|
7591 |
} else {
|
| 695 |
rajveer |
7592 |
sb.append(this.gatewayTxnStatus);
|
| 420 |
ashish |
7593 |
}
|
|
|
7594 |
first = false;
|
|
|
7595 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7596 |
sb.append("description:");
|
|
|
7597 |
if (this.description == null) {
|
| 420 |
ashish |
7598 |
sb.append("null");
|
|
|
7599 |
} else {
|
| 695 |
rajveer |
7600 |
sb.append(this.description);
|
| 420 |
ashish |
7601 |
}
|
|
|
7602 |
first = false;
|
|
|
7603 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7604 |
sb.append("gatewayTxnId:");
|
|
|
7605 |
if (this.gatewayTxnId == null) {
|
| 420 |
ashish |
7606 |
sb.append("null");
|
|
|
7607 |
} else {
|
| 695 |
rajveer |
7608 |
sb.append(this.gatewayTxnId);
|
| 420 |
ashish |
7609 |
}
|
|
|
7610 |
first = false;
|
|
|
7611 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7612 |
sb.append("authCode:");
|
|
|
7613 |
if (this.authCode == null) {
|
| 420 |
ashish |
7614 |
sb.append("null");
|
|
|
7615 |
} else {
|
| 695 |
rajveer |
7616 |
sb.append(this.authCode);
|
| 420 |
ashish |
7617 |
}
|
|
|
7618 |
first = false;
|
|
|
7619 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7620 |
sb.append("referenceCode:");
|
|
|
7621 |
if (this.referenceCode == null) {
|
| 420 |
ashish |
7622 |
sb.append("null");
|
|
|
7623 |
} else {
|
| 695 |
rajveer |
7624 |
sb.append(this.referenceCode);
|
| 420 |
ashish |
7625 |
}
|
|
|
7626 |
first = false;
|
| 695 |
rajveer |
7627 |
if (!first) sb.append(", ");
|
|
|
7628 |
sb.append("errorCode:");
|
|
|
7629 |
if (this.errorCode == null) {
|
|
|
7630 |
sb.append("null");
|
|
|
7631 |
} else {
|
|
|
7632 |
sb.append(this.errorCode);
|
|
|
7633 |
}
|
|
|
7634 |
first = false;
|
|
|
7635 |
if (!first) sb.append(", ");
|
|
|
7636 |
sb.append("status:");
|
|
|
7637 |
if (this.status == null) {
|
|
|
7638 |
sb.append("null");
|
|
|
7639 |
} else {
|
|
|
7640 |
sb.append(this.status);
|
|
|
7641 |
}
|
|
|
7642 |
first = false;
|
|
|
7643 |
if (!first) sb.append(", ");
|
| 1119 |
rajveer |
7644 |
sb.append("gatewayTxnDate:");
|
|
|
7645 |
if (this.gatewayTxnDate == null) {
|
|
|
7646 |
sb.append("null");
|
|
|
7647 |
} else {
|
|
|
7648 |
sb.append(this.gatewayTxnDate);
|
|
|
7649 |
}
|
|
|
7650 |
first = false;
|
|
|
7651 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7652 |
sb.append("attributes:");
|
|
|
7653 |
if (this.attributes == null) {
|
|
|
7654 |
sb.append("null");
|
|
|
7655 |
} else {
|
|
|
7656 |
sb.append(this.attributes);
|
|
|
7657 |
}
|
|
|
7658 |
first = false;
|
| 420 |
ashish |
7659 |
sb.append(")");
|
|
|
7660 |
return sb.toString();
|
|
|
7661 |
}
|
|
|
7662 |
|
| 3430 |
rajveer |
7663 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
7664 |
// check for required fields
|
|
|
7665 |
}
|
|
|
7666 |
|
| 3430 |
rajveer |
7667 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7668 |
try {
|
|
|
7669 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7670 |
} catch (org.apache.thrift.TException te) {
|
|
|
7671 |
throw new java.io.IOException(te);
|
|
|
7672 |
}
|
|
|
7673 |
}
|
|
|
7674 |
|
|
|
7675 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7676 |
try {
|
|
|
7677 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
7678 |
__isset_bit_vector = new BitSet(1);
|
|
|
7679 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7680 |
} catch (org.apache.thrift.TException te) {
|
|
|
7681 |
throw new java.io.IOException(te);
|
|
|
7682 |
}
|
|
|
7683 |
}
|
|
|
7684 |
|
| 420 |
ashish |
7685 |
}
|
|
|
7686 |
|
| 3430 |
rajveer |
7687 |
public static class updatePaymentDetails_result implements org.apache.thrift.TBase<updatePaymentDetails_result, updatePaymentDetails_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7688 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_result");
|
| 420 |
ashish |
7689 |
|
| 3430 |
rajveer |
7690 |
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);
|
|
|
7691 |
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 |
7692 |
|
| 3430 |
rajveer |
7693 |
private boolean success; // required
|
|
|
7694 |
private PaymentException pe; // required
|
| 420 |
ashish |
7695 |
|
|
|
7696 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
7697 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 695 |
rajveer |
7698 |
SUCCESS((short)0, "success"),
|
| 420 |
ashish |
7699 |
PE((short)1, "pe");
|
|
|
7700 |
|
|
|
7701 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7702 |
|
|
|
7703 |
static {
|
|
|
7704 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7705 |
byName.put(field.getFieldName(), field);
|
|
|
7706 |
}
|
|
|
7707 |
}
|
|
|
7708 |
|
|
|
7709 |
/**
|
|
|
7710 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7711 |
*/
|
|
|
7712 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
7713 |
switch(fieldId) {
|
|
|
7714 |
case 0: // SUCCESS
|
|
|
7715 |
return SUCCESS;
|
|
|
7716 |
case 1: // PE
|
|
|
7717 |
return PE;
|
|
|
7718 |
default:
|
|
|
7719 |
return null;
|
|
|
7720 |
}
|
| 420 |
ashish |
7721 |
}
|
|
|
7722 |
|
|
|
7723 |
/**
|
|
|
7724 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7725 |
* if it is not found.
|
|
|
7726 |
*/
|
|
|
7727 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7728 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7729 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7730 |
return fields;
|
|
|
7731 |
}
|
|
|
7732 |
|
|
|
7733 |
/**
|
|
|
7734 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7735 |
*/
|
|
|
7736 |
public static _Fields findByName(String name) {
|
|
|
7737 |
return byName.get(name);
|
|
|
7738 |
}
|
|
|
7739 |
|
|
|
7740 |
private final short _thriftId;
|
|
|
7741 |
private final String _fieldName;
|
|
|
7742 |
|
|
|
7743 |
_Fields(short thriftId, String fieldName) {
|
|
|
7744 |
_thriftId = thriftId;
|
|
|
7745 |
_fieldName = fieldName;
|
|
|
7746 |
}
|
|
|
7747 |
|
|
|
7748 |
public short getThriftFieldId() {
|
|
|
7749 |
return _thriftId;
|
|
|
7750 |
}
|
|
|
7751 |
|
|
|
7752 |
public String getFieldName() {
|
|
|
7753 |
return _fieldName;
|
|
|
7754 |
}
|
|
|
7755 |
}
|
|
|
7756 |
|
|
|
7757 |
// isset id assignments
|
| 695 |
rajveer |
7758 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
7759 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 420 |
ashish |
7760 |
|
| 3430 |
rajveer |
7761 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 420 |
ashish |
7762 |
static {
|
| 3430 |
rajveer |
7763 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7764 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7765 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
7766 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7767 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
7768 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7769 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_result.class, metaDataMap);
|
| 420 |
ashish |
7770 |
}
|
|
|
7771 |
|
| 695 |
rajveer |
7772 |
public updatePaymentDetails_result() {
|
| 420 |
ashish |
7773 |
}
|
|
|
7774 |
|
| 695 |
rajveer |
7775 |
public updatePaymentDetails_result(
|
|
|
7776 |
boolean success,
|
| 420 |
ashish |
7777 |
PaymentException pe)
|
|
|
7778 |
{
|
|
|
7779 |
this();
|
| 695 |
rajveer |
7780 |
this.success = success;
|
|
|
7781 |
setSuccessIsSet(true);
|
| 420 |
ashish |
7782 |
this.pe = pe;
|
|
|
7783 |
}
|
|
|
7784 |
|
|
|
7785 |
/**
|
|
|
7786 |
* Performs a deep copy on <i>other</i>.
|
|
|
7787 |
*/
|
| 695 |
rajveer |
7788 |
public updatePaymentDetails_result(updatePaymentDetails_result other) {
|
|
|
7789 |
__isset_bit_vector.clear();
|
|
|
7790 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
7791 |
this.success = other.success;
|
| 420 |
ashish |
7792 |
if (other.isSetPe()) {
|
|
|
7793 |
this.pe = new PaymentException(other.pe);
|
|
|
7794 |
}
|
|
|
7795 |
}
|
|
|
7796 |
|
| 695 |
rajveer |
7797 |
public updatePaymentDetails_result deepCopy() {
|
|
|
7798 |
return new updatePaymentDetails_result(this);
|
| 420 |
ashish |
7799 |
}
|
|
|
7800 |
|
| 3430 |
rajveer |
7801 |
@Override
|
|
|
7802 |
public void clear() {
|
|
|
7803 |
setSuccessIsSet(false);
|
|
|
7804 |
this.success = false;
|
|
|
7805 |
this.pe = null;
|
| 420 |
ashish |
7806 |
}
|
|
|
7807 |
|
| 695 |
rajveer |
7808 |
public boolean isSuccess() {
|
|
|
7809 |
return this.success;
|
|
|
7810 |
}
|
|
|
7811 |
|
| 3430 |
rajveer |
7812 |
public void setSuccess(boolean success) {
|
| 695 |
rajveer |
7813 |
this.success = success;
|
|
|
7814 |
setSuccessIsSet(true);
|
|
|
7815 |
}
|
|
|
7816 |
|
|
|
7817 |
public void unsetSuccess() {
|
|
|
7818 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
7819 |
}
|
|
|
7820 |
|
| 3430 |
rajveer |
7821 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 695 |
rajveer |
7822 |
public boolean isSetSuccess() {
|
|
|
7823 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
7824 |
}
|
|
|
7825 |
|
|
|
7826 |
public void setSuccessIsSet(boolean value) {
|
|
|
7827 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
7828 |
}
|
|
|
7829 |
|
| 420 |
ashish |
7830 |
public PaymentException getPe() {
|
|
|
7831 |
return this.pe;
|
|
|
7832 |
}
|
|
|
7833 |
|
| 3430 |
rajveer |
7834 |
public void setPe(PaymentException pe) {
|
| 420 |
ashish |
7835 |
this.pe = pe;
|
|
|
7836 |
}
|
|
|
7837 |
|
|
|
7838 |
public void unsetPe() {
|
|
|
7839 |
this.pe = null;
|
|
|
7840 |
}
|
|
|
7841 |
|
| 3430 |
rajveer |
7842 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 420 |
ashish |
7843 |
public boolean isSetPe() {
|
|
|
7844 |
return this.pe != null;
|
|
|
7845 |
}
|
|
|
7846 |
|
|
|
7847 |
public void setPeIsSet(boolean value) {
|
|
|
7848 |
if (!value) {
|
|
|
7849 |
this.pe = null;
|
|
|
7850 |
}
|
|
|
7851 |
}
|
|
|
7852 |
|
|
|
7853 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7854 |
switch (field) {
|
| 695 |
rajveer |
7855 |
case SUCCESS:
|
|
|
7856 |
if (value == null) {
|
|
|
7857 |
unsetSuccess();
|
|
|
7858 |
} else {
|
|
|
7859 |
setSuccess((Boolean)value);
|
|
|
7860 |
}
|
|
|
7861 |
break;
|
|
|
7862 |
|
| 420 |
ashish |
7863 |
case PE:
|
|
|
7864 |
if (value == null) {
|
|
|
7865 |
unsetPe();
|
|
|
7866 |
} else {
|
|
|
7867 |
setPe((PaymentException)value);
|
|
|
7868 |
}
|
|
|
7869 |
break;
|
|
|
7870 |
|
|
|
7871 |
}
|
|
|
7872 |
}
|
|
|
7873 |
|
|
|
7874 |
public Object getFieldValue(_Fields field) {
|
|
|
7875 |
switch (field) {
|
| 695 |
rajveer |
7876 |
case SUCCESS:
|
| 3430 |
rajveer |
7877 |
return Boolean.valueOf(isSuccess());
|
| 695 |
rajveer |
7878 |
|
| 420 |
ashish |
7879 |
case PE:
|
|
|
7880 |
return getPe();
|
|
|
7881 |
|
|
|
7882 |
}
|
|
|
7883 |
throw new IllegalStateException();
|
|
|
7884 |
}
|
|
|
7885 |
|
| 3430 |
rajveer |
7886 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7887 |
public boolean isSet(_Fields field) {
|
|
|
7888 |
if (field == null) {
|
|
|
7889 |
throw new IllegalArgumentException();
|
|
|
7890 |
}
|
| 420 |
ashish |
7891 |
|
|
|
7892 |
switch (field) {
|
| 695 |
rajveer |
7893 |
case SUCCESS:
|
|
|
7894 |
return isSetSuccess();
|
| 420 |
ashish |
7895 |
case PE:
|
|
|
7896 |
return isSetPe();
|
|
|
7897 |
}
|
|
|
7898 |
throw new IllegalStateException();
|
|
|
7899 |
}
|
|
|
7900 |
|
|
|
7901 |
@Override
|
|
|
7902 |
public boolean equals(Object that) {
|
|
|
7903 |
if (that == null)
|
|
|
7904 |
return false;
|
| 695 |
rajveer |
7905 |
if (that instanceof updatePaymentDetails_result)
|
|
|
7906 |
return this.equals((updatePaymentDetails_result)that);
|
| 420 |
ashish |
7907 |
return false;
|
|
|
7908 |
}
|
|
|
7909 |
|
| 695 |
rajveer |
7910 |
public boolean equals(updatePaymentDetails_result that) {
|
| 420 |
ashish |
7911 |
if (that == null)
|
|
|
7912 |
return false;
|
|
|
7913 |
|
| 695 |
rajveer |
7914 |
boolean this_present_success = true;
|
|
|
7915 |
boolean that_present_success = true;
|
|
|
7916 |
if (this_present_success || that_present_success) {
|
|
|
7917 |
if (!(this_present_success && that_present_success))
|
|
|
7918 |
return false;
|
|
|
7919 |
if (this.success != that.success)
|
|
|
7920 |
return false;
|
|
|
7921 |
}
|
|
|
7922 |
|
| 420 |
ashish |
7923 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
7924 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
7925 |
if (this_present_pe || that_present_pe) {
|
|
|
7926 |
if (!(this_present_pe && that_present_pe))
|
|
|
7927 |
return false;
|
|
|
7928 |
if (!this.pe.equals(that.pe))
|
|
|
7929 |
return false;
|
|
|
7930 |
}
|
|
|
7931 |
|
|
|
7932 |
return true;
|
|
|
7933 |
}
|
|
|
7934 |
|
|
|
7935 |
@Override
|
|
|
7936 |
public int hashCode() {
|
|
|
7937 |
return 0;
|
|
|
7938 |
}
|
|
|
7939 |
|
| 695 |
rajveer |
7940 |
public int compareTo(updatePaymentDetails_result other) {
|
| 420 |
ashish |
7941 |
if (!getClass().equals(other.getClass())) {
|
|
|
7942 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7943 |
}
|
|
|
7944 |
|
|
|
7945 |
int lastComparison = 0;
|
| 695 |
rajveer |
7946 |
updatePaymentDetails_result typedOther = (updatePaymentDetails_result)other;
|
| 420 |
ashish |
7947 |
|
| 3430 |
rajveer |
7948 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 695 |
rajveer |
7949 |
if (lastComparison != 0) {
|
|
|
7950 |
return lastComparison;
|
|
|
7951 |
}
|
| 3430 |
rajveer |
7952 |
if (isSetSuccess()) {
|
|
|
7953 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
7954 |
if (lastComparison != 0) {
|
|
|
7955 |
return lastComparison;
|
|
|
7956 |
}
|
| 695 |
rajveer |
7957 |
}
|
| 3430 |
rajveer |
7958 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 420 |
ashish |
7959 |
if (lastComparison != 0) {
|
|
|
7960 |
return lastComparison;
|
|
|
7961 |
}
|
| 3430 |
rajveer |
7962 |
if (isSetPe()) {
|
|
|
7963 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
7964 |
if (lastComparison != 0) {
|
|
|
7965 |
return lastComparison;
|
|
|
7966 |
}
|
| 420 |
ashish |
7967 |
}
|
|
|
7968 |
return 0;
|
|
|
7969 |
}
|
|
|
7970 |
|
| 3430 |
rajveer |
7971 |
public _Fields fieldForId(int fieldId) {
|
|
|
7972 |
return _Fields.findByThriftId(fieldId);
|
|
|
7973 |
}
|
|
|
7974 |
|
|
|
7975 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7976 |
org.apache.thrift.protocol.TField field;
|
| 420 |
ashish |
7977 |
iprot.readStructBegin();
|
|
|
7978 |
while (true)
|
|
|
7979 |
{
|
|
|
7980 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7981 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 420 |
ashish |
7982 |
break;
|
|
|
7983 |
}
|
| 3430 |
rajveer |
7984 |
switch (field.id) {
|
|
|
7985 |
case 0: // SUCCESS
|
|
|
7986 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
7987 |
this.success = iprot.readBool();
|
|
|
7988 |
setSuccessIsSet(true);
|
|
|
7989 |
} else {
|
|
|
7990 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7991 |
}
|
|
|
7992 |
break;
|
|
|
7993 |
case 1: // PE
|
|
|
7994 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
7995 |
this.pe = new PaymentException();
|
|
|
7996 |
this.pe.read(iprot);
|
|
|
7997 |
} else {
|
|
|
7998 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7999 |
}
|
|
|
8000 |
break;
|
|
|
8001 |
default:
|
|
|
8002 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 420 |
ashish |
8003 |
}
|
| 3430 |
rajveer |
8004 |
iprot.readFieldEnd();
|
| 420 |
ashish |
8005 |
}
|
|
|
8006 |
iprot.readStructEnd();
|
|
|
8007 |
validate();
|
|
|
8008 |
}
|
|
|
8009 |
|
| 3430 |
rajveer |
8010 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 420 |
ashish |
8011 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8012 |
|
| 695 |
rajveer |
8013 |
if (this.isSetSuccess()) {
|
|
|
8014 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
8015 |
oprot.writeBool(this.success);
|
|
|
8016 |
oprot.writeFieldEnd();
|
|
|
8017 |
} else if (this.isSetPe()) {
|
| 420 |
ashish |
8018 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
8019 |
this.pe.write(oprot);
|
|
|
8020 |
oprot.writeFieldEnd();
|
|
|
8021 |
}
|
|
|
8022 |
oprot.writeFieldStop();
|
|
|
8023 |
oprot.writeStructEnd();
|
|
|
8024 |
}
|
|
|
8025 |
|
|
|
8026 |
@Override
|
|
|
8027 |
public String toString() {
|
| 695 |
rajveer |
8028 |
StringBuilder sb = new StringBuilder("updatePaymentDetails_result(");
|
| 420 |
ashish |
8029 |
boolean first = true;
|
|
|
8030 |
|
| 695 |
rajveer |
8031 |
sb.append("success:");
|
|
|
8032 |
sb.append(this.success);
|
|
|
8033 |
first = false;
|
|
|
8034 |
if (!first) sb.append(", ");
|
| 420 |
ashish |
8035 |
sb.append("pe:");
|
|
|
8036 |
if (this.pe == null) {
|
|
|
8037 |
sb.append("null");
|
|
|
8038 |
} else {
|
|
|
8039 |
sb.append(this.pe);
|
|
|
8040 |
}
|
|
|
8041 |
first = false;
|
|
|
8042 |
sb.append(")");
|
|
|
8043 |
return sb.toString();
|
|
|
8044 |
}
|
|
|
8045 |
|
| 3430 |
rajveer |
8046 |
public void validate() throws org.apache.thrift.TException {
|
| 420 |
ashish |
8047 |
// check for required fields
|
|
|
8048 |
}
|
|
|
8049 |
|
| 3430 |
rajveer |
8050 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8051 |
try {
|
|
|
8052 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8053 |
} catch (org.apache.thrift.TException te) {
|
|
|
8054 |
throw new java.io.IOException(te);
|
|
|
8055 |
}
|
|
|
8056 |
}
|
|
|
8057 |
|
|
|
8058 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8059 |
try {
|
|
|
8060 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8061 |
} catch (org.apache.thrift.TException te) {
|
|
|
8062 |
throw new java.io.IOException(te);
|
|
|
8063 |
}
|
|
|
8064 |
}
|
|
|
8065 |
|
| 420 |
ashish |
8066 |
}
|
|
|
8067 |
|
| 3430 |
rajveer |
8068 |
public static class getSuccessfulPaymentsAmountRange_args implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_args, getSuccessfulPaymentsAmountRange_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8069 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_args");
|
| 1629 |
ankur.sing |
8070 |
|
|
|
8071 |
|
|
|
8072 |
|
|
|
8073 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
8074 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1629 |
ankur.sing |
8075 |
;
|
|
|
8076 |
|
|
|
8077 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8078 |
|
|
|
8079 |
static {
|
|
|
8080 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8081 |
byName.put(field.getFieldName(), field);
|
|
|
8082 |
}
|
|
|
8083 |
}
|
|
|
8084 |
|
|
|
8085 |
/**
|
|
|
8086 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8087 |
*/
|
|
|
8088 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
8089 |
switch(fieldId) {
|
|
|
8090 |
default:
|
|
|
8091 |
return null;
|
|
|
8092 |
}
|
| 1629 |
ankur.sing |
8093 |
}
|
|
|
8094 |
|
|
|
8095 |
/**
|
|
|
8096 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8097 |
* if it is not found.
|
|
|
8098 |
*/
|
|
|
8099 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8100 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8101 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8102 |
return fields;
|
|
|
8103 |
}
|
|
|
8104 |
|
|
|
8105 |
/**
|
|
|
8106 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8107 |
*/
|
|
|
8108 |
public static _Fields findByName(String name) {
|
|
|
8109 |
return byName.get(name);
|
|
|
8110 |
}
|
|
|
8111 |
|
|
|
8112 |
private final short _thriftId;
|
|
|
8113 |
private final String _fieldName;
|
|
|
8114 |
|
|
|
8115 |
_Fields(short thriftId, String fieldName) {
|
|
|
8116 |
_thriftId = thriftId;
|
|
|
8117 |
_fieldName = fieldName;
|
|
|
8118 |
}
|
|
|
8119 |
|
|
|
8120 |
public short getThriftFieldId() {
|
|
|
8121 |
return _thriftId;
|
|
|
8122 |
}
|
|
|
8123 |
|
|
|
8124 |
public String getFieldName() {
|
|
|
8125 |
return _fieldName;
|
|
|
8126 |
}
|
|
|
8127 |
}
|
| 3430 |
rajveer |
8128 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1629 |
ankur.sing |
8129 |
static {
|
| 3430 |
rajveer |
8130 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8131 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8132 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_args.class, metaDataMap);
|
| 1629 |
ankur.sing |
8133 |
}
|
|
|
8134 |
|
| 1731 |
ankur.sing |
8135 |
public getSuccessfulPaymentsAmountRange_args() {
|
| 1629 |
ankur.sing |
8136 |
}
|
|
|
8137 |
|
|
|
8138 |
/**
|
|
|
8139 |
* Performs a deep copy on <i>other</i>.
|
|
|
8140 |
*/
|
| 1731 |
ankur.sing |
8141 |
public getSuccessfulPaymentsAmountRange_args(getSuccessfulPaymentsAmountRange_args other) {
|
| 1629 |
ankur.sing |
8142 |
}
|
|
|
8143 |
|
| 1731 |
ankur.sing |
8144 |
public getSuccessfulPaymentsAmountRange_args deepCopy() {
|
|
|
8145 |
return new getSuccessfulPaymentsAmountRange_args(this);
|
| 1629 |
ankur.sing |
8146 |
}
|
|
|
8147 |
|
| 3430 |
rajveer |
8148 |
@Override
|
|
|
8149 |
public void clear() {
|
| 1629 |
ankur.sing |
8150 |
}
|
|
|
8151 |
|
|
|
8152 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8153 |
switch (field) {
|
|
|
8154 |
}
|
|
|
8155 |
}
|
|
|
8156 |
|
|
|
8157 |
public Object getFieldValue(_Fields field) {
|
|
|
8158 |
switch (field) {
|
|
|
8159 |
}
|
|
|
8160 |
throw new IllegalStateException();
|
|
|
8161 |
}
|
|
|
8162 |
|
| 3430 |
rajveer |
8163 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8164 |
public boolean isSet(_Fields field) {
|
|
|
8165 |
if (field == null) {
|
|
|
8166 |
throw new IllegalArgumentException();
|
|
|
8167 |
}
|
| 1629 |
ankur.sing |
8168 |
|
|
|
8169 |
switch (field) {
|
|
|
8170 |
}
|
|
|
8171 |
throw new IllegalStateException();
|
|
|
8172 |
}
|
|
|
8173 |
|
|
|
8174 |
@Override
|
|
|
8175 |
public boolean equals(Object that) {
|
|
|
8176 |
if (that == null)
|
|
|
8177 |
return false;
|
| 1731 |
ankur.sing |
8178 |
if (that instanceof getSuccessfulPaymentsAmountRange_args)
|
|
|
8179 |
return this.equals((getSuccessfulPaymentsAmountRange_args)that);
|
| 1629 |
ankur.sing |
8180 |
return false;
|
|
|
8181 |
}
|
|
|
8182 |
|
| 1731 |
ankur.sing |
8183 |
public boolean equals(getSuccessfulPaymentsAmountRange_args that) {
|
| 1629 |
ankur.sing |
8184 |
if (that == null)
|
|
|
8185 |
return false;
|
|
|
8186 |
|
|
|
8187 |
return true;
|
|
|
8188 |
}
|
|
|
8189 |
|
|
|
8190 |
@Override
|
|
|
8191 |
public int hashCode() {
|
|
|
8192 |
return 0;
|
|
|
8193 |
}
|
|
|
8194 |
|
| 1731 |
ankur.sing |
8195 |
public int compareTo(getSuccessfulPaymentsAmountRange_args other) {
|
| 1629 |
ankur.sing |
8196 |
if (!getClass().equals(other.getClass())) {
|
|
|
8197 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8198 |
}
|
|
|
8199 |
|
|
|
8200 |
int lastComparison = 0;
|
| 1731 |
ankur.sing |
8201 |
getSuccessfulPaymentsAmountRange_args typedOther = (getSuccessfulPaymentsAmountRange_args)other;
|
| 1629 |
ankur.sing |
8202 |
|
|
|
8203 |
return 0;
|
|
|
8204 |
}
|
|
|
8205 |
|
| 3430 |
rajveer |
8206 |
public _Fields fieldForId(int fieldId) {
|
|
|
8207 |
return _Fields.findByThriftId(fieldId);
|
|
|
8208 |
}
|
|
|
8209 |
|
|
|
8210 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8211 |
org.apache.thrift.protocol.TField field;
|
| 1629 |
ankur.sing |
8212 |
iprot.readStructBegin();
|
|
|
8213 |
while (true)
|
|
|
8214 |
{
|
|
|
8215 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
8216 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1629 |
ankur.sing |
8217 |
break;
|
|
|
8218 |
}
|
| 3430 |
rajveer |
8219 |
switch (field.id) {
|
|
|
8220 |
default:
|
|
|
8221 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1629 |
ankur.sing |
8222 |
}
|
| 3430 |
rajveer |
8223 |
iprot.readFieldEnd();
|
| 1629 |
ankur.sing |
8224 |
}
|
|
|
8225 |
iprot.readStructEnd();
|
|
|
8226 |
validate();
|
|
|
8227 |
}
|
|
|
8228 |
|
| 3430 |
rajveer |
8229 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1629 |
ankur.sing |
8230 |
validate();
|
|
|
8231 |
|
|
|
8232 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8233 |
oprot.writeFieldStop();
|
|
|
8234 |
oprot.writeStructEnd();
|
|
|
8235 |
}
|
|
|
8236 |
|
|
|
8237 |
@Override
|
|
|
8238 |
public String toString() {
|
| 1731 |
ankur.sing |
8239 |
StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_args(");
|
| 1629 |
ankur.sing |
8240 |
boolean first = true;
|
|
|
8241 |
|
|
|
8242 |
sb.append(")");
|
|
|
8243 |
return sb.toString();
|
|
|
8244 |
}
|
|
|
8245 |
|
| 3430 |
rajveer |
8246 |
public void validate() throws org.apache.thrift.TException {
|
| 1629 |
ankur.sing |
8247 |
// check for required fields
|
|
|
8248 |
}
|
|
|
8249 |
|
| 3430 |
rajveer |
8250 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8251 |
try {
|
|
|
8252 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8253 |
} catch (org.apache.thrift.TException te) {
|
|
|
8254 |
throw new java.io.IOException(te);
|
|
|
8255 |
}
|
|
|
8256 |
}
|
|
|
8257 |
|
|
|
8258 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8259 |
try {
|
|
|
8260 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8261 |
} catch (org.apache.thrift.TException te) {
|
|
|
8262 |
throw new java.io.IOException(te);
|
|
|
8263 |
}
|
|
|
8264 |
}
|
|
|
8265 |
|
| 1629 |
ankur.sing |
8266 |
}
|
|
|
8267 |
|
| 3430 |
rajveer |
8268 |
public static class getSuccessfulPaymentsAmountRange_result implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_result, getSuccessfulPaymentsAmountRange_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8269 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_result");
|
| 1629 |
ankur.sing |
8270 |
|
| 3430 |
rajveer |
8271 |
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 |
8272 |
|
| 3430 |
rajveer |
8273 |
private List<Double> success; // required
|
| 1629 |
ankur.sing |
8274 |
|
|
|
8275 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
8276 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1629 |
ankur.sing |
8277 |
SUCCESS((short)0, "success");
|
|
|
8278 |
|
|
|
8279 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8280 |
|
|
|
8281 |
static {
|
|
|
8282 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8283 |
byName.put(field.getFieldName(), field);
|
|
|
8284 |
}
|
|
|
8285 |
}
|
|
|
8286 |
|
|
|
8287 |
/**
|
|
|
8288 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8289 |
*/
|
|
|
8290 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
8291 |
switch(fieldId) {
|
|
|
8292 |
case 0: // SUCCESS
|
|
|
8293 |
return SUCCESS;
|
|
|
8294 |
default:
|
|
|
8295 |
return null;
|
|
|
8296 |
}
|
| 1629 |
ankur.sing |
8297 |
}
|
|
|
8298 |
|
|
|
8299 |
/**
|
|
|
8300 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8301 |
* if it is not found.
|
|
|
8302 |
*/
|
|
|
8303 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8304 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8305 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8306 |
return fields;
|
|
|
8307 |
}
|
|
|
8308 |
|
|
|
8309 |
/**
|
|
|
8310 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8311 |
*/
|
|
|
8312 |
public static _Fields findByName(String name) {
|
|
|
8313 |
return byName.get(name);
|
|
|
8314 |
}
|
|
|
8315 |
|
|
|
8316 |
private final short _thriftId;
|
|
|
8317 |
private final String _fieldName;
|
|
|
8318 |
|
|
|
8319 |
_Fields(short thriftId, String fieldName) {
|
|
|
8320 |
_thriftId = thriftId;
|
|
|
8321 |
_fieldName = fieldName;
|
|
|
8322 |
}
|
|
|
8323 |
|
|
|
8324 |
public short getThriftFieldId() {
|
|
|
8325 |
return _thriftId;
|
|
|
8326 |
}
|
|
|
8327 |
|
|
|
8328 |
public String getFieldName() {
|
|
|
8329 |
return _fieldName;
|
|
|
8330 |
}
|
|
|
8331 |
}
|
|
|
8332 |
|
|
|
8333 |
// isset id assignments
|
|
|
8334 |
|
| 3430 |
rajveer |
8335 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1629 |
ankur.sing |
8336 |
static {
|
| 3430 |
rajveer |
8337 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8338 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8339 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
8340 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
|
|
|
8341 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8342 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_result.class, metaDataMap);
|
| 1629 |
ankur.sing |
8343 |
}
|
|
|
8344 |
|
| 1731 |
ankur.sing |
8345 |
public getSuccessfulPaymentsAmountRange_result() {
|
| 1629 |
ankur.sing |
8346 |
}
|
|
|
8347 |
|
| 1731 |
ankur.sing |
8348 |
public getSuccessfulPaymentsAmountRange_result(
|
|
|
8349 |
List<Double> success)
|
| 1629 |
ankur.sing |
8350 |
{
|
|
|
8351 |
this();
|
|
|
8352 |
this.success = success;
|
|
|
8353 |
}
|
|
|
8354 |
|
|
|
8355 |
/**
|
|
|
8356 |
* Performs a deep copy on <i>other</i>.
|
|
|
8357 |
*/
|
| 1731 |
ankur.sing |
8358 |
public getSuccessfulPaymentsAmountRange_result(getSuccessfulPaymentsAmountRange_result other) {
|
|
|
8359 |
if (other.isSetSuccess()) {
|
|
|
8360 |
List<Double> __this__success = new ArrayList<Double>();
|
|
|
8361 |
for (Double other_element : other.success) {
|
|
|
8362 |
__this__success.add(other_element);
|
| 1629 |
ankur.sing |
8363 |
}
|
| 1731 |
ankur.sing |
8364 |
this.success = __this__success;
|
| 1629 |
ankur.sing |
8365 |
}
|
|
|
8366 |
}
|
|
|
8367 |
|
| 1731 |
ankur.sing |
8368 |
public getSuccessfulPaymentsAmountRange_result deepCopy() {
|
|
|
8369 |
return new getSuccessfulPaymentsAmountRange_result(this);
|
| 1629 |
ankur.sing |
8370 |
}
|
|
|
8371 |
|
| 3430 |
rajveer |
8372 |
@Override
|
|
|
8373 |
public void clear() {
|
|
|
8374 |
this.success = null;
|
| 1629 |
ankur.sing |
8375 |
}
|
|
|
8376 |
|
| 1731 |
ankur.sing |
8377 |
public int getSuccessSize() {
|
|
|
8378 |
return (this.success == null) ? 0 : this.success.size();
|
| 1629 |
ankur.sing |
8379 |
}
|
|
|
8380 |
|
| 1731 |
ankur.sing |
8381 |
public java.util.Iterator<Double> getSuccessIterator() {
|
|
|
8382 |
return (this.success == null) ? null : this.success.iterator();
|
| 1629 |
ankur.sing |
8383 |
}
|
|
|
8384 |
|
| 1731 |
ankur.sing |
8385 |
public void addToSuccess(double elem) {
|
|
|
8386 |
if (this.success == null) {
|
|
|
8387 |
this.success = new ArrayList<Double>();
|
| 1629 |
ankur.sing |
8388 |
}
|
| 1731 |
ankur.sing |
8389 |
this.success.add(elem);
|
| 1629 |
ankur.sing |
8390 |
}
|
|
|
8391 |
|
| 1731 |
ankur.sing |
8392 |
public List<Double> getSuccess() {
|
| 1629 |
ankur.sing |
8393 |
return this.success;
|
|
|
8394 |
}
|
|
|
8395 |
|
| 3430 |
rajveer |
8396 |
public void setSuccess(List<Double> success) {
|
| 1629 |
ankur.sing |
8397 |
this.success = success;
|
|
|
8398 |
}
|
|
|
8399 |
|
|
|
8400 |
public void unsetSuccess() {
|
| 1731 |
ankur.sing |
8401 |
this.success = null;
|
| 1629 |
ankur.sing |
8402 |
}
|
|
|
8403 |
|
| 3430 |
rajveer |
8404 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 1629 |
ankur.sing |
8405 |
public boolean isSetSuccess() {
|
| 1731 |
ankur.sing |
8406 |
return this.success != null;
|
| 1629 |
ankur.sing |
8407 |
}
|
|
|
8408 |
|
|
|
8409 |
public void setSuccessIsSet(boolean value) {
|
| 1731 |
ankur.sing |
8410 |
if (!value) {
|
|
|
8411 |
this.success = null;
|
|
|
8412 |
}
|
| 1629 |
ankur.sing |
8413 |
}
|
|
|
8414 |
|
|
|
8415 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8416 |
switch (field) {
|
|
|
8417 |
case SUCCESS:
|
|
|
8418 |
if (value == null) {
|
|
|
8419 |
unsetSuccess();
|
|
|
8420 |
} else {
|
| 1731 |
ankur.sing |
8421 |
setSuccess((List<Double>)value);
|
| 1629 |
ankur.sing |
8422 |
}
|
|
|
8423 |
break;
|
|
|
8424 |
|
|
|
8425 |
}
|
|
|
8426 |
}
|
|
|
8427 |
|
|
|
8428 |
public Object getFieldValue(_Fields field) {
|
|
|
8429 |
switch (field) {
|
|
|
8430 |
case SUCCESS:
|
| 1731 |
ankur.sing |
8431 |
return getSuccess();
|
| 1629 |
ankur.sing |
8432 |
|
|
|
8433 |
}
|
|
|
8434 |
throw new IllegalStateException();
|
|
|
8435 |
}
|
|
|
8436 |
|
| 3430 |
rajveer |
8437 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8438 |
public boolean isSet(_Fields field) {
|
|
|
8439 |
if (field == null) {
|
|
|
8440 |
throw new IllegalArgumentException();
|
|
|
8441 |
}
|
| 1629 |
ankur.sing |
8442 |
|
|
|
8443 |
switch (field) {
|
|
|
8444 |
case SUCCESS:
|
|
|
8445 |
return isSetSuccess();
|
|
|
8446 |
}
|
|
|
8447 |
throw new IllegalStateException();
|
|
|
8448 |
}
|
|
|
8449 |
|
|
|
8450 |
@Override
|
|
|
8451 |
public boolean equals(Object that) {
|
|
|
8452 |
if (that == null)
|
|
|
8453 |
return false;
|
| 1731 |
ankur.sing |
8454 |
if (that instanceof getSuccessfulPaymentsAmountRange_result)
|
|
|
8455 |
return this.equals((getSuccessfulPaymentsAmountRange_result)that);
|
| 1629 |
ankur.sing |
8456 |
return false;
|
|
|
8457 |
}
|
|
|
8458 |
|
| 1731 |
ankur.sing |
8459 |
public boolean equals(getSuccessfulPaymentsAmountRange_result that) {
|
| 1629 |
ankur.sing |
8460 |
if (that == null)
|
|
|
8461 |
return false;
|
|
|
8462 |
|
| 1731 |
ankur.sing |
8463 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8464 |
boolean that_present_success = true && that.isSetSuccess();
|
| 1629 |
ankur.sing |
8465 |
if (this_present_success || that_present_success) {
|
|
|
8466 |
if (!(this_present_success && that_present_success))
|
|
|
8467 |
return false;
|
| 1731 |
ankur.sing |
8468 |
if (!this.success.equals(that.success))
|
| 1629 |
ankur.sing |
8469 |
return false;
|
|
|
8470 |
}
|
|
|
8471 |
|
|
|
8472 |
return true;
|
|
|
8473 |
}
|
|
|
8474 |
|
|
|
8475 |
@Override
|
|
|
8476 |
public int hashCode() {
|
|
|
8477 |
return 0;
|
|
|
8478 |
}
|
|
|
8479 |
|
| 1731 |
ankur.sing |
8480 |
public int compareTo(getSuccessfulPaymentsAmountRange_result other) {
|
| 1629 |
ankur.sing |
8481 |
if (!getClass().equals(other.getClass())) {
|
|
|
8482 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8483 |
}
|
|
|
8484 |
|
|
|
8485 |
int lastComparison = 0;
|
| 1731 |
ankur.sing |
8486 |
getSuccessfulPaymentsAmountRange_result typedOther = (getSuccessfulPaymentsAmountRange_result)other;
|
| 1629 |
ankur.sing |
8487 |
|
| 3430 |
rajveer |
8488 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 1629 |
ankur.sing |
8489 |
if (lastComparison != 0) {
|
|
|
8490 |
return lastComparison;
|
|
|
8491 |
}
|
| 3430 |
rajveer |
8492 |
if (isSetSuccess()) {
|
|
|
8493 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
8494 |
if (lastComparison != 0) {
|
|
|
8495 |
return lastComparison;
|
|
|
8496 |
}
|
| 1629 |
ankur.sing |
8497 |
}
|
|
|
8498 |
return 0;
|
|
|
8499 |
}
|
|
|
8500 |
|
| 3430 |
rajveer |
8501 |
public _Fields fieldForId(int fieldId) {
|
|
|
8502 |
return _Fields.findByThriftId(fieldId);
|
|
|
8503 |
}
|
|
|
8504 |
|
|
|
8505 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8506 |
org.apache.thrift.protocol.TField field;
|
| 1629 |
ankur.sing |
8507 |
iprot.readStructBegin();
|
|
|
8508 |
while (true)
|
|
|
8509 |
{
|
|
|
8510 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
8511 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1629 |
ankur.sing |
8512 |
break;
|
|
|
8513 |
}
|
| 3430 |
rajveer |
8514 |
switch (field.id) {
|
|
|
8515 |
case 0: // SUCCESS
|
|
|
8516 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
8517 |
{
|
|
|
8518 |
org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
|
|
|
8519 |
this.success = new ArrayList<Double>(_list28.size);
|
|
|
8520 |
for (int _i29 = 0; _i29 < _list28.size; ++_i29)
|
| 1731 |
ankur.sing |
8521 |
{
|
| 3430 |
rajveer |
8522 |
double _elem30; // required
|
|
|
8523 |
_elem30 = iprot.readDouble();
|
|
|
8524 |
this.success.add(_elem30);
|
| 1731 |
ankur.sing |
8525 |
}
|
| 3430 |
rajveer |
8526 |
iprot.readListEnd();
|
| 1629 |
ankur.sing |
8527 |
}
|
| 3430 |
rajveer |
8528 |
} else {
|
|
|
8529 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8530 |
}
|
|
|
8531 |
break;
|
|
|
8532 |
default:
|
|
|
8533 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1629 |
ankur.sing |
8534 |
}
|
| 3430 |
rajveer |
8535 |
iprot.readFieldEnd();
|
| 1629 |
ankur.sing |
8536 |
}
|
|
|
8537 |
iprot.readStructEnd();
|
|
|
8538 |
validate();
|
|
|
8539 |
}
|
|
|
8540 |
|
| 3430 |
rajveer |
8541 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1629 |
ankur.sing |
8542 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8543 |
|
|
|
8544 |
if (this.isSetSuccess()) {
|
|
|
8545 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 1731 |
ankur.sing |
8546 |
{
|
| 3430 |
rajveer |
8547 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
|
| 2747 |
chandransh |
8548 |
for (double _iter31 : this.success)
|
| 1731 |
ankur.sing |
8549 |
{
|
| 2747 |
chandransh |
8550 |
oprot.writeDouble(_iter31);
|
| 1731 |
ankur.sing |
8551 |
}
|
|
|
8552 |
oprot.writeListEnd();
|
|
|
8553 |
}
|
| 1629 |
ankur.sing |
8554 |
oprot.writeFieldEnd();
|
|
|
8555 |
}
|
|
|
8556 |
oprot.writeFieldStop();
|
|
|
8557 |
oprot.writeStructEnd();
|
|
|
8558 |
}
|
|
|
8559 |
|
|
|
8560 |
@Override
|
|
|
8561 |
public String toString() {
|
| 1731 |
ankur.sing |
8562 |
StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_result(");
|
| 1629 |
ankur.sing |
8563 |
boolean first = true;
|
|
|
8564 |
|
|
|
8565 |
sb.append("success:");
|
| 1731 |
ankur.sing |
8566 |
if (this.success == null) {
|
|
|
8567 |
sb.append("null");
|
|
|
8568 |
} else {
|
|
|
8569 |
sb.append(this.success);
|
|
|
8570 |
}
|
| 1629 |
ankur.sing |
8571 |
first = false;
|
|
|
8572 |
sb.append(")");
|
|
|
8573 |
return sb.toString();
|
|
|
8574 |
}
|
|
|
8575 |
|
| 3430 |
rajveer |
8576 |
public void validate() throws org.apache.thrift.TException {
|
| 1629 |
ankur.sing |
8577 |
// check for required fields
|
|
|
8578 |
}
|
|
|
8579 |
|
| 3430 |
rajveer |
8580 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8581 |
try {
|
|
|
8582 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8583 |
} catch (org.apache.thrift.TException te) {
|
|
|
8584 |
throw new java.io.IOException(te);
|
|
|
8585 |
}
|
|
|
8586 |
}
|
|
|
8587 |
|
|
|
8588 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8589 |
try {
|
|
|
8590 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8591 |
} catch (org.apache.thrift.TException te) {
|
|
|
8592 |
throw new java.io.IOException(te);
|
|
|
8593 |
}
|
|
|
8594 |
}
|
|
|
8595 |
|
| 1629 |
ankur.sing |
8596 |
}
|
|
|
8597 |
|
| 3430 |
rajveer |
8598 |
public static class captureEbsPayment_args implements org.apache.thrift.TBase<captureEbsPayment_args, captureEbsPayment_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8599 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("captureEbsPayment_args");
|
| 2462 |
chandransh |
8600 |
|
| 3430 |
rajveer |
8601 |
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 |
8602 |
|
| 3430 |
rajveer |
8603 |
private long merchantPaymentId; // required
|
| 2462 |
chandransh |
8604 |
|
|
|
8605 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
8606 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3010 |
chandransh |
8607 |
MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
|
| 2462 |
chandransh |
8608 |
|
|
|
8609 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8610 |
|
|
|
8611 |
static {
|
|
|
8612 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8613 |
byName.put(field.getFieldName(), field);
|
|
|
8614 |
}
|
|
|
8615 |
}
|
|
|
8616 |
|
|
|
8617 |
/**
|
|
|
8618 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8619 |
*/
|
|
|
8620 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
8621 |
switch(fieldId) {
|
|
|
8622 |
case 1: // MERCHANT_PAYMENT_ID
|
|
|
8623 |
return MERCHANT_PAYMENT_ID;
|
|
|
8624 |
default:
|
|
|
8625 |
return null;
|
|
|
8626 |
}
|
| 2462 |
chandransh |
8627 |
}
|
|
|
8628 |
|
|
|
8629 |
/**
|
|
|
8630 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8631 |
* if it is not found.
|
|
|
8632 |
*/
|
|
|
8633 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8634 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8635 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8636 |
return fields;
|
|
|
8637 |
}
|
|
|
8638 |
|
|
|
8639 |
/**
|
|
|
8640 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8641 |
*/
|
|
|
8642 |
public static _Fields findByName(String name) {
|
|
|
8643 |
return byName.get(name);
|
|
|
8644 |
}
|
|
|
8645 |
|
|
|
8646 |
private final short _thriftId;
|
|
|
8647 |
private final String _fieldName;
|
|
|
8648 |
|
|
|
8649 |
_Fields(short thriftId, String fieldName) {
|
|
|
8650 |
_thriftId = thriftId;
|
|
|
8651 |
_fieldName = fieldName;
|
|
|
8652 |
}
|
|
|
8653 |
|
|
|
8654 |
public short getThriftFieldId() {
|
|
|
8655 |
return _thriftId;
|
|
|
8656 |
}
|
|
|
8657 |
|
|
|
8658 |
public String getFieldName() {
|
|
|
8659 |
return _fieldName;
|
|
|
8660 |
}
|
|
|
8661 |
}
|
|
|
8662 |
|
|
|
8663 |
// isset id assignments
|
| 3010 |
chandransh |
8664 |
private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
|
|
|
8665 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 2462 |
chandransh |
8666 |
|
| 3430 |
rajveer |
8667 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2462 |
chandransh |
8668 |
static {
|
| 3430 |
rajveer |
8669 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8670 |
tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8671 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
8672 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8673 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(captureEbsPayment_args.class, metaDataMap);
|
| 2462 |
chandransh |
8674 |
}
|
|
|
8675 |
|
| 3010 |
chandransh |
8676 |
public captureEbsPayment_args() {
|
| 2462 |
chandransh |
8677 |
}
|
|
|
8678 |
|
| 3010 |
chandransh |
8679 |
public captureEbsPayment_args(
|
|
|
8680 |
long merchantPaymentId)
|
| 2462 |
chandransh |
8681 |
{
|
|
|
8682 |
this();
|
| 3010 |
chandransh |
8683 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
8684 |
setMerchantPaymentIdIsSet(true);
|
| 2462 |
chandransh |
8685 |
}
|
|
|
8686 |
|
|
|
8687 |
/**
|
|
|
8688 |
* Performs a deep copy on <i>other</i>.
|
|
|
8689 |
*/
|
| 3010 |
chandransh |
8690 |
public captureEbsPayment_args(captureEbsPayment_args other) {
|
|
|
8691 |
__isset_bit_vector.clear();
|
|
|
8692 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
8693 |
this.merchantPaymentId = other.merchantPaymentId;
|
| 2462 |
chandransh |
8694 |
}
|
|
|
8695 |
|
| 3010 |
chandransh |
8696 |
public captureEbsPayment_args deepCopy() {
|
|
|
8697 |
return new captureEbsPayment_args(this);
|
| 2462 |
chandransh |
8698 |
}
|
|
|
8699 |
|
| 3430 |
rajveer |
8700 |
@Override
|
|
|
8701 |
public void clear() {
|
|
|
8702 |
setMerchantPaymentIdIsSet(false);
|
|
|
8703 |
this.merchantPaymentId = 0;
|
| 2462 |
chandransh |
8704 |
}
|
|
|
8705 |
|
| 3010 |
chandransh |
8706 |
public long getMerchantPaymentId() {
|
|
|
8707 |
return this.merchantPaymentId;
|
| 2462 |
chandransh |
8708 |
}
|
|
|
8709 |
|
| 3430 |
rajveer |
8710 |
public void setMerchantPaymentId(long merchantPaymentId) {
|
| 3010 |
chandransh |
8711 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
8712 |
setMerchantPaymentIdIsSet(true);
|
| 2462 |
chandransh |
8713 |
}
|
|
|
8714 |
|
| 3010 |
chandransh |
8715 |
public void unsetMerchantPaymentId() {
|
|
|
8716 |
__isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
|
| 2462 |
chandransh |
8717 |
}
|
|
|
8718 |
|
| 3430 |
rajveer |
8719 |
/** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
|
| 3010 |
chandransh |
8720 |
public boolean isSetMerchantPaymentId() {
|
|
|
8721 |
return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
|
| 2462 |
chandransh |
8722 |
}
|
|
|
8723 |
|
| 3010 |
chandransh |
8724 |
public void setMerchantPaymentIdIsSet(boolean value) {
|
|
|
8725 |
__isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
|
| 2462 |
chandransh |
8726 |
}
|
|
|
8727 |
|
|
|
8728 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8729 |
switch (field) {
|
| 3010 |
chandransh |
8730 |
case MERCHANT_PAYMENT_ID:
|
| 2462 |
chandransh |
8731 |
if (value == null) {
|
| 3010 |
chandransh |
8732 |
unsetMerchantPaymentId();
|
| 2462 |
chandransh |
8733 |
} else {
|
| 3010 |
chandransh |
8734 |
setMerchantPaymentId((Long)value);
|
| 2462 |
chandransh |
8735 |
}
|
|
|
8736 |
break;
|
|
|
8737 |
|
|
|
8738 |
}
|
|
|
8739 |
}
|
|
|
8740 |
|
|
|
8741 |
public Object getFieldValue(_Fields field) {
|
|
|
8742 |
switch (field) {
|
| 3010 |
chandransh |
8743 |
case MERCHANT_PAYMENT_ID:
|
| 3430 |
rajveer |
8744 |
return Long.valueOf(getMerchantPaymentId());
|
| 2462 |
chandransh |
8745 |
|
|
|
8746 |
}
|
|
|
8747 |
throw new IllegalStateException();
|
|
|
8748 |
}
|
|
|
8749 |
|
| 3430 |
rajveer |
8750 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8751 |
public boolean isSet(_Fields field) {
|
|
|
8752 |
if (field == null) {
|
|
|
8753 |
throw new IllegalArgumentException();
|
|
|
8754 |
}
|
| 2462 |
chandransh |
8755 |
|
|
|
8756 |
switch (field) {
|
| 3010 |
chandransh |
8757 |
case MERCHANT_PAYMENT_ID:
|
|
|
8758 |
return isSetMerchantPaymentId();
|
| 2462 |
chandransh |
8759 |
}
|
|
|
8760 |
throw new IllegalStateException();
|
|
|
8761 |
}
|
|
|
8762 |
|
|
|
8763 |
@Override
|
|
|
8764 |
public boolean equals(Object that) {
|
|
|
8765 |
if (that == null)
|
|
|
8766 |
return false;
|
| 3010 |
chandransh |
8767 |
if (that instanceof captureEbsPayment_args)
|
|
|
8768 |
return this.equals((captureEbsPayment_args)that);
|
| 2462 |
chandransh |
8769 |
return false;
|
|
|
8770 |
}
|
|
|
8771 |
|
| 3010 |
chandransh |
8772 |
public boolean equals(captureEbsPayment_args that) {
|
| 2462 |
chandransh |
8773 |
if (that == null)
|
|
|
8774 |
return false;
|
|
|
8775 |
|
| 3010 |
chandransh |
8776 |
boolean this_present_merchantPaymentId = true;
|
|
|
8777 |
boolean that_present_merchantPaymentId = true;
|
|
|
8778 |
if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
|
|
|
8779 |
if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
|
| 2462 |
chandransh |
8780 |
return false;
|
| 3010 |
chandransh |
8781 |
if (this.merchantPaymentId != that.merchantPaymentId)
|
| 2462 |
chandransh |
8782 |
return false;
|
|
|
8783 |
}
|
|
|
8784 |
|
|
|
8785 |
return true;
|
|
|
8786 |
}
|
|
|
8787 |
|
|
|
8788 |
@Override
|
|
|
8789 |
public int hashCode() {
|
|
|
8790 |
return 0;
|
|
|
8791 |
}
|
|
|
8792 |
|
| 3010 |
chandransh |
8793 |
public int compareTo(captureEbsPayment_args other) {
|
|
|
8794 |
if (!getClass().equals(other.getClass())) {
|
|
|
8795 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8796 |
}
|
|
|
8797 |
|
|
|
8798 |
int lastComparison = 0;
|
|
|
8799 |
captureEbsPayment_args typedOther = (captureEbsPayment_args)other;
|
|
|
8800 |
|
| 3430 |
rajveer |
8801 |
lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
|
| 3010 |
chandransh |
8802 |
if (lastComparison != 0) {
|
|
|
8803 |
return lastComparison;
|
|
|
8804 |
}
|
| 3430 |
rajveer |
8805 |
if (isSetMerchantPaymentId()) {
|
|
|
8806 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
|
|
|
8807 |
if (lastComparison != 0) {
|
|
|
8808 |
return lastComparison;
|
|
|
8809 |
}
|
| 3010 |
chandransh |
8810 |
}
|
|
|
8811 |
return 0;
|
|
|
8812 |
}
|
|
|
8813 |
|
| 3430 |
rajveer |
8814 |
public _Fields fieldForId(int fieldId) {
|
|
|
8815 |
return _Fields.findByThriftId(fieldId);
|
|
|
8816 |
}
|
|
|
8817 |
|
|
|
8818 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8819 |
org.apache.thrift.protocol.TField field;
|
| 2462 |
chandransh |
8820 |
iprot.readStructBegin();
|
|
|
8821 |
while (true)
|
|
|
8822 |
{
|
|
|
8823 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
8824 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2462 |
chandransh |
8825 |
break;
|
|
|
8826 |
}
|
| 3430 |
rajveer |
8827 |
switch (field.id) {
|
|
|
8828 |
case 1: // MERCHANT_PAYMENT_ID
|
|
|
8829 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
8830 |
this.merchantPaymentId = iprot.readI64();
|
|
|
8831 |
setMerchantPaymentIdIsSet(true);
|
|
|
8832 |
} else {
|
|
|
8833 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8834 |
}
|
|
|
8835 |
break;
|
|
|
8836 |
default:
|
|
|
8837 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2462 |
chandransh |
8838 |
}
|
| 3430 |
rajveer |
8839 |
iprot.readFieldEnd();
|
| 2462 |
chandransh |
8840 |
}
|
|
|
8841 |
iprot.readStructEnd();
|
|
|
8842 |
validate();
|
|
|
8843 |
}
|
|
|
8844 |
|
| 3430 |
rajveer |
8845 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
8846 |
validate();
|
|
|
8847 |
|
|
|
8848 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 3010 |
chandransh |
8849 |
oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
|
|
|
8850 |
oprot.writeI64(this.merchantPaymentId);
|
|
|
8851 |
oprot.writeFieldEnd();
|
| 2462 |
chandransh |
8852 |
oprot.writeFieldStop();
|
|
|
8853 |
oprot.writeStructEnd();
|
|
|
8854 |
}
|
|
|
8855 |
|
|
|
8856 |
@Override
|
|
|
8857 |
public String toString() {
|
| 3010 |
chandransh |
8858 |
StringBuilder sb = new StringBuilder("captureEbsPayment_args(");
|
| 2462 |
chandransh |
8859 |
boolean first = true;
|
|
|
8860 |
|
| 3010 |
chandransh |
8861 |
sb.append("merchantPaymentId:");
|
|
|
8862 |
sb.append(this.merchantPaymentId);
|
| 2462 |
chandransh |
8863 |
first = false;
|
|
|
8864 |
sb.append(")");
|
|
|
8865 |
return sb.toString();
|
|
|
8866 |
}
|
|
|
8867 |
|
| 3430 |
rajveer |
8868 |
public void validate() throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
8869 |
// check for required fields
|
|
|
8870 |
}
|
|
|
8871 |
|
| 3430 |
rajveer |
8872 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8873 |
try {
|
|
|
8874 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8875 |
} catch (org.apache.thrift.TException te) {
|
|
|
8876 |
throw new java.io.IOException(te);
|
|
|
8877 |
}
|
|
|
8878 |
}
|
|
|
8879 |
|
|
|
8880 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8881 |
try {
|
|
|
8882 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8883 |
} catch (org.apache.thrift.TException te) {
|
|
|
8884 |
throw new java.io.IOException(te);
|
|
|
8885 |
}
|
|
|
8886 |
}
|
|
|
8887 |
|
| 2462 |
chandransh |
8888 |
}
|
|
|
8889 |
|
| 3430 |
rajveer |
8890 |
public static class captureEbsPayment_result implements org.apache.thrift.TBase<captureEbsPayment_result, captureEbsPayment_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8891 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("captureEbsPayment_result");
|
| 2462 |
chandransh |
8892 |
|
| 3430 |
rajveer |
8893 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
|
|
|
8894 |
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 |
8895 |
|
| 3430 |
rajveer |
8896 |
private Map<String,String> success; // required
|
|
|
8897 |
private PaymentException pe; // required
|
| 2462 |
chandransh |
8898 |
|
|
|
8899 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
8900 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2462 |
chandransh |
8901 |
SUCCESS((short)0, "success"),
|
|
|
8902 |
PE((short)1, "pe");
|
|
|
8903 |
|
|
|
8904 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8905 |
|
|
|
8906 |
static {
|
|
|
8907 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8908 |
byName.put(field.getFieldName(), field);
|
|
|
8909 |
}
|
|
|
8910 |
}
|
|
|
8911 |
|
|
|
8912 |
/**
|
|
|
8913 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8914 |
*/
|
|
|
8915 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
8916 |
switch(fieldId) {
|
|
|
8917 |
case 0: // SUCCESS
|
|
|
8918 |
return SUCCESS;
|
|
|
8919 |
case 1: // PE
|
|
|
8920 |
return PE;
|
|
|
8921 |
default:
|
|
|
8922 |
return null;
|
|
|
8923 |
}
|
| 2462 |
chandransh |
8924 |
}
|
|
|
8925 |
|
|
|
8926 |
/**
|
|
|
8927 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8928 |
* if it is not found.
|
|
|
8929 |
*/
|
|
|
8930 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8931 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8932 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8933 |
return fields;
|
|
|
8934 |
}
|
|
|
8935 |
|
|
|
8936 |
/**
|
|
|
8937 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8938 |
*/
|
|
|
8939 |
public static _Fields findByName(String name) {
|
|
|
8940 |
return byName.get(name);
|
|
|
8941 |
}
|
|
|
8942 |
|
|
|
8943 |
private final short _thriftId;
|
|
|
8944 |
private final String _fieldName;
|
|
|
8945 |
|
|
|
8946 |
_Fields(short thriftId, String fieldName) {
|
|
|
8947 |
_thriftId = thriftId;
|
|
|
8948 |
_fieldName = fieldName;
|
|
|
8949 |
}
|
|
|
8950 |
|
|
|
8951 |
public short getThriftFieldId() {
|
|
|
8952 |
return _thriftId;
|
|
|
8953 |
}
|
|
|
8954 |
|
|
|
8955 |
public String getFieldName() {
|
|
|
8956 |
return _fieldName;
|
|
|
8957 |
}
|
|
|
8958 |
}
|
|
|
8959 |
|
|
|
8960 |
// isset id assignments
|
|
|
8961 |
|
| 3430 |
rajveer |
8962 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2462 |
chandransh |
8963 |
static {
|
| 3430 |
rajveer |
8964 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8965 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8966 |
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
|
|
|
8967 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
|
|
|
8968 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
|
|
8969 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8970 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
8971 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8972 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(captureEbsPayment_result.class, metaDataMap);
|
| 2462 |
chandransh |
8973 |
}
|
|
|
8974 |
|
| 3010 |
chandransh |
8975 |
public captureEbsPayment_result() {
|
| 2462 |
chandransh |
8976 |
}
|
|
|
8977 |
|
| 3010 |
chandransh |
8978 |
public captureEbsPayment_result(
|
|
|
8979 |
Map<String,String> success,
|
| 2462 |
chandransh |
8980 |
PaymentException pe)
|
|
|
8981 |
{
|
|
|
8982 |
this();
|
|
|
8983 |
this.success = success;
|
|
|
8984 |
this.pe = pe;
|
|
|
8985 |
}
|
|
|
8986 |
|
|
|
8987 |
/**
|
|
|
8988 |
* Performs a deep copy on <i>other</i>.
|
|
|
8989 |
*/
|
| 3010 |
chandransh |
8990 |
public captureEbsPayment_result(captureEbsPayment_result other) {
|
| 2462 |
chandransh |
8991 |
if (other.isSetSuccess()) {
|
| 3010 |
chandransh |
8992 |
Map<String,String> __this__success = new HashMap<String,String>();
|
|
|
8993 |
for (Map.Entry<String, String> other_element : other.success.entrySet()) {
|
|
|
8994 |
|
|
|
8995 |
String other_element_key = other_element.getKey();
|
|
|
8996 |
String other_element_value = other_element.getValue();
|
|
|
8997 |
|
|
|
8998 |
String __this__success_copy_key = other_element_key;
|
|
|
8999 |
|
|
|
9000 |
String __this__success_copy_value = other_element_value;
|
|
|
9001 |
|
|
|
9002 |
__this__success.put(__this__success_copy_key, __this__success_copy_value);
|
|
|
9003 |
}
|
|
|
9004 |
this.success = __this__success;
|
| 2462 |
chandransh |
9005 |
}
|
|
|
9006 |
if (other.isSetPe()) {
|
|
|
9007 |
this.pe = new PaymentException(other.pe);
|
|
|
9008 |
}
|
|
|
9009 |
}
|
|
|
9010 |
|
| 3010 |
chandransh |
9011 |
public captureEbsPayment_result deepCopy() {
|
|
|
9012 |
return new captureEbsPayment_result(this);
|
| 2462 |
chandransh |
9013 |
}
|
|
|
9014 |
|
| 3430 |
rajveer |
9015 |
@Override
|
|
|
9016 |
public void clear() {
|
|
|
9017 |
this.success = null;
|
|
|
9018 |
this.pe = null;
|
| 2462 |
chandransh |
9019 |
}
|
|
|
9020 |
|
| 3010 |
chandransh |
9021 |
public int getSuccessSize() {
|
|
|
9022 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
9023 |
}
|
|
|
9024 |
|
|
|
9025 |
public void putToSuccess(String key, String val) {
|
|
|
9026 |
if (this.success == null) {
|
|
|
9027 |
this.success = new HashMap<String,String>();
|
|
|
9028 |
}
|
|
|
9029 |
this.success.put(key, val);
|
|
|
9030 |
}
|
|
|
9031 |
|
|
|
9032 |
public Map<String,String> getSuccess() {
|
| 2462 |
chandransh |
9033 |
return this.success;
|
|
|
9034 |
}
|
|
|
9035 |
|
| 3430 |
rajveer |
9036 |
public void setSuccess(Map<String,String> success) {
|
| 2462 |
chandransh |
9037 |
this.success = success;
|
|
|
9038 |
}
|
|
|
9039 |
|
|
|
9040 |
public void unsetSuccess() {
|
|
|
9041 |
this.success = null;
|
|
|
9042 |
}
|
|
|
9043 |
|
| 3430 |
rajveer |
9044 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2462 |
chandransh |
9045 |
public boolean isSetSuccess() {
|
|
|
9046 |
return this.success != null;
|
|
|
9047 |
}
|
|
|
9048 |
|
|
|
9049 |
public void setSuccessIsSet(boolean value) {
|
|
|
9050 |
if (!value) {
|
|
|
9051 |
this.success = null;
|
|
|
9052 |
}
|
|
|
9053 |
}
|
|
|
9054 |
|
|
|
9055 |
public PaymentException getPe() {
|
|
|
9056 |
return this.pe;
|
|
|
9057 |
}
|
|
|
9058 |
|
| 3430 |
rajveer |
9059 |
public void setPe(PaymentException pe) {
|
| 2462 |
chandransh |
9060 |
this.pe = pe;
|
|
|
9061 |
}
|
|
|
9062 |
|
|
|
9063 |
public void unsetPe() {
|
|
|
9064 |
this.pe = null;
|
|
|
9065 |
}
|
|
|
9066 |
|
| 3430 |
rajveer |
9067 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 2462 |
chandransh |
9068 |
public boolean isSetPe() {
|
|
|
9069 |
return this.pe != null;
|
|
|
9070 |
}
|
|
|
9071 |
|
|
|
9072 |
public void setPeIsSet(boolean value) {
|
|
|
9073 |
if (!value) {
|
|
|
9074 |
this.pe = null;
|
|
|
9075 |
}
|
|
|
9076 |
}
|
|
|
9077 |
|
|
|
9078 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9079 |
switch (field) {
|
|
|
9080 |
case SUCCESS:
|
|
|
9081 |
if (value == null) {
|
|
|
9082 |
unsetSuccess();
|
|
|
9083 |
} else {
|
| 3010 |
chandransh |
9084 |
setSuccess((Map<String,String>)value);
|
| 2462 |
chandransh |
9085 |
}
|
|
|
9086 |
break;
|
|
|
9087 |
|
|
|
9088 |
case PE:
|
|
|
9089 |
if (value == null) {
|
|
|
9090 |
unsetPe();
|
|
|
9091 |
} else {
|
|
|
9092 |
setPe((PaymentException)value);
|
|
|
9093 |
}
|
|
|
9094 |
break;
|
|
|
9095 |
|
|
|
9096 |
}
|
|
|
9097 |
}
|
|
|
9098 |
|
|
|
9099 |
public Object getFieldValue(_Fields field) {
|
|
|
9100 |
switch (field) {
|
|
|
9101 |
case SUCCESS:
|
|
|
9102 |
return getSuccess();
|
|
|
9103 |
|
|
|
9104 |
case PE:
|
|
|
9105 |
return getPe();
|
|
|
9106 |
|
|
|
9107 |
}
|
|
|
9108 |
throw new IllegalStateException();
|
|
|
9109 |
}
|
|
|
9110 |
|
| 3430 |
rajveer |
9111 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9112 |
public boolean isSet(_Fields field) {
|
|
|
9113 |
if (field == null) {
|
|
|
9114 |
throw new IllegalArgumentException();
|
|
|
9115 |
}
|
| 2462 |
chandransh |
9116 |
|
|
|
9117 |
switch (field) {
|
|
|
9118 |
case SUCCESS:
|
|
|
9119 |
return isSetSuccess();
|
|
|
9120 |
case PE:
|
|
|
9121 |
return isSetPe();
|
|
|
9122 |
}
|
|
|
9123 |
throw new IllegalStateException();
|
|
|
9124 |
}
|
|
|
9125 |
|
|
|
9126 |
@Override
|
|
|
9127 |
public boolean equals(Object that) {
|
|
|
9128 |
if (that == null)
|
|
|
9129 |
return false;
|
| 3010 |
chandransh |
9130 |
if (that instanceof captureEbsPayment_result)
|
|
|
9131 |
return this.equals((captureEbsPayment_result)that);
|
| 2462 |
chandransh |
9132 |
return false;
|
|
|
9133 |
}
|
|
|
9134 |
|
| 3010 |
chandransh |
9135 |
public boolean equals(captureEbsPayment_result that) {
|
| 2462 |
chandransh |
9136 |
if (that == null)
|
|
|
9137 |
return false;
|
|
|
9138 |
|
|
|
9139 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
9140 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
9141 |
if (this_present_success || that_present_success) {
|
|
|
9142 |
if (!(this_present_success && that_present_success))
|
|
|
9143 |
return false;
|
|
|
9144 |
if (!this.success.equals(that.success))
|
|
|
9145 |
return false;
|
|
|
9146 |
}
|
|
|
9147 |
|
|
|
9148 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
9149 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
9150 |
if (this_present_pe || that_present_pe) {
|
|
|
9151 |
if (!(this_present_pe && that_present_pe))
|
|
|
9152 |
return false;
|
|
|
9153 |
if (!this.pe.equals(that.pe))
|
|
|
9154 |
return false;
|
|
|
9155 |
}
|
|
|
9156 |
|
|
|
9157 |
return true;
|
|
|
9158 |
}
|
|
|
9159 |
|
|
|
9160 |
@Override
|
|
|
9161 |
public int hashCode() {
|
|
|
9162 |
return 0;
|
|
|
9163 |
}
|
|
|
9164 |
|
| 3430 |
rajveer |
9165 |
public int compareTo(captureEbsPayment_result other) {
|
|
|
9166 |
if (!getClass().equals(other.getClass())) {
|
|
|
9167 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9168 |
}
|
|
|
9169 |
|
|
|
9170 |
int lastComparison = 0;
|
|
|
9171 |
captureEbsPayment_result typedOther = (captureEbsPayment_result)other;
|
|
|
9172 |
|
|
|
9173 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
9174 |
if (lastComparison != 0) {
|
|
|
9175 |
return lastComparison;
|
|
|
9176 |
}
|
|
|
9177 |
if (isSetSuccess()) {
|
|
|
9178 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
9179 |
if (lastComparison != 0) {
|
|
|
9180 |
return lastComparison;
|
|
|
9181 |
}
|
|
|
9182 |
}
|
|
|
9183 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
|
|
9184 |
if (lastComparison != 0) {
|
|
|
9185 |
return lastComparison;
|
|
|
9186 |
}
|
|
|
9187 |
if (isSetPe()) {
|
|
|
9188 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
9189 |
if (lastComparison != 0) {
|
|
|
9190 |
return lastComparison;
|
|
|
9191 |
}
|
|
|
9192 |
}
|
|
|
9193 |
return 0;
|
|
|
9194 |
}
|
|
|
9195 |
|
|
|
9196 |
public _Fields fieldForId(int fieldId) {
|
|
|
9197 |
return _Fields.findByThriftId(fieldId);
|
|
|
9198 |
}
|
|
|
9199 |
|
|
|
9200 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9201 |
org.apache.thrift.protocol.TField field;
|
| 2462 |
chandransh |
9202 |
iprot.readStructBegin();
|
|
|
9203 |
while (true)
|
|
|
9204 |
{
|
|
|
9205 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
9206 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2462 |
chandransh |
9207 |
break;
|
|
|
9208 |
}
|
| 3430 |
rajveer |
9209 |
switch (field.id) {
|
|
|
9210 |
case 0: // SUCCESS
|
|
|
9211 |
if (field.type == org.apache.thrift.protocol.TType.MAP) {
|
|
|
9212 |
{
|
|
|
9213 |
org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
|
|
|
9214 |
this.success = new HashMap<String,String>(2*_map32.size);
|
|
|
9215 |
for (int _i33 = 0; _i33 < _map32.size; ++_i33)
|
| 3010 |
chandransh |
9216 |
{
|
| 3430 |
rajveer |
9217 |
String _key34; // required
|
|
|
9218 |
String _val35; // required
|
|
|
9219 |
_key34 = iprot.readString();
|
|
|
9220 |
_val35 = iprot.readString();
|
|
|
9221 |
this.success.put(_key34, _val35);
|
| 3010 |
chandransh |
9222 |
}
|
| 3430 |
rajveer |
9223 |
iprot.readMapEnd();
|
| 2462 |
chandransh |
9224 |
}
|
| 3430 |
rajveer |
9225 |
} else {
|
|
|
9226 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9227 |
}
|
|
|
9228 |
break;
|
|
|
9229 |
case 1: // PE
|
|
|
9230 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9231 |
this.pe = new PaymentException();
|
|
|
9232 |
this.pe.read(iprot);
|
|
|
9233 |
} else {
|
|
|
9234 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9235 |
}
|
|
|
9236 |
break;
|
|
|
9237 |
default:
|
|
|
9238 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2462 |
chandransh |
9239 |
}
|
| 3430 |
rajveer |
9240 |
iprot.readFieldEnd();
|
| 2462 |
chandransh |
9241 |
}
|
|
|
9242 |
iprot.readStructEnd();
|
|
|
9243 |
validate();
|
|
|
9244 |
}
|
|
|
9245 |
|
| 3430 |
rajveer |
9246 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
9247 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9248 |
|
|
|
9249 |
if (this.isSetSuccess()) {
|
|
|
9250 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 3010 |
chandransh |
9251 |
{
|
| 3430 |
rajveer |
9252 |
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
|
| 3010 |
chandransh |
9253 |
for (Map.Entry<String, String> _iter36 : this.success.entrySet())
|
|
|
9254 |
{
|
|
|
9255 |
oprot.writeString(_iter36.getKey());
|
|
|
9256 |
oprot.writeString(_iter36.getValue());
|
|
|
9257 |
}
|
|
|
9258 |
oprot.writeMapEnd();
|
|
|
9259 |
}
|
| 2462 |
chandransh |
9260 |
oprot.writeFieldEnd();
|
|
|
9261 |
} else if (this.isSetPe()) {
|
|
|
9262 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
9263 |
this.pe.write(oprot);
|
|
|
9264 |
oprot.writeFieldEnd();
|
|
|
9265 |
}
|
|
|
9266 |
oprot.writeFieldStop();
|
|
|
9267 |
oprot.writeStructEnd();
|
|
|
9268 |
}
|
|
|
9269 |
|
|
|
9270 |
@Override
|
|
|
9271 |
public String toString() {
|
| 3010 |
chandransh |
9272 |
StringBuilder sb = new StringBuilder("captureEbsPayment_result(");
|
| 2462 |
chandransh |
9273 |
boolean first = true;
|
|
|
9274 |
|
|
|
9275 |
sb.append("success:");
|
|
|
9276 |
if (this.success == null) {
|
|
|
9277 |
sb.append("null");
|
|
|
9278 |
} else {
|
|
|
9279 |
sb.append(this.success);
|
|
|
9280 |
}
|
|
|
9281 |
first = false;
|
|
|
9282 |
if (!first) sb.append(", ");
|
|
|
9283 |
sb.append("pe:");
|
|
|
9284 |
if (this.pe == null) {
|
|
|
9285 |
sb.append("null");
|
|
|
9286 |
} else {
|
|
|
9287 |
sb.append(this.pe);
|
|
|
9288 |
}
|
|
|
9289 |
first = false;
|
|
|
9290 |
sb.append(")");
|
|
|
9291 |
return sb.toString();
|
|
|
9292 |
}
|
|
|
9293 |
|
| 3430 |
rajveer |
9294 |
public void validate() throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
9295 |
// check for required fields
|
|
|
9296 |
}
|
|
|
9297 |
|
| 3430 |
rajveer |
9298 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9299 |
try {
|
|
|
9300 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9301 |
} catch (org.apache.thrift.TException te) {
|
|
|
9302 |
throw new java.io.IOException(te);
|
|
|
9303 |
}
|
|
|
9304 |
}
|
|
|
9305 |
|
|
|
9306 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9307 |
try {
|
|
|
9308 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9309 |
} catch (org.apache.thrift.TException te) {
|
|
|
9310 |
throw new java.io.IOException(te);
|
|
|
9311 |
}
|
|
|
9312 |
}
|
|
|
9313 |
|
| 2462 |
chandransh |
9314 |
}
|
|
|
9315 |
|
| 3430 |
rajveer |
9316 |
public static class captureHdfcPayment_args implements org.apache.thrift.TBase<captureHdfcPayment_args, captureHdfcPayment_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9317 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("captureHdfcPayment_args");
|
| 2708 |
chandransh |
9318 |
|
| 3430 |
rajveer |
9319 |
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);
|
| 2708 |
chandransh |
9320 |
|
| 3430 |
rajveer |
9321 |
private long merchantPaymentId; // required
|
| 2708 |
chandransh |
9322 |
|
|
|
9323 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
9324 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2708 |
chandransh |
9325 |
MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
|
|
|
9326 |
|
|
|
9327 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9328 |
|
|
|
9329 |
static {
|
|
|
9330 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9331 |
byName.put(field.getFieldName(), field);
|
|
|
9332 |
}
|
|
|
9333 |
}
|
|
|
9334 |
|
|
|
9335 |
/**
|
|
|
9336 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9337 |
*/
|
|
|
9338 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
9339 |
switch(fieldId) {
|
|
|
9340 |
case 1: // MERCHANT_PAYMENT_ID
|
|
|
9341 |
return MERCHANT_PAYMENT_ID;
|
|
|
9342 |
default:
|
|
|
9343 |
return null;
|
|
|
9344 |
}
|
| 2708 |
chandransh |
9345 |
}
|
|
|
9346 |
|
|
|
9347 |
/**
|
|
|
9348 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9349 |
* if it is not found.
|
|
|
9350 |
*/
|
|
|
9351 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9352 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9353 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9354 |
return fields;
|
|
|
9355 |
}
|
|
|
9356 |
|
|
|
9357 |
/**
|
|
|
9358 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9359 |
*/
|
|
|
9360 |
public static _Fields findByName(String name) {
|
|
|
9361 |
return byName.get(name);
|
|
|
9362 |
}
|
|
|
9363 |
|
|
|
9364 |
private final short _thriftId;
|
|
|
9365 |
private final String _fieldName;
|
|
|
9366 |
|
|
|
9367 |
_Fields(short thriftId, String fieldName) {
|
|
|
9368 |
_thriftId = thriftId;
|
|
|
9369 |
_fieldName = fieldName;
|
|
|
9370 |
}
|
|
|
9371 |
|
|
|
9372 |
public short getThriftFieldId() {
|
|
|
9373 |
return _thriftId;
|
|
|
9374 |
}
|
|
|
9375 |
|
|
|
9376 |
public String getFieldName() {
|
|
|
9377 |
return _fieldName;
|
|
|
9378 |
}
|
|
|
9379 |
}
|
|
|
9380 |
|
|
|
9381 |
// isset id assignments
|
|
|
9382 |
private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
|
|
|
9383 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
9384 |
|
| 3430 |
rajveer |
9385 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2708 |
chandransh |
9386 |
static {
|
| 3430 |
rajveer |
9387 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9388 |
tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9389 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9390 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9391 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(captureHdfcPayment_args.class, metaDataMap);
|
| 2708 |
chandransh |
9392 |
}
|
|
|
9393 |
|
| 3010 |
chandransh |
9394 |
public captureHdfcPayment_args() {
|
| 2708 |
chandransh |
9395 |
}
|
|
|
9396 |
|
| 3010 |
chandransh |
9397 |
public captureHdfcPayment_args(
|
| 2708 |
chandransh |
9398 |
long merchantPaymentId)
|
|
|
9399 |
{
|
|
|
9400 |
this();
|
|
|
9401 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
9402 |
setMerchantPaymentIdIsSet(true);
|
|
|
9403 |
}
|
|
|
9404 |
|
|
|
9405 |
/**
|
|
|
9406 |
* Performs a deep copy on <i>other</i>.
|
|
|
9407 |
*/
|
| 3010 |
chandransh |
9408 |
public captureHdfcPayment_args(captureHdfcPayment_args other) {
|
| 2708 |
chandransh |
9409 |
__isset_bit_vector.clear();
|
|
|
9410 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9411 |
this.merchantPaymentId = other.merchantPaymentId;
|
|
|
9412 |
}
|
|
|
9413 |
|
| 3010 |
chandransh |
9414 |
public captureHdfcPayment_args deepCopy() {
|
|
|
9415 |
return new captureHdfcPayment_args(this);
|
| 2708 |
chandransh |
9416 |
}
|
|
|
9417 |
|
| 3430 |
rajveer |
9418 |
@Override
|
|
|
9419 |
public void clear() {
|
|
|
9420 |
setMerchantPaymentIdIsSet(false);
|
|
|
9421 |
this.merchantPaymentId = 0;
|
| 2708 |
chandransh |
9422 |
}
|
|
|
9423 |
|
|
|
9424 |
public long getMerchantPaymentId() {
|
|
|
9425 |
return this.merchantPaymentId;
|
|
|
9426 |
}
|
|
|
9427 |
|
| 3430 |
rajveer |
9428 |
public void setMerchantPaymentId(long merchantPaymentId) {
|
| 2708 |
chandransh |
9429 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
9430 |
setMerchantPaymentIdIsSet(true);
|
|
|
9431 |
}
|
|
|
9432 |
|
|
|
9433 |
public void unsetMerchantPaymentId() {
|
|
|
9434 |
__isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
9435 |
}
|
|
|
9436 |
|
| 3430 |
rajveer |
9437 |
/** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
|
| 2708 |
chandransh |
9438 |
public boolean isSetMerchantPaymentId() {
|
|
|
9439 |
return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
9440 |
}
|
|
|
9441 |
|
|
|
9442 |
public void setMerchantPaymentIdIsSet(boolean value) {
|
|
|
9443 |
__isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
|
|
|
9444 |
}
|
|
|
9445 |
|
|
|
9446 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9447 |
switch (field) {
|
|
|
9448 |
case MERCHANT_PAYMENT_ID:
|
|
|
9449 |
if (value == null) {
|
|
|
9450 |
unsetMerchantPaymentId();
|
|
|
9451 |
} else {
|
|
|
9452 |
setMerchantPaymentId((Long)value);
|
|
|
9453 |
}
|
|
|
9454 |
break;
|
|
|
9455 |
|
|
|
9456 |
}
|
|
|
9457 |
}
|
|
|
9458 |
|
|
|
9459 |
public Object getFieldValue(_Fields field) {
|
|
|
9460 |
switch (field) {
|
|
|
9461 |
case MERCHANT_PAYMENT_ID:
|
| 3430 |
rajveer |
9462 |
return Long.valueOf(getMerchantPaymentId());
|
| 2708 |
chandransh |
9463 |
|
|
|
9464 |
}
|
|
|
9465 |
throw new IllegalStateException();
|
|
|
9466 |
}
|
|
|
9467 |
|
| 3430 |
rajveer |
9468 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9469 |
public boolean isSet(_Fields field) {
|
|
|
9470 |
if (field == null) {
|
|
|
9471 |
throw new IllegalArgumentException();
|
|
|
9472 |
}
|
| 2708 |
chandransh |
9473 |
|
|
|
9474 |
switch (field) {
|
|
|
9475 |
case MERCHANT_PAYMENT_ID:
|
|
|
9476 |
return isSetMerchantPaymentId();
|
|
|
9477 |
}
|
|
|
9478 |
throw new IllegalStateException();
|
|
|
9479 |
}
|
|
|
9480 |
|
|
|
9481 |
@Override
|
|
|
9482 |
public boolean equals(Object that) {
|
|
|
9483 |
if (that == null)
|
|
|
9484 |
return false;
|
| 3010 |
chandransh |
9485 |
if (that instanceof captureHdfcPayment_args)
|
|
|
9486 |
return this.equals((captureHdfcPayment_args)that);
|
| 2708 |
chandransh |
9487 |
return false;
|
|
|
9488 |
}
|
|
|
9489 |
|
| 3010 |
chandransh |
9490 |
public boolean equals(captureHdfcPayment_args that) {
|
| 2708 |
chandransh |
9491 |
if (that == null)
|
|
|
9492 |
return false;
|
|
|
9493 |
|
|
|
9494 |
boolean this_present_merchantPaymentId = true;
|
|
|
9495 |
boolean that_present_merchantPaymentId = true;
|
|
|
9496 |
if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
|
|
|
9497 |
if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
|
|
|
9498 |
return false;
|
|
|
9499 |
if (this.merchantPaymentId != that.merchantPaymentId)
|
|
|
9500 |
return false;
|
|
|
9501 |
}
|
|
|
9502 |
|
|
|
9503 |
return true;
|
|
|
9504 |
}
|
|
|
9505 |
|
|
|
9506 |
@Override
|
|
|
9507 |
public int hashCode() {
|
|
|
9508 |
return 0;
|
|
|
9509 |
}
|
|
|
9510 |
|
| 3010 |
chandransh |
9511 |
public int compareTo(captureHdfcPayment_args other) {
|
| 2708 |
chandransh |
9512 |
if (!getClass().equals(other.getClass())) {
|
|
|
9513 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9514 |
}
|
|
|
9515 |
|
|
|
9516 |
int lastComparison = 0;
|
| 3010 |
chandransh |
9517 |
captureHdfcPayment_args typedOther = (captureHdfcPayment_args)other;
|
| 2708 |
chandransh |
9518 |
|
| 3430 |
rajveer |
9519 |
lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
|
| 2708 |
chandransh |
9520 |
if (lastComparison != 0) {
|
|
|
9521 |
return lastComparison;
|
|
|
9522 |
}
|
| 3430 |
rajveer |
9523 |
if (isSetMerchantPaymentId()) {
|
|
|
9524 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
|
|
|
9525 |
if (lastComparison != 0) {
|
|
|
9526 |
return lastComparison;
|
|
|
9527 |
}
|
| 2708 |
chandransh |
9528 |
}
|
|
|
9529 |
return 0;
|
|
|
9530 |
}
|
|
|
9531 |
|
| 3430 |
rajveer |
9532 |
public _Fields fieldForId(int fieldId) {
|
|
|
9533 |
return _Fields.findByThriftId(fieldId);
|
|
|
9534 |
}
|
|
|
9535 |
|
|
|
9536 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9537 |
org.apache.thrift.protocol.TField field;
|
| 2708 |
chandransh |
9538 |
iprot.readStructBegin();
|
|
|
9539 |
while (true)
|
|
|
9540 |
{
|
|
|
9541 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
9542 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2708 |
chandransh |
9543 |
break;
|
|
|
9544 |
}
|
| 3430 |
rajveer |
9545 |
switch (field.id) {
|
|
|
9546 |
case 1: // MERCHANT_PAYMENT_ID
|
|
|
9547 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9548 |
this.merchantPaymentId = iprot.readI64();
|
|
|
9549 |
setMerchantPaymentIdIsSet(true);
|
|
|
9550 |
} else {
|
|
|
9551 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9552 |
}
|
|
|
9553 |
break;
|
|
|
9554 |
default:
|
|
|
9555 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2708 |
chandransh |
9556 |
}
|
| 3430 |
rajveer |
9557 |
iprot.readFieldEnd();
|
| 2708 |
chandransh |
9558 |
}
|
|
|
9559 |
iprot.readStructEnd();
|
|
|
9560 |
validate();
|
|
|
9561 |
}
|
|
|
9562 |
|
| 3430 |
rajveer |
9563 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2708 |
chandransh |
9564 |
validate();
|
|
|
9565 |
|
|
|
9566 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9567 |
oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
|
|
|
9568 |
oprot.writeI64(this.merchantPaymentId);
|
|
|
9569 |
oprot.writeFieldEnd();
|
|
|
9570 |
oprot.writeFieldStop();
|
|
|
9571 |
oprot.writeStructEnd();
|
|
|
9572 |
}
|
|
|
9573 |
|
|
|
9574 |
@Override
|
|
|
9575 |
public String toString() {
|
| 3010 |
chandransh |
9576 |
StringBuilder sb = new StringBuilder("captureHdfcPayment_args(");
|
| 2708 |
chandransh |
9577 |
boolean first = true;
|
|
|
9578 |
|
|
|
9579 |
sb.append("merchantPaymentId:");
|
|
|
9580 |
sb.append(this.merchantPaymentId);
|
|
|
9581 |
first = false;
|
|
|
9582 |
sb.append(")");
|
|
|
9583 |
return sb.toString();
|
|
|
9584 |
}
|
|
|
9585 |
|
| 3430 |
rajveer |
9586 |
public void validate() throws org.apache.thrift.TException {
|
| 2708 |
chandransh |
9587 |
// check for required fields
|
|
|
9588 |
}
|
|
|
9589 |
|
| 3430 |
rajveer |
9590 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9591 |
try {
|
|
|
9592 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9593 |
} catch (org.apache.thrift.TException te) {
|
|
|
9594 |
throw new java.io.IOException(te);
|
|
|
9595 |
}
|
|
|
9596 |
}
|
|
|
9597 |
|
|
|
9598 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9599 |
try {
|
|
|
9600 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9601 |
} catch (org.apache.thrift.TException te) {
|
|
|
9602 |
throw new java.io.IOException(te);
|
|
|
9603 |
}
|
|
|
9604 |
}
|
|
|
9605 |
|
| 2708 |
chandransh |
9606 |
}
|
|
|
9607 |
|
| 3430 |
rajveer |
9608 |
public static class captureHdfcPayment_result implements org.apache.thrift.TBase<captureHdfcPayment_result, captureHdfcPayment_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
9609 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("captureHdfcPayment_result");
|
| 2708 |
chandransh |
9610 |
|
| 3430 |
rajveer |
9611 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
|
|
|
9612 |
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);
|
| 2708 |
chandransh |
9613 |
|
| 3430 |
rajveer |
9614 |
private Map<String,String> success; // required
|
|
|
9615 |
private PaymentException pe; // required
|
| 2708 |
chandransh |
9616 |
|
|
|
9617 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
9618 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2708 |
chandransh |
9619 |
SUCCESS((short)0, "success"),
|
|
|
9620 |
PE((short)1, "pe");
|
|
|
9621 |
|
|
|
9622 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9623 |
|
|
|
9624 |
static {
|
|
|
9625 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9626 |
byName.put(field.getFieldName(), field);
|
|
|
9627 |
}
|
|
|
9628 |
}
|
|
|
9629 |
|
|
|
9630 |
/**
|
|
|
9631 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9632 |
*/
|
|
|
9633 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
9634 |
switch(fieldId) {
|
|
|
9635 |
case 0: // SUCCESS
|
|
|
9636 |
return SUCCESS;
|
|
|
9637 |
case 1: // PE
|
|
|
9638 |
return PE;
|
|
|
9639 |
default:
|
|
|
9640 |
return null;
|
|
|
9641 |
}
|
| 2708 |
chandransh |
9642 |
}
|
|
|
9643 |
|
|
|
9644 |
/**
|
|
|
9645 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9646 |
* if it is not found.
|
|
|
9647 |
*/
|
|
|
9648 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9649 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9650 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9651 |
return fields;
|
|
|
9652 |
}
|
|
|
9653 |
|
|
|
9654 |
/**
|
|
|
9655 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9656 |
*/
|
|
|
9657 |
public static _Fields findByName(String name) {
|
|
|
9658 |
return byName.get(name);
|
|
|
9659 |
}
|
|
|
9660 |
|
|
|
9661 |
private final short _thriftId;
|
|
|
9662 |
private final String _fieldName;
|
|
|
9663 |
|
|
|
9664 |
_Fields(short thriftId, String fieldName) {
|
|
|
9665 |
_thriftId = thriftId;
|
|
|
9666 |
_fieldName = fieldName;
|
|
|
9667 |
}
|
|
|
9668 |
|
|
|
9669 |
public short getThriftFieldId() {
|
|
|
9670 |
return _thriftId;
|
|
|
9671 |
}
|
|
|
9672 |
|
|
|
9673 |
public String getFieldName() {
|
|
|
9674 |
return _fieldName;
|
|
|
9675 |
}
|
|
|
9676 |
}
|
|
|
9677 |
|
|
|
9678 |
// isset id assignments
|
|
|
9679 |
|
| 3430 |
rajveer |
9680 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2708 |
chandransh |
9681 |
static {
|
| 3430 |
rajveer |
9682 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9683 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9684 |
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
|
|
|
9685 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
|
|
|
9686 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
|
|
9687 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9688 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
9689 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9690 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(captureHdfcPayment_result.class, metaDataMap);
|
| 2708 |
chandransh |
9691 |
}
|
|
|
9692 |
|
| 3010 |
chandransh |
9693 |
public captureHdfcPayment_result() {
|
| 2708 |
chandransh |
9694 |
}
|
|
|
9695 |
|
| 3010 |
chandransh |
9696 |
public captureHdfcPayment_result(
|
| 2708 |
chandransh |
9697 |
Map<String,String> success,
|
|
|
9698 |
PaymentException pe)
|
|
|
9699 |
{
|
|
|
9700 |
this();
|
|
|
9701 |
this.success = success;
|
|
|
9702 |
this.pe = pe;
|
|
|
9703 |
}
|
|
|
9704 |
|
|
|
9705 |
/**
|
|
|
9706 |
* Performs a deep copy on <i>other</i>.
|
|
|
9707 |
*/
|
| 3010 |
chandransh |
9708 |
public captureHdfcPayment_result(captureHdfcPayment_result other) {
|
| 2708 |
chandransh |
9709 |
if (other.isSetSuccess()) {
|
|
|
9710 |
Map<String,String> __this__success = new HashMap<String,String>();
|
|
|
9711 |
for (Map.Entry<String, String> other_element : other.success.entrySet()) {
|
|
|
9712 |
|
|
|
9713 |
String other_element_key = other_element.getKey();
|
|
|
9714 |
String other_element_value = other_element.getValue();
|
|
|
9715 |
|
|
|
9716 |
String __this__success_copy_key = other_element_key;
|
|
|
9717 |
|
|
|
9718 |
String __this__success_copy_value = other_element_value;
|
|
|
9719 |
|
|
|
9720 |
__this__success.put(__this__success_copy_key, __this__success_copy_value);
|
|
|
9721 |
}
|
|
|
9722 |
this.success = __this__success;
|
|
|
9723 |
}
|
|
|
9724 |
if (other.isSetPe()) {
|
|
|
9725 |
this.pe = new PaymentException(other.pe);
|
|
|
9726 |
}
|
|
|
9727 |
}
|
|
|
9728 |
|
| 3010 |
chandransh |
9729 |
public captureHdfcPayment_result deepCopy() {
|
|
|
9730 |
return new captureHdfcPayment_result(this);
|
| 2708 |
chandransh |
9731 |
}
|
|
|
9732 |
|
| 3430 |
rajveer |
9733 |
@Override
|
|
|
9734 |
public void clear() {
|
|
|
9735 |
this.success = null;
|
|
|
9736 |
this.pe = null;
|
| 2708 |
chandransh |
9737 |
}
|
|
|
9738 |
|
|
|
9739 |
public int getSuccessSize() {
|
|
|
9740 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
9741 |
}
|
|
|
9742 |
|
|
|
9743 |
public void putToSuccess(String key, String val) {
|
|
|
9744 |
if (this.success == null) {
|
|
|
9745 |
this.success = new HashMap<String,String>();
|
|
|
9746 |
}
|
|
|
9747 |
this.success.put(key, val);
|
|
|
9748 |
}
|
|
|
9749 |
|
|
|
9750 |
public Map<String,String> getSuccess() {
|
|
|
9751 |
return this.success;
|
|
|
9752 |
}
|
|
|
9753 |
|
| 3430 |
rajveer |
9754 |
public void setSuccess(Map<String,String> success) {
|
| 2708 |
chandransh |
9755 |
this.success = success;
|
|
|
9756 |
}
|
|
|
9757 |
|
|
|
9758 |
public void unsetSuccess() {
|
|
|
9759 |
this.success = null;
|
|
|
9760 |
}
|
|
|
9761 |
|
| 3430 |
rajveer |
9762 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2708 |
chandransh |
9763 |
public boolean isSetSuccess() {
|
|
|
9764 |
return this.success != null;
|
|
|
9765 |
}
|
|
|
9766 |
|
|
|
9767 |
public void setSuccessIsSet(boolean value) {
|
|
|
9768 |
if (!value) {
|
|
|
9769 |
this.success = null;
|
|
|
9770 |
}
|
|
|
9771 |
}
|
|
|
9772 |
|
|
|
9773 |
public PaymentException getPe() {
|
|
|
9774 |
return this.pe;
|
|
|
9775 |
}
|
|
|
9776 |
|
| 3430 |
rajveer |
9777 |
public void setPe(PaymentException pe) {
|
| 2708 |
chandransh |
9778 |
this.pe = pe;
|
|
|
9779 |
}
|
|
|
9780 |
|
|
|
9781 |
public void unsetPe() {
|
|
|
9782 |
this.pe = null;
|
|
|
9783 |
}
|
|
|
9784 |
|
| 3430 |
rajveer |
9785 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 2708 |
chandransh |
9786 |
public boolean isSetPe() {
|
|
|
9787 |
return this.pe != null;
|
|
|
9788 |
}
|
|
|
9789 |
|
|
|
9790 |
public void setPeIsSet(boolean value) {
|
|
|
9791 |
if (!value) {
|
|
|
9792 |
this.pe = null;
|
|
|
9793 |
}
|
|
|
9794 |
}
|
|
|
9795 |
|
|
|
9796 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9797 |
switch (field) {
|
|
|
9798 |
case SUCCESS:
|
|
|
9799 |
if (value == null) {
|
|
|
9800 |
unsetSuccess();
|
|
|
9801 |
} else {
|
|
|
9802 |
setSuccess((Map<String,String>)value);
|
|
|
9803 |
}
|
|
|
9804 |
break;
|
|
|
9805 |
|
|
|
9806 |
case PE:
|
|
|
9807 |
if (value == null) {
|
|
|
9808 |
unsetPe();
|
|
|
9809 |
} else {
|
|
|
9810 |
setPe((PaymentException)value);
|
|
|
9811 |
}
|
|
|
9812 |
break;
|
|
|
9813 |
|
|
|
9814 |
}
|
|
|
9815 |
}
|
|
|
9816 |
|
|
|
9817 |
public Object getFieldValue(_Fields field) {
|
|
|
9818 |
switch (field) {
|
|
|
9819 |
case SUCCESS:
|
|
|
9820 |
return getSuccess();
|
|
|
9821 |
|
|
|
9822 |
case PE:
|
|
|
9823 |
return getPe();
|
|
|
9824 |
|
|
|
9825 |
}
|
|
|
9826 |
throw new IllegalStateException();
|
|
|
9827 |
}
|
|
|
9828 |
|
| 3430 |
rajveer |
9829 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9830 |
public boolean isSet(_Fields field) {
|
|
|
9831 |
if (field == null) {
|
|
|
9832 |
throw new IllegalArgumentException();
|
|
|
9833 |
}
|
| 2708 |
chandransh |
9834 |
|
|
|
9835 |
switch (field) {
|
|
|
9836 |
case SUCCESS:
|
|
|
9837 |
return isSetSuccess();
|
|
|
9838 |
case PE:
|
|
|
9839 |
return isSetPe();
|
|
|
9840 |
}
|
|
|
9841 |
throw new IllegalStateException();
|
|
|
9842 |
}
|
|
|
9843 |
|
|
|
9844 |
@Override
|
|
|
9845 |
public boolean equals(Object that) {
|
|
|
9846 |
if (that == null)
|
|
|
9847 |
return false;
|
| 3010 |
chandransh |
9848 |
if (that instanceof captureHdfcPayment_result)
|
|
|
9849 |
return this.equals((captureHdfcPayment_result)that);
|
| 2708 |
chandransh |
9850 |
return false;
|
|
|
9851 |
}
|
|
|
9852 |
|
| 3010 |
chandransh |
9853 |
public boolean equals(captureHdfcPayment_result that) {
|
| 2708 |
chandransh |
9854 |
if (that == null)
|
|
|
9855 |
return false;
|
|
|
9856 |
|
|
|
9857 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
9858 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
9859 |
if (this_present_success || that_present_success) {
|
|
|
9860 |
if (!(this_present_success && that_present_success))
|
|
|
9861 |
return false;
|
|
|
9862 |
if (!this.success.equals(that.success))
|
|
|
9863 |
return false;
|
|
|
9864 |
}
|
|
|
9865 |
|
|
|
9866 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
9867 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
9868 |
if (this_present_pe || that_present_pe) {
|
|
|
9869 |
if (!(this_present_pe && that_present_pe))
|
|
|
9870 |
return false;
|
|
|
9871 |
if (!this.pe.equals(that.pe))
|
|
|
9872 |
return false;
|
|
|
9873 |
}
|
|
|
9874 |
|
|
|
9875 |
return true;
|
|
|
9876 |
}
|
|
|
9877 |
|
|
|
9878 |
@Override
|
|
|
9879 |
public int hashCode() {
|
|
|
9880 |
return 0;
|
|
|
9881 |
}
|
|
|
9882 |
|
| 3430 |
rajveer |
9883 |
public int compareTo(captureHdfcPayment_result other) {
|
|
|
9884 |
if (!getClass().equals(other.getClass())) {
|
|
|
9885 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9886 |
}
|
|
|
9887 |
|
|
|
9888 |
int lastComparison = 0;
|
|
|
9889 |
captureHdfcPayment_result typedOther = (captureHdfcPayment_result)other;
|
|
|
9890 |
|
|
|
9891 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
9892 |
if (lastComparison != 0) {
|
|
|
9893 |
return lastComparison;
|
|
|
9894 |
}
|
|
|
9895 |
if (isSetSuccess()) {
|
|
|
9896 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
9897 |
if (lastComparison != 0) {
|
|
|
9898 |
return lastComparison;
|
|
|
9899 |
}
|
|
|
9900 |
}
|
|
|
9901 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
|
|
9902 |
if (lastComparison != 0) {
|
|
|
9903 |
return lastComparison;
|
|
|
9904 |
}
|
|
|
9905 |
if (isSetPe()) {
|
|
|
9906 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
9907 |
if (lastComparison != 0) {
|
|
|
9908 |
return lastComparison;
|
|
|
9909 |
}
|
|
|
9910 |
}
|
|
|
9911 |
return 0;
|
|
|
9912 |
}
|
|
|
9913 |
|
|
|
9914 |
public _Fields fieldForId(int fieldId) {
|
|
|
9915 |
return _Fields.findByThriftId(fieldId);
|
|
|
9916 |
}
|
|
|
9917 |
|
|
|
9918 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9919 |
org.apache.thrift.protocol.TField field;
|
| 2708 |
chandransh |
9920 |
iprot.readStructBegin();
|
|
|
9921 |
while (true)
|
|
|
9922 |
{
|
|
|
9923 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
9924 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2708 |
chandransh |
9925 |
break;
|
|
|
9926 |
}
|
| 3430 |
rajveer |
9927 |
switch (field.id) {
|
|
|
9928 |
case 0: // SUCCESS
|
|
|
9929 |
if (field.type == org.apache.thrift.protocol.TType.MAP) {
|
|
|
9930 |
{
|
|
|
9931 |
org.apache.thrift.protocol.TMap _map37 = iprot.readMapBegin();
|
|
|
9932 |
this.success = new HashMap<String,String>(2*_map37.size);
|
|
|
9933 |
for (int _i38 = 0; _i38 < _map37.size; ++_i38)
|
| 2708 |
chandransh |
9934 |
{
|
| 3430 |
rajveer |
9935 |
String _key39; // required
|
|
|
9936 |
String _val40; // required
|
|
|
9937 |
_key39 = iprot.readString();
|
|
|
9938 |
_val40 = iprot.readString();
|
|
|
9939 |
this.success.put(_key39, _val40);
|
| 2708 |
chandransh |
9940 |
}
|
| 3430 |
rajveer |
9941 |
iprot.readMapEnd();
|
| 2708 |
chandransh |
9942 |
}
|
| 3430 |
rajveer |
9943 |
} else {
|
|
|
9944 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9945 |
}
|
|
|
9946 |
break;
|
|
|
9947 |
case 1: // PE
|
|
|
9948 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9949 |
this.pe = new PaymentException();
|
|
|
9950 |
this.pe.read(iprot);
|
|
|
9951 |
} else {
|
|
|
9952 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9953 |
}
|
|
|
9954 |
break;
|
|
|
9955 |
default:
|
|
|
9956 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2708 |
chandransh |
9957 |
}
|
| 3430 |
rajveer |
9958 |
iprot.readFieldEnd();
|
| 2708 |
chandransh |
9959 |
}
|
|
|
9960 |
iprot.readStructEnd();
|
|
|
9961 |
validate();
|
|
|
9962 |
}
|
|
|
9963 |
|
| 3430 |
rajveer |
9964 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2708 |
chandransh |
9965 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9966 |
|
|
|
9967 |
if (this.isSetSuccess()) {
|
|
|
9968 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
9969 |
{
|
| 3430 |
rajveer |
9970 |
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
|
| 2747 |
chandransh |
9971 |
for (Map.Entry<String, String> _iter41 : this.success.entrySet())
|
| 2708 |
chandransh |
9972 |
{
|
| 2747 |
chandransh |
9973 |
oprot.writeString(_iter41.getKey());
|
|
|
9974 |
oprot.writeString(_iter41.getValue());
|
| 2708 |
chandransh |
9975 |
}
|
|
|
9976 |
oprot.writeMapEnd();
|
|
|
9977 |
}
|
|
|
9978 |
oprot.writeFieldEnd();
|
|
|
9979 |
} else if (this.isSetPe()) {
|
|
|
9980 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
9981 |
this.pe.write(oprot);
|
|
|
9982 |
oprot.writeFieldEnd();
|
|
|
9983 |
}
|
|
|
9984 |
oprot.writeFieldStop();
|
|
|
9985 |
oprot.writeStructEnd();
|
|
|
9986 |
}
|
|
|
9987 |
|
|
|
9988 |
@Override
|
|
|
9989 |
public String toString() {
|
| 3010 |
chandransh |
9990 |
StringBuilder sb = new StringBuilder("captureHdfcPayment_result(");
|
| 2708 |
chandransh |
9991 |
boolean first = true;
|
|
|
9992 |
|
|
|
9993 |
sb.append("success:");
|
|
|
9994 |
if (this.success == null) {
|
|
|
9995 |
sb.append("null");
|
|
|
9996 |
} else {
|
|
|
9997 |
sb.append(this.success);
|
|
|
9998 |
}
|
|
|
9999 |
first = false;
|
|
|
10000 |
if (!first) sb.append(", ");
|
|
|
10001 |
sb.append("pe:");
|
|
|
10002 |
if (this.pe == null) {
|
|
|
10003 |
sb.append("null");
|
|
|
10004 |
} else {
|
|
|
10005 |
sb.append(this.pe);
|
|
|
10006 |
}
|
|
|
10007 |
first = false;
|
|
|
10008 |
sb.append(")");
|
|
|
10009 |
return sb.toString();
|
|
|
10010 |
}
|
|
|
10011 |
|
| 3430 |
rajveer |
10012 |
public void validate() throws org.apache.thrift.TException {
|
| 2708 |
chandransh |
10013 |
// check for required fields
|
|
|
10014 |
}
|
|
|
10015 |
|
| 3430 |
rajveer |
10016 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10017 |
try {
|
|
|
10018 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10019 |
} catch (org.apache.thrift.TException te) {
|
|
|
10020 |
throw new java.io.IOException(te);
|
|
|
10021 |
}
|
|
|
10022 |
}
|
|
|
10023 |
|
|
|
10024 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10025 |
try {
|
|
|
10026 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10027 |
} catch (org.apache.thrift.TException te) {
|
|
|
10028 |
throw new java.io.IOException(te);
|
|
|
10029 |
}
|
|
|
10030 |
}
|
|
|
10031 |
|
| 2708 |
chandransh |
10032 |
}
|
|
|
10033 |
|
| 3430 |
rajveer |
10034 |
public static class initializeHdfcPayment_args implements org.apache.thrift.TBase<initializeHdfcPayment_args, initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
10035 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_args");
|
| 2462 |
chandransh |
10036 |
|
| 3430 |
rajveer |
10037 |
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 |
10038 |
|
| 3430 |
rajveer |
10039 |
private long merchantPaymentId; // required
|
| 2462 |
chandransh |
10040 |
|
|
|
10041 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
10042 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2462 |
chandransh |
10043 |
MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
|
|
|
10044 |
|
|
|
10045 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10046 |
|
|
|
10047 |
static {
|
|
|
10048 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10049 |
byName.put(field.getFieldName(), field);
|
|
|
10050 |
}
|
|
|
10051 |
}
|
|
|
10052 |
|
|
|
10053 |
/**
|
|
|
10054 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10055 |
*/
|
|
|
10056 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
10057 |
switch(fieldId) {
|
|
|
10058 |
case 1: // MERCHANT_PAYMENT_ID
|
|
|
10059 |
return MERCHANT_PAYMENT_ID;
|
|
|
10060 |
default:
|
|
|
10061 |
return null;
|
|
|
10062 |
}
|
| 2462 |
chandransh |
10063 |
}
|
|
|
10064 |
|
|
|
10065 |
/**
|
|
|
10066 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10067 |
* if it is not found.
|
|
|
10068 |
*/
|
|
|
10069 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10070 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10071 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10072 |
return fields;
|
|
|
10073 |
}
|
|
|
10074 |
|
|
|
10075 |
/**
|
|
|
10076 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10077 |
*/
|
|
|
10078 |
public static _Fields findByName(String name) {
|
|
|
10079 |
return byName.get(name);
|
|
|
10080 |
}
|
|
|
10081 |
|
|
|
10082 |
private final short _thriftId;
|
|
|
10083 |
private final String _fieldName;
|
|
|
10084 |
|
|
|
10085 |
_Fields(short thriftId, String fieldName) {
|
|
|
10086 |
_thriftId = thriftId;
|
|
|
10087 |
_fieldName = fieldName;
|
|
|
10088 |
}
|
|
|
10089 |
|
|
|
10090 |
public short getThriftFieldId() {
|
|
|
10091 |
return _thriftId;
|
|
|
10092 |
}
|
|
|
10093 |
|
|
|
10094 |
public String getFieldName() {
|
|
|
10095 |
return _fieldName;
|
|
|
10096 |
}
|
|
|
10097 |
}
|
|
|
10098 |
|
|
|
10099 |
// isset id assignments
|
|
|
10100 |
private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
|
|
|
10101 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
10102 |
|
| 3430 |
rajveer |
10103 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2462 |
chandransh |
10104 |
static {
|
| 3430 |
rajveer |
10105 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10106 |
tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10107 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10108 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10109 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
|
| 2462 |
chandransh |
10110 |
}
|
|
|
10111 |
|
| 3010 |
chandransh |
10112 |
public initializeHdfcPayment_args() {
|
| 2462 |
chandransh |
10113 |
}
|
|
|
10114 |
|
| 3010 |
chandransh |
10115 |
public initializeHdfcPayment_args(
|
| 2462 |
chandransh |
10116 |
long merchantPaymentId)
|
|
|
10117 |
{
|
|
|
10118 |
this();
|
|
|
10119 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
10120 |
setMerchantPaymentIdIsSet(true);
|
|
|
10121 |
}
|
|
|
10122 |
|
|
|
10123 |
/**
|
|
|
10124 |
* Performs a deep copy on <i>other</i>.
|
|
|
10125 |
*/
|
| 3010 |
chandransh |
10126 |
public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
|
| 2462 |
chandransh |
10127 |
__isset_bit_vector.clear();
|
|
|
10128 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
10129 |
this.merchantPaymentId = other.merchantPaymentId;
|
|
|
10130 |
}
|
|
|
10131 |
|
| 3010 |
chandransh |
10132 |
public initializeHdfcPayment_args deepCopy() {
|
|
|
10133 |
return new initializeHdfcPayment_args(this);
|
| 2462 |
chandransh |
10134 |
}
|
|
|
10135 |
|
| 3430 |
rajveer |
10136 |
@Override
|
|
|
10137 |
public void clear() {
|
|
|
10138 |
setMerchantPaymentIdIsSet(false);
|
|
|
10139 |
this.merchantPaymentId = 0;
|
| 2462 |
chandransh |
10140 |
}
|
|
|
10141 |
|
|
|
10142 |
public long getMerchantPaymentId() {
|
|
|
10143 |
return this.merchantPaymentId;
|
|
|
10144 |
}
|
|
|
10145 |
|
| 3430 |
rajveer |
10146 |
public void setMerchantPaymentId(long merchantPaymentId) {
|
| 2462 |
chandransh |
10147 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
10148 |
setMerchantPaymentIdIsSet(true);
|
|
|
10149 |
}
|
|
|
10150 |
|
|
|
10151 |
public void unsetMerchantPaymentId() {
|
|
|
10152 |
__isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
10153 |
}
|
|
|
10154 |
|
| 3430 |
rajveer |
10155 |
/** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
|
| 2462 |
chandransh |
10156 |
public boolean isSetMerchantPaymentId() {
|
|
|
10157 |
return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
10158 |
}
|
|
|
10159 |
|
|
|
10160 |
public void setMerchantPaymentIdIsSet(boolean value) {
|
|
|
10161 |
__isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
|
|
|
10162 |
}
|
|
|
10163 |
|
|
|
10164 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10165 |
switch (field) {
|
|
|
10166 |
case MERCHANT_PAYMENT_ID:
|
|
|
10167 |
if (value == null) {
|
|
|
10168 |
unsetMerchantPaymentId();
|
|
|
10169 |
} else {
|
|
|
10170 |
setMerchantPaymentId((Long)value);
|
|
|
10171 |
}
|
|
|
10172 |
break;
|
|
|
10173 |
|
|
|
10174 |
}
|
|
|
10175 |
}
|
|
|
10176 |
|
|
|
10177 |
public Object getFieldValue(_Fields field) {
|
|
|
10178 |
switch (field) {
|
|
|
10179 |
case MERCHANT_PAYMENT_ID:
|
| 3430 |
rajveer |
10180 |
return Long.valueOf(getMerchantPaymentId());
|
| 2462 |
chandransh |
10181 |
|
|
|
10182 |
}
|
|
|
10183 |
throw new IllegalStateException();
|
|
|
10184 |
}
|
|
|
10185 |
|
| 3430 |
rajveer |
10186 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10187 |
public boolean isSet(_Fields field) {
|
|
|
10188 |
if (field == null) {
|
|
|
10189 |
throw new IllegalArgumentException();
|
|
|
10190 |
}
|
| 2462 |
chandransh |
10191 |
|
|
|
10192 |
switch (field) {
|
|
|
10193 |
case MERCHANT_PAYMENT_ID:
|
|
|
10194 |
return isSetMerchantPaymentId();
|
|
|
10195 |
}
|
|
|
10196 |
throw new IllegalStateException();
|
|
|
10197 |
}
|
|
|
10198 |
|
|
|
10199 |
@Override
|
|
|
10200 |
public boolean equals(Object that) {
|
|
|
10201 |
if (that == null)
|
|
|
10202 |
return false;
|
| 3010 |
chandransh |
10203 |
if (that instanceof initializeHdfcPayment_args)
|
|
|
10204 |
return this.equals((initializeHdfcPayment_args)that);
|
| 2462 |
chandransh |
10205 |
return false;
|
|
|
10206 |
}
|
|
|
10207 |
|
| 3010 |
chandransh |
10208 |
public boolean equals(initializeHdfcPayment_args that) {
|
| 2462 |
chandransh |
10209 |
if (that == null)
|
|
|
10210 |
return false;
|
|
|
10211 |
|
|
|
10212 |
boolean this_present_merchantPaymentId = true;
|
|
|
10213 |
boolean that_present_merchantPaymentId = true;
|
|
|
10214 |
if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
|
|
|
10215 |
if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
|
|
|
10216 |
return false;
|
|
|
10217 |
if (this.merchantPaymentId != that.merchantPaymentId)
|
|
|
10218 |
return false;
|
|
|
10219 |
}
|
|
|
10220 |
|
|
|
10221 |
return true;
|
|
|
10222 |
}
|
|
|
10223 |
|
|
|
10224 |
@Override
|
|
|
10225 |
public int hashCode() {
|
|
|
10226 |
return 0;
|
|
|
10227 |
}
|
|
|
10228 |
|
| 3010 |
chandransh |
10229 |
public int compareTo(initializeHdfcPayment_args other) {
|
| 2462 |
chandransh |
10230 |
if (!getClass().equals(other.getClass())) {
|
|
|
10231 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10232 |
}
|
|
|
10233 |
|
|
|
10234 |
int lastComparison = 0;
|
| 3010 |
chandransh |
10235 |
initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
|
| 2462 |
chandransh |
10236 |
|
| 3430 |
rajveer |
10237 |
lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
|
| 2462 |
chandransh |
10238 |
if (lastComparison != 0) {
|
|
|
10239 |
return lastComparison;
|
|
|
10240 |
}
|
| 3430 |
rajveer |
10241 |
if (isSetMerchantPaymentId()) {
|
|
|
10242 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
|
|
|
10243 |
if (lastComparison != 0) {
|
|
|
10244 |
return lastComparison;
|
|
|
10245 |
}
|
| 2462 |
chandransh |
10246 |
}
|
|
|
10247 |
return 0;
|
|
|
10248 |
}
|
|
|
10249 |
|
| 3430 |
rajveer |
10250 |
public _Fields fieldForId(int fieldId) {
|
|
|
10251 |
return _Fields.findByThriftId(fieldId);
|
|
|
10252 |
}
|
|
|
10253 |
|
|
|
10254 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10255 |
org.apache.thrift.protocol.TField field;
|
| 2462 |
chandransh |
10256 |
iprot.readStructBegin();
|
|
|
10257 |
while (true)
|
|
|
10258 |
{
|
|
|
10259 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
10260 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2462 |
chandransh |
10261 |
break;
|
|
|
10262 |
}
|
| 3430 |
rajveer |
10263 |
switch (field.id) {
|
|
|
10264 |
case 1: // MERCHANT_PAYMENT_ID
|
|
|
10265 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10266 |
this.merchantPaymentId = iprot.readI64();
|
|
|
10267 |
setMerchantPaymentIdIsSet(true);
|
|
|
10268 |
} else {
|
|
|
10269 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10270 |
}
|
|
|
10271 |
break;
|
|
|
10272 |
default:
|
|
|
10273 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2462 |
chandransh |
10274 |
}
|
| 3430 |
rajveer |
10275 |
iprot.readFieldEnd();
|
| 2462 |
chandransh |
10276 |
}
|
|
|
10277 |
iprot.readStructEnd();
|
|
|
10278 |
validate();
|
|
|
10279 |
}
|
|
|
10280 |
|
| 3430 |
rajveer |
10281 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
10282 |
validate();
|
|
|
10283 |
|
|
|
10284 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10285 |
oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
|
|
|
10286 |
oprot.writeI64(this.merchantPaymentId);
|
|
|
10287 |
oprot.writeFieldEnd();
|
|
|
10288 |
oprot.writeFieldStop();
|
|
|
10289 |
oprot.writeStructEnd();
|
|
|
10290 |
}
|
|
|
10291 |
|
|
|
10292 |
@Override
|
|
|
10293 |
public String toString() {
|
| 3010 |
chandransh |
10294 |
StringBuilder sb = new StringBuilder("initializeHdfcPayment_args(");
|
| 2462 |
chandransh |
10295 |
boolean first = true;
|
|
|
10296 |
|
|
|
10297 |
sb.append("merchantPaymentId:");
|
|
|
10298 |
sb.append(this.merchantPaymentId);
|
|
|
10299 |
first = false;
|
|
|
10300 |
sb.append(")");
|
|
|
10301 |
return sb.toString();
|
|
|
10302 |
}
|
|
|
10303 |
|
| 3430 |
rajveer |
10304 |
public void validate() throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
10305 |
// check for required fields
|
|
|
10306 |
}
|
|
|
10307 |
|
| 3430 |
rajveer |
10308 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10309 |
try {
|
|
|
10310 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10311 |
} catch (org.apache.thrift.TException te) {
|
|
|
10312 |
throw new java.io.IOException(te);
|
|
|
10313 |
}
|
|
|
10314 |
}
|
|
|
10315 |
|
|
|
10316 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10317 |
try {
|
|
|
10318 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10319 |
} catch (org.apache.thrift.TException te) {
|
|
|
10320 |
throw new java.io.IOException(te);
|
|
|
10321 |
}
|
|
|
10322 |
}
|
|
|
10323 |
|
| 2462 |
chandransh |
10324 |
}
|
|
|
10325 |
|
| 3430 |
rajveer |
10326 |
public static class initializeHdfcPayment_result implements org.apache.thrift.TBase<initializeHdfcPayment_result, initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
10327 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_result");
|
| 2462 |
chandransh |
10328 |
|
| 3430 |
rajveer |
10329 |
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);
|
|
|
10330 |
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 |
10331 |
|
| 3430 |
rajveer |
10332 |
private String success; // required
|
|
|
10333 |
private PaymentException pe; // required
|
| 2462 |
chandransh |
10334 |
|
|
|
10335 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
10336 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2462 |
chandransh |
10337 |
SUCCESS((short)0, "success"),
|
|
|
10338 |
PE((short)1, "pe");
|
|
|
10339 |
|
|
|
10340 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10341 |
|
|
|
10342 |
static {
|
|
|
10343 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10344 |
byName.put(field.getFieldName(), field);
|
|
|
10345 |
}
|
|
|
10346 |
}
|
|
|
10347 |
|
|
|
10348 |
/**
|
|
|
10349 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10350 |
*/
|
|
|
10351 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
10352 |
switch(fieldId) {
|
|
|
10353 |
case 0: // SUCCESS
|
|
|
10354 |
return SUCCESS;
|
|
|
10355 |
case 1: // PE
|
|
|
10356 |
return PE;
|
|
|
10357 |
default:
|
|
|
10358 |
return null;
|
|
|
10359 |
}
|
| 2462 |
chandransh |
10360 |
}
|
|
|
10361 |
|
|
|
10362 |
/**
|
|
|
10363 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10364 |
* if it is not found.
|
|
|
10365 |
*/
|
|
|
10366 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10367 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10368 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10369 |
return fields;
|
|
|
10370 |
}
|
|
|
10371 |
|
|
|
10372 |
/**
|
|
|
10373 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10374 |
*/
|
|
|
10375 |
public static _Fields findByName(String name) {
|
|
|
10376 |
return byName.get(name);
|
|
|
10377 |
}
|
|
|
10378 |
|
|
|
10379 |
private final short _thriftId;
|
|
|
10380 |
private final String _fieldName;
|
|
|
10381 |
|
|
|
10382 |
_Fields(short thriftId, String fieldName) {
|
|
|
10383 |
_thriftId = thriftId;
|
|
|
10384 |
_fieldName = fieldName;
|
|
|
10385 |
}
|
|
|
10386 |
|
|
|
10387 |
public short getThriftFieldId() {
|
|
|
10388 |
return _thriftId;
|
|
|
10389 |
}
|
|
|
10390 |
|
|
|
10391 |
public String getFieldName() {
|
|
|
10392 |
return _fieldName;
|
|
|
10393 |
}
|
|
|
10394 |
}
|
|
|
10395 |
|
|
|
10396 |
// isset id assignments
|
|
|
10397 |
|
| 3430 |
rajveer |
10398 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2462 |
chandransh |
10399 |
static {
|
| 3430 |
rajveer |
10400 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10401 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10402 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
10403 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10404 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
10405 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10406 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
|
| 2462 |
chandransh |
10407 |
}
|
|
|
10408 |
|
| 3010 |
chandransh |
10409 |
public initializeHdfcPayment_result() {
|
| 2462 |
chandransh |
10410 |
}
|
|
|
10411 |
|
| 3010 |
chandransh |
10412 |
public initializeHdfcPayment_result(
|
|
|
10413 |
String success,
|
| 2462 |
chandransh |
10414 |
PaymentException pe)
|
|
|
10415 |
{
|
|
|
10416 |
this();
|
|
|
10417 |
this.success = success;
|
|
|
10418 |
this.pe = pe;
|
|
|
10419 |
}
|
|
|
10420 |
|
|
|
10421 |
/**
|
|
|
10422 |
* Performs a deep copy on <i>other</i>.
|
|
|
10423 |
*/
|
| 3010 |
chandransh |
10424 |
public initializeHdfcPayment_result(initializeHdfcPayment_result other) {
|
| 2462 |
chandransh |
10425 |
if (other.isSetSuccess()) {
|
| 3010 |
chandransh |
10426 |
this.success = other.success;
|
| 2462 |
chandransh |
10427 |
}
|
|
|
10428 |
if (other.isSetPe()) {
|
|
|
10429 |
this.pe = new PaymentException(other.pe);
|
|
|
10430 |
}
|
|
|
10431 |
}
|
|
|
10432 |
|
| 3010 |
chandransh |
10433 |
public initializeHdfcPayment_result deepCopy() {
|
|
|
10434 |
return new initializeHdfcPayment_result(this);
|
| 2462 |
chandransh |
10435 |
}
|
|
|
10436 |
|
| 3430 |
rajveer |
10437 |
@Override
|
|
|
10438 |
public void clear() {
|
|
|
10439 |
this.success = null;
|
|
|
10440 |
this.pe = null;
|
| 2462 |
chandransh |
10441 |
}
|
|
|
10442 |
|
| 3010 |
chandransh |
10443 |
public String getSuccess() {
|
| 2462 |
chandransh |
10444 |
return this.success;
|
|
|
10445 |
}
|
|
|
10446 |
|
| 3430 |
rajveer |
10447 |
public void setSuccess(String success) {
|
| 2462 |
chandransh |
10448 |
this.success = success;
|
|
|
10449 |
}
|
|
|
10450 |
|
|
|
10451 |
public void unsetSuccess() {
|
|
|
10452 |
this.success = null;
|
|
|
10453 |
}
|
|
|
10454 |
|
| 3430 |
rajveer |
10455 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2462 |
chandransh |
10456 |
public boolean isSetSuccess() {
|
|
|
10457 |
return this.success != null;
|
|
|
10458 |
}
|
|
|
10459 |
|
|
|
10460 |
public void setSuccessIsSet(boolean value) {
|
|
|
10461 |
if (!value) {
|
|
|
10462 |
this.success = null;
|
|
|
10463 |
}
|
|
|
10464 |
}
|
|
|
10465 |
|
|
|
10466 |
public PaymentException getPe() {
|
|
|
10467 |
return this.pe;
|
|
|
10468 |
}
|
|
|
10469 |
|
| 3430 |
rajveer |
10470 |
public void setPe(PaymentException pe) {
|
| 2462 |
chandransh |
10471 |
this.pe = pe;
|
|
|
10472 |
}
|
|
|
10473 |
|
|
|
10474 |
public void unsetPe() {
|
|
|
10475 |
this.pe = null;
|
|
|
10476 |
}
|
|
|
10477 |
|
| 3430 |
rajveer |
10478 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 2462 |
chandransh |
10479 |
public boolean isSetPe() {
|
|
|
10480 |
return this.pe != null;
|
|
|
10481 |
}
|
|
|
10482 |
|
|
|
10483 |
public void setPeIsSet(boolean value) {
|
|
|
10484 |
if (!value) {
|
|
|
10485 |
this.pe = null;
|
|
|
10486 |
}
|
|
|
10487 |
}
|
|
|
10488 |
|
|
|
10489 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10490 |
switch (field) {
|
|
|
10491 |
case SUCCESS:
|
|
|
10492 |
if (value == null) {
|
|
|
10493 |
unsetSuccess();
|
|
|
10494 |
} else {
|
| 3010 |
chandransh |
10495 |
setSuccess((String)value);
|
| 2462 |
chandransh |
10496 |
}
|
|
|
10497 |
break;
|
|
|
10498 |
|
|
|
10499 |
case PE:
|
|
|
10500 |
if (value == null) {
|
|
|
10501 |
unsetPe();
|
|
|
10502 |
} else {
|
|
|
10503 |
setPe((PaymentException)value);
|
|
|
10504 |
}
|
|
|
10505 |
break;
|
|
|
10506 |
|
|
|
10507 |
}
|
|
|
10508 |
}
|
|
|
10509 |
|
|
|
10510 |
public Object getFieldValue(_Fields field) {
|
|
|
10511 |
switch (field) {
|
|
|
10512 |
case SUCCESS:
|
|
|
10513 |
return getSuccess();
|
|
|
10514 |
|
|
|
10515 |
case PE:
|
|
|
10516 |
return getPe();
|
|
|
10517 |
|
|
|
10518 |
}
|
|
|
10519 |
throw new IllegalStateException();
|
|
|
10520 |
}
|
|
|
10521 |
|
| 3430 |
rajveer |
10522 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10523 |
public boolean isSet(_Fields field) {
|
|
|
10524 |
if (field == null) {
|
|
|
10525 |
throw new IllegalArgumentException();
|
|
|
10526 |
}
|
| 2462 |
chandransh |
10527 |
|
|
|
10528 |
switch (field) {
|
|
|
10529 |
case SUCCESS:
|
|
|
10530 |
return isSetSuccess();
|
|
|
10531 |
case PE:
|
|
|
10532 |
return isSetPe();
|
|
|
10533 |
}
|
|
|
10534 |
throw new IllegalStateException();
|
|
|
10535 |
}
|
|
|
10536 |
|
|
|
10537 |
@Override
|
|
|
10538 |
public boolean equals(Object that) {
|
|
|
10539 |
if (that == null)
|
|
|
10540 |
return false;
|
| 3010 |
chandransh |
10541 |
if (that instanceof initializeHdfcPayment_result)
|
|
|
10542 |
return this.equals((initializeHdfcPayment_result)that);
|
| 2462 |
chandransh |
10543 |
return false;
|
|
|
10544 |
}
|
|
|
10545 |
|
| 3010 |
chandransh |
10546 |
public boolean equals(initializeHdfcPayment_result that) {
|
| 2462 |
chandransh |
10547 |
if (that == null)
|
|
|
10548 |
return false;
|
|
|
10549 |
|
|
|
10550 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10551 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
10552 |
if (this_present_success || that_present_success) {
|
|
|
10553 |
if (!(this_present_success && that_present_success))
|
|
|
10554 |
return false;
|
|
|
10555 |
if (!this.success.equals(that.success))
|
|
|
10556 |
return false;
|
|
|
10557 |
}
|
|
|
10558 |
|
|
|
10559 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
10560 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
10561 |
if (this_present_pe || that_present_pe) {
|
|
|
10562 |
if (!(this_present_pe && that_present_pe))
|
|
|
10563 |
return false;
|
|
|
10564 |
if (!this.pe.equals(that.pe))
|
|
|
10565 |
return false;
|
|
|
10566 |
}
|
|
|
10567 |
|
|
|
10568 |
return true;
|
|
|
10569 |
}
|
|
|
10570 |
|
|
|
10571 |
@Override
|
|
|
10572 |
public int hashCode() {
|
|
|
10573 |
return 0;
|
|
|
10574 |
}
|
|
|
10575 |
|
| 3010 |
chandransh |
10576 |
public int compareTo(initializeHdfcPayment_result other) {
|
|
|
10577 |
if (!getClass().equals(other.getClass())) {
|
|
|
10578 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10579 |
}
|
|
|
10580 |
|
|
|
10581 |
int lastComparison = 0;
|
|
|
10582 |
initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
|
|
|
10583 |
|
| 3430 |
rajveer |
10584 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 3010 |
chandransh |
10585 |
if (lastComparison != 0) {
|
|
|
10586 |
return lastComparison;
|
|
|
10587 |
}
|
| 3430 |
rajveer |
10588 |
if (isSetSuccess()) {
|
|
|
10589 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
10590 |
if (lastComparison != 0) {
|
|
|
10591 |
return lastComparison;
|
|
|
10592 |
}
|
| 3010 |
chandransh |
10593 |
}
|
| 3430 |
rajveer |
10594 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 3010 |
chandransh |
10595 |
if (lastComparison != 0) {
|
|
|
10596 |
return lastComparison;
|
|
|
10597 |
}
|
| 3430 |
rajveer |
10598 |
if (isSetPe()) {
|
|
|
10599 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
10600 |
if (lastComparison != 0) {
|
|
|
10601 |
return lastComparison;
|
|
|
10602 |
}
|
| 3010 |
chandransh |
10603 |
}
|
|
|
10604 |
return 0;
|
|
|
10605 |
}
|
|
|
10606 |
|
| 3430 |
rajveer |
10607 |
public _Fields fieldForId(int fieldId) {
|
|
|
10608 |
return _Fields.findByThriftId(fieldId);
|
|
|
10609 |
}
|
|
|
10610 |
|
|
|
10611 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10612 |
org.apache.thrift.protocol.TField field;
|
| 2462 |
chandransh |
10613 |
iprot.readStructBegin();
|
|
|
10614 |
while (true)
|
|
|
10615 |
{
|
|
|
10616 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
10617 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2462 |
chandransh |
10618 |
break;
|
|
|
10619 |
}
|
| 3430 |
rajveer |
10620 |
switch (field.id) {
|
|
|
10621 |
case 0: // SUCCESS
|
|
|
10622 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
10623 |
this.success = iprot.readString();
|
|
|
10624 |
} else {
|
|
|
10625 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10626 |
}
|
|
|
10627 |
break;
|
|
|
10628 |
case 1: // PE
|
|
|
10629 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
10630 |
this.pe = new PaymentException();
|
|
|
10631 |
this.pe.read(iprot);
|
|
|
10632 |
} else {
|
|
|
10633 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10634 |
}
|
|
|
10635 |
break;
|
|
|
10636 |
default:
|
|
|
10637 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2462 |
chandransh |
10638 |
}
|
| 3430 |
rajveer |
10639 |
iprot.readFieldEnd();
|
| 2462 |
chandransh |
10640 |
}
|
|
|
10641 |
iprot.readStructEnd();
|
|
|
10642 |
validate();
|
|
|
10643 |
}
|
|
|
10644 |
|
| 3430 |
rajveer |
10645 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
10646 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10647 |
|
|
|
10648 |
if (this.isSetSuccess()) {
|
|
|
10649 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 3010 |
chandransh |
10650 |
oprot.writeString(this.success);
|
| 2462 |
chandransh |
10651 |
oprot.writeFieldEnd();
|
|
|
10652 |
} else if (this.isSetPe()) {
|
|
|
10653 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
10654 |
this.pe.write(oprot);
|
|
|
10655 |
oprot.writeFieldEnd();
|
|
|
10656 |
}
|
|
|
10657 |
oprot.writeFieldStop();
|
|
|
10658 |
oprot.writeStructEnd();
|
|
|
10659 |
}
|
|
|
10660 |
|
|
|
10661 |
@Override
|
|
|
10662 |
public String toString() {
|
| 3010 |
chandransh |
10663 |
StringBuilder sb = new StringBuilder("initializeHdfcPayment_result(");
|
| 2462 |
chandransh |
10664 |
boolean first = true;
|
|
|
10665 |
|
|
|
10666 |
sb.append("success:");
|
|
|
10667 |
if (this.success == null) {
|
|
|
10668 |
sb.append("null");
|
|
|
10669 |
} else {
|
|
|
10670 |
sb.append(this.success);
|
|
|
10671 |
}
|
|
|
10672 |
first = false;
|
|
|
10673 |
if (!first) sb.append(", ");
|
|
|
10674 |
sb.append("pe:");
|
|
|
10675 |
if (this.pe == null) {
|
|
|
10676 |
sb.append("null");
|
|
|
10677 |
} else {
|
|
|
10678 |
sb.append(this.pe);
|
|
|
10679 |
}
|
|
|
10680 |
first = false;
|
|
|
10681 |
sb.append(")");
|
|
|
10682 |
return sb.toString();
|
|
|
10683 |
}
|
|
|
10684 |
|
| 3430 |
rajveer |
10685 |
public void validate() throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
10686 |
// check for required fields
|
|
|
10687 |
}
|
|
|
10688 |
|
| 3430 |
rajveer |
10689 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10690 |
try {
|
|
|
10691 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10692 |
} catch (org.apache.thrift.TException te) {
|
|
|
10693 |
throw new java.io.IOException(te);
|
|
|
10694 |
}
|
|
|
10695 |
}
|
|
|
10696 |
|
|
|
10697 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10698 |
try {
|
|
|
10699 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10700 |
} catch (org.apache.thrift.TException te) {
|
|
|
10701 |
throw new java.io.IOException(te);
|
|
|
10702 |
}
|
|
|
10703 |
}
|
|
|
10704 |
|
| 2462 |
chandransh |
10705 |
}
|
|
|
10706 |
|
| 3430 |
rajveer |
10707 |
public static class createRefund_args implements org.apache.thrift.TBase<createRefund_args, createRefund_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
10708 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_args");
|
| 2462 |
chandransh |
10709 |
|
| 3430 |
rajveer |
10710 |
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);
|
|
|
10711 |
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);
|
|
|
10712 |
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 |
10713 |
|
| 3430 |
rajveer |
10714 |
private long orderId; // required
|
|
|
10715 |
private long merchantTxnId; // required
|
|
|
10716 |
private double amount; // required
|
| 2462 |
chandransh |
10717 |
|
|
|
10718 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
10719 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3010 |
chandransh |
10720 |
ORDER_ID((short)1, "orderId"),
|
|
|
10721 |
MERCHANT_TXN_ID((short)2, "merchantTxnId"),
|
|
|
10722 |
AMOUNT((short)3, "amount");
|
| 2462 |
chandransh |
10723 |
|
|
|
10724 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10725 |
|
|
|
10726 |
static {
|
|
|
10727 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10728 |
byName.put(field.getFieldName(), field);
|
|
|
10729 |
}
|
|
|
10730 |
}
|
|
|
10731 |
|
|
|
10732 |
/**
|
|
|
10733 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10734 |
*/
|
|
|
10735 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
10736 |
switch(fieldId) {
|
|
|
10737 |
case 1: // ORDER_ID
|
|
|
10738 |
return ORDER_ID;
|
|
|
10739 |
case 2: // MERCHANT_TXN_ID
|
|
|
10740 |
return MERCHANT_TXN_ID;
|
|
|
10741 |
case 3: // AMOUNT
|
|
|
10742 |
return AMOUNT;
|
|
|
10743 |
default:
|
|
|
10744 |
return null;
|
|
|
10745 |
}
|
| 2462 |
chandransh |
10746 |
}
|
|
|
10747 |
|
|
|
10748 |
/**
|
|
|
10749 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10750 |
* if it is not found.
|
|
|
10751 |
*/
|
|
|
10752 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10753 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10754 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10755 |
return fields;
|
|
|
10756 |
}
|
|
|
10757 |
|
|
|
10758 |
/**
|
|
|
10759 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10760 |
*/
|
|
|
10761 |
public static _Fields findByName(String name) {
|
|
|
10762 |
return byName.get(name);
|
|
|
10763 |
}
|
|
|
10764 |
|
|
|
10765 |
private final short _thriftId;
|
|
|
10766 |
private final String _fieldName;
|
|
|
10767 |
|
|
|
10768 |
_Fields(short thriftId, String fieldName) {
|
|
|
10769 |
_thriftId = thriftId;
|
|
|
10770 |
_fieldName = fieldName;
|
|
|
10771 |
}
|
|
|
10772 |
|
|
|
10773 |
public short getThriftFieldId() {
|
|
|
10774 |
return _thriftId;
|
|
|
10775 |
}
|
|
|
10776 |
|
|
|
10777 |
public String getFieldName() {
|
|
|
10778 |
return _fieldName;
|
|
|
10779 |
}
|
|
|
10780 |
}
|
|
|
10781 |
|
|
|
10782 |
// isset id assignments
|
| 3010 |
chandransh |
10783 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
10784 |
private static final int __MERCHANTTXNID_ISSET_ID = 1;
|
|
|
10785 |
private static final int __AMOUNT_ISSET_ID = 2;
|
|
|
10786 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 2462 |
chandransh |
10787 |
|
| 3430 |
rajveer |
10788 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2462 |
chandransh |
10789 |
static {
|
| 3430 |
rajveer |
10790 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10791 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10792 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10793 |
tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10794 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10795 |
tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10796 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
10797 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10798 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_args.class, metaDataMap);
|
| 2462 |
chandransh |
10799 |
}
|
|
|
10800 |
|
| 3010 |
chandransh |
10801 |
public createRefund_args() {
|
| 2462 |
chandransh |
10802 |
}
|
|
|
10803 |
|
| 3010 |
chandransh |
10804 |
public createRefund_args(
|
|
|
10805 |
long orderId,
|
|
|
10806 |
long merchantTxnId,
|
|
|
10807 |
double amount)
|
| 2462 |
chandransh |
10808 |
{
|
|
|
10809 |
this();
|
| 3010 |
chandransh |
10810 |
this.orderId = orderId;
|
|
|
10811 |
setOrderIdIsSet(true);
|
|
|
10812 |
this.merchantTxnId = merchantTxnId;
|
|
|
10813 |
setMerchantTxnIdIsSet(true);
|
|
|
10814 |
this.amount = amount;
|
|
|
10815 |
setAmountIsSet(true);
|
| 2462 |
chandransh |
10816 |
}
|
|
|
10817 |
|
|
|
10818 |
/**
|
|
|
10819 |
* Performs a deep copy on <i>other</i>.
|
|
|
10820 |
*/
|
| 3010 |
chandransh |
10821 |
public createRefund_args(createRefund_args other) {
|
| 2462 |
chandransh |
10822 |
__isset_bit_vector.clear();
|
|
|
10823 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 3010 |
chandransh |
10824 |
this.orderId = other.orderId;
|
|
|
10825 |
this.merchantTxnId = other.merchantTxnId;
|
|
|
10826 |
this.amount = other.amount;
|
| 2462 |
chandransh |
10827 |
}
|
|
|
10828 |
|
| 3010 |
chandransh |
10829 |
public createRefund_args deepCopy() {
|
|
|
10830 |
return new createRefund_args(this);
|
| 2462 |
chandransh |
10831 |
}
|
|
|
10832 |
|
| 3430 |
rajveer |
10833 |
@Override
|
|
|
10834 |
public void clear() {
|
|
|
10835 |
setOrderIdIsSet(false);
|
|
|
10836 |
this.orderId = 0;
|
|
|
10837 |
setMerchantTxnIdIsSet(false);
|
|
|
10838 |
this.merchantTxnId = 0;
|
|
|
10839 |
setAmountIsSet(false);
|
|
|
10840 |
this.amount = 0.0;
|
| 2462 |
chandransh |
10841 |
}
|
|
|
10842 |
|
| 3010 |
chandransh |
10843 |
public long getOrderId() {
|
|
|
10844 |
return this.orderId;
|
| 2462 |
chandransh |
10845 |
}
|
|
|
10846 |
|
| 3430 |
rajveer |
10847 |
public void setOrderId(long orderId) {
|
| 3010 |
chandransh |
10848 |
this.orderId = orderId;
|
|
|
10849 |
setOrderIdIsSet(true);
|
| 2462 |
chandransh |
10850 |
}
|
|
|
10851 |
|
| 3010 |
chandransh |
10852 |
public void unsetOrderId() {
|
|
|
10853 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
| 2462 |
chandransh |
10854 |
}
|
|
|
10855 |
|
| 3430 |
rajveer |
10856 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
| 3010 |
chandransh |
10857 |
public boolean isSetOrderId() {
|
|
|
10858 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
| 2462 |
chandransh |
10859 |
}
|
|
|
10860 |
|
| 3010 |
chandransh |
10861 |
public void setOrderIdIsSet(boolean value) {
|
|
|
10862 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
| 2462 |
chandransh |
10863 |
}
|
|
|
10864 |
|
| 3010 |
chandransh |
10865 |
public long getMerchantTxnId() {
|
|
|
10866 |
return this.merchantTxnId;
|
|
|
10867 |
}
|
|
|
10868 |
|
| 3430 |
rajveer |
10869 |
public void setMerchantTxnId(long merchantTxnId) {
|
| 3010 |
chandransh |
10870 |
this.merchantTxnId = merchantTxnId;
|
|
|
10871 |
setMerchantTxnIdIsSet(true);
|
|
|
10872 |
}
|
|
|
10873 |
|
|
|
10874 |
public void unsetMerchantTxnId() {
|
|
|
10875 |
__isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
|
|
|
10876 |
}
|
|
|
10877 |
|
| 3430 |
rajveer |
10878 |
/** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
|
| 3010 |
chandransh |
10879 |
public boolean isSetMerchantTxnId() {
|
|
|
10880 |
return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
|
|
|
10881 |
}
|
|
|
10882 |
|
|
|
10883 |
public void setMerchantTxnIdIsSet(boolean value) {
|
|
|
10884 |
__isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
|
|
|
10885 |
}
|
|
|
10886 |
|
|
|
10887 |
public double getAmount() {
|
|
|
10888 |
return this.amount;
|
|
|
10889 |
}
|
|
|
10890 |
|
| 3430 |
rajveer |
10891 |
public void setAmount(double amount) {
|
| 3010 |
chandransh |
10892 |
this.amount = amount;
|
|
|
10893 |
setAmountIsSet(true);
|
|
|
10894 |
}
|
|
|
10895 |
|
|
|
10896 |
public void unsetAmount() {
|
|
|
10897 |
__isset_bit_vector.clear(__AMOUNT_ISSET_ID);
|
|
|
10898 |
}
|
|
|
10899 |
|
| 3430 |
rajveer |
10900 |
/** Returns true if field amount is set (has been assigned a value) and false otherwise */
|
| 3010 |
chandransh |
10901 |
public boolean isSetAmount() {
|
|
|
10902 |
return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
|
|
|
10903 |
}
|
|
|
10904 |
|
|
|
10905 |
public void setAmountIsSet(boolean value) {
|
|
|
10906 |
__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
|
|
|
10907 |
}
|
|
|
10908 |
|
| 2462 |
chandransh |
10909 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10910 |
switch (field) {
|
| 3010 |
chandransh |
10911 |
case ORDER_ID:
|
| 2462 |
chandransh |
10912 |
if (value == null) {
|
| 3010 |
chandransh |
10913 |
unsetOrderId();
|
| 2462 |
chandransh |
10914 |
} else {
|
| 3010 |
chandransh |
10915 |
setOrderId((Long)value);
|
| 2462 |
chandransh |
10916 |
}
|
|
|
10917 |
break;
|
|
|
10918 |
|
| 3010 |
chandransh |
10919 |
case MERCHANT_TXN_ID:
|
|
|
10920 |
if (value == null) {
|
|
|
10921 |
unsetMerchantTxnId();
|
|
|
10922 |
} else {
|
|
|
10923 |
setMerchantTxnId((Long)value);
|
|
|
10924 |
}
|
|
|
10925 |
break;
|
|
|
10926 |
|
|
|
10927 |
case AMOUNT:
|
|
|
10928 |
if (value == null) {
|
|
|
10929 |
unsetAmount();
|
|
|
10930 |
} else {
|
|
|
10931 |
setAmount((Double)value);
|
|
|
10932 |
}
|
|
|
10933 |
break;
|
|
|
10934 |
|
| 2462 |
chandransh |
10935 |
}
|
|
|
10936 |
}
|
|
|
10937 |
|
|
|
10938 |
public Object getFieldValue(_Fields field) {
|
|
|
10939 |
switch (field) {
|
| 3010 |
chandransh |
10940 |
case ORDER_ID:
|
| 3430 |
rajveer |
10941 |
return Long.valueOf(getOrderId());
|
| 2462 |
chandransh |
10942 |
|
| 3010 |
chandransh |
10943 |
case MERCHANT_TXN_ID:
|
| 3430 |
rajveer |
10944 |
return Long.valueOf(getMerchantTxnId());
|
| 3010 |
chandransh |
10945 |
|
|
|
10946 |
case AMOUNT:
|
| 3430 |
rajveer |
10947 |
return Double.valueOf(getAmount());
|
| 3010 |
chandransh |
10948 |
|
| 2462 |
chandransh |
10949 |
}
|
|
|
10950 |
throw new IllegalStateException();
|
|
|
10951 |
}
|
|
|
10952 |
|
| 3430 |
rajveer |
10953 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10954 |
public boolean isSet(_Fields field) {
|
|
|
10955 |
if (field == null) {
|
|
|
10956 |
throw new IllegalArgumentException();
|
|
|
10957 |
}
|
| 2462 |
chandransh |
10958 |
|
|
|
10959 |
switch (field) {
|
| 3010 |
chandransh |
10960 |
case ORDER_ID:
|
|
|
10961 |
return isSetOrderId();
|
|
|
10962 |
case MERCHANT_TXN_ID:
|
|
|
10963 |
return isSetMerchantTxnId();
|
|
|
10964 |
case AMOUNT:
|
|
|
10965 |
return isSetAmount();
|
| 2462 |
chandransh |
10966 |
}
|
|
|
10967 |
throw new IllegalStateException();
|
|
|
10968 |
}
|
|
|
10969 |
|
|
|
10970 |
@Override
|
|
|
10971 |
public boolean equals(Object that) {
|
|
|
10972 |
if (that == null)
|
|
|
10973 |
return false;
|
| 3010 |
chandransh |
10974 |
if (that instanceof createRefund_args)
|
|
|
10975 |
return this.equals((createRefund_args)that);
|
| 2462 |
chandransh |
10976 |
return false;
|
|
|
10977 |
}
|
|
|
10978 |
|
| 3010 |
chandransh |
10979 |
public boolean equals(createRefund_args that) {
|
| 2462 |
chandransh |
10980 |
if (that == null)
|
|
|
10981 |
return false;
|
|
|
10982 |
|
| 3010 |
chandransh |
10983 |
boolean this_present_orderId = true;
|
|
|
10984 |
boolean that_present_orderId = true;
|
|
|
10985 |
if (this_present_orderId || that_present_orderId) {
|
|
|
10986 |
if (!(this_present_orderId && that_present_orderId))
|
| 2462 |
chandransh |
10987 |
return false;
|
| 3010 |
chandransh |
10988 |
if (this.orderId != that.orderId)
|
| 2462 |
chandransh |
10989 |
return false;
|
|
|
10990 |
}
|
|
|
10991 |
|
| 3010 |
chandransh |
10992 |
boolean this_present_merchantTxnId = true;
|
|
|
10993 |
boolean that_present_merchantTxnId = true;
|
|
|
10994 |
if (this_present_merchantTxnId || that_present_merchantTxnId) {
|
|
|
10995 |
if (!(this_present_merchantTxnId && that_present_merchantTxnId))
|
|
|
10996 |
return false;
|
|
|
10997 |
if (this.merchantTxnId != that.merchantTxnId)
|
|
|
10998 |
return false;
|
|
|
10999 |
}
|
|
|
11000 |
|
|
|
11001 |
boolean this_present_amount = true;
|
|
|
11002 |
boolean that_present_amount = true;
|
|
|
11003 |
if (this_present_amount || that_present_amount) {
|
|
|
11004 |
if (!(this_present_amount && that_present_amount))
|
|
|
11005 |
return false;
|
|
|
11006 |
if (this.amount != that.amount)
|
|
|
11007 |
return false;
|
|
|
11008 |
}
|
|
|
11009 |
|
| 2462 |
chandransh |
11010 |
return true;
|
|
|
11011 |
}
|
|
|
11012 |
|
|
|
11013 |
@Override
|
|
|
11014 |
public int hashCode() {
|
|
|
11015 |
return 0;
|
|
|
11016 |
}
|
|
|
11017 |
|
| 3010 |
chandransh |
11018 |
public int compareTo(createRefund_args other) {
|
| 2462 |
chandransh |
11019 |
if (!getClass().equals(other.getClass())) {
|
|
|
11020 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11021 |
}
|
|
|
11022 |
|
|
|
11023 |
int lastComparison = 0;
|
| 3010 |
chandransh |
11024 |
createRefund_args typedOther = (createRefund_args)other;
|
| 2462 |
chandransh |
11025 |
|
| 3430 |
rajveer |
11026 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| 2462 |
chandransh |
11027 |
if (lastComparison != 0) {
|
|
|
11028 |
return lastComparison;
|
|
|
11029 |
}
|
| 3430 |
rajveer |
11030 |
if (isSetOrderId()) {
|
|
|
11031 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
11032 |
if (lastComparison != 0) {
|
|
|
11033 |
return lastComparison;
|
|
|
11034 |
}
|
| 2462 |
chandransh |
11035 |
}
|
| 3430 |
rajveer |
11036 |
lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
|
| 3010 |
chandransh |
11037 |
if (lastComparison != 0) {
|
|
|
11038 |
return lastComparison;
|
|
|
11039 |
}
|
| 3430 |
rajveer |
11040 |
if (isSetMerchantTxnId()) {
|
|
|
11041 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
|
|
|
11042 |
if (lastComparison != 0) {
|
|
|
11043 |
return lastComparison;
|
|
|
11044 |
}
|
| 3010 |
chandransh |
11045 |
}
|
| 3430 |
rajveer |
11046 |
lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
|
| 3010 |
chandransh |
11047 |
if (lastComparison != 0) {
|
|
|
11048 |
return lastComparison;
|
|
|
11049 |
}
|
| 3430 |
rajveer |
11050 |
if (isSetAmount()) {
|
|
|
11051 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
|
|
|
11052 |
if (lastComparison != 0) {
|
|
|
11053 |
return lastComparison;
|
|
|
11054 |
}
|
| 3010 |
chandransh |
11055 |
}
|
| 2462 |
chandransh |
11056 |
return 0;
|
|
|
11057 |
}
|
|
|
11058 |
|
| 3430 |
rajveer |
11059 |
public _Fields fieldForId(int fieldId) {
|
|
|
11060 |
return _Fields.findByThriftId(fieldId);
|
|
|
11061 |
}
|
|
|
11062 |
|
|
|
11063 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11064 |
org.apache.thrift.protocol.TField field;
|
| 2462 |
chandransh |
11065 |
iprot.readStructBegin();
|
|
|
11066 |
while (true)
|
|
|
11067 |
{
|
|
|
11068 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
11069 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2462 |
chandransh |
11070 |
break;
|
|
|
11071 |
}
|
| 3430 |
rajveer |
11072 |
switch (field.id) {
|
|
|
11073 |
case 1: // ORDER_ID
|
|
|
11074 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
11075 |
this.orderId = iprot.readI64();
|
|
|
11076 |
setOrderIdIsSet(true);
|
|
|
11077 |
} else {
|
|
|
11078 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11079 |
}
|
|
|
11080 |
break;
|
|
|
11081 |
case 2: // MERCHANT_TXN_ID
|
|
|
11082 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
11083 |
this.merchantTxnId = iprot.readI64();
|
|
|
11084 |
setMerchantTxnIdIsSet(true);
|
|
|
11085 |
} else {
|
|
|
11086 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11087 |
}
|
|
|
11088 |
break;
|
|
|
11089 |
case 3: // AMOUNT
|
|
|
11090 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
11091 |
this.amount = iprot.readDouble();
|
|
|
11092 |
setAmountIsSet(true);
|
|
|
11093 |
} else {
|
|
|
11094 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11095 |
}
|
|
|
11096 |
break;
|
|
|
11097 |
default:
|
|
|
11098 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2462 |
chandransh |
11099 |
}
|
| 3430 |
rajveer |
11100 |
iprot.readFieldEnd();
|
| 2462 |
chandransh |
11101 |
}
|
|
|
11102 |
iprot.readStructEnd();
|
|
|
11103 |
validate();
|
|
|
11104 |
}
|
|
|
11105 |
|
| 3430 |
rajveer |
11106 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
11107 |
validate();
|
|
|
11108 |
|
|
|
11109 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 3010 |
chandransh |
11110 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
11111 |
oprot.writeI64(this.orderId);
|
| 2462 |
chandransh |
11112 |
oprot.writeFieldEnd();
|
| 3010 |
chandransh |
11113 |
oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
|
|
|
11114 |
oprot.writeI64(this.merchantTxnId);
|
|
|
11115 |
oprot.writeFieldEnd();
|
|
|
11116 |
oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
|
|
|
11117 |
oprot.writeDouble(this.amount);
|
|
|
11118 |
oprot.writeFieldEnd();
|
| 2462 |
chandransh |
11119 |
oprot.writeFieldStop();
|
|
|
11120 |
oprot.writeStructEnd();
|
|
|
11121 |
}
|
|
|
11122 |
|
|
|
11123 |
@Override
|
|
|
11124 |
public String toString() {
|
| 3010 |
chandransh |
11125 |
StringBuilder sb = new StringBuilder("createRefund_args(");
|
| 2462 |
chandransh |
11126 |
boolean first = true;
|
|
|
11127 |
|
| 3010 |
chandransh |
11128 |
sb.append("orderId:");
|
|
|
11129 |
sb.append(this.orderId);
|
| 2462 |
chandransh |
11130 |
first = false;
|
| 3010 |
chandransh |
11131 |
if (!first) sb.append(", ");
|
|
|
11132 |
sb.append("merchantTxnId:");
|
|
|
11133 |
sb.append(this.merchantTxnId);
|
|
|
11134 |
first = false;
|
|
|
11135 |
if (!first) sb.append(", ");
|
|
|
11136 |
sb.append("amount:");
|
|
|
11137 |
sb.append(this.amount);
|
|
|
11138 |
first = false;
|
| 2462 |
chandransh |
11139 |
sb.append(")");
|
|
|
11140 |
return sb.toString();
|
|
|
11141 |
}
|
|
|
11142 |
|
| 3430 |
rajveer |
11143 |
public void validate() throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
11144 |
// check for required fields
|
|
|
11145 |
}
|
|
|
11146 |
|
| 3430 |
rajveer |
11147 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11148 |
try {
|
|
|
11149 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11150 |
} catch (org.apache.thrift.TException te) {
|
|
|
11151 |
throw new java.io.IOException(te);
|
|
|
11152 |
}
|
|
|
11153 |
}
|
|
|
11154 |
|
|
|
11155 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11156 |
try {
|
|
|
11157 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11158 |
} catch (org.apache.thrift.TException te) {
|
|
|
11159 |
throw new java.io.IOException(te);
|
|
|
11160 |
}
|
|
|
11161 |
}
|
|
|
11162 |
|
| 2462 |
chandransh |
11163 |
}
|
|
|
11164 |
|
| 3430 |
rajveer |
11165 |
public static class createRefund_result implements org.apache.thrift.TBase<createRefund_result, createRefund_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11166 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_result");
|
| 2462 |
chandransh |
11167 |
|
| 3430 |
rajveer |
11168 |
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);
|
|
|
11169 |
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 |
11170 |
|
| 3430 |
rajveer |
11171 |
private long success; // required
|
|
|
11172 |
private PaymentException pe; // required
|
| 2462 |
chandransh |
11173 |
|
|
|
11174 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
11175 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2462 |
chandransh |
11176 |
SUCCESS((short)0, "success"),
|
|
|
11177 |
PE((short)1, "pe");
|
|
|
11178 |
|
|
|
11179 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11180 |
|
|
|
11181 |
static {
|
|
|
11182 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11183 |
byName.put(field.getFieldName(), field);
|
|
|
11184 |
}
|
|
|
11185 |
}
|
|
|
11186 |
|
|
|
11187 |
/**
|
|
|
11188 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11189 |
*/
|
|
|
11190 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
11191 |
switch(fieldId) {
|
|
|
11192 |
case 0: // SUCCESS
|
|
|
11193 |
return SUCCESS;
|
|
|
11194 |
case 1: // PE
|
|
|
11195 |
return PE;
|
|
|
11196 |
default:
|
|
|
11197 |
return null;
|
|
|
11198 |
}
|
| 2462 |
chandransh |
11199 |
}
|
|
|
11200 |
|
|
|
11201 |
/**
|
|
|
11202 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11203 |
* if it is not found.
|
|
|
11204 |
*/
|
|
|
11205 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11206 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11207 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11208 |
return fields;
|
|
|
11209 |
}
|
|
|
11210 |
|
|
|
11211 |
/**
|
|
|
11212 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11213 |
*/
|
|
|
11214 |
public static _Fields findByName(String name) {
|
|
|
11215 |
return byName.get(name);
|
|
|
11216 |
}
|
|
|
11217 |
|
|
|
11218 |
private final short _thriftId;
|
|
|
11219 |
private final String _fieldName;
|
|
|
11220 |
|
|
|
11221 |
_Fields(short thriftId, String fieldName) {
|
|
|
11222 |
_thriftId = thriftId;
|
|
|
11223 |
_fieldName = fieldName;
|
|
|
11224 |
}
|
|
|
11225 |
|
|
|
11226 |
public short getThriftFieldId() {
|
|
|
11227 |
return _thriftId;
|
|
|
11228 |
}
|
|
|
11229 |
|
|
|
11230 |
public String getFieldName() {
|
|
|
11231 |
return _fieldName;
|
|
|
11232 |
}
|
|
|
11233 |
}
|
|
|
11234 |
|
|
|
11235 |
// isset id assignments
|
| 3010 |
chandransh |
11236 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
11237 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 2462 |
chandransh |
11238 |
|
| 3430 |
rajveer |
11239 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2462 |
chandransh |
11240 |
static {
|
| 3430 |
rajveer |
11241 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11242 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11243 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
11244 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11245 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
11246 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11247 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_result.class, metaDataMap);
|
| 2462 |
chandransh |
11248 |
}
|
|
|
11249 |
|
| 3010 |
chandransh |
11250 |
public createRefund_result() {
|
| 2462 |
chandransh |
11251 |
}
|
|
|
11252 |
|
| 3010 |
chandransh |
11253 |
public createRefund_result(
|
|
|
11254 |
long success,
|
| 2462 |
chandransh |
11255 |
PaymentException pe)
|
|
|
11256 |
{
|
|
|
11257 |
this();
|
|
|
11258 |
this.success = success;
|
| 3010 |
chandransh |
11259 |
setSuccessIsSet(true);
|
| 2462 |
chandransh |
11260 |
this.pe = pe;
|
|
|
11261 |
}
|
|
|
11262 |
|
|
|
11263 |
/**
|
|
|
11264 |
* Performs a deep copy on <i>other</i>.
|
|
|
11265 |
*/
|
| 3010 |
chandransh |
11266 |
public createRefund_result(createRefund_result other) {
|
|
|
11267 |
__isset_bit_vector.clear();
|
|
|
11268 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
11269 |
this.success = other.success;
|
| 2462 |
chandransh |
11270 |
if (other.isSetPe()) {
|
|
|
11271 |
this.pe = new PaymentException(other.pe);
|
|
|
11272 |
}
|
|
|
11273 |
}
|
|
|
11274 |
|
| 3010 |
chandransh |
11275 |
public createRefund_result deepCopy() {
|
|
|
11276 |
return new createRefund_result(this);
|
| 2462 |
chandransh |
11277 |
}
|
|
|
11278 |
|
| 3430 |
rajveer |
11279 |
@Override
|
|
|
11280 |
public void clear() {
|
|
|
11281 |
setSuccessIsSet(false);
|
|
|
11282 |
this.success = 0;
|
|
|
11283 |
this.pe = null;
|
| 2462 |
chandransh |
11284 |
}
|
|
|
11285 |
|
| 3010 |
chandransh |
11286 |
public long getSuccess() {
|
| 2462 |
chandransh |
11287 |
return this.success;
|
|
|
11288 |
}
|
|
|
11289 |
|
| 3430 |
rajveer |
11290 |
public void setSuccess(long success) {
|
| 2462 |
chandransh |
11291 |
this.success = success;
|
| 3010 |
chandransh |
11292 |
setSuccessIsSet(true);
|
| 2462 |
chandransh |
11293 |
}
|
|
|
11294 |
|
|
|
11295 |
public void unsetSuccess() {
|
| 3010 |
chandransh |
11296 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
| 2462 |
chandransh |
11297 |
}
|
|
|
11298 |
|
| 3430 |
rajveer |
11299 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2462 |
chandransh |
11300 |
public boolean isSetSuccess() {
|
| 3010 |
chandransh |
11301 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
| 2462 |
chandransh |
11302 |
}
|
|
|
11303 |
|
|
|
11304 |
public void setSuccessIsSet(boolean value) {
|
| 3010 |
chandransh |
11305 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
| 2462 |
chandransh |
11306 |
}
|
|
|
11307 |
|
|
|
11308 |
public PaymentException getPe() {
|
|
|
11309 |
return this.pe;
|
|
|
11310 |
}
|
|
|
11311 |
|
| 3430 |
rajveer |
11312 |
public void setPe(PaymentException pe) {
|
| 2462 |
chandransh |
11313 |
this.pe = pe;
|
|
|
11314 |
}
|
|
|
11315 |
|
|
|
11316 |
public void unsetPe() {
|
|
|
11317 |
this.pe = null;
|
|
|
11318 |
}
|
|
|
11319 |
|
| 3430 |
rajveer |
11320 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 2462 |
chandransh |
11321 |
public boolean isSetPe() {
|
|
|
11322 |
return this.pe != null;
|
|
|
11323 |
}
|
|
|
11324 |
|
|
|
11325 |
public void setPeIsSet(boolean value) {
|
|
|
11326 |
if (!value) {
|
|
|
11327 |
this.pe = null;
|
|
|
11328 |
}
|
|
|
11329 |
}
|
|
|
11330 |
|
|
|
11331 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11332 |
switch (field) {
|
|
|
11333 |
case SUCCESS:
|
|
|
11334 |
if (value == null) {
|
|
|
11335 |
unsetSuccess();
|
|
|
11336 |
} else {
|
| 3010 |
chandransh |
11337 |
setSuccess((Long)value);
|
| 2462 |
chandransh |
11338 |
}
|
|
|
11339 |
break;
|
|
|
11340 |
|
|
|
11341 |
case PE:
|
|
|
11342 |
if (value == null) {
|
|
|
11343 |
unsetPe();
|
|
|
11344 |
} else {
|
|
|
11345 |
setPe((PaymentException)value);
|
|
|
11346 |
}
|
|
|
11347 |
break;
|
|
|
11348 |
|
|
|
11349 |
}
|
|
|
11350 |
}
|
|
|
11351 |
|
|
|
11352 |
public Object getFieldValue(_Fields field) {
|
|
|
11353 |
switch (field) {
|
|
|
11354 |
case SUCCESS:
|
| 3430 |
rajveer |
11355 |
return Long.valueOf(getSuccess());
|
| 2462 |
chandransh |
11356 |
|
|
|
11357 |
case PE:
|
|
|
11358 |
return getPe();
|
|
|
11359 |
|
|
|
11360 |
}
|
|
|
11361 |
throw new IllegalStateException();
|
|
|
11362 |
}
|
|
|
11363 |
|
| 3430 |
rajveer |
11364 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11365 |
public boolean isSet(_Fields field) {
|
|
|
11366 |
if (field == null) {
|
|
|
11367 |
throw new IllegalArgumentException();
|
|
|
11368 |
}
|
| 2462 |
chandransh |
11369 |
|
|
|
11370 |
switch (field) {
|
|
|
11371 |
case SUCCESS:
|
|
|
11372 |
return isSetSuccess();
|
|
|
11373 |
case PE:
|
|
|
11374 |
return isSetPe();
|
|
|
11375 |
}
|
|
|
11376 |
throw new IllegalStateException();
|
|
|
11377 |
}
|
|
|
11378 |
|
|
|
11379 |
@Override
|
|
|
11380 |
public boolean equals(Object that) {
|
|
|
11381 |
if (that == null)
|
|
|
11382 |
return false;
|
| 3010 |
chandransh |
11383 |
if (that instanceof createRefund_result)
|
|
|
11384 |
return this.equals((createRefund_result)that);
|
| 2462 |
chandransh |
11385 |
return false;
|
|
|
11386 |
}
|
|
|
11387 |
|
| 3010 |
chandransh |
11388 |
public boolean equals(createRefund_result that) {
|
| 2462 |
chandransh |
11389 |
if (that == null)
|
|
|
11390 |
return false;
|
|
|
11391 |
|
| 3010 |
chandransh |
11392 |
boolean this_present_success = true;
|
|
|
11393 |
boolean that_present_success = true;
|
| 2462 |
chandransh |
11394 |
if (this_present_success || that_present_success) {
|
|
|
11395 |
if (!(this_present_success && that_present_success))
|
|
|
11396 |
return false;
|
| 3010 |
chandransh |
11397 |
if (this.success != that.success)
|
| 2462 |
chandransh |
11398 |
return false;
|
|
|
11399 |
}
|
|
|
11400 |
|
|
|
11401 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
11402 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
11403 |
if (this_present_pe || that_present_pe) {
|
|
|
11404 |
if (!(this_present_pe && that_present_pe))
|
|
|
11405 |
return false;
|
|
|
11406 |
if (!this.pe.equals(that.pe))
|
|
|
11407 |
return false;
|
|
|
11408 |
}
|
|
|
11409 |
|
|
|
11410 |
return true;
|
|
|
11411 |
}
|
|
|
11412 |
|
|
|
11413 |
@Override
|
|
|
11414 |
public int hashCode() {
|
|
|
11415 |
return 0;
|
|
|
11416 |
}
|
|
|
11417 |
|
| 3010 |
chandransh |
11418 |
public int compareTo(createRefund_result other) {
|
| 2462 |
chandransh |
11419 |
if (!getClass().equals(other.getClass())) {
|
|
|
11420 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11421 |
}
|
|
|
11422 |
|
|
|
11423 |
int lastComparison = 0;
|
| 3010 |
chandransh |
11424 |
createRefund_result typedOther = (createRefund_result)other;
|
| 2462 |
chandransh |
11425 |
|
| 3430 |
rajveer |
11426 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2462 |
chandransh |
11427 |
if (lastComparison != 0) {
|
|
|
11428 |
return lastComparison;
|
|
|
11429 |
}
|
| 3430 |
rajveer |
11430 |
if (isSetSuccess()) {
|
|
|
11431 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
11432 |
if (lastComparison != 0) {
|
|
|
11433 |
return lastComparison;
|
|
|
11434 |
}
|
| 2462 |
chandransh |
11435 |
}
|
| 3430 |
rajveer |
11436 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 2462 |
chandransh |
11437 |
if (lastComparison != 0) {
|
|
|
11438 |
return lastComparison;
|
|
|
11439 |
}
|
| 3430 |
rajveer |
11440 |
if (isSetPe()) {
|
|
|
11441 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
11442 |
if (lastComparison != 0) {
|
|
|
11443 |
return lastComparison;
|
|
|
11444 |
}
|
| 2462 |
chandransh |
11445 |
}
|
|
|
11446 |
return 0;
|
|
|
11447 |
}
|
|
|
11448 |
|
| 3430 |
rajveer |
11449 |
public _Fields fieldForId(int fieldId) {
|
|
|
11450 |
return _Fields.findByThriftId(fieldId);
|
|
|
11451 |
}
|
|
|
11452 |
|
|
|
11453 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11454 |
org.apache.thrift.protocol.TField field;
|
| 2462 |
chandransh |
11455 |
iprot.readStructBegin();
|
|
|
11456 |
while (true)
|
|
|
11457 |
{
|
|
|
11458 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
11459 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2462 |
chandransh |
11460 |
break;
|
|
|
11461 |
}
|
| 3430 |
rajveer |
11462 |
switch (field.id) {
|
|
|
11463 |
case 0: // SUCCESS
|
|
|
11464 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
11465 |
this.success = iprot.readI64();
|
|
|
11466 |
setSuccessIsSet(true);
|
|
|
11467 |
} else {
|
|
|
11468 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11469 |
}
|
|
|
11470 |
break;
|
|
|
11471 |
case 1: // PE
|
|
|
11472 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
11473 |
this.pe = new PaymentException();
|
|
|
11474 |
this.pe.read(iprot);
|
|
|
11475 |
} else {
|
|
|
11476 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11477 |
}
|
|
|
11478 |
break;
|
|
|
11479 |
default:
|
|
|
11480 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2462 |
chandransh |
11481 |
}
|
| 3430 |
rajveer |
11482 |
iprot.readFieldEnd();
|
| 2462 |
chandransh |
11483 |
}
|
|
|
11484 |
iprot.readStructEnd();
|
|
|
11485 |
validate();
|
|
|
11486 |
}
|
|
|
11487 |
|
| 3430 |
rajveer |
11488 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
11489 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11490 |
|
|
|
11491 |
if (this.isSetSuccess()) {
|
|
|
11492 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 3010 |
chandransh |
11493 |
oprot.writeI64(this.success);
|
| 2462 |
chandransh |
11494 |
oprot.writeFieldEnd();
|
|
|
11495 |
} else if (this.isSetPe()) {
|
|
|
11496 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
11497 |
this.pe.write(oprot);
|
|
|
11498 |
oprot.writeFieldEnd();
|
|
|
11499 |
}
|
|
|
11500 |
oprot.writeFieldStop();
|
|
|
11501 |
oprot.writeStructEnd();
|
|
|
11502 |
}
|
|
|
11503 |
|
|
|
11504 |
@Override
|
|
|
11505 |
public String toString() {
|
| 3010 |
chandransh |
11506 |
StringBuilder sb = new StringBuilder("createRefund_result(");
|
| 2462 |
chandransh |
11507 |
boolean first = true;
|
|
|
11508 |
|
|
|
11509 |
sb.append("success:");
|
| 3010 |
chandransh |
11510 |
sb.append(this.success);
|
| 2462 |
chandransh |
11511 |
first = false;
|
|
|
11512 |
if (!first) sb.append(", ");
|
|
|
11513 |
sb.append("pe:");
|
|
|
11514 |
if (this.pe == null) {
|
|
|
11515 |
sb.append("null");
|
|
|
11516 |
} else {
|
|
|
11517 |
sb.append(this.pe);
|
|
|
11518 |
}
|
|
|
11519 |
first = false;
|
|
|
11520 |
sb.append(")");
|
|
|
11521 |
return sb.toString();
|
|
|
11522 |
}
|
|
|
11523 |
|
| 3430 |
rajveer |
11524 |
public void validate() throws org.apache.thrift.TException {
|
| 2462 |
chandransh |
11525 |
// check for required fields
|
|
|
11526 |
}
|
|
|
11527 |
|
| 3430 |
rajveer |
11528 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11529 |
try {
|
|
|
11530 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11531 |
} catch (org.apache.thrift.TException te) {
|
|
|
11532 |
throw new java.io.IOException(te);
|
|
|
11533 |
}
|
|
|
11534 |
}
|
|
|
11535 |
|
|
|
11536 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11537 |
try {
|
|
|
11538 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11539 |
} catch (org.apache.thrift.TException te) {
|
|
|
11540 |
throw new java.io.IOException(te);
|
|
|
11541 |
}
|
|
|
11542 |
}
|
|
|
11543 |
|
| 2462 |
chandransh |
11544 |
}
|
|
|
11545 |
|
| 3430 |
rajveer |
11546 |
public static class capturePayment_args implements org.apache.thrift.TBase<capturePayment_args, capturePayment_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
11547 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_args");
|
| 2690 |
chandransh |
11548 |
|
| 3430 |
rajveer |
11549 |
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 |
11550 |
|
| 3430 |
rajveer |
11551 |
private long merchantTxnId; // required
|
| 2690 |
chandransh |
11552 |
|
|
|
11553 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
11554 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3010 |
chandransh |
11555 |
MERCHANT_TXN_ID((short)1, "merchantTxnId");
|
| 2690 |
chandransh |
11556 |
|
|
|
11557 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11558 |
|
|
|
11559 |
static {
|
|
|
11560 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11561 |
byName.put(field.getFieldName(), field);
|
|
|
11562 |
}
|
|
|
11563 |
}
|
|
|
11564 |
|
|
|
11565 |
/**
|
|
|
11566 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11567 |
*/
|
|
|
11568 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
11569 |
switch(fieldId) {
|
|
|
11570 |
case 1: // MERCHANT_TXN_ID
|
|
|
11571 |
return MERCHANT_TXN_ID;
|
|
|
11572 |
default:
|
|
|
11573 |
return null;
|
|
|
11574 |
}
|
| 2690 |
chandransh |
11575 |
}
|
|
|
11576 |
|
|
|
11577 |
/**
|
|
|
11578 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11579 |
* if it is not found.
|
|
|
11580 |
*/
|
|
|
11581 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11582 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11583 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11584 |
return fields;
|
|
|
11585 |
}
|
|
|
11586 |
|
|
|
11587 |
/**
|
|
|
11588 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11589 |
*/
|
|
|
11590 |
public static _Fields findByName(String name) {
|
|
|
11591 |
return byName.get(name);
|
|
|
11592 |
}
|
|
|
11593 |
|
|
|
11594 |
private final short _thriftId;
|
|
|
11595 |
private final String _fieldName;
|
|
|
11596 |
|
|
|
11597 |
_Fields(short thriftId, String fieldName) {
|
|
|
11598 |
_thriftId = thriftId;
|
|
|
11599 |
_fieldName = fieldName;
|
|
|
11600 |
}
|
|
|
11601 |
|
|
|
11602 |
public short getThriftFieldId() {
|
|
|
11603 |
return _thriftId;
|
|
|
11604 |
}
|
|
|
11605 |
|
|
|
11606 |
public String getFieldName() {
|
|
|
11607 |
return _fieldName;
|
|
|
11608 |
}
|
|
|
11609 |
}
|
|
|
11610 |
|
|
|
11611 |
// isset id assignments
|
| 3010 |
chandransh |
11612 |
private static final int __MERCHANTTXNID_ISSET_ID = 0;
|
|
|
11613 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 2690 |
chandransh |
11614 |
|
| 3430 |
rajveer |
11615 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2690 |
chandransh |
11616 |
static {
|
| 3430 |
rajveer |
11617 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11618 |
tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11619 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
11620 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11621 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_args.class, metaDataMap);
|
| 2690 |
chandransh |
11622 |
}
|
|
|
11623 |
|
| 3010 |
chandransh |
11624 |
public capturePayment_args() {
|
| 2690 |
chandransh |
11625 |
}
|
|
|
11626 |
|
| 3010 |
chandransh |
11627 |
public capturePayment_args(
|
|
|
11628 |
long merchantTxnId)
|
| 2690 |
chandransh |
11629 |
{
|
|
|
11630 |
this();
|
|
|
11631 |
this.merchantTxnId = merchantTxnId;
|
|
|
11632 |
setMerchantTxnIdIsSet(true);
|
|
|
11633 |
}
|
|
|
11634 |
|
|
|
11635 |
/**
|
|
|
11636 |
* Performs a deep copy on <i>other</i>.
|
|
|
11637 |
*/
|
| 3010 |
chandransh |
11638 |
public capturePayment_args(capturePayment_args other) {
|
| 2690 |
chandransh |
11639 |
__isset_bit_vector.clear();
|
|
|
11640 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
11641 |
this.merchantTxnId = other.merchantTxnId;
|
|
|
11642 |
}
|
|
|
11643 |
|
| 3010 |
chandransh |
11644 |
public capturePayment_args deepCopy() {
|
|
|
11645 |
return new capturePayment_args(this);
|
| 2690 |
chandransh |
11646 |
}
|
|
|
11647 |
|
| 3430 |
rajveer |
11648 |
@Override
|
|
|
11649 |
public void clear() {
|
|
|
11650 |
setMerchantTxnIdIsSet(false);
|
|
|
11651 |
this.merchantTxnId = 0;
|
| 2690 |
chandransh |
11652 |
}
|
|
|
11653 |
|
|
|
11654 |
public long getMerchantTxnId() {
|
|
|
11655 |
return this.merchantTxnId;
|
|
|
11656 |
}
|
|
|
11657 |
|
| 3430 |
rajveer |
11658 |
public void setMerchantTxnId(long merchantTxnId) {
|
| 2690 |
chandransh |
11659 |
this.merchantTxnId = merchantTxnId;
|
|
|
11660 |
setMerchantTxnIdIsSet(true);
|
|
|
11661 |
}
|
|
|
11662 |
|
|
|
11663 |
public void unsetMerchantTxnId() {
|
|
|
11664 |
__isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
|
|
|
11665 |
}
|
|
|
11666 |
|
| 3430 |
rajveer |
11667 |
/** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
11668 |
public boolean isSetMerchantTxnId() {
|
|
|
11669 |
return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
|
|
|
11670 |
}
|
|
|
11671 |
|
|
|
11672 |
public void setMerchantTxnIdIsSet(boolean value) {
|
|
|
11673 |
__isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
|
|
|
11674 |
}
|
|
|
11675 |
|
|
|
11676 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11677 |
switch (field) {
|
|
|
11678 |
case MERCHANT_TXN_ID:
|
|
|
11679 |
if (value == null) {
|
|
|
11680 |
unsetMerchantTxnId();
|
|
|
11681 |
} else {
|
|
|
11682 |
setMerchantTxnId((Long)value);
|
|
|
11683 |
}
|
|
|
11684 |
break;
|
|
|
11685 |
|
|
|
11686 |
}
|
|
|
11687 |
}
|
|
|
11688 |
|
|
|
11689 |
public Object getFieldValue(_Fields field) {
|
|
|
11690 |
switch (field) {
|
|
|
11691 |
case MERCHANT_TXN_ID:
|
| 3430 |
rajveer |
11692 |
return Long.valueOf(getMerchantTxnId());
|
| 2690 |
chandransh |
11693 |
|
|
|
11694 |
}
|
|
|
11695 |
throw new IllegalStateException();
|
|
|
11696 |
}
|
|
|
11697 |
|
| 3430 |
rajveer |
11698 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11699 |
public boolean isSet(_Fields field) {
|
|
|
11700 |
if (field == null) {
|
|
|
11701 |
throw new IllegalArgumentException();
|
|
|
11702 |
}
|
| 2690 |
chandransh |
11703 |
|
|
|
11704 |
switch (field) {
|
|
|
11705 |
case MERCHANT_TXN_ID:
|
|
|
11706 |
return isSetMerchantTxnId();
|
|
|
11707 |
}
|
|
|
11708 |
throw new IllegalStateException();
|
|
|
11709 |
}
|
|
|
11710 |
|
|
|
11711 |
@Override
|
|
|
11712 |
public boolean equals(Object that) {
|
|
|
11713 |
if (that == null)
|
|
|
11714 |
return false;
|
| 3010 |
chandransh |
11715 |
if (that instanceof capturePayment_args)
|
|
|
11716 |
return this.equals((capturePayment_args)that);
|
| 2690 |
chandransh |
11717 |
return false;
|
|
|
11718 |
}
|
|
|
11719 |
|
| 3010 |
chandransh |
11720 |
public boolean equals(capturePayment_args that) {
|
| 2690 |
chandransh |
11721 |
if (that == null)
|
|
|
11722 |
return false;
|
|
|
11723 |
|
|
|
11724 |
boolean this_present_merchantTxnId = true;
|
|
|
11725 |
boolean that_present_merchantTxnId = true;
|
|
|
11726 |
if (this_present_merchantTxnId || that_present_merchantTxnId) {
|
|
|
11727 |
if (!(this_present_merchantTxnId && that_present_merchantTxnId))
|
|
|
11728 |
return false;
|
|
|
11729 |
if (this.merchantTxnId != that.merchantTxnId)
|
|
|
11730 |
return false;
|
|
|
11731 |
}
|
|
|
11732 |
|
|
|
11733 |
return true;
|
|
|
11734 |
}
|
|
|
11735 |
|
|
|
11736 |
@Override
|
|
|
11737 |
public int hashCode() {
|
|
|
11738 |
return 0;
|
|
|
11739 |
}
|
|
|
11740 |
|
| 3010 |
chandransh |
11741 |
public int compareTo(capturePayment_args other) {
|
| 2690 |
chandransh |
11742 |
if (!getClass().equals(other.getClass())) {
|
|
|
11743 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11744 |
}
|
|
|
11745 |
|
|
|
11746 |
int lastComparison = 0;
|
| 3010 |
chandransh |
11747 |
capturePayment_args typedOther = (capturePayment_args)other;
|
| 2690 |
chandransh |
11748 |
|
| 3430 |
rajveer |
11749 |
lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
|
| 2690 |
chandransh |
11750 |
if (lastComparison != 0) {
|
|
|
11751 |
return lastComparison;
|
|
|
11752 |
}
|
| 3430 |
rajveer |
11753 |
if (isSetMerchantTxnId()) {
|
|
|
11754 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
|
|
|
11755 |
if (lastComparison != 0) {
|
|
|
11756 |
return lastComparison;
|
|
|
11757 |
}
|
| 2690 |
chandransh |
11758 |
}
|
|
|
11759 |
return 0;
|
|
|
11760 |
}
|
|
|
11761 |
|
| 3430 |
rajveer |
11762 |
public _Fields fieldForId(int fieldId) {
|
|
|
11763 |
return _Fields.findByThriftId(fieldId);
|
|
|
11764 |
}
|
|
|
11765 |
|
|
|
11766 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11767 |
org.apache.thrift.protocol.TField field;
|
| 2690 |
chandransh |
11768 |
iprot.readStructBegin();
|
|
|
11769 |
while (true)
|
|
|
11770 |
{
|
|
|
11771 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
11772 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2690 |
chandransh |
11773 |
break;
|
|
|
11774 |
}
|
| 3430 |
rajveer |
11775 |
switch (field.id) {
|
|
|
11776 |
case 1: // MERCHANT_TXN_ID
|
|
|
11777 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
11778 |
this.merchantTxnId = iprot.readI64();
|
|
|
11779 |
setMerchantTxnIdIsSet(true);
|
|
|
11780 |
} else {
|
|
|
11781 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11782 |
}
|
|
|
11783 |
break;
|
|
|
11784 |
default:
|
|
|
11785 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2690 |
chandransh |
11786 |
}
|
| 3430 |
rajveer |
11787 |
iprot.readFieldEnd();
|
| 2690 |
chandransh |
11788 |
}
|
|
|
11789 |
iprot.readStructEnd();
|
|
|
11790 |
validate();
|
|
|
11791 |
}
|
|
|
11792 |
|
| 3430 |
rajveer |
11793 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2690 |
chandransh |
11794 |
validate();
|
|
|
11795 |
|
|
|
11796 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11797 |
oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
|
|
|
11798 |
oprot.writeI64(this.merchantTxnId);
|
|
|
11799 |
oprot.writeFieldEnd();
|
|
|
11800 |
oprot.writeFieldStop();
|
|
|
11801 |
oprot.writeStructEnd();
|
|
|
11802 |
}
|
|
|
11803 |
|
|
|
11804 |
@Override
|
|
|
11805 |
public String toString() {
|
| 3010 |
chandransh |
11806 |
StringBuilder sb = new StringBuilder("capturePayment_args(");
|
| 2690 |
chandransh |
11807 |
boolean first = true;
|
|
|
11808 |
|
|
|
11809 |
sb.append("merchantTxnId:");
|
|
|
11810 |
sb.append(this.merchantTxnId);
|
|
|
11811 |
first = false;
|
|
|
11812 |
sb.append(")");
|
|
|
11813 |
return sb.toString();
|
|
|
11814 |
}
|
|
|
11815 |
|
| 3430 |
rajveer |
11816 |
public void validate() throws org.apache.thrift.TException {
|
| 2690 |
chandransh |
11817 |
// check for required fields
|
|
|
11818 |
}
|
|
|
11819 |
|
| 3430 |
rajveer |
11820 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11821 |
try {
|
|
|
11822 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11823 |
} catch (org.apache.thrift.TException te) {
|
|
|
11824 |
throw new java.io.IOException(te);
|
|
|
11825 |
}
|
|
|
11826 |
}
|
|
|
11827 |
|
|
|
11828 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11829 |
try {
|
|
|
11830 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11831 |
} catch (org.apache.thrift.TException te) {
|
|
|
11832 |
throw new java.io.IOException(te);
|
|
|
11833 |
}
|
|
|
11834 |
}
|
|
|
11835 |
|
| 2690 |
chandransh |
11836 |
}
|
|
|
11837 |
|
| 3430 |
rajveer |
11838 |
public static class capturePayment_result implements org.apache.thrift.TBase<capturePayment_result, capturePayment_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11839 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_result");
|
| 2690 |
chandransh |
11840 |
|
| 3430 |
rajveer |
11841 |
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);
|
|
|
11842 |
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 |
11843 |
|
| 3430 |
rajveer |
11844 |
private boolean success; // required
|
|
|
11845 |
private PaymentException pe; // required
|
| 2690 |
chandransh |
11846 |
|
|
|
11847 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
11848 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2690 |
chandransh |
11849 |
SUCCESS((short)0, "success"),
|
|
|
11850 |
PE((short)1, "pe");
|
|
|
11851 |
|
|
|
11852 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11853 |
|
|
|
11854 |
static {
|
|
|
11855 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11856 |
byName.put(field.getFieldName(), field);
|
|
|
11857 |
}
|
|
|
11858 |
}
|
|
|
11859 |
|
|
|
11860 |
/**
|
|
|
11861 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11862 |
*/
|
|
|
11863 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
11864 |
switch(fieldId) {
|
|
|
11865 |
case 0: // SUCCESS
|
|
|
11866 |
return SUCCESS;
|
|
|
11867 |
case 1: // PE
|
|
|
11868 |
return PE;
|
|
|
11869 |
default:
|
|
|
11870 |
return null;
|
|
|
11871 |
}
|
| 2690 |
chandransh |
11872 |
}
|
|
|
11873 |
|
|
|
11874 |
/**
|
|
|
11875 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11876 |
* if it is not found.
|
|
|
11877 |
*/
|
|
|
11878 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11879 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11880 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11881 |
return fields;
|
|
|
11882 |
}
|
|
|
11883 |
|
|
|
11884 |
/**
|
|
|
11885 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11886 |
*/
|
|
|
11887 |
public static _Fields findByName(String name) {
|
|
|
11888 |
return byName.get(name);
|
|
|
11889 |
}
|
|
|
11890 |
|
|
|
11891 |
private final short _thriftId;
|
|
|
11892 |
private final String _fieldName;
|
|
|
11893 |
|
|
|
11894 |
_Fields(short thriftId, String fieldName) {
|
|
|
11895 |
_thriftId = thriftId;
|
|
|
11896 |
_fieldName = fieldName;
|
|
|
11897 |
}
|
|
|
11898 |
|
|
|
11899 |
public short getThriftFieldId() {
|
|
|
11900 |
return _thriftId;
|
|
|
11901 |
}
|
|
|
11902 |
|
|
|
11903 |
public String getFieldName() {
|
|
|
11904 |
return _fieldName;
|
|
|
11905 |
}
|
|
|
11906 |
}
|
|
|
11907 |
|
|
|
11908 |
// isset id assignments
|
|
|
11909 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
11910 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
11911 |
|
| 3430 |
rajveer |
11912 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2690 |
chandransh |
11913 |
static {
|
| 3430 |
rajveer |
11914 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11915 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11916 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
11917 |
tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11918 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
11919 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11920 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_result.class, metaDataMap);
|
| 2690 |
chandransh |
11921 |
}
|
|
|
11922 |
|
| 3010 |
chandransh |
11923 |
public capturePayment_result() {
|
| 2690 |
chandransh |
11924 |
}
|
|
|
11925 |
|
| 3010 |
chandransh |
11926 |
public capturePayment_result(
|
|
|
11927 |
boolean success,
|
| 2690 |
chandransh |
11928 |
PaymentException pe)
|
|
|
11929 |
{
|
|
|
11930 |
this();
|
|
|
11931 |
this.success = success;
|
|
|
11932 |
setSuccessIsSet(true);
|
|
|
11933 |
this.pe = pe;
|
|
|
11934 |
}
|
|
|
11935 |
|
|
|
11936 |
/**
|
|
|
11937 |
* Performs a deep copy on <i>other</i>.
|
|
|
11938 |
*/
|
| 3010 |
chandransh |
11939 |
public capturePayment_result(capturePayment_result other) {
|
| 2690 |
chandransh |
11940 |
__isset_bit_vector.clear();
|
|
|
11941 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
11942 |
this.success = other.success;
|
|
|
11943 |
if (other.isSetPe()) {
|
|
|
11944 |
this.pe = new PaymentException(other.pe);
|
|
|
11945 |
}
|
|
|
11946 |
}
|
|
|
11947 |
|
| 3010 |
chandransh |
11948 |
public capturePayment_result deepCopy() {
|
|
|
11949 |
return new capturePayment_result(this);
|
| 2690 |
chandransh |
11950 |
}
|
|
|
11951 |
|
| 3430 |
rajveer |
11952 |
@Override
|
|
|
11953 |
public void clear() {
|
|
|
11954 |
setSuccessIsSet(false);
|
|
|
11955 |
this.success = false;
|
|
|
11956 |
this.pe = null;
|
| 2690 |
chandransh |
11957 |
}
|
|
|
11958 |
|
| 3010 |
chandransh |
11959 |
public boolean isSuccess() {
|
| 2690 |
chandransh |
11960 |
return this.success;
|
|
|
11961 |
}
|
|
|
11962 |
|
| 3430 |
rajveer |
11963 |
public void setSuccess(boolean success) {
|
| 2690 |
chandransh |
11964 |
this.success = success;
|
|
|
11965 |
setSuccessIsSet(true);
|
|
|
11966 |
}
|
|
|
11967 |
|
|
|
11968 |
public void unsetSuccess() {
|
|
|
11969 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
11970 |
}
|
|
|
11971 |
|
| 3430 |
rajveer |
11972 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
11973 |
public boolean isSetSuccess() {
|
|
|
11974 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
11975 |
}
|
|
|
11976 |
|
|
|
11977 |
public void setSuccessIsSet(boolean value) {
|
|
|
11978 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
11979 |
}
|
|
|
11980 |
|
|
|
11981 |
public PaymentException getPe() {
|
|
|
11982 |
return this.pe;
|
|
|
11983 |
}
|
|
|
11984 |
|
| 3430 |
rajveer |
11985 |
public void setPe(PaymentException pe) {
|
| 2690 |
chandransh |
11986 |
this.pe = pe;
|
|
|
11987 |
}
|
|
|
11988 |
|
|
|
11989 |
public void unsetPe() {
|
|
|
11990 |
this.pe = null;
|
|
|
11991 |
}
|
|
|
11992 |
|
| 3430 |
rajveer |
11993 |
/** Returns true if field pe is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
11994 |
public boolean isSetPe() {
|
|
|
11995 |
return this.pe != null;
|
|
|
11996 |
}
|
|
|
11997 |
|
|
|
11998 |
public void setPeIsSet(boolean value) {
|
|
|
11999 |
if (!value) {
|
|
|
12000 |
this.pe = null;
|
|
|
12001 |
}
|
|
|
12002 |
}
|
|
|
12003 |
|
|
|
12004 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12005 |
switch (field) {
|
|
|
12006 |
case SUCCESS:
|
|
|
12007 |
if (value == null) {
|
|
|
12008 |
unsetSuccess();
|
|
|
12009 |
} else {
|
| 3010 |
chandransh |
12010 |
setSuccess((Boolean)value);
|
| 2690 |
chandransh |
12011 |
}
|
|
|
12012 |
break;
|
|
|
12013 |
|
|
|
12014 |
case PE:
|
|
|
12015 |
if (value == null) {
|
|
|
12016 |
unsetPe();
|
|
|
12017 |
} else {
|
|
|
12018 |
setPe((PaymentException)value);
|
|
|
12019 |
}
|
|
|
12020 |
break;
|
|
|
12021 |
|
|
|
12022 |
}
|
|
|
12023 |
}
|
|
|
12024 |
|
|
|
12025 |
public Object getFieldValue(_Fields field) {
|
|
|
12026 |
switch (field) {
|
|
|
12027 |
case SUCCESS:
|
| 3430 |
rajveer |
12028 |
return Boolean.valueOf(isSuccess());
|
| 2690 |
chandransh |
12029 |
|
|
|
12030 |
case PE:
|
|
|
12031 |
return getPe();
|
|
|
12032 |
|
|
|
12033 |
}
|
|
|
12034 |
throw new IllegalStateException();
|
|
|
12035 |
}
|
|
|
12036 |
|
| 3430 |
rajveer |
12037 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12038 |
public boolean isSet(_Fields field) {
|
|
|
12039 |
if (field == null) {
|
|
|
12040 |
throw new IllegalArgumentException();
|
|
|
12041 |
}
|
| 2690 |
chandransh |
12042 |
|
|
|
12043 |
switch (field) {
|
|
|
12044 |
case SUCCESS:
|
|
|
12045 |
return isSetSuccess();
|
|
|
12046 |
case PE:
|
|
|
12047 |
return isSetPe();
|
|
|
12048 |
}
|
|
|
12049 |
throw new IllegalStateException();
|
|
|
12050 |
}
|
|
|
12051 |
|
|
|
12052 |
@Override
|
|
|
12053 |
public boolean equals(Object that) {
|
|
|
12054 |
if (that == null)
|
|
|
12055 |
return false;
|
| 3010 |
chandransh |
12056 |
if (that instanceof capturePayment_result)
|
|
|
12057 |
return this.equals((capturePayment_result)that);
|
| 2690 |
chandransh |
12058 |
return false;
|
|
|
12059 |
}
|
|
|
12060 |
|
| 3010 |
chandransh |
12061 |
public boolean equals(capturePayment_result that) {
|
| 2690 |
chandransh |
12062 |
if (that == null)
|
|
|
12063 |
return false;
|
|
|
12064 |
|
|
|
12065 |
boolean this_present_success = true;
|
|
|
12066 |
boolean that_present_success = true;
|
|
|
12067 |
if (this_present_success || that_present_success) {
|
|
|
12068 |
if (!(this_present_success && that_present_success))
|
|
|
12069 |
return false;
|
|
|
12070 |
if (this.success != that.success)
|
|
|
12071 |
return false;
|
|
|
12072 |
}
|
|
|
12073 |
|
|
|
12074 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
12075 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
12076 |
if (this_present_pe || that_present_pe) {
|
|
|
12077 |
if (!(this_present_pe && that_present_pe))
|
|
|
12078 |
return false;
|
|
|
12079 |
if (!this.pe.equals(that.pe))
|
|
|
12080 |
return false;
|
|
|
12081 |
}
|
|
|
12082 |
|
|
|
12083 |
return true;
|
|
|
12084 |
}
|
|
|
12085 |
|
|
|
12086 |
@Override
|
|
|
12087 |
public int hashCode() {
|
|
|
12088 |
return 0;
|
|
|
12089 |
}
|
|
|
12090 |
|
| 3010 |
chandransh |
12091 |
public int compareTo(capturePayment_result other) {
|
| 2690 |
chandransh |
12092 |
if (!getClass().equals(other.getClass())) {
|
|
|
12093 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12094 |
}
|
|
|
12095 |
|
|
|
12096 |
int lastComparison = 0;
|
| 3010 |
chandransh |
12097 |
capturePayment_result typedOther = (capturePayment_result)other;
|
| 2690 |
chandransh |
12098 |
|
| 3430 |
rajveer |
12099 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 2690 |
chandransh |
12100 |
if (lastComparison != 0) {
|
|
|
12101 |
return lastComparison;
|
|
|
12102 |
}
|
| 3430 |
rajveer |
12103 |
if (isSetSuccess()) {
|
|
|
12104 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
12105 |
if (lastComparison != 0) {
|
|
|
12106 |
return lastComparison;
|
|
|
12107 |
}
|
| 2690 |
chandransh |
12108 |
}
|
| 3430 |
rajveer |
12109 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
|
| 2690 |
chandransh |
12110 |
if (lastComparison != 0) {
|
|
|
12111 |
return lastComparison;
|
|
|
12112 |
}
|
| 3430 |
rajveer |
12113 |
if (isSetPe()) {
|
|
|
12114 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
|
|
|
12115 |
if (lastComparison != 0) {
|
|
|
12116 |
return lastComparison;
|
|
|
12117 |
}
|
| 2690 |
chandransh |
12118 |
}
|
|
|
12119 |
return 0;
|
|
|
12120 |
}
|
|
|
12121 |
|
| 3430 |
rajveer |
12122 |
public _Fields fieldForId(int fieldId) {
|
|
|
12123 |
return _Fields.findByThriftId(fieldId);
|
|
|
12124 |
}
|
|
|
12125 |
|
|
|
12126 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12127 |
org.apache.thrift.protocol.TField field;
|
| 2690 |
chandransh |
12128 |
iprot.readStructBegin();
|
|
|
12129 |
while (true)
|
|
|
12130 |
{
|
|
|
12131 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
12132 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2690 |
chandransh |
12133 |
break;
|
|
|
12134 |
}
|
| 3430 |
rajveer |
12135 |
switch (field.id) {
|
|
|
12136 |
case 0: // SUCCESS
|
|
|
12137 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
12138 |
this.success = iprot.readBool();
|
|
|
12139 |
setSuccessIsSet(true);
|
|
|
12140 |
} else {
|
|
|
12141 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12142 |
}
|
|
|
12143 |
break;
|
|
|
12144 |
case 1: // PE
|
|
|
12145 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
12146 |
this.pe = new PaymentException();
|
|
|
12147 |
this.pe.read(iprot);
|
|
|
12148 |
} else {
|
|
|
12149 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12150 |
}
|
|
|
12151 |
break;
|
|
|
12152 |
default:
|
|
|
12153 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2690 |
chandransh |
12154 |
}
|
| 3430 |
rajveer |
12155 |
iprot.readFieldEnd();
|
| 2690 |
chandransh |
12156 |
}
|
|
|
12157 |
iprot.readStructEnd();
|
|
|
12158 |
validate();
|
|
|
12159 |
}
|
|
|
12160 |
|
| 3430 |
rajveer |
12161 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2690 |
chandransh |
12162 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12163 |
|
|
|
12164 |
if (this.isSetSuccess()) {
|
|
|
12165 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 3010 |
chandransh |
12166 |
oprot.writeBool(this.success);
|
| 2690 |
chandransh |
12167 |
oprot.writeFieldEnd();
|
|
|
12168 |
} else if (this.isSetPe()) {
|
|
|
12169 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
12170 |
this.pe.write(oprot);
|
|
|
12171 |
oprot.writeFieldEnd();
|
|
|
12172 |
}
|
|
|
12173 |
oprot.writeFieldStop();
|
|
|
12174 |
oprot.writeStructEnd();
|
|
|
12175 |
}
|
|
|
12176 |
|
|
|
12177 |
@Override
|
|
|
12178 |
public String toString() {
|
| 3010 |
chandransh |
12179 |
StringBuilder sb = new StringBuilder("capturePayment_result(");
|
| 2690 |
chandransh |
12180 |
boolean first = true;
|
|
|
12181 |
|
|
|
12182 |
sb.append("success:");
|
|
|
12183 |
sb.append(this.success);
|
|
|
12184 |
first = false;
|
|
|
12185 |
if (!first) sb.append(", ");
|
|
|
12186 |
sb.append("pe:");
|
|
|
12187 |
if (this.pe == null) {
|
|
|
12188 |
sb.append("null");
|
|
|
12189 |
} else {
|
|
|
12190 |
sb.append(this.pe);
|
|
|
12191 |
}
|
|
|
12192 |
first = false;
|
|
|
12193 |
sb.append(")");
|
|
|
12194 |
return sb.toString();
|
|
|
12195 |
}
|
|
|
12196 |
|
| 3430 |
rajveer |
12197 |
public void validate() throws org.apache.thrift.TException {
|
| 2690 |
chandransh |
12198 |
// check for required fields
|
|
|
12199 |
}
|
|
|
12200 |
|
| 3430 |
rajveer |
12201 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12202 |
try {
|
|
|
12203 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12204 |
} catch (org.apache.thrift.TException te) {
|
|
|
12205 |
throw new java.io.IOException(te);
|
|
|
12206 |
}
|
|
|
12207 |
}
|
|
|
12208 |
|
|
|
12209 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12210 |
try {
|
|
|
12211 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12212 |
} catch (org.apache.thrift.TException te) {
|
|
|
12213 |
throw new java.io.IOException(te);
|
|
|
12214 |
}
|
|
|
12215 |
}
|
|
|
12216 |
|
| 2690 |
chandransh |
12217 |
}
|
|
|
12218 |
|
| 123 |
ashish |
12219 |
}
|