@gofynd/fdk-client-javascript 3.17.0 → 3.17.2
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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +40 -0
- package/sdk/application/Cart/CartApplicationClient.js +176 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +18 -4
- package/sdk/application/Catalog/CatalogApplicationClient.js +47 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +11 -1
- package/sdk/application/Content/ContentApplicationClient.js +40 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +1 -1
- package/sdk/application/Payment/PaymentApplicationClient.js +2 -0
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -2
- package/sdk/partner/Theme/ThemePartnerModel.js +5 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +72 -10
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +634 -33
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +225 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +147 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +951 -1
- package/sdk/platform/Cart/CartPlatformModel.js +597 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +123 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +829 -39
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +205 -7
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +154 -3
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +5 -5
- package/sdk/platform/Catalog/CatalogPlatformClient.js +8 -5
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1023 -31
- package/sdk/platform/Catalog/CatalogPlatformModel.js +841 -26
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +7 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +3 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +7 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.js +3 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +92 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +54 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +5 -5
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +3 -3
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -8
- package/sdk/platform/Content/ContentPlatformModel.js +11 -8
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +21 -0
- package/sdk/platform/Discount/DiscountPlatformModel.js +9 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformClient.js +2 -2
- package/sdk/platform/Order/OrderPlatformModel.d.ts +20 -2
- package/sdk/platform/Order/OrderPlatformModel.js +9 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +14 -3
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +88 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +28 -3
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +22 -2
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +356 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +229 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -2
- package/sdk/platform/Theme/ThemePlatformModel.js +5 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +29 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +13 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +29 -0
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -0
|
@@ -42,7 +42,7 @@ declare class Cart {
|
|
|
42
42
|
* @summary: Apply coupon
|
|
43
43
|
* @description: Apply a coupon code to the customer's cart to trigger discounts on eligible items - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/applyCoupon/).
|
|
44
44
|
*/
|
|
45
|
-
applyCoupon({ body, xOrderingSource, i, b, p, id, buyNow, requestHeaders }?: CartPlatformApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
45
|
+
applyCoupon({ body, xOrderingSource, xAnonymousCart, i, b, p, id, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
46
46
|
/**
|
|
47
47
|
* @param {CartPlatformApplicationValidator.ApplyLoyaltyPointsParam} arg - Arg object
|
|
48
48
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -75,7 +75,7 @@ declare class Cart {
|
|
|
75
75
|
* @summary: Checkout cart
|
|
76
76
|
* @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/checkoutCart/).
|
|
77
77
|
*/
|
|
78
|
-
checkoutCart({ body, xOrderingSource, requestHeaders }?: CartPlatformApplicationValidator.CheckoutCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.OpenApiCheckoutResult>;
|
|
78
|
+
checkoutCart({ body, xOrderingSource, xAnonymousCart, requestHeaders }?: CartPlatformApplicationValidator.CheckoutCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.OpenApiCheckoutResult>;
|
|
79
79
|
/**
|
|
80
80
|
* @param {CartPlatformApplicationValidator.CreateCartMetaConfigParam} arg
|
|
81
81
|
* - Arg object
|
|
@@ -98,6 +98,16 @@ declare class Cart {
|
|
|
98
98
|
* @description: Creates a new coupon based on the selected coupon type. Sellers can choose from multiple supported coupon types, including percentage value, fixed amount value, bundled discount, buy X get Y items, and more, along with customizable coupon criteria to meet specific business requirements. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/createCoupon/).
|
|
99
99
|
*/
|
|
100
100
|
createCoupon({ body, requestHeaders }?: CartPlatformApplicationValidator.CreateCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CouponCreateResult>;
|
|
101
|
+
/**
|
|
102
|
+
* @param {CartPlatformApplicationValidator.CreateOfferParam} arg - Arg object
|
|
103
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
104
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
105
|
+
* @returns {Promise<CartPlatformModel.OfferSchema>} - Success response
|
|
106
|
+
* @name createOffer
|
|
107
|
+
* @summary: Create an offer
|
|
108
|
+
* @description: Creates a new offer based on the selected offer type. Sellers can choose from multiple supported offer types, including percentage value, fixed amount value, bundled discount, buy X get Y items, and more, along with customizable offer criteria to meet specific business requirements. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/createOffer/).
|
|
109
|
+
*/
|
|
110
|
+
createOffer({ body, requestHeaders }?: CartPlatformApplicationValidator.CreateOfferParam, { responseHeaders }?: object): Promise<CartPlatformModel.OfferSchema>;
|
|
101
111
|
/**
|
|
102
112
|
* @param {CartPlatformApplicationValidator.CreatePromotionParam} arg - Arg object
|
|
103
113
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -128,6 +138,16 @@ declare class Cart {
|
|
|
128
138
|
* @description: Delete details of a draft coupon by providing its unique identifier to delete information such as coupon type, rules, validity period and other related information. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/deleteCoupon/).
|
|
129
139
|
*/
|
|
130
140
|
deleteCoupon({ id, requestHeaders }?: CartPlatformApplicationValidator.DeleteCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.SuccessMessage>;
|
|
141
|
+
/**
|
|
142
|
+
* @param {CartPlatformApplicationValidator.DeleteOfferParam} arg - Arg object
|
|
143
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
144
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
145
|
+
* @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
|
|
146
|
+
* @name deleteOffer
|
|
147
|
+
* @summary: Delete draft offer
|
|
148
|
+
* @description: Delete details of a draft offer by providing its unique identifier to delete information such as offer type, rules, validity period and other related information. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/deleteOffer/).
|
|
149
|
+
*/
|
|
150
|
+
deleteOffer({ id, requestHeaders }?: CartPlatformApplicationValidator.DeleteOfferParam, { responseHeaders }?: object): Promise<CartPlatformModel.SuccessMessage>;
|
|
131
151
|
/**
|
|
132
152
|
* @param {CartPlatformApplicationValidator.DeletePromotionParam} arg - Arg object
|
|
133
153
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -234,7 +254,7 @@ declare class Cart {
|
|
|
234
254
|
* @summary: Get a cart
|
|
235
255
|
* @description: Retrieve details of a cart linked to a specific customer using either the customer's ID or a unique cart ID. It offers an overview of the items, quantities, prices, and other relevant information associated with the cart. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/getCart/).
|
|
236
256
|
*/
|
|
237
|
-
getCart({ xOrderingSource, id, userId, orderType, i, b, assignCardId, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
257
|
+
getCart({ xOrderingSource, xAnonymousCart, id, userId, orderType, i, b, assignCardId, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
238
258
|
/**
|
|
239
259
|
* @param {CartPlatformApplicationValidator.GetCartListParam} arg - Arg object
|
|
240
260
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -317,6 +337,26 @@ declare class Cart {
|
|
|
317
337
|
* @description: Retrieve the total count of items currently present in the customer's cart. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/getItemCount/).
|
|
318
338
|
*/
|
|
319
339
|
getItemCount({ id, buyNow, requestHeaders }?: CartPlatformApplicationValidator.GetItemCountParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartItemCountResult>;
|
|
340
|
+
/**
|
|
341
|
+
* @param {CartPlatformApplicationValidator.GetOfferByIdParam} arg - Arg object
|
|
342
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
343
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
344
|
+
* @returns {Promise<CartPlatformModel.OfferSchema>} - Success response
|
|
345
|
+
* @name getOfferById
|
|
346
|
+
* @summary: Get a specific offer
|
|
347
|
+
* @description: Retrieve details of a specific offer by providing its unique identifier to obtain information such as offer type, rules, validity period and other related information. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/getOfferById/).
|
|
348
|
+
*/
|
|
349
|
+
getOfferById({ id, requestHeaders }?: CartPlatformApplicationValidator.GetOfferByIdParam, { responseHeaders }?: object): Promise<CartPlatformModel.OfferSchema>;
|
|
350
|
+
/**
|
|
351
|
+
* @param {CartPlatformApplicationValidator.GetOffersParam} arg - Arg object
|
|
352
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
353
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
354
|
+
* @returns {Promise<CartPlatformModel.OfferListResult>} - Success response
|
|
355
|
+
* @name getOffers
|
|
356
|
+
* @summary: List of offers
|
|
357
|
+
* @description: Retrieve a list of all created offers for specific sales channel. It also supports efficient text search and pagination functionalities, ensuring optimized offers listing for streamlined navigation and management. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/getOffers/).
|
|
358
|
+
*/
|
|
359
|
+
getOffers({ pageNo, pageSize, search, mode, type, promoGroup, excludeContractOffers, offerId, createdBy, reviewedBy, approvedStartTime, approvedEndTime, status, code, isPublic, requestHeaders, }?: CartPlatformApplicationValidator.GetOffersParam, { responseHeaders }?: object): Promise<CartPlatformModel.OfferListResult>;
|
|
320
360
|
/**
|
|
321
361
|
* @param {CartPlatformApplicationValidator.GetPriceAdjustmentsParam} arg - Arg object
|
|
322
362
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -436,7 +476,7 @@ declare class Cart {
|
|
|
436
476
|
* @summary: Add items to cart
|
|
437
477
|
* @description: Adds product items to a customer's shopping cart. If the customer does not have an existing cart, a new one is created automatically. - The `new_cart` flag forces creation of a new cart even if one already exists. - The `default_cart` flag determines whether the item is added to the user's default storefront-visible cart. If `true`, the item is added to the user's default cart that is accessible via the storefront. If `false`, an existing active cart is fetched if available; otherwise, a new hidden cart is created. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/platformAddItems/).
|
|
438
478
|
*/
|
|
439
|
-
platformAddItems({ body, xOrderingSource, i, b, buyNow, orderType, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformAddItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.AddCartDetailResult>;
|
|
479
|
+
platformAddItems({ body, xOrderingSource, xAnonymousCart, i, b, buyNow, orderType, id, requestHeaders, }?: CartPlatformApplicationValidator.PlatformAddItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.AddCartDetailResult>;
|
|
440
480
|
/**
|
|
441
481
|
* @param {CartPlatformApplicationValidator.PlatformCheckoutCartParam} arg
|
|
442
482
|
* - Arg object
|
|
@@ -448,7 +488,7 @@ declare class Cart {
|
|
|
448
488
|
* @summary: Checkout cart
|
|
449
489
|
* @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/platformCheckoutCart/).
|
|
450
490
|
*/
|
|
451
|
-
platformCheckoutCart({ body, xOrderingSource, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartCheckoutResult>;
|
|
491
|
+
platformCheckoutCart({ body, xOrderingSource, xAnonymousCart, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartCheckoutResult>;
|
|
452
492
|
/**
|
|
453
493
|
* @param {CartPlatformApplicationValidator.PlatformCheckoutCartV2Param} arg
|
|
454
494
|
* - Arg object
|
|
@@ -470,7 +510,7 @@ declare class Cart {
|
|
|
470
510
|
* @summary: Update cart items
|
|
471
511
|
* @description: Customers can modify added product attributes such as quantity and size, as well as remove items from the cart. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/platformUpdateCart/).
|
|
472
512
|
*/
|
|
473
|
-
platformUpdateCart({ body, xOrderingSource, id, i, orderType, b, buyNow, requestHeaders }?: CartPlatformApplicationValidator.PlatformUpdateCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.UpdateCartDetailResult>;
|
|
513
|
+
platformUpdateCart({ body, xOrderingSource, xAnonymousCart, id, i, orderType, b, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.PlatformUpdateCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.UpdateCartDetailResult>;
|
|
474
514
|
/**
|
|
475
515
|
* @param {CartPlatformApplicationValidator.RemoveAddressParam} arg - Arg object
|
|
476
516
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -490,7 +530,7 @@ declare class Cart {
|
|
|
490
530
|
* @summary: Remove coupon
|
|
491
531
|
* @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/removeCoupon/).
|
|
492
532
|
*/
|
|
493
|
-
removeCoupon({ xOrderingSource, uid, buyNow, requestHeaders }?: CartPlatformApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
533
|
+
removeCoupon({ xOrderingSource, xAnonymousCart, uid, buyNow, requestHeaders }?: CartPlatformApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
494
534
|
/**
|
|
495
535
|
* @param {CartPlatformApplicationValidator.RemovePriceAdjustmentParam} arg
|
|
496
536
|
* - Arg object
|
|
@@ -512,7 +552,7 @@ declare class Cart {
|
|
|
512
552
|
* @summary: Select customer address for order processing
|
|
513
553
|
* @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://docs.fynd.com/partners/commerce/sdk/platform/cart/selectAddress/).
|
|
514
554
|
*/
|
|
515
|
-
selectAddress({ body, xOrderingSource, cartId, buyNow, i, b, requestHeaders }?: CartPlatformApplicationValidator.SelectAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
555
|
+
selectAddress({ body, xOrderingSource, xAnonymousCart, cartId, buyNow, i, b, requestHeaders, }?: CartPlatformApplicationValidator.SelectAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
516
556
|
/**
|
|
517
557
|
* @param {CartPlatformApplicationValidator.SelectPaymentModeParam} arg - Arg object
|
|
518
558
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -522,7 +562,7 @@ declare class Cart {
|
|
|
522
562
|
* @summary: Select payment mode
|
|
523
563
|
* @description: Customers can select a preferred payment mode from available options during the cart checkout process to securely and efficiently complete their transaction. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/selectPaymentMode/).
|
|
524
564
|
*/
|
|
525
|
-
selectPaymentMode({ body, xOrderingSource, id, buyNow, orderType, requestHeaders }?: CartPlatformApplicationValidator.SelectPaymentModeParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
565
|
+
selectPaymentMode({ body, xOrderingSource, xAnonymousCart, id, buyNow, orderType, requestHeaders, }?: CartPlatformApplicationValidator.SelectPaymentModeParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
526
566
|
/**
|
|
527
567
|
* @param {CartPlatformApplicationValidator.SelectPaymentModeV2Param} arg - Arg object
|
|
528
568
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -562,7 +602,7 @@ declare class Cart {
|
|
|
562
602
|
* @summary: Update cart breakup values
|
|
563
603
|
* @description: Updates the cart breakup based on the enabled features and user preferences. This endpoint allows customers to modify how their cart totals are calculated — including options such as applying store credits, loyalty points, discounts, and other promotional benefits. The API recalculates and returns the updated breakup reflecting the selected configurations in real-time. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/updateCartBreakup/).
|
|
564
604
|
*/
|
|
565
|
-
updateCartBreakup({ body, xOrderingSource, id, i, b, buyNow, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartBreakupParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
605
|
+
updateCartBreakup({ body, xOrderingSource, xAnonymousCart, id, i, b, buyNow, requestHeaders, }?: CartPlatformApplicationValidator.UpdateCartBreakupParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
|
|
566
606
|
/**
|
|
567
607
|
* @param {CartPlatformApplicationValidator.UpdateCartMetaParam} arg - Arg object
|
|
568
608
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -629,6 +669,28 @@ declare class Cart {
|
|
|
629
669
|
* @description: Seller can make partial adjustments of an existing coupon by specifying its unique identifier. It enables businesses to modify specific attributes of the coupon while preserving other details intact. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/updateCouponPartially/).
|
|
630
670
|
*/
|
|
631
671
|
updateCouponPartially({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdateCouponPartiallyParam, { responseHeaders }?: object): Promise<CartPlatformModel.SuccessMessage>;
|
|
672
|
+
/**
|
|
673
|
+
* @param {CartPlatformApplicationValidator.UpdateOfferParam} arg - Arg object
|
|
674
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
675
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
676
|
+
* @returns {Promise<CartPlatformModel.OfferSchema>} - Success response
|
|
677
|
+
* @name updateOffer
|
|
678
|
+
* @summary: Update existing offer
|
|
679
|
+
* @description: Update the details of an existing offer by specifying its unique identifier. This includes modifying offer attributes such as discount percentage, validity period, and associated conditions. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/updateOffer/).
|
|
680
|
+
*/
|
|
681
|
+
updateOffer({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdateOfferParam, { responseHeaders }?: object): Promise<CartPlatformModel.OfferSchema>;
|
|
682
|
+
/**
|
|
683
|
+
* @param {CartPlatformApplicationValidator.UpdateOfferPartiallyParam} arg
|
|
684
|
+
* - Arg object
|
|
685
|
+
*
|
|
686
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
687
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
688
|
+
* @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
|
|
689
|
+
* @name updateOfferPartially
|
|
690
|
+
* @summary: Partially update offer
|
|
691
|
+
* @description: Seller can make partial adjustments of an existing offer by specifying its unique identifier. It enables businesses to modify specific attributes of the offer while preserving other details intact. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/updateOfferPartially/).
|
|
692
|
+
*/
|
|
693
|
+
updateOfferPartially({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdateOfferPartiallyParam, { responseHeaders }?: object): Promise<CartPlatformModel.SuccessMessage>;
|
|
632
694
|
/**
|
|
633
695
|
* @param {CartPlatformApplicationValidator.UpdatePriceAdjustmentParam} arg
|
|
634
696
|
* - Arg object
|