@gofynd/fdk-client-javascript 3.11.0 → 3.12.0
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/Catalog/CatalogApplicationClient.d.ts +16 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +71 -12
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +80 -80
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Cart/CartPlatformModel.d.ts +6 -18
- package/sdk/platform/Cart/CartPlatformModel.js +2 -36
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +14 -48
- package/sdk/platform/Catalog/CatalogPlatformClient.js +85 -338
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +207 -763
- package/sdk/platform/Catalog/CatalogPlatformModel.js +107 -392
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +15 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +14 -60
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +36 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +252 -0
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +34 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +42 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +69 -7
- package/sdk/platform/Order/OrderPlatformClient.js +453 -7
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1851 -431
- package/sdk/platform/Order/OrderPlatformModel.js +1171 -448
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +150 -16
- package/sdk/platform/Order/OrderPlatformValidator.js +105 -9
package/README.md
CHANGED
|
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
234
234
|
The above code will log the curl command in the console
|
|
235
235
|
|
|
236
236
|
```bash
|
|
237
|
-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.
|
|
237
|
+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.12.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
238
238
|
Active Theme: Emerge
|
|
239
239
|
```
|
|
240
240
|
|
package/package.json
CHANGED
|
@@ -19,7 +19,8 @@ declare class Catalog {
|
|
|
19
19
|
getHomeProducts: string;
|
|
20
20
|
getInStockLocations: string;
|
|
21
21
|
getLocationDetailsById: string;
|
|
22
|
-
|
|
22
|
+
getProductBundleItems: string;
|
|
23
|
+
getProductBundlesByChildSku: string;
|
|
23
24
|
getProductComparisonBySlugs: string;
|
|
24
25
|
getProductDetailBySlug: string;
|
|
25
26
|
getProductPriceBySlug: string;
|
|
@@ -292,12 +293,21 @@ declare class Catalog {
|
|
|
292
293
|
/**
|
|
293
294
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
294
295
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
295
|
-
* @returns {Promise<
|
|
296
|
-
* @name
|
|
297
|
-
* @summary:
|
|
298
|
-
* @description:
|
|
296
|
+
* @returns {Promise<ProductBundleItems>} - Success response
|
|
297
|
+
* @name getProductBundleItems
|
|
298
|
+
* @summary: Get children for a bundled product
|
|
299
|
+
* @description: Retrieve bundle children for a given bundled product slug with pricing, brand, media, and seller information. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductBundleItems/).
|
|
299
300
|
*/
|
|
300
|
-
|
|
301
|
+
getProductBundleItems({ slug, pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ProductBundleItems>;
|
|
302
|
+
/**
|
|
303
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
304
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
305
|
+
* @returns {Promise<ProductBundleItemsWithSlug>} - Success response
|
|
306
|
+
* @name getProductBundlesByChildSku
|
|
307
|
+
* @summary: Get bundled items for a specific product size
|
|
308
|
+
* @description: Retrieve bundled items for a given product slug and size with pricing, brand, media, and seller information. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductBundlesByChildSku/).
|
|
309
|
+
*/
|
|
310
|
+
getProductBundlesByChildSku({ slug, size, pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ProductBundleItemsWithSlug>;
|
|
301
311
|
/**
|
|
302
312
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
303
313
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -37,8 +37,10 @@ class Catalog {
|
|
|
37
37
|
"/service/application/catalog/v2.0/in-stock/locations/",
|
|
38
38
|
getLocationDetailsById:
|
|
39
39
|
"/service/application/catalog/v2.0/locations/{location_id}/",
|
|
40
|
-
|
|
41
|
-
"/service/application/catalog/v1.0/
|
|
40
|
+
getProductBundleItems:
|
|
41
|
+
"/service/application/catalog/v1.0/products/{slug}/bundle/items",
|
|
42
|
+
getProductBundlesByChildSku:
|
|
43
|
+
"/service/application/catalog/v1.0/products/{slug}/size/{size}/bundle",
|
|
42
44
|
getProductComparisonBySlugs:
|
|
43
45
|
"/service/application/catalog/v1.0/products/compare/",
|
|
44
46
|
getProductDetailBySlug:
|
|
@@ -1039,18 +1041,27 @@ class Catalog {
|
|
|
1039
1041
|
/**
|
|
1040
1042
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1041
1043
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1042
|
-
* @returns {Promise<
|
|
1043
|
-
* @name
|
|
1044
|
-
* @summary:
|
|
1045
|
-
* @description:
|
|
1044
|
+
* @returns {Promise<ProductBundleItems>} - Success response
|
|
1045
|
+
* @name getProductBundleItems
|
|
1046
|
+
* @summary: Get children for a bundled product
|
|
1047
|
+
* @description: Retrieve bundle children for a given bundled product slug with pricing, brand, media, and seller information. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductBundleItems/).
|
|
1046
1048
|
*/
|
|
1047
|
-
async
|
|
1048
|
-
{ slug,
|
|
1049
|
+
async getProductBundleItems(
|
|
1050
|
+
{ slug, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
1049
1051
|
{ responseHeaders } = { responseHeaders: false }
|
|
1050
1052
|
) {
|
|
1053
|
+
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
1054
|
+
if (errors.length > 0) {
|
|
1055
|
+
const error = new FDKClientValidationError({
|
|
1056
|
+
message: "Missing required field",
|
|
1057
|
+
details: errors,
|
|
1058
|
+
});
|
|
1059
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1051
1062
|
const query_params = {};
|
|
1052
|
-
query_params["
|
|
1053
|
-
query_params["
|
|
1063
|
+
query_params["page_no"] = pageNo;
|
|
1064
|
+
query_params["page_size"] = pageSize;
|
|
1054
1065
|
|
|
1055
1066
|
const xHeaders = {};
|
|
1056
1067
|
|
|
@@ -1058,8 +1069,56 @@ class Catalog {
|
|
|
1058
1069
|
this._conf,
|
|
1059
1070
|
"get",
|
|
1060
1071
|
constructUrl({
|
|
1061
|
-
url: this._urls["
|
|
1062
|
-
params: {},
|
|
1072
|
+
url: this._urls["getProductBundleItems"],
|
|
1073
|
+
params: { slug },
|
|
1074
|
+
}),
|
|
1075
|
+
query_params,
|
|
1076
|
+
undefined,
|
|
1077
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1078
|
+
{ responseHeaders }
|
|
1079
|
+
);
|
|
1080
|
+
|
|
1081
|
+
let responseData = response;
|
|
1082
|
+
if (responseHeaders) {
|
|
1083
|
+
responseData = response[0];
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
return response;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1091
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1092
|
+
* @returns {Promise<ProductBundleItemsWithSlug>} - Success response
|
|
1093
|
+
* @name getProductBundlesByChildSku
|
|
1094
|
+
* @summary: Get bundled items for a specific product size
|
|
1095
|
+
* @description: Retrieve bundled items for a given product slug and size with pricing, brand, media, and seller information. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductBundlesByChildSku/).
|
|
1096
|
+
*/
|
|
1097
|
+
async getProductBundlesByChildSku(
|
|
1098
|
+
{ slug, size, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
1099
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1100
|
+
) {
|
|
1101
|
+
const errors = validateRequiredParams(arguments[0], ["slug", "size"]);
|
|
1102
|
+
if (errors.length > 0) {
|
|
1103
|
+
const error = new FDKClientValidationError({
|
|
1104
|
+
message: "Missing required field",
|
|
1105
|
+
details: errors,
|
|
1106
|
+
});
|
|
1107
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
const query_params = {};
|
|
1111
|
+
query_params["page_no"] = pageNo;
|
|
1112
|
+
query_params["page_size"] = pageSize;
|
|
1113
|
+
|
|
1114
|
+
const xHeaders = {};
|
|
1115
|
+
|
|
1116
|
+
const response = await ApplicationAPIClient.execute(
|
|
1117
|
+
this._conf,
|
|
1118
|
+
"get",
|
|
1119
|
+
constructUrl({
|
|
1120
|
+
url: this._urls["getProductBundlesByChildSku"],
|
|
1121
|
+
params: { slug, size },
|
|
1063
1122
|
}),
|
|
1064
1123
|
query_params,
|
|
1065
1124
|
undefined,
|
|
@@ -15,8 +15,8 @@ export = CartPlatformApplicationValidator;
|
|
|
15
15
|
*/
|
|
16
16
|
/**
|
|
17
17
|
* @typedef ApplyCouponParam
|
|
18
|
-
* @property {
|
|
19
|
-
*
|
|
18
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
19
|
+
* identify source of order creation.
|
|
20
20
|
* @property {boolean} [i]
|
|
21
21
|
* @property {boolean} [b]
|
|
22
22
|
* @property {boolean} [p]
|
|
@@ -26,8 +26,8 @@ export = CartPlatformApplicationValidator;
|
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
28
|
* @typedef ApplyLoyaltyPointsParam
|
|
29
|
-
* @property {
|
|
30
|
-
*
|
|
29
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
30
|
+
* identify source of order creation.
|
|
31
31
|
* @property {string} [id] - The unique identifier of the cart.
|
|
32
32
|
* @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
|
|
33
33
|
* @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
|
|
@@ -36,14 +36,14 @@ export = CartPlatformApplicationValidator;
|
|
|
36
36
|
*/
|
|
37
37
|
/**
|
|
38
38
|
* @typedef CheckCartServiceabilityParam
|
|
39
|
-
* @property {
|
|
40
|
-
*
|
|
39
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
40
|
+
* identify source of order creation.
|
|
41
41
|
* @property {CartPlatformModel.OpenApiCartServiceabilityCreation} body
|
|
42
42
|
*/
|
|
43
43
|
/**
|
|
44
44
|
* @typedef CheckoutCartParam
|
|
45
|
-
* @property {
|
|
46
|
-
*
|
|
45
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
46
|
+
* identify source of order creation.
|
|
47
47
|
* @property {CartPlatformModel.OpenApiPlatformCheckoutReq} body
|
|
48
48
|
*/
|
|
49
49
|
/**
|
|
@@ -73,8 +73,8 @@ export = CartPlatformApplicationValidator;
|
|
|
73
73
|
*/
|
|
74
74
|
/**
|
|
75
75
|
* @typedef FetchAndvalidateCartItemsParam
|
|
76
|
-
* @property {
|
|
77
|
-
*
|
|
76
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
77
|
+
* identify source of order creation.
|
|
78
78
|
* @property {CartPlatformModel.OpenapiCartDetailsCreation} body
|
|
79
79
|
*/
|
|
80
80
|
/** @typedef FetchCartMetaConfigParam */
|
|
@@ -130,8 +130,8 @@ export = CartPlatformApplicationValidator;
|
|
|
130
130
|
*/
|
|
131
131
|
/**
|
|
132
132
|
* @typedef GetCartParam
|
|
133
|
-
* @property {
|
|
134
|
-
*
|
|
133
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
134
|
+
* identify source of order creation.
|
|
135
135
|
* @property {string} [id] - The unique identifier of the cart
|
|
136
136
|
* @property {string} [userId] - Option to fetch cart for the provided user_id.
|
|
137
137
|
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
@@ -266,14 +266,14 @@ export = CartPlatformApplicationValidator;
|
|
|
266
266
|
*/
|
|
267
267
|
/**
|
|
268
268
|
* @typedef OverrideCartParam
|
|
269
|
-
* @property {
|
|
270
|
-
*
|
|
269
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
270
|
+
* identify source of order creation.
|
|
271
271
|
* @property {CartPlatformModel.OverrideCheckoutReq} body
|
|
272
272
|
*/
|
|
273
273
|
/**
|
|
274
274
|
* @typedef PlatformAddItemsParam
|
|
275
|
-
* @property {
|
|
276
|
-
*
|
|
275
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
276
|
+
* identify source of order creation.
|
|
277
277
|
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
278
278
|
* all the items added in the cart.
|
|
279
279
|
* @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
|
|
@@ -288,22 +288,22 @@ export = CartPlatformApplicationValidator;
|
|
|
288
288
|
*/
|
|
289
289
|
/**
|
|
290
290
|
* @typedef PlatformCheckoutCartParam
|
|
291
|
-
* @property {
|
|
292
|
-
*
|
|
291
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
292
|
+
* identify source of order creation.
|
|
293
293
|
* @property {string} [id] - The unique identifier of the cart
|
|
294
294
|
* @property {CartPlatformModel.PlatformCartCheckoutDetailCreation} body
|
|
295
295
|
*/
|
|
296
296
|
/**
|
|
297
297
|
* @typedef PlatformCheckoutCartV2Param
|
|
298
|
-
* @property {
|
|
299
|
-
*
|
|
298
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
299
|
+
* identify source of order creation.
|
|
300
300
|
* @property {string} [id] - The unique identifier of the cart
|
|
301
301
|
* @property {CartPlatformModel.PlatformCartCheckoutDetailV2Creation} body
|
|
302
302
|
*/
|
|
303
303
|
/**
|
|
304
304
|
* @typedef PlatformUpdateCartParam
|
|
305
|
-
* @property {
|
|
306
|
-
*
|
|
305
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
306
|
+
* identify source of order creation.
|
|
307
307
|
* @property {string} [id] - The unique identifier of the cart
|
|
308
308
|
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
309
309
|
* all the items added in the cart.
|
|
@@ -323,8 +323,8 @@ export = CartPlatformApplicationValidator;
|
|
|
323
323
|
*/
|
|
324
324
|
/**
|
|
325
325
|
* @typedef RemoveCouponParam
|
|
326
|
-
* @property {
|
|
327
|
-
*
|
|
326
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
327
|
+
* identify source of order creation.
|
|
328
328
|
* @property {string} [uid]
|
|
329
329
|
* @property {boolean} [buyNow]
|
|
330
330
|
*/
|
|
@@ -334,8 +334,8 @@ export = CartPlatformApplicationValidator;
|
|
|
334
334
|
*/
|
|
335
335
|
/**
|
|
336
336
|
* @typedef SelectAddressParam
|
|
337
|
-
* @property {
|
|
338
|
-
*
|
|
337
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
338
|
+
* identify source of order creation.
|
|
339
339
|
* @property {string} [cartId]
|
|
340
340
|
* @property {boolean} [buyNow]
|
|
341
341
|
* @property {boolean} [i]
|
|
@@ -344,8 +344,8 @@ export = CartPlatformApplicationValidator;
|
|
|
344
344
|
*/
|
|
345
345
|
/**
|
|
346
346
|
* @typedef SelectPaymentModeParam
|
|
347
|
-
* @property {
|
|
348
|
-
*
|
|
347
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
348
|
+
* identify source of order creation.
|
|
349
349
|
* @property {string} [id]
|
|
350
350
|
* @property {boolean} [buyNow]
|
|
351
351
|
* @property {string} [orderType]
|
|
@@ -353,8 +353,8 @@ export = CartPlatformApplicationValidator;
|
|
|
353
353
|
*/
|
|
354
354
|
/**
|
|
355
355
|
* @typedef SelectPaymentModeV2Param
|
|
356
|
-
* @property {
|
|
357
|
-
*
|
|
356
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
357
|
+
* identify source of order creation.
|
|
358
358
|
* @property {string} [id]
|
|
359
359
|
* @property {boolean} [buyNow]
|
|
360
360
|
* @property {string} [orderType]
|
|
@@ -435,8 +435,8 @@ export = CartPlatformApplicationValidator;
|
|
|
435
435
|
*/
|
|
436
436
|
/**
|
|
437
437
|
* @typedef ValidateCouponForPaymentParam
|
|
438
|
-
* @property {
|
|
439
|
-
*
|
|
438
|
+
* @property {string} [xOrderingSource] - Ordering source header, to be used to
|
|
439
|
+
* identify source of order creation.
|
|
440
440
|
* @property {string} [id]
|
|
441
441
|
* @property {boolean} [buyNow]
|
|
442
442
|
* @property {string} [addressId]
|
|
@@ -592,10 +592,10 @@ type AddPriceAdjustmentParam = {
|
|
|
592
592
|
};
|
|
593
593
|
type ApplyCouponParam = {
|
|
594
594
|
/**
|
|
595
|
-
* - Ordering
|
|
596
|
-
*
|
|
595
|
+
* - Ordering source header, to be used to
|
|
596
|
+
* identify source of order creation.
|
|
597
597
|
*/
|
|
598
|
-
xOrderingSource?:
|
|
598
|
+
xOrderingSource?: string;
|
|
599
599
|
i?: boolean;
|
|
600
600
|
b?: boolean;
|
|
601
601
|
p?: boolean;
|
|
@@ -605,10 +605,10 @@ type ApplyCouponParam = {
|
|
|
605
605
|
};
|
|
606
606
|
type ApplyLoyaltyPointsParam = {
|
|
607
607
|
/**
|
|
608
|
-
* - Ordering
|
|
609
|
-
*
|
|
608
|
+
* - Ordering source header, to be used to
|
|
609
|
+
* identify source of order creation.
|
|
610
610
|
*/
|
|
611
|
-
xOrderingSource?:
|
|
611
|
+
xOrderingSource?: string;
|
|
612
612
|
/**
|
|
613
613
|
* - The unique identifier of the cart.
|
|
614
614
|
*/
|
|
@@ -629,18 +629,18 @@ type ApplyLoyaltyPointsParam = {
|
|
|
629
629
|
};
|
|
630
630
|
type CheckCartServiceabilityParam = {
|
|
631
631
|
/**
|
|
632
|
-
* - Ordering
|
|
633
|
-
*
|
|
632
|
+
* - Ordering source header, to be used to
|
|
633
|
+
* identify source of order creation.
|
|
634
634
|
*/
|
|
635
|
-
xOrderingSource?:
|
|
635
|
+
xOrderingSource?: string;
|
|
636
636
|
body: CartPlatformModel.OpenApiCartServiceabilityCreation;
|
|
637
637
|
};
|
|
638
638
|
type CheckoutCartParam = {
|
|
639
639
|
/**
|
|
640
|
-
* - Ordering
|
|
641
|
-
*
|
|
640
|
+
* - Ordering source header, to be used to
|
|
641
|
+
* identify source of order creation.
|
|
642
642
|
*/
|
|
643
|
-
xOrderingSource?:
|
|
643
|
+
xOrderingSource?: string;
|
|
644
644
|
body: CartPlatformModel.OpenApiPlatformCheckoutReq;
|
|
645
645
|
};
|
|
646
646
|
type CreateCartMetaConfigParam = {
|
|
@@ -667,10 +667,10 @@ type DeletePromotionParam = {
|
|
|
667
667
|
};
|
|
668
668
|
type FetchAndvalidateCartItemsParam = {
|
|
669
669
|
/**
|
|
670
|
-
* - Ordering
|
|
671
|
-
*
|
|
670
|
+
* - Ordering source header, to be used to
|
|
671
|
+
* identify source of order creation.
|
|
672
672
|
*/
|
|
673
|
-
xOrderingSource?:
|
|
673
|
+
xOrderingSource?: string;
|
|
674
674
|
body: CartPlatformModel.OpenapiCartDetailsCreation;
|
|
675
675
|
};
|
|
676
676
|
type GetAbandonedCartParam = {
|
|
@@ -719,10 +719,10 @@ type GetAvailableDeliveryModesParam = {
|
|
|
719
719
|
};
|
|
720
720
|
type GetCartParam = {
|
|
721
721
|
/**
|
|
722
|
-
* - Ordering
|
|
723
|
-
*
|
|
722
|
+
* - Ordering source header, to be used to
|
|
723
|
+
* identify source of order creation.
|
|
724
724
|
*/
|
|
725
|
-
xOrderingSource?:
|
|
725
|
+
xOrderingSource?: string;
|
|
726
726
|
/**
|
|
727
727
|
* - The unique identifier of the cart
|
|
728
728
|
*/
|
|
@@ -927,18 +927,18 @@ type GetStoreAddressByUidParam = {
|
|
|
927
927
|
};
|
|
928
928
|
type OverrideCartParam = {
|
|
929
929
|
/**
|
|
930
|
-
* - Ordering
|
|
931
|
-
*
|
|
930
|
+
* - Ordering source header, to be used to
|
|
931
|
+
* identify source of order creation.
|
|
932
932
|
*/
|
|
933
|
-
xOrderingSource?:
|
|
933
|
+
xOrderingSource?: string;
|
|
934
934
|
body: CartPlatformModel.OverrideCheckoutReq;
|
|
935
935
|
};
|
|
936
936
|
type PlatformAddItemsParam = {
|
|
937
937
|
/**
|
|
938
|
-
* - Ordering
|
|
939
|
-
*
|
|
938
|
+
* - Ordering source header, to be used to
|
|
939
|
+
* identify source of order creation.
|
|
940
940
|
*/
|
|
941
|
-
xOrderingSource?:
|
|
941
|
+
xOrderingSource?: string;
|
|
942
942
|
/**
|
|
943
943
|
* - This is a boolean value. Select `true` to retrieve
|
|
944
944
|
* all the items added in the cart.
|
|
@@ -968,10 +968,10 @@ type PlatformAddItemsParam = {
|
|
|
968
968
|
};
|
|
969
969
|
type PlatformCheckoutCartParam = {
|
|
970
970
|
/**
|
|
971
|
-
* - Ordering
|
|
972
|
-
*
|
|
971
|
+
* - Ordering source header, to be used to
|
|
972
|
+
* identify source of order creation.
|
|
973
973
|
*/
|
|
974
|
-
xOrderingSource?:
|
|
974
|
+
xOrderingSource?: string;
|
|
975
975
|
/**
|
|
976
976
|
* - The unique identifier of the cart
|
|
977
977
|
*/
|
|
@@ -980,10 +980,10 @@ type PlatformCheckoutCartParam = {
|
|
|
980
980
|
};
|
|
981
981
|
type PlatformCheckoutCartV2Param = {
|
|
982
982
|
/**
|
|
983
|
-
* - Ordering
|
|
984
|
-
*
|
|
983
|
+
* - Ordering source header, to be used to
|
|
984
|
+
* identify source of order creation.
|
|
985
985
|
*/
|
|
986
|
-
xOrderingSource?:
|
|
986
|
+
xOrderingSource?: string;
|
|
987
987
|
/**
|
|
988
988
|
* - The unique identifier of the cart
|
|
989
989
|
*/
|
|
@@ -992,10 +992,10 @@ type PlatformCheckoutCartV2Param = {
|
|
|
992
992
|
};
|
|
993
993
|
type PlatformUpdateCartParam = {
|
|
994
994
|
/**
|
|
995
|
-
* - Ordering
|
|
996
|
-
*
|
|
995
|
+
* - Ordering source header, to be used to
|
|
996
|
+
* identify source of order creation.
|
|
997
997
|
*/
|
|
998
|
-
xOrderingSource?:
|
|
998
|
+
xOrderingSource?: string;
|
|
999
999
|
/**
|
|
1000
1000
|
* - The unique identifier of the cart
|
|
1001
1001
|
*/
|
|
@@ -1035,10 +1035,10 @@ type RemoveAddressParam = {
|
|
|
1035
1035
|
};
|
|
1036
1036
|
type RemoveCouponParam = {
|
|
1037
1037
|
/**
|
|
1038
|
-
* - Ordering
|
|
1039
|
-
*
|
|
1038
|
+
* - Ordering source header, to be used to
|
|
1039
|
+
* identify source of order creation.
|
|
1040
1040
|
*/
|
|
1041
|
-
xOrderingSource?:
|
|
1041
|
+
xOrderingSource?: string;
|
|
1042
1042
|
uid?: string;
|
|
1043
1043
|
buyNow?: boolean;
|
|
1044
1044
|
};
|
|
@@ -1047,10 +1047,10 @@ type RemovePriceAdjustmentParam = {
|
|
|
1047
1047
|
};
|
|
1048
1048
|
type SelectAddressParam = {
|
|
1049
1049
|
/**
|
|
1050
|
-
* - Ordering
|
|
1051
|
-
*
|
|
1050
|
+
* - Ordering source header, to be used to
|
|
1051
|
+
* identify source of order creation.
|
|
1052
1052
|
*/
|
|
1053
|
-
xOrderingSource?:
|
|
1053
|
+
xOrderingSource?: string;
|
|
1054
1054
|
cartId?: string;
|
|
1055
1055
|
buyNow?: boolean;
|
|
1056
1056
|
i?: boolean;
|
|
@@ -1059,10 +1059,10 @@ type SelectAddressParam = {
|
|
|
1059
1059
|
};
|
|
1060
1060
|
type SelectPaymentModeParam = {
|
|
1061
1061
|
/**
|
|
1062
|
-
* - Ordering
|
|
1063
|
-
*
|
|
1062
|
+
* - Ordering source header, to be used to
|
|
1063
|
+
* identify source of order creation.
|
|
1064
1064
|
*/
|
|
1065
|
-
xOrderingSource?:
|
|
1065
|
+
xOrderingSource?: string;
|
|
1066
1066
|
id?: string;
|
|
1067
1067
|
buyNow?: boolean;
|
|
1068
1068
|
orderType?: string;
|
|
@@ -1070,10 +1070,10 @@ type SelectPaymentModeParam = {
|
|
|
1070
1070
|
};
|
|
1071
1071
|
type SelectPaymentModeV2Param = {
|
|
1072
1072
|
/**
|
|
1073
|
-
* - Ordering
|
|
1074
|
-
*
|
|
1073
|
+
* - Ordering source header, to be used to
|
|
1074
|
+
* identify source of order creation.
|
|
1075
1075
|
*/
|
|
1076
|
-
xOrderingSource?:
|
|
1076
|
+
xOrderingSource?: string;
|
|
1077
1077
|
id?: string;
|
|
1078
1078
|
buyNow?: boolean;
|
|
1079
1079
|
orderType?: string;
|
|
@@ -1175,10 +1175,10 @@ type UpdateShipmentsParam = {
|
|
|
1175
1175
|
};
|
|
1176
1176
|
type ValidateCouponForPaymentParam = {
|
|
1177
1177
|
/**
|
|
1178
|
-
* - Ordering
|
|
1179
|
-
*
|
|
1178
|
+
* - Ordering source header, to be used to
|
|
1179
|
+
* identify source of order creation.
|
|
1180
1180
|
*/
|
|
1181
|
-
xOrderingSource?:
|
|
1181
|
+
xOrderingSource?: string;
|
|
1182
1182
|
id?: string;
|
|
1183
1183
|
buyNow?: boolean;
|
|
1184
1184
|
addressId?: string;
|