feat(js-sdk): allow passing a query parameter to deleteLineItem (#13581)

This commit is contained in:
Shahed Nasser
2025-09-23 11:47:10 +00:00
committed by GitHub
parent f6df0466ab
commit 6a91f79f44
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -698,12 +698,14 @@ export class Store {
deleteLineItem: async (
cartId: string,
lineItemId: string,
query?: SelectParams,
headers?: ClientHeaders
) => {
return this.client.fetch<HttpTypes.StoreLineItemDeleteResponse>(
`/store/carts/${cartId}/line-items/${lineItemId}`,
{
method: "DELETE",
query,
headers,
}
)