All files / app/shipping/shippingOption shippingMethod.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 23 24 25 26 27 28    26x 390x                       26x 1x                      
import { ShippingOption } from '@bigcommerce/checkout-sdk';
 
export function getShippingOption(): ShippingOption {
    return {
        additionalDescription: 'Pick up in store additional description',
        description: 'Flat Rate',
        id: '0:61d4bb52f746477e1d4fb411221318c3',
        imageUrl: '',
        isRecommended: true,
        cost: 0,
        transitTime: '',
        type: 'shipping_flatrate',
    };
}
 
export function getShippingOptionPickUpStore(): ShippingOption {
    return {
        additionalDescription: 'Pick up in store additional description',
        description: 'Pick Up in Store',
        id: '1:61d4bb52f746477e1d4fb411221318c3',
        imageUrl: '',
        isRecommended: false,
        cost: 0,
        transitTime: '',
        type: 'shipping_pickupinstore',
    };
}