Subversion Repositories SmartDukaan

Rev

Rev 18577 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18577 Rev 18578
Line 41... Line 41...
41
  print '  bool refundPayment(i64 merchantTxnId, double amount, bool isDigital)'
41
  print '  bool refundPayment(i64 merchantTxnId, double amount, bool isDigital)'
42
  print '  bool partiallyCapturePayment(i64 merchantTxnId, double amount, string xferBy, string xferTxnId, i64 xferDate)'
42
  print '  bool partiallyCapturePayment(i64 merchantTxnId, double amount, string xferBy, string xferTxnId, i64 xferDate)'
43
  print '   getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category)'
43
  print '   getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category)'
44
  print '  void markPaymentAsProcessed(i64 paymentId, ExtraPaymentProcessingType category)'
44
  print '  void markPaymentAsProcessed(i64 paymentId, ExtraPaymentProcessingType category)'
45
  print '  PaymentStatus getPaymentStatusAtGateway(i64 merchantTxnId, double amount, bool isDigital)'
45
  print '  PaymentStatus getPaymentStatusAtGateway(i64 merchantTxnId, double amount, bool isDigital)'
46
  print '  Creditor getCreditorInfo(i64 id, string name)'
-
 
47
  print '  bool updateCreditorInfo(Creditor creditor)'
-
 
48
  print '   getUserSanctionDetails(i64 userId)'
-
 
49
  print '  UserSanction getUserSanctionDetailsForCreditor(i64 userId, i64 creditorId)'
-
 
50
  print '  bool updateUserSanction(UserSanction userSanaction)'
-
 
51
  print '   getCreditHistoryRecordsForTransaction(i64 paymentId, i64 creditorId, string creditTxnType)'
-
 
52
  print '   getCreditHistoryRecordsForUserAndCreditor(i64 userId, string creditTxnType)'
-
 
53
  print '  bool processCreditTransaction(i64 paymentId,  creditTxns)'
-
 
54
  print '   getLoanPayableForUserToCreditor(i64 userId, i64 creditorId, i64 dueDate)'
-
 
55
  print ''
46
  print ''
56
  sys.exit(0)
47
  sys.exit(0)
57
 
48
 
58
pp = pprint.PrettyPrinter(indent = 2)
49
pp = pprint.PrettyPrinter(indent = 2)
59
host = 'localhost'
50
host = 'localhost'
Line 232... Line 223...
232
  if len(args) != 3:
223
  if len(args) != 3:
233
    print 'getPaymentStatusAtGateway requires 3 args'
224
    print 'getPaymentStatusAtGateway requires 3 args'
234
    sys.exit(1)
225
    sys.exit(1)
235
  pp.pprint(client.getPaymentStatusAtGateway(eval(args[0]),eval(args[1]),eval(args[2]),))
226
  pp.pprint(client.getPaymentStatusAtGateway(eval(args[0]),eval(args[1]),eval(args[2]),))
236
 
227
 
237
elif cmd == 'getCreditorInfo':
-
 
238
  if len(args) != 2:
-
 
239
    print 'getCreditorInfo requires 2 args'
-
 
240
    sys.exit(1)
-
 
241
  pp.pprint(client.getCreditorInfo(eval(args[0]),args[1],))
-
 
242
 
-
 
243
elif cmd == 'updateCreditorInfo':
-
 
244
  if len(args) != 1:
-
 
245
    print 'updateCreditorInfo requires 1 args'
-
 
246
    sys.exit(1)
-
 
247
  pp.pprint(client.updateCreditorInfo(eval(args[0]),))
-
 
248
 
-
 
249
elif cmd == 'getUserSanctionDetails':
-
 
250
  if len(args) != 1:
-
 
251
    print 'getUserSanctionDetails requires 1 args'
-
 
252
    sys.exit(1)
-
 
253
  pp.pprint(client.getUserSanctionDetails(eval(args[0]),))
-
 
254
 
-
 
255
elif cmd == 'getUserSanctionDetailsForCreditor':
-
 
256
  if len(args) != 2:
-
 
257
    print 'getUserSanctionDetailsForCreditor requires 2 args'
-
 
258
    sys.exit(1)
-
 
259
  pp.pprint(client.getUserSanctionDetailsForCreditor(eval(args[0]),eval(args[1]),))
-
 
260
 
-
 
261
elif cmd == 'updateUserSanction':
-
 
262
  if len(args) != 1:
-
 
263
    print 'updateUserSanction requires 1 args'
-
 
264
    sys.exit(1)
-
 
265
  pp.pprint(client.updateUserSanction(eval(args[0]),))
-
 
266
 
-
 
267
elif cmd == 'getCreditHistoryRecordsForTransaction':
-
 
268
  if len(args) != 3:
-
 
269
    print 'getCreditHistoryRecordsForTransaction requires 3 args'
-
 
270
    sys.exit(1)
-
 
271
  pp.pprint(client.getCreditHistoryRecordsForTransaction(eval(args[0]),eval(args[1]),args[2],))
-
 
272
 
-
 
273
elif cmd == 'getCreditHistoryRecordsForUserAndCreditor':
-
 
274
  if len(args) != 2:
-
 
275
    print 'getCreditHistoryRecordsForUserAndCreditor requires 2 args'
-
 
276
    sys.exit(1)
-
 
277
  pp.pprint(client.getCreditHistoryRecordsForUserAndCreditor(eval(args[0]),args[1],))
-
 
278
 
-
 
279
elif cmd == 'processCreditTransaction':
-
 
280
  if len(args) != 2:
-
 
281
    print 'processCreditTransaction requires 2 args'
-
 
282
    sys.exit(1)
-
 
283
  pp.pprint(client.processCreditTransaction(eval(args[0]),eval(args[1]),))
-
 
284
 
-
 
285
elif cmd == 'getLoanPayableForUserToCreditor':
-
 
286
  if len(args) != 3:
-
 
287
    print 'getLoanPayableForUserToCreditor requires 3 args'
-
 
288
    sys.exit(1)
-
 
289
  pp.pprint(client.getLoanPayableForUserToCreditor(eval(args[0]),eval(args[1]),eval(args[2]),))
-
 
290
 
-
 
291
else:
228
else:
292
  print 'Unrecognized method %s' % cmd
229
  print 'Unrecognized method %s' % cmd
293
  sys.exit(1)
230
  sys.exit(1)
294
 
231
 
295
transport.close()
232
transport.close()