mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 14:42:31 +00:00
parent
08f9cc5362
commit
27182cce67
@ -91,7 +91,10 @@ export function normalizeCart(data: BigcommerceCart): Cart {
|
||||
createdAt: data.created_time,
|
||||
currency: data.currency,
|
||||
taxesIncluded: data.tax_included,
|
||||
lineItems: data.line_items.physical_items.map(normalizeLineItem),
|
||||
lineItems: [
|
||||
...data.line_items.physical_items.map(normalizeLineItem),
|
||||
...data.line_items.digital_items.map(normalizeLineItem),
|
||||
],
|
||||
lineItemsSubtotalPrice: data.base_amount,
|
||||
subtotalPrice: data.base_amount + data.discount_amount,
|
||||
totalPrice: data.cart_amount,
|
||||
|
Loading…
x
Reference in New Issue
Block a user