All files / app/coupon coupons.mock.ts

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22    33x 387x                 33x 81x                
import { Coupon } from '@bigcommerce/checkout-sdk';
 
export function getCoupon(): Coupon {
    return {
        code: 'savebig2015',
        displayName: '20% off each item',
        couponType: 'percentage_discount',
        discountedAmount: 5,
        id: '1',
    };
}
 
export function getShippingCoupon(): Coupon {
    return {
        code: '279F507D817E3E7',
        displayName: '$5.00 off the shipping total',
        couponType: 'shipping_discount',
        discountedAmount: 5,
        id: '4',
    };
}