| Line 36... |
Line 36... |
| 36 |
print ' i64 getCouponUsageCountByUser(string couponCode, i64 userId)'
|
36 |
print ' i64 getCouponUsageCountByUser(string couponCode, i64 userId)'
|
| 37 |
print ' getActiveCodes(i64 promotionId)'
|
37 |
print ' getActiveCodes(i64 promotionId)'
|
| 38 |
print ' void deleteCoupon(string couponCode)'
|
38 |
print ' void deleteCoupon(string couponCode)'
|
| 39 |
print ' getAllCouponsByPromotionId(i64 promotionId)'
|
39 |
print ' getAllCouponsByPromotionId(i64 promotionId)'
|
| 40 |
print ' getActiveCoupons()'
|
40 |
print ' getActiveCoupons()'
|
| 41 |
print ' string createCoupon(i64 promotionId, string couponCode, string arguments, bool isCod, string prefix)'
|
41 |
print ' string createCoupon(i64 promotionId, i64 couponCategory, string couponCode, string arguments, bool isCod, string prefix)'
|
| 42 |
print ' i64 getSuccessfulPaymentCountForCoupon(string couponCode)'
|
42 |
print ' i64 getSuccessfulPaymentCountForCoupon(string couponCode)'
|
| 43 |
print ' string getRuleDocString(string ruleName)'
|
43 |
print ' string getRuleDocString(string ruleName)'
|
| 44 |
print ' getItemDiscountMap( itemIds)'
|
44 |
print ' getItemDiscountMap( itemIds)'
|
| 45 |
print ' getDiscountsForEntity(i64 entityId)'
|
45 |
print ' getDiscountsForEntity(i64 entityId)'
|
| 46 |
print ' void addVoucher(Voucher voucher)'
|
46 |
print ' void addVoucher(Voucher voucher)'
|
| Line 197... |
Line 197... |
| 197 |
print 'getActiveCoupons requires 0 args'
|
197 |
print 'getActiveCoupons requires 0 args'
|
| 198 |
sys.exit(1)
|
198 |
sys.exit(1)
|
| 199 |
pp.pprint(client.getActiveCoupons())
|
199 |
pp.pprint(client.getActiveCoupons())
|
| 200 |
|
200 |
|
| 201 |
elif cmd == 'createCoupon':
|
201 |
elif cmd == 'createCoupon':
|
| 202 |
if len(args) != 5:
|
202 |
if len(args) != 6:
|
| 203 |
print 'createCoupon requires 5 args'
|
203 |
print 'createCoupon requires 6 args'
|
| 204 |
sys.exit(1)
|
204 |
sys.exit(1)
|
| 205 |
pp.pprint(client.createCoupon(eval(args[0]),args[1],args[2],eval(args[3]),args[4],))
|
205 |
pp.pprint(client.createCoupon(eval(args[0]),eval(args[1]),args[2],args[3],eval(args[4]),args[5],))
|
| 206 |
|
206 |
|
| 207 |
elif cmd == 'getSuccessfulPaymentCountForCoupon':
|
207 |
elif cmd == 'getSuccessfulPaymentCountForCoupon':
|
| 208 |
if len(args) != 1:
|
208 |
if len(args) != 1:
|
| 209 |
print 'getSuccessfulPaymentCountForCoupon requires 1 args'
|
209 |
print 'getSuccessfulPaymentCountForCoupon requires 1 args'
|
| 210 |
sys.exit(1)
|
210 |
sys.exit(1)
|