mirror of
https://github.com/vercel/commerce.git
synced 2025-04-28 05:47:50 +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
|
product_id: number
|
||||||
variant_id: number
|
variant_id: number
|
||||||
quantity?: number
|
quantity?: number
|
||||||
option_selections?: OptionSelections
|
option_selections?: OptionSelections[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export const parseWishlistItem = (
|
export const parseWishlistItem = (
|
||||||
|
@ -40,7 +40,7 @@ export type OptionSelections = {
|
|||||||
|
|
||||||
export type CartItemBody = Core.CartItemBody & {
|
export type CartItemBody = Core.CartItemBody & {
|
||||||
productId: string // The product id is always required for BC
|
productId: string // The product id is always required for BC
|
||||||
optionSelections?: OptionSelections
|
optionSelections?: OptionSelections[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CartTypes = {
|
export type CartTypes = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user