@gofynd/fdk-client-javascript 1.0.2 → 1.0.4

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 (346) hide show
  1. package/README.md +31 -2
  2. package/index.d.ts +4 -4
  3. package/index.js +9 -10
  4. package/package.json +14 -14
  5. package/sdk/APIClient.d.ts +11 -0
  6. package/sdk/APIClient.js +35 -0
  7. package/sdk/Client.d.ts +6 -0
  8. package/sdk/Client.js +17 -0
  9. package/sdk/Config.d.ts +9 -0
  10. package/sdk/Config.js +17 -0
  11. package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
  12. package/sdk/application/Cart/CartApplicationClient.js +595 -594
  13. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  14. package/sdk/application/Cart/CartApplicationModel.js +490 -885
  15. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  16. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  17. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  18. package/sdk/application/Catalog/CatalogApplicationClient.js +1079 -1078
  19. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  20. package/sdk/application/Catalog/CatalogApplicationModel.js +683 -1249
  21. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  22. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  23. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  24. package/sdk/application/Common/CommonApplicationClient.js +43 -42
  25. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  26. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  27. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  28. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  29. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  30. package/sdk/application/Communication/CommunicationApplicationClient.js +32 -31
  31. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  32. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  33. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  34. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.js +350 -349
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  41. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  42. package/sdk/application/Content/ContentApplicationClient.js +216 -215
  43. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
  44. package/sdk/application/Content/ContentApplicationModel.js +468 -884
  45. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  46. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.js +65 -64
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  53. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  54. package/sdk/application/Lead/LeadApplicationClient.js +109 -108
  55. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  56. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  57. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  58. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  59. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +31 -22
  60. package/sdk/application/Logistic/LogisticApplicationClient.js +115 -49
  61. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  62. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  63. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  64. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -9
  65. package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
  66. package/sdk/application/Order/OrderApplicationClient.js +247 -246
  67. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  68. package/sdk/application/Order/OrderApplicationModel.js +361 -656
  69. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  70. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  71. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  72. package/sdk/application/Payment/PaymentApplicationClient.js +781 -780
  73. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  74. package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
  75. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  76. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  77. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  78. package/sdk/application/PosCart/PosCartApplicationClient.js +646 -645
  79. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
  80. package/sdk/application/PosCart/PosCartApplicationModel.js +476 -870
  81. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  82. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  83. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  84. package/sdk/application/Rewards/RewardsApplicationClient.js +122 -121
  85. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  86. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  87. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  88. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  89. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  90. package/sdk/application/Share/ShareApplicationClient.js +94 -93
  91. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  92. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  93. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  94. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  95. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  96. package/sdk/application/Theme/ThemeApplicationClient.js +38 -37
  97. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  98. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  99. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  100. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  101. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  102. package/sdk/application/User/UserApplicationClient.js +619 -618
  103. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  104. package/sdk/application/User/UserApplicationModel.js +440 -689
  105. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  106. package/sdk/application/User/UserApplicationValidator.js +89 -89
  107. package/sdk/common/AxiosHelper.js +18 -7
  108. package/sdk/constructUrl.d.ts +5 -0
  109. package/sdk/constructUrl.js +13 -0
  110. package/sdk/index.d.ts +3 -0
  111. package/sdk/index.js +5 -0
  112. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
  113. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +182 -180
  114. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  115. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +21 -21
  116. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
  117. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  118. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  119. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +44 -43
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  124. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  125. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +7 -6
  126. package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
  127. package/sdk/platform/Billing/BillingPlatformClient.js +184 -183
  128. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  129. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  130. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  131. package/sdk/platform/Billing/BillingPlatformValidator.js +26 -25
  132. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +192 -165
  133. package/sdk/platform/Cart/CartPlatformApplicationClient.js +686 -510
  134. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +14 -11
  135. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +77 -61
  136. package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
  137. package/sdk/platform/Cart/CartPlatformModel.js +676 -1206
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1558 -1556
  140. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  141. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
  142. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +688 -688
  143. package/sdk/platform/Catalog/CatalogPlatformClient.js +1556 -1559
  144. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
  145. package/sdk/platform/Catalog/CatalogPlatformModel.js +2133 -3910
  146. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
  147. package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -228
  148. package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
  149. package/sdk/platform/Common/CommonPlatformClient.js +40 -51
  150. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  151. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  152. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  153. package/sdk/platform/Common/CommonPlatformValidator.js +7 -6
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +945 -943
  156. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  157. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +88 -88
  158. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
  159. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  160. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +217 -216
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -24
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +617 -552
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +70 -64
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +348 -347
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +39 -38
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +524 -534
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1287 -1346
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +49 -50
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +153 -159
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
  183. package/sdk/platform/Content/ContentPlatformModel.js +485 -907
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +219 -218
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +30 -29
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +25 -25
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +83 -61
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +9 -9
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +53 -53
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +147 -125
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +12 -11
  200. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
  201. package/sdk/platform/Inventory/InventoryPlatformClient.js +231 -230
  202. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  203. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  204. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  205. package/sdk/platform/Inventory/InventoryPlatformValidator.js +29 -28
  206. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
  207. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +203 -201
  208. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  209. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +29 -29
  210. package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
  211. package/sdk/platform/Lead/LeadPlatformClient.js +215 -214
  212. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  213. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  214. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  215. package/sdk/platform/Lead/LeadPlatformValidator.js +25 -24
  216. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
  217. package/sdk/platform/Order/OrderPlatformApplicationClient.js +68 -66
  218. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  219. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +7 -7
  220. package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
  221. package/sdk/platform/Order/OrderPlatformClient.js +1046 -1033
  222. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
  223. package/sdk/platform/Order/OrderPlatformModel.js +1575 -2861
  224. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  225. package/sdk/platform/Order/OrderPlatformValidator.js +161 -160
  226. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
  227. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
  228. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
  229. package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
  230. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +58 -58
  231. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +178 -178
  232. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  233. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +24 -24
  234. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
  235. package/sdk/platform/Payment/PaymentPlatformClient.js +156 -155
  236. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  237. package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
  238. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  239. package/sdk/platform/Payment/PaymentPlatformValidator.js +22 -21
  240. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
  241. package/sdk/platform/PlatformApplicationClient.js +1584 -13899
  242. package/sdk/platform/PlatformClient.d.ts +7972 -7888
  243. package/sdk/platform/PlatformClient.js +8678 -10107
  244. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +85 -85
  245. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +299 -280
  246. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  247. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +35 -35
  248. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  249. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  250. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
  251. package/sdk/platform/Share/SharePlatformApplicationClient.js +62 -60
  252. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  253. package/sdk/platform/Share/SharePlatformApplicationValidator.js +7 -7
  254. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  255. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  256. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
  257. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +314 -312
  258. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  259. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +45 -45
  260. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  261. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  262. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
  263. package/sdk/platform/User/UserPlatformApplicationClient.js +507 -166
  264. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  265. package/sdk/platform/User/UserPlatformApplicationValidator.js +62 -24
  266. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  267. package/sdk/platform/User/UserPlatformModel.js +440 -689
  268. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
  269. package/sdk/platform/Webhook/WebhookPlatformClient.js +91 -90
  270. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  271. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  272. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  273. package/sdk/platform/Webhook/WebhookPlatformValidator.js +15 -14
  274. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  275. package/sdk/public/Configuration/ConfigurationPublicClient.js +40 -38
  276. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  277. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  278. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  279. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  280. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  281. package/sdk/public/Inventory/InventoryPublicClient.js +115 -113
  282. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  283. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  284. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  285. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  286. package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
  287. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  288. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  289. package/.github/workflows/on_create_release.yml +0 -23
  290. package/.github/workflows/on_merge_main.yml +0 -38
  291. package/.github/workflows/on_pull_request.yml +0 -35
  292. package/.prettierrc +0 -5
  293. package/documentation/application/CART.md +0 -7339
  294. package/documentation/application/CATALOG.md +0 -9597
  295. package/documentation/application/COMMON.md +0 -452
  296. package/documentation/application/COMMUNICATION.md +0 -467
  297. package/documentation/application/CONFIGURATION.md +0 -2906
  298. package/documentation/application/CONTENT.md +0 -3351
  299. package/documentation/application/FILESTORAGE.md +0 -578
  300. package/documentation/application/LEAD.md +0 -1895
  301. package/documentation/application/LOGISTIC.md +0 -765
  302. package/documentation/application/ORDER.md +0 -3432
  303. package/documentation/application/PAYMENT.md +0 -5221
  304. package/documentation/application/POSCART.md +0 -7938
  305. package/documentation/application/README.md +0 -21
  306. package/documentation/application/REWARDS.md +0 -708
  307. package/documentation/application/SHARE.md +0 -733
  308. package/documentation/application/THEME.md +0 -5800
  309. package/documentation/application/USER.md +0 -4335
  310. package/documentation/platform/ANALYTICS.md +0 -1154
  311. package/documentation/platform/AUDITTRAIL.md +0 -576
  312. package/documentation/platform/BILLING.md +0 -2400
  313. package/documentation/platform/CART.md +0 -5559
  314. package/documentation/platform/CATALOG.md +0 -23261
  315. package/documentation/platform/COMMON.md +0 -452
  316. package/documentation/platform/COMMUNICATION.md +0 -5718
  317. package/documentation/platform/COMPANYPROFILE.md +0 -2031
  318. package/documentation/platform/CONFIGURATION.md +0 -7339
  319. package/documentation/platform/CONTENT.md +0 -9098
  320. package/documentation/platform/DISCOUNT.md +0 -863
  321. package/documentation/platform/FILESTORAGE.md +0 -1081
  322. package/documentation/platform/INVENTORY.md +0 -1779
  323. package/documentation/platform/LEAD.md +0 -4740
  324. package/documentation/platform/ORDER.md +0 -8486
  325. package/documentation/platform/PARTNER.md +0 -220
  326. package/documentation/platform/PAYMENT.md +0 -3448
  327. package/documentation/platform/README.md +0 -27
  328. package/documentation/platform/REWARDS.md +0 -1083
  329. package/documentation/platform/SHARE.md +0 -606
  330. package/documentation/platform/THEME.md +0 -35729
  331. package/documentation/platform/USER.md +0 -2319
  332. package/documentation/platform/WEBHOOK.md +0 -591
  333. package/documentation/public/CONFIGURATION.md +0 -452
  334. package/documentation/public/INVENTORY.md +0 -690
  335. package/documentation/public/WEBHOOK.md +0 -352
  336. package/jest.config.d.ts +0 -4
  337. package/jest.config.js +0 -6
  338. package/tests/application/catalog.spec.js +0 -47
  339. package/tests/common/action-url.spec.js +0 -35
  340. package/tests/common/schema/action-url.json +0 -178
  341. package/tests/common/schema/url-action.json +0 -683
  342. package/tests/common/url-action.spec.js +0 -48
  343. package/tests/helpers/cookie.helper.js +0 -31
  344. package/tests/helpers/oauth.helper.js +0 -43
  345. package/tests/platform/catalog.spec.js +0 -49
  346. package/tests/public/location.spec.js +0 -39
@@ -1,9 +1,10 @@
1
- const Paginator = require("../../common/Paginator");
2
- const { FDKClientValidationError } = require("../../common/FDKError");
3
1
  const PlatformAPIClient = require("../PlatformAPIClient");
2
+ const { FDKClientValidationError } = require("../../common/FDKError");
3
+ const Paginator = require("../../common/Paginator");
4
4
  const AuditTrailValidator = require("./AuditTrailPlatformValidator");
5
5
  const AuditTrailModel = require("./AuditTrailPlatformModel");
6
6
  const { Logger } = require("./../../common/Logger");
7
+ const Joi = require("joi");
7
8
 
8
9
  class AuditTrail {
9
10
  constructor(config) {
@@ -12,15 +13,15 @@ class AuditTrail {
12
13
 
13
14
  /**
14
15
  * @param {Object} arg - Arg object.
15
- * @param {string} arg.qs - Logs Query
16
- * @returns {Promise<LogSchemaResponse>} - Success response
17
- * @summary: Get paginated audit logs
18
- * @description: Get a paginated set of logs that can be filtered using the available set of parameters and get the relevant group of logs
16
+ * @param {RequestBodyAuditLog} arg.body
17
+ * @returns {Promise<CreateLogResponse>} - Success response
18
+ * @summary: Create logs for auditing later on
19
+ * @description: Create a log instance that stores all the relevant info to be logged
19
20
  */
20
- async getAuditLogs({ qs } = {}) {
21
- const { error } = AuditTrailValidator.getAuditLogs().validate(
21
+ async createAuditLog({ body } = {}) {
22
+ const { error } = AuditTrailValidator.createAuditLog().validate(
22
23
  {
23
- qs,
24
+ body,
24
25
  },
25
26
  { abortEarly: false, allowUnknown: true }
26
27
  );
@@ -29,37 +30,36 @@ class AuditTrail {
29
30
  }
30
31
 
31
32
  // Showing warrnings if extra unknown parameters are found
32
- const { error: warrning } = AuditTrailValidator.getAuditLogs().validate(
33
+ const { error: warrning } = AuditTrailValidator.createAuditLog().validate(
33
34
  {
34
- qs,
35
+ body,
35
36
  },
36
37
  { abortEarly: false, allowUnknown: false }
37
38
  );
38
39
  if (warrning) {
39
40
  Logger({
40
41
  level: "WARN",
41
- message: "Parameter Validation warrnings for getAuditLogs",
42
+ message: "Parameter Validation warrnings for createAuditLog",
42
43
  });
43
44
  Logger({ level: "WARN", message: warrning });
44
45
  }
45
46
 
46
47
  const query_params = {};
47
- query_params["qs"] = qs;
48
48
 
49
49
  const xHeaders = {};
50
50
 
51
51
  const response = await PlatformAPIClient.execute(
52
52
  this.config,
53
- "get",
53
+ "post",
54
54
  `/service/platform/audit-trail/v1.0/company/${this.config.companyId}/logs/`,
55
55
  query_params,
56
- undefined,
56
+ body,
57
57
  xHeaders
58
58
  );
59
59
 
60
60
  const {
61
61
  error: res_error,
62
- } = AuditTrailModel.LogSchemaResponse().validate(response, {
62
+ } = AuditTrailModel.CreateLogResponse().validate(response, {
63
63
  abortEarly: false,
64
64
  allowUnknown: false,
65
65
  });
@@ -67,7 +67,7 @@ class AuditTrail {
67
67
  if (res_error) {
68
68
  Logger({
69
69
  level: "WARN",
70
- message: "Response Validation Warnnings for getAuditLogs",
70
+ message: "Response Validation Warnnings for createAuditLog",
71
71
  });
72
72
  Logger({ level: "WARN", message: res_error });
73
73
  }
@@ -77,15 +77,15 @@ class AuditTrail {
77
77
 
78
78
  /**
79
79
  * @param {Object} arg - Arg object.
80
- * @param {RequestBodyAuditLog} arg.body
81
- * @returns {Promise<CreateLogResponse>} - Success response
82
- * @summary: Create logs for auditing later on
83
- * @description: Create a log instance that stores all the relevant info to be logged
80
+ * @param {string} arg.id - Log uuid
81
+ * @returns {Promise<LogSchemaResponse>} - Success response
82
+ * @summary: Get audit log
83
+ * @description: Get detailed log information by their id
84
84
  */
85
- async createAuditLog({ body } = {}) {
86
- const { error } = AuditTrailValidator.createAuditLog().validate(
85
+ async getAuditLog({ id } = {}) {
86
+ const { error } = AuditTrailValidator.getAuditLog().validate(
87
87
  {
88
- body,
88
+ id,
89
89
  },
90
90
  { abortEarly: false, allowUnknown: true }
91
91
  );
@@ -94,16 +94,16 @@ class AuditTrail {
94
94
  }
95
95
 
96
96
  // Showing warrnings if extra unknown parameters are found
97
- const { error: warrning } = AuditTrailValidator.createAuditLog().validate(
97
+ const { error: warrning } = AuditTrailValidator.getAuditLog().validate(
98
98
  {
99
- body,
99
+ id,
100
100
  },
101
101
  { abortEarly: false, allowUnknown: false }
102
102
  );
103
103
  if (warrning) {
104
104
  Logger({
105
105
  level: "WARN",
106
- message: "Parameter Validation warrnings for createAuditLog",
106
+ message: "Parameter Validation warrnings for getAuditLog",
107
107
  });
108
108
  Logger({ level: "WARN", message: warrning });
109
109
  }
@@ -114,16 +114,16 @@ class AuditTrail {
114
114
 
115
115
  const response = await PlatformAPIClient.execute(
116
116
  this.config,
117
- "post",
118
- `/service/platform/audit-trail/v1.0/company/${this.config.companyId}/logs/`,
117
+ "get",
118
+ `/service/platform/audit-trail/v1.0/company/${this.config.companyId}/logs/${id}`,
119
119
  query_params,
120
- body,
120
+ undefined,
121
121
  xHeaders
122
122
  );
123
123
 
124
124
  const {
125
125
  error: res_error,
126
- } = AuditTrailModel.CreateLogResponse().validate(response, {
126
+ } = AuditTrailModel.LogSchemaResponse().validate(response, {
127
127
  abortEarly: false,
128
128
  allowUnknown: false,
129
129
  });
@@ -131,7 +131,7 @@ class AuditTrail {
131
131
  if (res_error) {
132
132
  Logger({
133
133
  level: "WARN",
134
- message: "Response Validation Warnnings for createAuditLog",
134
+ message: "Response Validation Warnnings for getAuditLog",
135
135
  });
136
136
  Logger({ level: "WARN", message: res_error });
137
137
  }
@@ -141,15 +141,15 @@ class AuditTrail {
141
141
 
142
142
  /**
143
143
  * @param {Object} arg - Arg object.
144
- * @param {string} arg.id - Log uuid
144
+ * @param {string} arg.qs - Logs Query
145
145
  * @returns {Promise<LogSchemaResponse>} - Success response
146
- * @summary: Get audit log
147
- * @description: Get detailed log information by their id
146
+ * @summary: Get paginated audit logs
147
+ * @description: Get a paginated set of logs that can be filtered using the available set of parameters and get the relevant group of logs
148
148
  */
149
- async getAuditLog({ id } = {}) {
150
- const { error } = AuditTrailValidator.getAuditLog().validate(
149
+ async getAuditLogs({ qs } = {}) {
150
+ const { error } = AuditTrailValidator.getAuditLogs().validate(
151
151
  {
152
- id,
152
+ qs,
153
153
  },
154
154
  { abortEarly: false, allowUnknown: true }
155
155
  );
@@ -158,28 +158,29 @@ class AuditTrail {
158
158
  }
159
159
 
160
160
  // Showing warrnings if extra unknown parameters are found
161
- const { error: warrning } = AuditTrailValidator.getAuditLog().validate(
161
+ const { error: warrning } = AuditTrailValidator.getAuditLogs().validate(
162
162
  {
163
- id,
163
+ qs,
164
164
  },
165
165
  { abortEarly: false, allowUnknown: false }
166
166
  );
167
167
  if (warrning) {
168
168
  Logger({
169
169
  level: "WARN",
170
- message: "Parameter Validation warrnings for getAuditLog",
170
+ message: "Parameter Validation warrnings for getAuditLogs",
171
171
  });
172
172
  Logger({ level: "WARN", message: warrning });
173
173
  }
174
174
 
175
175
  const query_params = {};
176
+ query_params["qs"] = qs;
176
177
 
177
178
  const xHeaders = {};
178
179
 
179
180
  const response = await PlatformAPIClient.execute(
180
181
  this.config,
181
182
  "get",
182
- `/service/platform/audit-trail/v1.0/company/${this.config.companyId}/logs/${id}`,
183
+ `/service/platform/audit-trail/v1.0/company/${this.config.companyId}/logs/`,
183
184
  query_params,
184
185
  undefined,
185
186
  xHeaders
@@ -195,7 +196,7 @@ class AuditTrail {
195
196
  if (res_error) {
196
197
  Logger({
197
198
  level: "WARN",
198
- message: "Response Validation Warnnings for getAuditLog",
199
+ message: "Response Validation Warnnings for getAuditLogs",
199
200
  });
200
201
  Logger({ level: "WARN", message: res_error });
201
202
  }
@@ -1,18 +1,18 @@
1
1
  export = AuditTrailModel;
2
2
  declare class AuditTrailModel {
3
- static RequestBodyAuditLog(): any;
3
+ static BadRequest(): any;
4
4
  static CreateLogResponse(): any;
5
- static LogMetaObj(): any;
5
+ static DeviceInfo(): any;
6
+ static EntityObj(): any;
6
7
  static EntityObject(): any;
7
- static LogSchemaResponse(): any;
8
+ static EntityTypeObj(): any;
9
+ static EntityTypesResponse(): any;
10
+ static InternalServerError(): any;
11
+ static Location(): any;
8
12
  static LogDocs(): any;
9
- static EntityObj(): any;
13
+ static LogMetaObj(): any;
14
+ static LogSchemaResponse(): any;
10
15
  static Modifier(): any;
11
- static DeviceInfo(): any;
12
- static Location(): any;
13
- static BadRequest(): any;
16
+ static RequestBodyAuditLog(): any;
14
17
  static ResourceNotFound(): any;
15
- static InternalServerError(): any;
16
- static EntityTypesResponse(): any;
17
- static EntityTypeObj(): any;
18
18
  }
@@ -1,143 +1,104 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  class AuditTrailModel {
4
- static RequestBodyAuditLog() {
4
+ static BadRequest() {
5
5
  return Joi.object({
6
- log_meta: AuditTrailModel.LogMetaObj().required(),
7
-
8
- log_payload: Joi.any().required(),
6
+ message: Joi.string().allow(""),
9
7
  });
10
8
  }
11
-
12
9
  static CreateLogResponse() {
13
10
  return Joi.object({
14
- message: Joi.string().allow(""),
15
-
16
11
  internal_message: Joi.string().allow(""),
12
+ message: Joi.string().allow(""),
17
13
  });
18
14
  }
19
-
20
- static LogMetaObj() {
15
+ static DeviceInfo() {
21
16
  return Joi.object({
22
- modifier: Joi.any(),
23
-
24
- application: Joi.string().allow(""),
25
-
26
- entity: AuditTrailModel.EntityObject(),
27
-
28
- device_info: Joi.any(),
29
-
30
- location: Joi.any(),
17
+ extra_meta: Joi.any(),
18
+ user_agent: Joi.string().allow(""),
31
19
  });
32
20
  }
33
-
34
- static EntityObject() {
21
+ static EntityObj() {
35
22
  return Joi.object({
23
+ action: Joi.string().allow(""),
24
+ entity_details: Joi.any(),
36
25
  id: Joi.string().allow(""),
37
-
38
26
  type: Joi.string().allow(""),
39
-
40
- action: Joi.string().allow(""),
41
27
  });
42
28
  }
43
-
44
- static LogSchemaResponse() {
29
+ static EntityObject() {
45
30
  return Joi.object({
46
- docs: Joi.array().items(AuditTrailModel.LogDocs()),
31
+ action: Joi.string().allow(""),
32
+ id: Joi.string().allow(""),
33
+ type: Joi.string().allow(""),
47
34
  });
48
35
  }
49
-
50
- static LogDocs() {
36
+ static EntityTypeObj() {
51
37
  return Joi.object({
52
- entity: AuditTrailModel.EntityObj(),
53
-
54
- modifier: AuditTrailModel.Modifier(),
55
-
56
- device_info: AuditTrailModel.DeviceInfo(),
57
-
58
- location: AuditTrailModel.Location(),
59
-
60
- _id: Joi.string().allow(""),
61
-
62
- company: Joi.string().allow(""),
63
-
64
- application: Joi.string().allow(""),
65
-
66
- sessions: Joi.string().allow(""),
67
-
68
- date: Joi.string().allow(""),
69
-
70
- logs: Joi.any(),
38
+ display_name: Joi.string().allow(""),
39
+ entity_value: Joi.string().allow(""),
71
40
  });
72
41
  }
73
-
74
- static EntityObj() {
42
+ static EntityTypesResponse() {
75
43
  return Joi.object({
76
- id: Joi.string().allow(""),
77
-
78
- type: Joi.string().allow(""),
79
-
80
- action: Joi.string().allow(""),
81
-
82
- entity_details: Joi.any(),
44
+ items: Joi.array().items(AuditTrailModel.EntityTypeObj()),
83
45
  });
84
46
  }
85
-
86
- static Modifier() {
47
+ static InternalServerError() {
87
48
  return Joi.object({
88
- user_id: Joi.string().allow(""),
89
-
90
- as_administrator: Joi.boolean(),
91
-
92
- user_details: Joi.any(),
49
+ code: Joi.string().allow(""),
50
+ message: Joi.string().allow(""),
93
51
  });
94
52
  }
95
-
96
- static DeviceInfo() {
53
+ static Location() {
97
54
  return Joi.object({
98
- user_agent: Joi.string().allow(""),
99
-
100
55
  extra_meta: Joi.any(),
101
56
  });
102
57
  }
103
-
104
- static Location() {
58
+ static LogDocs() {
105
59
  return Joi.object({
106
- extra_meta: Joi.any(),
60
+ _id: Joi.string().allow(""),
61
+ application: Joi.string().allow(""),
62
+ company: Joi.string().allow(""),
63
+ date: Joi.string().allow(""),
64
+ device_info: AuditTrailModel.DeviceInfo(),
65
+ entity: AuditTrailModel.EntityObj(),
66
+ location: AuditTrailModel.Location(),
67
+ logs: Joi.any(),
68
+ modifier: AuditTrailModel.Modifier(),
69
+ sessions: Joi.string().allow(""),
107
70
  });
108
71
  }
109
-
110
- static BadRequest() {
72
+ static LogMetaObj() {
111
73
  return Joi.object({
112
- message: Joi.string().allow(""),
74
+ application: Joi.string().allow(""),
75
+ device_info: Joi.any(),
76
+ entity: AuditTrailModel.EntityObject(),
77
+ location: Joi.any(),
78
+ modifier: Joi.any(),
113
79
  });
114
80
  }
115
-
116
- static ResourceNotFound() {
81
+ static LogSchemaResponse() {
117
82
  return Joi.object({
118
- message: Joi.string().allow(""),
83
+ docs: Joi.array().items(AuditTrailModel.LogDocs()),
119
84
  });
120
85
  }
121
-
122
- static InternalServerError() {
86
+ static Modifier() {
123
87
  return Joi.object({
124
- message: Joi.string().allow(""),
125
-
126
- code: Joi.string().allow(""),
88
+ as_administrator: Joi.boolean(),
89
+ user_details: Joi.any(),
90
+ user_id: Joi.string().allow(""),
127
91
  });
128
92
  }
129
-
130
- static EntityTypesResponse() {
93
+ static RequestBodyAuditLog() {
131
94
  return Joi.object({
132
- items: Joi.array().items(AuditTrailModel.EntityTypeObj()),
95
+ log_meta: AuditTrailModel.LogMetaObj().required(),
96
+ log_payload: Joi.any().required(),
133
97
  });
134
98
  }
135
-
136
- static EntityTypeObj() {
99
+ static ResourceNotFound() {
137
100
  return Joi.object({
138
- entity_value: Joi.string().allow(""),
139
-
140
- display_name: Joi.string().allow(""),
101
+ message: Joi.string().allow(""),
141
102
  });
142
103
  }
143
104
  }
@@ -1,7 +1,7 @@
1
1
  export = AuditTrailValidator;
2
2
  declare class AuditTrailValidator {
3
- static getAuditLogs(): any;
4
3
  static createAuditLog(): any;
5
4
  static getAuditLog(): any;
5
+ static getAuditLogs(): any;
6
6
  static getEntityTypes(): any;
7
7
  }
@@ -2,12 +2,6 @@ const Joi = require("joi");
2
2
 
3
3
  const AuditTrailModel = require("./AuditTrailPlatformModel");
4
4
  class AuditTrailValidator {
5
- static getAuditLogs() {
6
- return Joi.object({
7
- qs: Joi.string().allow("").required(),
8
- }).required();
9
- }
10
-
11
5
  static createAuditLog() {
12
6
  return Joi.object({
13
7
  body: AuditTrailModel.RequestBodyAuditLog().required(),
@@ -20,8 +14,15 @@ class AuditTrailValidator {
20
14
  }).required();
21
15
  }
22
16
 
17
+ static getAuditLogs() {
18
+ return Joi.object({
19
+ qs: Joi.string().allow("").required(),
20
+ }).required();
21
+ }
22
+
23
23
  static getEntityTypes() {
24
24
  return Joi.object({}).required();
25
25
  }
26
26
  }
27
+
27
28
  module.exports = AuditTrailValidator;
@@ -2,6 +2,38 @@ export = Billing;
2
2
  declare class Billing {
3
3
  constructor(config: any);
4
4
  config: any;
5
+ /**
6
+ * @param {Object} arg - Arg object.
7
+ * @param {SubscriptionActivateReq} arg.body
8
+ * @returns {Promise<SubscriptionActivateRes>} - Success response
9
+ * @summary: Activate subscription
10
+ * @description: It will activate subscription plan for customer
11
+ */
12
+ activateSubscriptionPlan({ body }?: {
13
+ body: SubscriptionActivateReq;
14
+ }): Promise<SubscriptionActivateRes>;
15
+ /**
16
+ * @param {Object} arg - Arg object.
17
+ * @param {string} arg.extensionId - Extension _id
18
+ * @param {string} arg.subscriptionId - Subscription charge _id
19
+ * @returns {Promise<EntitySubscription>} - Success response
20
+ * @summary: Cancel subscription charge
21
+ * @description: Cancel subscription and attached charges.
22
+ */
23
+ cancelSubscriptionCharge({ extensionId, subscriptionId }?: {
24
+ extensionId: string;
25
+ subscriptionId: string;
26
+ }): Promise<EntitySubscription>;
27
+ /**
28
+ * @param {Object} arg - Arg object.
29
+ * @param {CancelSubscriptionReq} arg.body
30
+ * @returns {Promise<CancelSubscriptionRes>} - Success response
31
+ * @summary: Cancel subscription
32
+ * @description: It will cancel current active subscription.
33
+ */
34
+ cancelSubscriptionPlan({ body }?: {
35
+ body: CancelSubscriptionReq;
36
+ }): Promise<CancelSubscriptionRes>;
5
37
  /**
6
38
  * @param {Object} arg - Arg object.
7
39
  * @param {string} arg.plan - ID of the plan.
@@ -28,35 +60,18 @@ declare class Billing {
28
60
  }): Promise<CreateSubscriptionResponse>;
29
61
  /**
30
62
  * @param {Object} arg - Arg object.
31
- * @param {string} arg.extensionId - Extension _id
32
- * @param {string} arg.subscriptionId - Subscription charge _id
33
- * @returns {Promise<EntitySubscription>} - Success response
34
- * @summary: Get subscription charge details
35
- * @description: Get created subscription charge details
36
- */
37
- getSubscriptionCharge({ extensionId, subscriptionId }?: {
38
- extensionId: string;
39
- subscriptionId: string;
40
- }): Promise<EntitySubscription>;
41
- /**
42
- * @param {Object} arg - Arg object.
43
- * @param {string} arg.extensionId - Extension _id
44
- * @param {string} arg.subscriptionId - Subscription charge _id
45
- * @returns {Promise<EntitySubscription>} - Success response
46
- * @summary: Cancel subscription charge
47
- * @description: Cancel subscription and attached charges.
63
+ * @returns {Promise<SubscriptionCustomer>} - Success response
64
+ * @summary: Get subscription customer detail
65
+ * @description: Get subscription customer detail.
48
66
  */
49
- cancelSubscriptionCharge({ extensionId, subscriptionId }?: {
50
- extensionId: string;
51
- subscriptionId: string;
52
- }): Promise<EntitySubscription>;
67
+ getCustomerDetail({}?: any): Promise<SubscriptionCustomer>;
53
68
  /**
54
69
  * @param {Object} arg - Arg object.
55
- * @returns {Promise<Invoices>} - Success response
56
- * @summary: Get invoices
57
- * @description: Get invoices.
70
+ * @returns {Promise<SubscriptionLimit>} - Success response
71
+ * @summary: Get subscription subscription limits
72
+ * @description: Get subscription subscription limits.
58
73
  */
59
- getInvoices({}?: any): Promise<Invoices>;
74
+ getFeatureLimitConfig({}?: any): Promise<SubscriptionLimit>;
60
75
  /**
61
76
  * @param {Object} arg - Arg object.
62
77
  * @param {string} arg.invoiceId - Invoice id
@@ -69,21 +84,11 @@ declare class Billing {
69
84
  }): Promise<Invoice>;
70
85
  /**
71
86
  * @param {Object} arg - Arg object.
72
- * @returns {Promise<SubscriptionCustomer>} - Success response
73
- * @summary: Get subscription customer detail
74
- * @description: Get subscription customer detail.
75
- */
76
- getCustomerDetail({}?: any): Promise<SubscriptionCustomer>;
77
- /**
78
- * @param {Object} arg - Arg object.
79
- * @param {SubscriptionCustomerCreate} arg.body
80
- * @returns {Promise<SubscriptionCustomer>} - Success response
81
- * @summary: Upsert subscription customer detail
82
- * @description: Upsert subscription customer detail.
87
+ * @returns {Promise<Invoices>} - Success response
88
+ * @summary: Get invoices
89
+ * @description: Get invoices.
83
90
  */
84
- upsertCustomerDetail({ body }?: {
85
- body: SubscriptionCustomerCreate;
86
- }): Promise<SubscriptionCustomer>;
91
+ getInvoices({}?: any): Promise<Invoices>;
87
92
  /**
88
93
  * @param {Object} arg - Arg object.
89
94
  * @returns {Promise<SubscriptionStatus>} - Success response
@@ -93,29 +98,24 @@ declare class Billing {
93
98
  getSubscription({}?: any): Promise<SubscriptionStatus>;
94
99
  /**
95
100
  * @param {Object} arg - Arg object.
96
- * @returns {Promise<SubscriptionLimit>} - Success response
97
- * @summary: Get subscription subscription limits
98
- * @description: Get subscription subscription limits.
99
- */
100
- getFeatureLimitConfig({}?: any): Promise<SubscriptionLimit>;
101
- /**
102
- * @param {Object} arg - Arg object.
103
- * @param {SubscriptionActivateReq} arg.body
104
- * @returns {Promise<SubscriptionActivateRes>} - Success response
105
- * @summary: Activate subscription
106
- * @description: It will activate subscription plan for customer
101
+ * @param {string} arg.extensionId - Extension _id
102
+ * @param {string} arg.subscriptionId - Subscription charge _id
103
+ * @returns {Promise<EntitySubscription>} - Success response
104
+ * @summary: Get subscription charge details
105
+ * @description: Get created subscription charge details
107
106
  */
108
- activateSubscriptionPlan({ body }?: {
109
- body: SubscriptionActivateReq;
110
- }): Promise<SubscriptionActivateRes>;
107
+ getSubscriptionCharge({ extensionId, subscriptionId }?: {
108
+ extensionId: string;
109
+ subscriptionId: string;
110
+ }): Promise<EntitySubscription>;
111
111
  /**
112
112
  * @param {Object} arg - Arg object.
113
- * @param {CancelSubscriptionReq} arg.body
114
- * @returns {Promise<CancelSubscriptionRes>} - Success response
115
- * @summary: Cancel subscription
116
- * @description: It will cancel current active subscription.
113
+ * @param {SubscriptionCustomerCreate} arg.body
114
+ * @returns {Promise<SubscriptionCustomer>} - Success response
115
+ * @summary: Upsert subscription customer detail
116
+ * @description: Upsert subscription customer detail.
117
117
  */
118
- cancelSubscriptionPlan({ body }?: {
119
- body: CancelSubscriptionReq;
120
- }): Promise<CancelSubscriptionRes>;
118
+ upsertCustomerDetail({ body }?: {
119
+ body: SubscriptionCustomerCreate;
120
+ }): Promise<SubscriptionCustomer>;
121
121
  }