| Line 27... |
Line 27... |
| 27 |
print ' getTransactionsForShoppingCartId(i64 shoppingCartId)'
|
27 |
print ' getTransactionsForShoppingCartId(i64 shoppingCartId)'
|
| 28 |
print ' TransactionStatus getTransactionStatus(i64 transactionId)'
|
28 |
print ' TransactionStatus getTransactionStatus(i64 transactionId)'
|
| 29 |
print ' bool changeTransactionStatus(i64 transactionId, TransactionStatus status, string description, i64 pickUp, OrderType orderType, OrderSource source)'
|
29 |
print ' bool changeTransactionStatus(i64 transactionId, TransactionStatus status, string description, i64 pickUp, OrderType orderType, OrderSource source)'
|
| 30 |
print ' bool enqueueTransactionInfoEmail(i64 transactionId)'
|
30 |
print ' bool enqueueTransactionInfoEmail(i64 transactionId)'
|
| 31 |
print ' getAllOrders( statuses, i64 from_date, i64 to_date, i64 warehouse_id)'
|
31 |
print ' getAllOrders( statuses, i64 from_date, i64 to_date, i64 warehouse_id)'
|
| 32 |
print ' getOrdersInBatch( statuses, i64 offset, i64 limit, i64 warehouse_id)'
|
32 |
print ' getOrdersInBatch( statuses, i64 offset, i64 limit, i64 warehouse_id, i64 source)'
|
| 33 |
print ' i32 getOrderCount( statuses, i64 warehouseId)'
|
33 |
print ' i32 getOrderCount( statuses, i64 warehouseId, i64 source)'
|
| 34 |
print ' getOrdersByBillingDate(OrderStatus status, i64 start_billing_date, i64 end_billing_date, i64 warehouse_id)'
|
34 |
print ' getOrdersByBillingDate(OrderStatus status, i64 start_billing_date, i64 end_billing_date, i64 warehouse_id)'
|
| 35 |
print ' getOrdersByShippingDate(i64 fromShippingDate, i64 toShippingDate, i64 providerId, i64 warehouseId, bool cod)'
|
35 |
print ' getOrdersByShippingDate(i64 fromShippingDate, i64 toShippingDate, i64 providerId, i64 warehouseId, bool cod)'
|
| 36 |
print ' getReturnableOrdersForCustomer(i64 customer_id, i64 limit)'
|
36 |
print ' getReturnableOrdersForCustomer(i64 customer_id, i64 limit)'
|
| 37 |
print ' getCancellableOrdersForCustomer(i64 customer_id, i64 limit)'
|
37 |
print ' getCancellableOrdersForCustomer(i64 customer_id, i64 limit)'
|
| 38 |
print ' bool changeOrderStatus(i64 orderId, OrderStatus status, string description)'
|
38 |
print ' bool changeOrderStatus(i64 orderId, OrderStatus status, string description)'
|
| Line 227... |
Line 227... |
| 227 |
print ' void updateOrderForEbay(Order order)'
|
227 |
print ' void updateOrderForEbay(Order order)'
|
| 228 |
print ' Order splitEbayOrder(i64 orderId, i64 splitOrderQty, i64 splitOrderItemId, bool usePowerShip)'
|
228 |
print ' Order splitEbayOrder(i64 orderId, i64 splitOrderQty, i64 splitOrderItemId, bool usePowerShip)'
|
| 229 |
print ' void addOrUpdateAmazonFbaSalesSnapshot(AmazonFbaSalesSnapshot amazonfbasalessnapshot)'
|
229 |
print ' void addOrUpdateAmazonFbaSalesSnapshot(AmazonFbaSalesSnapshot amazonfbasalessnapshot)'
|
| 230 |
print ' getAmazonFbaSalesSnapshotForDays(i32 days)'
|
230 |
print ' getAmazonFbaSalesSnapshotForDays(i32 days)'
|
| 231 |
print ' AmazonFbaSalesSnapshot getAmazonFbaSalesLatestSnapshotForItem(i64 item_id)'
|
231 |
print ' AmazonFbaSalesSnapshot getAmazonFbaSalesLatestSnapshotForItem(i64 item_id)'
|
| - |
|
232 |
print ' void createSnapdealOrder(SnapdealOrder snapdealOrder)'
|
| - |
|
233 |
print ' SnapdealOrder getSnapdealOrder(i64 orderId, string referenceCode, i64 subrderId)'
|
| - |
|
234 |
print ' bool snapdealOrderExists(i64 subOrderId, string referenceCode)'
|
| - |
|
235 |
print ' void updateLatestFbaPricesForItem(FbaItemPrices fbaitemprices)'
|
| 232 |
print ''
|
236 |
print ''
|
| 233 |
sys.exit(0)
|
237 |
sys.exit(0)
|
| 234 |
|
238 |
|
| 235 |
pp = pprint.PrettyPrinter(indent = 2)
|
239 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 236 |
host = 'localhost'
|
240 |
host = 'localhost'
|
| Line 326... |
Line 330... |
| 326 |
print 'getAllOrders requires 4 args'
|
330 |
print 'getAllOrders requires 4 args'
|
| 327 |
sys.exit(1)
|
331 |
sys.exit(1)
|
| 328 |
pp.pprint(client.getAllOrders(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),))
|
332 |
pp.pprint(client.getAllOrders(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),))
|
| 329 |
|
333 |
|
| 330 |
elif cmd == 'getOrdersInBatch':
|
334 |
elif cmd == 'getOrdersInBatch':
|
| 331 |
if len(args) != 4:
|
335 |
if len(args) != 5:
|
| 332 |
print 'getOrdersInBatch requires 4 args'
|
336 |
print 'getOrdersInBatch requires 5 args'
|
| 333 |
sys.exit(1)
|
337 |
sys.exit(1)
|
| 334 |
pp.pprint(client.getOrdersInBatch(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),))
|
338 |
pp.pprint(client.getOrdersInBatch(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),))
|
| 335 |
|
339 |
|
| 336 |
elif cmd == 'getOrderCount':
|
340 |
elif cmd == 'getOrderCount':
|
| 337 |
if len(args) != 2:
|
341 |
if len(args) != 3:
|
| 338 |
print 'getOrderCount requires 2 args'
|
342 |
print 'getOrderCount requires 3 args'
|
| 339 |
sys.exit(1)
|
343 |
sys.exit(1)
|
| 340 |
pp.pprint(client.getOrderCount(eval(args[0]),eval(args[1]),))
|
344 |
pp.pprint(client.getOrderCount(eval(args[0]),eval(args[1]),eval(args[2]),))
|
| 341 |
|
345 |
|
| 342 |
elif cmd == 'getOrdersByBillingDate':
|
346 |
elif cmd == 'getOrdersByBillingDate':
|
| 343 |
if len(args) != 4:
|
347 |
if len(args) != 4:
|
| 344 |
print 'getOrdersByBillingDate requires 4 args'
|
348 |
print 'getOrdersByBillingDate requires 4 args'
|
| 345 |
sys.exit(1)
|
349 |
sys.exit(1)
|
| Line 1525... |
Line 1529... |
| 1525 |
if len(args) != 1:
|
1529 |
if len(args) != 1:
|
| 1526 |
print 'getAmazonFbaSalesLatestSnapshotForItem requires 1 args'
|
1530 |
print 'getAmazonFbaSalesLatestSnapshotForItem requires 1 args'
|
| 1527 |
sys.exit(1)
|
1531 |
sys.exit(1)
|
| 1528 |
pp.pprint(client.getAmazonFbaSalesLatestSnapshotForItem(eval(args[0]),))
|
1532 |
pp.pprint(client.getAmazonFbaSalesLatestSnapshotForItem(eval(args[0]),))
|
| 1529 |
|
1533 |
|
| - |
|
1534 |
elif cmd == 'createSnapdealOrder':
|
| - |
|
1535 |
if len(args) != 1:
|
| - |
|
1536 |
print 'createSnapdealOrder requires 1 args'
|
| - |
|
1537 |
sys.exit(1)
|
| - |
|
1538 |
pp.pprint(client.createSnapdealOrder(eval(args[0]),))
|
| - |
|
1539 |
|
| - |
|
1540 |
elif cmd == 'getSnapdealOrder':
|
| - |
|
1541 |
if len(args) != 3:
|
| - |
|
1542 |
print 'getSnapdealOrder requires 3 args'
|
| - |
|
1543 |
sys.exit(1)
|
| - |
|
1544 |
pp.pprint(client.getSnapdealOrder(eval(args[0]),args[1],eval(args[2]),))
|
| - |
|
1545 |
|
| - |
|
1546 |
elif cmd == 'snapdealOrderExists':
|
| - |
|
1547 |
if len(args) != 2:
|
| - |
|
1548 |
print 'snapdealOrderExists requires 2 args'
|
| - |
|
1549 |
sys.exit(1)
|
| - |
|
1550 |
pp.pprint(client.snapdealOrderExists(eval(args[0]),args[1],))
|
| - |
|
1551 |
|
| - |
|
1552 |
elif cmd == 'updateLatestFbaPricesForItem':
|
| - |
|
1553 |
if len(args) != 1:
|
| - |
|
1554 |
print 'updateLatestFbaPricesForItem requires 1 args'
|
| - |
|
1555 |
sys.exit(1)
|
| - |
|
1556 |
pp.pprint(client.updateLatestFbaPricesForItem(eval(args[0]),))
|
| - |
|
1557 |
|
| 1530 |
else:
|
1558 |
else:
|
| 1531 |
print 'Unrecognized method %s' % cmd
|
1559 |
print 'Unrecognized method %s' % cmd
|
| 1532 |
sys.exit(1)
|
1560 |
sys.exit(1)
|
| 1533 |
|
1561 |
|
| 1534 |
transport.close()
|
1562 |
transport.close()
|