@gofynd/fdk-client-javascript 3.11.0 → 3.13.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.
Files changed (32) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +16 -6
  4. package/sdk/application/Catalog/CatalogApplicationClient.js +71 -12
  5. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +80 -80
  6. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +48 -48
  7. package/sdk/platform/Cart/CartPlatformModel.d.ts +6 -18
  8. package/sdk/platform/Cart/CartPlatformModel.js +2 -36
  9. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +14 -48
  10. package/sdk/platform/Catalog/CatalogPlatformClient.js +85 -338
  11. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +207 -763
  12. package/sdk/platform/Catalog/CatalogPlatformModel.js +107 -392
  13. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +15 -71
  14. package/sdk/platform/Catalog/CatalogPlatformValidator.js +14 -60
  15. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +36 -0
  16. package/sdk/platform/Order/OrderPlatformApplicationClient.js +252 -0
  17. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +34 -1
  18. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +42 -0
  19. package/sdk/platform/Order/OrderPlatformClient.d.ts +69 -7
  20. package/sdk/platform/Order/OrderPlatformClient.js +453 -7
  21. package/sdk/platform/Order/OrderPlatformModel.d.ts +1938 -493
  22. package/sdk/platform/Order/OrderPlatformModel.js +1238 -506
  23. package/sdk/platform/Order/OrderPlatformValidator.d.ts +162 -16
  24. package/sdk/platform/Order/OrderPlatformValidator.js +111 -9
  25. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +14 -0
  26. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +85 -0
  27. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -1
  28. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +16 -0
  29. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +861 -178
  30. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +534 -84
  31. package/sdk/public/Webhook/WebhookPublicModel.d.ts +5 -0
  32. package/sdk/public/Webhook/WebhookPublicModel.js +2 -0
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.11.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
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: v3.13.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "3.11.0",
3
+ "version": "v3.13.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -19,7 +19,8 @@ declare class Catalog {
19
19
  getHomeProducts: string;
20
20
  getInStockLocations: string;
21
21
  getLocationDetailsById: string;
22
- getProductBundlesBySlug: string;
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<ProductBundle>} - Success response
296
- * @name getProductBundlesBySlug
297
- * @summary: List product bundles
298
- * @description: Get products bundles to the one specified by its slug. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductBundlesBySlug/).
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
- getProductBundlesBySlug({ slug, id, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ProductBundle>;
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
- getProductBundlesBySlug:
41
- "/service/application/catalog/v1.0/product-grouping/",
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<ProductBundle>} - Success response
1043
- * @name getProductBundlesBySlug
1044
- * @summary: List product bundles
1045
- * @description: Get products bundles to the one specified by its slug. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductBundlesBySlug/).
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 getProductBundlesBySlug(
1048
- { slug, id, requestHeaders } = { requestHeaders: {} },
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["slug"] = slug;
1053
- query_params["id"] = id;
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["getProductBundlesBySlug"],
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
19
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
30
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
40
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
46
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
77
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
134
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
270
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
276
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
292
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
299
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
306
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
327
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
338
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
348
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
357
- * source header, to be used to identify source of order creation.
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 {CartPlatformModel.OrderingSource} [xOrderingSource] - Ordering
439
- * source header, to be used to identify source of order creation.
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
- * source header, to be used to identify source of order creation.
595
+ * - Ordering source header, to be used to
596
+ * identify source of order creation.
597
597
  */
598
- xOrderingSource?: CartPlatformModel.OrderingSource;
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
- * source header, to be used to identify source of order creation.
608
+ * - Ordering source header, to be used to
609
+ * identify source of order creation.
610
610
  */
611
- xOrderingSource?: CartPlatformModel.OrderingSource;
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
- * source header, to be used to identify source of order creation.
632
+ * - Ordering source header, to be used to
633
+ * identify source of order creation.
634
634
  */
635
- xOrderingSource?: CartPlatformModel.OrderingSource;
635
+ xOrderingSource?: string;
636
636
  body: CartPlatformModel.OpenApiCartServiceabilityCreation;
637
637
  };
638
638
  type CheckoutCartParam = {
639
639
  /**
640
- * - Ordering
641
- * source header, to be used to identify source of order creation.
640
+ * - Ordering source header, to be used to
641
+ * identify source of order creation.
642
642
  */
643
- xOrderingSource?: CartPlatformModel.OrderingSource;
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
- * source header, to be used to identify source of order creation.
670
+ * - Ordering source header, to be used to
671
+ * identify source of order creation.
672
672
  */
673
- xOrderingSource?: CartPlatformModel.OrderingSource;
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
- * source header, to be used to identify source of order creation.
722
+ * - Ordering source header, to be used to
723
+ * identify source of order creation.
724
724
  */
725
- xOrderingSource?: CartPlatformModel.OrderingSource;
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
- * source header, to be used to identify source of order creation.
930
+ * - Ordering source header, to be used to
931
+ * identify source of order creation.
932
932
  */
933
- xOrderingSource?: CartPlatformModel.OrderingSource;
933
+ xOrderingSource?: string;
934
934
  body: CartPlatformModel.OverrideCheckoutReq;
935
935
  };
936
936
  type PlatformAddItemsParam = {
937
937
  /**
938
- * - Ordering
939
- * source header, to be used to identify source of order creation.
938
+ * - Ordering source header, to be used to
939
+ * identify source of order creation.
940
940
  */
941
- xOrderingSource?: CartPlatformModel.OrderingSource;
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
- * source header, to be used to identify source of order creation.
971
+ * - Ordering source header, to be used to
972
+ * identify source of order creation.
973
973
  */
974
- xOrderingSource?: CartPlatformModel.OrderingSource;
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
- * source header, to be used to identify source of order creation.
983
+ * - Ordering source header, to be used to
984
+ * identify source of order creation.
985
985
  */
986
- xOrderingSource?: CartPlatformModel.OrderingSource;
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
- * source header, to be used to identify source of order creation.
995
+ * - Ordering source header, to be used to
996
+ * identify source of order creation.
997
997
  */
998
- xOrderingSource?: CartPlatformModel.OrderingSource;
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
- * source header, to be used to identify source of order creation.
1038
+ * - Ordering source header, to be used to
1039
+ * identify source of order creation.
1040
1040
  */
1041
- xOrderingSource?: CartPlatformModel.OrderingSource;
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
- * source header, to be used to identify source of order creation.
1050
+ * - Ordering source header, to be used to
1051
+ * identify source of order creation.
1052
1052
  */
1053
- xOrderingSource?: CartPlatformModel.OrderingSource;
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
- * source header, to be used to identify source of order creation.
1062
+ * - Ordering source header, to be used to
1063
+ * identify source of order creation.
1064
1064
  */
1065
- xOrderingSource?: CartPlatformModel.OrderingSource;
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
- * source header, to be used to identify source of order creation.
1073
+ * - Ordering source header, to be used to
1074
+ * identify source of order creation.
1075
1075
  */
1076
- xOrderingSource?: CartPlatformModel.OrderingSource;
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
- * source header, to be used to identify source of order creation.
1178
+ * - Ordering source header, to be used to
1179
+ * identify source of order creation.
1180
1180
  */
1181
- xOrderingSource?: CartPlatformModel.OrderingSource;
1181
+ xOrderingSource?: string;
1182
1182
  id?: string;
1183
1183
  buyNow?: boolean;
1184
1184
  addressId?: string;