@gofynd/fdk-client-javascript 1.4.15-beta.14 → 1.4.15-beta.15

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 (278) hide show
  1. package/README.md +23 -26
  2. package/package.json +5 -1
  3. package/sdk/application/ApplicationClient.d.ts +5 -6
  4. package/sdk/application/ApplicationClient.js +24 -20
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
  6. package/sdk/application/Cart/CartApplicationClient.js +444 -76
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
  16. package/sdk/application/Content/ContentApplicationClient.js +274 -111
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
  22. package/sdk/application/Lead/LeadApplicationClient.js +6 -6
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
  26. package/sdk/application/Order/OrderApplicationClient.js +217 -17
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
  28. package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
  32. package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
  33. package/sdk/application/User/UserApplicationClient.d.ts +103 -53
  34. package/sdk/application/User/UserApplicationClient.js +308 -49
  35. package/sdk/common/AxiosHelper.js +11 -4
  36. package/sdk/common/Constant.d.ts +27 -4
  37. package/sdk/common/Constant.js +33 -6
  38. package/sdk/common/utils.d.ts +10 -0
  39. package/sdk/common/utils.js +24 -3
  40. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
  41. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
  43. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
  44. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
  45. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
  46. package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
  47. package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
  48. package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
  49. package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
  50. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
  51. package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
  52. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
  53. package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
  54. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
  55. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
  56. package/sdk/partner/PartnerClient.d.ts +5 -2
  57. package/sdk/partner/PartnerClient.js +21 -7
  58. package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
  59. package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
  60. package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
  61. package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
  62. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  63. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
  64. package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
  65. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
  66. package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
  67. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
  68. package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
  69. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
  70. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
  71. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  73. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
  75. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  81. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
  82. package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
  83. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  84. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  85. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  86. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  87. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
  89. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
  91. package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
  92. package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
  93. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
  97. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
  98. package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
  99. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9573 -2678
  100. package/sdk/platform/Catalog/CatalogPlatformModel.js +5033 -1973
  101. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
  103. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
  104. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  105. package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
  106. package/sdk/platform/Common/CommonPlatformModel.js +25 -14
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
  111. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  112. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
  114. package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
  124. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
  126. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
  128. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  130. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
  132. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
  134. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
  135. package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
  136. package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
  137. package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
  138. package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
  139. package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
  140. package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
  141. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
  142. package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
  143. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
  144. package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  146. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
  150. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
  152. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
  154. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  156. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
  159. package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
  160. package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
  161. package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
  162. package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
  163. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
  164. package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
  165. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
  166. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
  167. package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
  168. package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
  169. package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
  170. package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
  171. package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
  172. package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
  173. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
  175. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
  177. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
  178. package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
  179. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
  180. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
  181. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
  182. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
  183. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
  184. package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
  185. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
  186. package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
  187. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  188. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  189. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  190. package/sdk/platform/PlatformApplicationClient.js +0 -4
  191. package/sdk/platform/PlatformClient.d.ts +5 -4
  192. package/sdk/platform/PlatformClient.js +32 -22
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
  203. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  204. package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
  206. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
  212. package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
  214. package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
  215. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
  216. package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
  217. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
  218. package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
  219. package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
  220. package/sdk/platform/User/UserPlatformModel.js +607 -46
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  226. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  227. package/sdk/platform/index.d.ts +0 -2
  228. package/sdk/platform/index.js +0 -4
  229. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  230. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  231. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  232. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  233. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  234. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
  239. package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
  240. package/sdk/public/Content/ContentPublicClient.js +1067 -17
  241. package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
  242. package/sdk/public/Content/ContentPublicModel.js +751 -3
  243. package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
  244. package/sdk/public/Content/ContentPublicValidator.js +119 -2
  245. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  246. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  247. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  248. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  249. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  250. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  251. package/sdk/public/PublicClient.d.ts +5 -2
  252. package/sdk/public/PublicClient.js +16 -6
  253. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
  254. package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
  255. package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
  256. package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
  257. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  258. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  259. package/sdk/public/index.d.ts +1 -0
  260. package/sdk/public/index.js +2 -0
  261. package/utility.d.ts +3 -0
  262. package/utility.js +7 -0
  263. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
  264. package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
  265. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
  266. package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
  267. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  268. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  269. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  270. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  271. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  272. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
@@ -7,16 +7,11 @@ const CartPlatformModel = require("./CartPlatformModel");
7
7
  * @property {CartPlatformModel.PlatformAddress} body
8
8
  */
9
9
 
10
- /**
11
- * @typedef AddBulkPriceAdjustmentParam
12
- * @property {CartPlatformModel.BulkPriceAdjustmentAddRequest} body
13
- */
14
-
15
10
  /**
16
11
  * @typedef AddItemsParam
17
- * @property {string} cartId - Current Cart _id
12
+ * @property {string} cartId - Current Cart id of user cart
18
13
  * @property {boolean} [b]
19
- * @property {CartPlatformModel.AddCartRequest} body
14
+ * @property {CartPlatformModel.AddCartCreation} body
20
15
  */
21
16
 
22
17
  /**
@@ -26,21 +21,56 @@ const CartPlatformModel = require("./CartPlatformModel");
26
21
 
27
22
  /**
28
23
  * @typedef ApplyCouponParam
24
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
28
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
29
+ * operations on cross-platform anonymous cart. When enabled, the system
30
+ * fetches the cart only based on cart_id instead of user_id.
29
31
  * @property {boolean} [i]
30
32
  * @property {boolean} [b]
31
33
  * @property {boolean} [p]
32
34
  * @property {string} [id]
33
35
  * @property {boolean} [buyNow]
34
- * @property {CartPlatformModel.ApplyCouponRequest} body
36
+ * @property {CartPlatformModel.ApplyCouponDetails} body
37
+ */
38
+
39
+ /**
40
+ * @typedef ApplyLoyaltyPointsParam
41
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
45
+ * @property {string} [id] - The unique identifier of the cart.
46
+ * @property {boolean} [i] - Select `true` to retrieve all the items added in the cart.
47
+ * @property {boolean} [b] - Select `true` to retrieve the price breakup of cart items.
48
+ * @property {boolean} [buyNow] - This is boolean to get buy_now cart.
49
+ * @property {CartPlatformModel.RedeemLoyaltyPoints} body
35
50
  */
36
51
 
37
52
  /**
38
53
  * @typedef CheckCartServiceabilityParam
39
- * @property {CartPlatformModel.OpenApiCartServiceabilityRequest} body
54
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
58
+ * @property {CartPlatformModel.OpenApiCartServiceabilityCreation} body
40
59
  */
41
60
 
42
61
  /**
43
62
  * @typedef CheckoutCartParam
63
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
67
+ * @property {string} [xAnonymousCart] - It allows operations on cross-platform
68
+ * anonymous carts. When provided, the system retrieves the cart using only
69
+ * the cart_id, ignoring the user_id. Use this when interacting with an
70
+ * anonymous or guest cart across platforms.
71
+ * @property {string} [xLocationDetail] - Location details for the cart checkout
72
+ * @property {string} [xCurrencyCode] - Currency code for transactions. Defaults
73
+ * to INR if the location is India.
44
74
  * @property {CartPlatformModel.OpenApiPlatformCheckoutReq} body
45
75
  */
46
76
 
@@ -54,6 +84,11 @@ const CartPlatformModel = require("./CartPlatformModel");
54
84
  * @property {CartPlatformModel.CouponAdd} body
55
85
  */
56
86
 
87
+ /**
88
+ * @typedef CreateOfferParam
89
+ * @property {CartPlatformModel.OfferSchema} body
90
+ */
91
+
57
92
  /**
58
93
  * @typedef CreatePromotionParam
59
94
  * @property {CartPlatformModel.PromotionAdd} body
@@ -62,12 +97,33 @@ const CartPlatformModel = require("./CartPlatformModel");
62
97
  /**
63
98
  * @typedef DeleteCartParam
64
99
  * @property {string} [id] - The unique identifier of the cart.
65
- * @property {CartPlatformModel.DeleteCartRequest} body
100
+ * @property {CartPlatformModel.DeleteCartDetails} body
101
+ */
102
+
103
+ /**
104
+ * @typedef DeleteCouponParam
105
+ * @property {string} id
106
+ */
107
+
108
+ /**
109
+ * @typedef DeleteOfferParam
110
+ * @property {string} id
111
+ */
112
+
113
+ /**
114
+ * @typedef DeletePromotionParam
115
+ * @property {string} id
66
116
  */
67
117
 
68
118
  /**
69
119
  * @typedef FetchAndvalidateCartItemsParam
70
- * @property {CartPlatformModel.OpenapiCartDetailsRequest} body
120
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
124
+ * @property {string} [xLocationDetail] - Location details for the cart checkout
125
+ * @property {string} [xCurrencyCode] - Currency code for transactions.
126
+ * @property {CartPlatformModel.OpenapiCartDetailsCreation} body
71
127
  */
72
128
 
73
129
  /** @typedef FetchCartMetaConfigParam */
@@ -130,6 +186,13 @@ const CartPlatformModel = require("./CartPlatformModel");
130
186
 
131
187
  /**
132
188
  * @typedef GetCartParam
189
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
193
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
194
+ * operations on cross-platform anonymous cart. When enabled, the system
195
+ * fetches the cart only based on cart_id instead of user_id.
133
196
  * @property {string} [id] - The unique identifier of the cart
134
197
  * @property {string} [userId] - Option to fetch cart for the provided user_id.
135
198
  * @property {string} [orderType] - The order type of shipment HomeDelivery - If
@@ -153,7 +216,7 @@ const CartPlatformModel = require("./CartPlatformModel");
153
216
 
154
217
  /**
155
218
  * @typedef GetCartShareLinkParam
156
- * @property {CartPlatformModel.GetShareCartLinkRequest} body
219
+ * @property {CartPlatformModel.GetShareCartLinkCreation} body
157
220
  */
158
221
 
159
222
  /**
@@ -183,6 +246,13 @@ const CartPlatformModel = require("./CartPlatformModel");
183
246
  * @property {boolean} [isDisplay]
184
247
  * @property {string} [typeSlug]
185
248
  * @property {string} [code]
249
+ * @property {string} [createdBy]
250
+ * @property {string} [reviewedBy]
251
+ * @property {string} [approvedStartTime]
252
+ * @property {string} [approvedEndTime]
253
+ * @property {string} [reviewStartTime]
254
+ * @property {string} [reviewEndTime]
255
+ * @property {string} [status]
186
256
  */
187
257
 
188
258
  /**
@@ -191,15 +261,42 @@ const CartPlatformModel = require("./CartPlatformModel");
191
261
  * @property {boolean} [buyNow] - Boolean value to get buy_now cart.
192
262
  */
193
263
 
264
+ /**
265
+ * @typedef GetOfferByIdParam
266
+ * @property {string} id
267
+ */
268
+
269
+ /**
270
+ * @typedef GetOffersParam
271
+ * @property {number} [pageNo] - Current page no as per pagination
272
+ * @property {number} [pageSize] - Offers max records fetched in single request
273
+ * @property {string} [search] - Filter by offer name
274
+ * @property {string} [mode] - Filter by offer mode
275
+ * @property {string} [type] - Filter by offer type
276
+ * @property {string} [promoGroup]
277
+ * @property {boolean} [excludeContractOffers] - Filter non contract offers
278
+ * @property {string} [offerId] - Filter by offer id
279
+ * @property {string} [createdBy] - Filter by offer created by user id
280
+ * @property {string} [reviewedBy] - Filter by offer reviewer user id
281
+ * @property {string} [approvedStartTime] - Filter offer by start time date
282
+ * range when status is in approved state
283
+ * @property {string} [approvedEndTime] - Filter offer by end time date range
284
+ * when status is in approved state
285
+ * @property {string} [status] - Filter your offers effortlessly by status, such
286
+ * as draft, review and more
287
+ * @property {string} [code] - Filter by offer code in case of coupons
288
+ * @property {boolean} [isPublic] - Filter offers which are public
289
+ */
290
+
194
291
  /**
195
292
  * @typedef GetPriceAdjustmentsParam
196
- * @property {string} cartId - Cart Id
293
+ * @property {string} cartId - Cart id of user cart
197
294
  */
198
295
 
199
296
  /**
200
297
  * @typedef GetPromosCouponConfigParam
201
- * @property {string} [entityType] - Entity_type as promotion or coupon
202
- * @property {boolean} [isHidden] - Promo-coupon config shown or not
298
+ * @property {string} [entityType] - Entity type as promotion or coupon
299
+ * @property {boolean} [isHidden] - Promotion coupon config shown or not
203
300
  */
204
301
 
205
302
  /**
@@ -219,14 +316,18 @@ const CartPlatformModel = require("./CartPlatformModel");
219
316
  * /service/application/catalog/v1.0/products/
220
317
  * @property {number} [pageSize] - Number of offers to be fetched to show
221
318
  * @property {string} [promotionGroup] - Type of promotion groups
222
- * @property {number} [storeId] - Store id
319
+ * @property {number} [storeId] - Unique identifier of a store
223
320
  * @property {string} [cartType] - The type of cart
321
+ * @property {string} [promotionType] - Type of promotion to be fetched
322
+ * @property {string} [cartId] - The unique identifier of the user cart.
323
+ * @property {boolean} [autoApply] - Indicates whether to filter promotions
324
+ * based on their auto_apply status.
224
325
  */
225
326
 
226
327
  /**
227
328
  * @typedef GetPromotionPaymentOffersParam
228
- * @property {string} [id] - Cart id
229
- * @property {number} [uid] - Cart uid
329
+ * @property {string} [id] - Cart id of the user cart
330
+ * @property {number} [uid] - Cart uid of the user cart
230
331
  */
231
332
 
232
333
  /**
@@ -239,6 +340,13 @@ const CartPlatformModel = require("./CartPlatformModel");
239
340
  * @property {string} [promotionType]
240
341
  * @property {string} [fpPanel]
241
342
  * @property {string} [promotionId]
343
+ * @property {string} [createdBy]
344
+ * @property {string} [reviewedBy]
345
+ * @property {string} [approvedStartTime]
346
+ * @property {string} [approvedEndTime]
347
+ * @property {string} [reviewStartTime]
348
+ * @property {string} [reviewEndTime]
349
+ * @property {string} [status]
242
350
  */
243
351
 
244
352
  /**
@@ -264,38 +372,79 @@ const CartPlatformModel = require("./CartPlatformModel");
264
372
 
265
373
  /**
266
374
  * @typedef OverrideCartParam
375
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
379
+ * @property {string} [xLocationDetail] - Location details for the cart checkout
380
+ * @property {string} [xCurrencyCode] - Currency code for transactions. Defaults
381
+ * to INR if the location is India.
267
382
  * @property {CartPlatformModel.OverrideCheckoutReq} body
268
383
  */
269
384
 
270
385
  /**
271
386
  * @typedef PlatformAddItemsParam
387
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
391
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
392
+ * operations on cross-platform anonymous cart. When enabled, the system
393
+ * fetches the cart only based on cart_id instead of user_id.
272
394
  * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
273
395
  * all the items added in the cart.
274
396
  * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
275
397
  * the price breakup of cart items.
398
+ * @property {boolean} [includeCartCalculation] - Set to `false` to skip
399
+ * recalculating and fetching the updated cart after the edit. Defaults to `true`.
276
400
  * @property {boolean} [buyNow] - This is a boolen value. Select `true` to
277
401
  * set/initialize buy now cart
278
402
  * @property {string} [orderType] - The order type of shipment HomeDelivery - If
279
403
  * the customer wants the order home-delivered PickAtStore - If the customer
280
404
  * wants the handover of an order at the store itself.
281
405
  * @property {string} [id] - The unique identifier of the cart
282
- * @property {CartPlatformModel.PlatformAddCartRequest} body
406
+ * @property {CartPlatformModel.PlatformAddCartDetails} body
283
407
  */
284
408
 
285
409
  /**
286
410
  * @typedef PlatformCheckoutCartParam
411
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
415
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
416
+ * operations on cross-platform anonymous cart. When enabled, the system
417
+ * fetches the cart only based on cart_id instead of user_id.
287
418
  * @property {string} [id] - The unique identifier of the cart
288
- * @property {CartPlatformModel.PlatformCartCheckoutDetailRequest} body
419
+ * @property {CartPlatformModel.PlatformCartCheckoutDetailCreation} body
289
420
  */
290
421
 
291
422
  /**
292
423
  * @typedef PlatformCheckoutCartV2Param
293
- * @property {string} [id] - The unique identifier of the cart
294
- * @property {CartPlatformModel.PlatformCartCheckoutDetailV2Request} body
424
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
428
+ * @property {string} [xAnonymousCart] - It allows operations on cross-platform
429
+ * anonymous carts. When provided, the system retrieves the cart using only
430
+ * the cart_id, ignoring the user_id. Use this when interacting with an
431
+ * anonymous or guest cart across platforms.
432
+ * @property {string} [xLocationDetail] - Location information for the cart
433
+ * @property {string} [xCurrencyCode] - Currency code for the transaction.
434
+ * Defaults to INR if the order location is India.
435
+ * @property {string} [id] - Unique identifier of the cart
436
+ * @property {CartPlatformModel.PlatformCartCheckoutDetailV2Creation} body
295
437
  */
296
438
 
297
439
  /**
298
440
  * @typedef PlatformUpdateCartParam
441
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
445
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
446
+ * operations on cross-platform anonymous cart. When enabled, the system
447
+ * fetches the cart only based on cart_id instead of user_id.
299
448
  * @property {string} [id] - The unique identifier of the cart
300
449
  * @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
301
450
  * all the items added in the cart.
@@ -304,9 +453,11 @@ const CartPlatformModel = require("./CartPlatformModel");
304
453
  * wants the handover of an order at the store itself.
305
454
  * @property {boolean} [b] - This is a boolean value. Select `true` to retrieve
306
455
  * the price breakup of cart items.
456
+ * @property {boolean} [includeCartCalculation] - Set to `false` to skip
457
+ * recalculating and fetching the updated cart after the edit. Defaults to `true`.
307
458
  * @property {boolean} [buyNow] - This is a boolen value. Select `true` to
308
459
  * set/initialize buy now cart
309
- * @property {CartPlatformModel.PlatformUpdateCartRequest} body
460
+ * @property {CartPlatformModel.PlatformUpdateCartDetails} body
310
461
  */
311
462
 
312
463
  /**
@@ -315,14 +466,15 @@ const CartPlatformModel = require("./CartPlatformModel");
315
466
  * @property {string} [userId] - Option to delete address for the provided user_id.
316
467
  */
317
468
 
318
- /**
319
- * @typedef RemoveBulkPriceAdjustmentParam
320
- * @property {string} priceAdjustmentIds - List of Price Adjustment IDs to be
321
- * removed (comma-separated)
322
- */
323
-
324
469
  /**
325
470
  * @typedef RemoveCouponParam
471
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
475
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
476
+ * operations on cross-platform anonymous cart. When enabled, the system
477
+ * fetches the cart only based on cart_id instead of user_id.
326
478
  * @property {string} [uid]
327
479
  * @property {boolean} [buyNow]
328
480
  */
@@ -334,30 +486,44 @@ const CartPlatformModel = require("./CartPlatformModel");
334
486
 
335
487
  /**
336
488
  * @typedef SelectAddressParam
489
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
493
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
494
+ * operations on cross-platform anonymous cart. When enabled, the system
495
+ * fetches the cart only based on cart_id instead of user_id.
337
496
  * @property {string} [cartId]
338
497
  * @property {boolean} [buyNow]
339
498
  * @property {boolean} [i]
340
499
  * @property {boolean} [b]
341
- * @property {CartPlatformModel.PlatformSelectCartAddressRequest} body
500
+ * @property {CartPlatformModel.PlatformSelectCartAddress} body
342
501
  */
343
502
 
344
503
  /**
345
504
  * @typedef SelectPaymentModeParam
505
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
509
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
510
+ * operations on cross-platform anonymous cart. When enabled, the system
511
+ * fetches the cart only based on cart_id instead of user_id.
346
512
  * @property {string} [id]
347
513
  * @property {boolean} [buyNow]
348
- * @property {string} [orderType] - The order type of shipment HomeDelivery - If
349
- * the customer wants the order home-delivered PickAtStore - If the customer
350
- * wants the handover of an order at the store itself.
351
- * @property {CartPlatformModel.UpdateCartPaymentRequest} body
514
+ * @property {string} [orderType]
515
+ * @property {CartPlatformModel.CartPaymentUpdate} body
352
516
  */
353
517
 
354
518
  /**
355
519
  * @typedef SelectPaymentModeV2Param
520
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
356
524
  * @property {string} [id]
357
525
  * @property {boolean} [buyNow]
358
- * @property {string} [orderType] - The order type of shipment HomeDelivery - If
359
- * the customer wants the order home-delivered PickAtStore - If the customer
360
- * wants the handover of an order at the store itself.
526
+ * @property {string} [orderType]
361
527
  * @property {CartPlatformModel.UpdateCartPaymentRequestV2} body
362
528
  */
363
529
 
@@ -368,28 +534,47 @@ const CartPlatformModel = require("./CartPlatformModel");
368
534
  */
369
535
 
370
536
  /**
371
- * @typedef UpdateBulkPriceAdjustmentParam
372
- * @property {CartPlatformModel.BulkPriceAdjustmentUpdateRequest} body
537
+ * @typedef UpdateCartParam
538
+ * @property {string} cartId - Current Cart id of user cart
539
+ * @property {boolean} [b]
540
+ * @property {CartPlatformModel.UpdateCartCreation} body
373
541
  */
374
542
 
375
543
  /**
376
- * @typedef UpdateCartParam
377
- * @property {string} cartId - Current Cart _id
378
- * @property {boolean} [b]
379
- * @property {CartPlatformModel.UpdateCartRequest} body
544
+ * @typedef UpdateCartBreakupParam
545
+ * @property {string} [xOrderingSource] - Identifier for the ordering source
546
+ * (e.g., web, mobile app, POS). Used to determine the origin of the order
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.
551
+ * @property {string} [xAnonymousCart] - Anonymous cart header used to perform
552
+ * operations on cross-platform anonymous cart. When enabled, the system
553
+ * fetches the cart only based on cart_id instead of user_id.
554
+ * @property {string} [id] - Unique identifier of the cart for which the breakup
555
+ * needs to be updated.
556
+ * @property {boolean} [i] - Set to `true` to include all items currently added
557
+ * to the cart in the response.
558
+ * @property {boolean} [b] - Set to `true` to include the detailed price breakup
559
+ * of each cart item in the response.
560
+ * @property {boolean} [includeCartCalculation] - Set to `false` to skip
561
+ * recalculating and fetching the updated cart after the edit. Defaults to `true`.
562
+ * @property {boolean} [buyNow] - Set to `true` to initialize a "Buy Now" cart
563
+ * flow, enabling direct checkout for a single item.
564
+ * @property {CartPlatformModel.UpdateCartBreakup} body
380
565
  */
381
566
 
382
567
  /**
383
568
  * @typedef UpdateCartMetaParam
384
569
  * @property {string} [id]
385
570
  * @property {boolean} [buyNow]
386
- * @property {CartPlatformModel.PlatformCartMetaRequest} body
571
+ * @property {CartPlatformModel.PlatformCartMetaCreation} body
387
572
  */
388
573
 
389
574
  /**
390
575
  * @typedef UpdateCartMetaConfigParam
391
- * @property {string} cartMetaId - CartMeta mongo _id for fetching single cart
392
- * meta data for editing
576
+ * @property {string} cartMetaId - CartMeta id for fetching single cart meta
577
+ * data for editing
393
578
  * @property {CartPlatformModel.CartMetaConfigUpdate} body
394
579
  */
395
580
 
@@ -418,6 +603,18 @@ const CartPlatformModel = require("./CartPlatformModel");
418
603
  * @property {CartPlatformModel.CouponPartialUpdate} body
419
604
  */
420
605
 
606
+ /**
607
+ * @typedef UpdateOfferParam
608
+ * @property {string} id
609
+ * @property {CartPlatformModel.OfferSchema} body
610
+ */
611
+
612
+ /**
613
+ * @typedef UpdateOfferPartiallyParam
614
+ * @property {string} id
615
+ * @property {CartPlatformModel.OfferPartialUpdate} body
616
+ */
617
+
421
618
  /**
422
619
  * @typedef UpdatePriceAdjustmentParam
423
620
  * @property {string} id
@@ -448,11 +645,15 @@ const CartPlatformModel = require("./CartPlatformModel");
448
645
  * @property {string} [orderType] - The order type of shipment HomeDelivery - If
449
646
  * the customer wants the order home-delivered PickAtStore - If the customer
450
647
  * wants the handover of an order at the store itself.
451
- * @property {CartPlatformModel.UpdateCartShipmentRequest} body
648
+ * @property {CartPlatformModel.UpdateCartShipmentCreation} body
452
649
  */
453
650
 
454
651
  /**
455
652
  * @typedef ValidateCouponForPaymentParam
653
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
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.
456
657
  * @property {string} [id]
457
658
  * @property {boolean} [buyNow]
458
659
  * @property {string} [addressId]
@@ -470,19 +671,12 @@ class CartPlatformApplicationValidator {
470
671
  }).required();
471
672
  }
472
673
 
473
- /** @returns {AddBulkPriceAdjustmentParam} */
474
- static addBulkPriceAdjustment() {
475
- return Joi.object({
476
- body: CartPlatformModel.BulkPriceAdjustmentAddRequest().required(),
477
- }).required();
478
- }
479
-
480
674
  /** @returns {AddItemsParam} */
481
675
  static addItems() {
482
676
  return Joi.object({
483
677
  cartId: Joi.string().allow("").required(),
484
678
  b: Joi.boolean(),
485
- body: CartPlatformModel.AddCartRequest().required(),
679
+ body: CartPlatformModel.AddCartCreation().required(),
486
680
  }).required();
487
681
  }
488
682
 
@@ -496,25 +690,52 @@ class CartPlatformApplicationValidator {
496
690
  /** @returns {ApplyCouponParam} */
497
691
  static applyCoupon() {
498
692
  return Joi.object({
693
+ xOrderingSource: Joi.string().allow(""),
694
+ xOrderingSourceType: Joi.string().allow(""),
695
+ xAnonymousCart: Joi.string().allow(""),
696
+
499
697
  i: Joi.boolean(),
500
698
  b: Joi.boolean(),
501
699
  p: Joi.boolean(),
502
700
  id: Joi.string().allow(""),
503
701
  buyNow: Joi.boolean(),
504
- body: CartPlatformModel.ApplyCouponRequest().required(),
702
+ body: CartPlatformModel.ApplyCouponDetails().required(),
703
+ }).required();
704
+ }
705
+
706
+ /** @returns {ApplyLoyaltyPointsParam} */
707
+ static applyLoyaltyPoints() {
708
+ return Joi.object({
709
+ xOrderingSource: Joi.string().allow(""),
710
+ xOrderingSourceType: Joi.string().allow(""),
711
+
712
+ id: Joi.string().allow(""),
713
+ i: Joi.boolean(),
714
+ b: Joi.boolean(),
715
+ buyNow: Joi.boolean(),
716
+ body: CartPlatformModel.RedeemLoyaltyPoints().required(),
505
717
  }).required();
506
718
  }
507
719
 
508
720
  /** @returns {CheckCartServiceabilityParam} */
509
721
  static checkCartServiceability() {
510
722
  return Joi.object({
511
- body: CartPlatformModel.OpenApiCartServiceabilityRequest().required(),
723
+ xOrderingSource: Joi.string().allow(""),
724
+ xOrderingSourceType: Joi.string().allow(""),
725
+
726
+ body: CartPlatformModel.OpenApiCartServiceabilityCreation().required(),
512
727
  }).required();
513
728
  }
514
729
 
515
730
  /** @returns {CheckoutCartParam} */
516
731
  static checkoutCart() {
517
732
  return Joi.object({
733
+ xOrderingSource: Joi.string().allow(""),
734
+ xOrderingSourceType: Joi.string().allow(""),
735
+ xAnonymousCart: Joi.string().allow(""),
736
+ xLocationDetail: Joi.string().allow(""),
737
+ xCurrencyCode: Joi.string().allow(""),
738
+
518
739
  body: CartPlatformModel.OpenApiPlatformCheckoutReq().required(),
519
740
  }).required();
520
741
  }
@@ -533,6 +754,13 @@ class CartPlatformApplicationValidator {
533
754
  }).required();
534
755
  }
535
756
 
757
+ /** @returns {CreateOfferParam} */
758
+ static createOffer() {
759
+ return Joi.object({
760
+ body: CartPlatformModel.OfferSchema().required(),
761
+ }).required();
762
+ }
763
+
536
764
  /** @returns {CreatePromotionParam} */
537
765
  static createPromotion() {
538
766
  return Joi.object({
@@ -544,14 +772,40 @@ class CartPlatformApplicationValidator {
544
772
  static deleteCart() {
545
773
  return Joi.object({
546
774
  id: Joi.string().allow(""),
547
- body: CartPlatformModel.DeleteCartRequest().required(),
775
+ body: CartPlatformModel.DeleteCartDetails().required(),
776
+ }).required();
777
+ }
778
+
779
+ /** @returns {DeleteCouponParam} */
780
+ static deleteCoupon() {
781
+ return Joi.object({
782
+ id: Joi.string().allow("").required(),
783
+ }).required();
784
+ }
785
+
786
+ /** @returns {DeleteOfferParam} */
787
+ static deleteOffer() {
788
+ return Joi.object({
789
+ id: Joi.string().allow("").required(),
790
+ }).required();
791
+ }
792
+
793
+ /** @returns {DeletePromotionParam} */
794
+ static deletePromotion() {
795
+ return Joi.object({
796
+ id: Joi.string().allow("").required(),
548
797
  }).required();
549
798
  }
550
799
 
551
800
  /** @returns {FetchAndvalidateCartItemsParam} */
552
801
  static fetchAndvalidateCartItems() {
553
802
  return Joi.object({
554
- body: CartPlatformModel.OpenapiCartDetailsRequest().required(),
803
+ xOrderingSource: Joi.string().allow(""),
804
+ xOrderingSourceType: Joi.string().allow(""),
805
+ xLocationDetail: Joi.string().allow(""),
806
+ xCurrencyCode: Joi.string().allow(""),
807
+
808
+ body: CartPlatformModel.OpenapiCartDetailsCreation().required(),
555
809
  }).required();
556
810
  }
557
811
 
@@ -631,6 +885,10 @@ class CartPlatformApplicationValidator {
631
885
  /** @returns {GetCartParam} */
632
886
  static getCart() {
633
887
  return Joi.object({
888
+ xOrderingSource: Joi.string().allow(""),
889
+ xOrderingSourceType: Joi.string().allow(""),
890
+ xAnonymousCart: Joi.string().allow(""),
891
+
634
892
  id: Joi.string().allow(""),
635
893
  userId: Joi.string().allow(""),
636
894
  orderType: Joi.string().allow(""),
@@ -653,7 +911,7 @@ class CartPlatformApplicationValidator {
653
911
  /** @returns {GetCartShareLinkParam} */
654
912
  static getCartShareLink() {
655
913
  return Joi.object({
656
- body: CartPlatformModel.GetShareCartLinkRequest().required(),
914
+ body: CartPlatformModel.GetShareCartLinkCreation().required(),
657
915
  }).required();
658
916
  }
659
917
 
@@ -694,6 +952,13 @@ class CartPlatformApplicationValidator {
694
952
  isDisplay: Joi.boolean(),
695
953
  typeSlug: Joi.string().allow(""),
696
954
  code: Joi.string().allow(""),
955
+ createdBy: Joi.string().allow(""),
956
+ reviewedBy: Joi.string().allow(""),
957
+ approvedStartTime: Joi.string().allow(""),
958
+ approvedEndTime: Joi.string().allow(""),
959
+ reviewStartTime: Joi.string().allow(""),
960
+ reviewEndTime: Joi.string().allow(""),
961
+ status: Joi.string().allow(""),
697
962
  }).required();
698
963
  }
699
964
 
@@ -705,6 +970,34 @@ class CartPlatformApplicationValidator {
705
970
  }).required();
706
971
  }
707
972
 
973
+ /** @returns {GetOfferByIdParam} */
974
+ static getOfferById() {
975
+ return Joi.object({
976
+ id: Joi.string().allow("").required(),
977
+ }).required();
978
+ }
979
+
980
+ /** @returns {GetOffersParam} */
981
+ static getOffers() {
982
+ return Joi.object({
983
+ pageNo: Joi.number(),
984
+ pageSize: Joi.number(),
985
+ search: Joi.string().allow(""),
986
+ mode: Joi.string().allow(""),
987
+ type: Joi.string().allow(""),
988
+ promoGroup: Joi.string().allow(""),
989
+ excludeContractOffers: Joi.boolean(),
990
+ offerId: Joi.string().allow(""),
991
+ createdBy: Joi.string().allow(""),
992
+ reviewedBy: Joi.string().allow(""),
993
+ approvedStartTime: Joi.string().allow(""),
994
+ approvedEndTime: Joi.string().allow(""),
995
+ status: Joi.string().allow(""),
996
+ code: Joi.string().allow(""),
997
+ isPublic: Joi.boolean(),
998
+ }).required();
999
+ }
1000
+
708
1001
  /** @returns {GetPriceAdjustmentsParam} */
709
1002
  static getPriceAdjustments() {
710
1003
  return Joi.object({
@@ -742,6 +1035,9 @@ class CartPlatformApplicationValidator {
742
1035
  promotionGroup: Joi.string().allow(""),
743
1036
  storeId: Joi.number(),
744
1037
  cartType: Joi.string().allow(""),
1038
+ promotionType: Joi.string().allow(""),
1039
+ cartId: Joi.string().allow(""),
1040
+ autoApply: Joi.boolean(),
745
1041
  }).required();
746
1042
  }
747
1043
 
@@ -764,6 +1060,13 @@ class CartPlatformApplicationValidator {
764
1060
  promotionType: Joi.string().allow(""),
765
1061
  fpPanel: Joi.string().allow(""),
766
1062
  promotionId: Joi.string().allow(""),
1063
+ createdBy: Joi.string().allow(""),
1064
+ reviewedBy: Joi.string().allow(""),
1065
+ approvedStartTime: Joi.string().allow(""),
1066
+ approvedEndTime: Joi.string().allow(""),
1067
+ reviewStartTime: Joi.string().allow(""),
1068
+ reviewEndTime: Joi.string().allow(""),
1069
+ status: Joi.string().allow(""),
767
1070
  }).required();
768
1071
  }
769
1072
 
@@ -791,6 +1094,11 @@ class CartPlatformApplicationValidator {
791
1094
  /** @returns {OverrideCartParam} */
792
1095
  static overrideCart() {
793
1096
  return Joi.object({
1097
+ xOrderingSource: Joi.string().allow(""),
1098
+ xOrderingSourceType: Joi.string().allow(""),
1099
+ xLocationDetail: Joi.string().allow(""),
1100
+ xCurrencyCode: Joi.string().allow(""),
1101
+
794
1102
  body: CartPlatformModel.OverrideCheckoutReq().required(),
795
1103
  }).required();
796
1104
  }
@@ -798,40 +1106,60 @@ class CartPlatformApplicationValidator {
798
1106
  /** @returns {PlatformAddItemsParam} */
799
1107
  static platformAddItems() {
800
1108
  return Joi.object({
1109
+ xOrderingSource: Joi.string().allow(""),
1110
+ xOrderingSourceType: Joi.string().allow(""),
1111
+ xAnonymousCart: Joi.string().allow(""),
1112
+
801
1113
  i: Joi.boolean(),
802
1114
  b: Joi.boolean(),
1115
+ includeCartCalculation: Joi.boolean(),
803
1116
  buyNow: Joi.boolean(),
804
1117
  orderType: Joi.string().allow(""),
805
1118
  id: Joi.string().allow(""),
806
- body: CartPlatformModel.PlatformAddCartRequest().required(),
1119
+ body: CartPlatformModel.PlatformAddCartDetails().required(),
807
1120
  }).required();
808
1121
  }
809
1122
 
810
1123
  /** @returns {PlatformCheckoutCartParam} */
811
1124
  static platformCheckoutCart() {
812
1125
  return Joi.object({
1126
+ xOrderingSource: Joi.string().allow(""),
1127
+ xOrderingSourceType: Joi.string().allow(""),
1128
+ xAnonymousCart: Joi.string().allow(""),
1129
+
813
1130
  id: Joi.string().allow(""),
814
- body: CartPlatformModel.PlatformCartCheckoutDetailRequest().required(),
1131
+ body: CartPlatformModel.PlatformCartCheckoutDetailCreation().required(),
815
1132
  }).required();
816
1133
  }
817
1134
 
818
1135
  /** @returns {PlatformCheckoutCartV2Param} */
819
1136
  static platformCheckoutCartV2() {
820
1137
  return Joi.object({
1138
+ xOrderingSource: Joi.string().allow(""),
1139
+ xOrderingSourceType: Joi.string().allow(""),
1140
+ xAnonymousCart: Joi.string().allow(""),
1141
+ xLocationDetail: Joi.string().allow(""),
1142
+ xCurrencyCode: Joi.string().allow(""),
1143
+
821
1144
  id: Joi.string().allow(""),
822
- body: CartPlatformModel.PlatformCartCheckoutDetailV2Request().required(),
1145
+ body: CartPlatformModel.PlatformCartCheckoutDetailV2Creation().required(),
823
1146
  }).required();
824
1147
  }
825
1148
 
826
1149
  /** @returns {PlatformUpdateCartParam} */
827
1150
  static platformUpdateCart() {
828
1151
  return Joi.object({
1152
+ xOrderingSource: Joi.string().allow(""),
1153
+ xOrderingSourceType: Joi.string().allow(""),
1154
+ xAnonymousCart: Joi.string().allow(""),
1155
+
829
1156
  id: Joi.string().allow(""),
830
1157
  i: Joi.boolean(),
831
1158
  orderType: Joi.string().allow(""),
832
1159
  b: Joi.boolean(),
1160
+ includeCartCalculation: Joi.boolean(),
833
1161
  buyNow: Joi.boolean(),
834
- body: CartPlatformModel.PlatformUpdateCartRequest().required(),
1162
+ body: CartPlatformModel.PlatformUpdateCartDetails().required(),
835
1163
  }).required();
836
1164
  }
837
1165
 
@@ -843,16 +1171,13 @@ class CartPlatformApplicationValidator {
843
1171
  }).required();
844
1172
  }
845
1173
 
846
- /** @returns {RemoveBulkPriceAdjustmentParam} */
847
- static removeBulkPriceAdjustment() {
848
- return Joi.object({
849
- priceAdjustmentIds: Joi.string().allow("").required(),
850
- }).required();
851
- }
852
-
853
1174
  /** @returns {RemoveCouponParam} */
854
1175
  static removeCoupon() {
855
1176
  return Joi.object({
1177
+ xOrderingSource: Joi.string().allow(""),
1178
+ xOrderingSourceType: Joi.string().allow(""),
1179
+ xAnonymousCart: Joi.string().allow(""),
1180
+
856
1181
  uid: Joi.string().allow(""),
857
1182
  buyNow: Joi.boolean(),
858
1183
  }).required();
@@ -868,27 +1193,38 @@ class CartPlatformApplicationValidator {
868
1193
  /** @returns {SelectAddressParam} */
869
1194
  static selectAddress() {
870
1195
  return Joi.object({
1196
+ xOrderingSource: Joi.string().allow(""),
1197
+ xOrderingSourceType: Joi.string().allow(""),
1198
+ xAnonymousCart: Joi.string().allow(""),
1199
+
871
1200
  cartId: Joi.string().allow(""),
872
1201
  buyNow: Joi.boolean(),
873
1202
  i: Joi.boolean(),
874
1203
  b: Joi.boolean(),
875
- body: CartPlatformModel.PlatformSelectCartAddressRequest().required(),
1204
+ body: CartPlatformModel.PlatformSelectCartAddress().required(),
876
1205
  }).required();
877
1206
  }
878
1207
 
879
1208
  /** @returns {SelectPaymentModeParam} */
880
1209
  static selectPaymentMode() {
881
1210
  return Joi.object({
1211
+ xOrderingSource: Joi.string().allow(""),
1212
+ xOrderingSourceType: Joi.string().allow(""),
1213
+ xAnonymousCart: Joi.string().allow(""),
1214
+
882
1215
  id: Joi.string().allow(""),
883
1216
  buyNow: Joi.boolean(),
884
1217
  orderType: Joi.string().allow(""),
885
- body: CartPlatformModel.UpdateCartPaymentRequest().required(),
1218
+ body: CartPlatformModel.CartPaymentUpdate().required(),
886
1219
  }).required();
887
1220
  }
888
1221
 
889
1222
  /** @returns {SelectPaymentModeV2Param} */
890
1223
  static selectPaymentModeV2() {
891
1224
  return Joi.object({
1225
+ xOrderingSource: Joi.string().allow(""),
1226
+ xOrderingSourceType: Joi.string().allow(""),
1227
+
892
1228
  id: Joi.string().allow(""),
893
1229
  buyNow: Joi.boolean(),
894
1230
  orderType: Joi.string().allow(""),
@@ -904,19 +1240,28 @@ class CartPlatformApplicationValidator {
904
1240
  }).required();
905
1241
  }
906
1242
 
907
- /** @returns {UpdateBulkPriceAdjustmentParam} */
908
- static updateBulkPriceAdjustment() {
1243
+ /** @returns {UpdateCartParam} */
1244
+ static updateCart() {
909
1245
  return Joi.object({
910
- body: CartPlatformModel.BulkPriceAdjustmentUpdateRequest().required(),
1246
+ cartId: Joi.string().allow("").required(),
1247
+ b: Joi.boolean(),
1248
+ body: CartPlatformModel.UpdateCartCreation().required(),
911
1249
  }).required();
912
1250
  }
913
1251
 
914
- /** @returns {UpdateCartParam} */
915
- static updateCart() {
1252
+ /** @returns {UpdateCartBreakupParam} */
1253
+ static updateCartBreakup() {
916
1254
  return Joi.object({
917
- cartId: Joi.string().allow("").required(),
1255
+ xOrderingSource: Joi.string().allow(""),
1256
+ xOrderingSourceType: Joi.string().allow(""),
1257
+ xAnonymousCart: Joi.string().allow(""),
1258
+
1259
+ id: Joi.string().allow(""),
1260
+ i: Joi.boolean(),
918
1261
  b: Joi.boolean(),
919
- body: CartPlatformModel.UpdateCartRequest().required(),
1262
+ includeCartCalculation: Joi.boolean(),
1263
+ buyNow: Joi.boolean(),
1264
+ body: CartPlatformModel.UpdateCartBreakup().required(),
920
1265
  }).required();
921
1266
  }
922
1267
 
@@ -925,7 +1270,7 @@ class CartPlatformApplicationValidator {
925
1270
  return Joi.object({
926
1271
  id: Joi.string().allow(""),
927
1272
  buyNow: Joi.boolean(),
928
- body: CartPlatformModel.PlatformCartMetaRequest().required(),
1273
+ body: CartPlatformModel.PlatformCartMetaCreation().required(),
929
1274
  }).required();
930
1275
  }
931
1276
 
@@ -970,6 +1315,22 @@ class CartPlatformApplicationValidator {
970
1315
  }).required();
971
1316
  }
972
1317
 
1318
+ /** @returns {UpdateOfferParam} */
1319
+ static updateOffer() {
1320
+ return Joi.object({
1321
+ id: Joi.string().allow("").required(),
1322
+ body: CartPlatformModel.OfferSchema().required(),
1323
+ }).required();
1324
+ }
1325
+
1326
+ /** @returns {UpdateOfferPartiallyParam} */
1327
+ static updateOfferPartially() {
1328
+ return Joi.object({
1329
+ id: Joi.string().allow("").required(),
1330
+ body: CartPlatformModel.OfferPartialUpdate().required(),
1331
+ }).required();
1332
+ }
1333
+
973
1334
  /** @returns {UpdatePriceAdjustmentParam} */
974
1335
  static updatePriceAdjustment() {
975
1336
  return Joi.object({
@@ -1003,13 +1364,16 @@ class CartPlatformApplicationValidator {
1003
1364
  addressId: Joi.string().allow(""),
1004
1365
  areaCode: Joi.string().allow(""),
1005
1366
  orderType: Joi.string().allow(""),
1006
- body: CartPlatformModel.UpdateCartShipmentRequest().required(),
1367
+ body: CartPlatformModel.UpdateCartShipmentCreation().required(),
1007
1368
  }).required();
1008
1369
  }
1009
1370
 
1010
1371
  /** @returns {ValidateCouponForPaymentParam} */
1011
1372
  static validateCouponForPayment() {
1012
1373
  return Joi.object({
1374
+ xOrderingSource: Joi.string().allow(""),
1375
+ xOrderingSourceType: Joi.string().allow(""),
1376
+
1013
1377
  id: Joi.string().allow(""),
1014
1378
  buyNow: Joi.boolean(),
1015
1379
  addressId: Joi.string().allow(""),