| Line 53... |
Line 53... |
| 53 |
print ' getValidOrders(i64 limit, bool onlyStore)'
|
53 |
print ' getValidOrders(i64 limit, bool onlyStore)'
|
| 54 |
print ' batchOrders(i64 warehouseId)'
|
54 |
print ' batchOrders(i64 warehouseId)'
|
| 55 |
print ' bool markOrderAsOutOfStock(i64 orderId)'
|
55 |
print ' bool markOrderAsOutOfStock(i64 orderId)'
|
| 56 |
print ' bool verifyOrder(i64 orderId)'
|
56 |
print ' bool verifyOrder(i64 orderId)'
|
| 57 |
print ' bool acceptOrder(i64 orderId)'
|
57 |
print ' bool acceptOrder(i64 orderId)'
|
| 58 |
print ' bool addBillingDetails(i64 orderId, string invoice_number, serialNumber, itemNumber, string billed_by, i64 jacketNumber, i64 billingType, i64 fulfilmentWarehouseId, bool authorize)'
|
58 |
print ' bool addBillingDetails(i64 orderId, string invoice_number, serialNumber, itemNumber, i64 freebieWarehouseId, string billed_by, i64 jacketNumber, i64 billingType, i64 fulfilmentWarehouseId, bool authorize)'
|
| 59 |
print ' void addInvoiceNumber(i64 orderId, string invoiceNumber, string color, string serialNumber, string itemNumber)'
|
59 |
print ' void addInvoiceNumber(i64 orderId, string invoiceNumber, string color, string serialNumber, string itemNumber)'
|
| 60 |
print ' bool markOrdersAsShippedFromWarehouse(i64 warehouseId, i64 providerId, bool cod, orderIds)'
|
60 |
print ' bool markOrdersAsShippedFromWarehouse(i64 warehouseId, i64 providerId, bool cod, orderIds)'
|
| 61 |
print ' bool markOrdersAsReturnedFromStore(i64 providerId, orderIds, awbs)'
|
61 |
print ' bool markOrdersAsReturnedFromStore(i64 providerId, orderIds, awbs)'
|
| 62 |
print ' void markOrdersAsPickedUp(i64 providerId, pickupDetails)'
|
62 |
print ' void markOrdersAsPickedUp(i64 providerId, pickupDetails)'
|
| 63 |
print ' getOrdersNotPickedUp(i64 providerId)'
|
63 |
print ' getOrdersNotPickedUp(i64 providerId)'
|
| Line 180... |
Line 180... |
| 180 |
print ' RechargeTransaction getRechargeTransaction(i64 rechargeId)'
|
180 |
print ' RechargeTransaction getRechargeTransaction(i64 rechargeId)'
|
| 181 |
print ' getFRCs(i64 circleId, i64 operatorId)'
|
181 |
print ' getFRCs(i64 circleId, i64 operatorId)'
|
| 182 |
print ' HotspotStore getHotspotStore(i64 id, string hotspotid)'
|
182 |
print ' HotspotStore getHotspotStore(i64 id, string hotspotid)'
|
| 183 |
print ' TelecomCircle getTelecomCircle(i64 id, string code)'
|
183 |
print ' TelecomCircle getTelecomCircle(i64 id, string code)'
|
| 184 |
print ' string retrieveHotspotRechargeInvoice(i64 rechargeId)'
|
184 |
print ' string retrieveHotspotRechargeInvoice(i64 rechargeId)'
|
| - |
|
185 |
print ' Order splitFreebieOrder(i64 orderId, string splitReason, i64 shippingDate)'
|
| 185 |
print ' getRechargeTransactionsByNumber(string number, i64 storeId)'
|
186 |
print ' getRechargeTransactionsByNumber(string number, i64 storeId)'
|
| 186 |
print ' bool updateHotspotStorePassword(i64 storeId, string password)'
|
187 |
print ' bool updateHotspotStorePassword(i64 storeId, string password)'
|
| - |
|
188 |
print ' SourceDetail getSourceDetail(i64 source)'
|
| 187 |
print ''
|
189 |
print ''
|
| 188 |
sys.exit(0)
|
190 |
sys.exit(0)
|
| 189 |
|
191 |
|
| 190 |
pp = pprint.PrettyPrinter(indent = 2)
|
192 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 191 |
host = 'localhost'
|
193 |
host = 'localhost'
|
| Line 437... |
Line 439... |
| 437 |
print 'acceptOrder requires 1 args'
|
439 |
print 'acceptOrder requires 1 args'
|
| 438 |
sys.exit(1)
|
440 |
sys.exit(1)
|
| 439 |
pp.pprint(client.acceptOrder(eval(args[0]),))
|
441 |
pp.pprint(client.acceptOrder(eval(args[0]),))
|
| 440 |
|
442 |
|
| 441 |
elif cmd == 'addBillingDetails':
|
443 |
elif cmd == 'addBillingDetails':
|
| 442 |
if len(args) != 9:
|
444 |
if len(args) != 10:
|
| 443 |
print 'addBillingDetails requires 9 args'
|
445 |
print 'addBillingDetails requires 10 args'
|
| 444 |
sys.exit(1)
|
446 |
sys.exit(1)
|
| 445 |
pp.pprint(client.addBillingDetails(eval(args[0]),args[1],eval(args[2]),eval(args[3]),args[4],eval(args[5]),eval(args[6]),eval(args[7]),eval(args[8]),))
|
447 |
pp.pprint(client.addBillingDetails(eval(args[0]),args[1],eval(args[2]),eval(args[3]),eval(args[4]),args[5],eval(args[6]),eval(args[7]),eval(args[8]),eval(args[9]),))
|
| 446 |
|
448 |
|
| 447 |
elif cmd == 'addInvoiceNumber':
|
449 |
elif cmd == 'addInvoiceNumber':
|
| 448 |
if len(args) != 5:
|
450 |
if len(args) != 5:
|
| 449 |
print 'addInvoiceNumber requires 5 args'
|
451 |
print 'addInvoiceNumber requires 5 args'
|
| 450 |
sys.exit(1)
|
452 |
sys.exit(1)
|
| Line 1198... |
Line 1200... |
| 1198 |
if len(args) != 1:
|
1200 |
if len(args) != 1:
|
| 1199 |
print 'retrieveHotspotRechargeInvoice requires 1 args'
|
1201 |
print 'retrieveHotspotRechargeInvoice requires 1 args'
|
| 1200 |
sys.exit(1)
|
1202 |
sys.exit(1)
|
| 1201 |
pp.pprint(client.retrieveHotspotRechargeInvoice(eval(args[0]),))
|
1203 |
pp.pprint(client.retrieveHotspotRechargeInvoice(eval(args[0]),))
|
| 1202 |
|
1204 |
|
| - |
|
1205 |
elif cmd == 'splitFreebieOrder':
|
| - |
|
1206 |
if len(args) != 3:
|
| - |
|
1207 |
print 'splitFreebieOrder requires 3 args'
|
| - |
|
1208 |
sys.exit(1)
|
| - |
|
1209 |
pp.pprint(client.splitFreebieOrder(eval(args[0]),args[1],eval(args[2]),))
|
| - |
|
1210 |
|
| 1203 |
elif cmd == 'getRechargeTransactionsByNumber':
|
1211 |
elif cmd == 'getRechargeTransactionsByNumber':
|
| 1204 |
if len(args) != 2:
|
1212 |
if len(args) != 2:
|
| 1205 |
print 'getRechargeTransactionsByNumber requires 2 args'
|
1213 |
print 'getRechargeTransactionsByNumber requires 2 args'
|
| 1206 |
sys.exit(1)
|
1214 |
sys.exit(1)
|
| 1207 |
pp.pprint(client.getRechargeTransactionsByNumber(args[0],eval(args[1]),))
|
1215 |
pp.pprint(client.getRechargeTransactionsByNumber(args[0],eval(args[1]),))
|
| Line 1210... |
Line 1218... |
| 1210 |
if len(args) != 2:
|
1218 |
if len(args) != 2:
|
| 1211 |
print 'updateHotspotStorePassword requires 2 args'
|
1219 |
print 'updateHotspotStorePassword requires 2 args'
|
| 1212 |
sys.exit(1)
|
1220 |
sys.exit(1)
|
| 1213 |
pp.pprint(client.updateHotspotStorePassword(eval(args[0]),args[1],))
|
1221 |
pp.pprint(client.updateHotspotStorePassword(eval(args[0]),args[1],))
|
| 1214 |
|
1222 |
|
| - |
|
1223 |
elif cmd == 'getSourceDetail':
|
| - |
|
1224 |
if len(args) != 1:
|
| - |
|
1225 |
print 'getSourceDetail requires 1 args'
|
| - |
|
1226 |
sys.exit(1)
|
| - |
|
1227 |
pp.pprint(client.getSourceDetail(eval(args[0]),))
|
| - |
|
1228 |
|
| 1215 |
else:
|
1229 |
else:
|
| 1216 |
print 'Unrecognized method %s' % cmd
|
1230 |
print 'Unrecognized method %s' % cmd
|
| 1217 |
sys.exit(1)
|
1231 |
sys.exit(1)
|
| 1218 |
|
1232 |
|
| 1219 |
transport.close()
|
1233 |
transport.close()
|