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 29 30 31 32 33 34 35 36 37 | 43x 43x 626x | import { Cart } from '@bigcommerce/checkout-sdk';
import { getDigitalItem, getPhysicalItem } from './lineItem.mock';
// TODO: Consider exporting mock objects from SDK
export function getCart(): Cart {
return {
id: 'b20deef40f9699e48671bbc3fef6ca44dc80e3c7',
customerId: 4,
currency: {
name: 'US Dollar',
code: 'USD',
symbol: '$',
decimalPlaces: 2,
},
email: '[email protected]',
isTaxIncluded: false,
baseAmount: 200,
discountAmount: 10,
cartAmount: 190,
coupons: [],
discounts: [],
lineItems: {
physicalItems: [
getPhysicalItem(),
],
digitalItems: [
getDigitalItem(),
],
giftCertificates: [],
customItems: [],
},
createdTime: '2018-03-06T04:41:49+00:00',
updatedTime: '2018-03-07T03:44:51+00:00',
};
}
|