| 123 |
ashish |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift
|
|
|
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;
|
|
|
18 |
import java.util.Arrays;
|
|
|
19 |
import org.slf4j.Logger;
|
|
|
20 |
import org.slf4j.LoggerFactory;
|
|
|
21 |
|
|
|
22 |
import org.apache.thrift.*;
|
|
|
23 |
import org.apache.thrift.meta_data.*;
|
|
|
24 |
import org.apache.thrift.protocol.*;
|
|
|
25 |
|
|
|
26 |
public class PaymentService {
|
|
|
27 |
|
|
|
28 |
public interface Iface {
|
|
|
29 |
|
| 695 |
rajveer |
30 |
/**
|
| 764 |
rajveer |
31 |
* For closing the open session in sqlalchemy
|
|
|
32 |
*/
|
|
|
33 |
public void closeSession() throws TException;
|
|
|
34 |
|
|
|
35 |
/**
|
| 695 |
rajveer |
36 |
* create a new payment and return payment id, throws an exception if gateway is not active
|
|
|
37 |
*
|
|
|
38 |
*
|
|
|
39 |
* @param userId
|
|
|
40 |
* @param amount
|
|
|
41 |
* @param gatewayId
|
|
|
42 |
* @param txnId
|
|
|
43 |
*/
|
|
|
44 |
public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, TException;
|
| 123 |
ashish |
45 |
|
| 695 |
rajveer |
46 |
/**
|
|
|
47 |
* get payment for user. If status and gateway are null, it is ignored. Same for times as well.
|
|
|
48 |
*
|
|
|
49 |
*
|
|
|
50 |
* @param userId
|
|
|
51 |
* @param fromTime
|
|
|
52 |
* @param toTime
|
|
|
53 |
* @param status
|
|
|
54 |
* @param gatewayId
|
|
|
55 |
*/
|
|
|
56 |
public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, TException;
|
| 123 |
ashish |
57 |
|
| 695 |
rajveer |
58 |
/**
|
| 2060 |
ankur.sing |
59 |
* get all payments for user. If gatewayId is 0, then it is ignored while filtering.
|
| 695 |
rajveer |
60 |
*
|
| 1855 |
chandransh |
61 |
*
|
| 695 |
rajveer |
62 |
* @param fromTime
|
|
|
63 |
* @param toTime
|
|
|
64 |
* @param status
|
|
|
65 |
* @param gatewayId
|
|
|
66 |
*/
|
|
|
67 |
public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, TException;
|
| 123 |
ashish |
68 |
|
| 695 |
rajveer |
69 |
/**
|
|
|
70 |
* Get a particular gateway
|
|
|
71 |
*
|
|
|
72 |
*
|
|
|
73 |
* @param id
|
|
|
74 |
*/
|
| 420 |
ashish |
75 |
public PaymentGateway getPaymentGateway(long id) throws PaymentException, TException;
|
|
|
76 |
|
| 695 |
rajveer |
77 |
/**
|
|
|
78 |
* Get a particular payment info
|
|
|
79 |
*
|
|
|
80 |
*
|
|
|
81 |
* @param id
|
|
|
82 |
*/
|
| 420 |
ashish |
83 |
public Payment getPayment(long id) throws PaymentException, TException;
|
|
|
84 |
|
| 695 |
rajveer |
85 |
/**
|
|
|
86 |
* Get a particular payment for a transaction. Will raise exception.
|
|
|
87 |
*
|
|
|
88 |
*
|
|
|
89 |
* @param txnId
|
|
|
90 |
*/
|
|
|
91 |
public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, TException;
|
| 420 |
ashish |
92 |
|
| 695 |
rajveer |
93 |
/**
|
|
|
94 |
* mark payment successful and store parameters
|
|
|
95 |
*
|
|
|
96 |
*
|
|
|
97 |
* @param id
|
|
|
98 |
* @param gatewayPaymentId
|
|
|
99 |
* @param sessionId
|
|
|
100 |
* @param gatewayTxnStatus
|
|
|
101 |
* @param description
|
|
|
102 |
* @param gatewayTxnId
|
|
|
103 |
* @param authCode
|
|
|
104 |
* @param referenceCode
|
|
|
105 |
* @param errorCode
|
|
|
106 |
* @param status
|
| 1119 |
rajveer |
107 |
* @param gatewayTxnDate
|
| 695 |
rajveer |
108 |
* @param attributes
|
|
|
109 |
*/
|
| 1119 |
rajveer |
110 |
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, TException;
|
| 695 |
rajveer |
111 |
|
| 1629 |
ankur.sing |
112 |
/**
|
| 1731 |
ankur.sing |
113 |
* Returns the minimum and maximum amounts among successful payments.
|
|
|
114 |
* List contains two double values, first minimum and second maximum amount.
|
| 1629 |
ankur.sing |
115 |
*/
|
| 1731 |
ankur.sing |
116 |
public List<Double> getSuccessfulPaymentsAmountRange() throws TException;
|
| 1629 |
ankur.sing |
117 |
|
| 2462 |
chandransh |
118 |
/**
|
|
|
119 |
* Update the authorization attributes of the payment and attempt to capture it in case it was authorized.
|
|
|
120 |
* If either the authorization failed or the capture attempt failed, the payment is marked as failed.
|
|
|
121 |
*
|
|
|
122 |
* @param paymentParams
|
|
|
123 |
*/
|
|
|
124 |
public Payment updateAndCaptureEbsPayment(Map<String,String> paymentParams) throws PaymentException, TException;
|
|
|
125 |
|
|
|
126 |
/**
|
|
|
127 |
* Captures an already authorized Hdfc Payment and returns a map containing the details of the capture transaction
|
|
|
128 |
*
|
|
|
129 |
* @param merchantPaymentId
|
|
|
130 |
*/
|
|
|
131 |
public Map<String,String> captureHdfcPayment(long merchantPaymentId) throws PaymentException, TException;
|
|
|
132 |
|
|
|
133 |
/**
|
|
|
134 |
* Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
|
|
|
135 |
* In case of any processing error, an exception is raised.
|
|
|
136 |
*
|
|
|
137 |
* @param merchantPaymentId
|
|
|
138 |
*/
|
|
|
139 |
public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, TException;
|
|
|
140 |
|
| 123 |
ashish |
141 |
}
|
|
|
142 |
|
|
|
143 |
public static class Client implements Iface {
|
|
|
144 |
public Client(TProtocol prot)
|
|
|
145 |
{
|
|
|
146 |
this(prot, prot);
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
public Client(TProtocol iprot, TProtocol oprot)
|
|
|
150 |
{
|
|
|
151 |
iprot_ = iprot;
|
|
|
152 |
oprot_ = oprot;
|
|
|
153 |
}
|
|
|
154 |
|
|
|
155 |
protected TProtocol iprot_;
|
|
|
156 |
protected TProtocol oprot_;
|
|
|
157 |
|
|
|
158 |
protected int seqid_;
|
|
|
159 |
|
|
|
160 |
public TProtocol getInputProtocol()
|
|
|
161 |
{
|
|
|
162 |
return this.iprot_;
|
|
|
163 |
}
|
|
|
164 |
|
|
|
165 |
public TProtocol getOutputProtocol()
|
|
|
166 |
{
|
|
|
167 |
return this.oprot_;
|
|
|
168 |
}
|
|
|
169 |
|
| 764 |
rajveer |
170 |
public void closeSession() throws TException
|
|
|
171 |
{
|
|
|
172 |
send_closeSession();
|
|
|
173 |
recv_closeSession();
|
|
|
174 |
}
|
|
|
175 |
|
|
|
176 |
public void send_closeSession() throws TException
|
|
|
177 |
{
|
|
|
178 |
oprot_.writeMessageBegin(new TMessage("closeSession", TMessageType.CALL, seqid_));
|
|
|
179 |
closeSession_args args = new closeSession_args();
|
|
|
180 |
args.write(oprot_);
|
|
|
181 |
oprot_.writeMessageEnd();
|
|
|
182 |
oprot_.getTransport().flush();
|
|
|
183 |
}
|
|
|
184 |
|
|
|
185 |
public void recv_closeSession() throws TException
|
|
|
186 |
{
|
|
|
187 |
TMessage msg = iprot_.readMessageBegin();
|
|
|
188 |
if (msg.type == TMessageType.EXCEPTION) {
|
|
|
189 |
TApplicationException x = TApplicationException.read(iprot_);
|
|
|
190 |
iprot_.readMessageEnd();
|
|
|
191 |
throw x;
|
|
|
192 |
}
|
|
|
193 |
closeSession_result result = new closeSession_result();
|
|
|
194 |
result.read(iprot_);
|
|
|
195 |
iprot_.readMessageEnd();
|
|
|
196 |
return;
|
|
|
197 |
}
|
|
|
198 |
|
| 695 |
rajveer |
199 |
public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, TException
|
| 123 |
ashish |
200 |
{
|
| 695 |
rajveer |
201 |
send_createPayment(userId, amount, gatewayId, txnId);
|
| 123 |
ashish |
202 |
return recv_createPayment();
|
|
|
203 |
}
|
|
|
204 |
|
| 695 |
rajveer |
205 |
public void send_createPayment(long userId, double amount, long gatewayId, long txnId) throws TException
|
| 123 |
ashish |
206 |
{
|
|
|
207 |
oprot_.writeMessageBegin(new TMessage("createPayment", TMessageType.CALL, seqid_));
|
|
|
208 |
createPayment_args args = new createPayment_args();
|
| 695 |
rajveer |
209 |
args.userId = userId;
|
| 123 |
ashish |
210 |
args.amount = amount;
|
| 695 |
rajveer |
211 |
args.gatewayId = gatewayId;
|
|
|
212 |
args.txnId = txnId;
|
| 123 |
ashish |
213 |
args.write(oprot_);
|
|
|
214 |
oprot_.writeMessageEnd();
|
|
|
215 |
oprot_.getTransport().flush();
|
|
|
216 |
}
|
|
|
217 |
|
| 420 |
ashish |
218 |
public long recv_createPayment() throws PaymentException, TException
|
| 123 |
ashish |
219 |
{
|
|
|
220 |
TMessage msg = iprot_.readMessageBegin();
|
|
|
221 |
if (msg.type == TMessageType.EXCEPTION) {
|
|
|
222 |
TApplicationException x = TApplicationException.read(iprot_);
|
|
|
223 |
iprot_.readMessageEnd();
|
|
|
224 |
throw x;
|
|
|
225 |
}
|
|
|
226 |
createPayment_result result = new createPayment_result();
|
|
|
227 |
result.read(iprot_);
|
|
|
228 |
iprot_.readMessageEnd();
|
|
|
229 |
if (result.isSetSuccess()) {
|
|
|
230 |
return result.success;
|
|
|
231 |
}
|
|
|
232 |
if (result.pe != null) {
|
|
|
233 |
throw result.pe;
|
|
|
234 |
}
|
|
|
235 |
throw new TApplicationException(TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
|
|
|
236 |
}
|
|
|
237 |
|
| 695 |
rajveer |
238 |
public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, TException
|
| 123 |
ashish |
239 |
{
|
| 695 |
rajveer |
240 |
send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId);
|
| 123 |
ashish |
241 |
return recv_getPaymentsForUser();
|
|
|
242 |
}
|
|
|
243 |
|
| 695 |
rajveer |
244 |
public void send_getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws TException
|
| 123 |
ashish |
245 |
{
|
|
|
246 |
oprot_.writeMessageBegin(new TMessage("getPaymentsForUser", TMessageType.CALL, seqid_));
|
|
|
247 |
getPaymentsForUser_args args = new getPaymentsForUser_args();
|
|
|
248 |
args.userId = userId;
|
| 695 |
rajveer |
249 |
args.fromTime = fromTime;
|
|
|
250 |
args.toTime = toTime;
|
| 123 |
ashish |
251 |
args.status = status;
|
| 695 |
rajveer |
252 |
args.gatewayId = gatewayId;
|
| 123 |
ashish |
253 |
args.write(oprot_);
|
|
|
254 |
oprot_.writeMessageEnd();
|
|
|
255 |
oprot_.getTransport().flush();
|
|
|
256 |
}
|
|
|
257 |
|
|
|
258 |
public List<Payment> recv_getPaymentsForUser() throws PaymentException, TException
|
|
|
259 |
{
|
|
|
260 |
TMessage msg = iprot_.readMessageBegin();
|
|
|
261 |
if (msg.type == TMessageType.EXCEPTION) {
|
|
|
262 |
TApplicationException x = TApplicationException.read(iprot_);
|
|
|
263 |
iprot_.readMessageEnd();
|
|
|
264 |
throw x;
|
|
|
265 |
}
|
|
|
266 |
getPaymentsForUser_result result = new getPaymentsForUser_result();
|
|
|
267 |
result.read(iprot_);
|
|
|
268 |
iprot_.readMessageEnd();
|
|
|
269 |
if (result.isSetSuccess()) {
|
|
|
270 |
return result.success;
|
|
|
271 |
}
|
|
|
272 |
if (result.pe != null) {
|
|
|
273 |
throw result.pe;
|
|
|
274 |
}
|
|
|
275 |
throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
|
|
|
276 |
}
|
|
|
277 |
|
| 695 |
rajveer |
278 |
public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, TException
|
| 123 |
ashish |
279 |
{
|
| 695 |
rajveer |
280 |
send_getPayments(fromTime, toTime, status, gatewayId);
|
| 123 |
ashish |
281 |
return recv_getPayments();
|
|
|
282 |
}
|
|
|
283 |
|
| 695 |
rajveer |
284 |
public void send_getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws TException
|
| 123 |
ashish |
285 |
{
|
|
|
286 |
oprot_.writeMessageBegin(new TMessage("getPayments", TMessageType.CALL, seqid_));
|
|
|
287 |
getPayments_args args = new getPayments_args();
|
| 695 |
rajveer |
288 |
args.fromTime = fromTime;
|
|
|
289 |
args.toTime = toTime;
|
| 123 |
ashish |
290 |
args.status = status;
|
| 695 |
rajveer |
291 |
args.gatewayId = gatewayId;
|
| 123 |
ashish |
292 |
args.write(oprot_);
|
|
|
293 |
oprot_.writeMessageEnd();
|
|
|
294 |
oprot_.getTransport().flush();
|
|
|
295 |
}
|
|
|
296 |
|
|
|
297 |
public List<Payment> recv_getPayments() throws PaymentException, TException
|
|
|
298 |
{
|
|
|
299 |
TMessage msg = iprot_.readMessageBegin();
|
|
|
300 |
if (msg.type == TMessageType.EXCEPTION) {
|
|
|
301 |
TApplicationException x = TApplicationException.read(iprot_);
|
|
|
302 |
iprot_.readMessageEnd();
|
|
|
303 |
throw x;
|
|
|
304 |
}
|
|
|
305 |
getPayments_result result = new getPayments_result();
|
|
|
306 |
result.read(iprot_);
|
|
|
307 |
iprot_.readMessageEnd();
|
|
|
308 |
if (result.isSetSuccess()) {
|
|
|
309 |
return result.success;
|
|
|
310 |
}
|
|
|
311 |
if (result.pe != null) {
|
|
|
312 |
throw result.pe;
|
|
|
313 |
}
|
|
|
314 |
throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
|
|
|
315 |
}
|
|
|
316 |
|
| 420 |
ashish |
317 |
public PaymentGateway getPaymentGateway(long id) throws PaymentException, TException
|
|
|
318 |
{
|
|
|
319 |
send_getPaymentGateway(id);
|
|
|
320 |
return recv_getPaymentGateway();
|
|
|
321 |
}
|
|
|
322 |
|
|
|
323 |
public void send_getPaymentGateway(long id) throws TException
|
|
|
324 |
{
|
|
|
325 |
oprot_.writeMessageBegin(new TMessage("getPaymentGateway", TMessageType.CALL, seqid_));
|
|
|
326 |
getPaymentGateway_args args = new getPaymentGateway_args();
|
|
|
327 |
args.id = id;
|
|
|
328 |
args.write(oprot_);
|
|
|
329 |
oprot_.writeMessageEnd();
|
|
|
330 |
oprot_.getTransport().flush();
|
|
|
331 |
}
|
|
|
332 |
|
|
|
333 |
public PaymentGateway recv_getPaymentGateway() throws PaymentException, TException
|
|
|
334 |
{
|
|
|
335 |
TMessage msg = iprot_.readMessageBegin();
|
|
|
336 |
if (msg.type == TMessageType.EXCEPTION) {
|
|
|
337 |
TApplicationException x = TApplicationException.read(iprot_);
|
|
|
338 |
iprot_.readMessageEnd();
|
|
|
339 |
throw x;
|
|
|
340 |
}
|
|
|
341 |
getPaymentGateway_result result = new getPaymentGateway_result();
|
|
|
342 |
result.read(iprot_);
|
|
|
343 |
iprot_.readMessageEnd();
|
|
|
344 |
if (result.isSetSuccess()) {
|
|
|
345 |
return result.success;
|
|
|
346 |
}
|
|
|
347 |
if (result.pe != null) {
|
|
|
348 |
throw result.pe;
|
|
|
349 |
}
|
|
|
350 |
throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
|
|
|
351 |
}
|
|
|
352 |
|
| 695 |
rajveer |
353 |
public Payment getPayment(long id) throws PaymentException, TException
|
| 420 |
ashish |
354 |
{
|
| 695 |
rajveer |
355 |
send_getPayment(id);
|
|
|
356 |
return recv_getPayment();
|
| 420 |
ashish |
357 |
}
|
|
|
358 |
|
| 695 |
rajveer |
359 |
public void send_getPayment(long id) throws TException
|
| 420 |
ashish |
360 |
{
|
| 695 |
rajveer |
361 |
oprot_.writeMessageBegin(new TMessage("getPayment", TMessageType.CALL, seqid_));
|
|
|
362 |
getPayment_args args = new getPayment_args();
|
| 420 |
ashish |
363 |
args.id = id;
|
|
|
364 |
args.write(oprot_);
|
|
|
365 |
oprot_.writeMessageEnd();
|
|
|
366 |
oprot_.getTransport().flush();
|
|
|
367 |
}
|
|
|
368 |
|
| 695 |
rajveer |
369 |
public Payment recv_getPayment() throws PaymentException, TException
|
| 420 |
ashish |
370 |
{
|
|
|
371 |
TMessage msg = iprot_.readMessageBegin();
|
|
|
372 |
if (msg.type == TMessageType.EXCEPTION) {
|
|
|
373 |
TApplicationException x = TApplicationException.read(iprot_);
|
|
|
374 |
iprot_.readMessageEnd();
|
|
|
375 |
throw x;
|
|
|
376 |
}
|
| 695 |
rajveer |
377 |
getPayment_result result = new getPayment_result();
|
| 420 |
ashish |
378 |
result.read(iprot_);
|
|
|
379 |
iprot_.readMessageEnd();
|
| 695 |
rajveer |
380 |
if (result.isSetSuccess()) {
|
|
|
381 |
return result.success;
|
|
|
382 |
}
|
| 420 |
ashish |
383 |
if (result.pe != null) {
|
|
|
384 |
throw result.pe;
|
|
|
385 |
}
|
| 695 |
rajveer |
386 |
throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
|
| 420 |
ashish |
387 |
}
|
|
|
388 |
|
| 695 |
rajveer |
389 |
public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, TException
|
| 420 |
ashish |
390 |
{
|
| 695 |
rajveer |
391 |
send_getPaymentForTxnId(txnId);
|
|
|
392 |
return recv_getPaymentForTxnId();
|
| 420 |
ashish |
393 |
}
|
|
|
394 |
|
| 695 |
rajveer |
395 |
public void send_getPaymentForTxnId(long txnId) throws TException
|
| 420 |
ashish |
396 |
{
|
| 695 |
rajveer |
397 |
oprot_.writeMessageBegin(new TMessage("getPaymentForTxnId", TMessageType.CALL, seqid_));
|
|
|
398 |
getPaymentForTxnId_args args = new getPaymentForTxnId_args();
|
|
|
399 |
args.txnId = txnId;
|
| 420 |
ashish |
400 |
args.write(oprot_);
|
|
|
401 |
oprot_.writeMessageEnd();
|
|
|
402 |
oprot_.getTransport().flush();
|
|
|
403 |
}
|
|
|
404 |
|
| 695 |
rajveer |
405 |
public List<Payment> recv_getPaymentForTxnId() throws PaymentException, TException
|
| 420 |
ashish |
406 |
{
|
|
|
407 |
TMessage msg = iprot_.readMessageBegin();
|
|
|
408 |
if (msg.type == TMessageType.EXCEPTION) {
|
|
|
409 |
TApplicationException x = TApplicationException.read(iprot_);
|
|
|
410 |
iprot_.readMessageEnd();
|
|
|
411 |
throw x;
|
|
|
412 |
}
|
| 695 |
rajveer |
413 |
getPaymentForTxnId_result result = new getPaymentForTxnId_result();
|
| 420 |
ashish |
414 |
result.read(iprot_);
|
|
|
415 |
iprot_.readMessageEnd();
|
|
|
416 |
if (result.isSetSuccess()) {
|
|
|
417 |
return result.success;
|
|
|
418 |
}
|
|
|
419 |
if (result.pe != null) {
|
|
|
420 |
throw result.pe;
|
|
|
421 |
}
|
| 695 |
rajveer |
422 |
throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
|
| 420 |
ashish |
423 |
}
|
|
|
424 |
|
| 1119 |
rajveer |
425 |
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, TException
|
| 420 |
ashish |
426 |
{
|
| 1119 |
rajveer |
427 |
send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes);
|
| 695 |
rajveer |
428 |
return recv_updatePaymentDetails();
|
| 420 |
ashish |
429 |
}
|
|
|
430 |
|
| 1119 |
rajveer |
431 |
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 TException
|
| 420 |
ashish |
432 |
{
|
| 695 |
rajveer |
433 |
oprot_.writeMessageBegin(new TMessage("updatePaymentDetails", TMessageType.CALL, seqid_));
|
|
|
434 |
updatePaymentDetails_args args = new updatePaymentDetails_args();
|
| 420 |
ashish |
435 |
args.id = id;
|
| 695 |
rajveer |
436 |
args.gatewayPaymentId = gatewayPaymentId;
|
|
|
437 |
args.sessionId = sessionId;
|
|
|
438 |
args.gatewayTxnStatus = gatewayTxnStatus;
|
|
|
439 |
args.description = description;
|
|
|
440 |
args.gatewayTxnId = gatewayTxnId;
|
|
|
441 |
args.authCode = authCode;
|
|
|
442 |
args.referenceCode = referenceCode;
|
|
|
443 |
args.errorCode = errorCode;
|
|
|
444 |
args.status = status;
|
| 1119 |
rajveer |
445 |
args.gatewayTxnDate = gatewayTxnDate;
|
| 695 |
rajveer |
446 |
args.attributes = attributes;
|
| 420 |
ashish |
447 |
args.write(oprot_);
|
|
|
448 |
oprot_.writeMessageEnd();
|
|
|
449 |
oprot_.getTransport().flush();
|
|
|
450 |
}
|
|
|
451 |
|
| 695 |
rajveer |
452 |
public boolean recv_updatePaymentDetails() throws PaymentException, TException
|
| 420 |
ashish |
453 |
{
|
|
|
454 |
TMessage msg = iprot_.readMessageBegin();
|
|
|
455 |
if (msg.type == TMessageType.EXCEPTION) {
|
|
|
456 |
TApplicationException x = TApplicationException.read(iprot_);
|
|
|
457 |
iprot_.readMessageEnd();
|
|
|
458 |
throw x;
|
|
|
459 |
}
|
| 695 |
rajveer |
460 |
updatePaymentDetails_result result = new updatePaymentDetails_result();
|
| 420 |
ashish |
461 |
result.read(iprot_);
|
|
|
462 |
iprot_.readMessageEnd();
|
| 695 |
rajveer |
463 |
if (result.isSetSuccess()) {
|
|
|
464 |
return result.success;
|
|
|
465 |
}
|
| 420 |
ashish |
466 |
if (result.pe != null) {
|
|
|
467 |
throw result.pe;
|
|
|
468 |
}
|
| 695 |
rajveer |
469 |
throw new TApplicationException(TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
|
| 420 |
ashish |
470 |
}
|
|
|
471 |
|
| 1731 |
ankur.sing |
472 |
public List<Double> getSuccessfulPaymentsAmountRange() throws TException
|
| 1629 |
ankur.sing |
473 |
{
|
| 1731 |
ankur.sing |
474 |
send_getSuccessfulPaymentsAmountRange();
|
|
|
475 |
return recv_getSuccessfulPaymentsAmountRange();
|
| 1629 |
ankur.sing |
476 |
}
|
|
|
477 |
|
| 1731 |
ankur.sing |
478 |
public void send_getSuccessfulPaymentsAmountRange() throws TException
|
| 1629 |
ankur.sing |
479 |
{
|
| 1731 |
ankur.sing |
480 |
oprot_.writeMessageBegin(new TMessage("getSuccessfulPaymentsAmountRange", TMessageType.CALL, seqid_));
|
|
|
481 |
getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
|
| 1629 |
ankur.sing |
482 |
args.write(oprot_);
|
|
|
483 |
oprot_.writeMessageEnd();
|
|
|
484 |
oprot_.getTransport().flush();
|
|
|
485 |
}
|
|
|
486 |
|
| 1731 |
ankur.sing |
487 |
public List<Double> recv_getSuccessfulPaymentsAmountRange() throws TException
|
| 1629 |
ankur.sing |
488 |
{
|
|
|
489 |
TMessage msg = iprot_.readMessageBegin();
|
|
|
490 |
if (msg.type == TMessageType.EXCEPTION) {
|
|
|
491 |
TApplicationException x = TApplicationException.read(iprot_);
|
|
|
492 |
iprot_.readMessageEnd();
|
|
|
493 |
throw x;
|
|
|
494 |
}
|
| 1731 |
ankur.sing |
495 |
getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
|
| 1629 |
ankur.sing |
496 |
result.read(iprot_);
|
|
|
497 |
iprot_.readMessageEnd();
|
|
|
498 |
if (result.isSetSuccess()) {
|
|
|
499 |
return result.success;
|
|
|
500 |
}
|
| 1731 |
ankur.sing |
501 |
throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
|
| 1629 |
ankur.sing |
502 |
}
|
|
|
503 |
|
| 2462 |
chandransh |
504 |
public Payment updateAndCaptureEbsPayment(Map<String,String> paymentParams) throws PaymentException, TException
|
|
|
505 |
{
|
|
|
506 |
send_updateAndCaptureEbsPayment(paymentParams);
|
|
|
507 |
return recv_updateAndCaptureEbsPayment();
|
|
|
508 |
}
|
|
|
509 |
|
|
|
510 |
public void send_updateAndCaptureEbsPayment(Map<String,String> paymentParams) throws TException
|
|
|
511 |
{
|
|
|
512 |
oprot_.writeMessageBegin(new TMessage("updateAndCaptureEbsPayment", TMessageType.CALL, seqid_));
|
|
|
513 |
updateAndCaptureEbsPayment_args args = new updateAndCaptureEbsPayment_args();
|
|
|
514 |
args.paymentParams = paymentParams;
|
|
|
515 |
args.write(oprot_);
|
|
|
516 |
oprot_.writeMessageEnd();
|
|
|
517 |
oprot_.getTransport().flush();
|
|
|
518 |
}
|
|
|
519 |
|
|
|
520 |
public Payment recv_updateAndCaptureEbsPayment() throws PaymentException, TException
|
|
|
521 |
{
|
|
|
522 |
TMessage msg = iprot_.readMessageBegin();
|
|
|
523 |
if (msg.type == TMessageType.EXCEPTION) {
|
|
|
524 |
TApplicationException x = TApplicationException.read(iprot_);
|
|
|
525 |
iprot_.readMessageEnd();
|
|
|
526 |
throw x;
|
|
|
527 |
}
|
|
|
528 |
updateAndCaptureEbsPayment_result result = new updateAndCaptureEbsPayment_result();
|
|
|
529 |
result.read(iprot_);
|
|
|
530 |
iprot_.readMessageEnd();
|
|
|
531 |
if (result.isSetSuccess()) {
|
|
|
532 |
return result.success;
|
|
|
533 |
}
|
|
|
534 |
if (result.pe != null) {
|
|
|
535 |
throw result.pe;
|
|
|
536 |
}
|
|
|
537 |
throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateAndCaptureEbsPayment failed: unknown result");
|
|
|
538 |
}
|
|
|
539 |
|
|
|
540 |
public Map<String,String> captureHdfcPayment(long merchantPaymentId) throws PaymentException, TException
|
|
|
541 |
{
|
|
|
542 |
send_captureHdfcPayment(merchantPaymentId);
|
|
|
543 |
return recv_captureHdfcPayment();
|
|
|
544 |
}
|
|
|
545 |
|
|
|
546 |
public void send_captureHdfcPayment(long merchantPaymentId) throws TException
|
|
|
547 |
{
|
|
|
548 |
oprot_.writeMessageBegin(new TMessage("captureHdfcPayment", TMessageType.CALL, seqid_));
|
|
|
549 |
captureHdfcPayment_args args = new captureHdfcPayment_args();
|
|
|
550 |
args.merchantPaymentId = merchantPaymentId;
|
|
|
551 |
args.write(oprot_);
|
|
|
552 |
oprot_.writeMessageEnd();
|
|
|
553 |
oprot_.getTransport().flush();
|
|
|
554 |
}
|
|
|
555 |
|
|
|
556 |
public Map<String,String> recv_captureHdfcPayment() throws PaymentException, TException
|
|
|
557 |
{
|
|
|
558 |
TMessage msg = iprot_.readMessageBegin();
|
|
|
559 |
if (msg.type == TMessageType.EXCEPTION) {
|
|
|
560 |
TApplicationException x = TApplicationException.read(iprot_);
|
|
|
561 |
iprot_.readMessageEnd();
|
|
|
562 |
throw x;
|
|
|
563 |
}
|
|
|
564 |
captureHdfcPayment_result result = new captureHdfcPayment_result();
|
|
|
565 |
result.read(iprot_);
|
|
|
566 |
iprot_.readMessageEnd();
|
|
|
567 |
if (result.isSetSuccess()) {
|
|
|
568 |
return result.success;
|
|
|
569 |
}
|
|
|
570 |
if (result.pe != null) {
|
|
|
571 |
throw result.pe;
|
|
|
572 |
}
|
|
|
573 |
throw new TApplicationException(TApplicationException.MISSING_RESULT, "captureHdfcPayment failed: unknown result");
|
|
|
574 |
}
|
|
|
575 |
|
|
|
576 |
public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, TException
|
|
|
577 |
{
|
|
|
578 |
send_initializeHdfcPayment(merchantPaymentId);
|
|
|
579 |
return recv_initializeHdfcPayment();
|
|
|
580 |
}
|
|
|
581 |
|
|
|
582 |
public void send_initializeHdfcPayment(long merchantPaymentId) throws TException
|
|
|
583 |
{
|
|
|
584 |
oprot_.writeMessageBegin(new TMessage("initializeHdfcPayment", TMessageType.CALL, seqid_));
|
|
|
585 |
initializeHdfcPayment_args args = new initializeHdfcPayment_args();
|
|
|
586 |
args.merchantPaymentId = merchantPaymentId;
|
|
|
587 |
args.write(oprot_);
|
|
|
588 |
oprot_.writeMessageEnd();
|
|
|
589 |
oprot_.getTransport().flush();
|
|
|
590 |
}
|
|
|
591 |
|
|
|
592 |
public String recv_initializeHdfcPayment() throws PaymentException, TException
|
|
|
593 |
{
|
|
|
594 |
TMessage msg = iprot_.readMessageBegin();
|
|
|
595 |
if (msg.type == TMessageType.EXCEPTION) {
|
|
|
596 |
TApplicationException x = TApplicationException.read(iprot_);
|
|
|
597 |
iprot_.readMessageEnd();
|
|
|
598 |
throw x;
|
|
|
599 |
}
|
|
|
600 |
initializeHdfcPayment_result result = new initializeHdfcPayment_result();
|
|
|
601 |
result.read(iprot_);
|
|
|
602 |
iprot_.readMessageEnd();
|
|
|
603 |
if (result.isSetSuccess()) {
|
|
|
604 |
return result.success;
|
|
|
605 |
}
|
|
|
606 |
if (result.pe != null) {
|
|
|
607 |
throw result.pe;
|
|
|
608 |
}
|
|
|
609 |
throw new TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
|
|
|
610 |
}
|
|
|
611 |
|
| 123 |
ashish |
612 |
}
|
|
|
613 |
public static class Processor implements TProcessor {
|
|
|
614 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
615 |
public Processor(Iface iface)
|
|
|
616 |
{
|
|
|
617 |
iface_ = iface;
|
| 764 |
rajveer |
618 |
processMap_.put("closeSession", new closeSession());
|
| 123 |
ashish |
619 |
processMap_.put("createPayment", new createPayment());
|
|
|
620 |
processMap_.put("getPaymentsForUser", new getPaymentsForUser());
|
|
|
621 |
processMap_.put("getPayments", new getPayments());
|
| 420 |
ashish |
622 |
processMap_.put("getPaymentGateway", new getPaymentGateway());
|
|
|
623 |
processMap_.put("getPayment", new getPayment());
|
| 695 |
rajveer |
624 |
processMap_.put("getPaymentForTxnId", new getPaymentForTxnId());
|
|
|
625 |
processMap_.put("updatePaymentDetails", new updatePaymentDetails());
|
| 1731 |
ankur.sing |
626 |
processMap_.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
|
| 2462 |
chandransh |
627 |
processMap_.put("updateAndCaptureEbsPayment", new updateAndCaptureEbsPayment());
|
|
|
628 |
processMap_.put("captureHdfcPayment", new captureHdfcPayment());
|
|
|
629 |
processMap_.put("initializeHdfcPayment", new initializeHdfcPayment());
|
| 123 |
ashish |
630 |
}
|
|
|
631 |
|
|
|
632 |
protected static interface ProcessFunction {
|
|
|
633 |
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
|
|
|
634 |
}
|
|
|
635 |
|
|
|
636 |
private Iface iface_;
|
|
|
637 |
protected final HashMap<String,ProcessFunction> processMap_ = new HashMap<String,ProcessFunction>();
|
|
|
638 |
|
|
|
639 |
public boolean process(TProtocol iprot, TProtocol oprot) throws TException
|
|
|
640 |
{
|
|
|
641 |
TMessage msg = iprot.readMessageBegin();
|
|
|
642 |
ProcessFunction fn = processMap_.get(msg.name);
|
|
|
643 |
if (fn == null) {
|
|
|
644 |
TProtocolUtil.skip(iprot, TType.STRUCT);
|
|
|
645 |
iprot.readMessageEnd();
|
|
|
646 |
TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'");
|
|
|
647 |
oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid));
|
|
|
648 |
x.write(oprot);
|
|
|
649 |
oprot.writeMessageEnd();
|
|
|
650 |
oprot.getTransport().flush();
|
|
|
651 |
return true;
|
|
|
652 |
}
|
|
|
653 |
fn.process(msg.seqid, iprot, oprot);
|
|
|
654 |
return true;
|
|
|
655 |
}
|
|
|
656 |
|
| 764 |
rajveer |
657 |
private class closeSession implements ProcessFunction {
|
|
|
658 |
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
|
|
|
659 |
{
|
|
|
660 |
closeSession_args args = new closeSession_args();
|
|
|
661 |
args.read(iprot);
|
|
|
662 |
iprot.readMessageEnd();
|
|
|
663 |
closeSession_result result = new closeSession_result();
|
|
|
664 |
iface_.closeSession();
|
|
|
665 |
oprot.writeMessageBegin(new TMessage("closeSession", TMessageType.REPLY, seqid));
|
|
|
666 |
result.write(oprot);
|
|
|
667 |
oprot.writeMessageEnd();
|
|
|
668 |
oprot.getTransport().flush();
|
|
|
669 |
}
|
|
|
670 |
|
|
|
671 |
}
|
|
|
672 |
|
| 123 |
ashish |
673 |
private class createPayment implements ProcessFunction {
|
|
|
674 |
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
|
|
|
675 |
{
|
|
|
676 |
createPayment_args args = new createPayment_args();
|
|
|
677 |
args.read(iprot);
|
|
|
678 |
iprot.readMessageEnd();
|
|
|
679 |
createPayment_result result = new createPayment_result();
|
|
|
680 |
try {
|
| 695 |
rajveer |
681 |
result.success = iface_.createPayment(args.userId, args.amount, args.gatewayId, args.txnId);
|
| 420 |
ashish |
682 |
result.setSuccessIsSet(true);
|
| 123 |
ashish |
683 |
} catch (PaymentException pe) {
|
|
|
684 |
result.pe = pe;
|
|
|
685 |
} catch (Throwable th) {
|
|
|
686 |
LOGGER.error("Internal error processing createPayment", th);
|
|
|
687 |
TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing createPayment");
|
|
|
688 |
oprot.writeMessageBegin(new TMessage("createPayment", TMessageType.EXCEPTION, seqid));
|
|
|
689 |
x.write(oprot);
|
|
|
690 |
oprot.writeMessageEnd();
|
|
|
691 |
oprot.getTransport().flush();
|
|
|
692 |
return;
|
|
|
693 |
}
|
|
|
694 |
oprot.writeMessageBegin(new TMessage("createPayment", TMessageType.REPLY, seqid));
|
|
|
695 |
result.write(oprot);
|
|
|
696 |
oprot.writeMessageEnd();
|
|
|
697 |
oprot.getTransport().flush();
|
|
|
698 |
}
|
|
|
699 |
|
|
|
700 |
}
|
|
|
701 |
|
|
|
702 |
private class getPaymentsForUser implements ProcessFunction {
|
|
|
703 |
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
|
|
|
704 |
{
|
|
|
705 |
getPaymentsForUser_args args = new getPaymentsForUser_args();
|
|
|
706 |
args.read(iprot);
|
|
|
707 |
iprot.readMessageEnd();
|
|
|
708 |
getPaymentsForUser_result result = new getPaymentsForUser_result();
|
|
|
709 |
try {
|
| 695 |
rajveer |
710 |
result.success = iface_.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId);
|
| 123 |
ashish |
711 |
} catch (PaymentException pe) {
|
|
|
712 |
result.pe = pe;
|
|
|
713 |
} catch (Throwable th) {
|
|
|
714 |
LOGGER.error("Internal error processing getPaymentsForUser", th);
|
|
|
715 |
TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getPaymentsForUser");
|
|
|
716 |
oprot.writeMessageBegin(new TMessage("getPaymentsForUser", TMessageType.EXCEPTION, seqid));
|
|
|
717 |
x.write(oprot);
|
|
|
718 |
oprot.writeMessageEnd();
|
|
|
719 |
oprot.getTransport().flush();
|
|
|
720 |
return;
|
|
|
721 |
}
|
|
|
722 |
oprot.writeMessageBegin(new TMessage("getPaymentsForUser", TMessageType.REPLY, seqid));
|
|
|
723 |
result.write(oprot);
|
|
|
724 |
oprot.writeMessageEnd();
|
|
|
725 |
oprot.getTransport().flush();
|
|
|
726 |
}
|
|
|
727 |
|
|
|
728 |
}
|
|
|
729 |
|
|
|
730 |
private class getPayments implements ProcessFunction {
|
|
|
731 |
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
|
|
|
732 |
{
|
|
|
733 |
getPayments_args args = new getPayments_args();
|
|
|
734 |
args.read(iprot);
|
|
|
735 |
iprot.readMessageEnd();
|
|
|
736 |
getPayments_result result = new getPayments_result();
|
|
|
737 |
try {
|
| 695 |
rajveer |
738 |
result.success = iface_.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId);
|
| 123 |
ashish |
739 |
} catch (PaymentException pe) {
|
|
|
740 |
result.pe = pe;
|
|
|
741 |
} catch (Throwable th) {
|
|
|
742 |
LOGGER.error("Internal error processing getPayments", th);
|
|
|
743 |
TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getPayments");
|
|
|
744 |
oprot.writeMessageBegin(new TMessage("getPayments", TMessageType.EXCEPTION, seqid));
|
|
|
745 |
x.write(oprot);
|
|
|
746 |
oprot.writeMessageEnd();
|
|
|
747 |
oprot.getTransport().flush();
|
|
|
748 |
return;
|
|
|
749 |
}
|
|
|
750 |
oprot.writeMessageBegin(new TMessage("getPayments", TMessageType.REPLY, seqid));
|
|
|
751 |
result.write(oprot);
|
|
|
752 |
oprot.writeMessageEnd();
|
|
|
753 |
oprot.getTransport().flush();
|
|
|
754 |
}
|
|
|
755 |
|
|
|
756 |
}
|
|
|
757 |
|
| 420 |
ashish |
758 |
private class getPaymentGateway implements ProcessFunction {
|
|
|
759 |
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
|
|
|
760 |
{
|
|
|
761 |
getPaymentGateway_args args = new getPaymentGateway_args();
|
|
|
762 |
args.read(iprot);
|
|
|
763 |
iprot.readMessageEnd();
|
|
|
764 |
getPaymentGateway_result result = new getPaymentGateway_result();
|
|
|
765 |
try {
|
|
|
766 |
result.success = iface_.getPaymentGateway(args.id);
|
|
|
767 |
} catch (PaymentException pe) {
|
|
|
768 |
result.pe = pe;
|
|
|
769 |
} catch (Throwable th) {
|
|
|
770 |
LOGGER.error("Internal error processing getPaymentGateway", th);
|
|
|
771 |
TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getPaymentGateway");
|
|
|
772 |
oprot.writeMessageBegin(new TMessage("getPaymentGateway", TMessageType.EXCEPTION, seqid));
|
|
|
773 |
x.write(oprot);
|
|
|
774 |
oprot.writeMessageEnd();
|
|
|
775 |
oprot.getTransport().flush();
|
|
|
776 |
return;
|
|
|
777 |
}
|
|
|
778 |
oprot.writeMessageBegin(new TMessage("getPaymentGateway", TMessageType.REPLY, seqid));
|
|
|
779 |
result.write(oprot);
|
|
|
780 |
oprot.writeMessageEnd();
|
|
|
781 |
oprot.getTransport().flush();
|
|
|
782 |
}
|
|
|
783 |
|
|
|
784 |
}
|
|
|
785 |
|
| 695 |
rajveer |
786 |
private class getPayment implements ProcessFunction {
|
| 420 |
ashish |
787 |
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
|
|
|
788 |
{
|
| 695 |
rajveer |
789 |
getPayment_args args = new getPayment_args();
|
| 420 |
ashish |
790 |
args.read(iprot);
|
|
|
791 |
iprot.readMessageEnd();
|
| 695 |
rajveer |
792 |
getPayment_result result = new getPayment_result();
|
| 420 |
ashish |
793 |
try {
|
| 695 |
rajveer |
794 |
result.success = iface_.getPayment(args.id);
|
| 420 |
ashish |
795 |
} catch (PaymentException pe) {
|
|
|
796 |
result.pe = pe;
|
|
|
797 |
} catch (Throwable th) {
|
| 695 |
rajveer |
798 |
LOGGER.error("Internal error processing getPayment", th);
|
|
|
799 |
TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getPayment");
|
|
|
800 |
oprot.writeMessageBegin(new TMessage("getPayment", TMessageType.EXCEPTION, seqid));
|
| 420 |
ashish |
801 |
x.write(oprot);
|
|
|
802 |
oprot.writeMessageEnd();
|
|
|
803 |
oprot.getTransport().flush();
|
|
|
804 |
return;
|
|
|
805 |
}
|
| 695 |
rajveer |
806 |
oprot.writeMessageBegin(new TMessage("getPayment", TMessageType.REPLY, seqid));
|
| 420 |
ashish |
807 |
result.write(oprot);
|
|
|
808 |
oprot.writeMessageEnd();
|
|
|
809 |
oprot.getTransport().flush();
|
|
|
810 |
}
|
|
|
811 |
|
|
|
812 |
}
|
|
|
813 |
|
| 695 |
rajveer |
814 |
private class getPaymentForTxnId implements ProcessFunction {
|
| 420 |
ashish |
815 |
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
|
|
|
816 |
{
|
| 695 |
rajveer |
817 |
getPaymentForTxnId_args args = new getPaymentForTxnId_args();
|
| 420 |
ashish |
818 |
args.read(iprot);
|
|
|
819 |
iprot.readMessageEnd();
|
| 695 |
rajveer |
820 |
getPaymentForTxnId_result result = new getPaymentForTxnId_result();
|
| 420 |
ashish |
821 |
try {
|
| 695 |
rajveer |
822 |
result.success = iface_.getPaymentForTxnId(args.txnId);
|
| 420 |
ashish |
823 |
} catch (PaymentException pe) {
|
|
|
824 |
result.pe = pe;
|
|
|
825 |
} catch (Throwable th) {
|
| 695 |
rajveer |
826 |
LOGGER.error("Internal error processing getPaymentForTxnId", th);
|
|
|
827 |
TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getPaymentForTxnId");
|
|
|
828 |
oprot.writeMessageBegin(new TMessage("getPaymentForTxnId", TMessageType.EXCEPTION, seqid));
|
| 420 |
ashish |
829 |
x.write(oprot);
|
|
|
830 |
oprot.writeMessageEnd();
|
|
|
831 |
oprot.getTransport().flush();
|
|
|
832 |
return;
|
|
|
833 |
}
|
| 695 |
rajveer |
834 |
oprot.writeMessageBegin(new TMessage("getPaymentForTxnId", TMessageType.REPLY, seqid));
|
| 420 |
ashish |
835 |
result.write(oprot);
|
|
|
836 |
oprot.writeMessageEnd();
|
|
|
837 |
oprot.getTransport().flush();
|
|
|
838 |
}
|
|
|
839 |
|
|
|
840 |
}
|
|
|
841 |
|
| 695 |
rajveer |
842 |
private class updatePaymentDetails implements ProcessFunction {
|
| 420 |
ashish |
843 |
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
|
|
|
844 |
{
|
| 695 |
rajveer |
845 |
updatePaymentDetails_args args = new updatePaymentDetails_args();
|
| 420 |
ashish |
846 |
args.read(iprot);
|
|
|
847 |
iprot.readMessageEnd();
|
| 695 |
rajveer |
848 |
updatePaymentDetails_result result = new updatePaymentDetails_result();
|
| 420 |
ashish |
849 |
try {
|
| 1119 |
rajveer |
850 |
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 |
851 |
result.setSuccessIsSet(true);
|
| 420 |
ashish |
852 |
} catch (PaymentException pe) {
|
|
|
853 |
result.pe = pe;
|
|
|
854 |
} catch (Throwable th) {
|
| 695 |
rajveer |
855 |
LOGGER.error("Internal error processing updatePaymentDetails", th);
|
|
|
856 |
TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updatePaymentDetails");
|
|
|
857 |
oprot.writeMessageBegin(new TMessage("updatePaymentDetails", TMessageType.EXCEPTION, seqid));
|
| 420 |
ashish |
858 |
x.write(oprot);
|
|
|
859 |
oprot.writeMessageEnd();
|
|
|
860 |
oprot.getTransport().flush();
|
|
|
861 |
return;
|
|
|
862 |
}
|
| 695 |
rajveer |
863 |
oprot.writeMessageBegin(new TMessage("updatePaymentDetails", TMessageType.REPLY, seqid));
|
| 420 |
ashish |
864 |
result.write(oprot);
|
|
|
865 |
oprot.writeMessageEnd();
|
|
|
866 |
oprot.getTransport().flush();
|
|
|
867 |
}
|
|
|
868 |
|
|
|
869 |
}
|
|
|
870 |
|
| 1731 |
ankur.sing |
871 |
private class getSuccessfulPaymentsAmountRange implements ProcessFunction {
|
| 1629 |
ankur.sing |
872 |
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
|
|
|
873 |
{
|
| 1731 |
ankur.sing |
874 |
getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
|
| 1629 |
ankur.sing |
875 |
args.read(iprot);
|
|
|
876 |
iprot.readMessageEnd();
|
| 1731 |
ankur.sing |
877 |
getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
|
|
|
878 |
result.success = iface_.getSuccessfulPaymentsAmountRange();
|
|
|
879 |
oprot.writeMessageBegin(new TMessage("getSuccessfulPaymentsAmountRange", TMessageType.REPLY, seqid));
|
| 1629 |
ankur.sing |
880 |
result.write(oprot);
|
|
|
881 |
oprot.writeMessageEnd();
|
|
|
882 |
oprot.getTransport().flush();
|
|
|
883 |
}
|
|
|
884 |
|
|
|
885 |
}
|
|
|
886 |
|
| 2462 |
chandransh |
887 |
private class updateAndCaptureEbsPayment implements ProcessFunction {
|
|
|
888 |
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
|
|
|
889 |
{
|
|
|
890 |
updateAndCaptureEbsPayment_args args = new updateAndCaptureEbsPayment_args();
|
|
|
891 |
args.read(iprot);
|
|
|
892 |
iprot.readMessageEnd();
|
|
|
893 |
updateAndCaptureEbsPayment_result result = new updateAndCaptureEbsPayment_result();
|
|
|
894 |
try {
|
|
|
895 |
result.success = iface_.updateAndCaptureEbsPayment(args.paymentParams);
|
|
|
896 |
} catch (PaymentException pe) {
|
|
|
897 |
result.pe = pe;
|
|
|
898 |
} catch (Throwable th) {
|
|
|
899 |
LOGGER.error("Internal error processing updateAndCaptureEbsPayment", th);
|
|
|
900 |
TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updateAndCaptureEbsPayment");
|
|
|
901 |
oprot.writeMessageBegin(new TMessage("updateAndCaptureEbsPayment", TMessageType.EXCEPTION, seqid));
|
|
|
902 |
x.write(oprot);
|
|
|
903 |
oprot.writeMessageEnd();
|
|
|
904 |
oprot.getTransport().flush();
|
|
|
905 |
return;
|
|
|
906 |
}
|
|
|
907 |
oprot.writeMessageBegin(new TMessage("updateAndCaptureEbsPayment", TMessageType.REPLY, seqid));
|
|
|
908 |
result.write(oprot);
|
|
|
909 |
oprot.writeMessageEnd();
|
|
|
910 |
oprot.getTransport().flush();
|
|
|
911 |
}
|
|
|
912 |
|
|
|
913 |
}
|
|
|
914 |
|
|
|
915 |
private class captureHdfcPayment implements ProcessFunction {
|
|
|
916 |
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
|
|
|
917 |
{
|
|
|
918 |
captureHdfcPayment_args args = new captureHdfcPayment_args();
|
|
|
919 |
args.read(iprot);
|
|
|
920 |
iprot.readMessageEnd();
|
|
|
921 |
captureHdfcPayment_result result = new captureHdfcPayment_result();
|
|
|
922 |
try {
|
|
|
923 |
result.success = iface_.captureHdfcPayment(args.merchantPaymentId);
|
|
|
924 |
} catch (PaymentException pe) {
|
|
|
925 |
result.pe = pe;
|
|
|
926 |
} catch (Throwable th) {
|
|
|
927 |
LOGGER.error("Internal error processing captureHdfcPayment", th);
|
|
|
928 |
TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing captureHdfcPayment");
|
|
|
929 |
oprot.writeMessageBegin(new TMessage("captureHdfcPayment", TMessageType.EXCEPTION, seqid));
|
|
|
930 |
x.write(oprot);
|
|
|
931 |
oprot.writeMessageEnd();
|
|
|
932 |
oprot.getTransport().flush();
|
|
|
933 |
return;
|
|
|
934 |
}
|
|
|
935 |
oprot.writeMessageBegin(new TMessage("captureHdfcPayment", TMessageType.REPLY, seqid));
|
|
|
936 |
result.write(oprot);
|
|
|
937 |
oprot.writeMessageEnd();
|
|
|
938 |
oprot.getTransport().flush();
|
|
|
939 |
}
|
|
|
940 |
|
|
|
941 |
}
|
|
|
942 |
|
|
|
943 |
private class initializeHdfcPayment implements ProcessFunction {
|
|
|
944 |
public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
|
|
|
945 |
{
|
|
|
946 |
initializeHdfcPayment_args args = new initializeHdfcPayment_args();
|
|
|
947 |
args.read(iprot);
|
|
|
948 |
iprot.readMessageEnd();
|
|
|
949 |
initializeHdfcPayment_result result = new initializeHdfcPayment_result();
|
|
|
950 |
try {
|
|
|
951 |
result.success = iface_.initializeHdfcPayment(args.merchantPaymentId);
|
|
|
952 |
} catch (PaymentException pe) {
|
|
|
953 |
result.pe = pe;
|
|
|
954 |
} catch (Throwable th) {
|
|
|
955 |
LOGGER.error("Internal error processing initializeHdfcPayment", th);
|
|
|
956 |
TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing initializeHdfcPayment");
|
|
|
957 |
oprot.writeMessageBegin(new TMessage("initializeHdfcPayment", TMessageType.EXCEPTION, seqid));
|
|
|
958 |
x.write(oprot);
|
|
|
959 |
oprot.writeMessageEnd();
|
|
|
960 |
oprot.getTransport().flush();
|
|
|
961 |
return;
|
|
|
962 |
}
|
|
|
963 |
oprot.writeMessageBegin(new TMessage("initializeHdfcPayment", TMessageType.REPLY, seqid));
|
|
|
964 |
result.write(oprot);
|
|
|
965 |
oprot.writeMessageEnd();
|
|
|
966 |
oprot.getTransport().flush();
|
|
|
967 |
}
|
|
|
968 |
|
|
|
969 |
}
|
|
|
970 |
|
| 123 |
ashish |
971 |
}
|
|
|
972 |
|
| 764 |
rajveer |
973 |
public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args> {
|
|
|
974 |
private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
|
|
|
975 |
|
|
|
976 |
|
|
|
977 |
|
|
|
978 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
979 |
public enum _Fields implements TFieldIdEnum {
|
|
|
980 |
;
|
|
|
981 |
|
|
|
982 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
983 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
984 |
|
|
|
985 |
static {
|
|
|
986 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
987 |
byId.put((int)field._thriftId, field);
|
|
|
988 |
byName.put(field.getFieldName(), field);
|
|
|
989 |
}
|
|
|
990 |
}
|
|
|
991 |
|
|
|
992 |
/**
|
|
|
993 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
994 |
*/
|
|
|
995 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
996 |
return byId.get(fieldId);
|
|
|
997 |
}
|
|
|
998 |
|
|
|
999 |
/**
|
|
|
1000 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1001 |
* if it is not found.
|
|
|
1002 |
*/
|
|
|
1003 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1004 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1005 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1006 |
return fields;
|
|
|
1007 |
}
|
|
|
1008 |
|
|
|
1009 |
/**
|
|
|
1010 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1011 |
*/
|
|
|
1012 |
public static _Fields findByName(String name) {
|
|
|
1013 |
return byName.get(name);
|
|
|
1014 |
}
|
|
|
1015 |
|
|
|
1016 |
private final short _thriftId;
|
|
|
1017 |
private final String _fieldName;
|
|
|
1018 |
|
|
|
1019 |
_Fields(short thriftId, String fieldName) {
|
|
|
1020 |
_thriftId = thriftId;
|
|
|
1021 |
_fieldName = fieldName;
|
|
|
1022 |
}
|
|
|
1023 |
|
|
|
1024 |
public short getThriftFieldId() {
|
|
|
1025 |
return _thriftId;
|
|
|
1026 |
}
|
|
|
1027 |
|
|
|
1028 |
public String getFieldName() {
|
|
|
1029 |
return _fieldName;
|
|
|
1030 |
}
|
|
|
1031 |
}
|
|
|
1032 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
1033 |
}});
|
|
|
1034 |
|
|
|
1035 |
static {
|
|
|
1036 |
FieldMetaData.addStructMetaDataMap(closeSession_args.class, metaDataMap);
|
|
|
1037 |
}
|
|
|
1038 |
|
|
|
1039 |
public closeSession_args() {
|
|
|
1040 |
}
|
|
|
1041 |
|
|
|
1042 |
/**
|
|
|
1043 |
* Performs a deep copy on <i>other</i>.
|
|
|
1044 |
*/
|
|
|
1045 |
public closeSession_args(closeSession_args other) {
|
|
|
1046 |
}
|
|
|
1047 |
|
|
|
1048 |
public closeSession_args deepCopy() {
|
|
|
1049 |
return new closeSession_args(this);
|
|
|
1050 |
}
|
|
|
1051 |
|
|
|
1052 |
@Deprecated
|
|
|
1053 |
public closeSession_args clone() {
|
|
|
1054 |
return new closeSession_args(this);
|
|
|
1055 |
}
|
|
|
1056 |
|
|
|
1057 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1058 |
switch (field) {
|
|
|
1059 |
}
|
|
|
1060 |
}
|
|
|
1061 |
|
|
|
1062 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
1063 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
1064 |
}
|
|
|
1065 |
|
|
|
1066 |
public Object getFieldValue(_Fields field) {
|
|
|
1067 |
switch (field) {
|
|
|
1068 |
}
|
|
|
1069 |
throw new IllegalStateException();
|
|
|
1070 |
}
|
|
|
1071 |
|
|
|
1072 |
public Object getFieldValue(int fieldId) {
|
|
|
1073 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
1074 |
}
|
|
|
1075 |
|
|
|
1076 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
1077 |
public boolean isSet(_Fields field) {
|
|
|
1078 |
switch (field) {
|
|
|
1079 |
}
|
|
|
1080 |
throw new IllegalStateException();
|
|
|
1081 |
}
|
|
|
1082 |
|
|
|
1083 |
public boolean isSet(int fieldID) {
|
|
|
1084 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
1085 |
}
|
|
|
1086 |
|
|
|
1087 |
@Override
|
|
|
1088 |
public boolean equals(Object that) {
|
|
|
1089 |
if (that == null)
|
|
|
1090 |
return false;
|
|
|
1091 |
if (that instanceof closeSession_args)
|
|
|
1092 |
return this.equals((closeSession_args)that);
|
|
|
1093 |
return false;
|
|
|
1094 |
}
|
|
|
1095 |
|
|
|
1096 |
public boolean equals(closeSession_args that) {
|
|
|
1097 |
if (that == null)
|
|
|
1098 |
return false;
|
|
|
1099 |
|
|
|
1100 |
return true;
|
|
|
1101 |
}
|
|
|
1102 |
|
|
|
1103 |
@Override
|
|
|
1104 |
public int hashCode() {
|
|
|
1105 |
return 0;
|
|
|
1106 |
}
|
|
|
1107 |
|
|
|
1108 |
public int compareTo(closeSession_args other) {
|
|
|
1109 |
if (!getClass().equals(other.getClass())) {
|
|
|
1110 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1111 |
}
|
|
|
1112 |
|
|
|
1113 |
int lastComparison = 0;
|
|
|
1114 |
closeSession_args typedOther = (closeSession_args)other;
|
|
|
1115 |
|
|
|
1116 |
return 0;
|
|
|
1117 |
}
|
|
|
1118 |
|
|
|
1119 |
public void read(TProtocol iprot) throws TException {
|
|
|
1120 |
TField field;
|
|
|
1121 |
iprot.readStructBegin();
|
|
|
1122 |
while (true)
|
|
|
1123 |
{
|
|
|
1124 |
field = iprot.readFieldBegin();
|
|
|
1125 |
if (field.type == TType.STOP) {
|
|
|
1126 |
break;
|
|
|
1127 |
}
|
|
|
1128 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
1129 |
if (fieldId == null) {
|
|
|
1130 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1131 |
} else {
|
|
|
1132 |
switch (fieldId) {
|
|
|
1133 |
}
|
|
|
1134 |
iprot.readFieldEnd();
|
|
|
1135 |
}
|
|
|
1136 |
}
|
|
|
1137 |
iprot.readStructEnd();
|
|
|
1138 |
validate();
|
|
|
1139 |
}
|
|
|
1140 |
|
|
|
1141 |
public void write(TProtocol oprot) throws TException {
|
|
|
1142 |
validate();
|
|
|
1143 |
|
|
|
1144 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1145 |
oprot.writeFieldStop();
|
|
|
1146 |
oprot.writeStructEnd();
|
|
|
1147 |
}
|
|
|
1148 |
|
|
|
1149 |
@Override
|
|
|
1150 |
public String toString() {
|
|
|
1151 |
StringBuilder sb = new StringBuilder("closeSession_args(");
|
|
|
1152 |
boolean first = true;
|
|
|
1153 |
|
|
|
1154 |
sb.append(")");
|
|
|
1155 |
return sb.toString();
|
|
|
1156 |
}
|
|
|
1157 |
|
|
|
1158 |
public void validate() throws TException {
|
|
|
1159 |
// check for required fields
|
|
|
1160 |
}
|
|
|
1161 |
|
|
|
1162 |
}
|
|
|
1163 |
|
|
|
1164 |
public static class closeSession_result implements TBase<closeSession_result._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_result> {
|
|
|
1165 |
private static final TStruct STRUCT_DESC = new TStruct("closeSession_result");
|
|
|
1166 |
|
|
|
1167 |
|
|
|
1168 |
|
|
|
1169 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
1170 |
public enum _Fields implements TFieldIdEnum {
|
|
|
1171 |
;
|
|
|
1172 |
|
|
|
1173 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
1174 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1175 |
|
|
|
1176 |
static {
|
|
|
1177 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1178 |
byId.put((int)field._thriftId, field);
|
|
|
1179 |
byName.put(field.getFieldName(), field);
|
|
|
1180 |
}
|
|
|
1181 |
}
|
|
|
1182 |
|
|
|
1183 |
/**
|
|
|
1184 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1185 |
*/
|
|
|
1186 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
1187 |
return byId.get(fieldId);
|
|
|
1188 |
}
|
|
|
1189 |
|
|
|
1190 |
/**
|
|
|
1191 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1192 |
* if it is not found.
|
|
|
1193 |
*/
|
|
|
1194 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1195 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1196 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1197 |
return fields;
|
|
|
1198 |
}
|
|
|
1199 |
|
|
|
1200 |
/**
|
|
|
1201 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1202 |
*/
|
|
|
1203 |
public static _Fields findByName(String name) {
|
|
|
1204 |
return byName.get(name);
|
|
|
1205 |
}
|
|
|
1206 |
|
|
|
1207 |
private final short _thriftId;
|
|
|
1208 |
private final String _fieldName;
|
|
|
1209 |
|
|
|
1210 |
_Fields(short thriftId, String fieldName) {
|
|
|
1211 |
_thriftId = thriftId;
|
|
|
1212 |
_fieldName = fieldName;
|
|
|
1213 |
}
|
|
|
1214 |
|
|
|
1215 |
public short getThriftFieldId() {
|
|
|
1216 |
return _thriftId;
|
|
|
1217 |
}
|
|
|
1218 |
|
|
|
1219 |
public String getFieldName() {
|
|
|
1220 |
return _fieldName;
|
|
|
1221 |
}
|
|
|
1222 |
}
|
|
|
1223 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
1224 |
}});
|
|
|
1225 |
|
|
|
1226 |
static {
|
|
|
1227 |
FieldMetaData.addStructMetaDataMap(closeSession_result.class, metaDataMap);
|
|
|
1228 |
}
|
|
|
1229 |
|
|
|
1230 |
public closeSession_result() {
|
|
|
1231 |
}
|
|
|
1232 |
|
|
|
1233 |
/**
|
|
|
1234 |
* Performs a deep copy on <i>other</i>.
|
|
|
1235 |
*/
|
|
|
1236 |
public closeSession_result(closeSession_result other) {
|
|
|
1237 |
}
|
|
|
1238 |
|
|
|
1239 |
public closeSession_result deepCopy() {
|
|
|
1240 |
return new closeSession_result(this);
|
|
|
1241 |
}
|
|
|
1242 |
|
|
|
1243 |
@Deprecated
|
|
|
1244 |
public closeSession_result clone() {
|
|
|
1245 |
return new closeSession_result(this);
|
|
|
1246 |
}
|
|
|
1247 |
|
|
|
1248 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1249 |
switch (field) {
|
|
|
1250 |
}
|
|
|
1251 |
}
|
|
|
1252 |
|
|
|
1253 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
1254 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
1255 |
}
|
|
|
1256 |
|
|
|
1257 |
public Object getFieldValue(_Fields field) {
|
|
|
1258 |
switch (field) {
|
|
|
1259 |
}
|
|
|
1260 |
throw new IllegalStateException();
|
|
|
1261 |
}
|
|
|
1262 |
|
|
|
1263 |
public Object getFieldValue(int fieldId) {
|
|
|
1264 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
1265 |
}
|
|
|
1266 |
|
|
|
1267 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
1268 |
public boolean isSet(_Fields field) {
|
|
|
1269 |
switch (field) {
|
|
|
1270 |
}
|
|
|
1271 |
throw new IllegalStateException();
|
|
|
1272 |
}
|
|
|
1273 |
|
|
|
1274 |
public boolean isSet(int fieldID) {
|
|
|
1275 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
1276 |
}
|
|
|
1277 |
|
|
|
1278 |
@Override
|
|
|
1279 |
public boolean equals(Object that) {
|
|
|
1280 |
if (that == null)
|
|
|
1281 |
return false;
|
|
|
1282 |
if (that instanceof closeSession_result)
|
|
|
1283 |
return this.equals((closeSession_result)that);
|
|
|
1284 |
return false;
|
|
|
1285 |
}
|
|
|
1286 |
|
|
|
1287 |
public boolean equals(closeSession_result that) {
|
|
|
1288 |
if (that == null)
|
|
|
1289 |
return false;
|
|
|
1290 |
|
|
|
1291 |
return true;
|
|
|
1292 |
}
|
|
|
1293 |
|
|
|
1294 |
@Override
|
|
|
1295 |
public int hashCode() {
|
|
|
1296 |
return 0;
|
|
|
1297 |
}
|
|
|
1298 |
|
|
|
1299 |
public int compareTo(closeSession_result other) {
|
|
|
1300 |
if (!getClass().equals(other.getClass())) {
|
|
|
1301 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1302 |
}
|
|
|
1303 |
|
|
|
1304 |
int lastComparison = 0;
|
|
|
1305 |
closeSession_result typedOther = (closeSession_result)other;
|
|
|
1306 |
|
|
|
1307 |
return 0;
|
|
|
1308 |
}
|
|
|
1309 |
|
|
|
1310 |
public void read(TProtocol iprot) throws TException {
|
|
|
1311 |
TField field;
|
|
|
1312 |
iprot.readStructBegin();
|
|
|
1313 |
while (true)
|
|
|
1314 |
{
|
|
|
1315 |
field = iprot.readFieldBegin();
|
|
|
1316 |
if (field.type == TType.STOP) {
|
|
|
1317 |
break;
|
|
|
1318 |
}
|
|
|
1319 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
1320 |
if (fieldId == null) {
|
|
|
1321 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1322 |
} else {
|
|
|
1323 |
switch (fieldId) {
|
|
|
1324 |
}
|
|
|
1325 |
iprot.readFieldEnd();
|
|
|
1326 |
}
|
|
|
1327 |
}
|
|
|
1328 |
iprot.readStructEnd();
|
|
|
1329 |
validate();
|
|
|
1330 |
}
|
|
|
1331 |
|
|
|
1332 |
public void write(TProtocol oprot) throws TException {
|
|
|
1333 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1334 |
|
|
|
1335 |
oprot.writeFieldStop();
|
|
|
1336 |
oprot.writeStructEnd();
|
|
|
1337 |
}
|
|
|
1338 |
|
|
|
1339 |
@Override
|
|
|
1340 |
public String toString() {
|
|
|
1341 |
StringBuilder sb = new StringBuilder("closeSession_result(");
|
|
|
1342 |
boolean first = true;
|
|
|
1343 |
|
|
|
1344 |
sb.append(")");
|
|
|
1345 |
return sb.toString();
|
|
|
1346 |
}
|
|
|
1347 |
|
|
|
1348 |
public void validate() throws TException {
|
|
|
1349 |
// check for required fields
|
|
|
1350 |
}
|
|
|
1351 |
|
|
|
1352 |
}
|
|
|
1353 |
|
| 123 |
ashish |
1354 |
public static class createPayment_args implements TBase<createPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPayment_args> {
|
|
|
1355 |
private static final TStruct STRUCT_DESC = new TStruct("createPayment_args");
|
|
|
1356 |
|
| 695 |
rajveer |
1357 |
private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
|
|
|
1358 |
private static final TField AMOUNT_FIELD_DESC = new TField("amount", TType.DOUBLE, (short)2);
|
|
|
1359 |
private static final TField GATEWAY_ID_FIELD_DESC = new TField("gatewayId", TType.I64, (short)3);
|
|
|
1360 |
private static final TField TXN_ID_FIELD_DESC = new TField("txnId", TType.I64, (short)4);
|
| 123 |
ashish |
1361 |
|
| 695 |
rajveer |
1362 |
private long userId;
|
| 123 |
ashish |
1363 |
private double amount;
|
| 695 |
rajveer |
1364 |
private long gatewayId;
|
|
|
1365 |
private long txnId;
|
| 123 |
ashish |
1366 |
|
|
|
1367 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
1368 |
public enum _Fields implements TFieldIdEnum {
|
| 695 |
rajveer |
1369 |
USER_ID((short)1, "userId"),
|
|
|
1370 |
AMOUNT((short)2, "amount"),
|
|
|
1371 |
GATEWAY_ID((short)3, "gatewayId"),
|
|
|
1372 |
TXN_ID((short)4, "txnId");
|
| 123 |
ashish |
1373 |
|
|
|
1374 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
1375 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1376 |
|
|
|
1377 |
static {
|
|
|
1378 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1379 |
byId.put((int)field._thriftId, field);
|
|
|
1380 |
byName.put(field.getFieldName(), field);
|
|
|
1381 |
}
|
|
|
1382 |
}
|
|
|
1383 |
|
|
|
1384 |
/**
|
|
|
1385 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1386 |
*/
|
|
|
1387 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
1388 |
return byId.get(fieldId);
|
|
|
1389 |
}
|
|
|
1390 |
|
|
|
1391 |
/**
|
|
|
1392 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1393 |
* if it is not found.
|
|
|
1394 |
*/
|
|
|
1395 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1396 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1397 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1398 |
return fields;
|
|
|
1399 |
}
|
|
|
1400 |
|
|
|
1401 |
/**
|
|
|
1402 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1403 |
*/
|
|
|
1404 |
public static _Fields findByName(String name) {
|
|
|
1405 |
return byName.get(name);
|
|
|
1406 |
}
|
|
|
1407 |
|
|
|
1408 |
private final short _thriftId;
|
|
|
1409 |
private final String _fieldName;
|
|
|
1410 |
|
|
|
1411 |
_Fields(short thriftId, String fieldName) {
|
|
|
1412 |
_thriftId = thriftId;
|
|
|
1413 |
_fieldName = fieldName;
|
|
|
1414 |
}
|
|
|
1415 |
|
|
|
1416 |
public short getThriftFieldId() {
|
|
|
1417 |
return _thriftId;
|
|
|
1418 |
}
|
|
|
1419 |
|
|
|
1420 |
public String getFieldName() {
|
|
|
1421 |
return _fieldName;
|
|
|
1422 |
}
|
|
|
1423 |
}
|
|
|
1424 |
|
|
|
1425 |
// isset id assignments
|
| 695 |
rajveer |
1426 |
private static final int __USERID_ISSET_ID = 0;
|
|
|
1427 |
private static final int __AMOUNT_ISSET_ID = 1;
|
|
|
1428 |
private static final int __GATEWAYID_ISSET_ID = 2;
|
|
|
1429 |
private static final int __TXNID_ISSET_ID = 3;
|
| 420 |
ashish |
1430 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 123 |
ashish |
1431 |
|
|
|
1432 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
| 695 |
rajveer |
1433 |
put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT,
|
| 123 |
ashish |
1434 |
new FieldValueMetaData(TType.I64)));
|
|
|
1435 |
put(_Fields.AMOUNT, new FieldMetaData("amount", TFieldRequirementType.DEFAULT,
|
|
|
1436 |
new FieldValueMetaData(TType.DOUBLE)));
|
| 695 |
rajveer |
1437 |
put(_Fields.GATEWAY_ID, new FieldMetaData("gatewayId", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
1438 |
new FieldValueMetaData(TType.I64)));
|
| 695 |
rajveer |
1439 |
put(_Fields.TXN_ID, new FieldMetaData("txnId", TFieldRequirementType.DEFAULT,
|
|
|
1440 |
new FieldValueMetaData(TType.I64)));
|
| 123 |
ashish |
1441 |
}});
|
|
|
1442 |
|
|
|
1443 |
static {
|
|
|
1444 |
FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
|
|
|
1445 |
}
|
|
|
1446 |
|
|
|
1447 |
public createPayment_args() {
|
|
|
1448 |
}
|
|
|
1449 |
|
|
|
1450 |
public createPayment_args(
|
| 695 |
rajveer |
1451 |
long userId,
|
| 123 |
ashish |
1452 |
double amount,
|
| 695 |
rajveer |
1453 |
long gatewayId,
|
|
|
1454 |
long txnId)
|
| 123 |
ashish |
1455 |
{
|
|
|
1456 |
this();
|
| 695 |
rajveer |
1457 |
this.userId = userId;
|
|
|
1458 |
setUserIdIsSet(true);
|
| 123 |
ashish |
1459 |
this.amount = amount;
|
|
|
1460 |
setAmountIsSet(true);
|
| 695 |
rajveer |
1461 |
this.gatewayId = gatewayId;
|
|
|
1462 |
setGatewayIdIsSet(true);
|
|
|
1463 |
this.txnId = txnId;
|
|
|
1464 |
setTxnIdIsSet(true);
|
| 123 |
ashish |
1465 |
}
|
|
|
1466 |
|
|
|
1467 |
/**
|
|
|
1468 |
* Performs a deep copy on <i>other</i>.
|
|
|
1469 |
*/
|
|
|
1470 |
public createPayment_args(createPayment_args other) {
|
|
|
1471 |
__isset_bit_vector.clear();
|
|
|
1472 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 695 |
rajveer |
1473 |
this.userId = other.userId;
|
| 123 |
ashish |
1474 |
this.amount = other.amount;
|
| 695 |
rajveer |
1475 |
this.gatewayId = other.gatewayId;
|
|
|
1476 |
this.txnId = other.txnId;
|
| 123 |
ashish |
1477 |
}
|
|
|
1478 |
|
|
|
1479 |
public createPayment_args deepCopy() {
|
|
|
1480 |
return new createPayment_args(this);
|
|
|
1481 |
}
|
|
|
1482 |
|
|
|
1483 |
@Deprecated
|
|
|
1484 |
public createPayment_args clone() {
|
|
|
1485 |
return new createPayment_args(this);
|
|
|
1486 |
}
|
|
|
1487 |
|
| 695 |
rajveer |
1488 |
public long getUserId() {
|
|
|
1489 |
return this.userId;
|
| 123 |
ashish |
1490 |
}
|
|
|
1491 |
|
| 695 |
rajveer |
1492 |
public createPayment_args setUserId(long userId) {
|
|
|
1493 |
this.userId = userId;
|
|
|
1494 |
setUserIdIsSet(true);
|
| 123 |
ashish |
1495 |
return this;
|
|
|
1496 |
}
|
|
|
1497 |
|
| 695 |
rajveer |
1498 |
public void unsetUserId() {
|
|
|
1499 |
__isset_bit_vector.clear(__USERID_ISSET_ID);
|
| 123 |
ashish |
1500 |
}
|
|
|
1501 |
|
| 695 |
rajveer |
1502 |
/** Returns true if field userId is set (has been asigned a value) and false otherwise */
|
|
|
1503 |
public boolean isSetUserId() {
|
|
|
1504 |
return __isset_bit_vector.get(__USERID_ISSET_ID);
|
| 123 |
ashish |
1505 |
}
|
|
|
1506 |
|
| 695 |
rajveer |
1507 |
public void setUserIdIsSet(boolean value) {
|
|
|
1508 |
__isset_bit_vector.set(__USERID_ISSET_ID, value);
|
| 123 |
ashish |
1509 |
}
|
|
|
1510 |
|
|
|
1511 |
public double getAmount() {
|
|
|
1512 |
return this.amount;
|
|
|
1513 |
}
|
|
|
1514 |
|
|
|
1515 |
public createPayment_args setAmount(double amount) {
|
|
|
1516 |
this.amount = amount;
|
|
|
1517 |
setAmountIsSet(true);
|
|
|
1518 |
return this;
|
|
|
1519 |
}
|
|
|
1520 |
|
|
|
1521 |
public void unsetAmount() {
|
|
|
1522 |
__isset_bit_vector.clear(__AMOUNT_ISSET_ID);
|
|
|
1523 |
}
|
|
|
1524 |
|
|
|
1525 |
/** Returns true if field amount is set (has been asigned a value) and false otherwise */
|
|
|
1526 |
public boolean isSetAmount() {
|
|
|
1527 |
return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
|
|
|
1528 |
}
|
|
|
1529 |
|
|
|
1530 |
public void setAmountIsSet(boolean value) {
|
|
|
1531 |
__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
|
|
|
1532 |
}
|
|
|
1533 |
|
| 695 |
rajveer |
1534 |
public long getGatewayId() {
|
|
|
1535 |
return this.gatewayId;
|
| 123 |
ashish |
1536 |
}
|
|
|
1537 |
|
| 695 |
rajveer |
1538 |
public createPayment_args setGatewayId(long gatewayId) {
|
|
|
1539 |
this.gatewayId = gatewayId;
|
|
|
1540 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
1541 |
return this;
|
|
|
1542 |
}
|
|
|
1543 |
|
| 695 |
rajveer |
1544 |
public void unsetGatewayId() {
|
|
|
1545 |
__isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
1546 |
}
|
|
|
1547 |
|
| 695 |
rajveer |
1548 |
/** Returns true if field gatewayId is set (has been asigned a value) and false otherwise */
|
|
|
1549 |
public boolean isSetGatewayId() {
|
|
|
1550 |
return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
1551 |
}
|
|
|
1552 |
|
| 695 |
rajveer |
1553 |
public void setGatewayIdIsSet(boolean value) {
|
|
|
1554 |
__isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
|
| 123 |
ashish |
1555 |
}
|
|
|
1556 |
|
| 695 |
rajveer |
1557 |
public long getTxnId() {
|
|
|
1558 |
return this.txnId;
|
|
|
1559 |
}
|
|
|
1560 |
|
|
|
1561 |
public createPayment_args setTxnId(long txnId) {
|
|
|
1562 |
this.txnId = txnId;
|
|
|
1563 |
setTxnIdIsSet(true);
|
|
|
1564 |
return this;
|
|
|
1565 |
}
|
|
|
1566 |
|
|
|
1567 |
public void unsetTxnId() {
|
|
|
1568 |
__isset_bit_vector.clear(__TXNID_ISSET_ID);
|
|
|
1569 |
}
|
|
|
1570 |
|
|
|
1571 |
/** Returns true if field txnId is set (has been asigned a value) and false otherwise */
|
|
|
1572 |
public boolean isSetTxnId() {
|
|
|
1573 |
return __isset_bit_vector.get(__TXNID_ISSET_ID);
|
|
|
1574 |
}
|
|
|
1575 |
|
|
|
1576 |
public void setTxnIdIsSet(boolean value) {
|
|
|
1577 |
__isset_bit_vector.set(__TXNID_ISSET_ID, value);
|
|
|
1578 |
}
|
|
|
1579 |
|
| 123 |
ashish |
1580 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1581 |
switch (field) {
|
|
|
1582 |
case USER_ID:
|
|
|
1583 |
if (value == null) {
|
| 695 |
rajveer |
1584 |
unsetUserId();
|
| 123 |
ashish |
1585 |
} else {
|
| 695 |
rajveer |
1586 |
setUserId((Long)value);
|
| 123 |
ashish |
1587 |
}
|
|
|
1588 |
break;
|
|
|
1589 |
|
| 695 |
rajveer |
1590 |
case AMOUNT:
|
| 123 |
ashish |
1591 |
if (value == null) {
|
| 695 |
rajveer |
1592 |
unsetAmount();
|
| 123 |
ashish |
1593 |
} else {
|
| 695 |
rajveer |
1594 |
setAmount((Double)value);
|
| 123 |
ashish |
1595 |
}
|
|
|
1596 |
break;
|
|
|
1597 |
|
| 695 |
rajveer |
1598 |
case GATEWAY_ID:
|
| 123 |
ashish |
1599 |
if (value == null) {
|
| 695 |
rajveer |
1600 |
unsetGatewayId();
|
| 123 |
ashish |
1601 |
} else {
|
| 695 |
rajveer |
1602 |
setGatewayId((Long)value);
|
| 123 |
ashish |
1603 |
}
|
|
|
1604 |
break;
|
|
|
1605 |
|
| 695 |
rajveer |
1606 |
case TXN_ID:
|
| 123 |
ashish |
1607 |
if (value == null) {
|
| 695 |
rajveer |
1608 |
unsetTxnId();
|
| 123 |
ashish |
1609 |
} else {
|
| 695 |
rajveer |
1610 |
setTxnId((Long)value);
|
| 123 |
ashish |
1611 |
}
|
|
|
1612 |
break;
|
|
|
1613 |
|
|
|
1614 |
}
|
|
|
1615 |
}
|
|
|
1616 |
|
|
|
1617 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
1618 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
1619 |
}
|
|
|
1620 |
|
|
|
1621 |
public Object getFieldValue(_Fields field) {
|
|
|
1622 |
switch (field) {
|
|
|
1623 |
case USER_ID:
|
| 695 |
rajveer |
1624 |
return new Long(getUserId());
|
| 123 |
ashish |
1625 |
|
|
|
1626 |
case AMOUNT:
|
|
|
1627 |
return new Double(getAmount());
|
|
|
1628 |
|
| 420 |
ashish |
1629 |
case GATEWAY_ID:
|
| 695 |
rajveer |
1630 |
return new Long(getGatewayId());
|
| 123 |
ashish |
1631 |
|
| 695 |
rajveer |
1632 |
case TXN_ID:
|
|
|
1633 |
return new Long(getTxnId());
|
|
|
1634 |
|
| 123 |
ashish |
1635 |
}
|
|
|
1636 |
throw new IllegalStateException();
|
|
|
1637 |
}
|
|
|
1638 |
|
|
|
1639 |
public Object getFieldValue(int fieldId) {
|
|
|
1640 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
1641 |
}
|
|
|
1642 |
|
|
|
1643 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
1644 |
public boolean isSet(_Fields field) {
|
|
|
1645 |
switch (field) {
|
|
|
1646 |
case USER_ID:
|
| 695 |
rajveer |
1647 |
return isSetUserId();
|
| 123 |
ashish |
1648 |
case AMOUNT:
|
|
|
1649 |
return isSetAmount();
|
| 420 |
ashish |
1650 |
case GATEWAY_ID:
|
| 695 |
rajveer |
1651 |
return isSetGatewayId();
|
|
|
1652 |
case TXN_ID:
|
|
|
1653 |
return isSetTxnId();
|
| 123 |
ashish |
1654 |
}
|
|
|
1655 |
throw new IllegalStateException();
|
|
|
1656 |
}
|
|
|
1657 |
|
|
|
1658 |
public boolean isSet(int fieldID) {
|
|
|
1659 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
1660 |
}
|
|
|
1661 |
|
|
|
1662 |
@Override
|
|
|
1663 |
public boolean equals(Object that) {
|
|
|
1664 |
if (that == null)
|
|
|
1665 |
return false;
|
|
|
1666 |
if (that instanceof createPayment_args)
|
|
|
1667 |
return this.equals((createPayment_args)that);
|
|
|
1668 |
return false;
|
|
|
1669 |
}
|
|
|
1670 |
|
|
|
1671 |
public boolean equals(createPayment_args that) {
|
|
|
1672 |
if (that == null)
|
|
|
1673 |
return false;
|
|
|
1674 |
|
| 695 |
rajveer |
1675 |
boolean this_present_userId = true;
|
|
|
1676 |
boolean that_present_userId = true;
|
|
|
1677 |
if (this_present_userId || that_present_userId) {
|
|
|
1678 |
if (!(this_present_userId && that_present_userId))
|
| 123 |
ashish |
1679 |
return false;
|
| 695 |
rajveer |
1680 |
if (this.userId != that.userId)
|
| 123 |
ashish |
1681 |
return false;
|
|
|
1682 |
}
|
|
|
1683 |
|
|
|
1684 |
boolean this_present_amount = true;
|
|
|
1685 |
boolean that_present_amount = true;
|
|
|
1686 |
if (this_present_amount || that_present_amount) {
|
|
|
1687 |
if (!(this_present_amount && that_present_amount))
|
|
|
1688 |
return false;
|
|
|
1689 |
if (this.amount != that.amount)
|
|
|
1690 |
return false;
|
|
|
1691 |
}
|
|
|
1692 |
|
| 695 |
rajveer |
1693 |
boolean this_present_gatewayId = true;
|
|
|
1694 |
boolean that_present_gatewayId = true;
|
|
|
1695 |
if (this_present_gatewayId || that_present_gatewayId) {
|
|
|
1696 |
if (!(this_present_gatewayId && that_present_gatewayId))
|
| 123 |
ashish |
1697 |
return false;
|
| 695 |
rajveer |
1698 |
if (this.gatewayId != that.gatewayId)
|
| 123 |
ashish |
1699 |
return false;
|
|
|
1700 |
}
|
|
|
1701 |
|
| 695 |
rajveer |
1702 |
boolean this_present_txnId = true;
|
|
|
1703 |
boolean that_present_txnId = true;
|
|
|
1704 |
if (this_present_txnId || that_present_txnId) {
|
|
|
1705 |
if (!(this_present_txnId && that_present_txnId))
|
|
|
1706 |
return false;
|
|
|
1707 |
if (this.txnId != that.txnId)
|
|
|
1708 |
return false;
|
|
|
1709 |
}
|
|
|
1710 |
|
| 123 |
ashish |
1711 |
return true;
|
|
|
1712 |
}
|
|
|
1713 |
|
|
|
1714 |
@Override
|
|
|
1715 |
public int hashCode() {
|
|
|
1716 |
return 0;
|
|
|
1717 |
}
|
|
|
1718 |
|
|
|
1719 |
public int compareTo(createPayment_args other) {
|
|
|
1720 |
if (!getClass().equals(other.getClass())) {
|
|
|
1721 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1722 |
}
|
|
|
1723 |
|
|
|
1724 |
int lastComparison = 0;
|
|
|
1725 |
createPayment_args typedOther = (createPayment_args)other;
|
|
|
1726 |
|
| 695 |
rajveer |
1727 |
lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
|
| 123 |
ashish |
1728 |
if (lastComparison != 0) {
|
|
|
1729 |
return lastComparison;
|
|
|
1730 |
}
|
| 695 |
rajveer |
1731 |
lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
|
| 123 |
ashish |
1732 |
if (lastComparison != 0) {
|
|
|
1733 |
return lastComparison;
|
|
|
1734 |
}
|
| 695 |
rajveer |
1735 |
lastComparison = Boolean.valueOf(isSetAmount()).compareTo(isSetAmount());
|
| 123 |
ashish |
1736 |
if (lastComparison != 0) {
|
|
|
1737 |
return lastComparison;
|
|
|
1738 |
}
|
| 695 |
rajveer |
1739 |
lastComparison = TBaseHelper.compareTo(amount, typedOther.amount);
|
| 123 |
ashish |
1740 |
if (lastComparison != 0) {
|
|
|
1741 |
return lastComparison;
|
|
|
1742 |
}
|
| 695 |
rajveer |
1743 |
lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(isSetGatewayId());
|
| 123 |
ashish |
1744 |
if (lastComparison != 0) {
|
|
|
1745 |
return lastComparison;
|
|
|
1746 |
}
|
| 695 |
rajveer |
1747 |
lastComparison = TBaseHelper.compareTo(gatewayId, typedOther.gatewayId);
|
| 123 |
ashish |
1748 |
if (lastComparison != 0) {
|
|
|
1749 |
return lastComparison;
|
|
|
1750 |
}
|
| 695 |
rajveer |
1751 |
lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(isSetTxnId());
|
| 123 |
ashish |
1752 |
if (lastComparison != 0) {
|
|
|
1753 |
return lastComparison;
|
|
|
1754 |
}
|
| 695 |
rajveer |
1755 |
lastComparison = TBaseHelper.compareTo(txnId, typedOther.txnId);
|
| 123 |
ashish |
1756 |
if (lastComparison != 0) {
|
|
|
1757 |
return lastComparison;
|
|
|
1758 |
}
|
|
|
1759 |
return 0;
|
|
|
1760 |
}
|
|
|
1761 |
|
|
|
1762 |
public void read(TProtocol iprot) throws TException {
|
|
|
1763 |
TField field;
|
|
|
1764 |
iprot.readStructBegin();
|
|
|
1765 |
while (true)
|
|
|
1766 |
{
|
|
|
1767 |
field = iprot.readFieldBegin();
|
|
|
1768 |
if (field.type == TType.STOP) {
|
|
|
1769 |
break;
|
|
|
1770 |
}
|
|
|
1771 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
1772 |
if (fieldId == null) {
|
|
|
1773 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1774 |
} else {
|
|
|
1775 |
switch (fieldId) {
|
|
|
1776 |
case USER_ID:
|
|
|
1777 |
if (field.type == TType.I64) {
|
| 695 |
rajveer |
1778 |
this.userId = iprot.readI64();
|
|
|
1779 |
setUserIdIsSet(true);
|
| 123 |
ashish |
1780 |
} else {
|
|
|
1781 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1782 |
}
|
|
|
1783 |
break;
|
|
|
1784 |
case AMOUNT:
|
|
|
1785 |
if (field.type == TType.DOUBLE) {
|
|
|
1786 |
this.amount = iprot.readDouble();
|
|
|
1787 |
setAmountIsSet(true);
|
|
|
1788 |
} else {
|
|
|
1789 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1790 |
}
|
|
|
1791 |
break;
|
| 420 |
ashish |
1792 |
case GATEWAY_ID:
|
|
|
1793 |
if (field.type == TType.I64) {
|
| 695 |
rajveer |
1794 |
this.gatewayId = iprot.readI64();
|
|
|
1795 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
1796 |
} else {
|
|
|
1797 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1798 |
}
|
|
|
1799 |
break;
|
| 695 |
rajveer |
1800 |
case TXN_ID:
|
|
|
1801 |
if (field.type == TType.I64) {
|
|
|
1802 |
this.txnId = iprot.readI64();
|
|
|
1803 |
setTxnIdIsSet(true);
|
|
|
1804 |
} else {
|
|
|
1805 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1806 |
}
|
|
|
1807 |
break;
|
| 123 |
ashish |
1808 |
}
|
|
|
1809 |
iprot.readFieldEnd();
|
|
|
1810 |
}
|
|
|
1811 |
}
|
|
|
1812 |
iprot.readStructEnd();
|
|
|
1813 |
validate();
|
|
|
1814 |
}
|
|
|
1815 |
|
|
|
1816 |
public void write(TProtocol oprot) throws TException {
|
|
|
1817 |
validate();
|
|
|
1818 |
|
|
|
1819 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1820 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
| 695 |
rajveer |
1821 |
oprot.writeI64(this.userId);
|
| 123 |
ashish |
1822 |
oprot.writeFieldEnd();
|
|
|
1823 |
oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
|
|
|
1824 |
oprot.writeDouble(this.amount);
|
|
|
1825 |
oprot.writeFieldEnd();
|
| 420 |
ashish |
1826 |
oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
|
| 695 |
rajveer |
1827 |
oprot.writeI64(this.gatewayId);
|
| 420 |
ashish |
1828 |
oprot.writeFieldEnd();
|
| 695 |
rajveer |
1829 |
oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
|
|
|
1830 |
oprot.writeI64(this.txnId);
|
|
|
1831 |
oprot.writeFieldEnd();
|
| 123 |
ashish |
1832 |
oprot.writeFieldStop();
|
|
|
1833 |
oprot.writeStructEnd();
|
|
|
1834 |
}
|
|
|
1835 |
|
|
|
1836 |
@Override
|
|
|
1837 |
public String toString() {
|
|
|
1838 |
StringBuilder sb = new StringBuilder("createPayment_args(");
|
|
|
1839 |
boolean first = true;
|
|
|
1840 |
|
| 695 |
rajveer |
1841 |
sb.append("userId:");
|
|
|
1842 |
sb.append(this.userId);
|
| 123 |
ashish |
1843 |
first = false;
|
|
|
1844 |
if (!first) sb.append(", ");
|
|
|
1845 |
sb.append("amount:");
|
|
|
1846 |
sb.append(this.amount);
|
|
|
1847 |
first = false;
|
|
|
1848 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
1849 |
sb.append("gatewayId:");
|
|
|
1850 |
sb.append(this.gatewayId);
|
| 123 |
ashish |
1851 |
first = false;
|
| 695 |
rajveer |
1852 |
if (!first) sb.append(", ");
|
|
|
1853 |
sb.append("txnId:");
|
|
|
1854 |
sb.append(this.txnId);
|
|
|
1855 |
first = false;
|
| 123 |
ashish |
1856 |
sb.append(")");
|
|
|
1857 |
return sb.toString();
|
|
|
1858 |
}
|
|
|
1859 |
|
|
|
1860 |
public void validate() throws TException {
|
|
|
1861 |
// check for required fields
|
|
|
1862 |
}
|
|
|
1863 |
|
|
|
1864 |
}
|
|
|
1865 |
|
| 420 |
ashish |
1866 |
public static class createPayment_result implements TBase<createPayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<createPayment_result> {
|
| 123 |
ashish |
1867 |
private static final TStruct STRUCT_DESC = new TStruct("createPayment_result");
|
|
|
1868 |
|
| 420 |
ashish |
1869 |
private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
|
| 123 |
ashish |
1870 |
private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
|
|
|
1871 |
|
| 420 |
ashish |
1872 |
private long success;
|
| 123 |
ashish |
1873 |
private PaymentException pe;
|
|
|
1874 |
|
|
|
1875 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
1876 |
public enum _Fields implements TFieldIdEnum {
|
|
|
1877 |
SUCCESS((short)0, "success"),
|
|
|
1878 |
PE((short)1, "pe");
|
|
|
1879 |
|
|
|
1880 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
1881 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1882 |
|
|
|
1883 |
static {
|
|
|
1884 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1885 |
byId.put((int)field._thriftId, field);
|
|
|
1886 |
byName.put(field.getFieldName(), field);
|
|
|
1887 |
}
|
|
|
1888 |
}
|
|
|
1889 |
|
|
|
1890 |
/**
|
|
|
1891 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1892 |
*/
|
|
|
1893 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
1894 |
return byId.get(fieldId);
|
|
|
1895 |
}
|
|
|
1896 |
|
|
|
1897 |
/**
|
|
|
1898 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1899 |
* if it is not found.
|
|
|
1900 |
*/
|
|
|
1901 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1902 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1903 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1904 |
return fields;
|
|
|
1905 |
}
|
|
|
1906 |
|
|
|
1907 |
/**
|
|
|
1908 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1909 |
*/
|
|
|
1910 |
public static _Fields findByName(String name) {
|
|
|
1911 |
return byName.get(name);
|
|
|
1912 |
}
|
|
|
1913 |
|
|
|
1914 |
private final short _thriftId;
|
|
|
1915 |
private final String _fieldName;
|
|
|
1916 |
|
|
|
1917 |
_Fields(short thriftId, String fieldName) {
|
|
|
1918 |
_thriftId = thriftId;
|
|
|
1919 |
_fieldName = fieldName;
|
|
|
1920 |
}
|
|
|
1921 |
|
|
|
1922 |
public short getThriftFieldId() {
|
|
|
1923 |
return _thriftId;
|
|
|
1924 |
}
|
|
|
1925 |
|
|
|
1926 |
public String getFieldName() {
|
|
|
1927 |
return _fieldName;
|
|
|
1928 |
}
|
|
|
1929 |
}
|
|
|
1930 |
|
|
|
1931 |
// isset id assignments
|
| 420 |
ashish |
1932 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
1933 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 123 |
ashish |
1934 |
|
|
|
1935 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
1936 |
put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
1937 |
new FieldValueMetaData(TType.I64)));
|
| 123 |
ashish |
1938 |
put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT,
|
|
|
1939 |
new FieldValueMetaData(TType.STRUCT)));
|
|
|
1940 |
}});
|
|
|
1941 |
|
|
|
1942 |
static {
|
|
|
1943 |
FieldMetaData.addStructMetaDataMap(createPayment_result.class, metaDataMap);
|
|
|
1944 |
}
|
|
|
1945 |
|
|
|
1946 |
public createPayment_result() {
|
|
|
1947 |
}
|
|
|
1948 |
|
|
|
1949 |
public createPayment_result(
|
| 420 |
ashish |
1950 |
long success,
|
| 123 |
ashish |
1951 |
PaymentException pe)
|
|
|
1952 |
{
|
|
|
1953 |
this();
|
|
|
1954 |
this.success = success;
|
| 420 |
ashish |
1955 |
setSuccessIsSet(true);
|
| 123 |
ashish |
1956 |
this.pe = pe;
|
|
|
1957 |
}
|
|
|
1958 |
|
|
|
1959 |
/**
|
|
|
1960 |
* Performs a deep copy on <i>other</i>.
|
|
|
1961 |
*/
|
|
|
1962 |
public createPayment_result(createPayment_result other) {
|
| 420 |
ashish |
1963 |
__isset_bit_vector.clear();
|
|
|
1964 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
1965 |
this.success = other.success;
|
| 123 |
ashish |
1966 |
if (other.isSetPe()) {
|
|
|
1967 |
this.pe = new PaymentException(other.pe);
|
|
|
1968 |
}
|
|
|
1969 |
}
|
|
|
1970 |
|
|
|
1971 |
public createPayment_result deepCopy() {
|
|
|
1972 |
return new createPayment_result(this);
|
|
|
1973 |
}
|
|
|
1974 |
|
|
|
1975 |
@Deprecated
|
|
|
1976 |
public createPayment_result clone() {
|
|
|
1977 |
return new createPayment_result(this);
|
|
|
1978 |
}
|
|
|
1979 |
|
| 420 |
ashish |
1980 |
public long getSuccess() {
|
| 123 |
ashish |
1981 |
return this.success;
|
|
|
1982 |
}
|
|
|
1983 |
|
| 420 |
ashish |
1984 |
public createPayment_result setSuccess(long success) {
|
| 123 |
ashish |
1985 |
this.success = success;
|
| 420 |
ashish |
1986 |
setSuccessIsSet(true);
|
| 123 |
ashish |
1987 |
return this;
|
|
|
1988 |
}
|
|
|
1989 |
|
|
|
1990 |
public void unsetSuccess() {
|
| 420 |
ashish |
1991 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
| 123 |
ashish |
1992 |
}
|
|
|
1993 |
|
|
|
1994 |
/** Returns true if field success is set (has been asigned a value) and false otherwise */
|
|
|
1995 |
public boolean isSetSuccess() {
|
| 420 |
ashish |
1996 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
| 123 |
ashish |
1997 |
}
|
|
|
1998 |
|
|
|
1999 |
public void setSuccessIsSet(boolean value) {
|
| 420 |
ashish |
2000 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
| 123 |
ashish |
2001 |
}
|
|
|
2002 |
|
|
|
2003 |
public PaymentException getPe() {
|
|
|
2004 |
return this.pe;
|
|
|
2005 |
}
|
|
|
2006 |
|
|
|
2007 |
public createPayment_result setPe(PaymentException pe) {
|
|
|
2008 |
this.pe = pe;
|
|
|
2009 |
return this;
|
|
|
2010 |
}
|
|
|
2011 |
|
|
|
2012 |
public void unsetPe() {
|
|
|
2013 |
this.pe = null;
|
|
|
2014 |
}
|
|
|
2015 |
|
|
|
2016 |
/** Returns true if field pe is set (has been asigned a value) and false otherwise */
|
|
|
2017 |
public boolean isSetPe() {
|
|
|
2018 |
return this.pe != null;
|
|
|
2019 |
}
|
|
|
2020 |
|
|
|
2021 |
public void setPeIsSet(boolean value) {
|
|
|
2022 |
if (!value) {
|
|
|
2023 |
this.pe = null;
|
|
|
2024 |
}
|
|
|
2025 |
}
|
|
|
2026 |
|
|
|
2027 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2028 |
switch (field) {
|
|
|
2029 |
case SUCCESS:
|
|
|
2030 |
if (value == null) {
|
|
|
2031 |
unsetSuccess();
|
|
|
2032 |
} else {
|
| 420 |
ashish |
2033 |
setSuccess((Long)value);
|
| 123 |
ashish |
2034 |
}
|
|
|
2035 |
break;
|
|
|
2036 |
|
|
|
2037 |
case PE:
|
|
|
2038 |
if (value == null) {
|
|
|
2039 |
unsetPe();
|
|
|
2040 |
} else {
|
|
|
2041 |
setPe((PaymentException)value);
|
|
|
2042 |
}
|
|
|
2043 |
break;
|
|
|
2044 |
|
|
|
2045 |
}
|
|
|
2046 |
}
|
|
|
2047 |
|
|
|
2048 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
2049 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
2050 |
}
|
|
|
2051 |
|
|
|
2052 |
public Object getFieldValue(_Fields field) {
|
|
|
2053 |
switch (field) {
|
|
|
2054 |
case SUCCESS:
|
| 420 |
ashish |
2055 |
return new Long(getSuccess());
|
| 123 |
ashish |
2056 |
|
|
|
2057 |
case PE:
|
|
|
2058 |
return getPe();
|
|
|
2059 |
|
|
|
2060 |
}
|
|
|
2061 |
throw new IllegalStateException();
|
|
|
2062 |
}
|
|
|
2063 |
|
|
|
2064 |
public Object getFieldValue(int fieldId) {
|
|
|
2065 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
2066 |
}
|
|
|
2067 |
|
|
|
2068 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
2069 |
public boolean isSet(_Fields field) {
|
|
|
2070 |
switch (field) {
|
|
|
2071 |
case SUCCESS:
|
|
|
2072 |
return isSetSuccess();
|
|
|
2073 |
case PE:
|
|
|
2074 |
return isSetPe();
|
|
|
2075 |
}
|
|
|
2076 |
throw new IllegalStateException();
|
|
|
2077 |
}
|
|
|
2078 |
|
|
|
2079 |
public boolean isSet(int fieldID) {
|
|
|
2080 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
2081 |
}
|
|
|
2082 |
|
|
|
2083 |
@Override
|
|
|
2084 |
public boolean equals(Object that) {
|
|
|
2085 |
if (that == null)
|
|
|
2086 |
return false;
|
|
|
2087 |
if (that instanceof createPayment_result)
|
|
|
2088 |
return this.equals((createPayment_result)that);
|
|
|
2089 |
return false;
|
|
|
2090 |
}
|
|
|
2091 |
|
|
|
2092 |
public boolean equals(createPayment_result that) {
|
|
|
2093 |
if (that == null)
|
|
|
2094 |
return false;
|
|
|
2095 |
|
| 420 |
ashish |
2096 |
boolean this_present_success = true;
|
|
|
2097 |
boolean that_present_success = true;
|
| 123 |
ashish |
2098 |
if (this_present_success || that_present_success) {
|
|
|
2099 |
if (!(this_present_success && that_present_success))
|
|
|
2100 |
return false;
|
| 420 |
ashish |
2101 |
if (this.success != that.success)
|
| 123 |
ashish |
2102 |
return false;
|
|
|
2103 |
}
|
|
|
2104 |
|
|
|
2105 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
2106 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
2107 |
if (this_present_pe || that_present_pe) {
|
|
|
2108 |
if (!(this_present_pe && that_present_pe))
|
|
|
2109 |
return false;
|
|
|
2110 |
if (!this.pe.equals(that.pe))
|
|
|
2111 |
return false;
|
|
|
2112 |
}
|
|
|
2113 |
|
|
|
2114 |
return true;
|
|
|
2115 |
}
|
|
|
2116 |
|
|
|
2117 |
@Override
|
|
|
2118 |
public int hashCode() {
|
|
|
2119 |
return 0;
|
|
|
2120 |
}
|
|
|
2121 |
|
| 420 |
ashish |
2122 |
public int compareTo(createPayment_result other) {
|
|
|
2123 |
if (!getClass().equals(other.getClass())) {
|
|
|
2124 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2125 |
}
|
|
|
2126 |
|
|
|
2127 |
int lastComparison = 0;
|
|
|
2128 |
createPayment_result typedOther = (createPayment_result)other;
|
|
|
2129 |
|
|
|
2130 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
|
|
|
2131 |
if (lastComparison != 0) {
|
|
|
2132 |
return lastComparison;
|
|
|
2133 |
}
|
|
|
2134 |
lastComparison = TBaseHelper.compareTo(success, typedOther.success);
|
|
|
2135 |
if (lastComparison != 0) {
|
|
|
2136 |
return lastComparison;
|
|
|
2137 |
}
|
|
|
2138 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
|
|
|
2139 |
if (lastComparison != 0) {
|
|
|
2140 |
return lastComparison;
|
|
|
2141 |
}
|
|
|
2142 |
lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
|
|
|
2143 |
if (lastComparison != 0) {
|
|
|
2144 |
return lastComparison;
|
|
|
2145 |
}
|
|
|
2146 |
return 0;
|
|
|
2147 |
}
|
|
|
2148 |
|
| 123 |
ashish |
2149 |
public void read(TProtocol iprot) throws TException {
|
|
|
2150 |
TField field;
|
|
|
2151 |
iprot.readStructBegin();
|
|
|
2152 |
while (true)
|
|
|
2153 |
{
|
|
|
2154 |
field = iprot.readFieldBegin();
|
|
|
2155 |
if (field.type == TType.STOP) {
|
|
|
2156 |
break;
|
|
|
2157 |
}
|
|
|
2158 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
2159 |
if (fieldId == null) {
|
|
|
2160 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
2161 |
} else {
|
|
|
2162 |
switch (fieldId) {
|
|
|
2163 |
case SUCCESS:
|
| 420 |
ashish |
2164 |
if (field.type == TType.I64) {
|
|
|
2165 |
this.success = iprot.readI64();
|
|
|
2166 |
setSuccessIsSet(true);
|
| 123 |
ashish |
2167 |
} else {
|
|
|
2168 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
2169 |
}
|
|
|
2170 |
break;
|
|
|
2171 |
case PE:
|
|
|
2172 |
if (field.type == TType.STRUCT) {
|
|
|
2173 |
this.pe = new PaymentException();
|
|
|
2174 |
this.pe.read(iprot);
|
|
|
2175 |
} else {
|
|
|
2176 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
2177 |
}
|
|
|
2178 |
break;
|
|
|
2179 |
}
|
|
|
2180 |
iprot.readFieldEnd();
|
|
|
2181 |
}
|
|
|
2182 |
}
|
|
|
2183 |
iprot.readStructEnd();
|
|
|
2184 |
validate();
|
|
|
2185 |
}
|
|
|
2186 |
|
|
|
2187 |
public void write(TProtocol oprot) throws TException {
|
|
|
2188 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2189 |
|
|
|
2190 |
if (this.isSetSuccess()) {
|
|
|
2191 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 420 |
ashish |
2192 |
oprot.writeI64(this.success);
|
| 123 |
ashish |
2193 |
oprot.writeFieldEnd();
|
|
|
2194 |
} else if (this.isSetPe()) {
|
|
|
2195 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
2196 |
this.pe.write(oprot);
|
|
|
2197 |
oprot.writeFieldEnd();
|
|
|
2198 |
}
|
|
|
2199 |
oprot.writeFieldStop();
|
|
|
2200 |
oprot.writeStructEnd();
|
|
|
2201 |
}
|
|
|
2202 |
|
|
|
2203 |
@Override
|
|
|
2204 |
public String toString() {
|
|
|
2205 |
StringBuilder sb = new StringBuilder("createPayment_result(");
|
|
|
2206 |
boolean first = true;
|
|
|
2207 |
|
|
|
2208 |
sb.append("success:");
|
| 420 |
ashish |
2209 |
sb.append(this.success);
|
| 123 |
ashish |
2210 |
first = false;
|
|
|
2211 |
if (!first) sb.append(", ");
|
|
|
2212 |
sb.append("pe:");
|
|
|
2213 |
if (this.pe == null) {
|
|
|
2214 |
sb.append("null");
|
|
|
2215 |
} else {
|
|
|
2216 |
sb.append(this.pe);
|
|
|
2217 |
}
|
|
|
2218 |
first = false;
|
|
|
2219 |
sb.append(")");
|
|
|
2220 |
return sb.toString();
|
|
|
2221 |
}
|
|
|
2222 |
|
|
|
2223 |
public void validate() throws TException {
|
|
|
2224 |
// check for required fields
|
|
|
2225 |
}
|
|
|
2226 |
|
|
|
2227 |
}
|
|
|
2228 |
|
|
|
2229 |
public static class getPaymentsForUser_args implements TBase<getPaymentsForUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPaymentsForUser_args> {
|
|
|
2230 |
private static final TStruct STRUCT_DESC = new TStruct("getPaymentsForUser_args");
|
|
|
2231 |
|
|
|
2232 |
private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
|
| 695 |
rajveer |
2233 |
private static final TField FROM_TIME_FIELD_DESC = new TField("fromTime", TType.I64, (short)2);
|
|
|
2234 |
private static final TField TO_TIME_FIELD_DESC = new TField("toTime", TType.I64, (short)3);
|
| 123 |
ashish |
2235 |
private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)4);
|
| 695 |
rajveer |
2236 |
private static final TField GATEWAY_ID_FIELD_DESC = new TField("gatewayId", TType.I64, (short)5);
|
| 123 |
ashish |
2237 |
|
|
|
2238 |
private long userId;
|
| 695 |
rajveer |
2239 |
private long fromTime;
|
|
|
2240 |
private long toTime;
|
| 123 |
ashish |
2241 |
private PaymentStatus status;
|
| 695 |
rajveer |
2242 |
private long gatewayId;
|
| 123 |
ashish |
2243 |
|
|
|
2244 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
2245 |
public enum _Fields implements TFieldIdEnum {
|
|
|
2246 |
USER_ID((short)1, "userId"),
|
| 695 |
rajveer |
2247 |
FROM_TIME((short)2, "fromTime"),
|
|
|
2248 |
TO_TIME((short)3, "toTime"),
|
| 123 |
ashish |
2249 |
/**
|
|
|
2250 |
*
|
|
|
2251 |
* @see PaymentStatus
|
|
|
2252 |
*/
|
|
|
2253 |
STATUS((short)4, "status"),
|
| 695 |
rajveer |
2254 |
GATEWAY_ID((short)5, "gatewayId");
|
| 123 |
ashish |
2255 |
|
|
|
2256 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
2257 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2258 |
|
|
|
2259 |
static {
|
|
|
2260 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2261 |
byId.put((int)field._thriftId, field);
|
|
|
2262 |
byName.put(field.getFieldName(), field);
|
|
|
2263 |
}
|
|
|
2264 |
}
|
|
|
2265 |
|
|
|
2266 |
/**
|
|
|
2267 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2268 |
*/
|
|
|
2269 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
2270 |
return byId.get(fieldId);
|
|
|
2271 |
}
|
|
|
2272 |
|
|
|
2273 |
/**
|
|
|
2274 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2275 |
* if it is not found.
|
|
|
2276 |
*/
|
|
|
2277 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2278 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2279 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2280 |
return fields;
|
|
|
2281 |
}
|
|
|
2282 |
|
|
|
2283 |
/**
|
|
|
2284 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2285 |
*/
|
|
|
2286 |
public static _Fields findByName(String name) {
|
|
|
2287 |
return byName.get(name);
|
|
|
2288 |
}
|
|
|
2289 |
|
|
|
2290 |
private final short _thriftId;
|
|
|
2291 |
private final String _fieldName;
|
|
|
2292 |
|
|
|
2293 |
_Fields(short thriftId, String fieldName) {
|
|
|
2294 |
_thriftId = thriftId;
|
|
|
2295 |
_fieldName = fieldName;
|
|
|
2296 |
}
|
|
|
2297 |
|
|
|
2298 |
public short getThriftFieldId() {
|
|
|
2299 |
return _thriftId;
|
|
|
2300 |
}
|
|
|
2301 |
|
|
|
2302 |
public String getFieldName() {
|
|
|
2303 |
return _fieldName;
|
|
|
2304 |
}
|
|
|
2305 |
}
|
|
|
2306 |
|
|
|
2307 |
// isset id assignments
|
|
|
2308 |
private static final int __USERID_ISSET_ID = 0;
|
| 695 |
rajveer |
2309 |
private static final int __FROMTIME_ISSET_ID = 1;
|
|
|
2310 |
private static final int __TOTIME_ISSET_ID = 2;
|
|
|
2311 |
private static final int __GATEWAYID_ISSET_ID = 3;
|
| 420 |
ashish |
2312 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 123 |
ashish |
2313 |
|
|
|
2314 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
2315 |
put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT,
|
|
|
2316 |
new FieldValueMetaData(TType.I64)));
|
| 695 |
rajveer |
2317 |
put(_Fields.FROM_TIME, new FieldMetaData("fromTime", TFieldRequirementType.DEFAULT,
|
| 123 |
ashish |
2318 |
new FieldValueMetaData(TType.I64)));
|
| 695 |
rajveer |
2319 |
put(_Fields.TO_TIME, new FieldMetaData("toTime", TFieldRequirementType.DEFAULT,
|
| 123 |
ashish |
2320 |
new FieldValueMetaData(TType.I64)));
|
|
|
2321 |
put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT,
|
|
|
2322 |
new EnumMetaData(TType.ENUM, PaymentStatus.class)));
|
| 695 |
rajveer |
2323 |
put(_Fields.GATEWAY_ID, new FieldMetaData("gatewayId", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
2324 |
new FieldValueMetaData(TType.I64)));
|
| 123 |
ashish |
2325 |
}});
|
|
|
2326 |
|
|
|
2327 |
static {
|
|
|
2328 |
FieldMetaData.addStructMetaDataMap(getPaymentsForUser_args.class, metaDataMap);
|
|
|
2329 |
}
|
|
|
2330 |
|
|
|
2331 |
public getPaymentsForUser_args() {
|
|
|
2332 |
}
|
|
|
2333 |
|
|
|
2334 |
public getPaymentsForUser_args(
|
|
|
2335 |
long userId,
|
| 695 |
rajveer |
2336 |
long fromTime,
|
|
|
2337 |
long toTime,
|
| 123 |
ashish |
2338 |
PaymentStatus status,
|
| 695 |
rajveer |
2339 |
long gatewayId)
|
| 123 |
ashish |
2340 |
{
|
|
|
2341 |
this();
|
|
|
2342 |
this.userId = userId;
|
|
|
2343 |
setUserIdIsSet(true);
|
| 695 |
rajveer |
2344 |
this.fromTime = fromTime;
|
|
|
2345 |
setFromTimeIsSet(true);
|
|
|
2346 |
this.toTime = toTime;
|
|
|
2347 |
setToTimeIsSet(true);
|
| 123 |
ashish |
2348 |
this.status = status;
|
| 695 |
rajveer |
2349 |
this.gatewayId = gatewayId;
|
|
|
2350 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
2351 |
}
|
|
|
2352 |
|
|
|
2353 |
/**
|
|
|
2354 |
* Performs a deep copy on <i>other</i>.
|
|
|
2355 |
*/
|
|
|
2356 |
public getPaymentsForUser_args(getPaymentsForUser_args other) {
|
|
|
2357 |
__isset_bit_vector.clear();
|
|
|
2358 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
2359 |
this.userId = other.userId;
|
| 695 |
rajveer |
2360 |
this.fromTime = other.fromTime;
|
|
|
2361 |
this.toTime = other.toTime;
|
| 123 |
ashish |
2362 |
if (other.isSetStatus()) {
|
|
|
2363 |
this.status = other.status;
|
|
|
2364 |
}
|
| 695 |
rajveer |
2365 |
this.gatewayId = other.gatewayId;
|
| 123 |
ashish |
2366 |
}
|
|
|
2367 |
|
|
|
2368 |
public getPaymentsForUser_args deepCopy() {
|
|
|
2369 |
return new getPaymentsForUser_args(this);
|
|
|
2370 |
}
|
|
|
2371 |
|
|
|
2372 |
@Deprecated
|
|
|
2373 |
public getPaymentsForUser_args clone() {
|
|
|
2374 |
return new getPaymentsForUser_args(this);
|
|
|
2375 |
}
|
|
|
2376 |
|
|
|
2377 |
public long getUserId() {
|
|
|
2378 |
return this.userId;
|
|
|
2379 |
}
|
|
|
2380 |
|
|
|
2381 |
public getPaymentsForUser_args setUserId(long userId) {
|
|
|
2382 |
this.userId = userId;
|
|
|
2383 |
setUserIdIsSet(true);
|
|
|
2384 |
return this;
|
|
|
2385 |
}
|
|
|
2386 |
|
|
|
2387 |
public void unsetUserId() {
|
|
|
2388 |
__isset_bit_vector.clear(__USERID_ISSET_ID);
|
|
|
2389 |
}
|
|
|
2390 |
|
|
|
2391 |
/** Returns true if field userId is set (has been asigned a value) and false otherwise */
|
|
|
2392 |
public boolean isSetUserId() {
|
|
|
2393 |
return __isset_bit_vector.get(__USERID_ISSET_ID);
|
|
|
2394 |
}
|
|
|
2395 |
|
|
|
2396 |
public void setUserIdIsSet(boolean value) {
|
|
|
2397 |
__isset_bit_vector.set(__USERID_ISSET_ID, value);
|
|
|
2398 |
}
|
|
|
2399 |
|
| 695 |
rajveer |
2400 |
public long getFromTime() {
|
|
|
2401 |
return this.fromTime;
|
| 123 |
ashish |
2402 |
}
|
|
|
2403 |
|
| 695 |
rajveer |
2404 |
public getPaymentsForUser_args setFromTime(long fromTime) {
|
|
|
2405 |
this.fromTime = fromTime;
|
|
|
2406 |
setFromTimeIsSet(true);
|
| 123 |
ashish |
2407 |
return this;
|
|
|
2408 |
}
|
|
|
2409 |
|
| 695 |
rajveer |
2410 |
public void unsetFromTime() {
|
|
|
2411 |
__isset_bit_vector.clear(__FROMTIME_ISSET_ID);
|
| 123 |
ashish |
2412 |
}
|
|
|
2413 |
|
| 695 |
rajveer |
2414 |
/** Returns true if field fromTime is set (has been asigned a value) and false otherwise */
|
|
|
2415 |
public boolean isSetFromTime() {
|
|
|
2416 |
return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
|
| 123 |
ashish |
2417 |
}
|
|
|
2418 |
|
| 695 |
rajveer |
2419 |
public void setFromTimeIsSet(boolean value) {
|
|
|
2420 |
__isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
|
| 123 |
ashish |
2421 |
}
|
|
|
2422 |
|
| 695 |
rajveer |
2423 |
public long getToTime() {
|
|
|
2424 |
return this.toTime;
|
| 123 |
ashish |
2425 |
}
|
|
|
2426 |
|
| 695 |
rajveer |
2427 |
public getPaymentsForUser_args setToTime(long toTime) {
|
|
|
2428 |
this.toTime = toTime;
|
|
|
2429 |
setToTimeIsSet(true);
|
| 123 |
ashish |
2430 |
return this;
|
|
|
2431 |
}
|
|
|
2432 |
|
| 695 |
rajveer |
2433 |
public void unsetToTime() {
|
|
|
2434 |
__isset_bit_vector.clear(__TOTIME_ISSET_ID);
|
| 123 |
ashish |
2435 |
}
|
|
|
2436 |
|
| 695 |
rajveer |
2437 |
/** Returns true if field toTime is set (has been asigned a value) and false otherwise */
|
|
|
2438 |
public boolean isSetToTime() {
|
|
|
2439 |
return __isset_bit_vector.get(__TOTIME_ISSET_ID);
|
| 123 |
ashish |
2440 |
}
|
|
|
2441 |
|
| 695 |
rajveer |
2442 |
public void setToTimeIsSet(boolean value) {
|
|
|
2443 |
__isset_bit_vector.set(__TOTIME_ISSET_ID, value);
|
| 123 |
ashish |
2444 |
}
|
|
|
2445 |
|
|
|
2446 |
/**
|
|
|
2447 |
*
|
|
|
2448 |
* @see PaymentStatus
|
|
|
2449 |
*/
|
|
|
2450 |
public PaymentStatus getStatus() {
|
|
|
2451 |
return this.status;
|
|
|
2452 |
}
|
|
|
2453 |
|
|
|
2454 |
/**
|
|
|
2455 |
*
|
|
|
2456 |
* @see PaymentStatus
|
|
|
2457 |
*/
|
|
|
2458 |
public getPaymentsForUser_args setStatus(PaymentStatus status) {
|
|
|
2459 |
this.status = status;
|
|
|
2460 |
return this;
|
|
|
2461 |
}
|
|
|
2462 |
|
|
|
2463 |
public void unsetStatus() {
|
|
|
2464 |
this.status = null;
|
|
|
2465 |
}
|
|
|
2466 |
|
|
|
2467 |
/** Returns true if field status is set (has been asigned a value) and false otherwise */
|
|
|
2468 |
public boolean isSetStatus() {
|
|
|
2469 |
return this.status != null;
|
|
|
2470 |
}
|
|
|
2471 |
|
|
|
2472 |
public void setStatusIsSet(boolean value) {
|
|
|
2473 |
if (!value) {
|
|
|
2474 |
this.status = null;
|
|
|
2475 |
}
|
|
|
2476 |
}
|
|
|
2477 |
|
| 695 |
rajveer |
2478 |
public long getGatewayId() {
|
|
|
2479 |
return this.gatewayId;
|
| 123 |
ashish |
2480 |
}
|
|
|
2481 |
|
| 695 |
rajveer |
2482 |
public getPaymentsForUser_args setGatewayId(long gatewayId) {
|
|
|
2483 |
this.gatewayId = gatewayId;
|
|
|
2484 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
2485 |
return this;
|
|
|
2486 |
}
|
|
|
2487 |
|
| 695 |
rajveer |
2488 |
public void unsetGatewayId() {
|
|
|
2489 |
__isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
2490 |
}
|
|
|
2491 |
|
| 695 |
rajveer |
2492 |
/** Returns true if field gatewayId is set (has been asigned a value) and false otherwise */
|
|
|
2493 |
public boolean isSetGatewayId() {
|
|
|
2494 |
return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
2495 |
}
|
|
|
2496 |
|
| 695 |
rajveer |
2497 |
public void setGatewayIdIsSet(boolean value) {
|
|
|
2498 |
__isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
|
| 123 |
ashish |
2499 |
}
|
|
|
2500 |
|
|
|
2501 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2502 |
switch (field) {
|
|
|
2503 |
case USER_ID:
|
|
|
2504 |
if (value == null) {
|
|
|
2505 |
unsetUserId();
|
|
|
2506 |
} else {
|
|
|
2507 |
setUserId((Long)value);
|
|
|
2508 |
}
|
|
|
2509 |
break;
|
|
|
2510 |
|
|
|
2511 |
case FROM_TIME:
|
|
|
2512 |
if (value == null) {
|
| 695 |
rajveer |
2513 |
unsetFromTime();
|
| 123 |
ashish |
2514 |
} else {
|
| 695 |
rajveer |
2515 |
setFromTime((Long)value);
|
| 123 |
ashish |
2516 |
}
|
|
|
2517 |
break;
|
|
|
2518 |
|
|
|
2519 |
case TO_TIME:
|
|
|
2520 |
if (value == null) {
|
| 695 |
rajveer |
2521 |
unsetToTime();
|
| 123 |
ashish |
2522 |
} else {
|
| 695 |
rajveer |
2523 |
setToTime((Long)value);
|
| 123 |
ashish |
2524 |
}
|
|
|
2525 |
break;
|
|
|
2526 |
|
|
|
2527 |
case STATUS:
|
|
|
2528 |
if (value == null) {
|
|
|
2529 |
unsetStatus();
|
|
|
2530 |
} else {
|
|
|
2531 |
setStatus((PaymentStatus)value);
|
|
|
2532 |
}
|
|
|
2533 |
break;
|
|
|
2534 |
|
| 420 |
ashish |
2535 |
case GATEWAY_ID:
|
| 123 |
ashish |
2536 |
if (value == null) {
|
| 695 |
rajveer |
2537 |
unsetGatewayId();
|
| 123 |
ashish |
2538 |
} else {
|
| 695 |
rajveer |
2539 |
setGatewayId((Long)value);
|
| 123 |
ashish |
2540 |
}
|
|
|
2541 |
break;
|
|
|
2542 |
|
|
|
2543 |
}
|
|
|
2544 |
}
|
|
|
2545 |
|
|
|
2546 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
2547 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
2548 |
}
|
|
|
2549 |
|
|
|
2550 |
public Object getFieldValue(_Fields field) {
|
|
|
2551 |
switch (field) {
|
|
|
2552 |
case USER_ID:
|
|
|
2553 |
return new Long(getUserId());
|
|
|
2554 |
|
|
|
2555 |
case FROM_TIME:
|
| 695 |
rajveer |
2556 |
return new Long(getFromTime());
|
| 123 |
ashish |
2557 |
|
|
|
2558 |
case TO_TIME:
|
| 695 |
rajveer |
2559 |
return new Long(getToTime());
|
| 123 |
ashish |
2560 |
|
|
|
2561 |
case STATUS:
|
|
|
2562 |
return getStatus();
|
|
|
2563 |
|
| 420 |
ashish |
2564 |
case GATEWAY_ID:
|
| 695 |
rajveer |
2565 |
return new Long(getGatewayId());
|
| 123 |
ashish |
2566 |
|
|
|
2567 |
}
|
|
|
2568 |
throw new IllegalStateException();
|
|
|
2569 |
}
|
|
|
2570 |
|
|
|
2571 |
public Object getFieldValue(int fieldId) {
|
|
|
2572 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
2573 |
}
|
|
|
2574 |
|
|
|
2575 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
2576 |
public boolean isSet(_Fields field) {
|
|
|
2577 |
switch (field) {
|
|
|
2578 |
case USER_ID:
|
|
|
2579 |
return isSetUserId();
|
|
|
2580 |
case FROM_TIME:
|
| 695 |
rajveer |
2581 |
return isSetFromTime();
|
| 123 |
ashish |
2582 |
case TO_TIME:
|
| 695 |
rajveer |
2583 |
return isSetToTime();
|
| 123 |
ashish |
2584 |
case STATUS:
|
|
|
2585 |
return isSetStatus();
|
| 420 |
ashish |
2586 |
case GATEWAY_ID:
|
| 695 |
rajveer |
2587 |
return isSetGatewayId();
|
| 123 |
ashish |
2588 |
}
|
|
|
2589 |
throw new IllegalStateException();
|
|
|
2590 |
}
|
|
|
2591 |
|
|
|
2592 |
public boolean isSet(int fieldID) {
|
|
|
2593 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
2594 |
}
|
|
|
2595 |
|
|
|
2596 |
@Override
|
|
|
2597 |
public boolean equals(Object that) {
|
|
|
2598 |
if (that == null)
|
|
|
2599 |
return false;
|
|
|
2600 |
if (that instanceof getPaymentsForUser_args)
|
|
|
2601 |
return this.equals((getPaymentsForUser_args)that);
|
|
|
2602 |
return false;
|
|
|
2603 |
}
|
|
|
2604 |
|
|
|
2605 |
public boolean equals(getPaymentsForUser_args that) {
|
|
|
2606 |
if (that == null)
|
|
|
2607 |
return false;
|
|
|
2608 |
|
|
|
2609 |
boolean this_present_userId = true;
|
|
|
2610 |
boolean that_present_userId = true;
|
|
|
2611 |
if (this_present_userId || that_present_userId) {
|
|
|
2612 |
if (!(this_present_userId && that_present_userId))
|
|
|
2613 |
return false;
|
|
|
2614 |
if (this.userId != that.userId)
|
|
|
2615 |
return false;
|
|
|
2616 |
}
|
|
|
2617 |
|
| 695 |
rajveer |
2618 |
boolean this_present_fromTime = true;
|
|
|
2619 |
boolean that_present_fromTime = true;
|
|
|
2620 |
if (this_present_fromTime || that_present_fromTime) {
|
|
|
2621 |
if (!(this_present_fromTime && that_present_fromTime))
|
| 123 |
ashish |
2622 |
return false;
|
| 695 |
rajveer |
2623 |
if (this.fromTime != that.fromTime)
|
| 123 |
ashish |
2624 |
return false;
|
|
|
2625 |
}
|
|
|
2626 |
|
| 695 |
rajveer |
2627 |
boolean this_present_toTime = true;
|
|
|
2628 |
boolean that_present_toTime = true;
|
|
|
2629 |
if (this_present_toTime || that_present_toTime) {
|
|
|
2630 |
if (!(this_present_toTime && that_present_toTime))
|
| 123 |
ashish |
2631 |
return false;
|
| 695 |
rajveer |
2632 |
if (this.toTime != that.toTime)
|
| 123 |
ashish |
2633 |
return false;
|
|
|
2634 |
}
|
|
|
2635 |
|
|
|
2636 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
2637 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
2638 |
if (this_present_status || that_present_status) {
|
|
|
2639 |
if (!(this_present_status && that_present_status))
|
|
|
2640 |
return false;
|
|
|
2641 |
if (!this.status.equals(that.status))
|
|
|
2642 |
return false;
|
|
|
2643 |
}
|
|
|
2644 |
|
| 695 |
rajveer |
2645 |
boolean this_present_gatewayId = true;
|
|
|
2646 |
boolean that_present_gatewayId = true;
|
|
|
2647 |
if (this_present_gatewayId || that_present_gatewayId) {
|
|
|
2648 |
if (!(this_present_gatewayId && that_present_gatewayId))
|
| 123 |
ashish |
2649 |
return false;
|
| 695 |
rajveer |
2650 |
if (this.gatewayId != that.gatewayId)
|
| 123 |
ashish |
2651 |
return false;
|
|
|
2652 |
}
|
|
|
2653 |
|
|
|
2654 |
return true;
|
|
|
2655 |
}
|
|
|
2656 |
|
|
|
2657 |
@Override
|
|
|
2658 |
public int hashCode() {
|
|
|
2659 |
return 0;
|
|
|
2660 |
}
|
|
|
2661 |
|
|
|
2662 |
public int compareTo(getPaymentsForUser_args other) {
|
|
|
2663 |
if (!getClass().equals(other.getClass())) {
|
|
|
2664 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2665 |
}
|
|
|
2666 |
|
|
|
2667 |
int lastComparison = 0;
|
|
|
2668 |
getPaymentsForUser_args typedOther = (getPaymentsForUser_args)other;
|
|
|
2669 |
|
|
|
2670 |
lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
|
|
|
2671 |
if (lastComparison != 0) {
|
|
|
2672 |
return lastComparison;
|
|
|
2673 |
}
|
|
|
2674 |
lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
|
|
|
2675 |
if (lastComparison != 0) {
|
|
|
2676 |
return lastComparison;
|
|
|
2677 |
}
|
| 695 |
rajveer |
2678 |
lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(isSetFromTime());
|
| 123 |
ashish |
2679 |
if (lastComparison != 0) {
|
|
|
2680 |
return lastComparison;
|
|
|
2681 |
}
|
| 695 |
rajveer |
2682 |
lastComparison = TBaseHelper.compareTo(fromTime, typedOther.fromTime);
|
| 123 |
ashish |
2683 |
if (lastComparison != 0) {
|
|
|
2684 |
return lastComparison;
|
|
|
2685 |
}
|
| 695 |
rajveer |
2686 |
lastComparison = Boolean.valueOf(isSetToTime()).compareTo(isSetToTime());
|
| 123 |
ashish |
2687 |
if (lastComparison != 0) {
|
|
|
2688 |
return lastComparison;
|
|
|
2689 |
}
|
| 695 |
rajveer |
2690 |
lastComparison = TBaseHelper.compareTo(toTime, typedOther.toTime);
|
| 123 |
ashish |
2691 |
if (lastComparison != 0) {
|
|
|
2692 |
return lastComparison;
|
|
|
2693 |
}
|
|
|
2694 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
|
|
|
2695 |
if (lastComparison != 0) {
|
|
|
2696 |
return lastComparison;
|
|
|
2697 |
}
|
|
|
2698 |
lastComparison = TBaseHelper.compareTo(status, typedOther.status);
|
|
|
2699 |
if (lastComparison != 0) {
|
|
|
2700 |
return lastComparison;
|
|
|
2701 |
}
|
| 695 |
rajveer |
2702 |
lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(isSetGatewayId());
|
| 123 |
ashish |
2703 |
if (lastComparison != 0) {
|
|
|
2704 |
return lastComparison;
|
|
|
2705 |
}
|
| 695 |
rajveer |
2706 |
lastComparison = TBaseHelper.compareTo(gatewayId, typedOther.gatewayId);
|
| 123 |
ashish |
2707 |
if (lastComparison != 0) {
|
|
|
2708 |
return lastComparison;
|
|
|
2709 |
}
|
|
|
2710 |
return 0;
|
|
|
2711 |
}
|
|
|
2712 |
|
|
|
2713 |
public void read(TProtocol iprot) throws TException {
|
|
|
2714 |
TField field;
|
|
|
2715 |
iprot.readStructBegin();
|
|
|
2716 |
while (true)
|
|
|
2717 |
{
|
|
|
2718 |
field = iprot.readFieldBegin();
|
|
|
2719 |
if (field.type == TType.STOP) {
|
|
|
2720 |
break;
|
|
|
2721 |
}
|
|
|
2722 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
2723 |
if (fieldId == null) {
|
|
|
2724 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
2725 |
} else {
|
|
|
2726 |
switch (fieldId) {
|
|
|
2727 |
case USER_ID:
|
|
|
2728 |
if (field.type == TType.I64) {
|
|
|
2729 |
this.userId = iprot.readI64();
|
|
|
2730 |
setUserIdIsSet(true);
|
|
|
2731 |
} else {
|
|
|
2732 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
2733 |
}
|
|
|
2734 |
break;
|
|
|
2735 |
case FROM_TIME:
|
|
|
2736 |
if (field.type == TType.I64) {
|
| 695 |
rajveer |
2737 |
this.fromTime = iprot.readI64();
|
|
|
2738 |
setFromTimeIsSet(true);
|
| 123 |
ashish |
2739 |
} else {
|
|
|
2740 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
2741 |
}
|
|
|
2742 |
break;
|
|
|
2743 |
case TO_TIME:
|
|
|
2744 |
if (field.type == TType.I64) {
|
| 695 |
rajveer |
2745 |
this.toTime = iprot.readI64();
|
|
|
2746 |
setToTimeIsSet(true);
|
| 123 |
ashish |
2747 |
} else {
|
|
|
2748 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
2749 |
}
|
|
|
2750 |
break;
|
|
|
2751 |
case STATUS:
|
|
|
2752 |
if (field.type == TType.I32) {
|
|
|
2753 |
this.status = PaymentStatus.findByValue(iprot.readI32());
|
|
|
2754 |
} else {
|
|
|
2755 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
2756 |
}
|
|
|
2757 |
break;
|
| 420 |
ashish |
2758 |
case GATEWAY_ID:
|
|
|
2759 |
if (field.type == TType.I64) {
|
| 695 |
rajveer |
2760 |
this.gatewayId = iprot.readI64();
|
|
|
2761 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
2762 |
} else {
|
|
|
2763 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
2764 |
}
|
|
|
2765 |
break;
|
|
|
2766 |
}
|
|
|
2767 |
iprot.readFieldEnd();
|
|
|
2768 |
}
|
|
|
2769 |
}
|
|
|
2770 |
iprot.readStructEnd();
|
|
|
2771 |
validate();
|
|
|
2772 |
}
|
|
|
2773 |
|
|
|
2774 |
public void write(TProtocol oprot) throws TException {
|
|
|
2775 |
validate();
|
|
|
2776 |
|
|
|
2777 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2778 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
|
|
2779 |
oprot.writeI64(this.userId);
|
|
|
2780 |
oprot.writeFieldEnd();
|
|
|
2781 |
oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
|
| 695 |
rajveer |
2782 |
oprot.writeI64(this.fromTime);
|
| 123 |
ashish |
2783 |
oprot.writeFieldEnd();
|
|
|
2784 |
oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
|
| 695 |
rajveer |
2785 |
oprot.writeI64(this.toTime);
|
| 123 |
ashish |
2786 |
oprot.writeFieldEnd();
|
|
|
2787 |
if (this.status != null) {
|
|
|
2788 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
2789 |
oprot.writeI32(this.status.getValue());
|
|
|
2790 |
oprot.writeFieldEnd();
|
|
|
2791 |
}
|
| 420 |
ashish |
2792 |
oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
|
| 695 |
rajveer |
2793 |
oprot.writeI64(this.gatewayId);
|
| 420 |
ashish |
2794 |
oprot.writeFieldEnd();
|
| 123 |
ashish |
2795 |
oprot.writeFieldStop();
|
|
|
2796 |
oprot.writeStructEnd();
|
|
|
2797 |
}
|
|
|
2798 |
|
|
|
2799 |
@Override
|
|
|
2800 |
public String toString() {
|
|
|
2801 |
StringBuilder sb = new StringBuilder("getPaymentsForUser_args(");
|
|
|
2802 |
boolean first = true;
|
|
|
2803 |
|
|
|
2804 |
sb.append("userId:");
|
|
|
2805 |
sb.append(this.userId);
|
|
|
2806 |
first = false;
|
|
|
2807 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
2808 |
sb.append("fromTime:");
|
|
|
2809 |
sb.append(this.fromTime);
|
| 123 |
ashish |
2810 |
first = false;
|
|
|
2811 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
2812 |
sb.append("toTime:");
|
|
|
2813 |
sb.append(this.toTime);
|
| 123 |
ashish |
2814 |
first = false;
|
|
|
2815 |
if (!first) sb.append(", ");
|
|
|
2816 |
sb.append("status:");
|
|
|
2817 |
if (this.status == null) {
|
|
|
2818 |
sb.append("null");
|
|
|
2819 |
} else {
|
|
|
2820 |
String status_name = status.name();
|
|
|
2821 |
if (status_name != null) {
|
|
|
2822 |
sb.append(status_name);
|
|
|
2823 |
sb.append(" (");
|
|
|
2824 |
}
|
|
|
2825 |
sb.append(this.status);
|
|
|
2826 |
if (status_name != null) {
|
|
|
2827 |
sb.append(")");
|
|
|
2828 |
}
|
|
|
2829 |
}
|
|
|
2830 |
first = false;
|
|
|
2831 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
2832 |
sb.append("gatewayId:");
|
|
|
2833 |
sb.append(this.gatewayId);
|
| 123 |
ashish |
2834 |
first = false;
|
|
|
2835 |
sb.append(")");
|
|
|
2836 |
return sb.toString();
|
|
|
2837 |
}
|
|
|
2838 |
|
|
|
2839 |
public void validate() throws TException {
|
|
|
2840 |
// check for required fields
|
|
|
2841 |
}
|
|
|
2842 |
|
|
|
2843 |
}
|
|
|
2844 |
|
| 695 |
rajveer |
2845 |
public static class getPaymentsForUser_result implements TBase<getPaymentsForUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPaymentsForUser_result> {
|
| 123 |
ashish |
2846 |
private static final TStruct STRUCT_DESC = new TStruct("getPaymentsForUser_result");
|
|
|
2847 |
|
|
|
2848 |
private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
|
|
|
2849 |
private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
|
|
|
2850 |
|
|
|
2851 |
private List<Payment> success;
|
|
|
2852 |
private PaymentException pe;
|
|
|
2853 |
|
|
|
2854 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
2855 |
public enum _Fields implements TFieldIdEnum {
|
|
|
2856 |
SUCCESS((short)0, "success"),
|
|
|
2857 |
PE((short)1, "pe");
|
|
|
2858 |
|
|
|
2859 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
2860 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2861 |
|
|
|
2862 |
static {
|
|
|
2863 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2864 |
byId.put((int)field._thriftId, field);
|
|
|
2865 |
byName.put(field.getFieldName(), field);
|
|
|
2866 |
}
|
|
|
2867 |
}
|
|
|
2868 |
|
|
|
2869 |
/**
|
|
|
2870 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2871 |
*/
|
|
|
2872 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
2873 |
return byId.get(fieldId);
|
|
|
2874 |
}
|
|
|
2875 |
|
|
|
2876 |
/**
|
|
|
2877 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2878 |
* if it is not found.
|
|
|
2879 |
*/
|
|
|
2880 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2881 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2882 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2883 |
return fields;
|
|
|
2884 |
}
|
|
|
2885 |
|
|
|
2886 |
/**
|
|
|
2887 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2888 |
*/
|
|
|
2889 |
public static _Fields findByName(String name) {
|
|
|
2890 |
return byName.get(name);
|
|
|
2891 |
}
|
|
|
2892 |
|
|
|
2893 |
private final short _thriftId;
|
|
|
2894 |
private final String _fieldName;
|
|
|
2895 |
|
|
|
2896 |
_Fields(short thriftId, String fieldName) {
|
|
|
2897 |
_thriftId = thriftId;
|
|
|
2898 |
_fieldName = fieldName;
|
|
|
2899 |
}
|
|
|
2900 |
|
|
|
2901 |
public short getThriftFieldId() {
|
|
|
2902 |
return _thriftId;
|
|
|
2903 |
}
|
|
|
2904 |
|
|
|
2905 |
public String getFieldName() {
|
|
|
2906 |
return _fieldName;
|
|
|
2907 |
}
|
|
|
2908 |
}
|
|
|
2909 |
|
|
|
2910 |
// isset id assignments
|
|
|
2911 |
|
|
|
2912 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
2913 |
put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,
|
|
|
2914 |
new ListMetaData(TType.LIST,
|
|
|
2915 |
new StructMetaData(TType.STRUCT, Payment.class))));
|
|
|
2916 |
put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT,
|
|
|
2917 |
new FieldValueMetaData(TType.STRUCT)));
|
|
|
2918 |
}});
|
|
|
2919 |
|
|
|
2920 |
static {
|
|
|
2921 |
FieldMetaData.addStructMetaDataMap(getPaymentsForUser_result.class, metaDataMap);
|
|
|
2922 |
}
|
|
|
2923 |
|
|
|
2924 |
public getPaymentsForUser_result() {
|
|
|
2925 |
}
|
|
|
2926 |
|
|
|
2927 |
public getPaymentsForUser_result(
|
|
|
2928 |
List<Payment> success,
|
|
|
2929 |
PaymentException pe)
|
|
|
2930 |
{
|
|
|
2931 |
this();
|
|
|
2932 |
this.success = success;
|
|
|
2933 |
this.pe = pe;
|
|
|
2934 |
}
|
|
|
2935 |
|
|
|
2936 |
/**
|
|
|
2937 |
* Performs a deep copy on <i>other</i>.
|
|
|
2938 |
*/
|
|
|
2939 |
public getPaymentsForUser_result(getPaymentsForUser_result other) {
|
|
|
2940 |
if (other.isSetSuccess()) {
|
|
|
2941 |
List<Payment> __this__success = new ArrayList<Payment>();
|
|
|
2942 |
for (Payment other_element : other.success) {
|
|
|
2943 |
__this__success.add(new Payment(other_element));
|
|
|
2944 |
}
|
|
|
2945 |
this.success = __this__success;
|
|
|
2946 |
}
|
|
|
2947 |
if (other.isSetPe()) {
|
|
|
2948 |
this.pe = new PaymentException(other.pe);
|
|
|
2949 |
}
|
|
|
2950 |
}
|
|
|
2951 |
|
|
|
2952 |
public getPaymentsForUser_result deepCopy() {
|
|
|
2953 |
return new getPaymentsForUser_result(this);
|
|
|
2954 |
}
|
|
|
2955 |
|
|
|
2956 |
@Deprecated
|
|
|
2957 |
public getPaymentsForUser_result clone() {
|
|
|
2958 |
return new getPaymentsForUser_result(this);
|
|
|
2959 |
}
|
|
|
2960 |
|
|
|
2961 |
public int getSuccessSize() {
|
|
|
2962 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
2963 |
}
|
|
|
2964 |
|
|
|
2965 |
public java.util.Iterator<Payment> getSuccessIterator() {
|
|
|
2966 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
2967 |
}
|
|
|
2968 |
|
|
|
2969 |
public void addToSuccess(Payment elem) {
|
|
|
2970 |
if (this.success == null) {
|
|
|
2971 |
this.success = new ArrayList<Payment>();
|
|
|
2972 |
}
|
|
|
2973 |
this.success.add(elem);
|
|
|
2974 |
}
|
|
|
2975 |
|
|
|
2976 |
public List<Payment> getSuccess() {
|
|
|
2977 |
return this.success;
|
|
|
2978 |
}
|
|
|
2979 |
|
|
|
2980 |
public getPaymentsForUser_result setSuccess(List<Payment> success) {
|
|
|
2981 |
this.success = success;
|
|
|
2982 |
return this;
|
|
|
2983 |
}
|
|
|
2984 |
|
|
|
2985 |
public void unsetSuccess() {
|
|
|
2986 |
this.success = null;
|
|
|
2987 |
}
|
|
|
2988 |
|
|
|
2989 |
/** Returns true if field success is set (has been asigned a value) and false otherwise */
|
|
|
2990 |
public boolean isSetSuccess() {
|
|
|
2991 |
return this.success != null;
|
|
|
2992 |
}
|
|
|
2993 |
|
|
|
2994 |
public void setSuccessIsSet(boolean value) {
|
|
|
2995 |
if (!value) {
|
|
|
2996 |
this.success = null;
|
|
|
2997 |
}
|
|
|
2998 |
}
|
|
|
2999 |
|
|
|
3000 |
public PaymentException getPe() {
|
|
|
3001 |
return this.pe;
|
|
|
3002 |
}
|
|
|
3003 |
|
|
|
3004 |
public getPaymentsForUser_result setPe(PaymentException pe) {
|
|
|
3005 |
this.pe = pe;
|
|
|
3006 |
return this;
|
|
|
3007 |
}
|
|
|
3008 |
|
|
|
3009 |
public void unsetPe() {
|
|
|
3010 |
this.pe = null;
|
|
|
3011 |
}
|
|
|
3012 |
|
|
|
3013 |
/** Returns true if field pe is set (has been asigned a value) and false otherwise */
|
|
|
3014 |
public boolean isSetPe() {
|
|
|
3015 |
return this.pe != null;
|
|
|
3016 |
}
|
|
|
3017 |
|
|
|
3018 |
public void setPeIsSet(boolean value) {
|
|
|
3019 |
if (!value) {
|
|
|
3020 |
this.pe = null;
|
|
|
3021 |
}
|
|
|
3022 |
}
|
|
|
3023 |
|
|
|
3024 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3025 |
switch (field) {
|
|
|
3026 |
case SUCCESS:
|
|
|
3027 |
if (value == null) {
|
|
|
3028 |
unsetSuccess();
|
|
|
3029 |
} else {
|
|
|
3030 |
setSuccess((List<Payment>)value);
|
|
|
3031 |
}
|
|
|
3032 |
break;
|
|
|
3033 |
|
|
|
3034 |
case PE:
|
|
|
3035 |
if (value == null) {
|
|
|
3036 |
unsetPe();
|
|
|
3037 |
} else {
|
|
|
3038 |
setPe((PaymentException)value);
|
|
|
3039 |
}
|
|
|
3040 |
break;
|
|
|
3041 |
|
|
|
3042 |
}
|
|
|
3043 |
}
|
|
|
3044 |
|
|
|
3045 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
3046 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
3047 |
}
|
|
|
3048 |
|
|
|
3049 |
public Object getFieldValue(_Fields field) {
|
|
|
3050 |
switch (field) {
|
|
|
3051 |
case SUCCESS:
|
|
|
3052 |
return getSuccess();
|
|
|
3053 |
|
|
|
3054 |
case PE:
|
|
|
3055 |
return getPe();
|
|
|
3056 |
|
|
|
3057 |
}
|
|
|
3058 |
throw new IllegalStateException();
|
|
|
3059 |
}
|
|
|
3060 |
|
|
|
3061 |
public Object getFieldValue(int fieldId) {
|
|
|
3062 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
3063 |
}
|
|
|
3064 |
|
|
|
3065 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
3066 |
public boolean isSet(_Fields field) {
|
|
|
3067 |
switch (field) {
|
|
|
3068 |
case SUCCESS:
|
|
|
3069 |
return isSetSuccess();
|
|
|
3070 |
case PE:
|
|
|
3071 |
return isSetPe();
|
|
|
3072 |
}
|
|
|
3073 |
throw new IllegalStateException();
|
|
|
3074 |
}
|
|
|
3075 |
|
|
|
3076 |
public boolean isSet(int fieldID) {
|
|
|
3077 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
3078 |
}
|
|
|
3079 |
|
|
|
3080 |
@Override
|
|
|
3081 |
public boolean equals(Object that) {
|
|
|
3082 |
if (that == null)
|
|
|
3083 |
return false;
|
|
|
3084 |
if (that instanceof getPaymentsForUser_result)
|
|
|
3085 |
return this.equals((getPaymentsForUser_result)that);
|
|
|
3086 |
return false;
|
|
|
3087 |
}
|
|
|
3088 |
|
|
|
3089 |
public boolean equals(getPaymentsForUser_result that) {
|
|
|
3090 |
if (that == null)
|
|
|
3091 |
return false;
|
|
|
3092 |
|
|
|
3093 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
3094 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
3095 |
if (this_present_success || that_present_success) {
|
|
|
3096 |
if (!(this_present_success && that_present_success))
|
|
|
3097 |
return false;
|
|
|
3098 |
if (!this.success.equals(that.success))
|
|
|
3099 |
return false;
|
|
|
3100 |
}
|
|
|
3101 |
|
|
|
3102 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
3103 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
3104 |
if (this_present_pe || that_present_pe) {
|
|
|
3105 |
if (!(this_present_pe && that_present_pe))
|
|
|
3106 |
return false;
|
|
|
3107 |
if (!this.pe.equals(that.pe))
|
|
|
3108 |
return false;
|
|
|
3109 |
}
|
|
|
3110 |
|
|
|
3111 |
return true;
|
|
|
3112 |
}
|
|
|
3113 |
|
|
|
3114 |
@Override
|
|
|
3115 |
public int hashCode() {
|
|
|
3116 |
return 0;
|
|
|
3117 |
}
|
|
|
3118 |
|
| 695 |
rajveer |
3119 |
public int compareTo(getPaymentsForUser_result other) {
|
| 123 |
ashish |
3120 |
if (!getClass().equals(other.getClass())) {
|
|
|
3121 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3122 |
}
|
|
|
3123 |
|
|
|
3124 |
int lastComparison = 0;
|
| 695 |
rajveer |
3125 |
getPaymentsForUser_result typedOther = (getPaymentsForUser_result)other;
|
| 123 |
ashish |
3126 |
|
| 695 |
rajveer |
3127 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
|
| 123 |
ashish |
3128 |
if (lastComparison != 0) {
|
|
|
3129 |
return lastComparison;
|
|
|
3130 |
}
|
| 695 |
rajveer |
3131 |
lastComparison = TBaseHelper.compareTo(success, typedOther.success);
|
| 123 |
ashish |
3132 |
if (lastComparison != 0) {
|
|
|
3133 |
return lastComparison;
|
|
|
3134 |
}
|
| 695 |
rajveer |
3135 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
|
| 123 |
ashish |
3136 |
if (lastComparison != 0) {
|
|
|
3137 |
return lastComparison;
|
|
|
3138 |
}
|
| 695 |
rajveer |
3139 |
lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
|
| 123 |
ashish |
3140 |
if (lastComparison != 0) {
|
|
|
3141 |
return lastComparison;
|
|
|
3142 |
}
|
|
|
3143 |
return 0;
|
|
|
3144 |
}
|
|
|
3145 |
|
|
|
3146 |
public void read(TProtocol iprot) throws TException {
|
|
|
3147 |
TField field;
|
|
|
3148 |
iprot.readStructBegin();
|
|
|
3149 |
while (true)
|
|
|
3150 |
{
|
|
|
3151 |
field = iprot.readFieldBegin();
|
|
|
3152 |
if (field.type == TType.STOP) {
|
|
|
3153 |
break;
|
|
|
3154 |
}
|
|
|
3155 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
3156 |
if (fieldId == null) {
|
|
|
3157 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
3158 |
} else {
|
|
|
3159 |
switch (fieldId) {
|
|
|
3160 |
case SUCCESS:
|
|
|
3161 |
if (field.type == TType.LIST) {
|
|
|
3162 |
{
|
| 695 |
rajveer |
3163 |
TList _list8 = iprot.readListBegin();
|
|
|
3164 |
this.success = new ArrayList<Payment>(_list8.size);
|
|
|
3165 |
for (int _i9 = 0; _i9 < _list8.size; ++_i9)
|
| 123 |
ashish |
3166 |
{
|
| 695 |
rajveer |
3167 |
Payment _elem10;
|
|
|
3168 |
_elem10 = new Payment();
|
|
|
3169 |
_elem10.read(iprot);
|
|
|
3170 |
this.success.add(_elem10);
|
| 123 |
ashish |
3171 |
}
|
|
|
3172 |
iprot.readListEnd();
|
|
|
3173 |
}
|
|
|
3174 |
} else {
|
|
|
3175 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
3176 |
}
|
|
|
3177 |
break;
|
|
|
3178 |
case PE:
|
|
|
3179 |
if (field.type == TType.STRUCT) {
|
|
|
3180 |
this.pe = new PaymentException();
|
|
|
3181 |
this.pe.read(iprot);
|
|
|
3182 |
} else {
|
|
|
3183 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
3184 |
}
|
|
|
3185 |
break;
|
|
|
3186 |
}
|
|
|
3187 |
iprot.readFieldEnd();
|
|
|
3188 |
}
|
|
|
3189 |
}
|
|
|
3190 |
iprot.readStructEnd();
|
|
|
3191 |
validate();
|
|
|
3192 |
}
|
|
|
3193 |
|
|
|
3194 |
public void write(TProtocol oprot) throws TException {
|
|
|
3195 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3196 |
|
|
|
3197 |
if (this.isSetSuccess()) {
|
|
|
3198 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
3199 |
{
|
|
|
3200 |
oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
|
| 695 |
rajveer |
3201 |
for (Payment _iter11 : this.success)
|
| 123 |
ashish |
3202 |
{
|
| 695 |
rajveer |
3203 |
_iter11.write(oprot);
|
| 123 |
ashish |
3204 |
}
|
|
|
3205 |
oprot.writeListEnd();
|
|
|
3206 |
}
|
|
|
3207 |
oprot.writeFieldEnd();
|
|
|
3208 |
} else if (this.isSetPe()) {
|
|
|
3209 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
3210 |
this.pe.write(oprot);
|
|
|
3211 |
oprot.writeFieldEnd();
|
|
|
3212 |
}
|
|
|
3213 |
oprot.writeFieldStop();
|
|
|
3214 |
oprot.writeStructEnd();
|
|
|
3215 |
}
|
|
|
3216 |
|
|
|
3217 |
@Override
|
|
|
3218 |
public String toString() {
|
| 695 |
rajveer |
3219 |
StringBuilder sb = new StringBuilder("getPaymentsForUser_result(");
|
| 123 |
ashish |
3220 |
boolean first = true;
|
|
|
3221 |
|
|
|
3222 |
sb.append("success:");
|
|
|
3223 |
if (this.success == null) {
|
|
|
3224 |
sb.append("null");
|
|
|
3225 |
} else {
|
|
|
3226 |
sb.append(this.success);
|
|
|
3227 |
}
|
|
|
3228 |
first = false;
|
|
|
3229 |
if (!first) sb.append(", ");
|
|
|
3230 |
sb.append("pe:");
|
|
|
3231 |
if (this.pe == null) {
|
|
|
3232 |
sb.append("null");
|
|
|
3233 |
} else {
|
|
|
3234 |
sb.append(this.pe);
|
|
|
3235 |
}
|
|
|
3236 |
first = false;
|
|
|
3237 |
sb.append(")");
|
|
|
3238 |
return sb.toString();
|
|
|
3239 |
}
|
|
|
3240 |
|
|
|
3241 |
public void validate() throws TException {
|
|
|
3242 |
// check for required fields
|
|
|
3243 |
}
|
|
|
3244 |
|
|
|
3245 |
}
|
|
|
3246 |
|
|
|
3247 |
public static class getPayments_args implements TBase<getPayments_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPayments_args> {
|
|
|
3248 |
private static final TStruct STRUCT_DESC = new TStruct("getPayments_args");
|
|
|
3249 |
|
| 695 |
rajveer |
3250 |
private static final TField FROM_TIME_FIELD_DESC = new TField("fromTime", TType.I64, (short)1);
|
|
|
3251 |
private static final TField TO_TIME_FIELD_DESC = new TField("toTime", TType.I64, (short)2);
|
| 123 |
ashish |
3252 |
private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)3);
|
| 695 |
rajveer |
3253 |
private static final TField GATEWAY_ID_FIELD_DESC = new TField("gatewayId", TType.I64, (short)4);
|
| 123 |
ashish |
3254 |
|
| 695 |
rajveer |
3255 |
private long fromTime;
|
|
|
3256 |
private long toTime;
|
| 123 |
ashish |
3257 |
private PaymentStatus status;
|
| 695 |
rajveer |
3258 |
private long gatewayId;
|
| 123 |
ashish |
3259 |
|
|
|
3260 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
3261 |
public enum _Fields implements TFieldIdEnum {
|
| 695 |
rajveer |
3262 |
FROM_TIME((short)1, "fromTime"),
|
|
|
3263 |
TO_TIME((short)2, "toTime"),
|
| 123 |
ashish |
3264 |
/**
|
|
|
3265 |
*
|
|
|
3266 |
* @see PaymentStatus
|
|
|
3267 |
*/
|
|
|
3268 |
STATUS((short)3, "status"),
|
| 695 |
rajveer |
3269 |
GATEWAY_ID((short)4, "gatewayId");
|
| 123 |
ashish |
3270 |
|
|
|
3271 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
3272 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3273 |
|
|
|
3274 |
static {
|
|
|
3275 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3276 |
byId.put((int)field._thriftId, field);
|
|
|
3277 |
byName.put(field.getFieldName(), field);
|
|
|
3278 |
}
|
|
|
3279 |
}
|
|
|
3280 |
|
|
|
3281 |
/**
|
|
|
3282 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3283 |
*/
|
|
|
3284 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
3285 |
return byId.get(fieldId);
|
|
|
3286 |
}
|
|
|
3287 |
|
|
|
3288 |
/**
|
|
|
3289 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3290 |
* if it is not found.
|
|
|
3291 |
*/
|
|
|
3292 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3293 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3294 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3295 |
return fields;
|
|
|
3296 |
}
|
|
|
3297 |
|
|
|
3298 |
/**
|
|
|
3299 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3300 |
*/
|
|
|
3301 |
public static _Fields findByName(String name) {
|
|
|
3302 |
return byName.get(name);
|
|
|
3303 |
}
|
|
|
3304 |
|
|
|
3305 |
private final short _thriftId;
|
|
|
3306 |
private final String _fieldName;
|
|
|
3307 |
|
|
|
3308 |
_Fields(short thriftId, String fieldName) {
|
|
|
3309 |
_thriftId = thriftId;
|
|
|
3310 |
_fieldName = fieldName;
|
|
|
3311 |
}
|
|
|
3312 |
|
|
|
3313 |
public short getThriftFieldId() {
|
|
|
3314 |
return _thriftId;
|
|
|
3315 |
}
|
|
|
3316 |
|
|
|
3317 |
public String getFieldName() {
|
|
|
3318 |
return _fieldName;
|
|
|
3319 |
}
|
|
|
3320 |
}
|
|
|
3321 |
|
|
|
3322 |
// isset id assignments
|
| 695 |
rajveer |
3323 |
private static final int __FROMTIME_ISSET_ID = 0;
|
|
|
3324 |
private static final int __TOTIME_ISSET_ID = 1;
|
|
|
3325 |
private static final int __GATEWAYID_ISSET_ID = 2;
|
| 420 |
ashish |
3326 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 123 |
ashish |
3327 |
|
|
|
3328 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
| 695 |
rajveer |
3329 |
put(_Fields.FROM_TIME, new FieldMetaData("fromTime", TFieldRequirementType.DEFAULT,
|
| 123 |
ashish |
3330 |
new FieldValueMetaData(TType.I64)));
|
| 695 |
rajveer |
3331 |
put(_Fields.TO_TIME, new FieldMetaData("toTime", TFieldRequirementType.DEFAULT,
|
| 123 |
ashish |
3332 |
new FieldValueMetaData(TType.I64)));
|
|
|
3333 |
put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT,
|
|
|
3334 |
new EnumMetaData(TType.ENUM, PaymentStatus.class)));
|
| 695 |
rajveer |
3335 |
put(_Fields.GATEWAY_ID, new FieldMetaData("gatewayId", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
3336 |
new FieldValueMetaData(TType.I64)));
|
| 123 |
ashish |
3337 |
}});
|
|
|
3338 |
|
|
|
3339 |
static {
|
|
|
3340 |
FieldMetaData.addStructMetaDataMap(getPayments_args.class, metaDataMap);
|
|
|
3341 |
}
|
|
|
3342 |
|
|
|
3343 |
public getPayments_args() {
|
|
|
3344 |
}
|
|
|
3345 |
|
|
|
3346 |
public getPayments_args(
|
| 695 |
rajveer |
3347 |
long fromTime,
|
|
|
3348 |
long toTime,
|
| 123 |
ashish |
3349 |
PaymentStatus status,
|
| 695 |
rajveer |
3350 |
long gatewayId)
|
| 123 |
ashish |
3351 |
{
|
|
|
3352 |
this();
|
| 695 |
rajveer |
3353 |
this.fromTime = fromTime;
|
|
|
3354 |
setFromTimeIsSet(true);
|
|
|
3355 |
this.toTime = toTime;
|
|
|
3356 |
setToTimeIsSet(true);
|
| 123 |
ashish |
3357 |
this.status = status;
|
| 695 |
rajveer |
3358 |
this.gatewayId = gatewayId;
|
|
|
3359 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
3360 |
}
|
|
|
3361 |
|
|
|
3362 |
/**
|
|
|
3363 |
* Performs a deep copy on <i>other</i>.
|
|
|
3364 |
*/
|
|
|
3365 |
public getPayments_args(getPayments_args other) {
|
|
|
3366 |
__isset_bit_vector.clear();
|
|
|
3367 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 695 |
rajveer |
3368 |
this.fromTime = other.fromTime;
|
|
|
3369 |
this.toTime = other.toTime;
|
| 123 |
ashish |
3370 |
if (other.isSetStatus()) {
|
|
|
3371 |
this.status = other.status;
|
|
|
3372 |
}
|
| 695 |
rajveer |
3373 |
this.gatewayId = other.gatewayId;
|
| 123 |
ashish |
3374 |
}
|
|
|
3375 |
|
|
|
3376 |
public getPayments_args deepCopy() {
|
|
|
3377 |
return new getPayments_args(this);
|
|
|
3378 |
}
|
|
|
3379 |
|
|
|
3380 |
@Deprecated
|
|
|
3381 |
public getPayments_args clone() {
|
|
|
3382 |
return new getPayments_args(this);
|
|
|
3383 |
}
|
|
|
3384 |
|
| 695 |
rajveer |
3385 |
public long getFromTime() {
|
|
|
3386 |
return this.fromTime;
|
| 123 |
ashish |
3387 |
}
|
|
|
3388 |
|
| 695 |
rajveer |
3389 |
public getPayments_args setFromTime(long fromTime) {
|
|
|
3390 |
this.fromTime = fromTime;
|
|
|
3391 |
setFromTimeIsSet(true);
|
| 123 |
ashish |
3392 |
return this;
|
|
|
3393 |
}
|
|
|
3394 |
|
| 695 |
rajveer |
3395 |
public void unsetFromTime() {
|
|
|
3396 |
__isset_bit_vector.clear(__FROMTIME_ISSET_ID);
|
| 123 |
ashish |
3397 |
}
|
|
|
3398 |
|
| 695 |
rajveer |
3399 |
/** Returns true if field fromTime is set (has been asigned a value) and false otherwise */
|
|
|
3400 |
public boolean isSetFromTime() {
|
|
|
3401 |
return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
|
| 123 |
ashish |
3402 |
}
|
|
|
3403 |
|
| 695 |
rajveer |
3404 |
public void setFromTimeIsSet(boolean value) {
|
|
|
3405 |
__isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
|
| 123 |
ashish |
3406 |
}
|
|
|
3407 |
|
| 695 |
rajveer |
3408 |
public long getToTime() {
|
|
|
3409 |
return this.toTime;
|
| 123 |
ashish |
3410 |
}
|
|
|
3411 |
|
| 695 |
rajveer |
3412 |
public getPayments_args setToTime(long toTime) {
|
|
|
3413 |
this.toTime = toTime;
|
|
|
3414 |
setToTimeIsSet(true);
|
| 123 |
ashish |
3415 |
return this;
|
|
|
3416 |
}
|
|
|
3417 |
|
| 695 |
rajveer |
3418 |
public void unsetToTime() {
|
|
|
3419 |
__isset_bit_vector.clear(__TOTIME_ISSET_ID);
|
| 123 |
ashish |
3420 |
}
|
|
|
3421 |
|
| 695 |
rajveer |
3422 |
/** Returns true if field toTime is set (has been asigned a value) and false otherwise */
|
|
|
3423 |
public boolean isSetToTime() {
|
|
|
3424 |
return __isset_bit_vector.get(__TOTIME_ISSET_ID);
|
| 123 |
ashish |
3425 |
}
|
|
|
3426 |
|
| 695 |
rajveer |
3427 |
public void setToTimeIsSet(boolean value) {
|
|
|
3428 |
__isset_bit_vector.set(__TOTIME_ISSET_ID, value);
|
| 123 |
ashish |
3429 |
}
|
|
|
3430 |
|
|
|
3431 |
/**
|
|
|
3432 |
*
|
|
|
3433 |
* @see PaymentStatus
|
|
|
3434 |
*/
|
|
|
3435 |
public PaymentStatus getStatus() {
|
|
|
3436 |
return this.status;
|
|
|
3437 |
}
|
|
|
3438 |
|
|
|
3439 |
/**
|
|
|
3440 |
*
|
|
|
3441 |
* @see PaymentStatus
|
|
|
3442 |
*/
|
|
|
3443 |
public getPayments_args setStatus(PaymentStatus status) {
|
|
|
3444 |
this.status = status;
|
|
|
3445 |
return this;
|
|
|
3446 |
}
|
|
|
3447 |
|
|
|
3448 |
public void unsetStatus() {
|
|
|
3449 |
this.status = null;
|
|
|
3450 |
}
|
|
|
3451 |
|
|
|
3452 |
/** Returns true if field status is set (has been asigned a value) and false otherwise */
|
|
|
3453 |
public boolean isSetStatus() {
|
|
|
3454 |
return this.status != null;
|
|
|
3455 |
}
|
|
|
3456 |
|
|
|
3457 |
public void setStatusIsSet(boolean value) {
|
|
|
3458 |
if (!value) {
|
|
|
3459 |
this.status = null;
|
|
|
3460 |
}
|
|
|
3461 |
}
|
|
|
3462 |
|
| 695 |
rajveer |
3463 |
public long getGatewayId() {
|
|
|
3464 |
return this.gatewayId;
|
| 123 |
ashish |
3465 |
}
|
|
|
3466 |
|
| 695 |
rajveer |
3467 |
public getPayments_args setGatewayId(long gatewayId) {
|
|
|
3468 |
this.gatewayId = gatewayId;
|
|
|
3469 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
3470 |
return this;
|
|
|
3471 |
}
|
|
|
3472 |
|
| 695 |
rajveer |
3473 |
public void unsetGatewayId() {
|
|
|
3474 |
__isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
3475 |
}
|
|
|
3476 |
|
| 695 |
rajveer |
3477 |
/** Returns true if field gatewayId is set (has been asigned a value) and false otherwise */
|
|
|
3478 |
public boolean isSetGatewayId() {
|
|
|
3479 |
return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
|
| 123 |
ashish |
3480 |
}
|
|
|
3481 |
|
| 695 |
rajveer |
3482 |
public void setGatewayIdIsSet(boolean value) {
|
|
|
3483 |
__isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
|
| 123 |
ashish |
3484 |
}
|
|
|
3485 |
|
|
|
3486 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3487 |
switch (field) {
|
|
|
3488 |
case FROM_TIME:
|
|
|
3489 |
if (value == null) {
|
| 695 |
rajveer |
3490 |
unsetFromTime();
|
| 123 |
ashish |
3491 |
} else {
|
| 695 |
rajveer |
3492 |
setFromTime((Long)value);
|
| 123 |
ashish |
3493 |
}
|
|
|
3494 |
break;
|
|
|
3495 |
|
|
|
3496 |
case TO_TIME:
|
|
|
3497 |
if (value == null) {
|
| 695 |
rajveer |
3498 |
unsetToTime();
|
| 123 |
ashish |
3499 |
} else {
|
| 695 |
rajveer |
3500 |
setToTime((Long)value);
|
| 123 |
ashish |
3501 |
}
|
|
|
3502 |
break;
|
|
|
3503 |
|
|
|
3504 |
case STATUS:
|
|
|
3505 |
if (value == null) {
|
|
|
3506 |
unsetStatus();
|
|
|
3507 |
} else {
|
|
|
3508 |
setStatus((PaymentStatus)value);
|
|
|
3509 |
}
|
|
|
3510 |
break;
|
|
|
3511 |
|
| 420 |
ashish |
3512 |
case GATEWAY_ID:
|
| 123 |
ashish |
3513 |
if (value == null) {
|
| 695 |
rajveer |
3514 |
unsetGatewayId();
|
| 123 |
ashish |
3515 |
} else {
|
| 695 |
rajveer |
3516 |
setGatewayId((Long)value);
|
| 123 |
ashish |
3517 |
}
|
|
|
3518 |
break;
|
|
|
3519 |
|
|
|
3520 |
}
|
|
|
3521 |
}
|
|
|
3522 |
|
|
|
3523 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
3524 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
3525 |
}
|
|
|
3526 |
|
|
|
3527 |
public Object getFieldValue(_Fields field) {
|
|
|
3528 |
switch (field) {
|
|
|
3529 |
case FROM_TIME:
|
| 695 |
rajveer |
3530 |
return new Long(getFromTime());
|
| 123 |
ashish |
3531 |
|
|
|
3532 |
case TO_TIME:
|
| 695 |
rajveer |
3533 |
return new Long(getToTime());
|
| 123 |
ashish |
3534 |
|
|
|
3535 |
case STATUS:
|
|
|
3536 |
return getStatus();
|
|
|
3537 |
|
| 420 |
ashish |
3538 |
case GATEWAY_ID:
|
| 695 |
rajveer |
3539 |
return new Long(getGatewayId());
|
| 123 |
ashish |
3540 |
|
|
|
3541 |
}
|
|
|
3542 |
throw new IllegalStateException();
|
|
|
3543 |
}
|
|
|
3544 |
|
|
|
3545 |
public Object getFieldValue(int fieldId) {
|
|
|
3546 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
3547 |
}
|
|
|
3548 |
|
|
|
3549 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
3550 |
public boolean isSet(_Fields field) {
|
|
|
3551 |
switch (field) {
|
|
|
3552 |
case FROM_TIME:
|
| 695 |
rajveer |
3553 |
return isSetFromTime();
|
| 123 |
ashish |
3554 |
case TO_TIME:
|
| 695 |
rajveer |
3555 |
return isSetToTime();
|
| 123 |
ashish |
3556 |
case STATUS:
|
|
|
3557 |
return isSetStatus();
|
| 420 |
ashish |
3558 |
case GATEWAY_ID:
|
| 695 |
rajveer |
3559 |
return isSetGatewayId();
|
| 123 |
ashish |
3560 |
}
|
|
|
3561 |
throw new IllegalStateException();
|
|
|
3562 |
}
|
|
|
3563 |
|
|
|
3564 |
public boolean isSet(int fieldID) {
|
|
|
3565 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
3566 |
}
|
|
|
3567 |
|
|
|
3568 |
@Override
|
|
|
3569 |
public boolean equals(Object that) {
|
|
|
3570 |
if (that == null)
|
|
|
3571 |
return false;
|
|
|
3572 |
if (that instanceof getPayments_args)
|
|
|
3573 |
return this.equals((getPayments_args)that);
|
|
|
3574 |
return false;
|
|
|
3575 |
}
|
|
|
3576 |
|
|
|
3577 |
public boolean equals(getPayments_args that) {
|
|
|
3578 |
if (that == null)
|
|
|
3579 |
return false;
|
|
|
3580 |
|
| 695 |
rajveer |
3581 |
boolean this_present_fromTime = true;
|
|
|
3582 |
boolean that_present_fromTime = true;
|
|
|
3583 |
if (this_present_fromTime || that_present_fromTime) {
|
|
|
3584 |
if (!(this_present_fromTime && that_present_fromTime))
|
| 123 |
ashish |
3585 |
return false;
|
| 695 |
rajveer |
3586 |
if (this.fromTime != that.fromTime)
|
| 123 |
ashish |
3587 |
return false;
|
|
|
3588 |
}
|
|
|
3589 |
|
| 695 |
rajveer |
3590 |
boolean this_present_toTime = true;
|
|
|
3591 |
boolean that_present_toTime = true;
|
|
|
3592 |
if (this_present_toTime || that_present_toTime) {
|
|
|
3593 |
if (!(this_present_toTime && that_present_toTime))
|
| 123 |
ashish |
3594 |
return false;
|
| 695 |
rajveer |
3595 |
if (this.toTime != that.toTime)
|
| 123 |
ashish |
3596 |
return false;
|
|
|
3597 |
}
|
|
|
3598 |
|
|
|
3599 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
3600 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
3601 |
if (this_present_status || that_present_status) {
|
|
|
3602 |
if (!(this_present_status && that_present_status))
|
|
|
3603 |
return false;
|
|
|
3604 |
if (!this.status.equals(that.status))
|
|
|
3605 |
return false;
|
|
|
3606 |
}
|
|
|
3607 |
|
| 695 |
rajveer |
3608 |
boolean this_present_gatewayId = true;
|
|
|
3609 |
boolean that_present_gatewayId = true;
|
|
|
3610 |
if (this_present_gatewayId || that_present_gatewayId) {
|
|
|
3611 |
if (!(this_present_gatewayId && that_present_gatewayId))
|
| 123 |
ashish |
3612 |
return false;
|
| 695 |
rajveer |
3613 |
if (this.gatewayId != that.gatewayId)
|
| 123 |
ashish |
3614 |
return false;
|
|
|
3615 |
}
|
|
|
3616 |
|
|
|
3617 |
return true;
|
|
|
3618 |
}
|
|
|
3619 |
|
|
|
3620 |
@Override
|
|
|
3621 |
public int hashCode() {
|
|
|
3622 |
return 0;
|
|
|
3623 |
}
|
|
|
3624 |
|
|
|
3625 |
public int compareTo(getPayments_args other) {
|
|
|
3626 |
if (!getClass().equals(other.getClass())) {
|
|
|
3627 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3628 |
}
|
|
|
3629 |
|
|
|
3630 |
int lastComparison = 0;
|
|
|
3631 |
getPayments_args typedOther = (getPayments_args)other;
|
|
|
3632 |
|
| 695 |
rajveer |
3633 |
lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(isSetFromTime());
|
| 123 |
ashish |
3634 |
if (lastComparison != 0) {
|
|
|
3635 |
return lastComparison;
|
|
|
3636 |
}
|
| 695 |
rajveer |
3637 |
lastComparison = TBaseHelper.compareTo(fromTime, typedOther.fromTime);
|
| 123 |
ashish |
3638 |
if (lastComparison != 0) {
|
|
|
3639 |
return lastComparison;
|
|
|
3640 |
}
|
| 695 |
rajveer |
3641 |
lastComparison = Boolean.valueOf(isSetToTime()).compareTo(isSetToTime());
|
| 123 |
ashish |
3642 |
if (lastComparison != 0) {
|
|
|
3643 |
return lastComparison;
|
|
|
3644 |
}
|
| 695 |
rajveer |
3645 |
lastComparison = TBaseHelper.compareTo(toTime, typedOther.toTime);
|
| 123 |
ashish |
3646 |
if (lastComparison != 0) {
|
|
|
3647 |
return lastComparison;
|
|
|
3648 |
}
|
|
|
3649 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
|
|
|
3650 |
if (lastComparison != 0) {
|
|
|
3651 |
return lastComparison;
|
|
|
3652 |
}
|
|
|
3653 |
lastComparison = TBaseHelper.compareTo(status, typedOther.status);
|
|
|
3654 |
if (lastComparison != 0) {
|
|
|
3655 |
return lastComparison;
|
|
|
3656 |
}
|
| 695 |
rajveer |
3657 |
lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(isSetGatewayId());
|
| 123 |
ashish |
3658 |
if (lastComparison != 0) {
|
|
|
3659 |
return lastComparison;
|
|
|
3660 |
}
|
| 695 |
rajveer |
3661 |
lastComparison = TBaseHelper.compareTo(gatewayId, typedOther.gatewayId);
|
| 123 |
ashish |
3662 |
if (lastComparison != 0) {
|
|
|
3663 |
return lastComparison;
|
|
|
3664 |
}
|
|
|
3665 |
return 0;
|
|
|
3666 |
}
|
|
|
3667 |
|
|
|
3668 |
public void read(TProtocol iprot) throws TException {
|
|
|
3669 |
TField field;
|
|
|
3670 |
iprot.readStructBegin();
|
|
|
3671 |
while (true)
|
|
|
3672 |
{
|
|
|
3673 |
field = iprot.readFieldBegin();
|
|
|
3674 |
if (field.type == TType.STOP) {
|
|
|
3675 |
break;
|
|
|
3676 |
}
|
|
|
3677 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
3678 |
if (fieldId == null) {
|
|
|
3679 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
3680 |
} else {
|
|
|
3681 |
switch (fieldId) {
|
|
|
3682 |
case FROM_TIME:
|
|
|
3683 |
if (field.type == TType.I64) {
|
| 695 |
rajveer |
3684 |
this.fromTime = iprot.readI64();
|
|
|
3685 |
setFromTimeIsSet(true);
|
| 123 |
ashish |
3686 |
} else {
|
|
|
3687 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
3688 |
}
|
|
|
3689 |
break;
|
|
|
3690 |
case TO_TIME:
|
|
|
3691 |
if (field.type == TType.I64) {
|
| 695 |
rajveer |
3692 |
this.toTime = iprot.readI64();
|
|
|
3693 |
setToTimeIsSet(true);
|
| 123 |
ashish |
3694 |
} else {
|
|
|
3695 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
3696 |
}
|
|
|
3697 |
break;
|
|
|
3698 |
case STATUS:
|
|
|
3699 |
if (field.type == TType.I32) {
|
|
|
3700 |
this.status = PaymentStatus.findByValue(iprot.readI32());
|
|
|
3701 |
} else {
|
|
|
3702 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
3703 |
}
|
|
|
3704 |
break;
|
| 420 |
ashish |
3705 |
case GATEWAY_ID:
|
|
|
3706 |
if (field.type == TType.I64) {
|
| 695 |
rajveer |
3707 |
this.gatewayId = iprot.readI64();
|
|
|
3708 |
setGatewayIdIsSet(true);
|
| 123 |
ashish |
3709 |
} else {
|
|
|
3710 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
3711 |
}
|
|
|
3712 |
break;
|
|
|
3713 |
}
|
|
|
3714 |
iprot.readFieldEnd();
|
|
|
3715 |
}
|
|
|
3716 |
}
|
|
|
3717 |
iprot.readStructEnd();
|
|
|
3718 |
validate();
|
|
|
3719 |
}
|
|
|
3720 |
|
|
|
3721 |
public void write(TProtocol oprot) throws TException {
|
|
|
3722 |
validate();
|
|
|
3723 |
|
|
|
3724 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3725 |
oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
|
| 695 |
rajveer |
3726 |
oprot.writeI64(this.fromTime);
|
| 123 |
ashish |
3727 |
oprot.writeFieldEnd();
|
|
|
3728 |
oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
|
| 695 |
rajveer |
3729 |
oprot.writeI64(this.toTime);
|
| 123 |
ashish |
3730 |
oprot.writeFieldEnd();
|
|
|
3731 |
if (this.status != null) {
|
|
|
3732 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
3733 |
oprot.writeI32(this.status.getValue());
|
|
|
3734 |
oprot.writeFieldEnd();
|
|
|
3735 |
}
|
| 420 |
ashish |
3736 |
oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
|
| 695 |
rajveer |
3737 |
oprot.writeI64(this.gatewayId);
|
| 420 |
ashish |
3738 |
oprot.writeFieldEnd();
|
| 123 |
ashish |
3739 |
oprot.writeFieldStop();
|
|
|
3740 |
oprot.writeStructEnd();
|
|
|
3741 |
}
|
|
|
3742 |
|
|
|
3743 |
@Override
|
|
|
3744 |
public String toString() {
|
|
|
3745 |
StringBuilder sb = new StringBuilder("getPayments_args(");
|
|
|
3746 |
boolean first = true;
|
|
|
3747 |
|
| 695 |
rajveer |
3748 |
sb.append("fromTime:");
|
|
|
3749 |
sb.append(this.fromTime);
|
| 123 |
ashish |
3750 |
first = false;
|
|
|
3751 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
3752 |
sb.append("toTime:");
|
|
|
3753 |
sb.append(this.toTime);
|
| 123 |
ashish |
3754 |
first = false;
|
|
|
3755 |
if (!first) sb.append(", ");
|
|
|
3756 |
sb.append("status:");
|
|
|
3757 |
if (this.status == null) {
|
|
|
3758 |
sb.append("null");
|
|
|
3759 |
} else {
|
|
|
3760 |
String status_name = status.name();
|
|
|
3761 |
if (status_name != null) {
|
|
|
3762 |
sb.append(status_name);
|
|
|
3763 |
sb.append(" (");
|
|
|
3764 |
}
|
|
|
3765 |
sb.append(this.status);
|
|
|
3766 |
if (status_name != null) {
|
|
|
3767 |
sb.append(")");
|
|
|
3768 |
}
|
|
|
3769 |
}
|
|
|
3770 |
first = false;
|
|
|
3771 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
3772 |
sb.append("gatewayId:");
|
|
|
3773 |
sb.append(this.gatewayId);
|
| 123 |
ashish |
3774 |
first = false;
|
|
|
3775 |
sb.append(")");
|
|
|
3776 |
return sb.toString();
|
|
|
3777 |
}
|
|
|
3778 |
|
|
|
3779 |
public void validate() throws TException {
|
|
|
3780 |
// check for required fields
|
|
|
3781 |
}
|
|
|
3782 |
|
|
|
3783 |
}
|
|
|
3784 |
|
| 695 |
rajveer |
3785 |
public static class getPayments_result implements TBase<getPayments_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPayments_result> {
|
| 123 |
ashish |
3786 |
private static final TStruct STRUCT_DESC = new TStruct("getPayments_result");
|
|
|
3787 |
|
|
|
3788 |
private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
|
|
|
3789 |
private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
|
|
|
3790 |
|
|
|
3791 |
private List<Payment> success;
|
|
|
3792 |
private PaymentException pe;
|
|
|
3793 |
|
|
|
3794 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
3795 |
public enum _Fields implements TFieldIdEnum {
|
|
|
3796 |
SUCCESS((short)0, "success"),
|
|
|
3797 |
PE((short)1, "pe");
|
|
|
3798 |
|
|
|
3799 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
3800 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3801 |
|
|
|
3802 |
static {
|
|
|
3803 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3804 |
byId.put((int)field._thriftId, field);
|
|
|
3805 |
byName.put(field.getFieldName(), field);
|
|
|
3806 |
}
|
|
|
3807 |
}
|
|
|
3808 |
|
|
|
3809 |
/**
|
|
|
3810 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3811 |
*/
|
|
|
3812 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
3813 |
return byId.get(fieldId);
|
|
|
3814 |
}
|
|
|
3815 |
|
|
|
3816 |
/**
|
|
|
3817 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3818 |
* if it is not found.
|
|
|
3819 |
*/
|
|
|
3820 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3821 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3822 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3823 |
return fields;
|
|
|
3824 |
}
|
|
|
3825 |
|
|
|
3826 |
/**
|
|
|
3827 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3828 |
*/
|
|
|
3829 |
public static _Fields findByName(String name) {
|
|
|
3830 |
return byName.get(name);
|
|
|
3831 |
}
|
|
|
3832 |
|
|
|
3833 |
private final short _thriftId;
|
|
|
3834 |
private final String _fieldName;
|
|
|
3835 |
|
|
|
3836 |
_Fields(short thriftId, String fieldName) {
|
|
|
3837 |
_thriftId = thriftId;
|
|
|
3838 |
_fieldName = fieldName;
|
|
|
3839 |
}
|
|
|
3840 |
|
|
|
3841 |
public short getThriftFieldId() {
|
|
|
3842 |
return _thriftId;
|
|
|
3843 |
}
|
|
|
3844 |
|
|
|
3845 |
public String getFieldName() {
|
|
|
3846 |
return _fieldName;
|
|
|
3847 |
}
|
|
|
3848 |
}
|
|
|
3849 |
|
|
|
3850 |
// isset id assignments
|
|
|
3851 |
|
|
|
3852 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
3853 |
put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,
|
|
|
3854 |
new ListMetaData(TType.LIST,
|
|
|
3855 |
new StructMetaData(TType.STRUCT, Payment.class))));
|
|
|
3856 |
put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT,
|
|
|
3857 |
new FieldValueMetaData(TType.STRUCT)));
|
|
|
3858 |
}});
|
|
|
3859 |
|
|
|
3860 |
static {
|
|
|
3861 |
FieldMetaData.addStructMetaDataMap(getPayments_result.class, metaDataMap);
|
|
|
3862 |
}
|
|
|
3863 |
|
|
|
3864 |
public getPayments_result() {
|
|
|
3865 |
}
|
|
|
3866 |
|
|
|
3867 |
public getPayments_result(
|
|
|
3868 |
List<Payment> success,
|
|
|
3869 |
PaymentException pe)
|
|
|
3870 |
{
|
|
|
3871 |
this();
|
|
|
3872 |
this.success = success;
|
|
|
3873 |
this.pe = pe;
|
|
|
3874 |
}
|
|
|
3875 |
|
|
|
3876 |
/**
|
|
|
3877 |
* Performs a deep copy on <i>other</i>.
|
|
|
3878 |
*/
|
|
|
3879 |
public getPayments_result(getPayments_result other) {
|
|
|
3880 |
if (other.isSetSuccess()) {
|
|
|
3881 |
List<Payment> __this__success = new ArrayList<Payment>();
|
|
|
3882 |
for (Payment other_element : other.success) {
|
|
|
3883 |
__this__success.add(new Payment(other_element));
|
|
|
3884 |
}
|
|
|
3885 |
this.success = __this__success;
|
|
|
3886 |
}
|
|
|
3887 |
if (other.isSetPe()) {
|
|
|
3888 |
this.pe = new PaymentException(other.pe);
|
|
|
3889 |
}
|
|
|
3890 |
}
|
|
|
3891 |
|
|
|
3892 |
public getPayments_result deepCopy() {
|
|
|
3893 |
return new getPayments_result(this);
|
|
|
3894 |
}
|
|
|
3895 |
|
|
|
3896 |
@Deprecated
|
|
|
3897 |
public getPayments_result clone() {
|
|
|
3898 |
return new getPayments_result(this);
|
|
|
3899 |
}
|
|
|
3900 |
|
|
|
3901 |
public int getSuccessSize() {
|
|
|
3902 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
3903 |
}
|
|
|
3904 |
|
|
|
3905 |
public java.util.Iterator<Payment> getSuccessIterator() {
|
|
|
3906 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
3907 |
}
|
|
|
3908 |
|
|
|
3909 |
public void addToSuccess(Payment elem) {
|
|
|
3910 |
if (this.success == null) {
|
|
|
3911 |
this.success = new ArrayList<Payment>();
|
|
|
3912 |
}
|
|
|
3913 |
this.success.add(elem);
|
|
|
3914 |
}
|
|
|
3915 |
|
|
|
3916 |
public List<Payment> getSuccess() {
|
|
|
3917 |
return this.success;
|
|
|
3918 |
}
|
|
|
3919 |
|
|
|
3920 |
public getPayments_result setSuccess(List<Payment> success) {
|
|
|
3921 |
this.success = success;
|
|
|
3922 |
return this;
|
|
|
3923 |
}
|
|
|
3924 |
|
|
|
3925 |
public void unsetSuccess() {
|
|
|
3926 |
this.success = null;
|
|
|
3927 |
}
|
|
|
3928 |
|
|
|
3929 |
/** Returns true if field success is set (has been asigned a value) and false otherwise */
|
|
|
3930 |
public boolean isSetSuccess() {
|
|
|
3931 |
return this.success != null;
|
|
|
3932 |
}
|
|
|
3933 |
|
|
|
3934 |
public void setSuccessIsSet(boolean value) {
|
|
|
3935 |
if (!value) {
|
|
|
3936 |
this.success = null;
|
|
|
3937 |
}
|
|
|
3938 |
}
|
|
|
3939 |
|
|
|
3940 |
public PaymentException getPe() {
|
|
|
3941 |
return this.pe;
|
|
|
3942 |
}
|
|
|
3943 |
|
|
|
3944 |
public getPayments_result setPe(PaymentException pe) {
|
|
|
3945 |
this.pe = pe;
|
|
|
3946 |
return this;
|
|
|
3947 |
}
|
|
|
3948 |
|
|
|
3949 |
public void unsetPe() {
|
|
|
3950 |
this.pe = null;
|
|
|
3951 |
}
|
|
|
3952 |
|
|
|
3953 |
/** Returns true if field pe is set (has been asigned a value) and false otherwise */
|
|
|
3954 |
public boolean isSetPe() {
|
|
|
3955 |
return this.pe != null;
|
|
|
3956 |
}
|
|
|
3957 |
|
|
|
3958 |
public void setPeIsSet(boolean value) {
|
|
|
3959 |
if (!value) {
|
|
|
3960 |
this.pe = null;
|
|
|
3961 |
}
|
|
|
3962 |
}
|
|
|
3963 |
|
|
|
3964 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3965 |
switch (field) {
|
|
|
3966 |
case SUCCESS:
|
|
|
3967 |
if (value == null) {
|
|
|
3968 |
unsetSuccess();
|
|
|
3969 |
} else {
|
|
|
3970 |
setSuccess((List<Payment>)value);
|
|
|
3971 |
}
|
|
|
3972 |
break;
|
|
|
3973 |
|
|
|
3974 |
case PE:
|
|
|
3975 |
if (value == null) {
|
|
|
3976 |
unsetPe();
|
|
|
3977 |
} else {
|
|
|
3978 |
setPe((PaymentException)value);
|
|
|
3979 |
}
|
|
|
3980 |
break;
|
|
|
3981 |
|
|
|
3982 |
}
|
|
|
3983 |
}
|
|
|
3984 |
|
|
|
3985 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
3986 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
3987 |
}
|
|
|
3988 |
|
|
|
3989 |
public Object getFieldValue(_Fields field) {
|
|
|
3990 |
switch (field) {
|
|
|
3991 |
case SUCCESS:
|
|
|
3992 |
return getSuccess();
|
|
|
3993 |
|
|
|
3994 |
case PE:
|
|
|
3995 |
return getPe();
|
|
|
3996 |
|
|
|
3997 |
}
|
|
|
3998 |
throw new IllegalStateException();
|
|
|
3999 |
}
|
|
|
4000 |
|
|
|
4001 |
public Object getFieldValue(int fieldId) {
|
|
|
4002 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
4003 |
}
|
|
|
4004 |
|
|
|
4005 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
4006 |
public boolean isSet(_Fields field) {
|
|
|
4007 |
switch (field) {
|
|
|
4008 |
case SUCCESS:
|
|
|
4009 |
return isSetSuccess();
|
|
|
4010 |
case PE:
|
|
|
4011 |
return isSetPe();
|
|
|
4012 |
}
|
|
|
4013 |
throw new IllegalStateException();
|
|
|
4014 |
}
|
|
|
4015 |
|
|
|
4016 |
public boolean isSet(int fieldID) {
|
|
|
4017 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
4018 |
}
|
|
|
4019 |
|
|
|
4020 |
@Override
|
|
|
4021 |
public boolean equals(Object that) {
|
|
|
4022 |
if (that == null)
|
|
|
4023 |
return false;
|
|
|
4024 |
if (that instanceof getPayments_result)
|
|
|
4025 |
return this.equals((getPayments_result)that);
|
|
|
4026 |
return false;
|
|
|
4027 |
}
|
|
|
4028 |
|
|
|
4029 |
public boolean equals(getPayments_result that) {
|
|
|
4030 |
if (that == null)
|
|
|
4031 |
return false;
|
|
|
4032 |
|
|
|
4033 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4034 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
4035 |
if (this_present_success || that_present_success) {
|
|
|
4036 |
if (!(this_present_success && that_present_success))
|
|
|
4037 |
return false;
|
|
|
4038 |
if (!this.success.equals(that.success))
|
|
|
4039 |
return false;
|
|
|
4040 |
}
|
|
|
4041 |
|
|
|
4042 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
4043 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
4044 |
if (this_present_pe || that_present_pe) {
|
|
|
4045 |
if (!(this_present_pe && that_present_pe))
|
|
|
4046 |
return false;
|
|
|
4047 |
if (!this.pe.equals(that.pe))
|
|
|
4048 |
return false;
|
|
|
4049 |
}
|
|
|
4050 |
|
|
|
4051 |
return true;
|
|
|
4052 |
}
|
|
|
4053 |
|
|
|
4054 |
@Override
|
|
|
4055 |
public int hashCode() {
|
|
|
4056 |
return 0;
|
|
|
4057 |
}
|
|
|
4058 |
|
| 695 |
rajveer |
4059 |
public int compareTo(getPayments_result other) {
|
| 123 |
ashish |
4060 |
if (!getClass().equals(other.getClass())) {
|
|
|
4061 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4062 |
}
|
|
|
4063 |
|
|
|
4064 |
int lastComparison = 0;
|
| 695 |
rajveer |
4065 |
getPayments_result typedOther = (getPayments_result)other;
|
| 123 |
ashish |
4066 |
|
| 695 |
rajveer |
4067 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
|
| 123 |
ashish |
4068 |
if (lastComparison != 0) {
|
|
|
4069 |
return lastComparison;
|
|
|
4070 |
}
|
| 695 |
rajveer |
4071 |
lastComparison = TBaseHelper.compareTo(success, typedOther.success);
|
| 123 |
ashish |
4072 |
if (lastComparison != 0) {
|
|
|
4073 |
return lastComparison;
|
|
|
4074 |
}
|
| 695 |
rajveer |
4075 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
|
|
|
4076 |
if (lastComparison != 0) {
|
|
|
4077 |
return lastComparison;
|
| 123 |
ashish |
4078 |
}
|
| 695 |
rajveer |
4079 |
lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
|
|
|
4080 |
if (lastComparison != 0) {
|
|
|
4081 |
return lastComparison;
|
| 123 |
ashish |
4082 |
}
|
|
|
4083 |
return 0;
|
|
|
4084 |
}
|
|
|
4085 |
|
|
|
4086 |
public void read(TProtocol iprot) throws TException {
|
|
|
4087 |
TField field;
|
|
|
4088 |
iprot.readStructBegin();
|
|
|
4089 |
while (true)
|
|
|
4090 |
{
|
|
|
4091 |
field = iprot.readFieldBegin();
|
|
|
4092 |
if (field.type == TType.STOP) {
|
|
|
4093 |
break;
|
|
|
4094 |
}
|
|
|
4095 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
4096 |
if (fieldId == null) {
|
|
|
4097 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
4098 |
} else {
|
|
|
4099 |
switch (fieldId) {
|
|
|
4100 |
case SUCCESS:
|
| 420 |
ashish |
4101 |
if (field.type == TType.LIST) {
|
|
|
4102 |
{
|
| 695 |
rajveer |
4103 |
TList _list12 = iprot.readListBegin();
|
|
|
4104 |
this.success = new ArrayList<Payment>(_list12.size);
|
|
|
4105 |
for (int _i13 = 0; _i13 < _list12.size; ++_i13)
|
| 420 |
ashish |
4106 |
{
|
| 695 |
rajveer |
4107 |
Payment _elem14;
|
|
|
4108 |
_elem14 = new Payment();
|
|
|
4109 |
_elem14.read(iprot);
|
|
|
4110 |
this.success.add(_elem14);
|
| 420 |
ashish |
4111 |
}
|
|
|
4112 |
iprot.readListEnd();
|
|
|
4113 |
}
|
| 123 |
ashish |
4114 |
} else {
|
|
|
4115 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
4116 |
}
|
|
|
4117 |
break;
|
|
|
4118 |
case PE:
|
|
|
4119 |
if (field.type == TType.STRUCT) {
|
|
|
4120 |
this.pe = new PaymentException();
|
|
|
4121 |
this.pe.read(iprot);
|
|
|
4122 |
} else {
|
|
|
4123 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
4124 |
}
|
|
|
4125 |
break;
|
|
|
4126 |
}
|
|
|
4127 |
iprot.readFieldEnd();
|
|
|
4128 |
}
|
|
|
4129 |
}
|
|
|
4130 |
iprot.readStructEnd();
|
|
|
4131 |
validate();
|
|
|
4132 |
}
|
|
|
4133 |
|
|
|
4134 |
public void write(TProtocol oprot) throws TException {
|
|
|
4135 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4136 |
|
|
|
4137 |
if (this.isSetSuccess()) {
|
|
|
4138 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 420 |
ashish |
4139 |
{
|
|
|
4140 |
oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
|
| 695 |
rajveer |
4141 |
for (Payment _iter15 : this.success)
|
| 420 |
ashish |
4142 |
{
|
| 695 |
rajveer |
4143 |
_iter15.write(oprot);
|
| 420 |
ashish |
4144 |
}
|
|
|
4145 |
oprot.writeListEnd();
|
|
|
4146 |
}
|
| 123 |
ashish |
4147 |
oprot.writeFieldEnd();
|
|
|
4148 |
} else if (this.isSetPe()) {
|
|
|
4149 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
4150 |
this.pe.write(oprot);
|
|
|
4151 |
oprot.writeFieldEnd();
|
|
|
4152 |
}
|
|
|
4153 |
oprot.writeFieldStop();
|
|
|
4154 |
oprot.writeStructEnd();
|
|
|
4155 |
}
|
|
|
4156 |
|
|
|
4157 |
@Override
|
|
|
4158 |
public String toString() {
|
| 695 |
rajveer |
4159 |
StringBuilder sb = new StringBuilder("getPayments_result(");
|
| 123 |
ashish |
4160 |
boolean first = true;
|
|
|
4161 |
|
|
|
4162 |
sb.append("success:");
|
|
|
4163 |
if (this.success == null) {
|
|
|
4164 |
sb.append("null");
|
|
|
4165 |
} else {
|
|
|
4166 |
sb.append(this.success);
|
|
|
4167 |
}
|
|
|
4168 |
first = false;
|
|
|
4169 |
if (!first) sb.append(", ");
|
|
|
4170 |
sb.append("pe:");
|
|
|
4171 |
if (this.pe == null) {
|
|
|
4172 |
sb.append("null");
|
|
|
4173 |
} else {
|
|
|
4174 |
sb.append(this.pe);
|
|
|
4175 |
}
|
|
|
4176 |
first = false;
|
|
|
4177 |
sb.append(")");
|
|
|
4178 |
return sb.toString();
|
|
|
4179 |
}
|
|
|
4180 |
|
|
|
4181 |
public void validate() throws TException {
|
|
|
4182 |
// check for required fields
|
|
|
4183 |
}
|
|
|
4184 |
|
|
|
4185 |
}
|
|
|
4186 |
|
| 695 |
rajveer |
4187 |
public static class getPaymentGateway_args implements TBase<getPaymentGateway_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPaymentGateway_args> {
|
|
|
4188 |
private static final TStruct STRUCT_DESC = new TStruct("getPaymentGateway_args");
|
| 123 |
ashish |
4189 |
|
| 420 |
ashish |
4190 |
private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
|
| 123 |
ashish |
4191 |
|
| 420 |
ashish |
4192 |
private long id;
|
| 123 |
ashish |
4193 |
|
|
|
4194 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
4195 |
public enum _Fields implements TFieldIdEnum {
|
| 695 |
rajveer |
4196 |
ID((short)1, "id");
|
| 123 |
ashish |
4197 |
|
|
|
4198 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
4199 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4200 |
|
|
|
4201 |
static {
|
|
|
4202 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4203 |
byId.put((int)field._thriftId, field);
|
|
|
4204 |
byName.put(field.getFieldName(), field);
|
|
|
4205 |
}
|
|
|
4206 |
}
|
|
|
4207 |
|
|
|
4208 |
/**
|
|
|
4209 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4210 |
*/
|
|
|
4211 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
4212 |
return byId.get(fieldId);
|
|
|
4213 |
}
|
|
|
4214 |
|
|
|
4215 |
/**
|
|
|
4216 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4217 |
* if it is not found.
|
|
|
4218 |
*/
|
|
|
4219 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4220 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4221 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4222 |
return fields;
|
|
|
4223 |
}
|
|
|
4224 |
|
|
|
4225 |
/**
|
|
|
4226 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4227 |
*/
|
|
|
4228 |
public static _Fields findByName(String name) {
|
|
|
4229 |
return byName.get(name);
|
|
|
4230 |
}
|
|
|
4231 |
|
|
|
4232 |
private final short _thriftId;
|
|
|
4233 |
private final String _fieldName;
|
|
|
4234 |
|
|
|
4235 |
_Fields(short thriftId, String fieldName) {
|
|
|
4236 |
_thriftId = thriftId;
|
|
|
4237 |
_fieldName = fieldName;
|
|
|
4238 |
}
|
|
|
4239 |
|
|
|
4240 |
public short getThriftFieldId() {
|
|
|
4241 |
return _thriftId;
|
|
|
4242 |
}
|
|
|
4243 |
|
|
|
4244 |
public String getFieldName() {
|
|
|
4245 |
return _fieldName;
|
|
|
4246 |
}
|
|
|
4247 |
}
|
|
|
4248 |
|
|
|
4249 |
// isset id assignments
|
| 420 |
ashish |
4250 |
private static final int __ID_ISSET_ID = 0;
|
| 123 |
ashish |
4251 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
4252 |
|
|
|
4253 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
| 420 |
ashish |
4254 |
put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT,
|
| 123 |
ashish |
4255 |
new FieldValueMetaData(TType.I64)));
|
|
|
4256 |
}});
|
|
|
4257 |
|
|
|
4258 |
static {
|
| 695 |
rajveer |
4259 |
FieldMetaData.addStructMetaDataMap(getPaymentGateway_args.class, metaDataMap);
|
| 123 |
ashish |
4260 |
}
|
|
|
4261 |
|
| 695 |
rajveer |
4262 |
public getPaymentGateway_args() {
|
| 123 |
ashish |
4263 |
}
|
|
|
4264 |
|
| 695 |
rajveer |
4265 |
public getPaymentGateway_args(
|
|
|
4266 |
long id)
|
| 123 |
ashish |
4267 |
{
|
|
|
4268 |
this();
|
| 420 |
ashish |
4269 |
this.id = id;
|
|
|
4270 |
setIdIsSet(true);
|
| 123 |
ashish |
4271 |
}
|
|
|
4272 |
|
|
|
4273 |
/**
|
|
|
4274 |
* Performs a deep copy on <i>other</i>.
|
|
|
4275 |
*/
|
| 695 |
rajveer |
4276 |
public getPaymentGateway_args(getPaymentGateway_args other) {
|
| 123 |
ashish |
4277 |
__isset_bit_vector.clear();
|
|
|
4278 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 420 |
ashish |
4279 |
this.id = other.id;
|
| 123 |
ashish |
4280 |
}
|
|
|
4281 |
|
| 695 |
rajveer |
4282 |
public getPaymentGateway_args deepCopy() {
|
|
|
4283 |
return new getPaymentGateway_args(this);
|
| 123 |
ashish |
4284 |
}
|
|
|
4285 |
|
|
|
4286 |
@Deprecated
|
| 695 |
rajveer |
4287 |
public getPaymentGateway_args clone() {
|
|
|
4288 |
return new getPaymentGateway_args(this);
|
| 123 |
ashish |
4289 |
}
|
|
|
4290 |
|
| 420 |
ashish |
4291 |
public long getId() {
|
|
|
4292 |
return this.id;
|
| 123 |
ashish |
4293 |
}
|
|
|
4294 |
|
| 695 |
rajveer |
4295 |
public getPaymentGateway_args setId(long id) {
|
| 420 |
ashish |
4296 |
this.id = id;
|
|
|
4297 |
setIdIsSet(true);
|
| 123 |
ashish |
4298 |
return this;
|
|
|
4299 |
}
|
|
|
4300 |
|
| 420 |
ashish |
4301 |
public void unsetId() {
|
|
|
4302 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
| 123 |
ashish |
4303 |
}
|
|
|
4304 |
|
| 420 |
ashish |
4305 |
/** Returns true if field id is set (has been asigned a value) and false otherwise */
|
|
|
4306 |
public boolean isSetId() {
|
|
|
4307 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
| 123 |
ashish |
4308 |
}
|
|
|
4309 |
|
| 420 |
ashish |
4310 |
public void setIdIsSet(boolean value) {
|
|
|
4311 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
| 123 |
ashish |
4312 |
}
|
|
|
4313 |
|
|
|
4314 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4315 |
switch (field) {
|
| 420 |
ashish |
4316 |
case ID:
|
| 123 |
ashish |
4317 |
if (value == null) {
|
| 420 |
ashish |
4318 |
unsetId();
|
| 123 |
ashish |
4319 |
} else {
|
| 420 |
ashish |
4320 |
setId((Long)value);
|
| 123 |
ashish |
4321 |
}
|
|
|
4322 |
break;
|
|
|
4323 |
|
|
|
4324 |
}
|
|
|
4325 |
}
|
|
|
4326 |
|
|
|
4327 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
4328 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
4329 |
}
|
|
|
4330 |
|
|
|
4331 |
public Object getFieldValue(_Fields field) {
|
|
|
4332 |
switch (field) {
|
| 420 |
ashish |
4333 |
case ID:
|
|
|
4334 |
return new Long(getId());
|
| 123 |
ashish |
4335 |
|
|
|
4336 |
}
|
|
|
4337 |
throw new IllegalStateException();
|
|
|
4338 |
}
|
|
|
4339 |
|
|
|
4340 |
public Object getFieldValue(int fieldId) {
|
|
|
4341 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
4342 |
}
|
|
|
4343 |
|
|
|
4344 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
4345 |
public boolean isSet(_Fields field) {
|
|
|
4346 |
switch (field) {
|
| 420 |
ashish |
4347 |
case ID:
|
|
|
4348 |
return isSetId();
|
| 123 |
ashish |
4349 |
}
|
|
|
4350 |
throw new IllegalStateException();
|
|
|
4351 |
}
|
|
|
4352 |
|
|
|
4353 |
public boolean isSet(int fieldID) {
|
|
|
4354 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
4355 |
}
|
|
|
4356 |
|
|
|
4357 |
@Override
|
|
|
4358 |
public boolean equals(Object that) {
|
|
|
4359 |
if (that == null)
|
|
|
4360 |
return false;
|
| 695 |
rajveer |
4361 |
if (that instanceof getPaymentGateway_args)
|
|
|
4362 |
return this.equals((getPaymentGateway_args)that);
|
| 123 |
ashish |
4363 |
return false;
|
|
|
4364 |
}
|
|
|
4365 |
|
| 695 |
rajveer |
4366 |
public boolean equals(getPaymentGateway_args that) {
|
| 123 |
ashish |
4367 |
if (that == null)
|
|
|
4368 |
return false;
|
|
|
4369 |
|
| 420 |
ashish |
4370 |
boolean this_present_id = true;
|
|
|
4371 |
boolean that_present_id = true;
|
|
|
4372 |
if (this_present_id || that_present_id) {
|
|
|
4373 |
if (!(this_present_id && that_present_id))
|
| 123 |
ashish |
4374 |
return false;
|
| 420 |
ashish |
4375 |
if (this.id != that.id)
|
| 123 |
ashish |
4376 |
return false;
|
|
|
4377 |
}
|
|
|
4378 |
|
|
|
4379 |
return true;
|
|
|
4380 |
}
|
|
|
4381 |
|
|
|
4382 |
@Override
|
|
|
4383 |
public int hashCode() {
|
|
|
4384 |
return 0;
|
|
|
4385 |
}
|
|
|
4386 |
|
| 695 |
rajveer |
4387 |
public int compareTo(getPaymentGateway_args other) {
|
| 123 |
ashish |
4388 |
if (!getClass().equals(other.getClass())) {
|
|
|
4389 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4390 |
}
|
|
|
4391 |
|
|
|
4392 |
int lastComparison = 0;
|
| 695 |
rajveer |
4393 |
getPaymentGateway_args typedOther = (getPaymentGateway_args)other;
|
| 123 |
ashish |
4394 |
|
| 420 |
ashish |
4395 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
|
| 123 |
ashish |
4396 |
if (lastComparison != 0) {
|
|
|
4397 |
return lastComparison;
|
|
|
4398 |
}
|
| 420 |
ashish |
4399 |
lastComparison = TBaseHelper.compareTo(id, typedOther.id);
|
| 123 |
ashish |
4400 |
if (lastComparison != 0) {
|
|
|
4401 |
return lastComparison;
|
|
|
4402 |
}
|
|
|
4403 |
return 0;
|
|
|
4404 |
}
|
|
|
4405 |
|
|
|
4406 |
public void read(TProtocol iprot) throws TException {
|
|
|
4407 |
TField field;
|
|
|
4408 |
iprot.readStructBegin();
|
|
|
4409 |
while (true)
|
|
|
4410 |
{
|
|
|
4411 |
field = iprot.readFieldBegin();
|
|
|
4412 |
if (field.type == TType.STOP) {
|
|
|
4413 |
break;
|
|
|
4414 |
}
|
|
|
4415 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
4416 |
if (fieldId == null) {
|
|
|
4417 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
4418 |
} else {
|
|
|
4419 |
switch (fieldId) {
|
| 420 |
ashish |
4420 |
case ID:
|
| 123 |
ashish |
4421 |
if (field.type == TType.I64) {
|
| 420 |
ashish |
4422 |
this.id = iprot.readI64();
|
|
|
4423 |
setIdIsSet(true);
|
| 123 |
ashish |
4424 |
} else {
|
|
|
4425 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
4426 |
}
|
|
|
4427 |
break;
|
|
|
4428 |
}
|
|
|
4429 |
iprot.readFieldEnd();
|
|
|
4430 |
}
|
|
|
4431 |
}
|
|
|
4432 |
iprot.readStructEnd();
|
|
|
4433 |
validate();
|
|
|
4434 |
}
|
|
|
4435 |
|
|
|
4436 |
public void write(TProtocol oprot) throws TException {
|
|
|
4437 |
validate();
|
|
|
4438 |
|
|
|
4439 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 420 |
ashish |
4440 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
4441 |
oprot.writeI64(this.id);
|
| 123 |
ashish |
4442 |
oprot.writeFieldEnd();
|
|
|
4443 |
oprot.writeFieldStop();
|
|
|
4444 |
oprot.writeStructEnd();
|
|
|
4445 |
}
|
|
|
4446 |
|
|
|
4447 |
@Override
|
|
|
4448 |
public String toString() {
|
| 695 |
rajveer |
4449 |
StringBuilder sb = new StringBuilder("getPaymentGateway_args(");
|
| 123 |
ashish |
4450 |
boolean first = true;
|
|
|
4451 |
|
| 420 |
ashish |
4452 |
sb.append("id:");
|
|
|
4453 |
sb.append(this.id);
|
| 123 |
ashish |
4454 |
first = false;
|
|
|
4455 |
sb.append(")");
|
|
|
4456 |
return sb.toString();
|
|
|
4457 |
}
|
|
|
4458 |
|
|
|
4459 |
public void validate() throws TException {
|
|
|
4460 |
// check for required fields
|
|
|
4461 |
}
|
|
|
4462 |
|
|
|
4463 |
}
|
|
|
4464 |
|
| 695 |
rajveer |
4465 |
public static class getPaymentGateway_result implements TBase<getPaymentGateway_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPaymentGateway_result> {
|
|
|
4466 |
private static final TStruct STRUCT_DESC = new TStruct("getPaymentGateway_result");
|
| 123 |
ashish |
4467 |
|
| 695 |
rajveer |
4468 |
private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
|
| 123 |
ashish |
4469 |
private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
|
|
|
4470 |
|
| 695 |
rajveer |
4471 |
private PaymentGateway success;
|
| 123 |
ashish |
4472 |
private PaymentException pe;
|
|
|
4473 |
|
|
|
4474 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
4475 |
public enum _Fields implements TFieldIdEnum {
|
| 420 |
ashish |
4476 |
SUCCESS((short)0, "success"),
|
|
|
4477 |
PE((short)1, "pe");
|
|
|
4478 |
|
|
|
4479 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
4480 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4481 |
|
|
|
4482 |
static {
|
|
|
4483 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4484 |
byId.put((int)field._thriftId, field);
|
|
|
4485 |
byName.put(field.getFieldName(), field);
|
|
|
4486 |
}
|
|
|
4487 |
}
|
|
|
4488 |
|
|
|
4489 |
/**
|
|
|
4490 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4491 |
*/
|
|
|
4492 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
4493 |
return byId.get(fieldId);
|
|
|
4494 |
}
|
|
|
4495 |
|
|
|
4496 |
/**
|
|
|
4497 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4498 |
* if it is not found.
|
|
|
4499 |
*/
|
|
|
4500 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4501 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4502 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4503 |
return fields;
|
|
|
4504 |
}
|
|
|
4505 |
|
|
|
4506 |
/**
|
|
|
4507 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4508 |
*/
|
|
|
4509 |
public static _Fields findByName(String name) {
|
|
|
4510 |
return byName.get(name);
|
|
|
4511 |
}
|
|
|
4512 |
|
|
|
4513 |
private final short _thriftId;
|
|
|
4514 |
private final String _fieldName;
|
|
|
4515 |
|
|
|
4516 |
_Fields(short thriftId, String fieldName) {
|
|
|
4517 |
_thriftId = thriftId;
|
|
|
4518 |
_fieldName = fieldName;
|
|
|
4519 |
}
|
|
|
4520 |
|
|
|
4521 |
public short getThriftFieldId() {
|
|
|
4522 |
return _thriftId;
|
|
|
4523 |
}
|
|
|
4524 |
|
|
|
4525 |
public String getFieldName() {
|
|
|
4526 |
return _fieldName;
|
|
|
4527 |
}
|
|
|
4528 |
}
|
|
|
4529 |
|
|
|
4530 |
// isset id assignments
|
|
|
4531 |
|
|
|
4532 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
4533 |
put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,
|
| 695 |
rajveer |
4534 |
new StructMetaData(TType.STRUCT, PaymentGateway.class)));
|
| 420 |
ashish |
4535 |
put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT,
|
|
|
4536 |
new FieldValueMetaData(TType.STRUCT)));
|
|
|
4537 |
}});
|
|
|
4538 |
|
|
|
4539 |
static {
|
| 695 |
rajveer |
4540 |
FieldMetaData.addStructMetaDataMap(getPaymentGateway_result.class, metaDataMap);
|
| 420 |
ashish |
4541 |
}
|
|
|
4542 |
|
| 695 |
rajveer |
4543 |
public getPaymentGateway_result() {
|
| 420 |
ashish |
4544 |
}
|
|
|
4545 |
|
| 695 |
rajveer |
4546 |
public getPaymentGateway_result(
|
|
|
4547 |
PaymentGateway success,
|
| 420 |
ashish |
4548 |
PaymentException pe)
|
|
|
4549 |
{
|
|
|
4550 |
this();
|
|
|
4551 |
this.success = success;
|
|
|
4552 |
this.pe = pe;
|
|
|
4553 |
}
|
|
|
4554 |
|
|
|
4555 |
/**
|
|
|
4556 |
* Performs a deep copy on <i>other</i>.
|
|
|
4557 |
*/
|
| 695 |
rajveer |
4558 |
public getPaymentGateway_result(getPaymentGateway_result other) {
|
| 420 |
ashish |
4559 |
if (other.isSetSuccess()) {
|
| 695 |
rajveer |
4560 |
this.success = new PaymentGateway(other.success);
|
| 420 |
ashish |
4561 |
}
|
|
|
4562 |
if (other.isSetPe()) {
|
|
|
4563 |
this.pe = new PaymentException(other.pe);
|
|
|
4564 |
}
|
|
|
4565 |
}
|
|
|
4566 |
|
| 695 |
rajveer |
4567 |
public getPaymentGateway_result deepCopy() {
|
|
|
4568 |
return new getPaymentGateway_result(this);
|
| 420 |
ashish |
4569 |
}
|
|
|
4570 |
|
|
|
4571 |
@Deprecated
|
| 695 |
rajveer |
4572 |
public getPaymentGateway_result clone() {
|
|
|
4573 |
return new getPaymentGateway_result(this);
|
| 420 |
ashish |
4574 |
}
|
|
|
4575 |
|
| 695 |
rajveer |
4576 |
public PaymentGateway getSuccess() {
|
| 420 |
ashish |
4577 |
return this.success;
|
|
|
4578 |
}
|
|
|
4579 |
|
| 695 |
rajveer |
4580 |
public getPaymentGateway_result setSuccess(PaymentGateway success) {
|
| 420 |
ashish |
4581 |
this.success = success;
|
|
|
4582 |
return this;
|
|
|
4583 |
}
|
|
|
4584 |
|
|
|
4585 |
public void unsetSuccess() {
|
|
|
4586 |
this.success = null;
|
|
|
4587 |
}
|
|
|
4588 |
|
|
|
4589 |
/** Returns true if field success is set (has been asigned a value) and false otherwise */
|
|
|
4590 |
public boolean isSetSuccess() {
|
|
|
4591 |
return this.success != null;
|
|
|
4592 |
}
|
|
|
4593 |
|
|
|
4594 |
public void setSuccessIsSet(boolean value) {
|
|
|
4595 |
if (!value) {
|
|
|
4596 |
this.success = null;
|
|
|
4597 |
}
|
|
|
4598 |
}
|
|
|
4599 |
|
|
|
4600 |
public PaymentException getPe() {
|
|
|
4601 |
return this.pe;
|
|
|
4602 |
}
|
|
|
4603 |
|
| 695 |
rajveer |
4604 |
public getPaymentGateway_result setPe(PaymentException pe) {
|
| 420 |
ashish |
4605 |
this.pe = pe;
|
|
|
4606 |
return this;
|
|
|
4607 |
}
|
|
|
4608 |
|
|
|
4609 |
public void unsetPe() {
|
|
|
4610 |
this.pe = null;
|
|
|
4611 |
}
|
|
|
4612 |
|
|
|
4613 |
/** Returns true if field pe is set (has been asigned a value) and false otherwise */
|
|
|
4614 |
public boolean isSetPe() {
|
|
|
4615 |
return this.pe != null;
|
|
|
4616 |
}
|
|
|
4617 |
|
|
|
4618 |
public void setPeIsSet(boolean value) {
|
|
|
4619 |
if (!value) {
|
|
|
4620 |
this.pe = null;
|
|
|
4621 |
}
|
|
|
4622 |
}
|
|
|
4623 |
|
|
|
4624 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4625 |
switch (field) {
|
|
|
4626 |
case SUCCESS:
|
|
|
4627 |
if (value == null) {
|
|
|
4628 |
unsetSuccess();
|
|
|
4629 |
} else {
|
| 695 |
rajveer |
4630 |
setSuccess((PaymentGateway)value);
|
| 420 |
ashish |
4631 |
}
|
|
|
4632 |
break;
|
|
|
4633 |
|
|
|
4634 |
case PE:
|
|
|
4635 |
if (value == null) {
|
|
|
4636 |
unsetPe();
|
|
|
4637 |
} else {
|
|
|
4638 |
setPe((PaymentException)value);
|
|
|
4639 |
}
|
|
|
4640 |
break;
|
|
|
4641 |
|
|
|
4642 |
}
|
|
|
4643 |
}
|
|
|
4644 |
|
|
|
4645 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
4646 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
4647 |
}
|
|
|
4648 |
|
|
|
4649 |
public Object getFieldValue(_Fields field) {
|
|
|
4650 |
switch (field) {
|
|
|
4651 |
case SUCCESS:
|
|
|
4652 |
return getSuccess();
|
|
|
4653 |
|
|
|
4654 |
case PE:
|
|
|
4655 |
return getPe();
|
|
|
4656 |
|
|
|
4657 |
}
|
|
|
4658 |
throw new IllegalStateException();
|
|
|
4659 |
}
|
|
|
4660 |
|
|
|
4661 |
public Object getFieldValue(int fieldId) {
|
|
|
4662 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
4663 |
}
|
|
|
4664 |
|
|
|
4665 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
4666 |
public boolean isSet(_Fields field) {
|
|
|
4667 |
switch (field) {
|
|
|
4668 |
case SUCCESS:
|
|
|
4669 |
return isSetSuccess();
|
|
|
4670 |
case PE:
|
|
|
4671 |
return isSetPe();
|
|
|
4672 |
}
|
|
|
4673 |
throw new IllegalStateException();
|
|
|
4674 |
}
|
|
|
4675 |
|
|
|
4676 |
public boolean isSet(int fieldID) {
|
|
|
4677 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
4678 |
}
|
|
|
4679 |
|
|
|
4680 |
@Override
|
|
|
4681 |
public boolean equals(Object that) {
|
|
|
4682 |
if (that == null)
|
|
|
4683 |
return false;
|
| 695 |
rajveer |
4684 |
if (that instanceof getPaymentGateway_result)
|
|
|
4685 |
return this.equals((getPaymentGateway_result)that);
|
| 420 |
ashish |
4686 |
return false;
|
|
|
4687 |
}
|
|
|
4688 |
|
| 695 |
rajveer |
4689 |
public boolean equals(getPaymentGateway_result that) {
|
| 420 |
ashish |
4690 |
if (that == null)
|
|
|
4691 |
return false;
|
|
|
4692 |
|
|
|
4693 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4694 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
4695 |
if (this_present_success || that_present_success) {
|
|
|
4696 |
if (!(this_present_success && that_present_success))
|
|
|
4697 |
return false;
|
|
|
4698 |
if (!this.success.equals(that.success))
|
|
|
4699 |
return false;
|
|
|
4700 |
}
|
|
|
4701 |
|
|
|
4702 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
4703 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
4704 |
if (this_present_pe || that_present_pe) {
|
|
|
4705 |
if (!(this_present_pe && that_present_pe))
|
|
|
4706 |
return false;
|
|
|
4707 |
if (!this.pe.equals(that.pe))
|
|
|
4708 |
return false;
|
|
|
4709 |
}
|
|
|
4710 |
|
|
|
4711 |
return true;
|
|
|
4712 |
}
|
|
|
4713 |
|
|
|
4714 |
@Override
|
|
|
4715 |
public int hashCode() {
|
|
|
4716 |
return 0;
|
|
|
4717 |
}
|
|
|
4718 |
|
| 695 |
rajveer |
4719 |
public int compareTo(getPaymentGateway_result other) {
|
|
|
4720 |
if (!getClass().equals(other.getClass())) {
|
|
|
4721 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4722 |
}
|
|
|
4723 |
|
|
|
4724 |
int lastComparison = 0;
|
|
|
4725 |
getPaymentGateway_result typedOther = (getPaymentGateway_result)other;
|
|
|
4726 |
|
|
|
4727 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
|
|
|
4728 |
if (lastComparison != 0) {
|
|
|
4729 |
return lastComparison;
|
|
|
4730 |
}
|
|
|
4731 |
lastComparison = TBaseHelper.compareTo(success, typedOther.success);
|
|
|
4732 |
if (lastComparison != 0) {
|
|
|
4733 |
return lastComparison;
|
|
|
4734 |
}
|
|
|
4735 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
|
|
|
4736 |
if (lastComparison != 0) {
|
|
|
4737 |
return lastComparison;
|
|
|
4738 |
}
|
|
|
4739 |
lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
|
|
|
4740 |
if (lastComparison != 0) {
|
|
|
4741 |
return lastComparison;
|
|
|
4742 |
}
|
|
|
4743 |
return 0;
|
|
|
4744 |
}
|
|
|
4745 |
|
| 420 |
ashish |
4746 |
public void read(TProtocol iprot) throws TException {
|
|
|
4747 |
TField field;
|
|
|
4748 |
iprot.readStructBegin();
|
|
|
4749 |
while (true)
|
|
|
4750 |
{
|
|
|
4751 |
field = iprot.readFieldBegin();
|
|
|
4752 |
if (field.type == TType.STOP) {
|
|
|
4753 |
break;
|
|
|
4754 |
}
|
|
|
4755 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
4756 |
if (fieldId == null) {
|
|
|
4757 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
4758 |
} else {
|
|
|
4759 |
switch (fieldId) {
|
|
|
4760 |
case SUCCESS:
|
| 695 |
rajveer |
4761 |
if (field.type == TType.STRUCT) {
|
|
|
4762 |
this.success = new PaymentGateway();
|
|
|
4763 |
this.success.read(iprot);
|
| 420 |
ashish |
4764 |
} else {
|
|
|
4765 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
4766 |
}
|
|
|
4767 |
break;
|
|
|
4768 |
case PE:
|
|
|
4769 |
if (field.type == TType.STRUCT) {
|
|
|
4770 |
this.pe = new PaymentException();
|
|
|
4771 |
this.pe.read(iprot);
|
|
|
4772 |
} else {
|
|
|
4773 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
4774 |
}
|
|
|
4775 |
break;
|
|
|
4776 |
}
|
|
|
4777 |
iprot.readFieldEnd();
|
|
|
4778 |
}
|
|
|
4779 |
}
|
|
|
4780 |
iprot.readStructEnd();
|
|
|
4781 |
validate();
|
|
|
4782 |
}
|
|
|
4783 |
|
|
|
4784 |
public void write(TProtocol oprot) throws TException {
|
|
|
4785 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4786 |
|
|
|
4787 |
if (this.isSetSuccess()) {
|
|
|
4788 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 695 |
rajveer |
4789 |
this.success.write(oprot);
|
| 420 |
ashish |
4790 |
oprot.writeFieldEnd();
|
|
|
4791 |
} else if (this.isSetPe()) {
|
|
|
4792 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
4793 |
this.pe.write(oprot);
|
|
|
4794 |
oprot.writeFieldEnd();
|
|
|
4795 |
}
|
|
|
4796 |
oprot.writeFieldStop();
|
|
|
4797 |
oprot.writeStructEnd();
|
|
|
4798 |
}
|
|
|
4799 |
|
|
|
4800 |
@Override
|
|
|
4801 |
public String toString() {
|
| 695 |
rajveer |
4802 |
StringBuilder sb = new StringBuilder("getPaymentGateway_result(");
|
| 420 |
ashish |
4803 |
boolean first = true;
|
|
|
4804 |
|
|
|
4805 |
sb.append("success:");
|
|
|
4806 |
if (this.success == null) {
|
|
|
4807 |
sb.append("null");
|
|
|
4808 |
} else {
|
|
|
4809 |
sb.append(this.success);
|
|
|
4810 |
}
|
|
|
4811 |
first = false;
|
|
|
4812 |
if (!first) sb.append(", ");
|
|
|
4813 |
sb.append("pe:");
|
|
|
4814 |
if (this.pe == null) {
|
|
|
4815 |
sb.append("null");
|
|
|
4816 |
} else {
|
|
|
4817 |
sb.append(this.pe);
|
|
|
4818 |
}
|
|
|
4819 |
first = false;
|
|
|
4820 |
sb.append(")");
|
|
|
4821 |
return sb.toString();
|
|
|
4822 |
}
|
|
|
4823 |
|
|
|
4824 |
public void validate() throws TException {
|
|
|
4825 |
// check for required fields
|
|
|
4826 |
}
|
|
|
4827 |
|
|
|
4828 |
}
|
|
|
4829 |
|
| 695 |
rajveer |
4830 |
public static class getPayment_args implements TBase<getPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPayment_args> {
|
|
|
4831 |
private static final TStruct STRUCT_DESC = new TStruct("getPayment_args");
|
| 420 |
ashish |
4832 |
|
|
|
4833 |
private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
|
|
|
4834 |
|
|
|
4835 |
private long id;
|
|
|
4836 |
|
|
|
4837 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
4838 |
public enum _Fields implements TFieldIdEnum {
|
|
|
4839 |
ID((short)1, "id");
|
|
|
4840 |
|
|
|
4841 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
4842 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4843 |
|
|
|
4844 |
static {
|
|
|
4845 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4846 |
byId.put((int)field._thriftId, field);
|
|
|
4847 |
byName.put(field.getFieldName(), field);
|
|
|
4848 |
}
|
|
|
4849 |
}
|
|
|
4850 |
|
|
|
4851 |
/**
|
|
|
4852 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4853 |
*/
|
|
|
4854 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
4855 |
return byId.get(fieldId);
|
|
|
4856 |
}
|
|
|
4857 |
|
|
|
4858 |
/**
|
|
|
4859 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4860 |
* if it is not found.
|
|
|
4861 |
*/
|
|
|
4862 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4863 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4864 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4865 |
return fields;
|
|
|
4866 |
}
|
|
|
4867 |
|
|
|
4868 |
/**
|
|
|
4869 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4870 |
*/
|
|
|
4871 |
public static _Fields findByName(String name) {
|
|
|
4872 |
return byName.get(name);
|
|
|
4873 |
}
|
|
|
4874 |
|
|
|
4875 |
private final short _thriftId;
|
|
|
4876 |
private final String _fieldName;
|
|
|
4877 |
|
|
|
4878 |
_Fields(short thriftId, String fieldName) {
|
|
|
4879 |
_thriftId = thriftId;
|
|
|
4880 |
_fieldName = fieldName;
|
|
|
4881 |
}
|
|
|
4882 |
|
|
|
4883 |
public short getThriftFieldId() {
|
|
|
4884 |
return _thriftId;
|
|
|
4885 |
}
|
|
|
4886 |
|
|
|
4887 |
public String getFieldName() {
|
|
|
4888 |
return _fieldName;
|
|
|
4889 |
}
|
|
|
4890 |
}
|
|
|
4891 |
|
|
|
4892 |
// isset id assignments
|
|
|
4893 |
private static final int __ID_ISSET_ID = 0;
|
|
|
4894 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
4895 |
|
|
|
4896 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
4897 |
put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT,
|
|
|
4898 |
new FieldValueMetaData(TType.I64)));
|
|
|
4899 |
}});
|
|
|
4900 |
|
|
|
4901 |
static {
|
| 695 |
rajveer |
4902 |
FieldMetaData.addStructMetaDataMap(getPayment_args.class, metaDataMap);
|
| 420 |
ashish |
4903 |
}
|
|
|
4904 |
|
| 695 |
rajveer |
4905 |
public getPayment_args() {
|
| 420 |
ashish |
4906 |
}
|
|
|
4907 |
|
| 695 |
rajveer |
4908 |
public getPayment_args(
|
| 420 |
ashish |
4909 |
long id)
|
|
|
4910 |
{
|
|
|
4911 |
this();
|
|
|
4912 |
this.id = id;
|
|
|
4913 |
setIdIsSet(true);
|
|
|
4914 |
}
|
|
|
4915 |
|
|
|
4916 |
/**
|
|
|
4917 |
* Performs a deep copy on <i>other</i>.
|
|
|
4918 |
*/
|
| 695 |
rajveer |
4919 |
public getPayment_args(getPayment_args other) {
|
| 420 |
ashish |
4920 |
__isset_bit_vector.clear();
|
|
|
4921 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
4922 |
this.id = other.id;
|
|
|
4923 |
}
|
|
|
4924 |
|
| 695 |
rajveer |
4925 |
public getPayment_args deepCopy() {
|
|
|
4926 |
return new getPayment_args(this);
|
| 420 |
ashish |
4927 |
}
|
|
|
4928 |
|
|
|
4929 |
@Deprecated
|
| 695 |
rajveer |
4930 |
public getPayment_args clone() {
|
|
|
4931 |
return new getPayment_args(this);
|
| 420 |
ashish |
4932 |
}
|
|
|
4933 |
|
|
|
4934 |
public long getId() {
|
|
|
4935 |
return this.id;
|
|
|
4936 |
}
|
|
|
4937 |
|
| 695 |
rajveer |
4938 |
public getPayment_args setId(long id) {
|
| 420 |
ashish |
4939 |
this.id = id;
|
|
|
4940 |
setIdIsSet(true);
|
|
|
4941 |
return this;
|
|
|
4942 |
}
|
|
|
4943 |
|
|
|
4944 |
public void unsetId() {
|
|
|
4945 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
4946 |
}
|
|
|
4947 |
|
|
|
4948 |
/** Returns true if field id is set (has been asigned a value) and false otherwise */
|
|
|
4949 |
public boolean isSetId() {
|
|
|
4950 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
4951 |
}
|
|
|
4952 |
|
|
|
4953 |
public void setIdIsSet(boolean value) {
|
|
|
4954 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
4955 |
}
|
|
|
4956 |
|
|
|
4957 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4958 |
switch (field) {
|
|
|
4959 |
case ID:
|
|
|
4960 |
if (value == null) {
|
|
|
4961 |
unsetId();
|
|
|
4962 |
} else {
|
|
|
4963 |
setId((Long)value);
|
|
|
4964 |
}
|
|
|
4965 |
break;
|
|
|
4966 |
|
|
|
4967 |
}
|
|
|
4968 |
}
|
|
|
4969 |
|
|
|
4970 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
4971 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
4972 |
}
|
|
|
4973 |
|
|
|
4974 |
public Object getFieldValue(_Fields field) {
|
|
|
4975 |
switch (field) {
|
|
|
4976 |
case ID:
|
|
|
4977 |
return new Long(getId());
|
|
|
4978 |
|
|
|
4979 |
}
|
|
|
4980 |
throw new IllegalStateException();
|
|
|
4981 |
}
|
|
|
4982 |
|
|
|
4983 |
public Object getFieldValue(int fieldId) {
|
|
|
4984 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
4985 |
}
|
|
|
4986 |
|
|
|
4987 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
4988 |
public boolean isSet(_Fields field) {
|
|
|
4989 |
switch (field) {
|
|
|
4990 |
case ID:
|
|
|
4991 |
return isSetId();
|
|
|
4992 |
}
|
|
|
4993 |
throw new IllegalStateException();
|
|
|
4994 |
}
|
|
|
4995 |
|
|
|
4996 |
public boolean isSet(int fieldID) {
|
|
|
4997 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
4998 |
}
|
|
|
4999 |
|
|
|
5000 |
@Override
|
|
|
5001 |
public boolean equals(Object that) {
|
|
|
5002 |
if (that == null)
|
|
|
5003 |
return false;
|
| 695 |
rajveer |
5004 |
if (that instanceof getPayment_args)
|
|
|
5005 |
return this.equals((getPayment_args)that);
|
| 420 |
ashish |
5006 |
return false;
|
|
|
5007 |
}
|
|
|
5008 |
|
| 695 |
rajveer |
5009 |
public boolean equals(getPayment_args that) {
|
| 420 |
ashish |
5010 |
if (that == null)
|
|
|
5011 |
return false;
|
|
|
5012 |
|
|
|
5013 |
boolean this_present_id = true;
|
|
|
5014 |
boolean that_present_id = true;
|
|
|
5015 |
if (this_present_id || that_present_id) {
|
|
|
5016 |
if (!(this_present_id && that_present_id))
|
|
|
5017 |
return false;
|
|
|
5018 |
if (this.id != that.id)
|
|
|
5019 |
return false;
|
|
|
5020 |
}
|
|
|
5021 |
|
|
|
5022 |
return true;
|
|
|
5023 |
}
|
|
|
5024 |
|
|
|
5025 |
@Override
|
|
|
5026 |
public int hashCode() {
|
|
|
5027 |
return 0;
|
|
|
5028 |
}
|
|
|
5029 |
|
| 695 |
rajveer |
5030 |
public int compareTo(getPayment_args other) {
|
| 420 |
ashish |
5031 |
if (!getClass().equals(other.getClass())) {
|
|
|
5032 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5033 |
}
|
|
|
5034 |
|
|
|
5035 |
int lastComparison = 0;
|
| 695 |
rajveer |
5036 |
getPayment_args typedOther = (getPayment_args)other;
|
| 420 |
ashish |
5037 |
|
|
|
5038 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
|
|
|
5039 |
if (lastComparison != 0) {
|
|
|
5040 |
return lastComparison;
|
|
|
5041 |
}
|
|
|
5042 |
lastComparison = TBaseHelper.compareTo(id, typedOther.id);
|
|
|
5043 |
if (lastComparison != 0) {
|
|
|
5044 |
return lastComparison;
|
|
|
5045 |
}
|
|
|
5046 |
return 0;
|
|
|
5047 |
}
|
|
|
5048 |
|
|
|
5049 |
public void read(TProtocol iprot) throws TException {
|
|
|
5050 |
TField field;
|
|
|
5051 |
iprot.readStructBegin();
|
|
|
5052 |
while (true)
|
|
|
5053 |
{
|
|
|
5054 |
field = iprot.readFieldBegin();
|
|
|
5055 |
if (field.type == TType.STOP) {
|
|
|
5056 |
break;
|
|
|
5057 |
}
|
|
|
5058 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
5059 |
if (fieldId == null) {
|
|
|
5060 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
5061 |
} else {
|
|
|
5062 |
switch (fieldId) {
|
|
|
5063 |
case ID:
|
|
|
5064 |
if (field.type == TType.I64) {
|
|
|
5065 |
this.id = iprot.readI64();
|
|
|
5066 |
setIdIsSet(true);
|
|
|
5067 |
} else {
|
|
|
5068 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
5069 |
}
|
|
|
5070 |
break;
|
|
|
5071 |
}
|
|
|
5072 |
iprot.readFieldEnd();
|
|
|
5073 |
}
|
|
|
5074 |
}
|
|
|
5075 |
iprot.readStructEnd();
|
|
|
5076 |
validate();
|
|
|
5077 |
}
|
|
|
5078 |
|
|
|
5079 |
public void write(TProtocol oprot) throws TException {
|
|
|
5080 |
validate();
|
|
|
5081 |
|
|
|
5082 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5083 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
5084 |
oprot.writeI64(this.id);
|
|
|
5085 |
oprot.writeFieldEnd();
|
|
|
5086 |
oprot.writeFieldStop();
|
|
|
5087 |
oprot.writeStructEnd();
|
|
|
5088 |
}
|
|
|
5089 |
|
|
|
5090 |
@Override
|
|
|
5091 |
public String toString() {
|
| 695 |
rajveer |
5092 |
StringBuilder sb = new StringBuilder("getPayment_args(");
|
| 420 |
ashish |
5093 |
boolean first = true;
|
|
|
5094 |
|
|
|
5095 |
sb.append("id:");
|
|
|
5096 |
sb.append(this.id);
|
|
|
5097 |
first = false;
|
|
|
5098 |
sb.append(")");
|
|
|
5099 |
return sb.toString();
|
|
|
5100 |
}
|
|
|
5101 |
|
|
|
5102 |
public void validate() throws TException {
|
|
|
5103 |
// check for required fields
|
|
|
5104 |
}
|
|
|
5105 |
|
|
|
5106 |
}
|
|
|
5107 |
|
| 695 |
rajveer |
5108 |
public static class getPayment_result implements TBase<getPayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPayment_result> {
|
|
|
5109 |
private static final TStruct STRUCT_DESC = new TStruct("getPayment_result");
|
| 420 |
ashish |
5110 |
|
|
|
5111 |
private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
|
|
|
5112 |
private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
|
|
|
5113 |
|
| 695 |
rajveer |
5114 |
private Payment success;
|
| 420 |
ashish |
5115 |
private PaymentException pe;
|
|
|
5116 |
|
|
|
5117 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
5118 |
public enum _Fields implements TFieldIdEnum {
|
|
|
5119 |
SUCCESS((short)0, "success"),
|
|
|
5120 |
PE((short)1, "pe");
|
|
|
5121 |
|
|
|
5122 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
5123 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5124 |
|
|
|
5125 |
static {
|
|
|
5126 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5127 |
byId.put((int)field._thriftId, field);
|
|
|
5128 |
byName.put(field.getFieldName(), field);
|
|
|
5129 |
}
|
|
|
5130 |
}
|
|
|
5131 |
|
|
|
5132 |
/**
|
|
|
5133 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5134 |
*/
|
|
|
5135 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
5136 |
return byId.get(fieldId);
|
|
|
5137 |
}
|
|
|
5138 |
|
|
|
5139 |
/**
|
|
|
5140 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5141 |
* if it is not found.
|
|
|
5142 |
*/
|
|
|
5143 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5144 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5145 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5146 |
return fields;
|
|
|
5147 |
}
|
|
|
5148 |
|
|
|
5149 |
/**
|
|
|
5150 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5151 |
*/
|
|
|
5152 |
public static _Fields findByName(String name) {
|
|
|
5153 |
return byName.get(name);
|
|
|
5154 |
}
|
|
|
5155 |
|
|
|
5156 |
private final short _thriftId;
|
|
|
5157 |
private final String _fieldName;
|
|
|
5158 |
|
|
|
5159 |
_Fields(short thriftId, String fieldName) {
|
|
|
5160 |
_thriftId = thriftId;
|
|
|
5161 |
_fieldName = fieldName;
|
|
|
5162 |
}
|
|
|
5163 |
|
|
|
5164 |
public short getThriftFieldId() {
|
|
|
5165 |
return _thriftId;
|
|
|
5166 |
}
|
|
|
5167 |
|
|
|
5168 |
public String getFieldName() {
|
|
|
5169 |
return _fieldName;
|
|
|
5170 |
}
|
|
|
5171 |
}
|
|
|
5172 |
|
|
|
5173 |
// isset id assignments
|
|
|
5174 |
|
|
|
5175 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
5176 |
put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,
|
| 695 |
rajveer |
5177 |
new StructMetaData(TType.STRUCT, Payment.class)));
|
| 420 |
ashish |
5178 |
put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT,
|
|
|
5179 |
new FieldValueMetaData(TType.STRUCT)));
|
|
|
5180 |
}});
|
|
|
5181 |
|
|
|
5182 |
static {
|
| 695 |
rajveer |
5183 |
FieldMetaData.addStructMetaDataMap(getPayment_result.class, metaDataMap);
|
| 420 |
ashish |
5184 |
}
|
|
|
5185 |
|
| 695 |
rajveer |
5186 |
public getPayment_result() {
|
| 420 |
ashish |
5187 |
}
|
|
|
5188 |
|
| 695 |
rajveer |
5189 |
public getPayment_result(
|
|
|
5190 |
Payment success,
|
| 420 |
ashish |
5191 |
PaymentException pe)
|
|
|
5192 |
{
|
|
|
5193 |
this();
|
|
|
5194 |
this.success = success;
|
|
|
5195 |
this.pe = pe;
|
|
|
5196 |
}
|
|
|
5197 |
|
|
|
5198 |
/**
|
|
|
5199 |
* Performs a deep copy on <i>other</i>.
|
|
|
5200 |
*/
|
| 695 |
rajveer |
5201 |
public getPayment_result(getPayment_result other) {
|
| 420 |
ashish |
5202 |
if (other.isSetSuccess()) {
|
| 695 |
rajveer |
5203 |
this.success = new Payment(other.success);
|
| 420 |
ashish |
5204 |
}
|
|
|
5205 |
if (other.isSetPe()) {
|
|
|
5206 |
this.pe = new PaymentException(other.pe);
|
|
|
5207 |
}
|
|
|
5208 |
}
|
|
|
5209 |
|
| 695 |
rajveer |
5210 |
public getPayment_result deepCopy() {
|
|
|
5211 |
return new getPayment_result(this);
|
| 420 |
ashish |
5212 |
}
|
|
|
5213 |
|
|
|
5214 |
@Deprecated
|
| 695 |
rajveer |
5215 |
public getPayment_result clone() {
|
|
|
5216 |
return new getPayment_result(this);
|
| 420 |
ashish |
5217 |
}
|
|
|
5218 |
|
| 695 |
rajveer |
5219 |
public Payment getSuccess() {
|
| 420 |
ashish |
5220 |
return this.success;
|
|
|
5221 |
}
|
|
|
5222 |
|
| 695 |
rajveer |
5223 |
public getPayment_result setSuccess(Payment success) {
|
| 420 |
ashish |
5224 |
this.success = success;
|
|
|
5225 |
return this;
|
|
|
5226 |
}
|
|
|
5227 |
|
|
|
5228 |
public void unsetSuccess() {
|
|
|
5229 |
this.success = null;
|
|
|
5230 |
}
|
|
|
5231 |
|
|
|
5232 |
/** Returns true if field success is set (has been asigned a value) and false otherwise */
|
|
|
5233 |
public boolean isSetSuccess() {
|
|
|
5234 |
return this.success != null;
|
|
|
5235 |
}
|
|
|
5236 |
|
|
|
5237 |
public void setSuccessIsSet(boolean value) {
|
|
|
5238 |
if (!value) {
|
|
|
5239 |
this.success = null;
|
|
|
5240 |
}
|
|
|
5241 |
}
|
|
|
5242 |
|
|
|
5243 |
public PaymentException getPe() {
|
|
|
5244 |
return this.pe;
|
|
|
5245 |
}
|
|
|
5246 |
|
| 695 |
rajveer |
5247 |
public getPayment_result setPe(PaymentException pe) {
|
| 420 |
ashish |
5248 |
this.pe = pe;
|
|
|
5249 |
return this;
|
|
|
5250 |
}
|
|
|
5251 |
|
|
|
5252 |
public void unsetPe() {
|
|
|
5253 |
this.pe = null;
|
|
|
5254 |
}
|
|
|
5255 |
|
|
|
5256 |
/** Returns true if field pe is set (has been asigned a value) and false otherwise */
|
|
|
5257 |
public boolean isSetPe() {
|
|
|
5258 |
return this.pe != null;
|
|
|
5259 |
}
|
|
|
5260 |
|
|
|
5261 |
public void setPeIsSet(boolean value) {
|
|
|
5262 |
if (!value) {
|
|
|
5263 |
this.pe = null;
|
|
|
5264 |
}
|
|
|
5265 |
}
|
|
|
5266 |
|
|
|
5267 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5268 |
switch (field) {
|
|
|
5269 |
case SUCCESS:
|
|
|
5270 |
if (value == null) {
|
|
|
5271 |
unsetSuccess();
|
|
|
5272 |
} else {
|
| 695 |
rajveer |
5273 |
setSuccess((Payment)value);
|
| 420 |
ashish |
5274 |
}
|
|
|
5275 |
break;
|
|
|
5276 |
|
|
|
5277 |
case PE:
|
|
|
5278 |
if (value == null) {
|
|
|
5279 |
unsetPe();
|
|
|
5280 |
} else {
|
|
|
5281 |
setPe((PaymentException)value);
|
|
|
5282 |
}
|
|
|
5283 |
break;
|
|
|
5284 |
|
|
|
5285 |
}
|
|
|
5286 |
}
|
|
|
5287 |
|
|
|
5288 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
5289 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
5290 |
}
|
|
|
5291 |
|
|
|
5292 |
public Object getFieldValue(_Fields field) {
|
|
|
5293 |
switch (field) {
|
|
|
5294 |
case SUCCESS:
|
|
|
5295 |
return getSuccess();
|
|
|
5296 |
|
|
|
5297 |
case PE:
|
|
|
5298 |
return getPe();
|
|
|
5299 |
|
|
|
5300 |
}
|
|
|
5301 |
throw new IllegalStateException();
|
|
|
5302 |
}
|
|
|
5303 |
|
|
|
5304 |
public Object getFieldValue(int fieldId) {
|
|
|
5305 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
5306 |
}
|
|
|
5307 |
|
|
|
5308 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
5309 |
public boolean isSet(_Fields field) {
|
|
|
5310 |
switch (field) {
|
|
|
5311 |
case SUCCESS:
|
|
|
5312 |
return isSetSuccess();
|
|
|
5313 |
case PE:
|
|
|
5314 |
return isSetPe();
|
|
|
5315 |
}
|
|
|
5316 |
throw new IllegalStateException();
|
|
|
5317 |
}
|
|
|
5318 |
|
|
|
5319 |
public boolean isSet(int fieldID) {
|
|
|
5320 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
5321 |
}
|
|
|
5322 |
|
|
|
5323 |
@Override
|
|
|
5324 |
public boolean equals(Object that) {
|
|
|
5325 |
if (that == null)
|
|
|
5326 |
return false;
|
| 695 |
rajveer |
5327 |
if (that instanceof getPayment_result)
|
|
|
5328 |
return this.equals((getPayment_result)that);
|
| 420 |
ashish |
5329 |
return false;
|
|
|
5330 |
}
|
|
|
5331 |
|
| 695 |
rajveer |
5332 |
public boolean equals(getPayment_result that) {
|
| 420 |
ashish |
5333 |
if (that == null)
|
|
|
5334 |
return false;
|
|
|
5335 |
|
|
|
5336 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
5337 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
5338 |
if (this_present_success || that_present_success) {
|
|
|
5339 |
if (!(this_present_success && that_present_success))
|
|
|
5340 |
return false;
|
|
|
5341 |
if (!this.success.equals(that.success))
|
|
|
5342 |
return false;
|
|
|
5343 |
}
|
|
|
5344 |
|
|
|
5345 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
5346 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
5347 |
if (this_present_pe || that_present_pe) {
|
|
|
5348 |
if (!(this_present_pe && that_present_pe))
|
|
|
5349 |
return false;
|
|
|
5350 |
if (!this.pe.equals(that.pe))
|
|
|
5351 |
return false;
|
|
|
5352 |
}
|
|
|
5353 |
|
|
|
5354 |
return true;
|
|
|
5355 |
}
|
|
|
5356 |
|
|
|
5357 |
@Override
|
|
|
5358 |
public int hashCode() {
|
|
|
5359 |
return 0;
|
|
|
5360 |
}
|
|
|
5361 |
|
| 695 |
rajveer |
5362 |
public int compareTo(getPayment_result other) {
|
| 420 |
ashish |
5363 |
if (!getClass().equals(other.getClass())) {
|
|
|
5364 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5365 |
}
|
|
|
5366 |
|
|
|
5367 |
int lastComparison = 0;
|
| 695 |
rajveer |
5368 |
getPayment_result typedOther = (getPayment_result)other;
|
| 420 |
ashish |
5369 |
|
| 695 |
rajveer |
5370 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
|
| 420 |
ashish |
5371 |
if (lastComparison != 0) {
|
|
|
5372 |
return lastComparison;
|
|
|
5373 |
}
|
| 695 |
rajveer |
5374 |
lastComparison = TBaseHelper.compareTo(success, typedOther.success);
|
| 420 |
ashish |
5375 |
if (lastComparison != 0) {
|
|
|
5376 |
return lastComparison;
|
|
|
5377 |
}
|
| 695 |
rajveer |
5378 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
|
| 420 |
ashish |
5379 |
if (lastComparison != 0) {
|
|
|
5380 |
return lastComparison;
|
|
|
5381 |
}
|
| 695 |
rajveer |
5382 |
lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
|
| 420 |
ashish |
5383 |
if (lastComparison != 0) {
|
|
|
5384 |
return lastComparison;
|
|
|
5385 |
}
|
|
|
5386 |
return 0;
|
|
|
5387 |
}
|
|
|
5388 |
|
|
|
5389 |
public void read(TProtocol iprot) throws TException {
|
|
|
5390 |
TField field;
|
|
|
5391 |
iprot.readStructBegin();
|
|
|
5392 |
while (true)
|
|
|
5393 |
{
|
|
|
5394 |
field = iprot.readFieldBegin();
|
|
|
5395 |
if (field.type == TType.STOP) {
|
|
|
5396 |
break;
|
|
|
5397 |
}
|
|
|
5398 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
5399 |
if (fieldId == null) {
|
|
|
5400 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
5401 |
} else {
|
|
|
5402 |
switch (fieldId) {
|
| 695 |
rajveer |
5403 |
case SUCCESS:
|
|
|
5404 |
if (field.type == TType.STRUCT) {
|
|
|
5405 |
this.success = new Payment();
|
|
|
5406 |
this.success.read(iprot);
|
| 420 |
ashish |
5407 |
} else {
|
|
|
5408 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
5409 |
}
|
|
|
5410 |
break;
|
|
|
5411 |
case PE:
|
|
|
5412 |
if (field.type == TType.STRUCT) {
|
|
|
5413 |
this.pe = new PaymentException();
|
|
|
5414 |
this.pe.read(iprot);
|
|
|
5415 |
} else {
|
|
|
5416 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
5417 |
}
|
|
|
5418 |
break;
|
|
|
5419 |
}
|
|
|
5420 |
iprot.readFieldEnd();
|
|
|
5421 |
}
|
|
|
5422 |
}
|
|
|
5423 |
iprot.readStructEnd();
|
|
|
5424 |
validate();
|
|
|
5425 |
}
|
|
|
5426 |
|
|
|
5427 |
public void write(TProtocol oprot) throws TException {
|
|
|
5428 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5429 |
|
| 695 |
rajveer |
5430 |
if (this.isSetSuccess()) {
|
|
|
5431 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
5432 |
this.success.write(oprot);
|
|
|
5433 |
oprot.writeFieldEnd();
|
|
|
5434 |
} else if (this.isSetPe()) {
|
| 420 |
ashish |
5435 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
5436 |
this.pe.write(oprot);
|
|
|
5437 |
oprot.writeFieldEnd();
|
|
|
5438 |
}
|
|
|
5439 |
oprot.writeFieldStop();
|
|
|
5440 |
oprot.writeStructEnd();
|
|
|
5441 |
}
|
|
|
5442 |
|
|
|
5443 |
@Override
|
|
|
5444 |
public String toString() {
|
| 695 |
rajveer |
5445 |
StringBuilder sb = new StringBuilder("getPayment_result(");
|
| 420 |
ashish |
5446 |
boolean first = true;
|
|
|
5447 |
|
| 695 |
rajveer |
5448 |
sb.append("success:");
|
|
|
5449 |
if (this.success == null) {
|
|
|
5450 |
sb.append("null");
|
|
|
5451 |
} else {
|
|
|
5452 |
sb.append(this.success);
|
|
|
5453 |
}
|
|
|
5454 |
first = false;
|
|
|
5455 |
if (!first) sb.append(", ");
|
| 420 |
ashish |
5456 |
sb.append("pe:");
|
|
|
5457 |
if (this.pe == null) {
|
|
|
5458 |
sb.append("null");
|
|
|
5459 |
} else {
|
|
|
5460 |
sb.append(this.pe);
|
|
|
5461 |
}
|
|
|
5462 |
first = false;
|
|
|
5463 |
sb.append(")");
|
|
|
5464 |
return sb.toString();
|
|
|
5465 |
}
|
|
|
5466 |
|
|
|
5467 |
public void validate() throws TException {
|
|
|
5468 |
// check for required fields
|
|
|
5469 |
}
|
|
|
5470 |
|
|
|
5471 |
}
|
|
|
5472 |
|
| 695 |
rajveer |
5473 |
public static class getPaymentForTxnId_args implements TBase<getPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPaymentForTxnId_args> {
|
|
|
5474 |
private static final TStruct STRUCT_DESC = new TStruct("getPaymentForTxnId_args");
|
| 420 |
ashish |
5475 |
|
| 695 |
rajveer |
5476 |
private static final TField TXN_ID_FIELD_DESC = new TField("txnId", TType.I64, (short)1);
|
| 420 |
ashish |
5477 |
|
| 695 |
rajveer |
5478 |
private long txnId;
|
| 420 |
ashish |
5479 |
|
|
|
5480 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
5481 |
public enum _Fields implements TFieldIdEnum {
|
| 695 |
rajveer |
5482 |
TXN_ID((short)1, "txnId");
|
| 420 |
ashish |
5483 |
|
|
|
5484 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
5485 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5486 |
|
|
|
5487 |
static {
|
|
|
5488 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5489 |
byId.put((int)field._thriftId, field);
|
|
|
5490 |
byName.put(field.getFieldName(), field);
|
|
|
5491 |
}
|
|
|
5492 |
}
|
|
|
5493 |
|
|
|
5494 |
/**
|
|
|
5495 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5496 |
*/
|
|
|
5497 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
5498 |
return byId.get(fieldId);
|
|
|
5499 |
}
|
|
|
5500 |
|
|
|
5501 |
/**
|
|
|
5502 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5503 |
* if it is not found.
|
|
|
5504 |
*/
|
|
|
5505 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5506 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5507 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5508 |
return fields;
|
|
|
5509 |
}
|
|
|
5510 |
|
|
|
5511 |
/**
|
|
|
5512 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5513 |
*/
|
|
|
5514 |
public static _Fields findByName(String name) {
|
|
|
5515 |
return byName.get(name);
|
|
|
5516 |
}
|
|
|
5517 |
|
|
|
5518 |
private final short _thriftId;
|
|
|
5519 |
private final String _fieldName;
|
|
|
5520 |
|
|
|
5521 |
_Fields(short thriftId, String fieldName) {
|
|
|
5522 |
_thriftId = thriftId;
|
|
|
5523 |
_fieldName = fieldName;
|
|
|
5524 |
}
|
|
|
5525 |
|
|
|
5526 |
public short getThriftFieldId() {
|
|
|
5527 |
return _thriftId;
|
|
|
5528 |
}
|
|
|
5529 |
|
|
|
5530 |
public String getFieldName() {
|
|
|
5531 |
return _fieldName;
|
|
|
5532 |
}
|
|
|
5533 |
}
|
|
|
5534 |
|
|
|
5535 |
// isset id assignments
|
| 695 |
rajveer |
5536 |
private static final int __TXNID_ISSET_ID = 0;
|
| 420 |
ashish |
5537 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
5538 |
|
|
|
5539 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
| 695 |
rajveer |
5540 |
put(_Fields.TXN_ID, new FieldMetaData("txnId", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
5541 |
new FieldValueMetaData(TType.I64)));
|
|
|
5542 |
}});
|
|
|
5543 |
|
|
|
5544 |
static {
|
| 695 |
rajveer |
5545 |
FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_args.class, metaDataMap);
|
| 420 |
ashish |
5546 |
}
|
|
|
5547 |
|
| 695 |
rajveer |
5548 |
public getPaymentForTxnId_args() {
|
| 420 |
ashish |
5549 |
}
|
|
|
5550 |
|
| 695 |
rajveer |
5551 |
public getPaymentForTxnId_args(
|
|
|
5552 |
long txnId)
|
| 420 |
ashish |
5553 |
{
|
|
|
5554 |
this();
|
| 695 |
rajveer |
5555 |
this.txnId = txnId;
|
|
|
5556 |
setTxnIdIsSet(true);
|
| 420 |
ashish |
5557 |
}
|
|
|
5558 |
|
|
|
5559 |
/**
|
|
|
5560 |
* Performs a deep copy on <i>other</i>.
|
|
|
5561 |
*/
|
| 695 |
rajveer |
5562 |
public getPaymentForTxnId_args(getPaymentForTxnId_args other) {
|
| 420 |
ashish |
5563 |
__isset_bit_vector.clear();
|
|
|
5564 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 695 |
rajveer |
5565 |
this.txnId = other.txnId;
|
| 420 |
ashish |
5566 |
}
|
|
|
5567 |
|
| 695 |
rajveer |
5568 |
public getPaymentForTxnId_args deepCopy() {
|
|
|
5569 |
return new getPaymentForTxnId_args(this);
|
| 420 |
ashish |
5570 |
}
|
|
|
5571 |
|
|
|
5572 |
@Deprecated
|
| 695 |
rajveer |
5573 |
public getPaymentForTxnId_args clone() {
|
|
|
5574 |
return new getPaymentForTxnId_args(this);
|
| 420 |
ashish |
5575 |
}
|
|
|
5576 |
|
| 695 |
rajveer |
5577 |
public long getTxnId() {
|
|
|
5578 |
return this.txnId;
|
| 420 |
ashish |
5579 |
}
|
|
|
5580 |
|
| 695 |
rajveer |
5581 |
public getPaymentForTxnId_args setTxnId(long txnId) {
|
|
|
5582 |
this.txnId = txnId;
|
|
|
5583 |
setTxnIdIsSet(true);
|
| 420 |
ashish |
5584 |
return this;
|
|
|
5585 |
}
|
|
|
5586 |
|
| 695 |
rajveer |
5587 |
public void unsetTxnId() {
|
|
|
5588 |
__isset_bit_vector.clear(__TXNID_ISSET_ID);
|
| 420 |
ashish |
5589 |
}
|
|
|
5590 |
|
| 695 |
rajveer |
5591 |
/** Returns true if field txnId is set (has been asigned a value) and false otherwise */
|
|
|
5592 |
public boolean isSetTxnId() {
|
|
|
5593 |
return __isset_bit_vector.get(__TXNID_ISSET_ID);
|
| 420 |
ashish |
5594 |
}
|
|
|
5595 |
|
| 695 |
rajveer |
5596 |
public void setTxnIdIsSet(boolean value) {
|
|
|
5597 |
__isset_bit_vector.set(__TXNID_ISSET_ID, value);
|
| 420 |
ashish |
5598 |
}
|
|
|
5599 |
|
|
|
5600 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5601 |
switch (field) {
|
| 695 |
rajveer |
5602 |
case TXN_ID:
|
| 420 |
ashish |
5603 |
if (value == null) {
|
| 695 |
rajveer |
5604 |
unsetTxnId();
|
| 420 |
ashish |
5605 |
} else {
|
| 695 |
rajveer |
5606 |
setTxnId((Long)value);
|
| 420 |
ashish |
5607 |
}
|
|
|
5608 |
break;
|
|
|
5609 |
|
|
|
5610 |
}
|
|
|
5611 |
}
|
|
|
5612 |
|
|
|
5613 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
5614 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
5615 |
}
|
|
|
5616 |
|
|
|
5617 |
public Object getFieldValue(_Fields field) {
|
|
|
5618 |
switch (field) {
|
| 695 |
rajveer |
5619 |
case TXN_ID:
|
|
|
5620 |
return new Long(getTxnId());
|
| 420 |
ashish |
5621 |
|
|
|
5622 |
}
|
|
|
5623 |
throw new IllegalStateException();
|
|
|
5624 |
}
|
|
|
5625 |
|
|
|
5626 |
public Object getFieldValue(int fieldId) {
|
|
|
5627 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
5628 |
}
|
|
|
5629 |
|
|
|
5630 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
5631 |
public boolean isSet(_Fields field) {
|
|
|
5632 |
switch (field) {
|
| 695 |
rajveer |
5633 |
case TXN_ID:
|
|
|
5634 |
return isSetTxnId();
|
| 420 |
ashish |
5635 |
}
|
|
|
5636 |
throw new IllegalStateException();
|
|
|
5637 |
}
|
|
|
5638 |
|
|
|
5639 |
public boolean isSet(int fieldID) {
|
|
|
5640 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
5641 |
}
|
|
|
5642 |
|
|
|
5643 |
@Override
|
|
|
5644 |
public boolean equals(Object that) {
|
|
|
5645 |
if (that == null)
|
|
|
5646 |
return false;
|
| 695 |
rajveer |
5647 |
if (that instanceof getPaymentForTxnId_args)
|
|
|
5648 |
return this.equals((getPaymentForTxnId_args)that);
|
| 420 |
ashish |
5649 |
return false;
|
|
|
5650 |
}
|
|
|
5651 |
|
| 695 |
rajveer |
5652 |
public boolean equals(getPaymentForTxnId_args that) {
|
| 420 |
ashish |
5653 |
if (that == null)
|
|
|
5654 |
return false;
|
|
|
5655 |
|
| 695 |
rajveer |
5656 |
boolean this_present_txnId = true;
|
|
|
5657 |
boolean that_present_txnId = true;
|
|
|
5658 |
if (this_present_txnId || that_present_txnId) {
|
|
|
5659 |
if (!(this_present_txnId && that_present_txnId))
|
| 420 |
ashish |
5660 |
return false;
|
| 695 |
rajveer |
5661 |
if (this.txnId != that.txnId)
|
| 420 |
ashish |
5662 |
return false;
|
|
|
5663 |
}
|
|
|
5664 |
|
|
|
5665 |
return true;
|
|
|
5666 |
}
|
|
|
5667 |
|
|
|
5668 |
@Override
|
|
|
5669 |
public int hashCode() {
|
|
|
5670 |
return 0;
|
|
|
5671 |
}
|
|
|
5672 |
|
| 695 |
rajveer |
5673 |
public int compareTo(getPaymentForTxnId_args other) {
|
| 420 |
ashish |
5674 |
if (!getClass().equals(other.getClass())) {
|
|
|
5675 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5676 |
}
|
|
|
5677 |
|
|
|
5678 |
int lastComparison = 0;
|
| 695 |
rajveer |
5679 |
getPaymentForTxnId_args typedOther = (getPaymentForTxnId_args)other;
|
| 420 |
ashish |
5680 |
|
| 695 |
rajveer |
5681 |
lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(isSetTxnId());
|
| 420 |
ashish |
5682 |
if (lastComparison != 0) {
|
|
|
5683 |
return lastComparison;
|
|
|
5684 |
}
|
| 695 |
rajveer |
5685 |
lastComparison = TBaseHelper.compareTo(txnId, typedOther.txnId);
|
| 420 |
ashish |
5686 |
if (lastComparison != 0) {
|
|
|
5687 |
return lastComparison;
|
|
|
5688 |
}
|
|
|
5689 |
return 0;
|
|
|
5690 |
}
|
|
|
5691 |
|
|
|
5692 |
public void read(TProtocol iprot) throws TException {
|
|
|
5693 |
TField field;
|
|
|
5694 |
iprot.readStructBegin();
|
|
|
5695 |
while (true)
|
|
|
5696 |
{
|
|
|
5697 |
field = iprot.readFieldBegin();
|
|
|
5698 |
if (field.type == TType.STOP) {
|
|
|
5699 |
break;
|
|
|
5700 |
}
|
|
|
5701 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
5702 |
if (fieldId == null) {
|
|
|
5703 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
5704 |
} else {
|
|
|
5705 |
switch (fieldId) {
|
| 695 |
rajveer |
5706 |
case TXN_ID:
|
| 420 |
ashish |
5707 |
if (field.type == TType.I64) {
|
| 695 |
rajveer |
5708 |
this.txnId = iprot.readI64();
|
|
|
5709 |
setTxnIdIsSet(true);
|
| 420 |
ashish |
5710 |
} else {
|
|
|
5711 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
5712 |
}
|
|
|
5713 |
break;
|
|
|
5714 |
}
|
|
|
5715 |
iprot.readFieldEnd();
|
|
|
5716 |
}
|
|
|
5717 |
}
|
|
|
5718 |
iprot.readStructEnd();
|
|
|
5719 |
validate();
|
|
|
5720 |
}
|
|
|
5721 |
|
|
|
5722 |
public void write(TProtocol oprot) throws TException {
|
|
|
5723 |
validate();
|
|
|
5724 |
|
|
|
5725 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 695 |
rajveer |
5726 |
oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
|
|
|
5727 |
oprot.writeI64(this.txnId);
|
| 420 |
ashish |
5728 |
oprot.writeFieldEnd();
|
|
|
5729 |
oprot.writeFieldStop();
|
|
|
5730 |
oprot.writeStructEnd();
|
|
|
5731 |
}
|
|
|
5732 |
|
|
|
5733 |
@Override
|
|
|
5734 |
public String toString() {
|
| 695 |
rajveer |
5735 |
StringBuilder sb = new StringBuilder("getPaymentForTxnId_args(");
|
| 420 |
ashish |
5736 |
boolean first = true;
|
|
|
5737 |
|
| 695 |
rajveer |
5738 |
sb.append("txnId:");
|
|
|
5739 |
sb.append(this.txnId);
|
| 420 |
ashish |
5740 |
first = false;
|
|
|
5741 |
sb.append(")");
|
|
|
5742 |
return sb.toString();
|
|
|
5743 |
}
|
|
|
5744 |
|
|
|
5745 |
public void validate() throws TException {
|
|
|
5746 |
// check for required fields
|
|
|
5747 |
}
|
|
|
5748 |
|
|
|
5749 |
}
|
|
|
5750 |
|
| 695 |
rajveer |
5751 |
public static class getPaymentForTxnId_result implements TBase<getPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPaymentForTxnId_result> {
|
|
|
5752 |
private static final TStruct STRUCT_DESC = new TStruct("getPaymentForTxnId_result");
|
| 420 |
ashish |
5753 |
|
| 695 |
rajveer |
5754 |
private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
|
| 420 |
ashish |
5755 |
private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
|
|
|
5756 |
|
| 695 |
rajveer |
5757 |
private List<Payment> success;
|
| 420 |
ashish |
5758 |
private PaymentException pe;
|
|
|
5759 |
|
|
|
5760 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
5761 |
public enum _Fields implements TFieldIdEnum {
|
|
|
5762 |
SUCCESS((short)0, "success"),
|
|
|
5763 |
PE((short)1, "pe");
|
|
|
5764 |
|
|
|
5765 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
5766 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5767 |
|
|
|
5768 |
static {
|
|
|
5769 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5770 |
byId.put((int)field._thriftId, field);
|
|
|
5771 |
byName.put(field.getFieldName(), field);
|
|
|
5772 |
}
|
|
|
5773 |
}
|
|
|
5774 |
|
|
|
5775 |
/**
|
|
|
5776 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5777 |
*/
|
|
|
5778 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
5779 |
return byId.get(fieldId);
|
|
|
5780 |
}
|
|
|
5781 |
|
|
|
5782 |
/**
|
|
|
5783 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5784 |
* if it is not found.
|
|
|
5785 |
*/
|
|
|
5786 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5787 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5788 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5789 |
return fields;
|
|
|
5790 |
}
|
|
|
5791 |
|
|
|
5792 |
/**
|
|
|
5793 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5794 |
*/
|
|
|
5795 |
public static _Fields findByName(String name) {
|
|
|
5796 |
return byName.get(name);
|
|
|
5797 |
}
|
|
|
5798 |
|
|
|
5799 |
private final short _thriftId;
|
|
|
5800 |
private final String _fieldName;
|
|
|
5801 |
|
|
|
5802 |
_Fields(short thriftId, String fieldName) {
|
|
|
5803 |
_thriftId = thriftId;
|
|
|
5804 |
_fieldName = fieldName;
|
|
|
5805 |
}
|
|
|
5806 |
|
|
|
5807 |
public short getThriftFieldId() {
|
|
|
5808 |
return _thriftId;
|
|
|
5809 |
}
|
|
|
5810 |
|
|
|
5811 |
public String getFieldName() {
|
|
|
5812 |
return _fieldName;
|
|
|
5813 |
}
|
|
|
5814 |
}
|
|
|
5815 |
|
|
|
5816 |
// isset id assignments
|
|
|
5817 |
|
|
|
5818 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
5819 |
put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,
|
| 695 |
rajveer |
5820 |
new ListMetaData(TType.LIST,
|
|
|
5821 |
new StructMetaData(TType.STRUCT, Payment.class))));
|
| 420 |
ashish |
5822 |
put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT,
|
|
|
5823 |
new FieldValueMetaData(TType.STRUCT)));
|
|
|
5824 |
}});
|
|
|
5825 |
|
|
|
5826 |
static {
|
| 695 |
rajveer |
5827 |
FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_result.class, metaDataMap);
|
| 420 |
ashish |
5828 |
}
|
|
|
5829 |
|
| 695 |
rajveer |
5830 |
public getPaymentForTxnId_result() {
|
| 420 |
ashish |
5831 |
}
|
|
|
5832 |
|
| 695 |
rajveer |
5833 |
public getPaymentForTxnId_result(
|
|
|
5834 |
List<Payment> success,
|
| 420 |
ashish |
5835 |
PaymentException pe)
|
|
|
5836 |
{
|
|
|
5837 |
this();
|
|
|
5838 |
this.success = success;
|
|
|
5839 |
this.pe = pe;
|
|
|
5840 |
}
|
|
|
5841 |
|
|
|
5842 |
/**
|
|
|
5843 |
* Performs a deep copy on <i>other</i>.
|
|
|
5844 |
*/
|
| 695 |
rajveer |
5845 |
public getPaymentForTxnId_result(getPaymentForTxnId_result other) {
|
| 420 |
ashish |
5846 |
if (other.isSetSuccess()) {
|
| 695 |
rajveer |
5847 |
List<Payment> __this__success = new ArrayList<Payment>();
|
|
|
5848 |
for (Payment other_element : other.success) {
|
|
|
5849 |
__this__success.add(new Payment(other_element));
|
|
|
5850 |
}
|
|
|
5851 |
this.success = __this__success;
|
| 420 |
ashish |
5852 |
}
|
|
|
5853 |
if (other.isSetPe()) {
|
|
|
5854 |
this.pe = new PaymentException(other.pe);
|
|
|
5855 |
}
|
|
|
5856 |
}
|
|
|
5857 |
|
| 695 |
rajveer |
5858 |
public getPaymentForTxnId_result deepCopy() {
|
|
|
5859 |
return new getPaymentForTxnId_result(this);
|
| 420 |
ashish |
5860 |
}
|
|
|
5861 |
|
|
|
5862 |
@Deprecated
|
| 695 |
rajveer |
5863 |
public getPaymentForTxnId_result clone() {
|
|
|
5864 |
return new getPaymentForTxnId_result(this);
|
| 420 |
ashish |
5865 |
}
|
|
|
5866 |
|
| 695 |
rajveer |
5867 |
public int getSuccessSize() {
|
|
|
5868 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
5869 |
}
|
|
|
5870 |
|
|
|
5871 |
public java.util.Iterator<Payment> getSuccessIterator() {
|
|
|
5872 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
5873 |
}
|
|
|
5874 |
|
|
|
5875 |
public void addToSuccess(Payment elem) {
|
|
|
5876 |
if (this.success == null) {
|
|
|
5877 |
this.success = new ArrayList<Payment>();
|
|
|
5878 |
}
|
|
|
5879 |
this.success.add(elem);
|
|
|
5880 |
}
|
|
|
5881 |
|
|
|
5882 |
public List<Payment> getSuccess() {
|
| 420 |
ashish |
5883 |
return this.success;
|
|
|
5884 |
}
|
|
|
5885 |
|
| 695 |
rajveer |
5886 |
public getPaymentForTxnId_result setSuccess(List<Payment> success) {
|
| 420 |
ashish |
5887 |
this.success = success;
|
|
|
5888 |
return this;
|
|
|
5889 |
}
|
|
|
5890 |
|
|
|
5891 |
public void unsetSuccess() {
|
|
|
5892 |
this.success = null;
|
|
|
5893 |
}
|
|
|
5894 |
|
|
|
5895 |
/** Returns true if field success is set (has been asigned a value) and false otherwise */
|
|
|
5896 |
public boolean isSetSuccess() {
|
|
|
5897 |
return this.success != null;
|
|
|
5898 |
}
|
|
|
5899 |
|
|
|
5900 |
public void setSuccessIsSet(boolean value) {
|
|
|
5901 |
if (!value) {
|
|
|
5902 |
this.success = null;
|
|
|
5903 |
}
|
|
|
5904 |
}
|
|
|
5905 |
|
|
|
5906 |
public PaymentException getPe() {
|
|
|
5907 |
return this.pe;
|
|
|
5908 |
}
|
|
|
5909 |
|
| 695 |
rajveer |
5910 |
public getPaymentForTxnId_result setPe(PaymentException pe) {
|
| 420 |
ashish |
5911 |
this.pe = pe;
|
|
|
5912 |
return this;
|
|
|
5913 |
}
|
|
|
5914 |
|
|
|
5915 |
public void unsetPe() {
|
|
|
5916 |
this.pe = null;
|
|
|
5917 |
}
|
|
|
5918 |
|
|
|
5919 |
/** Returns true if field pe is set (has been asigned a value) and false otherwise */
|
|
|
5920 |
public boolean isSetPe() {
|
|
|
5921 |
return this.pe != null;
|
|
|
5922 |
}
|
|
|
5923 |
|
|
|
5924 |
public void setPeIsSet(boolean value) {
|
|
|
5925 |
if (!value) {
|
|
|
5926 |
this.pe = null;
|
|
|
5927 |
}
|
|
|
5928 |
}
|
|
|
5929 |
|
|
|
5930 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5931 |
switch (field) {
|
|
|
5932 |
case SUCCESS:
|
|
|
5933 |
if (value == null) {
|
|
|
5934 |
unsetSuccess();
|
|
|
5935 |
} else {
|
| 695 |
rajveer |
5936 |
setSuccess((List<Payment>)value);
|
| 420 |
ashish |
5937 |
}
|
|
|
5938 |
break;
|
|
|
5939 |
|
|
|
5940 |
case PE:
|
|
|
5941 |
if (value == null) {
|
|
|
5942 |
unsetPe();
|
|
|
5943 |
} else {
|
|
|
5944 |
setPe((PaymentException)value);
|
|
|
5945 |
}
|
|
|
5946 |
break;
|
|
|
5947 |
|
|
|
5948 |
}
|
|
|
5949 |
}
|
|
|
5950 |
|
|
|
5951 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
5952 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
5953 |
}
|
|
|
5954 |
|
|
|
5955 |
public Object getFieldValue(_Fields field) {
|
|
|
5956 |
switch (field) {
|
|
|
5957 |
case SUCCESS:
|
|
|
5958 |
return getSuccess();
|
|
|
5959 |
|
|
|
5960 |
case PE:
|
|
|
5961 |
return getPe();
|
|
|
5962 |
|
|
|
5963 |
}
|
|
|
5964 |
throw new IllegalStateException();
|
|
|
5965 |
}
|
|
|
5966 |
|
|
|
5967 |
public Object getFieldValue(int fieldId) {
|
|
|
5968 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
5969 |
}
|
|
|
5970 |
|
|
|
5971 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
5972 |
public boolean isSet(_Fields field) {
|
|
|
5973 |
switch (field) {
|
|
|
5974 |
case SUCCESS:
|
|
|
5975 |
return isSetSuccess();
|
|
|
5976 |
case PE:
|
|
|
5977 |
return isSetPe();
|
|
|
5978 |
}
|
|
|
5979 |
throw new IllegalStateException();
|
|
|
5980 |
}
|
|
|
5981 |
|
|
|
5982 |
public boolean isSet(int fieldID) {
|
|
|
5983 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
5984 |
}
|
|
|
5985 |
|
|
|
5986 |
@Override
|
|
|
5987 |
public boolean equals(Object that) {
|
|
|
5988 |
if (that == null)
|
|
|
5989 |
return false;
|
| 695 |
rajveer |
5990 |
if (that instanceof getPaymentForTxnId_result)
|
|
|
5991 |
return this.equals((getPaymentForTxnId_result)that);
|
| 420 |
ashish |
5992 |
return false;
|
|
|
5993 |
}
|
|
|
5994 |
|
| 695 |
rajveer |
5995 |
public boolean equals(getPaymentForTxnId_result that) {
|
| 420 |
ashish |
5996 |
if (that == null)
|
|
|
5997 |
return false;
|
|
|
5998 |
|
|
|
5999 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6000 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
6001 |
if (this_present_success || that_present_success) {
|
|
|
6002 |
if (!(this_present_success && that_present_success))
|
|
|
6003 |
return false;
|
|
|
6004 |
if (!this.success.equals(that.success))
|
|
|
6005 |
return false;
|
|
|
6006 |
}
|
|
|
6007 |
|
|
|
6008 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
6009 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
6010 |
if (this_present_pe || that_present_pe) {
|
|
|
6011 |
if (!(this_present_pe && that_present_pe))
|
|
|
6012 |
return false;
|
|
|
6013 |
if (!this.pe.equals(that.pe))
|
|
|
6014 |
return false;
|
|
|
6015 |
}
|
|
|
6016 |
|
|
|
6017 |
return true;
|
|
|
6018 |
}
|
|
|
6019 |
|
|
|
6020 |
@Override
|
|
|
6021 |
public int hashCode() {
|
|
|
6022 |
return 0;
|
|
|
6023 |
}
|
|
|
6024 |
|
| 695 |
rajveer |
6025 |
public int compareTo(getPaymentForTxnId_result other) {
|
|
|
6026 |
if (!getClass().equals(other.getClass())) {
|
|
|
6027 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6028 |
}
|
|
|
6029 |
|
|
|
6030 |
int lastComparison = 0;
|
|
|
6031 |
getPaymentForTxnId_result typedOther = (getPaymentForTxnId_result)other;
|
|
|
6032 |
|
|
|
6033 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
|
|
|
6034 |
if (lastComparison != 0) {
|
|
|
6035 |
return lastComparison;
|
|
|
6036 |
}
|
|
|
6037 |
lastComparison = TBaseHelper.compareTo(success, typedOther.success);
|
|
|
6038 |
if (lastComparison != 0) {
|
|
|
6039 |
return lastComparison;
|
|
|
6040 |
}
|
|
|
6041 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
|
|
|
6042 |
if (lastComparison != 0) {
|
|
|
6043 |
return lastComparison;
|
|
|
6044 |
}
|
|
|
6045 |
lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
|
|
|
6046 |
if (lastComparison != 0) {
|
|
|
6047 |
return lastComparison;
|
|
|
6048 |
}
|
|
|
6049 |
return 0;
|
|
|
6050 |
}
|
|
|
6051 |
|
| 420 |
ashish |
6052 |
public void read(TProtocol iprot) throws TException {
|
|
|
6053 |
TField field;
|
|
|
6054 |
iprot.readStructBegin();
|
|
|
6055 |
while (true)
|
|
|
6056 |
{
|
|
|
6057 |
field = iprot.readFieldBegin();
|
|
|
6058 |
if (field.type == TType.STOP) {
|
|
|
6059 |
break;
|
|
|
6060 |
}
|
|
|
6061 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
6062 |
if (fieldId == null) {
|
|
|
6063 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
6064 |
} else {
|
|
|
6065 |
switch (fieldId) {
|
|
|
6066 |
case SUCCESS:
|
| 695 |
rajveer |
6067 |
if (field.type == TType.LIST) {
|
|
|
6068 |
{
|
|
|
6069 |
TList _list16 = iprot.readListBegin();
|
|
|
6070 |
this.success = new ArrayList<Payment>(_list16.size);
|
|
|
6071 |
for (int _i17 = 0; _i17 < _list16.size; ++_i17)
|
|
|
6072 |
{
|
|
|
6073 |
Payment _elem18;
|
|
|
6074 |
_elem18 = new Payment();
|
|
|
6075 |
_elem18.read(iprot);
|
|
|
6076 |
this.success.add(_elem18);
|
|
|
6077 |
}
|
|
|
6078 |
iprot.readListEnd();
|
|
|
6079 |
}
|
| 420 |
ashish |
6080 |
} else {
|
|
|
6081 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
6082 |
}
|
|
|
6083 |
break;
|
|
|
6084 |
case PE:
|
|
|
6085 |
if (field.type == TType.STRUCT) {
|
|
|
6086 |
this.pe = new PaymentException();
|
|
|
6087 |
this.pe.read(iprot);
|
|
|
6088 |
} else {
|
|
|
6089 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
6090 |
}
|
|
|
6091 |
break;
|
|
|
6092 |
}
|
|
|
6093 |
iprot.readFieldEnd();
|
|
|
6094 |
}
|
|
|
6095 |
}
|
|
|
6096 |
iprot.readStructEnd();
|
|
|
6097 |
validate();
|
|
|
6098 |
}
|
|
|
6099 |
|
|
|
6100 |
public void write(TProtocol oprot) throws TException {
|
|
|
6101 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6102 |
|
|
|
6103 |
if (this.isSetSuccess()) {
|
|
|
6104 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 695 |
rajveer |
6105 |
{
|
|
|
6106 |
oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
|
|
|
6107 |
for (Payment _iter19 : this.success)
|
|
|
6108 |
{
|
|
|
6109 |
_iter19.write(oprot);
|
|
|
6110 |
}
|
|
|
6111 |
oprot.writeListEnd();
|
|
|
6112 |
}
|
| 420 |
ashish |
6113 |
oprot.writeFieldEnd();
|
|
|
6114 |
} else if (this.isSetPe()) {
|
|
|
6115 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
6116 |
this.pe.write(oprot);
|
|
|
6117 |
oprot.writeFieldEnd();
|
|
|
6118 |
}
|
|
|
6119 |
oprot.writeFieldStop();
|
|
|
6120 |
oprot.writeStructEnd();
|
|
|
6121 |
}
|
|
|
6122 |
|
|
|
6123 |
@Override
|
|
|
6124 |
public String toString() {
|
| 695 |
rajveer |
6125 |
StringBuilder sb = new StringBuilder("getPaymentForTxnId_result(");
|
| 420 |
ashish |
6126 |
boolean first = true;
|
|
|
6127 |
|
|
|
6128 |
sb.append("success:");
|
|
|
6129 |
if (this.success == null) {
|
|
|
6130 |
sb.append("null");
|
|
|
6131 |
} else {
|
|
|
6132 |
sb.append(this.success);
|
|
|
6133 |
}
|
|
|
6134 |
first = false;
|
|
|
6135 |
if (!first) sb.append(", ");
|
|
|
6136 |
sb.append("pe:");
|
|
|
6137 |
if (this.pe == null) {
|
|
|
6138 |
sb.append("null");
|
|
|
6139 |
} else {
|
|
|
6140 |
sb.append(this.pe);
|
|
|
6141 |
}
|
|
|
6142 |
first = false;
|
|
|
6143 |
sb.append(")");
|
|
|
6144 |
return sb.toString();
|
|
|
6145 |
}
|
|
|
6146 |
|
|
|
6147 |
public void validate() throws TException {
|
|
|
6148 |
// check for required fields
|
|
|
6149 |
}
|
|
|
6150 |
|
|
|
6151 |
}
|
|
|
6152 |
|
| 695 |
rajveer |
6153 |
public static class updatePaymentDetails_args implements TBase<updatePaymentDetails_args._Fields>, java.io.Serializable, Cloneable, Comparable<updatePaymentDetails_args> {
|
|
|
6154 |
private static final TStruct STRUCT_DESC = new TStruct("updatePaymentDetails_args");
|
| 420 |
ashish |
6155 |
|
|
|
6156 |
private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
|
| 695 |
rajveer |
6157 |
private static final TField GATEWAY_PAYMENT_ID_FIELD_DESC = new TField("gatewayPaymentId", TType.STRING, (short)2);
|
|
|
6158 |
private static final TField SESSION_ID_FIELD_DESC = new TField("sessionId", TType.STRING, (short)3);
|
|
|
6159 |
private static final TField GATEWAY_TXN_STATUS_FIELD_DESC = new TField("gatewayTxnStatus", TType.STRING, (short)4);
|
|
|
6160 |
private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)5);
|
|
|
6161 |
private static final TField GATEWAY_TXN_ID_FIELD_DESC = new TField("gatewayTxnId", TType.STRING, (short)6);
|
|
|
6162 |
private static final TField AUTH_CODE_FIELD_DESC = new TField("authCode", TType.STRING, (short)7);
|
|
|
6163 |
private static final TField REFERENCE_CODE_FIELD_DESC = new TField("referenceCode", TType.STRING, (short)8);
|
|
|
6164 |
private static final TField ERROR_CODE_FIELD_DESC = new TField("errorCode", TType.STRING, (short)9);
|
|
|
6165 |
private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)10);
|
| 1119 |
rajveer |
6166 |
private static final TField GATEWAY_TXN_DATE_FIELD_DESC = new TField("gatewayTxnDate", TType.STRING, (short)11);
|
|
|
6167 |
private static final TField ATTRIBUTES_FIELD_DESC = new TField("attributes", TType.LIST, (short)12);
|
| 420 |
ashish |
6168 |
|
|
|
6169 |
private long id;
|
| 695 |
rajveer |
6170 |
private String gatewayPaymentId;
|
|
|
6171 |
private String sessionId;
|
|
|
6172 |
private String gatewayTxnStatus;
|
|
|
6173 |
private String description;
|
|
|
6174 |
private String gatewayTxnId;
|
|
|
6175 |
private String authCode;
|
|
|
6176 |
private String referenceCode;
|
|
|
6177 |
private String errorCode;
|
|
|
6178 |
private PaymentStatus status;
|
| 1119 |
rajveer |
6179 |
private String gatewayTxnDate;
|
| 695 |
rajveer |
6180 |
private List<Attribute> attributes;
|
| 420 |
ashish |
6181 |
|
|
|
6182 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
6183 |
public enum _Fields implements TFieldIdEnum {
|
|
|
6184 |
ID((short)1, "id"),
|
| 695 |
rajveer |
6185 |
GATEWAY_PAYMENT_ID((short)2, "gatewayPaymentId"),
|
|
|
6186 |
SESSION_ID((short)3, "sessionId"),
|
|
|
6187 |
GATEWAY_TXN_STATUS((short)4, "gatewayTxnStatus"),
|
|
|
6188 |
DESCRIPTION((short)5, "description"),
|
|
|
6189 |
GATEWAY_TXN_ID((short)6, "gatewayTxnId"),
|
|
|
6190 |
AUTH_CODE((short)7, "authCode"),
|
|
|
6191 |
REFERENCE_CODE((short)8, "referenceCode"),
|
|
|
6192 |
ERROR_CODE((short)9, "errorCode"),
|
|
|
6193 |
/**
|
|
|
6194 |
*
|
|
|
6195 |
* @see PaymentStatus
|
|
|
6196 |
*/
|
|
|
6197 |
STATUS((short)10, "status"),
|
| 1119 |
rajveer |
6198 |
GATEWAY_TXN_DATE((short)11, "gatewayTxnDate"),
|
|
|
6199 |
ATTRIBUTES((short)12, "attributes");
|
| 420 |
ashish |
6200 |
|
|
|
6201 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
6202 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6203 |
|
|
|
6204 |
static {
|
|
|
6205 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6206 |
byId.put((int)field._thriftId, field);
|
|
|
6207 |
byName.put(field.getFieldName(), field);
|
|
|
6208 |
}
|
|
|
6209 |
}
|
|
|
6210 |
|
|
|
6211 |
/**
|
|
|
6212 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6213 |
*/
|
|
|
6214 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
6215 |
return byId.get(fieldId);
|
|
|
6216 |
}
|
|
|
6217 |
|
|
|
6218 |
/**
|
|
|
6219 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6220 |
* if it is not found.
|
|
|
6221 |
*/
|
|
|
6222 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6223 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6224 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6225 |
return fields;
|
|
|
6226 |
}
|
|
|
6227 |
|
|
|
6228 |
/**
|
|
|
6229 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6230 |
*/
|
|
|
6231 |
public static _Fields findByName(String name) {
|
|
|
6232 |
return byName.get(name);
|
|
|
6233 |
}
|
|
|
6234 |
|
|
|
6235 |
private final short _thriftId;
|
|
|
6236 |
private final String _fieldName;
|
|
|
6237 |
|
|
|
6238 |
_Fields(short thriftId, String fieldName) {
|
|
|
6239 |
_thriftId = thriftId;
|
|
|
6240 |
_fieldName = fieldName;
|
|
|
6241 |
}
|
|
|
6242 |
|
|
|
6243 |
public short getThriftFieldId() {
|
|
|
6244 |
return _thriftId;
|
|
|
6245 |
}
|
|
|
6246 |
|
|
|
6247 |
public String getFieldName() {
|
|
|
6248 |
return _fieldName;
|
|
|
6249 |
}
|
|
|
6250 |
}
|
|
|
6251 |
|
|
|
6252 |
// isset id assignments
|
|
|
6253 |
private static final int __ID_ISSET_ID = 0;
|
|
|
6254 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
6255 |
|
|
|
6256 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
6257 |
put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT,
|
|
|
6258 |
new FieldValueMetaData(TType.I64)));
|
| 695 |
rajveer |
6259 |
put(_Fields.GATEWAY_PAYMENT_ID, new FieldMetaData("gatewayPaymentId", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
6260 |
new FieldValueMetaData(TType.STRING)));
|
| 695 |
rajveer |
6261 |
put(_Fields.SESSION_ID, new FieldMetaData("sessionId", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
6262 |
new FieldValueMetaData(TType.STRING)));
|
| 695 |
rajveer |
6263 |
put(_Fields.GATEWAY_TXN_STATUS, new FieldMetaData("gatewayTxnStatus", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
6264 |
new FieldValueMetaData(TType.STRING)));
|
| 695 |
rajveer |
6265 |
put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
6266 |
new FieldValueMetaData(TType.STRING)));
|
| 695 |
rajveer |
6267 |
put(_Fields.GATEWAY_TXN_ID, new FieldMetaData("gatewayTxnId", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
6268 |
new FieldValueMetaData(TType.STRING)));
|
| 695 |
rajveer |
6269 |
put(_Fields.AUTH_CODE, new FieldMetaData("authCode", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
6270 |
new FieldValueMetaData(TType.STRING)));
|
| 695 |
rajveer |
6271 |
put(_Fields.REFERENCE_CODE, new FieldMetaData("referenceCode", TFieldRequirementType.DEFAULT,
|
| 420 |
ashish |
6272 |
new FieldValueMetaData(TType.STRING)));
|
| 695 |
rajveer |
6273 |
put(_Fields.ERROR_CODE, new FieldMetaData("errorCode", TFieldRequirementType.DEFAULT,
|
|
|
6274 |
new FieldValueMetaData(TType.STRING)));
|
|
|
6275 |
put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT,
|
|
|
6276 |
new EnumMetaData(TType.ENUM, PaymentStatus.class)));
|
| 1119 |
rajveer |
6277 |
put(_Fields.GATEWAY_TXN_DATE, new FieldMetaData("gatewayTxnDate", TFieldRequirementType.DEFAULT,
|
|
|
6278 |
new FieldValueMetaData(TType.STRING)));
|
| 695 |
rajveer |
6279 |
put(_Fields.ATTRIBUTES, new FieldMetaData("attributes", TFieldRequirementType.DEFAULT,
|
|
|
6280 |
new ListMetaData(TType.LIST,
|
|
|
6281 |
new StructMetaData(TType.STRUCT, Attribute.class))));
|
| 420 |
ashish |
6282 |
}});
|
|
|
6283 |
|
|
|
6284 |
static {
|
| 695 |
rajveer |
6285 |
FieldMetaData.addStructMetaDataMap(updatePaymentDetails_args.class, metaDataMap);
|
| 420 |
ashish |
6286 |
}
|
|
|
6287 |
|
| 695 |
rajveer |
6288 |
public updatePaymentDetails_args() {
|
| 420 |
ashish |
6289 |
}
|
|
|
6290 |
|
| 695 |
rajveer |
6291 |
public updatePaymentDetails_args(
|
| 420 |
ashish |
6292 |
long id,
|
| 695 |
rajveer |
6293 |
String gatewayPaymentId,
|
|
|
6294 |
String sessionId,
|
|
|
6295 |
String gatewayTxnStatus,
|
|
|
6296 |
String description,
|
|
|
6297 |
String gatewayTxnId,
|
|
|
6298 |
String authCode,
|
|
|
6299 |
String referenceCode,
|
|
|
6300 |
String errorCode,
|
|
|
6301 |
PaymentStatus status,
|
| 1119 |
rajveer |
6302 |
String gatewayTxnDate,
|
| 695 |
rajveer |
6303 |
List<Attribute> attributes)
|
| 420 |
ashish |
6304 |
{
|
|
|
6305 |
this();
|
|
|
6306 |
this.id = id;
|
|
|
6307 |
setIdIsSet(true);
|
| 695 |
rajveer |
6308 |
this.gatewayPaymentId = gatewayPaymentId;
|
|
|
6309 |
this.sessionId = sessionId;
|
|
|
6310 |
this.gatewayTxnStatus = gatewayTxnStatus;
|
|
|
6311 |
this.description = description;
|
|
|
6312 |
this.gatewayTxnId = gatewayTxnId;
|
|
|
6313 |
this.authCode = authCode;
|
|
|
6314 |
this.referenceCode = referenceCode;
|
|
|
6315 |
this.errorCode = errorCode;
|
|
|
6316 |
this.status = status;
|
| 1119 |
rajveer |
6317 |
this.gatewayTxnDate = gatewayTxnDate;
|
| 695 |
rajveer |
6318 |
this.attributes = attributes;
|
| 420 |
ashish |
6319 |
}
|
|
|
6320 |
|
|
|
6321 |
/**
|
|
|
6322 |
* Performs a deep copy on <i>other</i>.
|
|
|
6323 |
*/
|
| 695 |
rajveer |
6324 |
public updatePaymentDetails_args(updatePaymentDetails_args other) {
|
| 420 |
ashish |
6325 |
__isset_bit_vector.clear();
|
|
|
6326 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
6327 |
this.id = other.id;
|
| 695 |
rajveer |
6328 |
if (other.isSetGatewayPaymentId()) {
|
|
|
6329 |
this.gatewayPaymentId = other.gatewayPaymentId;
|
| 420 |
ashish |
6330 |
}
|
| 695 |
rajveer |
6331 |
if (other.isSetSessionId()) {
|
|
|
6332 |
this.sessionId = other.sessionId;
|
| 420 |
ashish |
6333 |
}
|
| 695 |
rajveer |
6334 |
if (other.isSetGatewayTxnStatus()) {
|
|
|
6335 |
this.gatewayTxnStatus = other.gatewayTxnStatus;
|
| 420 |
ashish |
6336 |
}
|
| 695 |
rajveer |
6337 |
if (other.isSetDescription()) {
|
|
|
6338 |
this.description = other.description;
|
| 420 |
ashish |
6339 |
}
|
| 695 |
rajveer |
6340 |
if (other.isSetGatewayTxnId()) {
|
|
|
6341 |
this.gatewayTxnId = other.gatewayTxnId;
|
| 420 |
ashish |
6342 |
}
|
| 695 |
rajveer |
6343 |
if (other.isSetAuthCode()) {
|
|
|
6344 |
this.authCode = other.authCode;
|
| 420 |
ashish |
6345 |
}
|
| 695 |
rajveer |
6346 |
if (other.isSetReferenceCode()) {
|
|
|
6347 |
this.referenceCode = other.referenceCode;
|
| 420 |
ashish |
6348 |
}
|
| 695 |
rajveer |
6349 |
if (other.isSetErrorCode()) {
|
|
|
6350 |
this.errorCode = other.errorCode;
|
|
|
6351 |
}
|
|
|
6352 |
if (other.isSetStatus()) {
|
|
|
6353 |
this.status = other.status;
|
|
|
6354 |
}
|
| 1119 |
rajveer |
6355 |
if (other.isSetGatewayTxnDate()) {
|
|
|
6356 |
this.gatewayTxnDate = other.gatewayTxnDate;
|
|
|
6357 |
}
|
| 695 |
rajveer |
6358 |
if (other.isSetAttributes()) {
|
|
|
6359 |
List<Attribute> __this__attributes = new ArrayList<Attribute>();
|
|
|
6360 |
for (Attribute other_element : other.attributes) {
|
|
|
6361 |
__this__attributes.add(new Attribute(other_element));
|
|
|
6362 |
}
|
|
|
6363 |
this.attributes = __this__attributes;
|
|
|
6364 |
}
|
| 420 |
ashish |
6365 |
}
|
|
|
6366 |
|
| 695 |
rajveer |
6367 |
public updatePaymentDetails_args deepCopy() {
|
|
|
6368 |
return new updatePaymentDetails_args(this);
|
| 420 |
ashish |
6369 |
}
|
|
|
6370 |
|
|
|
6371 |
@Deprecated
|
| 695 |
rajveer |
6372 |
public updatePaymentDetails_args clone() {
|
|
|
6373 |
return new updatePaymentDetails_args(this);
|
| 420 |
ashish |
6374 |
}
|
|
|
6375 |
|
|
|
6376 |
public long getId() {
|
|
|
6377 |
return this.id;
|
|
|
6378 |
}
|
|
|
6379 |
|
| 695 |
rajveer |
6380 |
public updatePaymentDetails_args setId(long id) {
|
| 420 |
ashish |
6381 |
this.id = id;
|
|
|
6382 |
setIdIsSet(true);
|
|
|
6383 |
return this;
|
|
|
6384 |
}
|
|
|
6385 |
|
|
|
6386 |
public void unsetId() {
|
|
|
6387 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
6388 |
}
|
|
|
6389 |
|
|
|
6390 |
/** Returns true if field id is set (has been asigned a value) and false otherwise */
|
|
|
6391 |
public boolean isSetId() {
|
|
|
6392 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
6393 |
}
|
|
|
6394 |
|
|
|
6395 |
public void setIdIsSet(boolean value) {
|
|
|
6396 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
6397 |
}
|
|
|
6398 |
|
| 695 |
rajveer |
6399 |
public String getGatewayPaymentId() {
|
|
|
6400 |
return this.gatewayPaymentId;
|
| 420 |
ashish |
6401 |
}
|
|
|
6402 |
|
| 695 |
rajveer |
6403 |
public updatePaymentDetails_args setGatewayPaymentId(String gatewayPaymentId) {
|
|
|
6404 |
this.gatewayPaymentId = gatewayPaymentId;
|
| 420 |
ashish |
6405 |
return this;
|
|
|
6406 |
}
|
|
|
6407 |
|
| 695 |
rajveer |
6408 |
public void unsetGatewayPaymentId() {
|
|
|
6409 |
this.gatewayPaymentId = null;
|
| 420 |
ashish |
6410 |
}
|
|
|
6411 |
|
| 695 |
rajveer |
6412 |
/** Returns true if field gatewayPaymentId is set (has been asigned a value) and false otherwise */
|
|
|
6413 |
public boolean isSetGatewayPaymentId() {
|
|
|
6414 |
return this.gatewayPaymentId != null;
|
| 420 |
ashish |
6415 |
}
|
|
|
6416 |
|
| 695 |
rajveer |
6417 |
public void setGatewayPaymentIdIsSet(boolean value) {
|
| 420 |
ashish |
6418 |
if (!value) {
|
| 695 |
rajveer |
6419 |
this.gatewayPaymentId = null;
|
| 420 |
ashish |
6420 |
}
|
|
|
6421 |
}
|
|
|
6422 |
|
| 695 |
rajveer |
6423 |
public String getSessionId() {
|
|
|
6424 |
return this.sessionId;
|
| 420 |
ashish |
6425 |
}
|
|
|
6426 |
|
| 695 |
rajveer |
6427 |
public updatePaymentDetails_args setSessionId(String sessionId) {
|
|
|
6428 |
this.sessionId = sessionId;
|
| 420 |
ashish |
6429 |
return this;
|
|
|
6430 |
}
|
|
|
6431 |
|
| 695 |
rajveer |
6432 |
public void unsetSessionId() {
|
|
|
6433 |
this.sessionId = null;
|
| 420 |
ashish |
6434 |
}
|
|
|
6435 |
|
| 695 |
rajveer |
6436 |
/** Returns true if field sessionId is set (has been asigned a value) and false otherwise */
|
|
|
6437 |
public boolean isSetSessionId() {
|
|
|
6438 |
return this.sessionId != null;
|
| 420 |
ashish |
6439 |
}
|
|
|
6440 |
|
| 695 |
rajveer |
6441 |
public void setSessionIdIsSet(boolean value) {
|
| 420 |
ashish |
6442 |
if (!value) {
|
| 695 |
rajveer |
6443 |
this.sessionId = null;
|
| 420 |
ashish |
6444 |
}
|
|
|
6445 |
}
|
|
|
6446 |
|
| 695 |
rajveer |
6447 |
public String getGatewayTxnStatus() {
|
|
|
6448 |
return this.gatewayTxnStatus;
|
| 420 |
ashish |
6449 |
}
|
|
|
6450 |
|
| 695 |
rajveer |
6451 |
public updatePaymentDetails_args setGatewayTxnStatus(String gatewayTxnStatus) {
|
|
|
6452 |
this.gatewayTxnStatus = gatewayTxnStatus;
|
| 420 |
ashish |
6453 |
return this;
|
|
|
6454 |
}
|
|
|
6455 |
|
| 695 |
rajveer |
6456 |
public void unsetGatewayTxnStatus() {
|
|
|
6457 |
this.gatewayTxnStatus = null;
|
| 420 |
ashish |
6458 |
}
|
|
|
6459 |
|
| 695 |
rajveer |
6460 |
/** Returns true if field gatewayTxnStatus is set (has been asigned a value) and false otherwise */
|
|
|
6461 |
public boolean isSetGatewayTxnStatus() {
|
|
|
6462 |
return this.gatewayTxnStatus != null;
|
| 420 |
ashish |
6463 |
}
|
|
|
6464 |
|
| 695 |
rajveer |
6465 |
public void setGatewayTxnStatusIsSet(boolean value) {
|
| 420 |
ashish |
6466 |
if (!value) {
|
| 695 |
rajveer |
6467 |
this.gatewayTxnStatus = null;
|
| 420 |
ashish |
6468 |
}
|
|
|
6469 |
}
|
|
|
6470 |
|
| 695 |
rajveer |
6471 |
public String getDescription() {
|
|
|
6472 |
return this.description;
|
| 420 |
ashish |
6473 |
}
|
|
|
6474 |
|
| 695 |
rajveer |
6475 |
public updatePaymentDetails_args setDescription(String description) {
|
|
|
6476 |
this.description = description;
|
| 420 |
ashish |
6477 |
return this;
|
|
|
6478 |
}
|
|
|
6479 |
|
| 695 |
rajveer |
6480 |
public void unsetDescription() {
|
|
|
6481 |
this.description = null;
|
| 420 |
ashish |
6482 |
}
|
|
|
6483 |
|
| 695 |
rajveer |
6484 |
/** Returns true if field description is set (has been asigned a value) and false otherwise */
|
|
|
6485 |
public boolean isSetDescription() {
|
|
|
6486 |
return this.description != null;
|
| 420 |
ashish |
6487 |
}
|
|
|
6488 |
|
| 695 |
rajveer |
6489 |
public void setDescriptionIsSet(boolean value) {
|
| 420 |
ashish |
6490 |
if (!value) {
|
| 695 |
rajveer |
6491 |
this.description = null;
|
| 420 |
ashish |
6492 |
}
|
|
|
6493 |
}
|
|
|
6494 |
|
| 695 |
rajveer |
6495 |
public String getGatewayTxnId() {
|
|
|
6496 |
return this.gatewayTxnId;
|
| 420 |
ashish |
6497 |
}
|
|
|
6498 |
|
| 695 |
rajveer |
6499 |
public updatePaymentDetails_args setGatewayTxnId(String gatewayTxnId) {
|
|
|
6500 |
this.gatewayTxnId = gatewayTxnId;
|
| 420 |
ashish |
6501 |
return this;
|
|
|
6502 |
}
|
|
|
6503 |
|
| 695 |
rajveer |
6504 |
public void unsetGatewayTxnId() {
|
|
|
6505 |
this.gatewayTxnId = null;
|
| 420 |
ashish |
6506 |
}
|
|
|
6507 |
|
| 695 |
rajveer |
6508 |
/** Returns true if field gatewayTxnId is set (has been asigned a value) and false otherwise */
|
|
|
6509 |
public boolean isSetGatewayTxnId() {
|
|
|
6510 |
return this.gatewayTxnId != null;
|
| 420 |
ashish |
6511 |
}
|
|
|
6512 |
|
| 695 |
rajveer |
6513 |
public void setGatewayTxnIdIsSet(boolean value) {
|
| 420 |
ashish |
6514 |
if (!value) {
|
| 695 |
rajveer |
6515 |
this.gatewayTxnId = null;
|
| 420 |
ashish |
6516 |
}
|
|
|
6517 |
}
|
|
|
6518 |
|
| 695 |
rajveer |
6519 |
public String getAuthCode() {
|
|
|
6520 |
return this.authCode;
|
| 420 |
ashish |
6521 |
}
|
|
|
6522 |
|
| 695 |
rajveer |
6523 |
public updatePaymentDetails_args setAuthCode(String authCode) {
|
|
|
6524 |
this.authCode = authCode;
|
| 420 |
ashish |
6525 |
return this;
|
|
|
6526 |
}
|
|
|
6527 |
|
| 695 |
rajveer |
6528 |
public void unsetAuthCode() {
|
|
|
6529 |
this.authCode = null;
|
| 420 |
ashish |
6530 |
}
|
|
|
6531 |
|
| 695 |
rajveer |
6532 |
/** Returns true if field authCode is set (has been asigned a value) and false otherwise */
|
|
|
6533 |
public boolean isSetAuthCode() {
|
|
|
6534 |
return this.authCode != null;
|
| 420 |
ashish |
6535 |
}
|
|
|
6536 |
|
| 695 |
rajveer |
6537 |
public void setAuthCodeIsSet(boolean value) {
|
| 420 |
ashish |
6538 |
if (!value) {
|
| 695 |
rajveer |
6539 |
this.authCode = null;
|
| 420 |
ashish |
6540 |
}
|
|
|
6541 |
}
|
|
|
6542 |
|
| 695 |
rajveer |
6543 |
public String getReferenceCode() {
|
|
|
6544 |
return this.referenceCode;
|
| 420 |
ashish |
6545 |
}
|
|
|
6546 |
|
| 695 |
rajveer |
6547 |
public updatePaymentDetails_args setReferenceCode(String referenceCode) {
|
|
|
6548 |
this.referenceCode = referenceCode;
|
| 420 |
ashish |
6549 |
return this;
|
|
|
6550 |
}
|
|
|
6551 |
|
| 695 |
rajveer |
6552 |
public void unsetReferenceCode() {
|
|
|
6553 |
this.referenceCode = null;
|
| 420 |
ashish |
6554 |
}
|
|
|
6555 |
|
| 695 |
rajveer |
6556 |
/** Returns true if field referenceCode is set (has been asigned a value) and false otherwise */
|
|
|
6557 |
public boolean isSetReferenceCode() {
|
|
|
6558 |
return this.referenceCode != null;
|
| 420 |
ashish |
6559 |
}
|
|
|
6560 |
|
| 695 |
rajveer |
6561 |
public void setReferenceCodeIsSet(boolean value) {
|
| 420 |
ashish |
6562 |
if (!value) {
|
| 695 |
rajveer |
6563 |
this.referenceCode = null;
|
| 420 |
ashish |
6564 |
}
|
|
|
6565 |
}
|
|
|
6566 |
|
| 695 |
rajveer |
6567 |
public String getErrorCode() {
|
|
|
6568 |
return this.errorCode;
|
|
|
6569 |
}
|
|
|
6570 |
|
|
|
6571 |
public updatePaymentDetails_args setErrorCode(String errorCode) {
|
|
|
6572 |
this.errorCode = errorCode;
|
|
|
6573 |
return this;
|
|
|
6574 |
}
|
|
|
6575 |
|
|
|
6576 |
public void unsetErrorCode() {
|
|
|
6577 |
this.errorCode = null;
|
|
|
6578 |
}
|
|
|
6579 |
|
|
|
6580 |
/** Returns true if field errorCode is set (has been asigned a value) and false otherwise */
|
|
|
6581 |
public boolean isSetErrorCode() {
|
|
|
6582 |
return this.errorCode != null;
|
|
|
6583 |
}
|
|
|
6584 |
|
|
|
6585 |
public void setErrorCodeIsSet(boolean value) {
|
|
|
6586 |
if (!value) {
|
|
|
6587 |
this.errorCode = null;
|
|
|
6588 |
}
|
|
|
6589 |
}
|
|
|
6590 |
|
|
|
6591 |
/**
|
|
|
6592 |
*
|
|
|
6593 |
* @see PaymentStatus
|
|
|
6594 |
*/
|
|
|
6595 |
public PaymentStatus getStatus() {
|
|
|
6596 |
return this.status;
|
|
|
6597 |
}
|
|
|
6598 |
|
|
|
6599 |
/**
|
|
|
6600 |
*
|
|
|
6601 |
* @see PaymentStatus
|
|
|
6602 |
*/
|
|
|
6603 |
public updatePaymentDetails_args setStatus(PaymentStatus status) {
|
|
|
6604 |
this.status = status;
|
|
|
6605 |
return this;
|
|
|
6606 |
}
|
|
|
6607 |
|
|
|
6608 |
public void unsetStatus() {
|
|
|
6609 |
this.status = null;
|
|
|
6610 |
}
|
|
|
6611 |
|
|
|
6612 |
/** Returns true if field status is set (has been asigned a value) and false otherwise */
|
|
|
6613 |
public boolean isSetStatus() {
|
|
|
6614 |
return this.status != null;
|
|
|
6615 |
}
|
|
|
6616 |
|
|
|
6617 |
public void setStatusIsSet(boolean value) {
|
|
|
6618 |
if (!value) {
|
|
|
6619 |
this.status = null;
|
|
|
6620 |
}
|
|
|
6621 |
}
|
|
|
6622 |
|
| 1119 |
rajveer |
6623 |
public String getGatewayTxnDate() {
|
|
|
6624 |
return this.gatewayTxnDate;
|
|
|
6625 |
}
|
|
|
6626 |
|
|
|
6627 |
public updatePaymentDetails_args setGatewayTxnDate(String gatewayTxnDate) {
|
|
|
6628 |
this.gatewayTxnDate = gatewayTxnDate;
|
|
|
6629 |
return this;
|
|
|
6630 |
}
|
|
|
6631 |
|
|
|
6632 |
public void unsetGatewayTxnDate() {
|
|
|
6633 |
this.gatewayTxnDate = null;
|
|
|
6634 |
}
|
|
|
6635 |
|
|
|
6636 |
/** Returns true if field gatewayTxnDate is set (has been asigned a value) and false otherwise */
|
|
|
6637 |
public boolean isSetGatewayTxnDate() {
|
|
|
6638 |
return this.gatewayTxnDate != null;
|
|
|
6639 |
}
|
|
|
6640 |
|
|
|
6641 |
public void setGatewayTxnDateIsSet(boolean value) {
|
|
|
6642 |
if (!value) {
|
|
|
6643 |
this.gatewayTxnDate = null;
|
|
|
6644 |
}
|
|
|
6645 |
}
|
|
|
6646 |
|
| 695 |
rajveer |
6647 |
public int getAttributesSize() {
|
|
|
6648 |
return (this.attributes == null) ? 0 : this.attributes.size();
|
|
|
6649 |
}
|
|
|
6650 |
|
|
|
6651 |
public java.util.Iterator<Attribute> getAttributesIterator() {
|
|
|
6652 |
return (this.attributes == null) ? null : this.attributes.iterator();
|
|
|
6653 |
}
|
|
|
6654 |
|
|
|
6655 |
public void addToAttributes(Attribute elem) {
|
|
|
6656 |
if (this.attributes == null) {
|
|
|
6657 |
this.attributes = new ArrayList<Attribute>();
|
|
|
6658 |
}
|
|
|
6659 |
this.attributes.add(elem);
|
|
|
6660 |
}
|
|
|
6661 |
|
|
|
6662 |
public List<Attribute> getAttributes() {
|
|
|
6663 |
return this.attributes;
|
|
|
6664 |
}
|
|
|
6665 |
|
|
|
6666 |
public updatePaymentDetails_args setAttributes(List<Attribute> attributes) {
|
|
|
6667 |
this.attributes = attributes;
|
|
|
6668 |
return this;
|
|
|
6669 |
}
|
|
|
6670 |
|
|
|
6671 |
public void unsetAttributes() {
|
|
|
6672 |
this.attributes = null;
|
|
|
6673 |
}
|
|
|
6674 |
|
|
|
6675 |
/** Returns true if field attributes is set (has been asigned a value) and false otherwise */
|
|
|
6676 |
public boolean isSetAttributes() {
|
|
|
6677 |
return this.attributes != null;
|
|
|
6678 |
}
|
|
|
6679 |
|
|
|
6680 |
public void setAttributesIsSet(boolean value) {
|
|
|
6681 |
if (!value) {
|
|
|
6682 |
this.attributes = null;
|
|
|
6683 |
}
|
|
|
6684 |
}
|
|
|
6685 |
|
| 420 |
ashish |
6686 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6687 |
switch (field) {
|
|
|
6688 |
case ID:
|
|
|
6689 |
if (value == null) {
|
|
|
6690 |
unsetId();
|
|
|
6691 |
} else {
|
|
|
6692 |
setId((Long)value);
|
|
|
6693 |
}
|
|
|
6694 |
break;
|
|
|
6695 |
|
| 695 |
rajveer |
6696 |
case GATEWAY_PAYMENT_ID:
|
| 420 |
ashish |
6697 |
if (value == null) {
|
| 695 |
rajveer |
6698 |
unsetGatewayPaymentId();
|
| 420 |
ashish |
6699 |
} else {
|
| 695 |
rajveer |
6700 |
setGatewayPaymentId((String)value);
|
| 420 |
ashish |
6701 |
}
|
|
|
6702 |
break;
|
|
|
6703 |
|
| 695 |
rajveer |
6704 |
case SESSION_ID:
|
| 420 |
ashish |
6705 |
if (value == null) {
|
| 695 |
rajveer |
6706 |
unsetSessionId();
|
| 420 |
ashish |
6707 |
} else {
|
| 695 |
rajveer |
6708 |
setSessionId((String)value);
|
| 420 |
ashish |
6709 |
}
|
|
|
6710 |
break;
|
|
|
6711 |
|
| 695 |
rajveer |
6712 |
case GATEWAY_TXN_STATUS:
|
| 420 |
ashish |
6713 |
if (value == null) {
|
| 695 |
rajveer |
6714 |
unsetGatewayTxnStatus();
|
| 420 |
ashish |
6715 |
} else {
|
| 695 |
rajveer |
6716 |
setGatewayTxnStatus((String)value);
|
| 420 |
ashish |
6717 |
}
|
|
|
6718 |
break;
|
|
|
6719 |
|
| 695 |
rajveer |
6720 |
case DESCRIPTION:
|
| 420 |
ashish |
6721 |
if (value == null) {
|
| 695 |
rajveer |
6722 |
unsetDescription();
|
| 420 |
ashish |
6723 |
} else {
|
| 695 |
rajveer |
6724 |
setDescription((String)value);
|
| 420 |
ashish |
6725 |
}
|
|
|
6726 |
break;
|
|
|
6727 |
|
| 695 |
rajveer |
6728 |
case GATEWAY_TXN_ID:
|
| 420 |
ashish |
6729 |
if (value == null) {
|
| 695 |
rajveer |
6730 |
unsetGatewayTxnId();
|
| 420 |
ashish |
6731 |
} else {
|
| 695 |
rajveer |
6732 |
setGatewayTxnId((String)value);
|
| 420 |
ashish |
6733 |
}
|
|
|
6734 |
break;
|
|
|
6735 |
|
|
|
6736 |
case AUTH_CODE:
|
|
|
6737 |
if (value == null) {
|
| 695 |
rajveer |
6738 |
unsetAuthCode();
|
| 420 |
ashish |
6739 |
} else {
|
| 695 |
rajveer |
6740 |
setAuthCode((String)value);
|
| 420 |
ashish |
6741 |
}
|
|
|
6742 |
break;
|
|
|
6743 |
|
| 695 |
rajveer |
6744 |
case REFERENCE_CODE:
|
| 420 |
ashish |
6745 |
if (value == null) {
|
| 695 |
rajveer |
6746 |
unsetReferenceCode();
|
| 420 |
ashish |
6747 |
} else {
|
| 695 |
rajveer |
6748 |
setReferenceCode((String)value);
|
| 420 |
ashish |
6749 |
}
|
|
|
6750 |
break;
|
|
|
6751 |
|
| 695 |
rajveer |
6752 |
case ERROR_CODE:
|
|
|
6753 |
if (value == null) {
|
|
|
6754 |
unsetErrorCode();
|
|
|
6755 |
} else {
|
|
|
6756 |
setErrorCode((String)value);
|
|
|
6757 |
}
|
|
|
6758 |
break;
|
|
|
6759 |
|
|
|
6760 |
case STATUS:
|
|
|
6761 |
if (value == null) {
|
|
|
6762 |
unsetStatus();
|
|
|
6763 |
} else {
|
|
|
6764 |
setStatus((PaymentStatus)value);
|
|
|
6765 |
}
|
|
|
6766 |
break;
|
|
|
6767 |
|
| 1119 |
rajveer |
6768 |
case GATEWAY_TXN_DATE:
|
|
|
6769 |
if (value == null) {
|
|
|
6770 |
unsetGatewayTxnDate();
|
|
|
6771 |
} else {
|
|
|
6772 |
setGatewayTxnDate((String)value);
|
|
|
6773 |
}
|
|
|
6774 |
break;
|
|
|
6775 |
|
| 695 |
rajveer |
6776 |
case ATTRIBUTES:
|
|
|
6777 |
if (value == null) {
|
|
|
6778 |
unsetAttributes();
|
|
|
6779 |
} else {
|
|
|
6780 |
setAttributes((List<Attribute>)value);
|
|
|
6781 |
}
|
|
|
6782 |
break;
|
|
|
6783 |
|
| 420 |
ashish |
6784 |
}
|
|
|
6785 |
}
|
|
|
6786 |
|
|
|
6787 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
6788 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
6789 |
}
|
|
|
6790 |
|
|
|
6791 |
public Object getFieldValue(_Fields field) {
|
|
|
6792 |
switch (field) {
|
|
|
6793 |
case ID:
|
|
|
6794 |
return new Long(getId());
|
|
|
6795 |
|
| 695 |
rajveer |
6796 |
case GATEWAY_PAYMENT_ID:
|
|
|
6797 |
return getGatewayPaymentId();
|
| 420 |
ashish |
6798 |
|
| 695 |
rajveer |
6799 |
case SESSION_ID:
|
|
|
6800 |
return getSessionId();
|
| 420 |
ashish |
6801 |
|
| 695 |
rajveer |
6802 |
case GATEWAY_TXN_STATUS:
|
|
|
6803 |
return getGatewayTxnStatus();
|
| 420 |
ashish |
6804 |
|
| 695 |
rajveer |
6805 |
case DESCRIPTION:
|
|
|
6806 |
return getDescription();
|
| 420 |
ashish |
6807 |
|
| 695 |
rajveer |
6808 |
case GATEWAY_TXN_ID:
|
|
|
6809 |
return getGatewayTxnId();
|
| 420 |
ashish |
6810 |
|
|
|
6811 |
case AUTH_CODE:
|
| 695 |
rajveer |
6812 |
return getAuthCode();
|
| 420 |
ashish |
6813 |
|
| 695 |
rajveer |
6814 |
case REFERENCE_CODE:
|
|
|
6815 |
return getReferenceCode();
|
| 420 |
ashish |
6816 |
|
| 695 |
rajveer |
6817 |
case ERROR_CODE:
|
|
|
6818 |
return getErrorCode();
|
|
|
6819 |
|
|
|
6820 |
case STATUS:
|
|
|
6821 |
return getStatus();
|
|
|
6822 |
|
| 1119 |
rajveer |
6823 |
case GATEWAY_TXN_DATE:
|
|
|
6824 |
return getGatewayTxnDate();
|
|
|
6825 |
|
| 695 |
rajveer |
6826 |
case ATTRIBUTES:
|
|
|
6827 |
return getAttributes();
|
|
|
6828 |
|
| 420 |
ashish |
6829 |
}
|
|
|
6830 |
throw new IllegalStateException();
|
|
|
6831 |
}
|
|
|
6832 |
|
|
|
6833 |
public Object getFieldValue(int fieldId) {
|
|
|
6834 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
6835 |
}
|
|
|
6836 |
|
|
|
6837 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
6838 |
public boolean isSet(_Fields field) {
|
|
|
6839 |
switch (field) {
|
|
|
6840 |
case ID:
|
|
|
6841 |
return isSetId();
|
| 695 |
rajveer |
6842 |
case GATEWAY_PAYMENT_ID:
|
|
|
6843 |
return isSetGatewayPaymentId();
|
| 420 |
ashish |
6844 |
case SESSION_ID:
|
| 695 |
rajveer |
6845 |
return isSetSessionId();
|
|
|
6846 |
case GATEWAY_TXN_STATUS:
|
|
|
6847 |
return isSetGatewayTxnStatus();
|
|
|
6848 |
case DESCRIPTION:
|
|
|
6849 |
return isSetDescription();
|
|
|
6850 |
case GATEWAY_TXN_ID:
|
|
|
6851 |
return isSetGatewayTxnId();
|
| 420 |
ashish |
6852 |
case AUTH_CODE:
|
| 695 |
rajveer |
6853 |
return isSetAuthCode();
|
|
|
6854 |
case REFERENCE_CODE:
|
|
|
6855 |
return isSetReferenceCode();
|
|
|
6856 |
case ERROR_CODE:
|
|
|
6857 |
return isSetErrorCode();
|
|
|
6858 |
case STATUS:
|
|
|
6859 |
return isSetStatus();
|
| 1119 |
rajveer |
6860 |
case GATEWAY_TXN_DATE:
|
|
|
6861 |
return isSetGatewayTxnDate();
|
| 695 |
rajveer |
6862 |
case ATTRIBUTES:
|
|
|
6863 |
return isSetAttributes();
|
| 420 |
ashish |
6864 |
}
|
|
|
6865 |
throw new IllegalStateException();
|
|
|
6866 |
}
|
|
|
6867 |
|
|
|
6868 |
public boolean isSet(int fieldID) {
|
|
|
6869 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
6870 |
}
|
|
|
6871 |
|
|
|
6872 |
@Override
|
|
|
6873 |
public boolean equals(Object that) {
|
|
|
6874 |
if (that == null)
|
|
|
6875 |
return false;
|
| 695 |
rajveer |
6876 |
if (that instanceof updatePaymentDetails_args)
|
|
|
6877 |
return this.equals((updatePaymentDetails_args)that);
|
| 420 |
ashish |
6878 |
return false;
|
|
|
6879 |
}
|
|
|
6880 |
|
| 695 |
rajveer |
6881 |
public boolean equals(updatePaymentDetails_args that) {
|
| 420 |
ashish |
6882 |
if (that == null)
|
|
|
6883 |
return false;
|
|
|
6884 |
|
|
|
6885 |
boolean this_present_id = true;
|
|
|
6886 |
boolean that_present_id = true;
|
|
|
6887 |
if (this_present_id || that_present_id) {
|
|
|
6888 |
if (!(this_present_id && that_present_id))
|
|
|
6889 |
return false;
|
|
|
6890 |
if (this.id != that.id)
|
|
|
6891 |
return false;
|
|
|
6892 |
}
|
|
|
6893 |
|
| 695 |
rajveer |
6894 |
boolean this_present_gatewayPaymentId = true && this.isSetGatewayPaymentId();
|
|
|
6895 |
boolean that_present_gatewayPaymentId = true && that.isSetGatewayPaymentId();
|
|
|
6896 |
if (this_present_gatewayPaymentId || that_present_gatewayPaymentId) {
|
|
|
6897 |
if (!(this_present_gatewayPaymentId && that_present_gatewayPaymentId))
|
| 420 |
ashish |
6898 |
return false;
|
| 695 |
rajveer |
6899 |
if (!this.gatewayPaymentId.equals(that.gatewayPaymentId))
|
| 420 |
ashish |
6900 |
return false;
|
|
|
6901 |
}
|
|
|
6902 |
|
| 695 |
rajveer |
6903 |
boolean this_present_sessionId = true && this.isSetSessionId();
|
|
|
6904 |
boolean that_present_sessionId = true && that.isSetSessionId();
|
|
|
6905 |
if (this_present_sessionId || that_present_sessionId) {
|
|
|
6906 |
if (!(this_present_sessionId && that_present_sessionId))
|
| 420 |
ashish |
6907 |
return false;
|
| 695 |
rajveer |
6908 |
if (!this.sessionId.equals(that.sessionId))
|
| 420 |
ashish |
6909 |
return false;
|
|
|
6910 |
}
|
|
|
6911 |
|
| 695 |
rajveer |
6912 |
boolean this_present_gatewayTxnStatus = true && this.isSetGatewayTxnStatus();
|
|
|
6913 |
boolean that_present_gatewayTxnStatus = true && that.isSetGatewayTxnStatus();
|
|
|
6914 |
if (this_present_gatewayTxnStatus || that_present_gatewayTxnStatus) {
|
|
|
6915 |
if (!(this_present_gatewayTxnStatus && that_present_gatewayTxnStatus))
|
| 420 |
ashish |
6916 |
return false;
|
| 695 |
rajveer |
6917 |
if (!this.gatewayTxnStatus.equals(that.gatewayTxnStatus))
|
| 420 |
ashish |
6918 |
return false;
|
|
|
6919 |
}
|
|
|
6920 |
|
| 695 |
rajveer |
6921 |
boolean this_present_description = true && this.isSetDescription();
|
|
|
6922 |
boolean that_present_description = true && that.isSetDescription();
|
|
|
6923 |
if (this_present_description || that_present_description) {
|
|
|
6924 |
if (!(this_present_description && that_present_description))
|
| 420 |
ashish |
6925 |
return false;
|
| 695 |
rajveer |
6926 |
if (!this.description.equals(that.description))
|
| 420 |
ashish |
6927 |
return false;
|
|
|
6928 |
}
|
|
|
6929 |
|
| 695 |
rajveer |
6930 |
boolean this_present_gatewayTxnId = true && this.isSetGatewayTxnId();
|
|
|
6931 |
boolean that_present_gatewayTxnId = true && that.isSetGatewayTxnId();
|
|
|
6932 |
if (this_present_gatewayTxnId || that_present_gatewayTxnId) {
|
|
|
6933 |
if (!(this_present_gatewayTxnId && that_present_gatewayTxnId))
|
| 420 |
ashish |
6934 |
return false;
|
| 695 |
rajveer |
6935 |
if (!this.gatewayTxnId.equals(that.gatewayTxnId))
|
| 420 |
ashish |
6936 |
return false;
|
|
|
6937 |
}
|
|
|
6938 |
|
| 695 |
rajveer |
6939 |
boolean this_present_authCode = true && this.isSetAuthCode();
|
|
|
6940 |
boolean that_present_authCode = true && that.isSetAuthCode();
|
|
|
6941 |
if (this_present_authCode || that_present_authCode) {
|
|
|
6942 |
if (!(this_present_authCode && that_present_authCode))
|
| 420 |
ashish |
6943 |
return false;
|
| 695 |
rajveer |
6944 |
if (!this.authCode.equals(that.authCode))
|
| 420 |
ashish |
6945 |
return false;
|
|
|
6946 |
}
|
|
|
6947 |
|
| 695 |
rajveer |
6948 |
boolean this_present_referenceCode = true && this.isSetReferenceCode();
|
|
|
6949 |
boolean that_present_referenceCode = true && that.isSetReferenceCode();
|
|
|
6950 |
if (this_present_referenceCode || that_present_referenceCode) {
|
|
|
6951 |
if (!(this_present_referenceCode && that_present_referenceCode))
|
| 420 |
ashish |
6952 |
return false;
|
| 695 |
rajveer |
6953 |
if (!this.referenceCode.equals(that.referenceCode))
|
| 420 |
ashish |
6954 |
return false;
|
|
|
6955 |
}
|
|
|
6956 |
|
| 695 |
rajveer |
6957 |
boolean this_present_errorCode = true && this.isSetErrorCode();
|
|
|
6958 |
boolean that_present_errorCode = true && that.isSetErrorCode();
|
|
|
6959 |
if (this_present_errorCode || that_present_errorCode) {
|
|
|
6960 |
if (!(this_present_errorCode && that_present_errorCode))
|
|
|
6961 |
return false;
|
|
|
6962 |
if (!this.errorCode.equals(that.errorCode))
|
|
|
6963 |
return false;
|
|
|
6964 |
}
|
|
|
6965 |
|
|
|
6966 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
6967 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
6968 |
if (this_present_status || that_present_status) {
|
|
|
6969 |
if (!(this_present_status && that_present_status))
|
|
|
6970 |
return false;
|
|
|
6971 |
if (!this.status.equals(that.status))
|
|
|
6972 |
return false;
|
|
|
6973 |
}
|
|
|
6974 |
|
| 1119 |
rajveer |
6975 |
boolean this_present_gatewayTxnDate = true && this.isSetGatewayTxnDate();
|
|
|
6976 |
boolean that_present_gatewayTxnDate = true && that.isSetGatewayTxnDate();
|
|
|
6977 |
if (this_present_gatewayTxnDate || that_present_gatewayTxnDate) {
|
|
|
6978 |
if (!(this_present_gatewayTxnDate && that_present_gatewayTxnDate))
|
|
|
6979 |
return false;
|
|
|
6980 |
if (!this.gatewayTxnDate.equals(that.gatewayTxnDate))
|
|
|
6981 |
return false;
|
|
|
6982 |
}
|
|
|
6983 |
|
| 695 |
rajveer |
6984 |
boolean this_present_attributes = true && this.isSetAttributes();
|
|
|
6985 |
boolean that_present_attributes = true && that.isSetAttributes();
|
|
|
6986 |
if (this_present_attributes || that_present_attributes) {
|
|
|
6987 |
if (!(this_present_attributes && that_present_attributes))
|
|
|
6988 |
return false;
|
|
|
6989 |
if (!this.attributes.equals(that.attributes))
|
|
|
6990 |
return false;
|
|
|
6991 |
}
|
|
|
6992 |
|
| 420 |
ashish |
6993 |
return true;
|
|
|
6994 |
}
|
|
|
6995 |
|
|
|
6996 |
@Override
|
|
|
6997 |
public int hashCode() {
|
|
|
6998 |
return 0;
|
|
|
6999 |
}
|
|
|
7000 |
|
| 695 |
rajveer |
7001 |
public int compareTo(updatePaymentDetails_args other) {
|
| 420 |
ashish |
7002 |
if (!getClass().equals(other.getClass())) {
|
|
|
7003 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7004 |
}
|
|
|
7005 |
|
|
|
7006 |
int lastComparison = 0;
|
| 695 |
rajveer |
7007 |
updatePaymentDetails_args typedOther = (updatePaymentDetails_args)other;
|
| 420 |
ashish |
7008 |
|
|
|
7009 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
|
|
|
7010 |
if (lastComparison != 0) {
|
|
|
7011 |
return lastComparison;
|
|
|
7012 |
}
|
|
|
7013 |
lastComparison = TBaseHelper.compareTo(id, typedOther.id);
|
|
|
7014 |
if (lastComparison != 0) {
|
|
|
7015 |
return lastComparison;
|
|
|
7016 |
}
|
| 695 |
rajveer |
7017 |
lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(isSetGatewayPaymentId());
|
| 420 |
ashish |
7018 |
if (lastComparison != 0) {
|
|
|
7019 |
return lastComparison;
|
|
|
7020 |
}
|
| 695 |
rajveer |
7021 |
lastComparison = TBaseHelper.compareTo(gatewayPaymentId, typedOther.gatewayPaymentId);
|
| 420 |
ashish |
7022 |
if (lastComparison != 0) {
|
|
|
7023 |
return lastComparison;
|
|
|
7024 |
}
|
| 695 |
rajveer |
7025 |
lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(isSetSessionId());
|
| 420 |
ashish |
7026 |
if (lastComparison != 0) {
|
|
|
7027 |
return lastComparison;
|
|
|
7028 |
}
|
| 695 |
rajveer |
7029 |
lastComparison = TBaseHelper.compareTo(sessionId, typedOther.sessionId);
|
| 420 |
ashish |
7030 |
if (lastComparison != 0) {
|
|
|
7031 |
return lastComparison;
|
|
|
7032 |
}
|
| 695 |
rajveer |
7033 |
lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(isSetGatewayTxnStatus());
|
| 420 |
ashish |
7034 |
if (lastComparison != 0) {
|
|
|
7035 |
return lastComparison;
|
|
|
7036 |
}
|
| 695 |
rajveer |
7037 |
lastComparison = TBaseHelper.compareTo(gatewayTxnStatus, typedOther.gatewayTxnStatus);
|
| 420 |
ashish |
7038 |
if (lastComparison != 0) {
|
|
|
7039 |
return lastComparison;
|
|
|
7040 |
}
|
| 695 |
rajveer |
7041 |
lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
|
| 420 |
ashish |
7042 |
if (lastComparison != 0) {
|
|
|
7043 |
return lastComparison;
|
|
|
7044 |
}
|
| 695 |
rajveer |
7045 |
lastComparison = TBaseHelper.compareTo(description, typedOther.description);
|
| 420 |
ashish |
7046 |
if (lastComparison != 0) {
|
|
|
7047 |
return lastComparison;
|
|
|
7048 |
}
|
| 695 |
rajveer |
7049 |
lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(isSetGatewayTxnId());
|
| 420 |
ashish |
7050 |
if (lastComparison != 0) {
|
|
|
7051 |
return lastComparison;
|
|
|
7052 |
}
|
| 695 |
rajveer |
7053 |
lastComparison = TBaseHelper.compareTo(gatewayTxnId, typedOther.gatewayTxnId);
|
| 420 |
ashish |
7054 |
if (lastComparison != 0) {
|
|
|
7055 |
return lastComparison;
|
|
|
7056 |
}
|
| 695 |
rajveer |
7057 |
lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(isSetAuthCode());
|
| 420 |
ashish |
7058 |
if (lastComparison != 0) {
|
|
|
7059 |
return lastComparison;
|
|
|
7060 |
}
|
| 695 |
rajveer |
7061 |
lastComparison = TBaseHelper.compareTo(authCode, typedOther.authCode);
|
| 420 |
ashish |
7062 |
if (lastComparison != 0) {
|
|
|
7063 |
return lastComparison;
|
|
|
7064 |
}
|
| 695 |
rajveer |
7065 |
lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(isSetReferenceCode());
|
| 420 |
ashish |
7066 |
if (lastComparison != 0) {
|
|
|
7067 |
return lastComparison;
|
|
|
7068 |
}
|
| 695 |
rajveer |
7069 |
lastComparison = TBaseHelper.compareTo(referenceCode, typedOther.referenceCode);
|
| 420 |
ashish |
7070 |
if (lastComparison != 0) {
|
|
|
7071 |
return lastComparison;
|
|
|
7072 |
}
|
| 695 |
rajveer |
7073 |
lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(isSetErrorCode());
|
|
|
7074 |
if (lastComparison != 0) {
|
|
|
7075 |
return lastComparison;
|
|
|
7076 |
}
|
|
|
7077 |
lastComparison = TBaseHelper.compareTo(errorCode, typedOther.errorCode);
|
|
|
7078 |
if (lastComparison != 0) {
|
|
|
7079 |
return lastComparison;
|
|
|
7080 |
}
|
|
|
7081 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
|
|
|
7082 |
if (lastComparison != 0) {
|
|
|
7083 |
return lastComparison;
|
|
|
7084 |
}
|
|
|
7085 |
lastComparison = TBaseHelper.compareTo(status, typedOther.status);
|
|
|
7086 |
if (lastComparison != 0) {
|
|
|
7087 |
return lastComparison;
|
|
|
7088 |
}
|
| 1119 |
rajveer |
7089 |
lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(isSetGatewayTxnDate());
|
|
|
7090 |
if (lastComparison != 0) {
|
|
|
7091 |
return lastComparison;
|
|
|
7092 |
}
|
|
|
7093 |
lastComparison = TBaseHelper.compareTo(gatewayTxnDate, typedOther.gatewayTxnDate);
|
|
|
7094 |
if (lastComparison != 0) {
|
|
|
7095 |
return lastComparison;
|
|
|
7096 |
}
|
| 695 |
rajveer |
7097 |
lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(isSetAttributes());
|
|
|
7098 |
if (lastComparison != 0) {
|
|
|
7099 |
return lastComparison;
|
|
|
7100 |
}
|
|
|
7101 |
lastComparison = TBaseHelper.compareTo(attributes, typedOther.attributes);
|
|
|
7102 |
if (lastComparison != 0) {
|
|
|
7103 |
return lastComparison;
|
|
|
7104 |
}
|
| 420 |
ashish |
7105 |
return 0;
|
|
|
7106 |
}
|
|
|
7107 |
|
|
|
7108 |
public void read(TProtocol iprot) throws TException {
|
|
|
7109 |
TField field;
|
|
|
7110 |
iprot.readStructBegin();
|
|
|
7111 |
while (true)
|
|
|
7112 |
{
|
|
|
7113 |
field = iprot.readFieldBegin();
|
|
|
7114 |
if (field.type == TType.STOP) {
|
|
|
7115 |
break;
|
|
|
7116 |
}
|
|
|
7117 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
7118 |
if (fieldId == null) {
|
|
|
7119 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7120 |
} else {
|
|
|
7121 |
switch (fieldId) {
|
|
|
7122 |
case ID:
|
|
|
7123 |
if (field.type == TType.I64) {
|
|
|
7124 |
this.id = iprot.readI64();
|
|
|
7125 |
setIdIsSet(true);
|
|
|
7126 |
} else {
|
|
|
7127 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7128 |
}
|
|
|
7129 |
break;
|
| 695 |
rajveer |
7130 |
case GATEWAY_PAYMENT_ID:
|
| 420 |
ashish |
7131 |
if (field.type == TType.STRING) {
|
| 695 |
rajveer |
7132 |
this.gatewayPaymentId = iprot.readString();
|
| 420 |
ashish |
7133 |
} else {
|
|
|
7134 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7135 |
}
|
|
|
7136 |
break;
|
| 695 |
rajveer |
7137 |
case SESSION_ID:
|
| 420 |
ashish |
7138 |
if (field.type == TType.STRING) {
|
| 695 |
rajveer |
7139 |
this.sessionId = iprot.readString();
|
| 420 |
ashish |
7140 |
} else {
|
|
|
7141 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7142 |
}
|
|
|
7143 |
break;
|
| 695 |
rajveer |
7144 |
case GATEWAY_TXN_STATUS:
|
| 420 |
ashish |
7145 |
if (field.type == TType.STRING) {
|
| 695 |
rajveer |
7146 |
this.gatewayTxnStatus = iprot.readString();
|
| 420 |
ashish |
7147 |
} else {
|
|
|
7148 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7149 |
}
|
|
|
7150 |
break;
|
| 695 |
rajveer |
7151 |
case DESCRIPTION:
|
| 420 |
ashish |
7152 |
if (field.type == TType.STRING) {
|
| 695 |
rajveer |
7153 |
this.description = iprot.readString();
|
| 420 |
ashish |
7154 |
} else {
|
|
|
7155 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7156 |
}
|
|
|
7157 |
break;
|
| 695 |
rajveer |
7158 |
case GATEWAY_TXN_ID:
|
| 420 |
ashish |
7159 |
if (field.type == TType.STRING) {
|
| 695 |
rajveer |
7160 |
this.gatewayTxnId = iprot.readString();
|
| 420 |
ashish |
7161 |
} else {
|
|
|
7162 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7163 |
}
|
|
|
7164 |
break;
|
|
|
7165 |
case AUTH_CODE:
|
|
|
7166 |
if (field.type == TType.STRING) {
|
| 695 |
rajveer |
7167 |
this.authCode = iprot.readString();
|
| 420 |
ashish |
7168 |
} else {
|
|
|
7169 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7170 |
}
|
|
|
7171 |
break;
|
| 695 |
rajveer |
7172 |
case REFERENCE_CODE:
|
| 420 |
ashish |
7173 |
if (field.type == TType.STRING) {
|
| 695 |
rajveer |
7174 |
this.referenceCode = iprot.readString();
|
| 420 |
ashish |
7175 |
} else {
|
|
|
7176 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7177 |
}
|
|
|
7178 |
break;
|
| 695 |
rajveer |
7179 |
case ERROR_CODE:
|
|
|
7180 |
if (field.type == TType.STRING) {
|
|
|
7181 |
this.errorCode = iprot.readString();
|
|
|
7182 |
} else {
|
|
|
7183 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7184 |
}
|
|
|
7185 |
break;
|
|
|
7186 |
case STATUS:
|
|
|
7187 |
if (field.type == TType.I32) {
|
|
|
7188 |
this.status = PaymentStatus.findByValue(iprot.readI32());
|
|
|
7189 |
} else {
|
|
|
7190 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7191 |
}
|
|
|
7192 |
break;
|
| 1119 |
rajveer |
7193 |
case GATEWAY_TXN_DATE:
|
|
|
7194 |
if (field.type == TType.STRING) {
|
|
|
7195 |
this.gatewayTxnDate = iprot.readString();
|
|
|
7196 |
} else {
|
|
|
7197 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7198 |
}
|
|
|
7199 |
break;
|
| 695 |
rajveer |
7200 |
case ATTRIBUTES:
|
|
|
7201 |
if (field.type == TType.LIST) {
|
|
|
7202 |
{
|
|
|
7203 |
TList _list20 = iprot.readListBegin();
|
|
|
7204 |
this.attributes = new ArrayList<Attribute>(_list20.size);
|
|
|
7205 |
for (int _i21 = 0; _i21 < _list20.size; ++_i21)
|
|
|
7206 |
{
|
|
|
7207 |
Attribute _elem22;
|
|
|
7208 |
_elem22 = new Attribute();
|
|
|
7209 |
_elem22.read(iprot);
|
|
|
7210 |
this.attributes.add(_elem22);
|
|
|
7211 |
}
|
|
|
7212 |
iprot.readListEnd();
|
|
|
7213 |
}
|
|
|
7214 |
} else {
|
|
|
7215 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7216 |
}
|
|
|
7217 |
break;
|
| 420 |
ashish |
7218 |
}
|
|
|
7219 |
iprot.readFieldEnd();
|
|
|
7220 |
}
|
|
|
7221 |
}
|
|
|
7222 |
iprot.readStructEnd();
|
|
|
7223 |
validate();
|
|
|
7224 |
}
|
|
|
7225 |
|
|
|
7226 |
public void write(TProtocol oprot) throws TException {
|
|
|
7227 |
validate();
|
|
|
7228 |
|
|
|
7229 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7230 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
7231 |
oprot.writeI64(this.id);
|
|
|
7232 |
oprot.writeFieldEnd();
|
| 695 |
rajveer |
7233 |
if (this.gatewayPaymentId != null) {
|
|
|
7234 |
oprot.writeFieldBegin(GATEWAY_PAYMENT_ID_FIELD_DESC);
|
|
|
7235 |
oprot.writeString(this.gatewayPaymentId);
|
| 420 |
ashish |
7236 |
oprot.writeFieldEnd();
|
|
|
7237 |
}
|
| 695 |
rajveer |
7238 |
if (this.sessionId != null) {
|
|
|
7239 |
oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
|
|
|
7240 |
oprot.writeString(this.sessionId);
|
| 420 |
ashish |
7241 |
oprot.writeFieldEnd();
|
|
|
7242 |
}
|
| 695 |
rajveer |
7243 |
if (this.gatewayTxnStatus != null) {
|
|
|
7244 |
oprot.writeFieldBegin(GATEWAY_TXN_STATUS_FIELD_DESC);
|
|
|
7245 |
oprot.writeString(this.gatewayTxnStatus);
|
| 420 |
ashish |
7246 |
oprot.writeFieldEnd();
|
|
|
7247 |
}
|
| 695 |
rajveer |
7248 |
if (this.description != null) {
|
|
|
7249 |
oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
|
|
|
7250 |
oprot.writeString(this.description);
|
| 420 |
ashish |
7251 |
oprot.writeFieldEnd();
|
|
|
7252 |
}
|
| 695 |
rajveer |
7253 |
if (this.gatewayTxnId != null) {
|
|
|
7254 |
oprot.writeFieldBegin(GATEWAY_TXN_ID_FIELD_DESC);
|
|
|
7255 |
oprot.writeString(this.gatewayTxnId);
|
| 420 |
ashish |
7256 |
oprot.writeFieldEnd();
|
|
|
7257 |
}
|
| 695 |
rajveer |
7258 |
if (this.authCode != null) {
|
| 420 |
ashish |
7259 |
oprot.writeFieldBegin(AUTH_CODE_FIELD_DESC);
|
| 695 |
rajveer |
7260 |
oprot.writeString(this.authCode);
|
| 420 |
ashish |
7261 |
oprot.writeFieldEnd();
|
|
|
7262 |
}
|
| 695 |
rajveer |
7263 |
if (this.referenceCode != null) {
|
|
|
7264 |
oprot.writeFieldBegin(REFERENCE_CODE_FIELD_DESC);
|
|
|
7265 |
oprot.writeString(this.referenceCode);
|
| 420 |
ashish |
7266 |
oprot.writeFieldEnd();
|
|
|
7267 |
}
|
| 695 |
rajveer |
7268 |
if (this.errorCode != null) {
|
|
|
7269 |
oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
|
|
|
7270 |
oprot.writeString(this.errorCode);
|
|
|
7271 |
oprot.writeFieldEnd();
|
|
|
7272 |
}
|
|
|
7273 |
if (this.status != null) {
|
|
|
7274 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
7275 |
oprot.writeI32(this.status.getValue());
|
|
|
7276 |
oprot.writeFieldEnd();
|
|
|
7277 |
}
|
| 1119 |
rajveer |
7278 |
if (this.gatewayTxnDate != null) {
|
|
|
7279 |
oprot.writeFieldBegin(GATEWAY_TXN_DATE_FIELD_DESC);
|
|
|
7280 |
oprot.writeString(this.gatewayTxnDate);
|
|
|
7281 |
oprot.writeFieldEnd();
|
|
|
7282 |
}
|
| 695 |
rajveer |
7283 |
if (this.attributes != null) {
|
|
|
7284 |
oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
|
|
|
7285 |
{
|
|
|
7286 |
oprot.writeListBegin(new TList(TType.STRUCT, this.attributes.size()));
|
|
|
7287 |
for (Attribute _iter23 : this.attributes)
|
|
|
7288 |
{
|
|
|
7289 |
_iter23.write(oprot);
|
|
|
7290 |
}
|
|
|
7291 |
oprot.writeListEnd();
|
|
|
7292 |
}
|
|
|
7293 |
oprot.writeFieldEnd();
|
|
|
7294 |
}
|
| 420 |
ashish |
7295 |
oprot.writeFieldStop();
|
|
|
7296 |
oprot.writeStructEnd();
|
|
|
7297 |
}
|
|
|
7298 |
|
|
|
7299 |
@Override
|
|
|
7300 |
public String toString() {
|
| 695 |
rajveer |
7301 |
StringBuilder sb = new StringBuilder("updatePaymentDetails_args(");
|
| 420 |
ashish |
7302 |
boolean first = true;
|
|
|
7303 |
|
|
|
7304 |
sb.append("id:");
|
|
|
7305 |
sb.append(this.id);
|
|
|
7306 |
first = false;
|
|
|
7307 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7308 |
sb.append("gatewayPaymentId:");
|
|
|
7309 |
if (this.gatewayPaymentId == null) {
|
| 420 |
ashish |
7310 |
sb.append("null");
|
|
|
7311 |
} else {
|
| 695 |
rajveer |
7312 |
sb.append(this.gatewayPaymentId);
|
| 420 |
ashish |
7313 |
}
|
|
|
7314 |
first = false;
|
|
|
7315 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7316 |
sb.append("sessionId:");
|
|
|
7317 |
if (this.sessionId == null) {
|
| 420 |
ashish |
7318 |
sb.append("null");
|
|
|
7319 |
} else {
|
| 695 |
rajveer |
7320 |
sb.append(this.sessionId);
|
| 420 |
ashish |
7321 |
}
|
|
|
7322 |
first = false;
|
|
|
7323 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7324 |
sb.append("gatewayTxnStatus:");
|
|
|
7325 |
if (this.gatewayTxnStatus == null) {
|
| 420 |
ashish |
7326 |
sb.append("null");
|
|
|
7327 |
} else {
|
| 695 |
rajveer |
7328 |
sb.append(this.gatewayTxnStatus);
|
| 420 |
ashish |
7329 |
}
|
|
|
7330 |
first = false;
|
|
|
7331 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7332 |
sb.append("description:");
|
|
|
7333 |
if (this.description == null) {
|
| 420 |
ashish |
7334 |
sb.append("null");
|
|
|
7335 |
} else {
|
| 695 |
rajveer |
7336 |
sb.append(this.description);
|
| 420 |
ashish |
7337 |
}
|
|
|
7338 |
first = false;
|
|
|
7339 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7340 |
sb.append("gatewayTxnId:");
|
|
|
7341 |
if (this.gatewayTxnId == null) {
|
| 420 |
ashish |
7342 |
sb.append("null");
|
|
|
7343 |
} else {
|
| 695 |
rajveer |
7344 |
sb.append(this.gatewayTxnId);
|
| 420 |
ashish |
7345 |
}
|
|
|
7346 |
first = false;
|
|
|
7347 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7348 |
sb.append("authCode:");
|
|
|
7349 |
if (this.authCode == null) {
|
| 420 |
ashish |
7350 |
sb.append("null");
|
|
|
7351 |
} else {
|
| 695 |
rajveer |
7352 |
sb.append(this.authCode);
|
| 420 |
ashish |
7353 |
}
|
|
|
7354 |
first = false;
|
|
|
7355 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7356 |
sb.append("referenceCode:");
|
|
|
7357 |
if (this.referenceCode == null) {
|
| 420 |
ashish |
7358 |
sb.append("null");
|
|
|
7359 |
} else {
|
| 695 |
rajveer |
7360 |
sb.append(this.referenceCode);
|
| 420 |
ashish |
7361 |
}
|
|
|
7362 |
first = false;
|
| 695 |
rajveer |
7363 |
if (!first) sb.append(", ");
|
|
|
7364 |
sb.append("errorCode:");
|
|
|
7365 |
if (this.errorCode == null) {
|
|
|
7366 |
sb.append("null");
|
|
|
7367 |
} else {
|
|
|
7368 |
sb.append(this.errorCode);
|
|
|
7369 |
}
|
|
|
7370 |
first = false;
|
|
|
7371 |
if (!first) sb.append(", ");
|
|
|
7372 |
sb.append("status:");
|
|
|
7373 |
if (this.status == null) {
|
|
|
7374 |
sb.append("null");
|
|
|
7375 |
} else {
|
|
|
7376 |
String status_name = status.name();
|
|
|
7377 |
if (status_name != null) {
|
|
|
7378 |
sb.append(status_name);
|
|
|
7379 |
sb.append(" (");
|
|
|
7380 |
}
|
|
|
7381 |
sb.append(this.status);
|
|
|
7382 |
if (status_name != null) {
|
|
|
7383 |
sb.append(")");
|
|
|
7384 |
}
|
|
|
7385 |
}
|
|
|
7386 |
first = false;
|
|
|
7387 |
if (!first) sb.append(", ");
|
| 1119 |
rajveer |
7388 |
sb.append("gatewayTxnDate:");
|
|
|
7389 |
if (this.gatewayTxnDate == null) {
|
|
|
7390 |
sb.append("null");
|
|
|
7391 |
} else {
|
|
|
7392 |
sb.append(this.gatewayTxnDate);
|
|
|
7393 |
}
|
|
|
7394 |
first = false;
|
|
|
7395 |
if (!first) sb.append(", ");
|
| 695 |
rajveer |
7396 |
sb.append("attributes:");
|
|
|
7397 |
if (this.attributes == null) {
|
|
|
7398 |
sb.append("null");
|
|
|
7399 |
} else {
|
|
|
7400 |
sb.append(this.attributes);
|
|
|
7401 |
}
|
|
|
7402 |
first = false;
|
| 420 |
ashish |
7403 |
sb.append(")");
|
|
|
7404 |
return sb.toString();
|
|
|
7405 |
}
|
|
|
7406 |
|
|
|
7407 |
public void validate() throws TException {
|
|
|
7408 |
// check for required fields
|
|
|
7409 |
}
|
|
|
7410 |
|
|
|
7411 |
}
|
|
|
7412 |
|
| 695 |
rajveer |
7413 |
public static class updatePaymentDetails_result implements TBase<updatePaymentDetails_result._Fields>, java.io.Serializable, Cloneable, Comparable<updatePaymentDetails_result> {
|
|
|
7414 |
private static final TStruct STRUCT_DESC = new TStruct("updatePaymentDetails_result");
|
| 420 |
ashish |
7415 |
|
| 695 |
rajveer |
7416 |
private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
|
| 420 |
ashish |
7417 |
private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
|
|
|
7418 |
|
| 695 |
rajveer |
7419 |
private boolean success;
|
| 420 |
ashish |
7420 |
private PaymentException pe;
|
|
|
7421 |
|
|
|
7422 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7423 |
public enum _Fields implements TFieldIdEnum {
|
| 695 |
rajveer |
7424 |
SUCCESS((short)0, "success"),
|
| 420 |
ashish |
7425 |
PE((short)1, "pe");
|
|
|
7426 |
|
|
|
7427 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
7428 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7429 |
|
|
|
7430 |
static {
|
|
|
7431 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7432 |
byId.put((int)field._thriftId, field);
|
|
|
7433 |
byName.put(field.getFieldName(), field);
|
|
|
7434 |
}
|
|
|
7435 |
}
|
|
|
7436 |
|
|
|
7437 |
/**
|
|
|
7438 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7439 |
*/
|
|
|
7440 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7441 |
return byId.get(fieldId);
|
|
|
7442 |
}
|
|
|
7443 |
|
|
|
7444 |
/**
|
|
|
7445 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7446 |
* if it is not found.
|
|
|
7447 |
*/
|
|
|
7448 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7449 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7450 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7451 |
return fields;
|
|
|
7452 |
}
|
|
|
7453 |
|
|
|
7454 |
/**
|
|
|
7455 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7456 |
*/
|
|
|
7457 |
public static _Fields findByName(String name) {
|
|
|
7458 |
return byName.get(name);
|
|
|
7459 |
}
|
|
|
7460 |
|
|
|
7461 |
private final short _thriftId;
|
|
|
7462 |
private final String _fieldName;
|
|
|
7463 |
|
|
|
7464 |
_Fields(short thriftId, String fieldName) {
|
|
|
7465 |
_thriftId = thriftId;
|
|
|
7466 |
_fieldName = fieldName;
|
|
|
7467 |
}
|
|
|
7468 |
|
|
|
7469 |
public short getThriftFieldId() {
|
|
|
7470 |
return _thriftId;
|
|
|
7471 |
}
|
|
|
7472 |
|
|
|
7473 |
public String getFieldName() {
|
|
|
7474 |
return _fieldName;
|
|
|
7475 |
}
|
|
|
7476 |
}
|
|
|
7477 |
|
|
|
7478 |
// isset id assignments
|
| 695 |
rajveer |
7479 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
7480 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 420 |
ashish |
7481 |
|
|
|
7482 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
| 695 |
rajveer |
7483 |
put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,
|
|
|
7484 |
new FieldValueMetaData(TType.BOOL)));
|
| 420 |
ashish |
7485 |
put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT,
|
|
|
7486 |
new FieldValueMetaData(TType.STRUCT)));
|
|
|
7487 |
}});
|
|
|
7488 |
|
|
|
7489 |
static {
|
| 695 |
rajveer |
7490 |
FieldMetaData.addStructMetaDataMap(updatePaymentDetails_result.class, metaDataMap);
|
| 420 |
ashish |
7491 |
}
|
|
|
7492 |
|
| 695 |
rajveer |
7493 |
public updatePaymentDetails_result() {
|
| 420 |
ashish |
7494 |
}
|
|
|
7495 |
|
| 695 |
rajveer |
7496 |
public updatePaymentDetails_result(
|
|
|
7497 |
boolean success,
|
| 420 |
ashish |
7498 |
PaymentException pe)
|
|
|
7499 |
{
|
|
|
7500 |
this();
|
| 695 |
rajveer |
7501 |
this.success = success;
|
|
|
7502 |
setSuccessIsSet(true);
|
| 420 |
ashish |
7503 |
this.pe = pe;
|
|
|
7504 |
}
|
|
|
7505 |
|
|
|
7506 |
/**
|
|
|
7507 |
* Performs a deep copy on <i>other</i>.
|
|
|
7508 |
*/
|
| 695 |
rajveer |
7509 |
public updatePaymentDetails_result(updatePaymentDetails_result other) {
|
|
|
7510 |
__isset_bit_vector.clear();
|
|
|
7511 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
7512 |
this.success = other.success;
|
| 420 |
ashish |
7513 |
if (other.isSetPe()) {
|
|
|
7514 |
this.pe = new PaymentException(other.pe);
|
|
|
7515 |
}
|
|
|
7516 |
}
|
|
|
7517 |
|
| 695 |
rajveer |
7518 |
public updatePaymentDetails_result deepCopy() {
|
|
|
7519 |
return new updatePaymentDetails_result(this);
|
| 420 |
ashish |
7520 |
}
|
|
|
7521 |
|
|
|
7522 |
@Deprecated
|
| 695 |
rajveer |
7523 |
public updatePaymentDetails_result clone() {
|
|
|
7524 |
return new updatePaymentDetails_result(this);
|
| 420 |
ashish |
7525 |
}
|
|
|
7526 |
|
| 695 |
rajveer |
7527 |
public boolean isSuccess() {
|
|
|
7528 |
return this.success;
|
|
|
7529 |
}
|
|
|
7530 |
|
|
|
7531 |
public updatePaymentDetails_result setSuccess(boolean success) {
|
|
|
7532 |
this.success = success;
|
|
|
7533 |
setSuccessIsSet(true);
|
|
|
7534 |
return this;
|
|
|
7535 |
}
|
|
|
7536 |
|
|
|
7537 |
public void unsetSuccess() {
|
|
|
7538 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
7539 |
}
|
|
|
7540 |
|
|
|
7541 |
/** Returns true if field success is set (has been asigned a value) and false otherwise */
|
|
|
7542 |
public boolean isSetSuccess() {
|
|
|
7543 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
7544 |
}
|
|
|
7545 |
|
|
|
7546 |
public void setSuccessIsSet(boolean value) {
|
|
|
7547 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
7548 |
}
|
|
|
7549 |
|
| 420 |
ashish |
7550 |
public PaymentException getPe() {
|
|
|
7551 |
return this.pe;
|
|
|
7552 |
}
|
|
|
7553 |
|
| 695 |
rajveer |
7554 |
public updatePaymentDetails_result setPe(PaymentException pe) {
|
| 420 |
ashish |
7555 |
this.pe = pe;
|
|
|
7556 |
return this;
|
|
|
7557 |
}
|
|
|
7558 |
|
|
|
7559 |
public void unsetPe() {
|
|
|
7560 |
this.pe = null;
|
|
|
7561 |
}
|
|
|
7562 |
|
|
|
7563 |
/** Returns true if field pe is set (has been asigned a value) and false otherwise */
|
|
|
7564 |
public boolean isSetPe() {
|
|
|
7565 |
return this.pe != null;
|
|
|
7566 |
}
|
|
|
7567 |
|
|
|
7568 |
public void setPeIsSet(boolean value) {
|
|
|
7569 |
if (!value) {
|
|
|
7570 |
this.pe = null;
|
|
|
7571 |
}
|
|
|
7572 |
}
|
|
|
7573 |
|
|
|
7574 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7575 |
switch (field) {
|
| 695 |
rajveer |
7576 |
case SUCCESS:
|
|
|
7577 |
if (value == null) {
|
|
|
7578 |
unsetSuccess();
|
|
|
7579 |
} else {
|
|
|
7580 |
setSuccess((Boolean)value);
|
|
|
7581 |
}
|
|
|
7582 |
break;
|
|
|
7583 |
|
| 420 |
ashish |
7584 |
case PE:
|
|
|
7585 |
if (value == null) {
|
|
|
7586 |
unsetPe();
|
|
|
7587 |
} else {
|
|
|
7588 |
setPe((PaymentException)value);
|
|
|
7589 |
}
|
|
|
7590 |
break;
|
|
|
7591 |
|
|
|
7592 |
}
|
|
|
7593 |
}
|
|
|
7594 |
|
|
|
7595 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
7596 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
7597 |
}
|
|
|
7598 |
|
|
|
7599 |
public Object getFieldValue(_Fields field) {
|
|
|
7600 |
switch (field) {
|
| 695 |
rajveer |
7601 |
case SUCCESS:
|
|
|
7602 |
return new Boolean(isSuccess());
|
|
|
7603 |
|
| 420 |
ashish |
7604 |
case PE:
|
|
|
7605 |
return getPe();
|
|
|
7606 |
|
|
|
7607 |
}
|
|
|
7608 |
throw new IllegalStateException();
|
|
|
7609 |
}
|
|
|
7610 |
|
|
|
7611 |
public Object getFieldValue(int fieldId) {
|
|
|
7612 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
7613 |
}
|
|
|
7614 |
|
|
|
7615 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
7616 |
public boolean isSet(_Fields field) {
|
|
|
7617 |
switch (field) {
|
| 695 |
rajveer |
7618 |
case SUCCESS:
|
|
|
7619 |
return isSetSuccess();
|
| 420 |
ashish |
7620 |
case PE:
|
|
|
7621 |
return isSetPe();
|
|
|
7622 |
}
|
|
|
7623 |
throw new IllegalStateException();
|
|
|
7624 |
}
|
|
|
7625 |
|
|
|
7626 |
public boolean isSet(int fieldID) {
|
|
|
7627 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
7628 |
}
|
|
|
7629 |
|
|
|
7630 |
@Override
|
|
|
7631 |
public boolean equals(Object that) {
|
|
|
7632 |
if (that == null)
|
|
|
7633 |
return false;
|
| 695 |
rajveer |
7634 |
if (that instanceof updatePaymentDetails_result)
|
|
|
7635 |
return this.equals((updatePaymentDetails_result)that);
|
| 420 |
ashish |
7636 |
return false;
|
|
|
7637 |
}
|
|
|
7638 |
|
| 695 |
rajveer |
7639 |
public boolean equals(updatePaymentDetails_result that) {
|
| 420 |
ashish |
7640 |
if (that == null)
|
|
|
7641 |
return false;
|
|
|
7642 |
|
| 695 |
rajveer |
7643 |
boolean this_present_success = true;
|
|
|
7644 |
boolean that_present_success = true;
|
|
|
7645 |
if (this_present_success || that_present_success) {
|
|
|
7646 |
if (!(this_present_success && that_present_success))
|
|
|
7647 |
return false;
|
|
|
7648 |
if (this.success != that.success)
|
|
|
7649 |
return false;
|
|
|
7650 |
}
|
|
|
7651 |
|
| 420 |
ashish |
7652 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
7653 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
7654 |
if (this_present_pe || that_present_pe) {
|
|
|
7655 |
if (!(this_present_pe && that_present_pe))
|
|
|
7656 |
return false;
|
|
|
7657 |
if (!this.pe.equals(that.pe))
|
|
|
7658 |
return false;
|
|
|
7659 |
}
|
|
|
7660 |
|
|
|
7661 |
return true;
|
|
|
7662 |
}
|
|
|
7663 |
|
|
|
7664 |
@Override
|
|
|
7665 |
public int hashCode() {
|
|
|
7666 |
return 0;
|
|
|
7667 |
}
|
|
|
7668 |
|
| 695 |
rajveer |
7669 |
public int compareTo(updatePaymentDetails_result other) {
|
| 420 |
ashish |
7670 |
if (!getClass().equals(other.getClass())) {
|
|
|
7671 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7672 |
}
|
|
|
7673 |
|
|
|
7674 |
int lastComparison = 0;
|
| 695 |
rajveer |
7675 |
updatePaymentDetails_result typedOther = (updatePaymentDetails_result)other;
|
| 420 |
ashish |
7676 |
|
| 695 |
rajveer |
7677 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
|
|
|
7678 |
if (lastComparison != 0) {
|
|
|
7679 |
return lastComparison;
|
|
|
7680 |
}
|
|
|
7681 |
lastComparison = TBaseHelper.compareTo(success, typedOther.success);
|
|
|
7682 |
if (lastComparison != 0) {
|
|
|
7683 |
return lastComparison;
|
|
|
7684 |
}
|
| 420 |
ashish |
7685 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
|
|
|
7686 |
if (lastComparison != 0) {
|
|
|
7687 |
return lastComparison;
|
|
|
7688 |
}
|
|
|
7689 |
lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
|
|
|
7690 |
if (lastComparison != 0) {
|
|
|
7691 |
return lastComparison;
|
|
|
7692 |
}
|
|
|
7693 |
return 0;
|
|
|
7694 |
}
|
|
|
7695 |
|
|
|
7696 |
public void read(TProtocol iprot) throws TException {
|
|
|
7697 |
TField field;
|
|
|
7698 |
iprot.readStructBegin();
|
|
|
7699 |
while (true)
|
|
|
7700 |
{
|
|
|
7701 |
field = iprot.readFieldBegin();
|
|
|
7702 |
if (field.type == TType.STOP) {
|
|
|
7703 |
break;
|
|
|
7704 |
}
|
|
|
7705 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
7706 |
if (fieldId == null) {
|
|
|
7707 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7708 |
} else {
|
|
|
7709 |
switch (fieldId) {
|
| 695 |
rajveer |
7710 |
case SUCCESS:
|
|
|
7711 |
if (field.type == TType.BOOL) {
|
|
|
7712 |
this.success = iprot.readBool();
|
|
|
7713 |
setSuccessIsSet(true);
|
|
|
7714 |
} else {
|
|
|
7715 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7716 |
}
|
|
|
7717 |
break;
|
| 420 |
ashish |
7718 |
case PE:
|
|
|
7719 |
if (field.type == TType.STRUCT) {
|
|
|
7720 |
this.pe = new PaymentException();
|
|
|
7721 |
this.pe.read(iprot);
|
|
|
7722 |
} else {
|
|
|
7723 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7724 |
}
|
|
|
7725 |
break;
|
|
|
7726 |
}
|
|
|
7727 |
iprot.readFieldEnd();
|
|
|
7728 |
}
|
|
|
7729 |
}
|
|
|
7730 |
iprot.readStructEnd();
|
|
|
7731 |
validate();
|
|
|
7732 |
}
|
|
|
7733 |
|
|
|
7734 |
public void write(TProtocol oprot) throws TException {
|
|
|
7735 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7736 |
|
| 695 |
rajveer |
7737 |
if (this.isSetSuccess()) {
|
|
|
7738 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
7739 |
oprot.writeBool(this.success);
|
|
|
7740 |
oprot.writeFieldEnd();
|
|
|
7741 |
} else if (this.isSetPe()) {
|
| 420 |
ashish |
7742 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
7743 |
this.pe.write(oprot);
|
|
|
7744 |
oprot.writeFieldEnd();
|
|
|
7745 |
}
|
|
|
7746 |
oprot.writeFieldStop();
|
|
|
7747 |
oprot.writeStructEnd();
|
|
|
7748 |
}
|
|
|
7749 |
|
|
|
7750 |
@Override
|
|
|
7751 |
public String toString() {
|
| 695 |
rajveer |
7752 |
StringBuilder sb = new StringBuilder("updatePaymentDetails_result(");
|
| 420 |
ashish |
7753 |
boolean first = true;
|
|
|
7754 |
|
| 695 |
rajveer |
7755 |
sb.append("success:");
|
|
|
7756 |
sb.append(this.success);
|
|
|
7757 |
first = false;
|
|
|
7758 |
if (!first) sb.append(", ");
|
| 420 |
ashish |
7759 |
sb.append("pe:");
|
|
|
7760 |
if (this.pe == null) {
|
|
|
7761 |
sb.append("null");
|
|
|
7762 |
} else {
|
|
|
7763 |
sb.append(this.pe);
|
|
|
7764 |
}
|
|
|
7765 |
first = false;
|
|
|
7766 |
sb.append(")");
|
|
|
7767 |
return sb.toString();
|
|
|
7768 |
}
|
|
|
7769 |
|
|
|
7770 |
public void validate() throws TException {
|
|
|
7771 |
// check for required fields
|
|
|
7772 |
}
|
|
|
7773 |
|
|
|
7774 |
}
|
|
|
7775 |
|
| 1731 |
ankur.sing |
7776 |
public static class getSuccessfulPaymentsAmountRange_args implements TBase<getSuccessfulPaymentsAmountRange_args._Fields>, java.io.Serializable, Cloneable, Comparable<getSuccessfulPaymentsAmountRange_args> {
|
|
|
7777 |
private static final TStruct STRUCT_DESC = new TStruct("getSuccessfulPaymentsAmountRange_args");
|
| 1629 |
ankur.sing |
7778 |
|
|
|
7779 |
|
|
|
7780 |
|
|
|
7781 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7782 |
public enum _Fields implements TFieldIdEnum {
|
|
|
7783 |
;
|
|
|
7784 |
|
|
|
7785 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
7786 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7787 |
|
|
|
7788 |
static {
|
|
|
7789 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7790 |
byId.put((int)field._thriftId, field);
|
|
|
7791 |
byName.put(field.getFieldName(), field);
|
|
|
7792 |
}
|
|
|
7793 |
}
|
|
|
7794 |
|
|
|
7795 |
/**
|
|
|
7796 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7797 |
*/
|
|
|
7798 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7799 |
return byId.get(fieldId);
|
|
|
7800 |
}
|
|
|
7801 |
|
|
|
7802 |
/**
|
|
|
7803 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7804 |
* if it is not found.
|
|
|
7805 |
*/
|
|
|
7806 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7807 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7808 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7809 |
return fields;
|
|
|
7810 |
}
|
|
|
7811 |
|
|
|
7812 |
/**
|
|
|
7813 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7814 |
*/
|
|
|
7815 |
public static _Fields findByName(String name) {
|
|
|
7816 |
return byName.get(name);
|
|
|
7817 |
}
|
|
|
7818 |
|
|
|
7819 |
private final short _thriftId;
|
|
|
7820 |
private final String _fieldName;
|
|
|
7821 |
|
|
|
7822 |
_Fields(short thriftId, String fieldName) {
|
|
|
7823 |
_thriftId = thriftId;
|
|
|
7824 |
_fieldName = fieldName;
|
|
|
7825 |
}
|
|
|
7826 |
|
|
|
7827 |
public short getThriftFieldId() {
|
|
|
7828 |
return _thriftId;
|
|
|
7829 |
}
|
|
|
7830 |
|
|
|
7831 |
public String getFieldName() {
|
|
|
7832 |
return _fieldName;
|
|
|
7833 |
}
|
|
|
7834 |
}
|
|
|
7835 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
7836 |
}});
|
|
|
7837 |
|
|
|
7838 |
static {
|
| 1731 |
ankur.sing |
7839 |
FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_args.class, metaDataMap);
|
| 1629 |
ankur.sing |
7840 |
}
|
|
|
7841 |
|
| 1731 |
ankur.sing |
7842 |
public getSuccessfulPaymentsAmountRange_args() {
|
| 1629 |
ankur.sing |
7843 |
}
|
|
|
7844 |
|
|
|
7845 |
/**
|
|
|
7846 |
* Performs a deep copy on <i>other</i>.
|
|
|
7847 |
*/
|
| 1731 |
ankur.sing |
7848 |
public getSuccessfulPaymentsAmountRange_args(getSuccessfulPaymentsAmountRange_args other) {
|
| 1629 |
ankur.sing |
7849 |
}
|
|
|
7850 |
|
| 1731 |
ankur.sing |
7851 |
public getSuccessfulPaymentsAmountRange_args deepCopy() {
|
|
|
7852 |
return new getSuccessfulPaymentsAmountRange_args(this);
|
| 1629 |
ankur.sing |
7853 |
}
|
|
|
7854 |
|
|
|
7855 |
@Deprecated
|
| 1731 |
ankur.sing |
7856 |
public getSuccessfulPaymentsAmountRange_args clone() {
|
|
|
7857 |
return new getSuccessfulPaymentsAmountRange_args(this);
|
| 1629 |
ankur.sing |
7858 |
}
|
|
|
7859 |
|
|
|
7860 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7861 |
switch (field) {
|
|
|
7862 |
}
|
|
|
7863 |
}
|
|
|
7864 |
|
|
|
7865 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
7866 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
7867 |
}
|
|
|
7868 |
|
|
|
7869 |
public Object getFieldValue(_Fields field) {
|
|
|
7870 |
switch (field) {
|
|
|
7871 |
}
|
|
|
7872 |
throw new IllegalStateException();
|
|
|
7873 |
}
|
|
|
7874 |
|
|
|
7875 |
public Object getFieldValue(int fieldId) {
|
|
|
7876 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
7877 |
}
|
|
|
7878 |
|
|
|
7879 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
7880 |
public boolean isSet(_Fields field) {
|
|
|
7881 |
switch (field) {
|
|
|
7882 |
}
|
|
|
7883 |
throw new IllegalStateException();
|
|
|
7884 |
}
|
|
|
7885 |
|
|
|
7886 |
public boolean isSet(int fieldID) {
|
|
|
7887 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
7888 |
}
|
|
|
7889 |
|
|
|
7890 |
@Override
|
|
|
7891 |
public boolean equals(Object that) {
|
|
|
7892 |
if (that == null)
|
|
|
7893 |
return false;
|
| 1731 |
ankur.sing |
7894 |
if (that instanceof getSuccessfulPaymentsAmountRange_args)
|
|
|
7895 |
return this.equals((getSuccessfulPaymentsAmountRange_args)that);
|
| 1629 |
ankur.sing |
7896 |
return false;
|
|
|
7897 |
}
|
|
|
7898 |
|
| 1731 |
ankur.sing |
7899 |
public boolean equals(getSuccessfulPaymentsAmountRange_args that) {
|
| 1629 |
ankur.sing |
7900 |
if (that == null)
|
|
|
7901 |
return false;
|
|
|
7902 |
|
|
|
7903 |
return true;
|
|
|
7904 |
}
|
|
|
7905 |
|
|
|
7906 |
@Override
|
|
|
7907 |
public int hashCode() {
|
|
|
7908 |
return 0;
|
|
|
7909 |
}
|
|
|
7910 |
|
| 1731 |
ankur.sing |
7911 |
public int compareTo(getSuccessfulPaymentsAmountRange_args other) {
|
| 1629 |
ankur.sing |
7912 |
if (!getClass().equals(other.getClass())) {
|
|
|
7913 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7914 |
}
|
|
|
7915 |
|
|
|
7916 |
int lastComparison = 0;
|
| 1731 |
ankur.sing |
7917 |
getSuccessfulPaymentsAmountRange_args typedOther = (getSuccessfulPaymentsAmountRange_args)other;
|
| 1629 |
ankur.sing |
7918 |
|
|
|
7919 |
return 0;
|
|
|
7920 |
}
|
|
|
7921 |
|
|
|
7922 |
public void read(TProtocol iprot) throws TException {
|
|
|
7923 |
TField field;
|
|
|
7924 |
iprot.readStructBegin();
|
|
|
7925 |
while (true)
|
|
|
7926 |
{
|
|
|
7927 |
field = iprot.readFieldBegin();
|
|
|
7928 |
if (field.type == TType.STOP) {
|
|
|
7929 |
break;
|
|
|
7930 |
}
|
|
|
7931 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
7932 |
if (fieldId == null) {
|
|
|
7933 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
7934 |
} else {
|
|
|
7935 |
switch (fieldId) {
|
|
|
7936 |
}
|
|
|
7937 |
iprot.readFieldEnd();
|
|
|
7938 |
}
|
|
|
7939 |
}
|
|
|
7940 |
iprot.readStructEnd();
|
|
|
7941 |
validate();
|
|
|
7942 |
}
|
|
|
7943 |
|
|
|
7944 |
public void write(TProtocol oprot) throws TException {
|
|
|
7945 |
validate();
|
|
|
7946 |
|
|
|
7947 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7948 |
oprot.writeFieldStop();
|
|
|
7949 |
oprot.writeStructEnd();
|
|
|
7950 |
}
|
|
|
7951 |
|
|
|
7952 |
@Override
|
|
|
7953 |
public String toString() {
|
| 1731 |
ankur.sing |
7954 |
StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_args(");
|
| 1629 |
ankur.sing |
7955 |
boolean first = true;
|
|
|
7956 |
|
|
|
7957 |
sb.append(")");
|
|
|
7958 |
return sb.toString();
|
|
|
7959 |
}
|
|
|
7960 |
|
|
|
7961 |
public void validate() throws TException {
|
|
|
7962 |
// check for required fields
|
|
|
7963 |
}
|
|
|
7964 |
|
|
|
7965 |
}
|
|
|
7966 |
|
| 1731 |
ankur.sing |
7967 |
public static class getSuccessfulPaymentsAmountRange_result implements TBase<getSuccessfulPaymentsAmountRange_result._Fields>, java.io.Serializable, Cloneable, Comparable<getSuccessfulPaymentsAmountRange_result> {
|
|
|
7968 |
private static final TStruct STRUCT_DESC = new TStruct("getSuccessfulPaymentsAmountRange_result");
|
| 1629 |
ankur.sing |
7969 |
|
| 1731 |
ankur.sing |
7970 |
private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
|
| 1629 |
ankur.sing |
7971 |
|
| 1731 |
ankur.sing |
7972 |
private List<Double> success;
|
| 1629 |
ankur.sing |
7973 |
|
|
|
7974 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7975 |
public enum _Fields implements TFieldIdEnum {
|
|
|
7976 |
SUCCESS((short)0, "success");
|
|
|
7977 |
|
|
|
7978 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
7979 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7980 |
|
|
|
7981 |
static {
|
|
|
7982 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7983 |
byId.put((int)field._thriftId, field);
|
|
|
7984 |
byName.put(field.getFieldName(), field);
|
|
|
7985 |
}
|
|
|
7986 |
}
|
|
|
7987 |
|
|
|
7988 |
/**
|
|
|
7989 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7990 |
*/
|
|
|
7991 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7992 |
return byId.get(fieldId);
|
|
|
7993 |
}
|
|
|
7994 |
|
|
|
7995 |
/**
|
|
|
7996 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7997 |
* if it is not found.
|
|
|
7998 |
*/
|
|
|
7999 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8000 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8001 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8002 |
return fields;
|
|
|
8003 |
}
|
|
|
8004 |
|
|
|
8005 |
/**
|
|
|
8006 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8007 |
*/
|
|
|
8008 |
public static _Fields findByName(String name) {
|
|
|
8009 |
return byName.get(name);
|
|
|
8010 |
}
|
|
|
8011 |
|
|
|
8012 |
private final short _thriftId;
|
|
|
8013 |
private final String _fieldName;
|
|
|
8014 |
|
|
|
8015 |
_Fields(short thriftId, String fieldName) {
|
|
|
8016 |
_thriftId = thriftId;
|
|
|
8017 |
_fieldName = fieldName;
|
|
|
8018 |
}
|
|
|
8019 |
|
|
|
8020 |
public short getThriftFieldId() {
|
|
|
8021 |
return _thriftId;
|
|
|
8022 |
}
|
|
|
8023 |
|
|
|
8024 |
public String getFieldName() {
|
|
|
8025 |
return _fieldName;
|
|
|
8026 |
}
|
|
|
8027 |
}
|
|
|
8028 |
|
|
|
8029 |
// isset id assignments
|
|
|
8030 |
|
|
|
8031 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
8032 |
put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,
|
| 1731 |
ankur.sing |
8033 |
new ListMetaData(TType.LIST,
|
|
|
8034 |
new FieldValueMetaData(TType.DOUBLE))));
|
| 1629 |
ankur.sing |
8035 |
}});
|
|
|
8036 |
|
|
|
8037 |
static {
|
| 1731 |
ankur.sing |
8038 |
FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_result.class, metaDataMap);
|
| 1629 |
ankur.sing |
8039 |
}
|
|
|
8040 |
|
| 1731 |
ankur.sing |
8041 |
public getSuccessfulPaymentsAmountRange_result() {
|
| 1629 |
ankur.sing |
8042 |
}
|
|
|
8043 |
|
| 1731 |
ankur.sing |
8044 |
public getSuccessfulPaymentsAmountRange_result(
|
|
|
8045 |
List<Double> success)
|
| 1629 |
ankur.sing |
8046 |
{
|
|
|
8047 |
this();
|
|
|
8048 |
this.success = success;
|
|
|
8049 |
}
|
|
|
8050 |
|
|
|
8051 |
/**
|
|
|
8052 |
* Performs a deep copy on <i>other</i>.
|
|
|
8053 |
*/
|
| 1731 |
ankur.sing |
8054 |
public getSuccessfulPaymentsAmountRange_result(getSuccessfulPaymentsAmountRange_result other) {
|
|
|
8055 |
if (other.isSetSuccess()) {
|
|
|
8056 |
List<Double> __this__success = new ArrayList<Double>();
|
|
|
8057 |
for (Double other_element : other.success) {
|
|
|
8058 |
__this__success.add(other_element);
|
| 1629 |
ankur.sing |
8059 |
}
|
| 1731 |
ankur.sing |
8060 |
this.success = __this__success;
|
| 1629 |
ankur.sing |
8061 |
}
|
|
|
8062 |
}
|
|
|
8063 |
|
| 1731 |
ankur.sing |
8064 |
public getSuccessfulPaymentsAmountRange_result deepCopy() {
|
|
|
8065 |
return new getSuccessfulPaymentsAmountRange_result(this);
|
| 1629 |
ankur.sing |
8066 |
}
|
|
|
8067 |
|
|
|
8068 |
@Deprecated
|
| 1731 |
ankur.sing |
8069 |
public getSuccessfulPaymentsAmountRange_result clone() {
|
|
|
8070 |
return new getSuccessfulPaymentsAmountRange_result(this);
|
| 1629 |
ankur.sing |
8071 |
}
|
|
|
8072 |
|
| 1731 |
ankur.sing |
8073 |
public int getSuccessSize() {
|
|
|
8074 |
return (this.success == null) ? 0 : this.success.size();
|
| 1629 |
ankur.sing |
8075 |
}
|
|
|
8076 |
|
| 1731 |
ankur.sing |
8077 |
public java.util.Iterator<Double> getSuccessIterator() {
|
|
|
8078 |
return (this.success == null) ? null : this.success.iterator();
|
| 1629 |
ankur.sing |
8079 |
}
|
|
|
8080 |
|
| 1731 |
ankur.sing |
8081 |
public void addToSuccess(double elem) {
|
|
|
8082 |
if (this.success == null) {
|
|
|
8083 |
this.success = new ArrayList<Double>();
|
| 1629 |
ankur.sing |
8084 |
}
|
| 1731 |
ankur.sing |
8085 |
this.success.add(elem);
|
| 1629 |
ankur.sing |
8086 |
}
|
|
|
8087 |
|
| 1731 |
ankur.sing |
8088 |
public List<Double> getSuccess() {
|
| 1629 |
ankur.sing |
8089 |
return this.success;
|
|
|
8090 |
}
|
|
|
8091 |
|
| 1731 |
ankur.sing |
8092 |
public getSuccessfulPaymentsAmountRange_result setSuccess(List<Double> success) {
|
| 1629 |
ankur.sing |
8093 |
this.success = success;
|
|
|
8094 |
return this;
|
|
|
8095 |
}
|
|
|
8096 |
|
|
|
8097 |
public void unsetSuccess() {
|
| 1731 |
ankur.sing |
8098 |
this.success = null;
|
| 1629 |
ankur.sing |
8099 |
}
|
|
|
8100 |
|
|
|
8101 |
/** Returns true if field success is set (has been asigned a value) and false otherwise */
|
|
|
8102 |
public boolean isSetSuccess() {
|
| 1731 |
ankur.sing |
8103 |
return this.success != null;
|
| 1629 |
ankur.sing |
8104 |
}
|
|
|
8105 |
|
|
|
8106 |
public void setSuccessIsSet(boolean value) {
|
| 1731 |
ankur.sing |
8107 |
if (!value) {
|
|
|
8108 |
this.success = null;
|
|
|
8109 |
}
|
| 1629 |
ankur.sing |
8110 |
}
|
|
|
8111 |
|
|
|
8112 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8113 |
switch (field) {
|
|
|
8114 |
case SUCCESS:
|
|
|
8115 |
if (value == null) {
|
|
|
8116 |
unsetSuccess();
|
|
|
8117 |
} else {
|
| 1731 |
ankur.sing |
8118 |
setSuccess((List<Double>)value);
|
| 1629 |
ankur.sing |
8119 |
}
|
|
|
8120 |
break;
|
|
|
8121 |
|
|
|
8122 |
}
|
|
|
8123 |
}
|
|
|
8124 |
|
|
|
8125 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
8126 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
8127 |
}
|
|
|
8128 |
|
|
|
8129 |
public Object getFieldValue(_Fields field) {
|
|
|
8130 |
switch (field) {
|
|
|
8131 |
case SUCCESS:
|
| 1731 |
ankur.sing |
8132 |
return getSuccess();
|
| 1629 |
ankur.sing |
8133 |
|
|
|
8134 |
}
|
|
|
8135 |
throw new IllegalStateException();
|
|
|
8136 |
}
|
|
|
8137 |
|
|
|
8138 |
public Object getFieldValue(int fieldId) {
|
|
|
8139 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
8140 |
}
|
|
|
8141 |
|
|
|
8142 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
8143 |
public boolean isSet(_Fields field) {
|
|
|
8144 |
switch (field) {
|
|
|
8145 |
case SUCCESS:
|
|
|
8146 |
return isSetSuccess();
|
|
|
8147 |
}
|
|
|
8148 |
throw new IllegalStateException();
|
|
|
8149 |
}
|
|
|
8150 |
|
|
|
8151 |
public boolean isSet(int fieldID) {
|
|
|
8152 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
8153 |
}
|
|
|
8154 |
|
|
|
8155 |
@Override
|
|
|
8156 |
public boolean equals(Object that) {
|
|
|
8157 |
if (that == null)
|
|
|
8158 |
return false;
|
| 1731 |
ankur.sing |
8159 |
if (that instanceof getSuccessfulPaymentsAmountRange_result)
|
|
|
8160 |
return this.equals((getSuccessfulPaymentsAmountRange_result)that);
|
| 1629 |
ankur.sing |
8161 |
return false;
|
|
|
8162 |
}
|
|
|
8163 |
|
| 1731 |
ankur.sing |
8164 |
public boolean equals(getSuccessfulPaymentsAmountRange_result that) {
|
| 1629 |
ankur.sing |
8165 |
if (that == null)
|
|
|
8166 |
return false;
|
|
|
8167 |
|
| 1731 |
ankur.sing |
8168 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8169 |
boolean that_present_success = true && that.isSetSuccess();
|
| 1629 |
ankur.sing |
8170 |
if (this_present_success || that_present_success) {
|
|
|
8171 |
if (!(this_present_success && that_present_success))
|
|
|
8172 |
return false;
|
| 1731 |
ankur.sing |
8173 |
if (!this.success.equals(that.success))
|
| 1629 |
ankur.sing |
8174 |
return false;
|
|
|
8175 |
}
|
|
|
8176 |
|
|
|
8177 |
return true;
|
|
|
8178 |
}
|
|
|
8179 |
|
|
|
8180 |
@Override
|
|
|
8181 |
public int hashCode() {
|
|
|
8182 |
return 0;
|
|
|
8183 |
}
|
|
|
8184 |
|
| 1731 |
ankur.sing |
8185 |
public int compareTo(getSuccessfulPaymentsAmountRange_result other) {
|
| 1629 |
ankur.sing |
8186 |
if (!getClass().equals(other.getClass())) {
|
|
|
8187 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8188 |
}
|
|
|
8189 |
|
|
|
8190 |
int lastComparison = 0;
|
| 1731 |
ankur.sing |
8191 |
getSuccessfulPaymentsAmountRange_result typedOther = (getSuccessfulPaymentsAmountRange_result)other;
|
| 1629 |
ankur.sing |
8192 |
|
|
|
8193 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
|
|
|
8194 |
if (lastComparison != 0) {
|
|
|
8195 |
return lastComparison;
|
|
|
8196 |
}
|
|
|
8197 |
lastComparison = TBaseHelper.compareTo(success, typedOther.success);
|
|
|
8198 |
if (lastComparison != 0) {
|
|
|
8199 |
return lastComparison;
|
|
|
8200 |
}
|
|
|
8201 |
return 0;
|
|
|
8202 |
}
|
|
|
8203 |
|
|
|
8204 |
public void read(TProtocol iprot) throws TException {
|
|
|
8205 |
TField field;
|
|
|
8206 |
iprot.readStructBegin();
|
|
|
8207 |
while (true)
|
|
|
8208 |
{
|
|
|
8209 |
field = iprot.readFieldBegin();
|
|
|
8210 |
if (field.type == TType.STOP) {
|
|
|
8211 |
break;
|
|
|
8212 |
}
|
|
|
8213 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
8214 |
if (fieldId == null) {
|
|
|
8215 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
8216 |
} else {
|
|
|
8217 |
switch (fieldId) {
|
|
|
8218 |
case SUCCESS:
|
| 1731 |
ankur.sing |
8219 |
if (field.type == TType.LIST) {
|
|
|
8220 |
{
|
|
|
8221 |
TList _list24 = iprot.readListBegin();
|
|
|
8222 |
this.success = new ArrayList<Double>(_list24.size);
|
|
|
8223 |
for (int _i25 = 0; _i25 < _list24.size; ++_i25)
|
|
|
8224 |
{
|
|
|
8225 |
double _elem26;
|
|
|
8226 |
_elem26 = iprot.readDouble();
|
|
|
8227 |
this.success.add(_elem26);
|
|
|
8228 |
}
|
|
|
8229 |
iprot.readListEnd();
|
|
|
8230 |
}
|
| 1629 |
ankur.sing |
8231 |
} else {
|
|
|
8232 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
8233 |
}
|
|
|
8234 |
break;
|
|
|
8235 |
}
|
|
|
8236 |
iprot.readFieldEnd();
|
|
|
8237 |
}
|
|
|
8238 |
}
|
|
|
8239 |
iprot.readStructEnd();
|
|
|
8240 |
validate();
|
|
|
8241 |
}
|
|
|
8242 |
|
|
|
8243 |
public void write(TProtocol oprot) throws TException {
|
|
|
8244 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8245 |
|
|
|
8246 |
if (this.isSetSuccess()) {
|
|
|
8247 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 1731 |
ankur.sing |
8248 |
{
|
|
|
8249 |
oprot.writeListBegin(new TList(TType.DOUBLE, this.success.size()));
|
|
|
8250 |
for (double _iter27 : this.success)
|
|
|
8251 |
{
|
|
|
8252 |
oprot.writeDouble(_iter27);
|
|
|
8253 |
}
|
|
|
8254 |
oprot.writeListEnd();
|
|
|
8255 |
}
|
| 1629 |
ankur.sing |
8256 |
oprot.writeFieldEnd();
|
|
|
8257 |
}
|
|
|
8258 |
oprot.writeFieldStop();
|
|
|
8259 |
oprot.writeStructEnd();
|
|
|
8260 |
}
|
|
|
8261 |
|
|
|
8262 |
@Override
|
|
|
8263 |
public String toString() {
|
| 1731 |
ankur.sing |
8264 |
StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_result(");
|
| 1629 |
ankur.sing |
8265 |
boolean first = true;
|
|
|
8266 |
|
|
|
8267 |
sb.append("success:");
|
| 1731 |
ankur.sing |
8268 |
if (this.success == null) {
|
|
|
8269 |
sb.append("null");
|
|
|
8270 |
} else {
|
|
|
8271 |
sb.append(this.success);
|
|
|
8272 |
}
|
| 1629 |
ankur.sing |
8273 |
first = false;
|
|
|
8274 |
sb.append(")");
|
|
|
8275 |
return sb.toString();
|
|
|
8276 |
}
|
|
|
8277 |
|
|
|
8278 |
public void validate() throws TException {
|
|
|
8279 |
// check for required fields
|
|
|
8280 |
}
|
|
|
8281 |
|
|
|
8282 |
}
|
|
|
8283 |
|
| 2462 |
chandransh |
8284 |
public static class updateAndCaptureEbsPayment_args implements TBase<updateAndCaptureEbsPayment_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8285 |
private static final TStruct STRUCT_DESC = new TStruct("updateAndCaptureEbsPayment_args");
|
|
|
8286 |
|
|
|
8287 |
private static final TField PAYMENT_PARAMS_FIELD_DESC = new TField("paymentParams", TType.MAP, (short)1);
|
|
|
8288 |
|
|
|
8289 |
private Map<String,String> paymentParams;
|
|
|
8290 |
|
|
|
8291 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8292 |
public enum _Fields implements TFieldIdEnum {
|
|
|
8293 |
PAYMENT_PARAMS((short)1, "paymentParams");
|
|
|
8294 |
|
|
|
8295 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
8296 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8297 |
|
|
|
8298 |
static {
|
|
|
8299 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8300 |
byId.put((int)field._thriftId, field);
|
|
|
8301 |
byName.put(field.getFieldName(), field);
|
|
|
8302 |
}
|
|
|
8303 |
}
|
|
|
8304 |
|
|
|
8305 |
/**
|
|
|
8306 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8307 |
*/
|
|
|
8308 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8309 |
return byId.get(fieldId);
|
|
|
8310 |
}
|
|
|
8311 |
|
|
|
8312 |
/**
|
|
|
8313 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8314 |
* if it is not found.
|
|
|
8315 |
*/
|
|
|
8316 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8317 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8318 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8319 |
return fields;
|
|
|
8320 |
}
|
|
|
8321 |
|
|
|
8322 |
/**
|
|
|
8323 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8324 |
*/
|
|
|
8325 |
public static _Fields findByName(String name) {
|
|
|
8326 |
return byName.get(name);
|
|
|
8327 |
}
|
|
|
8328 |
|
|
|
8329 |
private final short _thriftId;
|
|
|
8330 |
private final String _fieldName;
|
|
|
8331 |
|
|
|
8332 |
_Fields(short thriftId, String fieldName) {
|
|
|
8333 |
_thriftId = thriftId;
|
|
|
8334 |
_fieldName = fieldName;
|
|
|
8335 |
}
|
|
|
8336 |
|
|
|
8337 |
public short getThriftFieldId() {
|
|
|
8338 |
return _thriftId;
|
|
|
8339 |
}
|
|
|
8340 |
|
|
|
8341 |
public String getFieldName() {
|
|
|
8342 |
return _fieldName;
|
|
|
8343 |
}
|
|
|
8344 |
}
|
|
|
8345 |
|
|
|
8346 |
// isset id assignments
|
|
|
8347 |
|
|
|
8348 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
8349 |
put(_Fields.PAYMENT_PARAMS, new FieldMetaData("paymentParams", TFieldRequirementType.DEFAULT,
|
|
|
8350 |
new MapMetaData(TType.MAP,
|
|
|
8351 |
new FieldValueMetaData(TType.STRING),
|
|
|
8352 |
new FieldValueMetaData(TType.STRING))));
|
|
|
8353 |
}});
|
|
|
8354 |
|
|
|
8355 |
static {
|
|
|
8356 |
FieldMetaData.addStructMetaDataMap(updateAndCaptureEbsPayment_args.class, metaDataMap);
|
|
|
8357 |
}
|
|
|
8358 |
|
|
|
8359 |
public updateAndCaptureEbsPayment_args() {
|
|
|
8360 |
}
|
|
|
8361 |
|
|
|
8362 |
public updateAndCaptureEbsPayment_args(
|
|
|
8363 |
Map<String,String> paymentParams)
|
|
|
8364 |
{
|
|
|
8365 |
this();
|
|
|
8366 |
this.paymentParams = paymentParams;
|
|
|
8367 |
}
|
|
|
8368 |
|
|
|
8369 |
/**
|
|
|
8370 |
* Performs a deep copy on <i>other</i>.
|
|
|
8371 |
*/
|
|
|
8372 |
public updateAndCaptureEbsPayment_args(updateAndCaptureEbsPayment_args other) {
|
|
|
8373 |
if (other.isSetPaymentParams()) {
|
|
|
8374 |
Map<String,String> __this__paymentParams = new HashMap<String,String>();
|
|
|
8375 |
for (Map.Entry<String, String> other_element : other.paymentParams.entrySet()) {
|
|
|
8376 |
|
|
|
8377 |
String other_element_key = other_element.getKey();
|
|
|
8378 |
String other_element_value = other_element.getValue();
|
|
|
8379 |
|
|
|
8380 |
String __this__paymentParams_copy_key = other_element_key;
|
|
|
8381 |
|
|
|
8382 |
String __this__paymentParams_copy_value = other_element_value;
|
|
|
8383 |
|
|
|
8384 |
__this__paymentParams.put(__this__paymentParams_copy_key, __this__paymentParams_copy_value);
|
|
|
8385 |
}
|
|
|
8386 |
this.paymentParams = __this__paymentParams;
|
|
|
8387 |
}
|
|
|
8388 |
}
|
|
|
8389 |
|
|
|
8390 |
public updateAndCaptureEbsPayment_args deepCopy() {
|
|
|
8391 |
return new updateAndCaptureEbsPayment_args(this);
|
|
|
8392 |
}
|
|
|
8393 |
|
|
|
8394 |
@Deprecated
|
|
|
8395 |
public updateAndCaptureEbsPayment_args clone() {
|
|
|
8396 |
return new updateAndCaptureEbsPayment_args(this);
|
|
|
8397 |
}
|
|
|
8398 |
|
|
|
8399 |
public int getPaymentParamsSize() {
|
|
|
8400 |
return (this.paymentParams == null) ? 0 : this.paymentParams.size();
|
|
|
8401 |
}
|
|
|
8402 |
|
|
|
8403 |
public void putToPaymentParams(String key, String val) {
|
|
|
8404 |
if (this.paymentParams == null) {
|
|
|
8405 |
this.paymentParams = new HashMap<String,String>();
|
|
|
8406 |
}
|
|
|
8407 |
this.paymentParams.put(key, val);
|
|
|
8408 |
}
|
|
|
8409 |
|
|
|
8410 |
public Map<String,String> getPaymentParams() {
|
|
|
8411 |
return this.paymentParams;
|
|
|
8412 |
}
|
|
|
8413 |
|
|
|
8414 |
public updateAndCaptureEbsPayment_args setPaymentParams(Map<String,String> paymentParams) {
|
|
|
8415 |
this.paymentParams = paymentParams;
|
|
|
8416 |
return this;
|
|
|
8417 |
}
|
|
|
8418 |
|
|
|
8419 |
public void unsetPaymentParams() {
|
|
|
8420 |
this.paymentParams = null;
|
|
|
8421 |
}
|
|
|
8422 |
|
|
|
8423 |
/** Returns true if field paymentParams is set (has been asigned a value) and false otherwise */
|
|
|
8424 |
public boolean isSetPaymentParams() {
|
|
|
8425 |
return this.paymentParams != null;
|
|
|
8426 |
}
|
|
|
8427 |
|
|
|
8428 |
public void setPaymentParamsIsSet(boolean value) {
|
|
|
8429 |
if (!value) {
|
|
|
8430 |
this.paymentParams = null;
|
|
|
8431 |
}
|
|
|
8432 |
}
|
|
|
8433 |
|
|
|
8434 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8435 |
switch (field) {
|
|
|
8436 |
case PAYMENT_PARAMS:
|
|
|
8437 |
if (value == null) {
|
|
|
8438 |
unsetPaymentParams();
|
|
|
8439 |
} else {
|
|
|
8440 |
setPaymentParams((Map<String,String>)value);
|
|
|
8441 |
}
|
|
|
8442 |
break;
|
|
|
8443 |
|
|
|
8444 |
}
|
|
|
8445 |
}
|
|
|
8446 |
|
|
|
8447 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
8448 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
8449 |
}
|
|
|
8450 |
|
|
|
8451 |
public Object getFieldValue(_Fields field) {
|
|
|
8452 |
switch (field) {
|
|
|
8453 |
case PAYMENT_PARAMS:
|
|
|
8454 |
return getPaymentParams();
|
|
|
8455 |
|
|
|
8456 |
}
|
|
|
8457 |
throw new IllegalStateException();
|
|
|
8458 |
}
|
|
|
8459 |
|
|
|
8460 |
public Object getFieldValue(int fieldId) {
|
|
|
8461 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
8462 |
}
|
|
|
8463 |
|
|
|
8464 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
8465 |
public boolean isSet(_Fields field) {
|
|
|
8466 |
switch (field) {
|
|
|
8467 |
case PAYMENT_PARAMS:
|
|
|
8468 |
return isSetPaymentParams();
|
|
|
8469 |
}
|
|
|
8470 |
throw new IllegalStateException();
|
|
|
8471 |
}
|
|
|
8472 |
|
|
|
8473 |
public boolean isSet(int fieldID) {
|
|
|
8474 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
8475 |
}
|
|
|
8476 |
|
|
|
8477 |
@Override
|
|
|
8478 |
public boolean equals(Object that) {
|
|
|
8479 |
if (that == null)
|
|
|
8480 |
return false;
|
|
|
8481 |
if (that instanceof updateAndCaptureEbsPayment_args)
|
|
|
8482 |
return this.equals((updateAndCaptureEbsPayment_args)that);
|
|
|
8483 |
return false;
|
|
|
8484 |
}
|
|
|
8485 |
|
|
|
8486 |
public boolean equals(updateAndCaptureEbsPayment_args that) {
|
|
|
8487 |
if (that == null)
|
|
|
8488 |
return false;
|
|
|
8489 |
|
|
|
8490 |
boolean this_present_paymentParams = true && this.isSetPaymentParams();
|
|
|
8491 |
boolean that_present_paymentParams = true && that.isSetPaymentParams();
|
|
|
8492 |
if (this_present_paymentParams || that_present_paymentParams) {
|
|
|
8493 |
if (!(this_present_paymentParams && that_present_paymentParams))
|
|
|
8494 |
return false;
|
|
|
8495 |
if (!this.paymentParams.equals(that.paymentParams))
|
|
|
8496 |
return false;
|
|
|
8497 |
}
|
|
|
8498 |
|
|
|
8499 |
return true;
|
|
|
8500 |
}
|
|
|
8501 |
|
|
|
8502 |
@Override
|
|
|
8503 |
public int hashCode() {
|
|
|
8504 |
return 0;
|
|
|
8505 |
}
|
|
|
8506 |
|
|
|
8507 |
public void read(TProtocol iprot) throws TException {
|
|
|
8508 |
TField field;
|
|
|
8509 |
iprot.readStructBegin();
|
|
|
8510 |
while (true)
|
|
|
8511 |
{
|
|
|
8512 |
field = iprot.readFieldBegin();
|
|
|
8513 |
if (field.type == TType.STOP) {
|
|
|
8514 |
break;
|
|
|
8515 |
}
|
|
|
8516 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
8517 |
if (fieldId == null) {
|
|
|
8518 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
8519 |
} else {
|
|
|
8520 |
switch (fieldId) {
|
|
|
8521 |
case PAYMENT_PARAMS:
|
|
|
8522 |
if (field.type == TType.MAP) {
|
|
|
8523 |
{
|
|
|
8524 |
TMap _map28 = iprot.readMapBegin();
|
|
|
8525 |
this.paymentParams = new HashMap<String,String>(2*_map28.size);
|
|
|
8526 |
for (int _i29 = 0; _i29 < _map28.size; ++_i29)
|
|
|
8527 |
{
|
|
|
8528 |
String _key30;
|
|
|
8529 |
String _val31;
|
|
|
8530 |
_key30 = iprot.readString();
|
|
|
8531 |
_val31 = iprot.readString();
|
|
|
8532 |
this.paymentParams.put(_key30, _val31);
|
|
|
8533 |
}
|
|
|
8534 |
iprot.readMapEnd();
|
|
|
8535 |
}
|
|
|
8536 |
} else {
|
|
|
8537 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
8538 |
}
|
|
|
8539 |
break;
|
|
|
8540 |
}
|
|
|
8541 |
iprot.readFieldEnd();
|
|
|
8542 |
}
|
|
|
8543 |
}
|
|
|
8544 |
iprot.readStructEnd();
|
|
|
8545 |
validate();
|
|
|
8546 |
}
|
|
|
8547 |
|
|
|
8548 |
public void write(TProtocol oprot) throws TException {
|
|
|
8549 |
validate();
|
|
|
8550 |
|
|
|
8551 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8552 |
if (this.paymentParams != null) {
|
|
|
8553 |
oprot.writeFieldBegin(PAYMENT_PARAMS_FIELD_DESC);
|
|
|
8554 |
{
|
|
|
8555 |
oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.paymentParams.size()));
|
|
|
8556 |
for (Map.Entry<String, String> _iter32 : this.paymentParams.entrySet())
|
|
|
8557 |
{
|
|
|
8558 |
oprot.writeString(_iter32.getKey());
|
|
|
8559 |
oprot.writeString(_iter32.getValue());
|
|
|
8560 |
}
|
|
|
8561 |
oprot.writeMapEnd();
|
|
|
8562 |
}
|
|
|
8563 |
oprot.writeFieldEnd();
|
|
|
8564 |
}
|
|
|
8565 |
oprot.writeFieldStop();
|
|
|
8566 |
oprot.writeStructEnd();
|
|
|
8567 |
}
|
|
|
8568 |
|
|
|
8569 |
@Override
|
|
|
8570 |
public String toString() {
|
|
|
8571 |
StringBuilder sb = new StringBuilder("updateAndCaptureEbsPayment_args(");
|
|
|
8572 |
boolean first = true;
|
|
|
8573 |
|
|
|
8574 |
sb.append("paymentParams:");
|
|
|
8575 |
if (this.paymentParams == null) {
|
|
|
8576 |
sb.append("null");
|
|
|
8577 |
} else {
|
|
|
8578 |
sb.append(this.paymentParams);
|
|
|
8579 |
}
|
|
|
8580 |
first = false;
|
|
|
8581 |
sb.append(")");
|
|
|
8582 |
return sb.toString();
|
|
|
8583 |
}
|
|
|
8584 |
|
|
|
8585 |
public void validate() throws TException {
|
|
|
8586 |
// check for required fields
|
|
|
8587 |
}
|
|
|
8588 |
|
|
|
8589 |
}
|
|
|
8590 |
|
|
|
8591 |
public static class updateAndCaptureEbsPayment_result implements TBase<updateAndCaptureEbsPayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateAndCaptureEbsPayment_result> {
|
|
|
8592 |
private static final TStruct STRUCT_DESC = new TStruct("updateAndCaptureEbsPayment_result");
|
|
|
8593 |
|
|
|
8594 |
private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
|
|
|
8595 |
private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
|
|
|
8596 |
|
|
|
8597 |
private Payment success;
|
|
|
8598 |
private PaymentException pe;
|
|
|
8599 |
|
|
|
8600 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8601 |
public enum _Fields implements TFieldIdEnum {
|
|
|
8602 |
SUCCESS((short)0, "success"),
|
|
|
8603 |
PE((short)1, "pe");
|
|
|
8604 |
|
|
|
8605 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
8606 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8607 |
|
|
|
8608 |
static {
|
|
|
8609 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8610 |
byId.put((int)field._thriftId, field);
|
|
|
8611 |
byName.put(field.getFieldName(), field);
|
|
|
8612 |
}
|
|
|
8613 |
}
|
|
|
8614 |
|
|
|
8615 |
/**
|
|
|
8616 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8617 |
*/
|
|
|
8618 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8619 |
return byId.get(fieldId);
|
|
|
8620 |
}
|
|
|
8621 |
|
|
|
8622 |
/**
|
|
|
8623 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8624 |
* if it is not found.
|
|
|
8625 |
*/
|
|
|
8626 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8627 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8628 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8629 |
return fields;
|
|
|
8630 |
}
|
|
|
8631 |
|
|
|
8632 |
/**
|
|
|
8633 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8634 |
*/
|
|
|
8635 |
public static _Fields findByName(String name) {
|
|
|
8636 |
return byName.get(name);
|
|
|
8637 |
}
|
|
|
8638 |
|
|
|
8639 |
private final short _thriftId;
|
|
|
8640 |
private final String _fieldName;
|
|
|
8641 |
|
|
|
8642 |
_Fields(short thriftId, String fieldName) {
|
|
|
8643 |
_thriftId = thriftId;
|
|
|
8644 |
_fieldName = fieldName;
|
|
|
8645 |
}
|
|
|
8646 |
|
|
|
8647 |
public short getThriftFieldId() {
|
|
|
8648 |
return _thriftId;
|
|
|
8649 |
}
|
|
|
8650 |
|
|
|
8651 |
public String getFieldName() {
|
|
|
8652 |
return _fieldName;
|
|
|
8653 |
}
|
|
|
8654 |
}
|
|
|
8655 |
|
|
|
8656 |
// isset id assignments
|
|
|
8657 |
|
|
|
8658 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
8659 |
put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,
|
|
|
8660 |
new StructMetaData(TType.STRUCT, Payment.class)));
|
|
|
8661 |
put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT,
|
|
|
8662 |
new FieldValueMetaData(TType.STRUCT)));
|
|
|
8663 |
}});
|
|
|
8664 |
|
|
|
8665 |
static {
|
|
|
8666 |
FieldMetaData.addStructMetaDataMap(updateAndCaptureEbsPayment_result.class, metaDataMap);
|
|
|
8667 |
}
|
|
|
8668 |
|
|
|
8669 |
public updateAndCaptureEbsPayment_result() {
|
|
|
8670 |
}
|
|
|
8671 |
|
|
|
8672 |
public updateAndCaptureEbsPayment_result(
|
|
|
8673 |
Payment success,
|
|
|
8674 |
PaymentException pe)
|
|
|
8675 |
{
|
|
|
8676 |
this();
|
|
|
8677 |
this.success = success;
|
|
|
8678 |
this.pe = pe;
|
|
|
8679 |
}
|
|
|
8680 |
|
|
|
8681 |
/**
|
|
|
8682 |
* Performs a deep copy on <i>other</i>.
|
|
|
8683 |
*/
|
|
|
8684 |
public updateAndCaptureEbsPayment_result(updateAndCaptureEbsPayment_result other) {
|
|
|
8685 |
if (other.isSetSuccess()) {
|
|
|
8686 |
this.success = new Payment(other.success);
|
|
|
8687 |
}
|
|
|
8688 |
if (other.isSetPe()) {
|
|
|
8689 |
this.pe = new PaymentException(other.pe);
|
|
|
8690 |
}
|
|
|
8691 |
}
|
|
|
8692 |
|
|
|
8693 |
public updateAndCaptureEbsPayment_result deepCopy() {
|
|
|
8694 |
return new updateAndCaptureEbsPayment_result(this);
|
|
|
8695 |
}
|
|
|
8696 |
|
|
|
8697 |
@Deprecated
|
|
|
8698 |
public updateAndCaptureEbsPayment_result clone() {
|
|
|
8699 |
return new updateAndCaptureEbsPayment_result(this);
|
|
|
8700 |
}
|
|
|
8701 |
|
|
|
8702 |
public Payment getSuccess() {
|
|
|
8703 |
return this.success;
|
|
|
8704 |
}
|
|
|
8705 |
|
|
|
8706 |
public updateAndCaptureEbsPayment_result setSuccess(Payment success) {
|
|
|
8707 |
this.success = success;
|
|
|
8708 |
return this;
|
|
|
8709 |
}
|
|
|
8710 |
|
|
|
8711 |
public void unsetSuccess() {
|
|
|
8712 |
this.success = null;
|
|
|
8713 |
}
|
|
|
8714 |
|
|
|
8715 |
/** Returns true if field success is set (has been asigned a value) and false otherwise */
|
|
|
8716 |
public boolean isSetSuccess() {
|
|
|
8717 |
return this.success != null;
|
|
|
8718 |
}
|
|
|
8719 |
|
|
|
8720 |
public void setSuccessIsSet(boolean value) {
|
|
|
8721 |
if (!value) {
|
|
|
8722 |
this.success = null;
|
|
|
8723 |
}
|
|
|
8724 |
}
|
|
|
8725 |
|
|
|
8726 |
public PaymentException getPe() {
|
|
|
8727 |
return this.pe;
|
|
|
8728 |
}
|
|
|
8729 |
|
|
|
8730 |
public updateAndCaptureEbsPayment_result setPe(PaymentException pe) {
|
|
|
8731 |
this.pe = pe;
|
|
|
8732 |
return this;
|
|
|
8733 |
}
|
|
|
8734 |
|
|
|
8735 |
public void unsetPe() {
|
|
|
8736 |
this.pe = null;
|
|
|
8737 |
}
|
|
|
8738 |
|
|
|
8739 |
/** Returns true if field pe is set (has been asigned a value) and false otherwise */
|
|
|
8740 |
public boolean isSetPe() {
|
|
|
8741 |
return this.pe != null;
|
|
|
8742 |
}
|
|
|
8743 |
|
|
|
8744 |
public void setPeIsSet(boolean value) {
|
|
|
8745 |
if (!value) {
|
|
|
8746 |
this.pe = null;
|
|
|
8747 |
}
|
|
|
8748 |
}
|
|
|
8749 |
|
|
|
8750 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8751 |
switch (field) {
|
|
|
8752 |
case SUCCESS:
|
|
|
8753 |
if (value == null) {
|
|
|
8754 |
unsetSuccess();
|
|
|
8755 |
} else {
|
|
|
8756 |
setSuccess((Payment)value);
|
|
|
8757 |
}
|
|
|
8758 |
break;
|
|
|
8759 |
|
|
|
8760 |
case PE:
|
|
|
8761 |
if (value == null) {
|
|
|
8762 |
unsetPe();
|
|
|
8763 |
} else {
|
|
|
8764 |
setPe((PaymentException)value);
|
|
|
8765 |
}
|
|
|
8766 |
break;
|
|
|
8767 |
|
|
|
8768 |
}
|
|
|
8769 |
}
|
|
|
8770 |
|
|
|
8771 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
8772 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
8773 |
}
|
|
|
8774 |
|
|
|
8775 |
public Object getFieldValue(_Fields field) {
|
|
|
8776 |
switch (field) {
|
|
|
8777 |
case SUCCESS:
|
|
|
8778 |
return getSuccess();
|
|
|
8779 |
|
|
|
8780 |
case PE:
|
|
|
8781 |
return getPe();
|
|
|
8782 |
|
|
|
8783 |
}
|
|
|
8784 |
throw new IllegalStateException();
|
|
|
8785 |
}
|
|
|
8786 |
|
|
|
8787 |
public Object getFieldValue(int fieldId) {
|
|
|
8788 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
8789 |
}
|
|
|
8790 |
|
|
|
8791 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
8792 |
public boolean isSet(_Fields field) {
|
|
|
8793 |
switch (field) {
|
|
|
8794 |
case SUCCESS:
|
|
|
8795 |
return isSetSuccess();
|
|
|
8796 |
case PE:
|
|
|
8797 |
return isSetPe();
|
|
|
8798 |
}
|
|
|
8799 |
throw new IllegalStateException();
|
|
|
8800 |
}
|
|
|
8801 |
|
|
|
8802 |
public boolean isSet(int fieldID) {
|
|
|
8803 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
8804 |
}
|
|
|
8805 |
|
|
|
8806 |
@Override
|
|
|
8807 |
public boolean equals(Object that) {
|
|
|
8808 |
if (that == null)
|
|
|
8809 |
return false;
|
|
|
8810 |
if (that instanceof updateAndCaptureEbsPayment_result)
|
|
|
8811 |
return this.equals((updateAndCaptureEbsPayment_result)that);
|
|
|
8812 |
return false;
|
|
|
8813 |
}
|
|
|
8814 |
|
|
|
8815 |
public boolean equals(updateAndCaptureEbsPayment_result that) {
|
|
|
8816 |
if (that == null)
|
|
|
8817 |
return false;
|
|
|
8818 |
|
|
|
8819 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8820 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
8821 |
if (this_present_success || that_present_success) {
|
|
|
8822 |
if (!(this_present_success && that_present_success))
|
|
|
8823 |
return false;
|
|
|
8824 |
if (!this.success.equals(that.success))
|
|
|
8825 |
return false;
|
|
|
8826 |
}
|
|
|
8827 |
|
|
|
8828 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
8829 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
8830 |
if (this_present_pe || that_present_pe) {
|
|
|
8831 |
if (!(this_present_pe && that_present_pe))
|
|
|
8832 |
return false;
|
|
|
8833 |
if (!this.pe.equals(that.pe))
|
|
|
8834 |
return false;
|
|
|
8835 |
}
|
|
|
8836 |
|
|
|
8837 |
return true;
|
|
|
8838 |
}
|
|
|
8839 |
|
|
|
8840 |
@Override
|
|
|
8841 |
public int hashCode() {
|
|
|
8842 |
return 0;
|
|
|
8843 |
}
|
|
|
8844 |
|
|
|
8845 |
public int compareTo(updateAndCaptureEbsPayment_result other) {
|
|
|
8846 |
if (!getClass().equals(other.getClass())) {
|
|
|
8847 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8848 |
}
|
|
|
8849 |
|
|
|
8850 |
int lastComparison = 0;
|
|
|
8851 |
updateAndCaptureEbsPayment_result typedOther = (updateAndCaptureEbsPayment_result)other;
|
|
|
8852 |
|
|
|
8853 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
|
|
|
8854 |
if (lastComparison != 0) {
|
|
|
8855 |
return lastComparison;
|
|
|
8856 |
}
|
|
|
8857 |
lastComparison = TBaseHelper.compareTo(success, typedOther.success);
|
|
|
8858 |
if (lastComparison != 0) {
|
|
|
8859 |
return lastComparison;
|
|
|
8860 |
}
|
|
|
8861 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
|
|
|
8862 |
if (lastComparison != 0) {
|
|
|
8863 |
return lastComparison;
|
|
|
8864 |
}
|
|
|
8865 |
lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
|
|
|
8866 |
if (lastComparison != 0) {
|
|
|
8867 |
return lastComparison;
|
|
|
8868 |
}
|
|
|
8869 |
return 0;
|
|
|
8870 |
}
|
|
|
8871 |
|
|
|
8872 |
public void read(TProtocol iprot) throws TException {
|
|
|
8873 |
TField field;
|
|
|
8874 |
iprot.readStructBegin();
|
|
|
8875 |
while (true)
|
|
|
8876 |
{
|
|
|
8877 |
field = iprot.readFieldBegin();
|
|
|
8878 |
if (field.type == TType.STOP) {
|
|
|
8879 |
break;
|
|
|
8880 |
}
|
|
|
8881 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
8882 |
if (fieldId == null) {
|
|
|
8883 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
8884 |
} else {
|
|
|
8885 |
switch (fieldId) {
|
|
|
8886 |
case SUCCESS:
|
|
|
8887 |
if (field.type == TType.STRUCT) {
|
|
|
8888 |
this.success = new Payment();
|
|
|
8889 |
this.success.read(iprot);
|
|
|
8890 |
} else {
|
|
|
8891 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
8892 |
}
|
|
|
8893 |
break;
|
|
|
8894 |
case PE:
|
|
|
8895 |
if (field.type == TType.STRUCT) {
|
|
|
8896 |
this.pe = new PaymentException();
|
|
|
8897 |
this.pe.read(iprot);
|
|
|
8898 |
} else {
|
|
|
8899 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
8900 |
}
|
|
|
8901 |
break;
|
|
|
8902 |
}
|
|
|
8903 |
iprot.readFieldEnd();
|
|
|
8904 |
}
|
|
|
8905 |
}
|
|
|
8906 |
iprot.readStructEnd();
|
|
|
8907 |
validate();
|
|
|
8908 |
}
|
|
|
8909 |
|
|
|
8910 |
public void write(TProtocol oprot) throws TException {
|
|
|
8911 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8912 |
|
|
|
8913 |
if (this.isSetSuccess()) {
|
|
|
8914 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
8915 |
this.success.write(oprot);
|
|
|
8916 |
oprot.writeFieldEnd();
|
|
|
8917 |
} else if (this.isSetPe()) {
|
|
|
8918 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
8919 |
this.pe.write(oprot);
|
|
|
8920 |
oprot.writeFieldEnd();
|
|
|
8921 |
}
|
|
|
8922 |
oprot.writeFieldStop();
|
|
|
8923 |
oprot.writeStructEnd();
|
|
|
8924 |
}
|
|
|
8925 |
|
|
|
8926 |
@Override
|
|
|
8927 |
public String toString() {
|
|
|
8928 |
StringBuilder sb = new StringBuilder("updateAndCaptureEbsPayment_result(");
|
|
|
8929 |
boolean first = true;
|
|
|
8930 |
|
|
|
8931 |
sb.append("success:");
|
|
|
8932 |
if (this.success == null) {
|
|
|
8933 |
sb.append("null");
|
|
|
8934 |
} else {
|
|
|
8935 |
sb.append(this.success);
|
|
|
8936 |
}
|
|
|
8937 |
first = false;
|
|
|
8938 |
if (!first) sb.append(", ");
|
|
|
8939 |
sb.append("pe:");
|
|
|
8940 |
if (this.pe == null) {
|
|
|
8941 |
sb.append("null");
|
|
|
8942 |
} else {
|
|
|
8943 |
sb.append(this.pe);
|
|
|
8944 |
}
|
|
|
8945 |
first = false;
|
|
|
8946 |
sb.append(")");
|
|
|
8947 |
return sb.toString();
|
|
|
8948 |
}
|
|
|
8949 |
|
|
|
8950 |
public void validate() throws TException {
|
|
|
8951 |
// check for required fields
|
|
|
8952 |
}
|
|
|
8953 |
|
|
|
8954 |
}
|
|
|
8955 |
|
|
|
8956 |
public static class captureHdfcPayment_args implements TBase<captureHdfcPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<captureHdfcPayment_args> {
|
|
|
8957 |
private static final TStruct STRUCT_DESC = new TStruct("captureHdfcPayment_args");
|
|
|
8958 |
|
|
|
8959 |
private static final TField MERCHANT_PAYMENT_ID_FIELD_DESC = new TField("merchantPaymentId", TType.I64, (short)1);
|
|
|
8960 |
|
|
|
8961 |
private long merchantPaymentId;
|
|
|
8962 |
|
|
|
8963 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8964 |
public enum _Fields implements TFieldIdEnum {
|
|
|
8965 |
MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
|
|
|
8966 |
|
|
|
8967 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
8968 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8969 |
|
|
|
8970 |
static {
|
|
|
8971 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8972 |
byId.put((int)field._thriftId, field);
|
|
|
8973 |
byName.put(field.getFieldName(), field);
|
|
|
8974 |
}
|
|
|
8975 |
}
|
|
|
8976 |
|
|
|
8977 |
/**
|
|
|
8978 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8979 |
*/
|
|
|
8980 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8981 |
return byId.get(fieldId);
|
|
|
8982 |
}
|
|
|
8983 |
|
|
|
8984 |
/**
|
|
|
8985 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8986 |
* if it is not found.
|
|
|
8987 |
*/
|
|
|
8988 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8989 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8990 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8991 |
return fields;
|
|
|
8992 |
}
|
|
|
8993 |
|
|
|
8994 |
/**
|
|
|
8995 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8996 |
*/
|
|
|
8997 |
public static _Fields findByName(String name) {
|
|
|
8998 |
return byName.get(name);
|
|
|
8999 |
}
|
|
|
9000 |
|
|
|
9001 |
private final short _thriftId;
|
|
|
9002 |
private final String _fieldName;
|
|
|
9003 |
|
|
|
9004 |
_Fields(short thriftId, String fieldName) {
|
|
|
9005 |
_thriftId = thriftId;
|
|
|
9006 |
_fieldName = fieldName;
|
|
|
9007 |
}
|
|
|
9008 |
|
|
|
9009 |
public short getThriftFieldId() {
|
|
|
9010 |
return _thriftId;
|
|
|
9011 |
}
|
|
|
9012 |
|
|
|
9013 |
public String getFieldName() {
|
|
|
9014 |
return _fieldName;
|
|
|
9015 |
}
|
|
|
9016 |
}
|
|
|
9017 |
|
|
|
9018 |
// isset id assignments
|
|
|
9019 |
private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
|
|
|
9020 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
9021 |
|
|
|
9022 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
9023 |
put(_Fields.MERCHANT_PAYMENT_ID, new FieldMetaData("merchantPaymentId", TFieldRequirementType.DEFAULT,
|
|
|
9024 |
new FieldValueMetaData(TType.I64)));
|
|
|
9025 |
}});
|
|
|
9026 |
|
|
|
9027 |
static {
|
|
|
9028 |
FieldMetaData.addStructMetaDataMap(captureHdfcPayment_args.class, metaDataMap);
|
|
|
9029 |
}
|
|
|
9030 |
|
|
|
9031 |
public captureHdfcPayment_args() {
|
|
|
9032 |
}
|
|
|
9033 |
|
|
|
9034 |
public captureHdfcPayment_args(
|
|
|
9035 |
long merchantPaymentId)
|
|
|
9036 |
{
|
|
|
9037 |
this();
|
|
|
9038 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
9039 |
setMerchantPaymentIdIsSet(true);
|
|
|
9040 |
}
|
|
|
9041 |
|
|
|
9042 |
/**
|
|
|
9043 |
* Performs a deep copy on <i>other</i>.
|
|
|
9044 |
*/
|
|
|
9045 |
public captureHdfcPayment_args(captureHdfcPayment_args other) {
|
|
|
9046 |
__isset_bit_vector.clear();
|
|
|
9047 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9048 |
this.merchantPaymentId = other.merchantPaymentId;
|
|
|
9049 |
}
|
|
|
9050 |
|
|
|
9051 |
public captureHdfcPayment_args deepCopy() {
|
|
|
9052 |
return new captureHdfcPayment_args(this);
|
|
|
9053 |
}
|
|
|
9054 |
|
|
|
9055 |
@Deprecated
|
|
|
9056 |
public captureHdfcPayment_args clone() {
|
|
|
9057 |
return new captureHdfcPayment_args(this);
|
|
|
9058 |
}
|
|
|
9059 |
|
|
|
9060 |
public long getMerchantPaymentId() {
|
|
|
9061 |
return this.merchantPaymentId;
|
|
|
9062 |
}
|
|
|
9063 |
|
|
|
9064 |
public captureHdfcPayment_args setMerchantPaymentId(long merchantPaymentId) {
|
|
|
9065 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
9066 |
setMerchantPaymentIdIsSet(true);
|
|
|
9067 |
return this;
|
|
|
9068 |
}
|
|
|
9069 |
|
|
|
9070 |
public void unsetMerchantPaymentId() {
|
|
|
9071 |
__isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
9072 |
}
|
|
|
9073 |
|
|
|
9074 |
/** Returns true if field merchantPaymentId is set (has been asigned a value) and false otherwise */
|
|
|
9075 |
public boolean isSetMerchantPaymentId() {
|
|
|
9076 |
return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
9077 |
}
|
|
|
9078 |
|
|
|
9079 |
public void setMerchantPaymentIdIsSet(boolean value) {
|
|
|
9080 |
__isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
|
|
|
9081 |
}
|
|
|
9082 |
|
|
|
9083 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9084 |
switch (field) {
|
|
|
9085 |
case MERCHANT_PAYMENT_ID:
|
|
|
9086 |
if (value == null) {
|
|
|
9087 |
unsetMerchantPaymentId();
|
|
|
9088 |
} else {
|
|
|
9089 |
setMerchantPaymentId((Long)value);
|
|
|
9090 |
}
|
|
|
9091 |
break;
|
|
|
9092 |
|
|
|
9093 |
}
|
|
|
9094 |
}
|
|
|
9095 |
|
|
|
9096 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
9097 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
9098 |
}
|
|
|
9099 |
|
|
|
9100 |
public Object getFieldValue(_Fields field) {
|
|
|
9101 |
switch (field) {
|
|
|
9102 |
case MERCHANT_PAYMENT_ID:
|
|
|
9103 |
return new Long(getMerchantPaymentId());
|
|
|
9104 |
|
|
|
9105 |
}
|
|
|
9106 |
throw new IllegalStateException();
|
|
|
9107 |
}
|
|
|
9108 |
|
|
|
9109 |
public Object getFieldValue(int fieldId) {
|
|
|
9110 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
9111 |
}
|
|
|
9112 |
|
|
|
9113 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
9114 |
public boolean isSet(_Fields field) {
|
|
|
9115 |
switch (field) {
|
|
|
9116 |
case MERCHANT_PAYMENT_ID:
|
|
|
9117 |
return isSetMerchantPaymentId();
|
|
|
9118 |
}
|
|
|
9119 |
throw new IllegalStateException();
|
|
|
9120 |
}
|
|
|
9121 |
|
|
|
9122 |
public boolean isSet(int fieldID) {
|
|
|
9123 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
9124 |
}
|
|
|
9125 |
|
|
|
9126 |
@Override
|
|
|
9127 |
public boolean equals(Object that) {
|
|
|
9128 |
if (that == null)
|
|
|
9129 |
return false;
|
|
|
9130 |
if (that instanceof captureHdfcPayment_args)
|
|
|
9131 |
return this.equals((captureHdfcPayment_args)that);
|
|
|
9132 |
return false;
|
|
|
9133 |
}
|
|
|
9134 |
|
|
|
9135 |
public boolean equals(captureHdfcPayment_args that) {
|
|
|
9136 |
if (that == null)
|
|
|
9137 |
return false;
|
|
|
9138 |
|
|
|
9139 |
boolean this_present_merchantPaymentId = true;
|
|
|
9140 |
boolean that_present_merchantPaymentId = true;
|
|
|
9141 |
if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
|
|
|
9142 |
if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
|
|
|
9143 |
return false;
|
|
|
9144 |
if (this.merchantPaymentId != that.merchantPaymentId)
|
|
|
9145 |
return false;
|
|
|
9146 |
}
|
|
|
9147 |
|
|
|
9148 |
return true;
|
|
|
9149 |
}
|
|
|
9150 |
|
|
|
9151 |
@Override
|
|
|
9152 |
public int hashCode() {
|
|
|
9153 |
return 0;
|
|
|
9154 |
}
|
|
|
9155 |
|
|
|
9156 |
public int compareTo(captureHdfcPayment_args other) {
|
|
|
9157 |
if (!getClass().equals(other.getClass())) {
|
|
|
9158 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9159 |
}
|
|
|
9160 |
|
|
|
9161 |
int lastComparison = 0;
|
|
|
9162 |
captureHdfcPayment_args typedOther = (captureHdfcPayment_args)other;
|
|
|
9163 |
|
|
|
9164 |
lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(isSetMerchantPaymentId());
|
|
|
9165 |
if (lastComparison != 0) {
|
|
|
9166 |
return lastComparison;
|
|
|
9167 |
}
|
|
|
9168 |
lastComparison = TBaseHelper.compareTo(merchantPaymentId, typedOther.merchantPaymentId);
|
|
|
9169 |
if (lastComparison != 0) {
|
|
|
9170 |
return lastComparison;
|
|
|
9171 |
}
|
|
|
9172 |
return 0;
|
|
|
9173 |
}
|
|
|
9174 |
|
|
|
9175 |
public void read(TProtocol iprot) throws TException {
|
|
|
9176 |
TField field;
|
|
|
9177 |
iprot.readStructBegin();
|
|
|
9178 |
while (true)
|
|
|
9179 |
{
|
|
|
9180 |
field = iprot.readFieldBegin();
|
|
|
9181 |
if (field.type == TType.STOP) {
|
|
|
9182 |
break;
|
|
|
9183 |
}
|
|
|
9184 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
9185 |
if (fieldId == null) {
|
|
|
9186 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
9187 |
} else {
|
|
|
9188 |
switch (fieldId) {
|
|
|
9189 |
case MERCHANT_PAYMENT_ID:
|
|
|
9190 |
if (field.type == TType.I64) {
|
|
|
9191 |
this.merchantPaymentId = iprot.readI64();
|
|
|
9192 |
setMerchantPaymentIdIsSet(true);
|
|
|
9193 |
} else {
|
|
|
9194 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
9195 |
}
|
|
|
9196 |
break;
|
|
|
9197 |
}
|
|
|
9198 |
iprot.readFieldEnd();
|
|
|
9199 |
}
|
|
|
9200 |
}
|
|
|
9201 |
iprot.readStructEnd();
|
|
|
9202 |
validate();
|
|
|
9203 |
}
|
|
|
9204 |
|
|
|
9205 |
public void write(TProtocol oprot) throws TException {
|
|
|
9206 |
validate();
|
|
|
9207 |
|
|
|
9208 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9209 |
oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
|
|
|
9210 |
oprot.writeI64(this.merchantPaymentId);
|
|
|
9211 |
oprot.writeFieldEnd();
|
|
|
9212 |
oprot.writeFieldStop();
|
|
|
9213 |
oprot.writeStructEnd();
|
|
|
9214 |
}
|
|
|
9215 |
|
|
|
9216 |
@Override
|
|
|
9217 |
public String toString() {
|
|
|
9218 |
StringBuilder sb = new StringBuilder("captureHdfcPayment_args(");
|
|
|
9219 |
boolean first = true;
|
|
|
9220 |
|
|
|
9221 |
sb.append("merchantPaymentId:");
|
|
|
9222 |
sb.append(this.merchantPaymentId);
|
|
|
9223 |
first = false;
|
|
|
9224 |
sb.append(")");
|
|
|
9225 |
return sb.toString();
|
|
|
9226 |
}
|
|
|
9227 |
|
|
|
9228 |
public void validate() throws TException {
|
|
|
9229 |
// check for required fields
|
|
|
9230 |
}
|
|
|
9231 |
|
|
|
9232 |
}
|
|
|
9233 |
|
|
|
9234 |
public static class captureHdfcPayment_result implements TBase<captureHdfcPayment_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
9235 |
private static final TStruct STRUCT_DESC = new TStruct("captureHdfcPayment_result");
|
|
|
9236 |
|
|
|
9237 |
private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.MAP, (short)0);
|
|
|
9238 |
private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
|
|
|
9239 |
|
|
|
9240 |
private Map<String,String> success;
|
|
|
9241 |
private PaymentException pe;
|
|
|
9242 |
|
|
|
9243 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9244 |
public enum _Fields implements TFieldIdEnum {
|
|
|
9245 |
SUCCESS((short)0, "success"),
|
|
|
9246 |
PE((short)1, "pe");
|
|
|
9247 |
|
|
|
9248 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
9249 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9250 |
|
|
|
9251 |
static {
|
|
|
9252 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9253 |
byId.put((int)field._thriftId, field);
|
|
|
9254 |
byName.put(field.getFieldName(), field);
|
|
|
9255 |
}
|
|
|
9256 |
}
|
|
|
9257 |
|
|
|
9258 |
/**
|
|
|
9259 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9260 |
*/
|
|
|
9261 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9262 |
return byId.get(fieldId);
|
|
|
9263 |
}
|
|
|
9264 |
|
|
|
9265 |
/**
|
|
|
9266 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9267 |
* if it is not found.
|
|
|
9268 |
*/
|
|
|
9269 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9270 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9271 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9272 |
return fields;
|
|
|
9273 |
}
|
|
|
9274 |
|
|
|
9275 |
/**
|
|
|
9276 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9277 |
*/
|
|
|
9278 |
public static _Fields findByName(String name) {
|
|
|
9279 |
return byName.get(name);
|
|
|
9280 |
}
|
|
|
9281 |
|
|
|
9282 |
private final short _thriftId;
|
|
|
9283 |
private final String _fieldName;
|
|
|
9284 |
|
|
|
9285 |
_Fields(short thriftId, String fieldName) {
|
|
|
9286 |
_thriftId = thriftId;
|
|
|
9287 |
_fieldName = fieldName;
|
|
|
9288 |
}
|
|
|
9289 |
|
|
|
9290 |
public short getThriftFieldId() {
|
|
|
9291 |
return _thriftId;
|
|
|
9292 |
}
|
|
|
9293 |
|
|
|
9294 |
public String getFieldName() {
|
|
|
9295 |
return _fieldName;
|
|
|
9296 |
}
|
|
|
9297 |
}
|
|
|
9298 |
|
|
|
9299 |
// isset id assignments
|
|
|
9300 |
|
|
|
9301 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
9302 |
put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,
|
|
|
9303 |
new MapMetaData(TType.MAP,
|
|
|
9304 |
new FieldValueMetaData(TType.STRING),
|
|
|
9305 |
new FieldValueMetaData(TType.STRING))));
|
|
|
9306 |
put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT,
|
|
|
9307 |
new FieldValueMetaData(TType.STRUCT)));
|
|
|
9308 |
}});
|
|
|
9309 |
|
|
|
9310 |
static {
|
|
|
9311 |
FieldMetaData.addStructMetaDataMap(captureHdfcPayment_result.class, metaDataMap);
|
|
|
9312 |
}
|
|
|
9313 |
|
|
|
9314 |
public captureHdfcPayment_result() {
|
|
|
9315 |
}
|
|
|
9316 |
|
|
|
9317 |
public captureHdfcPayment_result(
|
|
|
9318 |
Map<String,String> success,
|
|
|
9319 |
PaymentException pe)
|
|
|
9320 |
{
|
|
|
9321 |
this();
|
|
|
9322 |
this.success = success;
|
|
|
9323 |
this.pe = pe;
|
|
|
9324 |
}
|
|
|
9325 |
|
|
|
9326 |
/**
|
|
|
9327 |
* Performs a deep copy on <i>other</i>.
|
|
|
9328 |
*/
|
|
|
9329 |
public captureHdfcPayment_result(captureHdfcPayment_result other) {
|
|
|
9330 |
if (other.isSetSuccess()) {
|
|
|
9331 |
Map<String,String> __this__success = new HashMap<String,String>();
|
|
|
9332 |
for (Map.Entry<String, String> other_element : other.success.entrySet()) {
|
|
|
9333 |
|
|
|
9334 |
String other_element_key = other_element.getKey();
|
|
|
9335 |
String other_element_value = other_element.getValue();
|
|
|
9336 |
|
|
|
9337 |
String __this__success_copy_key = other_element_key;
|
|
|
9338 |
|
|
|
9339 |
String __this__success_copy_value = other_element_value;
|
|
|
9340 |
|
|
|
9341 |
__this__success.put(__this__success_copy_key, __this__success_copy_value);
|
|
|
9342 |
}
|
|
|
9343 |
this.success = __this__success;
|
|
|
9344 |
}
|
|
|
9345 |
if (other.isSetPe()) {
|
|
|
9346 |
this.pe = new PaymentException(other.pe);
|
|
|
9347 |
}
|
|
|
9348 |
}
|
|
|
9349 |
|
|
|
9350 |
public captureHdfcPayment_result deepCopy() {
|
|
|
9351 |
return new captureHdfcPayment_result(this);
|
|
|
9352 |
}
|
|
|
9353 |
|
|
|
9354 |
@Deprecated
|
|
|
9355 |
public captureHdfcPayment_result clone() {
|
|
|
9356 |
return new captureHdfcPayment_result(this);
|
|
|
9357 |
}
|
|
|
9358 |
|
|
|
9359 |
public int getSuccessSize() {
|
|
|
9360 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
9361 |
}
|
|
|
9362 |
|
|
|
9363 |
public void putToSuccess(String key, String val) {
|
|
|
9364 |
if (this.success == null) {
|
|
|
9365 |
this.success = new HashMap<String,String>();
|
|
|
9366 |
}
|
|
|
9367 |
this.success.put(key, val);
|
|
|
9368 |
}
|
|
|
9369 |
|
|
|
9370 |
public Map<String,String> getSuccess() {
|
|
|
9371 |
return this.success;
|
|
|
9372 |
}
|
|
|
9373 |
|
|
|
9374 |
public captureHdfcPayment_result setSuccess(Map<String,String> success) {
|
|
|
9375 |
this.success = success;
|
|
|
9376 |
return this;
|
|
|
9377 |
}
|
|
|
9378 |
|
|
|
9379 |
public void unsetSuccess() {
|
|
|
9380 |
this.success = null;
|
|
|
9381 |
}
|
|
|
9382 |
|
|
|
9383 |
/** Returns true if field success is set (has been asigned a value) and false otherwise */
|
|
|
9384 |
public boolean isSetSuccess() {
|
|
|
9385 |
return this.success != null;
|
|
|
9386 |
}
|
|
|
9387 |
|
|
|
9388 |
public void setSuccessIsSet(boolean value) {
|
|
|
9389 |
if (!value) {
|
|
|
9390 |
this.success = null;
|
|
|
9391 |
}
|
|
|
9392 |
}
|
|
|
9393 |
|
|
|
9394 |
public PaymentException getPe() {
|
|
|
9395 |
return this.pe;
|
|
|
9396 |
}
|
|
|
9397 |
|
|
|
9398 |
public captureHdfcPayment_result setPe(PaymentException pe) {
|
|
|
9399 |
this.pe = pe;
|
|
|
9400 |
return this;
|
|
|
9401 |
}
|
|
|
9402 |
|
|
|
9403 |
public void unsetPe() {
|
|
|
9404 |
this.pe = null;
|
|
|
9405 |
}
|
|
|
9406 |
|
|
|
9407 |
/** Returns true if field pe is set (has been asigned a value) and false otherwise */
|
|
|
9408 |
public boolean isSetPe() {
|
|
|
9409 |
return this.pe != null;
|
|
|
9410 |
}
|
|
|
9411 |
|
|
|
9412 |
public void setPeIsSet(boolean value) {
|
|
|
9413 |
if (!value) {
|
|
|
9414 |
this.pe = null;
|
|
|
9415 |
}
|
|
|
9416 |
}
|
|
|
9417 |
|
|
|
9418 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9419 |
switch (field) {
|
|
|
9420 |
case SUCCESS:
|
|
|
9421 |
if (value == null) {
|
|
|
9422 |
unsetSuccess();
|
|
|
9423 |
} else {
|
|
|
9424 |
setSuccess((Map<String,String>)value);
|
|
|
9425 |
}
|
|
|
9426 |
break;
|
|
|
9427 |
|
|
|
9428 |
case PE:
|
|
|
9429 |
if (value == null) {
|
|
|
9430 |
unsetPe();
|
|
|
9431 |
} else {
|
|
|
9432 |
setPe((PaymentException)value);
|
|
|
9433 |
}
|
|
|
9434 |
break;
|
|
|
9435 |
|
|
|
9436 |
}
|
|
|
9437 |
}
|
|
|
9438 |
|
|
|
9439 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
9440 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
9441 |
}
|
|
|
9442 |
|
|
|
9443 |
public Object getFieldValue(_Fields field) {
|
|
|
9444 |
switch (field) {
|
|
|
9445 |
case SUCCESS:
|
|
|
9446 |
return getSuccess();
|
|
|
9447 |
|
|
|
9448 |
case PE:
|
|
|
9449 |
return getPe();
|
|
|
9450 |
|
|
|
9451 |
}
|
|
|
9452 |
throw new IllegalStateException();
|
|
|
9453 |
}
|
|
|
9454 |
|
|
|
9455 |
public Object getFieldValue(int fieldId) {
|
|
|
9456 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
9457 |
}
|
|
|
9458 |
|
|
|
9459 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
9460 |
public boolean isSet(_Fields field) {
|
|
|
9461 |
switch (field) {
|
|
|
9462 |
case SUCCESS:
|
|
|
9463 |
return isSetSuccess();
|
|
|
9464 |
case PE:
|
|
|
9465 |
return isSetPe();
|
|
|
9466 |
}
|
|
|
9467 |
throw new IllegalStateException();
|
|
|
9468 |
}
|
|
|
9469 |
|
|
|
9470 |
public boolean isSet(int fieldID) {
|
|
|
9471 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
9472 |
}
|
|
|
9473 |
|
|
|
9474 |
@Override
|
|
|
9475 |
public boolean equals(Object that) {
|
|
|
9476 |
if (that == null)
|
|
|
9477 |
return false;
|
|
|
9478 |
if (that instanceof captureHdfcPayment_result)
|
|
|
9479 |
return this.equals((captureHdfcPayment_result)that);
|
|
|
9480 |
return false;
|
|
|
9481 |
}
|
|
|
9482 |
|
|
|
9483 |
public boolean equals(captureHdfcPayment_result that) {
|
|
|
9484 |
if (that == null)
|
|
|
9485 |
return false;
|
|
|
9486 |
|
|
|
9487 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
9488 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
9489 |
if (this_present_success || that_present_success) {
|
|
|
9490 |
if (!(this_present_success && that_present_success))
|
|
|
9491 |
return false;
|
|
|
9492 |
if (!this.success.equals(that.success))
|
|
|
9493 |
return false;
|
|
|
9494 |
}
|
|
|
9495 |
|
|
|
9496 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
9497 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
9498 |
if (this_present_pe || that_present_pe) {
|
|
|
9499 |
if (!(this_present_pe && that_present_pe))
|
|
|
9500 |
return false;
|
|
|
9501 |
if (!this.pe.equals(that.pe))
|
|
|
9502 |
return false;
|
|
|
9503 |
}
|
|
|
9504 |
|
|
|
9505 |
return true;
|
|
|
9506 |
}
|
|
|
9507 |
|
|
|
9508 |
@Override
|
|
|
9509 |
public int hashCode() {
|
|
|
9510 |
return 0;
|
|
|
9511 |
}
|
|
|
9512 |
|
|
|
9513 |
public void read(TProtocol iprot) throws TException {
|
|
|
9514 |
TField field;
|
|
|
9515 |
iprot.readStructBegin();
|
|
|
9516 |
while (true)
|
|
|
9517 |
{
|
|
|
9518 |
field = iprot.readFieldBegin();
|
|
|
9519 |
if (field.type == TType.STOP) {
|
|
|
9520 |
break;
|
|
|
9521 |
}
|
|
|
9522 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
9523 |
if (fieldId == null) {
|
|
|
9524 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
9525 |
} else {
|
|
|
9526 |
switch (fieldId) {
|
|
|
9527 |
case SUCCESS:
|
|
|
9528 |
if (field.type == TType.MAP) {
|
|
|
9529 |
{
|
|
|
9530 |
TMap _map33 = iprot.readMapBegin();
|
|
|
9531 |
this.success = new HashMap<String,String>(2*_map33.size);
|
|
|
9532 |
for (int _i34 = 0; _i34 < _map33.size; ++_i34)
|
|
|
9533 |
{
|
|
|
9534 |
String _key35;
|
|
|
9535 |
String _val36;
|
|
|
9536 |
_key35 = iprot.readString();
|
|
|
9537 |
_val36 = iprot.readString();
|
|
|
9538 |
this.success.put(_key35, _val36);
|
|
|
9539 |
}
|
|
|
9540 |
iprot.readMapEnd();
|
|
|
9541 |
}
|
|
|
9542 |
} else {
|
|
|
9543 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
9544 |
}
|
|
|
9545 |
break;
|
|
|
9546 |
case PE:
|
|
|
9547 |
if (field.type == TType.STRUCT) {
|
|
|
9548 |
this.pe = new PaymentException();
|
|
|
9549 |
this.pe.read(iprot);
|
|
|
9550 |
} else {
|
|
|
9551 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
9552 |
}
|
|
|
9553 |
break;
|
|
|
9554 |
}
|
|
|
9555 |
iprot.readFieldEnd();
|
|
|
9556 |
}
|
|
|
9557 |
}
|
|
|
9558 |
iprot.readStructEnd();
|
|
|
9559 |
validate();
|
|
|
9560 |
}
|
|
|
9561 |
|
|
|
9562 |
public void write(TProtocol oprot) throws TException {
|
|
|
9563 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9564 |
|
|
|
9565 |
if (this.isSetSuccess()) {
|
|
|
9566 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
9567 |
{
|
|
|
9568 |
oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.success.size()));
|
|
|
9569 |
for (Map.Entry<String, String> _iter37 : this.success.entrySet())
|
|
|
9570 |
{
|
|
|
9571 |
oprot.writeString(_iter37.getKey());
|
|
|
9572 |
oprot.writeString(_iter37.getValue());
|
|
|
9573 |
}
|
|
|
9574 |
oprot.writeMapEnd();
|
|
|
9575 |
}
|
|
|
9576 |
oprot.writeFieldEnd();
|
|
|
9577 |
} else if (this.isSetPe()) {
|
|
|
9578 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
9579 |
this.pe.write(oprot);
|
|
|
9580 |
oprot.writeFieldEnd();
|
|
|
9581 |
}
|
|
|
9582 |
oprot.writeFieldStop();
|
|
|
9583 |
oprot.writeStructEnd();
|
|
|
9584 |
}
|
|
|
9585 |
|
|
|
9586 |
@Override
|
|
|
9587 |
public String toString() {
|
|
|
9588 |
StringBuilder sb = new StringBuilder("captureHdfcPayment_result(");
|
|
|
9589 |
boolean first = true;
|
|
|
9590 |
|
|
|
9591 |
sb.append("success:");
|
|
|
9592 |
if (this.success == null) {
|
|
|
9593 |
sb.append("null");
|
|
|
9594 |
} else {
|
|
|
9595 |
sb.append(this.success);
|
|
|
9596 |
}
|
|
|
9597 |
first = false;
|
|
|
9598 |
if (!first) sb.append(", ");
|
|
|
9599 |
sb.append("pe:");
|
|
|
9600 |
if (this.pe == null) {
|
|
|
9601 |
sb.append("null");
|
|
|
9602 |
} else {
|
|
|
9603 |
sb.append(this.pe);
|
|
|
9604 |
}
|
|
|
9605 |
first = false;
|
|
|
9606 |
sb.append(")");
|
|
|
9607 |
return sb.toString();
|
|
|
9608 |
}
|
|
|
9609 |
|
|
|
9610 |
public void validate() throws TException {
|
|
|
9611 |
// check for required fields
|
|
|
9612 |
}
|
|
|
9613 |
|
|
|
9614 |
}
|
|
|
9615 |
|
|
|
9616 |
public static class initializeHdfcPayment_args implements TBase<initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<initializeHdfcPayment_args> {
|
|
|
9617 |
private static final TStruct STRUCT_DESC = new TStruct("initializeHdfcPayment_args");
|
|
|
9618 |
|
|
|
9619 |
private static final TField MERCHANT_PAYMENT_ID_FIELD_DESC = new TField("merchantPaymentId", TType.I64, (short)1);
|
|
|
9620 |
|
|
|
9621 |
private long merchantPaymentId;
|
|
|
9622 |
|
|
|
9623 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9624 |
public enum _Fields implements TFieldIdEnum {
|
|
|
9625 |
MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
|
|
|
9626 |
|
|
|
9627 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
9628 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9629 |
|
|
|
9630 |
static {
|
|
|
9631 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9632 |
byId.put((int)field._thriftId, field);
|
|
|
9633 |
byName.put(field.getFieldName(), field);
|
|
|
9634 |
}
|
|
|
9635 |
}
|
|
|
9636 |
|
|
|
9637 |
/**
|
|
|
9638 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9639 |
*/
|
|
|
9640 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9641 |
return byId.get(fieldId);
|
|
|
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 |
private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
|
|
|
9680 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
9681 |
|
|
|
9682 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
9683 |
put(_Fields.MERCHANT_PAYMENT_ID, new FieldMetaData("merchantPaymentId", TFieldRequirementType.DEFAULT,
|
|
|
9684 |
new FieldValueMetaData(TType.I64)));
|
|
|
9685 |
}});
|
|
|
9686 |
|
|
|
9687 |
static {
|
|
|
9688 |
FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
|
|
|
9689 |
}
|
|
|
9690 |
|
|
|
9691 |
public initializeHdfcPayment_args() {
|
|
|
9692 |
}
|
|
|
9693 |
|
|
|
9694 |
public initializeHdfcPayment_args(
|
|
|
9695 |
long merchantPaymentId)
|
|
|
9696 |
{
|
|
|
9697 |
this();
|
|
|
9698 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
9699 |
setMerchantPaymentIdIsSet(true);
|
|
|
9700 |
}
|
|
|
9701 |
|
|
|
9702 |
/**
|
|
|
9703 |
* Performs a deep copy on <i>other</i>.
|
|
|
9704 |
*/
|
|
|
9705 |
public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
|
|
|
9706 |
__isset_bit_vector.clear();
|
|
|
9707 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9708 |
this.merchantPaymentId = other.merchantPaymentId;
|
|
|
9709 |
}
|
|
|
9710 |
|
|
|
9711 |
public initializeHdfcPayment_args deepCopy() {
|
|
|
9712 |
return new initializeHdfcPayment_args(this);
|
|
|
9713 |
}
|
|
|
9714 |
|
|
|
9715 |
@Deprecated
|
|
|
9716 |
public initializeHdfcPayment_args clone() {
|
|
|
9717 |
return new initializeHdfcPayment_args(this);
|
|
|
9718 |
}
|
|
|
9719 |
|
|
|
9720 |
public long getMerchantPaymentId() {
|
|
|
9721 |
return this.merchantPaymentId;
|
|
|
9722 |
}
|
|
|
9723 |
|
|
|
9724 |
public initializeHdfcPayment_args setMerchantPaymentId(long merchantPaymentId) {
|
|
|
9725 |
this.merchantPaymentId = merchantPaymentId;
|
|
|
9726 |
setMerchantPaymentIdIsSet(true);
|
|
|
9727 |
return this;
|
|
|
9728 |
}
|
|
|
9729 |
|
|
|
9730 |
public void unsetMerchantPaymentId() {
|
|
|
9731 |
__isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
9732 |
}
|
|
|
9733 |
|
|
|
9734 |
/** Returns true if field merchantPaymentId is set (has been asigned a value) and false otherwise */
|
|
|
9735 |
public boolean isSetMerchantPaymentId() {
|
|
|
9736 |
return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
|
|
|
9737 |
}
|
|
|
9738 |
|
|
|
9739 |
public void setMerchantPaymentIdIsSet(boolean value) {
|
|
|
9740 |
__isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
|
|
|
9741 |
}
|
|
|
9742 |
|
|
|
9743 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9744 |
switch (field) {
|
|
|
9745 |
case MERCHANT_PAYMENT_ID:
|
|
|
9746 |
if (value == null) {
|
|
|
9747 |
unsetMerchantPaymentId();
|
|
|
9748 |
} else {
|
|
|
9749 |
setMerchantPaymentId((Long)value);
|
|
|
9750 |
}
|
|
|
9751 |
break;
|
|
|
9752 |
|
|
|
9753 |
}
|
|
|
9754 |
}
|
|
|
9755 |
|
|
|
9756 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
9757 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
9758 |
}
|
|
|
9759 |
|
|
|
9760 |
public Object getFieldValue(_Fields field) {
|
|
|
9761 |
switch (field) {
|
|
|
9762 |
case MERCHANT_PAYMENT_ID:
|
|
|
9763 |
return new Long(getMerchantPaymentId());
|
|
|
9764 |
|
|
|
9765 |
}
|
|
|
9766 |
throw new IllegalStateException();
|
|
|
9767 |
}
|
|
|
9768 |
|
|
|
9769 |
public Object getFieldValue(int fieldId) {
|
|
|
9770 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
9771 |
}
|
|
|
9772 |
|
|
|
9773 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
9774 |
public boolean isSet(_Fields field) {
|
|
|
9775 |
switch (field) {
|
|
|
9776 |
case MERCHANT_PAYMENT_ID:
|
|
|
9777 |
return isSetMerchantPaymentId();
|
|
|
9778 |
}
|
|
|
9779 |
throw new IllegalStateException();
|
|
|
9780 |
}
|
|
|
9781 |
|
|
|
9782 |
public boolean isSet(int fieldID) {
|
|
|
9783 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
9784 |
}
|
|
|
9785 |
|
|
|
9786 |
@Override
|
|
|
9787 |
public boolean equals(Object that) {
|
|
|
9788 |
if (that == null)
|
|
|
9789 |
return false;
|
|
|
9790 |
if (that instanceof initializeHdfcPayment_args)
|
|
|
9791 |
return this.equals((initializeHdfcPayment_args)that);
|
|
|
9792 |
return false;
|
|
|
9793 |
}
|
|
|
9794 |
|
|
|
9795 |
public boolean equals(initializeHdfcPayment_args that) {
|
|
|
9796 |
if (that == null)
|
|
|
9797 |
return false;
|
|
|
9798 |
|
|
|
9799 |
boolean this_present_merchantPaymentId = true;
|
|
|
9800 |
boolean that_present_merchantPaymentId = true;
|
|
|
9801 |
if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
|
|
|
9802 |
if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
|
|
|
9803 |
return false;
|
|
|
9804 |
if (this.merchantPaymentId != that.merchantPaymentId)
|
|
|
9805 |
return false;
|
|
|
9806 |
}
|
|
|
9807 |
|
|
|
9808 |
return true;
|
|
|
9809 |
}
|
|
|
9810 |
|
|
|
9811 |
@Override
|
|
|
9812 |
public int hashCode() {
|
|
|
9813 |
return 0;
|
|
|
9814 |
}
|
|
|
9815 |
|
|
|
9816 |
public int compareTo(initializeHdfcPayment_args other) {
|
|
|
9817 |
if (!getClass().equals(other.getClass())) {
|
|
|
9818 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9819 |
}
|
|
|
9820 |
|
|
|
9821 |
int lastComparison = 0;
|
|
|
9822 |
initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
|
|
|
9823 |
|
|
|
9824 |
lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(isSetMerchantPaymentId());
|
|
|
9825 |
if (lastComparison != 0) {
|
|
|
9826 |
return lastComparison;
|
|
|
9827 |
}
|
|
|
9828 |
lastComparison = TBaseHelper.compareTo(merchantPaymentId, typedOther.merchantPaymentId);
|
|
|
9829 |
if (lastComparison != 0) {
|
|
|
9830 |
return lastComparison;
|
|
|
9831 |
}
|
|
|
9832 |
return 0;
|
|
|
9833 |
}
|
|
|
9834 |
|
|
|
9835 |
public void read(TProtocol iprot) throws TException {
|
|
|
9836 |
TField field;
|
|
|
9837 |
iprot.readStructBegin();
|
|
|
9838 |
while (true)
|
|
|
9839 |
{
|
|
|
9840 |
field = iprot.readFieldBegin();
|
|
|
9841 |
if (field.type == TType.STOP) {
|
|
|
9842 |
break;
|
|
|
9843 |
}
|
|
|
9844 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
9845 |
if (fieldId == null) {
|
|
|
9846 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
9847 |
} else {
|
|
|
9848 |
switch (fieldId) {
|
|
|
9849 |
case MERCHANT_PAYMENT_ID:
|
|
|
9850 |
if (field.type == TType.I64) {
|
|
|
9851 |
this.merchantPaymentId = iprot.readI64();
|
|
|
9852 |
setMerchantPaymentIdIsSet(true);
|
|
|
9853 |
} else {
|
|
|
9854 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
9855 |
}
|
|
|
9856 |
break;
|
|
|
9857 |
}
|
|
|
9858 |
iprot.readFieldEnd();
|
|
|
9859 |
}
|
|
|
9860 |
}
|
|
|
9861 |
iprot.readStructEnd();
|
|
|
9862 |
validate();
|
|
|
9863 |
}
|
|
|
9864 |
|
|
|
9865 |
public void write(TProtocol oprot) throws TException {
|
|
|
9866 |
validate();
|
|
|
9867 |
|
|
|
9868 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9869 |
oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
|
|
|
9870 |
oprot.writeI64(this.merchantPaymentId);
|
|
|
9871 |
oprot.writeFieldEnd();
|
|
|
9872 |
oprot.writeFieldStop();
|
|
|
9873 |
oprot.writeStructEnd();
|
|
|
9874 |
}
|
|
|
9875 |
|
|
|
9876 |
@Override
|
|
|
9877 |
public String toString() {
|
|
|
9878 |
StringBuilder sb = new StringBuilder("initializeHdfcPayment_args(");
|
|
|
9879 |
boolean first = true;
|
|
|
9880 |
|
|
|
9881 |
sb.append("merchantPaymentId:");
|
|
|
9882 |
sb.append(this.merchantPaymentId);
|
|
|
9883 |
first = false;
|
|
|
9884 |
sb.append(")");
|
|
|
9885 |
return sb.toString();
|
|
|
9886 |
}
|
|
|
9887 |
|
|
|
9888 |
public void validate() throws TException {
|
|
|
9889 |
// check for required fields
|
|
|
9890 |
}
|
|
|
9891 |
|
|
|
9892 |
}
|
|
|
9893 |
|
|
|
9894 |
public static class initializeHdfcPayment_result implements TBase<initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<initializeHdfcPayment_result> {
|
|
|
9895 |
private static final TStruct STRUCT_DESC = new TStruct("initializeHdfcPayment_result");
|
|
|
9896 |
|
|
|
9897 |
private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
|
|
|
9898 |
private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
|
|
|
9899 |
|
|
|
9900 |
private String success;
|
|
|
9901 |
private PaymentException pe;
|
|
|
9902 |
|
|
|
9903 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9904 |
public enum _Fields implements TFieldIdEnum {
|
|
|
9905 |
SUCCESS((short)0, "success"),
|
|
|
9906 |
PE((short)1, "pe");
|
|
|
9907 |
|
|
|
9908 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
9909 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9910 |
|
|
|
9911 |
static {
|
|
|
9912 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9913 |
byId.put((int)field._thriftId, field);
|
|
|
9914 |
byName.put(field.getFieldName(), field);
|
|
|
9915 |
}
|
|
|
9916 |
}
|
|
|
9917 |
|
|
|
9918 |
/**
|
|
|
9919 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9920 |
*/
|
|
|
9921 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9922 |
return byId.get(fieldId);
|
|
|
9923 |
}
|
|
|
9924 |
|
|
|
9925 |
/**
|
|
|
9926 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9927 |
* if it is not found.
|
|
|
9928 |
*/
|
|
|
9929 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9930 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9931 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9932 |
return fields;
|
|
|
9933 |
}
|
|
|
9934 |
|
|
|
9935 |
/**
|
|
|
9936 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9937 |
*/
|
|
|
9938 |
public static _Fields findByName(String name) {
|
|
|
9939 |
return byName.get(name);
|
|
|
9940 |
}
|
|
|
9941 |
|
|
|
9942 |
private final short _thriftId;
|
|
|
9943 |
private final String _fieldName;
|
|
|
9944 |
|
|
|
9945 |
_Fields(short thriftId, String fieldName) {
|
|
|
9946 |
_thriftId = thriftId;
|
|
|
9947 |
_fieldName = fieldName;
|
|
|
9948 |
}
|
|
|
9949 |
|
|
|
9950 |
public short getThriftFieldId() {
|
|
|
9951 |
return _thriftId;
|
|
|
9952 |
}
|
|
|
9953 |
|
|
|
9954 |
public String getFieldName() {
|
|
|
9955 |
return _fieldName;
|
|
|
9956 |
}
|
|
|
9957 |
}
|
|
|
9958 |
|
|
|
9959 |
// isset id assignments
|
|
|
9960 |
|
|
|
9961 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
9962 |
put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,
|
|
|
9963 |
new FieldValueMetaData(TType.STRING)));
|
|
|
9964 |
put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT,
|
|
|
9965 |
new FieldValueMetaData(TType.STRUCT)));
|
|
|
9966 |
}});
|
|
|
9967 |
|
|
|
9968 |
static {
|
|
|
9969 |
FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
|
|
|
9970 |
}
|
|
|
9971 |
|
|
|
9972 |
public initializeHdfcPayment_result() {
|
|
|
9973 |
}
|
|
|
9974 |
|
|
|
9975 |
public initializeHdfcPayment_result(
|
|
|
9976 |
String success,
|
|
|
9977 |
PaymentException pe)
|
|
|
9978 |
{
|
|
|
9979 |
this();
|
|
|
9980 |
this.success = success;
|
|
|
9981 |
this.pe = pe;
|
|
|
9982 |
}
|
|
|
9983 |
|
|
|
9984 |
/**
|
|
|
9985 |
* Performs a deep copy on <i>other</i>.
|
|
|
9986 |
*/
|
|
|
9987 |
public initializeHdfcPayment_result(initializeHdfcPayment_result other) {
|
|
|
9988 |
if (other.isSetSuccess()) {
|
|
|
9989 |
this.success = other.success;
|
|
|
9990 |
}
|
|
|
9991 |
if (other.isSetPe()) {
|
|
|
9992 |
this.pe = new PaymentException(other.pe);
|
|
|
9993 |
}
|
|
|
9994 |
}
|
|
|
9995 |
|
|
|
9996 |
public initializeHdfcPayment_result deepCopy() {
|
|
|
9997 |
return new initializeHdfcPayment_result(this);
|
|
|
9998 |
}
|
|
|
9999 |
|
|
|
10000 |
@Deprecated
|
|
|
10001 |
public initializeHdfcPayment_result clone() {
|
|
|
10002 |
return new initializeHdfcPayment_result(this);
|
|
|
10003 |
}
|
|
|
10004 |
|
|
|
10005 |
public String getSuccess() {
|
|
|
10006 |
return this.success;
|
|
|
10007 |
}
|
|
|
10008 |
|
|
|
10009 |
public initializeHdfcPayment_result setSuccess(String success) {
|
|
|
10010 |
this.success = success;
|
|
|
10011 |
return this;
|
|
|
10012 |
}
|
|
|
10013 |
|
|
|
10014 |
public void unsetSuccess() {
|
|
|
10015 |
this.success = null;
|
|
|
10016 |
}
|
|
|
10017 |
|
|
|
10018 |
/** Returns true if field success is set (has been asigned a value) and false otherwise */
|
|
|
10019 |
public boolean isSetSuccess() {
|
|
|
10020 |
return this.success != null;
|
|
|
10021 |
}
|
|
|
10022 |
|
|
|
10023 |
public void setSuccessIsSet(boolean value) {
|
|
|
10024 |
if (!value) {
|
|
|
10025 |
this.success = null;
|
|
|
10026 |
}
|
|
|
10027 |
}
|
|
|
10028 |
|
|
|
10029 |
public PaymentException getPe() {
|
|
|
10030 |
return this.pe;
|
|
|
10031 |
}
|
|
|
10032 |
|
|
|
10033 |
public initializeHdfcPayment_result setPe(PaymentException pe) {
|
|
|
10034 |
this.pe = pe;
|
|
|
10035 |
return this;
|
|
|
10036 |
}
|
|
|
10037 |
|
|
|
10038 |
public void unsetPe() {
|
|
|
10039 |
this.pe = null;
|
|
|
10040 |
}
|
|
|
10041 |
|
|
|
10042 |
/** Returns true if field pe is set (has been asigned a value) and false otherwise */
|
|
|
10043 |
public boolean isSetPe() {
|
|
|
10044 |
return this.pe != null;
|
|
|
10045 |
}
|
|
|
10046 |
|
|
|
10047 |
public void setPeIsSet(boolean value) {
|
|
|
10048 |
if (!value) {
|
|
|
10049 |
this.pe = null;
|
|
|
10050 |
}
|
|
|
10051 |
}
|
|
|
10052 |
|
|
|
10053 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10054 |
switch (field) {
|
|
|
10055 |
case SUCCESS:
|
|
|
10056 |
if (value == null) {
|
|
|
10057 |
unsetSuccess();
|
|
|
10058 |
} else {
|
|
|
10059 |
setSuccess((String)value);
|
|
|
10060 |
}
|
|
|
10061 |
break;
|
|
|
10062 |
|
|
|
10063 |
case PE:
|
|
|
10064 |
if (value == null) {
|
|
|
10065 |
unsetPe();
|
|
|
10066 |
} else {
|
|
|
10067 |
setPe((PaymentException)value);
|
|
|
10068 |
}
|
|
|
10069 |
break;
|
|
|
10070 |
|
|
|
10071 |
}
|
|
|
10072 |
}
|
|
|
10073 |
|
|
|
10074 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
10075 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
10076 |
}
|
|
|
10077 |
|
|
|
10078 |
public Object getFieldValue(_Fields field) {
|
|
|
10079 |
switch (field) {
|
|
|
10080 |
case SUCCESS:
|
|
|
10081 |
return getSuccess();
|
|
|
10082 |
|
|
|
10083 |
case PE:
|
|
|
10084 |
return getPe();
|
|
|
10085 |
|
|
|
10086 |
}
|
|
|
10087 |
throw new IllegalStateException();
|
|
|
10088 |
}
|
|
|
10089 |
|
|
|
10090 |
public Object getFieldValue(int fieldId) {
|
|
|
10091 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
10092 |
}
|
|
|
10093 |
|
|
|
10094 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
10095 |
public boolean isSet(_Fields field) {
|
|
|
10096 |
switch (field) {
|
|
|
10097 |
case SUCCESS:
|
|
|
10098 |
return isSetSuccess();
|
|
|
10099 |
case PE:
|
|
|
10100 |
return isSetPe();
|
|
|
10101 |
}
|
|
|
10102 |
throw new IllegalStateException();
|
|
|
10103 |
}
|
|
|
10104 |
|
|
|
10105 |
public boolean isSet(int fieldID) {
|
|
|
10106 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
10107 |
}
|
|
|
10108 |
|
|
|
10109 |
@Override
|
|
|
10110 |
public boolean equals(Object that) {
|
|
|
10111 |
if (that == null)
|
|
|
10112 |
return false;
|
|
|
10113 |
if (that instanceof initializeHdfcPayment_result)
|
|
|
10114 |
return this.equals((initializeHdfcPayment_result)that);
|
|
|
10115 |
return false;
|
|
|
10116 |
}
|
|
|
10117 |
|
|
|
10118 |
public boolean equals(initializeHdfcPayment_result that) {
|
|
|
10119 |
if (that == null)
|
|
|
10120 |
return false;
|
|
|
10121 |
|
|
|
10122 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10123 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
10124 |
if (this_present_success || that_present_success) {
|
|
|
10125 |
if (!(this_present_success && that_present_success))
|
|
|
10126 |
return false;
|
|
|
10127 |
if (!this.success.equals(that.success))
|
|
|
10128 |
return false;
|
|
|
10129 |
}
|
|
|
10130 |
|
|
|
10131 |
boolean this_present_pe = true && this.isSetPe();
|
|
|
10132 |
boolean that_present_pe = true && that.isSetPe();
|
|
|
10133 |
if (this_present_pe || that_present_pe) {
|
|
|
10134 |
if (!(this_present_pe && that_present_pe))
|
|
|
10135 |
return false;
|
|
|
10136 |
if (!this.pe.equals(that.pe))
|
|
|
10137 |
return false;
|
|
|
10138 |
}
|
|
|
10139 |
|
|
|
10140 |
return true;
|
|
|
10141 |
}
|
|
|
10142 |
|
|
|
10143 |
@Override
|
|
|
10144 |
public int hashCode() {
|
|
|
10145 |
return 0;
|
|
|
10146 |
}
|
|
|
10147 |
|
|
|
10148 |
public int compareTo(initializeHdfcPayment_result other) {
|
|
|
10149 |
if (!getClass().equals(other.getClass())) {
|
|
|
10150 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10151 |
}
|
|
|
10152 |
|
|
|
10153 |
int lastComparison = 0;
|
|
|
10154 |
initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
|
|
|
10155 |
|
|
|
10156 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
|
|
|
10157 |
if (lastComparison != 0) {
|
|
|
10158 |
return lastComparison;
|
|
|
10159 |
}
|
|
|
10160 |
lastComparison = TBaseHelper.compareTo(success, typedOther.success);
|
|
|
10161 |
if (lastComparison != 0) {
|
|
|
10162 |
return lastComparison;
|
|
|
10163 |
}
|
|
|
10164 |
lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
|
|
|
10165 |
if (lastComparison != 0) {
|
|
|
10166 |
return lastComparison;
|
|
|
10167 |
}
|
|
|
10168 |
lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
|
|
|
10169 |
if (lastComparison != 0) {
|
|
|
10170 |
return lastComparison;
|
|
|
10171 |
}
|
|
|
10172 |
return 0;
|
|
|
10173 |
}
|
|
|
10174 |
|
|
|
10175 |
public void read(TProtocol iprot) throws TException {
|
|
|
10176 |
TField field;
|
|
|
10177 |
iprot.readStructBegin();
|
|
|
10178 |
while (true)
|
|
|
10179 |
{
|
|
|
10180 |
field = iprot.readFieldBegin();
|
|
|
10181 |
if (field.type == TType.STOP) {
|
|
|
10182 |
break;
|
|
|
10183 |
}
|
|
|
10184 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
10185 |
if (fieldId == null) {
|
|
|
10186 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
10187 |
} else {
|
|
|
10188 |
switch (fieldId) {
|
|
|
10189 |
case SUCCESS:
|
|
|
10190 |
if (field.type == TType.STRING) {
|
|
|
10191 |
this.success = iprot.readString();
|
|
|
10192 |
} else {
|
|
|
10193 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
10194 |
}
|
|
|
10195 |
break;
|
|
|
10196 |
case PE:
|
|
|
10197 |
if (field.type == TType.STRUCT) {
|
|
|
10198 |
this.pe = new PaymentException();
|
|
|
10199 |
this.pe.read(iprot);
|
|
|
10200 |
} else {
|
|
|
10201 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
10202 |
}
|
|
|
10203 |
break;
|
|
|
10204 |
}
|
|
|
10205 |
iprot.readFieldEnd();
|
|
|
10206 |
}
|
|
|
10207 |
}
|
|
|
10208 |
iprot.readStructEnd();
|
|
|
10209 |
validate();
|
|
|
10210 |
}
|
|
|
10211 |
|
|
|
10212 |
public void write(TProtocol oprot) throws TException {
|
|
|
10213 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10214 |
|
|
|
10215 |
if (this.isSetSuccess()) {
|
|
|
10216 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
10217 |
oprot.writeString(this.success);
|
|
|
10218 |
oprot.writeFieldEnd();
|
|
|
10219 |
} else if (this.isSetPe()) {
|
|
|
10220 |
oprot.writeFieldBegin(PE_FIELD_DESC);
|
|
|
10221 |
this.pe.write(oprot);
|
|
|
10222 |
oprot.writeFieldEnd();
|
|
|
10223 |
}
|
|
|
10224 |
oprot.writeFieldStop();
|
|
|
10225 |
oprot.writeStructEnd();
|
|
|
10226 |
}
|
|
|
10227 |
|
|
|
10228 |
@Override
|
|
|
10229 |
public String toString() {
|
|
|
10230 |
StringBuilder sb = new StringBuilder("initializeHdfcPayment_result(");
|
|
|
10231 |
boolean first = true;
|
|
|
10232 |
|
|
|
10233 |
sb.append("success:");
|
|
|
10234 |
if (this.success == null) {
|
|
|
10235 |
sb.append("null");
|
|
|
10236 |
} else {
|
|
|
10237 |
sb.append(this.success);
|
|
|
10238 |
}
|
|
|
10239 |
first = false;
|
|
|
10240 |
if (!first) sb.append(", ");
|
|
|
10241 |
sb.append("pe:");
|
|
|
10242 |
if (this.pe == null) {
|
|
|
10243 |
sb.append("null");
|
|
|
10244 |
} else {
|
|
|
10245 |
sb.append(this.pe);
|
|
|
10246 |
}
|
|
|
10247 |
first = false;
|
|
|
10248 |
sb.append(")");
|
|
|
10249 |
return sb.toString();
|
|
|
10250 |
}
|
|
|
10251 |
|
|
|
10252 |
public void validate() throws TException {
|
|
|
10253 |
// check for required fields
|
|
|
10254 |
}
|
|
|
10255 |
|
|
|
10256 |
}
|
|
|
10257 |
|
| 123 |
ashish |
10258 |
}
|