From e8b577b83f4850d9f2ddae55a10b276e193ad171 Mon Sep 17 00:00:00 2001 From: ryanford <20901017+ryanford@users.noreply.github.com> Date: Mon, 2 Aug 2021 06:46:36 +0800 Subject: [PATCH] optionsSelections takes an array of options objs (#364) * optionsSelections takes an array of options objs * use options array to match API expectations Co-authored-by: Ryan Ford --- framework/bigcommerce/api/utils/parse-item.ts | 2 +- framework/bigcommerce/types/cart.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/bigcommerce/api/utils/parse-item.ts b/framework/bigcommerce/api/utils/parse-item.ts index 14c9ac53d..bb59a6ec4 100644 --- a/framework/bigcommerce/api/utils/parse-item.ts +++ b/framework/bigcommerce/api/utils/parse-item.ts @@ -10,7 +10,7 @@ type BCCartItemBody = { product_id: number variant_id: number quantity?: number - option_selections?: OptionSelections + option_selections?: OptionSelections[] } export const parseWishlistItem = ( diff --git a/framework/bigcommerce/types/cart.ts b/framework/bigcommerce/types/cart.ts index 83076ea09..33c01e4c6 100644 --- a/framework/bigcommerce/types/cart.ts +++ b/framework/bigcommerce/types/cart.ts @@ -40,7 +40,7 @@ export type OptionSelections = { export type CartItemBody = Core.CartItemBody & { productId: string // The product id is always required for BC - optionSelections?: OptionSelections + optionSelections?: OptionSelections[] } export type CartTypes = {