@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +14 -14
  4. package/sdk/application/Cart/CartApplicationClient.js +14 -14
  5. package/sdk/application/Content/ContentApplicationClient.d.ts +10 -0
  6. package/sdk/application/Content/ContentApplicationClient.js +53 -0
  7. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  8. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  9. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -0
  10. package/sdk/application/Logistic/LogisticApplicationClient.js +136 -0
  11. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -12
  12. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -12
  13. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +46 -33
  14. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +41 -25
  15. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -4
  16. package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
  17. package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
  18. package/sdk/platform/Billing/BillingPlatformModel.d.ts +417 -3811
  19. package/sdk/platform/Billing/BillingPlatformModel.js +292 -2544
  20. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
  21. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
  22. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -34
  23. package/sdk/platform/Cart/CartPlatformApplicationClient.js +34 -34
  24. package/sdk/platform/Cart/CartPlatformModel.d.ts +363 -29
  25. package/sdk/platform/Cart/CartPlatformModel.js +203 -31
  26. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +57 -57
  27. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +220 -200
  28. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +121 -91
  29. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +58 -46
  30. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +10 -51
  31. package/sdk/platform/Catalog/CatalogPlatformClient.js +79 -400
  32. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +22 -228
  33. package/sdk/platform/Catalog/CatalogPlatformModel.js +12 -163
  34. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +15 -61
  35. package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -65
  36. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +4 -8
  37. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +10 -14
  38. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +94 -30
  39. package/sdk/platform/Communication/CommunicationPlatformModel.js +110 -32
  40. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +33 -1
  41. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +62 -0
  42. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +11 -0
  43. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +5 -0
  44. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +12 -2
  45. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -1
  46. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +6 -4
  47. package/sdk/platform/Content/ContentPlatformApplicationClient.js +12 -10
  48. package/sdk/platform/Content/ContentPlatformModel.d.ts +42 -12
  49. package/sdk/platform/Content/ContentPlatformModel.js +43 -13
  50. package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
  51. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  52. package/sdk/platform/Order/OrderPlatformClient.d.ts +21 -21
  53. package/sdk/platform/Order/OrderPlatformClient.js +21 -21
  54. package/sdk/platform/Order/OrderPlatformModel.d.ts +1010 -80
  55. package/sdk/platform/Order/OrderPlatformModel.js +665 -70
  56. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +31 -4
  57. package/sdk/platform/Payment/PaymentPlatformModel.js +11 -4
  58. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +1 -1
  59. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +8 -0
  60. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +14 -0
  61. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +6 -0
  62. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +24 -0
  63. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +119 -0
  64. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +194 -23
  65. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +116 -22
  66. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +23 -1
  67. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +16 -0
  68. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
  69. package/sdk/platform/Share/SharePlatformModel.js +2 -0
  70. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +10 -12
  71. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +45 -49
  72. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -10
  73. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +12 -12
  74. package/sdk/public/PublicClient.d.ts +0 -2
  75. package/sdk/public/PublicClient.js +0 -4
  76. package/sdk/public/index.d.ts +0 -1
  77. package/sdk/public/index.js +0 -2
  78. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
  79. package/sdk/public/Billing/BillingPublicClient.js +0 -397
  80. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
  81. package/sdk/public/Billing/BillingPublicModel.js +0 -560
  82. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
  83. package/sdk/public/Billing/BillingPublicValidator.js +0 -50
@@ -20,7 +20,7 @@ declare class Cart {
20
20
  * @returns {Promise<CartPlatformModel.AddCartDetailResponse>} - Success response
21
21
  * @name addItems
22
22
  * @summary: Add items to abandoned cart
23
- * @description: Use this API to add items to the abandoned cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/addItems/).
23
+ * @description: Add product items to the customer's existing shopping cart. If there is no existing cart associated with the customer, it creates a new one and adds the items to it. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/addItems/).
24
24
  */
25
25
  addItems({ cartId, body, b, requestHeaders }?: CartPlatformApplicationValidator.AddItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.AddCartDetailResponse>;
26
26
  /**
@@ -40,7 +40,7 @@ declare class Cart {
40
40
  * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
41
41
  * @name applyCoupon
42
42
  * @summary: Apply a coupon to the cart.
43
- * @description: Apply a selected coupon to the items in the shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/applyCoupon/).
43
+ * @description: Apply a coupon code to the customer's cart to trigger discounts on eligible items - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/applyCoupon/).
44
44
  */
45
45
  applyCoupon({ body, i, b, p, id, buyNow, requestHeaders }?: CartPlatformApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResponse>;
46
46
  /**
@@ -93,20 +93,20 @@ declare class Cart {
93
93
  * @param {CartPlatformApplicationValidator.CreatePromotionParam} arg - Arg object
94
94
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
95
95
  * @param {import("../PlatformAPIClient").Options} - Options
96
- * @returns {Promise<CartPlatformModel.PromotionAdd>} - Success response
96
+ * @returns {Promise<CartPlatformModel.PromotionAddResult>} - Success response
97
97
  * @name createPromotion
98
98
  * @summary: Create a promotion
99
99
  * @description: Creates a new promotion based on the selected promotion type. Sellers can choose from multiple supported promotion types, including percentage value, fixed amount value, bundled discount, buy X get Y items, and more, along with customizable promotion criteria to meet specific business requirements. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/createPromotion/).
100
100
  */
101
- createPromotion({ body, requestHeaders }?: CartPlatformApplicationValidator.CreatePromotionParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionAdd>;
101
+ createPromotion({ body, requestHeaders }?: CartPlatformApplicationValidator.CreatePromotionParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionAddResult>;
102
102
  /**
103
103
  * @param {CartPlatformApplicationValidator.DeleteCartParam} arg - Arg object
104
104
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
105
105
  * @param {import("../PlatformAPIClient").Options} - Options
106
106
  * @returns {Promise<CartPlatformModel.DeleteCartDetailResponse>} - Success response
107
107
  * @name deleteCart
108
- * @summary: Delete cart once user made successful checkout
109
- * @description: Use this API to delete the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deleteCart/).
108
+ * @summary: Delete a cart
109
+ * @description: Delete all items from the user's cart and resets it to its initial state, providing a clean slate for new selections. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deleteCart/).
110
110
  */
111
111
  deleteCart({ body, id, cartType, requestHeaders }?: CartPlatformApplicationValidator.DeleteCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.DeleteCartDetailResponse>;
112
112
  /**
@@ -185,8 +185,8 @@ declare class Cart {
185
185
  * @param {import("../PlatformAPIClient").Options} - Options
186
186
  * @returns {Promise<CartPlatformModel.PlatformAddress>} - Success response
187
187
  * @name getAddressById
188
- * @summary: Fetch a single address by its ID
189
- * @description: Use this API to get an addresses using its ID. If successful, returns a Address resource in the response body specified in `PlatformAddress`. Attibutes listed below are optional mobile_no checkout_mode tags default - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAddressById/).
188
+ * @summary: Get details for a single customer address
189
+ * @description: Retrieve a specific customer address stored in the system by providing its unique identifier. This API provides detailed information about the address, including the recipient's name, address, city, postal code, and other relevant details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAddressById/).
190
190
  */
191
191
  getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, userId, requestHeaders, }?: CartPlatformApplicationValidator.GetAddressByIdParam, { responseHeaders }?: object): Promise<CartPlatformModel.PlatformAddress>;
192
192
  /**
@@ -196,8 +196,8 @@ declare class Cart {
196
196
  * @returns {Promise<CartPlatformModel.PlatformGetAddressesResponse>} -
197
197
  * Success response
198
198
  * @name getAddresses
199
- * @summary: Fetch address
200
- * @description: Use this API to get all the addresses associated with an account. If successful, returns a Address resource in the response body specified in GetAddressesResponse.attibutes listed below are optional uid address_id mobile_no checkout_mode tags default - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAddresses/).
199
+ * @summary: Get a list of addresses for a customer
200
+ * @description: Retrieves a list of all addresses saved by the customer, simplifying the checkout process by offering pre-saved address options for delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAddresses/).
201
201
  */
202
202
  getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, userId, requestHeaders, }?: CartPlatformApplicationValidator.GetAddressesParam, { responseHeaders }?: object): Promise<CartPlatformModel.PlatformGetAddressesResponse>;
203
203
  /**
@@ -239,7 +239,7 @@ declare class Cart {
239
239
  * @returns {Promise<CartPlatformModel.MultiCartResponse>} - Success response
240
240
  * @name getCartList
241
241
  * @summary: Get cart list for store os user
242
- * @description: Get all carts for the store os user which is created for customer - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartList/).
242
+ * @description: Retrieve the list of active carts associated with a specific customer - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartList/).
243
243
  */
244
244
  getCartList({ fromDate, toDate, filterOn, requestHeaders }?: CartPlatformApplicationValidator.GetCartListParam, { responseHeaders }?: object): Promise<CartPlatformModel.MultiCartResponse>;
245
245
  /**
@@ -300,7 +300,7 @@ declare class Cart {
300
300
  * @returns {Promise<Object>} - Success response
301
301
  * @name getCouponCodeExists
302
302
  * @summary: Check if coupon is already created with coupon code
303
- * @description: Check if sent coupon code is already existing coupon code. As coupon code is to be unique. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponCodeExists/).
303
+ * @description: Validates the presence of a coupon code for the specified sales channel to verify whether the provided code already exists or not. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponCodeExists/).
304
304
  */
305
305
  getCouponCodeExists({ code, requestHeaders }?: CartPlatformApplicationValidator.GetCouponCodeExistsParam, { responseHeaders }?: object): Promise<any>;
306
306
  /**
@@ -311,8 +311,8 @@ declare class Cart {
311
311
  * @param {import("../PlatformAPIClient").Options} - Options
312
312
  * @returns {Promise<CartPlatformModel.CouponOptions>} - Success response
313
313
  * @name getCouponOptionValues
314
- * @summary: Get coupon options enums with display values
315
- * @description: Get coupon enum values for fields in valid coupon object. Used for front end to create, update and filter coupon lists via fields - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponOptionValues/).
314
+ * @summary: Get coupon option values
315
+ * @description: Retrieves the available values for coupon options used to create and update coupons. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponOptionValues/).
316
316
  */
317
317
  getCouponOptionValues({ requestHeaders }?: any, { responseHeaders }?: object): Promise<CartPlatformModel.CouponOptions>;
318
318
  /**
@@ -332,7 +332,7 @@ declare class Cart {
332
332
  * @returns {Promise<CartPlatformModel.CouponsResponse>} - Success response
333
333
  * @name getCoupons
334
334
  * @summary: Retrieve available coupons.
335
- * @description: Retrieve a list of available coupons for use in the shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCoupons/).
335
+ * @description: Retrieve a list of all created coupons for specific sales channel. It also supports searching based on text search, pagination and other flags to filter coupons. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCoupons/).
336
336
  */
337
337
  getCoupons({ pageNo, pageSize, isArchived, title, isPublic, isDisplay, typeSlug, code, requestHeaders, }?: CartPlatformApplicationValidator.GetCouponsParam, { responseHeaders }?: object): Promise<CartPlatformModel.CouponsResponse>;
338
338
  /**
@@ -348,7 +348,7 @@ declare class Cart {
348
348
  * @param {string} [arg.code] -
349
349
  * @returns {Paginator<CartPlatformModel.CouponsResponse>}
350
350
  * @summary: Retrieve available coupons.
351
- * @description: Retrieve a list of available coupons for use in the shopping cart.
351
+ * @description: Retrieve a list of all created coupons for specific sales channel. It also supports searching based on text search, pagination and other flags to filter coupons.
352
352
  */
353
353
  getCouponsPaginator({ companyId, applicationId, pageSize, isArchived, title, isPublic, isDisplay, typeSlug, code, }?: {
354
354
  companyId: string;
@@ -397,12 +397,12 @@ declare class Cart {
397
397
  * @param {CartPlatformApplicationValidator.GetPromotionByIdParam} arg - Arg object
398
398
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
399
399
  * @param {import("../PlatformAPIClient").Options} - Options
400
- * @returns {Promise<CartPlatformModel.PromotionUpdate>} - Success response
400
+ * @returns {Promise<CartPlatformModel.PromotionUpdateResult>} - Success response
401
401
  * @name getPromotionById
402
402
  * @summary: Get a promotion
403
403
  * @description: Retrieve details of a specific promotion by providing its unique identifier to obtain information such as promotion type, rules, validity period and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionById/).
404
404
  */
405
- getPromotionById({ id, requestHeaders }?: CartPlatformApplicationValidator.GetPromotionByIdParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionUpdate>;
405
+ getPromotionById({ id, requestHeaders }?: CartPlatformApplicationValidator.GetPromotionByIdParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionUpdateResult>;
406
406
  /**
407
407
  * @param {CartPlatformApplicationValidator.GetPromotionCodeExistsParam} arg
408
408
  * - Arg object
@@ -412,7 +412,7 @@ declare class Cart {
412
412
  * @returns {Promise<Object>} - Success response
413
413
  * @name getPromotionCodeExists
414
414
  * @summary: Check if promotion is already created with promotion code
415
- * @description: Check if sent promotion code is already existing promotion code. As promotion code is to be unique. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionCodeExists/).
415
+ * @description: Validates the presence of a promotion code for the specified sales channel to verify whether the provided code already exists or not. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionCodeExists/).
416
416
  */
417
417
  getPromotionCodeExists({ code, requestHeaders }?: CartPlatformApplicationValidator.GetPromotionCodeExistsParam, { responseHeaders }?: object): Promise<any>;
418
418
  /**
@@ -491,7 +491,7 @@ declare class Cart {
491
491
  * @returns {Promise<CartPlatformModel.OverrideCheckoutResponse>} - Success response
492
492
  * @name overrideCart
493
493
  * @summary: Create Fynd order with overriding cart details
494
- * @description: Generate Fynd order while overriding cart details sent with provided `cart_items` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/overrideCart/).
494
+ * @description: Overrides the cart's checkout process with a new provided cart items. It provides flexibility in customizing checkout flows to meet specific business requirements, enhancing the user experience and optimizing order processing workflows. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/overrideCart/).
495
495
  */
496
496
  overrideCart({ body, requestHeaders }?: CartPlatformApplicationValidator.OverrideCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.OverrideCheckoutResponse>;
497
497
  /**
@@ -525,7 +525,7 @@ declare class Cart {
525
525
  * @returns {Promise<CartPlatformModel.CartCheckoutResponse>} - Success response
526
526
  * @name platformCheckoutCartV2
527
527
  * @summary: Cart checkout (latest)
528
- * @description: Checkout process that supports multiple MOP(mode of payment). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformCheckoutCartV2/).
528
+ * @description: The checkout cart initiates the order creation process based on the items in the user’s cart, their selected address, and chosen payment methods. It also supports multiple payment method options and revalidates the cart details to ensure a secure and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformCheckoutCartV2/).
529
529
  */
530
530
  platformCheckoutCartV2({ body, id, cartType, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartV2Param, { responseHeaders }?: object): Promise<CartPlatformModel.CartCheckoutResponse>;
531
531
  /**
@@ -544,8 +544,8 @@ declare class Cart {
544
544
  * @param {import("../PlatformAPIClient").Options} - Options
545
545
  * @returns {Promise<CartPlatformModel.DeleteAddressResponse>} - Success response
546
546
  * @name removeAddress
547
- * @summary: Remove address associated with an account
548
- * @description: Use this API to delete an address by its ID. This will returns an object that will indicate whether the address was deleted successfully or not. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeAddress/).
547
+ * @summary: Removes an address from a customer's address list
548
+ * @description: Remove an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeAddress/).
549
549
  */
550
550
  removeAddress({ id, userId, requestHeaders }?: CartPlatformApplicationValidator.RemoveAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.DeleteAddressResponse>;
551
551
  /**
@@ -555,7 +555,7 @@ declare class Cart {
555
555
  * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
556
556
  * @name removeCoupon
557
557
  * @summary: Remove Applied Coupon for platform pos user
558
- * @description: Remove Coupon applied on the cart by passing uid in request body. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeCoupon/).
558
+ * @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeCoupon/).
559
559
  */
560
560
  removeCoupon({ uid, buyNow, cartType, requestHeaders }?: CartPlatformApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResponse>;
561
561
  /**
@@ -576,8 +576,8 @@ declare class Cart {
576
576
  * @param {import("../PlatformAPIClient").Options} - Options
577
577
  * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
578
578
  * @name selectAddress
579
- * @summary: Select an address from available addresses
580
- * @description: Select Address from all addresses associated with the account in order to ship the cart items to that address, otherwise default address will be selected implicitly. See `PlatformSelectCartAddressRequest` in schema of request body for the list of attributes needed to select Address from account. On successful request, this API returns a Cart object. Below address attributes are required. address_id billing_address_id uid - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/selectAddress/).
579
+ * @summary: Select customer address for order processing
580
+ * @description: Select an address from the saved customer addresses and validates the availability of items in the cart. Additionally, it verifies and updates the delivery promise based on the selected address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/selectAddress/).
581
581
  */
582
582
  selectAddress({ body, cartId, buyNow, i, b, requestHeaders }?: CartPlatformApplicationValidator.SelectAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResponse>;
583
583
  /**
@@ -606,8 +606,8 @@ declare class Cart {
606
606
  * @param {import("../PlatformAPIClient").Options} - Options
607
607
  * @returns {Promise<CartPlatformModel.UpdateAddressResponse>} - Success response
608
608
  * @name updateAddress
609
- * @summary: Update address added to an account
610
- * @description: Use this API to update an existing address in the account. Request object should contain attributes mentioned in Address can be updated. These attributes are:is_default_address landmark area pincode email address_type name address_id address - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateAddress/).
609
+ * @summary: Updates an existing customer address
610
+ * @description: Update the user address - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateAddress/).
611
611
  */
612
612
  updateAddress({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdateAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.UpdateAddressResponse>;
613
613
  /**
@@ -649,7 +649,7 @@ declare class Cart {
649
649
  * @returns {Promise<CartPlatformModel.UserCartMappingResponse>} - Success response
650
650
  * @name updateCartUser
651
651
  * @summary: Update cart user details.
652
- * @description: Modify user-related details for a shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartUser/).
652
+ * @description: Modify the cart user to a new valid customer for the provided customer ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartUser/).
653
653
  */
654
654
  updateCartUser({ body, id, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartUserParam, { responseHeaders }?: object): Promise<CartPlatformModel.UserCartMappingResponse>;
655
655
  /**
@@ -660,8 +660,8 @@ declare class Cart {
660
660
  * @param {import("../PlatformAPIClient").Options} - Options
661
661
  * @returns {Promise<CartPlatformModel.SharedCartResponse>} - Success response
662
662
  * @name updateCartWithSharedItems
663
- * @summary: Merge or replace existing cart
664
- * @description: Use this API to merge the shared cart with existing cart, or replace the existing cart with the shared cart. The `action` parameter is used to indicate the operation Merge or Replace. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartWithSharedItems/).
663
+ * @summary: Update shared cart items
664
+ * @description: Customer can either merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartWithSharedItems/).
665
665
  */
666
666
  updateCartWithSharedItems({ token, action, cartId, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartWithSharedItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.SharedCartResponse>;
667
667
  /**
@@ -703,12 +703,12 @@ declare class Cart {
703
703
  * @param {CartPlatformApplicationValidator.UpdatePromotionParam} arg - Arg object
704
704
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
705
705
  * @param {import("../PlatformAPIClient").Options} - Options
706
- * @returns {Promise<CartPlatformModel.PromotionUpdate>} - Success response
706
+ * @returns {Promise<CartPlatformModel.PromotionUpdateResult>} - Success response
707
707
  * @name updatePromotion
708
708
  * @summary: Update a promotion
709
709
  * @description: Update the details of an existing promotion by specifying its unique identifier. This includes modifying promotion attributes such as discount percentage, validity period, and associated conditions. Leveraging this functionality allows businesses to quickly adapt their promotional strategies to changing market dynamics. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updatePromotion/).
710
710
  */
711
- updatePromotion({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdatePromotionParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionUpdate>;
711
+ updatePromotion({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdatePromotionParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionUpdateResult>;
712
712
  /**
713
713
  * @param {CartPlatformApplicationValidator.UpdatePromotionPartiallyParam} arg
714
714
  * - Arg object
@@ -718,7 +718,7 @@ declare class Cart {
718
718
  * @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
719
719
  * @name updatePromotionPartially
720
720
  * @summary: Partially update a promotion.
721
- * @description: Make partial modifications to the settings of an existing promotion in the cart system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updatePromotionPartially/).
721
+ * @description: Seller can make partial adjustments of an existing promotion by specifying its unique identifier. It enables businesses to modify specific attributes of the promotion while preserving other details intact. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updatePromotionPartially/).
722
722
  */
723
723
  updatePromotionPartially({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdatePromotionPartiallyParam, { responseHeaders }?: object): Promise<CartPlatformModel.SuccessMessage>;
724
724
  /**
@@ -99,7 +99,7 @@ class Cart {
99
99
  * @returns {Promise<CartPlatformModel.AddCartDetailResponse>} - Success response
100
100
  * @name addItems
101
101
  * @summary: Add items to abandoned cart
102
- * @description: Use this API to add items to the abandoned cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/addItems/).
102
+ * @description: Add product items to the customer's existing shopping cart. If there is no existing cart associated with the customer, it creates a new one and adds the items to it. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/addItems/).
103
103
  */
104
104
  async addItems(
105
105
  { cartId, body, b, requestHeaders } = { requestHeaders: {} },
@@ -260,7 +260,7 @@ class Cart {
260
260
  * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
261
261
  * @name applyCoupon
262
262
  * @summary: Apply a coupon to the cart.
263
- * @description: Apply a selected coupon to the items in the shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/applyCoupon/).
263
+ * @description: Apply a coupon code to the customer's cart to trigger discounts on eligible items - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/applyCoupon/).
264
264
  */
265
265
  async applyCoupon(
266
266
  { body, i, b, p, id, buyNow, requestHeaders } = { requestHeaders: {} },
@@ -667,7 +667,7 @@ class Cart {
667
667
  * @param {CartPlatformApplicationValidator.CreatePromotionParam} arg - Arg object
668
668
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
669
669
  * @param {import("../PlatformAPIClient").Options} - Options
670
- * @returns {Promise<CartPlatformModel.PromotionAdd>} - Success response
670
+ * @returns {Promise<CartPlatformModel.PromotionAddResult>} - Success response
671
671
  * @name createPromotion
672
672
  * @summary: Create a promotion
673
673
  * @description: Creates a new promotion based on the selected promotion type. Sellers can choose from multiple supported promotion types, including percentage value, fixed amount value, bundled discount, buy X get Y items, and more, along with customizable promotion criteria to meet specific business requirements. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/createPromotion/).
@@ -723,7 +723,7 @@ class Cart {
723
723
 
724
724
  const {
725
725
  error: res_error,
726
- } = CartPlatformModel.PromotionAdd().validate(responseData, {
726
+ } = CartPlatformModel.PromotionAddResult().validate(responseData, {
727
727
  abortEarly: false,
728
728
  allowUnknown: true,
729
729
  });
@@ -748,8 +748,8 @@ class Cart {
748
748
  * @param {import("../PlatformAPIClient").Options} - Options
749
749
  * @returns {Promise<CartPlatformModel.DeleteCartDetailResponse>} - Success response
750
750
  * @name deleteCart
751
- * @summary: Delete cart once user made successful checkout
752
- * @description: Use this API to delete the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deleteCart/).
751
+ * @summary: Delete a cart
752
+ * @description: Delete all items from the user's cart and resets it to its initial state, providing a clean slate for new selections. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deleteCart/).
753
753
  */
754
754
  async deleteCart(
755
755
  { body, id, cartType, requestHeaders } = { requestHeaders: {} },
@@ -1241,8 +1241,8 @@ class Cart {
1241
1241
  * @param {import("../PlatformAPIClient").Options} - Options
1242
1242
  * @returns {Promise<CartPlatformModel.PlatformAddress>} - Success response
1243
1243
  * @name getAddressById
1244
- * @summary: Fetch a single address by its ID
1245
- * @description: Use this API to get an addresses using its ID. If successful, returns a Address resource in the response body specified in `PlatformAddress`. Attibutes listed below are optional mobile_no checkout_mode tags default - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAddressById/).
1244
+ * @summary: Get details for a single customer address
1245
+ * @description: Retrieve a specific customer address stored in the system by providing its unique identifier. This API provides detailed information about the address, including the recipient's name, address, city, postal code, and other relevant details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAddressById/).
1246
1246
  */
1247
1247
  async getAddressById(
1248
1248
  {
@@ -1352,8 +1352,8 @@ class Cart {
1352
1352
  * @returns {Promise<CartPlatformModel.PlatformGetAddressesResponse>} -
1353
1353
  * Success response
1354
1354
  * @name getAddresses
1355
- * @summary: Fetch address
1356
- * @description: Use this API to get all the addresses associated with an account. If successful, returns a Address resource in the response body specified in GetAddressesResponse.attibutes listed below are optional uid address_id mobile_no checkout_mode tags default - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAddresses/).
1355
+ * @summary: Get a list of addresses for a customer
1356
+ * @description: Retrieves a list of all addresses saved by the customer, simplifying the checkout process by offering pre-saved address options for delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAddresses/).
1357
1357
  */
1358
1358
  async getAddresses(
1359
1359
  {
@@ -1728,7 +1728,7 @@ class Cart {
1728
1728
  * @returns {Promise<CartPlatformModel.MultiCartResponse>} - Success response
1729
1729
  * @name getCartList
1730
1730
  * @summary: Get cart list for store os user
1731
- * @description: Get all carts for the store os user which is created for customer - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartList/).
1731
+ * @description: Retrieve the list of active carts associated with a specific customer - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartList/).
1732
1732
  */
1733
1733
  async getCartList(
1734
1734
  { fromDate, toDate, filterOn, requestHeaders } = { requestHeaders: {} },
@@ -2202,7 +2202,7 @@ class Cart {
2202
2202
  * @returns {Promise<Object>} - Success response
2203
2203
  * @name getCouponCodeExists
2204
2204
  * @summary: Check if coupon is already created with coupon code
2205
- * @description: Check if sent coupon code is already existing coupon code. As coupon code is to be unique. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponCodeExists/).
2205
+ * @description: Validates the presence of a coupon code for the specified sales channel to verify whether the provided code already exists or not. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponCodeExists/).
2206
2206
  */
2207
2207
  async getCouponCodeExists(
2208
2208
  { code, requestHeaders } = { requestHeaders: {} },
@@ -2281,8 +2281,8 @@ class Cart {
2281
2281
  * @param {import("../PlatformAPIClient").Options} - Options
2282
2282
  * @returns {Promise<CartPlatformModel.CouponOptions>} - Success response
2283
2283
  * @name getCouponOptionValues
2284
- * @summary: Get coupon options enums with display values
2285
- * @description: Get coupon enum values for fields in valid coupon object. Used for front end to create, update and filter coupon lists via fields - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponOptionValues/).
2284
+ * @summary: Get coupon option values
2285
+ * @description: Retrieves the available values for coupon options used to create and update coupons. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponOptionValues/).
2286
2286
  */
2287
2287
  async getCouponOptionValues(
2288
2288
  { requestHeaders } = { requestHeaders: {} },
@@ -2430,7 +2430,7 @@ class Cart {
2430
2430
  * @returns {Promise<CartPlatformModel.CouponsResponse>} - Success response
2431
2431
  * @name getCoupons
2432
2432
  * @summary: Retrieve available coupons.
2433
- * @description: Retrieve a list of available coupons for use in the shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCoupons/).
2433
+ * @description: Retrieve a list of all created coupons for specific sales channel. It also supports searching based on text search, pagination and other flags to filter coupons. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCoupons/).
2434
2434
  */
2435
2435
  async getCoupons(
2436
2436
  {
@@ -2545,7 +2545,7 @@ class Cart {
2545
2545
  * @param {string} [arg.code] -
2546
2546
  * @returns {Paginator<CartPlatformModel.CouponsResponse>}
2547
2547
  * @summary: Retrieve available coupons.
2548
- * @description: Retrieve a list of available coupons for use in the shopping cart.
2548
+ * @description: Retrieve a list of all created coupons for specific sales channel. It also supports searching based on text search, pagination and other flags to filter coupons.
2549
2549
  */
2550
2550
  getCouponsPaginator({
2551
2551
  companyId,
@@ -2838,7 +2838,7 @@ class Cart {
2838
2838
  * @param {CartPlatformApplicationValidator.GetPromotionByIdParam} arg - Arg object
2839
2839
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2840
2840
  * @param {import("../PlatformAPIClient").Options} - Options
2841
- * @returns {Promise<CartPlatformModel.PromotionUpdate>} - Success response
2841
+ * @returns {Promise<CartPlatformModel.PromotionUpdateResult>} - Success response
2842
2842
  * @name getPromotionById
2843
2843
  * @summary: Get a promotion
2844
2844
  * @description: Retrieve details of a specific promotion by providing its unique identifier to obtain information such as promotion type, rules, validity period and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionById/).
@@ -2894,7 +2894,7 @@ class Cart {
2894
2894
 
2895
2895
  const {
2896
2896
  error: res_error,
2897
- } = CartPlatformModel.PromotionUpdate().validate(responseData, {
2897
+ } = CartPlatformModel.PromotionUpdateResult().validate(responseData, {
2898
2898
  abortEarly: false,
2899
2899
  allowUnknown: true,
2900
2900
  });
@@ -2922,7 +2922,7 @@ class Cart {
2922
2922
  * @returns {Promise<Object>} - Success response
2923
2923
  * @name getPromotionCodeExists
2924
2924
  * @summary: Check if promotion is already created with promotion code
2925
- * @description: Check if sent promotion code is already existing promotion code. As promotion code is to be unique. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionCodeExists/).
2925
+ * @description: Validates the presence of a promotion code for the specified sales channel to verify whether the provided code already exists or not. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionCodeExists/).
2926
2926
  */
2927
2927
  async getPromotionCodeExists(
2928
2928
  { code, requestHeaders } = { requestHeaders: {} },
@@ -3429,7 +3429,7 @@ class Cart {
3429
3429
  * @returns {Promise<CartPlatformModel.OverrideCheckoutResponse>} - Success response
3430
3430
  * @name overrideCart
3431
3431
  * @summary: Create Fynd order with overriding cart details
3432
- * @description: Generate Fynd order while overriding cart details sent with provided `cart_items` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/overrideCart/).
3432
+ * @description: Overrides the cart's checkout process with a new provided cart items. It provides flexibility in customizing checkout flows to meet specific business requirements, enhancing the user experience and optimizing order processing workflows. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/overrideCart/).
3433
3433
  */
3434
3434
  async overrideCart(
3435
3435
  { body, requestHeaders } = { requestHeaders: {} },
@@ -3691,7 +3691,7 @@ class Cart {
3691
3691
  * @returns {Promise<CartPlatformModel.CartCheckoutResponse>} - Success response
3692
3692
  * @name platformCheckoutCartV2
3693
3693
  * @summary: Cart checkout (latest)
3694
- * @description: Checkout process that supports multiple MOP(mode of payment). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformCheckoutCartV2/).
3694
+ * @description: The checkout cart initiates the order creation process based on the items in the user’s cart, their selected address, and chosen payment methods. It also supports multiple payment method options and revalidates the cart details to ensure a secure and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformCheckoutCartV2/).
3695
3695
  */
3696
3696
  async platformCheckoutCartV2(
3697
3697
  { body, id, cartType, requestHeaders } = { requestHeaders: {} },
@@ -3874,8 +3874,8 @@ class Cart {
3874
3874
  * @param {import("../PlatformAPIClient").Options} - Options
3875
3875
  * @returns {Promise<CartPlatformModel.DeleteAddressResponse>} - Success response
3876
3876
  * @name removeAddress
3877
- * @summary: Remove address associated with an account
3878
- * @description: Use this API to delete an address by its ID. This will returns an object that will indicate whether the address was deleted successfully or not. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeAddress/).
3877
+ * @summary: Removes an address from a customer's address list
3878
+ * @description: Remove an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeAddress/).
3879
3879
  */
3880
3880
  async removeAddress(
3881
3881
  { id, userId, requestHeaders } = { requestHeaders: {} },
@@ -3955,7 +3955,7 @@ class Cart {
3955
3955
  * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
3956
3956
  * @name removeCoupon
3957
3957
  * @summary: Remove Applied Coupon for platform pos user
3958
- * @description: Remove Coupon applied on the cart by passing uid in request body. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeCoupon/).
3958
+ * @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeCoupon/).
3959
3959
  */
3960
3960
  async removeCoupon(
3961
3961
  { uid, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
@@ -4119,8 +4119,8 @@ class Cart {
4119
4119
  * @param {import("../PlatformAPIClient").Options} - Options
4120
4120
  * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
4121
4121
  * @name selectAddress
4122
- * @summary: Select an address from available addresses
4123
- * @description: Select Address from all addresses associated with the account in order to ship the cart items to that address, otherwise default address will be selected implicitly. See `PlatformSelectCartAddressRequest` in schema of request body for the list of attributes needed to select Address from account. On successful request, this API returns a Cart object. Below address attributes are required. address_id billing_address_id uid - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/selectAddress/).
4122
+ * @summary: Select customer address for order processing
4123
+ * @description: Select an address from the saved customer addresses and validates the availability of items in the cart. Additionally, it verifies and updates the delivery promise based on the selected address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/selectAddress/).
4124
4124
  */
4125
4125
  async selectAddress(
4126
4126
  { body, cartId, buyNow, i, b, requestHeaders } = { requestHeaders: {} },
@@ -4384,8 +4384,8 @@ class Cart {
4384
4384
  * @param {import("../PlatformAPIClient").Options} - Options
4385
4385
  * @returns {Promise<CartPlatformModel.UpdateAddressResponse>} - Success response
4386
4386
  * @name updateAddress
4387
- * @summary: Update address added to an account
4388
- * @description: Use this API to update an existing address in the account. Request object should contain attributes mentioned in Address can be updated. These attributes are:is_default_address landmark area pincode email address_type name address_id address - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateAddress/).
4387
+ * @summary: Updates an existing customer address
4388
+ * @description: Update the user address - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateAddress/).
4389
4389
  */
4390
4390
  async updateAddress(
4391
4391
  { id, body, requestHeaders } = { requestHeaders: {} },
@@ -4717,7 +4717,7 @@ class Cart {
4717
4717
  * @returns {Promise<CartPlatformModel.UserCartMappingResponse>} - Success response
4718
4718
  * @name updateCartUser
4719
4719
  * @summary: Update cart user details.
4720
- * @description: Modify user-related details for a shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartUser/).
4720
+ * @description: Modify the cart user to a new valid customer for the provided customer ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartUser/).
4721
4721
  */
4722
4722
  async updateCartUser(
4723
4723
  { body, id, requestHeaders } = { requestHeaders: {} },
@@ -4800,8 +4800,8 @@ class Cart {
4800
4800
  * @param {import("../PlatformAPIClient").Options} - Options
4801
4801
  * @returns {Promise<CartPlatformModel.SharedCartResponse>} - Success response
4802
4802
  * @name updateCartWithSharedItems
4803
- * @summary: Merge or replace existing cart
4804
- * @description: Use this API to merge the shared cart with existing cart, or replace the existing cart with the shared cart. The `action` parameter is used to indicate the operation Merge or Replace. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartWithSharedItems/).
4803
+ * @summary: Update shared cart items
4804
+ * @description: Customer can either merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartWithSharedItems/).
4805
4805
  */
4806
4806
  async updateCartWithSharedItems(
4807
4807
  { token, action, cartId, requestHeaders } = { requestHeaders: {} },
@@ -5128,7 +5128,7 @@ class Cart {
5128
5128
  * @param {CartPlatformApplicationValidator.UpdatePromotionParam} arg - Arg object
5129
5129
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5130
5130
  * @param {import("../PlatformAPIClient").Options} - Options
5131
- * @returns {Promise<CartPlatformModel.PromotionUpdate>} - Success response
5131
+ * @returns {Promise<CartPlatformModel.PromotionUpdateResult>} - Success response
5132
5132
  * @name updatePromotion
5133
5133
  * @summary: Update a promotion
5134
5134
  * @description: Update the details of an existing promotion by specifying its unique identifier. This includes modifying promotion attributes such as discount percentage, validity period, and associated conditions. Leveraging this functionality allows businesses to quickly adapt their promotional strategies to changing market dynamics. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updatePromotion/).
@@ -5186,7 +5186,7 @@ class Cart {
5186
5186
 
5187
5187
  const {
5188
5188
  error: res_error,
5189
- } = CartPlatformModel.PromotionUpdate().validate(responseData, {
5189
+ } = CartPlatformModel.PromotionUpdateResult().validate(responseData, {
5190
5190
  abortEarly: false,
5191
5191
  allowUnknown: true,
5192
5192
  });
@@ -5214,7 +5214,7 @@ class Cart {
5214
5214
  * @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
5215
5215
  * @name updatePromotionPartially
5216
5216
  * @summary: Partially update a promotion.
5217
- * @description: Make partial modifications to the settings of an existing promotion in the cart system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updatePromotionPartially/).
5217
+ * @description: Seller can make partial adjustments of an existing promotion by specifying its unique identifier. It enables businesses to modify specific attributes of the promotion while preserving other details intact. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updatePromotionPartially/).
5218
5218
  */
5219
5219
  async updatePromotionPartially(
5220
5220
  { id, body, requestHeaders } = { requestHeaders: {} },