Added options to BigCommerce normalizeLineItem

This commit is contained in:
matthew collins 2021-05-06 09:38:30 -04:00
parent ca68375694
commit c577fd9fbb

View File

@ -106,6 +106,7 @@ function normalizeLineItem(item: any): LineItem {
listPrice: item.list_price, listPrice: item.list_price,
}, },
path: item.url.split('/')[3], path: item.url.split('/')[3],
options: item.options,
discounts: item.discounts.map((discount: any) => ({ discounts: item.discounts.map((discount: any) => ({
value: discount.discounted_amount, value: discount.discounted_amount,
})), })),