| Line 46... |
Line 46... |
| 46 |
print ' string getNewEmptyAwb(i64 providerId, DeliveryType type, i64 orderQuantity)'
|
46 |
print ' string getNewEmptyAwb(i64 providerId, DeliveryType type, i64 orderQuantity)'
|
| 47 |
print ' getProviderLimitDetailsForPincode(i64 providerId, string pincode)'
|
47 |
print ' getProviderLimitDetailsForPincode(i64 providerId, string pincode)'
|
| 48 |
print ' getLocationInfoMap(string destPincode, price)'
|
48 |
print ' getLocationInfoMap(string destPincode, price)'
|
| 49 |
print ' DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(string pincode, double transactionAmount, bool isCod, double weight, i64 billingWarehouseId, bool isCompleteTxn)'
|
49 |
print ' DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(string pincode, double transactionAmount, bool isCod, double weight, i64 billingWarehouseId, bool isCompleteTxn)'
|
| 50 |
print ' BluedartAttributes getBluedartAttributesForLogisticsTxnId(string logisticsTxnId, string name)'
|
50 |
print ' BluedartAttributes getBluedartAttributesForLogisticsTxnId(string logisticsTxnId, string name)'
|
| - |
|
51 |
print ' bool pushCourierDetailsForEcomExpress( logisticsTransactionIds)'
|
| 51 |
print ''
|
52 |
print ''
|
| 52 |
sys.exit(0)
|
53 |
sys.exit(0)
|
| 53 |
|
54 |
|
| 54 |
pp = pprint.PrettyPrinter(indent = 2)
|
55 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 55 |
host = 'localhost'
|
56 |
host = 'localhost'
|
| Line 258... |
Line 259... |
| 258 |
if len(args) != 2:
|
259 |
if len(args) != 2:
|
| 259 |
print 'getBluedartAttributesForLogisticsTxnId requires 2 args'
|
260 |
print 'getBluedartAttributesForLogisticsTxnId requires 2 args'
|
| 260 |
sys.exit(1)
|
261 |
sys.exit(1)
|
| 261 |
pp.pprint(client.getBluedartAttributesForLogisticsTxnId(args[0],args[1],))
|
262 |
pp.pprint(client.getBluedartAttributesForLogisticsTxnId(args[0],args[1],))
|
| 262 |
|
263 |
|
| - |
|
264 |
elif cmd == 'pushCourierDetailsForEcomExpress':
|
| - |
|
265 |
if len(args) != 1:
|
| - |
|
266 |
print 'pushCourierDetailsForEcomExpress requires 1 args'
|
| - |
|
267 |
sys.exit(1)
|
| - |
|
268 |
pp.pprint(client.pushCourierDetailsForEcomExpress(eval(args[0]),))
|
| - |
|
269 |
|
| 263 |
else:
|
270 |
else:
|
| 264 |
print 'Unrecognized method %s' % cmd
|
271 |
print 'Unrecognized method %s' % cmd
|
| 265 |
sys.exit(1)
|
272 |
sys.exit(1)
|
| 266 |
|
273 |
|
| 267 |
transport.close()
|
274 |
transport.close()
|