@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.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 (304) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
  6. package/sdk/application/Cart/CartApplicationClient.js +173 -511
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -19
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +61 -61
  16. package/sdk/application/Content/ContentApplicationClient.js +183 -366
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
  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 +6 -6
  22. package/sdk/application/Lead/LeadApplicationClient.js +24 -55
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +28 -117
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
  26. package/sdk/application/Order/OrderApplicationClient.js +89 -293
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
  28. package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
  29. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
  30. package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
  31. package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
  32. package/sdk/application/Share/ShareApplicationClient.js +35 -89
  33. package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
  34. package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
  35. package/sdk/application/User/UserApplicationClient.d.ts +23 -13
  36. package/sdk/application/User/UserApplicationClient.js +49 -407
  37. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  38. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
  39. package/sdk/common/Utility.d.ts +1 -1
  40. package/sdk/common/Utility.js +10 -7
  41. package/sdk/common/Validator.d.ts +1 -0
  42. package/sdk/common/Validator.js +20 -0
  43. package/sdk/common/utils.d.ts +0 -1
  44. package/sdk/common/utils.js +0 -14
  45. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -54
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
  51. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  52. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  53. package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
  54. package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
  55. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
  57. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
  59. package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
  61. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
  62. package/sdk/partner/PartnerClient.d.ts +0 -6
  63. package/sdk/partner/PartnerClient.js +0 -9
  64. package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
  65. package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
  66. package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
  67. package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
  68. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
  69. package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
  70. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  71. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  72. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
  73. package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
  74. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  75. package/sdk/partner/index.d.ts +0 -3
  76. package/sdk/partner/index.js +0 -6
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  88. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  90. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
  98. package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
  110. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
  112. package/sdk/platform/Common/CommonPlatformModel.js +11 -14
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +240 -376
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
  117. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
  118. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
  119. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +330 -502
  120. package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
  121. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
  122. package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -100
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -31
  128. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
  132. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
  134. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +562 -1289
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
  137. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
  138. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
  139. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -248
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
  141. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
  142. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
  143. package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
  144. package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
  145. package/sdk/platform/Content/ContentPlatformModel.d.ts +2391 -924
  146. package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
  147. package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
  148. package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
  149. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
  150. package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
  151. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
  152. package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
  153. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  154. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  155. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
  156. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
  157. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
  158. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
  159. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  160. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  161. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
  162. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
  163. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  164. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  165. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  166. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  167. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  168. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  169. package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
  170. package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
  171. package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
  172. package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
  173. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
  174. package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
  175. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
  176. package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
  177. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
  178. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
  179. package/sdk/platform/Order/OrderPlatformClient.d.ts +406 -403
  180. package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
  181. package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
  182. package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
  183. package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
  184. package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
  185. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  186. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  187. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
  188. package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
  189. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
  190. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +937 -2452
  191. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
  192. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -305
  193. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
  194. package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
  195. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1307 -3536
  196. package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
  197. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
  198. package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
  199. package/sdk/platform/PlatformClient.d.ts +0 -2
  200. package/sdk/platform/PlatformClient.js +0 -4
  201. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  202. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  203. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  204. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  205. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
  206. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -521
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
  213. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
  214. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
  215. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
  216. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
  217. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
  218. package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
  219. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
  220. package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
  221. package/sdk/platform/Share/SharePlatformModel.d.ts +53 -9
  222. package/sdk/platform/Share/SharePlatformModel.js +45 -5
  223. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
  224. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
  225. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
  226. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
  227. package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
  228. package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
  229. package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
  230. package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
  231. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
  232. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
  233. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
  234. package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
  235. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
  236. package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
  237. package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
  238. package/sdk/platform/User/UserPlatformModel.js +253 -210
  239. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  240. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  241. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
  242. package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
  243. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  244. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  245. package/sdk/platform/index.d.ts +0 -1
  246. package/sdk/platform/index.js +0 -2
  247. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  248. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  249. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  250. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  251. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  252. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  253. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
  254. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
  255. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
  256. package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
  257. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
  258. package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
  259. package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
  260. package/sdk/public/Content/ContentPublicClient.js +254 -280
  261. package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
  262. package/sdk/public/Content/ContentPublicModel.js +98 -44
  263. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
  264. package/sdk/public/Content/ContentPublicValidator.js +26 -19
  265. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  266. package/sdk/public/Partner/PartnerPublicClient.js +6 -11
  267. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  268. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  269. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  270. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  271. package/sdk/public/PublicClient.d.ts +2 -0
  272. package/sdk/public/PublicClient.js +4 -0
  273. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  274. package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
  275. package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
  276. package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
  277. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  278. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  279. package/sdk/public/index.d.ts +1 -0
  280. package/sdk/public/index.js +2 -0
  281. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
  282. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
  283. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
  284. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
  285. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
  286. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
  287. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
  288. package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
  289. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
  290. package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
  291. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
  292. package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
  293. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
  294. package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
  295. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
  296. package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
  297. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
  298. package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
  299. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  300. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  301. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
  302. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
  303. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  304. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -19,10 +19,10 @@ class Cart {
19
19
  * @param {CartPlatformApplicationValidator.AddAddressParam} arg - Arg object
20
20
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
21
21
  * @param {import("../PlatformAPIClient").Options} - Options
22
- * @returns {Promise<CartPlatformModel.SaveAddressResponse>} - Success response
22
+ * @returns {Promise<CartPlatformModel.SaveAddressDetails>} - Success response
23
23
  * @name addAddress
24
- * @summary: Add address to an account
25
- * @description: Use this API to add an address to an account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/addAddress/).
24
+ * @summary: Creates a new address for a customer
25
+ * @description: Customers can add a new address to their cart to save details such as name, email, contact information, and address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/addAddress/).
26
26
  */
27
27
  async addAddress(
28
28
  { body, requestHeaders } = { requestHeaders: {} },
@@ -73,7 +73,7 @@ class Cart {
73
73
 
74
74
  const {
75
75
  error: res_error,
76
- } = CartPlatformModel.SaveAddressResponse().validate(responseData, {
76
+ } = CartPlatformModel.SaveAddressDetails().validate(responseData, {
77
77
  abortEarly: false,
78
78
  allowUnknown: true,
79
79
  });
@@ -96,9 +96,9 @@ class Cart {
96
96
  * @param {CartPlatformApplicationValidator.AddItemsParam} arg - Arg object
97
97
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
98
98
  * @param {import("../PlatformAPIClient").Options} - Options
99
- * @returns {Promise<CartPlatformModel.AddCartDetailResponse>} - Success response
99
+ * @returns {Promise<CartPlatformModel.AddCartDetailResult>} - Success response
100
100
  * @name addItems
101
- * @summary: Add items to abandoned cart
101
+ * @summary: Add items to cart
102
102
  * @description: Add product items to the customer's existing shopping cart. If there is no existing cart associated with the customer, it creates a new one and adds the items to it. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/addItems/).
103
103
  */
104
104
  async addItems(
@@ -155,7 +155,7 @@ class Cart {
155
155
 
156
156
  const {
157
157
  error: res_error,
158
- } = CartPlatformModel.AddCartDetailResponse().validate(responseData, {
158
+ } = CartPlatformModel.AddCartDetailResult().validate(responseData, {
159
159
  abortEarly: false,
160
160
  allowUnknown: true,
161
161
  });
@@ -178,10 +178,10 @@ class Cart {
178
178
  * @param {CartPlatformApplicationValidator.AddPriceAdjustmentParam} arg - Arg object
179
179
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
180
180
  * @param {import("../PlatformAPIClient").Options} - Options
181
- * @returns {Promise<CartPlatformModel.AddPriceAdjustmentResponse>} - Success response
181
+ * @returns {Promise<CartPlatformModel.GetPriceAdjustmentResult>} - Success response
182
182
  * @name addPriceAdjustment
183
- * @summary: Create new price adjustment
184
- * @description: Create new price adjustment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/addPriceAdjustment/).
183
+ * @summary: Create price adjustments
184
+ * @description: Create custom price adjustments for items in the cart, facilitating the application of discounts or promotions. Price adjustments can be tailored based on specific sales channel contexts, enhancing flexibility in pricing strategies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/addPriceAdjustment/).
185
185
  */
186
186
  async addPriceAdjustment(
187
187
  { body, requestHeaders } = { requestHeaders: {} },
@@ -234,7 +234,7 @@ class Cart {
234
234
 
235
235
  const {
236
236
  error: res_error,
237
- } = CartPlatformModel.AddPriceAdjustmentResponse().validate(responseData, {
237
+ } = CartPlatformModel.GetPriceAdjustmentResult().validate(responseData, {
238
238
  abortEarly: false,
239
239
  allowUnknown: true,
240
240
  });
@@ -257,18 +257,21 @@ class Cart {
257
257
  * @param {CartPlatformApplicationValidator.ApplyCouponParam} arg - Arg object
258
258
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
259
259
  * @param {import("../PlatformAPIClient").Options} - Options
260
- * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
260
+ * @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
261
261
  * @name applyCoupon
262
- * @summary: Apply a coupon to the cart.
262
+ * @summary: Apply coupon
263
263
  * @description: Apply a coupon code to the customer's cart to trigger discounts on eligible items - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/applyCoupon/).
264
264
  */
265
265
  async applyCoupon(
266
- { body, i, b, p, id, buyNow, requestHeaders } = { requestHeaders: {} },
266
+ { body, xOrderingSource, i, b, p, id, buyNow, requestHeaders } = {
267
+ requestHeaders: {},
268
+ },
267
269
  { responseHeaders } = { responseHeaders: false }
268
270
  ) {
269
271
  const { error } = CartPlatformApplicationValidator.applyCoupon().validate(
270
272
  {
271
273
  body,
274
+ xOrderingSource,
272
275
  i,
273
276
  b,
274
277
  p,
@@ -287,6 +290,7 @@ class Cart {
287
290
  } = CartPlatformApplicationValidator.applyCoupon().validate(
288
291
  {
289
292
  body,
293
+ xOrderingSource,
290
294
  i,
291
295
  b,
292
296
  p,
@@ -326,7 +330,7 @@ class Cart {
326
330
 
327
331
  const {
328
332
  error: res_error,
329
- } = CartPlatformModel.CartDetailResponse().validate(responseData, {
333
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
330
334
  abortEarly: false,
331
335
  allowUnknown: true,
332
336
  });
@@ -351,15 +355,14 @@ class Cart {
351
355
  *
352
356
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
353
357
  * @param {import("../PlatformAPIClient").Options} - Options
354
- * @returns {Promise<CartPlatformModel.OpenApiCartServiceabilityResponse>}
355
- * - Success response
356
- *
358
+ * @returns {Promise<CartPlatformModel.OpenApiCartServiceabilityResult>} -
359
+ * Success response
357
360
  * @name checkCartServiceability
358
361
  * @summary: Check cart serviceability
359
362
  * @description: Verify the serviceability of items in the cart at a specific pin code and ensure accurate delivery promises. System checks each item's availability and delivery feasibility, providing real-time information on serviceability and estimated delivery times. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/checkCartServiceability/).
360
363
  */
361
364
  async checkCartServiceability(
362
- { body, requestHeaders } = { requestHeaders: {} },
365
+ { body, xOrderingSource, requestHeaders } = { requestHeaders: {} },
363
366
  { responseHeaders } = { responseHeaders: false }
364
367
  ) {
365
368
  const {
@@ -367,6 +370,7 @@ class Cart {
367
370
  } = CartPlatformApplicationValidator.checkCartServiceability().validate(
368
371
  {
369
372
  body,
373
+ xOrderingSource,
370
374
  },
371
375
  { abortEarly: false, allowUnknown: true }
372
376
  );
@@ -380,6 +384,7 @@ class Cart {
380
384
  } = CartPlatformApplicationValidator.checkCartServiceability().validate(
381
385
  {
382
386
  body,
387
+ xOrderingSource,
383
388
  },
384
389
  { abortEarly: false, allowUnknown: false }
385
390
  );
@@ -409,7 +414,7 @@ class Cart {
409
414
 
410
415
  const {
411
416
  error: res_error,
412
- } = CartPlatformModel.OpenApiCartServiceabilityResponse().validate(
417
+ } = CartPlatformModel.OpenApiCartServiceabilityResult().validate(
413
418
  responseData,
414
419
  { abortEarly: false, allowUnknown: true }
415
420
  );
@@ -432,18 +437,19 @@ class Cart {
432
437
  * @param {CartPlatformApplicationValidator.CheckoutCartParam} arg - Arg object
433
438
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
434
439
  * @param {import("../PlatformAPIClient").Options} - Options
435
- * @returns {Promise<CartPlatformModel.OpenApiCheckoutResponse>} - Success response
440
+ * @returns {Promise<CartPlatformModel.OpenApiCheckoutResult>} - Success response
436
441
  * @name checkoutCart
437
442
  * @summary: Checkout cart
438
443
  * @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/checkoutCart/).
439
444
  */
440
445
  async checkoutCart(
441
- { body, requestHeaders } = { requestHeaders: {} },
446
+ { body, xOrderingSource, requestHeaders } = { requestHeaders: {} },
442
447
  { responseHeaders } = { responseHeaders: false }
443
448
  ) {
444
449
  const { error } = CartPlatformApplicationValidator.checkoutCart().validate(
445
450
  {
446
451
  body,
452
+ xOrderingSource,
447
453
  },
448
454
  { abortEarly: false, allowUnknown: true }
449
455
  );
@@ -457,6 +463,7 @@ class Cart {
457
463
  } = CartPlatformApplicationValidator.checkoutCart().validate(
458
464
  {
459
465
  body,
466
+ xOrderingSource,
460
467
  },
461
468
  { abortEarly: false, allowUnknown: false }
462
469
  );
@@ -486,7 +493,7 @@ class Cart {
486
493
 
487
494
  const {
488
495
  error: res_error,
489
- } = CartPlatformModel.OpenApiCheckoutResponse().validate(responseData, {
496
+ } = CartPlatformModel.OpenApiCheckoutResult().validate(responseData, {
490
497
  abortEarly: false,
491
498
  allowUnknown: true,
492
499
  });
@@ -511,9 +518,9 @@ class Cart {
511
518
  *
512
519
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
513
520
  * @param {import("../PlatformAPIClient").Options} - Options
514
- * @returns {Promise<CartPlatformModel.CartMetaConfigAddResponse>} - Success response
521
+ * @returns {Promise<CartPlatformModel.CartMetaConfigAdd>} - Success response
515
522
  * @name createCartMetaConfig
516
- * @summary: Create new cart meta configuration
523
+ * @summary: Create a new cart meta
517
524
  * @description: Create custom meta configurations for carts associated with a specific sales channel. By specifying the company ID and application ID, seller can define unique cart settings, including preferences, rules, and constraints, tailored to their business needs. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/createCartMetaConfig/).
518
525
  */
519
526
  async createCartMetaConfig(
@@ -567,7 +574,7 @@ class Cart {
567
574
 
568
575
  const {
569
576
  error: res_error,
570
- } = CartPlatformModel.CartMetaConfigAddResponse().validate(responseData, {
577
+ } = CartPlatformModel.CartMetaConfigAdd().validate(responseData, {
571
578
  abortEarly: false,
572
579
  allowUnknown: true,
573
580
  });
@@ -590,10 +597,10 @@ class Cart {
590
597
  * @param {CartPlatformApplicationValidator.CreateCouponParam} arg - Arg object
591
598
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
592
599
  * @param {import("../PlatformAPIClient").Options} - Options
593
- * @returns {Promise<CartPlatformModel.CouponDetailResponse>} - Success response
600
+ * @returns {Promise<CartPlatformModel.CouponCreateResult>} - Success response
594
601
  * @name createCoupon
595
- * @summary: Create a new coupon.
596
- * @description: Generate and add a new coupon to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/createCoupon/).
602
+ * @summary: Create a coupon
603
+ * @description: Creates a new coupon based on the selected coupon type. Sellers can choose from multiple supported coupon types, including percentage value, fixed amount value, bundled discount, buy X get Y items, and more, along with customizable coupon criteria to meet specific business requirements. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/createCoupon/).
597
604
  */
598
605
  async createCoupon(
599
606
  { body, requestHeaders } = { requestHeaders: {} },
@@ -644,7 +651,7 @@ class Cart {
644
651
 
645
652
  const {
646
653
  error: res_error,
647
- } = CartPlatformModel.CouponDetailResponse().validate(responseData, {
654
+ } = CartPlatformModel.CouponCreateResult().validate(responseData, {
648
655
  abortEarly: false,
649
656
  allowUnknown: true,
650
657
  });
@@ -746,20 +753,19 @@ class Cart {
746
753
  * @param {CartPlatformApplicationValidator.DeleteCartParam} arg - Arg object
747
754
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
748
755
  * @param {import("../PlatformAPIClient").Options} - Options
749
- * @returns {Promise<CartPlatformModel.DeleteCartDetailResponse>} - Success response
756
+ * @returns {Promise<CartPlatformModel.DeleteCartDetailResult>} - Success response
750
757
  * @name deleteCart
751
758
  * @summary: Delete a cart
752
759
  * @description: Delete all items from the user's cart and resets it to its initial state, providing a clean slate for new selections. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deleteCart/).
753
760
  */
754
761
  async deleteCart(
755
- { body, id, cartType, requestHeaders } = { requestHeaders: {} },
762
+ { body, id, requestHeaders } = { requestHeaders: {} },
756
763
  { responseHeaders } = { responseHeaders: false }
757
764
  ) {
758
765
  const { error } = CartPlatformApplicationValidator.deleteCart().validate(
759
766
  {
760
767
  body,
761
768
  id,
762
- cartType,
763
769
  },
764
770
  { abortEarly: false, allowUnknown: true }
765
771
  );
@@ -774,7 +780,6 @@ class Cart {
774
780
  {
775
781
  body,
776
782
  id,
777
- cartType,
778
783
  },
779
784
  { abortEarly: false, allowUnknown: false }
780
785
  );
@@ -787,7 +792,6 @@ class Cart {
787
792
 
788
793
  const query_params = {};
789
794
  query_params["id"] = id;
790
- query_params["cart_type"] = cartType;
791
795
 
792
796
  const response = await PlatformAPIClient.execute(
793
797
  this.config,
@@ -806,7 +810,7 @@ class Cart {
806
810
 
807
811
  const {
808
812
  error: res_error,
809
- } = CartPlatformModel.DeleteCartDetailResponse().validate(responseData, {
813
+ } = CartPlatformModel.DeleteCartDetailResult().validate(responseData, {
810
814
  abortEarly: false,
811
815
  allowUnknown: true,
812
816
  });
@@ -826,25 +830,100 @@ class Cart {
826
830
  }
827
831
 
828
832
  /**
829
- * @param {CartPlatformApplicationValidator.DeleteCartMetaConfigParam} arg
830
- * - Arg object
831
- *
833
+ * @param {CartPlatformApplicationValidator.DeleteCouponParam} arg - Arg object
834
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
835
+ * @param {import("../PlatformAPIClient").Options} - Options
836
+ * @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
837
+ * @name deleteCoupon
838
+ * @summary: Delete a coupon which is in draft state
839
+ * @description: Delete details of a draft coupon by providing its unique identifier to delete information such as coupon type, rules, validity period and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deleteCoupon/).
840
+ */
841
+ async deleteCoupon(
842
+ { id, requestHeaders } = { requestHeaders: {} },
843
+ { responseHeaders } = { responseHeaders: false }
844
+ ) {
845
+ const { error } = CartPlatformApplicationValidator.deleteCoupon().validate(
846
+ {
847
+ id,
848
+ },
849
+ { abortEarly: false, allowUnknown: true }
850
+ );
851
+ if (error) {
852
+ return Promise.reject(new FDKClientValidationError(error));
853
+ }
854
+
855
+ // Showing warrnings if extra unknown parameters are found
856
+ const {
857
+ error: warrning,
858
+ } = CartPlatformApplicationValidator.deleteCoupon().validate(
859
+ {
860
+ id,
861
+ },
862
+ { abortEarly: false, allowUnknown: false }
863
+ );
864
+ if (warrning) {
865
+ Logger({
866
+ level: "WARN",
867
+ message: `Parameter Validation warrnings for platform > Cart > deleteCoupon \n ${warrning}`,
868
+ });
869
+ }
870
+
871
+ const query_params = {};
872
+
873
+ const response = await PlatformAPIClient.execute(
874
+ this.config,
875
+ "delete",
876
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/coupon/${id}`,
877
+ query_params,
878
+ undefined,
879
+ requestHeaders,
880
+ { responseHeaders }
881
+ );
882
+
883
+ let responseData = response;
884
+ if (responseHeaders) {
885
+ responseData = response[0];
886
+ }
887
+
888
+ const {
889
+ error: res_error,
890
+ } = CartPlatformModel.SuccessMessage().validate(responseData, {
891
+ abortEarly: false,
892
+ allowUnknown: true,
893
+ });
894
+
895
+ if (res_error) {
896
+ if (this.config.options.strictResponseCheck === true) {
897
+ return Promise.reject(new FDKResponseValidationError(res_error));
898
+ } else {
899
+ Logger({
900
+ level: "WARN",
901
+ message: `Response Validation Warnings for platform > Cart > deleteCoupon \n ${res_error}`,
902
+ });
903
+ }
904
+ }
905
+
906
+ return response;
907
+ }
908
+
909
+ /**
910
+ * @param {CartPlatformApplicationValidator.DeletePromotionParam} arg - Arg object
832
911
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
833
912
  * @param {import("../PlatformAPIClient").Options} - Options
834
913
  * @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
835
- * @name deleteCartMetaConfig
836
- * @summary: Delete cart meta configuration
837
- * @description: Delete cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deleteCartMetaConfig/).
914
+ * @name deletePromotion
915
+ * @summary: Delete a promotion which is in draft state
916
+ * @description: Delete details of a draft promotion by providing its unique identifier to delete information such as promotion type, rules, validity period and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deletePromotion/).
838
917
  */
839
- async deleteCartMetaConfig(
840
- { cartMetaId, requestHeaders } = { requestHeaders: {} },
918
+ async deletePromotion(
919
+ { id, requestHeaders } = { requestHeaders: {} },
841
920
  { responseHeaders } = { responseHeaders: false }
842
921
  ) {
843
922
  const {
844
923
  error,
845
- } = CartPlatformApplicationValidator.deleteCartMetaConfig().validate(
924
+ } = CartPlatformApplicationValidator.deletePromotion().validate(
846
925
  {
847
- cartMetaId,
926
+ id,
848
927
  },
849
928
  { abortEarly: false, allowUnknown: true }
850
929
  );
@@ -855,16 +934,16 @@ class Cart {
855
934
  // Showing warrnings if extra unknown parameters are found
856
935
  const {
857
936
  error: warrning,
858
- } = CartPlatformApplicationValidator.deleteCartMetaConfig().validate(
937
+ } = CartPlatformApplicationValidator.deletePromotion().validate(
859
938
  {
860
- cartMetaId,
939
+ id,
861
940
  },
862
941
  { abortEarly: false, allowUnknown: false }
863
942
  );
864
943
  if (warrning) {
865
944
  Logger({
866
945
  level: "WARN",
867
- message: `Parameter Validation warrnings for platform > Cart > deleteCartMetaConfig \n ${warrning}`,
946
+ message: `Parameter Validation warrnings for platform > Cart > deletePromotion \n ${warrning}`,
868
947
  });
869
948
  }
870
949
 
@@ -873,7 +952,7 @@ class Cart {
873
952
  const response = await PlatformAPIClient.execute(
874
953
  this.config,
875
954
  "delete",
876
- `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration/${cartMetaId}`,
955
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/promotion/${id}`,
877
956
  query_params,
878
957
  undefined,
879
958
  requestHeaders,
@@ -898,7 +977,7 @@ class Cart {
898
977
  } else {
899
978
  Logger({
900
979
  level: "WARN",
901
- message: `Response Validation Warnings for platform > Cart > deleteCartMetaConfig \n ${res_error}`,
980
+ message: `Response Validation Warnings for platform > Cart > deletePromotion \n ${res_error}`,
902
981
  });
903
982
  }
904
983
  }
@@ -912,13 +991,13 @@ class Cart {
912
991
  *
913
992
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
914
993
  * @param {import("../PlatformAPIClient").Options} - Options
915
- * @returns {Promise<CartPlatformModel.OpenapiCartDetailsResponse>} - Success response
994
+ * @returns {Promise<CartPlatformModel.OpenapiCartDetailsResult>} - Success response
916
995
  * @name fetchAndvalidateCartItems
917
996
  * @summary: Get and validate cart items
918
997
  * @description: Retrieve cart details for a provided list of cart items and validate its contents. This ensures accuracy and completeness in cart information, including item quantities, prices, discounts, and applicable taxes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/fetchAndvalidateCartItems/).
919
998
  */
920
999
  async fetchAndvalidateCartItems(
921
- { body, requestHeaders } = { requestHeaders: {} },
1000
+ { body, xOrderingSource, requestHeaders } = { requestHeaders: {} },
922
1001
  { responseHeaders } = { responseHeaders: false }
923
1002
  ) {
924
1003
  const {
@@ -926,6 +1005,7 @@ class Cart {
926
1005
  } = CartPlatformApplicationValidator.fetchAndvalidateCartItems().validate(
927
1006
  {
928
1007
  body,
1008
+ xOrderingSource,
929
1009
  },
930
1010
  { abortEarly: false, allowUnknown: true }
931
1011
  );
@@ -939,6 +1019,7 @@ class Cart {
939
1019
  } = CartPlatformApplicationValidator.fetchAndvalidateCartItems().validate(
940
1020
  {
941
1021
  body,
1022
+ xOrderingSource,
942
1023
  },
943
1024
  { abortEarly: false, allowUnknown: false }
944
1025
  );
@@ -968,7 +1049,7 @@ class Cart {
968
1049
 
969
1050
  const {
970
1051
  error: res_error,
971
- } = CartPlatformModel.OpenapiCartDetailsResponse().validate(responseData, {
1052
+ } = CartPlatformModel.OpenapiCartDetailsResult().validate(responseData, {
972
1053
  abortEarly: false,
973
1054
  allowUnknown: true,
974
1055
  });
@@ -987,11 +1068,86 @@ class Cart {
987
1068
  return response;
988
1069
  }
989
1070
 
1071
+ /**
1072
+ * @param {CartPlatformApplicationValidator.FetchCartMetaConfigParam} arg - Arg object
1073
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1074
+ * @param {import("../PlatformAPIClient").Options} - Options
1075
+ * @returns {Promise<CartPlatformModel.CartMetaConfigAdd>} - Success response
1076
+ * @name fetchCartMetaConfig
1077
+ * @summary: Get cart meta
1078
+ * @description: Retrieve meta configuration settings tailored for customizing the cart experience within a specific sales channel. Cart meta includes configuration settings such as allowed maximum cart value, allowed minimum cart value, maximum allowed cart items, delivery charges, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/fetchCartMetaConfig/).
1079
+ */
1080
+ async fetchCartMetaConfig(
1081
+ { requestHeaders } = { requestHeaders: {} },
1082
+ { responseHeaders } = { responseHeaders: false }
1083
+ ) {
1084
+ const {
1085
+ error,
1086
+ } = CartPlatformApplicationValidator.fetchCartMetaConfig().validate(
1087
+ {},
1088
+ { abortEarly: false, allowUnknown: true }
1089
+ );
1090
+ if (error) {
1091
+ return Promise.reject(new FDKClientValidationError(error));
1092
+ }
1093
+
1094
+ // Showing warrnings if extra unknown parameters are found
1095
+ const {
1096
+ error: warrning,
1097
+ } = CartPlatformApplicationValidator.fetchCartMetaConfig().validate(
1098
+ {},
1099
+ { abortEarly: false, allowUnknown: false }
1100
+ );
1101
+ if (warrning) {
1102
+ Logger({
1103
+ level: "WARN",
1104
+ message: `Parameter Validation warrnings for platform > Cart > fetchCartMetaConfig \n ${warrning}`,
1105
+ });
1106
+ }
1107
+
1108
+ const query_params = {};
1109
+
1110
+ const response = await PlatformAPIClient.execute(
1111
+ this.config,
1112
+ "get",
1113
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration`,
1114
+ query_params,
1115
+ undefined,
1116
+ requestHeaders,
1117
+ { responseHeaders }
1118
+ );
1119
+
1120
+ let responseData = response;
1121
+ if (responseHeaders) {
1122
+ responseData = response[0];
1123
+ }
1124
+
1125
+ const {
1126
+ error: res_error,
1127
+ } = CartPlatformModel.CartMetaConfigAdd().validate(responseData, {
1128
+ abortEarly: false,
1129
+ allowUnknown: true,
1130
+ });
1131
+
1132
+ if (res_error) {
1133
+ if (this.config.options.strictResponseCheck === true) {
1134
+ return Promise.reject(new FDKResponseValidationError(res_error));
1135
+ } else {
1136
+ Logger({
1137
+ level: "WARN",
1138
+ message: `Response Validation Warnings for platform > Cart > fetchCartMetaConfig \n ${res_error}`,
1139
+ });
1140
+ }
1141
+ }
1142
+
1143
+ return response;
1144
+ }
1145
+
990
1146
  /**
991
1147
  * @param {CartPlatformApplicationValidator.GetAbandonedCartParam} arg - Arg object
992
1148
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
993
1149
  * @param {import("../PlatformAPIClient").Options} - Options
994
- * @returns {Promise<CartPlatformModel.AbandonedCartResponse>} - Success response
1150
+ * @returns {Promise<CartPlatformModel.AbandonedCartResult>} - Success response
995
1151
  * @name getAbandonedCart
996
1152
  * @summary: Get abandoned carts
997
1153
  * @description: Retrieve the list of abandoned carts that have been active for the specified period of time and have not yet been archived for the specific sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAbandonedCart/).
@@ -1075,7 +1231,7 @@ class Cart {
1075
1231
 
1076
1232
  const {
1077
1233
  error: res_error,
1078
- } = CartPlatformModel.AbandonedCartResponse().validate(responseData, {
1234
+ } = CartPlatformModel.AbandonedCartResult().validate(responseData, {
1079
1235
  abortEarly: false,
1080
1236
  allowUnknown: true,
1081
1237
  });
@@ -1094,63 +1250,13 @@ class Cart {
1094
1250
  return response;
1095
1251
  }
1096
1252
 
1097
- /**
1098
- * @param {Object} arg - Arg object.
1099
- * @param {string} arg.companyId - Current company id
1100
- * @param {string} arg.applicationId - Current Application _id
1101
- * @param {number} [arg.pageSize] -
1102
- * @param {string} [arg.fromDate] -
1103
- * @param {string} [arg.toDate] -
1104
- * @param {boolean} [arg.anonymousCart] -
1105
- * @param {string} [arg.lastId] -
1106
- * @param {string} [arg.sortOn] -
1107
- * @returns {Paginator<CartPlatformModel.AbandonedCartResponse>}
1108
- * @summary: Get abandoned carts
1109
- * @description: Retrieve the list of abandoned carts that have been active for the specified period of time and have not yet been archived for the specific sales channel.
1110
- */
1111
- getAbandonedCartPaginator({
1112
- companyId,
1113
- applicationId,
1114
- pageSize,
1115
- fromDate,
1116
- toDate,
1117
- anonymousCart,
1118
- lastId,
1119
- sortOn,
1120
- } = {}) {
1121
- const paginator = new Paginator();
1122
- const callback = async () => {
1123
- const pageId = paginator.nextId;
1124
- const pageNo = paginator.pageNo;
1125
- const pageType = "number";
1126
- const data = await this.getAbandonedCart({
1127
- companyId: companyId,
1128
- applicationId: applicationId,
1129
- pageNo: pageNo,
1130
- pageSize: pageSize,
1131
- fromDate: fromDate,
1132
- toDate: toDate,
1133
- anonymousCart: anonymousCart,
1134
- lastId: lastId,
1135
- sortOn: sortOn,
1136
- });
1137
- paginator.setPaginator({
1138
- hasNext: data.page.has_next ? true : false,
1139
- nextId: data.page.next_id,
1140
- });
1141
- return data;
1142
- };
1143
- paginator.setCallback(callback.bind(this));
1144
- return paginator;
1145
- }
1146
-
1147
1253
  /**
1148
1254
  * @param {CartPlatformApplicationValidator.GetAbandonedCartDetailsParam} arg
1149
1255
  * - Arg object
1150
1256
  *
1151
1257
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1152
1258
  * @param {import("../PlatformAPIClient").Options} - Options
1153
- * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
1259
+ * @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
1154
1260
  * @name getAbandonedCartDetails
1155
1261
  * @summary: Get abandoned cart details
1156
1262
  * @description: Retrieves abandoned cart details linked to a specific customer using a unique cart ID. It offers an overview of the items, quantities, prices, and other relevant information associated with the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAbandonedCartDetails/).
@@ -1216,7 +1322,7 @@ class Cart {
1216
1322
 
1217
1323
  const {
1218
1324
  error: res_error,
1219
- } = CartPlatformModel.CartDetailResponse().validate(responseData, {
1325
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
1220
1326
  abortEarly: false,
1221
1327
  allowUnknown: true,
1222
1328
  });
@@ -1349,7 +1455,7 @@ class Cart {
1349
1455
  * @param {CartPlatformApplicationValidator.GetAddressesParam} arg - Arg object
1350
1456
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1351
1457
  * @param {import("../PlatformAPIClient").Options} - Options
1352
- * @returns {Promise<CartPlatformModel.PlatformGetAddressesResponse>} -
1458
+ * @returns {Promise<CartPlatformModel.PlatformGetAddressesDetails>} -
1353
1459
  * Success response
1354
1460
  * @name getAddresses
1355
1461
  * @summary: Get a list of addresses for a customer
@@ -1432,10 +1538,10 @@ class Cart {
1432
1538
 
1433
1539
  const {
1434
1540
  error: res_error,
1435
- } = CartPlatformModel.PlatformGetAddressesResponse().validate(
1436
- responseData,
1437
- { abortEarly: false, allowUnknown: true }
1438
- );
1541
+ } = CartPlatformModel.PlatformGetAddressesDetails().validate(responseData, {
1542
+ abortEarly: false,
1543
+ allowUnknown: true,
1544
+ });
1439
1545
 
1440
1546
  if (res_error) {
1441
1547
  if (this.config.options.strictResponseCheck === true) {
@@ -1455,9 +1561,9 @@ class Cart {
1455
1561
  * @param {CartPlatformApplicationValidator.GetAppCouponsParam} arg - Arg object
1456
1562
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1457
1563
  * @param {import("../PlatformAPIClient").Options} - Options
1458
- * @returns {Promise<CartPlatformModel.GetCouponResponse>} - Success response
1564
+ * @returns {Promise<CartPlatformModel.GetCouponResult>} - Success response
1459
1565
  * @name getAppCoupons
1460
- * @summary: List coupons
1566
+ * @summary: List of coupons
1461
1567
  * @description: Retrieve a list of all available coupons that customer can apply to their carts. It provides details about each coupon, including its code, discount amount, and applicable conditions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAppCoupons/).
1462
1568
  */
1463
1569
  async getAppCoupons(
@@ -1519,7 +1625,7 @@ class Cart {
1519
1625
 
1520
1626
  const {
1521
1627
  error: res_error,
1522
- } = CartPlatformModel.GetCouponResponse().validate(responseData, {
1628
+ } = CartPlatformModel.GetCouponResult().validate(responseData, {
1523
1629
  abortEarly: false,
1524
1630
  allowUnknown: true,
1525
1631
  });
@@ -1544,7 +1650,7 @@ class Cart {
1544
1650
  *
1545
1651
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1546
1652
  * @param {import("../PlatformAPIClient").Options} - Options
1547
- * @returns {Promise<CartPlatformModel.CartDeliveryModesResponse>} - Success response
1653
+ * @returns {Promise<CartPlatformModel.CartDeliveryModesDetails>} - Success response
1548
1654
  * @name getAvailableDeliveryModes
1549
1655
  * @summary: Get delivery modes
1550
1656
  * @description: Retrieve a list of delivery modes (home delivery/store pickup) along with a list of available pickup stores for a given cart at a specified PIN Code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAvailableDeliveryModes/).
@@ -1604,7 +1710,7 @@ class Cart {
1604
1710
 
1605
1711
  const {
1606
1712
  error: res_error,
1607
- } = CartPlatformModel.CartDeliveryModesResponse().validate(responseData, {
1713
+ } = CartPlatformModel.CartDeliveryModesDetails().validate(responseData, {
1608
1714
  abortEarly: false,
1609
1715
  allowUnknown: true,
1610
1716
  });
@@ -1627,26 +1733,35 @@ class Cart {
1627
1733
  * @param {CartPlatformApplicationValidator.GetCartParam} arg - Arg object
1628
1734
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1629
1735
  * @param {import("../PlatformAPIClient").Options} - Options
1630
- * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
1736
+ * @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
1631
1737
  * @name getCart
1632
- * @summary: Fetch all items added to the customer cart using cart id
1633
- * @description: Use this API to get details of all the items added to a cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCart/).
1738
+ * @summary: Get a cart
1739
+ * @description: Retrieve details of a cart linked to a specific customer using either the customer's ID or a unique cart ID. It offers an overview of the items, quantities, prices, and other relevant information associated with the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCart/).
1634
1740
  */
1635
1741
  async getCart(
1636
- { id, userId, i, b, assignCardId, buyNow, cartType, requestHeaders } = {
1637
- requestHeaders: {},
1638
- },
1742
+ {
1743
+ xOrderingSource,
1744
+ id,
1745
+ userId,
1746
+ orderType,
1747
+ i,
1748
+ b,
1749
+ assignCardId,
1750
+ buyNow,
1751
+ requestHeaders,
1752
+ } = { requestHeaders: {} },
1639
1753
  { responseHeaders } = { responseHeaders: false }
1640
1754
  ) {
1641
1755
  const { error } = CartPlatformApplicationValidator.getCart().validate(
1642
1756
  {
1757
+ xOrderingSource,
1643
1758
  id,
1644
1759
  userId,
1760
+ orderType,
1645
1761
  i,
1646
1762
  b,
1647
1763
  assignCardId,
1648
1764
  buyNow,
1649
- cartType,
1650
1765
  },
1651
1766
  { abortEarly: false, allowUnknown: true }
1652
1767
  );
@@ -1659,13 +1774,14 @@ class Cart {
1659
1774
  error: warrning,
1660
1775
  } = CartPlatformApplicationValidator.getCart().validate(
1661
1776
  {
1777
+ xOrderingSource,
1662
1778
  id,
1663
1779
  userId,
1780
+ orderType,
1664
1781
  i,
1665
1782
  b,
1666
1783
  assignCardId,
1667
1784
  buyNow,
1668
- cartType,
1669
1785
  },
1670
1786
  { abortEarly: false, allowUnknown: false }
1671
1787
  );
@@ -1679,11 +1795,11 @@ class Cart {
1679
1795
  const query_params = {};
1680
1796
  query_params["id"] = id;
1681
1797
  query_params["user_id"] = userId;
1798
+ query_params["order_type"] = orderType;
1682
1799
  query_params["i"] = i;
1683
1800
  query_params["b"] = b;
1684
1801
  query_params["assign_card_id"] = assignCardId;
1685
1802
  query_params["buy_now"] = buyNow;
1686
- query_params["cart_type"] = cartType;
1687
1803
 
1688
1804
  const response = await PlatformAPIClient.execute(
1689
1805
  this.config,
@@ -1702,174 +1818,10 @@ class Cart {
1702
1818
 
1703
1819
  const {
1704
1820
  error: res_error,
1705
- } = CartPlatformModel.CartDetailResponse().validate(responseData, {
1706
- abortEarly: false,
1707
- allowUnknown: true,
1708
- });
1709
-
1710
- if (res_error) {
1711
- if (this.config.options.strictResponseCheck === true) {
1712
- return Promise.reject(new FDKResponseValidationError(res_error));
1713
- } else {
1714
- Logger({
1715
- level: "WARN",
1716
- message: `Response Validation Warnings for platform > Cart > getCart \n ${res_error}`,
1717
- });
1718
- }
1719
- }
1720
-
1721
- return response;
1722
- }
1723
-
1724
- /**
1725
- * @param {CartPlatformApplicationValidator.GetCartListParam} arg - Arg object
1726
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1727
- * @param {import("../PlatformAPIClient").Options} - Options
1728
- * @returns {Promise<CartPlatformModel.MultiCartResponse>} - Success response
1729
- * @name getCartList
1730
- * @summary: Get cart list for store os user
1731
- * @description: Retrieve the list of active carts associated with a specific customer - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartList/).
1732
- */
1733
- async getCartList(
1734
- { fromDate, toDate, filterOn, requestHeaders } = { requestHeaders: {} },
1735
- { responseHeaders } = { responseHeaders: false }
1736
- ) {
1737
- const { error } = CartPlatformApplicationValidator.getCartList().validate(
1738
- {
1739
- fromDate,
1740
- toDate,
1741
- filterOn,
1742
- },
1743
- { abortEarly: false, allowUnknown: true }
1744
- );
1745
- if (error) {
1746
- return Promise.reject(new FDKClientValidationError(error));
1747
- }
1748
-
1749
- // Showing warrnings if extra unknown parameters are found
1750
- const {
1751
- error: warrning,
1752
- } = CartPlatformApplicationValidator.getCartList().validate(
1753
- {
1754
- fromDate,
1755
- toDate,
1756
- filterOn,
1757
- },
1758
- { abortEarly: false, allowUnknown: false }
1759
- );
1760
- if (warrning) {
1761
- Logger({
1762
- level: "WARN",
1763
- message: `Parameter Validation warrnings for platform > Cart > getCartList \n ${warrning}`,
1764
- });
1765
- }
1766
-
1767
- const query_params = {};
1768
- query_params["from_date"] = fromDate;
1769
- query_params["to_date"] = toDate;
1770
- query_params["filter_on"] = filterOn;
1771
-
1772
- const response = await PlatformAPIClient.execute(
1773
- this.config,
1774
- "get",
1775
- `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart-list`,
1776
- query_params,
1777
- undefined,
1778
- requestHeaders,
1779
- { responseHeaders }
1780
- );
1781
-
1782
- let responseData = response;
1783
- if (responseHeaders) {
1784
- responseData = response[0];
1785
- }
1786
-
1787
- const {
1788
- error: res_error,
1789
- } = CartPlatformModel.MultiCartResponse().validate(responseData, {
1821
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
1790
1822
  abortEarly: false,
1791
- allowUnknown: true,
1792
- });
1793
-
1794
- if (res_error) {
1795
- if (this.config.options.strictResponseCheck === true) {
1796
- return Promise.reject(new FDKResponseValidationError(res_error));
1797
- } else {
1798
- Logger({
1799
- level: "WARN",
1800
- message: `Response Validation Warnings for platform > Cart > getCartList \n ${res_error}`,
1801
- });
1802
- }
1803
- }
1804
-
1805
- return response;
1806
- }
1807
-
1808
- /**
1809
- * @param {CartPlatformApplicationValidator.GetCartMetaConfigParam} arg - Arg object
1810
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1811
- * @param {import("../PlatformAPIClient").Options} - Options
1812
- * @returns {Promise<CartPlatformModel.CartMetaConfigDetailResponse>} -
1813
- * Success response
1814
- * @name getCartMetaConfig
1815
- * @summary: Get cart meta configuration by id
1816
- * @description: Get cart meta configuration by id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartMetaConfig/).
1817
- */
1818
- async getCartMetaConfig(
1819
- { cartMetaId, requestHeaders } = { requestHeaders: {} },
1820
- { responseHeaders } = { responseHeaders: false }
1821
- ) {
1822
- const {
1823
- error,
1824
- } = CartPlatformApplicationValidator.getCartMetaConfig().validate(
1825
- {
1826
- cartMetaId,
1827
- },
1828
- { abortEarly: false, allowUnknown: true }
1829
- );
1830
- if (error) {
1831
- return Promise.reject(new FDKClientValidationError(error));
1832
- }
1833
-
1834
- // Showing warrnings if extra unknown parameters are found
1835
- const {
1836
- error: warrning,
1837
- } = CartPlatformApplicationValidator.getCartMetaConfig().validate(
1838
- {
1839
- cartMetaId,
1840
- },
1841
- { abortEarly: false, allowUnknown: false }
1842
- );
1843
- if (warrning) {
1844
- Logger({
1845
- level: "WARN",
1846
- message: `Parameter Validation warrnings for platform > Cart > getCartMetaConfig \n ${warrning}`,
1847
- });
1848
- }
1849
-
1850
- const query_params = {};
1851
-
1852
- const response = await PlatformAPIClient.execute(
1853
- this.config,
1854
- "get",
1855
- `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration/${cartMetaId}`,
1856
- query_params,
1857
- undefined,
1858
- requestHeaders,
1859
- { responseHeaders }
1860
- );
1861
-
1862
- let responseData = response;
1863
- if (responseHeaders) {
1864
- responseData = response[0];
1865
- }
1866
-
1867
- const {
1868
- error: res_error,
1869
- } = CartPlatformModel.CartMetaConfigDetailResponse().validate(
1870
- responseData,
1871
- { abortEarly: false, allowUnknown: true }
1872
- );
1823
+ allowUnknown: true,
1824
+ });
1873
1825
 
1874
1826
  if (res_error) {
1875
1827
  if (this.config.options.strictResponseCheck === true) {
@@ -1877,7 +1829,7 @@ class Cart {
1877
1829
  } else {
1878
1830
  Logger({
1879
1831
  level: "WARN",
1880
- message: `Response Validation Warnings for platform > Cart > getCartMetaConfig \n ${res_error}`,
1832
+ message: `Response Validation Warnings for platform > Cart > getCart \n ${res_error}`,
1881
1833
  });
1882
1834
  }
1883
1835
  }
@@ -1886,22 +1838,24 @@ class Cart {
1886
1838
  }
1887
1839
 
1888
1840
  /**
1889
- * @param {CartPlatformApplicationValidator.GetCartMetaConfigsParam} arg - Arg object
1841
+ * @param {CartPlatformApplicationValidator.GetCartListParam} arg - Arg object
1890
1842
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1891
1843
  * @param {import("../PlatformAPIClient").Options} - Options
1892
- * @returns {Promise<CartPlatformModel.CartMetaConfigListResponse>} - Success response
1893
- * @name getCartMetaConfigs
1894
- * @summary: Fetch cart meta configuration
1895
- * @description: Fetch cart meta configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartMetaConfigs/).
1844
+ * @returns {Promise<CartPlatformModel.MultiCartResult>} - Success response
1845
+ * @name getCartList
1846
+ * @summary: List of carts
1847
+ * @description: Retrieve the list of active carts associated with a specific customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartList/).
1896
1848
  */
1897
- async getCartMetaConfigs(
1898
- { requestHeaders } = { requestHeaders: {} },
1849
+ async getCartList(
1850
+ { fromDate, toDate, filterOn, requestHeaders } = { requestHeaders: {} },
1899
1851
  { responseHeaders } = { responseHeaders: false }
1900
1852
  ) {
1901
- const {
1902
- error,
1903
- } = CartPlatformApplicationValidator.getCartMetaConfigs().validate(
1904
- {},
1853
+ const { error } = CartPlatformApplicationValidator.getCartList().validate(
1854
+ {
1855
+ fromDate,
1856
+ toDate,
1857
+ filterOn,
1858
+ },
1905
1859
  { abortEarly: false, allowUnknown: true }
1906
1860
  );
1907
1861
  if (error) {
@@ -1911,23 +1865,30 @@ class Cart {
1911
1865
  // Showing warrnings if extra unknown parameters are found
1912
1866
  const {
1913
1867
  error: warrning,
1914
- } = CartPlatformApplicationValidator.getCartMetaConfigs().validate(
1915
- {},
1868
+ } = CartPlatformApplicationValidator.getCartList().validate(
1869
+ {
1870
+ fromDate,
1871
+ toDate,
1872
+ filterOn,
1873
+ },
1916
1874
  { abortEarly: false, allowUnknown: false }
1917
1875
  );
1918
1876
  if (warrning) {
1919
1877
  Logger({
1920
1878
  level: "WARN",
1921
- message: `Parameter Validation warrnings for platform > Cart > getCartMetaConfigs \n ${warrning}`,
1879
+ message: `Parameter Validation warrnings for platform > Cart > getCartList \n ${warrning}`,
1922
1880
  });
1923
1881
  }
1924
1882
 
1925
1883
  const query_params = {};
1884
+ query_params["from_date"] = fromDate;
1885
+ query_params["to_date"] = toDate;
1886
+ query_params["filter_on"] = filterOn;
1926
1887
 
1927
1888
  const response = await PlatformAPIClient.execute(
1928
1889
  this.config,
1929
1890
  "get",
1930
- `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration`,
1891
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart-list`,
1931
1892
  query_params,
1932
1893
  undefined,
1933
1894
  requestHeaders,
@@ -1941,7 +1902,7 @@ class Cart {
1941
1902
 
1942
1903
  const {
1943
1904
  error: res_error,
1944
- } = CartPlatformModel.CartMetaConfigListResponse().validate(responseData, {
1905
+ } = CartPlatformModel.MultiCartResult().validate(responseData, {
1945
1906
  abortEarly: false,
1946
1907
  allowUnknown: true,
1947
1908
  });
@@ -1952,7 +1913,7 @@ class Cart {
1952
1913
  } else {
1953
1914
  Logger({
1954
1915
  level: "WARN",
1955
- message: `Response Validation Warnings for platform > Cart > getCartMetaConfigs \n ${res_error}`,
1916
+ message: `Response Validation Warnings for platform > Cart > getCartList \n ${res_error}`,
1956
1917
  });
1957
1918
  }
1958
1919
  }
@@ -1964,7 +1925,7 @@ class Cart {
1964
1925
  * @param {CartPlatformApplicationValidator.GetCartShareLinkParam} arg - Arg object
1965
1926
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1966
1927
  * @param {import("../PlatformAPIClient").Options} - Options
1967
- * @returns {Promise<CartPlatformModel.GetShareCartLinkResponse>} - Success response
1928
+ * @returns {Promise<CartPlatformModel.GetShareCartLinkResult>} - Success response
1968
1929
  * @name getCartShareLink
1969
1930
  * @summary: Share cart link
1970
1931
  * @description: Generate a unique shareable link for the customer's cart for a specific sales channel. This link enables easy sharing of the cart contents with other users, facilitating collaborative shopping experiences. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartShareLink/).
@@ -2020,7 +1981,7 @@ class Cart {
2020
1981
 
2021
1982
  const {
2022
1983
  error: res_error,
2023
- } = CartPlatformModel.GetShareCartLinkResponse().validate(responseData, {
1984
+ } = CartPlatformModel.GetShareCartLinkResult().validate(responseData, {
2024
1985
  abortEarly: false,
2025
1986
  allowUnknown: true,
2026
1987
  });
@@ -2043,10 +2004,10 @@ class Cart {
2043
2004
  * @param {CartPlatformApplicationValidator.GetCartSharedItemsParam} arg - Arg object
2044
2005
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2045
2006
  * @param {import("../PlatformAPIClient").Options} - Options
2046
- * @returns {Promise<CartPlatformModel.SharedCartResponse>} - Success response
2007
+ * @returns {Promise<CartPlatformModel.SharedCartResult>} - Success response
2047
2008
  * @name getCartSharedItems
2048
- * @summary: Get details of a shared cart
2049
- * @description: Use this API to get the shared cart details as per the token generated using the share-cart API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartSharedItems/).
2009
+ * @summary: List shared cart items
2010
+ * @description: Retrieve the cart items from the shared cart link based on unique token. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartSharedItems/).
2050
2011
  */
2051
2012
  async getCartSharedItems(
2052
2013
  { token, requestHeaders } = { requestHeaders: {} },
@@ -2099,7 +2060,7 @@ class Cart {
2099
2060
 
2100
2061
  const {
2101
2062
  error: res_error,
2102
- } = CartPlatformModel.SharedCartResponse().validate(responseData, {
2063
+ } = CartPlatformModel.SharedCartResult().validate(responseData, {
2103
2064
  abortEarly: false,
2104
2065
  allowUnknown: true,
2105
2066
  });
@@ -2124,7 +2085,7 @@ class Cart {
2124
2085
  * @param {import("../PlatformAPIClient").Options} - Options
2125
2086
  * @returns {Promise<CartPlatformModel.CouponUpdate>} - Success response
2126
2087
  * @name getCouponById
2127
- * @summary: Get coupon details by ID
2088
+ * @summary: Get a coupon
2128
2089
  * @description: Retrieve details of a specific coupon by providing its unique identifier to obtain information such as coupon type, rules, validity period and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponById/).
2129
2090
  */
2130
2091
  async getCouponById(
@@ -2201,7 +2162,7 @@ class Cart {
2201
2162
  * @param {import("../PlatformAPIClient").Options} - Options
2202
2163
  * @returns {Promise<Object>} - Success response
2203
2164
  * @name getCouponCodeExists
2204
- * @summary: Check if coupon is already created with coupon code
2165
+ * @summary: Check coupon code exists
2205
2166
  * @description: Validates the presence of a coupon code for the specified sales channel to verify whether the provided code already exists or not. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponCodeExists/).
2206
2167
  */
2207
2168
  async getCouponCodeExists(
@@ -2279,7 +2240,7 @@ class Cart {
2279
2240
  *
2280
2241
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2281
2242
  * @param {import("../PlatformAPIClient").Options} - Options
2282
- * @returns {Promise<CartPlatformModel.CouponOptions>} - Success response
2243
+ * @returns {Promise<Object>} - Success response
2283
2244
  * @name getCouponOptionValues
2284
2245
  * @summary: Get coupon option values
2285
2246
  * @description: Retrieves the available values for coupon options used to create and update coupons. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponOptionValues/).
@@ -2329,9 +2290,7 @@ class Cart {
2329
2290
  responseData = response[0];
2330
2291
  }
2331
2292
 
2332
- const {
2333
- error: res_error,
2334
- } = CartPlatformModel.CouponOptions().validate(responseData, {
2293
+ const { error: res_error } = Joi.any().validate(responseData, {
2335
2294
  abortEarly: false,
2336
2295
  allowUnknown: true,
2337
2296
  });
@@ -2350,86 +2309,13 @@ class Cart {
2350
2309
  return response;
2351
2310
  }
2352
2311
 
2353
- /**
2354
- * @param {CartPlatformApplicationValidator.GetCouponTagsParam} arg - Arg object
2355
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2356
- * @param {import("../PlatformAPIClient").Options} - Options
2357
- * @returns {Promise<CartPlatformModel.TagsViewResponse>} - Success response
2358
- * @name getCouponTags
2359
- * @summary: Get a list of all coupon tags associated with a application.
2360
- * @description: This API helps to get coupon tags data associated to a particular application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponTags/).
2361
- */
2362
- async getCouponTags(
2363
- { requestHeaders } = { requestHeaders: {} },
2364
- { responseHeaders } = { responseHeaders: false }
2365
- ) {
2366
- const { error } = CartPlatformApplicationValidator.getCouponTags().validate(
2367
- {},
2368
- { abortEarly: false, allowUnknown: true }
2369
- );
2370
- if (error) {
2371
- return Promise.reject(new FDKClientValidationError(error));
2372
- }
2373
-
2374
- // Showing warrnings if extra unknown parameters are found
2375
- const {
2376
- error: warrning,
2377
- } = CartPlatformApplicationValidator.getCouponTags().validate(
2378
- {},
2379
- { abortEarly: false, allowUnknown: false }
2380
- );
2381
- if (warrning) {
2382
- Logger({
2383
- level: "WARN",
2384
- message: `Parameter Validation warrnings for platform > Cart > getCouponTags \n ${warrning}`,
2385
- });
2386
- }
2387
-
2388
- const query_params = {};
2389
-
2390
- const response = await PlatformAPIClient.execute(
2391
- this.config,
2392
- "get",
2393
- `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/coupon-tags`,
2394
- query_params,
2395
- undefined,
2396
- requestHeaders,
2397
- { responseHeaders }
2398
- );
2399
-
2400
- let responseData = response;
2401
- if (responseHeaders) {
2402
- responseData = response[0];
2403
- }
2404
-
2405
- const {
2406
- error: res_error,
2407
- } = CartPlatformModel.TagsViewResponse().validate(responseData, {
2408
- abortEarly: false,
2409
- allowUnknown: true,
2410
- });
2411
-
2412
- if (res_error) {
2413
- if (this.config.options.strictResponseCheck === true) {
2414
- return Promise.reject(new FDKResponseValidationError(res_error));
2415
- } else {
2416
- Logger({
2417
- level: "WARN",
2418
- message: `Response Validation Warnings for platform > Cart > getCouponTags \n ${res_error}`,
2419
- });
2420
- }
2421
- }
2422
-
2423
- return response;
2424
- }
2425
-
2426
2312
  /**
2427
2313
  * @param {CartPlatformApplicationValidator.GetCouponsParam} arg - Arg object
2428
2314
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2429
2315
  * @param {import("../PlatformAPIClient").Options} - Options
2430
- * @returns {Promise<CartPlatformModel.CouponsResponse>} - Success response
2316
+ * @returns {Promise<CartPlatformModel.CouponsResult>} - Success response
2431
2317
  * @name getCoupons
2432
- * @summary: Retrieve available coupons.
2318
+ * @summary: List of coupons
2433
2319
  * @description: Retrieve a list of all created coupons for specific sales channel. It also supports searching based on text search, pagination and other flags to filter coupons. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCoupons/).
2434
2320
  */
2435
2321
  async getCoupons(
@@ -2442,6 +2328,13 @@ class Cart {
2442
2328
  isDisplay,
2443
2329
  typeSlug,
2444
2330
  code,
2331
+ createdBy,
2332
+ reviewedBy,
2333
+ approvedStartTime,
2334
+ approvedEndTime,
2335
+ reviewStartTime,
2336
+ reviewEndTime,
2337
+ status,
2445
2338
  requestHeaders,
2446
2339
  } = { requestHeaders: {} },
2447
2340
  { responseHeaders } = { responseHeaders: false }
@@ -2456,6 +2349,13 @@ class Cart {
2456
2349
  isDisplay,
2457
2350
  typeSlug,
2458
2351
  code,
2352
+ createdBy,
2353
+ reviewedBy,
2354
+ approvedStartTime,
2355
+ approvedEndTime,
2356
+ reviewStartTime,
2357
+ reviewEndTime,
2358
+ status,
2459
2359
  },
2460
2360
  { abortEarly: false, allowUnknown: true }
2461
2361
  );
@@ -2476,6 +2376,13 @@ class Cart {
2476
2376
  isDisplay,
2477
2377
  typeSlug,
2478
2378
  code,
2379
+ createdBy,
2380
+ reviewedBy,
2381
+ approvedStartTime,
2382
+ approvedEndTime,
2383
+ reviewStartTime,
2384
+ reviewEndTime,
2385
+ status,
2479
2386
  },
2480
2387
  { abortEarly: false, allowUnknown: false }
2481
2388
  );
@@ -2495,6 +2402,13 @@ class Cart {
2495
2402
  query_params["is_display"] = isDisplay;
2496
2403
  query_params["type_slug"] = typeSlug;
2497
2404
  query_params["code"] = code;
2405
+ query_params["created_by"] = createdBy;
2406
+ query_params["reviewed_by"] = reviewedBy;
2407
+ query_params["approved_start_time"] = approvedStartTime;
2408
+ query_params["approved_end_time"] = approvedEndTime;
2409
+ query_params["review_start_time"] = reviewStartTime;
2410
+ query_params["review_end_time"] = reviewEndTime;
2411
+ query_params["status"] = status;
2498
2412
 
2499
2413
  const response = await PlatformAPIClient.execute(
2500
2414
  this.config,
@@ -2513,7 +2427,7 @@ class Cart {
2513
2427
 
2514
2428
  const {
2515
2429
  error: res_error,
2516
- } = CartPlatformModel.CouponsResponse().validate(responseData, {
2430
+ } = CartPlatformModel.CouponsResult().validate(responseData, {
2517
2431
  abortEarly: false,
2518
2432
  allowUnknown: true,
2519
2433
  });
@@ -2532,77 +2446,23 @@ class Cart {
2532
2446
  return response;
2533
2447
  }
2534
2448
 
2535
- /**
2536
- * @param {Object} arg - Arg object.
2537
- * @param {string} arg.companyId - Current company id
2538
- * @param {string} arg.applicationId - Current Application _id
2539
- * @param {number} [arg.pageSize] -
2540
- * @param {boolean} [arg.isArchived] -
2541
- * @param {string} [arg.title] -
2542
- * @param {boolean} [arg.isPublic] -
2543
- * @param {boolean} [arg.isDisplay] -
2544
- * @param {string} [arg.typeSlug] -
2545
- * @param {string} [arg.code] -
2546
- * @returns {Paginator<CartPlatformModel.CouponsResponse>}
2547
- * @summary: Retrieve available coupons.
2548
- * @description: Retrieve a list of all created coupons for specific sales channel. It also supports searching based on text search, pagination and other flags to filter coupons.
2549
- */
2550
- getCouponsPaginator({
2551
- companyId,
2552
- applicationId,
2553
- pageSize,
2554
- isArchived,
2555
- title,
2556
- isPublic,
2557
- isDisplay,
2558
- typeSlug,
2559
- code,
2560
- } = {}) {
2561
- const paginator = new Paginator();
2562
- const callback = async () => {
2563
- const pageId = paginator.nextId;
2564
- const pageNo = paginator.pageNo;
2565
- const pageType = "number";
2566
- const data = await this.getCoupons({
2567
- companyId: companyId,
2568
- applicationId: applicationId,
2569
- pageNo: pageNo,
2570
- pageSize: pageSize,
2571
- isArchived: isArchived,
2572
- title: title,
2573
- isPublic: isPublic,
2574
- isDisplay: isDisplay,
2575
- typeSlug: typeSlug,
2576
- code: code,
2577
- });
2578
- paginator.setPaginator({
2579
- hasNext: data.page.has_next ? true : false,
2580
- nextId: data.page.next_id,
2581
- });
2582
- return data;
2583
- };
2584
- paginator.setCallback(callback.bind(this));
2585
- return paginator;
2586
- }
2587
-
2588
2449
  /**
2589
2450
  * @param {CartPlatformApplicationValidator.GetItemCountParam} arg - Arg object
2590
2451
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2591
2452
  * @param {import("../PlatformAPIClient").Options} - Options
2592
- * @returns {Promise<CartPlatformModel.CartItemCountResponse>} - Success response
2453
+ * @returns {Promise<CartPlatformModel.CartItemCountResult>} - Success response
2593
2454
  * @name getItemCount
2594
- * @summary: Count items in the customer's cart
2595
- * @description: Use this API to get the total number of items present in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getItemCount/).
2455
+ * @summary: Get a cart items count
2456
+ * @description: Retrieve the total count of items currently present in the customer's cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getItemCount/).
2596
2457
  */
2597
2458
  async getItemCount(
2598
- { id, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
2459
+ { id, buyNow, requestHeaders } = { requestHeaders: {} },
2599
2460
  { responseHeaders } = { responseHeaders: false }
2600
2461
  ) {
2601
2462
  const { error } = CartPlatformApplicationValidator.getItemCount().validate(
2602
2463
  {
2603
2464
  id,
2604
2465
  buyNow,
2605
- cartType,
2606
2466
  },
2607
2467
  { abortEarly: false, allowUnknown: true }
2608
2468
  );
@@ -2617,7 +2477,6 @@ class Cart {
2617
2477
  {
2618
2478
  id,
2619
2479
  buyNow,
2620
- cartType,
2621
2480
  },
2622
2481
  { abortEarly: false, allowUnknown: false }
2623
2482
  );
@@ -2631,7 +2490,6 @@ class Cart {
2631
2490
  const query_params = {};
2632
2491
  query_params["id"] = id;
2633
2492
  query_params["buy_now"] = buyNow;
2634
- query_params["cart_type"] = cartType;
2635
2493
 
2636
2494
  const response = await PlatformAPIClient.execute(
2637
2495
  this.config,
@@ -2650,7 +2508,7 @@ class Cart {
2650
2508
 
2651
2509
  const {
2652
2510
  error: res_error,
2653
- } = CartPlatformModel.CartItemCountResponse().validate(responseData, {
2511
+ } = CartPlatformModel.CartItemCountResult().validate(responseData, {
2654
2512
  abortEarly: false,
2655
2513
  allowUnknown: true,
2656
2514
  });
@@ -2673,7 +2531,7 @@ class Cart {
2673
2531
  * @param {CartPlatformApplicationValidator.GetPriceAdjustmentsParam} arg - Arg object
2674
2532
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2675
2533
  * @param {import("../PlatformAPIClient").Options} - Options
2676
- * @returns {Promise<CartPlatformModel.PriceAdjustmentResponse>} - Success response
2534
+ * @returns {Promise<CartPlatformModel.GetPriceAdjustmentResult>} - Success response
2677
2535
  * @name getPriceAdjustments
2678
2536
  * @summary: Get a list of all price adjustments associated with a cart
2679
2537
  * @description: This API helps to get price adjustments data associated to a particular cart - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPriceAdjustments/).
@@ -2730,7 +2588,7 @@ class Cart {
2730
2588
 
2731
2589
  const {
2732
2590
  error: res_error,
2733
- } = CartPlatformModel.PriceAdjustmentResponse().validate(responseData, {
2591
+ } = CartPlatformModel.GetPriceAdjustmentResult().validate(responseData, {
2734
2592
  abortEarly: false,
2735
2593
  allowUnknown: true,
2736
2594
  });
@@ -2755,7 +2613,7 @@ class Cart {
2755
2613
  *
2756
2614
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2757
2615
  * @param {import("../PlatformAPIClient").Options} - Options
2758
- * @returns {Promise<CartPlatformModel.ActivePromosResponse>} - Success response
2616
+ * @returns {Promise<CartPlatformModel.ActivePromosResult>} - Success response
2759
2617
  * @name getPromosCouponConfig
2760
2618
  * @summary: Get promotion and coupon type
2761
2619
  * @description: Retrieve the configuration settings related to promotions and coupons for a specific seller. It provides details of the supported types of coupons and promotions along with their descriptions, examples, and related attributes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromosCouponConfig/).
@@ -2815,7 +2673,7 @@ class Cart {
2815
2673
 
2816
2674
  const {
2817
2675
  error: res_error,
2818
- } = CartPlatformModel.ActivePromosResponse().validate(responseData, {
2676
+ } = CartPlatformModel.ActivePromosResult().validate(responseData, {
2819
2677
  abortEarly: false,
2820
2678
  allowUnknown: true,
2821
2679
  });
@@ -2840,7 +2698,7 @@ class Cart {
2840
2698
  * @param {import("../PlatformAPIClient").Options} - Options
2841
2699
  * @returns {Promise<CartPlatformModel.PromotionUpdateResult>} - Success response
2842
2700
  * @name getPromotionById
2843
- * @summary: Get a promotion
2701
+ * @summary: Get a specific promotion
2844
2702
  * @description: Retrieve details of a specific promotion by providing its unique identifier to obtain information such as promotion type, rules, validity period and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionById/).
2845
2703
  */
2846
2704
  async getPromotionById(
@@ -2921,7 +2779,7 @@ class Cart {
2921
2779
  * @param {import("../PlatformAPIClient").Options} - Options
2922
2780
  * @returns {Promise<Object>} - Success response
2923
2781
  * @name getPromotionCodeExists
2924
- * @summary: Check if promotion is already created with promotion code
2782
+ * @summary: Check promotion code exists
2925
2783
  * @description: Validates the presence of a promotion code for the specified sales channel to verify whether the provided code already exists or not. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionCodeExists/).
2926
2784
  */
2927
2785
  async getPromotionCodeExists(
@@ -2994,22 +2852,30 @@ class Cart {
2994
2852
  }
2995
2853
 
2996
2854
  /**
2997
- * @param {CartPlatformApplicationValidator.GetPromotionTagsParam} arg - Arg object
2855
+ * @param {CartPlatformApplicationValidator.GetPromotionOffersParam} arg - Arg object
2998
2856
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2999
2857
  * @param {import("../PlatformAPIClient").Options} - Options
3000
- * @returns {Promise<CartPlatformModel.TagsViewResponse>} - Success response
3001
- * @name getPromotionTags
3002
- * @summary: Get a list of all Promotion tags associated with a application.
3003
- * @description: This API helps to get Promotion tags data associated to a particular application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionTags/).
2858
+ * @returns {Promise<CartPlatformModel.PromotionOffersDetails>} - Success response
2859
+ * @name getPromotionOffers
2860
+ * @summary: List of all available promotion offers
2861
+ * @description: Retrieve a list of all promotional offers available for the items in the cart, including details such as offer text, unique promotion ID, and validity period. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionOffers/).
3004
2862
  */
3005
- async getPromotionTags(
3006
- { requestHeaders } = { requestHeaders: {} },
2863
+ async getPromotionOffers(
2864
+ { slug, pageSize, promotionGroup, storeId, cartType, requestHeaders } = {
2865
+ requestHeaders: {},
2866
+ },
3007
2867
  { responseHeaders } = { responseHeaders: false }
3008
2868
  ) {
3009
2869
  const {
3010
2870
  error,
3011
- } = CartPlatformApplicationValidator.getPromotionTags().validate(
3012
- {},
2871
+ } = CartPlatformApplicationValidator.getPromotionOffers().validate(
2872
+ {
2873
+ slug,
2874
+ pageSize,
2875
+ promotionGroup,
2876
+ storeId,
2877
+ cartType,
2878
+ },
3013
2879
  { abortEarly: false, allowUnknown: true }
3014
2880
  );
3015
2881
  if (error) {
@@ -3019,23 +2885,34 @@ class Cart {
3019
2885
  // Showing warrnings if extra unknown parameters are found
3020
2886
  const {
3021
2887
  error: warrning,
3022
- } = CartPlatformApplicationValidator.getPromotionTags().validate(
3023
- {},
2888
+ } = CartPlatformApplicationValidator.getPromotionOffers().validate(
2889
+ {
2890
+ slug,
2891
+ pageSize,
2892
+ promotionGroup,
2893
+ storeId,
2894
+ cartType,
2895
+ },
3024
2896
  { abortEarly: false, allowUnknown: false }
3025
2897
  );
3026
2898
  if (warrning) {
3027
2899
  Logger({
3028
2900
  level: "WARN",
3029
- message: `Parameter Validation warrnings for platform > Cart > getPromotionTags \n ${warrning}`,
2901
+ message: `Parameter Validation warrnings for platform > Cart > getPromotionOffers \n ${warrning}`,
3030
2902
  });
3031
2903
  }
3032
2904
 
3033
2905
  const query_params = {};
2906
+ query_params["slug"] = slug;
2907
+ query_params["page_size"] = pageSize;
2908
+ query_params["promotion_group"] = promotionGroup;
2909
+ query_params["store_id"] = storeId;
2910
+ query_params["cart_type"] = cartType;
3034
2911
 
3035
2912
  const response = await PlatformAPIClient.execute(
3036
2913
  this.config,
3037
2914
  "get",
3038
- `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/promo-tags`,
2915
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/available-promotions`,
3039
2916
  query_params,
3040
2917
  undefined,
3041
2918
  requestHeaders,
@@ -3049,7 +2926,7 @@ class Cart {
3049
2926
 
3050
2927
  const {
3051
2928
  error: res_error,
3052
- } = CartPlatformModel.TagsViewResponse().validate(responseData, {
2929
+ } = CartPlatformModel.PromotionOffersDetails().validate(responseData, {
3053
2930
  abortEarly: false,
3054
2931
  allowUnknown: true,
3055
2932
  });
@@ -3060,7 +2937,93 @@ class Cart {
3060
2937
  } else {
3061
2938
  Logger({
3062
2939
  level: "WARN",
3063
- message: `Response Validation Warnings for platform > Cart > getPromotionTags \n ${res_error}`,
2940
+ message: `Response Validation Warnings for platform > Cart > getPromotionOffers \n ${res_error}`,
2941
+ });
2942
+ }
2943
+ }
2944
+
2945
+ return response;
2946
+ }
2947
+
2948
+ /**
2949
+ * @param {CartPlatformApplicationValidator.GetPromotionPaymentOffersParam} arg
2950
+ * - Arg object
2951
+ *
2952
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2953
+ * @param {import("../PlatformAPIClient").Options} - Options
2954
+ * @returns {Promise<CartPlatformModel.PromotionPaymentOffersDetails>} -
2955
+ * Success response
2956
+ * @name getPromotionPaymentOffers
2957
+ * @summary: Fetch available promotions payment offers
2958
+ * @description: Use this API to get top 5 payment offers available for current product - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionPaymentOffers/).
2959
+ */
2960
+ async getPromotionPaymentOffers(
2961
+ { id, uid, requestHeaders } = { requestHeaders: {} },
2962
+ { responseHeaders } = { responseHeaders: false }
2963
+ ) {
2964
+ const {
2965
+ error,
2966
+ } = CartPlatformApplicationValidator.getPromotionPaymentOffers().validate(
2967
+ {
2968
+ id,
2969
+ uid,
2970
+ },
2971
+ { abortEarly: false, allowUnknown: true }
2972
+ );
2973
+ if (error) {
2974
+ return Promise.reject(new FDKClientValidationError(error));
2975
+ }
2976
+
2977
+ // Showing warrnings if extra unknown parameters are found
2978
+ const {
2979
+ error: warrning,
2980
+ } = CartPlatformApplicationValidator.getPromotionPaymentOffers().validate(
2981
+ {
2982
+ id,
2983
+ uid,
2984
+ },
2985
+ { abortEarly: false, allowUnknown: false }
2986
+ );
2987
+ if (warrning) {
2988
+ Logger({
2989
+ level: "WARN",
2990
+ message: `Parameter Validation warrnings for platform > Cart > getPromotionPaymentOffers \n ${warrning}`,
2991
+ });
2992
+ }
2993
+
2994
+ const query_params = {};
2995
+ query_params["id"] = id;
2996
+ query_params["uid"] = uid;
2997
+
2998
+ const response = await PlatformAPIClient.execute(
2999
+ this.config,
3000
+ "get",
3001
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/available-payment-offers`,
3002
+ query_params,
3003
+ undefined,
3004
+ requestHeaders,
3005
+ { responseHeaders }
3006
+ );
3007
+
3008
+ let responseData = response;
3009
+ if (responseHeaders) {
3010
+ responseData = response[0];
3011
+ }
3012
+
3013
+ const {
3014
+ error: res_error,
3015
+ } = CartPlatformModel.PromotionPaymentOffersDetails().validate(
3016
+ responseData,
3017
+ { abortEarly: false, allowUnknown: true }
3018
+ );
3019
+
3020
+ if (res_error) {
3021
+ if (this.config.options.strictResponseCheck === true) {
3022
+ return Promise.reject(new FDKResponseValidationError(res_error));
3023
+ } else {
3024
+ Logger({
3025
+ level: "WARN",
3026
+ message: `Response Validation Warnings for platform > Cart > getPromotionPaymentOffers \n ${res_error}`,
3064
3027
  });
3065
3028
  }
3066
3029
  }
@@ -3072,9 +3035,9 @@ class Cart {
3072
3035
  * @param {CartPlatformApplicationValidator.GetPromotionsParam} arg - Arg object
3073
3036
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3074
3037
  * @param {import("../PlatformAPIClient").Options} - Options
3075
- * @returns {Promise<CartPlatformModel.PromotionsResponse>} - Success response
3038
+ * @returns {Promise<CartPlatformModel.PromotionsResult>} - Success response
3076
3039
  * @name getPromotions
3077
- * @summary: List promotions
3040
+ * @summary: List of promotions
3078
3041
  * @description: Retrieve a list of all created promotions for specific sales channel. It also supports efficient text search and pagination functionalities, ensuring optimized promotion listing for streamlined navigation and management. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotions/).
3079
3042
  */
3080
3043
  async getPromotions(
@@ -3087,6 +3050,13 @@ class Cart {
3087
3050
  promotionType,
3088
3051
  fpPanel,
3089
3052
  promotionId,
3053
+ createdBy,
3054
+ reviewedBy,
3055
+ approvedStartTime,
3056
+ approvedEndTime,
3057
+ reviewStartTime,
3058
+ reviewEndTime,
3059
+ status,
3090
3060
  requestHeaders,
3091
3061
  } = { requestHeaders: {} },
3092
3062
  { responseHeaders } = { responseHeaders: false }
@@ -3101,6 +3071,13 @@ class Cart {
3101
3071
  promotionType,
3102
3072
  fpPanel,
3103
3073
  promotionId,
3074
+ createdBy,
3075
+ reviewedBy,
3076
+ approvedStartTime,
3077
+ approvedEndTime,
3078
+ reviewStartTime,
3079
+ reviewEndTime,
3080
+ status,
3104
3081
  },
3105
3082
  { abortEarly: false, allowUnknown: true }
3106
3083
  );
@@ -3121,6 +3098,13 @@ class Cart {
3121
3098
  promotionType,
3122
3099
  fpPanel,
3123
3100
  promotionId,
3101
+ createdBy,
3102
+ reviewedBy,
3103
+ approvedStartTime,
3104
+ approvedEndTime,
3105
+ reviewStartTime,
3106
+ reviewEndTime,
3107
+ status,
3124
3108
  },
3125
3109
  { abortEarly: false, allowUnknown: false }
3126
3110
  );
@@ -3140,6 +3124,13 @@ class Cart {
3140
3124
  query_params["promotion_type"] = promotionType;
3141
3125
  query_params["fp_panel"] = fpPanel;
3142
3126
  query_params["promotion_id"] = promotionId;
3127
+ query_params["created_by"] = createdBy;
3128
+ query_params["reviewed_by"] = reviewedBy;
3129
+ query_params["approved_start_time"] = approvedStartTime;
3130
+ query_params["approved_end_time"] = approvedEndTime;
3131
+ query_params["review_start_time"] = reviewStartTime;
3132
+ query_params["review_end_time"] = reviewEndTime;
3133
+ query_params["status"] = status;
3143
3134
 
3144
3135
  const response = await PlatformAPIClient.execute(
3145
3136
  this.config,
@@ -3158,7 +3149,7 @@ class Cart {
3158
3149
 
3159
3150
  const {
3160
3151
  error: res_error,
3161
- } = CartPlatformModel.PromotionsResponse().validate(responseData, {
3152
+ } = CartPlatformModel.PromotionsResult().validate(responseData, {
3162
3153
  abortEarly: false,
3163
3154
  allowUnknown: true,
3164
3155
  });
@@ -3177,64 +3168,11 @@ class Cart {
3177
3168
  return response;
3178
3169
  }
3179
3170
 
3180
- /**
3181
- * @param {Object} arg - Arg object.
3182
- * @param {string} arg.companyId - Current company id
3183
- * @param {string} arg.applicationId - Current Application _id
3184
- * @param {number} [arg.pageSize] -
3185
- * @param {string} [arg.q] -
3186
- * @param {boolean} [arg.isActive] -
3187
- * @param {string} [arg.promoGroup] -
3188
- * @param {string} [arg.promotionType] -
3189
- * @param {string} [arg.fpPanel] -
3190
- * @param {string} [arg.promotionId] -
3191
- * @returns {Paginator<CartPlatformModel.PromotionsResponse>}
3192
- * @summary: List promotions
3193
- * @description: Retrieve a list of all created promotions for specific sales channel. It also supports efficient text search and pagination functionalities, ensuring optimized promotion listing for streamlined navigation and management.
3194
- */
3195
- getPromotionsPaginator({
3196
- companyId,
3197
- applicationId,
3198
- pageSize,
3199
- q,
3200
- isActive,
3201
- promoGroup,
3202
- promotionType,
3203
- fpPanel,
3204
- promotionId,
3205
- } = {}) {
3206
- const paginator = new Paginator();
3207
- const callback = async () => {
3208
- const pageId = paginator.nextId;
3209
- const pageNo = paginator.pageNo;
3210
- const pageType = "number";
3211
- const data = await this.getPromotions({
3212
- companyId: companyId,
3213
- applicationId: applicationId,
3214
- pageNo: pageNo,
3215
- pageSize: pageSize,
3216
- q: q,
3217
- isActive: isActive,
3218
- promoGroup: promoGroup,
3219
- promotionType: promotionType,
3220
- fpPanel: fpPanel,
3221
- promotionId: promotionId,
3222
- });
3223
- paginator.setPaginator({
3224
- hasNext: data.page.has_next ? true : false,
3225
- nextId: data.page.next_id,
3226
- });
3227
- return data;
3228
- };
3229
- paginator.setCallback(callback.bind(this));
3230
- return paginator;
3231
- }
3232
-
3233
3171
  /**
3234
3172
  * @param {CartPlatformApplicationValidator.GetShipmentsParam} arg - Arg object
3235
3173
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3236
3174
  * @param {import("../PlatformAPIClient").Options} - Options
3237
- * @returns {Promise<CartPlatformModel.PlatformCartShipmentsResponse>} -
3175
+ * @returns {Promise<CartPlatformModel.PlatformCartShipmentsResult>} -
3238
3176
  * Success response
3239
3177
  * @name getShipments
3240
3178
  * @summary: Get shipments details
@@ -3321,10 +3259,10 @@ class Cart {
3321
3259
 
3322
3260
  const {
3323
3261
  error: res_error,
3324
- } = CartPlatformModel.PlatformCartShipmentsResponse().validate(
3325
- responseData,
3326
- { abortEarly: false, allowUnknown: true }
3327
- );
3262
+ } = CartPlatformModel.PlatformCartShipmentsResult().validate(responseData, {
3263
+ abortEarly: false,
3264
+ allowUnknown: true,
3265
+ });
3328
3266
 
3329
3267
  if (res_error) {
3330
3268
  if (this.config.options.strictResponseCheck === true) {
@@ -3346,7 +3284,7 @@ class Cart {
3346
3284
  *
3347
3285
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3348
3286
  * @param {import("../PlatformAPIClient").Options} - Options
3349
- * @returns {Promise<CartPlatformModel.StoreDetailsResponse>} - Success response
3287
+ * @returns {Promise<CartPlatformModel.StoreDetails>} - Success response
3350
3288
  * @name getStoreAddressByUid
3351
3289
  * @summary: Get Store Address
3352
3290
  * @description: Retrieve store details by entering the unique identifier of the pickup stores. Store details include the seller's name, contact information such as email address or phone number and business address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getStoreAddressByUid/).
@@ -3403,7 +3341,7 @@ class Cart {
3403
3341
 
3404
3342
  const {
3405
3343
  error: res_error,
3406
- } = CartPlatformModel.StoreDetailsResponse().validate(responseData, {
3344
+ } = CartPlatformModel.StoreDetails().validate(responseData, {
3407
3345
  abortEarly: false,
3408
3346
  allowUnknown: true,
3409
3347
  });
@@ -3426,18 +3364,19 @@ class Cart {
3426
3364
  * @param {CartPlatformApplicationValidator.OverrideCartParam} arg - Arg object
3427
3365
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3428
3366
  * @param {import("../PlatformAPIClient").Options} - Options
3429
- * @returns {Promise<CartPlatformModel.OverrideCheckoutResponse>} - Success response
3367
+ * @returns {Promise<CartPlatformModel.OverrideCheckoutResult>} - Success response
3430
3368
  * @name overrideCart
3431
- * @summary: Create Fynd order with overriding cart details
3369
+ * @summary: Update cart checkout
3432
3370
  * @description: Overrides the cart's checkout process with a new provided cart items. It provides flexibility in customizing checkout flows to meet specific business requirements, enhancing the user experience and optimizing order processing workflows. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/overrideCart/).
3433
3371
  */
3434
3372
  async overrideCart(
3435
- { body, requestHeaders } = { requestHeaders: {} },
3373
+ { body, xOrderingSource, requestHeaders } = { requestHeaders: {} },
3436
3374
  { responseHeaders } = { responseHeaders: false }
3437
3375
  ) {
3438
3376
  const { error } = CartPlatformApplicationValidator.overrideCart().validate(
3439
3377
  {
3440
3378
  body,
3379
+ xOrderingSource,
3441
3380
  },
3442
3381
  { abortEarly: false, allowUnknown: true }
3443
3382
  );
@@ -3451,6 +3390,7 @@ class Cart {
3451
3390
  } = CartPlatformApplicationValidator.overrideCart().validate(
3452
3391
  {
3453
3392
  body,
3393
+ xOrderingSource,
3454
3394
  },
3455
3395
  { abortEarly: false, allowUnknown: false }
3456
3396
  );
@@ -3480,7 +3420,7 @@ class Cart {
3480
3420
 
3481
3421
  const {
3482
3422
  error: res_error,
3483
- } = CartPlatformModel.OverrideCheckoutResponse().validate(responseData, {
3423
+ } = CartPlatformModel.OverrideCheckoutResult().validate(responseData, {
3484
3424
  abortEarly: false,
3485
3425
  allowUnknown: true,
3486
3426
  });
@@ -3503,13 +3443,13 @@ class Cart {
3503
3443
  * @param {CartPlatformApplicationValidator.PlatformAddItemsParam} arg - Arg object
3504
3444
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3505
3445
  * @param {import("../PlatformAPIClient").Options} - Options
3506
- * @returns {Promise<CartPlatformModel.AddCartDetailResponse>} - Success response
3446
+ * @returns {Promise<CartPlatformModel.AddCartDetailResult>} - Success response
3507
3447
  * @name platformAddItems
3508
3448
  * @summary: Add items to cart
3509
3449
  * @description: Add product items to the customer's existing shopping cart. If there is no existing cart associated with the customer, it creates a new one and adds the items to it. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformAddItems/).
3510
3450
  */
3511
3451
  async platformAddItems(
3512
- { body, i, b, buyNow, id, cartType, requestHeaders } = {
3452
+ { body, xOrderingSource, i, b, buyNow, orderType, id, requestHeaders } = {
3513
3453
  requestHeaders: {},
3514
3454
  },
3515
3455
  { responseHeaders } = { responseHeaders: false }
@@ -3519,11 +3459,12 @@ class Cart {
3519
3459
  } = CartPlatformApplicationValidator.platformAddItems().validate(
3520
3460
  {
3521
3461
  body,
3462
+ xOrderingSource,
3522
3463
  i,
3523
3464
  b,
3524
3465
  buyNow,
3466
+ orderType,
3525
3467
  id,
3526
- cartType,
3527
3468
  },
3528
3469
  { abortEarly: false, allowUnknown: true }
3529
3470
  );
@@ -3537,11 +3478,12 @@ class Cart {
3537
3478
  } = CartPlatformApplicationValidator.platformAddItems().validate(
3538
3479
  {
3539
3480
  body,
3481
+ xOrderingSource,
3540
3482
  i,
3541
3483
  b,
3542
3484
  buyNow,
3485
+ orderType,
3543
3486
  id,
3544
- cartType,
3545
3487
  },
3546
3488
  { abortEarly: false, allowUnknown: false }
3547
3489
  );
@@ -3556,8 +3498,8 @@ class Cart {
3556
3498
  query_params["i"] = i;
3557
3499
  query_params["b"] = b;
3558
3500
  query_params["buy_now"] = buyNow;
3501
+ query_params["order_type"] = orderType;
3559
3502
  query_params["id"] = id;
3560
- query_params["cart_type"] = cartType;
3561
3503
 
3562
3504
  const response = await PlatformAPIClient.execute(
3563
3505
  this.config,
@@ -3576,7 +3518,7 @@ class Cart {
3576
3518
 
3577
3519
  const {
3578
3520
  error: res_error,
3579
- } = CartPlatformModel.AddCartDetailResponse().validate(responseData, {
3521
+ } = CartPlatformModel.AddCartDetailResult().validate(responseData, {
3580
3522
  abortEarly: false,
3581
3523
  allowUnknown: true,
3582
3524
  });
@@ -3601,13 +3543,13 @@ class Cart {
3601
3543
  *
3602
3544
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3603
3545
  * @param {import("../PlatformAPIClient").Options} - Options
3604
- * @returns {Promise<CartPlatformModel.CartCheckoutResponse>} - Success response
3546
+ * @returns {Promise<CartPlatformModel.CartCheckoutResult>} - Success response
3605
3547
  * @name platformCheckoutCart
3606
3548
  * @summary: Checkout cart
3607
3549
  * @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformCheckoutCart/).
3608
3550
  */
3609
3551
  async platformCheckoutCart(
3610
- { body, id, cartType, requestHeaders } = { requestHeaders: {} },
3552
+ { body, xOrderingSource, id, requestHeaders } = { requestHeaders: {} },
3611
3553
  { responseHeaders } = { responseHeaders: false }
3612
3554
  ) {
3613
3555
  const {
@@ -3615,8 +3557,8 @@ class Cart {
3615
3557
  } = CartPlatformApplicationValidator.platformCheckoutCart().validate(
3616
3558
  {
3617
3559
  body,
3560
+ xOrderingSource,
3618
3561
  id,
3619
- cartType,
3620
3562
  },
3621
3563
  { abortEarly: false, allowUnknown: true }
3622
3564
  );
@@ -3630,8 +3572,8 @@ class Cart {
3630
3572
  } = CartPlatformApplicationValidator.platformCheckoutCart().validate(
3631
3573
  {
3632
3574
  body,
3575
+ xOrderingSource,
3633
3576
  id,
3634
- cartType,
3635
3577
  },
3636
3578
  { abortEarly: false, allowUnknown: false }
3637
3579
  );
@@ -3644,7 +3586,6 @@ class Cart {
3644
3586
 
3645
3587
  const query_params = {};
3646
3588
  query_params["id"] = id;
3647
- query_params["cart_type"] = cartType;
3648
3589
 
3649
3590
  const response = await PlatformAPIClient.execute(
3650
3591
  this.config,
@@ -3663,7 +3604,7 @@ class Cart {
3663
3604
 
3664
3605
  const {
3665
3606
  error: res_error,
3666
- } = CartPlatformModel.CartCheckoutResponse().validate(responseData, {
3607
+ } = CartPlatformModel.CartCheckoutResult().validate(responseData, {
3667
3608
  abortEarly: false,
3668
3609
  allowUnknown: true,
3669
3610
  });
@@ -3688,13 +3629,13 @@ class Cart {
3688
3629
  *
3689
3630
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3690
3631
  * @param {import("../PlatformAPIClient").Options} - Options
3691
- * @returns {Promise<CartPlatformModel.CartCheckoutResponse>} - Success response
3632
+ * @returns {Promise<CartPlatformModel.CartCheckoutDetails>} - Success response
3692
3633
  * @name platformCheckoutCartV2
3693
- * @summary: Cart checkout (latest)
3634
+ * @summary: Checkout cart
3694
3635
  * @description: The checkout cart initiates the order creation process based on the items in the user’s cart, their selected address, and chosen payment methods. It also supports multiple payment method options and revalidates the cart details to ensure a secure and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformCheckoutCartV2/).
3695
3636
  */
3696
3637
  async platformCheckoutCartV2(
3697
- { body, id, cartType, requestHeaders } = { requestHeaders: {} },
3638
+ { body, xOrderingSource, id, requestHeaders } = { requestHeaders: {} },
3698
3639
  { responseHeaders } = { responseHeaders: false }
3699
3640
  ) {
3700
3641
  const {
@@ -3702,8 +3643,8 @@ class Cart {
3702
3643
  } = CartPlatformApplicationValidator.platformCheckoutCartV2().validate(
3703
3644
  {
3704
3645
  body,
3646
+ xOrderingSource,
3705
3647
  id,
3706
- cartType,
3707
3648
  },
3708
3649
  { abortEarly: false, allowUnknown: true }
3709
3650
  );
@@ -3717,8 +3658,8 @@ class Cart {
3717
3658
  } = CartPlatformApplicationValidator.platformCheckoutCartV2().validate(
3718
3659
  {
3719
3660
  body,
3661
+ xOrderingSource,
3720
3662
  id,
3721
- cartType,
3722
3663
  },
3723
3664
  { abortEarly: false, allowUnknown: false }
3724
3665
  );
@@ -3731,7 +3672,6 @@ class Cart {
3731
3672
 
3732
3673
  const query_params = {};
3733
3674
  query_params["id"] = id;
3734
- query_params["cart_type"] = cartType;
3735
3675
 
3736
3676
  const response = await PlatformAPIClient.execute(
3737
3677
  this.config,
@@ -3750,7 +3690,7 @@ class Cart {
3750
3690
 
3751
3691
  const {
3752
3692
  error: res_error,
3753
- } = CartPlatformModel.CartCheckoutResponse().validate(responseData, {
3693
+ } = CartPlatformModel.CartCheckoutDetails().validate(responseData, {
3754
3694
  abortEarly: false,
3755
3695
  allowUnknown: true,
3756
3696
  });
@@ -3773,13 +3713,13 @@ class Cart {
3773
3713
  * @param {CartPlatformApplicationValidator.PlatformUpdateCartParam} arg - Arg object
3774
3714
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3775
3715
  * @param {import("../PlatformAPIClient").Options} - Options
3776
- * @returns {Promise<CartPlatformModel.UpdateCartDetailResponse>} - Success response
3716
+ * @returns {Promise<CartPlatformModel.UpdateCartDetailResult>} - Success response
3777
3717
  * @name platformUpdateCart
3778
3718
  * @summary: Update cart items
3779
3719
  * @description: Customers can modify added product attributes such as quantity and size, as well as remove items from the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformUpdateCart/).
3780
3720
  */
3781
3721
  async platformUpdateCart(
3782
- { body, id, i, orderType, b, buyNow, cartType, requestHeaders } = {
3722
+ { body, xOrderingSource, id, i, orderType, b, buyNow, requestHeaders } = {
3783
3723
  requestHeaders: {},
3784
3724
  },
3785
3725
  { responseHeaders } = { responseHeaders: false }
@@ -3789,12 +3729,12 @@ class Cart {
3789
3729
  } = CartPlatformApplicationValidator.platformUpdateCart().validate(
3790
3730
  {
3791
3731
  body,
3732
+ xOrderingSource,
3792
3733
  id,
3793
3734
  i,
3794
3735
  orderType,
3795
3736
  b,
3796
3737
  buyNow,
3797
- cartType,
3798
3738
  },
3799
3739
  { abortEarly: false, allowUnknown: true }
3800
3740
  );
@@ -3808,12 +3748,12 @@ class Cart {
3808
3748
  } = CartPlatformApplicationValidator.platformUpdateCart().validate(
3809
3749
  {
3810
3750
  body,
3751
+ xOrderingSource,
3811
3752
  id,
3812
3753
  i,
3813
3754
  orderType,
3814
3755
  b,
3815
3756
  buyNow,
3816
- cartType,
3817
3757
  },
3818
3758
  { abortEarly: false, allowUnknown: false }
3819
3759
  );
@@ -3830,7 +3770,6 @@ class Cart {
3830
3770
  query_params["order_type"] = orderType;
3831
3771
  query_params["b"] = b;
3832
3772
  query_params["buy_now"] = buyNow;
3833
- query_params["cart_type"] = cartType;
3834
3773
 
3835
3774
  const response = await PlatformAPIClient.execute(
3836
3775
  this.config,
@@ -3849,7 +3788,7 @@ class Cart {
3849
3788
 
3850
3789
  const {
3851
3790
  error: res_error,
3852
- } = CartPlatformModel.UpdateCartDetailResponse().validate(responseData, {
3791
+ } = CartPlatformModel.UpdateCartDetailResult().validate(responseData, {
3853
3792
  abortEarly: false,
3854
3793
  allowUnknown: true,
3855
3794
  });
@@ -3872,7 +3811,7 @@ class Cart {
3872
3811
  * @param {CartPlatformApplicationValidator.RemoveAddressParam} arg - Arg object
3873
3812
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3874
3813
  * @param {import("../PlatformAPIClient").Options} - Options
3875
- * @returns {Promise<CartPlatformModel.DeleteAddressResponse>} - Success response
3814
+ * @returns {Promise<CartPlatformModel.DeleteAddressResult>} - Success response
3876
3815
  * @name removeAddress
3877
3816
  * @summary: Removes an address from a customer's address list
3878
3817
  * @description: Remove an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeAddress/).
@@ -3929,7 +3868,7 @@ class Cart {
3929
3868
 
3930
3869
  const {
3931
3870
  error: res_error,
3932
- } = CartPlatformModel.DeleteAddressResponse().validate(responseData, {
3871
+ } = CartPlatformModel.DeleteAddressResult().validate(responseData, {
3933
3872
  abortEarly: false,
3934
3873
  allowUnknown: true,
3935
3874
  });
@@ -3952,20 +3891,20 @@ class Cart {
3952
3891
  * @param {CartPlatformApplicationValidator.RemoveCouponParam} arg - Arg object
3953
3892
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3954
3893
  * @param {import("../PlatformAPIClient").Options} - Options
3955
- * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
3894
+ * @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
3956
3895
  * @name removeCoupon
3957
- * @summary: Remove Applied Coupon for platform pos user
3896
+ * @summary: Remove coupon
3958
3897
  * @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeCoupon/).
3959
3898
  */
3960
3899
  async removeCoupon(
3961
- { uid, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
3900
+ { xOrderingSource, uid, buyNow, requestHeaders } = { requestHeaders: {} },
3962
3901
  { responseHeaders } = { responseHeaders: false }
3963
3902
  ) {
3964
3903
  const { error } = CartPlatformApplicationValidator.removeCoupon().validate(
3965
3904
  {
3905
+ xOrderingSource,
3966
3906
  uid,
3967
3907
  buyNow,
3968
- cartType,
3969
3908
  },
3970
3909
  { abortEarly: false, allowUnknown: true }
3971
3910
  );
@@ -3978,9 +3917,9 @@ class Cart {
3978
3917
  error: warrning,
3979
3918
  } = CartPlatformApplicationValidator.removeCoupon().validate(
3980
3919
  {
3920
+ xOrderingSource,
3981
3921
  uid,
3982
3922
  buyNow,
3983
- cartType,
3984
3923
  },
3985
3924
  { abortEarly: false, allowUnknown: false }
3986
3925
  );
@@ -3994,7 +3933,6 @@ class Cart {
3994
3933
  const query_params = {};
3995
3934
  query_params["uid"] = uid;
3996
3935
  query_params["buy_now"] = buyNow;
3997
- query_params["cart_type"] = cartType;
3998
3936
 
3999
3937
  const response = await PlatformAPIClient.execute(
4000
3938
  this.config,
@@ -4013,7 +3951,7 @@ class Cart {
4013
3951
 
4014
3952
  const {
4015
3953
  error: res_error,
4016
- } = CartPlatformModel.CartDetailResponse().validate(responseData, {
3954
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
4017
3955
  abortEarly: false,
4018
3956
  allowUnknown: true,
4019
3957
  });
@@ -4040,8 +3978,8 @@ class Cart {
4040
3978
  * @param {import("../PlatformAPIClient").Options} - Options
4041
3979
  * @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
4042
3980
  * @name removePriceAdjustment
4043
- * @summary: Remove price adjustments.
4044
- * @description: Remove price adjustments applied to items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removePriceAdjustment/).
3981
+ * @summary: Remove price adjustments
3982
+ * @description: Remove the applied price adjustments for specific items within the cart based on unique price adjustment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removePriceAdjustment/).
4045
3983
  */
4046
3984
  async removePriceAdjustment(
4047
3985
  { id, requestHeaders } = { requestHeaders: {} },
@@ -4117,18 +4055,21 @@ class Cart {
4117
4055
  * @param {CartPlatformApplicationValidator.SelectAddressParam} arg - Arg object
4118
4056
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4119
4057
  * @param {import("../PlatformAPIClient").Options} - Options
4120
- * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
4058
+ * @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
4121
4059
  * @name selectAddress
4122
4060
  * @summary: Select customer address for order processing
4123
4061
  * @description: Select an address from the saved customer addresses and validates the availability of items in the cart. Additionally, it verifies and updates the delivery promise based on the selected address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/selectAddress/).
4124
4062
  */
4125
4063
  async selectAddress(
4126
- { body, cartId, buyNow, i, b, requestHeaders } = { requestHeaders: {} },
4064
+ { body, xOrderingSource, cartId, buyNow, i, b, requestHeaders } = {
4065
+ requestHeaders: {},
4066
+ },
4127
4067
  { responseHeaders } = { responseHeaders: false }
4128
4068
  ) {
4129
4069
  const { error } = CartPlatformApplicationValidator.selectAddress().validate(
4130
4070
  {
4131
4071
  body,
4072
+ xOrderingSource,
4132
4073
  cartId,
4133
4074
  buyNow,
4134
4075
  i,
@@ -4146,6 +4087,7 @@ class Cart {
4146
4087
  } = CartPlatformApplicationValidator.selectAddress().validate(
4147
4088
  {
4148
4089
  body,
4090
+ xOrderingSource,
4149
4091
  cartId,
4150
4092
  buyNow,
4151
4093
  i,
@@ -4183,7 +4125,7 @@ class Cart {
4183
4125
 
4184
4126
  const {
4185
4127
  error: res_error,
4186
- } = CartPlatformModel.CartDetailResponse().validate(responseData, {
4128
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
4187
4129
  abortEarly: false,
4188
4130
  allowUnknown: true,
4189
4131
  });
@@ -4206,13 +4148,15 @@ class Cart {
4206
4148
  * @param {CartPlatformApplicationValidator.SelectPaymentModeParam} arg - Arg object
4207
4149
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4208
4150
  * @param {import("../PlatformAPIClient").Options} - Options
4209
- * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
4151
+ * @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
4210
4152
  * @name selectPaymentMode
4211
4153
  * @summary: Select payment mode
4212
4154
  * @description: Customers can select a preferred payment mode from available options during the cart checkout process to securely and efficiently complete their transaction. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/selectPaymentMode/).
4213
4155
  */
4214
4156
  async selectPaymentMode(
4215
- { body, id, buyNow, orderType, requestHeaders } = { requestHeaders: {} },
4157
+ { body, xOrderingSource, id, buyNow, orderType, requestHeaders } = {
4158
+ requestHeaders: {},
4159
+ },
4216
4160
  { responseHeaders } = { responseHeaders: false }
4217
4161
  ) {
4218
4162
  const {
@@ -4220,6 +4164,7 @@ class Cart {
4220
4164
  } = CartPlatformApplicationValidator.selectPaymentMode().validate(
4221
4165
  {
4222
4166
  body,
4167
+ xOrderingSource,
4223
4168
  id,
4224
4169
  buyNow,
4225
4170
  orderType,
@@ -4236,6 +4181,7 @@ class Cart {
4236
4181
  } = CartPlatformApplicationValidator.selectPaymentMode().validate(
4237
4182
  {
4238
4183
  body,
4184
+ xOrderingSource,
4239
4185
  id,
4240
4186
  buyNow,
4241
4187
  orderType,
@@ -4271,7 +4217,7 @@ class Cart {
4271
4217
 
4272
4218
  const {
4273
4219
  error: res_error,
4274
- } = CartPlatformModel.CartDetailResponse().validate(responseData, {
4220
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
4275
4221
  abortEarly: false,
4276
4222
  allowUnknown: true,
4277
4223
  });
@@ -4294,13 +4240,15 @@ class Cart {
4294
4240
  * @param {CartPlatformApplicationValidator.SelectPaymentModeV2Param} arg - Arg object
4295
4241
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4296
4242
  * @param {import("../PlatformAPIClient").Options} - Options
4297
- * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
4243
+ * @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
4298
4244
  * @name selectPaymentModeV2
4299
4245
  * @summary: Select payment mode (latest)
4300
4246
  * @description: Selection of payment mode that supports multiple MOP(mode of payment). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/selectPaymentModeV2/).
4301
4247
  */
4302
4248
  async selectPaymentModeV2(
4303
- { body, id, buyNow, orderType, requestHeaders } = { requestHeaders: {} },
4249
+ { body, xOrderingSource, id, buyNow, orderType, requestHeaders } = {
4250
+ requestHeaders: {},
4251
+ },
4304
4252
  { responseHeaders } = { responseHeaders: false }
4305
4253
  ) {
4306
4254
  const {
@@ -4308,6 +4256,7 @@ class Cart {
4308
4256
  } = CartPlatformApplicationValidator.selectPaymentModeV2().validate(
4309
4257
  {
4310
4258
  body,
4259
+ xOrderingSource,
4311
4260
  id,
4312
4261
  buyNow,
4313
4262
  orderType,
@@ -4324,6 +4273,7 @@ class Cart {
4324
4273
  } = CartPlatformApplicationValidator.selectPaymentModeV2().validate(
4325
4274
  {
4326
4275
  body,
4276
+ xOrderingSource,
4327
4277
  id,
4328
4278
  buyNow,
4329
4279
  orderType,
@@ -4359,7 +4309,7 @@ class Cart {
4359
4309
 
4360
4310
  const {
4361
4311
  error: res_error,
4362
- } = CartPlatformModel.CartDetailResponse().validate(responseData, {
4312
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
4363
4313
  abortEarly: false,
4364
4314
  allowUnknown: true,
4365
4315
  });
@@ -4382,7 +4332,7 @@ class Cart {
4382
4332
  * @param {CartPlatformApplicationValidator.UpdateAddressParam} arg - Arg object
4383
4333
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4384
4334
  * @param {import("../PlatformAPIClient").Options} - Options
4385
- * @returns {Promise<CartPlatformModel.UpdateAddressResponse>} - Success response
4335
+ * @returns {Promise<CartPlatformModel.UpdateAddressDetails>} - Success response
4386
4336
  * @name updateAddress
4387
4337
  * @summary: Updates an existing customer address
4388
4338
  * @description: Update the user address - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateAddress/).
@@ -4438,7 +4388,7 @@ class Cart {
4438
4388
 
4439
4389
  const {
4440
4390
  error: res_error,
4441
- } = CartPlatformModel.UpdateAddressResponse().validate(responseData, {
4391
+ } = CartPlatformModel.UpdateAddressDetails().validate(responseData, {
4442
4392
  abortEarly: false,
4443
4393
  allowUnknown: true,
4444
4394
  });
@@ -4461,7 +4411,7 @@ class Cart {
4461
4411
  * @param {CartPlatformApplicationValidator.UpdateCartParam} arg - Arg object
4462
4412
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4463
4413
  * @param {import("../PlatformAPIClient").Options} - Options
4464
- * @returns {Promise<CartPlatformModel.UpdateCartDetailResponse>} - Success response
4414
+ * @returns {Promise<CartPlatformModel.UpdateCartDetailResult>} - Success response
4465
4415
  * @name updateCart
4466
4416
  * @summary: Update cart items
4467
4417
  * @description: Customers can modify added product attributes such as quantity and size, as well as remove items from the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCart/).
@@ -4520,7 +4470,7 @@ class Cart {
4520
4470
 
4521
4471
  const {
4522
4472
  error: res_error,
4523
- } = CartPlatformModel.UpdateCartDetailResponse().validate(responseData, {
4473
+ } = CartPlatformModel.UpdateCartDetailResult().validate(responseData, {
4524
4474
  abortEarly: false,
4525
4475
  allowUnknown: true,
4526
4476
  });
@@ -4543,13 +4493,13 @@ class Cart {
4543
4493
  * @param {CartPlatformApplicationValidator.UpdateCartMetaParam} arg - Arg object
4544
4494
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4545
4495
  * @param {import("../PlatformAPIClient").Options} - Options
4546
- * @returns {Promise<CartPlatformModel.CartMetaResponse>} - Success response
4496
+ * @returns {Promise<CartPlatformModel.CartMetaDetails>} - Success response
4547
4497
  * @name updateCartMeta
4548
4498
  * @summary: Update cart metadata
4549
4499
  * @description: Add or modify metadata associated with a cart, which includes customer preferences, delivery instructions, or any special requirements related to the cart items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartMeta/).
4550
4500
  */
4551
4501
  async updateCartMeta(
4552
- { body, id, buyNow, userId, requestHeaders } = { requestHeaders: {} },
4502
+ { body, id, buyNow, requestHeaders } = { requestHeaders: {} },
4553
4503
  { responseHeaders } = { responseHeaders: false }
4554
4504
  ) {
4555
4505
  const {
@@ -4559,7 +4509,6 @@ class Cart {
4559
4509
  body,
4560
4510
  id,
4561
4511
  buyNow,
4562
- userId,
4563
4512
  },
4564
4513
  { abortEarly: false, allowUnknown: true }
4565
4514
  );
@@ -4575,7 +4524,6 @@ class Cart {
4575
4524
  body,
4576
4525
  id,
4577
4526
  buyNow,
4578
- userId,
4579
4527
  },
4580
4528
  { abortEarly: false, allowUnknown: false }
4581
4529
  );
@@ -4589,7 +4537,6 @@ class Cart {
4589
4537
  const query_params = {};
4590
4538
  query_params["id"] = id;
4591
4539
  query_params["buy_now"] = buyNow;
4592
- query_params["user_id"] = userId;
4593
4540
 
4594
4541
  const response = await PlatformAPIClient.execute(
4595
4542
  this.config,
@@ -4608,7 +4555,7 @@ class Cart {
4608
4555
 
4609
4556
  const {
4610
4557
  error: res_error,
4611
- } = CartPlatformModel.CartMetaResponse().validate(responseData, {
4558
+ } = CartPlatformModel.CartMetaDetails().validate(responseData, {
4612
4559
  abortEarly: false,
4613
4560
  allowUnknown: true,
4614
4561
  });
@@ -4635,8 +4582,8 @@ class Cart {
4635
4582
  * @param {import("../PlatformAPIClient").Options} - Options
4636
4583
  * @returns {Promise<CartPlatformModel.CartMetaConfigUpdate>} - Success response
4637
4584
  * @name updateCartMetaConfig
4638
- * @summary: Update cart metadata configuration.
4639
- * @description: Modify the configuration settings for cart metadata. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartMetaConfig/).
4585
+ * @summary: Update cart meta
4586
+ * @description: Modify the configuration settings for cart metadata associated with a specific sales channel. Cart meta includes configuration settings such as allowed maximum cart value, allowed minimum cart value, maximum allowed cart items, delivery charges, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartMetaConfig/).
4640
4587
  */
4641
4588
  async updateCartMetaConfig(
4642
4589
  { cartMetaId, body, requestHeaders } = { requestHeaders: {} },
@@ -4714,9 +4661,9 @@ class Cart {
4714
4661
  * @param {CartPlatformApplicationValidator.UpdateCartUserParam} arg - Arg object
4715
4662
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4716
4663
  * @param {import("../PlatformAPIClient").Options} - Options
4717
- * @returns {Promise<CartPlatformModel.UserCartMappingResponse>} - Success response
4664
+ * @returns {Promise<CartPlatformModel.UserCartMappingResult>} - Success response
4718
4665
  * @name updateCartUser
4719
- * @summary: Update cart user details.
4666
+ * @summary: Update user of a cart
4720
4667
  * @description: Modify the cart user to a new valid customer for the provided customer ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartUser/).
4721
4668
  */
4722
4669
  async updateCartUser(
@@ -4773,7 +4720,7 @@ class Cart {
4773
4720
 
4774
4721
  const {
4775
4722
  error: res_error,
4776
- } = CartPlatformModel.UserCartMappingResponse().validate(responseData, {
4723
+ } = CartPlatformModel.UserCartMappingResult().validate(responseData, {
4777
4724
  abortEarly: false,
4778
4725
  allowUnknown: true,
4779
4726
  });
@@ -4798,7 +4745,7 @@ class Cart {
4798
4745
  *
4799
4746
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4800
4747
  * @param {import("../PlatformAPIClient").Options} - Options
4801
- * @returns {Promise<CartPlatformModel.SharedCartResponse>} - Success response
4748
+ * @returns {Promise<CartPlatformModel.SharedCartResult>} - Success response
4802
4749
  * @name updateCartWithSharedItems
4803
4750
  * @summary: Update shared cart items
4804
4751
  * @description: Customer can either merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartWithSharedItems/).
@@ -4859,7 +4806,7 @@ class Cart {
4859
4806
 
4860
4807
  const {
4861
4808
  error: res_error,
4862
- } = CartPlatformModel.SharedCartResponse().validate(responseData, {
4809
+ } = CartPlatformModel.SharedCartResult().validate(responseData, {
4863
4810
  abortEarly: false,
4864
4811
  allowUnknown: true,
4865
4812
  });
@@ -4882,7 +4829,7 @@ class Cart {
4882
4829
  * @param {CartPlatformApplicationValidator.UpdateCouponParam} arg - Arg object
4883
4830
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4884
4831
  * @param {import("../PlatformAPIClient").Options} - Options
4885
- * @returns {Promise<CartPlatformModel.CouponDetailResponse>} - Success response
4832
+ * @returns {Promise<CartPlatformModel.CouponCreateResult>} - Success response
4886
4833
  * @name updateCoupon
4887
4834
  * @summary: Update a coupon
4888
4835
  * @description: Update the details of an existing coupon by specifying its unique identifier. This includes modifying coupon attributes such as discount percentage, validity period, and associated conditions. Leveraging this functionality allows businesses to quickly adapt their promotional strategies to changing market dynamics. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCoupon/).
@@ -4938,7 +4885,7 @@ class Cart {
4938
4885
 
4939
4886
  const {
4940
4887
  error: res_error,
4941
- } = CartPlatformModel.CouponDetailResponse().validate(responseData, {
4888
+ } = CartPlatformModel.CouponCreateResult().validate(responseData, {
4942
4889
  abortEarly: false,
4943
4890
  allowUnknown: true,
4944
4891
  });
@@ -4965,7 +4912,7 @@ class Cart {
4965
4912
  * @param {import("../PlatformAPIClient").Options} - Options
4966
4913
  * @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
4967
4914
  * @name updateCouponPartially
4968
- * @summary: Update coupon archive state and schedule
4915
+ * @summary: Update a coupon partially
4969
4916
  * @description: Seller can make partial adjustments of an existing coupon by specifying its unique identifier. It enables businesses to modify specific attributes of the coupon while preserving other details intact. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCouponPartially/).
4970
4917
  */
4971
4918
  async updateCouponPartially(
@@ -5046,11 +4993,10 @@ class Cart {
5046
4993
  *
5047
4994
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5048
4995
  * @param {import("../PlatformAPIClient").Options} - Options
5049
- * @returns {Promise<CartPlatformModel.UpdatePriceAdjustmentResponse>} -
5050
- * Success response
4996
+ * @returns {Promise<CartPlatformModel.GetPriceAdjustmentResult>} - Success response
5051
4997
  * @name updatePriceAdjustment
5052
- * @summary: Update price adjustments.
5053
- * @description: Modify price adjustments for items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updatePriceAdjustment/).
4998
+ * @summary: Update price adjustments
4999
+ * @description: Modify price adjustments for specific items in the cart. By providing the seller ID, sales channel ID, and price adjustment ID, seller can apply discounts or other adjustments to the prices of cart items, facilitating dynamic pricing strategies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updatePriceAdjustment/).
5054
5000
  */
5055
5001
  async updatePriceAdjustment(
5056
5002
  { id, body, requestHeaders } = { requestHeaders: {} },
@@ -5105,10 +5051,10 @@ class Cart {
5105
5051
 
5106
5052
  const {
5107
5053
  error: res_error,
5108
- } = CartPlatformModel.UpdatePriceAdjustmentResponse().validate(
5109
- responseData,
5110
- { abortEarly: false, allowUnknown: true }
5111
- );
5054
+ } = CartPlatformModel.GetPriceAdjustmentResult().validate(responseData, {
5055
+ abortEarly: false,
5056
+ allowUnknown: true,
5057
+ });
5112
5058
 
5113
5059
  if (res_error) {
5114
5060
  if (this.config.options.strictResponseCheck === true) {
@@ -5213,7 +5159,7 @@ class Cart {
5213
5159
  * @param {import("../PlatformAPIClient").Options} - Options
5214
5160
  * @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
5215
5161
  * @name updatePromotionPartially
5216
- * @summary: Partially update a promotion.
5162
+ * @summary: Update a promotion partially
5217
5163
  * @description: Seller can make partial adjustments of an existing promotion by specifying its unique identifier. It enables businesses to modify specific attributes of the promotion while preserving other details intact. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updatePromotionPartially/).
5218
5164
  */
5219
5165
  async updatePromotionPartially(
@@ -5292,7 +5238,7 @@ class Cart {
5292
5238
  * @param {CartPlatformApplicationValidator.UpdateShipmentsParam} arg - Arg object
5293
5239
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5294
5240
  * @param {import("../PlatformAPIClient").Options} - Options
5295
- * @returns {Promise<CartPlatformModel.PlatformCartShipmentsResponse>} -
5241
+ * @returns {Promise<CartPlatformModel.PlatformCartShipmentsResult>} -
5296
5242
  * Success response
5297
5243
  * @name updateShipments
5298
5244
  * @summary: Update shipments
@@ -5369,10 +5315,10 @@ class Cart {
5369
5315
 
5370
5316
  const {
5371
5317
  error: res_error,
5372
- } = CartPlatformModel.PlatformCartShipmentsResponse().validate(
5373
- responseData,
5374
- { abortEarly: false, allowUnknown: true }
5375
- );
5318
+ } = CartPlatformModel.PlatformCartShipmentsResult().validate(responseData, {
5319
+ abortEarly: false,
5320
+ allowUnknown: true,
5321
+ });
5376
5322
 
5377
5323
  if (res_error) {
5378
5324
  if (this.config.options.strictResponseCheck === true) {
@@ -5401,6 +5347,7 @@ class Cart {
5401
5347
  */
5402
5348
  async validateCouponForPayment(
5403
5349
  {
5350
+ xOrderingSource,
5404
5351
  id,
5405
5352
  buyNow,
5406
5353
  addressId,
@@ -5408,11 +5355,6 @@ class Cart {
5408
5355
  paymentIdentifier,
5409
5356
  aggregatorName,
5410
5357
  merchantCode,
5411
- iin,
5412
- network,
5413
- type,
5414
- cardId,
5415
- cartType,
5416
5358
  requestHeaders,
5417
5359
  } = { requestHeaders: {} },
5418
5360
  { responseHeaders } = { responseHeaders: false }
@@ -5421,6 +5363,7 @@ class Cart {
5421
5363
  error,
5422
5364
  } = CartPlatformApplicationValidator.validateCouponForPayment().validate(
5423
5365
  {
5366
+ xOrderingSource,
5424
5367
  id,
5425
5368
  buyNow,
5426
5369
  addressId,
@@ -5428,11 +5371,6 @@ class Cart {
5428
5371
  paymentIdentifier,
5429
5372
  aggregatorName,
5430
5373
  merchantCode,
5431
- iin,
5432
- network,
5433
- type,
5434
- cardId,
5435
- cartType,
5436
5374
  },
5437
5375
  { abortEarly: false, allowUnknown: true }
5438
5376
  );
@@ -5445,6 +5383,7 @@ class Cart {
5445
5383
  error: warrning,
5446
5384
  } = CartPlatformApplicationValidator.validateCouponForPayment().validate(
5447
5385
  {
5386
+ xOrderingSource,
5448
5387
  id,
5449
5388
  buyNow,
5450
5389
  addressId,
@@ -5452,11 +5391,6 @@ class Cart {
5452
5391
  paymentIdentifier,
5453
5392
  aggregatorName,
5454
5393
  merchantCode,
5455
- iin,
5456
- network,
5457
- type,
5458
- cardId,
5459
- cartType,
5460
5394
  },
5461
5395
  { abortEarly: false, allowUnknown: false }
5462
5396
  );
@@ -5475,11 +5409,6 @@ class Cart {
5475
5409
  query_params["payment_identifier"] = paymentIdentifier;
5476
5410
  query_params["aggregator_name"] = aggregatorName;
5477
5411
  query_params["merchant_code"] = merchantCode;
5478
- query_params["iin"] = iin;
5479
- query_params["network"] = network;
5480
- query_params["type"] = type;
5481
- query_params["card_id"] = cardId;
5482
- query_params["cart_type"] = cartType;
5483
5412
 
5484
5413
  const response = await PlatformAPIClient.execute(
5485
5414
  this.config,