@gofynd/fdk-client-javascript 1.4.3 → 1.4.4
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 -10
- package/application.d.ts +3 -3
- package/common.d.ts +3 -3
- package/index.d.ts +15 -15
- package/package.json +1 -1
- package/partner.d.ts +3 -3
- package/platform.d.ts +3 -3
- package/public.d.ts +2 -2
- package/sdk/application/ApplicationAPIClient.d.ts +1 -1
- package/sdk/application/ApplicationClient.d.ts +17 -17
- package/sdk/application/ApplicationConfig.d.ts +3 -3
- package/sdk/application/Cart/CartApplicationClient.d.ts +50 -50
- package/sdk/application/Cart/CartApplicationClient.js +48 -48
- package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -1
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +72 -72
- package/sdk/application/Catalog/CatalogApplicationClient.js +69 -69
- package/sdk/application/Common/CommonApplicationClient.d.ts +6 -6
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +8 -8
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -6
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -34
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +32 -32
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +1 -1
- package/sdk/application/Content/ContentApplicationClient.d.ts +48 -48
- package/sdk/application/Content/ContentApplicationClient.js +45 -45
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +7 -7
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +5 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/Lead/LeadApplicationClient.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationClient.js +9 -9
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +24 -24
- package/sdk/application/Logistic/LogisticApplicationClient.js +22 -22
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -1
- package/sdk/application/Order/OrderApplicationClient.d.ts +16 -27
- package/sdk/application/Order/OrderApplicationClient.js +14 -94
- package/sdk/application/Order/OrderApplicationValidator.d.ts +2 -16
- package/sdk/application/Order/OrderApplicationValidator.js +0 -13
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +73 -73
- package/sdk/application/Payment/PaymentApplicationClient.js +71 -71
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +1 -1
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +3 -3
- package/sdk/application/Rewards/RewardsApplicationClient.js +1 -1
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +1 -1
- package/sdk/application/Share/ShareApplicationClient.d.ts +3 -3
- package/sdk/application/Share/ShareApplicationClient.js +1 -1
- package/sdk/application/Share/ShareApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +10 -10
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -8
- package/sdk/application/User/UserApplicationClient.d.ts +76 -76
- package/sdk/application/User/UserApplicationClient.js +74 -74
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -1
- package/sdk/application/index.d.ts +18 -18
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -1
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +1 -1
- package/sdk/partner/OAuthClient.d.ts +4 -4
- package/sdk/partner/PartnerAPIClient.d.ts +1 -1
- package/sdk/partner/PartnerClient.d.ts +6 -6
- package/sdk/partner/PartnerConfig.d.ts +4 -4
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +1 -1
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +1 -1
- package/sdk/partner/index.d.ts +7 -7
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +7 -7
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +5 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +13 -13
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +104 -104
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +102 -102
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +135 -134
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +132 -131
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +133 -133
- package/sdk/platform/Catalog/CatalogPlatformClient.js +130 -130
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1 -1
- package/sdk/platform/Common/CommonPlatformClient.d.ts +4 -4
- package/sdk/platform/Common/CommonPlatformClient.js +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +120 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +118 -118
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +25 -25
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +22 -22
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +43 -43
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +41 -41
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +28 -28
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +26 -26
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +96 -96
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +93 -93
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformClient.d.ts +31 -31
- package/sdk/platform/Content/ContentPlatformClient.js +29 -29
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +1 -1
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +20 -20
- package/sdk/platform/Discount/DiscountPlatformClient.js +18 -18
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +20 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +18 -17
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +1 -1
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.js +4 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -1
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +14 -14
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +12 -12
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformClient.js +15 -15
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -1
- package/sdk/platform/OAuthClient.d.ts +3 -3
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +10 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -108
- package/sdk/platform/Order/OrderPlatformClient.js +95 -190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10 -0
- package/sdk/platform/Order/OrderPlatformModel.js +4 -0
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -34
- package/sdk/platform/Order/OrderPlatformValidator.js +0 -20
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +79 -79
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +77 -77
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +4 -4
- package/sdk/platform/Payment/PaymentPlatformClient.js +2 -2
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +7 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +3 -0
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +1 -1
- package/sdk/platform/PlatformAPIClient.d.ts +1 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +16 -16
- package/sdk/platform/PlatformClient.d.ts +19 -21
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/PlatformConfig.d.ts +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +7 -7
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +42 -42
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +40 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -52
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +51 -50
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Share/SharePlatformApplicationClient.js +1 -1
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformModel.d.ts +2 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -106
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +34 -591
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +2 -101
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -92
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +6 -6
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +1 -1
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +37 -37
- package/sdk/platform/User/UserPlatformApplicationClient.js +35 -35
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +9 -8
- package/sdk/platform/Webhook/WebhookPlatformClient.js +7 -6
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +1 -1
- package/sdk/platform/index.d.ts +24 -25
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +2 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -2
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +2 -2
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.d.ts +2 -2
- package/sdk/public/PublicAPIClient.d.ts +1 -1
- package/sdk/public/PublicClient.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +2 -2
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -1
- package/sdk/public/index.d.ts +8 -8
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +0 -152
- package/sdk/platform/Inventory/InventoryPlatformClient.js +0 -1017
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +0 -1355
- package/sdk/platform/Inventory/InventoryPlatformModel.js +0 -1544
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +0 -171
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +0 -159
|
@@ -67,8 +67,8 @@ class Cart {
|
|
|
67
67
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
68
68
|
* @returns {Promise<CartApplicationModel.SaveAddressResponse>} - Success response
|
|
69
69
|
* @name addAddress
|
|
70
|
-
* @summary:
|
|
71
|
-
* @description:
|
|
70
|
+
* @summary: Create a new address
|
|
71
|
+
* @description: Customers can add a new address to their cart to save details such as name, email, contact information, and address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addAddress/).
|
|
72
72
|
*/
|
|
73
73
|
async addAddress(
|
|
74
74
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -143,8 +143,8 @@ class Cart {
|
|
|
143
143
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
144
144
|
* @returns {Promise<CartApplicationModel.AddCartDetailResponse>} - Success response
|
|
145
145
|
* @name addItems
|
|
146
|
-
* @summary: Add to cart
|
|
147
|
-
* @description:
|
|
146
|
+
* @summary: Add items to a cart
|
|
147
|
+
* @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/application/cart/addItems/).
|
|
148
148
|
*/
|
|
149
149
|
async addItems(
|
|
150
150
|
{ body, i, b, areaCode, buyNow, id, requestHeaders } = {
|
|
@@ -227,7 +227,7 @@ class Cart {
|
|
|
227
227
|
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
228
228
|
* @name applyCoupon
|
|
229
229
|
* @summary: Apply coupon
|
|
230
|
-
* @description:
|
|
230
|
+
* @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/application/cart/applyCoupon/).
|
|
231
231
|
*/
|
|
232
232
|
async applyCoupon(
|
|
233
233
|
{ body, i, b, p, id, buyNow, cartType, requestHeaders } = {
|
|
@@ -311,7 +311,7 @@ class Cart {
|
|
|
311
311
|
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
312
312
|
* @name applyRewardPoints
|
|
313
313
|
* @summary: Use reward points
|
|
314
|
-
* @description:
|
|
314
|
+
* @description: Users can redeem their accumulated reward points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyRewardPoints/).
|
|
315
315
|
*/
|
|
316
316
|
async applyRewardPoints(
|
|
317
317
|
{ body, id, i, b, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
@@ -393,7 +393,7 @@ class Cart {
|
|
|
393
393
|
* @returns {Promise<CartApplicationModel.CartCheckoutResponse>} - Success response
|
|
394
394
|
* @name checkoutCart
|
|
395
395
|
* @summary: Checkout cart
|
|
396
|
-
* @description:
|
|
396
|
+
* @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://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/).
|
|
397
397
|
*/
|
|
398
398
|
async checkoutCart(
|
|
399
399
|
{ body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
|
|
@@ -472,8 +472,8 @@ class Cart {
|
|
|
472
472
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
473
473
|
* @returns {Promise<CartApplicationModel.CartCheckoutResponse>} - Success response
|
|
474
474
|
* @name checkoutCartV2
|
|
475
|
-
* @summary:
|
|
476
|
-
* @description:
|
|
475
|
+
* @summary: Start cart checkout (latest)
|
|
476
|
+
* @description: Enhanced version of checkout process that supports multiple mode of payment(MOP). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/).
|
|
477
477
|
*/
|
|
478
478
|
async checkoutCartV2(
|
|
479
479
|
{ body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
|
|
@@ -553,8 +553,8 @@ class Cart {
|
|
|
553
553
|
* @returns {Promise<CartApplicationModel.DeleteCartDetailResponse>} -
|
|
554
554
|
* Success response
|
|
555
555
|
* @name deleteCart
|
|
556
|
-
* @summary:
|
|
557
|
-
* @description:
|
|
556
|
+
* @summary: Delete a cart
|
|
557
|
+
* @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/application/cart/deleteCart/).
|
|
558
558
|
*/
|
|
559
559
|
async deleteCart(
|
|
560
560
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -630,8 +630,8 @@ class Cart {
|
|
|
630
630
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
631
631
|
* @returns {Promise<CartApplicationModel.Address>} - Success response
|
|
632
632
|
* @name getAddressById
|
|
633
|
-
* @summary:
|
|
634
|
-
* @description:
|
|
633
|
+
* @summary: Get a address
|
|
634
|
+
* @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/application/cart/getAddressById/).
|
|
635
635
|
*/
|
|
636
636
|
async getAddressById(
|
|
637
637
|
{
|
|
@@ -723,8 +723,8 @@ class Cart {
|
|
|
723
723
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
724
724
|
* @returns {Promise<CartApplicationModel.GetAddressesResponse>} - Success response
|
|
725
725
|
* @name getAddresses
|
|
726
|
-
* @summary:
|
|
727
|
-
* @description: Retrieve all saved
|
|
726
|
+
* @summary: List customer addresses
|
|
727
|
+
* @description: Retrieve 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/application/cart/getAddresses/).
|
|
728
728
|
*/
|
|
729
729
|
async getAddresses(
|
|
730
730
|
{
|
|
@@ -815,8 +815,8 @@ class Cart {
|
|
|
815
815
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
816
816
|
* @returns {Promise<CartApplicationModel.BulkPriceResponse>} - Success response
|
|
817
817
|
* @name getBulkDiscountOffers
|
|
818
|
-
* @summary:
|
|
819
|
-
* @description:
|
|
818
|
+
* @summary: List bulk discounts
|
|
819
|
+
* @description: Retrieve a list of offer discounts with information about quantity and seller. One offer is marked with a "best" flag, indicating it as the best offer among the list. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getBulkDiscountOffers/).
|
|
820
820
|
*/
|
|
821
821
|
async getBulkDiscountOffers(
|
|
822
822
|
{ itemId, articleId, uid, slug, requestHeaders } = { requestHeaders: {} },
|
|
@@ -897,8 +897,8 @@ class Cart {
|
|
|
897
897
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
898
898
|
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
899
899
|
* @name getCart
|
|
900
|
-
* @summary:
|
|
901
|
-
* @description: Retrieve the
|
|
900
|
+
* @summary: Get a cart
|
|
901
|
+
* @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://partners.fynd.com/help/docs/sdk/application/cart/getCart/).
|
|
902
902
|
*/
|
|
903
903
|
async getCart(
|
|
904
904
|
{ id, i, b, c, assignCardId, areaCode, buyNow, requestHeaders } = {
|
|
@@ -982,8 +982,8 @@ class Cart {
|
|
|
982
982
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
983
983
|
* @returns {Promise<any>} - Success response
|
|
984
984
|
* @name getCartLastModified
|
|
985
|
-
* @summary:
|
|
986
|
-
* @description:
|
|
985
|
+
* @summary: Get last modified timestamp of a cart
|
|
986
|
+
* @description: Retrieve the last modified timestamp of the cart using unique cart ID. It indicates the most recent update made to the cart's content or properties. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartLastModified/).
|
|
987
987
|
*/
|
|
988
988
|
async getCartLastModified(
|
|
989
989
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1059,8 +1059,8 @@ class Cart {
|
|
|
1059
1059
|
* @returns {Promise<CartApplicationModel.GetShareCartLinkResponse>} -
|
|
1060
1060
|
* Success response
|
|
1061
1061
|
* @name getCartShareLink
|
|
1062
|
-
* @summary:
|
|
1063
|
-
* @description:
|
|
1062
|
+
* @summary: Create share cart link
|
|
1063
|
+
* @description: Generate a unique shareable link for the customer's cart for a specific sales channel. This link enables easy sharing of the cart contents with other users, facilitating collaborative shopping experiences. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartShareLink/).
|
|
1064
1064
|
*/
|
|
1065
1065
|
async getCartShareLink(
|
|
1066
1066
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1137,8 +1137,8 @@ class Cart {
|
|
|
1137
1137
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1138
1138
|
* @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
|
|
1139
1139
|
* @name getCartSharedItems
|
|
1140
|
-
* @summary:
|
|
1141
|
-
* @description:
|
|
1140
|
+
* @summary: List shared cart items
|
|
1141
|
+
* @description: Retrieve the cart items from the shared cart link based on unique token. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartSharedItems/).
|
|
1142
1142
|
*/
|
|
1143
1143
|
async getCartSharedItems(
|
|
1144
1144
|
{ token, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1216,7 +1216,7 @@ class Cart {
|
|
|
1216
1216
|
* @returns {Promise<CartApplicationModel.GetCouponResponse>} - Success response
|
|
1217
1217
|
* @name getCoupons
|
|
1218
1218
|
* @summary: List available coupons
|
|
1219
|
-
* @description: Retrieve coupons that can
|
|
1219
|
+
* @description: Retrieve a list of all available coupons that customer can apply to their carts. It provides details about each coupon, including its code, discount amount, and applicable conditions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCoupons/).
|
|
1220
1220
|
*/
|
|
1221
1221
|
async getCoupons(
|
|
1222
1222
|
{ id, buyNow, slug, storeId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1295,8 +1295,8 @@ class Cart {
|
|
|
1295
1295
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1296
1296
|
* @returns {Promise<CartApplicationModel.CartItemCountResponse>} - Success response
|
|
1297
1297
|
* @name getItemCount
|
|
1298
|
-
* @summary:
|
|
1299
|
-
* @description:
|
|
1298
|
+
* @summary: Get a cart items count
|
|
1299
|
+
* @description: Retrieve the total count of items currently present in the customer's cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getItemCount/).
|
|
1300
1300
|
*/
|
|
1301
1301
|
async getItemCount(
|
|
1302
1302
|
{ id, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1375,8 +1375,8 @@ class Cart {
|
|
|
1375
1375
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1376
1376
|
* @returns {Promise<CartApplicationModel.LadderPriceOffers>} - Success response
|
|
1377
1377
|
* @name getLadderOffers
|
|
1378
|
-
* @summary:
|
|
1379
|
-
* @description:
|
|
1378
|
+
* @summary: List ladder offers
|
|
1379
|
+
* @description: Retrieve ladder offers associated for the items in the cart. Ladder offers provide discounts or special pricing based on item quantity, allowing users to benefit from bulk purchases or promotional deals. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getLadderOffers/).
|
|
1380
1380
|
*/
|
|
1381
1381
|
async getLadderOffers(
|
|
1382
1382
|
{ slug, storeId, promotionId, pageSize, requestHeaders } = {
|
|
@@ -1459,8 +1459,8 @@ class Cart {
|
|
|
1459
1459
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1460
1460
|
* @returns {Promise<CartApplicationModel.PromotionOffersResponse>} - Success response
|
|
1461
1461
|
* @name getPromotionOffers
|
|
1462
|
-
* @summary:
|
|
1463
|
-
* @description:
|
|
1462
|
+
* @summary: List available promotion offers
|
|
1463
|
+
* @description: Retrieve a list of all promotional offers available for the items in the cart, including details such as offer text, unique promotion ID, and validity period. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionOffers/).
|
|
1464
1464
|
*/
|
|
1465
1465
|
async getPromotionOffers(
|
|
1466
1466
|
{ slug, pageSize, promotionGroup, storeId, cartType, requestHeaders } = {
|
|
@@ -1545,7 +1545,7 @@ class Cart {
|
|
|
1545
1545
|
* @returns {Promise<CartApplicationModel.CartShipmentsResponse>} - Success response
|
|
1546
1546
|
* @name getShipments
|
|
1547
1547
|
* @summary: List shipments
|
|
1548
|
-
* @description: Retrieve shipment details for items in the
|
|
1548
|
+
* @description: Retrieve shipment details for the items in a cart, specific to the selected address. Shipment details include delivery promises, seller information, item details, and other relevant information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getShipments/).
|
|
1549
1549
|
*/
|
|
1550
1550
|
async getShipments(
|
|
1551
1551
|
{ p, id, buyNow, addressId, areaCode, orderType, requestHeaders } = {
|
|
@@ -1630,8 +1630,8 @@ class Cart {
|
|
|
1630
1630
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1631
1631
|
* @returns {Promise<CartApplicationModel.DeleteAddressResponse>} - Success response
|
|
1632
1632
|
* @name removeAddress
|
|
1633
|
-
* @summary: Delete address
|
|
1634
|
-
* @description: Removes
|
|
1633
|
+
* @summary: Delete a address
|
|
1634
|
+
* @description: Removes an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
|
|
1635
1635
|
*/
|
|
1636
1636
|
async removeAddress(
|
|
1637
1637
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1709,7 +1709,7 @@ class Cart {
|
|
|
1709
1709
|
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
1710
1710
|
* @name removeCoupon
|
|
1711
1711
|
* @summary: Remove coupon
|
|
1712
|
-
* @description:
|
|
1712
|
+
* @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/application/cart/removeCoupon/).
|
|
1713
1713
|
*/
|
|
1714
1714
|
async removeCoupon(
|
|
1715
1715
|
{ id, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1788,8 +1788,8 @@ class Cart {
|
|
|
1788
1788
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1789
1789
|
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
1790
1790
|
* @name selectAddress
|
|
1791
|
-
* @summary:
|
|
1792
|
-
* @description: Selects an address
|
|
1791
|
+
* @summary: Select a delivery address
|
|
1792
|
+
* @description: Selects 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/application/cart/selectAddress/).
|
|
1793
1793
|
*/
|
|
1794
1794
|
async selectAddress(
|
|
1795
1795
|
{ body, cartId, buyNow, i, b, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1870,8 +1870,8 @@ class Cart {
|
|
|
1870
1870
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1871
1871
|
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
1872
1872
|
* @name selectPaymentMode
|
|
1873
|
-
* @summary:
|
|
1874
|
-
* @description:
|
|
1873
|
+
* @summary: Select payment mode
|
|
1874
|
+
* @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://partners.fynd.com/help/docs/sdk/application/cart/selectPaymentMode/).
|
|
1875
1875
|
*/
|
|
1876
1876
|
async selectPaymentMode(
|
|
1877
1877
|
{ body, id, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1950,8 +1950,8 @@ class Cart {
|
|
|
1950
1950
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1951
1951
|
* @returns {Promise<CartApplicationModel.UpdateAddressResponse>} - Success response
|
|
1952
1952
|
* @name updateAddress
|
|
1953
|
-
* @summary: Update address
|
|
1954
|
-
* @description:
|
|
1953
|
+
* @summary: Update a address
|
|
1954
|
+
* @description: Customer can modify the details of a previously saved addresses. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateAddress/).
|
|
1955
1955
|
*/
|
|
1956
1956
|
async updateAddress(
|
|
1957
1957
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -2029,8 +2029,8 @@ class Cart {
|
|
|
2029
2029
|
* @returns {Promise<CartApplicationModel.UpdateCartDetailResponse>} -
|
|
2030
2030
|
* Success response
|
|
2031
2031
|
* @name updateCart
|
|
2032
|
-
* @summary: Update cart
|
|
2033
|
-
* @description:
|
|
2032
|
+
* @summary: Update cart items
|
|
2033
|
+
* @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://partners.fynd.com/help/docs/sdk/application/cart/updateCart/).
|
|
2034
2034
|
*/
|
|
2035
2035
|
async updateCart(
|
|
2036
2036
|
{ body, id, i, b, areaCode, buyNow, cartType, requestHeaders } = {
|
|
@@ -2114,7 +2114,7 @@ class Cart {
|
|
|
2114
2114
|
* @returns {Promise<CartApplicationModel.CartMetaResponse>} - Success response
|
|
2115
2115
|
* @name updateCartMeta
|
|
2116
2116
|
* @summary: Update cart metadata
|
|
2117
|
-
* @description:
|
|
2117
|
+
* @description: Add or modify metadata associated with a cart, which includes customer preferences, delivery instructions, or any special requirements related to the cart items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartMeta/).
|
|
2118
2118
|
*/
|
|
2119
2119
|
async updateCartMeta(
|
|
2120
2120
|
{ body, id, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
@@ -2194,7 +2194,7 @@ class Cart {
|
|
|
2194
2194
|
* @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
|
|
2195
2195
|
* @name updateCartWithSharedItems
|
|
2196
2196
|
* @summary: Update with shared items
|
|
2197
|
-
* @description:
|
|
2197
|
+
* @description: Customer can either merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
|
|
2198
2198
|
*/
|
|
2199
2199
|
async updateCartWithSharedItems(
|
|
2200
2200
|
{ token, action, requestHeaders } = { requestHeaders: {} },
|
|
@@ -2273,8 +2273,8 @@ class Cart {
|
|
|
2273
2273
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2274
2274
|
* @returns {Promise<CartApplicationModel.PaymentCouponValidate>} - Success response
|
|
2275
2275
|
* @name validateCouponForPayment
|
|
2276
|
-
* @summary: Validate coupon
|
|
2277
|
-
* @description:
|
|
2276
|
+
* @summary: Validate applied coupon
|
|
2277
|
+
* @description: Validate the applicability of a coupon code for the selected payment mode for the existing cart. This ensures the coupon's validity before proceeding with the payment process, enhancing user experience and preventing potential errors during transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/validateCouponForPayment/).
|
|
2278
2278
|
*/
|
|
2279
2279
|
async validateCouponForPayment(
|
|
2280
2280
|
{
|