From c4527b4ea5a21ba2f60bb91147154e54837ece57 Mon Sep 17 00:00:00 2001 From: MatheusTrindade5201 Date: Mon, 14 Oct 2024 17:34:20 -0300 Subject: [PATCH] chore: add new update cart prop --- vtex/actions/cart/updateItems.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vtex/actions/cart/updateItems.ts b/vtex/actions/cart/updateItems.ts index 6bcc59613..8ad1ce477 100644 --- a/vtex/actions/cart/updateItems.ts +++ b/vtex/actions/cart/updateItems.ts @@ -12,6 +12,7 @@ export interface Item { export interface Props { orderItems: Item[]; allowedOutdatedData?: Array<"paymentData">; + noSplitItem?: boolean; } /** @@ -26,6 +27,7 @@ const action = async ( const { orderItems, allowedOutdatedData = ["paymentData"], + noSplitItem, } = props; const { orderFormId } = parseCookie(req.headers); const cookie = req.headers.get("cookie") ?? ""; @@ -37,7 +39,7 @@ const action = async ( allowedOutdatedData, sc: segment?.payload.channel, }, { - body: { orderItems }, + body: { orderItems, noSplitItem: Boolean(noSplitItem) }, headers: { "content-type": "application/json", accept: "application/json",