| Line 24... |
Line 24... |
| 24 |
print ' i64 createTransaction(Transaction transaction)'
|
24 |
print ' i64 createTransaction(Transaction transaction)'
|
| 25 |
print ' Transaction getTransaction(i64 id)'
|
25 |
print ' Transaction getTransaction(i64 id)'
|
| 26 |
print ' getTransactionsForCustomer(i64 customerId, i64 from_date, i64 to_date, TransactionStatus status)'
|
26 |
print ' getTransactionsForCustomer(i64 customerId, i64 from_date, i64 to_date, TransactionStatus status)'
|
| 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, bool selfPickup)'
|
29 |
print ' bool changeTransactionStatus(i64 transactionId, TransactionStatus status, string description, i64 pickUp, OrderType orderType)'
|
| 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)'
|
| 33 |
print ' i32 getOrderCount( statuses, i64 warehouseId)'
|
33 |
print ' i32 getOrderCount( statuses, i64 warehouseId)'
|
| 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)'
|
| Line 134... |
Line 134... |
| 134 |
print ' void updateCODAgent(string agent, i64 orderId)'
|
134 |
print ' void updateCODAgent(string agent, i64 orderId)'
|
| 135 |
print ' void updateOrderAsPaidToVendor(i64 orderId)'
|
135 |
print ' void updateOrderAsPaidToVendor(i64 orderId)'
|
| 136 |
print ' void updateOrderOnlyAsPaidToVendor(i64 orderId)'
|
136 |
print ' void updateOrderOnlyAsPaidToVendor(i64 orderId)'
|
| 137 |
print ' getRefundedOrdersMarkedPaid()'
|
137 |
print ' getRefundedOrdersMarkedPaid()'
|
| 138 |
print ' getAllVerificationAgents(i64 minOrderId, i64 maxOrderId)'
|
138 |
print ' getAllVerificationAgents(i64 minOrderId, i64 maxOrderId)'
|
| - |
|
139 |
print ' getAllAttributesForOrderId(i64 orderId)'
|
| - |
|
140 |
print ' void setOrderAttributeForTransaction(i64 transactionId, Attribute attribute)'
|
| 139 |
print ''
|
141 |
print ''
|
| 140 |
sys.exit(0)
|
142 |
sys.exit(0)
|
| 141 |
|
143 |
|
| 142 |
pp = pprint.PrettyPrinter(indent = 2)
|
144 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 143 |
host = 'localhost'
|
145 |
host = 'localhost'
|
| Line 215... |
Line 217... |
| 215 |
print 'getTransactionStatus requires 1 args'
|
217 |
print 'getTransactionStatus requires 1 args'
|
| 216 |
sys.exit(1)
|
218 |
sys.exit(1)
|
| 217 |
pp.pprint(client.getTransactionStatus(eval(args[0]),))
|
219 |
pp.pprint(client.getTransactionStatus(eval(args[0]),))
|
| 218 |
|
220 |
|
| 219 |
elif cmd == 'changeTransactionStatus':
|
221 |
elif cmd == 'changeTransactionStatus':
|
| 220 |
if len(args) != 4:
|
222 |
if len(args) != 5:
|
| 221 |
print 'changeTransactionStatus requires 4 args'
|
223 |
print 'changeTransactionStatus requires 5 args'
|
| 222 |
sys.exit(1)
|
224 |
sys.exit(1)
|
| 223 |
pp.pprint(client.changeTransactionStatus(eval(args[0]),eval(args[1]),args[2],eval(args[3]),))
|
225 |
pp.pprint(client.changeTransactionStatus(eval(args[0]),eval(args[1]),args[2],eval(args[3]),eval(args[4]),))
|
| 224 |
|
226 |
|
| 225 |
elif cmd == 'enqueueTransactionInfoEmail':
|
227 |
elif cmd == 'enqueueTransactionInfoEmail':
|
| 226 |
if len(args) != 1:
|
228 |
if len(args) != 1:
|
| 227 |
print 'enqueueTransactionInfoEmail requires 1 args'
|
229 |
print 'enqueueTransactionInfoEmail requires 1 args'
|
| 228 |
sys.exit(1)
|
230 |
sys.exit(1)
|
| Line 874... |
Line 876... |
| 874 |
if len(args) != 2:
|
876 |
if len(args) != 2:
|
| 875 |
print 'getAllVerificationAgents requires 2 args'
|
877 |
print 'getAllVerificationAgents requires 2 args'
|
| 876 |
sys.exit(1)
|
878 |
sys.exit(1)
|
| 877 |
pp.pprint(client.getAllVerificationAgents(eval(args[0]),eval(args[1]),))
|
879 |
pp.pprint(client.getAllVerificationAgents(eval(args[0]),eval(args[1]),))
|
| 878 |
|
880 |
|
| - |
|
881 |
elif cmd == 'getAllAttributesForOrderId':
|
| - |
|
882 |
if len(args) != 1:
|
| - |
|
883 |
print 'getAllAttributesForOrderId requires 1 args'
|
| - |
|
884 |
sys.exit(1)
|
| - |
|
885 |
pp.pprint(client.getAllAttributesForOrderId(eval(args[0]),))
|
| - |
|
886 |
|
| - |
|
887 |
elif cmd == 'setOrderAttributeForTransaction':
|
| - |
|
888 |
if len(args) != 2:
|
| - |
|
889 |
print 'setOrderAttributeForTransaction requires 2 args'
|
| - |
|
890 |
sys.exit(1)
|
| - |
|
891 |
pp.pprint(client.setOrderAttributeForTransaction(eval(args[0]),eval(args[1]),))
|
| - |
|
892 |
|
| 879 |
else:
|
893 |
else:
|
| 880 |
print 'Unrecognized method %s' % cmd
|
894 |
print 'Unrecognized method %s' % cmd
|
| 881 |
sys.exit(1)
|
895 |
sys.exit(1)
|
| 882 |
|
896 |
|
| 883 |
transport.close()
|
897 |
transport.close()
|