Subversion Repositories SmartDukaan

Rev

Rev 19474 | Rev 23218 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19474 Rev 23121
Line 24... Line 24...
24
  print '  Provider getProvider(i64 providerId)'
24
  print '  Provider getProvider(i64 providerId)'
25
  print '   getAllProviders()'
25
  print '   getAllProviders()'
26
  print '  LogisticsInfo getLogisticsEstimation(i64 itemId, string destination_pin, DeliveryType type)'
26
  print '  LogisticsInfo getLogisticsEstimation(i64 itemId, string destination_pin, DeliveryType type)'
27
  print '  LogisticsInfo getLogisticsEstimationForStore(i64 itemId, string destination_pin, DeliveryType type)'
27
  print '  LogisticsInfo getLogisticsEstimationForStore(i64 itemId, string destination_pin, DeliveryType type)'
28
  print '  LogisticsInfo getLogisticsInfo(string destination_pincode, i64 item_id, DeliveryType type, PickUpType pickUp)'
28
  print '  LogisticsInfo getLogisticsInfo(string destination_pincode, i64 item_id, DeliveryType type, PickUpType pickUp)'
29
  print '  string getEmptyAWB(i64 providerId, DeliveryType type)'
29
  print '  string getEmptyAWB(i64 providerId, string logisticsTransactionId)'
30
  print '   getShipmentInfo(string awbNumber, i64 providerId)'
30
  print '   getShipmentInfo(string awbNumber, i64 providerId)'
31
  print '  void storeShipmentInfo(AwbUpdate update)'
31
  print '  void storeShipmentInfo(AwbUpdate update)'
32
  print '  string getDestinationCode(i64 providerId, string pinCode)'
32
  print '  string getDestinationCode(i64 providerId, string pinCode)'
33
  print '  i64 getFreeAwbCount(i64 providerId, string type)'
33
  print '  i64 getFreeAwbCount(i64 providerId, string type)'
34
  print '   getHolidays(i64 fromDate, i64 toDate)'
34
  print '   getHolidays(i64 fromDate, i64 toDate)'
Line 38... Line 38...
38
  print '  PickupStore getPickupStore(i64 storeId)'
38
  print '  PickupStore getPickupStore(i64 storeId)'
39
  print '  PickupStore getPickupStoreByHotspotId(string hotspotId)'
39
  print '  PickupStore getPickupStoreByHotspotId(string hotspotId)'
40
  print '  void addPincode(i64 providerId, string pincode, string destCode, bool exp, bool cod, i32 stationType, bool otgAvailable)'
40
  print '  void addPincode(i64 providerId, string pincode, string destCode, bool exp, bool cod, i32 stationType, bool otgAvailable)'
41
  print '  void updatePincode(i64 providerId, string pincode, bool exp, bool cod, bool otgAvailable)'
41
  print '  void updatePincode(i64 providerId, string pincode, bool exp, bool cod, bool otgAvailable)'
42
  print '  bool addNewAwbs(i64 providerId, bool cod,  awbs, i64 awbUsedFor)'
42
  print '  bool addNewAwbs(i64 providerId, bool cod,  awbs, i64 awbUsedFor)'
43
  print '  void runLogisticsLocationInfoUpdate( logisticsLocationInfoList, bool runCompleteUpdate)'
43
  print '  void runLogisticsLocationInfoUpdate( logisticsLocationInfoList, bool runCompleteUpdate, i64 provider)'
44
  print '  i64 adjustDeliveryDays(i64 startDate, i64 days)'
44
  print '  i64 adjustDeliveryDays(i64 startDate, i64 days)'
45
  print '  i64 getFirstDeliveryEstimateForWhLocation(string pincode, i64 whLocation)'
45
  print '  i64 getFirstDeliveryEstimateForWhLocation(string pincode, i64 whLocation)'
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 ''
51
  print ''
51
  sys.exit(0)
52
  sys.exit(0)
52
 
53
 
53
pp = pprint.PrettyPrinter(indent = 2)
54
pp = pprint.PrettyPrinter(indent = 2)
54
host = 'localhost'
55
host = 'localhost'
Line 129... Line 130...
129
 
130
 
130
elif cmd == 'getEmptyAWB':
131
elif cmd == 'getEmptyAWB':
131
  if len(args) != 2:
132
  if len(args) != 2:
132
    print 'getEmptyAWB requires 2 args'
133
    print 'getEmptyAWB requires 2 args'
133
    sys.exit(1)
134
    sys.exit(1)
134
  pp.pprint(client.getEmptyAWB(eval(args[0]),eval(args[1]),))
135
  pp.pprint(client.getEmptyAWB(eval(args[0]),args[1],))
135
 
136
 
136
elif cmd == 'getShipmentInfo':
137
elif cmd == 'getShipmentInfo':
137
  if len(args) != 2:
138
  if len(args) != 2:
138
    print 'getShipmentInfo requires 2 args'
139
    print 'getShipmentInfo requires 2 args'
139
    sys.exit(1)
140
    sys.exit(1)
Line 210... Line 211...
210
    print 'addNewAwbs requires 4 args'
211
    print 'addNewAwbs requires 4 args'
211
    sys.exit(1)
212
    sys.exit(1)
212
  pp.pprint(client.addNewAwbs(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),))
213
  pp.pprint(client.addNewAwbs(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),))
213
 
214
 
214
elif cmd == 'runLogisticsLocationInfoUpdate':
215
elif cmd == 'runLogisticsLocationInfoUpdate':
215
  if len(args) != 2:
216
  if len(args) != 3:
216
    print 'runLogisticsLocationInfoUpdate requires 2 args'
217
    print 'runLogisticsLocationInfoUpdate requires 3 args'
217
    sys.exit(1)
218
    sys.exit(1)
218
  pp.pprint(client.runLogisticsLocationInfoUpdate(eval(args[0]),eval(args[1]),))
219
  pp.pprint(client.runLogisticsLocationInfoUpdate(eval(args[0]),eval(args[1]),eval(args[2]),))
219
 
220
 
220
elif cmd == 'adjustDeliveryDays':
221
elif cmd == 'adjustDeliveryDays':
221
  if len(args) != 2:
222
  if len(args) != 2:
222
    print 'adjustDeliveryDays requires 2 args'
223
    print 'adjustDeliveryDays requires 2 args'
223
    sys.exit(1)
224
    sys.exit(1)
Line 251... Line 252...
251
  if len(args) != 6:
252
  if len(args) != 6:
252
    print 'getCostingAndDeliveryEstimateForPincode requires 6 args'
253
    print 'getCostingAndDeliveryEstimateForPincode requires 6 args'
253
    sys.exit(1)
254
    sys.exit(1)
254
  pp.pprint(client.getCostingAndDeliveryEstimateForPincode(args[0],eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),))
255
  pp.pprint(client.getCostingAndDeliveryEstimateForPincode(args[0],eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),))
255
 
256
 
-
 
257
elif cmd == 'getBluedartAttributesForLogisticsTxnId':
-
 
258
  if len(args) != 2:
-
 
259
    print 'getBluedartAttributesForLogisticsTxnId requires 2 args'
-
 
260
    sys.exit(1)
-
 
261
  pp.pprint(client.getBluedartAttributesForLogisticsTxnId(args[0],args[1],))
-
 
262
 
256
else:
263
else:
257
  print 'Unrecognized method %s' % cmd
264
  print 'Unrecognized method %s' % cmd
258
  sys.exit(1)
265
  sys.exit(1)
259
 
266
 
260
transport.close()
267
transport.close()