Subversion Repositories SmartDukaan

Rev

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

Rev 7075 Rev 7080
Line 173... Line 173...
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 '  bool changeShippingAddress(i64 orderId, string line1, string line2, string city, string state, string pin)'
175
  print '  string retrieveInvoice(i64 orderId, i64 userId)'
175
  print '  string retrieveInvoice(i64 orderId, i64 userId)'
176
  print '   receiveUpdatesForRedExpress(string awbNumber)'
176
  print '   receiveUpdatesForRedExpress(string awbNumber)'
177
  print '  RechargeTransaction createRechargeTransaction(RechargeTransaction thriftRechargeTransaction)'
177
  print '  RechargeTransaction createRechargeTransaction(RechargeTransaction thriftRechargeTransaction)'
-
 
178
  print '  RechargeTransaction getRechargeTransaction(i64 rechargeId)'
-
 
179
  print '   getFRCs(i64 circleId, i64 operatorId)'
178
  print ''
180
  print ''
179
  sys.exit(0)
181
  sys.exit(0)
180
 
182
 
181
pp = pprint.PrettyPrinter(indent = 2)
183
pp = pprint.PrettyPrinter(indent = 2)
182
host = 'localhost'
184
host = 'localhost'
Line 1147... Line 1149...
1147
  if len(args) != 1:
1149
  if len(args) != 1:
1148
    print 'createRechargeTransaction requires 1 args'
1150
    print 'createRechargeTransaction requires 1 args'
1149
    sys.exit(1)
1151
    sys.exit(1)
1150
  pp.pprint(client.createRechargeTransaction(eval(args[0]),))
1152
  pp.pprint(client.createRechargeTransaction(eval(args[0]),))
1151
 
1153
 
-
 
1154
elif cmd == 'getRechargeTransaction':
-
 
1155
  if len(args) != 1:
-
 
1156
    print 'getRechargeTransaction requires 1 args'
-
 
1157
    sys.exit(1)
-
 
1158
  pp.pprint(client.getRechargeTransaction(eval(args[0]),))
-
 
1159
 
-
 
1160
elif cmd == 'getFRCs':
-
 
1161
  if len(args) != 2:
-
 
1162
    print 'getFRCs requires 2 args'
-
 
1163
    sys.exit(1)
-
 
1164
  pp.pprint(client.getFRCs(eval(args[0]),eval(args[1]),))
-
 
1165
 
1152
else:
1166
else:
1153
  print 'Unrecognized method %s' % cmd
1167
  print 'Unrecognized method %s' % cmd
1154
  sys.exit(1)
1168
  sys.exit(1)
1155
 
1169
 
1156
transport.close()
1170
transport.close()