@gofynd/fdk-client-javascript 1.0.1 → 1.0.3

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 (318) hide show
  1. package/documentation/application/CART.md +5934 -4502
  2. package/documentation/application/CATALOG.md +6338 -7245
  3. package/documentation/application/COMMON.md +95 -222
  4. package/documentation/application/COMMUNICATION.md +106 -186
  5. package/documentation/application/CONFIGURATION.md +903 -1597
  6. package/documentation/application/CONTENT.md +562 -1270
  7. package/documentation/application/FILESTORAGE.md +84 -220
  8. package/documentation/application/LEAD.md +314 -660
  9. package/documentation/application/LOGISTIC.md +229 -305
  10. package/documentation/application/ORDER.md +642 -1137
  11. package/documentation/application/PAYMENT.md +2285 -3031
  12. package/documentation/application/POSCART.md +6079 -4642
  13. package/documentation/application/REWARDS.md +94 -248
  14. package/documentation/application/SHARE.md +152 -250
  15. package/documentation/application/THEME.md +952 -1235
  16. package/documentation/application/USER.md +1228 -1765
  17. package/documentation/platform/ANALYTICS.md +207 -349
  18. package/documentation/platform/AUDITTRAIL.md +121 -204
  19. package/documentation/platform/BILLING.md +865 -1376
  20. package/documentation/platform/CART.md +2814 -3662
  21. package/documentation/platform/CATALOG.md +15266 -17619
  22. package/documentation/platform/COMMON.md +95 -222
  23. package/documentation/platform/COMMUNICATION.md +1632 -2380
  24. package/documentation/platform/COMPANYPROFILE.md +572 -957
  25. package/documentation/platform/CONFIGURATION.md +3050 -4073
  26. package/documentation/platform/CONTENT.md +3509 -4121
  27. package/documentation/platform/DISCOUNT.md +140 -236
  28. package/documentation/platform/FILESTORAGE.md +187 -323
  29. package/documentation/platform/INVENTORY.md +268 -911
  30. package/documentation/platform/LEAD.md +2195 -2541
  31. package/documentation/platform/ORDER.md +3750 -5636
  32. package/documentation/platform/PARTNER.md +9 -36
  33. package/documentation/platform/PAYMENT.md +903 -1213
  34. package/documentation/platform/REWARDS.md +183 -347
  35. package/documentation/platform/SHARE.md +120 -213
  36. package/documentation/platform/THEME.md +12956 -13239
  37. package/documentation/platform/USER.md +975 -1120
  38. package/documentation/platform/WEBHOOK.md +78 -184
  39. package/documentation/public/CONFIGURATION.md +95 -222
  40. package/documentation/public/INVENTORY.md +100 -282
  41. package/documentation/public/WEBHOOK.md +27 -133
  42. package/package.json +1 -1
  43. package/sdk/application/ApplicationConfig.js +1 -1
  44. package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
  45. package/sdk/application/Cart/CartApplicationClient.js +1058 -547
  46. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  47. package/sdk/application/Cart/CartApplicationModel.js +489 -886
  48. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  49. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  50. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  51. package/sdk/application/Catalog/CatalogApplicationClient.js +1545 -949
  52. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  53. package/sdk/application/Catalog/CatalogApplicationModel.js +692 -1258
  54. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  55. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  56. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  57. package/sdk/application/Common/CommonApplicationClient.js +76 -36
  58. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  59. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  60. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  61. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  62. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  63. package/sdk/application/Communication/CommunicationApplicationClient.js +92 -31
  64. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  65. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  66. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  67. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  68. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  69. package/sdk/application/Configuration/ConfigurationApplicationClient.js +638 -312
  70. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  71. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  72. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  73. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  74. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  75. package/sdk/application/Content/ContentApplicationClient.js +581 -213
  76. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -75
  77. package/sdk/application/Content/ContentApplicationModel.js +468 -875
  78. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  79. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  80. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  81. package/sdk/application/FileStorage/FileStorageApplicationClient.js +121 -59
  82. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  83. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  84. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  85. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  86. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  87. package/sdk/application/Lead/LeadApplicationClient.js +230 -96
  88. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  89. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  90. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  91. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  92. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
  93. package/sdk/application/Logistic/LogisticApplicationClient.js +196 -47
  94. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  95. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  96. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  97. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
  98. package/sdk/application/Order/OrderApplicationClient.d.ts +86 -86
  99. package/sdk/application/Order/OrderApplicationClient.js +448 -215
  100. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  101. package/sdk/application/Order/OrderApplicationModel.js +357 -661
  102. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  103. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  104. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  105. package/sdk/application/Payment/PaymentApplicationClient.js +1525 -750
  106. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  107. package/sdk/application/Payment/PaymentApplicationModel.js +565 -1033
  108. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  109. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  110. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  111. package/sdk/application/PosCart/PosCartApplicationClient.js +1137 -606
  112. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +61 -60
  113. package/sdk/application/PosCart/PosCartApplicationModel.js +477 -873
  114. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  115. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  116. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  117. package/sdk/application/Rewards/RewardsApplicationClient.js +253 -113
  118. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  119. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  120. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  121. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  122. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  123. package/sdk/application/Share/ShareApplicationClient.js +221 -96
  124. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  125. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  126. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  127. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  128. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  129. package/sdk/application/Theme/ThemeApplicationClient.js +115 -37
  130. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  131. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  132. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  133. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  134. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  135. package/sdk/application/User/UserApplicationClient.js +1201 -543
  136. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  137. package/sdk/application/User/UserApplicationModel.js +440 -689
  138. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  139. package/sdk/application/User/UserApplicationValidator.js +89 -89
  140. package/sdk/common/AxiosHelper.js +1 -1
  141. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +55 -47
  142. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +308 -151
  143. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  144. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
  145. package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
  146. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
  147. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  148. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  149. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +16 -12
  150. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +131 -44
  151. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  152. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  153. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  154. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
  155. package/sdk/platform/Billing/BillingPlatformClient.d.ts +68 -56
  156. package/sdk/platform/Billing/BillingPlatformClient.js +416 -171
  157. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  158. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  159. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  160. package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
  161. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +176 -159
  162. package/sdk/platform/Cart/CartPlatformApplicationClient.js +837 -500
  163. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
  164. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
  165. package/sdk/platform/Cart/CartPlatformModel.d.ts +86 -85
  166. package/sdk/platform/Cart/CartPlatformModel.js +677 -1211
  167. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +582 -529
  168. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2642 -1533
  169. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  170. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
  171. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +708 -590
  172. package/sdk/platform/Catalog/CatalogPlatformClient.js +3103 -1362
  173. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +293 -284
  174. package/sdk/platform/Catalog/CatalogPlatformModel.js +2149 -3660
  175. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -64
  176. package/sdk/platform/Catalog/CatalogPlatformValidator.js +235 -216
  177. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -12
  178. package/sdk/platform/Common/CommonPlatformClient.js +80 -37
  179. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  180. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  181. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  182. package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
  183. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +333 -293
  184. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1687 -855
  185. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  186. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
  187. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  188. package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
  189. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  190. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  191. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +70 -57
  192. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +463 -182
  193. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -28
  194. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +294 -557
  195. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  196. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
  197. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +175 -137
  198. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1168 -521
  199. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  200. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
  201. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +137 -119
  202. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +691 -316
  203. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  204. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  205. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  206. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
  207. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +542 -461
  208. package/sdk/platform/Content/ContentPlatformApplicationClient.js +2600 -1160
  209. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -49
  210. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +159 -152
  211. package/sdk/platform/Content/ContentPlatformModel.d.ts +79 -75
  212. package/sdk/platform/Content/ContentPlatformModel.js +486 -867
  213. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +72 -61
  214. package/sdk/platform/Discount/DiscountPlatformClient.js +424 -198
  215. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  216. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  217. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  218. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
  219. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +26 -22
  220. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -59
  221. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  222. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
  223. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +58 -52
  224. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +240 -114
  225. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  226. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  227. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  228. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
  229. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +76 -63
  230. package/sdk/platform/Inventory/InventoryPlatformClient.js +461 -197
  231. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  232. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  233. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  234. package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
  235. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +84 -71
  236. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +441 -182
  237. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  238. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
  239. package/sdk/platform/Lead/LeadPlatformClient.d.ts +86 -75
  240. package/sdk/platform/Lead/LeadPlatformClient.js +434 -212
  241. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  242. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  243. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  244. package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
  245. package/sdk/platform/OAuthClient.js +8 -8
  246. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +14 -11
  247. package/sdk/platform/Order/OrderPlatformApplicationClient.js +113 -49
  248. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  249. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
  250. package/sdk/platform/Order/OrderPlatformClient.d.ts +367 -315
  251. package/sdk/platform/Order/OrderPlatformClient.js +1775 -893
  252. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -192
  253. package/sdk/platform/Order/OrderPlatformModel.js +1591 -2822
  254. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  255. package/sdk/platform/Order/OrderPlatformValidator.js +160 -155
  256. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
  257. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
  258. package/sdk/platform/Partner/PartnerPlatformModel.js +6 -22
  259. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +65 -54
  260. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +395 -164
  261. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  262. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
  263. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +55 -45
  264. package/sdk/platform/Payment/PaymentPlatformClient.js +362 -147
  265. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  266. package/sdk/platform/Payment/PaymentPlatformModel.js +220 -408
  267. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  268. package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
  269. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10153
  270. package/sdk/platform/PlatformApplicationClient.js +1584 -13691
  271. package/sdk/platform/PlatformClient.d.ts +7918 -7666
  272. package/sdk/platform/PlatformClient.js +8701 -9926
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +91 -78
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +507 -253
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  279. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -12
  280. package/sdk/platform/Share/SharePlatformApplicationClient.js +130 -52
  281. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  282. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
  283. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  284. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  285. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +148 -124
  286. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +770 -295
  287. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  288. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
  289. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  290. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  291. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +146 -67
  292. package/sdk/platform/User/UserPlatformApplicationClient.js +742 -155
  293. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  294. package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
  295. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  296. package/sdk/platform/User/UserPlatformModel.js +440 -689
  297. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +35 -29
  298. package/sdk/platform/Webhook/WebhookPlatformClient.js +218 -91
  299. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  300. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  301. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  302. package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
  303. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  304. package/sdk/public/Configuration/ConfigurationPublicClient.js +81 -38
  305. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  306. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  307. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  308. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  309. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  310. package/sdk/public/Inventory/InventoryPublicClient.js +228 -105
  311. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  312. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  313. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  314. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  315. package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
  316. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  317. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  318. package/tests/application/catalog.spec.js +7 -0
@@ -1,15 +1,15 @@
1
1
  export = BillingValidator;
2
2
  declare class BillingValidator {
3
+ static activateSubscriptionPlan(): any;
4
+ static cancelSubscriptionCharge(): any;
5
+ static cancelSubscriptionPlan(): any;
3
6
  static checkCouponValidity(): any;
4
7
  static createSubscriptionCharge(): any;
5
- static getSubscriptionCharge(): any;
6
- static cancelSubscriptionCharge(): any;
7
- static getInvoices(): any;
8
- static getInvoiceById(): any;
9
8
  static getCustomerDetail(): any;
10
- static upsertCustomerDetail(): any;
11
- static getSubscription(): any;
12
9
  static getFeatureLimitConfig(): any;
13
- static activateSubscriptionPlan(): any;
14
- static cancelSubscriptionPlan(): any;
10
+ static getInvoiceById(): any;
11
+ static getInvoices(): any;
12
+ static getSubscription(): any;
13
+ static getSubscriptionCharge(): any;
14
+ static upsertCustomerDetail(): any;
15
15
  }
@@ -2,41 +2,36 @@ const Joi = require("joi");
2
2
 
3
3
  const BillingModel = require("./BillingPlatformModel");
4
4
  class BillingValidator {
5
- static checkCouponValidity() {
5
+ static activateSubscriptionPlan() {
6
6
  return Joi.object({
7
- plan: Joi.string().allow("").required(),
8
- couponCode: Joi.string().allow("").required(),
7
+ body: BillingModel.SubscriptionActivateReq().required(),
9
8
  }).required();
10
9
  }
11
10
 
12
- static createSubscriptionCharge() {
11
+ static cancelSubscriptionCharge() {
13
12
  return Joi.object({
14
13
  extensionId: Joi.string().allow("").required(),
15
- body: BillingModel.CreateSubscriptionCharge().required(),
14
+ subscriptionId: Joi.string().allow("").required(),
16
15
  }).required();
17
16
  }
18
17
 
19
- static getSubscriptionCharge() {
18
+ static cancelSubscriptionPlan() {
20
19
  return Joi.object({
21
- extensionId: Joi.string().allow("").required(),
22
- subscriptionId: Joi.string().allow("").required(),
20
+ body: BillingModel.CancelSubscriptionReq().required(),
23
21
  }).required();
24
22
  }
25
23
 
26
- static cancelSubscriptionCharge() {
24
+ static checkCouponValidity() {
27
25
  return Joi.object({
28
- extensionId: Joi.string().allow("").required(),
29
- subscriptionId: Joi.string().allow("").required(),
26
+ plan: Joi.string().allow("").required(),
27
+ couponCode: Joi.string().allow("").required(),
30
28
  }).required();
31
29
  }
32
30
 
33
- static getInvoices() {
34
- return Joi.object({}).required();
35
- }
36
-
37
- static getInvoiceById() {
31
+ static createSubscriptionCharge() {
38
32
  return Joi.object({
39
- invoiceId: Joi.string().allow("").required(),
33
+ extensionId: Joi.string().allow("").required(),
34
+ body: BillingModel.CreateSubscriptionCharge().required(),
40
35
  }).required();
41
36
  }
42
37
 
@@ -44,29 +39,34 @@ class BillingValidator {
44
39
  return Joi.object({}).required();
45
40
  }
46
41
 
47
- static upsertCustomerDetail() {
42
+ static getFeatureLimitConfig() {
43
+ return Joi.object({}).required();
44
+ }
45
+
46
+ static getInvoiceById() {
48
47
  return Joi.object({
49
- body: BillingModel.SubscriptionCustomerCreate().required(),
48
+ invoiceId: Joi.string().allow("").required(),
50
49
  }).required();
51
50
  }
52
51
 
53
- static getSubscription() {
52
+ static getInvoices() {
54
53
  return Joi.object({}).required();
55
54
  }
56
55
 
57
- static getFeatureLimitConfig() {
56
+ static getSubscription() {
58
57
  return Joi.object({}).required();
59
58
  }
60
59
 
61
- static activateSubscriptionPlan() {
60
+ static getSubscriptionCharge() {
62
61
  return Joi.object({
63
- body: BillingModel.SubscriptionActivateReq().required(),
62
+ extensionId: Joi.string().allow("").required(),
63
+ subscriptionId: Joi.string().allow("").required(),
64
64
  }).required();
65
65
  }
66
66
 
67
- static cancelSubscriptionPlan() {
67
+ static upsertCustomerDetail() {
68
68
  return Joi.object({
69
- body: BillingModel.CancelSubscriptionReq().required(),
69
+ body: BillingModel.SubscriptionCustomerCreate().required(),
70
70
  }).required();
71
71
  }
72
72
  }
@@ -3,6 +3,139 @@ declare class Cart {
3
3
  constructor(config: any, applicationId: any);
4
4
  config: any;
5
5
  applicationId: any;
6
+ /**
7
+ * @param {Object} arg - Arg object.
8
+ * @param {string} arg.cartId - Current Cart _id
9
+ * @param {boolean} [arg.b] -
10
+ * @param {AddCartRequest} arg.body
11
+ * @returns {Promise<AddCartDetailResponse>} - Success response
12
+ * @summary: Add items to abandoned cart
13
+ * @description: Use this API to add items to the abandoned cart.
14
+ */
15
+ addItems({ cartId, body, b }?: {
16
+ cartId: string;
17
+ b?: boolean;
18
+ body: AddCartRequest;
19
+ }): Promise<AddCartDetailResponse>;
20
+ /**
21
+ * @param {Object} arg - Arg object.
22
+ * @param {OpenApiCartServiceabilityRequest} arg.body
23
+ * @returns {Promise<OpenApiCartServiceabilityResponse>} - Success response
24
+ * @summary: Check Pincode Serviceability
25
+ * @description: Check Pincode serviceability for cart items provided in `cart_items` and address pincode in `shipping_address`
26
+ */
27
+ checkCartServiceability({ body }?: {
28
+ body: OpenApiCartServiceabilityRequest;
29
+ }): Promise<OpenApiCartServiceabilityResponse>;
30
+ /**
31
+ * @param {Object} arg - Arg object.
32
+ * @param {OpenApiPlatformCheckoutReq} arg.body
33
+ * @returns {Promise<OpenApiCheckoutResponse>} - Success response
34
+ * @summary: Create Fynd order with cart details
35
+ * @description: Generate Fynd order for cart details send with provided `cart_items`
36
+ */
37
+ checkoutCart({ body }?: {
38
+ body: OpenApiPlatformCheckoutReq;
39
+ }): Promise<OpenApiCheckoutResponse>;
40
+ /**
41
+ * @param {Object} arg - Arg object.
42
+ * @param {CouponAdd} arg.body
43
+ * @returns {Promise<SuccessMessage>} - Success response
44
+ * @summary: Create new coupon
45
+ * @description: Create new coupon
46
+ */
47
+ createCoupon({ body }?: {
48
+ body: CouponAdd;
49
+ }): Promise<SuccessMessage>;
50
+ /**
51
+ * @param {Object} arg - Arg object.
52
+ * @param {PromotionAdd} arg.body
53
+ * @returns {Promise<PromotionAdd>} - Success response
54
+ * @summary: Create new promotion
55
+ * @description: Create new promotion
56
+ */
57
+ createPromotion({ body }?: {
58
+ body: PromotionAdd;
59
+ }): Promise<PromotionAdd>;
60
+ /**
61
+ * @param {Object} arg - Arg object.
62
+ * @param {OpenapiCartDetailsRequest} arg.body
63
+ * @returns {Promise<OpenapiCartDetailsResponse>} - Success response
64
+ * @summary: Fetch Cart Details
65
+ * @description: Get all the details of cart for a list of provided `cart_items`
66
+ */
67
+ fetchAndvalidateCartItems({ body }?: {
68
+ body: OpenapiCartDetailsRequest;
69
+ }): Promise<OpenapiCartDetailsResponse>;
70
+ /**
71
+ * @param {Object} arg - Arg object.
72
+ * @param {number} [arg.pageNo] -
73
+ * @param {number} [arg.pageSize] -
74
+ * @param {string} [arg.fromDate] -
75
+ * @param {string} [arg.toDate] -
76
+ * @param {boolean} [arg.anonymousCart] -
77
+ * @param {string} [arg.lastId] -
78
+ * @param {string} [arg.sortOn] -
79
+ * @returns {Promise<AbandonedCartResponse>} - Success response
80
+ * @summary: Get with abandoned cart list
81
+ * @description: Get abandoned cart list with pagination
82
+ */
83
+ getAbandonedCart({ pageNo, pageSize, fromDate, toDate, anonymousCart, lastId, sortOn, }?: {
84
+ pageNo?: number;
85
+ pageSize?: number;
86
+ fromDate?: string;
87
+ toDate?: string;
88
+ anonymousCart?: boolean;
89
+ lastId?: string;
90
+ sortOn?: string;
91
+ }): Promise<AbandonedCartResponse>;
92
+ /**
93
+ * @param {Object} arg - Arg object.
94
+ * @param {string} arg.companyId - Current company id
95
+ * @param {string} arg.applicationId - Current Application _id
96
+ * @param {number} [arg.pageSize] -
97
+ * @param {string} [arg.fromDate] -
98
+ * @param {string} [arg.toDate] -
99
+ * @param {boolean} [arg.anonymousCart] -
100
+ * @param {string} [arg.lastId] -
101
+ * @param {string} [arg.sortOn] -
102
+ * @summary: Get with abandoned cart list
103
+ * @description: Get abandoned cart list with pagination
104
+ */
105
+ getAbandonedCartPaginator({ companyId, applicationId, pageSize, fromDate, toDate, anonymousCart, lastId, sortOn, }?: {
106
+ companyId: string;
107
+ applicationId: string;
108
+ pageSize?: number;
109
+ fromDate?: string;
110
+ toDate?: string;
111
+ anonymousCart?: boolean;
112
+ lastId?: string;
113
+ sortOn?: string;
114
+ }): Paginator;
115
+ /**
116
+ * @param {Object} arg - Arg object.
117
+ * @param {string} [arg.id] -
118
+ * @param {boolean} [arg.i] -
119
+ * @param {boolean} [arg.b] -
120
+ * @returns {Promise<CartDetailResponse>} - Success response
121
+ * @summary: Fetch all items added to the cart
122
+ * @description: Use this API to get details of all the items added to a cart.
123
+ */
124
+ getAbandonedCartDetails({ id, i, b }?: {
125
+ id?: string;
126
+ i?: boolean;
127
+ b?: boolean;
128
+ }): Promise<CartDetailResponse>;
129
+ /**
130
+ * @param {Object} arg - Arg object.
131
+ * @param {string} arg.id -
132
+ * @returns {Promise<CouponUpdate>} - Success response
133
+ * @summary: Get with single coupon details or coupon list
134
+ * @description: Get single coupon details with `id` in path param
135
+ */
136
+ getCouponById({ id }?: {
137
+ id: string;
138
+ }): Promise<CouponUpdate>;
6
139
  /**
7
140
  * @param {Object} arg - Arg object.
8
141
  * @param {number} [arg.pageNo] -
@@ -13,6 +146,7 @@ declare class Cart {
13
146
  * @param {boolean} [arg.isDisplay] -
14
147
  * @param {string} [arg.typeSlug] -
15
148
  * @param {string} [arg.code] -
149
+ * @returns {Promise<CouponsResponse>} - Success response
16
150
  * @summary: Get with single coupon details or coupon list
17
151
  * @description: Get coupon list with pagination
18
152
  */
@@ -25,7 +159,7 @@ declare class Cart {
25
159
  isDisplay?: boolean;
26
160
  typeSlug?: string;
27
161
  code?: string;
28
- }): Promise<any>;
162
+ }): Promise<CouponsResponse>;
29
163
  /**
30
164
  * @param {Object} arg - Arg object.
31
165
  * @param {string} arg.companyId - Current company id
@@ -51,46 +185,16 @@ declare class Cart {
51
185
  typeSlug?: string;
52
186
  code?: string;
53
187
  }): Paginator;
54
- /**
55
- * @param {Object} arg - Arg object.
56
- * @param {CouponAdd} arg.body
57
- * @summary: Create new coupon
58
- * @description: Create new coupon
59
- */
60
- createCoupon({ body }?: {
61
- body: CouponAdd;
62
- }): Promise<any>;
63
188
  /**
64
189
  * @param {Object} arg - Arg object.
65
190
  * @param {string} arg.id -
66
- * @summary: Get with single coupon details or coupon list
67
- * @description: Get single coupon details with `id` in path param
68
- */
69
- getCouponById({ id }?: {
70
- id: string;
71
- }): Promise<any>;
72
- /**
73
- * @param {Object} arg - Arg object.
74
- * @param {string} arg.id -
75
- * @param {CouponUpdate} arg.body
76
- * @summary: Update existing coupon configuration
77
- * @description: Update coupon with id sent in `id`
78
- */
79
- updateCoupon({ id, body }?: {
80
- id: string;
81
- body: CouponUpdate;
82
- }): Promise<any>;
83
- /**
84
- * @param {Object} arg - Arg object.
85
- * @param {string} arg.id -
86
- * @param {CouponPartialUpdate} arg.body
87
- * @summary: Update coupon archive state and schedule
88
- * @description: Update archive/unarchive and change schedule for coupon
191
+ * @returns {Promise<PromotionUpdate>} - Success response
192
+ * @summary: Get with single promotion details or promotion list
193
+ * @description: Get single promotion details with `id` in path param
89
194
  */
90
- updateCouponPartially({ id, body }?: {
195
+ getPromotionById({ id }?: {
91
196
  id: string;
92
- body: CouponPartialUpdate;
93
- }): Promise<any>;
197
+ }): Promise<PromotionUpdate>;
94
198
  /**
95
199
  * @param {Object} arg - Arg object.
96
200
  * @param {number} [arg.pageNo] -
@@ -101,6 +205,7 @@ declare class Cart {
101
205
  * @param {string} [arg.promotionType] -
102
206
  * @param {string} [arg.fpPanel] -
103
207
  * @param {string} [arg.promotionId] -
208
+ * @returns {Promise<PromotionsResponse>} - Success response
104
209
  * @summary: Get promotion list
105
210
  * @description: Get promotion list with pagination
106
211
  */
@@ -113,7 +218,7 @@ declare class Cart {
113
218
  promotionType?: string;
114
219
  fpPanel?: string;
115
220
  promotionId?: string;
116
- }): Promise<any>;
221
+ }): Promise<PromotionsResponse>;
117
222
  /**
118
223
  * @param {Object} arg - Arg object.
119
224
  * @param {string} arg.companyId - Current company id
@@ -141,153 +246,65 @@ declare class Cart {
141
246
  }): Paginator;
142
247
  /**
143
248
  * @param {Object} arg - Arg object.
144
- * @param {PromotionAdd} arg.body
145
- * @summary: Create new promotion
146
- * @description: Create new promotion
249
+ * @param {string} arg.cartId - Current Cart _id
250
+ * @param {boolean} [arg.b] -
251
+ * @param {UpdateCartRequest} arg.body
252
+ * @returns {Promise<UpdateCartDetailResponse>} - Success response
253
+ * @summary: Update items in the abandoned cart
254
+ * @description: <p>Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs</p> <ul> <li><font color="monochrome">operation</font> Operation for current api call. <b>update_item</b> for update items. <b>remove_item</b> for removing items.</li> <li> <font color="monochrome">item_id</font> "/platform/content/v1/products/"</li> <li> <font color="monochrome">item_size</font> "/platform/content/v1/products/:slug/sizes/"</li> <li> <font color="monochrome">quantity</font> item quantity (must be greater than or equal to 1)</li> <li> <font color="monochrome">article_id</font> "/content​/v1​/products​/:identifier​/sizes​/price​/"</li> <li> <font color="monochrome">item_index</font> item position in the cart (must be greater than or equal to 0)</li> </ul>
147
255
  */
148
- createPromotion({ body }?: {
149
- body: PromotionAdd;
150
- }): Promise<any>;
256
+ updateCart({ cartId, body, b }?: {
257
+ cartId: string;
258
+ b?: boolean;
259
+ body: UpdateCartRequest;
260
+ }): Promise<UpdateCartDetailResponse>;
151
261
  /**
152
262
  * @param {Object} arg - Arg object.
153
263
  * @param {string} arg.id -
154
- * @summary: Get with single promotion details or promotion list
155
- * @description: Get single promotion details with `id` in path param
264
+ * @param {CouponUpdate} arg.body
265
+ * @returns {Promise<SuccessMessage>} - Success response
266
+ * @summary: Update existing coupon configuration
267
+ * @description: Update coupon with id sent in `id`
156
268
  */
157
- getPromotionById({ id }?: {
269
+ updateCoupon({ id, body }?: {
158
270
  id: string;
159
- }): Promise<any>;
271
+ body: CouponUpdate;
272
+ }): Promise<SuccessMessage>;
273
+ /**
274
+ * @param {Object} arg - Arg object.
275
+ * @param {string} arg.id -
276
+ * @param {CouponPartialUpdate} arg.body
277
+ * @returns {Promise<SuccessMessage>} - Success response
278
+ * @summary: Update coupon archive state and schedule
279
+ * @description: Update archive/unarchive and change schedule for coupon
280
+ */
281
+ updateCouponPartially({ id, body }?: {
282
+ id: string;
283
+ body: CouponPartialUpdate;
284
+ }): Promise<SuccessMessage>;
160
285
  /**
161
286
  * @param {Object} arg - Arg object.
162
287
  * @param {string} arg.id -
163
288
  * @param {PromotionUpdate} arg.body
289
+ * @returns {Promise<PromotionUpdate>} - Success response
164
290
  * @summary: Update existing promotion configuration
165
291
  * @description: Update promotion with id sent in `id`
166
292
  */
167
293
  updatePromotion({ id, body }?: {
168
294
  id: string;
169
295
  body: PromotionUpdate;
170
- }): Promise<any>;
296
+ }): Promise<PromotionUpdate>;
171
297
  /**
172
298
  * @param {Object} arg - Arg object.
173
299
  * @param {string} arg.id -
174
300
  * @param {PromotionPartialUpdate} arg.body
301
+ * @returns {Promise<SuccessMessage>} - Success response
175
302
  * @summary: Update promotion publish state and schedule
176
303
  * @description: Update publish/unpublish and change schedule for promotion
177
304
  */
178
305
  updatePromotionPartially({ id, body }?: {
179
306
  id: string;
180
307
  body: PromotionPartialUpdate;
181
- }): Promise<any>;
182
- /**
183
- * @param {Object} arg - Arg object.
184
- * @param {OpenapiCartDetailsRequest} arg.body
185
- * @summary: Fetch Cart Details
186
- * @description: Get all the details of cart for a list of provided `cart_items`
187
- */
188
- fetchAndvalidateCartItems({ body }?: {
189
- body: OpenapiCartDetailsRequest;
190
- }): Promise<any>;
191
- /**
192
- * @param {Object} arg - Arg object.
193
- * @param {OpenApiCartServiceabilityRequest} arg.body
194
- * @summary: Check Pincode Serviceability
195
- * @description: Check Pincode serviceability for cart items provided in `cart_items` and address pincode in `shipping_address`
196
- */
197
- checkCartServiceability({ body }?: {
198
- body: OpenApiCartServiceabilityRequest;
199
- }): Promise<any>;
200
- /**
201
- * @param {Object} arg - Arg object.
202
- * @param {OpenApiPlatformCheckoutReq} arg.body
203
- * @summary: Create Fynd order with cart details
204
- * @description: Generate Fynd order for cart details send with provided `cart_items`
205
- */
206
- checkoutCart({ body }?: {
207
- body: OpenApiPlatformCheckoutReq;
208
- }): Promise<any>;
209
- /**
210
- * @param {Object} arg - Arg object.
211
- * @param {number} [arg.pageNo] -
212
- * @param {number} [arg.pageSize] -
213
- * @param {string} [arg.fromDate] -
214
- * @param {string} [arg.toDate] -
215
- * @param {boolean} [arg.anonymousCart] -
216
- * @param {string} [arg.lastId] -
217
- * @param {string} [arg.sortOn] -
218
- * @summary: Get with abandoned cart list
219
- * @description: Get abandoned cart list with pagination
220
- */
221
- getAbandonedCart({ pageNo, pageSize, fromDate, toDate, anonymousCart, lastId, sortOn, }?: {
222
- pageNo?: number;
223
- pageSize?: number;
224
- fromDate?: string;
225
- toDate?: string;
226
- anonymousCart?: boolean;
227
- lastId?: string;
228
- sortOn?: string;
229
- }): Promise<any>;
230
- /**
231
- * @param {Object} arg - Arg object.
232
- * @param {string} arg.companyId - Current company id
233
- * @param {string} arg.applicationId - Current Application _id
234
- * @param {number} [arg.pageSize] -
235
- * @param {string} [arg.fromDate] -
236
- * @param {string} [arg.toDate] -
237
- * @param {boolean} [arg.anonymousCart] -
238
- * @param {string} [arg.lastId] -
239
- * @param {string} [arg.sortOn] -
240
- * @summary: Get with abandoned cart list
241
- * @description: Get abandoned cart list with pagination
242
- */
243
- getAbandonedCartPaginator({ companyId, applicationId, pageSize, fromDate, toDate, anonymousCart, lastId, sortOn, }?: {
244
- companyId: string;
245
- applicationId: string;
246
- pageSize?: number;
247
- fromDate?: string;
248
- toDate?: string;
249
- anonymousCart?: boolean;
250
- lastId?: string;
251
- sortOn?: string;
252
- }): Paginator;
253
- /**
254
- * @param {Object} arg - Arg object.
255
- * @param {string} [arg.id] -
256
- * @param {boolean} [arg.i] -
257
- * @param {boolean} [arg.b] -
258
- * @summary: Fetch all items added to the cart
259
- * @description: Use this API to get details of all the items added to a cart.
260
- */
261
- getAbandonedCartDetails({ id, i, b }?: {
262
- id?: string;
263
- i?: boolean;
264
- b?: boolean;
265
- }): Promise<any>;
266
- /**
267
- * @param {Object} arg - Arg object.
268
- * @param {string} arg.cartId - Current Cart _id
269
- * @param {boolean} [arg.b] -
270
- * @param {AddCartRequest} arg.body
271
- * @summary: Add items to abandoned cart
272
- * @description: Use this API to add items to the abandoned cart.
273
- */
274
- addItems({ cartId, body, b }?: {
275
- cartId: string;
276
- b?: boolean;
277
- body: AddCartRequest;
278
- }): Promise<any>;
279
- /**
280
- * @param {Object} arg - Arg object.
281
- * @param {string} arg.cartId - Current Cart _id
282
- * @param {boolean} [arg.b] -
283
- * @param {UpdateCartRequest} arg.body
284
- * @summary: Update items in the abandoned cart
285
- * @description: <p>Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs</p> <ul> <li><font color="monochrome">operation</font> Operation for current api call. <b>update_item</b> for update items. <b>remove_item</b> for removing items.</li> <li> <font color="monochrome">item_id</font> "/platform/content/v1/products/"</li> <li> <font color="monochrome">item_size</font> "/platform/content/v1/products/:slug/sizes/"</li> <li> <font color="monochrome">quantity</font> item quantity (must be greater than or equal to 1)</li> <li> <font color="monochrome">article_id</font> "/content​/v1​/products​/:identifier​/sizes​/price​/"</li> <li> <font color="monochrome">item_index</font> item position in the cart (must be greater than or equal to 0)</li> </ul>
286
- */
287
- updateCart({ cartId, body, b }?: {
288
- cartId: string;
289
- b?: boolean;
290
- body: UpdateCartRequest;
291
- }): Promise<any>;
308
+ }): Promise<SuccessMessage>;
292
309
  }
293
310
  import Paginator = require("../../common/Paginator");