calculation parameters
the promotion code to apply
number of travelers the discount applies to
ID of the trip to apply the discount to
optional array of traveler emails
Will update a discount including when it was used and the orderId in which it was used. Will throw an error if not available
discount code to mark as used
orderId to include on discount for reference
Will restore the last use for a coupon This is the opposite to markCouponAsUsed
discount code to restore
orderId to include on discount for reference
Calculates the discount amount and total due a given promotion code and a trip booking.