@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.0.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 (310) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  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 +93 -113
  6. package/sdk/application/Cart/CartApplicationClient.js +157 -530
  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 +65 -55
  16. package/sdk/application/Content/ContentApplicationClient.js +211 -341
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -33
  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 +32 -87
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +126 -383
  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 +18 -62
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +40 -372
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +99 -33
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +84 -25
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +7 -38
  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 +15 -406
  88. package/sdk/platform/Billing/BillingPlatformClient.js +76 -3214
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +459 -3798
  90. package/sdk/platform/Billing/BillingPlatformModel.js +338 -2573
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +24 -465
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +14 -490
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +205 -284
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +554 -672
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +132 -108
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +4865 -3148
  98. package/sdk/platform/Cart/CartPlatformModel.js +2071 -2854
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +419 -1015
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6444
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +226 -1117
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +127 -919
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +574 -372
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +1315 -1238
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9334 -7634
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +6980 -9652
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +239 -294
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +186 -246
  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 +236 -376
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +579 -868
  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 +314 -422
  120. package/sdk/platform/Communication/CommunicationPlatformModel.js +382 -538
  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 -68
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -84
  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 -20
  128. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +118 -333
  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 +565 -1282
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +369 -1034
  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 -246
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1297 -776
  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 +2374 -877
  146. package/sdk/platform/Content/ContentPlatformModel.js +1304 -930
  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 +421 -418
  180. package/sdk/platform/Order/OrderPlatformClient.js +1194 -1350
  181. package/sdk/platform/Order/OrderPlatformModel.d.ts +9145 -4107
  182. package/sdk/platform/Order/OrderPlatformModel.js +4257 -3197
  183. package/sdk/platform/Order/OrderPlatformValidator.d.ts +641 -442
  184. package/sdk/platform/Order/OrderPlatformValidator.js +341 -311
  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 +934 -2452
  191. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -306
  192. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -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 +1327 -3529
  196. package/sdk/platform/Payment/PaymentPlatformModel.js +1397 -3693
  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 -513
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -103
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -99
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +162 -127
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +775 -435
  213. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6250 -3861
  214. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3178 -3798
  215. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +295 -199
  216. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -133
  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 -4
  222. package/sdk/platform/Share/SharePlatformModel.js +45 -3
  223. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +4 -26
  224. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +10 -157
  225. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -21
  226. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +6 -23
  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 -2
  272. package/sdk/public/PublicClient.js +2 -2
  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 -1
  280. package/sdk/public/index.js +1 -1
  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
  305. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
  306. package/sdk/public/Billing/BillingPublicClient.js +0 -397
  307. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
  308. package/sdk/public/Billing/BillingPublicModel.js +0 -560
  309. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
  310. package/sdk/public/Billing/BillingPublicValidator.js +0 -50
@@ -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,10 +96,10 @@ 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
102
- * @description: Use this API to add items to the abandoned cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/addItems/).
101
+ * @summary: Add items to cart
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(
105
105
  { cartId, body, b, requestHeaders } = { requestHeaders: {} },
@@ -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,10 +257,10 @@ 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.
263
- * @description: Apply a selected coupon to the items in the shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/applyCoupon/).
262
+ * @summary: Apply coupon
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
266
  { body, i, b, p, id, buyNow, requestHeaders } = { requestHeaders: {} },
@@ -326,7 +326,7 @@ class Cart {
326
326
 
327
327
  const {
328
328
  error: res_error,
329
- } = CartPlatformModel.CartDetailResponse().validate(responseData, {
329
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
330
330
  abortEarly: false,
331
331
  allowUnknown: true,
332
332
  });
@@ -351,9 +351,8 @@ class Cart {
351
351
  *
352
352
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
353
353
  * @param {import("../PlatformAPIClient").Options} - Options
354
- * @returns {Promise<CartPlatformModel.OpenApiCartServiceabilityResponse>}
355
- * - Success response
356
- *
354
+ * @returns {Promise<CartPlatformModel.OpenApiCartServiceabilityResult>} -
355
+ * Success response
357
356
  * @name checkCartServiceability
358
357
  * @summary: Check cart serviceability
359
358
  * @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/).
@@ -409,7 +408,7 @@ class Cart {
409
408
 
410
409
  const {
411
410
  error: res_error,
412
- } = CartPlatformModel.OpenApiCartServiceabilityResponse().validate(
411
+ } = CartPlatformModel.OpenApiCartServiceabilityResult().validate(
413
412
  responseData,
414
413
  { abortEarly: false, allowUnknown: true }
415
414
  );
@@ -432,7 +431,7 @@ class Cart {
432
431
  * @param {CartPlatformApplicationValidator.CheckoutCartParam} arg - Arg object
433
432
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
434
433
  * @param {import("../PlatformAPIClient").Options} - Options
435
- * @returns {Promise<CartPlatformModel.OpenApiCheckoutResponse>} - Success response
434
+ * @returns {Promise<CartPlatformModel.OpenApiCheckoutResult>} - Success response
436
435
  * @name checkoutCart
437
436
  * @summary: Checkout cart
438
437
  * @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/).
@@ -486,7 +485,7 @@ class Cart {
486
485
 
487
486
  const {
488
487
  error: res_error,
489
- } = CartPlatformModel.OpenApiCheckoutResponse().validate(responseData, {
488
+ } = CartPlatformModel.OpenApiCheckoutResult().validate(responseData, {
490
489
  abortEarly: false,
491
490
  allowUnknown: true,
492
491
  });
@@ -511,9 +510,9 @@ class Cart {
511
510
  *
512
511
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
513
512
  * @param {import("../PlatformAPIClient").Options} - Options
514
- * @returns {Promise<CartPlatformModel.CartMetaConfigAddResponse>} - Success response
513
+ * @returns {Promise<CartPlatformModel.CartMetaConfigAdd>} - Success response
515
514
  * @name createCartMetaConfig
516
- * @summary: Create new cart meta configuration
515
+ * @summary: Create a new cart meta
517
516
  * @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
517
  */
519
518
  async createCartMetaConfig(
@@ -567,7 +566,7 @@ class Cart {
567
566
 
568
567
  const {
569
568
  error: res_error,
570
- } = CartPlatformModel.CartMetaConfigAddResponse().validate(responseData, {
569
+ } = CartPlatformModel.CartMetaConfigAdd().validate(responseData, {
571
570
  abortEarly: false,
572
571
  allowUnknown: true,
573
572
  });
@@ -590,10 +589,10 @@ class Cart {
590
589
  * @param {CartPlatformApplicationValidator.CreateCouponParam} arg - Arg object
591
590
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
592
591
  * @param {import("../PlatformAPIClient").Options} - Options
593
- * @returns {Promise<CartPlatformModel.CouponDetailResponse>} - Success response
592
+ * @returns {Promise<CartPlatformModel.CouponCreateResult>} - Success response
594
593
  * @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/).
594
+ * @summary: Create a coupon
595
+ * @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
596
  */
598
597
  async createCoupon(
599
598
  { body, requestHeaders } = { requestHeaders: {} },
@@ -644,7 +643,7 @@ class Cart {
644
643
 
645
644
  const {
646
645
  error: res_error,
647
- } = CartPlatformModel.CouponDetailResponse().validate(responseData, {
646
+ } = CartPlatformModel.CouponCreateResult().validate(responseData, {
648
647
  abortEarly: false,
649
648
  allowUnknown: true,
650
649
  });
@@ -667,7 +666,7 @@ class Cart {
667
666
  * @param {CartPlatformApplicationValidator.CreatePromotionParam} arg - Arg object
668
667
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
669
668
  * @param {import("../PlatformAPIClient").Options} - Options
670
- * @returns {Promise<CartPlatformModel.PromotionAdd>} - Success response
669
+ * @returns {Promise<CartPlatformModel.PromotionAddResult>} - Success response
671
670
  * @name createPromotion
672
671
  * @summary: Create a promotion
673
672
  * @description: Creates a new promotion based on the selected promotion type. Sellers can choose from multiple supported promotion types, including percentage value, fixed amount value, bundled discount, buy X get Y items, and more, along with customizable promotion criteria to meet specific business requirements. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/createPromotion/).
@@ -723,7 +722,7 @@ class Cart {
723
722
 
724
723
  const {
725
724
  error: res_error,
726
- } = CartPlatformModel.PromotionAdd().validate(responseData, {
725
+ } = CartPlatformModel.PromotionAddResult().validate(responseData, {
727
726
  abortEarly: false,
728
727
  allowUnknown: true,
729
728
  });
@@ -746,20 +745,19 @@ class Cart {
746
745
  * @param {CartPlatformApplicationValidator.DeleteCartParam} arg - Arg object
747
746
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
748
747
  * @param {import("../PlatformAPIClient").Options} - Options
749
- * @returns {Promise<CartPlatformModel.DeleteCartDetailResponse>} - Success response
748
+ * @returns {Promise<CartPlatformModel.DeleteCartDetailResult>} - Success response
750
749
  * @name deleteCart
751
- * @summary: Delete cart once user made successful checkout
752
- * @description: Use this API to delete the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deleteCart/).
750
+ * @summary: Delete a cart
751
+ * @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
752
  */
754
753
  async deleteCart(
755
- { body, id, cartType, requestHeaders } = { requestHeaders: {} },
754
+ { body, id, requestHeaders } = { requestHeaders: {} },
756
755
  { responseHeaders } = { responseHeaders: false }
757
756
  ) {
758
757
  const { error } = CartPlatformApplicationValidator.deleteCart().validate(
759
758
  {
760
759
  body,
761
760
  id,
762
- cartType,
763
761
  },
764
762
  { abortEarly: false, allowUnknown: true }
765
763
  );
@@ -774,7 +772,6 @@ class Cart {
774
772
  {
775
773
  body,
776
774
  id,
777
- cartType,
778
775
  },
779
776
  { abortEarly: false, allowUnknown: false }
780
777
  );
@@ -787,7 +784,6 @@ class Cart {
787
784
 
788
785
  const query_params = {};
789
786
  query_params["id"] = id;
790
- query_params["cart_type"] = cartType;
791
787
 
792
788
  const response = await PlatformAPIClient.execute(
793
789
  this.config,
@@ -806,7 +802,7 @@ class Cart {
806
802
 
807
803
  const {
808
804
  error: res_error,
809
- } = CartPlatformModel.DeleteCartDetailResponse().validate(responseData, {
805
+ } = CartPlatformModel.DeleteCartDetailResult().validate(responseData, {
810
806
  abortEarly: false,
811
807
  allowUnknown: true,
812
808
  });
@@ -826,25 +822,100 @@ class Cart {
826
822
  }
827
823
 
828
824
  /**
829
- * @param {CartPlatformApplicationValidator.DeleteCartMetaConfigParam} arg
830
- * - Arg object
831
- *
825
+ * @param {CartPlatformApplicationValidator.DeleteCouponParam} arg - Arg object
826
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
827
+ * @param {import("../PlatformAPIClient").Options} - Options
828
+ * @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
829
+ * @name deleteCoupon
830
+ * @summary: Delete a coupon which is in draft state
831
+ * @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/).
832
+ */
833
+ async deleteCoupon(
834
+ { id, requestHeaders } = { requestHeaders: {} },
835
+ { responseHeaders } = { responseHeaders: false }
836
+ ) {
837
+ const { error } = CartPlatformApplicationValidator.deleteCoupon().validate(
838
+ {
839
+ id,
840
+ },
841
+ { abortEarly: false, allowUnknown: true }
842
+ );
843
+ if (error) {
844
+ return Promise.reject(new FDKClientValidationError(error));
845
+ }
846
+
847
+ // Showing warrnings if extra unknown parameters are found
848
+ const {
849
+ error: warrning,
850
+ } = CartPlatformApplicationValidator.deleteCoupon().validate(
851
+ {
852
+ id,
853
+ },
854
+ { abortEarly: false, allowUnknown: false }
855
+ );
856
+ if (warrning) {
857
+ Logger({
858
+ level: "WARN",
859
+ message: `Parameter Validation warrnings for platform > Cart > deleteCoupon \n ${warrning}`,
860
+ });
861
+ }
862
+
863
+ const query_params = {};
864
+
865
+ const response = await PlatformAPIClient.execute(
866
+ this.config,
867
+ "delete",
868
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/coupon/${id}`,
869
+ query_params,
870
+ undefined,
871
+ requestHeaders,
872
+ { responseHeaders }
873
+ );
874
+
875
+ let responseData = response;
876
+ if (responseHeaders) {
877
+ responseData = response[0];
878
+ }
879
+
880
+ const {
881
+ error: res_error,
882
+ } = CartPlatformModel.SuccessMessage().validate(responseData, {
883
+ abortEarly: false,
884
+ allowUnknown: true,
885
+ });
886
+
887
+ if (res_error) {
888
+ if (this.config.options.strictResponseCheck === true) {
889
+ return Promise.reject(new FDKResponseValidationError(res_error));
890
+ } else {
891
+ Logger({
892
+ level: "WARN",
893
+ message: `Response Validation Warnings for platform > Cart > deleteCoupon \n ${res_error}`,
894
+ });
895
+ }
896
+ }
897
+
898
+ return response;
899
+ }
900
+
901
+ /**
902
+ * @param {CartPlatformApplicationValidator.DeletePromotionParam} arg - Arg object
832
903
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
833
904
  * @param {import("../PlatformAPIClient").Options} - Options
834
905
  * @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/).
906
+ * @name deletePromotion
907
+ * @summary: Delete a promotion which is in draft state
908
+ * @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
909
  */
839
- async deleteCartMetaConfig(
840
- { cartMetaId, requestHeaders } = { requestHeaders: {} },
910
+ async deletePromotion(
911
+ { id, requestHeaders } = { requestHeaders: {} },
841
912
  { responseHeaders } = { responseHeaders: false }
842
913
  ) {
843
914
  const {
844
915
  error,
845
- } = CartPlatformApplicationValidator.deleteCartMetaConfig().validate(
916
+ } = CartPlatformApplicationValidator.deletePromotion().validate(
846
917
  {
847
- cartMetaId,
918
+ id,
848
919
  },
849
920
  { abortEarly: false, allowUnknown: true }
850
921
  );
@@ -855,16 +926,16 @@ class Cart {
855
926
  // Showing warrnings if extra unknown parameters are found
856
927
  const {
857
928
  error: warrning,
858
- } = CartPlatformApplicationValidator.deleteCartMetaConfig().validate(
929
+ } = CartPlatformApplicationValidator.deletePromotion().validate(
859
930
  {
860
- cartMetaId,
931
+ id,
861
932
  },
862
933
  { abortEarly: false, allowUnknown: false }
863
934
  );
864
935
  if (warrning) {
865
936
  Logger({
866
937
  level: "WARN",
867
- message: `Parameter Validation warrnings for platform > Cart > deleteCartMetaConfig \n ${warrning}`,
938
+ message: `Parameter Validation warrnings for platform > Cart > deletePromotion \n ${warrning}`,
868
939
  });
869
940
  }
870
941
 
@@ -873,7 +944,7 @@ class Cart {
873
944
  const response = await PlatformAPIClient.execute(
874
945
  this.config,
875
946
  "delete",
876
- `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration/${cartMetaId}`,
947
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/promotion/${id}`,
877
948
  query_params,
878
949
  undefined,
879
950
  requestHeaders,
@@ -898,7 +969,7 @@ class Cart {
898
969
  } else {
899
970
  Logger({
900
971
  level: "WARN",
901
- message: `Response Validation Warnings for platform > Cart > deleteCartMetaConfig \n ${res_error}`,
972
+ message: `Response Validation Warnings for platform > Cart > deletePromotion \n ${res_error}`,
902
973
  });
903
974
  }
904
975
  }
@@ -912,7 +983,7 @@ class Cart {
912
983
  *
913
984
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
914
985
  * @param {import("../PlatformAPIClient").Options} - Options
915
- * @returns {Promise<CartPlatformModel.OpenapiCartDetailsResponse>} - Success response
986
+ * @returns {Promise<CartPlatformModel.OpenapiCartDetailsResult>} - Success response
916
987
  * @name fetchAndvalidateCartItems
917
988
  * @summary: Get and validate cart items
918
989
  * @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/).
@@ -968,7 +1039,7 @@ class Cart {
968
1039
 
969
1040
  const {
970
1041
  error: res_error,
971
- } = CartPlatformModel.OpenapiCartDetailsResponse().validate(responseData, {
1042
+ } = CartPlatformModel.OpenapiCartDetailsResult().validate(responseData, {
972
1043
  abortEarly: false,
973
1044
  allowUnknown: true,
974
1045
  });
@@ -987,11 +1058,86 @@ class Cart {
987
1058
  return response;
988
1059
  }
989
1060
 
1061
+ /**
1062
+ * @param {CartPlatformApplicationValidator.FetchCartMetaConfigParam} arg - Arg object
1063
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1064
+ * @param {import("../PlatformAPIClient").Options} - Options
1065
+ * @returns {Promise<CartPlatformModel.CartMetaConfigAdd>} - Success response
1066
+ * @name fetchCartMetaConfig
1067
+ * @summary: Get cart meta
1068
+ * @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/).
1069
+ */
1070
+ async fetchCartMetaConfig(
1071
+ { requestHeaders } = { requestHeaders: {} },
1072
+ { responseHeaders } = { responseHeaders: false }
1073
+ ) {
1074
+ const {
1075
+ error,
1076
+ } = CartPlatformApplicationValidator.fetchCartMetaConfig().validate(
1077
+ {},
1078
+ { abortEarly: false, allowUnknown: true }
1079
+ );
1080
+ if (error) {
1081
+ return Promise.reject(new FDKClientValidationError(error));
1082
+ }
1083
+
1084
+ // Showing warrnings if extra unknown parameters are found
1085
+ const {
1086
+ error: warrning,
1087
+ } = CartPlatformApplicationValidator.fetchCartMetaConfig().validate(
1088
+ {},
1089
+ { abortEarly: false, allowUnknown: false }
1090
+ );
1091
+ if (warrning) {
1092
+ Logger({
1093
+ level: "WARN",
1094
+ message: `Parameter Validation warrnings for platform > Cart > fetchCartMetaConfig \n ${warrning}`,
1095
+ });
1096
+ }
1097
+
1098
+ const query_params = {};
1099
+
1100
+ const response = await PlatformAPIClient.execute(
1101
+ this.config,
1102
+ "get",
1103
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration`,
1104
+ query_params,
1105
+ undefined,
1106
+ requestHeaders,
1107
+ { responseHeaders }
1108
+ );
1109
+
1110
+ let responseData = response;
1111
+ if (responseHeaders) {
1112
+ responseData = response[0];
1113
+ }
1114
+
1115
+ const {
1116
+ error: res_error,
1117
+ } = CartPlatformModel.CartMetaConfigAdd().validate(responseData, {
1118
+ abortEarly: false,
1119
+ allowUnknown: true,
1120
+ });
1121
+
1122
+ if (res_error) {
1123
+ if (this.config.options.strictResponseCheck === true) {
1124
+ return Promise.reject(new FDKResponseValidationError(res_error));
1125
+ } else {
1126
+ Logger({
1127
+ level: "WARN",
1128
+ message: `Response Validation Warnings for platform > Cart > fetchCartMetaConfig \n ${res_error}`,
1129
+ });
1130
+ }
1131
+ }
1132
+
1133
+ return response;
1134
+ }
1135
+
990
1136
  /**
991
1137
  * @param {CartPlatformApplicationValidator.GetAbandonedCartParam} arg - Arg object
992
1138
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
993
1139
  * @param {import("../PlatformAPIClient").Options} - Options
994
- * @returns {Promise<CartPlatformModel.AbandonedCartResponse>} - Success response
1140
+ * @returns {Promise<CartPlatformModel.AbandonedCartResult>} - Success response
995
1141
  * @name getAbandonedCart
996
1142
  * @summary: Get abandoned carts
997
1143
  * @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 +1221,7 @@ class Cart {
1075
1221
 
1076
1222
  const {
1077
1223
  error: res_error,
1078
- } = CartPlatformModel.AbandonedCartResponse().validate(responseData, {
1224
+ } = CartPlatformModel.AbandonedCartResult().validate(responseData, {
1079
1225
  abortEarly: false,
1080
1226
  allowUnknown: true,
1081
1227
  });
@@ -1094,63 +1240,13 @@ class Cart {
1094
1240
  return response;
1095
1241
  }
1096
1242
 
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
1243
  /**
1148
1244
  * @param {CartPlatformApplicationValidator.GetAbandonedCartDetailsParam} arg
1149
1245
  * - Arg object
1150
1246
  *
1151
1247
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1152
1248
  * @param {import("../PlatformAPIClient").Options} - Options
1153
- * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
1249
+ * @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
1154
1250
  * @name getAbandonedCartDetails
1155
1251
  * @summary: Get abandoned cart details
1156
1252
  * @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 +1312,7 @@ class Cart {
1216
1312
 
1217
1313
  const {
1218
1314
  error: res_error,
1219
- } = CartPlatformModel.CartDetailResponse().validate(responseData, {
1315
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
1220
1316
  abortEarly: false,
1221
1317
  allowUnknown: true,
1222
1318
  });
@@ -1241,8 +1337,8 @@ class Cart {
1241
1337
  * @param {import("../PlatformAPIClient").Options} - Options
1242
1338
  * @returns {Promise<CartPlatformModel.PlatformAddress>} - Success response
1243
1339
  * @name getAddressById
1244
- * @summary: Fetch a single address by its ID
1245
- * @description: Use this API to get an addresses using its ID. If successful, returns a Address resource in the response body specified in `PlatformAddress`. Attibutes listed below are optional mobile_no checkout_mode tags default - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAddressById/).
1340
+ * @summary: Get details for a single customer address
1341
+ * @description: Retrieve a specific customer address stored in the system by providing its unique identifier. This API provides detailed information about the address, including the recipient's name, address, city, postal code, and other relevant details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAddressById/).
1246
1342
  */
1247
1343
  async getAddressById(
1248
1344
  {
@@ -1349,11 +1445,11 @@ class Cart {
1349
1445
  * @param {CartPlatformApplicationValidator.GetAddressesParam} arg - Arg object
1350
1446
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1351
1447
  * @param {import("../PlatformAPIClient").Options} - Options
1352
- * @returns {Promise<CartPlatformModel.PlatformGetAddressesResponse>} -
1448
+ * @returns {Promise<CartPlatformModel.PlatformGetAddressesDetails>} -
1353
1449
  * Success response
1354
1450
  * @name getAddresses
1355
- * @summary: Fetch address
1356
- * @description: Use this API to get all the addresses associated with an account. If successful, returns a Address resource in the response body specified in GetAddressesResponse.attibutes listed below are optional uid address_id mobile_no checkout_mode tags default - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAddresses/).
1451
+ * @summary: Get a list of addresses for a customer
1452
+ * @description: Retrieves a list of all addresses saved by the customer, simplifying the checkout process by offering pre-saved address options for delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAddresses/).
1357
1453
  */
1358
1454
  async getAddresses(
1359
1455
  {
@@ -1432,10 +1528,10 @@ class Cart {
1432
1528
 
1433
1529
  const {
1434
1530
  error: res_error,
1435
- } = CartPlatformModel.PlatformGetAddressesResponse().validate(
1436
- responseData,
1437
- { abortEarly: false, allowUnknown: true }
1438
- );
1531
+ } = CartPlatformModel.PlatformGetAddressesDetails().validate(responseData, {
1532
+ abortEarly: false,
1533
+ allowUnknown: true,
1534
+ });
1439
1535
 
1440
1536
  if (res_error) {
1441
1537
  if (this.config.options.strictResponseCheck === true) {
@@ -1455,9 +1551,9 @@ class Cart {
1455
1551
  * @param {CartPlatformApplicationValidator.GetAppCouponsParam} arg - Arg object
1456
1552
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1457
1553
  * @param {import("../PlatformAPIClient").Options} - Options
1458
- * @returns {Promise<CartPlatformModel.GetCouponResponse>} - Success response
1554
+ * @returns {Promise<CartPlatformModel.GetCouponResult>} - Success response
1459
1555
  * @name getAppCoupons
1460
- * @summary: List coupons
1556
+ * @summary: List of coupons
1461
1557
  * @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
1558
  */
1463
1559
  async getAppCoupons(
@@ -1519,7 +1615,7 @@ class Cart {
1519
1615
 
1520
1616
  const {
1521
1617
  error: res_error,
1522
- } = CartPlatformModel.GetCouponResponse().validate(responseData, {
1618
+ } = CartPlatformModel.GetCouponResult().validate(responseData, {
1523
1619
  abortEarly: false,
1524
1620
  allowUnknown: true,
1525
1621
  });
@@ -1544,7 +1640,7 @@ class Cart {
1544
1640
  *
1545
1641
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1546
1642
  * @param {import("../PlatformAPIClient").Options} - Options
1547
- * @returns {Promise<CartPlatformModel.CartDeliveryModesResponse>} - Success response
1643
+ * @returns {Promise<CartPlatformModel.CartDeliveryModesDetails>} - Success response
1548
1644
  * @name getAvailableDeliveryModes
1549
1645
  * @summary: Get delivery modes
1550
1646
  * @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 +1700,7 @@ class Cart {
1604
1700
 
1605
1701
  const {
1606
1702
  error: res_error,
1607
- } = CartPlatformModel.CartDeliveryModesResponse().validate(responseData, {
1703
+ } = CartPlatformModel.CartDeliveryModesDetails().validate(responseData, {
1608
1704
  abortEarly: false,
1609
1705
  allowUnknown: true,
1610
1706
  });
@@ -1627,13 +1723,13 @@ class Cart {
1627
1723
  * @param {CartPlatformApplicationValidator.GetCartParam} arg - Arg object
1628
1724
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1629
1725
  * @param {import("../PlatformAPIClient").Options} - Options
1630
- * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
1726
+ * @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
1631
1727
  * @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/).
1728
+ * @summary: Get a cart
1729
+ * @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
1730
  */
1635
1731
  async getCart(
1636
- { id, userId, i, b, assignCardId, buyNow, cartType, requestHeaders } = {
1732
+ { id, userId, orderType, i, b, assignCardId, buyNow, requestHeaders } = {
1637
1733
  requestHeaders: {},
1638
1734
  },
1639
1735
  { responseHeaders } = { responseHeaders: false }
@@ -1642,11 +1738,11 @@ class Cart {
1642
1738
  {
1643
1739
  id,
1644
1740
  userId,
1741
+ orderType,
1645
1742
  i,
1646
1743
  b,
1647
1744
  assignCardId,
1648
1745
  buyNow,
1649
- cartType,
1650
1746
  },
1651
1747
  { abortEarly: false, allowUnknown: true }
1652
1748
  );
@@ -1661,11 +1757,11 @@ class Cart {
1661
1757
  {
1662
1758
  id,
1663
1759
  userId,
1760
+ orderType,
1664
1761
  i,
1665
1762
  b,
1666
1763
  assignCardId,
1667
1764
  buyNow,
1668
- cartType,
1669
1765
  },
1670
1766
  { abortEarly: false, allowUnknown: false }
1671
1767
  );
@@ -1679,180 +1775,16 @@ class Cart {
1679
1775
  const query_params = {};
1680
1776
  query_params["id"] = id;
1681
1777
  query_params["user_id"] = userId;
1778
+ query_params["order_type"] = orderType;
1682
1779
  query_params["i"] = i;
1683
1780
  query_params["b"] = b;
1684
1781
  query_params["assign_card_id"] = assignCardId;
1685
1782
  query_params["buy_now"] = buyNow;
1686
- query_params["cart_type"] = cartType;
1687
-
1688
- const response = await PlatformAPIClient.execute(
1689
- this.config,
1690
- "get",
1691
- `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/detail`,
1692
- query_params,
1693
- undefined,
1694
- requestHeaders,
1695
- { responseHeaders }
1696
- );
1697
-
1698
- let responseData = response;
1699
- if (responseHeaders) {
1700
- responseData = response[0];
1701
- }
1702
-
1703
- const {
1704
- 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: Get all carts for the store os user which is created for 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
1783
 
1772
1784
  const response = await PlatformAPIClient.execute(
1773
1785
  this.config,
1774
1786
  "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, {
1790
- 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}`,
1787
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/detail`,
1856
1788
  query_params,
1857
1789
  undefined,
1858
1790
  requestHeaders,
@@ -1866,10 +1798,10 @@ class Cart {
1866
1798
 
1867
1799
  const {
1868
1800
  error: res_error,
1869
- } = CartPlatformModel.CartMetaConfigDetailResponse().validate(
1870
- responseData,
1871
- { abortEarly: false, allowUnknown: true }
1872
- );
1801
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
1802
+ abortEarly: false,
1803
+ allowUnknown: true,
1804
+ });
1873
1805
 
1874
1806
  if (res_error) {
1875
1807
  if (this.config.options.strictResponseCheck === true) {
@@ -1877,7 +1809,7 @@ class Cart {
1877
1809
  } else {
1878
1810
  Logger({
1879
1811
  level: "WARN",
1880
- message: `Response Validation Warnings for platform > Cart > getCartMetaConfig \n ${res_error}`,
1812
+ message: `Response Validation Warnings for platform > Cart > getCart \n ${res_error}`,
1881
1813
  });
1882
1814
  }
1883
1815
  }
@@ -1886,22 +1818,24 @@ class Cart {
1886
1818
  }
1887
1819
 
1888
1820
  /**
1889
- * @param {CartPlatformApplicationValidator.GetCartMetaConfigsParam} arg - Arg object
1821
+ * @param {CartPlatformApplicationValidator.GetCartListParam} arg - Arg object
1890
1822
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1891
1823
  * @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/).
1824
+ * @returns {Promise<CartPlatformModel.MultiCartResult>} - Success response
1825
+ * @name getCartList
1826
+ * @summary: List of carts
1827
+ * @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
1828
  */
1897
- async getCartMetaConfigs(
1898
- { requestHeaders } = { requestHeaders: {} },
1829
+ async getCartList(
1830
+ { fromDate, toDate, filterOn, requestHeaders } = { requestHeaders: {} },
1899
1831
  { responseHeaders } = { responseHeaders: false }
1900
1832
  ) {
1901
- const {
1902
- error,
1903
- } = CartPlatformApplicationValidator.getCartMetaConfigs().validate(
1904
- {},
1833
+ const { error } = CartPlatformApplicationValidator.getCartList().validate(
1834
+ {
1835
+ fromDate,
1836
+ toDate,
1837
+ filterOn,
1838
+ },
1905
1839
  { abortEarly: false, allowUnknown: true }
1906
1840
  );
1907
1841
  if (error) {
@@ -1911,23 +1845,30 @@ class Cart {
1911
1845
  // Showing warrnings if extra unknown parameters are found
1912
1846
  const {
1913
1847
  error: warrning,
1914
- } = CartPlatformApplicationValidator.getCartMetaConfigs().validate(
1915
- {},
1848
+ } = CartPlatformApplicationValidator.getCartList().validate(
1849
+ {
1850
+ fromDate,
1851
+ toDate,
1852
+ filterOn,
1853
+ },
1916
1854
  { abortEarly: false, allowUnknown: false }
1917
1855
  );
1918
1856
  if (warrning) {
1919
1857
  Logger({
1920
1858
  level: "WARN",
1921
- message: `Parameter Validation warrnings for platform > Cart > getCartMetaConfigs \n ${warrning}`,
1859
+ message: `Parameter Validation warrnings for platform > Cart > getCartList \n ${warrning}`,
1922
1860
  });
1923
1861
  }
1924
1862
 
1925
1863
  const query_params = {};
1864
+ query_params["from_date"] = fromDate;
1865
+ query_params["to_date"] = toDate;
1866
+ query_params["filter_on"] = filterOn;
1926
1867
 
1927
1868
  const response = await PlatformAPIClient.execute(
1928
1869
  this.config,
1929
1870
  "get",
1930
- `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart_configuration`,
1871
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/cart-list`,
1931
1872
  query_params,
1932
1873
  undefined,
1933
1874
  requestHeaders,
@@ -1941,7 +1882,7 @@ class Cart {
1941
1882
 
1942
1883
  const {
1943
1884
  error: res_error,
1944
- } = CartPlatformModel.CartMetaConfigListResponse().validate(responseData, {
1885
+ } = CartPlatformModel.MultiCartResult().validate(responseData, {
1945
1886
  abortEarly: false,
1946
1887
  allowUnknown: true,
1947
1888
  });
@@ -1952,7 +1893,7 @@ class Cart {
1952
1893
  } else {
1953
1894
  Logger({
1954
1895
  level: "WARN",
1955
- message: `Response Validation Warnings for platform > Cart > getCartMetaConfigs \n ${res_error}`,
1896
+ message: `Response Validation Warnings for platform > Cart > getCartList \n ${res_error}`,
1956
1897
  });
1957
1898
  }
1958
1899
  }
@@ -1964,7 +1905,7 @@ class Cart {
1964
1905
  * @param {CartPlatformApplicationValidator.GetCartShareLinkParam} arg - Arg object
1965
1906
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1966
1907
  * @param {import("../PlatformAPIClient").Options} - Options
1967
- * @returns {Promise<CartPlatformModel.GetShareCartLinkResponse>} - Success response
1908
+ * @returns {Promise<CartPlatformModel.GetShareCartLinkResult>} - Success response
1968
1909
  * @name getCartShareLink
1969
1910
  * @summary: Share cart link
1970
1911
  * @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 +1961,7 @@ class Cart {
2020
1961
 
2021
1962
  const {
2022
1963
  error: res_error,
2023
- } = CartPlatformModel.GetShareCartLinkResponse().validate(responseData, {
1964
+ } = CartPlatformModel.GetShareCartLinkResult().validate(responseData, {
2024
1965
  abortEarly: false,
2025
1966
  allowUnknown: true,
2026
1967
  });
@@ -2043,10 +1984,10 @@ class Cart {
2043
1984
  * @param {CartPlatformApplicationValidator.GetCartSharedItemsParam} arg - Arg object
2044
1985
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2045
1986
  * @param {import("../PlatformAPIClient").Options} - Options
2046
- * @returns {Promise<CartPlatformModel.SharedCartResponse>} - Success response
1987
+ * @returns {Promise<CartPlatformModel.SharedCartResult>} - Success response
2047
1988
  * @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/).
1989
+ * @summary: List shared cart items
1990
+ * @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
1991
  */
2051
1992
  async getCartSharedItems(
2052
1993
  { token, requestHeaders } = { requestHeaders: {} },
@@ -2099,7 +2040,7 @@ class Cart {
2099
2040
 
2100
2041
  const {
2101
2042
  error: res_error,
2102
- } = CartPlatformModel.SharedCartResponse().validate(responseData, {
2043
+ } = CartPlatformModel.SharedCartResult().validate(responseData, {
2103
2044
  abortEarly: false,
2104
2045
  allowUnknown: true,
2105
2046
  });
@@ -2124,7 +2065,7 @@ class Cart {
2124
2065
  * @param {import("../PlatformAPIClient").Options} - Options
2125
2066
  * @returns {Promise<CartPlatformModel.CouponUpdate>} - Success response
2126
2067
  * @name getCouponById
2127
- * @summary: Get coupon details by ID
2068
+ * @summary: Get a coupon
2128
2069
  * @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
2070
  */
2130
2071
  async getCouponById(
@@ -2201,8 +2142,8 @@ class Cart {
2201
2142
  * @param {import("../PlatformAPIClient").Options} - Options
2202
2143
  * @returns {Promise<Object>} - Success response
2203
2144
  * @name getCouponCodeExists
2204
- * @summary: Check if coupon is already created with coupon code
2205
- * @description: Check if sent coupon code is already existing coupon code. As coupon code is to be unique. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponCodeExists/).
2145
+ * @summary: Check coupon code exists
2146
+ * @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
2147
  */
2207
2148
  async getCouponCodeExists(
2208
2149
  { code, requestHeaders } = { requestHeaders: {} },
@@ -2279,10 +2220,10 @@ class Cart {
2279
2220
  *
2280
2221
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2281
2222
  * @param {import("../PlatformAPIClient").Options} - Options
2282
- * @returns {Promise<CartPlatformModel.CouponOptions>} - Success response
2223
+ * @returns {Promise<Object>} - Success response
2283
2224
  * @name getCouponOptionValues
2284
- * @summary: Get coupon options enums with display values
2285
- * @description: Get coupon enum values for fields in valid coupon object. Used for front end to create, update and filter coupon lists via fields - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCouponOptionValues/).
2225
+ * @summary: Get coupon option values
2226
+ * @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/).
2286
2227
  */
2287
2228
  async getCouponOptionValues(
2288
2229
  { requestHeaders } = { requestHeaders: {} },
@@ -2329,9 +2270,7 @@ class Cart {
2329
2270
  responseData = response[0];
2330
2271
  }
2331
2272
 
2332
- const {
2333
- error: res_error,
2334
- } = CartPlatformModel.CouponOptions().validate(responseData, {
2273
+ const { error: res_error } = Joi.any().validate(responseData, {
2335
2274
  abortEarly: false,
2336
2275
  allowUnknown: true,
2337
2276
  });
@@ -2350,87 +2289,14 @@ class Cart {
2350
2289
  return response;
2351
2290
  }
2352
2291
 
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
2292
  /**
2427
2293
  * @param {CartPlatformApplicationValidator.GetCouponsParam} arg - Arg object
2428
2294
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2429
2295
  * @param {import("../PlatformAPIClient").Options} - Options
2430
- * @returns {Promise<CartPlatformModel.CouponsResponse>} - Success response
2296
+ * @returns {Promise<CartPlatformModel.CouponsResult>} - Success response
2431
2297
  * @name getCoupons
2432
- * @summary: Retrieve available coupons.
2433
- * @description: Retrieve a list of available coupons for use in the shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCoupons/).
2298
+ * @summary: List of coupons
2299
+ * @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
2300
  */
2435
2301
  async getCoupons(
2436
2302
  {
@@ -2442,6 +2308,13 @@ class Cart {
2442
2308
  isDisplay,
2443
2309
  typeSlug,
2444
2310
  code,
2311
+ createdBy,
2312
+ reviewedBy,
2313
+ approvedStartTime,
2314
+ approvedEndTime,
2315
+ reviewStartTime,
2316
+ reviewEndTime,
2317
+ status,
2445
2318
  requestHeaders,
2446
2319
  } = { requestHeaders: {} },
2447
2320
  { responseHeaders } = { responseHeaders: false }
@@ -2456,6 +2329,13 @@ class Cart {
2456
2329
  isDisplay,
2457
2330
  typeSlug,
2458
2331
  code,
2332
+ createdBy,
2333
+ reviewedBy,
2334
+ approvedStartTime,
2335
+ approvedEndTime,
2336
+ reviewStartTime,
2337
+ reviewEndTime,
2338
+ status,
2459
2339
  },
2460
2340
  { abortEarly: false, allowUnknown: true }
2461
2341
  );
@@ -2476,6 +2356,13 @@ class Cart {
2476
2356
  isDisplay,
2477
2357
  typeSlug,
2478
2358
  code,
2359
+ createdBy,
2360
+ reviewedBy,
2361
+ approvedStartTime,
2362
+ approvedEndTime,
2363
+ reviewStartTime,
2364
+ reviewEndTime,
2365
+ status,
2479
2366
  },
2480
2367
  { abortEarly: false, allowUnknown: false }
2481
2368
  );
@@ -2495,6 +2382,13 @@ class Cart {
2495
2382
  query_params["is_display"] = isDisplay;
2496
2383
  query_params["type_slug"] = typeSlug;
2497
2384
  query_params["code"] = code;
2385
+ query_params["created_by"] = createdBy;
2386
+ query_params["reviewed_by"] = reviewedBy;
2387
+ query_params["approved_start_time"] = approvedStartTime;
2388
+ query_params["approved_end_time"] = approvedEndTime;
2389
+ query_params["review_start_time"] = reviewStartTime;
2390
+ query_params["review_end_time"] = reviewEndTime;
2391
+ query_params["status"] = status;
2498
2392
 
2499
2393
  const response = await PlatformAPIClient.execute(
2500
2394
  this.config,
@@ -2513,7 +2407,7 @@ class Cart {
2513
2407
 
2514
2408
  const {
2515
2409
  error: res_error,
2516
- } = CartPlatformModel.CouponsResponse().validate(responseData, {
2410
+ } = CartPlatformModel.CouponsResult().validate(responseData, {
2517
2411
  abortEarly: false,
2518
2412
  allowUnknown: true,
2519
2413
  });
@@ -2532,77 +2426,23 @@ class Cart {
2532
2426
  return response;
2533
2427
  }
2534
2428
 
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 available coupons for use in the shopping cart.
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
2429
  /**
2589
2430
  * @param {CartPlatformApplicationValidator.GetItemCountParam} arg - Arg object
2590
2431
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2591
2432
  * @param {import("../PlatformAPIClient").Options} - Options
2592
- * @returns {Promise<CartPlatformModel.CartItemCountResponse>} - Success response
2433
+ * @returns {Promise<CartPlatformModel.CartItemCountResult>} - Success response
2593
2434
  * @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/).
2435
+ * @summary: Get a cart items count
2436
+ * @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
2437
  */
2597
2438
  async getItemCount(
2598
- { id, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
2439
+ { id, buyNow, requestHeaders } = { requestHeaders: {} },
2599
2440
  { responseHeaders } = { responseHeaders: false }
2600
2441
  ) {
2601
2442
  const { error } = CartPlatformApplicationValidator.getItemCount().validate(
2602
2443
  {
2603
2444
  id,
2604
2445
  buyNow,
2605
- cartType,
2606
2446
  },
2607
2447
  { abortEarly: false, allowUnknown: true }
2608
2448
  );
@@ -2617,7 +2457,6 @@ class Cart {
2617
2457
  {
2618
2458
  id,
2619
2459
  buyNow,
2620
- cartType,
2621
2460
  },
2622
2461
  { abortEarly: false, allowUnknown: false }
2623
2462
  );
@@ -2631,7 +2470,6 @@ class Cart {
2631
2470
  const query_params = {};
2632
2471
  query_params["id"] = id;
2633
2472
  query_params["buy_now"] = buyNow;
2634
- query_params["cart_type"] = cartType;
2635
2473
 
2636
2474
  const response = await PlatformAPIClient.execute(
2637
2475
  this.config,
@@ -2650,7 +2488,7 @@ class Cart {
2650
2488
 
2651
2489
  const {
2652
2490
  error: res_error,
2653
- } = CartPlatformModel.CartItemCountResponse().validate(responseData, {
2491
+ } = CartPlatformModel.CartItemCountResult().validate(responseData, {
2654
2492
  abortEarly: false,
2655
2493
  allowUnknown: true,
2656
2494
  });
@@ -2673,7 +2511,7 @@ class Cart {
2673
2511
  * @param {CartPlatformApplicationValidator.GetPriceAdjustmentsParam} arg - Arg object
2674
2512
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2675
2513
  * @param {import("../PlatformAPIClient").Options} - Options
2676
- * @returns {Promise<CartPlatformModel.PriceAdjustmentResponse>} - Success response
2514
+ * @returns {Promise<CartPlatformModel.GetPriceAdjustmentResult>} - Success response
2677
2515
  * @name getPriceAdjustments
2678
2516
  * @summary: Get a list of all price adjustments associated with a cart
2679
2517
  * @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 +2568,7 @@ class Cart {
2730
2568
 
2731
2569
  const {
2732
2570
  error: res_error,
2733
- } = CartPlatformModel.PriceAdjustmentResponse().validate(responseData, {
2571
+ } = CartPlatformModel.GetPriceAdjustmentResult().validate(responseData, {
2734
2572
  abortEarly: false,
2735
2573
  allowUnknown: true,
2736
2574
  });
@@ -2755,7 +2593,7 @@ class Cart {
2755
2593
  *
2756
2594
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2757
2595
  * @param {import("../PlatformAPIClient").Options} - Options
2758
- * @returns {Promise<CartPlatformModel.ActivePromosResponse>} - Success response
2596
+ * @returns {Promise<CartPlatformModel.ActivePromosResult>} - Success response
2759
2597
  * @name getPromosCouponConfig
2760
2598
  * @summary: Get promotion and coupon type
2761
2599
  * @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 +2653,7 @@ class Cart {
2815
2653
 
2816
2654
  const {
2817
2655
  error: res_error,
2818
- } = CartPlatformModel.ActivePromosResponse().validate(responseData, {
2656
+ } = CartPlatformModel.ActivePromosResult().validate(responseData, {
2819
2657
  abortEarly: false,
2820
2658
  allowUnknown: true,
2821
2659
  });
@@ -2838,9 +2676,9 @@ class Cart {
2838
2676
  * @param {CartPlatformApplicationValidator.GetPromotionByIdParam} arg - Arg object
2839
2677
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2840
2678
  * @param {import("../PlatformAPIClient").Options} - Options
2841
- * @returns {Promise<CartPlatformModel.PromotionUpdate>} - Success response
2679
+ * @returns {Promise<CartPlatformModel.PromotionUpdateResult>} - Success response
2842
2680
  * @name getPromotionById
2843
- * @summary: Get a promotion
2681
+ * @summary: Get a specific promotion
2844
2682
  * @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
2683
  */
2846
2684
  async getPromotionById(
@@ -2894,7 +2732,7 @@ class Cart {
2894
2732
 
2895
2733
  const {
2896
2734
  error: res_error,
2897
- } = CartPlatformModel.PromotionUpdate().validate(responseData, {
2735
+ } = CartPlatformModel.PromotionUpdateResult().validate(responseData, {
2898
2736
  abortEarly: false,
2899
2737
  allowUnknown: true,
2900
2738
  });
@@ -2921,8 +2759,8 @@ class Cart {
2921
2759
  * @param {import("../PlatformAPIClient").Options} - Options
2922
2760
  * @returns {Promise<Object>} - Success response
2923
2761
  * @name getPromotionCodeExists
2924
- * @summary: Check if promotion is already created with promotion code
2925
- * @description: Check if sent promotion code is already existing promotion code. As promotion code is to be unique. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionCodeExists/).
2762
+ * @summary: Check promotion code exists
2763
+ * @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
2764
  */
2927
2765
  async getPromotionCodeExists(
2928
2766
  { code, requestHeaders } = { requestHeaders: {} },
@@ -2994,22 +2832,30 @@ class Cart {
2994
2832
  }
2995
2833
 
2996
2834
  /**
2997
- * @param {CartPlatformApplicationValidator.GetPromotionTagsParam} arg - Arg object
2835
+ * @param {CartPlatformApplicationValidator.GetPromotionOffersParam} arg - Arg object
2998
2836
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2999
2837
  * @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/).
2838
+ * @returns {Promise<CartPlatformModel.PromotionOffersDetails>} - Success response
2839
+ * @name getPromotionOffers
2840
+ * @summary: List of all available promotion offers
2841
+ * @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
2842
  */
3005
- async getPromotionTags(
3006
- { requestHeaders } = { requestHeaders: {} },
2843
+ async getPromotionOffers(
2844
+ { slug, pageSize, promotionGroup, storeId, cartType, requestHeaders } = {
2845
+ requestHeaders: {},
2846
+ },
3007
2847
  { responseHeaders } = { responseHeaders: false }
3008
2848
  ) {
3009
2849
  const {
3010
2850
  error,
3011
- } = CartPlatformApplicationValidator.getPromotionTags().validate(
3012
- {},
2851
+ } = CartPlatformApplicationValidator.getPromotionOffers().validate(
2852
+ {
2853
+ slug,
2854
+ pageSize,
2855
+ promotionGroup,
2856
+ storeId,
2857
+ cartType,
2858
+ },
3013
2859
  { abortEarly: false, allowUnknown: true }
3014
2860
  );
3015
2861
  if (error) {
@@ -3019,23 +2865,34 @@ class Cart {
3019
2865
  // Showing warrnings if extra unknown parameters are found
3020
2866
  const {
3021
2867
  error: warrning,
3022
- } = CartPlatformApplicationValidator.getPromotionTags().validate(
3023
- {},
2868
+ } = CartPlatformApplicationValidator.getPromotionOffers().validate(
2869
+ {
2870
+ slug,
2871
+ pageSize,
2872
+ promotionGroup,
2873
+ storeId,
2874
+ cartType,
2875
+ },
3024
2876
  { abortEarly: false, allowUnknown: false }
3025
2877
  );
3026
2878
  if (warrning) {
3027
2879
  Logger({
3028
2880
  level: "WARN",
3029
- message: `Parameter Validation warrnings for platform > Cart > getPromotionTags \n ${warrning}`,
2881
+ message: `Parameter Validation warrnings for platform > Cart > getPromotionOffers \n ${warrning}`,
3030
2882
  });
3031
2883
  }
3032
2884
 
3033
2885
  const query_params = {};
2886
+ query_params["slug"] = slug;
2887
+ query_params["page_size"] = pageSize;
2888
+ query_params["promotion_group"] = promotionGroup;
2889
+ query_params["store_id"] = storeId;
2890
+ query_params["cart_type"] = cartType;
3034
2891
 
3035
2892
  const response = await PlatformAPIClient.execute(
3036
2893
  this.config,
3037
2894
  "get",
3038
- `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/promo-tags`,
2895
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/available-promotions`,
3039
2896
  query_params,
3040
2897
  undefined,
3041
2898
  requestHeaders,
@@ -3049,7 +2906,7 @@ class Cart {
3049
2906
 
3050
2907
  const {
3051
2908
  error: res_error,
3052
- } = CartPlatformModel.TagsViewResponse().validate(responseData, {
2909
+ } = CartPlatformModel.PromotionOffersDetails().validate(responseData, {
3053
2910
  abortEarly: false,
3054
2911
  allowUnknown: true,
3055
2912
  });
@@ -3060,7 +2917,93 @@ class Cart {
3060
2917
  } else {
3061
2918
  Logger({
3062
2919
  level: "WARN",
3063
- message: `Response Validation Warnings for platform > Cart > getPromotionTags \n ${res_error}`,
2920
+ message: `Response Validation Warnings for platform > Cart > getPromotionOffers \n ${res_error}`,
2921
+ });
2922
+ }
2923
+ }
2924
+
2925
+ return response;
2926
+ }
2927
+
2928
+ /**
2929
+ * @param {CartPlatformApplicationValidator.GetPromotionPaymentOffersParam} arg
2930
+ * - Arg object
2931
+ *
2932
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2933
+ * @param {import("../PlatformAPIClient").Options} - Options
2934
+ * @returns {Promise<CartPlatformModel.PromotionPaymentOffersDetails>} -
2935
+ * Success response
2936
+ * @name getPromotionPaymentOffers
2937
+ * @summary: Fetch available promotions payment offers
2938
+ * @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/).
2939
+ */
2940
+ async getPromotionPaymentOffers(
2941
+ { id, uid, requestHeaders } = { requestHeaders: {} },
2942
+ { responseHeaders } = { responseHeaders: false }
2943
+ ) {
2944
+ const {
2945
+ error,
2946
+ } = CartPlatformApplicationValidator.getPromotionPaymentOffers().validate(
2947
+ {
2948
+ id,
2949
+ uid,
2950
+ },
2951
+ { abortEarly: false, allowUnknown: true }
2952
+ );
2953
+ if (error) {
2954
+ return Promise.reject(new FDKClientValidationError(error));
2955
+ }
2956
+
2957
+ // Showing warrnings if extra unknown parameters are found
2958
+ const {
2959
+ error: warrning,
2960
+ } = CartPlatformApplicationValidator.getPromotionPaymentOffers().validate(
2961
+ {
2962
+ id,
2963
+ uid,
2964
+ },
2965
+ { abortEarly: false, allowUnknown: false }
2966
+ );
2967
+ if (warrning) {
2968
+ Logger({
2969
+ level: "WARN",
2970
+ message: `Parameter Validation warrnings for platform > Cart > getPromotionPaymentOffers \n ${warrning}`,
2971
+ });
2972
+ }
2973
+
2974
+ const query_params = {};
2975
+ query_params["id"] = id;
2976
+ query_params["uid"] = uid;
2977
+
2978
+ const response = await PlatformAPIClient.execute(
2979
+ this.config,
2980
+ "get",
2981
+ `/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/available-payment-offers`,
2982
+ query_params,
2983
+ undefined,
2984
+ requestHeaders,
2985
+ { responseHeaders }
2986
+ );
2987
+
2988
+ let responseData = response;
2989
+ if (responseHeaders) {
2990
+ responseData = response[0];
2991
+ }
2992
+
2993
+ const {
2994
+ error: res_error,
2995
+ } = CartPlatformModel.PromotionPaymentOffersDetails().validate(
2996
+ responseData,
2997
+ { abortEarly: false, allowUnknown: true }
2998
+ );
2999
+
3000
+ if (res_error) {
3001
+ if (this.config.options.strictResponseCheck === true) {
3002
+ return Promise.reject(new FDKResponseValidationError(res_error));
3003
+ } else {
3004
+ Logger({
3005
+ level: "WARN",
3006
+ message: `Response Validation Warnings for platform > Cart > getPromotionPaymentOffers \n ${res_error}`,
3064
3007
  });
3065
3008
  }
3066
3009
  }
@@ -3072,9 +3015,9 @@ class Cart {
3072
3015
  * @param {CartPlatformApplicationValidator.GetPromotionsParam} arg - Arg object
3073
3016
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3074
3017
  * @param {import("../PlatformAPIClient").Options} - Options
3075
- * @returns {Promise<CartPlatformModel.PromotionsResponse>} - Success response
3018
+ * @returns {Promise<CartPlatformModel.PromotionsResult>} - Success response
3076
3019
  * @name getPromotions
3077
- * @summary: List promotions
3020
+ * @summary: List of promotions
3078
3021
  * @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
3022
  */
3080
3023
  async getPromotions(
@@ -3087,6 +3030,13 @@ class Cart {
3087
3030
  promotionType,
3088
3031
  fpPanel,
3089
3032
  promotionId,
3033
+ createdBy,
3034
+ reviewedBy,
3035
+ approvedStartTime,
3036
+ approvedEndTime,
3037
+ reviewStartTime,
3038
+ reviewEndTime,
3039
+ status,
3090
3040
  requestHeaders,
3091
3041
  } = { requestHeaders: {} },
3092
3042
  { responseHeaders } = { responseHeaders: false }
@@ -3101,6 +3051,13 @@ class Cart {
3101
3051
  promotionType,
3102
3052
  fpPanel,
3103
3053
  promotionId,
3054
+ createdBy,
3055
+ reviewedBy,
3056
+ approvedStartTime,
3057
+ approvedEndTime,
3058
+ reviewStartTime,
3059
+ reviewEndTime,
3060
+ status,
3104
3061
  },
3105
3062
  { abortEarly: false, allowUnknown: true }
3106
3063
  );
@@ -3121,6 +3078,13 @@ class Cart {
3121
3078
  promotionType,
3122
3079
  fpPanel,
3123
3080
  promotionId,
3081
+ createdBy,
3082
+ reviewedBy,
3083
+ approvedStartTime,
3084
+ approvedEndTime,
3085
+ reviewStartTime,
3086
+ reviewEndTime,
3087
+ status,
3124
3088
  },
3125
3089
  { abortEarly: false, allowUnknown: false }
3126
3090
  );
@@ -3140,6 +3104,13 @@ class Cart {
3140
3104
  query_params["promotion_type"] = promotionType;
3141
3105
  query_params["fp_panel"] = fpPanel;
3142
3106
  query_params["promotion_id"] = promotionId;
3107
+ query_params["created_by"] = createdBy;
3108
+ query_params["reviewed_by"] = reviewedBy;
3109
+ query_params["approved_start_time"] = approvedStartTime;
3110
+ query_params["approved_end_time"] = approvedEndTime;
3111
+ query_params["review_start_time"] = reviewStartTime;
3112
+ query_params["review_end_time"] = reviewEndTime;
3113
+ query_params["status"] = status;
3143
3114
 
3144
3115
  const response = await PlatformAPIClient.execute(
3145
3116
  this.config,
@@ -3158,7 +3129,7 @@ class Cart {
3158
3129
 
3159
3130
  const {
3160
3131
  error: res_error,
3161
- } = CartPlatformModel.PromotionsResponse().validate(responseData, {
3132
+ } = CartPlatformModel.PromotionsResult().validate(responseData, {
3162
3133
  abortEarly: false,
3163
3134
  allowUnknown: true,
3164
3135
  });
@@ -3177,64 +3148,11 @@ class Cart {
3177
3148
  return response;
3178
3149
  }
3179
3150
 
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
3151
  /**
3234
3152
  * @param {CartPlatformApplicationValidator.GetShipmentsParam} arg - Arg object
3235
3153
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3236
3154
  * @param {import("../PlatformAPIClient").Options} - Options
3237
- * @returns {Promise<CartPlatformModel.PlatformCartShipmentsResponse>} -
3155
+ * @returns {Promise<CartPlatformModel.PlatformCartShipmentsResult>} -
3238
3156
  * Success response
3239
3157
  * @name getShipments
3240
3158
  * @summary: Get shipments details
@@ -3321,10 +3239,10 @@ class Cart {
3321
3239
 
3322
3240
  const {
3323
3241
  error: res_error,
3324
- } = CartPlatformModel.PlatformCartShipmentsResponse().validate(
3325
- responseData,
3326
- { abortEarly: false, allowUnknown: true }
3327
- );
3242
+ } = CartPlatformModel.PlatformCartShipmentsResult().validate(responseData, {
3243
+ abortEarly: false,
3244
+ allowUnknown: true,
3245
+ });
3328
3246
 
3329
3247
  if (res_error) {
3330
3248
  if (this.config.options.strictResponseCheck === true) {
@@ -3346,7 +3264,7 @@ class Cart {
3346
3264
  *
3347
3265
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3348
3266
  * @param {import("../PlatformAPIClient").Options} - Options
3349
- * @returns {Promise<CartPlatformModel.StoreDetailsResponse>} - Success response
3267
+ * @returns {Promise<CartPlatformModel.StoreDetails>} - Success response
3350
3268
  * @name getStoreAddressByUid
3351
3269
  * @summary: Get Store Address
3352
3270
  * @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 +3321,7 @@ class Cart {
3403
3321
 
3404
3322
  const {
3405
3323
  error: res_error,
3406
- } = CartPlatformModel.StoreDetailsResponse().validate(responseData, {
3324
+ } = CartPlatformModel.StoreDetails().validate(responseData, {
3407
3325
  abortEarly: false,
3408
3326
  allowUnknown: true,
3409
3327
  });
@@ -3426,10 +3344,10 @@ class Cart {
3426
3344
  * @param {CartPlatformApplicationValidator.OverrideCartParam} arg - Arg object
3427
3345
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3428
3346
  * @param {import("../PlatformAPIClient").Options} - Options
3429
- * @returns {Promise<CartPlatformModel.OverrideCheckoutResponse>} - Success response
3347
+ * @returns {Promise<CartPlatformModel.OverrideCheckoutResult>} - Success response
3430
3348
  * @name overrideCart
3431
- * @summary: Create Fynd order with overriding cart details
3432
- * @description: Generate Fynd order while overriding cart details sent with provided `cart_items` - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/overrideCart/).
3349
+ * @summary: Update cart checkout
3350
+ * @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
3351
  */
3434
3352
  async overrideCart(
3435
3353
  { body, requestHeaders } = { requestHeaders: {} },
@@ -3480,7 +3398,7 @@ class Cart {
3480
3398
 
3481
3399
  const {
3482
3400
  error: res_error,
3483
- } = CartPlatformModel.OverrideCheckoutResponse().validate(responseData, {
3401
+ } = CartPlatformModel.OverrideCheckoutResult().validate(responseData, {
3484
3402
  abortEarly: false,
3485
3403
  allowUnknown: true,
3486
3404
  });
@@ -3503,13 +3421,13 @@ class Cart {
3503
3421
  * @param {CartPlatformApplicationValidator.PlatformAddItemsParam} arg - Arg object
3504
3422
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3505
3423
  * @param {import("../PlatformAPIClient").Options} - Options
3506
- * @returns {Promise<CartPlatformModel.AddCartDetailResponse>} - Success response
3424
+ * @returns {Promise<CartPlatformModel.AddCartDetailResult>} - Success response
3507
3425
  * @name platformAddItems
3508
3426
  * @summary: Add items to cart
3509
3427
  * @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
3428
  */
3511
3429
  async platformAddItems(
3512
- { body, i, b, buyNow, id, cartType, requestHeaders } = {
3430
+ { body, i, b, buyNow, orderType, id, requestHeaders } = {
3513
3431
  requestHeaders: {},
3514
3432
  },
3515
3433
  { responseHeaders } = { responseHeaders: false }
@@ -3522,8 +3440,8 @@ class Cart {
3522
3440
  i,
3523
3441
  b,
3524
3442
  buyNow,
3443
+ orderType,
3525
3444
  id,
3526
- cartType,
3527
3445
  },
3528
3446
  { abortEarly: false, allowUnknown: true }
3529
3447
  );
@@ -3540,8 +3458,8 @@ class Cart {
3540
3458
  i,
3541
3459
  b,
3542
3460
  buyNow,
3461
+ orderType,
3543
3462
  id,
3544
- cartType,
3545
3463
  },
3546
3464
  { abortEarly: false, allowUnknown: false }
3547
3465
  );
@@ -3556,8 +3474,8 @@ class Cart {
3556
3474
  query_params["i"] = i;
3557
3475
  query_params["b"] = b;
3558
3476
  query_params["buy_now"] = buyNow;
3477
+ query_params["order_type"] = orderType;
3559
3478
  query_params["id"] = id;
3560
- query_params["cart_type"] = cartType;
3561
3479
 
3562
3480
  const response = await PlatformAPIClient.execute(
3563
3481
  this.config,
@@ -3576,7 +3494,7 @@ class Cart {
3576
3494
 
3577
3495
  const {
3578
3496
  error: res_error,
3579
- } = CartPlatformModel.AddCartDetailResponse().validate(responseData, {
3497
+ } = CartPlatformModel.AddCartDetailResult().validate(responseData, {
3580
3498
  abortEarly: false,
3581
3499
  allowUnknown: true,
3582
3500
  });
@@ -3601,13 +3519,13 @@ class Cart {
3601
3519
  *
3602
3520
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3603
3521
  * @param {import("../PlatformAPIClient").Options} - Options
3604
- * @returns {Promise<CartPlatformModel.CartCheckoutResponse>} - Success response
3522
+ * @returns {Promise<CartPlatformModel.CartCheckoutResult>} - Success response
3605
3523
  * @name platformCheckoutCart
3606
3524
  * @summary: Checkout cart
3607
3525
  * @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
3526
  */
3609
3527
  async platformCheckoutCart(
3610
- { body, id, cartType, requestHeaders } = { requestHeaders: {} },
3528
+ { body, id, requestHeaders } = { requestHeaders: {} },
3611
3529
  { responseHeaders } = { responseHeaders: false }
3612
3530
  ) {
3613
3531
  const {
@@ -3616,7 +3534,6 @@ class Cart {
3616
3534
  {
3617
3535
  body,
3618
3536
  id,
3619
- cartType,
3620
3537
  },
3621
3538
  { abortEarly: false, allowUnknown: true }
3622
3539
  );
@@ -3631,7 +3548,6 @@ class Cart {
3631
3548
  {
3632
3549
  body,
3633
3550
  id,
3634
- cartType,
3635
3551
  },
3636
3552
  { abortEarly: false, allowUnknown: false }
3637
3553
  );
@@ -3644,7 +3560,6 @@ class Cart {
3644
3560
 
3645
3561
  const query_params = {};
3646
3562
  query_params["id"] = id;
3647
- query_params["cart_type"] = cartType;
3648
3563
 
3649
3564
  const response = await PlatformAPIClient.execute(
3650
3565
  this.config,
@@ -3663,7 +3578,7 @@ class Cart {
3663
3578
 
3664
3579
  const {
3665
3580
  error: res_error,
3666
- } = CartPlatformModel.CartCheckoutResponse().validate(responseData, {
3581
+ } = CartPlatformModel.CartCheckoutResult().validate(responseData, {
3667
3582
  abortEarly: false,
3668
3583
  allowUnknown: true,
3669
3584
  });
@@ -3688,13 +3603,13 @@ class Cart {
3688
3603
  *
3689
3604
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3690
3605
  * @param {import("../PlatformAPIClient").Options} - Options
3691
- * @returns {Promise<CartPlatformModel.CartCheckoutResponse>} - Success response
3606
+ * @returns {Promise<CartPlatformModel.CartCheckoutDetails>} - Success response
3692
3607
  * @name platformCheckoutCartV2
3693
- * @summary: Cart checkout (latest)
3694
- * @description: Checkout process that supports multiple MOP(mode of payment). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/platformCheckoutCartV2/).
3608
+ * @summary: Checkout cart
3609
+ * @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
3610
  */
3696
3611
  async platformCheckoutCartV2(
3697
- { body, id, cartType, requestHeaders } = { requestHeaders: {} },
3612
+ { body, id, requestHeaders } = { requestHeaders: {} },
3698
3613
  { responseHeaders } = { responseHeaders: false }
3699
3614
  ) {
3700
3615
  const {
@@ -3703,7 +3618,6 @@ class Cart {
3703
3618
  {
3704
3619
  body,
3705
3620
  id,
3706
- cartType,
3707
3621
  },
3708
3622
  { abortEarly: false, allowUnknown: true }
3709
3623
  );
@@ -3718,7 +3632,6 @@ class Cart {
3718
3632
  {
3719
3633
  body,
3720
3634
  id,
3721
- cartType,
3722
3635
  },
3723
3636
  { abortEarly: false, allowUnknown: false }
3724
3637
  );
@@ -3731,7 +3644,6 @@ class Cart {
3731
3644
 
3732
3645
  const query_params = {};
3733
3646
  query_params["id"] = id;
3734
- query_params["cart_type"] = cartType;
3735
3647
 
3736
3648
  const response = await PlatformAPIClient.execute(
3737
3649
  this.config,
@@ -3750,7 +3662,7 @@ class Cart {
3750
3662
 
3751
3663
  const {
3752
3664
  error: res_error,
3753
- } = CartPlatformModel.CartCheckoutResponse().validate(responseData, {
3665
+ } = CartPlatformModel.CartCheckoutDetails().validate(responseData, {
3754
3666
  abortEarly: false,
3755
3667
  allowUnknown: true,
3756
3668
  });
@@ -3773,13 +3685,13 @@ class Cart {
3773
3685
  * @param {CartPlatformApplicationValidator.PlatformUpdateCartParam} arg - Arg object
3774
3686
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3775
3687
  * @param {import("../PlatformAPIClient").Options} - Options
3776
- * @returns {Promise<CartPlatformModel.UpdateCartDetailResponse>} - Success response
3688
+ * @returns {Promise<CartPlatformModel.UpdateCartDetailResult>} - Success response
3777
3689
  * @name platformUpdateCart
3778
3690
  * @summary: Update cart items
3779
3691
  * @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
3692
  */
3781
3693
  async platformUpdateCart(
3782
- { body, id, i, orderType, b, buyNow, cartType, requestHeaders } = {
3694
+ { body, id, i, orderType, b, buyNow, requestHeaders } = {
3783
3695
  requestHeaders: {},
3784
3696
  },
3785
3697
  { responseHeaders } = { responseHeaders: false }
@@ -3794,7 +3706,6 @@ class Cart {
3794
3706
  orderType,
3795
3707
  b,
3796
3708
  buyNow,
3797
- cartType,
3798
3709
  },
3799
3710
  { abortEarly: false, allowUnknown: true }
3800
3711
  );
@@ -3813,7 +3724,6 @@ class Cart {
3813
3724
  orderType,
3814
3725
  b,
3815
3726
  buyNow,
3816
- cartType,
3817
3727
  },
3818
3728
  { abortEarly: false, allowUnknown: false }
3819
3729
  );
@@ -3830,7 +3740,6 @@ class Cart {
3830
3740
  query_params["order_type"] = orderType;
3831
3741
  query_params["b"] = b;
3832
3742
  query_params["buy_now"] = buyNow;
3833
- query_params["cart_type"] = cartType;
3834
3743
 
3835
3744
  const response = await PlatformAPIClient.execute(
3836
3745
  this.config,
@@ -3849,7 +3758,7 @@ class Cart {
3849
3758
 
3850
3759
  const {
3851
3760
  error: res_error,
3852
- } = CartPlatformModel.UpdateCartDetailResponse().validate(responseData, {
3761
+ } = CartPlatformModel.UpdateCartDetailResult().validate(responseData, {
3853
3762
  abortEarly: false,
3854
3763
  allowUnknown: true,
3855
3764
  });
@@ -3872,10 +3781,10 @@ class Cart {
3872
3781
  * @param {CartPlatformApplicationValidator.RemoveAddressParam} arg - Arg object
3873
3782
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3874
3783
  * @param {import("../PlatformAPIClient").Options} - Options
3875
- * @returns {Promise<CartPlatformModel.DeleteAddressResponse>} - Success response
3784
+ * @returns {Promise<CartPlatformModel.DeleteAddressResult>} - Success response
3876
3785
  * @name removeAddress
3877
- * @summary: Remove address associated with an account
3878
- * @description: Use this API to delete an address by its ID. This will returns an object that will indicate whether the address was deleted successfully or not. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeAddress/).
3786
+ * @summary: Removes an address from a customer's address list
3787
+ * @description: Remove an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeAddress/).
3879
3788
  */
3880
3789
  async removeAddress(
3881
3790
  { id, userId, requestHeaders } = { requestHeaders: {} },
@@ -3929,7 +3838,7 @@ class Cart {
3929
3838
 
3930
3839
  const {
3931
3840
  error: res_error,
3932
- } = CartPlatformModel.DeleteAddressResponse().validate(responseData, {
3841
+ } = CartPlatformModel.DeleteAddressResult().validate(responseData, {
3933
3842
  abortEarly: false,
3934
3843
  allowUnknown: true,
3935
3844
  });
@@ -3952,20 +3861,19 @@ class Cart {
3952
3861
  * @param {CartPlatformApplicationValidator.RemoveCouponParam} arg - Arg object
3953
3862
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3954
3863
  * @param {import("../PlatformAPIClient").Options} - Options
3955
- * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
3864
+ * @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
3956
3865
  * @name removeCoupon
3957
- * @summary: Remove Applied Coupon for platform pos user
3958
- * @description: Remove Coupon applied on the cart by passing uid in request body. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeCoupon/).
3866
+ * @summary: Remove coupon
3867
+ * @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
3868
  */
3960
3869
  async removeCoupon(
3961
- { uid, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
3870
+ { uid, buyNow, requestHeaders } = { requestHeaders: {} },
3962
3871
  { responseHeaders } = { responseHeaders: false }
3963
3872
  ) {
3964
3873
  const { error } = CartPlatformApplicationValidator.removeCoupon().validate(
3965
3874
  {
3966
3875
  uid,
3967
3876
  buyNow,
3968
- cartType,
3969
3877
  },
3970
3878
  { abortEarly: false, allowUnknown: true }
3971
3879
  );
@@ -3980,7 +3888,6 @@ class Cart {
3980
3888
  {
3981
3889
  uid,
3982
3890
  buyNow,
3983
- cartType,
3984
3891
  },
3985
3892
  { abortEarly: false, allowUnknown: false }
3986
3893
  );
@@ -3994,7 +3901,6 @@ class Cart {
3994
3901
  const query_params = {};
3995
3902
  query_params["uid"] = uid;
3996
3903
  query_params["buy_now"] = buyNow;
3997
- query_params["cart_type"] = cartType;
3998
3904
 
3999
3905
  const response = await PlatformAPIClient.execute(
4000
3906
  this.config,
@@ -4013,7 +3919,7 @@ class Cart {
4013
3919
 
4014
3920
  const {
4015
3921
  error: res_error,
4016
- } = CartPlatformModel.CartDetailResponse().validate(responseData, {
3922
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
4017
3923
  abortEarly: false,
4018
3924
  allowUnknown: true,
4019
3925
  });
@@ -4040,8 +3946,8 @@ class Cart {
4040
3946
  * @param {import("../PlatformAPIClient").Options} - Options
4041
3947
  * @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
4042
3948
  * @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/).
3949
+ * @summary: Remove price adjustments
3950
+ * @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
3951
  */
4046
3952
  async removePriceAdjustment(
4047
3953
  { id, requestHeaders } = { requestHeaders: {} },
@@ -4117,10 +4023,10 @@ class Cart {
4117
4023
  * @param {CartPlatformApplicationValidator.SelectAddressParam} arg - Arg object
4118
4024
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4119
4025
  * @param {import("../PlatformAPIClient").Options} - Options
4120
- * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
4026
+ * @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
4121
4027
  * @name selectAddress
4122
- * @summary: Select an address from available addresses
4123
- * @description: Select Address from all addresses associated with the account in order to ship the cart items to that address, otherwise default address will be selected implicitly. See `PlatformSelectCartAddressRequest` in schema of request body for the list of attributes needed to select Address from account. On successful request, this API returns a Cart object. Below address attributes are required. address_id billing_address_id uid - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/selectAddress/).
4028
+ * @summary: Select customer address for order processing
4029
+ * @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
4030
  */
4125
4031
  async selectAddress(
4126
4032
  { body, cartId, buyNow, i, b, requestHeaders } = { requestHeaders: {} },
@@ -4183,7 +4089,7 @@ class Cart {
4183
4089
 
4184
4090
  const {
4185
4091
  error: res_error,
4186
- } = CartPlatformModel.CartDetailResponse().validate(responseData, {
4092
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
4187
4093
  abortEarly: false,
4188
4094
  allowUnknown: true,
4189
4095
  });
@@ -4206,7 +4112,7 @@ class Cart {
4206
4112
  * @param {CartPlatformApplicationValidator.SelectPaymentModeParam} arg - Arg object
4207
4113
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4208
4114
  * @param {import("../PlatformAPIClient").Options} - Options
4209
- * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
4115
+ * @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
4210
4116
  * @name selectPaymentMode
4211
4117
  * @summary: Select payment mode
4212
4118
  * @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/).
@@ -4271,7 +4177,7 @@ class Cart {
4271
4177
 
4272
4178
  const {
4273
4179
  error: res_error,
4274
- } = CartPlatformModel.CartDetailResponse().validate(responseData, {
4180
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
4275
4181
  abortEarly: false,
4276
4182
  allowUnknown: true,
4277
4183
  });
@@ -4294,7 +4200,7 @@ class Cart {
4294
4200
  * @param {CartPlatformApplicationValidator.SelectPaymentModeV2Param} arg - Arg object
4295
4201
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4296
4202
  * @param {import("../PlatformAPIClient").Options} - Options
4297
- * @returns {Promise<CartPlatformModel.CartDetailResponse>} - Success response
4203
+ * @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
4298
4204
  * @name selectPaymentModeV2
4299
4205
  * @summary: Select payment mode (latest)
4300
4206
  * @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/).
@@ -4359,7 +4265,7 @@ class Cart {
4359
4265
 
4360
4266
  const {
4361
4267
  error: res_error,
4362
- } = CartPlatformModel.CartDetailResponse().validate(responseData, {
4268
+ } = CartPlatformModel.CartDetailResult().validate(responseData, {
4363
4269
  abortEarly: false,
4364
4270
  allowUnknown: true,
4365
4271
  });
@@ -4382,10 +4288,10 @@ class Cart {
4382
4288
  * @param {CartPlatformApplicationValidator.UpdateAddressParam} arg - Arg object
4383
4289
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4384
4290
  * @param {import("../PlatformAPIClient").Options} - Options
4385
- * @returns {Promise<CartPlatformModel.UpdateAddressResponse>} - Success response
4291
+ * @returns {Promise<CartPlatformModel.UpdateAddressDetails>} - Success response
4386
4292
  * @name updateAddress
4387
- * @summary: Update address added to an account
4388
- * @description: Use this API to update an existing address in the account. Request object should contain attributes mentioned in Address can be updated. These attributes are:is_default_address landmark area pincode email address_type name address_id address - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateAddress/).
4293
+ * @summary: Updates an existing customer address
4294
+ * @description: Update the user address - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateAddress/).
4389
4295
  */
4390
4296
  async updateAddress(
4391
4297
  { id, body, requestHeaders } = { requestHeaders: {} },
@@ -4438,7 +4344,7 @@ class Cart {
4438
4344
 
4439
4345
  const {
4440
4346
  error: res_error,
4441
- } = CartPlatformModel.UpdateAddressResponse().validate(responseData, {
4347
+ } = CartPlatformModel.UpdateAddressDetails().validate(responseData, {
4442
4348
  abortEarly: false,
4443
4349
  allowUnknown: true,
4444
4350
  });
@@ -4461,7 +4367,7 @@ class Cart {
4461
4367
  * @param {CartPlatformApplicationValidator.UpdateCartParam} arg - Arg object
4462
4368
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4463
4369
  * @param {import("../PlatformAPIClient").Options} - Options
4464
- * @returns {Promise<CartPlatformModel.UpdateCartDetailResponse>} - Success response
4370
+ * @returns {Promise<CartPlatformModel.UpdateCartDetailResult>} - Success response
4465
4371
  * @name updateCart
4466
4372
  * @summary: Update cart items
4467
4373
  * @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 +4426,7 @@ class Cart {
4520
4426
 
4521
4427
  const {
4522
4428
  error: res_error,
4523
- } = CartPlatformModel.UpdateCartDetailResponse().validate(responseData, {
4429
+ } = CartPlatformModel.UpdateCartDetailResult().validate(responseData, {
4524
4430
  abortEarly: false,
4525
4431
  allowUnknown: true,
4526
4432
  });
@@ -4543,13 +4449,13 @@ class Cart {
4543
4449
  * @param {CartPlatformApplicationValidator.UpdateCartMetaParam} arg - Arg object
4544
4450
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4545
4451
  * @param {import("../PlatformAPIClient").Options} - Options
4546
- * @returns {Promise<CartPlatformModel.CartMetaResponse>} - Success response
4452
+ * @returns {Promise<CartPlatformModel.CartMetaDetails>} - Success response
4547
4453
  * @name updateCartMeta
4548
4454
  * @summary: Update cart metadata
4549
4455
  * @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
4456
  */
4551
4457
  async updateCartMeta(
4552
- { body, id, buyNow, userId, requestHeaders } = { requestHeaders: {} },
4458
+ { body, id, buyNow, requestHeaders } = { requestHeaders: {} },
4553
4459
  { responseHeaders } = { responseHeaders: false }
4554
4460
  ) {
4555
4461
  const {
@@ -4559,7 +4465,6 @@ class Cart {
4559
4465
  body,
4560
4466
  id,
4561
4467
  buyNow,
4562
- userId,
4563
4468
  },
4564
4469
  { abortEarly: false, allowUnknown: true }
4565
4470
  );
@@ -4575,7 +4480,6 @@ class Cart {
4575
4480
  body,
4576
4481
  id,
4577
4482
  buyNow,
4578
- userId,
4579
4483
  },
4580
4484
  { abortEarly: false, allowUnknown: false }
4581
4485
  );
@@ -4589,7 +4493,6 @@ class Cart {
4589
4493
  const query_params = {};
4590
4494
  query_params["id"] = id;
4591
4495
  query_params["buy_now"] = buyNow;
4592
- query_params["user_id"] = userId;
4593
4496
 
4594
4497
  const response = await PlatformAPIClient.execute(
4595
4498
  this.config,
@@ -4608,7 +4511,7 @@ class Cart {
4608
4511
 
4609
4512
  const {
4610
4513
  error: res_error,
4611
- } = CartPlatformModel.CartMetaResponse().validate(responseData, {
4514
+ } = CartPlatformModel.CartMetaDetails().validate(responseData, {
4612
4515
  abortEarly: false,
4613
4516
  allowUnknown: true,
4614
4517
  });
@@ -4635,8 +4538,8 @@ class Cart {
4635
4538
  * @param {import("../PlatformAPIClient").Options} - Options
4636
4539
  * @returns {Promise<CartPlatformModel.CartMetaConfigUpdate>} - Success response
4637
4540
  * @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/).
4541
+ * @summary: Update cart meta
4542
+ * @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
4543
  */
4641
4544
  async updateCartMetaConfig(
4642
4545
  { cartMetaId, body, requestHeaders } = { requestHeaders: {} },
@@ -4714,10 +4617,10 @@ class Cart {
4714
4617
  * @param {CartPlatformApplicationValidator.UpdateCartUserParam} arg - Arg object
4715
4618
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4716
4619
  * @param {import("../PlatformAPIClient").Options} - Options
4717
- * @returns {Promise<CartPlatformModel.UserCartMappingResponse>} - Success response
4620
+ * @returns {Promise<CartPlatformModel.UserCartMappingResult>} - Success response
4718
4621
  * @name updateCartUser
4719
- * @summary: Update cart user details.
4720
- * @description: Modify user-related details for a shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartUser/).
4622
+ * @summary: Update user of a cart
4623
+ * @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
4624
  */
4722
4625
  async updateCartUser(
4723
4626
  { body, id, requestHeaders } = { requestHeaders: {} },
@@ -4773,7 +4676,7 @@ class Cart {
4773
4676
 
4774
4677
  const {
4775
4678
  error: res_error,
4776
- } = CartPlatformModel.UserCartMappingResponse().validate(responseData, {
4679
+ } = CartPlatformModel.UserCartMappingResult().validate(responseData, {
4777
4680
  abortEarly: false,
4778
4681
  allowUnknown: true,
4779
4682
  });
@@ -4798,10 +4701,10 @@ class Cart {
4798
4701
  *
4799
4702
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4800
4703
  * @param {import("../PlatformAPIClient").Options} - Options
4801
- * @returns {Promise<CartPlatformModel.SharedCartResponse>} - Success response
4704
+ * @returns {Promise<CartPlatformModel.SharedCartResult>} - Success response
4802
4705
  * @name updateCartWithSharedItems
4803
- * @summary: Merge or replace existing cart
4804
- * @description: Use this API to merge the shared cart with existing cart, or replace the existing cart with the shared cart. The `action` parameter is used to indicate the operation Merge or Replace. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartWithSharedItems/).
4706
+ * @summary: Update shared cart items
4707
+ * @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/).
4805
4708
  */
4806
4709
  async updateCartWithSharedItems(
4807
4710
  { token, action, cartId, requestHeaders } = { requestHeaders: {} },
@@ -4859,7 +4762,7 @@ class Cart {
4859
4762
 
4860
4763
  const {
4861
4764
  error: res_error,
4862
- } = CartPlatformModel.SharedCartResponse().validate(responseData, {
4765
+ } = CartPlatformModel.SharedCartResult().validate(responseData, {
4863
4766
  abortEarly: false,
4864
4767
  allowUnknown: true,
4865
4768
  });
@@ -4882,7 +4785,7 @@ class Cart {
4882
4785
  * @param {CartPlatformApplicationValidator.UpdateCouponParam} arg - Arg object
4883
4786
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4884
4787
  * @param {import("../PlatformAPIClient").Options} - Options
4885
- * @returns {Promise<CartPlatformModel.CouponDetailResponse>} - Success response
4788
+ * @returns {Promise<CartPlatformModel.CouponCreateResult>} - Success response
4886
4789
  * @name updateCoupon
4887
4790
  * @summary: Update a coupon
4888
4791
  * @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 +4841,7 @@ class Cart {
4938
4841
 
4939
4842
  const {
4940
4843
  error: res_error,
4941
- } = CartPlatformModel.CouponDetailResponse().validate(responseData, {
4844
+ } = CartPlatformModel.CouponCreateResult().validate(responseData, {
4942
4845
  abortEarly: false,
4943
4846
  allowUnknown: true,
4944
4847
  });
@@ -4965,7 +4868,7 @@ class Cart {
4965
4868
  * @param {import("../PlatformAPIClient").Options} - Options
4966
4869
  * @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
4967
4870
  * @name updateCouponPartially
4968
- * @summary: Update coupon archive state and schedule
4871
+ * @summary: Update a coupon partially
4969
4872
  * @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
4873
  */
4971
4874
  async updateCouponPartially(
@@ -5046,11 +4949,10 @@ class Cart {
5046
4949
  *
5047
4950
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5048
4951
  * @param {import("../PlatformAPIClient").Options} - Options
5049
- * @returns {Promise<CartPlatformModel.UpdatePriceAdjustmentResponse>} -
5050
- * Success response
4952
+ * @returns {Promise<CartPlatformModel.GetPriceAdjustmentResult>} - Success response
5051
4953
  * @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/).
4954
+ * @summary: Update price adjustments
4955
+ * @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
4956
  */
5055
4957
  async updatePriceAdjustment(
5056
4958
  { id, body, requestHeaders } = { requestHeaders: {} },
@@ -5105,10 +5007,10 @@ class Cart {
5105
5007
 
5106
5008
  const {
5107
5009
  error: res_error,
5108
- } = CartPlatformModel.UpdatePriceAdjustmentResponse().validate(
5109
- responseData,
5110
- { abortEarly: false, allowUnknown: true }
5111
- );
5010
+ } = CartPlatformModel.GetPriceAdjustmentResult().validate(responseData, {
5011
+ abortEarly: false,
5012
+ allowUnknown: true,
5013
+ });
5112
5014
 
5113
5015
  if (res_error) {
5114
5016
  if (this.config.options.strictResponseCheck === true) {
@@ -5128,7 +5030,7 @@ class Cart {
5128
5030
  * @param {CartPlatformApplicationValidator.UpdatePromotionParam} arg - Arg object
5129
5031
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5130
5032
  * @param {import("../PlatformAPIClient").Options} - Options
5131
- * @returns {Promise<CartPlatformModel.PromotionUpdate>} - Success response
5033
+ * @returns {Promise<CartPlatformModel.PromotionUpdateResult>} - Success response
5132
5034
  * @name updatePromotion
5133
5035
  * @summary: Update a promotion
5134
5036
  * @description: Update the details of an existing promotion by specifying its unique identifier. This includes modifying promotion 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/updatePromotion/).
@@ -5186,7 +5088,7 @@ class Cart {
5186
5088
 
5187
5089
  const {
5188
5090
  error: res_error,
5189
- } = CartPlatformModel.PromotionUpdate().validate(responseData, {
5091
+ } = CartPlatformModel.PromotionUpdateResult().validate(responseData, {
5190
5092
  abortEarly: false,
5191
5093
  allowUnknown: true,
5192
5094
  });
@@ -5213,8 +5115,8 @@ class Cart {
5213
5115
  * @param {import("../PlatformAPIClient").Options} - Options
5214
5116
  * @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
5215
5117
  * @name updatePromotionPartially
5216
- * @summary: Partially update a promotion.
5217
- * @description: Make partial modifications to the settings of an existing promotion in the cart system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updatePromotionPartially/).
5118
+ * @summary: Update a promotion partially
5119
+ * @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
5120
  */
5219
5121
  async updatePromotionPartially(
5220
5122
  { id, body, requestHeaders } = { requestHeaders: {} },
@@ -5292,7 +5194,7 @@ class Cart {
5292
5194
  * @param {CartPlatformApplicationValidator.UpdateShipmentsParam} arg - Arg object
5293
5195
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5294
5196
  * @param {import("../PlatformAPIClient").Options} - Options
5295
- * @returns {Promise<CartPlatformModel.PlatformCartShipmentsResponse>} -
5197
+ * @returns {Promise<CartPlatformModel.PlatformCartShipmentsResult>} -
5296
5198
  * Success response
5297
5199
  * @name updateShipments
5298
5200
  * @summary: Update shipments
@@ -5369,10 +5271,10 @@ class Cart {
5369
5271
 
5370
5272
  const {
5371
5273
  error: res_error,
5372
- } = CartPlatformModel.PlatformCartShipmentsResponse().validate(
5373
- responseData,
5374
- { abortEarly: false, allowUnknown: true }
5375
- );
5274
+ } = CartPlatformModel.PlatformCartShipmentsResult().validate(responseData, {
5275
+ abortEarly: false,
5276
+ allowUnknown: true,
5277
+ });
5376
5278
 
5377
5279
  if (res_error) {
5378
5280
  if (this.config.options.strictResponseCheck === true) {
@@ -5408,11 +5310,6 @@ class Cart {
5408
5310
  paymentIdentifier,
5409
5311
  aggregatorName,
5410
5312
  merchantCode,
5411
- iin,
5412
- network,
5413
- type,
5414
- cardId,
5415
- cartType,
5416
5313
  requestHeaders,
5417
5314
  } = { requestHeaders: {} },
5418
5315
  { responseHeaders } = { responseHeaders: false }
@@ -5428,11 +5325,6 @@ class Cart {
5428
5325
  paymentIdentifier,
5429
5326
  aggregatorName,
5430
5327
  merchantCode,
5431
- iin,
5432
- network,
5433
- type,
5434
- cardId,
5435
- cartType,
5436
5328
  },
5437
5329
  { abortEarly: false, allowUnknown: true }
5438
5330
  );
@@ -5452,11 +5344,6 @@ class Cart {
5452
5344
  paymentIdentifier,
5453
5345
  aggregatorName,
5454
5346
  merchantCode,
5455
- iin,
5456
- network,
5457
- type,
5458
- cardId,
5459
- cartType,
5460
5347
  },
5461
5348
  { abortEarly: false, allowUnknown: false }
5462
5349
  );
@@ -5475,11 +5362,6 @@ class Cart {
5475
5362
  query_params["payment_identifier"] = paymentIdentifier;
5476
5363
  query_params["aggregator_name"] = aggregatorName;
5477
5364
  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
5365
 
5484
5366
  const response = await PlatformAPIClient.execute(
5485
5367
  this.config,