Subversion Repositories SmartDukaan

Rev

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

Rev 6988 Rev 7026
Line 171... Line 171...
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 '  bool changeShippingAddress(i64 orderId, string line1, string line2, string city, string state, string pin)'
175
  print '  string retrieveInvoice(i64 orderId)'
175
  print '  string retrieveInvoice(i64 orderId)'
-
 
176
  print '   receiveUpdatesForRedExpress(string awbNumber)'
176
  print ''
177
  print ''
177
  sys.exit(0)
178
  sys.exit(0)
178
 
179
 
179
pp = pprint.PrettyPrinter(indent = 2)
180
pp = pprint.PrettyPrinter(indent = 2)
180
host = 'localhost'
181
host = 'localhost'
Line 1133... Line 1134...
1133
  if len(args) != 1:
1134
  if len(args) != 1:
1134
    print 'retrieveInvoice requires 1 args'
1135
    print 'retrieveInvoice requires 1 args'
1135
    sys.exit(1)
1136
    sys.exit(1)
1136
  pp.pprint(client.retrieveInvoice(eval(args[0]),))
1137
  pp.pprint(client.retrieveInvoice(eval(args[0]),))
1137
 
1138
 
-
 
1139
elif cmd == 'receiveUpdatesForRedExpress':
-
 
1140
  if len(args) != 1:
-
 
1141
    print 'receiveUpdatesForRedExpress requires 1 args'
-
 
1142
    sys.exit(1)
-
 
1143
  pp.pprint(client.receiveUpdatesForRedExpress(args[0],))
-
 
1144
 
1138
else:
1145
else:
1139
  print 'Unrecognized method %s' % cmd
1146
  print 'Unrecognized method %s' % cmd
1140
  sys.exit(1)
1147
  sys.exit(1)
1141
 
1148
 
1142
transport.close()
1149
transport.close()