| Line 78... |
Line 78... |
| 78 |
print ' i64 reshipOrder(i64 orderId)'
|
78 |
print ' i64 reshipOrder(i64 orderId)'
|
| 79 |
print ' bool refundOrder(i64 orderId, string refundedBy, string reason)'
|
79 |
print ' bool refundOrder(i64 orderId, string refundedBy, string reason)'
|
| 80 |
print ' getReturnOrders(i64 warehouseId, i64 fromDate, i64 toDate)'
|
80 |
print ' getReturnOrders(i64 warehouseId, i64 fromDate, i64 toDate)'
|
| 81 |
print ' ReturnOrder getReturnOrder(i64 id)'
|
81 |
print ' ReturnOrder getReturnOrder(i64 id)'
|
| 82 |
print ' void processReturn(i64 returnOrderId)'
|
82 |
print ' void processReturn(i64 returnOrderId)'
|
| 83 |
print ' createPurchaseOrder(i64 warehouseId)'
|
- |
|
| 84 |
print ' Order updateWeight(i64 orderId, double weight)'
|
83 |
print ' Order updateWeight(i64 orderId, double weight)'
|
| 85 |
print ' Order changeItem(i64 orderId, i64 itemId)'
|
84 |
print ' Order changeItem(i64 orderId, i64 itemId)'
|
| 86 |
print ' Order shiftToWarehouse(i64 orderId, i64 warehouseId)'
|
85 |
print ' Order shiftToWarehouse(i64 orderId, i64 warehouseId)'
|
| 87 |
print ' bool addDelayReason(i64 orderId, DelayReason delayReason, i64 furtherDelay, string delayReasonText)'
|
86 |
print ' bool addDelayReason(i64 orderId, DelayReason delayReason, i64 furtherDelay, string delayReasonText)'
|
| 88 |
print ' reconcileCodCollection( collectedAmountMap, string xferBy, string xferTxnId, i64 xferDate)'
|
87 |
print ' reconcileCodCollection( collectedAmountMap, string xferBy, string xferTxnId, i64 xferDate)'
|
| Line 114... |
Line 113... |
| 114 |
print ' getEBSSettlementSummaries()'
|
113 |
print ' getEBSSettlementSummaries()'
|
| 115 |
print ' void markEBSSettlementUploaded(i64 settlementId)'
|
114 |
print ' void markEBSSettlementUploaded(i64 settlementId)'
|
| 116 |
print ' i64 getEBSSettlementDate(i64 settlementId)'
|
115 |
print ' i64 getEBSSettlementDate(i64 settlementId)'
|
| 117 |
print ' getSettlementsByDate(i64 settlementDateFrom, i64 settlementDateTo, bool isRefund)'
|
116 |
print ' getSettlementsByDate(i64 settlementDateFrom, i64 settlementDateTo, bool isRefund)'
|
| 118 |
print ' getReshippedOrderIds( orderIds)'
|
117 |
print ' getReshippedOrderIds( orderIds)'
|
| - |
|
118 |
print ' void updateOrdersAsPORaised( itemIdQuantityMap, i64 purchaseOrderId, i64 warehouseId)'
|
| 119 |
print ''
|
119 |
print ''
|
| 120 |
sys.exit(0)
|
120 |
sys.exit(0)
|
| 121 |
|
121 |
|
| 122 |
pp = pprint.PrettyPrinter(indent = 2)
|
122 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 123 |
host = 'localhost'
|
123 |
host = 'localhost'
|
| Line 518... |
Line 518... |
| 518 |
if len(args) != 1:
|
518 |
if len(args) != 1:
|
| 519 |
print 'processReturn requires 1 args'
|
519 |
print 'processReturn requires 1 args'
|
| 520 |
sys.exit(1)
|
520 |
sys.exit(1)
|
| 521 |
pp.pprint(client.processReturn(eval(args[0]),))
|
521 |
pp.pprint(client.processReturn(eval(args[0]),))
|
| 522 |
|
522 |
|
| 523 |
elif cmd == 'createPurchaseOrder':
|
- |
|
| 524 |
if len(args) != 1:
|
- |
|
| 525 |
print 'createPurchaseOrder requires 1 args'
|
- |
|
| 526 |
sys.exit(1)
|
- |
|
| 527 |
pp.pprint(client.createPurchaseOrder(eval(args[0]),))
|
- |
|
| 528 |
|
- |
|
| 529 |
elif cmd == 'updateWeight':
|
523 |
elif cmd == 'updateWeight':
|
| 530 |
if len(args) != 2:
|
524 |
if len(args) != 2:
|
| 531 |
print 'updateWeight requires 2 args'
|
525 |
print 'updateWeight requires 2 args'
|
| 532 |
sys.exit(1)
|
526 |
sys.exit(1)
|
| 533 |
pp.pprint(client.updateWeight(eval(args[0]),eval(args[1]),))
|
527 |
pp.pprint(client.updateWeight(eval(args[0]),eval(args[1]),))
|
| Line 734... |
Line 728... |
| 734 |
if len(args) != 1:
|
728 |
if len(args) != 1:
|
| 735 |
print 'getReshippedOrderIds requires 1 args'
|
729 |
print 'getReshippedOrderIds requires 1 args'
|
| 736 |
sys.exit(1)
|
730 |
sys.exit(1)
|
| 737 |
pp.pprint(client.getReshippedOrderIds(eval(args[0]),))
|
731 |
pp.pprint(client.getReshippedOrderIds(eval(args[0]),))
|
| 738 |
|
732 |
|
| - |
|
733 |
elif cmd == 'updateOrdersAsPORaised':
|
| - |
|
734 |
if len(args) != 3:
|
| - |
|
735 |
print 'updateOrdersAsPORaised requires 3 args'
|
| - |
|
736 |
sys.exit(1)
|
| - |
|
737 |
pp.pprint(client.updateOrdersAsPORaised(eval(args[0]),eval(args[1]),eval(args[2]),))
|
| - |
|
738 |
|
| 739 |
else:
|
739 |
else:
|
| 740 |
print 'Unrecognized method %s' % cmd
|
740 |
print 'Unrecognized method %s' % cmd
|
| 741 |
sys.exit(1)
|
741 |
sys.exit(1)
|
| 742 |
|
742 |
|
| 743 |
transport.close()
|
743 |
transport.close()
|