Subversion Repositories SmartDukaan

Rev

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

Rev 4934 Rev 5247
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 getLogisticsInfo(string destination_pincode, i64 item_id, DeliveryType type)'
27
  print '  LogisticsInfo getLogisticsInfo(string destination_pincode, i64 item_id, DeliveryType type)'
28
  print '  string getEmptyAWB(i64 providerId)'
28
  print '  string getEmptyAWB(i64 providerId, DeliveryType type)'
29
  print '   getShipmentInfo(string awb, i64 providerId)'
29
  print '   getShipmentInfo(string awb, i64 providerId)'
30
  print '  string getDestinationCode(i64 providerId, string pinCode)'
30
  print '  string getDestinationCode(i64 providerId, string pinCode)'
31
  print '  i64 getFreeAwbCount(i64 providerId, string type)'
31
  print '  i64 getFreeAwbCount(i64 providerId, string type)'
32
  print '   getHolidays(i64 fromDate, i64 toDate)'
32
  print '   getHolidays(i64 fromDate, i64 toDate)'
33
  print '   getEntityLogisticsEstimation(i64 catalogItemId, string destination_pin, DeliveryType type)'
33
  print '   getEntityLogisticsEstimation(i64 catalogItemId, string destination_pin, DeliveryType type)'
Line 104... Line 104...
104
    print 'getLogisticsInfo requires 3 args'
104
    print 'getLogisticsInfo requires 3 args'
105
    sys.exit(1)
105
    sys.exit(1)
106
  pp.pprint(client.getLogisticsInfo(args[0],eval(args[1]),eval(args[2]),))
106
  pp.pprint(client.getLogisticsInfo(args[0],eval(args[1]),eval(args[2]),))
107
 
107
 
108
elif cmd == 'getEmptyAWB':
108
elif cmd == 'getEmptyAWB':
109
  if len(args) != 1:
109
  if len(args) != 2:
110
    print 'getEmptyAWB requires 1 args'
110
    print 'getEmptyAWB requires 2 args'
111
    sys.exit(1)
111
    sys.exit(1)
112
  pp.pprint(client.getEmptyAWB(eval(args[0]),))
112
  pp.pprint(client.getEmptyAWB(eval(args[0]),eval(args[1]),))
113
 
113
 
114
elif cmd == 'getShipmentInfo':
114
elif cmd == 'getShipmentInfo':
115
  if len(args) != 2:
115
  if len(args) != 2:
116
    print 'getShipmentInfo requires 2 args'
116
    print 'getShipmentInfo requires 2 args'
117
    sys.exit(1)
117
    sys.exit(1)