Subversion Repositories SmartDukaan

Rev

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

Rev 6985 Rev 6988
Line 170... Line 170...
170
  print '   getMiscCharges(i64 transactionId)'
170
  print '   getMiscCharges(i64 transactionId)'
171
  print '  bool refundRechargeOrder(i64 rechargeOrderId)'
171
  print '  bool refundRechargeOrder(i64 rechargeOrderId)'
172
  print '   getPhysicalOrders(i64 fromDate, i64 toDate)'
172
  print '   getPhysicalOrders(i64 fromDate, i64 toDate)'
173
  print '  string getDocument(i64 docType, i64 docSource)'
173
  print '  string getDocument(i64 docType, i64 docSource)'
174
  print '  bool changeShippingAddress(i64 orderId, string line1, string line2, string city, string state, string pin)'
174
  print '  bool changeShippingAddress(i64 orderId, string line1, string line2, string city, string state, string pin)'
-
 
175
  print '  string retrieveInvoice(i64 orderId)'
175
  print ''
176
  print ''
176
  sys.exit(0)
177
  sys.exit(0)
177
 
178
 
178
pp = pprint.PrettyPrinter(indent = 2)
179
pp = pprint.PrettyPrinter(indent = 2)
179
host = 'localhost'
180
host = 'localhost'
Line 1126... Line 1127...
1126
  if len(args) != 6:
1127
  if len(args) != 6:
1127
    print 'changeShippingAddress requires 6 args'
1128
    print 'changeShippingAddress requires 6 args'
1128
    sys.exit(1)
1129
    sys.exit(1)
1129
  pp.pprint(client.changeShippingAddress(eval(args[0]),args[1],args[2],args[3],args[4],args[5],))
1130
  pp.pprint(client.changeShippingAddress(eval(args[0]),args[1],args[2],args[3],args[4],args[5],))
1130
 
1131
 
-
 
1132
elif cmd == 'retrieveInvoice':
-
 
1133
  if len(args) != 1:
-
 
1134
    print 'retrieveInvoice requires 1 args'
-
 
1135
    sys.exit(1)
-
 
1136
  pp.pprint(client.retrieveInvoice(eval(args[0]),))
-
 
1137
 
1131
else:
1138
else:
1132
  print 'Unrecognized method %s' % cmd
1139
  print 'Unrecognized method %s' % cmd
1133
  sys.exit(1)
1140
  sys.exit(1)
1134
 
1141
 
1135
transport.close()
1142
transport.close()