Helper functions for dealing with coupons.


License
MIT
Install
npm install couponable@6.5.1

Documentation

couponable

Usage

import {
  discountable,
  totalDueNow,
  totalRecurring,
  totalLineOne,
  totalLineTwo
} from 'couponable';

discountable(amountInCents, percentOff, amountOffInCents);
totalDueNow(orderItem);
totalRecurring(orderItem);
totalLineOne(orderItem);
totalLineTwo(orderItem);