Subversion Repositories SmartDukaan

Rev

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

Rev 1730 Rev 3044
Line 23... Line 23...
23
  print 'Functions:'
23
  print 'Functions:'
24
  print '  void closeSession()'
24
  print '  void closeSession()'
25
  print '  Provider getProvider(i64 providerId)'
25
  print '  Provider getProvider(i64 providerId)'
26
  print '   getAllProviders()'
26
  print '   getAllProviders()'
27
  print '  LogisticsInfo getLogisticsEstimation(i64 itemId, string destination_pin)'
27
  print '  LogisticsInfo getLogisticsEstimation(i64 itemId, string destination_pin)'
28
  print '  LogisticsInfo getLogisticsInfo(string destination_pincode, i64 item_id)'
28
  print '  LogisticsInfo getLogisticsInfo(string destination_pincode, i64 item_id, DeliveryType type)'
29
  print '  string getEmptyAWB(i64 providerId)'
29
  print '  string getEmptyAWB(i64 providerId)'
30
  print '   getShipmentInfo(string awb, i64 providerId)'
30
  print '   getShipmentInfo(string awb, i64 providerId)'
31
  print '  string getDestinationCode(i64 providerId, string pinCode)'
31
  print '  string getDestinationCode(i64 providerId, string pinCode)'
32
  print '  i64 getFreeAwbCount(i64 providerId)'
32
  print '  i64 getFreeAwbCount(i64 providerId)'
33
  print '   getHolidays(i64 fromDate, i64 toDate)'
33
  print '   getHolidays(i64 fromDate, i64 toDate)'
Line 102... Line 102...
102
    print 'getLogisticsEstimation requires 2 args'
102
    print 'getLogisticsEstimation requires 2 args'
103
    sys.exit(1)
103
    sys.exit(1)
104
  pp.pprint(client.getLogisticsEstimation(eval(args[0]),args[1],))
104
  pp.pprint(client.getLogisticsEstimation(eval(args[0]),args[1],))
105
 
105
 
106
elif cmd == 'getLogisticsInfo':
106
elif cmd == 'getLogisticsInfo':
107
  if len(args) != 2:
107
  if len(args) != 3:
108
    print 'getLogisticsInfo requires 2 args'
108
    print 'getLogisticsInfo requires 3 args'
109
    sys.exit(1)
109
    sys.exit(1)
110
  pp.pprint(client.getLogisticsInfo(args[0],eval(args[1]),))
110
  pp.pprint(client.getLogisticsInfo(args[0],eval(args[1]),eval(args[2]),))
111
 
111
 
112
elif cmd == 'getEmptyAWB':
112
elif cmd == 'getEmptyAWB':
113
  if len(args) != 1:
113
  if len(args) != 1:
114
    print 'getEmptyAWB requires 1 args'
114
    print 'getEmptyAWB requires 1 args'
115
    sys.exit(1)
115
    sys.exit(1)