Validate a promotion
Validate lots of promo codes If all the promo codes are None, a Right of None will be returned otherwise the first successful promo code or error will come back
Apply a promotion to some thing T Where there are lenses available to attach promo codes and discount plans to T As such in practice T is likely to be some kind of Zuora API command object You'll end up getting back a T with a promo code (if it is valid) and a discount rate plan (if the promo is a discount)
Apply a promotion to some thing T Where there are lenses available to attach promo codes and discount plans to T As such in practice T is likely to be some kind of Zuora API command object You'll end up getting back a T with a promo code (if it is valid) and a discount rate plan (if the promo is a discount)
use the PromoApplicator type class