Subversion Repositories SmartDukaan

Rev

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

Rev 420 Rev 696
Line 14... Line 14...
14
except:
14
except:
15
  fastbinary = None
15
  fastbinary = None
16
 
16
 
17
 
17
 
18
class Iface:
18
class Iface:
19
  def createPayment(self, user_id, cart_id, amount, gateway_id):
19
  def createPayment(self, userId, amount, gatewayId, txnId):
20
    """
20
    """
-
 
21
    create a new payment and return payment id, throws an exception if gateway is not active
-
 
22
    
-
 
23
    
21
    Parameters:
24
    Parameters:
22
     - user_id
25
     - userId
23
     - cart_id
-
 
24
     - amount
26
     - amount
25
     - gateway_id
27
     - gatewayId
26
    """
-
 
27
    pass
-
 
28
 
-
 
29
  def createPaymentRequest(self, cart_id, application_id, merchant_tx_id, params):
-
 
30
    """
-
 
31
    Parameters:
-
 
32
     - cart_id
28
     - txnId
33
     - application_id
-
 
34
     - merchant_tx_id
-
 
35
     - params
-
 
36
    """
-
 
37
    pass
-
 
38
 
-
 
39
  def addCallbackUrl(self, application_id, callback_url, updateIfExisting):
-
 
40
    """
-
 
41
    Parameters:
-
 
42
     - application_id
-
 
43
     - callback_url
-
 
44
     - updateIfExisting
-
 
45
    """
29
    """
46
    pass
30
    pass
47
 
31
 
48
  def getCallbackUrl(self, application_id):
-
 
49
    """
-
 
50
    Parameters:
-
 
51
     - application_id
-
 
52
    """
-
 
53
    pass
-
 
54
 
-
 
55
  def getPaymentsForUser(self, userId, from_time, to_time, status, gateway_id):
32
  def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
56
    """
33
    """
-
 
34
    get payment for user. If status and gateway are null, it is ignored. Same for times as well.
-
 
35
    
-
 
36
    
57
    Parameters:
37
    Parameters:
58
     - userId
38
     - userId
59
     - from_time
39
     - fromTime
60
     - to_time
-
 
61
     - status
-
 
62
     - gateway_id
-
 
63
    """
-
 
64
    pass
-
 
65
 
-
 
66
  def getPaymentsForCart(self, cartId, from_time, to_time, status, gateway_id):
-
 
67
    """
-
 
68
    Parameters:
-
 
69
     - cartId
-
 
70
     - from_time
-
 
71
     - to_time
40
     - toTime
72
     - status
41
     - status
73
     - gateway_id
42
     - gatewayId
74
    """
43
    """
75
    pass
44
    pass
76
 
45
 
77
  def getPayments(self, from_time, to_time, status, gateway_id):
46
  def getPayments(self, fromTime, toTime, status, gatewayId):
78
    """
-
 
79
    Parameters:
-
 
80
     - from_time
-
 
81
     - to_time
-
 
82
     - status
-
 
83
     - gateway_id
-
 
84
    """
-
 
85
    pass
-
 
86
 
-
 
87
  def getPaymentForMerchantId(self, merchant_tx_id):
-
 
88
    """
-
 
89
    Parameters:
-
 
90
     - merchant_tx_id
-
 
91
    """
-
 
92
    pass
-
 
93
 
-
 
94
  def changePaymentStatus(self, id, newStatus):
-
 
95
    """
-
 
96
    Parameters:
-
 
97
     - id
-
 
98
     - newStatus
-
 
99
    """
-
 
100
    pass
-
 
101
 
-
 
102
  def changePaymentRequestStatus(self, request_id, requestStatus):
-
 
103
    """
-
 
104
    Parameters:
-
 
105
     - request_id
-
 
106
     - requestStatus
-
 
107
    """
-
 
108
    pass
-
 
109
 
-
 
110
  def getPaymentGateways(self, status):
-
 
111
    """
47
    """
-
 
48
    get all payments for user. Gateway is mandatory.
-
 
49
    
-
 
50
    
112
    Parameters:
51
    Parameters:
-
 
52
     - fromTime
-
 
53
     - toTime
113
     - status
54
     - status
-
 
55
     - gatewayId
114
    """
56
    """
115
    pass
57
    pass
116
 
58
 
117
  def getPaymentGateway(self, id):
59
  def getPaymentGateway(self, id):
118
    """
60
    """
-
 
61
    Get a particular gateway
-
 
62
    
-
 
63
    
119
    Parameters:
64
    Parameters:
120
     - id
65
     - id
121
    """
66
    """
122
    pass
67
    pass
123
 
68
 
124
  def changeGatewayStatus(self, id, status):
69
  def getPayment(self, id):
125
    """
70
    """
-
 
71
    Get a particular payment info
-
 
72
    
-
 
73
    
126
    Parameters:
74
    Parameters:
127
     - id
75
     - id
128
     - status
-
 
129
    """
76
    """
130
    pass
77
    pass
131
 
78
 
132
  def getPayment(self, id):
79
  def getPaymentForTxnId(self, txnId):
133
    """
80
    """
-
 
81
    Get a particular payment for a transaction. Will raise exception.
-
 
82
    
-
 
83
    
134
    Parameters:
84
    Parameters:
135
     - id
85
     - txnId
136
    """
86
    """
137
    pass
87
    pass
138
 
88
 
139
  def addBankDetails(self, id, bid, btxid, error_code, session_id, postdate, auth_code, ref_code):
89
  def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, attributes):
140
    """
90
    """
-
 
91
    mark payment successful and store parameters
-
 
92
    
-
 
93
    
141
    Parameters:
94
    Parameters:
142
     - id
95
     - id
-
 
96
     - gatewayPaymentId
143
     - bid
97
     - sessionId
144
     - btxid
98
     - gatewayTxnStatus
145
     - error_code
99
     - description
146
     - session_id
100
     - gatewayTxnId
147
     - postdate
101
     - authCode
148
     - auth_code
102
     - referenceCode
149
     - ref_code
103
     - errorCode
-
 
104
     - status
-
 
105
     - attributes
150
    """
106
    """
151
    pass
107
    pass
152
 
108
 
153
 
109
 
154
class Client(Iface):
110
class Client(Iface):
Line 156... Line 112...
156
    self._iprot = self._oprot = iprot
112
    self._iprot = self._oprot = iprot
157
    if oprot != None:
113
    if oprot != None:
158
      self._oprot = oprot
114
      self._oprot = oprot
159
    self._seqid = 0
115
    self._seqid = 0
160
 
116
 
161
  def createPayment(self, user_id, cart_id, amount, gateway_id):
117
  def createPayment(self, userId, amount, gatewayId, txnId):
162
    """
118
    """
-
 
119
    create a new payment and return payment id, throws an exception if gateway is not active
-
 
120
    
-
 
121
    
163
    Parameters:
122
    Parameters:
164
     - user_id
123
     - userId
165
     - cart_id
-
 
166
     - amount
124
     - amount
167
     - gateway_id
125
     - gatewayId
-
 
126
     - txnId
168
    """
127
    """
169
    self.send_createPayment(user_id, cart_id, amount, gateway_id)
128
    self.send_createPayment(userId, amount, gatewayId, txnId)
170
    return self.recv_createPayment()
129
    return self.recv_createPayment()
171
 
130
 
172
  def send_createPayment(self, user_id, cart_id, amount, gateway_id):
131
  def send_createPayment(self, userId, amount, gatewayId, txnId):
173
    self._oprot.writeMessageBegin('createPayment', TMessageType.CALL, self._seqid)
132
    self._oprot.writeMessageBegin('createPayment', TMessageType.CALL, self._seqid)
174
    args = createPayment_args()
133
    args = createPayment_args()
175
    args.user_id = user_id
134
    args.userId = userId
176
    args.cart_id = cart_id
-
 
177
    args.amount = amount
135
    args.amount = amount
178
    args.gateway_id = gateway_id
136
    args.gatewayId = gatewayId
-
 
137
    args.txnId = txnId
179
    args.write(self._oprot)
138
    args.write(self._oprot)
180
    self._oprot.writeMessageEnd()
139
    self._oprot.writeMessageEnd()
181
    self._oprot.trans.flush()
140
    self._oprot.trans.flush()
182
 
141
 
183
  def recv_createPayment(self, ):
142
  def recv_createPayment(self, ):
Line 194... Line 153...
194
      return result.success
153
      return result.success
195
    if result.pe != None:
154
    if result.pe != None:
196
      raise result.pe
155
      raise result.pe
197
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
156
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
198
 
157
 
199
  def createPaymentRequest(self, cart_id, application_id, merchant_tx_id, params):
-
 
200
    """
-
 
201
    Parameters:
-
 
202
     - cart_id
-
 
203
     - application_id
-
 
204
     - merchant_tx_id
-
 
205
     - params
-
 
206
    """
-
 
207
    self.send_createPaymentRequest(cart_id, application_id, merchant_tx_id, params)
-
 
208
    self.recv_createPaymentRequest()
-
 
209
 
-
 
210
  def send_createPaymentRequest(self, cart_id, application_id, merchant_tx_id, params):
-
 
211
    self._oprot.writeMessageBegin('createPaymentRequest', TMessageType.CALL, self._seqid)
-
 
212
    args = createPaymentRequest_args()
-
 
213
    args.cart_id = cart_id
-
 
214
    args.application_id = application_id
-
 
215
    args.merchant_tx_id = merchant_tx_id
-
 
216
    args.params = params
-
 
217
    args.write(self._oprot)
-
 
218
    self._oprot.writeMessageEnd()
-
 
219
    self._oprot.trans.flush()
-
 
220
 
-
 
221
  def recv_createPaymentRequest(self, ):
-
 
222
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
223
    if mtype == TMessageType.EXCEPTION:
-
 
224
      x = TApplicationException()
-
 
225
      x.read(self._iprot)
-
 
226
      self._iprot.readMessageEnd()
-
 
227
      raise x
-
 
228
    result = createPaymentRequest_result()
-
 
229
    result.read(self._iprot)
-
 
230
    self._iprot.readMessageEnd()
-
 
231
    if result.pe != None:
-
 
232
      raise result.pe
-
 
233
    return
-
 
234
 
-
 
235
  def addCallbackUrl(self, application_id, callback_url, updateIfExisting):
-
 
236
    """
-
 
237
    Parameters:
-
 
238
     - application_id
-
 
239
     - callback_url
-
 
240
     - updateIfExisting
-
 
241
    """
-
 
242
    self.send_addCallbackUrl(application_id, callback_url, updateIfExisting)
-
 
243
    self.recv_addCallbackUrl()
-
 
244
 
-
 
245
  def send_addCallbackUrl(self, application_id, callback_url, updateIfExisting):
-
 
246
    self._oprot.writeMessageBegin('addCallbackUrl', TMessageType.CALL, self._seqid)
-
 
247
    args = addCallbackUrl_args()
-
 
248
    args.application_id = application_id
-
 
249
    args.callback_url = callback_url
-
 
250
    args.updateIfExisting = updateIfExisting
-
 
251
    args.write(self._oprot)
-
 
252
    self._oprot.writeMessageEnd()
-
 
253
    self._oprot.trans.flush()
-
 
254
 
-
 
255
  def recv_addCallbackUrl(self, ):
-
 
256
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
257
    if mtype == TMessageType.EXCEPTION:
-
 
258
      x = TApplicationException()
-
 
259
      x.read(self._iprot)
-
 
260
      self._iprot.readMessageEnd()
-
 
261
      raise x
-
 
262
    result = addCallbackUrl_result()
-
 
263
    result.read(self._iprot)
-
 
264
    self._iprot.readMessageEnd()
-
 
265
    if result.pe != None:
-
 
266
      raise result.pe
-
 
267
    return
-
 
268
 
-
 
269
  def getCallbackUrl(self, application_id):
-
 
270
    """
-
 
271
    Parameters:
-
 
272
     - application_id
-
 
273
    """
-
 
274
    self.send_getCallbackUrl(application_id)
-
 
275
    self.recv_getCallbackUrl()
-
 
276
 
-
 
277
  def send_getCallbackUrl(self, application_id):
-
 
278
    self._oprot.writeMessageBegin('getCallbackUrl', TMessageType.CALL, self._seqid)
-
 
279
    args = getCallbackUrl_args()
-
 
280
    args.application_id = application_id
-
 
281
    args.write(self._oprot)
-
 
282
    self._oprot.writeMessageEnd()
-
 
283
    self._oprot.trans.flush()
-
 
284
 
-
 
285
  def recv_getCallbackUrl(self, ):
-
 
286
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
287
    if mtype == TMessageType.EXCEPTION:
-
 
288
      x = TApplicationException()
-
 
289
      x.read(self._iprot)
-
 
290
      self._iprot.readMessageEnd()
-
 
291
      raise x
-
 
292
    result = getCallbackUrl_result()
-
 
293
    result.read(self._iprot)
-
 
294
    self._iprot.readMessageEnd()
-
 
295
    if result.pe != None:
-
 
296
      raise result.pe
-
 
297
    return
-
 
298
 
-
 
299
  def getPaymentsForUser(self, userId, from_time, to_time, status, gateway_id):
158
  def getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
300
    """
159
    """
-
 
160
    get payment for user. If status and gateway are null, it is ignored. Same for times as well.
-
 
161
    
-
 
162
    
301
    Parameters:
163
    Parameters:
302
     - userId
164
     - userId
303
     - from_time
165
     - fromTime
304
     - to_time
166
     - toTime
305
     - status
167
     - status
306
     - gateway_id
168
     - gatewayId
307
    """
169
    """
308
    self.send_getPaymentsForUser(userId, from_time, to_time, status, gateway_id)
170
    self.send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId)
309
    return self.recv_getPaymentsForUser()
171
    return self.recv_getPaymentsForUser()
310
 
172
 
311
  def send_getPaymentsForUser(self, userId, from_time, to_time, status, gateway_id):
173
  def send_getPaymentsForUser(self, userId, fromTime, toTime, status, gatewayId):
312
    self._oprot.writeMessageBegin('getPaymentsForUser', TMessageType.CALL, self._seqid)
174
    self._oprot.writeMessageBegin('getPaymentsForUser', TMessageType.CALL, self._seqid)
313
    args = getPaymentsForUser_args()
175
    args = getPaymentsForUser_args()
314
    args.userId = userId
176
    args.userId = userId
315
    args.from_time = from_time
177
    args.fromTime = fromTime
316
    args.to_time = to_time
178
    args.toTime = toTime
317
    args.status = status
179
    args.status = status
318
    args.gateway_id = gateway_id
180
    args.gatewayId = gatewayId
319
    args.write(self._oprot)
181
    args.write(self._oprot)
320
    self._oprot.writeMessageEnd()
182
    self._oprot.writeMessageEnd()
321
    self._oprot.trans.flush()
183
    self._oprot.trans.flush()
322
 
184
 
323
  def recv_getPaymentsForUser(self, ):
185
  def recv_getPaymentsForUser(self, ):
Line 334... Line 196...
334
      return result.success
196
      return result.success
335
    if result.pe != None:
197
    if result.pe != None:
336
      raise result.pe
198
      raise result.pe
337
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
199
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
338
 
200
 
339
  def getPaymentsForCart(self, cartId, from_time, to_time, status, gateway_id):
201
  def getPayments(self, fromTime, toTime, status, gatewayId):
340
    """
202
    """
-
 
203
    get all payments for user. Gateway is mandatory.
-
 
204
    
-
 
205
    
341
    Parameters:
206
    Parameters:
342
     - cartId
-
 
343
     - from_time
207
     - fromTime
344
     - to_time
208
     - toTime
345
     - status
209
     - status
346
     - gateway_id
210
     - gatewayId
347
    """
211
    """
348
    self.send_getPaymentsForCart(cartId, from_time, to_time, status, gateway_id)
-
 
349
    return self.recv_getPaymentsForCart()
-
 
350
 
-
 
351
  def send_getPaymentsForCart(self, cartId, from_time, to_time, status, gateway_id):
-
 
352
    self._oprot.writeMessageBegin('getPaymentsForCart', TMessageType.CALL, self._seqid)
-
 
353
    args = getPaymentsForCart_args()
-
 
354
    args.cartId = cartId
-
 
355
    args.from_time = from_time
-
 
356
    args.to_time = to_time
-
 
357
    args.status = status
-
 
358
    args.gateway_id = gateway_id
-
 
359
    args.write(self._oprot)
-
 
360
    self._oprot.writeMessageEnd()
-
 
361
    self._oprot.trans.flush()
-
 
362
 
-
 
363
  def recv_getPaymentsForCart(self, ):
-
 
364
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
365
    if mtype == TMessageType.EXCEPTION:
-
 
366
      x = TApplicationException()
-
 
367
      x.read(self._iprot)
-
 
368
      self._iprot.readMessageEnd()
-
 
369
      raise x
-
 
370
    result = getPaymentsForCart_result()
-
 
371
    result.read(self._iprot)
-
 
372
    self._iprot.readMessageEnd()
-
 
373
    if result.success != None:
-
 
374
      return result.success
-
 
375
    if result.pe != None:
-
 
376
      raise result.pe
-
 
377
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentsForCart failed: unknown result");
-
 
378
 
-
 
379
  def getPayments(self, from_time, to_time, status, gateway_id):
-
 
380
    """
-
 
381
    Parameters:
-
 
382
     - from_time
-
 
383
     - to_time
-
 
384
     - status
-
 
385
     - gateway_id
-
 
386
    """
-
 
387
    self.send_getPayments(from_time, to_time, status, gateway_id)
212
    self.send_getPayments(fromTime, toTime, status, gatewayId)
388
    return self.recv_getPayments()
213
    return self.recv_getPayments()
389
 
214
 
390
  def send_getPayments(self, from_time, to_time, status, gateway_id):
215
  def send_getPayments(self, fromTime, toTime, status, gatewayId):
391
    self._oprot.writeMessageBegin('getPayments', TMessageType.CALL, self._seqid)
216
    self._oprot.writeMessageBegin('getPayments', TMessageType.CALL, self._seqid)
392
    args = getPayments_args()
217
    args = getPayments_args()
393
    args.from_time = from_time
218
    args.fromTime = fromTime
394
    args.to_time = to_time
219
    args.toTime = toTime
395
    args.status = status
220
    args.status = status
396
    args.gateway_id = gateway_id
221
    args.gatewayId = gatewayId
397
    args.write(self._oprot)
222
    args.write(self._oprot)
398
    self._oprot.writeMessageEnd()
223
    self._oprot.writeMessageEnd()
399
    self._oprot.trans.flush()
224
    self._oprot.trans.flush()
400
 
225
 
401
  def recv_getPayments(self, ):
226
  def recv_getPayments(self, ):
Line 412... Line 237...
412
      return result.success
237
      return result.success
413
    if result.pe != None:
238
    if result.pe != None:
414
      raise result.pe
239
      raise result.pe
415
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
240
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
416
 
241
 
417
  def getPaymentForMerchantId(self, merchant_tx_id):
-
 
418
    """
-
 
419
    Parameters:
-
 
420
     - merchant_tx_id
-
 
421
    """
-
 
422
    self.send_getPaymentForMerchantId(merchant_tx_id)
-
 
423
    return self.recv_getPaymentForMerchantId()
-
 
424
 
-
 
425
  def send_getPaymentForMerchantId(self, merchant_tx_id):
-
 
426
    self._oprot.writeMessageBegin('getPaymentForMerchantId', TMessageType.CALL, self._seqid)
-
 
427
    args = getPaymentForMerchantId_args()
-
 
428
    args.merchant_tx_id = merchant_tx_id
-
 
429
    args.write(self._oprot)
-
 
430
    self._oprot.writeMessageEnd()
-
 
431
    self._oprot.trans.flush()
-
 
432
 
-
 
433
  def recv_getPaymentForMerchantId(self, ):
-
 
434
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
435
    if mtype == TMessageType.EXCEPTION:
-
 
436
      x = TApplicationException()
-
 
437
      x.read(self._iprot)
-
 
438
      self._iprot.readMessageEnd()
-
 
439
      raise x
-
 
440
    result = getPaymentForMerchantId_result()
-
 
441
    result.read(self._iprot)
-
 
442
    self._iprot.readMessageEnd()
-
 
443
    if result.success != None:
-
 
444
      return result.success
-
 
445
    if result.pe != None:
-
 
446
      raise result.pe
-
 
447
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForMerchantId failed: unknown result");
-
 
448
 
-
 
449
  def changePaymentStatus(self, id, newStatus):
-
 
450
    """
-
 
451
    Parameters:
-
 
452
     - id
-
 
453
     - newStatus
-
 
454
    """
-
 
455
    self.send_changePaymentStatus(id, newStatus)
-
 
456
    self.recv_changePaymentStatus()
-
 
457
 
-
 
458
  def send_changePaymentStatus(self, id, newStatus):
-
 
459
    self._oprot.writeMessageBegin('changePaymentStatus', TMessageType.CALL, self._seqid)
-
 
460
    args = changePaymentStatus_args()
-
 
461
    args.id = id
-
 
462
    args.newStatus = newStatus
-
 
463
    args.write(self._oprot)
-
 
464
    self._oprot.writeMessageEnd()
-
 
465
    self._oprot.trans.flush()
-
 
466
 
-
 
467
  def recv_changePaymentStatus(self, ):
-
 
468
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
469
    if mtype == TMessageType.EXCEPTION:
-
 
470
      x = TApplicationException()
-
 
471
      x.read(self._iprot)
-
 
472
      self._iprot.readMessageEnd()
-
 
473
      raise x
-
 
474
    result = changePaymentStatus_result()
-
 
475
    result.read(self._iprot)
-
 
476
    self._iprot.readMessageEnd()
-
 
477
    if result.pe != None:
-
 
478
      raise result.pe
-
 
479
    return
-
 
480
 
-
 
481
  def changePaymentRequestStatus(self, request_id, requestStatus):
-
 
482
    """
-
 
483
    Parameters:
-
 
484
     - request_id
-
 
485
     - requestStatus
-
 
486
    """
-
 
487
    self.send_changePaymentRequestStatus(request_id, requestStatus)
-
 
488
    self.recv_changePaymentRequestStatus()
-
 
489
 
-
 
490
  def send_changePaymentRequestStatus(self, request_id, requestStatus):
-
 
491
    self._oprot.writeMessageBegin('changePaymentRequestStatus', TMessageType.CALL, self._seqid)
-
 
492
    args = changePaymentRequestStatus_args()
-
 
493
    args.request_id = request_id
-
 
494
    args.requestStatus = requestStatus
-
 
495
    args.write(self._oprot)
-
 
496
    self._oprot.writeMessageEnd()
-
 
497
    self._oprot.trans.flush()
-
 
498
 
-
 
499
  def recv_changePaymentRequestStatus(self, ):
-
 
500
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
501
    if mtype == TMessageType.EXCEPTION:
-
 
502
      x = TApplicationException()
-
 
503
      x.read(self._iprot)
-
 
504
      self._iprot.readMessageEnd()
-
 
505
      raise x
-
 
506
    result = changePaymentRequestStatus_result()
-
 
507
    result.read(self._iprot)
-
 
508
    self._iprot.readMessageEnd()
-
 
509
    if result.pe != None:
-
 
510
      raise result.pe
-
 
511
    return
-
 
512
 
-
 
513
  def getPaymentGateways(self, status):
-
 
514
    """
-
 
515
    Parameters:
-
 
516
     - status
-
 
517
    """
-
 
518
    self.send_getPaymentGateways(status)
-
 
519
    return self.recv_getPaymentGateways()
-
 
520
 
-
 
521
  def send_getPaymentGateways(self, status):
-
 
522
    self._oprot.writeMessageBegin('getPaymentGateways', TMessageType.CALL, self._seqid)
-
 
523
    args = getPaymentGateways_args()
-
 
524
    args.status = status
-
 
525
    args.write(self._oprot)
-
 
526
    self._oprot.writeMessageEnd()
-
 
527
    self._oprot.trans.flush()
-
 
528
 
-
 
529
  def recv_getPaymentGateways(self, ):
-
 
530
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
531
    if mtype == TMessageType.EXCEPTION:
-
 
532
      x = TApplicationException()
-
 
533
      x.read(self._iprot)
-
 
534
      self._iprot.readMessageEnd()
-
 
535
      raise x
-
 
536
    result = getPaymentGateways_result()
-
 
537
    result.read(self._iprot)
-
 
538
    self._iprot.readMessageEnd()
-
 
539
    if result.success != None:
-
 
540
      return result.success
-
 
541
    if result.pe != None:
-
 
542
      raise result.pe
-
 
543
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateways failed: unknown result");
-
 
544
 
-
 
545
  def getPaymentGateway(self, id):
242
  def getPaymentGateway(self, id):
546
    """
243
    """
-
 
244
    Get a particular gateway
-
 
245
    
-
 
246
    
547
    Parameters:
247
    Parameters:
548
     - id
248
     - id
549
    """
249
    """
550
    self.send_getPaymentGateway(id)
250
    self.send_getPaymentGateway(id)
551
    return self.recv_getPaymentGateway()
251
    return self.recv_getPaymentGateway()
Line 572... Line 272...
572
      return result.success
272
      return result.success
573
    if result.pe != None:
273
    if result.pe != None:
574
      raise result.pe
274
      raise result.pe
575
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
275
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
576
 
276
 
577
  def changeGatewayStatus(self, id, status):
277
  def getPayment(self, id):
578
    """
278
    """
-
 
279
    Get a particular payment info
-
 
280
    
-
 
281
    
579
    Parameters:
282
    Parameters:
580
     - id
283
     - id
581
     - status
-
 
582
    """
284
    """
583
    self.send_changeGatewayStatus(id, status)
285
    self.send_getPayment(id)
584
    self.recv_changeGatewayStatus()
286
    return self.recv_getPayment()
585
 
287
 
586
  def send_changeGatewayStatus(self, id, status):
288
  def send_getPayment(self, id):
587
    self._oprot.writeMessageBegin('changeGatewayStatus', TMessageType.CALL, self._seqid)
289
    self._oprot.writeMessageBegin('getPayment', TMessageType.CALL, self._seqid)
588
    args = changeGatewayStatus_args()
290
    args = getPayment_args()
589
    args.id = id
291
    args.id = id
590
    args.status = status
-
 
591
    args.write(self._oprot)
292
    args.write(self._oprot)
592
    self._oprot.writeMessageEnd()
293
    self._oprot.writeMessageEnd()
593
    self._oprot.trans.flush()
294
    self._oprot.trans.flush()
594
 
295
 
595
  def recv_changeGatewayStatus(self, ):
296
  def recv_getPayment(self, ):
596
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
297
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
597
    if mtype == TMessageType.EXCEPTION:
298
    if mtype == TMessageType.EXCEPTION:
598
      x = TApplicationException()
299
      x = TApplicationException()
599
      x.read(self._iprot)
300
      x.read(self._iprot)
600
      self._iprot.readMessageEnd()
301
      self._iprot.readMessageEnd()
601
      raise x
302
      raise x
602
    result = changeGatewayStatus_result()
303
    result = getPayment_result()
603
    result.read(self._iprot)
304
    result.read(self._iprot)
604
    self._iprot.readMessageEnd()
305
    self._iprot.readMessageEnd()
-
 
306
    if result.success != None:
-
 
307
      return result.success
605
    if result.pe != None:
308
    if result.pe != None:
606
      raise result.pe
309
      raise result.pe
607
    return
-
 
-
 
310
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
608
 
311
 
609
  def getPayment(self, id):
312
  def getPaymentForTxnId(self, txnId):
610
    """
313
    """
-
 
314
    Get a particular payment for a transaction. Will raise exception.
-
 
315
    
-
 
316
    
611
    Parameters:
317
    Parameters:
612
     - id
318
     - txnId
613
    """
319
    """
614
    self.send_getPayment(id)
320
    self.send_getPaymentForTxnId(txnId)
615
    return self.recv_getPayment()
321
    return self.recv_getPaymentForTxnId()
616
 
322
 
617
  def send_getPayment(self, id):
323
  def send_getPaymentForTxnId(self, txnId):
618
    self._oprot.writeMessageBegin('getPayment', TMessageType.CALL, self._seqid)
324
    self._oprot.writeMessageBegin('getPaymentForTxnId', TMessageType.CALL, self._seqid)
619
    args = getPayment_args()
325
    args = getPaymentForTxnId_args()
620
    args.id = id
326
    args.txnId = txnId
621
    args.write(self._oprot)
327
    args.write(self._oprot)
622
    self._oprot.writeMessageEnd()
328
    self._oprot.writeMessageEnd()
623
    self._oprot.trans.flush()
329
    self._oprot.trans.flush()
624
 
330
 
625
  def recv_getPayment(self, ):
331
  def recv_getPaymentForTxnId(self, ):
626
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
332
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
627
    if mtype == TMessageType.EXCEPTION:
333
    if mtype == TMessageType.EXCEPTION:
628
      x = TApplicationException()
334
      x = TApplicationException()
629
      x.read(self._iprot)
335
      x.read(self._iprot)
630
      self._iprot.readMessageEnd()
336
      self._iprot.readMessageEnd()
631
      raise x
337
      raise x
632
    result = getPayment_result()
338
    result = getPaymentForTxnId_result()
633
    result.read(self._iprot)
339
    result.read(self._iprot)
634
    self._iprot.readMessageEnd()
340
    self._iprot.readMessageEnd()
635
    if result.success != None:
341
    if result.success != None:
636
      return result.success
342
      return result.success
637
    if result.pe != None:
343
    if result.pe != None:
638
      raise result.pe
344
      raise result.pe
639
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
345
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
640
 
346
 
641
  def addBankDetails(self, id, bid, btxid, error_code, session_id, postdate, auth_code, ref_code):
347
  def updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, attributes):
642
    """
348
    """
-
 
349
    mark payment successful and store parameters
-
 
350
    
-
 
351
    
643
    Parameters:
352
    Parameters:
644
     - id
353
     - id
-
 
354
     - gatewayPaymentId
645
     - bid
355
     - sessionId
646
     - btxid
356
     - gatewayTxnStatus
647
     - error_code
357
     - description
648
     - session_id
358
     - gatewayTxnId
649
     - postdate
359
     - authCode
650
     - auth_code
360
     - referenceCode
651
     - ref_code
361
     - errorCode
-
 
362
     - status
-
 
363
     - attributes
652
    """
364
    """
653
    self.send_addBankDetails(id, bid, btxid, error_code, session_id, postdate, auth_code, ref_code)
365
    self.send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, attributes)
654
    self.recv_addBankDetails()
366
    return self.recv_updatePaymentDetails()
655
 
367
 
656
  def send_addBankDetails(self, id, bid, btxid, error_code, session_id, postdate, auth_code, ref_code):
368
  def send_updatePaymentDetails(self, id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, attributes):
657
    self._oprot.writeMessageBegin('addBankDetails', TMessageType.CALL, self._seqid)
369
    self._oprot.writeMessageBegin('updatePaymentDetails', TMessageType.CALL, self._seqid)
658
    args = addBankDetails_args()
370
    args = updatePaymentDetails_args()
659
    args.id = id
371
    args.id = id
-
 
372
    args.gatewayPaymentId = gatewayPaymentId
660
    args.bid = bid
373
    args.sessionId = sessionId
661
    args.btxid = btxid
374
    args.gatewayTxnStatus = gatewayTxnStatus
662
    args.error_code = error_code
375
    args.description = description
663
    args.session_id = session_id
376
    args.gatewayTxnId = gatewayTxnId
664
    args.postdate = postdate
377
    args.authCode = authCode
665
    args.auth_code = auth_code
378
    args.referenceCode = referenceCode
666
    args.ref_code = ref_code
379
    args.errorCode = errorCode
-
 
380
    args.status = status
-
 
381
    args.attributes = attributes
667
    args.write(self._oprot)
382
    args.write(self._oprot)
668
    self._oprot.writeMessageEnd()
383
    self._oprot.writeMessageEnd()
669
    self._oprot.trans.flush()
384
    self._oprot.trans.flush()
670
 
385
 
671
  def recv_addBankDetails(self, ):
386
  def recv_updatePaymentDetails(self, ):
672
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
387
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
673
    if mtype == TMessageType.EXCEPTION:
388
    if mtype == TMessageType.EXCEPTION:
674
      x = TApplicationException()
389
      x = TApplicationException()
675
      x.read(self._iprot)
390
      x.read(self._iprot)
676
      self._iprot.readMessageEnd()
391
      self._iprot.readMessageEnd()
677
      raise x
392
      raise x
678
    result = addBankDetails_result()
393
    result = updatePaymentDetails_result()
679
    result.read(self._iprot)
394
    result.read(self._iprot)
680
    self._iprot.readMessageEnd()
395
    self._iprot.readMessageEnd()
-
 
396
    if result.success != None:
-
 
397
      return result.success
681
    if result.pe != None:
398
    if result.pe != None:
682
      raise result.pe
399
      raise result.pe
683
    return
-
 
-
 
400
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
684
 
401
 
685
 
402
 
686
class Processor(Iface, TProcessor):
403
class Processor(Iface, TProcessor):
687
  def __init__(self, handler):
404
  def __init__(self, handler):
688
    self._handler = handler
405
    self._handler = handler
689
    self._processMap = {}
406
    self._processMap = {}
690
    self._processMap["createPayment"] = Processor.process_createPayment
407
    self._processMap["createPayment"] = Processor.process_createPayment
691
    self._processMap["createPaymentRequest"] = Processor.process_createPaymentRequest
-
 
692
    self._processMap["addCallbackUrl"] = Processor.process_addCallbackUrl
-
 
693
    self._processMap["getCallbackUrl"] = Processor.process_getCallbackUrl
-
 
694
    self._processMap["getPaymentsForUser"] = Processor.process_getPaymentsForUser
408
    self._processMap["getPaymentsForUser"] = Processor.process_getPaymentsForUser
695
    self._processMap["getPaymentsForCart"] = Processor.process_getPaymentsForCart
-
 
696
    self._processMap["getPayments"] = Processor.process_getPayments
409
    self._processMap["getPayments"] = Processor.process_getPayments
697
    self._processMap["getPaymentForMerchantId"] = Processor.process_getPaymentForMerchantId
-
 
698
    self._processMap["changePaymentStatus"] = Processor.process_changePaymentStatus
-
 
699
    self._processMap["changePaymentRequestStatus"] = Processor.process_changePaymentRequestStatus
-
 
700
    self._processMap["getPaymentGateways"] = Processor.process_getPaymentGateways
-
 
701
    self._processMap["getPaymentGateway"] = Processor.process_getPaymentGateway
410
    self._processMap["getPaymentGateway"] = Processor.process_getPaymentGateway
702
    self._processMap["changeGatewayStatus"] = Processor.process_changeGatewayStatus
-
 
703
    self._processMap["getPayment"] = Processor.process_getPayment
411
    self._processMap["getPayment"] = Processor.process_getPayment
-
 
412
    self._processMap["getPaymentForTxnId"] = Processor.process_getPaymentForTxnId
704
    self._processMap["addBankDetails"] = Processor.process_addBankDetails
413
    self._processMap["updatePaymentDetails"] = Processor.process_updatePaymentDetails
705
 
414
 
706
  def process(self, iprot, oprot):
415
  def process(self, iprot, oprot):
707
    (name, type, seqid) = iprot.readMessageBegin()
416
    (name, type, seqid) = iprot.readMessageBegin()
708
    if name not in self._processMap:
417
    if name not in self._processMap:
709
      iprot.skip(TType.STRUCT)
418
      iprot.skip(TType.STRUCT)
Line 722... Line 431...
722
    args = createPayment_args()
431
    args = createPayment_args()
723
    args.read(iprot)
432
    args.read(iprot)
724
    iprot.readMessageEnd()
433
    iprot.readMessageEnd()
725
    result = createPayment_result()
434
    result = createPayment_result()
726
    try:
435
    try:
727
      result.success = self._handler.createPayment(args.user_id, args.cart_id, args.amount, args.gateway_id)
436
      result.success = self._handler.createPayment(args.userId, args.amount, args.gatewayId, args.txnId)
728
    except PaymentException, pe:
437
    except PaymentException, pe:
729
      result.pe = pe
438
      result.pe = pe
730
    oprot.writeMessageBegin("createPayment", TMessageType.REPLY, seqid)
439
    oprot.writeMessageBegin("createPayment", TMessageType.REPLY, seqid)
731
    result.write(oprot)
440
    result.write(oprot)
732
    oprot.writeMessageEnd()
441
    oprot.writeMessageEnd()
733
    oprot.trans.flush()
442
    oprot.trans.flush()
734
 
443
 
735
  def process_createPaymentRequest(self, seqid, iprot, oprot):
-
 
736
    args = createPaymentRequest_args()
-
 
737
    args.read(iprot)
-
 
738
    iprot.readMessageEnd()
-
 
739
    result = createPaymentRequest_result()
-
 
740
    try:
-
 
741
      self._handler.createPaymentRequest(args.cart_id, args.application_id, args.merchant_tx_id, args.params)
-
 
742
    except PaymentException, pe:
-
 
743
      result.pe = pe
-
 
744
    oprot.writeMessageBegin("createPaymentRequest", TMessageType.REPLY, seqid)
-
 
745
    result.write(oprot)
-
 
746
    oprot.writeMessageEnd()
-
 
747
    oprot.trans.flush()
-
 
748
 
-
 
749
  def process_addCallbackUrl(self, seqid, iprot, oprot):
-
 
750
    args = addCallbackUrl_args()
-
 
751
    args.read(iprot)
-
 
752
    iprot.readMessageEnd()
-
 
753
    result = addCallbackUrl_result()
-
 
754
    try:
-
 
755
      self._handler.addCallbackUrl(args.application_id, args.callback_url, args.updateIfExisting)
-
 
756
    except PaymentException, pe:
-
 
757
      result.pe = pe
-
 
758
    oprot.writeMessageBegin("addCallbackUrl", TMessageType.REPLY, seqid)
-
 
759
    result.write(oprot)
-
 
760
    oprot.writeMessageEnd()
-
 
761
    oprot.trans.flush()
-
 
762
 
-
 
763
  def process_getCallbackUrl(self, seqid, iprot, oprot):
-
 
764
    args = getCallbackUrl_args()
-
 
765
    args.read(iprot)
-
 
766
    iprot.readMessageEnd()
-
 
767
    result = getCallbackUrl_result()
-
 
768
    try:
-
 
769
      self._handler.getCallbackUrl(args.application_id)
-
 
770
    except PaymentException, pe:
-
 
771
      result.pe = pe
-
 
772
    oprot.writeMessageBegin("getCallbackUrl", TMessageType.REPLY, seqid)
-
 
773
    result.write(oprot)
-
 
774
    oprot.writeMessageEnd()
-
 
775
    oprot.trans.flush()
-
 
776
 
-
 
777
  def process_getPaymentsForUser(self, seqid, iprot, oprot):
444
  def process_getPaymentsForUser(self, seqid, iprot, oprot):
778
    args = getPaymentsForUser_args()
445
    args = getPaymentsForUser_args()
779
    args.read(iprot)
446
    args.read(iprot)
780
    iprot.readMessageEnd()
447
    iprot.readMessageEnd()
781
    result = getPaymentsForUser_result()
448
    result = getPaymentsForUser_result()
782
    try:
449
    try:
783
      result.success = self._handler.getPaymentsForUser(args.userId, args.from_time, args.to_time, args.status, args.gateway_id)
450
      result.success = self._handler.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId)
784
    except PaymentException, pe:
451
    except PaymentException, pe:
785
      result.pe = pe
452
      result.pe = pe
786
    oprot.writeMessageBegin("getPaymentsForUser", TMessageType.REPLY, seqid)
453
    oprot.writeMessageBegin("getPaymentsForUser", TMessageType.REPLY, seqid)
787
    result.write(oprot)
454
    result.write(oprot)
788
    oprot.writeMessageEnd()
455
    oprot.writeMessageEnd()
789
    oprot.trans.flush()
456
    oprot.trans.flush()
790
 
457
 
791
  def process_getPaymentsForCart(self, seqid, iprot, oprot):
-
 
792
    args = getPaymentsForCart_args()
-
 
793
    args.read(iprot)
-
 
794
    iprot.readMessageEnd()
-
 
795
    result = getPaymentsForCart_result()
-
 
796
    try:
-
 
797
      result.success = self._handler.getPaymentsForCart(args.cartId, args.from_time, args.to_time, args.status, args.gateway_id)
-
 
798
    except PaymentException, pe:
-
 
799
      result.pe = pe
-
 
800
    oprot.writeMessageBegin("getPaymentsForCart", TMessageType.REPLY, seqid)
-
 
801
    result.write(oprot)
-
 
802
    oprot.writeMessageEnd()
-
 
803
    oprot.trans.flush()
-
 
804
 
-
 
805
  def process_getPayments(self, seqid, iprot, oprot):
458
  def process_getPayments(self, seqid, iprot, oprot):
806
    args = getPayments_args()
459
    args = getPayments_args()
807
    args.read(iprot)
460
    args.read(iprot)
808
    iprot.readMessageEnd()
461
    iprot.readMessageEnd()
809
    result = getPayments_result()
462
    result = getPayments_result()
810
    try:
463
    try:
811
      result.success = self._handler.getPayments(args.from_time, args.to_time, args.status, args.gateway_id)
464
      result.success = self._handler.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId)
812
    except PaymentException, pe:
465
    except PaymentException, pe:
813
      result.pe = pe
466
      result.pe = pe
814
    oprot.writeMessageBegin("getPayments", TMessageType.REPLY, seqid)
467
    oprot.writeMessageBegin("getPayments", TMessageType.REPLY, seqid)
815
    result.write(oprot)
468
    result.write(oprot)
816
    oprot.writeMessageEnd()
469
    oprot.writeMessageEnd()
817
    oprot.trans.flush()
470
    oprot.trans.flush()
818
 
471
 
819
  def process_getPaymentForMerchantId(self, seqid, iprot, oprot):
-
 
820
    args = getPaymentForMerchantId_args()
-
 
821
    args.read(iprot)
-
 
822
    iprot.readMessageEnd()
-
 
823
    result = getPaymentForMerchantId_result()
-
 
824
    try:
-
 
825
      result.success = self._handler.getPaymentForMerchantId(args.merchant_tx_id)
-
 
826
    except PaymentException, pe:
-
 
827
      result.pe = pe
-
 
828
    oprot.writeMessageBegin("getPaymentForMerchantId", TMessageType.REPLY, seqid)
-
 
829
    result.write(oprot)
-
 
830
    oprot.writeMessageEnd()
-
 
831
    oprot.trans.flush()
-
 
832
 
-
 
833
  def process_changePaymentStatus(self, seqid, iprot, oprot):
-
 
834
    args = changePaymentStatus_args()
-
 
835
    args.read(iprot)
-
 
836
    iprot.readMessageEnd()
-
 
837
    result = changePaymentStatus_result()
-
 
838
    try:
-
 
839
      self._handler.changePaymentStatus(args.id, args.newStatus)
-
 
840
    except PaymentException, pe:
-
 
841
      result.pe = pe
-
 
842
    oprot.writeMessageBegin("changePaymentStatus", TMessageType.REPLY, seqid)
-
 
843
    result.write(oprot)
-
 
844
    oprot.writeMessageEnd()
-
 
845
    oprot.trans.flush()
-
 
846
 
-
 
847
  def process_changePaymentRequestStatus(self, seqid, iprot, oprot):
-
 
848
    args = changePaymentRequestStatus_args()
-
 
849
    args.read(iprot)
-
 
850
    iprot.readMessageEnd()
-
 
851
    result = changePaymentRequestStatus_result()
-
 
852
    try:
-
 
853
      self._handler.changePaymentRequestStatus(args.request_id, args.requestStatus)
-
 
854
    except PaymentException, pe:
-
 
855
      result.pe = pe
-
 
856
    oprot.writeMessageBegin("changePaymentRequestStatus", TMessageType.REPLY, seqid)
-
 
857
    result.write(oprot)
-
 
858
    oprot.writeMessageEnd()
-
 
859
    oprot.trans.flush()
-
 
860
 
-
 
861
  def process_getPaymentGateways(self, seqid, iprot, oprot):
-
 
862
    args = getPaymentGateways_args()
-
 
863
    args.read(iprot)
-
 
864
    iprot.readMessageEnd()
-
 
865
    result = getPaymentGateways_result()
-
 
866
    try:
-
 
867
      result.success = self._handler.getPaymentGateways(args.status)
-
 
868
    except PaymentException, pe:
-
 
869
      result.pe = pe
-
 
870
    oprot.writeMessageBegin("getPaymentGateways", TMessageType.REPLY, seqid)
-
 
871
    result.write(oprot)
-
 
872
    oprot.writeMessageEnd()
-
 
873
    oprot.trans.flush()
-
 
874
 
-
 
875
  def process_getPaymentGateway(self, seqid, iprot, oprot):
472
  def process_getPaymentGateway(self, seqid, iprot, oprot):
876
    args = getPaymentGateway_args()
473
    args = getPaymentGateway_args()
877
    args.read(iprot)
474
    args.read(iprot)
878
    iprot.readMessageEnd()
475
    iprot.readMessageEnd()
879
    result = getPaymentGateway_result()
476
    result = getPaymentGateway_result()
Line 884... Line 481...
884
    oprot.writeMessageBegin("getPaymentGateway", TMessageType.REPLY, seqid)
481
    oprot.writeMessageBegin("getPaymentGateway", TMessageType.REPLY, seqid)
885
    result.write(oprot)
482
    result.write(oprot)
886
    oprot.writeMessageEnd()
483
    oprot.writeMessageEnd()
887
    oprot.trans.flush()
484
    oprot.trans.flush()
888
 
485
 
889
  def process_changeGatewayStatus(self, seqid, iprot, oprot):
486
  def process_getPayment(self, seqid, iprot, oprot):
890
    args = changeGatewayStatus_args()
487
    args = getPayment_args()
891
    args.read(iprot)
488
    args.read(iprot)
892
    iprot.readMessageEnd()
489
    iprot.readMessageEnd()
893
    result = changeGatewayStatus_result()
490
    result = getPayment_result()
894
    try:
491
    try:
895
      self._handler.changeGatewayStatus(args.id, args.status)
492
      result.success = self._handler.getPayment(args.id)
896
    except PaymentException, pe:
493
    except PaymentException, pe:
897
      result.pe = pe
494
      result.pe = pe
898
    oprot.writeMessageBegin("changeGatewayStatus", TMessageType.REPLY, seqid)
495
    oprot.writeMessageBegin("getPayment", TMessageType.REPLY, seqid)
899
    result.write(oprot)
496
    result.write(oprot)
900
    oprot.writeMessageEnd()
497
    oprot.writeMessageEnd()
901
    oprot.trans.flush()
498
    oprot.trans.flush()
902
 
499
 
903
  def process_getPayment(self, seqid, iprot, oprot):
500
  def process_getPaymentForTxnId(self, seqid, iprot, oprot):
904
    args = getPayment_args()
501
    args = getPaymentForTxnId_args()
905
    args.read(iprot)
502
    args.read(iprot)
906
    iprot.readMessageEnd()
503
    iprot.readMessageEnd()
907
    result = getPayment_result()
504
    result = getPaymentForTxnId_result()
908
    try:
505
    try:
909
      result.success = self._handler.getPayment(args.id)
506
      result.success = self._handler.getPaymentForTxnId(args.txnId)
910
    except PaymentException, pe:
507
    except PaymentException, pe:
911
      result.pe = pe
508
      result.pe = pe
912
    oprot.writeMessageBegin("getPayment", TMessageType.REPLY, seqid)
509
    oprot.writeMessageBegin("getPaymentForTxnId", TMessageType.REPLY, seqid)
913
    result.write(oprot)
510
    result.write(oprot)
914
    oprot.writeMessageEnd()
511
    oprot.writeMessageEnd()
915
    oprot.trans.flush()
512
    oprot.trans.flush()
916
 
513
 
917
  def process_addBankDetails(self, seqid, iprot, oprot):
514
  def process_updatePaymentDetails(self, seqid, iprot, oprot):
918
    args = addBankDetails_args()
515
    args = updatePaymentDetails_args()
919
    args.read(iprot)
516
    args.read(iprot)
920
    iprot.readMessageEnd()
517
    iprot.readMessageEnd()
921
    result = addBankDetails_result()
518
    result = updatePaymentDetails_result()
922
    try:
519
    try:
923
      self._handler.addBankDetails(args.id, args.bid, args.btxid, args.error_code, args.session_id, args.postdate, args.auth_code, args.ref_code)
520
      result.success = self._handler.updatePaymentDetails(args.id, args.gatewayPaymentId, args.sessionId, args.gatewayTxnStatus, args.description, args.gatewayTxnId, args.authCode, args.referenceCode, args.errorCode, args.status, args.attributes)
924
    except PaymentException, pe:
521
    except PaymentException, pe:
925
      result.pe = pe
522
      result.pe = pe
926
    oprot.writeMessageBegin("addBankDetails", TMessageType.REPLY, seqid)
523
    oprot.writeMessageBegin("updatePaymentDetails", TMessageType.REPLY, seqid)
927
    result.write(oprot)
524
    result.write(oprot)
928
    oprot.writeMessageEnd()
525
    oprot.writeMessageEnd()
929
    oprot.trans.flush()
526
    oprot.trans.flush()
930
 
527
 
931
 
528
 
932
# HELPER FUNCTIONS AND STRUCTURES
529
# HELPER FUNCTIONS AND STRUCTURES
933
 
530
 
934
class createPayment_args:
531
class createPayment_args:
935
  """
532
  """
936
  Attributes:
533
  Attributes:
937
   - user_id
534
   - userId
938
   - cart_id
-
 
939
   - amount
535
   - amount
940
   - gateway_id
536
   - gatewayId
-
 
537
   - txnId
941
  """
538
  """
942
 
539
 
943
  thrift_spec = (
540
  thrift_spec = (
944
    None, # 0
541
    None, # 0
945
    (1, TType.I64, 'user_id', None, None, ), # 1
542
    (1, TType.I64, 'userId', None, None, ), # 1
946
    (2, TType.I64, 'cart_id', None, None, ), # 2
543
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
947
    (3, TType.DOUBLE, 'amount', None, None, ), # 3
544
    (3, TType.I64, 'gatewayId', None, None, ), # 3
948
    (4, TType.I64, 'gateway_id', None, None, ), # 4
545
    (4, TType.I64, 'txnId', None, None, ), # 4
949
  )
546
  )
950
 
547
 
951
  def __init__(self, user_id=None, cart_id=None, amount=None, gateway_id=None,):
548
  def __init__(self, userId=None, amount=None, gatewayId=None, txnId=None,):
952
    self.user_id = user_id
549
    self.userId = userId
953
    self.cart_id = cart_id
-
 
954
    self.amount = amount
550
    self.amount = amount
955
    self.gateway_id = gateway_id
551
    self.gatewayId = gatewayId
-
 
552
    self.txnId = txnId
956
 
553
 
957
  def read(self, iprot):
554
  def read(self, iprot):
958
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
555
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
959
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
556
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
960
      return
557
      return
Line 963... Line 560...
963
      (fname, ftype, fid) = iprot.readFieldBegin()
560
      (fname, ftype, fid) = iprot.readFieldBegin()
964
      if ftype == TType.STOP:
561
      if ftype == TType.STOP:
965
        break
562
        break
966
      if fid == 1:
563
      if fid == 1:
967
        if ftype == TType.I64:
564
        if ftype == TType.I64:
968
          self.user_id = iprot.readI64();
565
          self.userId = iprot.readI64();
969
        else:
566
        else:
970
          iprot.skip(ftype)
567
          iprot.skip(ftype)
971
      elif fid == 2:
568
      elif fid == 2:
972
        if ftype == TType.I64:
569
        if ftype == TType.DOUBLE:
973
          self.cart_id = iprot.readI64();
570
          self.amount = iprot.readDouble();
974
        else:
571
        else:
975
          iprot.skip(ftype)
572
          iprot.skip(ftype)
976
      elif fid == 3:
573
      elif fid == 3:
977
        if ftype == TType.DOUBLE:
574
        if ftype == TType.I64:
978
          self.amount = iprot.readDouble();
575
          self.gatewayId = iprot.readI64();
979
        else:
576
        else:
980
          iprot.skip(ftype)
577
          iprot.skip(ftype)
981
      elif fid == 4:
578
      elif fid == 4:
982
        if ftype == TType.I64:
579
        if ftype == TType.I64:
983
          self.gateway_id = iprot.readI64();
580
          self.txnId = iprot.readI64();
984
        else:
581
        else:
985
          iprot.skip(ftype)
582
          iprot.skip(ftype)
986
      else:
583
      else:
987
        iprot.skip(ftype)
584
        iprot.skip(ftype)
988
      iprot.readFieldEnd()
585
      iprot.readFieldEnd()
Line 991... Line 588...
991
  def write(self, oprot):
588
  def write(self, oprot):
992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
994
      return
591
      return
995
    oprot.writeStructBegin('createPayment_args')
592
    oprot.writeStructBegin('createPayment_args')
996
    if self.user_id != None:
593
    if self.userId != None:
997
      oprot.writeFieldBegin('user_id', TType.I64, 1)
594
      oprot.writeFieldBegin('userId', TType.I64, 1)
998
      oprot.writeI64(self.user_id)
595
      oprot.writeI64(self.userId)
999
      oprot.writeFieldEnd()
-
 
1000
    if self.cart_id != None:
-
 
1001
      oprot.writeFieldBegin('cart_id', TType.I64, 2)
-
 
1002
      oprot.writeI64(self.cart_id)
-
 
1003
      oprot.writeFieldEnd()
596
      oprot.writeFieldEnd()
1004
    if self.amount != None:
597
    if self.amount != None:
1005
      oprot.writeFieldBegin('amount', TType.DOUBLE, 3)
598
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
1006
      oprot.writeDouble(self.amount)
599
      oprot.writeDouble(self.amount)
1007
      oprot.writeFieldEnd()
600
      oprot.writeFieldEnd()
1008
    if self.gateway_id != None:
601
    if self.gatewayId != None:
1009
      oprot.writeFieldBegin('gateway_id', TType.I64, 4)
602
      oprot.writeFieldBegin('gatewayId', TType.I64, 3)
1010
      oprot.writeI64(self.gateway_id)
603
      oprot.writeI64(self.gatewayId)
-
 
604
      oprot.writeFieldEnd()
-
 
605
    if self.txnId != None:
-
 
606
      oprot.writeFieldBegin('txnId', TType.I64, 4)
-
 
607
      oprot.writeI64(self.txnId)
1011
      oprot.writeFieldEnd()
608
      oprot.writeFieldEnd()
1012
    oprot.writeFieldStop()
609
    oprot.writeFieldStop()
1013
    oprot.writeStructEnd()
610
    oprot.writeStructEnd()
1014
 
611
 
1015
  def __repr__(self):
612
  def __repr__(self):
Line 1089... Line 686...
1089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1090
 
687
 
1091
  def __ne__(self, other):
688
  def __ne__(self, other):
1092
    return not (self == other)
689
    return not (self == other)
1093
 
690
 
1094
class createPaymentRequest_args:
-
 
1095
  """
-
 
1096
  Attributes:
-
 
1097
   - cart_id
-
 
1098
   - application_id
-
 
1099
   - merchant_tx_id
-
 
1100
   - params
-
 
1101
  """
-
 
1102
 
-
 
1103
  thrift_spec = (
-
 
1104
    None, # 0
-
 
1105
    (1, TType.I64, 'cart_id', None, None, ), # 1
-
 
1106
    (2, TType.I64, 'application_id', None, None, ), # 2
-
 
1107
    (3, TType.I64, 'merchant_tx_id', None, None, ), # 3
-
 
1108
    None, # 4
-
 
1109
    (5, TType.LIST, 'params', (TType.STRUCT,(Param, Param.thrift_spec)), None, ), # 5
-
 
1110
  )
-
 
1111
 
-
 
1112
  def __init__(self, cart_id=None, application_id=None, merchant_tx_id=None, params=None,):
-
 
1113
    self.cart_id = cart_id
-
 
1114
    self.application_id = application_id
-
 
1115
    self.merchant_tx_id = merchant_tx_id
-
 
1116
    self.params = params
-
 
1117
 
-
 
1118
  def read(self, iprot):
-
 
1119
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1120
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1121
      return
-
 
1122
    iprot.readStructBegin()
-
 
1123
    while True:
-
 
1124
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1125
      if ftype == TType.STOP:
-
 
1126
        break
-
 
1127
      if fid == 1:
-
 
1128
        if ftype == TType.I64:
-
 
1129
          self.cart_id = iprot.readI64();
-
 
1130
        else:
-
 
1131
          iprot.skip(ftype)
-
 
1132
      elif fid == 2:
-
 
1133
        if ftype == TType.I64:
-
 
1134
          self.application_id = iprot.readI64();
-
 
1135
        else:
-
 
1136
          iprot.skip(ftype)
-
 
1137
      elif fid == 3:
-
 
1138
        if ftype == TType.I64:
-
 
1139
          self.merchant_tx_id = iprot.readI64();
-
 
1140
        else:
-
 
1141
          iprot.skip(ftype)
-
 
1142
      elif fid == 5:
-
 
1143
        if ftype == TType.LIST:
-
 
1144
          self.params = []
-
 
1145
          (_etype28, _size25) = iprot.readListBegin()
-
 
1146
          for _i29 in xrange(_size25):
-
 
1147
            _elem30 = Param()
-
 
1148
            _elem30.read(iprot)
-
 
1149
            self.params.append(_elem30)
-
 
1150
          iprot.readListEnd()
-
 
1151
        else:
-
 
1152
          iprot.skip(ftype)
-
 
1153
      else:
-
 
1154
        iprot.skip(ftype)
-
 
1155
      iprot.readFieldEnd()
-
 
1156
    iprot.readStructEnd()
-
 
1157
 
-
 
1158
  def write(self, oprot):
-
 
1159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1161
      return
-
 
1162
    oprot.writeStructBegin('createPaymentRequest_args')
-
 
1163
    if self.cart_id != None:
-
 
1164
      oprot.writeFieldBegin('cart_id', TType.I64, 1)
-
 
1165
      oprot.writeI64(self.cart_id)
-
 
1166
      oprot.writeFieldEnd()
-
 
1167
    if self.application_id != None:
-
 
1168
      oprot.writeFieldBegin('application_id', TType.I64, 2)
-
 
1169
      oprot.writeI64(self.application_id)
-
 
1170
      oprot.writeFieldEnd()
-
 
1171
    if self.merchant_tx_id != None:
-
 
1172
      oprot.writeFieldBegin('merchant_tx_id', TType.I64, 3)
-
 
1173
      oprot.writeI64(self.merchant_tx_id)
-
 
1174
      oprot.writeFieldEnd()
-
 
1175
    if self.params != None:
-
 
1176
      oprot.writeFieldBegin('params', TType.LIST, 5)
-
 
1177
      oprot.writeListBegin(TType.STRUCT, len(self.params))
-
 
1178
      for iter31 in self.params:
-
 
1179
        iter31.write(oprot)
-
 
1180
      oprot.writeListEnd()
-
 
1181
      oprot.writeFieldEnd()
-
 
1182
    oprot.writeFieldStop()
-
 
1183
    oprot.writeStructEnd()
-
 
1184
 
-
 
1185
  def __repr__(self):
-
 
1186
    L = ['%s=%r' % (key, value)
-
 
1187
      for key, value in self.__dict__.iteritems()]
-
 
1188
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1189
 
-
 
1190
  def __eq__(self, other):
-
 
1191
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1192
 
-
 
1193
  def __ne__(self, other):
-
 
1194
    return not (self == other)
-
 
1195
 
-
 
1196
class createPaymentRequest_result:
-
 
1197
  """
-
 
1198
  Attributes:
-
 
1199
   - pe
-
 
1200
  """
-
 
1201
 
-
 
1202
  thrift_spec = (
-
 
1203
    None, # 0
-
 
1204
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
-
 
1205
  )
-
 
1206
 
-
 
1207
  def __init__(self, pe=None,):
-
 
1208
    self.pe = pe
-
 
1209
 
-
 
1210
  def read(self, iprot):
-
 
1211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1213
      return
-
 
1214
    iprot.readStructBegin()
-
 
1215
    while True:
-
 
1216
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1217
      if ftype == TType.STOP:
-
 
1218
        break
-
 
1219
      if fid == 1:
-
 
1220
        if ftype == TType.STRUCT:
-
 
1221
          self.pe = PaymentException()
-
 
1222
          self.pe.read(iprot)
-
 
1223
        else:
-
 
1224
          iprot.skip(ftype)
-
 
1225
      else:
-
 
1226
        iprot.skip(ftype)
-
 
1227
      iprot.readFieldEnd()
-
 
1228
    iprot.readStructEnd()
-
 
1229
 
-
 
1230
  def write(self, oprot):
-
 
1231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1233
      return
-
 
1234
    oprot.writeStructBegin('createPaymentRequest_result')
-
 
1235
    if self.pe != None:
-
 
1236
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
-
 
1237
      self.pe.write(oprot)
-
 
1238
      oprot.writeFieldEnd()
-
 
1239
    oprot.writeFieldStop()
-
 
1240
    oprot.writeStructEnd()
-
 
1241
 
-
 
1242
  def __repr__(self):
-
 
1243
    L = ['%s=%r' % (key, value)
-
 
1244
      for key, value in self.__dict__.iteritems()]
-
 
1245
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1246
 
-
 
1247
  def __eq__(self, other):
-
 
1248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1249
 
-
 
1250
  def __ne__(self, other):
-
 
1251
    return not (self == other)
-
 
1252
 
-
 
1253
class addCallbackUrl_args:
-
 
1254
  """
-
 
1255
  Attributes:
-
 
1256
   - application_id
-
 
1257
   - callback_url
-
 
1258
   - updateIfExisting
-
 
1259
  """
-
 
1260
 
-
 
1261
  thrift_spec = (
-
 
1262
    None, # 0
-
 
1263
    (1, TType.I64, 'application_id', None, None, ), # 1
-
 
1264
    (2, TType.STRING, 'callback_url', None, None, ), # 2
-
 
1265
    (3, TType.BOOL, 'updateIfExisting', None, None, ), # 3
-
 
1266
  )
-
 
1267
 
-
 
1268
  def __init__(self, application_id=None, callback_url=None, updateIfExisting=None,):
-
 
1269
    self.application_id = application_id
-
 
1270
    self.callback_url = callback_url
-
 
1271
    self.updateIfExisting = updateIfExisting
-
 
1272
 
-
 
1273
  def read(self, iprot):
-
 
1274
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1275
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1276
      return
-
 
1277
    iprot.readStructBegin()
-
 
1278
    while True:
-
 
1279
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1280
      if ftype == TType.STOP:
-
 
1281
        break
-
 
1282
      if fid == 1:
-
 
1283
        if ftype == TType.I64:
-
 
1284
          self.application_id = iprot.readI64();
-
 
1285
        else:
-
 
1286
          iprot.skip(ftype)
-
 
1287
      elif fid == 2:
-
 
1288
        if ftype == TType.STRING:
-
 
1289
          self.callback_url = iprot.readString();
-
 
1290
        else:
-
 
1291
          iprot.skip(ftype)
-
 
1292
      elif fid == 3:
-
 
1293
        if ftype == TType.BOOL:
-
 
1294
          self.updateIfExisting = iprot.readBool();
-
 
1295
        else:
-
 
1296
          iprot.skip(ftype)
-
 
1297
      else:
-
 
1298
        iprot.skip(ftype)
-
 
1299
      iprot.readFieldEnd()
-
 
1300
    iprot.readStructEnd()
-
 
1301
 
-
 
1302
  def write(self, oprot):
-
 
1303
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1304
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1305
      return
-
 
1306
    oprot.writeStructBegin('addCallbackUrl_args')
-
 
1307
    if self.application_id != None:
-
 
1308
      oprot.writeFieldBegin('application_id', TType.I64, 1)
-
 
1309
      oprot.writeI64(self.application_id)
-
 
1310
      oprot.writeFieldEnd()
-
 
1311
    if self.callback_url != None:
-
 
1312
      oprot.writeFieldBegin('callback_url', TType.STRING, 2)
-
 
1313
      oprot.writeString(self.callback_url)
-
 
1314
      oprot.writeFieldEnd()
-
 
1315
    if self.updateIfExisting != None:
-
 
1316
      oprot.writeFieldBegin('updateIfExisting', TType.BOOL, 3)
-
 
1317
      oprot.writeBool(self.updateIfExisting)
-
 
1318
      oprot.writeFieldEnd()
-
 
1319
    oprot.writeFieldStop()
-
 
1320
    oprot.writeStructEnd()
-
 
1321
 
-
 
1322
  def __repr__(self):
-
 
1323
    L = ['%s=%r' % (key, value)
-
 
1324
      for key, value in self.__dict__.iteritems()]
-
 
1325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1326
 
-
 
1327
  def __eq__(self, other):
-
 
1328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1329
 
-
 
1330
  def __ne__(self, other):
-
 
1331
    return not (self == other)
-
 
1332
 
-
 
1333
class addCallbackUrl_result:
-
 
1334
  """
-
 
1335
  Attributes:
-
 
1336
   - pe
-
 
1337
  """
-
 
1338
 
-
 
1339
  thrift_spec = (
-
 
1340
    None, # 0
-
 
1341
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
-
 
1342
  )
-
 
1343
 
-
 
1344
  def __init__(self, pe=None,):
-
 
1345
    self.pe = pe
-
 
1346
 
-
 
1347
  def read(self, iprot):
-
 
1348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1350
      return
-
 
1351
    iprot.readStructBegin()
-
 
1352
    while True:
-
 
1353
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1354
      if ftype == TType.STOP:
-
 
1355
        break
-
 
1356
      if fid == 1:
-
 
1357
        if ftype == TType.STRUCT:
-
 
1358
          self.pe = PaymentException()
-
 
1359
          self.pe.read(iprot)
-
 
1360
        else:
-
 
1361
          iprot.skip(ftype)
-
 
1362
      else:
-
 
1363
        iprot.skip(ftype)
-
 
1364
      iprot.readFieldEnd()
-
 
1365
    iprot.readStructEnd()
-
 
1366
 
-
 
1367
  def write(self, oprot):
-
 
1368
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1369
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1370
      return
-
 
1371
    oprot.writeStructBegin('addCallbackUrl_result')
-
 
1372
    if self.pe != None:
-
 
1373
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
-
 
1374
      self.pe.write(oprot)
-
 
1375
      oprot.writeFieldEnd()
-
 
1376
    oprot.writeFieldStop()
-
 
1377
    oprot.writeStructEnd()
-
 
1378
 
-
 
1379
  def __repr__(self):
-
 
1380
    L = ['%s=%r' % (key, value)
-
 
1381
      for key, value in self.__dict__.iteritems()]
-
 
1382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1383
 
-
 
1384
  def __eq__(self, other):
-
 
1385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1386
 
-
 
1387
  def __ne__(self, other):
-
 
1388
    return not (self == other)
-
 
1389
 
-
 
1390
class getCallbackUrl_args:
-
 
1391
  """
-
 
1392
  Attributes:
-
 
1393
   - application_id
-
 
1394
  """
-
 
1395
 
-
 
1396
  thrift_spec = (
-
 
1397
    None, # 0
-
 
1398
    (1, TType.I64, 'application_id', None, None, ), # 1
-
 
1399
  )
-
 
1400
 
-
 
1401
  def __init__(self, application_id=None,):
-
 
1402
    self.application_id = application_id
-
 
1403
 
-
 
1404
  def read(self, iprot):
-
 
1405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1407
      return
-
 
1408
    iprot.readStructBegin()
-
 
1409
    while True:
-
 
1410
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1411
      if ftype == TType.STOP:
-
 
1412
        break
-
 
1413
      if fid == 1:
-
 
1414
        if ftype == TType.I64:
-
 
1415
          self.application_id = iprot.readI64();
-
 
1416
        else:
-
 
1417
          iprot.skip(ftype)
-
 
1418
      else:
-
 
1419
        iprot.skip(ftype)
-
 
1420
      iprot.readFieldEnd()
-
 
1421
    iprot.readStructEnd()
-
 
1422
 
-
 
1423
  def write(self, oprot):
-
 
1424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1426
      return
-
 
1427
    oprot.writeStructBegin('getCallbackUrl_args')
-
 
1428
    if self.application_id != None:
-
 
1429
      oprot.writeFieldBegin('application_id', TType.I64, 1)
-
 
1430
      oprot.writeI64(self.application_id)
-
 
1431
      oprot.writeFieldEnd()
-
 
1432
    oprot.writeFieldStop()
-
 
1433
    oprot.writeStructEnd()
-
 
1434
 
-
 
1435
  def __repr__(self):
-
 
1436
    L = ['%s=%r' % (key, value)
-
 
1437
      for key, value in self.__dict__.iteritems()]
-
 
1438
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1439
 
-
 
1440
  def __eq__(self, other):
-
 
1441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1442
 
-
 
1443
  def __ne__(self, other):
-
 
1444
    return not (self == other)
-
 
1445
 
-
 
1446
class getCallbackUrl_result:
-
 
1447
  """
-
 
1448
  Attributes:
-
 
1449
   - pe
-
 
1450
  """
-
 
1451
 
-
 
1452
  thrift_spec = (
-
 
1453
    None, # 0
-
 
1454
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
-
 
1455
  )
-
 
1456
 
-
 
1457
  def __init__(self, pe=None,):
-
 
1458
    self.pe = pe
-
 
1459
 
-
 
1460
  def read(self, iprot):
-
 
1461
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1462
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1463
      return
-
 
1464
    iprot.readStructBegin()
-
 
1465
    while True:
-
 
1466
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1467
      if ftype == TType.STOP:
-
 
1468
        break
-
 
1469
      if fid == 1:
-
 
1470
        if ftype == TType.STRUCT:
-
 
1471
          self.pe = PaymentException()
-
 
1472
          self.pe.read(iprot)
-
 
1473
        else:
-
 
1474
          iprot.skip(ftype)
-
 
1475
      else:
-
 
1476
        iprot.skip(ftype)
-
 
1477
      iprot.readFieldEnd()
-
 
1478
    iprot.readStructEnd()
-
 
1479
 
-
 
1480
  def write(self, oprot):
-
 
1481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1483
      return
-
 
1484
    oprot.writeStructBegin('getCallbackUrl_result')
-
 
1485
    if self.pe != None:
-
 
1486
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
-
 
1487
      self.pe.write(oprot)
-
 
1488
      oprot.writeFieldEnd()
-
 
1489
    oprot.writeFieldStop()
-
 
1490
    oprot.writeStructEnd()
-
 
1491
 
-
 
1492
  def __repr__(self):
-
 
1493
    L = ['%s=%r' % (key, value)
-
 
1494
      for key, value in self.__dict__.iteritems()]
-
 
1495
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1496
 
-
 
1497
  def __eq__(self, other):
-
 
1498
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1499
 
-
 
1500
  def __ne__(self, other):
-
 
1501
    return not (self == other)
-
 
1502
 
-
 
1503
class getPaymentsForUser_args:
691
class getPaymentsForUser_args:
1504
  """
692
  """
1505
  Attributes:
693
  Attributes:
1506
   - userId
694
   - userId
1507
   - from_time
695
   - fromTime
1508
   - to_time
696
   - toTime
1509
   - status
697
   - status
1510
   - gateway_id
698
   - gatewayId
1511
  """
699
  """
1512
 
700
 
1513
  thrift_spec = (
701
  thrift_spec = (
1514
    None, # 0
702
    None, # 0
1515
    (1, TType.I64, 'userId', None, None, ), # 1
703
    (1, TType.I64, 'userId', None, None, ), # 1
1516
    (2, TType.I64, 'from_time', None, None, ), # 2
704
    (2, TType.I64, 'fromTime', None, None, ), # 2
1517
    (3, TType.I64, 'to_time', None, None, ), # 3
705
    (3, TType.I64, 'toTime', None, None, ), # 3
1518
    (4, TType.I32, 'status', None, None, ), # 4
706
    (4, TType.I32, 'status', None, None, ), # 4
1519
    (5, TType.I64, 'gateway_id', None, None, ), # 5
707
    (5, TType.I64, 'gatewayId', None, None, ), # 5
1520
  )
708
  )
1521
 
709
 
1522
  def __init__(self, userId=None, from_time=None, to_time=None, status=None, gateway_id=None,):
710
  def __init__(self, userId=None, fromTime=None, toTime=None, status=None, gatewayId=None,):
1523
    self.userId = userId
711
    self.userId = userId
1524
    self.from_time = from_time
712
    self.fromTime = fromTime
1525
    self.to_time = to_time
713
    self.toTime = toTime
1526
    self.status = status
714
    self.status = status
1527
    self.gateway_id = gateway_id
715
    self.gatewayId = gatewayId
1528
 
716
 
1529
  def read(self, iprot):
717
  def read(self, iprot):
1530
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1531
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1532
      return
720
      return
Line 1540... Line 728...
1540
          self.userId = iprot.readI64();
728
          self.userId = iprot.readI64();
1541
        else:
729
        else:
1542
          iprot.skip(ftype)
730
          iprot.skip(ftype)
1543
      elif fid == 2:
731
      elif fid == 2:
1544
        if ftype == TType.I64:
732
        if ftype == TType.I64:
1545
          self.from_time = iprot.readI64();
733
          self.fromTime = iprot.readI64();
1546
        else:
734
        else:
1547
          iprot.skip(ftype)
735
          iprot.skip(ftype)
1548
      elif fid == 3:
736
      elif fid == 3:
1549
        if ftype == TType.I64:
737
        if ftype == TType.I64:
1550
          self.to_time = iprot.readI64();
738
          self.toTime = iprot.readI64();
1551
        else:
739
        else:
1552
          iprot.skip(ftype)
740
          iprot.skip(ftype)
1553
      elif fid == 4:
741
      elif fid == 4:
1554
        if ftype == TType.I32:
742
        if ftype == TType.I32:
1555
          self.status = iprot.readI32();
743
          self.status = iprot.readI32();
1556
        else:
744
        else:
1557
          iprot.skip(ftype)
745
          iprot.skip(ftype)
1558
      elif fid == 5:
746
      elif fid == 5:
1559
        if ftype == TType.I64:
747
        if ftype == TType.I64:
1560
          self.gateway_id = iprot.readI64();
748
          self.gatewayId = iprot.readI64();
1561
        else:
749
        else:
1562
          iprot.skip(ftype)
750
          iprot.skip(ftype)
1563
      else:
751
      else:
1564
        iprot.skip(ftype)
752
        iprot.skip(ftype)
1565
      iprot.readFieldEnd()
753
      iprot.readFieldEnd()
Line 1572... Line 760...
1572
    oprot.writeStructBegin('getPaymentsForUser_args')
760
    oprot.writeStructBegin('getPaymentsForUser_args')
1573
    if self.userId != None:
761
    if self.userId != None:
1574
      oprot.writeFieldBegin('userId', TType.I64, 1)
762
      oprot.writeFieldBegin('userId', TType.I64, 1)
1575
      oprot.writeI64(self.userId)
763
      oprot.writeI64(self.userId)
1576
      oprot.writeFieldEnd()
764
      oprot.writeFieldEnd()
1577
    if self.from_time != None:
765
    if self.fromTime != None:
1578
      oprot.writeFieldBegin('from_time', TType.I64, 2)
766
      oprot.writeFieldBegin('fromTime', TType.I64, 2)
1579
      oprot.writeI64(self.from_time)
767
      oprot.writeI64(self.fromTime)
1580
      oprot.writeFieldEnd()
768
      oprot.writeFieldEnd()
1581
    if self.to_time != None:
769
    if self.toTime != None:
1582
      oprot.writeFieldBegin('to_time', TType.I64, 3)
770
      oprot.writeFieldBegin('toTime', TType.I64, 3)
1583
      oprot.writeI64(self.to_time)
771
      oprot.writeI64(self.toTime)
1584
      oprot.writeFieldEnd()
772
      oprot.writeFieldEnd()
1585
    if self.status != None:
773
    if self.status != None:
1586
      oprot.writeFieldBegin('status', TType.I32, 4)
774
      oprot.writeFieldBegin('status', TType.I32, 4)
1587
      oprot.writeI32(self.status)
775
      oprot.writeI32(self.status)
1588
      oprot.writeFieldEnd()
776
      oprot.writeFieldEnd()
1589
    if self.gateway_id != None:
777
    if self.gatewayId != None:
1590
      oprot.writeFieldBegin('gateway_id', TType.I64, 5)
778
      oprot.writeFieldBegin('gatewayId', TType.I64, 5)
1591
      oprot.writeI64(self.gateway_id)
779
      oprot.writeI64(self.gatewayId)
1592
      oprot.writeFieldEnd()
780
      oprot.writeFieldEnd()
1593
    oprot.writeFieldStop()
781
    oprot.writeFieldStop()
1594
    oprot.writeStructEnd()
782
    oprot.writeStructEnd()
1595
 
783
 
1596
  def __repr__(self):
784
  def __repr__(self):
Line 1630... Line 818...
1630
      if ftype == TType.STOP:
818
      if ftype == TType.STOP:
1631
        break
819
        break
1632
      if fid == 0:
820
      if fid == 0:
1633
        if ftype == TType.LIST:
821
        if ftype == TType.LIST:
1634
          self.success = []
822
          self.success = []
1635
          (_etype35, _size32) = iprot.readListBegin()
823
          (_etype17, _size14) = iprot.readListBegin()
1636
          for _i36 in xrange(_size32):
824
          for _i18 in xrange(_size14):
1637
            _elem37 = Payment()
825
            _elem19 = Payment()
1638
            _elem37.read(iprot)
826
            _elem19.read(iprot)
1639
            self.success.append(_elem37)
827
            self.success.append(_elem19)
1640
          iprot.readListEnd()
828
          iprot.readListEnd()
1641
        else:
829
        else:
1642
          iprot.skip(ftype)
830
          iprot.skip(ftype)
1643
      elif fid == 1:
831
      elif fid == 1:
1644
        if ftype == TType.STRUCT:
832
        if ftype == TType.STRUCT:
Line 1657... Line 845...
1657
      return
845
      return
1658
    oprot.writeStructBegin('getPaymentsForUser_result')
846
    oprot.writeStructBegin('getPaymentsForUser_result')
1659
    if self.success != None:
847
    if self.success != None:
1660
      oprot.writeFieldBegin('success', TType.LIST, 0)
848
      oprot.writeFieldBegin('success', TType.LIST, 0)
1661
      oprot.writeListBegin(TType.STRUCT, len(self.success))
849
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1662
      for iter38 in self.success:
850
      for iter20 in self.success:
1663
        iter38.write(oprot)
851
        iter20.write(oprot)
1664
      oprot.writeListEnd()
-
 
1665
      oprot.writeFieldEnd()
-
 
1666
    if self.pe != None:
-
 
1667
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
-
 
1668
      self.pe.write(oprot)
-
 
1669
      oprot.writeFieldEnd()
-
 
1670
    oprot.writeFieldStop()
-
 
1671
    oprot.writeStructEnd()
-
 
1672
 
-
 
1673
  def __repr__(self):
-
 
1674
    L = ['%s=%r' % (key, value)
-
 
1675
      for key, value in self.__dict__.iteritems()]
-
 
1676
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1677
 
-
 
1678
  def __eq__(self, other):
-
 
1679
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1680
 
-
 
1681
  def __ne__(self, other):
-
 
1682
    return not (self == other)
-
 
1683
 
-
 
1684
class getPaymentsForCart_args:
-
 
1685
  """
-
 
1686
  Attributes:
-
 
1687
   - cartId
-
 
1688
   - from_time
-
 
1689
   - to_time
-
 
1690
   - status
-
 
1691
   - gateway_id
-
 
1692
  """
-
 
1693
 
-
 
1694
  thrift_spec = (
-
 
1695
    None, # 0
-
 
1696
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
1697
    (2, TType.I64, 'from_time', None, None, ), # 2
-
 
1698
    (3, TType.I64, 'to_time', None, None, ), # 3
-
 
1699
    (4, TType.I32, 'status', None, None, ), # 4
-
 
1700
    (5, TType.I64, 'gateway_id', None, None, ), # 5
-
 
1701
  )
-
 
1702
 
-
 
1703
  def __init__(self, cartId=None, from_time=None, to_time=None, status=None, gateway_id=None,):
-
 
1704
    self.cartId = cartId
-
 
1705
    self.from_time = from_time
-
 
1706
    self.to_time = to_time
-
 
1707
    self.status = status
-
 
1708
    self.gateway_id = gateway_id
-
 
1709
 
-
 
1710
  def read(self, iprot):
-
 
1711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1713
      return
-
 
1714
    iprot.readStructBegin()
-
 
1715
    while True:
-
 
1716
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1717
      if ftype == TType.STOP:
-
 
1718
        break
-
 
1719
      if fid == 1:
-
 
1720
        if ftype == TType.I64:
-
 
1721
          self.cartId = iprot.readI64();
-
 
1722
        else:
-
 
1723
          iprot.skip(ftype)
-
 
1724
      elif fid == 2:
-
 
1725
        if ftype == TType.I64:
-
 
1726
          self.from_time = iprot.readI64();
-
 
1727
        else:
-
 
1728
          iprot.skip(ftype)
-
 
1729
      elif fid == 3:
-
 
1730
        if ftype == TType.I64:
-
 
1731
          self.to_time = iprot.readI64();
-
 
1732
        else:
-
 
1733
          iprot.skip(ftype)
-
 
1734
      elif fid == 4:
-
 
1735
        if ftype == TType.I32:
-
 
1736
          self.status = iprot.readI32();
-
 
1737
        else:
-
 
1738
          iprot.skip(ftype)
-
 
1739
      elif fid == 5:
-
 
1740
        if ftype == TType.I64:
-
 
1741
          self.gateway_id = iprot.readI64();
-
 
1742
        else:
-
 
1743
          iprot.skip(ftype)
-
 
1744
      else:
-
 
1745
        iprot.skip(ftype)
-
 
1746
      iprot.readFieldEnd()
-
 
1747
    iprot.readStructEnd()
-
 
1748
 
-
 
1749
  def write(self, oprot):
-
 
1750
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1751
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1752
      return
-
 
1753
    oprot.writeStructBegin('getPaymentsForCart_args')
-
 
1754
    if self.cartId != None:
-
 
1755
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
1756
      oprot.writeI64(self.cartId)
-
 
1757
      oprot.writeFieldEnd()
-
 
1758
    if self.from_time != None:
-
 
1759
      oprot.writeFieldBegin('from_time', TType.I64, 2)
-
 
1760
      oprot.writeI64(self.from_time)
-
 
1761
      oprot.writeFieldEnd()
-
 
1762
    if self.to_time != None:
-
 
1763
      oprot.writeFieldBegin('to_time', TType.I64, 3)
-
 
1764
      oprot.writeI64(self.to_time)
-
 
1765
      oprot.writeFieldEnd()
-
 
1766
    if self.status != None:
-
 
1767
      oprot.writeFieldBegin('status', TType.I32, 4)
-
 
1768
      oprot.writeI32(self.status)
-
 
1769
      oprot.writeFieldEnd()
-
 
1770
    if self.gateway_id != None:
-
 
1771
      oprot.writeFieldBegin('gateway_id', TType.I64, 5)
-
 
1772
      oprot.writeI64(self.gateway_id)
-
 
1773
      oprot.writeFieldEnd()
-
 
1774
    oprot.writeFieldStop()
-
 
1775
    oprot.writeStructEnd()
-
 
1776
 
-
 
1777
  def __repr__(self):
-
 
1778
    L = ['%s=%r' % (key, value)
-
 
1779
      for key, value in self.__dict__.iteritems()]
-
 
1780
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1781
 
-
 
1782
  def __eq__(self, other):
-
 
1783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1784
 
-
 
1785
  def __ne__(self, other):
-
 
1786
    return not (self == other)
-
 
1787
 
-
 
1788
class getPaymentsForCart_result:
-
 
1789
  """
-
 
1790
  Attributes:
-
 
1791
   - success
-
 
1792
   - pe
-
 
1793
  """
-
 
1794
 
-
 
1795
  thrift_spec = (
-
 
1796
    (0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
-
 
1797
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
-
 
1798
  )
-
 
1799
 
-
 
1800
  def __init__(self, success=None, pe=None,):
-
 
1801
    self.success = success
-
 
1802
    self.pe = pe
-
 
1803
 
-
 
1804
  def read(self, iprot):
-
 
1805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1807
      return
-
 
1808
    iprot.readStructBegin()
-
 
1809
    while True:
-
 
1810
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1811
      if ftype == TType.STOP:
-
 
1812
        break
-
 
1813
      if fid == 0:
-
 
1814
        if ftype == TType.LIST:
-
 
1815
          self.success = []
-
 
1816
          (_etype42, _size39) = iprot.readListBegin()
-
 
1817
          for _i43 in xrange(_size39):
-
 
1818
            _elem44 = Payment()
-
 
1819
            _elem44.read(iprot)
-
 
1820
            self.success.append(_elem44)
-
 
1821
          iprot.readListEnd()
-
 
1822
        else:
-
 
1823
          iprot.skip(ftype)
-
 
1824
      elif fid == 1:
-
 
1825
        if ftype == TType.STRUCT:
-
 
1826
          self.pe = PaymentException()
-
 
1827
          self.pe.read(iprot)
-
 
1828
        else:
-
 
1829
          iprot.skip(ftype)
-
 
1830
      else:
-
 
1831
        iprot.skip(ftype)
-
 
1832
      iprot.readFieldEnd()
-
 
1833
    iprot.readStructEnd()
-
 
1834
 
-
 
1835
  def write(self, oprot):
-
 
1836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1838
      return
-
 
1839
    oprot.writeStructBegin('getPaymentsForCart_result')
-
 
1840
    if self.success != None:
-
 
1841
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
1842
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
1843
      for iter45 in self.success:
-
 
1844
        iter45.write(oprot)
-
 
1845
      oprot.writeListEnd()
852
      oprot.writeListEnd()
1846
      oprot.writeFieldEnd()
853
      oprot.writeFieldEnd()
1847
    if self.pe != None:
854
    if self.pe != None:
1848
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
855
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1849
      self.pe.write(oprot)
856
      self.pe.write(oprot)
Line 1863... Line 870...
1863
    return not (self == other)
870
    return not (self == other)
1864
 
871
 
1865
class getPayments_args:
872
class getPayments_args:
1866
  """
873
  """
1867
  Attributes:
874
  Attributes:
1868
   - from_time
875
   - fromTime
1869
   - to_time
876
   - toTime
1870
   - status
877
   - status
1871
   - gateway_id
878
   - gatewayId
1872
  """
879
  """
1873
 
880
 
1874
  thrift_spec = (
881
  thrift_spec = (
1875
    None, # 0
882
    None, # 0
1876
    (1, TType.I64, 'from_time', None, None, ), # 1
883
    (1, TType.I64, 'fromTime', None, None, ), # 1
1877
    (2, TType.I64, 'to_time', None, None, ), # 2
884
    (2, TType.I64, 'toTime', None, None, ), # 2
1878
    (3, TType.I32, 'status', None, None, ), # 3
885
    (3, TType.I32, 'status', None, None, ), # 3
1879
    (4, TType.I64, 'gateway_id', None, None, ), # 4
886
    (4, TType.I64, 'gatewayId', None, None, ), # 4
1880
  )
887
  )
1881
 
888
 
1882
  def __init__(self, from_time=None, to_time=None, status=None, gateway_id=None,):
889
  def __init__(self, fromTime=None, toTime=None, status=None, gatewayId=None,):
1883
    self.from_time = from_time
890
    self.fromTime = fromTime
1884
    self.to_time = to_time
891
    self.toTime = toTime
1885
    self.status = status
892
    self.status = status
1886
    self.gateway_id = gateway_id
893
    self.gatewayId = gatewayId
1887
 
894
 
1888
  def read(self, iprot):
895
  def read(self, iprot):
1889
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1890
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1891
      return
898
      return
Line 1894... Line 901...
1894
      (fname, ftype, fid) = iprot.readFieldBegin()
901
      (fname, ftype, fid) = iprot.readFieldBegin()
1895
      if ftype == TType.STOP:
902
      if ftype == TType.STOP:
1896
        break
903
        break
1897
      if fid == 1:
904
      if fid == 1:
1898
        if ftype == TType.I64:
905
        if ftype == TType.I64:
1899
          self.from_time = iprot.readI64();
906
          self.fromTime = iprot.readI64();
1900
        else:
907
        else:
1901
          iprot.skip(ftype)
908
          iprot.skip(ftype)
1902
      elif fid == 2:
909
      elif fid == 2:
1903
        if ftype == TType.I64:
910
        if ftype == TType.I64:
1904
          self.to_time = iprot.readI64();
911
          self.toTime = iprot.readI64();
1905
        else:
912
        else:
1906
          iprot.skip(ftype)
913
          iprot.skip(ftype)
1907
      elif fid == 3:
914
      elif fid == 3:
1908
        if ftype == TType.I32:
915
        if ftype == TType.I32:
1909
          self.status = iprot.readI32();
916
          self.status = iprot.readI32();
1910
        else:
917
        else:
1911
          iprot.skip(ftype)
918
          iprot.skip(ftype)
1912
      elif fid == 4:
919
      elif fid == 4:
1913
        if ftype == TType.I64:
920
        if ftype == TType.I64:
1914
          self.gateway_id = iprot.readI64();
921
          self.gatewayId = iprot.readI64();
1915
        else:
922
        else:
1916
          iprot.skip(ftype)
923
          iprot.skip(ftype)
1917
      else:
924
      else:
1918
        iprot.skip(ftype)
925
        iprot.skip(ftype)
1919
      iprot.readFieldEnd()
926
      iprot.readFieldEnd()
Line 1922... Line 929...
1922
  def write(self, oprot):
929
  def write(self, oprot):
1923
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1924
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1925
      return
932
      return
1926
    oprot.writeStructBegin('getPayments_args')
933
    oprot.writeStructBegin('getPayments_args')
1927
    if self.from_time != None:
934
    if self.fromTime != None:
1928
      oprot.writeFieldBegin('from_time', TType.I64, 1)
935
      oprot.writeFieldBegin('fromTime', TType.I64, 1)
1929
      oprot.writeI64(self.from_time)
936
      oprot.writeI64(self.fromTime)
1930
      oprot.writeFieldEnd()
937
      oprot.writeFieldEnd()
1931
    if self.to_time != None:
938
    if self.toTime != None:
1932
      oprot.writeFieldBegin('to_time', TType.I64, 2)
939
      oprot.writeFieldBegin('toTime', TType.I64, 2)
1933
      oprot.writeI64(self.to_time)
940
      oprot.writeI64(self.toTime)
1934
      oprot.writeFieldEnd()
941
      oprot.writeFieldEnd()
1935
    if self.status != None:
942
    if self.status != None:
1936
      oprot.writeFieldBegin('status', TType.I32, 3)
943
      oprot.writeFieldBegin('status', TType.I32, 3)
1937
      oprot.writeI32(self.status)
944
      oprot.writeI32(self.status)
1938
      oprot.writeFieldEnd()
945
      oprot.writeFieldEnd()
1939
    if self.gateway_id != None:
946
    if self.gatewayId != None:
1940
      oprot.writeFieldBegin('gateway_id', TType.I64, 4)
947
      oprot.writeFieldBegin('gatewayId', TType.I64, 4)
1941
      oprot.writeI64(self.gateway_id)
948
      oprot.writeI64(self.gatewayId)
1942
      oprot.writeFieldEnd()
949
      oprot.writeFieldEnd()
1943
    oprot.writeFieldStop()
950
    oprot.writeFieldStop()
1944
    oprot.writeStructEnd()
951
    oprot.writeStructEnd()
1945
 
952
 
1946
  def __repr__(self):
953
  def __repr__(self):
Line 1980... Line 987...
1980
      if ftype == TType.STOP:
987
      if ftype == TType.STOP:
1981
        break
988
        break
1982
      if fid == 0:
989
      if fid == 0:
1983
        if ftype == TType.LIST:
990
        if ftype == TType.LIST:
1984
          self.success = []
991
          self.success = []
1985
          (_etype49, _size46) = iprot.readListBegin()
992
          (_etype24, _size21) = iprot.readListBegin()
1986
          for _i50 in xrange(_size46):
993
          for _i25 in xrange(_size21):
1987
            _elem51 = Payment()
994
            _elem26 = Payment()
1988
            _elem51.read(iprot)
995
            _elem26.read(iprot)
1989
            self.success.append(_elem51)
996
            self.success.append(_elem26)
1990
          iprot.readListEnd()
997
          iprot.readListEnd()
1991
        else:
998
        else:
1992
          iprot.skip(ftype)
999
          iprot.skip(ftype)
1993
      elif fid == 1:
1000
      elif fid == 1:
1994
        if ftype == TType.STRUCT:
1001
        if ftype == TType.STRUCT:
Line 2007... Line 1014...
2007
      return
1014
      return
2008
    oprot.writeStructBegin('getPayments_result')
1015
    oprot.writeStructBegin('getPayments_result')
2009
    if self.success != None:
1016
    if self.success != None:
2010
      oprot.writeFieldBegin('success', TType.LIST, 0)
1017
      oprot.writeFieldBegin('success', TType.LIST, 0)
2011
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1018
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2012
      for iter52 in self.success:
-
 
2013
        iter52.write(oprot)
-
 
2014
      oprot.writeListEnd()
-
 
2015
      oprot.writeFieldEnd()
-
 
2016
    if self.pe != None:
-
 
2017
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
-
 
2018
      self.pe.write(oprot)
-
 
2019
      oprot.writeFieldEnd()
-
 
2020
    oprot.writeFieldStop()
-
 
2021
    oprot.writeStructEnd()
-
 
2022
 
-
 
2023
  def __repr__(self):
-
 
2024
    L = ['%s=%r' % (key, value)
-
 
2025
      for key, value in self.__dict__.iteritems()]
-
 
2026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2027
 
-
 
2028
  def __eq__(self, other):
-
 
2029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2030
 
-
 
2031
  def __ne__(self, other):
-
 
2032
    return not (self == other)
-
 
2033
 
-
 
2034
class getPaymentForMerchantId_args:
-
 
2035
  """
-
 
2036
  Attributes:
-
 
2037
   - merchant_tx_id
-
 
2038
  """
-
 
2039
 
-
 
2040
  thrift_spec = (
-
 
2041
    None, # 0
-
 
2042
    (1, TType.I64, 'merchant_tx_id', None, None, ), # 1
-
 
2043
  )
-
 
2044
 
-
 
2045
  def __init__(self, merchant_tx_id=None,):
-
 
2046
    self.merchant_tx_id = merchant_tx_id
-
 
2047
 
-
 
2048
  def read(self, iprot):
-
 
2049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2051
      return
-
 
2052
    iprot.readStructBegin()
-
 
2053
    while True:
-
 
2054
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2055
      if ftype == TType.STOP:
-
 
2056
        break
-
 
2057
      if fid == 1:
-
 
2058
        if ftype == TType.I64:
-
 
2059
          self.merchant_tx_id = iprot.readI64();
-
 
2060
        else:
-
 
2061
          iprot.skip(ftype)
-
 
2062
      else:
-
 
2063
        iprot.skip(ftype)
-
 
2064
      iprot.readFieldEnd()
-
 
2065
    iprot.readStructEnd()
-
 
2066
 
-
 
2067
  def write(self, oprot):
-
 
2068
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2069
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2070
      return
-
 
2071
    oprot.writeStructBegin('getPaymentForMerchantId_args')
-
 
2072
    if self.merchant_tx_id != None:
-
 
2073
      oprot.writeFieldBegin('merchant_tx_id', TType.I64, 1)
-
 
2074
      oprot.writeI64(self.merchant_tx_id)
-
 
2075
      oprot.writeFieldEnd()
-
 
2076
    oprot.writeFieldStop()
-
 
2077
    oprot.writeStructEnd()
-
 
2078
 
-
 
2079
  def __repr__(self):
-
 
2080
    L = ['%s=%r' % (key, value)
-
 
2081
      for key, value in self.__dict__.iteritems()]
-
 
2082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2083
 
-
 
2084
  def __eq__(self, other):
-
 
2085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2086
 
-
 
2087
  def __ne__(self, other):
-
 
2088
    return not (self == other)
-
 
2089
 
-
 
2090
class getPaymentForMerchantId_result:
-
 
2091
  """
-
 
2092
  Attributes:
-
 
2093
   - success
-
 
2094
   - pe
-
 
2095
  """
-
 
2096
 
-
 
2097
  thrift_spec = (
-
 
2098
    (0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
-
 
2099
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
-
 
2100
  )
-
 
2101
 
-
 
2102
  def __init__(self, success=None, pe=None,):
-
 
2103
    self.success = success
-
 
2104
    self.pe = pe
-
 
2105
 
-
 
2106
  def read(self, iprot):
-
 
2107
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2108
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2109
      return
-
 
2110
    iprot.readStructBegin()
-
 
2111
    while True:
-
 
2112
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2113
      if ftype == TType.STOP:
-
 
2114
        break
-
 
2115
      if fid == 0:
-
 
2116
        if ftype == TType.LIST:
-
 
2117
          self.success = []
-
 
2118
          (_etype56, _size53) = iprot.readListBegin()
-
 
2119
          for _i57 in xrange(_size53):
-
 
2120
            _elem58 = Payment()
-
 
2121
            _elem58.read(iprot)
-
 
2122
            self.success.append(_elem58)
-
 
2123
          iprot.readListEnd()
-
 
2124
        else:
-
 
2125
          iprot.skip(ftype)
-
 
2126
      elif fid == 1:
-
 
2127
        if ftype == TType.STRUCT:
-
 
2128
          self.pe = PaymentException()
-
 
2129
          self.pe.read(iprot)
-
 
2130
        else:
-
 
2131
          iprot.skip(ftype)
-
 
2132
      else:
-
 
2133
        iprot.skip(ftype)
-
 
2134
      iprot.readFieldEnd()
-
 
2135
    iprot.readStructEnd()
-
 
2136
 
-
 
2137
  def write(self, oprot):
-
 
2138
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2139
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2140
      return
-
 
2141
    oprot.writeStructBegin('getPaymentForMerchantId_result')
-
 
2142
    if self.success != None:
-
 
2143
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
2144
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
2145
      for iter59 in self.success:
1019
      for iter27 in self.success:
2146
        iter59.write(oprot)
1020
        iter27.write(oprot)
2147
      oprot.writeListEnd()
1021
      oprot.writeListEnd()
2148
      oprot.writeFieldEnd()
1022
      oprot.writeFieldEnd()
2149
    if self.pe != None:
1023
    if self.pe != None:
2150
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1024
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2151
      self.pe.write(oprot)
1025
      self.pe.write(oprot)
Line 2162... Line 1036...
2162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2163
 
1037
 
2164
  def __ne__(self, other):
1038
  def __ne__(self, other):
2165
    return not (self == other)
1039
    return not (self == other)
2166
 
1040
 
2167
class changePaymentStatus_args:
1041
class getPaymentGateway_args:
2168
  """
1042
  """
2169
  Attributes:
1043
  Attributes:
2170
   - id
1044
   - id
2171
   - newStatus
-
 
2172
  """
1045
  """
2173
 
1046
 
2174
  thrift_spec = (
1047
  thrift_spec = (
2175
    None, # 0
1048
    None, # 0
2176
    (1, TType.I64, 'id', None, None, ), # 1
1049
    (1, TType.I64, 'id', None, None, ), # 1
2177
    (2, TType.I32, 'newStatus', None, None, ), # 2
-
 
2178
  )
1050
  )
2179
 
1051
 
2180
  def __init__(self, id=None, newStatus=None,):
1052
  def __init__(self, id=None,):
2181
    self.id = id
1053
    self.id = id
2182
    self.newStatus = newStatus
-
 
2183
 
1054
 
2184
  def read(self, iprot):
1055
  def read(self, iprot):
2185
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2186
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2187
      return
1058
      return
Line 2193... Line 1064...
2193
      if fid == 1:
1064
      if fid == 1:
2194
        if ftype == TType.I64:
1065
        if ftype == TType.I64:
2195
          self.id = iprot.readI64();
1066
          self.id = iprot.readI64();
2196
        else:
1067
        else:
2197
          iprot.skip(ftype)
1068
          iprot.skip(ftype)
2198
      elif fid == 2:
-
 
2199
        if ftype == TType.I32:
-
 
2200
          self.newStatus = iprot.readI32();
-
 
2201
        else:
-
 
2202
          iprot.skip(ftype)
-
 
2203
      else:
1069
      else:
2204
        iprot.skip(ftype)
1070
        iprot.skip(ftype)
2205
      iprot.readFieldEnd()
1071
      iprot.readFieldEnd()
2206
    iprot.readStructEnd()
1072
    iprot.readStructEnd()
2207
 
1073
 
2208
  def write(self, oprot):
1074
  def write(self, oprot):
2209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1075
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1076
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2211
      return
1077
      return
2212
    oprot.writeStructBegin('changePaymentStatus_args')
1078
    oprot.writeStructBegin('getPaymentGateway_args')
2213
    if self.id != None:
1079
    if self.id != None:
2214
      oprot.writeFieldBegin('id', TType.I64, 1)
1080
      oprot.writeFieldBegin('id', TType.I64, 1)
2215
      oprot.writeI64(self.id)
1081
      oprot.writeI64(self.id)
2216
      oprot.writeFieldEnd()
1082
      oprot.writeFieldEnd()
2217
    if self.newStatus != None:
-
 
2218
      oprot.writeFieldBegin('newStatus', TType.I32, 2)
-
 
2219
      oprot.writeI32(self.newStatus)
-
 
2220
      oprot.writeFieldEnd()
-
 
2221
    oprot.writeFieldStop()
1083
    oprot.writeFieldStop()
2222
    oprot.writeStructEnd()
1084
    oprot.writeStructEnd()
2223
 
1085
 
2224
  def __repr__(self):
1086
  def __repr__(self):
2225
    L = ['%s=%r' % (key, value)
1087
    L = ['%s=%r' % (key, value)
Line 2230... Line 1092...
2230
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1092
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2231
 
1093
 
2232
  def __ne__(self, other):
1094
  def __ne__(self, other):
2233
    return not (self == other)
1095
    return not (self == other)
2234
 
1096
 
2235
class changePaymentStatus_result:
-
 
2236
  """
-
 
2237
  Attributes:
-
 
2238
   - pe
-
 
2239
  """
-
 
2240
 
-
 
2241
  thrift_spec = (
-
 
2242
    None, # 0
-
 
2243
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
-
 
2244
  )
-
 
2245
 
-
 
2246
  def __init__(self, pe=None,):
-
 
2247
    self.pe = pe
-
 
2248
 
-
 
2249
  def read(self, iprot):
-
 
2250
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2251
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2252
      return
-
 
2253
    iprot.readStructBegin()
-
 
2254
    while True:
-
 
2255
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2256
      if ftype == TType.STOP:
-
 
2257
        break
-
 
2258
      if fid == 1:
-
 
2259
        if ftype == TType.STRUCT:
-
 
2260
          self.pe = PaymentException()
-
 
2261
          self.pe.read(iprot)
-
 
2262
        else:
-
 
2263
          iprot.skip(ftype)
-
 
2264
      else:
-
 
2265
        iprot.skip(ftype)
-
 
2266
      iprot.readFieldEnd()
-
 
2267
    iprot.readStructEnd()
-
 
2268
 
-
 
2269
  def write(self, oprot):
-
 
2270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2272
      return
-
 
2273
    oprot.writeStructBegin('changePaymentStatus_result')
-
 
2274
    if self.pe != None:
-
 
2275
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
-
 
2276
      self.pe.write(oprot)
-
 
2277
      oprot.writeFieldEnd()
-
 
2278
    oprot.writeFieldStop()
-
 
2279
    oprot.writeStructEnd()
-
 
2280
 
-
 
2281
  def __repr__(self):
-
 
2282
    L = ['%s=%r' % (key, value)
-
 
2283
      for key, value in self.__dict__.iteritems()]
-
 
2284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2285
 
-
 
2286
  def __eq__(self, other):
-
 
2287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2288
 
-
 
2289
  def __ne__(self, other):
-
 
2290
    return not (self == other)
-
 
2291
 
-
 
2292
class changePaymentRequestStatus_args:
-
 
2293
  """
-
 
2294
  Attributes:
-
 
2295
   - request_id
-
 
2296
   - requestStatus
-
 
2297
  """
-
 
2298
 
-
 
2299
  thrift_spec = (
-
 
2300
    None, # 0
-
 
2301
    (1, TType.I64, 'request_id', None, None, ), # 1
-
 
2302
    (2, TType.I32, 'requestStatus', None, None, ), # 2
-
 
2303
  )
-
 
2304
 
-
 
2305
  def __init__(self, request_id=None, requestStatus=None,):
-
 
2306
    self.request_id = request_id
-
 
2307
    self.requestStatus = requestStatus
-
 
2308
 
-
 
2309
  def read(self, iprot):
-
 
2310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2312
      return
-
 
2313
    iprot.readStructBegin()
-
 
2314
    while True:
-
 
2315
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2316
      if ftype == TType.STOP:
-
 
2317
        break
-
 
2318
      if fid == 1:
-
 
2319
        if ftype == TType.I64:
-
 
2320
          self.request_id = iprot.readI64();
-
 
2321
        else:
-
 
2322
          iprot.skip(ftype)
-
 
2323
      elif fid == 2:
-
 
2324
        if ftype == TType.I32:
-
 
2325
          self.requestStatus = iprot.readI32();
-
 
2326
        else:
-
 
2327
          iprot.skip(ftype)
-
 
2328
      else:
-
 
2329
        iprot.skip(ftype)
-
 
2330
      iprot.readFieldEnd()
-
 
2331
    iprot.readStructEnd()
-
 
2332
 
-
 
2333
  def write(self, oprot):
-
 
2334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2336
      return
-
 
2337
    oprot.writeStructBegin('changePaymentRequestStatus_args')
-
 
2338
    if self.request_id != None:
-
 
2339
      oprot.writeFieldBegin('request_id', TType.I64, 1)
-
 
2340
      oprot.writeI64(self.request_id)
-
 
2341
      oprot.writeFieldEnd()
-
 
2342
    if self.requestStatus != None:
-
 
2343
      oprot.writeFieldBegin('requestStatus', TType.I32, 2)
-
 
2344
      oprot.writeI32(self.requestStatus)
-
 
2345
      oprot.writeFieldEnd()
-
 
2346
    oprot.writeFieldStop()
-
 
2347
    oprot.writeStructEnd()
-
 
2348
 
-
 
2349
  def __repr__(self):
-
 
2350
    L = ['%s=%r' % (key, value)
-
 
2351
      for key, value in self.__dict__.iteritems()]
-
 
2352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2353
 
-
 
2354
  def __eq__(self, other):
-
 
2355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2356
 
-
 
2357
  def __ne__(self, other):
-
 
2358
    return not (self == other)
-
 
2359
 
-
 
2360
class changePaymentRequestStatus_result:
-
 
2361
  """
-
 
2362
  Attributes:
-
 
2363
   - pe
-
 
2364
  """
-
 
2365
 
-
 
2366
  thrift_spec = (
-
 
2367
    None, # 0
-
 
2368
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
-
 
2369
  )
-
 
2370
 
-
 
2371
  def __init__(self, pe=None,):
-
 
2372
    self.pe = pe
-
 
2373
 
-
 
2374
  def read(self, iprot):
-
 
2375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2377
      return
-
 
2378
    iprot.readStructBegin()
-
 
2379
    while True:
-
 
2380
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2381
      if ftype == TType.STOP:
-
 
2382
        break
-
 
2383
      if fid == 1:
-
 
2384
        if ftype == TType.STRUCT:
-
 
2385
          self.pe = PaymentException()
-
 
2386
          self.pe.read(iprot)
-
 
2387
        else:
-
 
2388
          iprot.skip(ftype)
-
 
2389
      else:
-
 
2390
        iprot.skip(ftype)
-
 
2391
      iprot.readFieldEnd()
-
 
2392
    iprot.readStructEnd()
-
 
2393
 
-
 
2394
  def write(self, oprot):
-
 
2395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2397
      return
-
 
2398
    oprot.writeStructBegin('changePaymentRequestStatus_result')
-
 
2399
    if self.pe != None:
-
 
2400
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
-
 
2401
      self.pe.write(oprot)
-
 
2402
      oprot.writeFieldEnd()
-
 
2403
    oprot.writeFieldStop()
-
 
2404
    oprot.writeStructEnd()
-
 
2405
 
-
 
2406
  def __repr__(self):
-
 
2407
    L = ['%s=%r' % (key, value)
-
 
2408
      for key, value in self.__dict__.iteritems()]
-
 
2409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2410
 
-
 
2411
  def __eq__(self, other):
-
 
2412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2413
 
-
 
2414
  def __ne__(self, other):
-
 
2415
    return not (self == other)
-
 
2416
 
-
 
2417
class getPaymentGateways_args:
-
 
2418
  """
-
 
2419
  Attributes:
-
 
2420
   - status
-
 
2421
  """
-
 
2422
 
-
 
2423
  thrift_spec = (
-
 
2424
    None, # 0
-
 
2425
    (1, TType.I32, 'status', None, None, ), # 1
-
 
2426
  )
-
 
2427
 
-
 
2428
  def __init__(self, status=None,):
-
 
2429
    self.status = status
-
 
2430
 
-
 
2431
  def read(self, iprot):
-
 
2432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2434
      return
-
 
2435
    iprot.readStructBegin()
-
 
2436
    while True:
-
 
2437
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2438
      if ftype == TType.STOP:
-
 
2439
        break
-
 
2440
      if fid == 1:
-
 
2441
        if ftype == TType.I32:
-
 
2442
          self.status = iprot.readI32();
-
 
2443
        else:
-
 
2444
          iprot.skip(ftype)
-
 
2445
      else:
-
 
2446
        iprot.skip(ftype)
-
 
2447
      iprot.readFieldEnd()
-
 
2448
    iprot.readStructEnd()
-
 
2449
 
-
 
2450
  def write(self, oprot):
-
 
2451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2453
      return
-
 
2454
    oprot.writeStructBegin('getPaymentGateways_args')
-
 
2455
    if self.status != None:
-
 
2456
      oprot.writeFieldBegin('status', TType.I32, 1)
-
 
2457
      oprot.writeI32(self.status)
-
 
2458
      oprot.writeFieldEnd()
-
 
2459
    oprot.writeFieldStop()
-
 
2460
    oprot.writeStructEnd()
-
 
2461
 
-
 
2462
  def __repr__(self):
-
 
2463
    L = ['%s=%r' % (key, value)
-
 
2464
      for key, value in self.__dict__.iteritems()]
-
 
2465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2466
 
-
 
2467
  def __eq__(self, other):
-
 
2468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2469
 
-
 
2470
  def __ne__(self, other):
-
 
2471
    return not (self == other)
-
 
2472
 
-
 
2473
class getPaymentGateways_result:
1097
class getPaymentGateway_result:
2474
  """
1098
  """
2475
  Attributes:
1099
  Attributes:
2476
   - success
1100
   - success
2477
   - pe
1101
   - pe
2478
  """
1102
  """
2479
 
1103
 
2480
  thrift_spec = (
1104
  thrift_spec = (
2481
    (0, TType.LIST, 'success', (TType.STRUCT,(PaymentGateway, PaymentGateway.thrift_spec)), None, ), # 0
1105
    (0, TType.STRUCT, 'success', (PaymentGateway, PaymentGateway.thrift_spec), None, ), # 0
2482
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
1106
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
2483
  )
1107
  )
2484
 
1108
 
2485
  def __init__(self, success=None, pe=None,):
1109
  def __init__(self, success=None, pe=None,):
2486
    self.success = success
1110
    self.success = success
Line 2494... Line 1118...
2494
    while True:
1118
    while True:
2495
      (fname, ftype, fid) = iprot.readFieldBegin()
1119
      (fname, ftype, fid) = iprot.readFieldBegin()
2496
      if ftype == TType.STOP:
1120
      if ftype == TType.STOP:
2497
        break
1121
        break
2498
      if fid == 0:
1122
      if fid == 0:
2499
        if ftype == TType.LIST:
1123
        if ftype == TType.STRUCT:
2500
          self.success = []
-
 
2501
          (_etype63, _size60) = iprot.readListBegin()
-
 
2502
          for _i64 in xrange(_size60):
-
 
2503
            _elem65 = PaymentGateway()
1124
          self.success = PaymentGateway()
2504
            _elem65.read(iprot)
-
 
2505
            self.success.append(_elem65)
1125
          self.success.read(iprot)
2506
          iprot.readListEnd()
-
 
2507
        else:
1126
        else:
2508
          iprot.skip(ftype)
1127
          iprot.skip(ftype)
2509
      elif fid == 1:
1128
      elif fid == 1:
2510
        if ftype == TType.STRUCT:
1129
        if ftype == TType.STRUCT:
2511
          self.pe = PaymentException()
1130
          self.pe = PaymentException()
Line 2519... Line 1138...
2519
 
1138
 
2520
  def write(self, oprot):
1139
  def write(self, oprot):
2521
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1140
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2522
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1141
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2523
      return
1142
      return
2524
    oprot.writeStructBegin('getPaymentGateways_result')
1143
    oprot.writeStructBegin('getPaymentGateway_result')
2525
    if self.success != None:
1144
    if self.success != None:
2526
      oprot.writeFieldBegin('success', TType.LIST, 0)
1145
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2527
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
2528
      for iter66 in self.success:
-
 
2529
        iter66.write(oprot)
1146
      self.success.write(oprot)
2530
      oprot.writeListEnd()
-
 
2531
      oprot.writeFieldEnd()
1147
      oprot.writeFieldEnd()
2532
    if self.pe != None:
1148
    if self.pe != None:
2533
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1149
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2534
      self.pe.write(oprot)
1150
      self.pe.write(oprot)
2535
      oprot.writeFieldEnd()
1151
      oprot.writeFieldEnd()
Line 2545... Line 1161...
2545
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1161
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2546
 
1162
 
2547
  def __ne__(self, other):
1163
  def __ne__(self, other):
2548
    return not (self == other)
1164
    return not (self == other)
2549
 
1165
 
2550
class getPaymentGateway_args:
1166
class getPayment_args:
2551
  """
1167
  """
2552
  Attributes:
1168
  Attributes:
2553
   - id
1169
   - id
2554
  """
1170
  """
2555
 
1171
 
Line 2582... Line 1198...
2582
 
1198
 
2583
  def write(self, oprot):
1199
  def write(self, oprot):
2584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1200
    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)))
1201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2586
      return
1202
      return
2587
    oprot.writeStructBegin('getPaymentGateway_args')
1203
    oprot.writeStructBegin('getPayment_args')
2588
    if self.id != None:
1204
    if self.id != None:
2589
      oprot.writeFieldBegin('id', TType.I64, 1)
1205
      oprot.writeFieldBegin('id', TType.I64, 1)
2590
      oprot.writeI64(self.id)
1206
      oprot.writeI64(self.id)
2591
      oprot.writeFieldEnd()
1207
      oprot.writeFieldEnd()
2592
    oprot.writeFieldStop()
1208
    oprot.writeFieldStop()
Line 2601... Line 1217...
2601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2602
 
1218
 
2603
  def __ne__(self, other):
1219
  def __ne__(self, other):
2604
    return not (self == other)
1220
    return not (self == other)
2605
 
1221
 
2606
class getPaymentGateway_result:
1222
class getPayment_result:
2607
  """
1223
  """
2608
  Attributes:
1224
  Attributes:
2609
   - success
1225
   - success
2610
   - pe
1226
   - pe
2611
  """
1227
  """
2612
 
1228
 
2613
  thrift_spec = (
1229
  thrift_spec = (
2614
    (0, TType.STRUCT, 'success', (PaymentGateway, PaymentGateway.thrift_spec), None, ), # 0
1230
    (0, TType.STRUCT, 'success', (Payment, Payment.thrift_spec), None, ), # 0
2615
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
1231
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
2616
  )
1232
  )
2617
 
1233
 
2618
  def __init__(self, success=None, pe=None,):
1234
  def __init__(self, success=None, pe=None,):
2619
    self.success = success
1235
    self.success = success
Line 2628... Line 1244...
2628
      (fname, ftype, fid) = iprot.readFieldBegin()
1244
      (fname, ftype, fid) = iprot.readFieldBegin()
2629
      if ftype == TType.STOP:
1245
      if ftype == TType.STOP:
2630
        break
1246
        break
2631
      if fid == 0:
1247
      if fid == 0:
2632
        if ftype == TType.STRUCT:
1248
        if ftype == TType.STRUCT:
2633
          self.success = PaymentGateway()
1249
          self.success = Payment()
2634
          self.success.read(iprot)
1250
          self.success.read(iprot)
2635
        else:
1251
        else:
2636
          iprot.skip(ftype)
1252
          iprot.skip(ftype)
2637
      elif fid == 1:
1253
      elif fid == 1:
2638
        if ftype == TType.STRUCT:
1254
        if ftype == TType.STRUCT:
Line 2647... Line 1263...
2647
 
1263
 
2648
  def write(self, oprot):
1264
  def write(self, oprot):
2649
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2650
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2651
      return
1267
      return
2652
    oprot.writeStructBegin('getPaymentGateway_result')
1268
    oprot.writeStructBegin('getPayment_result')
2653
    if self.success != None:
1269
    if self.success != None:
2654
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1270
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2655
      self.success.write(oprot)
1271
      self.success.write(oprot)
2656
      oprot.writeFieldEnd()
1272
      oprot.writeFieldEnd()
2657
    if self.pe != None:
1273
    if self.pe != None:
Line 2670... Line 1286...
2670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2671
 
1287
 
2672
  def __ne__(self, other):
1288
  def __ne__(self, other):
2673
    return not (self == other)
1289
    return not (self == other)
2674
 
1290
 
2675
class changeGatewayStatus_args:
1291
class getPaymentForTxnId_args:
2676
  """
1292
  """
2677
  Attributes:
1293
  Attributes:
2678
   - id
1294
   - txnId
2679
   - status
-
 
2680
  """
1295
  """
2681
 
1296
 
2682
  thrift_spec = (
1297
  thrift_spec = (
2683
    None, # 0
1298
    None, # 0
2684
    (1, TType.I64, 'id', None, None, ), # 1
1299
    (1, TType.I64, 'txnId', None, None, ), # 1
2685
    (2, TType.I32, 'status', None, None, ), # 2
-
 
2686
  )
1300
  )
2687
 
1301
 
2688
  def __init__(self, id=None, status=None,):
1302
  def __init__(self, txnId=None,):
2689
    self.id = id
1303
    self.txnId = txnId
2690
    self.status = status
-
 
2691
 
1304
 
2692
  def read(self, iprot):
1305
  def read(self, iprot):
2693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2695
      return
1308
      return
Line 2698... Line 1311...
2698
      (fname, ftype, fid) = iprot.readFieldBegin()
1311
      (fname, ftype, fid) = iprot.readFieldBegin()
2699
      if ftype == TType.STOP:
1312
      if ftype == TType.STOP:
2700
        break
1313
        break
2701
      if fid == 1:
1314
      if fid == 1:
2702
        if ftype == TType.I64:
1315
        if ftype == TType.I64:
2703
          self.id = iprot.readI64();
1316
          self.txnId = iprot.readI64();
2704
        else:
-
 
2705
          iprot.skip(ftype)
-
 
2706
      elif fid == 2:
-
 
2707
        if ftype == TType.I32:
-
 
2708
          self.status = iprot.readI32();
-
 
2709
        else:
1317
        else:
2710
          iprot.skip(ftype)
1318
          iprot.skip(ftype)
2711
      else:
1319
      else:
2712
        iprot.skip(ftype)
1320
        iprot.skip(ftype)
2713
      iprot.readFieldEnd()
1321
      iprot.readFieldEnd()
Line 2715... Line 1323...
2715
 
1323
 
2716
  def write(self, oprot):
1324
  def write(self, oprot):
2717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1325
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1326
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2719
      return
1327
      return
2720
    oprot.writeStructBegin('changeGatewayStatus_args')
1328
    oprot.writeStructBegin('getPaymentForTxnId_args')
2721
    if self.id != None:
1329
    if self.txnId != None:
2722
      oprot.writeFieldBegin('id', TType.I64, 1)
1330
      oprot.writeFieldBegin('txnId', TType.I64, 1)
2723
      oprot.writeI64(self.id)
1331
      oprot.writeI64(self.txnId)
2724
      oprot.writeFieldEnd()
-
 
2725
    if self.status != None:
-
 
2726
      oprot.writeFieldBegin('status', TType.I32, 2)
-
 
2727
      oprot.writeI32(self.status)
-
 
2728
      oprot.writeFieldEnd()
1332
      oprot.writeFieldEnd()
2729
    oprot.writeFieldStop()
1333
    oprot.writeFieldStop()
2730
    oprot.writeStructEnd()
1334
    oprot.writeStructEnd()
2731
 
1335
 
2732
  def __repr__(self):
1336
  def __repr__(self):
Line 2738... Line 1342...
2738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1342
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2739
 
1343
 
2740
  def __ne__(self, other):
1344
  def __ne__(self, other):
2741
    return not (self == other)
1345
    return not (self == other)
2742
 
1346
 
2743
class changeGatewayStatus_result:
-
 
2744
  """
-
 
2745
  Attributes:
-
 
2746
   - pe
-
 
2747
  """
-
 
2748
 
-
 
2749
  thrift_spec = (
-
 
2750
    None, # 0
-
 
2751
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
-
 
2752
  )
-
 
2753
 
-
 
2754
  def __init__(self, pe=None,):
-
 
2755
    self.pe = pe
-
 
2756
 
-
 
2757
  def read(self, iprot):
-
 
2758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2760
      return
-
 
2761
    iprot.readStructBegin()
-
 
2762
    while True:
-
 
2763
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2764
      if ftype == TType.STOP:
-
 
2765
        break
-
 
2766
      if fid == 1:
-
 
2767
        if ftype == TType.STRUCT:
-
 
2768
          self.pe = PaymentException()
-
 
2769
          self.pe.read(iprot)
-
 
2770
        else:
-
 
2771
          iprot.skip(ftype)
-
 
2772
      else:
-
 
2773
        iprot.skip(ftype)
-
 
2774
      iprot.readFieldEnd()
-
 
2775
    iprot.readStructEnd()
-
 
2776
 
-
 
2777
  def write(self, oprot):
-
 
2778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2780
      return
-
 
2781
    oprot.writeStructBegin('changeGatewayStatus_result')
-
 
2782
    if self.pe != None:
-
 
2783
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
-
 
2784
      self.pe.write(oprot)
-
 
2785
      oprot.writeFieldEnd()
-
 
2786
    oprot.writeFieldStop()
-
 
2787
    oprot.writeStructEnd()
-
 
2788
 
-
 
2789
  def __repr__(self):
-
 
2790
    L = ['%s=%r' % (key, value)
-
 
2791
      for key, value in self.__dict__.iteritems()]
-
 
2792
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2793
 
-
 
2794
  def __eq__(self, other):
-
 
2795
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2796
 
-
 
2797
  def __ne__(self, other):
-
 
2798
    return not (self == other)
-
 
2799
 
-
 
2800
class getPayment_args:
-
 
2801
  """
-
 
2802
  Attributes:
-
 
2803
   - id
-
 
2804
  """
-
 
2805
 
-
 
2806
  thrift_spec = (
-
 
2807
    None, # 0
-
 
2808
    (1, TType.I64, 'id', None, None, ), # 1
-
 
2809
  )
-
 
2810
 
-
 
2811
  def __init__(self, id=None,):
-
 
2812
    self.id = id
-
 
2813
 
-
 
2814
  def read(self, iprot):
-
 
2815
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2816
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2817
      return
-
 
2818
    iprot.readStructBegin()
-
 
2819
    while True:
-
 
2820
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2821
      if ftype == TType.STOP:
-
 
2822
        break
-
 
2823
      if fid == 1:
-
 
2824
        if ftype == TType.I64:
-
 
2825
          self.id = iprot.readI64();
-
 
2826
        else:
-
 
2827
          iprot.skip(ftype)
-
 
2828
      else:
-
 
2829
        iprot.skip(ftype)
-
 
2830
      iprot.readFieldEnd()
-
 
2831
    iprot.readStructEnd()
-
 
2832
 
-
 
2833
  def write(self, oprot):
-
 
2834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2836
      return
-
 
2837
    oprot.writeStructBegin('getPayment_args')
-
 
2838
    if self.id != None:
-
 
2839
      oprot.writeFieldBegin('id', TType.I64, 1)
-
 
2840
      oprot.writeI64(self.id)
-
 
2841
      oprot.writeFieldEnd()
-
 
2842
    oprot.writeFieldStop()
-
 
2843
    oprot.writeStructEnd()
-
 
2844
 
-
 
2845
  def __repr__(self):
-
 
2846
    L = ['%s=%r' % (key, value)
-
 
2847
      for key, value in self.__dict__.iteritems()]
-
 
2848
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2849
 
-
 
2850
  def __eq__(self, other):
-
 
2851
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2852
 
-
 
2853
  def __ne__(self, other):
-
 
2854
    return not (self == other)
-
 
2855
 
-
 
2856
class getPayment_result:
1347
class getPaymentForTxnId_result:
2857
  """
1348
  """
2858
  Attributes:
1349
  Attributes:
2859
   - success
1350
   - success
2860
   - pe
1351
   - pe
2861
  """
1352
  """
2862
 
1353
 
2863
  thrift_spec = (
1354
  thrift_spec = (
2864
    (0, TType.STRUCT, 'success', (Payment, Payment.thrift_spec), None, ), # 0
1355
    (0, TType.LIST, 'success', (TType.STRUCT,(Payment, Payment.thrift_spec)), None, ), # 0
2865
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
1356
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
2866
  )
1357
  )
2867
 
1358
 
2868
  def __init__(self, success=None, pe=None,):
1359
  def __init__(self, success=None, pe=None,):
2869
    self.success = success
1360
    self.success = success
Line 2877... Line 1368...
2877
    while True:
1368
    while True:
2878
      (fname, ftype, fid) = iprot.readFieldBegin()
1369
      (fname, ftype, fid) = iprot.readFieldBegin()
2879
      if ftype == TType.STOP:
1370
      if ftype == TType.STOP:
2880
        break
1371
        break
2881
      if fid == 0:
1372
      if fid == 0:
2882
        if ftype == TType.STRUCT:
1373
        if ftype == TType.LIST:
2883
          self.success = Payment()
1374
          self.success = []
-
 
1375
          (_etype31, _size28) = iprot.readListBegin()
-
 
1376
          for _i32 in xrange(_size28):
-
 
1377
            _elem33 = Payment()
-
 
1378
            _elem33.read(iprot)
2884
          self.success.read(iprot)
1379
            self.success.append(_elem33)
-
 
1380
          iprot.readListEnd()
2885
        else:
1381
        else:
2886
          iprot.skip(ftype)
1382
          iprot.skip(ftype)
2887
      elif fid == 1:
1383
      elif fid == 1:
2888
        if ftype == TType.STRUCT:
1384
        if ftype == TType.STRUCT:
2889
          self.pe = PaymentException()
1385
          self.pe = PaymentException()
Line 2897... Line 1393...
2897
 
1393
 
2898
  def write(self, oprot):
1394
  def write(self, oprot):
2899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2901
      return
1397
      return
2902
    oprot.writeStructBegin('getPayment_result')
1398
    oprot.writeStructBegin('getPaymentForTxnId_result')
2903
    if self.success != None:
1399
    if self.success != None:
2904
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1400
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
1401
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
1402
      for iter34 in self.success:
2905
      self.success.write(oprot)
1403
        iter34.write(oprot)
-
 
1404
      oprot.writeListEnd()
2906
      oprot.writeFieldEnd()
1405
      oprot.writeFieldEnd()
2907
    if self.pe != None:
1406
    if self.pe != None:
2908
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1407
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
2909
      self.pe.write(oprot)
1408
      self.pe.write(oprot)
2910
      oprot.writeFieldEnd()
1409
      oprot.writeFieldEnd()
Line 2920... Line 1419...
2920
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2921
 
1420
 
2922
  def __ne__(self, other):
1421
  def __ne__(self, other):
2923
    return not (self == other)
1422
    return not (self == other)
2924
 
1423
 
2925
class addBankDetails_args:
1424
class updatePaymentDetails_args:
2926
  """
1425
  """
2927
  Attributes:
1426
  Attributes:
2928
   - id
1427
   - id
-
 
1428
   - gatewayPaymentId
2929
   - bid
1429
   - sessionId
2930
   - btxid
1430
   - gatewayTxnStatus
2931
   - error_code
1431
   - description
2932
   - session_id
1432
   - gatewayTxnId
2933
   - postdate
1433
   - authCode
2934
   - auth_code
1434
   - referenceCode
2935
   - ref_code
1435
   - errorCode
-
 
1436
   - status
-
 
1437
   - attributes
2936
  """
1438
  """
2937
 
1439
 
2938
  thrift_spec = (
1440
  thrift_spec = (
2939
    None, # 0
1441
    None, # 0
2940
    (1, TType.I64, 'id', None, None, ), # 1
1442
    (1, TType.I64, 'id', None, None, ), # 1
2941
    (2, TType.STRING, 'bid', None, None, ), # 2
1443
    (2, TType.STRING, 'gatewayPaymentId', None, None, ), # 2
2942
    (3, TType.STRING, 'btxid', None, None, ), # 3
1444
    (3, TType.STRING, 'sessionId', None, None, ), # 3
2943
    (4, TType.STRING, 'error_code', None, None, ), # 4
1445
    (4, TType.STRING, 'gatewayTxnStatus', None, None, ), # 4
2944
    (5, TType.STRING, 'session_id', None, None, ), # 5
1446
    (5, TType.STRING, 'description', None, None, ), # 5
2945
    (6, TType.STRING, 'postdate', None, None, ), # 6
1447
    (6, TType.STRING, 'gatewayTxnId', None, None, ), # 6
2946
    (7, TType.STRING, 'auth_code', None, None, ), # 7
1448
    (7, TType.STRING, 'authCode', None, None, ), # 7
2947
    (8, TType.STRING, 'ref_code', None, None, ), # 8
1449
    (8, TType.STRING, 'referenceCode', None, None, ), # 8
-
 
1450
    (9, TType.STRING, 'errorCode', None, None, ), # 9
-
 
1451
    (10, TType.I32, 'status', None, None, ), # 10
-
 
1452
    (11, TType.LIST, 'attributes', (TType.STRUCT,(Attribute, Attribute.thrift_spec)), None, ), # 11
2948
  )
1453
  )
2949
 
1454
 
2950
  def __init__(self, id=None, bid=None, btxid=None, error_code=None, session_id=None, postdate=None, auth_code=None, ref_code=None,):
1455
  def __init__(self, id=None, gatewayPaymentId=None, sessionId=None, gatewayTxnStatus=None, description=None, gatewayTxnId=None, authCode=None, referenceCode=None, errorCode=None, status=None, attributes=None,):
2951
    self.id = id
1456
    self.id = id
-
 
1457
    self.gatewayPaymentId = gatewayPaymentId
2952
    self.bid = bid
1458
    self.sessionId = sessionId
2953
    self.btxid = btxid
1459
    self.gatewayTxnStatus = gatewayTxnStatus
2954
    self.error_code = error_code
1460
    self.description = description
2955
    self.session_id = session_id
1461
    self.gatewayTxnId = gatewayTxnId
2956
    self.postdate = postdate
1462
    self.authCode = authCode
2957
    self.auth_code = auth_code
1463
    self.referenceCode = referenceCode
2958
    self.ref_code = ref_code
1464
    self.errorCode = errorCode
-
 
1465
    self.status = status
-
 
1466
    self.attributes = attributes
2959
 
1467
 
2960
  def read(self, iprot):
1468
  def read(self, iprot):
2961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1469
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1470
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2963
      return
1471
      return
Line 2971... Line 1479...
2971
          self.id = iprot.readI64();
1479
          self.id = iprot.readI64();
2972
        else:
1480
        else:
2973
          iprot.skip(ftype)
1481
          iprot.skip(ftype)
2974
      elif fid == 2:
1482
      elif fid == 2:
2975
        if ftype == TType.STRING:
1483
        if ftype == TType.STRING:
2976
          self.bid = iprot.readString();
1484
          self.gatewayPaymentId = iprot.readString();
2977
        else:
1485
        else:
2978
          iprot.skip(ftype)
1486
          iprot.skip(ftype)
2979
      elif fid == 3:
1487
      elif fid == 3:
2980
        if ftype == TType.STRING:
1488
        if ftype == TType.STRING:
2981
          self.btxid = iprot.readString();
1489
          self.sessionId = iprot.readString();
2982
        else:
1490
        else:
2983
          iprot.skip(ftype)
1491
          iprot.skip(ftype)
2984
      elif fid == 4:
1492
      elif fid == 4:
2985
        if ftype == TType.STRING:
1493
        if ftype == TType.STRING:
2986
          self.error_code = iprot.readString();
1494
          self.gatewayTxnStatus = iprot.readString();
2987
        else:
1495
        else:
2988
          iprot.skip(ftype)
1496
          iprot.skip(ftype)
2989
      elif fid == 5:
1497
      elif fid == 5:
2990
        if ftype == TType.STRING:
1498
        if ftype == TType.STRING:
2991
          self.session_id = iprot.readString();
1499
          self.description = iprot.readString();
2992
        else:
1500
        else:
2993
          iprot.skip(ftype)
1501
          iprot.skip(ftype)
2994
      elif fid == 6:
1502
      elif fid == 6:
2995
        if ftype == TType.STRING:
1503
        if ftype == TType.STRING:
2996
          self.postdate = iprot.readString();
1504
          self.gatewayTxnId = iprot.readString();
2997
        else:
1505
        else:
2998
          iprot.skip(ftype)
1506
          iprot.skip(ftype)
2999
      elif fid == 7:
1507
      elif fid == 7:
3000
        if ftype == TType.STRING:
1508
        if ftype == TType.STRING:
3001
          self.auth_code = iprot.readString();
1509
          self.authCode = iprot.readString();
3002
        else:
1510
        else:
3003
          iprot.skip(ftype)
1511
          iprot.skip(ftype)
3004
      elif fid == 8:
1512
      elif fid == 8:
3005
        if ftype == TType.STRING:
1513
        if ftype == TType.STRING:
-
 
1514
          self.referenceCode = iprot.readString();
-
 
1515
        else:
-
 
1516
          iprot.skip(ftype)
-
 
1517
      elif fid == 9:
-
 
1518
        if ftype == TType.STRING:
3006
          self.ref_code = iprot.readString();
1519
          self.errorCode = iprot.readString();
-
 
1520
        else:
-
 
1521
          iprot.skip(ftype)
-
 
1522
      elif fid == 10:
-
 
1523
        if ftype == TType.I32:
-
 
1524
          self.status = iprot.readI32();
-
 
1525
        else:
-
 
1526
          iprot.skip(ftype)
-
 
1527
      elif fid == 11:
-
 
1528
        if ftype == TType.LIST:
-
 
1529
          self.attributes = []
-
 
1530
          (_etype38, _size35) = iprot.readListBegin()
-
 
1531
          for _i39 in xrange(_size35):
-
 
1532
            _elem40 = Attribute()
-
 
1533
            _elem40.read(iprot)
-
 
1534
            self.attributes.append(_elem40)
-
 
1535
          iprot.readListEnd()
3007
        else:
1536
        else:
3008
          iprot.skip(ftype)
1537
          iprot.skip(ftype)
3009
      else:
1538
      else:
3010
        iprot.skip(ftype)
1539
        iprot.skip(ftype)
3011
      iprot.readFieldEnd()
1540
      iprot.readFieldEnd()
Line 3013... Line 1542...
3013
 
1542
 
3014
  def write(self, oprot):
1543
  def write(self, oprot):
3015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1544
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1545
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3017
      return
1546
      return
3018
    oprot.writeStructBegin('addBankDetails_args')
1547
    oprot.writeStructBegin('updatePaymentDetails_args')
3019
    if self.id != None:
1548
    if self.id != None:
3020
      oprot.writeFieldBegin('id', TType.I64, 1)
1549
      oprot.writeFieldBegin('id', TType.I64, 1)
3021
      oprot.writeI64(self.id)
1550
      oprot.writeI64(self.id)
3022
      oprot.writeFieldEnd()
1551
      oprot.writeFieldEnd()
3023
    if self.bid != None:
1552
    if self.gatewayPaymentId != None:
3024
      oprot.writeFieldBegin('bid', TType.STRING, 2)
1553
      oprot.writeFieldBegin('gatewayPaymentId', TType.STRING, 2)
3025
      oprot.writeString(self.bid)
1554
      oprot.writeString(self.gatewayPaymentId)
3026
      oprot.writeFieldEnd()
1555
      oprot.writeFieldEnd()
3027
    if self.btxid != None:
1556
    if self.sessionId != None:
3028
      oprot.writeFieldBegin('btxid', TType.STRING, 3)
1557
      oprot.writeFieldBegin('sessionId', TType.STRING, 3)
3029
      oprot.writeString(self.btxid)
1558
      oprot.writeString(self.sessionId)
3030
      oprot.writeFieldEnd()
1559
      oprot.writeFieldEnd()
3031
    if self.error_code != None:
1560
    if self.gatewayTxnStatus != None:
3032
      oprot.writeFieldBegin('error_code', TType.STRING, 4)
1561
      oprot.writeFieldBegin('gatewayTxnStatus', TType.STRING, 4)
3033
      oprot.writeString(self.error_code)
1562
      oprot.writeString(self.gatewayTxnStatus)
3034
      oprot.writeFieldEnd()
1563
      oprot.writeFieldEnd()
3035
    if self.session_id != None:
1564
    if self.description != None:
3036
      oprot.writeFieldBegin('session_id', TType.STRING, 5)
1565
      oprot.writeFieldBegin('description', TType.STRING, 5)
3037
      oprot.writeString(self.session_id)
1566
      oprot.writeString(self.description)
3038
      oprot.writeFieldEnd()
1567
      oprot.writeFieldEnd()
3039
    if self.postdate != None:
1568
    if self.gatewayTxnId != None:
3040
      oprot.writeFieldBegin('postdate', TType.STRING, 6)
1569
      oprot.writeFieldBegin('gatewayTxnId', TType.STRING, 6)
3041
      oprot.writeString(self.postdate)
1570
      oprot.writeString(self.gatewayTxnId)
3042
      oprot.writeFieldEnd()
1571
      oprot.writeFieldEnd()
3043
    if self.auth_code != None:
1572
    if self.authCode != None:
3044
      oprot.writeFieldBegin('auth_code', TType.STRING, 7)
1573
      oprot.writeFieldBegin('authCode', TType.STRING, 7)
3045
      oprot.writeString(self.auth_code)
1574
      oprot.writeString(self.authCode)
-
 
1575
      oprot.writeFieldEnd()
-
 
1576
    if self.referenceCode != None:
-
 
1577
      oprot.writeFieldBegin('referenceCode', TType.STRING, 8)
-
 
1578
      oprot.writeString(self.referenceCode)
3046
      oprot.writeFieldEnd()
1579
      oprot.writeFieldEnd()
3047
    if self.ref_code != None:
1580
    if self.errorCode != None:
3048
      oprot.writeFieldBegin('ref_code', TType.STRING, 8)
1581
      oprot.writeFieldBegin('errorCode', TType.STRING, 9)
3049
      oprot.writeString(self.ref_code)
1582
      oprot.writeString(self.errorCode)
-
 
1583
      oprot.writeFieldEnd()
-
 
1584
    if self.status != None:
-
 
1585
      oprot.writeFieldBegin('status', TType.I32, 10)
-
 
1586
      oprot.writeI32(self.status)
-
 
1587
      oprot.writeFieldEnd()
-
 
1588
    if self.attributes != None:
-
 
1589
      oprot.writeFieldBegin('attributes', TType.LIST, 11)
-
 
1590
      oprot.writeListBegin(TType.STRUCT, len(self.attributes))
-
 
1591
      for iter41 in self.attributes:
-
 
1592
        iter41.write(oprot)
-
 
1593
      oprot.writeListEnd()
3050
      oprot.writeFieldEnd()
1594
      oprot.writeFieldEnd()
3051
    oprot.writeFieldStop()
1595
    oprot.writeFieldStop()
3052
    oprot.writeStructEnd()
1596
    oprot.writeStructEnd()
3053
 
1597
 
3054
  def __repr__(self):
1598
  def __repr__(self):
Line 3060... Line 1604...
3060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1604
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3061
 
1605
 
3062
  def __ne__(self, other):
1606
  def __ne__(self, other):
3063
    return not (self == other)
1607
    return not (self == other)
3064
 
1608
 
3065
class addBankDetails_result:
1609
class updatePaymentDetails_result:
3066
  """
1610
  """
3067
  Attributes:
1611
  Attributes:
-
 
1612
   - success
3068
   - pe
1613
   - pe
3069
  """
1614
  """
3070
 
1615
 
3071
  thrift_spec = (
1616
  thrift_spec = (
3072
    None, # 0
1617
    (0, TType.BOOL, 'success', None, None, ), # 0
3073
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
1618
    (1, TType.STRUCT, 'pe', (PaymentException, PaymentException.thrift_spec), None, ), # 1
3074
  )
1619
  )
3075
 
1620
 
3076
  def __init__(self, pe=None,):
1621
  def __init__(self, success=None, pe=None,):
-
 
1622
    self.success = success
3077
    self.pe = pe
1623
    self.pe = pe
3078
 
1624
 
3079
  def read(self, iprot):
1625
  def read(self, iprot):
3080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1626
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1627
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
Line 3083... Line 1629...
3083
    iprot.readStructBegin()
1629
    iprot.readStructBegin()
3084
    while True:
1630
    while True:
3085
      (fname, ftype, fid) = iprot.readFieldBegin()
1631
      (fname, ftype, fid) = iprot.readFieldBegin()
3086
      if ftype == TType.STOP:
1632
      if ftype == TType.STOP:
3087
        break
1633
        break
3088
      if fid == 1:
1634
      if fid == 0:
-
 
1635
        if ftype == TType.BOOL:
-
 
1636
          self.success = iprot.readBool();
-
 
1637
        else:
-
 
1638
          iprot.skip(ftype)
-
 
1639
      elif fid == 1:
3089
        if ftype == TType.STRUCT:
1640
        if ftype == TType.STRUCT:
3090
          self.pe = PaymentException()
1641
          self.pe = PaymentException()
3091
          self.pe.read(iprot)
1642
          self.pe.read(iprot)
3092
        else:
1643
        else:
3093
          iprot.skip(ftype)
1644
          iprot.skip(ftype)
Line 3098... Line 1649...
3098
 
1649
 
3099
  def write(self, oprot):
1650
  def write(self, oprot):
3100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1651
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1652
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3102
      return
1653
      return
3103
    oprot.writeStructBegin('addBankDetails_result')
1654
    oprot.writeStructBegin('updatePaymentDetails_result')
-
 
1655
    if self.success != None:
-
 
1656
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
1657
      oprot.writeBool(self.success)
-
 
1658
      oprot.writeFieldEnd()
3104
    if self.pe != None:
1659
    if self.pe != None:
3105
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
1660
      oprot.writeFieldBegin('pe', TType.STRUCT, 1)
3106
      self.pe.write(oprot)
1661
      self.pe.write(oprot)
3107
      oprot.writeFieldEnd()
1662
      oprot.writeFieldEnd()
3108
    oprot.writeFieldStop()
1663
    oprot.writeFieldStop()