Subversion Repositories SmartDukaan

Rev

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

Rev 3064 Rev 3103
Line 27... Line 27...
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, DeliveryType type)'
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, string type)'
33
  print '   getHolidays(i64 fromDate, i64 toDate)'
33
  print '   getHolidays(i64 fromDate, i64 toDate)'
34
  print '  bool isCodAllowed(string destination_pincode)'
34
  print '  bool isCodAllowed(string destination_pincode)'
35
  print ''
35
  print ''
36
  sys.exit(0)
36
  sys.exit(0)
37
 
37
 
Line 127... Line 127...
127
    print 'getDestinationCode requires 2 args'
127
    print 'getDestinationCode requires 2 args'
128
    sys.exit(1)
128
    sys.exit(1)
129
  pp.pprint(client.getDestinationCode(eval(args[0]),args[1],))
129
  pp.pprint(client.getDestinationCode(eval(args[0]),args[1],))
130
 
130
 
131
elif cmd == 'getFreeAwbCount':
131
elif cmd == 'getFreeAwbCount':
132
  if len(args) != 1:
132
  if len(args) != 2:
133
    print 'getFreeAwbCount requires 1 args'
133
    print 'getFreeAwbCount requires 2 args'
134
    sys.exit(1)
134
    sys.exit(1)
135
  pp.pprint(client.getFreeAwbCount(eval(args[0]),))
135
  pp.pprint(client.getFreeAwbCount(eval(args[0]),args[1],))
136
 
136
 
137
elif cmd == 'getHolidays':
137
elif cmd == 'getHolidays':
138
  if len(args) != 2:
138
  if len(args) != 2:
139
    print 'getHolidays requires 2 args'
139
    print 'getHolidays requires 2 args'
140
    sys.exit(1)
140
    sys.exit(1)