Subversion Repositories SmartDukaan

Rev

Rev 23218 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23218 Rev 23446
Line 23... Line 23...
23
  print 'Functions:'
23
  print 'Functions:'
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, i64 stateId)'
29
  print '  string getEmptyAWB(i64 providerId, string logisticsTransactionId)'
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)'
Line 122... Line 122...
122
    print 'getLogisticsEstimationForStore requires 3 args'
122
    print 'getLogisticsEstimationForStore requires 3 args'
123
    sys.exit(1)
123
    sys.exit(1)
124
  pp.pprint(client.getLogisticsEstimationForStore(eval(args[0]),args[1],eval(args[2]),))
124
  pp.pprint(client.getLogisticsEstimationForStore(eval(args[0]),args[1],eval(args[2]),))
125
 
125
 
126
elif cmd == 'getLogisticsInfo':
126
elif cmd == 'getLogisticsInfo':
127
  if len(args) != 4:
127
  if len(args) != 5:
128
    print 'getLogisticsInfo requires 4 args'
128
    print 'getLogisticsInfo requires 5 args'
129
    sys.exit(1)
129
    sys.exit(1)
130
  pp.pprint(client.getLogisticsInfo(args[0],eval(args[1]),eval(args[2]),eval(args[3]),))
130
  pp.pprint(client.getLogisticsInfo(args[0],eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),))
131
 
131
 
132
elif cmd == 'getEmptyAWB':
132
elif cmd == 'getEmptyAWB':
133
  if len(args) != 2:
133
  if len(args) != 2:
134
    print 'getEmptyAWB requires 2 args'
134
    print 'getEmptyAWB requires 2 args'
135
    sys.exit(1)
135
    sys.exit(1)