| Line 30... |
Line 30... |
| 30 |
print ' Promotion getPromotionById(i64 promotionId)'
|
30 |
print ' Promotion getPromotionById(i64 promotionId)'
|
| 31 |
print ' void generateCouponsForPromotion(i64 promotionId, string couponCode)'
|
31 |
print ' void generateCouponsForPromotion(i64 promotionId, string couponCode)'
|
| 32 |
print ' Cart applyCoupon(string couponCode, i64 cartId)'
|
32 |
print ' Cart applyCoupon(string couponCode, i64 cartId)'
|
| 33 |
print ' getEmiDiscount(i64 cartId)'
|
33 |
print ' getEmiDiscount(i64 cartId)'
|
| 34 |
print ' applyRechargeCoupon(string couponCode, i64 totalAmount, i64 userId)'
|
34 |
print ' applyRechargeCoupon(string couponCode, i64 totalAmount, i64 userId)'
|
| 35 |
print ' void trackCouponUsage(string couponCode, i64 transactionId, i64 userId)'
|
35 |
print ' void trackCouponUsage(string couponCode, i64 transactionId, i64 userId, i64 amount, bool isDigital)'
|
| 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()'
|
| Line 161... |
Line 161... |
| 161 |
print 'applyRechargeCoupon requires 3 args'
|
161 |
print 'applyRechargeCoupon requires 3 args'
|
| 162 |
sys.exit(1)
|
162 |
sys.exit(1)
|
| 163 |
pp.pprint(client.applyRechargeCoupon(args[0],eval(args[1]),eval(args[2]),))
|
163 |
pp.pprint(client.applyRechargeCoupon(args[0],eval(args[1]),eval(args[2]),))
|
| 164 |
|
164 |
|
| 165 |
elif cmd == 'trackCouponUsage':
|
165 |
elif cmd == 'trackCouponUsage':
|
| 166 |
if len(args) != 3:
|
166 |
if len(args) != 5:
|
| 167 |
print 'trackCouponUsage requires 3 args'
|
167 |
print 'trackCouponUsage requires 5 args'
|
| 168 |
sys.exit(1)
|
168 |
sys.exit(1)
|
| 169 |
pp.pprint(client.trackCouponUsage(args[0],eval(args[1]),eval(args[2]),))
|
169 |
pp.pprint(client.trackCouponUsage(args[0],eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),))
|
| 170 |
|
170 |
|
| 171 |
elif cmd == 'getCouponUsageCountByUser':
|
171 |
elif cmd == 'getCouponUsageCountByUser':
|
| 172 |
if len(args) != 2:
|
172 |
if len(args) != 2:
|
| 173 |
print 'getCouponUsageCountByUser requires 2 args'
|
173 |
print 'getCouponUsageCountByUser requires 2 args'
|
| 174 |
sys.exit(1)
|
174 |
sys.exit(1)
|