/couponable

Coupon Helpers

Primary LanguageTypeScript

couponable

Usage

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

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