@gofynd/fdk-client-javascript 1.4.15-beta.10 → 1.4.15-beta.12
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 +2 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +10 -0
- package/sdk/application/Cart/CartApplicationClient.js +40 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +10 -0
- package/sdk/application/Catalog/CatalogApplicationClient.js +39 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +1 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +0 -3
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +0 -2
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +51 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +331 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +47 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +51 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +251 -1
- package/sdk/platform/Cart/CartPlatformModel.js +208 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -3
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -3
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +1 -3
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +0 -3
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -16
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -20
package/README.md
CHANGED
|
@@ -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: 1.4.15-beta.
|
|
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.12' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
241
241
|
Active Theme: Emerge
|
|
242
242
|
```
|
|
243
243
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gofynd/fdk-client-javascript",
|
|
3
|
-
"version": "1.4.15-beta.
|
|
3
|
+
"version": "1.4.15-beta.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"build": "webpack",
|
|
11
11
|
"prettier": "npx prettier -w ./sdk ./tests && npx tsc"
|
|
12
12
|
},
|
|
13
|
-
"author": "Jigar Dafda
|
|
13
|
+
"author": "Jigar Dafda",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"axios": "^1.6.4",
|
|
@@ -7,6 +7,7 @@ declare class Cart {
|
|
|
7
7
|
addItems: string;
|
|
8
8
|
applyCoupon: string;
|
|
9
9
|
applyRewardPoints: string;
|
|
10
|
+
checkoutCart: string;
|
|
10
11
|
checkoutCartV2: string;
|
|
11
12
|
deleteCart: string;
|
|
12
13
|
getAddressById: string;
|
|
@@ -70,6 +71,15 @@ declare class Cart {
|
|
|
70
71
|
* @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/).
|
|
71
72
|
*/
|
|
72
73
|
applyRewardPoints({ body, id, i, b, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
76
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
77
|
+
* @returns {Promise<CartCheckoutResponse>} - Success response
|
|
78
|
+
* @name checkoutCart
|
|
79
|
+
* @summary: Checkout cart
|
|
80
|
+
* @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/).
|
|
81
|
+
*/
|
|
82
|
+
checkoutCart({ body, buyNow, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartCheckoutResponse>;
|
|
73
83
|
/**
|
|
74
84
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
75
85
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -16,6 +16,7 @@ class Cart {
|
|
|
16
16
|
addItems: "/service/application/cart/v1.0/detail",
|
|
17
17
|
applyCoupon: "/service/application/cart/v1.0/coupon",
|
|
18
18
|
applyRewardPoints: "/service/application/cart/v1.0/redeem/points/",
|
|
19
|
+
checkoutCart: "/service/application/cart/v1.0/checkout",
|
|
19
20
|
checkoutCartV2: "/service/application/cart/v2.0/checkout",
|
|
20
21
|
deleteCart: "/service/application/cart/v1.0/cart_archive",
|
|
21
22
|
getAddressById: "/service/application/cart/v1.0/address/{id}",
|
|
@@ -228,6 +229,45 @@ class Cart {
|
|
|
228
229
|
return response;
|
|
229
230
|
}
|
|
230
231
|
|
|
232
|
+
/**
|
|
233
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
234
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
235
|
+
* @returns {Promise<CartCheckoutResponse>} - Success response
|
|
236
|
+
* @name checkoutCart
|
|
237
|
+
* @summary: Checkout cart
|
|
238
|
+
* @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/).
|
|
239
|
+
*/
|
|
240
|
+
async checkoutCart(
|
|
241
|
+
{ body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
|
|
242
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
243
|
+
) {
|
|
244
|
+
const query_params = {};
|
|
245
|
+
query_params["buy_now"] = buyNow;
|
|
246
|
+
query_params["cart_type"] = cartType;
|
|
247
|
+
|
|
248
|
+
const xHeaders = {};
|
|
249
|
+
|
|
250
|
+
const response = await ApplicationAPIClient.execute(
|
|
251
|
+
this._conf,
|
|
252
|
+
"post",
|
|
253
|
+
constructUrl({
|
|
254
|
+
url: this._urls["checkoutCart"],
|
|
255
|
+
params: {},
|
|
256
|
+
}),
|
|
257
|
+
query_params,
|
|
258
|
+
body,
|
|
259
|
+
{ ...xHeaders, ...requestHeaders },
|
|
260
|
+
{ responseHeaders }
|
|
261
|
+
);
|
|
262
|
+
|
|
263
|
+
let responseData = response;
|
|
264
|
+
if (responseHeaders) {
|
|
265
|
+
responseData = response[0];
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
return response;
|
|
269
|
+
}
|
|
270
|
+
|
|
231
271
|
/**
|
|
232
272
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
233
273
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -29,6 +29,7 @@ declare class Catalog {
|
|
|
29
29
|
getProductStockForTimeByIds: string;
|
|
30
30
|
getProductVariantsBySlug: string;
|
|
31
31
|
getProducts: string;
|
|
32
|
+
getProductsServiceability: string;
|
|
32
33
|
getSearchResults: string;
|
|
33
34
|
getSimilarComparisonProductBySlug: string;
|
|
34
35
|
getStores: string;
|
|
@@ -436,6 +437,15 @@ declare class Catalog {
|
|
|
436
437
|
sortOn?: string;
|
|
437
438
|
pageSize?: number;
|
|
438
439
|
}): Paginator<ProductListingResponse>;
|
|
440
|
+
/**
|
|
441
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
442
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
443
|
+
* @returns {Promise<ProductSizePriceServiceabilityResponse>} - Success response
|
|
444
|
+
* @name getProductsServiceability
|
|
445
|
+
* @summary: get size price for multiple products,For serviceability
|
|
446
|
+
* @description: Get size price for multiple products, For serviceability, with reduced size of response - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductsServiceability/).
|
|
447
|
+
*/
|
|
448
|
+
getProductsServiceability({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ProductSizePriceServiceabilityResponse>;
|
|
439
449
|
/**
|
|
440
450
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
441
451
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -56,6 +56,8 @@ class Catalog {
|
|
|
56
56
|
getProductVariantsBySlug:
|
|
57
57
|
"/service/application/catalog/v1.0/products/{slug}/variants/",
|
|
58
58
|
getProducts: "/service/application/catalog/v1.0/products/",
|
|
59
|
+
getProductsServiceability:
|
|
60
|
+
"/service/application/catalog/v1.0/products/serviceability",
|
|
59
61
|
getSearchResults: "/service/application/catalog/v1.0/auto-complete/",
|
|
60
62
|
getSimilarComparisonProductBySlug:
|
|
61
63
|
"/service/application/catalog/v1.0/products/{slug}/similar/compare/",
|
|
@@ -1598,6 +1600,43 @@ class Catalog {
|
|
|
1598
1600
|
return paginator;
|
|
1599
1601
|
}
|
|
1600
1602
|
|
|
1603
|
+
/**
|
|
1604
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1605
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1606
|
+
* @returns {Promise<ProductSizePriceServiceabilityResponse>} - Success response
|
|
1607
|
+
* @name getProductsServiceability
|
|
1608
|
+
* @summary: get size price for multiple products,For serviceability
|
|
1609
|
+
* @description: Get size price for multiple products, For serviceability, with reduced size of response - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductsServiceability/).
|
|
1610
|
+
*/
|
|
1611
|
+
async getProductsServiceability(
|
|
1612
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1613
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1614
|
+
) {
|
|
1615
|
+
const query_params = {};
|
|
1616
|
+
|
|
1617
|
+
const xHeaders = {};
|
|
1618
|
+
|
|
1619
|
+
const response = await ApplicationAPIClient.execute(
|
|
1620
|
+
this._conf,
|
|
1621
|
+
"post",
|
|
1622
|
+
constructUrl({
|
|
1623
|
+
url: this._urls["getProductsServiceability"],
|
|
1624
|
+
params: {},
|
|
1625
|
+
}),
|
|
1626
|
+
query_params,
|
|
1627
|
+
body,
|
|
1628
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1629
|
+
{ responseHeaders }
|
|
1630
|
+
);
|
|
1631
|
+
|
|
1632
|
+
let responseData = response;
|
|
1633
|
+
if (responseHeaders) {
|
|
1634
|
+
responseData = response[0];
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
return response;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1601
1640
|
/**
|
|
1602
1641
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1603
1642
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -43,15 +43,13 @@ declare class FileStorage {
|
|
|
43
43
|
* @param {string} namespace
|
|
44
44
|
* @param {number} size
|
|
45
45
|
* @param {number} tags
|
|
46
|
-
* @param {string} enc_key
|
|
47
46
|
*/
|
|
48
|
-
upload({ data, file_name, content_type, namespace, size, tags,
|
|
47
|
+
upload({ data, file_name, content_type, namespace, size, tags, }?: {
|
|
49
48
|
data: any;
|
|
50
49
|
file_name: any;
|
|
51
50
|
content_type: any;
|
|
52
51
|
namespace: any;
|
|
53
52
|
size: any;
|
|
54
53
|
tags: any;
|
|
55
|
-
enc_key: any;
|
|
56
54
|
}): Promise<any>;
|
|
57
55
|
}
|
|
@@ -173,7 +173,6 @@ class FileStorage {
|
|
|
173
173
|
* @param {string} namespace
|
|
174
174
|
* @param {number} size
|
|
175
175
|
* @param {number} tags
|
|
176
|
-
* @param {string} enc_key
|
|
177
176
|
*/
|
|
178
177
|
FileStorage.prototype.upload = function ({
|
|
179
178
|
data,
|
|
@@ -182,7 +181,6 @@ FileStorage.prototype.upload = function ({
|
|
|
182
181
|
namespace,
|
|
183
182
|
size,
|
|
184
183
|
tags,
|
|
185
|
-
enc_key,
|
|
186
184
|
} = {}) {
|
|
187
185
|
return new Promise(async (resolve, reject) => {
|
|
188
186
|
try {
|
|
@@ -193,7 +191,6 @@ FileStorage.prototype.upload = function ({
|
|
|
193
191
|
content_type,
|
|
194
192
|
size: size,
|
|
195
193
|
tags: tags,
|
|
196
|
-
enc_key: enc_key,
|
|
197
194
|
},
|
|
198
195
|
});
|
|
199
196
|
if (dataObj.upload && dataObj.upload.url) {
|
|
@@ -30,7 +30,6 @@ export = FileStoragePartnerModel;
|
|
|
30
30
|
* @property {number} size
|
|
31
31
|
* @property {string[]} [tags]
|
|
32
32
|
* @property {Object} [params]
|
|
33
|
-
* @property {string} [enc_key]
|
|
34
33
|
*/
|
|
35
34
|
/**
|
|
36
35
|
* @typedef CreatedBy
|
|
@@ -97,7 +96,6 @@ type StartRequest = {
|
|
|
97
96
|
size: number;
|
|
98
97
|
tags?: string[];
|
|
99
98
|
params?: any;
|
|
100
|
-
enc_key?: string;
|
|
101
99
|
};
|
|
102
100
|
/** @returns {CreatedBy} */
|
|
103
101
|
declare function CreatedBy(): CreatedBy;
|
|
@@ -34,7 +34,6 @@ const Joi = require("joi");
|
|
|
34
34
|
* @property {number} size
|
|
35
35
|
* @property {string[]} [tags]
|
|
36
36
|
* @property {Object} [params]
|
|
37
|
-
* @property {string} [enc_key]
|
|
38
37
|
*/
|
|
39
38
|
|
|
40
39
|
/**
|
|
@@ -107,7 +106,6 @@ class FileStoragePartnerModel {
|
|
|
107
106
|
size: Joi.number().required(),
|
|
108
107
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
109
108
|
params: Joi.object().pattern(/\S/, Joi.any()),
|
|
110
|
-
enc_key: Joi.string().allow(""),
|
|
111
109
|
});
|
|
112
110
|
}
|
|
113
111
|
|
|
@@ -13,6 +13,19 @@ declare class Cart {
|
|
|
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
15
|
addAddress({ body, requestHeaders }?: CartPlatformApplicationValidator.AddAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.SaveAddressResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* @param {CartPlatformApplicationValidator.AddBulkPriceAdjustmentParam} arg
|
|
18
|
+
* - Arg object
|
|
19
|
+
*
|
|
20
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
21
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
22
|
+
* @returns {Promise<CartPlatformModel.BulkPriceAdjustmentResponse>} -
|
|
23
|
+
* Success response
|
|
24
|
+
* @name addBulkPriceAdjustment
|
|
25
|
+
* @summary: Create price adjustments in Bulk
|
|
26
|
+
* @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/addBulkPriceAdjustment/).
|
|
27
|
+
*/
|
|
28
|
+
addBulkPriceAdjustment({ body, requestHeaders }?: CartPlatformApplicationValidator.AddBulkPriceAdjustmentParam, { responseHeaders }?: object): Promise<CartPlatformModel.BulkPriceAdjustmentResponse>;
|
|
16
29
|
/**
|
|
17
30
|
* @param {CartPlatformApplicationValidator.AddItemsParam} arg - Arg object
|
|
18
31
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -408,6 +421,18 @@ declare class Cart {
|
|
|
408
421
|
* @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/).
|
|
409
422
|
*/
|
|
410
423
|
platformAddItems({ body, i, b, buyNow, orderType, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformAddItemsParam, { responseHeaders }?: object): Promise<CartPlatformModel.AddCartDetailResponse>;
|
|
424
|
+
/**
|
|
425
|
+
* @param {CartPlatformApplicationValidator.PlatformCheckoutCartParam} arg
|
|
426
|
+
* - Arg object
|
|
427
|
+
*
|
|
428
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
429
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
430
|
+
* @returns {Promise<CartPlatformModel.CartCheckoutResponse>} - Success response
|
|
431
|
+
* @name platformCheckoutCart
|
|
432
|
+
* @summary: Checkout cart
|
|
433
|
+
* @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/).
|
|
434
|
+
*/
|
|
435
|
+
platformCheckoutCart({ body, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartCheckoutResponse>;
|
|
411
436
|
/**
|
|
412
437
|
* @param {CartPlatformApplicationValidator.PlatformCheckoutCartV2Param} arg
|
|
413
438
|
* - Arg object
|
|
@@ -417,7 +442,7 @@ declare class Cart {
|
|
|
417
442
|
* @returns {Promise<CartPlatformModel.CartCheckoutResponse>} - Success response
|
|
418
443
|
* @name platformCheckoutCartV2
|
|
419
444
|
* @summary: Checkout cart
|
|
420
|
-
* @description: The checkout cart initiates the order creation process based on the items in the user
|
|
445
|
+
* @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/).
|
|
421
446
|
*/
|
|
422
447
|
platformCheckoutCartV2({ body, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartV2Param, { responseHeaders }?: object): Promise<CartPlatformModel.CartCheckoutResponse>;
|
|
423
448
|
/**
|
|
@@ -440,6 +465,18 @@ declare class Cart {
|
|
|
440
465
|
* @description: Remove an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeAddress/).
|
|
441
466
|
*/
|
|
442
467
|
removeAddress({ id, userId, requestHeaders }?: CartPlatformApplicationValidator.RemoveAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.DeleteAddressResponse>;
|
|
468
|
+
/**
|
|
469
|
+
* @param {CartPlatformApplicationValidator.RemoveBulkPriceAdjustmentParam} arg
|
|
470
|
+
* - Arg object
|
|
471
|
+
*
|
|
472
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
473
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
474
|
+
* @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
|
|
475
|
+
* @name removeBulkPriceAdjustment
|
|
476
|
+
* @summary: Remove price adjustments in bulk.
|
|
477
|
+
* @description: Remove the applied price adjustments for specific items within the cart based on unique price adjustment IDs. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeBulkPriceAdjustment/).
|
|
478
|
+
*/
|
|
479
|
+
removeBulkPriceAdjustment({ priceAdjustmentIds, requestHeaders }?: CartPlatformApplicationValidator.RemoveBulkPriceAdjustmentParam, { responseHeaders }?: object): Promise<CartPlatformModel.SuccessMessage>;
|
|
443
480
|
/**
|
|
444
481
|
* @param {CartPlatformApplicationValidator.RemoveCouponParam} arg - Arg object
|
|
445
482
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -502,6 +539,19 @@ declare class Cart {
|
|
|
502
539
|
* @description: Update the user address - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateAddress/).
|
|
503
540
|
*/
|
|
504
541
|
updateAddress({ id, body, requestHeaders }?: CartPlatformApplicationValidator.UpdateAddressParam, { responseHeaders }?: object): Promise<CartPlatformModel.UpdateAddressResponse>;
|
|
542
|
+
/**
|
|
543
|
+
* @param {CartPlatformApplicationValidator.UpdateBulkPriceAdjustmentParam} arg
|
|
544
|
+
* - Arg object
|
|
545
|
+
*
|
|
546
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
547
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
548
|
+
* @returns {Promise<CartPlatformModel.BulkPriceAdjustmentResponse>} -
|
|
549
|
+
* Success response
|
|
550
|
+
* @name updateBulkPriceAdjustment
|
|
551
|
+
* @summary: Update price adjustments
|
|
552
|
+
* @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/updateBulkPriceAdjustment/).
|
|
553
|
+
*/
|
|
554
|
+
updateBulkPriceAdjustment({ body, requestHeaders }?: CartPlatformApplicationValidator.UpdateBulkPriceAdjustmentParam, { responseHeaders }?: object): Promise<CartPlatformModel.BulkPriceAdjustmentResponse>;
|
|
505
555
|
/**
|
|
506
556
|
* @param {CartPlatformApplicationValidator.UpdateCartParam} arg - Arg object
|
|
507
557
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|