Subversion Repositories SmartDukaan

Rev

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

Rev 6906 Rev 6985
Line 169... Line 169...
169
  print '   getAvailableEmiSchemes()'
169
  print '   getAvailableEmiSchemes()'
170
  print '   getMiscCharges(i64 transactionId)'
170
  print '   getMiscCharges(i64 transactionId)'
171
  print '  bool refundRechargeOrder(i64 rechargeOrderId)'
171
  print '  bool refundRechargeOrder(i64 rechargeOrderId)'
172
  print '   getPhysicalOrders(i64 fromDate, i64 toDate)'
172
  print '   getPhysicalOrders(i64 fromDate, i64 toDate)'
173
  print '  string getDocument(i64 docType, i64 docSource)'
173
  print '  string getDocument(i64 docType, i64 docSource)'
-
 
174
  print '  bool changeShippingAddress(i64 orderId, string line1, string line2, string city, string state, string pin)'
174
  print ''
175
  print ''
175
  sys.exit(0)
176
  sys.exit(0)
176
 
177
 
177
pp = pprint.PrettyPrinter(indent = 2)
178
pp = pprint.PrettyPrinter(indent = 2)
178
host = 'localhost'
179
host = 'localhost'
Line 1119... Line 1120...
1119
  if len(args) != 2:
1120
  if len(args) != 2:
1120
    print 'getDocument requires 2 args'
1121
    print 'getDocument requires 2 args'
1121
    sys.exit(1)
1122
    sys.exit(1)
1122
  pp.pprint(client.getDocument(eval(args[0]),eval(args[1]),))
1123
  pp.pprint(client.getDocument(eval(args[0]),eval(args[1]),))
1123
 
1124
 
-
 
1125
elif cmd == 'changeShippingAddress':
-
 
1126
  if len(args) != 6:
-
 
1127
    print 'changeShippingAddress requires 6 args'
-
 
1128
    sys.exit(1)
-
 
1129
  pp.pprint(client.changeShippingAddress(eval(args[0]),args[1],args[2],args[3],args[4],args[5],))
-
 
1130
 
1124
else:
1131
else:
1125
  print 'Unrecognized method %s' % cmd
1132
  print 'Unrecognized method %s' % cmd
1126
  sys.exit(1)
1133
  sys.exit(1)
1127
 
1134
 
1128
transport.close()
1135
transport.close()