mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 14:42:31 +00:00
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 <ryanford@users.noreply.github.com>
This commit is contained in:
parent
1375d88171
commit
e8b577b83f
@ -10,7 +10,7 @@ type BCCartItemBody = {
|
||||
product_id: number
|
||||
variant_id: number
|
||||
quantity?: number
|
||||
option_selections?: OptionSelections
|
||||
option_selections?: OptionSelections[]
|
||||
}
|
||||
|
||||
export const parseWishlistItem = (
|
||||
|
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user