Subversion Repositories SmartDukaan

Rev

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

Rev 3376 Rev 3431
Line 1... Line 1...
1
#
1
#
2
# Autogenerated by Thrift
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
5
#
6
 
6
 
7
from thrift.Thrift import *
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
9
from ttypes import *
10
from thrift.Thrift import TProcessor
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
13
try:
14
  from thrift.protocol import fastbinary
14
  from thrift.protocol import fastbinary
15
except:
15
except:
16
  fastbinary = None
16
  fastbinary = None
17
 
17
 
18
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def createPayment(self, userId, amount, gatewayId, txnId):
20
  def createPayment(self, userId, amount, gatewayId, txnId):
21
    """
21
    """
22
    create a new payment and return payment id, throws an exception if gateway is not active
22
    create a new payment and return payment id, throws an exception if gateway is not active
23
    
23
 
24
    
24
 
25
    Parameters:
25
    Parameters:
26
     - userId
26
     - userId
27
     - amount
27
     - amount
28
     - gatewayId
28
     - gatewayId
29
     - txnId
29
     - txnId
Line 31... Line 31...
31
    pass
31
    pass
32
 
32
 
33
  def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
33
  def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
34
    """
34
    """
35
    get payment for user. If status and gateway are null, it is ignored. Same for times as well.
35
    get payment for user. If status and gateway are null, it is ignored. Same for times as well.
36
    
36
 
37
    
37
 
38
    Parameters:
38
    Parameters:
39
     - userId
39
     - userId
40
     - fromTime
40
     - fromTime
41
     - toTime
41
     - toTime
42
     - status
42
     - status
Line 45... Line 45...
45
    pass
45
    pass
46
 
46
 
47
  def getPayments(self, fromTime, toTime, status, gatewayId):
47
  def getPayments(self, fromTime, toTime, status, gatewayId):
48
    """
48
    """
49
    get all payments for user. If gatewayId is 0, then it is ignored while filtering.
49
    get all payments for user. If gatewayId is 0, then it is ignored while filtering.
50
    
50
 
51
    
51
 
52
    Parameters:
52
    Parameters:
53
     - fromTime
53
     - fromTime
54
     - toTime
54
     - toTime
55
     - status
55
     - status
56
     - gatewayId
56
     - gatewayId
Line 58... Line 58...
58
    pass
58
    pass
59
 
59
 
60
  def getPaymentGateway(self, id):
60
  def getPaymentGateway(self, id):
61
    """
61
    """
62
    Get a particular gateway
62
    Get a particular gateway
63
    
63
 
64
    
64
 
65
    Parameters:
65
    Parameters:
66
     - id
66
     - id
67
    """
67
    """
68
    pass
68
    pass
69
 
69
 
70
  def getPayment(self, id):
70
  def getPayment(self, id):
71
    """
71
    """
72
    Get a particular payment info
72
    Get a particular payment info
73
    
73
 
74
    
74
 
75
    Parameters:
75
    Parameters:
76
     - id
76
     - id
77
    """
77
    """
78
    pass
78
    pass
79
 
79
 
80
  def getPaymentForTxnId(self, txnId):
80
  def getPaymentForTxnId(self, txnId):
81
    """
81
    """
82
    Get a particular payment for a transaction. Will raise exception.
82
    Get a particular payment for a transaction. Will raise exception.
83
    
83
 
84
    
84
 
85
    Parameters:
85
    Parameters:
86
     - txnId
86
     - txnId
87
    """
87
    """
88
    pass
88
    pass
89
 
89
 
90
  def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
90
  def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
91
    """
91
    """
92
    mark payment successful and store parameters
92
    mark payment successful and store parameters
93
    
93
 
94
    
94
 
95
    Parameters:
95
    Parameters:
96
     - id
96
     - id
97
     - gatewayPaymentId
97
     - gatewayPaymentId
98
     - sessionId
98
     - sessionId
99
     - gatewayTxnStatus
99
     - gatewayTxnStatus
Line 116... Line 116...
116
    pass
116
    pass
117
 
117
 
118
  def captureEbsPayment(self, merchantPaymentId):
118
  def captureEbsPayment(self, merchantPaymentId):
119
    """
119
    """
120
    Captures an already authorized EBS Payment and returns a map containing the details of the captured transaction
120
    Captures an already authorized EBS Payment and returns a map containing the details of the captured transaction
121
    
121
 
122
    Parameters:
122
    Parameters:
123
     - merchantPaymentId
123
     - merchantPaymentId
124
    """
124
    """
125
    pass
125
    pass
126
 
126
 
127
  def captureHdfcPayment(self, merchantPaymentId):
127
  def captureHdfcPayment(self, merchantPaymentId):
128
    """
128
    """
129
    Captures an already authorized Hdfc Payment and returns a map containing the details of the captured transaction
129
    Captures an already authorized Hdfc Payment and returns a map containing the details of the captured transaction
130
    
130
 
131
    Parameters:
131
    Parameters:
132
     - merchantPaymentId
132
     - merchantPaymentId
133
    """
133
    """
134
    pass
134
    pass
135
 
135
 
136
  def initializeHdfcPayment(self, merchantPaymentId):
136
  def initializeHdfcPayment(self, merchantPaymentId):
137
    """
137
    """
138
    Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
138
    Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
139
    In case of any processing error, an exception is raised.
139
    In case of any processing error, an exception is raised.
140
    
140
 
141
    Parameters:
141
    Parameters:
142
     - merchantPaymentId
142
     - merchantPaymentId
143
    """
143
    """
144
    pass
144
    pass
145
 
145
 
146
  def createRefund(self, orderId, merchantTxnId, amount):
146
  def createRefund(self, orderId, merchantTxnId, amount):
147
    """
147
    """
148
    Create a refund of the given amount corresponding to the given order to be processed through the same
148
    Create a refund of the given amount corresponding to the given order to be processed through the same
149
    payment gateway which processed the payment for the corresponding transaction.
149
    payment gateway which processed the payment for the corresponding transaction.
150
    Returns the id of the newly created Refund.
150
    Returns the id of the newly created Refund.
151
    
151
 
152
    Parameters:
152
    Parameters:
153
     - orderId
153
     - orderId
154
     - merchantTxnId
154
     - merchantTxnId
155
     - amount
155
     - amount
156
    """
156
    """
Line 158... Line 158...
158
 
158
 
159
  def capturePayment(self, merchantTxnId):
159
  def capturePayment(self, merchantTxnId):
160
    """
160
    """
161
    Capture the payment for the given merchant transaction id. It processes the last payment for the given
161
    Capture the payment for the given merchant transaction id. It processes the last payment for the given
162
    transaction. If the capture attempt failed, the payment is marked as failed.
162
    transaction. If the capture attempt failed, the payment is marked as failed.
163
    
163
 
164
    Parameters:
164
    Parameters:
165
     - merchantTxnId
165
     - merchantTxnId
166
    """
166
    """
167
    pass
167
    pass
168
 
168
 
Line 172... Line 172...
172
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
172
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
173
 
173
 
174
  def createPayment(self, userId, amount, gatewayId, txnId):
174
  def createPayment(self, userId, amount, gatewayId, txnId):
175
    """
175
    """
176
    create a new payment and return payment id, throws an exception if gateway is not active
176
    create a new payment and return payment id, throws an exception if gateway is not active
177
    
177
 
178
    
178
 
179
    Parameters:
179
    Parameters:
180
     - userId
180
     - userId
181
     - amount
181
     - amount
182
     - gatewayId
182
     - gatewayId
183
     - txnId
183
     - txnId
Line 204... Line 204...
204
      self._iprot.readMessageEnd()
204
      self._iprot.readMessageEnd()
205
      raise x
205
      raise x
206
    result = createPayment_result()
206
    result = createPayment_result()
207
    result.read(self._iprot)
207
    result.read(self._iprot)
208
    self._iprot.readMessageEnd()
208
    self._iprot.readMessageEnd()
209
    if result.success != None:
209
    if result.success is not None:
210
      return result.success
210
      return result.success
211
    if result.pe != None:
211
    if result.pe is not None:
212
      raise result.pe
212
      raise result.pe
213
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
213
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
214
 
214
 
215
  def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
215
  def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
216
    """
216
    """
217
    get payment for user. If status and gateway are null, it is ignored. Same for times as well.
217
    get payment for user. If status and gateway are null, it is ignored. Same for times as well.
218
    
218
 
219
    
219
 
220
    Parameters:
220
    Parameters:
221
     - userId
221
     - userId
222
     - fromTime
222
     - fromTime
223
     - toTime
223
     - toTime
224
     - status
224
     - status
Line 247... Line 247...
247
      self._iprot.readMessageEnd()
247
      self._iprot.readMessageEnd()
248
      raise x
248
      raise x
249
    result = getPaymentsForUser_result()
249
    result = getPaymentsForUser_result()
250
    result.read(self._iprot)
250
    result.read(self._iprot)
251
    self._iprot.readMessageEnd()
251
    self._iprot.readMessageEnd()
252
    if result.success != None:
252
    if result.success is not None:
253
      return result.success
253
      return result.success
254
    if result.pe != None:
254
    if result.pe is not None:
255
      raise result.pe
255
      raise result.pe
256
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
256
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
257
 
257
 
258
  def getPayments(self, fromTime, toTime, status, gatewayId):
258
  def getPayments(self, fromTime, toTime, status, gatewayId):
259
    """
259
    """
260
    get all payments for user. If gatewayId is 0, then it is ignored while filtering.
260
    get all payments for user. If gatewayId is 0, then it is ignored while filtering.
261
    
261
 
262
    
262
 
263
    Parameters:
263
    Parameters:
264
     - fromTime
264
     - fromTime
265
     - toTime
265
     - toTime
266
     - status
266
     - status
267
     - gatewayId
267
     - gatewayId
Line 288... Line 288...
288
      self._iprot.readMessageEnd()
288
      self._iprot.readMessageEnd()
289
      raise x
289
      raise x
290
    result = getPayments_result()
290
    result = getPayments_result()
291
    result.read(self._iprot)
291
    result.read(self._iprot)
292
    self._iprot.readMessageEnd()
292
    self._iprot.readMessageEnd()
293
    if result.success != None:
293
    if result.success is not None:
294
      return result.success
294
      return result.success
295
    if result.pe != None:
295
    if result.pe is not None:
296
      raise result.pe
296
      raise result.pe
297
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
297
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
298
 
298
 
299
  def getPaymentGateway(self, id):
299
  def getPaymentGateway(self, id):
300
    """
300
    """
301
    Get a particular gateway
301
    Get a particular gateway
302
    
302
 
303
    
303
 
304
    Parameters:
304
    Parameters:
305
     - id
305
     - id
306
    """
306
    """
307
    self.send_getPaymentGateway(id)
307
    self.send_getPaymentGateway(id)
308
    return self.recv_getPaymentGateway()
308
    return self.recv_getPaymentGateway()
Line 323... Line 323...
323
      self._iprot.readMessageEnd()
323
      self._iprot.readMessageEnd()
324
      raise x
324
      raise x
325
    result = getPaymentGateway_result()
325
    result = getPaymentGateway_result()
326
    result.read(self._iprot)
326
    result.read(self._iprot)
327
    self._iprot.readMessageEnd()
327
    self._iprot.readMessageEnd()
328
    if result.success != None:
328
    if result.success is not None:
329
      return result.success
329
      return result.success
330
    if result.pe != None:
330
    if result.pe is not None:
331
      raise result.pe
331
      raise result.pe
332
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
332
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
333
 
333
 
334
  def getPayment(self, id):
334
  def getPayment(self, id):
335
    """
335
    """
336
    Get a particular payment info
336
    Get a particular payment info
337
    
337
 
338
    
338
 
339
    Parameters:
339
    Parameters:
340
     - id
340
     - id
341
    """
341
    """
342
    self.send_getPayment(id)
342
    self.send_getPayment(id)
343
    return self.recv_getPayment()
343
    return self.recv_getPayment()
Line 358... Line 358...
358
      self._iprot.readMessageEnd()
358
      self._iprot.readMessageEnd()
359
      raise x
359
      raise x
360
    result = getPayment_result()
360
    result = getPayment_result()
361
    result.read(self._iprot)
361
    result.read(self._iprot)
362
    self._iprot.readMessageEnd()
362
    self._iprot.readMessageEnd()
363
    if result.success != None:
363
    if result.success is not None:
364
      return result.success
364
      return result.success
365
    if result.pe != None:
365
    if result.pe is not None:
366
      raise result.pe
366
      raise result.pe
367
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
367
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
368
 
368
 
369
  def getPaymentForTxnId(self, txnId):
369
  def getPaymentForTxnId(self, txnId):
370
    """
370
    """
371
    Get a particular payment for a transaction. Will raise exception.
371
    Get a particular payment for a transaction. Will raise exception.
372
    
372
 
373
    
373
 
374
    Parameters:
374
    Parameters:
375
     - txnId
375
     - txnId
376
    """
376
    """
377
    self.send_getPaymentForTxnId(txnId)
377
    self.send_getPaymentForTxnId(txnId)
378
    return self.recv_getPaymentForTxnId()
378
    return self.recv_getPaymentForTxnId()
Line 393... Line 393...
393
      self._iprot.readMessageEnd()
393
      self._iprot.readMessageEnd()
394
      raise x
394
      raise x
395
    result = getPaymentForTxnId_result()
395
    result = getPaymentForTxnId_result()
396
    result.read(self._iprot)
396
    result.read(self._iprot)
397
    self._iprot.readMessageEnd()
397
    self._iprot.readMessageEnd()
398
    if result.success != None:
398
    if result.success is not None:
399
      return result.success
399
      return result.success
400
    if result.pe != None:
400
    if result.pe is not None:
401
      raise result.pe
401
      raise result.pe
402
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
402
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
403
 
403
 
404
  def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
404
  def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes):
405
    """
405
    """
406
    mark payment successful and store parameters
406
    mark payment successful and store parameters
407
    
407
 
408
    
408
 
409
    Parameters:
409
    Parameters:
410
     - id
410
     - id
411
     - gatewayPaymentId
411
     - gatewayPaymentId
412
     - sessionId
412
     - sessionId
413
     - gatewayTxnStatus
413
     - gatewayTxnStatus
Line 450... Line 450...
450
      self._iprot.readMessageEnd()
450
      self._iprot.readMessageEnd()
451
      raise x
451
      raise x
452
    result = updatePaymentDetails_result()
452
    result = updatePaymentDetails_result()
453
    result.read(self._iprot)
453
    result.read(self._iprot)
454
    self._iprot.readMessageEnd()
454
    self._iprot.readMessageEnd()
455
    if result.success != None:
455
    if result.success is not None:
456
      return result.success
456
      return result.success
457
    if result.pe != None:
457
    if result.pe is not None:
458
      raise result.pe
458
      raise result.pe
459
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
459
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
460
 
460
 
461
  def getSuccessfulPaymentsAmountRange(self, ):
461
  def getSuccessfulPaymentsAmountRange(self, ):
462
    """
462
    """
Line 481... Line 481...
481
      self._iprot.readMessageEnd()
481
      self._iprot.readMessageEnd()
482
      raise x
482
      raise x
483
    result = getSuccessfulPaymentsAmountRange_result()
483
    result = getSuccessfulPaymentsAmountRange_result()
484
    result.read(self._iprot)
484
    result.read(self._iprot)
485
    self._iprot.readMessageEnd()
485
    self._iprot.readMessageEnd()
486
    if result.success != None:
486
    if result.success is not None:
487
      return result.success
487
      return result.success
488
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
488
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
489
 
489
 
490
  def captureEbsPayment(self, merchantPaymentId):
490
  def captureEbsPayment(self, merchantPaymentId):
491
    """
491
    """
492
    Captures an already authorized EBS Payment and returns a map containing the details of the captured transaction
492
    Captures an already authorized EBS Payment and returns a map containing the details of the captured transaction
493
    
493
 
494
    Parameters:
494
    Parameters:
495
     - merchantPaymentId
495
     - merchantPaymentId
496
    """
496
    """
497
    self.send_captureEbsPayment(merchantPaymentId)
497
    self.send_captureEbsPayment(merchantPaymentId)
498
    return self.recv_captureEbsPayment()
498
    return self.recv_captureEbsPayment()
Line 513... Line 513...
513
      self._iprot.readMessageEnd()
513
      self._iprot.readMessageEnd()
514
      raise x
514
      raise x
515
    result = captureEbsPayment_result()
515
    result = captureEbsPayment_result()
516
    result.read(self._iprot)
516
    result.read(self._iprot)
517
    self._iprot.readMessageEnd()
517
    self._iprot.readMessageEnd()
518
    if result.success != None:
518
    if result.success is not None:
519
      return result.success
519
      return result.success
520
    if result.pe != None:
520
    if result.pe is not None:
521
      raise result.pe
521
      raise result.pe
522
    raise TApplicationException(TApplicationException.MISSING_RESULT, "captureEbsPayment failed: unknown result");
522
    raise TApplicationException(TApplicationException.MISSING_RESULT, "captureEbsPayment failed: unknown result");
523
 
523
 
524
  def captureHdfcPayment(self, merchantPaymentId):
524
  def captureHdfcPayment(self, merchantPaymentId):
525
    """
525
    """
526
    Captures an already authorized Hdfc Payment and returns a map containing the details of the captured transaction
526
    Captures an already authorized Hdfc Payment and returns a map containing the details of the captured transaction
527
    
527
 
528
    Parameters:
528
    Parameters:
529
     - merchantPaymentId
529
     - merchantPaymentId
530
    """
530
    """
531
    self.send_captureHdfcPayment(merchantPaymentId)
531
    self.send_captureHdfcPayment(merchantPaymentId)
532
    return self.recv_captureHdfcPayment()
532
    return self.recv_captureHdfcPayment()
Line 547... Line 547...
547
      self._iprot.readMessageEnd()
547
      self._iprot.readMessageEnd()
548
      raise x
548
      raise x
549
    result = captureHdfcPayment_result()
549
    result = captureHdfcPayment_result()
550
    result.read(self._iprot)
550
    result.read(self._iprot)
551
    self._iprot.readMessageEnd()
551
    self._iprot.readMessageEnd()
552
    if result.success != None:
552
    if result.success is not None:
553
      return result.success
553
      return result.success
554
    if result.pe != None:
554
    if result.pe is not None:
555
      raise result.pe
555
      raise result.pe
556
    raise TApplicationException(TApplicationException.MISSING_RESULT, "captureHdfcPayment failed: unknown result");
556
    raise TApplicationException(TApplicationException.MISSING_RESULT, "captureHdfcPayment failed: unknown result");
557
 
557
 
558
  def initializeHdfcPayment(self, merchantPaymentId):
558
  def initializeHdfcPayment(self, merchantPaymentId):
559
    """
559
    """
560
    Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
560
    Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
561
    In case of any processing error, an exception is raised.
561
    In case of any processing error, an exception is raised.
562
    
562
 
563
    Parameters:
563
    Parameters:
564
     - merchantPaymentId
564
     - merchantPaymentId
565
    """
565
    """
566
    self.send_initializeHdfcPayment(merchantPaymentId)
566
    self.send_initializeHdfcPayment(merchantPaymentId)
567
    return self.recv_initializeHdfcPayment()
567
    return self.recv_initializeHdfcPayment()
Line 582... Line 582...
582
      self._iprot.readMessageEnd()
582
      self._iprot.readMessageEnd()
583
      raise x
583
      raise x
584
    result = initializeHdfcPayment_result()
584
    result = initializeHdfcPayment_result()
585
    result.read(self._iprot)
585
    result.read(self._iprot)
586
    self._iprot.readMessageEnd()
586
    self._iprot.readMessageEnd()
587
    if result.success != None:
587
    if result.success is not None:
588
      return result.success
588
      return result.success
589
    if result.pe != None:
589
    if result.pe is not None:
590
      raise result.pe
590
      raise result.pe
591
    raise TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
591
    raise TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
592
 
592
 
593
  def createRefund(self, orderId, merchantTxnId, amount):
593
  def createRefund(self, orderId, merchantTxnId, amount):
594
    """
594
    """
595
    Create a refund of the given amount corresponding to the given order to be processed through the same
595
    Create a refund of the given amount corresponding to the given order to be processed through the same
596
    payment gateway which processed the payment for the corresponding transaction.
596
    payment gateway which processed the payment for the corresponding transaction.
597
    Returns the id of the newly created Refund.
597
    Returns the id of the newly created Refund.
598
    
598
 
599
    Parameters:
599
    Parameters:
600
     - orderId
600
     - orderId
601
     - merchantTxnId
601
     - merchantTxnId
602
     - amount
602
     - amount
603
    """
603
    """
Line 622... Line 622...
622
      self._iprot.readMessageEnd()
622
      self._iprot.readMessageEnd()
623
      raise x
623
      raise x
624
    result = createRefund_result()
624
    result = createRefund_result()
625
    result.read(self._iprot)
625
    result.read(self._iprot)
626
    self._iprot.readMessageEnd()
626
    self._iprot.readMessageEnd()
627
    if result.success != None:
627
    if result.success is not None:
628
      return result.success
628
      return result.success
629
    if result.pe != None:
629
    if result.pe is not None:
630
      raise result.pe
630
      raise result.pe
631
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
631
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
632
 
632
 
633
  def capturePayment(self, merchantTxnId):
633
  def capturePayment(self, merchantTxnId):
634
    """
634
    """
635
    Capture the payment for the given merchant transaction id. It processes the last payment for the given
635
    Capture the payment for the given merchant transaction id. It processes the last payment for the given
636
    transaction. If the capture attempt failed, the payment is marked as failed.
636
    transaction. If the capture attempt failed, the payment is marked as failed.
637
    
637
 
638
    Parameters:
638
    Parameters:
639
     - merchantTxnId
639
     - merchantTxnId
640
    """
640
    """
641
    self.send_capturePayment(merchantTxnId)
641
    self.send_capturePayment(merchantTxnId)
642
    return self.recv_capturePayment()
642
    return self.recv_capturePayment()
Line 657... Line 657...
657
      self._iprot.readMessageEnd()
657
      self._iprot.readMessageEnd()
658
      raise x
658
      raise x
659
    result = capturePayment_result()
659
    result = capturePayment_result()
660
    result.read(self._iprot)
660
    result.read(self._iprot)
661
    self._iprot.readMessageEnd()
661
    self._iprot.readMessageEnd()
662
    if result.success != None:
662
    if result.success is not None:
663
      return result.success
663
      return result.success
664
    if result.pe != None:
664
    if result.pe is not None:
665
      raise result.pe
665
      raise result.pe
666
    raise TApplicationException(TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
666
    raise TApplicationException(TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
667
 
667
 
668
 
668
 
669
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
669
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
Line 940... Line 940...
940
  def write(self, oprot):
940
  def write(self, oprot):
941
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
941
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
942
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
942
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
943
      return
943
      return
944
    oprot.writeStructBegin('createPayment_args')
944
    oprot.writeStructBegin('createPayment_args')
945
    if self.userId != None:
945
    if self.userId is not None:
946
      oprot.writeFieldBegin('userId', TType.I64, 1)
946
      oprot.writeFieldBegin('userId', TType.I64, 1)
947
      oprot.writeI64(self.userId)
947
      oprot.writeI64(self.userId)
948
      oprot.writeFieldEnd()
948
      oprot.writeFieldEnd()
949
    if self.amount != None:
949
    if self.amount is not None:
950
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
950
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
951
      oprot.writeDouble(self.amount)
951
      oprot.writeDouble(self.amount)
952
      oprot.writeFieldEnd()
952
      oprot.writeFieldEnd()
953
    if self.gatewayId != None:
953
    if self.gatewayId is not None:
954
      oprot.writeFieldBegin('gatewayId', TType.I64, 3)
954
      oprot.writeFieldBegin('gatewayId', TType.I64, 3)
955
      oprot.writeI64(self.gatewayId)
955
      oprot.writeI64(self.gatewayId)
956
      oprot.writeFieldEnd()
956
      oprot.writeFieldEnd()
957
    if self.txnId != None:
957
    if self.txnId is not None:
958
      oprot.writeFieldBegin('txnId', TType.I64, 4)
958
      oprot.writeFieldBegin('txnId', TType.I64, 4)
959
      oprot.writeI64(self.txnId)
959
      oprot.writeI64(self.txnId)
960
      oprot.writeFieldEnd()
960
      oprot.writeFieldEnd()
961
    oprot.writeFieldStop()
961
    oprot.writeFieldStop()
962
    oprot.writeStructEnd()
962
    oprot.writeStructEnd()
963
 
963
 
-
 
964
  def validate(self):
-
 
965
    return
-
 
966
 
-
 
967
 
964
  def __repr__(self):
968
  def __repr__(self):
965
    L = ['%s=%r' % (key, value)
969
    L = ['%s=%r' % (key, value)
966
      for key, value in self.__dict__.iteritems()]
970
      for key, value in self.__dict__.iteritems()]
967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
968
 
972
 
Line 1016... Line 1020...
1016
  def write(self, oprot):
1020
  def write(self, oprot):
1017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1019
      return
1023
      return
1020
    oprot.writeStructBegin('createPayment_result')
1024
    oprot.writeStructBegin('createPayment_result')
1021
    if self.success != None:
1025
    if self.success is not None:
1022
      oprot.writeFieldBegin('success', TType.I64, 0)
1026
      oprot.writeFieldBegin('success', TType.I64, 0)
1023
      oprot.writeI64(self.success)
1027
      oprot.writeI64(self.success)
1024
      oprot.writeFieldEnd()
1028
      oprot.writeFieldEnd()
1025
    if self.pe != None:
1029
    if self.pe is not None:
1026
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1030
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1027
      self.pe.write(oprot)
1031
      self.pe.write(oprot)
1028
      oprot.writeFieldEnd()
1032
      oprot.writeFieldEnd()
1029
    oprot.writeFieldStop()
1033
    oprot.writeFieldStop()
1030
    oprot.writeStructEnd()
1034
    oprot.writeStructEnd()
1031
 
1035
 
-
 
1036
  def validate(self):
-
 
1037
    return
-
 
1038
 
-
 
1039
 
1032
  def __repr__(self):
1040
  def __repr__(self):
1033
    L = ['%s=%r' % (key, value)
1041
    L = ['%s=%r' % (key, value)
1034
      for key, value in self.__dict__.iteritems()]
1042
      for key, value in self.__dict__.iteritems()]
1035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1036
 
1044
 
Line 1108... Line 1116...
1108
  def write(self, oprot):
1116
  def write(self, oprot):
1109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1111
      return
1119
      return
1112
    oprot.writeStructBegin('getPaymentsForUser_args')
1120
    oprot.writeStructBegin('getPaymentsForUser_args')
1113
    if self.userId != None:
1121
    if self.userId is not None:
1114
      oprot.writeFieldBegin('userId', TType.I64, 1)
1122
      oprot.writeFieldBegin('userId', TType.I64, 1)
1115
      oprot.writeI64(self.userId)
1123
      oprot.writeI64(self.userId)
1116
      oprot.writeFieldEnd()
1124
      oprot.writeFieldEnd()
1117
    if self.fromTime != None:
1125
    if self.fromTime is not None:
1118
      oprot.writeFieldBegin('fromTime', TType.I64, 2)
1126
      oprot.writeFieldBegin('fromTime', TType.I64, 2)
1119
      oprot.writeI64(self.fromTime)
1127
      oprot.writeI64(self.fromTime)
1120
      oprot.writeFieldEnd()
1128
      oprot.writeFieldEnd()
1121
    if self.toTime != None:
1129
    if self.toTime is not None:
1122
      oprot.writeFieldBegin('toTime', TType.I64, 3)
1130
      oprot.writeFieldBegin('toTime', TType.I64, 3)
1123
      oprot.writeI64(self.toTime)
1131
      oprot.writeI64(self.toTime)
1124
      oprot.writeFieldEnd()
1132
      oprot.writeFieldEnd()
1125
    if self.status != None:
1133
    if self.status is not None:
1126
      oprot.writeFieldBegin('status', TType.I32, 4)
1134
      oprot.writeFieldBegin('status', TType.I32, 4)
1127
      oprot.writeI32(self.status)
1135
      oprot.writeI32(self.status)
1128
      oprot.writeFieldEnd()
1136
      oprot.writeFieldEnd()
1129
    if self.gatewayId != None:
1137
    if self.gatewayId is not None:
1130
      oprot.writeFieldBegin('gatewayId', TType.I64, 5)
1138
      oprot.writeFieldBegin('gatewayId', TType.I64, 5)
1131
      oprot.writeI64(self.gatewayId)
1139
      oprot.writeI64(self.gatewayId)
1132
      oprot.writeFieldEnd()
1140
      oprot.writeFieldEnd()
1133
    oprot.writeFieldStop()
1141
    oprot.writeFieldStop()
1134
    oprot.writeStructEnd()
1142
    oprot.writeStructEnd()
1135
 
1143
 
-
 
1144
  def validate(self):
-
 
1145
    return
-
 
1146
 
-
 
1147
 
1136
  def __repr__(self):
1148
  def __repr__(self):
1137
    L = ['%s=%r' % (key, value)
1149
    L = ['%s=%r' % (key, value)
1138
      for key, value in self.__dict__.iteritems()]
1150
      for key, value in self.__dict__.iteritems()]
1139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1151
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1140
 
1152
 
Line 1194... Line 1206...
1194
  def write(self, oprot):
1206
  def write(self, oprot):
1195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1207
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1208
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1197
      return
1209
      return
1198
    oprot.writeStructBegin('getPaymentsForUser_result')
1210
    oprot.writeStructBegin('getPaymentsForUser_result')
1199
    if self.success != None:
1211
    if self.success is not None:
1200
      oprot.writeFieldBegin('success', TType.LIST, 0)
1212
      oprot.writeFieldBegin('success', TType.LIST, 0)
1201
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1213
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1202
      for iter27 in self.success:
1214
      for iter27 in self.success:
1203
        iter27.write(oprot)
1215
        iter27.write(oprot)
1204
      oprot.writeListEnd()
1216
      oprot.writeListEnd()
1205
      oprot.writeFieldEnd()
1217
      oprot.writeFieldEnd()
1206
    if self.pe != None:
1218
    if self.pe is not None:
1207
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1219
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1208
      self.pe.write(oprot)
1220
      self.pe.write(oprot)
1209
      oprot.writeFieldEnd()
1221
      oprot.writeFieldEnd()
1210
    oprot.writeFieldStop()
1222
    oprot.writeFieldStop()
1211
    oprot.writeStructEnd()
1223
    oprot.writeStructEnd()
1212
 
1224
 
-
 
1225
  def validate(self):
-
 
1226
    return
-
 
1227
 
-
 
1228
 
1213
  def __repr__(self):
1229
  def __repr__(self):
1214
    L = ['%s=%r' % (key, value)
1230
    L = ['%s=%r' % (key, value)
1215
      for key, value in self.__dict__.iteritems()]
1231
      for key, value in self.__dict__.iteritems()]
1216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1232
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1217
 
1233
 
Line 1281... Line 1297...
1281
  def write(self, oprot):
1297
  def write(self, oprot):
1282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1284
      return
1300
      return
1285
    oprot.writeStructBegin('getPayments_args')
1301
    oprot.writeStructBegin('getPayments_args')
1286
    if self.fromTime != None:
1302
    if self.fromTime is not None:
1287
      oprot.writeFieldBegin('fromTime', TType.I64, 1)
1303
      oprot.writeFieldBegin('fromTime', TType.I64, 1)
1288
      oprot.writeI64(self.fromTime)
1304
      oprot.writeI64(self.fromTime)
1289
      oprot.writeFieldEnd()
1305
      oprot.writeFieldEnd()
1290
    if self.toTime != None:
1306
    if self.toTime is not None:
1291
      oprot.writeFieldBegin('toTime', TType.I64, 2)
1307
      oprot.writeFieldBegin('toTime', TType.I64, 2)
1292
      oprot.writeI64(self.toTime)
1308
      oprot.writeI64(self.toTime)
1293
      oprot.writeFieldEnd()
1309
      oprot.writeFieldEnd()
1294
    if self.status != None:
1310
    if self.status is not None:
1295
      oprot.writeFieldBegin('status', TType.I32, 3)
1311
      oprot.writeFieldBegin('status', TType.I32, 3)
1296
      oprot.writeI32(self.status)
1312
      oprot.writeI32(self.status)
1297
      oprot.writeFieldEnd()
1313
      oprot.writeFieldEnd()
1298
    if self.gatewayId != None:
1314
    if self.gatewayId is not None:
1299
      oprot.writeFieldBegin('gatewayId', TType.I64, 4)
1315
      oprot.writeFieldBegin('gatewayId', TType.I64, 4)
1300
      oprot.writeI64(self.gatewayId)
1316
      oprot.writeI64(self.gatewayId)
1301
      oprot.writeFieldEnd()
1317
      oprot.writeFieldEnd()
1302
    oprot.writeFieldStop()
1318
    oprot.writeFieldStop()
1303
    oprot.writeStructEnd()
1319
    oprot.writeStructEnd()
1304
 
1320
 
-
 
1321
  def validate(self):
-
 
1322
    return
-
 
1323
 
-
 
1324
 
1305
  def __repr__(self):
1325
  def __repr__(self):
1306
    L = ['%s=%r' % (key, value)
1326
    L = ['%s=%r' % (key, value)
1307
      for key, value in self.__dict__.iteritems()]
1327
      for key, value in self.__dict__.iteritems()]
1308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1309
 
1329
 
Line 1363... Line 1383...
1363
  def write(self, oprot):
1383
  def write(self, oprot):
1364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1384
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1385
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1366
      return
1386
      return
1367
    oprot.writeStructBegin('getPayments_result')
1387
    oprot.writeStructBegin('getPayments_result')
1368
    if self.success != None:
1388
    if self.success is not None:
1369
      oprot.writeFieldBegin('success', TType.LIST, 0)
1389
      oprot.writeFieldBegin('success', TType.LIST, 0)
1370
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1390
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1371
      for iter34 in self.success:
1391
      for iter34 in self.success:
1372
        iter34.write(oprot)
1392
        iter34.write(oprot)
1373
      oprot.writeListEnd()
1393
      oprot.writeListEnd()
1374
      oprot.writeFieldEnd()
1394
      oprot.writeFieldEnd()
1375
    if self.pe != None:
1395
    if self.pe is not None:
1376
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1396
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1377
      self.pe.write(oprot)
1397
      self.pe.write(oprot)
1378
      oprot.writeFieldEnd()
1398
      oprot.writeFieldEnd()
1379
    oprot.writeFieldStop()
1399
    oprot.writeFieldStop()
1380
    oprot.writeStructEnd()
1400
    oprot.writeStructEnd()
1381
 
1401
 
-
 
1402
  def validate(self):
-
 
1403
    return
-
 
1404
 
-
 
1405
 
1382
  def __repr__(self):
1406
  def __repr__(self):
1383
    L = ['%s=%r' % (key, value)
1407
    L = ['%s=%r' % (key, value)
1384
      for key, value in self.__dict__.iteritems()]
1408
      for key, value in self.__dict__.iteritems()]
1385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1386
 
1410
 
Line 1426... Line 1450...
1426
  def write(self, oprot):
1450
  def write(self, oprot):
1427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1429
      return
1453
      return
1430
    oprot.writeStructBegin('getPaymentGateway_args')
1454
    oprot.writeStructBegin('getPaymentGateway_args')
1431
    if self.id != None:
1455
    if self.id is not None:
1432
      oprot.writeFieldBegin('id', TType.I64, 1)
1456
      oprot.writeFieldBegin('id', TType.I64, 1)
1433
      oprot.writeI64(self.id)
1457
      oprot.writeI64(self.id)
1434
      oprot.writeFieldEnd()
1458
      oprot.writeFieldEnd()
1435
    oprot.writeFieldStop()
1459
    oprot.writeFieldStop()
1436
    oprot.writeStructEnd()
1460
    oprot.writeStructEnd()
1437
 
1461
 
-
 
1462
  def validate(self):
-
 
1463
    return
-
 
1464
 
-
 
1465
 
1438
  def __repr__(self):
1466
  def __repr__(self):
1439
    L = ['%s=%r' % (key, value)
1467
    L = ['%s=%r' % (key, value)
1440
      for key, value in self.__dict__.iteritems()]
1468
      for key, value in self.__dict__.iteritems()]
1441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1442
 
1470
 
Line 1491... Line 1519...
1491
  def write(self, oprot):
1519
  def write(self, oprot):
1492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1520
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1521
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1494
      return
1522
      return
1495
    oprot.writeStructBegin('getPaymentGateway_result')
1523
    oprot.writeStructBegin('getPaymentGateway_result')
1496
    if self.success != None:
1524
    if self.success is not None:
1497
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1525
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1498
      self.success.write(oprot)
1526
      self.success.write(oprot)
1499
      oprot.writeFieldEnd()
1527
      oprot.writeFieldEnd()
1500
    if self.pe != None:
1528
    if self.pe is not None:
1501
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1529
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1502
      self.pe.write(oprot)
1530
      self.pe.write(oprot)
1503
      oprot.writeFieldEnd()
1531
      oprot.writeFieldEnd()
1504
    oprot.writeFieldStop()
1532
    oprot.writeFieldStop()
1505
    oprot.writeStructEnd()
1533
    oprot.writeStructEnd()
1506
 
1534
 
-
 
1535
  def validate(self):
-
 
1536
    return
-
 
1537
 
-
 
1538
 
1507
  def __repr__(self):
1539
  def __repr__(self):
1508
    L = ['%s=%r' % (key, value)
1540
    L = ['%s=%r' % (key, value)
1509
      for key, value in self.__dict__.iteritems()]
1541
      for key, value in self.__dict__.iteritems()]
1510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1542
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1511
 
1543
 
Line 1551... Line 1583...
1551
  def write(self, oprot):
1583
  def write(self, oprot):
1552
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1553
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1554
      return
1586
      return
1555
    oprot.writeStructBegin('getPayment_args')
1587
    oprot.writeStructBegin('getPayment_args')
1556
    if self.id != None:
1588
    if self.id is not None:
1557
      oprot.writeFieldBegin('id', TType.I64, 1)
1589
      oprot.writeFieldBegin('id', TType.I64, 1)
1558
      oprot.writeI64(self.id)
1590
      oprot.writeI64(self.id)
1559
      oprot.writeFieldEnd()
1591
      oprot.writeFieldEnd()
1560
    oprot.writeFieldStop()
1592
    oprot.writeFieldStop()
1561
    oprot.writeStructEnd()
1593
    oprot.writeStructEnd()
1562
 
1594
 
-
 
1595
  def validate(self):
-
 
1596
    return
-
 
1597
 
-
 
1598
 
1563
  def __repr__(self):
1599
  def __repr__(self):
1564
    L = ['%s=%r' % (key, value)
1600
    L = ['%s=%r' % (key, value)
1565
      for key, value in self.__dict__.iteritems()]
1601
      for key, value in self.__dict__.iteritems()]
1566
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1567
 
1603
 
Line 1616... Line 1652...
1616
  def write(self, oprot):
1652
  def write(self, oprot):
1617
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1618
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1619
      return
1655
      return
1620
    oprot.writeStructBegin('getPayment_result')
1656
    oprot.writeStructBegin('getPayment_result')
1621
    if self.success != None:
1657
    if self.success is not None:
1622
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1658
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1623
      self.success.write(oprot)
1659
      self.success.write(oprot)
1624
      oprot.writeFieldEnd()
1660
      oprot.writeFieldEnd()
1625
    if self.pe != None:
1661
    if self.pe is not None:
1626
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1662
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1627
      self.pe.write(oprot)
1663
      self.pe.write(oprot)
1628
      oprot.writeFieldEnd()
1664
      oprot.writeFieldEnd()
1629
    oprot.writeFieldStop()
1665
    oprot.writeFieldStop()
1630
    oprot.writeStructEnd()
1666
    oprot.writeStructEnd()
1631
 
1667
 
-
 
1668
  def validate(self):
-
 
1669
    return
-
 
1670
 
-
 
1671
 
1632
  def __repr__(self):
1672
  def __repr__(self):
1633
    L = ['%s=%r' % (key, value)
1673
    L = ['%s=%r' % (key, value)
1634
      for key, value in self.__dict__.iteritems()]
1674
      for key, value in self.__dict__.iteritems()]
1635
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1636
 
1676
 
Line 1676... Line 1716...
1676
  def write(self, oprot):
1716
  def write(self, oprot):
1677
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1678
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1679
      return
1719
      return
1680
    oprot.writeStructBegin('getPaymentForTxnId_args')
1720
    oprot.writeStructBegin('getPaymentForTxnId_args')
1681
    if self.txnId != None:
1721
    if self.txnId is not None:
1682
      oprot.writeFieldBegin('txnId', TType.I64, 1)
1722
      oprot.writeFieldBegin('txnId', TType.I64, 1)
1683
      oprot.writeI64(self.txnId)
1723
      oprot.writeI64(self.txnId)
1684
      oprot.writeFieldEnd()
1724
      oprot.writeFieldEnd()
1685
    oprot.writeFieldStop()
1725
    oprot.writeFieldStop()
1686
    oprot.writeStructEnd()
1726
    oprot.writeStructEnd()
1687
 
1727
 
-
 
1728
  def validate(self):
-
 
1729
    return
-
 
1730
 
-
 
1731
 
1688
  def __repr__(self):
1732
  def __repr__(self):
1689
    L = ['%s=%r' % (key, value)
1733
    L = ['%s=%r' % (key, value)
1690
      for key, value in self.__dict__.iteritems()]
1734
      for key, value in self.__dict__.iteritems()]
1691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1692
 
1736
 
Line 1746... Line 1790...
1746
  def write(self, oprot):
1790
  def write(self, oprot):
1747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1791
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1792
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1749
      return
1793
      return
1750
    oprot.writeStructBegin('getPaymentForTxnId_result')
1794
    oprot.writeStructBegin('getPaymentForTxnId_result')
1751
    if self.success != None:
1795
    if self.success is not None:
1752
      oprot.writeFieldBegin('success', TType.LIST, 0)
1796
      oprot.writeFieldBegin('success', TType.LIST, 0)
1753
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1797
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1754
      for iter41 in self.success:
1798
      for iter41 in self.success:
1755
        iter41.write(oprot)
1799
        iter41.write(oprot)
1756
      oprot.writeListEnd()
1800
      oprot.writeListEnd()
1757
      oprot.writeFieldEnd()
1801
      oprot.writeFieldEnd()
1758
    if self.pe != None:
1802
    if self.pe is not None:
1759
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1803
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1760
      self.pe.write(oprot)
1804
      self.pe.write(oprot)
1761
      oprot.writeFieldEnd()
1805
      oprot.writeFieldEnd()
1762
    oprot.writeFieldStop()
1806
    oprot.writeFieldStop()
1763
    oprot.writeStructEnd()
1807
    oprot.writeStructEnd()
1764
 
1808
 
-
 
1809
  def validate(self):
-
 
1810
    return
-
 
1811
 
-
 
1812
 
1765
  def __repr__(self):
1813
  def __repr__(self):
1766
    L = ['%s=%r' % (key, value)
1814
    L = ['%s=%r' % (key, value)
1767
      for key, value in self.__dict__.iteritems()]
1815
      for key, value in self.__dict__.iteritems()]
1768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1769
 
1817
 
Line 1903... Line 1951...
1903
  def write(self, oprot):
1951
  def write(self, oprot):
1904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1906
      return
1954
      return
1907
    oprot.writeStructBegin('updatePaymentDetails_args')
1955
    oprot.writeStructBegin('updatePaymentDetails_args')
1908
    if self.id != None:
1956
    if self.id is not None:
1909
      oprot.writeFieldBegin('id', TType.I64, 1)
1957
      oprot.writeFieldBegin('id', TType.I64, 1)
1910
      oprot.writeI64(self.id)
1958
      oprot.writeI64(self.id)
1911
      oprot.writeFieldEnd()
1959
      oprot.writeFieldEnd()
1912
    if self.gatewayPaymentId != None:
1960
    if self.gatewayPaymentId is not None:
1913
      oprot.writeFieldBegin('gatewayPaymentId', TType.STRING, 2)
1961
      oprot.writeFieldBegin('gatewayPaymentId', TType.STRING, 2)
1914
      oprot.writeString(self.gatewayPaymentId)
1962
      oprot.writeString(self.gatewayPaymentId)
1915
      oprot.writeFieldEnd()
1963
      oprot.writeFieldEnd()
1916
    if self.sessionId != None:
1964
    if self.sessionId is not None:
1917
      oprot.writeFieldBegin('sessionId', TType.STRING, 3)
1965
      oprot.writeFieldBegin('sessionId', TType.STRING, 3)
1918
      oprot.writeString(self.sessionId)
1966
      oprot.writeString(self.sessionId)
1919
      oprot.writeFieldEnd()
1967
      oprot.writeFieldEnd()
1920
    if self.gatewayTxnStatus != None:
1968
    if self.gatewayTxnStatus is not None:
1921
      oprot.writeFieldBegin('gatewayTxnStatus', TType.STRING, 4)
1969
      oprot.writeFieldBegin('gatewayTxnStatus', TType.STRING, 4)
1922
      oprot.writeString(self.gatewayTxnStatus)
1970
      oprot.writeString(self.gatewayTxnStatus)
1923
      oprot.writeFieldEnd()
1971
      oprot.writeFieldEnd()
1924
    if self.description != None:
1972
    if self.description is not None:
1925
      oprot.writeFieldBegin('description', TType.STRING, 5)
1973
      oprot.writeFieldBegin('description', TType.STRING, 5)
1926
      oprot.writeString(self.description)
1974
      oprot.writeString(self.description)
1927
      oprot.writeFieldEnd()
1975
      oprot.writeFieldEnd()
1928
    if self.gatewayTxnId != None:
1976
    if self.gatewayTxnId is not None:
1929
      oprot.writeFieldBegin('gatewayTxnId', TType.STRING, 6)
1977
      oprot.writeFieldBegin('gatewayTxnId', TType.STRING, 6)
1930
      oprot.writeString(self.gatewayTxnId)
1978
      oprot.writeString(self.gatewayTxnId)
1931
      oprot.writeFieldEnd()
1979
      oprot.writeFieldEnd()
1932
    if self.authCode != None:
1980
    if self.authCode is not None:
1933
      oprot.writeFieldBegin('authCode', TType.STRING, 7)
1981
      oprot.writeFieldBegin('authCode', TType.STRING, 7)
1934
      oprot.writeString(self.authCode)
1982
      oprot.writeString(self.authCode)
1935
      oprot.writeFieldEnd()
1983
      oprot.writeFieldEnd()
1936
    if self.referenceCode != None:
1984
    if self.referenceCode is not None:
1937
      oprot.writeFieldBegin('referenceCode', TType.STRING, 8)
1985
      oprot.writeFieldBegin('referenceCode', TType.STRING, 8)
1938
      oprot.writeString(self.referenceCode)
1986
      oprot.writeString(self.referenceCode)
1939
      oprot.writeFieldEnd()
1987
      oprot.writeFieldEnd()
1940
    if self.errorCode != None:
1988
    if self.errorCode is not None:
1941
      oprot.writeFieldBegin('errorCode', TType.STRING, 9)
1989
      oprot.writeFieldBegin('errorCode', TType.STRING, 9)
1942
      oprot.writeString(self.errorCode)
1990
      oprot.writeString(self.errorCode)
1943
      oprot.writeFieldEnd()
1991
      oprot.writeFieldEnd()
1944
    if self.status != None:
1992
    if self.status is not None:
1945
      oprot.writeFieldBegin('status', TType.I32, 10)
1993
      oprot.writeFieldBegin('status', TType.I32, 10)
1946
      oprot.writeI32(self.status)
1994
      oprot.writeI32(self.status)
1947
      oprot.writeFieldEnd()
1995
      oprot.writeFieldEnd()
1948
    if self.gatewayTxnDate != None:
1996
    if self.gatewayTxnDate is not None:
1949
      oprot.writeFieldBegin('gatewayTxnDate', TType.STRING, 11)
1997
      oprot.writeFieldBegin('gatewayTxnDate', TType.STRING, 11)
1950
      oprot.writeString(self.gatewayTxnDate)
1998
      oprot.writeString(self.gatewayTxnDate)
1951
      oprot.writeFieldEnd()
1999
      oprot.writeFieldEnd()
1952
    if self.attributes != None:
2000
    if self.attributes is not None:
1953
      oprot.writeFieldBegin('attributes', TType.LIST, 12)
2001
      oprot.writeFieldBegin('attributes', TType.LIST, 12)
1954
      oprot.writeListBegin(TType.STRUCT, len(self.attributes))
2002
      oprot.writeListBegin(TType.STRUCT, len(self.attributes))
1955
      for iter48 in self.attributes:
2003
      for iter48 in self.attributes:
1956
        iter48.write(oprot)
2004
        iter48.write(oprot)
1957
      oprot.writeListEnd()
2005
      oprot.writeListEnd()
1958
      oprot.writeFieldEnd()
2006
      oprot.writeFieldEnd()
1959
    oprot.writeFieldStop()
2007
    oprot.writeFieldStop()
1960
    oprot.writeStructEnd()
2008
    oprot.writeStructEnd()
1961
 
2009
 
-
 
2010
  def validate(self):
-
 
2011
    return
-
 
2012
 
-
 
2013
 
1962
  def __repr__(self):
2014
  def __repr__(self):
1963
    L = ['%s=%r' % (key, value)
2015
    L = ['%s=%r' % (key, value)
1964
      for key, value in self.__dict__.iteritems()]
2016
      for key, value in self.__dict__.iteritems()]
1965
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1966
 
2018
 
Line 2014... Line 2066...
2014
  def write(self, oprot):
2066
  def write(self, oprot):
2015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2067
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2068
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2017
      return
2069
      return
2018
    oprot.writeStructBegin('updatePaymentDetails_result')
2070
    oprot.writeStructBegin('updatePaymentDetails_result')
2019
    if self.success != None:
2071
    if self.success is not None:
2020
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2072
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2021
      oprot.writeBool(self.success)
2073
      oprot.writeBool(self.success)
2022
      oprot.writeFieldEnd()
2074
      oprot.writeFieldEnd()
2023
    if self.pe != None:
2075
    if self.pe is not None:
2024
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2076
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2025
      self.pe.write(oprot)
2077
      self.pe.write(oprot)
2026
      oprot.writeFieldEnd()
2078
      oprot.writeFieldEnd()
2027
    oprot.writeFieldStop()
2079
    oprot.writeFieldStop()
2028
    oprot.writeStructEnd()
2080
    oprot.writeStructEnd()
2029
 
2081
 
-
 
2082
  def validate(self):
-
 
2083
    return
-
 
2084
 
-
 
2085
 
2030
  def __repr__(self):
2086
  def __repr__(self):
2031
    L = ['%s=%r' % (key, value)
2087
    L = ['%s=%r' % (key, value)
2032
      for key, value in self.__dict__.iteritems()]
2088
      for key, value in self.__dict__.iteritems()]
2033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2089
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2034
 
2090
 
Line 2063... Line 2119...
2063
      return
2119
      return
2064
    oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_args')
2120
    oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_args')
2065
    oprot.writeFieldStop()
2121
    oprot.writeFieldStop()
2066
    oprot.writeStructEnd()
2122
    oprot.writeStructEnd()
2067
 
2123
 
-
 
2124
  def validate(self):
-
 
2125
    return
-
 
2126
 
-
 
2127
 
2068
  def __repr__(self):
2128
  def __repr__(self):
2069
    L = ['%s=%r' % (key, value)
2129
    L = ['%s=%r' % (key, value)
2070
      for key, value in self.__dict__.iteritems()]
2130
      for key, value in self.__dict__.iteritems()]
2071
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2131
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2072
 
2132
 
Line 2116... Line 2176...
2116
  def write(self, oprot):
2176
  def write(self, oprot):
2117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2177
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2178
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2119
      return
2179
      return
2120
    oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_result')
2180
    oprot.writeStructBegin('getSuccessfulPaymentsAmountRange_result')
2121
    if self.success != None:
2181
    if self.success is not None:
2122
      oprot.writeFieldBegin('success', TType.LIST, 0)
2182
      oprot.writeFieldBegin('success', TType.LIST, 0)
2123
      oprot.writeListBegin(TType.DOUBLE, len(self.success))
2183
      oprot.writeListBegin(TType.DOUBLE, len(self.success))
2124
      for iter55 in self.success:
2184
      for iter55 in self.success:
2125
        oprot.writeDouble(iter55)
2185
        oprot.writeDouble(iter55)
2126
      oprot.writeListEnd()
2186
      oprot.writeListEnd()
2127
      oprot.writeFieldEnd()
2187
      oprot.writeFieldEnd()
2128
    oprot.writeFieldStop()
2188
    oprot.writeFieldStop()
2129
    oprot.writeStructEnd()
2189
    oprot.writeStructEnd()
2130
 
2190
 
-
 
2191
  def validate(self):
-
 
2192
    return
-
 
2193
 
-
 
2194
 
2131
  def __repr__(self):
2195
  def __repr__(self):
2132
    L = ['%s=%r' % (key, value)
2196
    L = ['%s=%r' % (key, value)
2133
      for key, value in self.__dict__.iteritems()]
2197
      for key, value in self.__dict__.iteritems()]
2134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2135
 
2199
 
Line 2175... Line 2239...
2175
  def write(self, oprot):
2239
  def write(self, oprot):
2176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2178
      return
2242
      return
2179
    oprot.writeStructBegin('captureEbsPayment_args')
2243
    oprot.writeStructBegin('captureEbsPayment_args')
2180
    if self.merchantPaymentId != None:
2244
    if self.merchantPaymentId is not None:
2181
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
2245
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
2182
      oprot.writeI64(self.merchantPaymentId)
2246
      oprot.writeI64(self.merchantPaymentId)
2183
      oprot.writeFieldEnd()
2247
      oprot.writeFieldEnd()
2184
    oprot.writeFieldStop()
2248
    oprot.writeFieldStop()
2185
    oprot.writeStructEnd()
2249
    oprot.writeStructEnd()
2186
 
2250
 
-
 
2251
  def validate(self):
-
 
2252
    return
-
 
2253
 
-
 
2254
 
2187
  def __repr__(self):
2255
  def __repr__(self):
2188
    L = ['%s=%r' % (key, value)
2256
    L = ['%s=%r' % (key, value)
2189
      for key, value in self.__dict__.iteritems()]
2257
      for key, value in self.__dict__.iteritems()]
2190
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2258
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2191
 
2259
 
Line 2245... Line 2313...
2245
  def write(self, oprot):
2313
  def write(self, oprot):
2246
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2314
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2247
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2315
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2248
      return
2316
      return
2249
    oprot.writeStructBegin('captureEbsPayment_result')
2317
    oprot.writeStructBegin('captureEbsPayment_result')
2250
    if self.success != None:
2318
    if self.success is not None:
2251
      oprot.writeFieldBegin('success', TType.MAP, 0)
2319
      oprot.writeFieldBegin('success', TType.MAP, 0)
2252
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
2320
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
2253
      for kiter63,viter64 in self.success.items():
2321
      for kiter63,viter64 in self.success.items():
2254
        oprot.writeString(kiter63)
2322
        oprot.writeString(kiter63)
2255
        oprot.writeString(viter64)
2323
        oprot.writeString(viter64)
2256
      oprot.writeMapEnd()
2324
      oprot.writeMapEnd()
2257
      oprot.writeFieldEnd()
2325
      oprot.writeFieldEnd()
2258
    if self.pe != None:
2326
    if self.pe is not None:
2259
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2327
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2260
      self.pe.write(oprot)
2328
      self.pe.write(oprot)
2261
      oprot.writeFieldEnd()
2329
      oprot.writeFieldEnd()
2262
    oprot.writeFieldStop()
2330
    oprot.writeFieldStop()
2263
    oprot.writeStructEnd()
2331
    oprot.writeStructEnd()
2264
 
2332
 
-
 
2333
  def validate(self):
-
 
2334
    return
-
 
2335
 
-
 
2336
 
2265
  def __repr__(self):
2337
  def __repr__(self):
2266
    L = ['%s=%r' % (key, value)
2338
    L = ['%s=%r' % (key, value)
2267
      for key, value in self.__dict__.iteritems()]
2339
      for key, value in self.__dict__.iteritems()]
2268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2340
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2269
 
2341
 
Line 2309... Line 2381...
2309
  def write(self, oprot):
2381
  def write(self, oprot):
2310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2312
      return
2384
      return
2313
    oprot.writeStructBegin('captureHdfcPayment_args')
2385
    oprot.writeStructBegin('captureHdfcPayment_args')
2314
    if self.merchantPaymentId != None:
2386
    if self.merchantPaymentId is not None:
2315
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
2387
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
2316
      oprot.writeI64(self.merchantPaymentId)
2388
      oprot.writeI64(self.merchantPaymentId)
2317
      oprot.writeFieldEnd()
2389
      oprot.writeFieldEnd()
2318
    oprot.writeFieldStop()
2390
    oprot.writeFieldStop()
2319
    oprot.writeStructEnd()
2391
    oprot.writeStructEnd()
2320
 
2392
 
-
 
2393
  def validate(self):
-
 
2394
    return
-
 
2395
 
-
 
2396
 
2321
  def __repr__(self):
2397
  def __repr__(self):
2322
    L = ['%s=%r' % (key, value)
2398
    L = ['%s=%r' % (key, value)
2323
      for key, value in self.__dict__.iteritems()]
2399
      for key, value in self.__dict__.iteritems()]
2324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2325
 
2401
 
Line 2379... Line 2455...
2379
  def write(self, oprot):
2455
  def write(self, oprot):
2380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2382
      return
2458
      return
2383
    oprot.writeStructBegin('captureHdfcPayment_result')
2459
    oprot.writeStructBegin('captureHdfcPayment_result')
2384
    if self.success != None:
2460
    if self.success is not None:
2385
      oprot.writeFieldBegin('success', TType.MAP, 0)
2461
      oprot.writeFieldBegin('success', TType.MAP, 0)
2386
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
2462
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
2387
      for kiter72,viter73 in self.success.items():
2463
      for kiter72,viter73 in self.success.items():
2388
        oprot.writeString(kiter72)
2464
        oprot.writeString(kiter72)
2389
        oprot.writeString(viter73)
2465
        oprot.writeString(viter73)
2390
      oprot.writeMapEnd()
2466
      oprot.writeMapEnd()
2391
      oprot.writeFieldEnd()
2467
      oprot.writeFieldEnd()
2392
    if self.pe != None:
2468
    if self.pe is not None:
2393
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2469
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2394
      self.pe.write(oprot)
2470
      self.pe.write(oprot)
2395
      oprot.writeFieldEnd()
2471
      oprot.writeFieldEnd()
2396
    oprot.writeFieldStop()
2472
    oprot.writeFieldStop()
2397
    oprot.writeStructEnd()
2473
    oprot.writeStructEnd()
2398
 
2474
 
-
 
2475
  def validate(self):
-
 
2476
    return
-
 
2477
 
-
 
2478
 
2399
  def __repr__(self):
2479
  def __repr__(self):
2400
    L = ['%s=%r' % (key, value)
2480
    L = ['%s=%r' % (key, value)
2401
      for key, value in self.__dict__.iteritems()]
2481
      for key, value in self.__dict__.iteritems()]
2402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2403
 
2483
 
Line 2443... Line 2523...
2443
  def write(self, oprot):
2523
  def write(self, oprot):
2444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2446
      return
2526
      return
2447
    oprot.writeStructBegin('initializeHdfcPayment_args')
2527
    oprot.writeStructBegin('initializeHdfcPayment_args')
2448
    if self.merchantPaymentId != None:
2528
    if self.merchantPaymentId is not None:
2449
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
2529
      oprot.writeFieldBegin('merchantPaymentId', TType.I64, 1)
2450
      oprot.writeI64(self.merchantPaymentId)
2530
      oprot.writeI64(self.merchantPaymentId)
2451
      oprot.writeFieldEnd()
2531
      oprot.writeFieldEnd()
2452
    oprot.writeFieldStop()
2532
    oprot.writeFieldStop()
2453
    oprot.writeStructEnd()
2533
    oprot.writeStructEnd()
2454
 
2534
 
-
 
2535
  def validate(self):
-
 
2536
    return
-
 
2537
 
-
 
2538
 
2455
  def __repr__(self):
2539
  def __repr__(self):
2456
    L = ['%s=%r' % (key, value)
2540
    L = ['%s=%r' % (key, value)
2457
      for key, value in self.__dict__.iteritems()]
2541
      for key, value in self.__dict__.iteritems()]
2458
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2542
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2459
 
2543
 
Line 2507... Line 2591...
2507
  def write(self, oprot):
2591
  def write(self, oprot):
2508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2592
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2593
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2510
      return
2594
      return
2511
    oprot.writeStructBegin('initializeHdfcPayment_result')
2595
    oprot.writeStructBegin('initializeHdfcPayment_result')
2512
    if self.success != None:
2596
    if self.success is not None:
2513
      oprot.writeFieldBegin('success', TType.STRING, 0)
2597
      oprot.writeFieldBegin('success', TType.STRING, 0)
2514
      oprot.writeString(self.success)
2598
      oprot.writeString(self.success)
2515
      oprot.writeFieldEnd()
2599
      oprot.writeFieldEnd()
2516
    if self.pe != None:
2600
    if self.pe is not None:
2517
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2601
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2518
      self.pe.write(oprot)
2602
      self.pe.write(oprot)
2519
      oprot.writeFieldEnd()
2603
      oprot.writeFieldEnd()
2520
    oprot.writeFieldStop()
2604
    oprot.writeFieldStop()
2521
    oprot.writeStructEnd()
2605
    oprot.writeStructEnd()
2522
 
2606
 
-
 
2607
  def validate(self):
-
 
2608
    return
-
 
2609
 
-
 
2610
 
2523
  def __repr__(self):
2611
  def __repr__(self):
2524
    L = ['%s=%r' % (key, value)
2612
    L = ['%s=%r' % (key, value)
2525
      for key, value in self.__dict__.iteritems()]
2613
      for key, value in self.__dict__.iteritems()]
2526
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2527
 
2615
 
Line 2583... Line 2671...
2583
  def write(self, oprot):
2671
  def write(self, oprot):
2584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2672
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2673
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2586
      return
2674
      return
2587
    oprot.writeStructBegin('createRefund_args')
2675
    oprot.writeStructBegin('createRefund_args')
2588
    if self.orderId != None:
2676
    if self.orderId is not None:
2589
      oprot.writeFieldBegin('orderId', TType.I64, 1)
2677
      oprot.writeFieldBegin('orderId', TType.I64, 1)
2590
      oprot.writeI64(self.orderId)
2678
      oprot.writeI64(self.orderId)
2591
      oprot.writeFieldEnd()
2679
      oprot.writeFieldEnd()
2592
    if self.merchantTxnId != None:
2680
    if self.merchantTxnId is not None:
2593
      oprot.writeFieldBegin('merchantTxnId', TType.I64, 2)
2681
      oprot.writeFieldBegin('merchantTxnId', TType.I64, 2)
2594
      oprot.writeI64(self.merchantTxnId)
2682
      oprot.writeI64(self.merchantTxnId)
2595
      oprot.writeFieldEnd()
2683
      oprot.writeFieldEnd()
2596
    if self.amount != None:
2684
    if self.amount is not None:
2597
      oprot.writeFieldBegin('amount', TType.DOUBLE, 3)
2685
      oprot.writeFieldBegin('amount', TType.DOUBLE, 3)
2598
      oprot.writeDouble(self.amount)
2686
      oprot.writeDouble(self.amount)
2599
      oprot.writeFieldEnd()
2687
      oprot.writeFieldEnd()
2600
    oprot.writeFieldStop()
2688
    oprot.writeFieldStop()
2601
    oprot.writeStructEnd()
2689
    oprot.writeStructEnd()
2602
 
2690
 
-
 
2691
  def validate(self):
-
 
2692
    return
-
 
2693
 
-
 
2694
 
2603
  def __repr__(self):
2695
  def __repr__(self):
2604
    L = ['%s=%r' % (key, value)
2696
    L = ['%s=%r' % (key, value)
2605
      for key, value in self.__dict__.iteritems()]
2697
      for key, value in self.__dict__.iteritems()]
2606
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2698
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2607
 
2699
 
Line 2655... Line 2747...
2655
  def write(self, oprot):
2747
  def write(self, oprot):
2656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2658
      return
2750
      return
2659
    oprot.writeStructBegin('createRefund_result')
2751
    oprot.writeStructBegin('createRefund_result')
2660
    if self.success != None:
2752
    if self.success is not None:
2661
      oprot.writeFieldBegin('success', TType.I64, 0)
2753
      oprot.writeFieldBegin('success', TType.I64, 0)
2662
      oprot.writeI64(self.success)
2754
      oprot.writeI64(self.success)
2663
      oprot.writeFieldEnd()
2755
      oprot.writeFieldEnd()
2664
    if self.pe != None:
2756
    if self.pe is not None:
2665
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2757
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2666
      self.pe.write(oprot)
2758
      self.pe.write(oprot)
2667
      oprot.writeFieldEnd()
2759
      oprot.writeFieldEnd()
2668
    oprot.writeFieldStop()
2760
    oprot.writeFieldStop()
2669
    oprot.writeStructEnd()
2761
    oprot.writeStructEnd()
2670
 
2762
 
-
 
2763
  def validate(self):
-
 
2764
    return
-
 
2765
 
-
 
2766
 
2671
  def __repr__(self):
2767
  def __repr__(self):
2672
    L = ['%s=%r' % (key, value)
2768
    L = ['%s=%r' % (key, value)
2673
      for key, value in self.__dict__.iteritems()]
2769
      for key, value in self.__dict__.iteritems()]
2674
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2770
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2675
 
2771
 
Line 2715... Line 2811...
2715
  def write(self, oprot):
2811
  def write(self, oprot):
2716
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2812
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2717
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2813
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2718
      return
2814
      return
2719
    oprot.writeStructBegin('capturePayment_args')
2815
    oprot.writeStructBegin('capturePayment_args')
2720
    if self.merchantTxnId != None:
2816
    if self.merchantTxnId is not None:
2721
      oprot.writeFieldBegin('merchantTxnId', TType.I64, 1)
2817
      oprot.writeFieldBegin('merchantTxnId', TType.I64, 1)
2722
      oprot.writeI64(self.merchantTxnId)
2818
      oprot.writeI64(self.merchantTxnId)
2723
      oprot.writeFieldEnd()
2819
      oprot.writeFieldEnd()
2724
    oprot.writeFieldStop()
2820
    oprot.writeFieldStop()
2725
    oprot.writeStructEnd()
2821
    oprot.writeStructEnd()
2726
 
2822
 
-
 
2823
  def validate(self):
-
 
2824
    return
-
 
2825
 
-
 
2826
 
2727
  def __repr__(self):
2827
  def __repr__(self):
2728
    L = ['%s=%r' % (key, value)
2828
    L = ['%s=%r' % (key, value)
2729
      for key, value in self.__dict__.iteritems()]
2829
      for key, value in self.__dict__.iteritems()]
2730
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2830
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2731
 
2831
 
Line 2779... Line 2879...
2779
  def write(self, oprot):
2879
  def write(self, oprot):
2780
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2880
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2781
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2881
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2782
      return
2882
      return
2783
    oprot.writeStructBegin('capturePayment_result')
2883
    oprot.writeStructBegin('capturePayment_result')
2784
    if self.success != None:
2884
    if self.success is not None:
2785
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2885
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2786
      oprot.writeBool(self.success)
2886
      oprot.writeBool(self.success)
2787
      oprot.writeFieldEnd()
2887
      oprot.writeFieldEnd()
2788
    if self.pe != None:
2888
    if self.pe is not None:
2789
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2889
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2790
      self.pe.write(oprot)
2890
      self.pe.write(oprot)
2791
      oprot.writeFieldEnd()
2891
      oprot.writeFieldEnd()
2792
    oprot.writeFieldStop()
2892
    oprot.writeFieldStop()
2793
    oprot.writeStructEnd()
2893
    oprot.writeStructEnd()
2794
 
2894
 
-
 
2895
  def validate(self):
-
 
2896
    return
-
 
2897
 
-
 
2898
 
2795
  def __repr__(self):
2899
  def __repr__(self):
2796
    L = ['%s=%r' % (key, value)
2900
    L = ['%s=%r' % (key, value)
2797
      for key, value in self.__dict__.iteritems()]
2901
      for key, value in self.__dict__.iteritems()]
2798
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2799
 
2903
 
2800
  def __eq__(self, other):
2904
  def __eq__(self, other):
2801
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2802
 
2906
 
2803
  def __ne__(self, other):
2907
  def __ne__(self, other):
2804
    return not (self == other)
2908
    return not (self == other)
2805
 
-
 
2806
 
-