@gofynd/fdk-client-javascript 1.4.15-beta.1 → 1.4.15-beta.10
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 +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.js +0 -18
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -90
- package/sdk/application/Cart/CartApplicationClient.js +60 -1185
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -142
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1293
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
- package/sdk/application/Common/CommonApplicationClient.js +5 -89
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -718
- package/sdk/application/Content/ContentApplicationClient.d.ts +46 -78
- package/sdk/application/Content/ContentApplicationClient.js +77 -914
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -12
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +22 -125
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
- package/sdk/application/Lead/LeadApplicationClient.js +32 -202
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +50 -478
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -42
- package/sdk/application/Order/OrderApplicationClient.js +86 -472
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -212
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2102
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -28
- package/sdk/application/Rewards/RewardsApplicationClient.js +16 -305
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +28 -162
- package/sdk/application/User/UserApplicationClient.d.ts +85 -136
- package/sdk/application/User/UserApplicationClient.js +45 -1815
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +2 -5
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -47
- package/sdk/application/index.d.ts +0 -18
- package/sdk/application/index.js +0 -33
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +2 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -0
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
- package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -0
- package/sdk/platform/Cart/CartPlatformModel.js +12 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +0 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +14 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +6 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +3 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +3 -0
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -1
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +10 -0
- package/sdk/platform/Order/OrderPlatformClient.js +99 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7 -0
- package/sdk/platform/Order/OrderPlatformModel.js +3 -0
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +56 -19
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +42 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +3 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
- package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -2
- package/sdk/public/Content/ContentPublicClient.d.ts +1 -1
- package/sdk/public/Content/ContentPublicClient.js +14 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +5 -2
- package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
- package/sdk/application/Cart/CartApplicationModel.js +0 -2497
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
- package/sdk/application/Cart/CartApplicationValidator.js +0 -530
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
- package/sdk/application/Content/ContentApplicationModel.js +0 -1589
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
- package/sdk/application/Content/ContentApplicationValidator.js +0 -264
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
- package/sdk/application/Order/OrderApplicationModel.js +0 -1471
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
- package/sdk/application/Order/OrderApplicationValidator.js +0 -197
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ const {
|
|
|
30
30
|
|
|
31
31
|
#### Browser
|
|
32
32
|
|
|
33
|
-
you can load fdk-client-javascript's application browser bundle from CDN; `ApplicationConfig
|
|
33
|
+
you can load fdk-client-javascript's application browser bundle from CDN; `ApplicationConfig` and `ApplicationClient` will be attached to browser's `window` object.
|
|
34
34
|
|
|
35
35
|
```html
|
|
36
36
|
<script src="https://cdn.jsdelivr.net/gh/gofynd/fdk-client-javascript@<version>/dist/application.js"></script>
|
|
@@ -237,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
237
237
|
The above code will log the curl command in the console
|
|
238
238
|
|
|
239
239
|
```bash
|
|
240
|
-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version:
|
|
240
|
+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.15-beta.10' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
241
241
|
Active Theme: Emerge
|
|
242
242
|
```
|
|
243
243
|
|
package/application.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ApplicationConfig } from "./sdk/application";
|
|
2
2
|
import { ApplicationClient } from "./sdk/application";
|
|
3
|
-
|
|
4
|
-
export { ApplicationConfig, ApplicationClient, ApplicationModel };
|
|
3
|
+
export { ApplicationConfig, ApplicationClient };
|
package/application.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
const {ApplicationConfig, ApplicationClient
|
|
1
|
+
const {ApplicationConfig, ApplicationClient } = require('./sdk/application');
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
ApplicationConfig: ApplicationConfig,
|
|
5
|
-
ApplicationClient: ApplicationClient
|
|
6
|
-
ApplicationModel: ApplicationModel
|
|
5
|
+
ApplicationClient: ApplicationClient
|
|
7
6
|
};
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ApplicationConfig } from "./sdk/application";
|
|
2
2
|
import { ApplicationClient } from "./sdk/application";
|
|
3
|
-
import { ApplicationModel } from "./sdk/application";
|
|
4
3
|
import { PartnerConfig } from "./sdk/partner";
|
|
5
4
|
import { PartnerClient } from "./sdk/partner";
|
|
6
5
|
import { PartnerModel } from "./sdk/partner";
|
|
@@ -13,4 +12,4 @@ import { PublicModel } from "./sdk/public";
|
|
|
13
12
|
import { fdkAxios } from "./sdk/common/AxiosHelper";
|
|
14
13
|
import Utility = require("./sdk/common/Utility");
|
|
15
14
|
import Constant = require("./sdk/common/Constant");
|
|
16
|
-
export { ApplicationConfig, ApplicationClient,
|
|
15
|
+
export { ApplicationConfig, ApplicationClient, PartnerConfig, PartnerClient, PartnerModel, PlatformConfig, PlatformClient, PlatformModel, PublicConfig, PublicClient, PublicModel, fdkAxios as FdkAxios, Utility, Constant };
|
package/index.js
CHANGED
|
@@ -12,27 +12,33 @@ module.exports = {
|
|
|
12
12
|
|
|
13
13
|
ApplicationConfig,
|
|
14
14
|
ApplicationClient,
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
PartnerConfig,
|
|
20
20
|
PartnerClient,
|
|
21
|
+
|
|
21
22
|
PartnerModel,
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
|
|
26
|
+
|
|
25
27
|
PlatformConfig,
|
|
26
28
|
PlatformClient,
|
|
29
|
+
|
|
27
30
|
PlatformModel,
|
|
28
31
|
|
|
29
32
|
|
|
30
33
|
|
|
34
|
+
|
|
31
35
|
PublicConfig,
|
|
32
36
|
PublicClient,
|
|
37
|
+
|
|
33
38
|
PublicModel,
|
|
34
39
|
|
|
35
40
|
|
|
41
|
+
|
|
36
42
|
FdkAxios: fdkAxios,
|
|
37
43
|
Utility,
|
|
38
44
|
Constant,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gofynd/fdk-client-javascript",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.4.15-beta.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
"joi": "^17.7.0",
|
|
19
19
|
"loglevel": "^1.8.1",
|
|
20
20
|
"query-string": "^7.1.3",
|
|
21
|
-
"@gofynd/fp-signature": "^1.0.1"
|
|
22
|
-
"@gofynd/flick": "^1.0.9"
|
|
21
|
+
"@gofynd/fp-signature": "^1.0.1"
|
|
23
22
|
},
|
|
24
23
|
"devDependencies": {
|
|
25
24
|
"axios-cookiejar-support": "^4.0.6",
|
|
@@ -44,24 +44,6 @@ class ApplicationClient {
|
|
|
44
44
|
this.theme = new Theme(config);
|
|
45
45
|
this.user = new User(config);
|
|
46
46
|
this.webhook = new Webhook(config);
|
|
47
|
-
if (
|
|
48
|
-
typeof window != "undefined" &&
|
|
49
|
-
config.options &&
|
|
50
|
-
config.options.enable_clickstream
|
|
51
|
-
) {
|
|
52
|
-
const Clickstream = require("@gofynd/flick");
|
|
53
|
-
Logger({
|
|
54
|
-
level: "DEBUG",
|
|
55
|
-
message: `initializing clickstream with base url ${config.domain}`,
|
|
56
|
-
});
|
|
57
|
-
Clickstream.initialize(
|
|
58
|
-
config.domain,
|
|
59
|
-
convertStringToBase64(
|
|
60
|
-
config.applicationID + ":" + config.applicationToken
|
|
61
|
-
)
|
|
62
|
-
);
|
|
63
|
-
require("../common/Clickstream");
|
|
64
|
-
}
|
|
65
47
|
}
|
|
66
48
|
|
|
67
49
|
/**
|
|
@@ -35,108 +35,96 @@ declare class Cart {
|
|
|
35
35
|
_urls: {};
|
|
36
36
|
updateUrls(urls: any): void;
|
|
37
37
|
/**
|
|
38
|
-
* @param {CartApplicationValidator.AddAddressParam} arg - Arg object.
|
|
39
38
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
40
39
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
41
|
-
* @returns {Promise<
|
|
40
|
+
* @returns {Promise<SaveAddressResponse>} - Success response
|
|
42
41
|
* @name addAddress
|
|
43
42
|
* @summary: Creates a new address for a customer
|
|
44
43
|
* @description: 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/).
|
|
45
44
|
*/
|
|
46
|
-
addAddress({ body, requestHeaders }?:
|
|
45
|
+
addAddress({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SaveAddressResponse>;
|
|
47
46
|
/**
|
|
48
|
-
* @param {CartApplicationValidator.AddItemsParam} arg - Arg object.
|
|
49
47
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
50
48
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
51
|
-
* @returns {Promise<
|
|
49
|
+
* @returns {Promise<AddCartDetailResponse>} - Success response
|
|
52
50
|
* @name addItems
|
|
53
51
|
* @summary: Add items to a cart
|
|
54
52
|
* @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/).
|
|
55
53
|
*/
|
|
56
|
-
addItems({ body, i, b, areaCode, buyNow, id, orderType, requestHeaders }?:
|
|
54
|
+
addItems({ body, i, b, areaCode, buyNow, id, orderType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AddCartDetailResponse>;
|
|
57
55
|
/**
|
|
58
|
-
* @param {CartApplicationValidator.ApplyCouponParam} arg - Arg object.
|
|
59
56
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
60
57
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
61
|
-
* @returns {Promise<
|
|
58
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
62
59
|
* @name applyCoupon
|
|
63
60
|
* @summary: Apply coupon
|
|
64
61
|
* @description: Apply a coupon code to the cart to trigger discounts on eligible items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyCoupon/).
|
|
65
62
|
*/
|
|
66
|
-
applyCoupon({ body, i, b, p, id, buyNow, cartType, requestHeaders }?:
|
|
63
|
+
applyCoupon({ body, i, b, p, id, buyNow, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResponse>;
|
|
67
64
|
/**
|
|
68
|
-
* @param {CartApplicationValidator.ApplyRewardPointsParam} arg - Arg object.
|
|
69
65
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
70
66
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
71
|
-
* @returns {Promise<
|
|
67
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
72
68
|
* @name applyRewardPoints
|
|
73
69
|
* @summary: Use reward points
|
|
74
70
|
* @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/).
|
|
75
71
|
*/
|
|
76
|
-
applyRewardPoints({ body, id, i, b, buyNow, requestHeaders }?:
|
|
72
|
+
applyRewardPoints({ body, id, i, b, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResponse>;
|
|
77
73
|
/**
|
|
78
|
-
* @param {CartApplicationValidator.CheckoutCartV2Param} arg - Arg object.
|
|
79
74
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
80
75
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
81
|
-
* @returns {Promise<
|
|
76
|
+
* @returns {Promise<CartCheckoutResponse>} - Success response
|
|
82
77
|
* @name checkoutCartV2
|
|
83
78
|
* @summary: Checkout cart
|
|
84
79
|
* @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/application/cart/checkoutCartV2/).
|
|
85
80
|
*/
|
|
86
|
-
checkoutCartV2({ body, buyNow, cartType, requestHeaders }?:
|
|
81
|
+
checkoutCartV2({ body, buyNow, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartCheckoutResponse>;
|
|
87
82
|
/**
|
|
88
|
-
* @param {CartApplicationValidator.DeleteCartParam} arg - Arg object.
|
|
89
83
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
90
84
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
91
|
-
* @returns {Promise<
|
|
92
|
-
* Success response
|
|
85
|
+
* @returns {Promise<DeleteCartDetailResponse>} - Success response
|
|
93
86
|
* @name deleteCart
|
|
94
87
|
* @summary: Delete a cart
|
|
95
88
|
* @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/).
|
|
96
89
|
*/
|
|
97
|
-
deleteCart({ id, requestHeaders }?:
|
|
90
|
+
deleteCart({ id, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<DeleteCartDetailResponse>;
|
|
98
91
|
/**
|
|
99
|
-
* @param {CartApplicationValidator.GetAddressByIdParam} arg - Arg object.
|
|
100
92
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
101
93
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
102
|
-
* @returns {Promise<
|
|
94
|
+
* @returns {Promise<Address>} - Success response
|
|
103
95
|
* @name getAddressById
|
|
104
96
|
* @summary: Get details for a single customer address
|
|
105
97
|
* @description: Get 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/).
|
|
106
98
|
*/
|
|
107
|
-
getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?:
|
|
99
|
+
getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<Address>;
|
|
108
100
|
/**
|
|
109
|
-
* @param {CartApplicationValidator.GetAddressesParam} arg - Arg object.
|
|
110
101
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
111
102
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
112
|
-
* @returns {Promise<
|
|
103
|
+
* @returns {Promise<GetAddressesResponse>} - Success response
|
|
113
104
|
* @name getAddresses
|
|
114
105
|
* @summary: Get a list of addresses for a customer
|
|
115
106
|
* @description: List 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/).
|
|
116
107
|
*/
|
|
117
|
-
getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?:
|
|
108
|
+
getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetAddressesResponse>;
|
|
118
109
|
/**
|
|
119
|
-
* @param {CartApplicationValidator.GetBulkDiscountOffersParam} arg - Arg object.
|
|
120
110
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
121
111
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
122
|
-
* @returns {Promise<
|
|
112
|
+
* @returns {Promise<BulkPriceResponse>} - Success response
|
|
123
113
|
* @name getBulkDiscountOffers
|
|
124
114
|
* @summary: List bulk discounts
|
|
125
115
|
* @description: List 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/).
|
|
126
116
|
*/
|
|
127
|
-
getBulkDiscountOffers({ itemId, articleId, uid, slug, requestHeaders }?:
|
|
117
|
+
getBulkDiscountOffers({ itemId, articleId, uid, slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<BulkPriceResponse>;
|
|
128
118
|
/**
|
|
129
|
-
* @param {CartApplicationValidator.GetCartParam} arg - Arg object.
|
|
130
119
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
131
120
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
132
|
-
* @returns {Promise<
|
|
121
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
133
122
|
* @name getCart
|
|
134
123
|
* @summary: Get a cart
|
|
135
124
|
* @description: Get details of a cart 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/application/cart/getCart/).
|
|
136
125
|
*/
|
|
137
|
-
getCart({ id, i, b, c, assignCardId, areaCode, buyNow, orderType, requestHeaders, }?:
|
|
126
|
+
getCart({ id, i, b, c, assignCardId, areaCode, buyNow, orderType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResponse>;
|
|
138
127
|
/**
|
|
139
|
-
* @param {CartApplicationValidator.GetCartLastModifiedParam} arg - Arg object.
|
|
140
128
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
141
129
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
142
130
|
* @returns {Promise<any>} - Success response
|
|
@@ -144,181 +132,158 @@ declare class Cart {
|
|
|
144
132
|
* @summary: Get last modified timestamp of a cart
|
|
145
133
|
* @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/).
|
|
146
134
|
*/
|
|
147
|
-
getCartLastModified({ id, requestHeaders }?:
|
|
135
|
+
getCartLastModified({ id, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<any>;
|
|
148
136
|
/**
|
|
149
|
-
* @param {CartApplicationValidator.GetCartShareLinkParam} arg - Arg object.
|
|
150
137
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
151
138
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
152
|
-
* @returns {Promise<
|
|
153
|
-
* Success response
|
|
139
|
+
* @returns {Promise<GetShareCartLinkResponse>} - Success response
|
|
154
140
|
* @name getCartShareLink
|
|
155
141
|
* @summary: Create share cart link
|
|
156
142
|
* @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/).
|
|
157
143
|
*/
|
|
158
|
-
getCartShareLink({ body, requestHeaders }?:
|
|
144
|
+
getCartShareLink({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetShareCartLinkResponse>;
|
|
159
145
|
/**
|
|
160
|
-
* @param {CartApplicationValidator.GetCartSharedItemsParam} arg - Arg object.
|
|
161
146
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
162
147
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
163
|
-
* @returns {Promise<
|
|
148
|
+
* @returns {Promise<SharedCartResponse>} - Success response
|
|
164
149
|
* @name getCartSharedItems
|
|
165
150
|
* @summary: List shared cart items
|
|
166
151
|
* @description: Get 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/).
|
|
167
152
|
*/
|
|
168
|
-
getCartSharedItems({ token, requestHeaders }?:
|
|
153
|
+
getCartSharedItems({ token, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SharedCartResponse>;
|
|
169
154
|
/**
|
|
170
|
-
* @param {CartApplicationValidator.GetCouponsParam} arg - Arg object.
|
|
171
155
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
172
156
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
173
|
-
* @returns {Promise<
|
|
157
|
+
* @returns {Promise<GetCouponResponse>} - Success response
|
|
174
158
|
* @name getCoupons
|
|
175
159
|
* @summary: List available coupons
|
|
176
160
|
* @description: List 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/).
|
|
177
161
|
*/
|
|
178
|
-
getCoupons({ id, buyNow, slug, storeId, requestHeaders }?:
|
|
162
|
+
getCoupons({ id, buyNow, slug, storeId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCouponResponse>;
|
|
179
163
|
/**
|
|
180
|
-
* @param {CartApplicationValidator.GetItemCountParam} arg - Arg object.
|
|
181
164
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
182
165
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
183
|
-
* @returns {Promise<
|
|
166
|
+
* @returns {Promise<CartItemCountResponse>} - Success response
|
|
184
167
|
* @name getItemCount
|
|
185
168
|
* @summary: Get a cart items count
|
|
186
169
|
* @description: Get 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/).
|
|
187
170
|
*/
|
|
188
|
-
getItemCount({ id, buyNow, requestHeaders }?:
|
|
171
|
+
getItemCount({ id, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartItemCountResponse>;
|
|
189
172
|
/**
|
|
190
|
-
* @param {CartApplicationValidator.GetLadderOffersParam} arg - Arg object.
|
|
191
173
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
192
174
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
193
|
-
* @returns {Promise<
|
|
175
|
+
* @returns {Promise<LadderPriceOffers>} - Success response
|
|
194
176
|
* @name getLadderOffers
|
|
195
177
|
* @summary: List ladder offers
|
|
196
178
|
* @description: Get 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/).
|
|
197
179
|
*/
|
|
198
|
-
getLadderOffers({ slug, storeId, promotionId, pageSize, requestHeaders }?:
|
|
180
|
+
getLadderOffers({ slug, storeId, promotionId, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<LadderPriceOffers>;
|
|
199
181
|
/**
|
|
200
|
-
* @param {CartApplicationValidator.GetPromotionOffersParam} arg - Arg object.
|
|
201
182
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
202
183
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
203
|
-
* @returns {Promise<
|
|
184
|
+
* @returns {Promise<PromotionOffersResponse>} - Success response
|
|
204
185
|
* @name getPromotionOffers
|
|
205
186
|
* @summary: List available promotion offers
|
|
206
187
|
* @description: List 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/).
|
|
207
188
|
*/
|
|
208
|
-
getPromotionOffers({ slug, pageSize, promotionGroup, storeId, cartType, requestHeaders }?:
|
|
189
|
+
getPromotionOffers({ slug, pageSize, promotionGroup, storeId, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PromotionOffersResponse>;
|
|
209
190
|
/**
|
|
210
|
-
* @param {CartApplicationValidator.GetPromotionPaymentOffersParam} arg - Arg object.
|
|
211
191
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
212
192
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
213
|
-
* @returns {Promise<
|
|
214
|
-
* - Success response
|
|
215
|
-
*
|
|
193
|
+
* @returns {Promise<PromotionPaymentOffersResponse>} - Success response
|
|
216
194
|
* @name getPromotionPaymentOffers
|
|
217
195
|
* @summary: Fetch available promotions payment offers
|
|
218
196
|
* @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/application/cart/getPromotionPaymentOffers/).
|
|
219
197
|
*/
|
|
220
|
-
getPromotionPaymentOffers({ id, uid, requestHeaders }?:
|
|
198
|
+
getPromotionPaymentOffers({ id, uid, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PromotionPaymentOffersResponse>;
|
|
221
199
|
/**
|
|
222
|
-
* @param {CartApplicationValidator.GetShipmentsParam} arg - Arg object.
|
|
223
200
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
224
201
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
225
|
-
* @returns {Promise<
|
|
202
|
+
* @returns {Promise<CartShipmentsResponse>} - Success response
|
|
226
203
|
* @name getShipments
|
|
227
204
|
* @summary: List shipments
|
|
228
205
|
* @description: Get 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/).
|
|
229
206
|
*/
|
|
230
|
-
getShipments({ p, id, buyNow, addressId, areaCode, orderType, requestHeaders }?:
|
|
207
|
+
getShipments({ p, id, buyNow, addressId, areaCode, orderType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartShipmentsResponse>;
|
|
231
208
|
/**
|
|
232
|
-
* @param {CartApplicationValidator.RemoveAddressParam} arg - Arg object.
|
|
233
209
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
234
210
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
235
|
-
* @returns {Promise<
|
|
211
|
+
* @returns {Promise<DeleteAddressResponse>} - Success response
|
|
236
212
|
* @name removeAddress
|
|
237
213
|
* @summary: Removes an address from a customer's address list
|
|
238
214
|
* @description: Delete an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
|
|
239
215
|
*/
|
|
240
|
-
removeAddress({ id, requestHeaders }?:
|
|
216
|
+
removeAddress({ id, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<DeleteAddressResponse>;
|
|
241
217
|
/**
|
|
242
|
-
* @param {CartApplicationValidator.RemoveCouponParam} arg - Arg object.
|
|
243
218
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
244
219
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
245
|
-
* @returns {Promise<
|
|
220
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
246
221
|
* @name removeCoupon
|
|
247
222
|
* @summary: Remove coupon
|
|
248
223
|
* @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/).
|
|
249
224
|
*/
|
|
250
|
-
removeCoupon({ id, buyNow, requestHeaders }?:
|
|
225
|
+
removeCoupon({ id, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResponse>;
|
|
251
226
|
/**
|
|
252
|
-
* @param {CartApplicationValidator.SelectAddressParam} arg - Arg object.
|
|
253
227
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
254
228
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
255
|
-
* @returns {Promise<
|
|
229
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
256
230
|
* @name selectAddress
|
|
257
231
|
* @summary: Select customer address for order processing
|
|
258
232
|
* @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/application/cart/selectAddress/).
|
|
259
233
|
*/
|
|
260
|
-
selectAddress({ body, cartId, buyNow, i, b, requestHeaders }?:
|
|
234
|
+
selectAddress({ body, cartId, buyNow, i, b, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResponse>;
|
|
261
235
|
/**
|
|
262
|
-
* @param {CartApplicationValidator.SelectPaymentModeParam} arg - Arg object.
|
|
263
236
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
264
237
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
265
|
-
* @returns {Promise<
|
|
238
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
266
239
|
* @name selectPaymentMode
|
|
267
240
|
* @summary: Select payment mode
|
|
268
241
|
* @description: 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/).
|
|
269
242
|
*/
|
|
270
|
-
selectPaymentMode({ body, id, buyNow, requestHeaders }?:
|
|
243
|
+
selectPaymentMode({ body, id, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResponse>;
|
|
271
244
|
/**
|
|
272
|
-
* @param {CartApplicationValidator.UpdateAddressParam} arg - Arg object.
|
|
273
245
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
274
246
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
275
|
-
* @returns {Promise<
|
|
247
|
+
* @returns {Promise<UpdateAddressResponse>} - Success response
|
|
276
248
|
* @name updateAddress
|
|
277
249
|
* @summary: Updates an existing customer address
|
|
278
250
|
* @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/).
|
|
279
251
|
*/
|
|
280
|
-
updateAddress({ id, body, requestHeaders }?:
|
|
252
|
+
updateAddress({ id, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<UpdateAddressResponse>;
|
|
281
253
|
/**
|
|
282
|
-
* @param {CartApplicationValidator.UpdateCartParam} arg - Arg object.
|
|
283
254
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
284
255
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
285
|
-
* @returns {Promise<
|
|
286
|
-
* Success response
|
|
256
|
+
* @returns {Promise<UpdateCartDetailResponse>} - Success response
|
|
287
257
|
* @name updateCart
|
|
288
258
|
* @summary: Update cart items
|
|
289
259
|
* @description: Update cart. 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/).
|
|
290
260
|
*/
|
|
291
|
-
updateCart({ body, id, i, b, areaCode, buyNow, cartType, orderType, requestHeaders, }?:
|
|
261
|
+
updateCart({ body, id, i, b, areaCode, buyNow, cartType, orderType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<UpdateCartDetailResponse>;
|
|
292
262
|
/**
|
|
293
|
-
* @param {CartApplicationValidator.UpdateCartMetaParam} arg - Arg object.
|
|
294
263
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
295
264
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
296
|
-
* @returns {Promise<
|
|
265
|
+
* @returns {Promise<CartMetaResponse>} - Success response
|
|
297
266
|
* @name updateCartMeta
|
|
298
267
|
* @summary: Update cart metadata
|
|
299
268
|
* @description: Update 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/).
|
|
300
269
|
*/
|
|
301
|
-
updateCartMeta({ body, id, buyNow, requestHeaders }?:
|
|
270
|
+
updateCartMeta({ body, id, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartMetaResponse>;
|
|
302
271
|
/**
|
|
303
|
-
* @param {CartApplicationValidator.UpdateCartWithSharedItemsParam} arg - Arg object.
|
|
304
272
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
305
273
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
306
|
-
* @returns {Promise<
|
|
274
|
+
* @returns {Promise<SharedCartResponse>} - Success response
|
|
307
275
|
* @name updateCartWithSharedItems
|
|
308
276
|
* @summary: Update with shared items
|
|
309
277
|
* @description: Merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
|
|
310
278
|
*/
|
|
311
|
-
updateCartWithSharedItems({ token, action, requestHeaders }?:
|
|
279
|
+
updateCartWithSharedItems({ token, action, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SharedCartResponse>;
|
|
312
280
|
/**
|
|
313
|
-
* @param {CartApplicationValidator.ValidateCouponForPaymentParam} arg - Arg object.
|
|
314
281
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
315
282
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
316
|
-
* @returns {Promise<
|
|
283
|
+
* @returns {Promise<PaymentCouponValidate>} - Success response
|
|
317
284
|
* @name validateCouponForPayment
|
|
318
285
|
* @summary: Validate applied coupon
|
|
319
286
|
* @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/).
|
|
320
287
|
*/
|
|
321
|
-
validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, cartType, requestHeaders, }?:
|
|
288
|
+
validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, cartType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PaymentCouponValidate>;
|
|
322
289
|
}
|
|
323
|
-
import CartApplicationValidator = require("./CartApplicationValidator");
|
|
324
|
-
import CartApplicationModel = require("./CartApplicationModel");
|