@gofynd/fdk-client-javascript 1.1.6 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +12 -0
  2. package/index.js +0 -3
  3. package/package.json +1 -1
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +8 -1
  6. package/sdk/application/ApplicationClient.d.ts +37 -6
  7. package/sdk/application/ApplicationClient.js +31 -0
  8. package/sdk/application/ApplicationConfig.d.ts +52 -12
  9. package/sdk/application/ApplicationConfig.js +37 -2
  10. package/sdk/application/ApplicationModels.d.ts +46 -1
  11. package/sdk/application/ApplicationModels.js +18 -0
  12. package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
  13. package/sdk/application/Cart/CartApplicationClient.js +620 -483
  14. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  15. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  16. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  17. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  18. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
  19. package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
  20. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
  21. package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
  22. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  23. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  24. package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
  25. package/sdk/application/Common/CommonApplicationClient.js +50 -33
  26. package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
  27. package/sdk/application/Common/CommonApplicationModel.js +224 -16
  28. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  29. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  30. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
  31. package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
  32. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
  33. package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
  34. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  35. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
  37. package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
  39. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  41. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  42. package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
  43. package/sdk/application/Content/ContentApplicationClient.js +409 -277
  44. package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
  45. package/sdk/application/Content/ContentApplicationModel.js +1202 -109
  46. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  47. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
  49. package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
  51. package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  53. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  54. package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
  55. package/sdk/application/Lead/LeadApplicationClient.js +169 -103
  56. package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
  57. package/sdk/application/Lead/LeadApplicationModel.js +619 -73
  58. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  59. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  60. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
  61. package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
  62. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  63. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  64. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  65. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  66. package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
  67. package/sdk/application/Order/OrderApplicationClient.js +297 -217
  68. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  69. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  70. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  71. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  72. package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
  73. package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
  74. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  75. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  76. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  77. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  78. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
  79. package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
  80. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  81. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  82. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  83. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  84. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
  85. package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
  86. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  87. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  88. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  89. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  90. package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
  91. package/sdk/application/Share/ShareApplicationClient.js +165 -97
  92. package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
  93. package/sdk/application/Share/ShareApplicationModel.js +154 -16
  94. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  95. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  96. package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
  97. package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
  98. package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
  99. package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
  100. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  101. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  102. package/sdk/application/User/UserApplicationClient.d.ts +219 -303
  103. package/sdk/application/User/UserApplicationClient.js +819 -522
  104. package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
  105. package/sdk/application/User/UserApplicationModel.js +983 -44
  106. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  107. package/sdk/application/User/UserApplicationValidator.js +265 -31
  108. package/sdk/common/AxiosHelper.js +8 -2
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/partner/PartnerAPIClient.d.ts +15 -1
  113. package/sdk/partner/PartnerAPIClient.js +8 -1
  114. package/sdk/partner/PartnerClient.d.ts +20 -3
  115. package/sdk/partner/PartnerClient.js +17 -0
  116. package/sdk/partner/PartnerConfig.d.ts +40 -14
  117. package/sdk/partner/PartnerConfig.js +31 -6
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
  124. package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
  125. package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
  126. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
  127. package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
  128. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
  129. package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
  131. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  133. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  134. package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
  135. package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  140. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
  141. package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
  142. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
  143. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
  145. package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
  146. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
  147. package/sdk/platform/Common/CommonPlatformClient.js +48 -33
  148. package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
  149. package/sdk/platform/Common/CommonPlatformModel.js +224 -16
  150. package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
  151. package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
  153. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
  156. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
  157. package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
  158. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
  159. package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
  160. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
  183. package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
  200. package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
  201. package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
  202. package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
  203. package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
  204. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
  205. package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
  206. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
  207. package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
  208. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  209. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  210. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  211. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  212. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
  213. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
  214. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  215. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  216. package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
  217. package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
  218. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
  219. package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
  220. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  221. package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
  222. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
  223. package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
  224. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  225. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  226. package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
  227. package/sdk/platform/Order/OrderPlatformClient.js +969 -762
  228. package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
  229. package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
  230. package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
  231. package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
  232. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
  233. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
  234. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
  235. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
  236. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
  237. package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
  238. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
  239. package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
  240. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
  241. package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
  242. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
  243. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
  244. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
  245. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
  246. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
  247. package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
  248. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
  249. package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
  250. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  251. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  252. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  253. package/sdk/platform/PlatformAPIClient.js +9 -1
  254. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  255. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  256. package/sdk/platform/PlatformClient.d.ts +29 -12579
  257. package/sdk/platform/PlatformClient.js +26 -15085
  258. package/sdk/platform/PlatformConfig.d.ts +37 -11
  259. package/sdk/platform/PlatformConfig.js +32 -6
  260. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
  261. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
  262. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  263. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  264. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
  265. package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
  266. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
  267. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
  268. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
  269. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
  270. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
  271. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
  272. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  276. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
  277. package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
  278. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  279. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  280. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  281. package/sdk/platform/Share/SharePlatformModel.js +165 -17
  282. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
  283. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
  284. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
  285. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
  286. package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
  287. package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
  288. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
  289. package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
  290. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
  291. package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
  292. package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
  293. package/sdk/platform/User/UserPlatformModel.js +983 -44
  294. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
  295. package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
  296. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
  297. package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
  298. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
  299. package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
  300. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
  301. package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
  302. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
  303. package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
  304. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  305. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  306. package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
  307. package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
  308. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  309. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  310. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  311. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  312. package/sdk/public/PublicClient.d.ts +19 -3
  313. package/sdk/public/PublicClient.js +16 -0
  314. package/sdk/public/PublicConfig.d.ts +27 -6
  315. package/sdk/public/PublicConfig.js +17 -1
  316. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
  317. package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
  318. package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
  319. package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
  320. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  321. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
@@ -1,69 +1,1212 @@
1
- export = BillingModel;
2
- declare class BillingModel {
3
- static BadRequest(): any;
4
- static CancelSubscriptionReq(): any;
5
- static CancelSubscriptionRes(): any;
6
- static ChargeLineItem(): any;
7
- static CheckValidityResponse(): any;
8
- static CreateOneTimeCharge(): any;
9
- static CreateOneTimeChargeResponse(): any;
10
- static CreateSubscriptionCharge(): any;
11
- static CreateSubscriptionResponse(): any;
12
- static CurrentPeriod(): any;
13
- static DetailedPlan(): any;
14
- static DetailedPlanComponents(): any;
15
- static EntityChargePrice(): any;
16
- static EntityChargeRecurring(): any;
17
- static EntitySubscription(): any;
18
- static InternalServerError(): any;
19
- static Invoice(): any;
20
- static InvoiceDetails(): any;
21
- static InvoiceDetailsClient(): any;
22
- static InvoiceDetailsPaymentMethods(): any;
23
- static InvoiceDetailsPaymentMethodsData(): any;
24
- static InvoiceDetailsPaymentMethodsDataChecks(): any;
25
- static InvoiceDetailsPaymentMethodsDataNetworks(): any;
26
- static InvoiceDetailsPaymentMethodsDataThreeDSecureUsage(): any;
27
- static InvoiceDetailsPeriod(): any;
28
- static InvoiceDetailsStatusTrail(): any;
29
- static InvoiceItems(): any;
30
- static InvoiceItemsPeriod(): any;
31
- static InvoiceItemsPlan(): any;
32
- static InvoiceItemsPlanRecurring(): any;
33
- static InvoicePaymentMethod(): any;
34
- static Invoices(): any;
35
- static InvoicesData(): any;
36
- static InvoicesDataClient(): any;
37
- static InvoicesDataPaymentMethod(): any;
38
- static InvoicesDataPeriod(): any;
39
- static OneTimeChargeEntity(): any;
40
- static OneTimeChargeItem(): any;
41
- static Page(): any;
42
- static Phone(): any;
43
- static Plan(): any;
44
- static PlanRecurring(): any;
45
- static ResourceNotFound(): any;
46
- static Subscription(): any;
47
- static SubscriptionActivateReq(): any;
48
- static SubscriptionActivateRes(): any;
49
- static SubscriptionBillingAddress(): any;
50
- static SubscriptionCharge(): any;
51
- static SubscriptionCurrentPeriod(): any;
52
- static SubscriptionCustomer(): any;
53
- static SubscriptionCustomerCreate(): any;
54
- static SubscriptionInvoiceSettings(): any;
55
- static SubscriptionLimit(): any;
56
- static SubscriptionLimitApplication(): any;
57
- static SubscriptionLimitExtensions(): any;
58
- static SubscriptionLimitIntegrations(): any;
59
- static SubscriptionLimitMarketplace(): any;
60
- static SubscriptionLimitOtherPlatform(): any;
61
- static SubscriptionLimitProducts(): any;
62
- static SubscriptionLimitTeam(): any;
63
- static SubscriptionPauseCollection(): any;
64
- static SubscriptionStatus(): any;
65
- static SubscriptionTrial(): any;
66
- static SubscriptionTrialPeriod(): any;
67
- static UnauthenticatedApplication(): any;
68
- static UnauthenticatedUser(): any;
1
+ export = BillingPlatformModel;
2
+ /**
3
+ * @typedef BadRequest
4
+ * @property {string} [message] - Failure message.
5
+ */
6
+ /**
7
+ * @typedef CancelSubscriptionReq
8
+ * @property {string} [product_suite]
9
+ * @property {string} [subscription_id]
10
+ * @property {string} [type]
11
+ * @property {string} [unique_id]
12
+ */
13
+ /**
14
+ * @typedef CancelSubscriptionRes
15
+ * @property {Subscription} [data]
16
+ * @property {boolean} [success]
17
+ */
18
+ /**
19
+ * @typedef ChargeLineItem
20
+ * @property {number} [capped_amount]
21
+ * @property {boolean} [is_test]
22
+ * @property {Object} [metadata]
23
+ * @property {string} name
24
+ * @property {EntityChargePrice} price
25
+ * @property {string} pricing_type
26
+ * @property {EntityChargeRecurring} [recurring]
27
+ * @property {string} term
28
+ * @property {number} [trial_days]
29
+ */
30
+ /**
31
+ * @typedef CheckValidityResponse
32
+ * @property {number} [discount_amount]
33
+ * @property {boolean} [is_valid]
34
+ */
35
+ /**
36
+ * @typedef CreateOneTimeCharge
37
+ * @property {OneTimeChargeItem} charge
38
+ * @property {boolean} [is_test]
39
+ * @property {string} name
40
+ * @property {string} return_url
41
+ */
42
+ /**
43
+ * @typedef CreateOneTimeChargeResponse
44
+ * @property {OneTimeChargeEntity} [charge]
45
+ * @property {string} [confirm_url]
46
+ */
47
+ /**
48
+ * @typedef CreateSubscriptionCharge
49
+ * @property {boolean} [is_test]
50
+ * @property {ChargeLineItem[]} line_items
51
+ * @property {string} name
52
+ * @property {string} return_url
53
+ * @property {number} [trial_days]
54
+ */
55
+ /**
56
+ * @typedef CreateSubscriptionResponse
57
+ * @property {string} [confirm_url]
58
+ * @property {EntitySubscription} [subscription]
59
+ */
60
+ /**
61
+ * @typedef CurrentPeriod
62
+ * @property {string} [end_date]
63
+ * @property {string} [start_date]
64
+ */
65
+ /**
66
+ * @typedef DetailedPlan
67
+ * @property {string} [_id]
68
+ * @property {string[]} [addons]
69
+ * @property {number} [amount]
70
+ * @property {DetailedPlanComponents[]} [components]
71
+ * @property {string} [country]
72
+ * @property {string} [created_at]
73
+ * @property {string} [currency]
74
+ * @property {string} [description]
75
+ * @property {boolean} [is_active]
76
+ * @property {boolean} [is_trial_plan]
77
+ * @property {boolean} [is_visible]
78
+ * @property {string} [modified_at]
79
+ * @property {string} [name]
80
+ * @property {string} [plan_group]
81
+ * @property {string} [product_suite_id]
82
+ * @property {PlanRecurring} [recurring]
83
+ * @property {string[]} [tag_lines]
84
+ * @property {string[]} [tags]
85
+ * @property {number} [trial_period]
86
+ * @property {string} [type]
87
+ */
88
+ /**
89
+ * @typedef DetailedPlanComponents
90
+ * @property {Object} [config]
91
+ * @property {string} [description]
92
+ * @property {string} [display_text]
93
+ * @property {boolean} [enabled]
94
+ * @property {string} [group]
95
+ * @property {string} [icon]
96
+ * @property {Object} [links]
97
+ * @property {string} [name]
98
+ * @property {string} [slug]
99
+ */
100
+ /**
101
+ * @typedef EntityChargePrice
102
+ * @property {number} amount - Amount for price. Minimum value 1
103
+ * @property {string} currency_code
104
+ */
105
+ /**
106
+ * @typedef EntityChargeRecurring
107
+ * @property {string} interval
108
+ */
109
+ /**
110
+ * @typedef EntitySubscription
111
+ * @property {string} [_id]
112
+ * @property {string} [activated_on]
113
+ * @property {string} [cancelled_on]
114
+ * @property {number} [company_id]
115
+ * @property {SubscriptionCharge[]} [line_items]
116
+ * @property {Object} [metadata]
117
+ * @property {string} [name]
118
+ * @property {string} [status]
119
+ * @property {number} [trial_days]
120
+ * @property {SubscriptionTrialPeriod} [trial_period]
121
+ */
122
+ /**
123
+ * @typedef InternalServerError
124
+ * @property {string} [code] - Error code
125
+ * @property {string} [message] - Internal server Server error
126
+ */
127
+ /**
128
+ * @typedef Invoice
129
+ * @property {InvoiceDetails} [invoice]
130
+ * @property {InvoiceItems[]} [invoice_items]
131
+ */
132
+ /**
133
+ * @typedef InvoiceDetails
134
+ * @property {string} [_id]
135
+ * @property {number} [attemp]
136
+ * @property {boolean} [auto_advance]
137
+ * @property {InvoiceDetailsClient} [client]
138
+ * @property {string} [collection_method]
139
+ * @property {string} [created_at]
140
+ * @property {string} [currency]
141
+ * @property {string} [current_status]
142
+ * @property {string} [hash_identifier]
143
+ * @property {string} [invoice_url]
144
+ * @property {string} [modified_at]
145
+ * @property {string} [next_action_time]
146
+ * @property {string} [number]
147
+ * @property {boolean} [paid]
148
+ * @property {InvoicePaymentMethod} [payment_method]
149
+ * @property {InvoiceDetailsPeriod} [period]
150
+ * @property {Object} [pg_data]
151
+ * @property {string} [receipt_number]
152
+ * @property {string} [statement_descriptor]
153
+ * @property {InvoiceDetailsStatusTrail[]} [status_trail]
154
+ * @property {string} [subscriber_id]
155
+ * @property {string} [subscription]
156
+ * @property {number} [subtotal]
157
+ * @property {number} [total]
158
+ */
159
+ /**
160
+ * @typedef InvoiceDetailsClient
161
+ * @property {string[]} [address_lines]
162
+ * @property {string} [email]
163
+ * @property {string} [name]
164
+ * @property {string} [phone]
165
+ */
166
+ /**
167
+ * @typedef InvoiceDetailsPaymentMethods
168
+ * @property {InvoiceDetailsPaymentMethodsData} [data]
169
+ * @property {number} [id]
170
+ * @property {boolean} [is_default]
171
+ * @property {string} [pg_payment_method_id]
172
+ * @property {string} [type]
173
+ */
174
+ /**
175
+ * @typedef InvoiceDetailsPaymentMethodsData
176
+ * @property {string} [brand]
177
+ * @property {InvoiceDetailsPaymentMethodsDataChecks} [checks]
178
+ * @property {string} [country]
179
+ * @property {number} [exp_month]
180
+ * @property {number} [exp_year]
181
+ * @property {string} [fingerprint]
182
+ * @property {string} [funding]
183
+ * @property {string} [generated_from]
184
+ * @property {string} [last4]
185
+ * @property {InvoiceDetailsPaymentMethodsDataNetworks} [networks]
186
+ * @property {InvoiceDetailsPaymentMethodsDataThreeDSecureUsage} [three_d_secure_usage]
187
+ * @property {string} [wallet]
188
+ */
189
+ /**
190
+ * @typedef InvoiceDetailsPaymentMethodsDataChecks
191
+ * @property {string} [address_line1_check]
192
+ * @property {string} [address_postal_code_check]
193
+ * @property {string} [cvc_check]
194
+ */
195
+ /**
196
+ * @typedef InvoiceDetailsPaymentMethodsDataNetworks
197
+ * @property {string[]} [available]
198
+ * @property {string} [preferred]
199
+ */
200
+ /**
201
+ * @typedef InvoiceDetailsPaymentMethodsDataThreeDSecureUsage
202
+ * @property {boolean} [supported]
203
+ */
204
+ /**
205
+ * @typedef InvoiceDetailsPeriod
206
+ * @property {string} [end]
207
+ * @property {string} [start]
208
+ */
209
+ /**
210
+ * @typedef InvoiceDetailsStatusTrail
211
+ * @property {string} [_id]
212
+ * @property {string} [timestamp]
213
+ * @property {string} [value]
214
+ */
215
+ /**
216
+ * @typedef InvoiceItems
217
+ * @property {string} [_id]
218
+ * @property {number} [amount]
219
+ * @property {string} [created_at]
220
+ * @property {string} [currency]
221
+ * @property {string} [description]
222
+ * @property {string} [invoice_id]
223
+ * @property {string} [modified_at]
224
+ * @property {string} [name]
225
+ * @property {InvoiceItemsPeriod} [period]
226
+ * @property {InvoiceItemsPlan} [plan]
227
+ * @property {number} [quantity]
228
+ * @property {string} [type]
229
+ * @property {number} [unit_amount]
230
+ */
231
+ /**
232
+ * @typedef InvoiceItemsPeriod
233
+ * @property {string} [end]
234
+ * @property {string} [start]
235
+ */
236
+ /**
237
+ * @typedef InvoiceItemsPlan
238
+ * @property {string} [_id]
239
+ * @property {string[]} [addons]
240
+ * @property {number} [amount]
241
+ * @property {string} [country]
242
+ * @property {string} [created_at]
243
+ * @property {string} [currency]
244
+ * @property {string} [description]
245
+ * @property {boolean} [is_active]
246
+ * @property {boolean} [is_trial_plan]
247
+ * @property {boolean} [is_visible]
248
+ * @property {string} [modified_at]
249
+ * @property {string} [name]
250
+ * @property {string} [plan_group]
251
+ * @property {string} [product_suite_id]
252
+ * @property {InvoiceItemsPlanRecurring} [recurring]
253
+ * @property {string[]} [tag_lines]
254
+ * @property {string[]} [tags]
255
+ * @property {number} [trial_period]
256
+ * @property {string} [type]
257
+ */
258
+ /**
259
+ * @typedef InvoiceItemsPlanRecurring
260
+ * @property {string} [interval]
261
+ * @property {number} [interval_count]
262
+ */
263
+ /**
264
+ * @typedef InvoicePaymentMethod
265
+ * @property {string} [pg_payment_method_id]
266
+ */
267
+ /**
268
+ * @typedef Invoices
269
+ * @property {InvoicesData[]} [data]
270
+ * @property {number} [end]
271
+ * @property {number} [limit]
272
+ * @property {number} [page]
273
+ * @property {number} [start]
274
+ * @property {number} [total]
275
+ */
276
+ /**
277
+ * @typedef InvoicesData
278
+ * @property {string} [_id]
279
+ * @property {number} [attemp]
280
+ * @property {boolean} [auto_advance]
281
+ * @property {InvoicesDataClient} [client]
282
+ * @property {string} [collection_method]
283
+ * @property {string} [created_at]
284
+ * @property {string} [currency]
285
+ * @property {string} [current_status]
286
+ * @property {string} [hash_identifier]
287
+ * @property {InvoiceItems[]} [invoice_items]
288
+ * @property {string} [invoice_url]
289
+ * @property {string} [modified_at]
290
+ * @property {string} [next_action_time]
291
+ * @property {string} [number]
292
+ * @property {boolean} [paid]
293
+ * @property {InvoicesDataPaymentMethod} [payment_method]
294
+ * @property {InvoicesDataPeriod} [period]
295
+ * @property {Object} [pg_data]
296
+ * @property {string} [receipt_number]
297
+ * @property {string} [statement_descriptor]
298
+ * @property {InvoiceDetailsStatusTrail[]} [status_trail]
299
+ * @property {string} [subscriber_id]
300
+ * @property {string} [subscription]
301
+ * @property {number} [subtotal]
302
+ * @property {number} [total]
303
+ */
304
+ /**
305
+ * @typedef InvoicesDataClient
306
+ * @property {string[]} [address_lines]
307
+ * @property {string} [email]
308
+ * @property {string} [name]
309
+ * @property {string} [phone]
310
+ */
311
+ /**
312
+ * @typedef InvoicesDataPaymentMethod
313
+ * @property {string} [pg_payment_method_id]
314
+ */
315
+ /**
316
+ * @typedef InvoicesDataPeriod
317
+ * @property {string} [end]
318
+ * @property {string} [start]
319
+ */
320
+ /**
321
+ * @typedef OneTimeChargeEntity
322
+ * @property {string} [_id]
323
+ * @property {string} [activated_on]
324
+ * @property {string} [cancelled_on]
325
+ * @property {string} [entity_id]
326
+ * @property {string} [entity_type]
327
+ * @property {boolean} [is_test]
328
+ * @property {Object} [meta]
329
+ * @property {Object} [metadata]
330
+ * @property {string} [name]
331
+ * @property {EntityChargePrice} [price]
332
+ * @property {string} [pricing_type]
333
+ * @property {string} [return_url]
334
+ * @property {string} [status]
335
+ * @property {string} [subscriber_id]
336
+ */
337
+ /**
338
+ * @typedef OneTimeChargeItem
339
+ * @property {number} [capped_amount]
340
+ * @property {boolean} [is_test]
341
+ * @property {Object} [metadata]
342
+ * @property {string} name
343
+ * @property {EntityChargePrice} price
344
+ * @property {string} pricing_type
345
+ * @property {string} [term]
346
+ */
347
+ /**
348
+ * @typedef Page
349
+ * @property {number} [current]
350
+ * @property {boolean} [has_next]
351
+ * @property {boolean} [has_previous]
352
+ * @property {number} [item_total]
353
+ * @property {string} [next_id]
354
+ * @property {number} [size]
355
+ * @property {string} type
356
+ */
357
+ /**
358
+ * @typedef Phone
359
+ * @property {string} [phone_country_code]
360
+ * @property {string} [phone_number]
361
+ */
362
+ /**
363
+ * @typedef Plan
364
+ * @property {string} [_id]
365
+ * @property {string[]} [addons]
366
+ * @property {number} [amount]
367
+ * @property {string} [country]
368
+ * @property {string} [created_at]
369
+ * @property {string} [currency]
370
+ * @property {string} [description]
371
+ * @property {boolean} [is_active]
372
+ * @property {boolean} [is_trial_plan]
373
+ * @property {boolean} [is_visible]
374
+ * @property {string} [modified_at]
375
+ * @property {string} [name]
376
+ * @property {string} [plan_group]
377
+ * @property {string} [product_suite_id]
378
+ * @property {PlanRecurring} [recurring]
379
+ * @property {string[]} [tag_lines]
380
+ * @property {string[]} [tags]
381
+ * @property {number} [trial_period]
382
+ * @property {string} [type]
383
+ */
384
+ /**
385
+ * @typedef PlanRecurring
386
+ * @property {string} [interval]
387
+ * @property {number} [interval_count]
388
+ */
389
+ /**
390
+ * @typedef ResourceNotFound
391
+ * @property {string} [message] - Resource not found with {id}
392
+ */
393
+ /**
394
+ * @typedef Subscription
395
+ * @property {string} [_id]
396
+ * @property {boolean} [cancel_at_period_end]
397
+ * @property {string} [channel_type]
398
+ * @property {string} [collection_method]
399
+ * @property {string} [created_at]
400
+ * @property {SubscriptionCurrentPeriod} [current_period]
401
+ * @property {string} [current_status]
402
+ * @property {SubscriptionInvoiceSettings} [invoice_settings]
403
+ * @property {boolean} [is_active]
404
+ * @property {string} [latest_invoice]
405
+ * @property {string} [modified_at]
406
+ * @property {SubscriptionPauseCollection} [pause_collection]
407
+ * @property {Plan} [plan_data]
408
+ * @property {string} [plan_id]
409
+ * @property {string} [product_suite_id]
410
+ * @property {string} [subscriber_id]
411
+ * @property {SubscriptionTrial} [trial]
412
+ */
413
+ /**
414
+ * @typedef SubscriptionActivateReq
415
+ * @property {string} [payment_method]
416
+ * @property {string} [plan_id]
417
+ * @property {string} [product_suite]
418
+ * @property {string} [type]
419
+ * @property {string} [unique_id]
420
+ */
421
+ /**
422
+ * @typedef SubscriptionActivateRes
423
+ * @property {Subscription} [data]
424
+ * @property {boolean} [success]
425
+ */
426
+ /**
427
+ * @typedef SubscriptionBillingAddress
428
+ * @property {string} [city]
429
+ * @property {string} [country]
430
+ * @property {string} [line1]
431
+ * @property {string} [line2]
432
+ * @property {string} [postal_code]
433
+ * @property {string} [state]
434
+ */
435
+ /**
436
+ * @typedef SubscriptionCharge
437
+ * @property {string} [_id]
438
+ * @property {string} [activated_on]
439
+ * @property {string} [billing_date]
440
+ * @property {string} [cancelled_on]
441
+ * @property {number} [capped_amount]
442
+ * @property {CurrentPeriod} [current_period]
443
+ * @property {boolean} [is_test]
444
+ * @property {Object} [metadata]
445
+ * @property {string} [name]
446
+ * @property {EntityChargePrice} [price]
447
+ * @property {string} [pricing_type]
448
+ * @property {EntityChargeRecurring} [recurring]
449
+ * @property {string} [status]
450
+ * @property {string} [term] - Brief description for a charge
451
+ */
452
+ /**
453
+ * @typedef SubscriptionCurrentPeriod
454
+ * @property {string} [end]
455
+ * @property {string} [start]
456
+ */
457
+ /**
458
+ * @typedef SubscriptionCustomer
459
+ * @property {string} [_id]
460
+ * @property {SubscriptionBillingAddress} [billing_address]
461
+ * @property {string} [created_at]
462
+ * @property {Object} [data]
463
+ * @property {string} [email]
464
+ * @property {string} [modified_at]
465
+ * @property {string} [name]
466
+ * @property {Phone} [phone]
467
+ * @property {string} [type]
468
+ * @property {string} [unique_id]
469
+ */
470
+ /**
471
+ * @typedef SubscriptionCustomerCreate
472
+ * @property {SubscriptionBillingAddress} [billing_address]
473
+ * @property {string} [email]
474
+ * @property {string} [name]
475
+ * @property {Phone} [phone]
476
+ * @property {string} [type]
477
+ * @property {string} [unique_id]
478
+ */
479
+ /**
480
+ * @typedef SubscriptionInvoiceSettings
481
+ * @property {boolean} [charging]
482
+ * @property {boolean} [generation]
483
+ */
484
+ /**
485
+ * @typedef SubscriptionLimit
486
+ * @property {SubscriptionLimitApplication} [application]
487
+ * @property {SubscriptionLimitExtensions} [extensions]
488
+ * @property {SubscriptionLimitIntegrations} [integrations]
489
+ * @property {boolean} [is_trial_plan]
490
+ * @property {SubscriptionLimitMarketplace} [marketplace]
491
+ * @property {SubscriptionLimitOtherPlatform} [other_platform]
492
+ * @property {SubscriptionLimitProducts} [products]
493
+ * @property {SubscriptionLimitTeam} [team]
494
+ */
495
+ /**
496
+ * @typedef SubscriptionLimitApplication
497
+ * @property {boolean} [enabled]
498
+ * @property {number} [hard_limit]
499
+ * @property {number} [soft_limit]
500
+ */
501
+ /**
502
+ * @typedef SubscriptionLimitExtensions
503
+ * @property {boolean} [enabled]
504
+ * @property {number} [limit]
505
+ */
506
+ /**
507
+ * @typedef SubscriptionLimitIntegrations
508
+ * @property {boolean} [enabled]
509
+ * @property {number} [limit]
510
+ */
511
+ /**
512
+ * @typedef SubscriptionLimitMarketplace
513
+ * @property {boolean} [enabled]
514
+ */
515
+ /**
516
+ * @typedef SubscriptionLimitOtherPlatform
517
+ * @property {boolean} [enabled]
518
+ */
519
+ /**
520
+ * @typedef SubscriptionLimitProducts
521
+ * @property {boolean} [bulk]
522
+ * @property {number} [limit]
523
+ */
524
+ /**
525
+ * @typedef SubscriptionLimitTeam
526
+ * @property {number} [limit]
527
+ */
528
+ /**
529
+ * @typedef SubscriptionPauseCollection
530
+ * @property {string} [behavior]
531
+ * @property {string} [resume_at]
532
+ */
533
+ /**
534
+ * @typedef SubscriptionStatus
535
+ * @property {Subscription[]} [current_subscriptions]
536
+ * @property {boolean} [is_enabled]
537
+ * @property {InvoicesData} [latest_invoice]
538
+ * @property {string} [mandate_amount]
539
+ * @property {Plan} [next_plan]
540
+ * @property {Subscription} [subscription]
541
+ */
542
+ /**
543
+ * @typedef SubscriptionTrial
544
+ * @property {string} [end]
545
+ * @property {string} [start]
546
+ */
547
+ /**
548
+ * @typedef SubscriptionTrialPeriod
549
+ * @property {string} [end_date]
550
+ * @property {string} [start_date]
551
+ */
552
+ /**
553
+ * @typedef UnauthenticatedApplication
554
+ * @property {string} [message] - Failure message.
555
+ */
556
+ /**
557
+ * @typedef UnauthenticatedUser
558
+ * @property {string} [message] - Failure message.
559
+ */
560
+ declare class BillingPlatformModel {
69
561
  }
562
+ declare namespace BillingPlatformModel {
563
+ export { BadRequest, CancelSubscriptionReq, CancelSubscriptionRes, ChargeLineItem, CheckValidityResponse, CreateOneTimeCharge, CreateOneTimeChargeResponse, CreateSubscriptionCharge, CreateSubscriptionResponse, CurrentPeriod, DetailedPlan, DetailedPlanComponents, EntityChargePrice, EntityChargeRecurring, EntitySubscription, InternalServerError, Invoice, InvoiceDetails, InvoiceDetailsClient, InvoiceDetailsPaymentMethods, InvoiceDetailsPaymentMethodsData, InvoiceDetailsPaymentMethodsDataChecks, InvoiceDetailsPaymentMethodsDataNetworks, InvoiceDetailsPaymentMethodsDataThreeDSecureUsage, InvoiceDetailsPeriod, InvoiceDetailsStatusTrail, InvoiceItems, InvoiceItemsPeriod, InvoiceItemsPlan, InvoiceItemsPlanRecurring, InvoicePaymentMethod, Invoices, InvoicesData, InvoicesDataClient, InvoicesDataPaymentMethod, InvoicesDataPeriod, OneTimeChargeEntity, OneTimeChargeItem, Page, Phone, Plan, PlanRecurring, ResourceNotFound, Subscription, SubscriptionActivateReq, SubscriptionActivateRes, SubscriptionBillingAddress, SubscriptionCharge, SubscriptionCurrentPeriod, SubscriptionCustomer, SubscriptionCustomerCreate, SubscriptionInvoiceSettings, SubscriptionLimit, SubscriptionLimitApplication, SubscriptionLimitExtensions, SubscriptionLimitIntegrations, SubscriptionLimitMarketplace, SubscriptionLimitOtherPlatform, SubscriptionLimitProducts, SubscriptionLimitTeam, SubscriptionPauseCollection, SubscriptionStatus, SubscriptionTrial, SubscriptionTrialPeriod, UnauthenticatedApplication, UnauthenticatedUser };
564
+ }
565
+ /** @returns {BadRequest} */
566
+ declare function BadRequest(): BadRequest;
567
+ type BadRequest = {
568
+ /**
569
+ * - Failure message.
570
+ */
571
+ message?: string;
572
+ };
573
+ /** @returns {CancelSubscriptionReq} */
574
+ declare function CancelSubscriptionReq(): CancelSubscriptionReq;
575
+ type CancelSubscriptionReq = {
576
+ product_suite?: string;
577
+ subscription_id?: string;
578
+ type?: string;
579
+ unique_id?: string;
580
+ };
581
+ /** @returns {CancelSubscriptionRes} */
582
+ declare function CancelSubscriptionRes(): CancelSubscriptionRes;
583
+ type CancelSubscriptionRes = {
584
+ data?: Subscription;
585
+ success?: boolean;
586
+ };
587
+ /** @returns {ChargeLineItem} */
588
+ declare function ChargeLineItem(): ChargeLineItem;
589
+ type ChargeLineItem = {
590
+ capped_amount?: number;
591
+ is_test?: boolean;
592
+ metadata?: any;
593
+ name: string;
594
+ price: EntityChargePrice;
595
+ pricing_type: string;
596
+ recurring?: EntityChargeRecurring;
597
+ term: string;
598
+ trial_days?: number;
599
+ };
600
+ /** @returns {CheckValidityResponse} */
601
+ declare function CheckValidityResponse(): CheckValidityResponse;
602
+ type CheckValidityResponse = {
603
+ discount_amount?: number;
604
+ is_valid?: boolean;
605
+ };
606
+ /** @returns {CreateOneTimeCharge} */
607
+ declare function CreateOneTimeCharge(): CreateOneTimeCharge;
608
+ type CreateOneTimeCharge = {
609
+ charge: OneTimeChargeItem;
610
+ is_test?: boolean;
611
+ name: string;
612
+ return_url: string;
613
+ };
614
+ /** @returns {CreateOneTimeChargeResponse} */
615
+ declare function CreateOneTimeChargeResponse(): CreateOneTimeChargeResponse;
616
+ type CreateOneTimeChargeResponse = {
617
+ charge?: OneTimeChargeEntity;
618
+ confirm_url?: string;
619
+ };
620
+ /** @returns {CreateSubscriptionCharge} */
621
+ declare function CreateSubscriptionCharge(): CreateSubscriptionCharge;
622
+ type CreateSubscriptionCharge = {
623
+ is_test?: boolean;
624
+ line_items: ChargeLineItem[];
625
+ name: string;
626
+ return_url: string;
627
+ trial_days?: number;
628
+ };
629
+ /** @returns {CreateSubscriptionResponse} */
630
+ declare function CreateSubscriptionResponse(): CreateSubscriptionResponse;
631
+ type CreateSubscriptionResponse = {
632
+ confirm_url?: string;
633
+ subscription?: EntitySubscription;
634
+ };
635
+ /** @returns {CurrentPeriod} */
636
+ declare function CurrentPeriod(): CurrentPeriod;
637
+ type CurrentPeriod = {
638
+ end_date?: string;
639
+ start_date?: string;
640
+ };
641
+ /** @returns {DetailedPlan} */
642
+ declare function DetailedPlan(): DetailedPlan;
643
+ type DetailedPlan = {
644
+ _id?: string;
645
+ addons?: string[];
646
+ amount?: number;
647
+ components?: DetailedPlanComponents[];
648
+ country?: string;
649
+ created_at?: string;
650
+ currency?: string;
651
+ description?: string;
652
+ is_active?: boolean;
653
+ is_trial_plan?: boolean;
654
+ is_visible?: boolean;
655
+ modified_at?: string;
656
+ name?: string;
657
+ plan_group?: string;
658
+ product_suite_id?: string;
659
+ recurring?: PlanRecurring;
660
+ tag_lines?: string[];
661
+ tags?: string[];
662
+ trial_period?: number;
663
+ type?: string;
664
+ };
665
+ /** @returns {DetailedPlanComponents} */
666
+ declare function DetailedPlanComponents(): DetailedPlanComponents;
667
+ type DetailedPlanComponents = {
668
+ config?: any;
669
+ description?: string;
670
+ display_text?: string;
671
+ enabled?: boolean;
672
+ group?: string;
673
+ icon?: string;
674
+ links?: any;
675
+ name?: string;
676
+ slug?: string;
677
+ };
678
+ /** @returns {EntityChargePrice} */
679
+ declare function EntityChargePrice(): EntityChargePrice;
680
+ type EntityChargePrice = {
681
+ /**
682
+ * - Amount for price. Minimum value 1
683
+ */
684
+ amount: number;
685
+ currency_code: string;
686
+ };
687
+ /** @returns {EntityChargeRecurring} */
688
+ declare function EntityChargeRecurring(): EntityChargeRecurring;
689
+ type EntityChargeRecurring = {
690
+ interval: string;
691
+ };
692
+ /** @returns {EntitySubscription} */
693
+ declare function EntitySubscription(): EntitySubscription;
694
+ type EntitySubscription = {
695
+ _id?: string;
696
+ activated_on?: string;
697
+ cancelled_on?: string;
698
+ company_id?: number;
699
+ line_items?: SubscriptionCharge[];
700
+ metadata?: any;
701
+ name?: string;
702
+ status?: string;
703
+ trial_days?: number;
704
+ trial_period?: SubscriptionTrialPeriod;
705
+ };
706
+ /** @returns {InternalServerError} */
707
+ declare function InternalServerError(): InternalServerError;
708
+ type InternalServerError = {
709
+ /**
710
+ * - Error code
711
+ */
712
+ code?: string;
713
+ /**
714
+ * - Internal server Server error
715
+ */
716
+ message?: string;
717
+ };
718
+ /** @returns {Invoice} */
719
+ declare function Invoice(): Invoice;
720
+ type Invoice = {
721
+ invoice?: InvoiceDetails;
722
+ invoice_items?: InvoiceItems[];
723
+ };
724
+ /** @returns {InvoiceDetails} */
725
+ declare function InvoiceDetails(): InvoiceDetails;
726
+ type InvoiceDetails = {
727
+ _id?: string;
728
+ attemp?: number;
729
+ auto_advance?: boolean;
730
+ client?: InvoiceDetailsClient;
731
+ collection_method?: string;
732
+ created_at?: string;
733
+ currency?: string;
734
+ current_status?: string;
735
+ hash_identifier?: string;
736
+ invoice_url?: string;
737
+ modified_at?: string;
738
+ next_action_time?: string;
739
+ number?: string;
740
+ paid?: boolean;
741
+ payment_method?: InvoicePaymentMethod;
742
+ period?: InvoiceDetailsPeriod;
743
+ pg_data?: any;
744
+ receipt_number?: string;
745
+ statement_descriptor?: string;
746
+ status_trail?: InvoiceDetailsStatusTrail[];
747
+ subscriber_id?: string;
748
+ subscription?: string;
749
+ subtotal?: number;
750
+ total?: number;
751
+ };
752
+ /** @returns {InvoiceDetailsClient} */
753
+ declare function InvoiceDetailsClient(): InvoiceDetailsClient;
754
+ type InvoiceDetailsClient = {
755
+ address_lines?: string[];
756
+ email?: string;
757
+ name?: string;
758
+ phone?: string;
759
+ };
760
+ /** @returns {InvoiceDetailsPaymentMethods} */
761
+ declare function InvoiceDetailsPaymentMethods(): InvoiceDetailsPaymentMethods;
762
+ type InvoiceDetailsPaymentMethods = {
763
+ data?: InvoiceDetailsPaymentMethodsData;
764
+ id?: number;
765
+ is_default?: boolean;
766
+ pg_payment_method_id?: string;
767
+ type?: string;
768
+ };
769
+ /** @returns {InvoiceDetailsPaymentMethodsData} */
770
+ declare function InvoiceDetailsPaymentMethodsData(): InvoiceDetailsPaymentMethodsData;
771
+ type InvoiceDetailsPaymentMethodsData = {
772
+ brand?: string;
773
+ checks?: InvoiceDetailsPaymentMethodsDataChecks;
774
+ country?: string;
775
+ exp_month?: number;
776
+ exp_year?: number;
777
+ fingerprint?: string;
778
+ funding?: string;
779
+ generated_from?: string;
780
+ last4?: string;
781
+ networks?: InvoiceDetailsPaymentMethodsDataNetworks;
782
+ three_d_secure_usage?: InvoiceDetailsPaymentMethodsDataThreeDSecureUsage;
783
+ wallet?: string;
784
+ };
785
+ /** @returns {InvoiceDetailsPaymentMethodsDataChecks} */
786
+ declare function InvoiceDetailsPaymentMethodsDataChecks(): InvoiceDetailsPaymentMethodsDataChecks;
787
+ type InvoiceDetailsPaymentMethodsDataChecks = {
788
+ address_line1_check?: string;
789
+ address_postal_code_check?: string;
790
+ cvc_check?: string;
791
+ };
792
+ /** @returns {InvoiceDetailsPaymentMethodsDataNetworks} */
793
+ declare function InvoiceDetailsPaymentMethodsDataNetworks(): InvoiceDetailsPaymentMethodsDataNetworks;
794
+ type InvoiceDetailsPaymentMethodsDataNetworks = {
795
+ available?: string[];
796
+ preferred?: string;
797
+ };
798
+ /** @returns {InvoiceDetailsPaymentMethodsDataThreeDSecureUsage} */
799
+ declare function InvoiceDetailsPaymentMethodsDataThreeDSecureUsage(): InvoiceDetailsPaymentMethodsDataThreeDSecureUsage;
800
+ type InvoiceDetailsPaymentMethodsDataThreeDSecureUsage = {
801
+ supported?: boolean;
802
+ };
803
+ /** @returns {InvoiceDetailsPeriod} */
804
+ declare function InvoiceDetailsPeriod(): InvoiceDetailsPeriod;
805
+ type InvoiceDetailsPeriod = {
806
+ end?: string;
807
+ start?: string;
808
+ };
809
+ /** @returns {InvoiceDetailsStatusTrail} */
810
+ declare function InvoiceDetailsStatusTrail(): InvoiceDetailsStatusTrail;
811
+ type InvoiceDetailsStatusTrail = {
812
+ _id?: string;
813
+ timestamp?: string;
814
+ value?: string;
815
+ };
816
+ /** @returns {InvoiceItems} */
817
+ declare function InvoiceItems(): InvoiceItems;
818
+ type InvoiceItems = {
819
+ _id?: string;
820
+ amount?: number;
821
+ created_at?: string;
822
+ currency?: string;
823
+ description?: string;
824
+ invoice_id?: string;
825
+ modified_at?: string;
826
+ name?: string;
827
+ period?: InvoiceItemsPeriod;
828
+ plan?: InvoiceItemsPlan;
829
+ quantity?: number;
830
+ type?: string;
831
+ unit_amount?: number;
832
+ };
833
+ /** @returns {InvoiceItemsPeriod} */
834
+ declare function InvoiceItemsPeriod(): InvoiceItemsPeriod;
835
+ type InvoiceItemsPeriod = {
836
+ end?: string;
837
+ start?: string;
838
+ };
839
+ /** @returns {InvoiceItemsPlan} */
840
+ declare function InvoiceItemsPlan(): InvoiceItemsPlan;
841
+ type InvoiceItemsPlan = {
842
+ _id?: string;
843
+ addons?: string[];
844
+ amount?: number;
845
+ country?: string;
846
+ created_at?: string;
847
+ currency?: string;
848
+ description?: string;
849
+ is_active?: boolean;
850
+ is_trial_plan?: boolean;
851
+ is_visible?: boolean;
852
+ modified_at?: string;
853
+ name?: string;
854
+ plan_group?: string;
855
+ product_suite_id?: string;
856
+ recurring?: InvoiceItemsPlanRecurring;
857
+ tag_lines?: string[];
858
+ tags?: string[];
859
+ trial_period?: number;
860
+ type?: string;
861
+ };
862
+ /** @returns {InvoiceItemsPlanRecurring} */
863
+ declare function InvoiceItemsPlanRecurring(): InvoiceItemsPlanRecurring;
864
+ type InvoiceItemsPlanRecurring = {
865
+ interval?: string;
866
+ interval_count?: number;
867
+ };
868
+ /** @returns {InvoicePaymentMethod} */
869
+ declare function InvoicePaymentMethod(): InvoicePaymentMethod;
870
+ type InvoicePaymentMethod = {
871
+ pg_payment_method_id?: string;
872
+ };
873
+ /** @returns {Invoices} */
874
+ declare function Invoices(): Invoices;
875
+ type Invoices = {
876
+ data?: InvoicesData[];
877
+ end?: number;
878
+ limit?: number;
879
+ page?: number;
880
+ start?: number;
881
+ total?: number;
882
+ };
883
+ /** @returns {InvoicesData} */
884
+ declare function InvoicesData(): InvoicesData;
885
+ type InvoicesData = {
886
+ _id?: string;
887
+ attemp?: number;
888
+ auto_advance?: boolean;
889
+ client?: InvoicesDataClient;
890
+ collection_method?: string;
891
+ created_at?: string;
892
+ currency?: string;
893
+ current_status?: string;
894
+ hash_identifier?: string;
895
+ invoice_items?: InvoiceItems[];
896
+ invoice_url?: string;
897
+ modified_at?: string;
898
+ next_action_time?: string;
899
+ number?: string;
900
+ paid?: boolean;
901
+ payment_method?: InvoicesDataPaymentMethod;
902
+ period?: InvoicesDataPeriod;
903
+ pg_data?: any;
904
+ receipt_number?: string;
905
+ statement_descriptor?: string;
906
+ status_trail?: InvoiceDetailsStatusTrail[];
907
+ subscriber_id?: string;
908
+ subscription?: string;
909
+ subtotal?: number;
910
+ total?: number;
911
+ };
912
+ /** @returns {InvoicesDataClient} */
913
+ declare function InvoicesDataClient(): InvoicesDataClient;
914
+ type InvoicesDataClient = {
915
+ address_lines?: string[];
916
+ email?: string;
917
+ name?: string;
918
+ phone?: string;
919
+ };
920
+ /** @returns {InvoicesDataPaymentMethod} */
921
+ declare function InvoicesDataPaymentMethod(): InvoicesDataPaymentMethod;
922
+ type InvoicesDataPaymentMethod = {
923
+ pg_payment_method_id?: string;
924
+ };
925
+ /** @returns {InvoicesDataPeriod} */
926
+ declare function InvoicesDataPeriod(): InvoicesDataPeriod;
927
+ type InvoicesDataPeriod = {
928
+ end?: string;
929
+ start?: string;
930
+ };
931
+ /** @returns {OneTimeChargeEntity} */
932
+ declare function OneTimeChargeEntity(): OneTimeChargeEntity;
933
+ type OneTimeChargeEntity = {
934
+ _id?: string;
935
+ activated_on?: string;
936
+ cancelled_on?: string;
937
+ entity_id?: string;
938
+ entity_type?: string;
939
+ is_test?: boolean;
940
+ meta?: any;
941
+ metadata?: any;
942
+ name?: string;
943
+ price?: EntityChargePrice;
944
+ pricing_type?: string;
945
+ return_url?: string;
946
+ status?: string;
947
+ subscriber_id?: string;
948
+ };
949
+ /** @returns {OneTimeChargeItem} */
950
+ declare function OneTimeChargeItem(): OneTimeChargeItem;
951
+ type OneTimeChargeItem = {
952
+ capped_amount?: number;
953
+ is_test?: boolean;
954
+ metadata?: any;
955
+ name: string;
956
+ price: EntityChargePrice;
957
+ pricing_type: string;
958
+ term?: string;
959
+ };
960
+ /** @returns {Page} */
961
+ declare function Page(): Page;
962
+ type Page = {
963
+ current?: number;
964
+ has_next?: boolean;
965
+ has_previous?: boolean;
966
+ item_total?: number;
967
+ next_id?: string;
968
+ size?: number;
969
+ type: string;
970
+ };
971
+ /** @returns {Phone} */
972
+ declare function Phone(): Phone;
973
+ type Phone = {
974
+ phone_country_code?: string;
975
+ phone_number?: string;
976
+ };
977
+ /** @returns {Plan} */
978
+ declare function Plan(): Plan;
979
+ type Plan = {
980
+ _id?: string;
981
+ addons?: string[];
982
+ amount?: number;
983
+ country?: string;
984
+ created_at?: string;
985
+ currency?: string;
986
+ description?: string;
987
+ is_active?: boolean;
988
+ is_trial_plan?: boolean;
989
+ is_visible?: boolean;
990
+ modified_at?: string;
991
+ name?: string;
992
+ plan_group?: string;
993
+ product_suite_id?: string;
994
+ recurring?: PlanRecurring;
995
+ tag_lines?: string[];
996
+ tags?: string[];
997
+ trial_period?: number;
998
+ type?: string;
999
+ };
1000
+ /** @returns {PlanRecurring} */
1001
+ declare function PlanRecurring(): PlanRecurring;
1002
+ type PlanRecurring = {
1003
+ interval?: string;
1004
+ interval_count?: number;
1005
+ };
1006
+ /** @returns {ResourceNotFound} */
1007
+ declare function ResourceNotFound(): ResourceNotFound;
1008
+ type ResourceNotFound = {
1009
+ /**
1010
+ * - Resource not found with {id}
1011
+ */
1012
+ message?: string;
1013
+ };
1014
+ /** @returns {Subscription} */
1015
+ declare function Subscription(): Subscription;
1016
+ type Subscription = {
1017
+ _id?: string;
1018
+ cancel_at_period_end?: boolean;
1019
+ channel_type?: string;
1020
+ collection_method?: string;
1021
+ created_at?: string;
1022
+ current_period?: SubscriptionCurrentPeriod;
1023
+ current_status?: string;
1024
+ invoice_settings?: SubscriptionInvoiceSettings;
1025
+ is_active?: boolean;
1026
+ latest_invoice?: string;
1027
+ modified_at?: string;
1028
+ pause_collection?: SubscriptionPauseCollection;
1029
+ plan_data?: Plan;
1030
+ plan_id?: string;
1031
+ product_suite_id?: string;
1032
+ subscriber_id?: string;
1033
+ trial?: SubscriptionTrial;
1034
+ };
1035
+ /** @returns {SubscriptionActivateReq} */
1036
+ declare function SubscriptionActivateReq(): SubscriptionActivateReq;
1037
+ type SubscriptionActivateReq = {
1038
+ payment_method?: string;
1039
+ plan_id?: string;
1040
+ product_suite?: string;
1041
+ type?: string;
1042
+ unique_id?: string;
1043
+ };
1044
+ /** @returns {SubscriptionActivateRes} */
1045
+ declare function SubscriptionActivateRes(): SubscriptionActivateRes;
1046
+ type SubscriptionActivateRes = {
1047
+ data?: Subscription;
1048
+ success?: boolean;
1049
+ };
1050
+ /** @returns {SubscriptionBillingAddress} */
1051
+ declare function SubscriptionBillingAddress(): SubscriptionBillingAddress;
1052
+ type SubscriptionBillingAddress = {
1053
+ city?: string;
1054
+ country?: string;
1055
+ line1?: string;
1056
+ line2?: string;
1057
+ postal_code?: string;
1058
+ state?: string;
1059
+ };
1060
+ /** @returns {SubscriptionCharge} */
1061
+ declare function SubscriptionCharge(): SubscriptionCharge;
1062
+ type SubscriptionCharge = {
1063
+ _id?: string;
1064
+ activated_on?: string;
1065
+ billing_date?: string;
1066
+ cancelled_on?: string;
1067
+ capped_amount?: number;
1068
+ current_period?: CurrentPeriod;
1069
+ is_test?: boolean;
1070
+ metadata?: any;
1071
+ name?: string;
1072
+ price?: EntityChargePrice;
1073
+ pricing_type?: string;
1074
+ recurring?: EntityChargeRecurring;
1075
+ status?: string;
1076
+ /**
1077
+ * - Brief description for a charge
1078
+ */
1079
+ term?: string;
1080
+ };
1081
+ /** @returns {SubscriptionCurrentPeriod} */
1082
+ declare function SubscriptionCurrentPeriod(): SubscriptionCurrentPeriod;
1083
+ type SubscriptionCurrentPeriod = {
1084
+ end?: string;
1085
+ start?: string;
1086
+ };
1087
+ /** @returns {SubscriptionCustomer} */
1088
+ declare function SubscriptionCustomer(): SubscriptionCustomer;
1089
+ type SubscriptionCustomer = {
1090
+ _id?: string;
1091
+ billing_address?: SubscriptionBillingAddress;
1092
+ created_at?: string;
1093
+ data?: any;
1094
+ email?: string;
1095
+ modified_at?: string;
1096
+ name?: string;
1097
+ phone?: Phone;
1098
+ type?: string;
1099
+ unique_id?: string;
1100
+ };
1101
+ /** @returns {SubscriptionCustomerCreate} */
1102
+ declare function SubscriptionCustomerCreate(): SubscriptionCustomerCreate;
1103
+ type SubscriptionCustomerCreate = {
1104
+ billing_address?: SubscriptionBillingAddress;
1105
+ email?: string;
1106
+ name?: string;
1107
+ phone?: Phone;
1108
+ type?: string;
1109
+ unique_id?: string;
1110
+ };
1111
+ /** @returns {SubscriptionInvoiceSettings} */
1112
+ declare function SubscriptionInvoiceSettings(): SubscriptionInvoiceSettings;
1113
+ type SubscriptionInvoiceSettings = {
1114
+ charging?: boolean;
1115
+ generation?: boolean;
1116
+ };
1117
+ /** @returns {SubscriptionLimit} */
1118
+ declare function SubscriptionLimit(): SubscriptionLimit;
1119
+ type SubscriptionLimit = {
1120
+ application?: SubscriptionLimitApplication;
1121
+ extensions?: SubscriptionLimitExtensions;
1122
+ integrations?: SubscriptionLimitIntegrations;
1123
+ is_trial_plan?: boolean;
1124
+ marketplace?: SubscriptionLimitMarketplace;
1125
+ other_platform?: SubscriptionLimitOtherPlatform;
1126
+ products?: SubscriptionLimitProducts;
1127
+ team?: SubscriptionLimitTeam;
1128
+ };
1129
+ /** @returns {SubscriptionLimitApplication} */
1130
+ declare function SubscriptionLimitApplication(): SubscriptionLimitApplication;
1131
+ type SubscriptionLimitApplication = {
1132
+ enabled?: boolean;
1133
+ hard_limit?: number;
1134
+ soft_limit?: number;
1135
+ };
1136
+ /** @returns {SubscriptionLimitExtensions} */
1137
+ declare function SubscriptionLimitExtensions(): SubscriptionLimitExtensions;
1138
+ type SubscriptionLimitExtensions = {
1139
+ enabled?: boolean;
1140
+ limit?: number;
1141
+ };
1142
+ /** @returns {SubscriptionLimitIntegrations} */
1143
+ declare function SubscriptionLimitIntegrations(): SubscriptionLimitIntegrations;
1144
+ type SubscriptionLimitIntegrations = {
1145
+ enabled?: boolean;
1146
+ limit?: number;
1147
+ };
1148
+ /** @returns {SubscriptionLimitMarketplace} */
1149
+ declare function SubscriptionLimitMarketplace(): SubscriptionLimitMarketplace;
1150
+ type SubscriptionLimitMarketplace = {
1151
+ enabled?: boolean;
1152
+ };
1153
+ /** @returns {SubscriptionLimitOtherPlatform} */
1154
+ declare function SubscriptionLimitOtherPlatform(): SubscriptionLimitOtherPlatform;
1155
+ type SubscriptionLimitOtherPlatform = {
1156
+ enabled?: boolean;
1157
+ };
1158
+ /** @returns {SubscriptionLimitProducts} */
1159
+ declare function SubscriptionLimitProducts(): SubscriptionLimitProducts;
1160
+ type SubscriptionLimitProducts = {
1161
+ bulk?: boolean;
1162
+ limit?: number;
1163
+ };
1164
+ /** @returns {SubscriptionLimitTeam} */
1165
+ declare function SubscriptionLimitTeam(): SubscriptionLimitTeam;
1166
+ type SubscriptionLimitTeam = {
1167
+ limit?: number;
1168
+ };
1169
+ /** @returns {SubscriptionPauseCollection} */
1170
+ declare function SubscriptionPauseCollection(): SubscriptionPauseCollection;
1171
+ type SubscriptionPauseCollection = {
1172
+ behavior?: string;
1173
+ resume_at?: string;
1174
+ };
1175
+ /** @returns {SubscriptionStatus} */
1176
+ declare function SubscriptionStatus(): SubscriptionStatus;
1177
+ type SubscriptionStatus = {
1178
+ current_subscriptions?: Subscription[];
1179
+ is_enabled?: boolean;
1180
+ latest_invoice?: InvoicesData;
1181
+ mandate_amount?: string;
1182
+ next_plan?: Plan;
1183
+ subscription?: Subscription;
1184
+ };
1185
+ /** @returns {SubscriptionTrial} */
1186
+ declare function SubscriptionTrial(): SubscriptionTrial;
1187
+ type SubscriptionTrial = {
1188
+ end?: string;
1189
+ start?: string;
1190
+ };
1191
+ /** @returns {SubscriptionTrialPeriod} */
1192
+ declare function SubscriptionTrialPeriod(): SubscriptionTrialPeriod;
1193
+ type SubscriptionTrialPeriod = {
1194
+ end_date?: string;
1195
+ start_date?: string;
1196
+ };
1197
+ /** @returns {UnauthenticatedApplication} */
1198
+ declare function UnauthenticatedApplication(): UnauthenticatedApplication;
1199
+ type UnauthenticatedApplication = {
1200
+ /**
1201
+ * - Failure message.
1202
+ */
1203
+ message?: string;
1204
+ };
1205
+ /** @returns {UnauthenticatedUser} */
1206
+ declare function UnauthenticatedUser(): UnauthenticatedUser;
1207
+ type UnauthenticatedUser = {
1208
+ /**
1209
+ * - Failure message.
1210
+ */
1211
+ message?: string;
1212
+ };