@gofynd/fdk-client-javascript 1.4.16-beta.2 → 1.4.16-beta.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 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +27 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -51
- package/sdk/application/Content/ContentApplicationClient.js +56 -161
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +8 -101
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +8 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +2 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +6 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/common/Utility.js +6 -3
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -121
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1294 -5068
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1992
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6389
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1681 -3222
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -204
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +475 -1073
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -253
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -256
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +403 -1375
- package/sdk/platform/Content/ContentPlatformModel.js +394 -631
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +49 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +30 -28
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +7 -46
- package/sdk/platform/Share/SharePlatformModel.js +6 -31
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +6 -810
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -111
|
@@ -7,65 +7,66 @@ declare class Cart {
|
|
|
7
7
|
* @param {CartPlatformApplicationValidator.AddAddressParam} arg - Arg object
|
|
8
8
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
9
9
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
10
|
-
* @returns {Promise<CartPlatformModel.
|
|
10
|
+
* @returns {Promise<CartPlatformModel.SaveAddressResponse>} - Success response
|
|
11
11
|
* @name addAddress
|
|
12
12
|
* @summary: Creates a new address for a customer
|
|
13
13
|
* @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/platform/cart/addAddress/).
|
|
14
14
|
*/
|
|
15
|
-
addAddress({ body, requestHeaders }?: CartPlatformApplicationValidator.AddAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
15
|
+
addAddress({ body, requestHeaders }?: CartPlatformApplicationValidator.AddAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.SaveAddressResponse>;
|
|
16
16
|
/**
|
|
17
17
|
* @param {CartPlatformApplicationValidator.AddItemsParam} arg - Arg object
|
|
18
18
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
19
19
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
20
|
-
* @returns {Promise<CartPlatformModel.
|
|
20
|
+
* @returns {Promise<CartPlatformModel.AddCartDetailResponse>} - Success response
|
|
21
21
|
* @name addItems
|
|
22
22
|
* @summary: Add items to cart
|
|
23
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
|
-
addItems({ cartId, body, b, requestHeaders }?: CartPlatformApplicationValidator.AddItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
25
|
+
addItems({ cartId, body, b, requestHeaders }?: CartPlatformApplicationValidator.AddItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.AddCartDetailResponse>;
|
|
26
26
|
/**
|
|
27
27
|
* @param {CartPlatformApplicationValidator.AddPriceAdjustmentParam} arg - Arg object
|
|
28
28
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
29
29
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
30
|
-
* @returns {Promise<CartPlatformModel.
|
|
30
|
+
* @returns {Promise<CartPlatformModel.PriceAdjustmentResponse>} - Success response
|
|
31
31
|
* @name addPriceAdjustment
|
|
32
32
|
* @summary: Create price adjustments
|
|
33
33
|
* @description: Create custom price adjustments for items in the cart, facilitating the application of discounts or promotions. Price adjustments can be tailored based on specific sales channel contexts, enhancing flexibility in pricing strategies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/addPriceAdjustment/).
|
|
34
34
|
*/
|
|
35
|
-
addPriceAdjustment({ body, requestHeaders }?: CartPlatformApplicationValidator.AddPriceAdjustmentParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
35
|
+
addPriceAdjustment({ body, requestHeaders }?: CartPlatformApplicationValidator.AddPriceAdjustmentParam, { responseHeaders }?: object): Promise<CartPlatformModel.PriceAdjustmentResponse>;
|
|
36
36
|
/**
|
|
37
37
|
* @param {CartPlatformApplicationValidator.ApplyCouponParam} arg - Arg object
|
|
38
38
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
39
39
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
40
|
-
* @returns {Promise<CartPlatformModel.
|
|
40
|
+
* @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
|
|
41
41
|
* @name applyCoupon
|
|
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://partners.fynd.com/help/docs/sdk/platform/cart/applyCoupon/).
|
|
44
44
|
*/
|
|
45
|
-
applyCoupon({ body, i, b, p, id, buyNow, requestHeaders }?: CartPlatformApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
45
|
+
applyCoupon({ body, i, b, p, id, buyNow, requestHeaders }?: CartPlatformApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResponse>;
|
|
46
46
|
/**
|
|
47
47
|
* @param {CartPlatformApplicationValidator.CheckCartServiceabilityParam} arg
|
|
48
48
|
* - Arg object
|
|
49
49
|
*
|
|
50
50
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
51
51
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
52
|
-
* @returns {Promise<CartPlatformModel.
|
|
53
|
-
* Success response
|
|
52
|
+
* @returns {Promise<CartPlatformModel.OpenApiCartServiceabilityResponse>}
|
|
53
|
+
* - Success response
|
|
54
|
+
*
|
|
54
55
|
* @name checkCartServiceability
|
|
55
56
|
* @summary: Check cart serviceability
|
|
56
57
|
* @description: Verify the serviceability of items in the cart at a specific pin code and ensure accurate delivery promises. System checks each item's availability and delivery feasibility, providing real-time information on serviceability and estimated delivery times. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/checkCartServiceability/).
|
|
57
58
|
*/
|
|
58
|
-
checkCartServiceability({ body, requestHeaders }?: CartPlatformApplicationValidator.CheckCartServiceabilityParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
59
|
+
checkCartServiceability({ body, requestHeaders }?: CartPlatformApplicationValidator.CheckCartServiceabilityParam, { responseHeaders }?: object): Promise<CartPlatformModel.OpenApiCartServiceabilityResponse>;
|
|
59
60
|
/**
|
|
60
61
|
* @param {CartPlatformApplicationValidator.CheckoutCartParam} arg - Arg object
|
|
61
62
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
62
63
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
63
|
-
* @returns {Promise<CartPlatformModel.
|
|
64
|
+
* @returns {Promise<CartPlatformModel.OpenApiCheckoutResponse>} - Success response
|
|
64
65
|
* @name checkoutCart
|
|
65
66
|
* @summary: Checkout cart
|
|
66
67
|
* @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/platform/cart/checkoutCart/).
|
|
67
68
|
*/
|
|
68
|
-
checkoutCart({ body, requestHeaders }?: CartPlatformApplicationValidator.CheckoutCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
69
|
+
checkoutCart({ body, requestHeaders }?: CartPlatformApplicationValidator.CheckoutCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.OpenApiCheckoutResponse>;
|
|
69
70
|
/**
|
|
70
71
|
* @param {CartPlatformApplicationValidator.CreateCartMetaConfigParam} arg
|
|
71
72
|
* - Arg object
|
|
@@ -82,64 +83,44 @@ declare class Cart {
|
|
|
82
83
|
* @param {CartPlatformApplicationValidator.CreateCouponParam} arg - Arg object
|
|
83
84
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
84
85
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
85
|
-
* @returns {Promise<CartPlatformModel.
|
|
86
|
+
* @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
|
|
86
87
|
* @name createCoupon
|
|
87
88
|
* @summary: Create a coupon
|
|
88
89
|
* @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://partners.fynd.com/help/docs/sdk/platform/cart/createCoupon/).
|
|
89
90
|
*/
|
|
90
|
-
createCoupon({ body, requestHeaders }?: CartPlatformApplicationValidator.CreateCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
91
|
+
createCoupon({ body, requestHeaders }?: CartPlatformApplicationValidator.CreateCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.SuccessMessage>;
|
|
91
92
|
/**
|
|
92
93
|
* @param {CartPlatformApplicationValidator.CreatePromotionParam} arg - Arg object
|
|
93
94
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
94
95
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
95
|
-
* @returns {Promise<CartPlatformModel.
|
|
96
|
+
* @returns {Promise<CartPlatformModel.PromotionAdd>} - Success response
|
|
96
97
|
* @name createPromotion
|
|
97
98
|
* @summary: Create a promotion
|
|
98
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/).
|
|
99
100
|
*/
|
|
100
|
-
createPromotion({ body, requestHeaders }?: CartPlatformApplicationValidator.CreatePromotionParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
101
|
+
createPromotion({ body, requestHeaders }?: CartPlatformApplicationValidator.CreatePromotionParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionAdd>;
|
|
101
102
|
/**
|
|
102
103
|
* @param {CartPlatformApplicationValidator.DeleteCartParam} arg - Arg object
|
|
103
104
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
104
105
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
105
|
-
* @returns {Promise<CartPlatformModel.
|
|
106
|
+
* @returns {Promise<CartPlatformModel.DeleteCartDetailResponse>} - Success response
|
|
106
107
|
* @name deleteCart
|
|
107
108
|
* @summary: Delete a cart
|
|
108
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/).
|
|
109
110
|
*/
|
|
110
|
-
deleteCart({ body, id, requestHeaders }?: CartPlatformApplicationValidator.DeleteCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
111
|
-
/**
|
|
112
|
-
* @param {CartPlatformApplicationValidator.DeleteCouponParam} arg - Arg object
|
|
113
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
114
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
115
|
-
* @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
|
|
116
|
-
* @name deleteCoupon
|
|
117
|
-
* @summary: Delete a coupon which is in draft state
|
|
118
|
-
* @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://partners.fynd.com/help/docs/sdk/platform/cart/deleteCoupon/).
|
|
119
|
-
*/
|
|
120
|
-
deleteCoupon({ id, requestHeaders }?: CartPlatformApplicationValidator.DeleteCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.SuccessMessage>;
|
|
121
|
-
/**
|
|
122
|
-
* @param {CartPlatformApplicationValidator.DeletePromotionParam} arg - Arg object
|
|
123
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
124
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
125
|
-
* @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
|
|
126
|
-
* @name deletePromotion
|
|
127
|
-
* @summary: Delete a promotion which is in draft state
|
|
128
|
-
* @description: Delete details of a draft promotion by providing its unique identifier to delete 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/deletePromotion/).
|
|
129
|
-
*/
|
|
130
|
-
deletePromotion({ id, requestHeaders }?: CartPlatformApplicationValidator.DeletePromotionParam, { responseHeaders }?: object): Promise<CartPlatformModel.SuccessMessage>;
|
|
111
|
+
deleteCart({ body, id, requestHeaders }?: CartPlatformApplicationValidator.DeleteCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.DeleteCartDetailResponse>;
|
|
131
112
|
/**
|
|
132
113
|
* @param {CartPlatformApplicationValidator.FetchAndvalidateCartItemsParam} arg
|
|
133
114
|
* - Arg object
|
|
134
115
|
*
|
|
135
116
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
136
117
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
137
|
-
* @returns {Promise<CartPlatformModel.
|
|
118
|
+
* @returns {Promise<CartPlatformModel.OpenapiCartDetailsResponse>} - Success response
|
|
138
119
|
* @name fetchAndvalidateCartItems
|
|
139
120
|
* @summary: Get and validate cart items
|
|
140
121
|
* @description: Retrieve cart details for a provided list of cart items and validate its contents. This ensures accuracy and completeness in cart information, including item quantities, prices, discounts, and applicable taxes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/fetchAndvalidateCartItems/).
|
|
141
122
|
*/
|
|
142
|
-
fetchAndvalidateCartItems({ body, requestHeaders }?: CartPlatformApplicationValidator.FetchAndvalidateCartItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
123
|
+
fetchAndvalidateCartItems({ body, requestHeaders }?: CartPlatformApplicationValidator.FetchAndvalidateCartItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.OpenapiCartDetailsResponse>;
|
|
143
124
|
/**
|
|
144
125
|
* @param {CartPlatformApplicationValidator.FetchCartMetaConfigParam} arg - Arg object
|
|
145
126
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -154,24 +135,24 @@ declare class Cart {
|
|
|
154
135
|
* @param {CartPlatformApplicationValidator.GetAbandonedCartParam} arg - Arg object
|
|
155
136
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
156
137
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
157
|
-
* @returns {Promise<CartPlatformModel.
|
|
138
|
+
* @returns {Promise<CartPlatformModel.AbandonedCartResponse>} - Success response
|
|
158
139
|
* @name getAbandonedCart
|
|
159
140
|
* @summary: Get abandoned carts
|
|
160
141
|
* @description: Retrieve the list of abandoned carts that have been active for the specified period of time and have not yet been archived for the specific sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAbandonedCart/).
|
|
161
142
|
*/
|
|
162
|
-
getAbandonedCart({ pageNo, pageSize, fromDate, toDate, anonymousCart, lastId, sortOn, requestHeaders, }?: CartPlatformApplicationValidator.GetAbandonedCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
143
|
+
getAbandonedCart({ pageNo, pageSize, fromDate, toDate, anonymousCart, lastId, sortOn, requestHeaders, }?: CartPlatformApplicationValidator.GetAbandonedCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.AbandonedCartResponse>;
|
|
163
144
|
/**
|
|
164
145
|
* @param {CartPlatformApplicationValidator.GetAbandonedCartDetailsParam} arg
|
|
165
146
|
* - Arg object
|
|
166
147
|
*
|
|
167
148
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
168
149
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
169
|
-
* @returns {Promise<CartPlatformModel.
|
|
150
|
+
* @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
|
|
170
151
|
* @name getAbandonedCartDetails
|
|
171
152
|
* @summary: Get abandoned cart details
|
|
172
153
|
* @description: Retrieves abandoned cart details linked to a specific customer using 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/platform/cart/getAbandonedCartDetails/).
|
|
173
154
|
*/
|
|
174
|
-
getAbandonedCartDetails({ id, i, b, c, requestHeaders }?: CartPlatformApplicationValidator.GetAbandonedCartDetailsParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
155
|
+
getAbandonedCartDetails({ id, i, b, c, requestHeaders }?: CartPlatformApplicationValidator.GetAbandonedCartDetailsParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResponse>;
|
|
175
156
|
/**
|
|
176
157
|
* @param {CartPlatformApplicationValidator.GetAddressByIdParam} arg - Arg object
|
|
177
158
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -186,75 +167,75 @@ declare class Cart {
|
|
|
186
167
|
* @param {CartPlatformApplicationValidator.GetAddressesParam} arg - Arg object
|
|
187
168
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
188
169
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
189
|
-
* @returns {Promise<CartPlatformModel.
|
|
170
|
+
* @returns {Promise<CartPlatformModel.PlatformGetAddressesResponse>} -
|
|
190
171
|
* Success response
|
|
191
172
|
* @name getAddresses
|
|
192
173
|
* @summary: Get a list of addresses for a customer
|
|
193
174
|
* @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/).
|
|
194
175
|
*/
|
|
195
|
-
getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, userId, requestHeaders, }?: CartPlatformApplicationValidator.GetAddressesParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
176
|
+
getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, userId, requestHeaders, }?: CartPlatformApplicationValidator.GetAddressesParam, { responseHeaders }?: object): Promise<CartPlatformModel.PlatformGetAddressesResponse>;
|
|
196
177
|
/**
|
|
197
178
|
* @param {CartPlatformApplicationValidator.GetAppCouponsParam} arg - Arg object
|
|
198
179
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
199
180
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
200
|
-
* @returns {Promise<CartPlatformModel.
|
|
181
|
+
* @returns {Promise<CartPlatformModel.GetCouponResponse>} - Success response
|
|
201
182
|
* @name getAppCoupons
|
|
202
|
-
* @summary: List
|
|
183
|
+
* @summary: List coupons
|
|
203
184
|
* @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/platform/cart/getAppCoupons/).
|
|
204
185
|
*/
|
|
205
|
-
getAppCoupons({ id, buyNow, slug, storeId, requestHeaders }?: CartPlatformApplicationValidator.GetAppCouponsParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
186
|
+
getAppCoupons({ id, buyNow, slug, storeId, requestHeaders }?: CartPlatformApplicationValidator.GetAppCouponsParam, { responseHeaders }?: object): Promise<CartPlatformModel.GetCouponResponse>;
|
|
206
187
|
/**
|
|
207
188
|
* @param {CartPlatformApplicationValidator.GetAvailableDeliveryModesParam} arg
|
|
208
189
|
* - Arg object
|
|
209
190
|
*
|
|
210
191
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
211
192
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
212
|
-
* @returns {Promise<CartPlatformModel.
|
|
193
|
+
* @returns {Promise<CartPlatformModel.CartDeliveryModesResponse>} - Success response
|
|
213
194
|
* @name getAvailableDeliveryModes
|
|
214
195
|
* @summary: Get delivery modes
|
|
215
196
|
* @description: Retrieve a list of delivery modes (home delivery/store pickup) along with a list of available pickup stores for a given cart at a specified PIN Code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAvailableDeliveryModes/).
|
|
216
197
|
*/
|
|
217
|
-
getAvailableDeliveryModes({ areaCode, id, requestHeaders }?: CartPlatformApplicationValidator.GetAvailableDeliveryModesParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
198
|
+
getAvailableDeliveryModes({ areaCode, id, requestHeaders }?: CartPlatformApplicationValidator.GetAvailableDeliveryModesParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDeliveryModesResponse>;
|
|
218
199
|
/**
|
|
219
200
|
* @param {CartPlatformApplicationValidator.GetCartParam} arg - Arg object
|
|
220
201
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
221
202
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
222
|
-
* @returns {Promise<CartPlatformModel.
|
|
203
|
+
* @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
|
|
223
204
|
* @name getCart
|
|
224
205
|
* @summary: Get a cart
|
|
225
206
|
* @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/platform/cart/getCart/).
|
|
226
207
|
*/
|
|
227
|
-
getCart({ id, userId, orderType, i, b, assignCardId, buyNow, requestHeaders }?: CartPlatformApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
208
|
+
getCart({ id, userId, orderType, i, b, assignCardId, buyNow, requestHeaders }?: CartPlatformApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResponse>;
|
|
228
209
|
/**
|
|
229
210
|
* @param {CartPlatformApplicationValidator.GetCartListParam} arg - Arg object
|
|
230
211
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
231
212
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
232
|
-
* @returns {Promise<CartPlatformModel.
|
|
213
|
+
* @returns {Promise<CartPlatformModel.MultiCartResponse>} - Success response
|
|
233
214
|
* @name getCartList
|
|
234
|
-
* @summary: List
|
|
235
|
-
* @description: Retrieve the list of active carts associated with a specific customer.
|
|
215
|
+
* @summary: List carts
|
|
216
|
+
* @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/).
|
|
236
217
|
*/
|
|
237
|
-
getCartList({ fromDate, toDate, filterOn, requestHeaders }?: CartPlatformApplicationValidator.GetCartListParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
218
|
+
getCartList({ fromDate, toDate, filterOn, requestHeaders }?: CartPlatformApplicationValidator.GetCartListParam, { responseHeaders }?: object): Promise<CartPlatformModel.MultiCartResponse>;
|
|
238
219
|
/**
|
|
239
220
|
* @param {CartPlatformApplicationValidator.GetCartShareLinkParam} arg - Arg object
|
|
240
221
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
241
222
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
242
|
-
* @returns {Promise<CartPlatformModel.
|
|
223
|
+
* @returns {Promise<CartPlatformModel.GetShareCartLinkResponse>} - Success response
|
|
243
224
|
* @name getCartShareLink
|
|
244
225
|
* @summary: Share cart link
|
|
245
226
|
* @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/platform/cart/getCartShareLink/).
|
|
246
227
|
*/
|
|
247
|
-
getCartShareLink({ body, requestHeaders }?: CartPlatformApplicationValidator.GetCartShareLinkParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
228
|
+
getCartShareLink({ body, requestHeaders }?: CartPlatformApplicationValidator.GetCartShareLinkParam, { responseHeaders }?: object): Promise<CartPlatformModel.GetShareCartLinkResponse>;
|
|
248
229
|
/**
|
|
249
230
|
* @param {CartPlatformApplicationValidator.GetCartSharedItemsParam} arg - Arg object
|
|
250
231
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
251
232
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
252
|
-
* @returns {Promise<CartPlatformModel.
|
|
233
|
+
* @returns {Promise<CartPlatformModel.SharedCartResponse>} - Success response
|
|
253
234
|
* @name getCartSharedItems
|
|
254
235
|
* @summary: List shared cart items
|
|
255
236
|
* @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/platform/cart/getCartSharedItems/).
|
|
256
237
|
*/
|
|
257
|
-
getCartSharedItems({ token, requestHeaders }?: CartPlatformApplicationValidator.GetCartSharedItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
238
|
+
getCartSharedItems({ token, requestHeaders }?: CartPlatformApplicationValidator.GetCartSharedItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.SharedCartResponse>;
|
|
258
239
|
/**
|
|
259
240
|
* @param {CartPlatformApplicationValidator.GetCouponByIdParam} arg - Arg object
|
|
260
241
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -291,54 +272,54 @@ declare class Cart {
|
|
|
291
272
|
* @param {CartPlatformApplicationValidator.GetCouponsParam} arg - Arg object
|
|
292
273
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
293
274
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
294
|
-
* @returns {Promise<CartPlatformModel.
|
|
275
|
+
* @returns {Promise<CartPlatformModel.CouponsResponse>} - Success response
|
|
295
276
|
* @name getCoupons
|
|
296
|
-
* @summary: List
|
|
277
|
+
* @summary: List coupons
|
|
297
278
|
* @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/).
|
|
298
279
|
*/
|
|
299
|
-
getCoupons({ pageNo, pageSize, isArchived, title, isPublic, isDisplay, typeSlug, code,
|
|
280
|
+
getCoupons({ pageNo, pageSize, isArchived, title, isPublic, isDisplay, typeSlug, code, requestHeaders, }?: CartPlatformApplicationValidator.GetCouponsParam, { responseHeaders }?: object): Promise<CartPlatformModel.CouponsResponse>;
|
|
300
281
|
/**
|
|
301
282
|
* @param {CartPlatformApplicationValidator.GetItemCountParam} arg - Arg object
|
|
302
283
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
303
284
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
304
|
-
* @returns {Promise<CartPlatformModel.
|
|
285
|
+
* @returns {Promise<CartPlatformModel.CartItemCountResponse>} - Success response
|
|
305
286
|
* @name getItemCount
|
|
306
287
|
* @summary: Get a cart items count
|
|
307
288
|
* @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/platform/cart/getItemCount/).
|
|
308
289
|
*/
|
|
309
|
-
getItemCount({ id, buyNow, requestHeaders }?: CartPlatformApplicationValidator.GetItemCountParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
290
|
+
getItemCount({ id, buyNow, requestHeaders }?: CartPlatformApplicationValidator.GetItemCountParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartItemCountResponse>;
|
|
310
291
|
/**
|
|
311
292
|
* @param {CartPlatformApplicationValidator.GetPriceAdjustmentsParam} arg - Arg object
|
|
312
293
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
313
294
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
314
|
-
* @returns {Promise<CartPlatformModel.
|
|
295
|
+
* @returns {Promise<CartPlatformModel.GetPriceAdjustmentResponse>} - Success response
|
|
315
296
|
* @name getPriceAdjustments
|
|
316
297
|
* @summary: Get a list of all price adjustments associated with a cart
|
|
317
298
|
* @description: This API helps to get price adjustments data associated to a particular cart - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPriceAdjustments/).
|
|
318
299
|
*/
|
|
319
|
-
getPriceAdjustments({ cartId, requestHeaders }?: CartPlatformApplicationValidator.GetPriceAdjustmentsParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
300
|
+
getPriceAdjustments({ cartId, requestHeaders }?: CartPlatformApplicationValidator.GetPriceAdjustmentsParam, { responseHeaders }?: object): Promise<CartPlatformModel.GetPriceAdjustmentResponse>;
|
|
320
301
|
/**
|
|
321
302
|
* @param {CartPlatformApplicationValidator.GetPromosCouponConfigParam} arg
|
|
322
303
|
* - Arg object
|
|
323
304
|
*
|
|
324
305
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
325
306
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
326
|
-
* @returns {Promise<CartPlatformModel.
|
|
307
|
+
* @returns {Promise<CartPlatformModel.ActivePromosResponse>} - Success response
|
|
327
308
|
* @name getPromosCouponConfig
|
|
328
309
|
* @summary: Get promotion and coupon type
|
|
329
310
|
* @description: Retrieve the configuration settings related to promotions and coupons for a specific seller. It provides details of the supported types of coupons and promotions along with their descriptions, examples, and related attributes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromosCouponConfig/).
|
|
330
311
|
*/
|
|
331
|
-
getPromosCouponConfig({ entityType, isHidden, requestHeaders }?: CartPlatformApplicationValidator.GetPromosCouponConfigParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
312
|
+
getPromosCouponConfig({ entityType, isHidden, requestHeaders }?: CartPlatformApplicationValidator.GetPromosCouponConfigParam, { responseHeaders }?: object): Promise<CartPlatformModel.ActivePromosResponse>;
|
|
332
313
|
/**
|
|
333
314
|
* @param {CartPlatformApplicationValidator.GetPromotionByIdParam} arg - Arg object
|
|
334
315
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
335
316
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
336
|
-
* @returns {Promise<CartPlatformModel.
|
|
317
|
+
* @returns {Promise<CartPlatformModel.PromotionUpdate>} - Success response
|
|
337
318
|
* @name getPromotionById
|
|
338
|
-
* @summary: Get a
|
|
319
|
+
* @summary: Get a promotion
|
|
339
320
|
* @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/).
|
|
340
321
|
*/
|
|
341
|
-
getPromotionById({ id, requestHeaders }?: CartPlatformApplicationValidator.GetPromotionByIdParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
322
|
+
getPromotionById({ id, requestHeaders }?: CartPlatformApplicationValidator.GetPromotionByIdParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionUpdate>;
|
|
342
323
|
/**
|
|
343
324
|
* @param {CartPlatformApplicationValidator.GetPromotionCodeExistsParam} arg
|
|
344
325
|
* - Arg object
|
|
@@ -355,132 +336,120 @@ declare class Cart {
|
|
|
355
336
|
* @param {CartPlatformApplicationValidator.GetPromotionOffersParam} arg - Arg object
|
|
356
337
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
357
338
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
358
|
-
* @returns {Promise<CartPlatformModel.
|
|
339
|
+
* @returns {Promise<CartPlatformModel.PromotionOffersResponse>} - Success response
|
|
359
340
|
* @name getPromotionOffers
|
|
360
|
-
* @summary: List
|
|
341
|
+
* @summary: List available promotion offers
|
|
361
342
|
* @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/platform/cart/getPromotionOffers/).
|
|
362
343
|
*/
|
|
363
|
-
getPromotionOffers({ slug, pageSize, promotionGroup, storeId, cartType,
|
|
344
|
+
getPromotionOffers({ slug, pageSize, promotionGroup, storeId, cartType, requestHeaders }?: CartPlatformApplicationValidator.GetPromotionOffersParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionOffersResponse>;
|
|
364
345
|
/**
|
|
365
346
|
* @param {CartPlatformApplicationValidator.GetPromotionPaymentOffersParam} arg
|
|
366
347
|
* - Arg object
|
|
367
348
|
*
|
|
368
349
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
369
350
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
370
|
-
* @returns {Promise<CartPlatformModel.
|
|
351
|
+
* @returns {Promise<CartPlatformModel.PromotionPaymentOffersResponse>} -
|
|
371
352
|
* Success response
|
|
372
353
|
* @name getPromotionPaymentOffers
|
|
373
354
|
* @summary: Fetch available promotions payment offers
|
|
374
355
|
* @description: Use this API to get top 5 payment offers available for current product - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionPaymentOffers/).
|
|
375
356
|
*/
|
|
376
|
-
getPromotionPaymentOffers({ id, uid, requestHeaders }?: CartPlatformApplicationValidator.GetPromotionPaymentOffersParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
357
|
+
getPromotionPaymentOffers({ id, uid, requestHeaders }?: CartPlatformApplicationValidator.GetPromotionPaymentOffersParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionPaymentOffersResponse>;
|
|
377
358
|
/**
|
|
378
359
|
* @param {CartPlatformApplicationValidator.GetPromotionsParam} arg - Arg object
|
|
379
360
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
380
361
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
381
|
-
* @returns {Promise<CartPlatformModel.
|
|
362
|
+
* @returns {Promise<CartPlatformModel.PromotionsResponse>} - Success response
|
|
382
363
|
* @name getPromotions
|
|
383
|
-
* @summary: List
|
|
364
|
+
* @summary: List promotions
|
|
384
365
|
* @description: Retrieve a list of all created promotions for specific sales channel. It also supports efficient text search and pagination functionalities, ensuring optimized promotion listing for streamlined navigation and management. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotions/).
|
|
385
366
|
*/
|
|
386
|
-
getPromotions({ pageNo, pageSize, q, isActive, promoGroup, promotionType, fpPanel, promotionId,
|
|
367
|
+
getPromotions({ pageNo, pageSize, q, isActive, promoGroup, promotionType, fpPanel, promotionId, requestHeaders, }?: CartPlatformApplicationValidator.GetPromotionsParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionsResponse>;
|
|
387
368
|
/**
|
|
388
369
|
* @param {CartPlatformApplicationValidator.GetShipmentsParam} arg - Arg object
|
|
389
370
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
390
371
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
391
|
-
* @returns {Promise<CartPlatformModel.
|
|
372
|
+
* @returns {Promise<CartPlatformModel.PlatformCartShipmentsResponse>} -
|
|
392
373
|
* Success response
|
|
393
374
|
* @name getShipments
|
|
394
375
|
* @summary: Get shipments details
|
|
395
376
|
* @description: Use this API to get shipment details, expected delivery date, items and price breakup of the shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getShipments/).
|
|
396
377
|
*/
|
|
397
|
-
getShipments({ pickAtStoreUid, orderingStoreId, i, p, id, addressId, areaCode, orderType, requestHeaders, }?: CartPlatformApplicationValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
378
|
+
getShipments({ pickAtStoreUid, orderingStoreId, i, p, id, addressId, areaCode, orderType, requestHeaders, }?: CartPlatformApplicationValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<CartPlatformModel.PlatformCartShipmentsResponse>;
|
|
398
379
|
/**
|
|
399
380
|
* @param {CartPlatformApplicationValidator.GetStoreAddressByUidParam} arg
|
|
400
381
|
* - Arg object
|
|
401
382
|
*
|
|
402
383
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
403
384
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
404
|
-
* @returns {Promise<CartPlatformModel.
|
|
385
|
+
* @returns {Promise<CartPlatformModel.StoreDetailsResponse>} - Success response
|
|
405
386
|
* @name getStoreAddressByUid
|
|
406
387
|
* @summary: Get Store Address
|
|
407
388
|
* @description: Retrieve store details by entering the unique identifier of the pickup stores. Store details include the seller's name, contact information such as email address or phone number and business address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getStoreAddressByUid/).
|
|
408
389
|
*/
|
|
409
|
-
getStoreAddressByUid({ storeUid, requestHeaders }?: CartPlatformApplicationValidator.GetStoreAddressByUidParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
390
|
+
getStoreAddressByUid({ storeUid, requestHeaders }?: CartPlatformApplicationValidator.GetStoreAddressByUidParam, { responseHeaders }?: object): Promise<CartPlatformModel.StoreDetailsResponse>;
|
|
410
391
|
/**
|
|
411
392
|
* @param {CartPlatformApplicationValidator.OverrideCartParam} arg - Arg object
|
|
412
393
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
413
394
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
414
|
-
* @returns {Promise<CartPlatformModel.
|
|
395
|
+
* @returns {Promise<CartPlatformModel.OverrideCheckoutResponse>} - Success response
|
|
415
396
|
* @name overrideCart
|
|
416
397
|
* @summary: Update cart checkout
|
|
417
398
|
* @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/).
|
|
418
399
|
*/
|
|
419
|
-
overrideCart({ body, requestHeaders }?: CartPlatformApplicationValidator.OverrideCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
400
|
+
overrideCart({ body, requestHeaders }?: CartPlatformApplicationValidator.OverrideCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.OverrideCheckoutResponse>;
|
|
420
401
|
/**
|
|
421
402
|
* @param {CartPlatformApplicationValidator.PlatformAddItemsParam} arg - Arg object
|
|
422
403
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
423
404
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
424
|
-
* @returns {Promise<CartPlatformModel.
|
|
405
|
+
* @returns {Promise<CartPlatformModel.AddCartDetailResponse>} - Success response
|
|
425
406
|
* @name platformAddItems
|
|
426
407
|
* @summary: Add items to cart
|
|
427
408
|
* @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/platformAddItems/).
|
|
428
409
|
*/
|
|
429
|
-
platformAddItems({ body, i, b, buyNow, orderType, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformAddItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
430
|
-
/**
|
|
431
|
-
* @param {CartPlatformApplicationValidator.PlatformCheckoutCartParam} arg
|
|
432
|
-
* - Arg object
|
|
433
|
-
*
|
|
434
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
435
|
-
* @param {import("../PlatformAPIClient").Options} - Options
|
|
436
|
-
* @returns {Promise<CartPlatformModel.CartCheckoutResult>} - Success response
|
|
437
|
-
* @name platformCheckoutCart
|
|
438
|
-
* @summary: Checkout cart
|
|
439
|
-
* @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/platform/cart/platformCheckoutCart/).
|
|
440
|
-
*/
|
|
441
|
-
platformCheckoutCart({ body, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartCheckoutResult>;
|
|
410
|
+
platformAddItems({ body, i, b, buyNow, orderType, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformAddItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.AddCartDetailResponse>;
|
|
442
411
|
/**
|
|
443
412
|
* @param {CartPlatformApplicationValidator.PlatformCheckoutCartV2Param} arg
|
|
444
413
|
* - Arg object
|
|
445
414
|
*
|
|
446
415
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
447
416
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
448
|
-
* @returns {Promise<CartPlatformModel.
|
|
417
|
+
* @returns {Promise<CartPlatformModel.CartCheckoutResponse>} - Success response
|
|
449
418
|
* @name platformCheckoutCartV2
|
|
450
419
|
* @summary: Checkout cart
|
|
451
420
|
* @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/).
|
|
452
421
|
*/
|
|
453
|
-
platformCheckoutCartV2({ body, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartV2Param, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
422
|
+
platformCheckoutCartV2({ body, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartV2Param, { responseHeaders }?: object): Promise<CartPlatformModel.CartCheckoutResponse>;
|
|
454
423
|
/**
|
|
455
424
|
* @param {CartPlatformApplicationValidator.PlatformUpdateCartParam} arg - Arg object
|
|
456
425
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
457
426
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
458
|
-
* @returns {Promise<CartPlatformModel.
|
|
427
|
+
* @returns {Promise<CartPlatformModel.UpdateCartDetailResponse>} - Success response
|
|
459
428
|
* @name platformUpdateCart
|
|
460
429
|
* @summary: Update cart items
|
|
461
430
|
* @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/platform/cart/platformUpdateCart/).
|
|
462
431
|
*/
|
|
463
|
-
platformUpdateCart({ body, id, i, orderType, b, buyNow, requestHeaders }?: CartPlatformApplicationValidator.PlatformUpdateCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
432
|
+
platformUpdateCart({ body, id, i, orderType, b, buyNow, requestHeaders }?: CartPlatformApplicationValidator.PlatformUpdateCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.UpdateCartDetailResponse>;
|
|
464
433
|
/**
|
|
465
434
|
* @param {CartPlatformApplicationValidator.RemoveAddressParam} arg - Arg object
|
|
466
435
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
467
436
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
468
|
-
* @returns {Promise<CartPlatformModel.
|
|
437
|
+
* @returns {Promise<CartPlatformModel.DeleteAddressResponse>} - Success response
|
|
469
438
|
* @name removeAddress
|
|
470
439
|
* @summary: Removes an address from a customer's address list
|
|
471
440
|
* @description: Remove an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeAddress/).
|
|
472
441
|
*/
|
|
473
|
-
removeAddress({ id, userId, requestHeaders }?: CartPlatformApplicationValidator.RemoveAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
442
|
+
removeAddress({ id, userId, requestHeaders }?: CartPlatformApplicationValidator.RemoveAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.DeleteAddressResponse>;
|
|
474
443
|
/**
|
|
475
444
|
* @param {CartPlatformApplicationValidator.RemoveCouponParam} arg - Arg object
|
|
476
445
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
477
446
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
478
|
-
* @returns {Promise<CartPlatformModel.
|
|
447
|
+
* @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
|
|
479
448
|
* @name removeCoupon
|
|
480
449
|
* @summary: Remove coupon
|
|
481
450
|
* @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/).
|
|
482
451
|
*/
|
|
483
|
-
removeCoupon({ uid, buyNow, requestHeaders }?: CartPlatformApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
452
|
+
removeCoupon({ uid, buyNow, requestHeaders }?: CartPlatformApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResponse>;
|
|
484
453
|
/**
|
|
485
454
|
* @param {CartPlatformApplicationValidator.RemovePriceAdjustmentParam} arg
|
|
486
455
|
* - Arg object
|
|
@@ -497,62 +466,62 @@ declare class Cart {
|
|
|
497
466
|
* @param {CartPlatformApplicationValidator.SelectAddressParam} arg - Arg object
|
|
498
467
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
499
468
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
500
|
-
* @returns {Promise<CartPlatformModel.
|
|
469
|
+
* @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
|
|
501
470
|
* @name selectAddress
|
|
502
471
|
* @summary: Select customer address for order processing
|
|
503
472
|
* @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/).
|
|
504
473
|
*/
|
|
505
|
-
selectAddress({ body, cartId, buyNow, i, b, requestHeaders }?: CartPlatformApplicationValidator.SelectAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
474
|
+
selectAddress({ body, cartId, buyNow, i, b, requestHeaders }?: CartPlatformApplicationValidator.SelectAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResponse>;
|
|
506
475
|
/**
|
|
507
476
|
* @param {CartPlatformApplicationValidator.SelectPaymentModeParam} arg - Arg object
|
|
508
477
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
509
478
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
510
|
-
* @returns {Promise<CartPlatformModel.
|
|
479
|
+
* @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
|
|
511
480
|
* @name selectPaymentMode
|
|
512
481
|
* @summary: Select payment mode
|
|
513
482
|
* @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/platform/cart/selectPaymentMode/).
|
|
514
483
|
*/
|
|
515
|
-
selectPaymentMode({ body, id, buyNow, orderType, requestHeaders }?: CartPlatformApplicationValidator.SelectPaymentModeParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
484
|
+
selectPaymentMode({ body, id, buyNow, orderType, requestHeaders }?: CartPlatformApplicationValidator.SelectPaymentModeParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResponse>;
|
|
516
485
|
/**
|
|
517
486
|
* @param {CartPlatformApplicationValidator.SelectPaymentModeV2Param} arg - Arg object
|
|
518
487
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
519
488
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
520
|
-
* @returns {Promise<CartPlatformModel.
|
|
489
|
+
* @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
|
|
521
490
|
* @name selectPaymentModeV2
|
|
522
491
|
* @summary: Select payment mode (latest)
|
|
523
492
|
* @description: Selection of payment mode that supports multiple MOP(mode of payment). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/selectPaymentModeV2/).
|
|
524
493
|
*/
|
|
525
|
-
selectPaymentModeV2({ body, id, buyNow, orderType, requestHeaders }?: CartPlatformApplicationValidator.SelectPaymentModeV2Param, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
494
|
+
selectPaymentModeV2({ body, id, buyNow, orderType, requestHeaders }?: CartPlatformApplicationValidator.SelectPaymentModeV2Param, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResponse>;
|
|
526
495
|
/**
|
|
527
496
|
* @param {CartPlatformApplicationValidator.UpdateAddressParam} arg - Arg object
|
|
528
497
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
529
498
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
530
|
-
* @returns {Promise<CartPlatformModel.
|
|
499
|
+
* @returns {Promise<CartPlatformModel.UpdateAddressResponse>} - Success response
|
|
531
500
|
* @name updateAddress
|
|
532
501
|
* @summary: Updates an existing customer address
|
|
533
502
|
* @description: Update the user address - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateAddress/).
|
|
534
503
|
*/
|
|
535
|
-
updateAddress({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdateAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
504
|
+
updateAddress({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdateAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.UpdateAddressResponse>;
|
|
536
505
|
/**
|
|
537
506
|
* @param {CartPlatformApplicationValidator.UpdateCartParam} arg - Arg object
|
|
538
507
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
539
508
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
540
|
-
* @returns {Promise<CartPlatformModel.
|
|
509
|
+
* @returns {Promise<CartPlatformModel.UpdateCartDetailResponse>} - Success response
|
|
541
510
|
* @name updateCart
|
|
542
511
|
* @summary: Update cart items
|
|
543
512
|
* @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/platform/cart/updateCart/).
|
|
544
513
|
*/
|
|
545
|
-
updateCart({ cartId, body, b, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
514
|
+
updateCart({ cartId, body, b, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.UpdateCartDetailResponse>;
|
|
546
515
|
/**
|
|
547
516
|
* @param {CartPlatformApplicationValidator.UpdateCartMetaParam} arg - Arg object
|
|
548
517
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
549
518
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
550
|
-
* @returns {Promise<CartPlatformModel.
|
|
519
|
+
* @returns {Promise<CartPlatformModel.CartMetaResponse>} - Success response
|
|
551
520
|
* @name updateCartMeta
|
|
552
521
|
* @summary: Update cart metadata
|
|
553
522
|
* @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/platform/cart/updateCartMeta/).
|
|
554
523
|
*/
|
|
555
|
-
updateCartMeta({ body, id, buyNow, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartMetaParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
524
|
+
updateCartMeta({ body, id, buyNow, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartMetaParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartMetaResponse>;
|
|
556
525
|
/**
|
|
557
526
|
* @param {CartPlatformApplicationValidator.UpdateCartMetaConfigParam} arg
|
|
558
527
|
* - Arg object
|
|
@@ -569,34 +538,34 @@ declare class Cart {
|
|
|
569
538
|
* @param {CartPlatformApplicationValidator.UpdateCartUserParam} arg - Arg object
|
|
570
539
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
571
540
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
572
|
-
* @returns {Promise<CartPlatformModel.
|
|
541
|
+
* @returns {Promise<CartPlatformModel.UserCartMappingResponse>} - Success response
|
|
573
542
|
* @name updateCartUser
|
|
574
543
|
* @summary: Update user of a cart
|
|
575
544
|
* @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/).
|
|
576
545
|
*/
|
|
577
|
-
updateCartUser({ body, id, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartUserParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
546
|
+
updateCartUser({ body, id, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartUserParam, { responseHeaders }?: object): Promise<CartPlatformModel.UserCartMappingResponse>;
|
|
578
547
|
/**
|
|
579
548
|
* @param {CartPlatformApplicationValidator.UpdateCartWithSharedItemsParam} arg
|
|
580
549
|
* - Arg object
|
|
581
550
|
*
|
|
582
551
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
583
552
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
584
|
-
* @returns {Promise<CartPlatformModel.
|
|
553
|
+
* @returns {Promise<CartPlatformModel.SharedCartResponse>} - Success response
|
|
585
554
|
* @name updateCartWithSharedItems
|
|
586
555
|
* @summary: Update shared cart items
|
|
587
556
|
* @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/).
|
|
588
557
|
*/
|
|
589
|
-
updateCartWithSharedItems({ token, action, cartId, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartWithSharedItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
558
|
+
updateCartWithSharedItems({ token, action, cartId, requestHeaders }?: CartPlatformApplicationValidator.UpdateCartWithSharedItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.SharedCartResponse>;
|
|
590
559
|
/**
|
|
591
560
|
* @param {CartPlatformApplicationValidator.UpdateCouponParam} arg - Arg object
|
|
592
561
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
593
562
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
594
|
-
* @returns {Promise<CartPlatformModel.
|
|
563
|
+
* @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
|
|
595
564
|
* @name updateCoupon
|
|
596
565
|
* @summary: Update a coupon
|
|
597
566
|
* @description: Update the details of an existing coupon by specifying its unique identifier. This includes modifying coupon 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/updateCoupon/).
|
|
598
567
|
*/
|
|
599
|
-
updateCoupon({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdateCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
568
|
+
updateCoupon({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdateCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.SuccessMessage>;
|
|
600
569
|
/**
|
|
601
570
|
* @param {CartPlatformApplicationValidator.UpdateCouponPartiallyParam} arg
|
|
602
571
|
* - Arg object
|
|
@@ -615,22 +584,22 @@ declare class Cart {
|
|
|
615
584
|
*
|
|
616
585
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
617
586
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
618
|
-
* @returns {Promise<CartPlatformModel.
|
|
587
|
+
* @returns {Promise<CartPlatformModel.PriceAdjustmentResponse>} - Success response
|
|
619
588
|
* @name updatePriceAdjustment
|
|
620
589
|
* @summary: Update price adjustments
|
|
621
590
|
* @description: Modify price adjustments for specific items in the cart. By providing the seller ID, sales channel ID, and price adjustment ID, seller can apply discounts or other adjustments to the prices of cart items, facilitating dynamic pricing strategies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updatePriceAdjustment/).
|
|
622
591
|
*/
|
|
623
|
-
updatePriceAdjustment({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdatePriceAdjustmentParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
592
|
+
updatePriceAdjustment({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdatePriceAdjustmentParam, { responseHeaders }?: object): Promise<CartPlatformModel.PriceAdjustmentResponse>;
|
|
624
593
|
/**
|
|
625
594
|
* @param {CartPlatformApplicationValidator.UpdatePromotionParam} arg - Arg object
|
|
626
595
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
627
596
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
628
|
-
* @returns {Promise<CartPlatformModel.
|
|
597
|
+
* @returns {Promise<CartPlatformModel.PromotionUpdate>} - Success response
|
|
629
598
|
* @name updatePromotion
|
|
630
599
|
* @summary: Update a promotion
|
|
631
600
|
* @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/).
|
|
632
601
|
*/
|
|
633
|
-
updatePromotion({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdatePromotionParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
602
|
+
updatePromotion({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdatePromotionParam, { responseHeaders }?: object): Promise<CartPlatformModel.PromotionUpdate>;
|
|
634
603
|
/**
|
|
635
604
|
* @param {CartPlatformApplicationValidator.UpdatePromotionPartiallyParam} arg
|
|
636
605
|
* - Arg object
|
|
@@ -647,13 +616,13 @@ declare class Cart {
|
|
|
647
616
|
* @param {CartPlatformApplicationValidator.UpdateShipmentsParam} arg - Arg object
|
|
648
617
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
649
618
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
650
|
-
* @returns {Promise<CartPlatformModel.
|
|
619
|
+
* @returns {Promise<CartPlatformModel.PlatformCartShipmentsResponse>} -
|
|
651
620
|
* Success response
|
|
652
621
|
* @name updateShipments
|
|
653
622
|
* @summary: Update shipments
|
|
654
623
|
* @description: Update the quantity or delivery type of the shipments. Customers can switch the order type from Home Delivery to Pick At Store and vice versa. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateShipments/).
|
|
655
624
|
*/
|
|
656
|
-
updateShipments({ body, i, p, id, addressId, areaCode, orderType, requestHeaders }?: CartPlatformApplicationValidator.UpdateShipmentsParam, { responseHeaders }?: object): Promise<CartPlatformModel.
|
|
625
|
+
updateShipments({ body, i, p, id, addressId, areaCode, orderType, requestHeaders }?: CartPlatformApplicationValidator.UpdateShipmentsParam, { responseHeaders }?: object): Promise<CartPlatformModel.PlatformCartShipmentsResponse>;
|
|
657
626
|
/**
|
|
658
627
|
* @param {CartPlatformApplicationValidator.ValidateCouponForPaymentParam} arg
|
|
659
628
|
* - Arg object
|