Subversion Repositories SmartDukaan

Rev

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

Rev 5767 Rev 6524
Line 33... Line 33...
33
  print '   getEntityLogisticsEstimation(i64 catalogItemId, string destination_pin, DeliveryType type)'
33
  print '   getEntityLogisticsEstimation(i64 catalogItemId, string destination_pin, DeliveryType type)'
34
  print '  i64 getProviderForPickupType(i64 pickUp)'
34
  print '  i64 getProviderForPickupType(i64 pickUp)'
35
  print '   getAllPickupStores()'
35
  print '   getAllPickupStores()'
36
  print '  PickupStore getPickupStore(i64 storeId)'
36
  print '  PickupStore getPickupStore(i64 storeId)'
37
  print '  PickupStore getPickupStoreByHotspotId(string hotspotId)'
37
  print '  PickupStore getPickupStoreByHotspotId(string hotspotId)'
-
 
38
  print '  void addPincode(i64 providerId, string pincode, string destCode, bool exp, bool cod, i32 stationType, bool otgAvailable)'
-
 
39
  print '  void updatePincode(i64 providerId, string pincode, bool exp, bool cod, bool otgAvailable)'
38
  print ''
40
  print ''
39
  sys.exit(0)
41
  sys.exit(0)
40
 
42
 
41
pp = pprint.PrettyPrinter(indent = 2)
43
pp = pprint.PrettyPrinter(indent = 2)
42
host = 'localhost'
44
host = 'localhost'
Line 167... Line 169...
167
  if len(args) != 1:
169
  if len(args) != 1:
168
    print 'getPickupStoreByHotspotId requires 1 args'
170
    print 'getPickupStoreByHotspotId requires 1 args'
169
    sys.exit(1)
171
    sys.exit(1)
170
  pp.pprint(client.getPickupStoreByHotspotId(args[0],))
172
  pp.pprint(client.getPickupStoreByHotspotId(args[0],))
171
 
173
 
-
 
174
elif cmd == 'addPincode':
-
 
175
  if len(args) != 7:
-
 
176
    print 'addPincode requires 7 args'
-
 
177
    sys.exit(1)
-
 
178
  pp.pprint(client.addPincode(eval(args[0]),args[1],args[2],eval(args[3]),eval(args[4]),eval(args[5]),eval(args[6]),))
-
 
179
 
-
 
180
elif cmd == 'updatePincode':
-
 
181
  if len(args) != 5:
-
 
182
    print 'updatePincode requires 5 args'
-
 
183
    sys.exit(1)
-
 
184
  pp.pprint(client.updatePincode(eval(args[0]),args[1],eval(args[2]),eval(args[3]),eval(args[4]),))
-
 
185
 
172
else:
186
else:
173
  print 'Unrecognized method %s' % cmd
187
  print 'Unrecognized method %s' % cmd
174
  sys.exit(1)
188
  sys.exit(1)
175
 
189
 
176
transport.close()
190
transport.close()