# Functions
CountCoupons takes search conditions as pagination object and returns the number of coupons who match with the condition.
CreateCampaign takes a new campaign name and creates a new campaign.
CreateCoupon takes campaignId, offerId and couponDetails, creates a new coupon record, and sends a welcome email to deliver coupon card url.
CreateOffer takes a campaignId of an existing campaign, creates a new template (based of default template), creates an offer, and links this offer to the campaign.
DeleteCouponOffer takes the offerId to delete an existing offer.
GetSingleCoupon takes couponId and returns the record of that coupon.
ListCoupons takes search conditions as pagination object and returns list of coupon records which match with the conditions.
RedeemCoupon takes a campaignId of an existing campaign and couponId of existing coupon to redeem that coupon.
UpdateCoupon takes a campaignId of an existing campaign and couponId of existing coupon to update that coupon.
VoidCoupon takes the couponId, offerId and campaignId to void an existing coupon.