| Line 37... |
Line 37... |
| 37 |
print ' bool setShippingTracker(i64 transactionId, i64 shippingId, string trackingId, string airwayBillNo, string provider)'
|
37 |
print ' bool setShippingTracker(i64 transactionId, i64 shippingId, string trackingId, string airwayBillNo, string provider)'
|
| 38 |
print ' bool setShippingDate(i64 transactionId, i64 shippingId, i64 timestamp)'
|
38 |
print ' bool setShippingDate(i64 transactionId, i64 shippingId, i64 timestamp)'
|
| 39 |
print ' bool setDeliveryDate(i64 transactionId, i64 shippingid, i64 timestamp)'
|
39 |
print ' bool setDeliveryDate(i64 transactionId, i64 shippingid, i64 timestamp)'
|
| 40 |
print ' bool changeShippingStatus(i64 transactionId, i64 shippingId, ShipmentStatus status, string description)'
|
40 |
print ' bool changeShippingStatus(i64 transactionId, i64 shippingId, ShipmentStatus status, string description)'
|
| 41 |
print ' bool addTrail(i64 transactionId, string description)'
|
41 |
print ' bool addTrail(i64 transactionId, string description)'
|
| - |
|
42 |
print ' getAlerts(i64 transactionId, bool valid)'
|
| - |
|
43 |
print ' void setAlert(i64 transactionId, bool unset, i64 type, string comment)'
|
| - |
|
44 |
print ' ExtraOrderInfo getExtraInfo(i64 transaction_id)'
|
| - |
|
45 |
print ' void setExtraInfo(i64 transaction_id, i64 sku_id, string model, string colour, string vendor)'
|
| 42 |
print ''
|
46 |
print ''
|
| 43 |
sys.exit(0)
|
47 |
sys.exit(0)
|
| 44 |
|
48 |
|
| 45 |
pp = pprint.PrettyPrinter(indent = 2)
|
49 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 46 |
host = 'localhost'
|
50 |
host = 'localhost'
|
| Line 193... |
Line 197... |
| 193 |
if len(args) != 2:
|
197 |
if len(args) != 2:
|
| 194 |
print 'addTrail requires 2 args'
|
198 |
print 'addTrail requires 2 args'
|
| 195 |
sys.exit(1)
|
199 |
sys.exit(1)
|
| 196 |
pp.pprint(client.addTrail(eval(args[0]),args[1],))
|
200 |
pp.pprint(client.addTrail(eval(args[0]),args[1],))
|
| 197 |
|
201 |
|
| - |
|
202 |
elif cmd == 'getAlerts':
|
| - |
|
203 |
if len(args) != 2:
|
| - |
|
204 |
print 'getAlerts requires 2 args'
|
| - |
|
205 |
sys.exit(1)
|
| - |
|
206 |
pp.pprint(client.getAlerts(eval(args[0]),eval(args[1]),))
|
| - |
|
207 |
|
| - |
|
208 |
elif cmd == 'setAlert':
|
| - |
|
209 |
if len(args) != 4:
|
| - |
|
210 |
print 'setAlert requires 4 args'
|
| - |
|
211 |
sys.exit(1)
|
| - |
|
212 |
pp.pprint(client.setAlert(eval(args[0]),eval(args[1]),eval(args[2]),args[3],))
|
| - |
|
213 |
|
| - |
|
214 |
elif cmd == 'getExtraInfo':
|
| - |
|
215 |
if len(args) != 1:
|
| - |
|
216 |
print 'getExtraInfo requires 1 args'
|
| - |
|
217 |
sys.exit(1)
|
| - |
|
218 |
pp.pprint(client.getExtraInfo(eval(args[0]),))
|
| - |
|
219 |
|
| - |
|
220 |
elif cmd == 'setExtraInfo':
|
| - |
|
221 |
if len(args) != 5:
|
| - |
|
222 |
print 'setExtraInfo requires 5 args'
|
| - |
|
223 |
sys.exit(1)
|
| - |
|
224 |
pp.pprint(client.setExtraInfo(eval(args[0]),eval(args[1]),args[2],args[3],args[4],))
|
| - |
|
225 |
|
| 198 |
transport.close()
|
226 |
transport.close()
|