@gofynd/fdk-client-javascript 3.23.0 → 3.24.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 (30) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +12 -12
  4. package/sdk/application/Cart/CartApplicationClient.js +119 -33
  5. package/sdk/application/Common/CommonApplicationClient.js +1 -1
  6. package/sdk/application/Logistic/LogisticApplicationClient.js +4 -2
  7. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +17 -17
  8. package/sdk/platform/Cart/CartPlatformApplicationClient.js +84 -13
  9. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -0
  10. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +52 -0
  11. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +7 -2
  12. package/sdk/platform/Catalog/CatalogPlatformModel.js +5 -2
  13. package/sdk/platform/Common/CommonPlatformClient.js +1 -1
  14. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +96 -1
  15. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +61 -0
  16. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -12
  17. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -81
  18. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -10
  19. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -12
  20. package/sdk/platform/Order/OrderPlatformClient.d.ts +28 -0
  21. package/sdk/platform/Order/OrderPlatformClient.js +179 -3
  22. package/sdk/platform/Order/OrderPlatformModel.d.ts +155 -6
  23. package/sdk/platform/Order/OrderPlatformModel.js +105 -3
  24. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
  25. package/sdk/platform/Order/OrderPlatformValidator.js +30 -0
  26. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +24 -1
  27. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +18 -0
  28. package/sdk/platform/User/UserPlatformModel.d.ts +14 -1
  29. package/sdk/platform/User/UserPlatformModel.js +16 -0
  30. package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -1
@@ -17,6 +17,8 @@ export = CartPlatformApplicationValidator;
17
17
  * @typedef ApplyCouponParam
18
18
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
19
19
  * identify source of order creation.
20
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
21
+ * used to identify source type of order creation.
20
22
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
21
23
  * operations on cross-platform anonymous cart. When enabled, the system
22
24
  * fetches the cart only based on cart_id instead of user_id.
@@ -31,6 +33,8 @@ export = CartPlatformApplicationValidator;
31
33
  * @typedef ApplyLoyaltyPointsParam
32
34
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
33
35
  * identify source of order creation.
36
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
37
+ * used to identify source type of order creation.
34
38
  * @property {string} [id] - The unique identifier of the cart.
35
39
  * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
36
40
  * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
@@ -41,12 +45,16 @@ export = CartPlatformApplicationValidator;
41
45
  * @typedef CheckCartServiceabilityParam
42
46
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
43
47
  * identify source of order creation.
48
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
49
+ * used to identify source type of order creation.
44
50
  * @property {CartPlatformModel.OpenApiCartServiceabilityCreation} body
45
51
  */
46
52
  /**
47
53
  * @typedef CheckoutCartParam
48
54
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
49
55
  * identify source of order creation.
56
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
57
+ * used to identify source type of order creation.
50
58
  * @property {string} [xAnonymousCart] - It allows operations on cross-platform
51
59
  * anonymous carts. When provided, the system retrieves the cart using only
52
60
  * the cart_id, ignoring the user_id. Use this when interacting with an
@@ -93,6 +101,8 @@ export = CartPlatformApplicationValidator;
93
101
  * @typedef FetchAndvalidateCartItemsParam
94
102
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
95
103
  * identify source of order creation.
104
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
105
+ * used to identify source type of order creation.
96
106
  * @property {string} [xLocationDetail] - Location details for the cart checkout
97
107
  * @property {string} [xCurrencyCode] - Currency code for transactions.
98
108
  * @property {CartPlatformModel.OpenapiCartDetailsCreation} body
@@ -152,6 +162,8 @@ export = CartPlatformApplicationValidator;
152
162
  * @typedef GetCartParam
153
163
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
154
164
  * identify source of order creation.
165
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
166
+ * used to identify source type of order creation.
155
167
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
156
168
  * operations on cross-platform anonymous cart. When enabled, the system
157
169
  * fetches the cart only based on cart_id instead of user_id.
@@ -316,6 +328,8 @@ export = CartPlatformApplicationValidator;
316
328
  * @typedef OverrideCartParam
317
329
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
318
330
  * identify source of order creation.
331
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
332
+ * used to identify source type of order creation.
319
333
  * @property {string} [xLocationDetail] - Location details for the cart checkout
320
334
  * @property {string} [xCurrencyCode] - Currency code for transactions. Defaults
321
335
  * to INR if the location is India.
@@ -325,6 +339,8 @@ export = CartPlatformApplicationValidator;
325
339
  * @typedef PlatformAddItemsParam
326
340
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
327
341
  * identify source of order creation.
342
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
343
+ * used to identify source type of order creation.
328
344
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
329
345
  * operations on cross-platform anonymous cart. When enabled, the system
330
346
  * fetches the cart only based on cart_id instead of user_id.
@@ -346,6 +362,8 @@ export = CartPlatformApplicationValidator;
346
362
  * @typedef PlatformCheckoutCartParam
347
363
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
348
364
  * identify source of order creation.
365
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
366
+ * used to identify source type of order creation.
349
367
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
350
368
  * operations on cross-platform anonymous cart. When enabled, the system
351
369
  * fetches the cart only based on cart_id instead of user_id.
@@ -356,6 +374,8 @@ export = CartPlatformApplicationValidator;
356
374
  * @typedef PlatformCheckoutCartV2Param
357
375
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
358
376
  * identify source of order creation
377
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
378
+ * used to identify source type of order creation.
359
379
  * @property {string} [xAnonymousCart] - It allows operations on cross-platform
360
380
  * anonymous carts. When provided, the system retrieves the cart using only
361
381
  * the cart_id, ignoring the user_id. Use this when interacting with an
@@ -370,6 +390,8 @@ export = CartPlatformApplicationValidator;
370
390
  * @typedef PlatformUpdateCartParam
371
391
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
372
392
  * identify source of order creation.
393
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
394
+ * used to identify source type of order creation.
373
395
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
374
396
  * operations on cross-platform anonymous cart. When enabled, the system
375
397
  * fetches the cart only based on cart_id instead of user_id.
@@ -396,6 +418,8 @@ export = CartPlatformApplicationValidator;
396
418
  * @typedef RemoveCouponParam
397
419
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
398
420
  * identify source of order creation.
421
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
422
+ * used to identify source type of order creation.
399
423
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
400
424
  * operations on cross-platform anonymous cart. When enabled, the system
401
425
  * fetches the cart only based on cart_id instead of user_id.
@@ -410,6 +434,8 @@ export = CartPlatformApplicationValidator;
410
434
  * @typedef SelectAddressParam
411
435
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
412
436
  * identify source of order creation.
437
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
438
+ * used to identify source type of order creation.
413
439
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
414
440
  * operations on cross-platform anonymous cart. When enabled, the system
415
441
  * fetches the cart only based on cart_id instead of user_id.
@@ -423,6 +449,8 @@ export = CartPlatformApplicationValidator;
423
449
  * @typedef SelectPaymentModeParam
424
450
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
425
451
  * identify source of order creation.
452
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
453
+ * used to identify source type of order creation.
426
454
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
427
455
  * operations on cross-platform anonymous cart. When enabled, the system
428
456
  * fetches the cart only based on cart_id instead of user_id.
@@ -435,6 +463,8 @@ export = CartPlatformApplicationValidator;
435
463
  * @typedef SelectPaymentModeV2Param
436
464
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
437
465
  * identify source of order creation.
466
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
467
+ * used to identify source type of order creation.
438
468
  * @property {string} [id]
439
469
  * @property {boolean} [buyNow]
440
470
  * @property {string} [orderType]
@@ -456,6 +486,9 @@ export = CartPlatformApplicationValidator;
456
486
  * @property {string} [xOrderingSource] - Identifier for the ordering source
457
487
  * (e.g., web, mobile app, POS). Used to determine the origin of the order
458
488
  * request and apply source-specific rules.
489
+ * @property {string} [xOrderingSourceType] - Identifier for the ordering source
490
+ * type (e.g., storefront, store_os_pos, kiosk). Used to determine the source
491
+ * type for order governance and validations.
459
492
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
460
493
  * operations on cross-platform anonymous cart. When enabled, the system
461
494
  * fetches the cart only based on cart_id instead of user_id.
@@ -547,6 +580,8 @@ export = CartPlatformApplicationValidator;
547
580
  * @typedef ValidateCouponForPaymentParam
548
581
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
549
582
  * identify source of order creation.
583
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
584
+ * used to identify source type of order creation.
550
585
  * @property {string} [id]
551
586
  * @property {boolean} [buyNow]
552
587
  * @property {string} [addressId]
@@ -720,6 +755,11 @@ type ApplyCouponParam = {
720
755
  * identify source of order creation.
721
756
  */
722
757
  xOrderingSource?: string;
758
+ /**
759
+ * - Ordering source type header, to be
760
+ * used to identify source type of order creation.
761
+ */
762
+ xOrderingSourceType?: string;
723
763
  /**
724
764
  * - Anonymous cart header used to perform
725
765
  * operations on cross-platform anonymous cart. When enabled, the system
@@ -739,6 +779,11 @@ type ApplyLoyaltyPointsParam = {
739
779
  * identify source of order creation.
740
780
  */
741
781
  xOrderingSource?: string;
782
+ /**
783
+ * - Ordering source type header, to be
784
+ * used to identify source type of order creation.
785
+ */
786
+ xOrderingSourceType?: string;
742
787
  /**
743
788
  * - The unique identifier of the cart.
744
789
  */
@@ -763,6 +808,11 @@ type CheckCartServiceabilityParam = {
763
808
  * identify source of order creation.
764
809
  */
765
810
  xOrderingSource?: string;
811
+ /**
812
+ * - Ordering source type header, to be
813
+ * used to identify source type of order creation.
814
+ */
815
+ xOrderingSourceType?: string;
766
816
  body: CartPlatformModel.OpenApiCartServiceabilityCreation;
767
817
  };
768
818
  type CheckoutCartParam = {
@@ -771,6 +821,11 @@ type CheckoutCartParam = {
771
821
  * identify source of order creation.
772
822
  */
773
823
  xOrderingSource?: string;
824
+ /**
825
+ * - Ordering source type header, to be
826
+ * used to identify source type of order creation.
827
+ */
828
+ xOrderingSourceType?: string;
774
829
  /**
775
830
  * - It allows operations on cross-platform
776
831
  * anonymous carts. When provided, the system retrieves the cart using only
@@ -823,6 +878,11 @@ type FetchAndvalidateCartItemsParam = {
823
878
  * identify source of order creation.
824
879
  */
825
880
  xOrderingSource?: string;
881
+ /**
882
+ * - Ordering source type header, to be
883
+ * used to identify source type of order creation.
884
+ */
885
+ xOrderingSourceType?: string;
826
886
  /**
827
887
  * - Location details for the cart checkout
828
888
  */
@@ -883,6 +943,11 @@ type GetCartParam = {
883
943
  * identify source of order creation.
884
944
  */
885
945
  xOrderingSource?: string;
946
+ /**
947
+ * - Ordering source type header, to be
948
+ * used to identify source type of order creation.
949
+ */
950
+ xOrderingSourceType?: string;
886
951
  /**
887
952
  * - Anonymous cart header used to perform
888
953
  * operations on cross-platform anonymous cart. When enabled, the system
@@ -1162,6 +1227,11 @@ type OverrideCartParam = {
1162
1227
  * identify source of order creation.
1163
1228
  */
1164
1229
  xOrderingSource?: string;
1230
+ /**
1231
+ * - Ordering source type header, to be
1232
+ * used to identify source type of order creation.
1233
+ */
1234
+ xOrderingSourceType?: string;
1165
1235
  /**
1166
1236
  * - Location details for the cart checkout
1167
1237
  */
@@ -1179,6 +1249,11 @@ type PlatformAddItemsParam = {
1179
1249
  * identify source of order creation.
1180
1250
  */
1181
1251
  xOrderingSource?: string;
1252
+ /**
1253
+ * - Ordering source type header, to be
1254
+ * used to identify source type of order creation.
1255
+ */
1256
+ xOrderingSourceType?: string;
1182
1257
  /**
1183
1258
  * - Anonymous cart header used to perform
1184
1259
  * operations on cross-platform anonymous cart. When enabled, the system
@@ -1223,6 +1298,11 @@ type PlatformCheckoutCartParam = {
1223
1298
  * identify source of order creation.
1224
1299
  */
1225
1300
  xOrderingSource?: string;
1301
+ /**
1302
+ * - Ordering source type header, to be
1303
+ * used to identify source type of order creation.
1304
+ */
1305
+ xOrderingSourceType?: string;
1226
1306
  /**
1227
1307
  * - Anonymous cart header used to perform
1228
1308
  * operations on cross-platform anonymous cart. When enabled, the system
@@ -1241,6 +1321,11 @@ type PlatformCheckoutCartV2Param = {
1241
1321
  * identify source of order creation
1242
1322
  */
1243
1323
  xOrderingSource?: string;
1324
+ /**
1325
+ * - Ordering source type header, to be
1326
+ * used to identify source type of order creation.
1327
+ */
1328
+ xOrderingSourceType?: string;
1244
1329
  /**
1245
1330
  * - It allows operations on cross-platform
1246
1331
  * anonymous carts. When provided, the system retrieves the cart using only
@@ -1269,6 +1354,11 @@ type PlatformUpdateCartParam = {
1269
1354
  * identify source of order creation.
1270
1355
  */
1271
1356
  xOrderingSource?: string;
1357
+ /**
1358
+ * - Ordering source type header, to be
1359
+ * used to identify source type of order creation.
1360
+ */
1361
+ xOrderingSourceType?: string;
1272
1362
  /**
1273
1363
  * - Anonymous cart header used to perform
1274
1364
  * operations on cross-platform anonymous cart. When enabled, the system
@@ -1323,6 +1413,11 @@ type RemoveCouponParam = {
1323
1413
  * identify source of order creation.
1324
1414
  */
1325
1415
  xOrderingSource?: string;
1416
+ /**
1417
+ * - Ordering source type header, to be
1418
+ * used to identify source type of order creation.
1419
+ */
1420
+ xOrderingSourceType?: string;
1326
1421
  /**
1327
1422
  * - Anonymous cart header used to perform
1328
1423
  * operations on cross-platform anonymous cart. When enabled, the system
@@ -1341,6 +1436,11 @@ type SelectAddressParam = {
1341
1436
  * identify source of order creation.
1342
1437
  */
1343
1438
  xOrderingSource?: string;
1439
+ /**
1440
+ * - Ordering source type header, to be
1441
+ * used to identify source type of order creation.
1442
+ */
1443
+ xOrderingSourceType?: string;
1344
1444
  /**
1345
1445
  * - Anonymous cart header used to perform
1346
1446
  * operations on cross-platform anonymous cart. When enabled, the system
@@ -1359,6 +1459,11 @@ type SelectPaymentModeParam = {
1359
1459
  * identify source of order creation.
1360
1460
  */
1361
1461
  xOrderingSource?: string;
1462
+ /**
1463
+ * - Ordering source type header, to be
1464
+ * used to identify source type of order creation.
1465
+ */
1466
+ xOrderingSourceType?: string;
1362
1467
  /**
1363
1468
  * - Anonymous cart header used to perform
1364
1469
  * operations on cross-platform anonymous cart. When enabled, the system
@@ -1376,6 +1481,11 @@ type SelectPaymentModeV2Param = {
1376
1481
  * identify source of order creation.
1377
1482
  */
1378
1483
  xOrderingSource?: string;
1484
+ /**
1485
+ * - Ordering source type header, to be
1486
+ * used to identify source type of order creation.
1487
+ */
1488
+ xOrderingSourceType?: string;
1379
1489
  id?: string;
1380
1490
  buyNow?: boolean;
1381
1491
  orderType?: string;
@@ -1403,6 +1513,12 @@ type UpdateCartBreakupParam = {
1403
1513
  * request and apply source-specific rules.
1404
1514
  */
1405
1515
  xOrderingSource?: string;
1516
+ /**
1517
+ * - Identifier for the ordering source
1518
+ * type (e.g., storefront, store_os_pos, kiosk). Used to determine the source
1519
+ * type for order governance and validations.
1520
+ */
1521
+ xOrderingSourceType?: string;
1406
1522
  /**
1407
1523
  * - Anonymous cart header used to perform
1408
1524
  * operations on cross-platform anonymous cart. When enabled, the system
@@ -1529,6 +1645,11 @@ type ValidateCouponForPaymentParam = {
1529
1645
  * identify source of order creation.
1530
1646
  */
1531
1647
  xOrderingSource?: string;
1648
+ /**
1649
+ * - Ordering source type header, to be
1650
+ * used to identify source type of order creation.
1651
+ */
1652
+ xOrderingSourceType?: string;
1532
1653
  id?: string;
1533
1654
  buyNow?: boolean;
1534
1655
  addressId?: string;
@@ -23,6 +23,8 @@ const CartPlatformModel = require("./CartPlatformModel");
23
23
  * @typedef ApplyCouponParam
24
24
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
25
25
  * identify source of order creation.
26
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
27
+ * used to identify source type of order creation.
26
28
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
27
29
  * operations on cross-platform anonymous cart. When enabled, the system
28
30
  * fetches the cart only based on cart_id instead of user_id.
@@ -38,6 +40,8 @@ const CartPlatformModel = require("./CartPlatformModel");
38
40
  * @typedef ApplyLoyaltyPointsParam
39
41
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
40
42
  * identify source of order creation.
43
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
44
+ * used to identify source type of order creation.
41
45
  * @property {string} [id] - The unique identifier of the cart.
42
46
  * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
43
47
  * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
@@ -49,6 +53,8 @@ const CartPlatformModel = require("./CartPlatformModel");
49
53
  * @typedef CheckCartServiceabilityParam
50
54
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
51
55
  * identify source of order creation.
56
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
57
+ * used to identify source type of order creation.
52
58
  * @property {CartPlatformModel.OpenApiCartServiceabilityCreation} body
53
59
  */
54
60
 
@@ -56,6 +62,8 @@ const CartPlatformModel = require("./CartPlatformModel");
56
62
  * @typedef CheckoutCartParam
57
63
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
58
64
  * identify source of order creation.
65
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
66
+ * used to identify source type of order creation.
59
67
  * @property {string} [xAnonymousCart] - It allows operations on cross-platform
60
68
  * anonymous carts. When provided, the system retrieves the cart using only
61
69
  * the cart_id, ignoring the user_id. Use this when interacting with an
@@ -111,6 +119,8 @@ const CartPlatformModel = require("./CartPlatformModel");
111
119
  * @typedef FetchAndvalidateCartItemsParam
112
120
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
113
121
  * identify source of order creation.
122
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
123
+ * used to identify source type of order creation.
114
124
  * @property {string} [xLocationDetail] - Location details for the cart checkout
115
125
  * @property {string} [xCurrencyCode] - Currency code for transactions.
116
126
  * @property {CartPlatformModel.OpenapiCartDetailsCreation} body
@@ -178,6 +188,8 @@ const CartPlatformModel = require("./CartPlatformModel");
178
188
  * @typedef GetCartParam
179
189
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
180
190
  * identify source of order creation.
191
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
192
+ * used to identify source type of order creation.
181
193
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
182
194
  * operations on cross-platform anonymous cart. When enabled, the system
183
195
  * fetches the cart only based on cart_id instead of user_id.
@@ -362,6 +374,8 @@ const CartPlatformModel = require("./CartPlatformModel");
362
374
  * @typedef OverrideCartParam
363
375
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
364
376
  * identify source of order creation.
377
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
378
+ * used to identify source type of order creation.
365
379
  * @property {string} [xLocationDetail] - Location details for the cart checkout
366
380
  * @property {string} [xCurrencyCode] - Currency code for transactions. Defaults
367
381
  * to INR if the location is India.
@@ -372,6 +386,8 @@ const CartPlatformModel = require("./CartPlatformModel");
372
386
  * @typedef PlatformAddItemsParam
373
387
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
374
388
  * identify source of order creation.
389
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
390
+ * used to identify source type of order creation.
375
391
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
376
392
  * operations on cross-platform anonymous cart. When enabled, the system
377
393
  * fetches the cart only based on cart_id instead of user_id.
@@ -394,6 +410,8 @@ const CartPlatformModel = require("./CartPlatformModel");
394
410
  * @typedef PlatformCheckoutCartParam
395
411
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
396
412
  * identify source of order creation.
413
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
414
+ * used to identify source type of order creation.
397
415
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
398
416
  * operations on cross-platform anonymous cart. When enabled, the system
399
417
  * fetches the cart only based on cart_id instead of user_id.
@@ -405,6 +423,8 @@ const CartPlatformModel = require("./CartPlatformModel");
405
423
  * @typedef PlatformCheckoutCartV2Param
406
424
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
407
425
  * identify source of order creation
426
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
427
+ * used to identify source type of order creation.
408
428
  * @property {string} [xAnonymousCart] - It allows operations on cross-platform
409
429
  * anonymous carts. When provided, the system retrieves the cart using only
410
430
  * the cart_id, ignoring the user_id. Use this when interacting with an
@@ -420,6 +440,8 @@ const CartPlatformModel = require("./CartPlatformModel");
420
440
  * @typedef PlatformUpdateCartParam
421
441
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
422
442
  * identify source of order creation.
443
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
444
+ * used to identify source type of order creation.
423
445
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
424
446
  * operations on cross-platform anonymous cart. When enabled, the system
425
447
  * fetches the cart only based on cart_id instead of user_id.
@@ -448,6 +470,8 @@ const CartPlatformModel = require("./CartPlatformModel");
448
470
  * @typedef RemoveCouponParam
449
471
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
450
472
  * identify source of order creation.
473
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
474
+ * used to identify source type of order creation.
451
475
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
452
476
  * operations on cross-platform anonymous cart. When enabled, the system
453
477
  * fetches the cart only based on cart_id instead of user_id.
@@ -464,6 +488,8 @@ const CartPlatformModel = require("./CartPlatformModel");
464
488
  * @typedef SelectAddressParam
465
489
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
466
490
  * identify source of order creation.
491
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
492
+ * used to identify source type of order creation.
467
493
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
468
494
  * operations on cross-platform anonymous cart. When enabled, the system
469
495
  * fetches the cart only based on cart_id instead of user_id.
@@ -478,6 +504,8 @@ const CartPlatformModel = require("./CartPlatformModel");
478
504
  * @typedef SelectPaymentModeParam
479
505
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
480
506
  * identify source of order creation.
507
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
508
+ * used to identify source type of order creation.
481
509
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
482
510
  * operations on cross-platform anonymous cart. When enabled, the system
483
511
  * fetches the cart only based on cart_id instead of user_id.
@@ -491,6 +519,8 @@ const CartPlatformModel = require("./CartPlatformModel");
491
519
  * @typedef SelectPaymentModeV2Param
492
520
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
493
521
  * identify source of order creation.
522
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
523
+ * used to identify source type of order creation.
494
524
  * @property {string} [id]
495
525
  * @property {boolean} [buyNow]
496
526
  * @property {string} [orderType]
@@ -515,6 +545,9 @@ const CartPlatformModel = require("./CartPlatformModel");
515
545
  * @property {string} [xOrderingSource] - Identifier for the ordering source
516
546
  * (e.g., web, mobile app, POS). Used to determine the origin of the order
517
547
  * request and apply source-specific rules.
548
+ * @property {string} [xOrderingSourceType] - Identifier for the ordering source
549
+ * type (e.g., storefront, store_os_pos, kiosk). Used to determine the source
550
+ * type for order governance and validations.
518
551
  * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
519
552
  * operations on cross-platform anonymous cart. When enabled, the system
520
553
  * fetches the cart only based on cart_id instead of user_id.
@@ -619,6 +652,8 @@ const CartPlatformModel = require("./CartPlatformModel");
619
652
  * @typedef ValidateCouponForPaymentParam
620
653
  * @property {string} [xOrderingSource] - Ordering source header, to be used to
621
654
  * identify source of order creation.
655
+ * @property {string} [xOrderingSourceType] - Ordering source type header, to be
656
+ * used to identify source type of order creation.
622
657
  * @property {string} [id]
623
658
  * @property {boolean} [buyNow]
624
659
  * @property {string} [addressId]
@@ -656,6 +691,7 @@ class CartPlatformApplicationValidator {
656
691
  static applyCoupon() {
657
692
  return Joi.object({
658
693
  xOrderingSource: Joi.string().allow(""),
694
+ xOrderingSourceType: Joi.string().allow(""),
659
695
  xAnonymousCart: Joi.string().allow(""),
660
696
 
661
697
  i: Joi.boolean(),
@@ -671,6 +707,7 @@ class CartPlatformApplicationValidator {
671
707
  static applyLoyaltyPoints() {
672
708
  return Joi.object({
673
709
  xOrderingSource: Joi.string().allow(""),
710
+ xOrderingSourceType: Joi.string().allow(""),
674
711
 
675
712
  id: Joi.string().allow(""),
676
713
  i: Joi.boolean(),
@@ -684,6 +721,7 @@ class CartPlatformApplicationValidator {
684
721
  static checkCartServiceability() {
685
722
  return Joi.object({
686
723
  xOrderingSource: Joi.string().allow(""),
724
+ xOrderingSourceType: Joi.string().allow(""),
687
725
 
688
726
  body: CartPlatformModel.OpenApiCartServiceabilityCreation().required(),
689
727
  }).required();
@@ -693,6 +731,7 @@ class CartPlatformApplicationValidator {
693
731
  static checkoutCart() {
694
732
  return Joi.object({
695
733
  xOrderingSource: Joi.string().allow(""),
734
+ xOrderingSourceType: Joi.string().allow(""),
696
735
  xAnonymousCart: Joi.string().allow(""),
697
736
  xLocationDetail: Joi.string().allow(""),
698
737
  xCurrencyCode: Joi.string().allow(""),
@@ -762,6 +801,7 @@ class CartPlatformApplicationValidator {
762
801
  static fetchAndvalidateCartItems() {
763
802
  return Joi.object({
764
803
  xOrderingSource: Joi.string().allow(""),
804
+ xOrderingSourceType: Joi.string().allow(""),
765
805
  xLocationDetail: Joi.string().allow(""),
766
806
  xCurrencyCode: Joi.string().allow(""),
767
807
 
@@ -846,6 +886,7 @@ class CartPlatformApplicationValidator {
846
886
  static getCart() {
847
887
  return Joi.object({
848
888
  xOrderingSource: Joi.string().allow(""),
889
+ xOrderingSourceType: Joi.string().allow(""),
849
890
  xAnonymousCart: Joi.string().allow(""),
850
891
 
851
892
  id: Joi.string().allow(""),
@@ -1054,6 +1095,7 @@ class CartPlatformApplicationValidator {
1054
1095
  static overrideCart() {
1055
1096
  return Joi.object({
1056
1097
  xOrderingSource: Joi.string().allow(""),
1098
+ xOrderingSourceType: Joi.string().allow(""),
1057
1099
  xLocationDetail: Joi.string().allow(""),
1058
1100
  xCurrencyCode: Joi.string().allow(""),
1059
1101
 
@@ -1065,6 +1107,7 @@ class CartPlatformApplicationValidator {
1065
1107
  static platformAddItems() {
1066
1108
  return Joi.object({
1067
1109
  xOrderingSource: Joi.string().allow(""),
1110
+ xOrderingSourceType: Joi.string().allow(""),
1068
1111
  xAnonymousCart: Joi.string().allow(""),
1069
1112
 
1070
1113
  i: Joi.boolean(),
@@ -1081,6 +1124,7 @@ class CartPlatformApplicationValidator {
1081
1124
  static platformCheckoutCart() {
1082
1125
  return Joi.object({
1083
1126
  xOrderingSource: Joi.string().allow(""),
1127
+ xOrderingSourceType: Joi.string().allow(""),
1084
1128
  xAnonymousCart: Joi.string().allow(""),
1085
1129
 
1086
1130
  id: Joi.string().allow(""),
@@ -1092,6 +1136,7 @@ class CartPlatformApplicationValidator {
1092
1136
  static platformCheckoutCartV2() {
1093
1137
  return Joi.object({
1094
1138
  xOrderingSource: Joi.string().allow(""),
1139
+ xOrderingSourceType: Joi.string().allow(""),
1095
1140
  xAnonymousCart: Joi.string().allow(""),
1096
1141
  xLocationDetail: Joi.string().allow(""),
1097
1142
  xCurrencyCode: Joi.string().allow(""),
@@ -1105,6 +1150,7 @@ class CartPlatformApplicationValidator {
1105
1150
  static platformUpdateCart() {
1106
1151
  return Joi.object({
1107
1152
  xOrderingSource: Joi.string().allow(""),
1153
+ xOrderingSourceType: Joi.string().allow(""),
1108
1154
  xAnonymousCart: Joi.string().allow(""),
1109
1155
 
1110
1156
  id: Joi.string().allow(""),
@@ -1129,6 +1175,7 @@ class CartPlatformApplicationValidator {
1129
1175
  static removeCoupon() {
1130
1176
  return Joi.object({
1131
1177
  xOrderingSource: Joi.string().allow(""),
1178
+ xOrderingSourceType: Joi.string().allow(""),
1132
1179
  xAnonymousCart: Joi.string().allow(""),
1133
1180
 
1134
1181
  uid: Joi.string().allow(""),
@@ -1147,6 +1194,7 @@ class CartPlatformApplicationValidator {
1147
1194
  static selectAddress() {
1148
1195
  return Joi.object({
1149
1196
  xOrderingSource: Joi.string().allow(""),
1197
+ xOrderingSourceType: Joi.string().allow(""),
1150
1198
  xAnonymousCart: Joi.string().allow(""),
1151
1199
 
1152
1200
  cartId: Joi.string().allow(""),
@@ -1161,6 +1209,7 @@ class CartPlatformApplicationValidator {
1161
1209
  static selectPaymentMode() {
1162
1210
  return Joi.object({
1163
1211
  xOrderingSource: Joi.string().allow(""),
1212
+ xOrderingSourceType: Joi.string().allow(""),
1164
1213
  xAnonymousCart: Joi.string().allow(""),
1165
1214
 
1166
1215
  id: Joi.string().allow(""),
@@ -1174,6 +1223,7 @@ class CartPlatformApplicationValidator {
1174
1223
  static selectPaymentModeV2() {
1175
1224
  return Joi.object({
1176
1225
  xOrderingSource: Joi.string().allow(""),
1226
+ xOrderingSourceType: Joi.string().allow(""),
1177
1227
 
1178
1228
  id: Joi.string().allow(""),
1179
1229
  buyNow: Joi.boolean(),
@@ -1203,6 +1253,7 @@ class CartPlatformApplicationValidator {
1203
1253
  static updateCartBreakup() {
1204
1254
  return Joi.object({
1205
1255
  xOrderingSource: Joi.string().allow(""),
1256
+ xOrderingSourceType: Joi.string().allow(""),
1206
1257
  xAnonymousCart: Joi.string().allow(""),
1207
1258
 
1208
1259
  id: Joi.string().allow(""),
@@ -1321,6 +1372,7 @@ class CartPlatformApplicationValidator {
1321
1372
  static validateCouponForPayment() {
1322
1373
  return Joi.object({
1323
1374
  xOrderingSource: Joi.string().allow(""),
1375
+ xOrderingSourceType: Joi.string().allow(""),
1324
1376
 
1325
1377
  id: Joi.string().allow(""),
1326
1378
  buyNow: Joi.boolean(),
@@ -4608,7 +4608,8 @@ export = CatalogPlatformModel;
4608
4608
  /**
4609
4609
  * @typedef CreateTaxRequestBody
4610
4610
  * @property {TaxReqBodyRule} rule
4611
- * @property {TaxReqBodyVersion} versions
4611
+ * @property {TaxReqBodyVersion[]} versions - One or more tax versions to create
4612
+ * with the rule (at least one required).
4612
4613
  */
4613
4614
  /**
4614
4615
  * @typedef TaxVersion
@@ -14896,7 +14897,11 @@ type RegionReference = {
14896
14897
  declare function CreateTaxRequestBody(): CreateTaxRequestBody;
14897
14898
  type CreateTaxRequestBody = {
14898
14899
  rule: TaxReqBodyRule;
14899
- versions: TaxReqBodyVersion;
14900
+ /**
14901
+ * - One or more tax versions to create
14902
+ * with the rule (at least one required).
14903
+ */
14904
+ versions: TaxReqBodyVersion[];
14900
14905
  };
14901
14906
  /** @returns {TaxVersion} */
14902
14907
  declare function TaxVersion(): TaxVersion;
@@ -5050,7 +5050,8 @@ const Joi = require("joi");
5050
5050
  /**
5051
5051
  * @typedef CreateTaxRequestBody
5052
5052
  * @property {TaxReqBodyRule} rule
5053
- * @property {TaxReqBodyVersion} versions
5053
+ * @property {TaxReqBodyVersion[]} versions - One or more tax versions to create
5054
+ * with the rule (at least one required).
5054
5055
  */
5055
5056
 
5056
5057
  /**
@@ -10788,7 +10789,9 @@ class CatalogPlatformModel {
10788
10789
  static CreateTaxRequestBody() {
10789
10790
  return Joi.object({
10790
10791
  rule: CatalogPlatformModel.TaxReqBodyRule().required(),
10791
- versions: CatalogPlatformModel.TaxReqBodyVersion().required(),
10792
+ versions: Joi.array()
10793
+ .items(CatalogPlatformModel.TaxReqBodyVersion())
10794
+ .required(),
10792
10795
  });
10793
10796
  }
10794
10797
 
@@ -129,7 +129,7 @@ class Common {
129
129
  query_params["query"] = query;
130
130
 
131
131
  const xHeaders = {};
132
- xHeaders["authorization"] = authorization;
132
+ if (authorization !== undefined) xHeaders["authorization"] = authorization;
133
133
 
134
134
  const response = await PlatformAPIClient.execute(
135
135
  this.config,