From e5255adfdd9c231b1e51280dd663a4d21559067f Mon Sep 17 00:00:00 2001 From: Bartosz Herba Date: Thu, 4 Apr 2024 11:45:24 +0200 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Łukasz Śliwa <39009379+lsliwaradioluz@users.noreply.github.com> --- packages/sdk/src/methods/addBundleProductsToCart/index.ts | 7 +++---- .../sdk/src/methods/addConfigurableProductsToCart/index.ts | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/sdk/src/methods/addBundleProductsToCart/index.ts b/packages/sdk/src/methods/addBundleProductsToCart/index.ts index 1e761d582..df52bdb34 100644 --- a/packages/sdk/src/methods/addBundleProductsToCart/index.ts +++ b/packages/sdk/src/methods/addBundleProductsToCart/index.ts @@ -13,13 +13,13 @@ export type AddBundleProductsToCart = { }; /** - * Add products to cart response type + * Add bundle products to cart response type */ export type AddBundleProductsToCartResponse = AddBundleProductsToCart> = ApolloQueryResult; /** - * Method to add products to cart (returns cart) + * Method to add bundle products to cart (returns cart) * * @remarks * This method sends a POST request to the @@ -42,11 +42,10 @@ export type AddBundleProductsToCartResponse = ApolloQueryResult; /** - * Method to add products to cart (returns cart) + * Method to add configurable products to cart (returns cart) * * @remarks * This method sends a POST request to the @@ -43,11 +43,10 @@ export type AddConfigurableProductsToCartResponse< * Returns a representation of the {@link https://docs.vuestorefront.io/integrations/magento/api/magento-api/AddProductsToCartResponse | AddProductsToCartResponse}. * * @example - * Simple usage: + * Adding configurable products to cart with default parameters. * ```ts * import { sdk } from '~/sdk.config.ts'; * - * // add products to cart with default parameters (returns cart) * const cart = await sdk.magento.addConfigurableProductsToCart( * { * cart_id: '123',