@gofynd/fdk-client-javascript 1.6.3 → 3.0.0-beta.1

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 (298) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
  6. package/sdk/application/Cart/CartApplicationClient.js +270 -139
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +3 -3
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
  16. package/sdk/application/Content/ContentApplicationClient.js +197 -36
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  20. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
  24. package/sdk/application/Order/OrderApplicationClient.js +140 -21
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
  26. package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +14 -14
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
  32. package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
  33. package/sdk/application/User/UserApplicationClient.d.ts +13 -23
  34. package/sdk/application/User/UserApplicationClient.js +9 -57
  35. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  36. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  37. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
  38. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
  39. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
  40. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
  41. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
  42. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
  43. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
  44. package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
  45. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
  46. package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
  47. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
  48. package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
  49. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
  50. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
  51. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
  52. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
  53. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
  54. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  56. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
  58. package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
  59. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  60. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
  61. package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
  62. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
  63. package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
  64. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
  65. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
  66. package/sdk/partner/PartnerClient.d.ts +6 -0
  67. package/sdk/partner/PartnerClient.js +9 -0
  68. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
  69. package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
  70. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
  71. package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
  72. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
  73. package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
  74. package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
  75. package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
  76. package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
  77. package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
  78. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
  79. package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
  80. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  81. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  82. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -612
  83. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -234
  84. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  85. package/sdk/partner/index.d.ts +3 -0
  86. package/sdk/partner/index.js +6 -0
  87. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
  88. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  89. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  90. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
  91. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  92. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  93. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
  94. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
  95. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  96. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  97. package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
  98. package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
  99. package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
  100. package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
  101. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
  102. package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
  103. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
  104. package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
  105. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  106. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
  107. package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
  108. package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
  109. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
  110. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
  111. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
  112. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
  113. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
  114. package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
  115. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
  116. package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
  117. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
  118. package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
  119. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
  120. package/sdk/platform/Common/CommonPlatformClient.js +5 -6
  121. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  122. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  123. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
  124. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
  125. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
  126. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
  127. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
  128. package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
  129. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
  130. package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
  131. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
  132. package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
  133. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
  134. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
  135. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
  136. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
  137. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
  138. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
  139. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
  140. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
  141. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
  142. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
  143. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
  144. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
  145. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
  146. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
  147. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
  148. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
  149. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
  150. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
  151. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
  152. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
  153. package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
  154. package/sdk/platform/Content/ContentPlatformClient.js +459 -379
  155. package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
  156. package/sdk/platform/Content/ContentPlatformModel.js +893 -582
  157. package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
  158. package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
  159. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
  160. package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
  161. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
  162. package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
  163. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  164. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  165. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
  166. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
  167. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
  168. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
  169. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  170. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  171. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
  172. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
  173. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  174. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  175. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  176. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  177. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
  178. package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
  179. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  180. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  181. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  182. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  183. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  184. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  185. package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
  186. package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
  187. package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
  188. package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
  189. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
  190. package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
  191. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
  192. package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
  193. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
  194. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
  195. package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
  196. package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
  197. package/sdk/platform/Order/OrderPlatformModel.d.ts +4111 -9093
  198. package/sdk/platform/Order/OrderPlatformModel.js +3202 -4230
  199. package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
  200. package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
  201. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  202. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  203. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  204. package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
  205. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
  206. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
  207. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
  208. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
  209. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
  210. package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
  211. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
  212. package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
  213. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
  214. package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
  215. package/sdk/platform/PlatformClient.d.ts +2 -0
  216. package/sdk/platform/PlatformClient.js +4 -0
  217. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  218. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  219. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  220. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  221. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
  222. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
  223. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
  224. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
  225. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
  226. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
  227. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
  228. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
  229. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
  230. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
  231. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
  232. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
  233. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
  234. package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
  235. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
  236. package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
  237. package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
  238. package/sdk/platform/Share/SharePlatformModel.js +3 -43
  239. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
  240. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
  241. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
  242. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
  243. package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
  244. package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
  245. package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
  246. package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
  247. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
  248. package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
  249. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +22 -12
  250. package/sdk/platform/User/UserPlatformApplicationClient.js +91 -12
  251. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -3
  252. package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -2
  253. package/sdk/platform/User/UserPlatformModel.d.ts +223 -59
  254. package/sdk/platform/User/UserPlatformModel.js +204 -65
  255. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  256. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  257. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +434 -758
  258. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -410
  259. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  260. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  261. package/sdk/platform/index.d.ts +1 -0
  262. package/sdk/platform/index.js +2 -0
  263. package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
  264. package/sdk/public/Billing/BillingPublicClient.js +397 -0
  265. package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
  266. package/sdk/public/Billing/BillingPublicModel.js +560 -0
  267. package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
  268. package/sdk/public/Billing/BillingPublicValidator.js +50 -0
  269. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
  270. package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
  271. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
  272. package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
  273. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
  274. package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
  275. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  276. package/sdk/public/Content/ContentPublicClient.js +183 -0
  277. package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
  278. package/sdk/public/Content/ContentPublicModel.js +47 -1
  279. package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
  280. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  281. package/sdk/public/PublicClient.d.ts +2 -2
  282. package/sdk/public/PublicClient.js +2 -2
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
  286. package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/public/index.d.ts +1 -1
  290. package/sdk/public/index.js +1 -1
  291. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  292. package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
  293. package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
  294. package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
  295. package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
  296. package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
  297. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
  298. package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
@@ -1,34 +1,236 @@
1
1
  export = BillingPlatformModel;
2
+ /**
3
+ * @typedef CompanyInfo
4
+ * @property {string} [company_name] - Name of the company
5
+ * @property {string} [gstin] - Goods and Services Tax Identification Number
6
+ * @property {string} [address] - Main address of the company
7
+ * @property {AddressDetails} [address_details]
8
+ * @property {string} [pan] - Permanent Account Number of the company
9
+ * @property {string} [phone] - Contact phone number for the company
10
+ * @property {string} [email] - Contact email address for the company
11
+ * @property {string} [cin] - Corporate Identification Number
12
+ */
13
+ /**
14
+ * @typedef AddressDetails
15
+ * @property {string} [address_line_1] - First line of the address
16
+ * @property {string} [address_line_2] - Second line of the address (optional)
17
+ * @property {string} [city] - Company city
18
+ * @property {string} [pincode] - Company pincode
19
+ * @property {string} [state] - Company state
20
+ * @property {string} [country] - Company country
21
+ */
22
+ /**
23
+ * @typedef InvoiceData
24
+ * @property {InvoiceDetailsData} [invoice]
25
+ * @property {InvoiceItems[]} [invoice_items]
26
+ * @property {CompanyInfo} [shopsense_details]
27
+ */
28
+ /**
29
+ * @typedef InvoiceDetailsData
30
+ * @property {number} [attemp] - Number of attempts made to collect the invoice payment
31
+ * @property {Object} [documents] - Documents associated with the invoice
32
+ * @property {Object} [payment] - Payment details related to the invoice
33
+ * @property {Period} [period]
34
+ * @property {Client} [client]
35
+ * @property {Object} [discount] - Discount applied to the invoice
36
+ * @property {Object} [taxation] - Taxation applied to the invoice
37
+ * @property {string} [_id] - Unique identifier for the invoice
38
+ * @property {boolean} [auto_advance] - Indicates if the invoice will
39
+ * automatically advance to the next stage of collection
40
+ * @property {string} [collection_method] - Method of collection (e.g.,
41
+ * charge_automatically, send_invoice)
42
+ * @property {string} [subscriber_id] - Identifier for the subscriber associated
43
+ * with the invoice
44
+ * @property {string} [currency] - Currency in which the invoice is issued
45
+ * @property {string} [invoice_url] - URL to view the invoice pdf
46
+ * @property {string} [number] - Invoice number
47
+ * @property {boolean} [paid] - Indicates if the invoice has been paid
48
+ * @property {Object} [pg_data] - Payment gateway data related to the invoice
49
+ * @property {string} [receipt_number] - Receipt number for the invoice payment
50
+ * @property {string} [statement_descriptor] - Statement descriptor for the invoice
51
+ * @property {string} [current_status] - Current status of the invoice (e.g., paid, open)
52
+ * @property {StatusTrail[]} [status_trail] - Trail of status changes for the invoice
53
+ * @property {number} [subtotal] - Subtotal amount of the invoice
54
+ * @property {number} [total] - Total amount of the invoice
55
+ * @property {number} [old_settlement] - Previous settlement amount (if any)
56
+ * @property {number} [credit_balance] - Credit balance applied to the invoice
57
+ * @property {string} [subscription] - Subscription associated with the invoice
58
+ * @property {number} [attempt] - Number of attempts made to pay the invoice
59
+ * @property {string} [next_action_time] - Timestamp for the next action on the invoice
60
+ * @property {number} [credit_note_amount] - Amount of credit notes applied to the invoice
61
+ * @property {string} [created_at] - Timestamp when the invoice was created
62
+ * @property {string} [modified_at] - Timestamp when the invoice was last modified
63
+ * @property {string} [invoice_type] - Type of invoice (e.g., subscription, extension)
64
+ */
65
+ /**
66
+ * @typedef Client
67
+ * @property {string} [name] - Name of the client
68
+ * @property {string} [email] - Email address of the client
69
+ * @property {string} [phone] - Phone number of the client
70
+ * @property {string[]} [address_lines] - List of address lines for the client's address
71
+ */
72
+ /**
73
+ * @typedef Period
74
+ * @property {string} [start] - Start date of the period
75
+ * @property {string} [end] - End date of the period
76
+ */
77
+ /**
78
+ * @typedef StatusTrail
79
+ * @property {string} [value] - The status value of the invoice at a particular
80
+ * timestamp (e.g., open, paid, payment_due)
81
+ * @property {string} [timestamp] - The date and time when the status was
82
+ * recorded, in ISO 8601 format
83
+ * @property {string} [_id] - Unique identifier for the status trail entry
84
+ */
85
+ /**
86
+ * @typedef PaymentCollectRes
87
+ * @property {string} [transaction_id] - Unique identifier for the transaction
88
+ * @property {string} [current_status] - Current status of the payment
89
+ * collection (e.g., pending, completed, failed)
90
+ */
2
91
  /**
3
92
  * @typedef SubscriptionChargeRes
4
93
  * @property {string} [_id] - Unique identifier for the subscription charge
5
- * @property {string} [product_suit_id] - A unique identifier for a product
6
- * suite, which represents a specific collection or group of products within
7
- * the system.
8
- * @property {string} [entity_id] - Unique identifier for the entity (eg. extension)
9
- * @property {string} [entity_type] - Specifies the type of entity related to
10
- * the operation, such as 'extension' or 'subscription'
11
- * @property {string} [name] - The name of the extension plan
12
- * @property {string} [status] - Current status of the extension subscription
13
- * @property {number} [trial_days] - The number of days allocated for the trial period
94
+ * @property {string} [product_suit_id] - ID of the product suit associated with
95
+ * the charge
96
+ * @property {string} [entity_id] - Unique identifier for the entity
97
+ * @property {string} [entity_type] - Type of entity (e.g., subscription, extension)
98
+ * @property {string} [name] - Name of the subscription charge
99
+ * @property {string} [status] - Current status of the subscription charge
100
+ * @property {number} [trial_days] - Number of trial days provided
14
101
  * @property {string} [activated_on] - Date when the charge was activated
15
102
  * @property {string} [cancelled_on] - Date when the charge was cancelled
16
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
17
- * a test mode.
103
+ * @property {boolean} [is_test] - Indicates if the charge is for testing purposes
18
104
  * @property {string} [created_at] - Timestamp when the charge was created
19
105
  * @property {string} [modified_at] - Timestamp when the charge was last modified
20
- * @property {string} [company_id] - The unique identifier of the company.
106
+ * @property {string} [company_id] - Company id
21
107
  * @property {Object[]} [line_items] - List of line items associated with the charge
22
108
  */
23
109
  /**
24
- * @typedef BadRequestSchema
110
+ * @typedef PostDowngradeRes
111
+ * @property {boolean} [success]
112
+ * @property {DowngradeRes} [data]
113
+ */
114
+ /**
115
+ * @typedef DowngradeRes
116
+ * @property {string} [_id] - Unique identifier for the downgrade request
117
+ * @property {string} [status] - Current status of the downgrade request (e.g.,
118
+ * pending, completed)
119
+ * @property {string} [subscriber_id] - Unique identifier for the subscriber
120
+ * making the downgrade request
121
+ * @property {boolean} [activated] - Indicates if the downgrade has been activated
122
+ * @property {string} [created_at] - Timestamp when the downgrade request was created
123
+ * @property {string} [modified_at] - Timestamp when the downgrade request was
124
+ * last modified
125
+ * @property {string} [plan_id] - ID of the plan to which the subscriber is downgrading
126
+ * @property {string} [reason] - Reason provided for the downgrade request
127
+ * @property {string} [request_user_id] - ID of the user who initiated the
128
+ * downgrade request
129
+ * @property {string} [subscription_id] - ID of the subscription associated with
130
+ * the downgrade request
131
+ */
132
+ /**
133
+ * @typedef PaymentStatusData
134
+ * @property {string} [_id] - Unique identifier for the payment status data
135
+ * @property {string} [journey] - Payment journey status, such as 'forward' or 'backward'
136
+ * @property {Object[]} [webhook_response] - List of responses received from
137
+ * webhooks related to the payment
138
+ * @property {string} [aggregator_status] - Status of the payment as provided by
139
+ * the aggregator (e.g., succeeded, failed)
140
+ * @property {string} [current_status] - Current status of the payment (e.g.,
141
+ * paid, pending)
142
+ * @property {string} [created_at] - Timestamp when the payment status data was created
143
+ * @property {string} [modified_at] - Timestamp when the payment status data was
144
+ * last modified
145
+ * @property {number} [__v] - Version key for the payment status data (typically
146
+ * used for versioning in databases)
147
+ * @property {string} [aggregator_order_id] - Unique identifier for the order
148
+ * provided by the payment aggregator
149
+ */
150
+ /**
151
+ * @typedef PaymentStatusResponse
152
+ * @property {string} [status] - The status of the payment.
153
+ * @property {PaymentStatusData} [data]
154
+ */
155
+ /**
156
+ * @typedef BadRequest
25
157
  * @property {string} [message] - Failure message.
26
158
  */
27
159
  /**
28
160
  * @typedef ResourceNotFound
29
161
  * @property {string} [message] - Resource not found with {id}
30
- * @property {number} [code] - The HTTP status code associated with the error
31
- * @property {boolean} [success] - Indicates if the request was successful
162
+ * @property {Object} [code]
163
+ * @property {Object} [success]
164
+ */
165
+ /**
166
+ * @typedef InternalServerError
167
+ * @property {string} [message] - Internal server error
168
+ * @property {string} [code] - Error code
169
+ */
170
+ /**
171
+ * @typedef CheckValidityResponse
172
+ * @property {boolean} [is_valid] - Indicates whether the request is valid.
173
+ * @property {number} [discount_amount] - The amount of discount applicable.
174
+ */
175
+ /**
176
+ * @typedef PlanRecurring
177
+ * @property {string} [interval] - The interval at which the plan recurs.
178
+ * @property {number} [interval_count]
179
+ */
180
+ /**
181
+ * @typedef PlanMeta
182
+ * @property {string} [seller_status] - Status of the seller associated with the plan.
183
+ * @property {string} [company] - Name of the company offering the plan.
184
+ * @property {string} [plan_platform_display_name] - Display name for platform slug.
185
+ * @property {string[]} [tags] - Tags associated with the plan for
186
+ * categorization or identification.
187
+ */
188
+ /**
189
+ * @typedef CountryRes
190
+ * @property {string} [name] - Name of the country.
191
+ * @property {string} [code] - Country code.
192
+ */
193
+ /**
194
+ * @typedef Plan
195
+ * @property {Object[]} [fee_components] - List of fee components associated
196
+ * with the plan. Each component may be represented as a string or an object.
197
+ * @property {PlanRecurring} [recurring]
198
+ * @property {boolean} [is_trial_plan] - Indicates whether the plan is a trial plan.
199
+ * @property {string} [plan_group] - Group or category of the plan.
200
+ * @property {string[]} [tag_lines] - List of tag lines or descriptions
201
+ * associated with the plan.
202
+ * @property {string} [currency] - Currency code used for the plan's pricing.
203
+ * @property {string} [approved_by] - Identifier of the user or system that
204
+ * approved the plan.
205
+ * @property {boolean} [is_active] - Indicates if the plan is currently active.
206
+ * @property {boolean} [is_visible] - Indicates if the plan is visible to users.
207
+ * @property {number} [trial_period] - Number of days for the trial period, if applicable.
208
+ * @property {string[]} [addons] - List of add-ons available for the plan.
209
+ * @property {string[]} [tags] - List of tags associated with the plan.
210
+ * @property {string} [type] - Type of the plan (e.g., public, private).
211
+ * @property {CountryRes} [country]
212
+ * @property {string} [_id] - Unique identifier for the plan.
213
+ * @property {string} [name] - Name of the plan.
214
+ * @property {string} [description] - Description of the plan.
215
+ * @property {number} [amount] - Amount to be charged for the plan.
216
+ * @property {string} [product_suite_id] - Identifier of the product suite to
217
+ * which the plan belongs.
218
+ * @property {string} [created_at] - Timestamp when the plan was created.
219
+ * @property {string} [modified_at] - Timestamp when the plan was last modified.
220
+ * @property {Taxation} [taxation]
221
+ * @property {OneTimeFees} [one_time_fees]
222
+ * @property {CreditLine} [credit_line]
223
+ * @property {string} [current_status] - Current status of the plan (e.g.,
224
+ * active, inactive).
225
+ * @property {string} [channel_type] - Type of channel where the plan is offered
226
+ * (e.g., ecomm, retail).
227
+ * @property {string[]} [company_ids] - List of company IDs associated with the
228
+ * plan. Can be null.
229
+ * @property {string} [platform] - Platform where the plan is available (e.g.,
230
+ * web, mobile). Can be null.
231
+ * @property {string} [activated_on] - Timestamp when the plan was activated.
232
+ * @property {PlanMeta} [meta]
233
+ * @property {string} [created_by] - Identifier of the user who created the plan.
32
234
  */
33
235
  /**
34
236
  * @typedef SubscriptionTrialPeriod
@@ -47,33 +249,33 @@ export = BillingPlatformModel;
47
249
  * @property {string} [pricing_type] - The type of pricing for the charge item.
48
250
  * @property {EntityChargePrice} [price]
49
251
  * @property {number} [capped_amount] - The maximum amount that can be charged
50
- * for a particular service or item
51
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
52
- * a test mode.
252
+ * for this item, if applicable.
253
+ * @property {boolean} [is_test] - Indicates whether the charge item is for
254
+ * testing purposes.
53
255
  * @property {Object} [metadata] - Additional metadata associated with the charge item.
54
256
  */
55
257
  /**
56
258
  * @typedef CreateOneTimeCharge
57
259
  * @property {string} [name] - The name of the one-time charge to be created.
58
260
  * @property {OneTimeChargeItem} [charge]
59
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
60
- * a test mode.
261
+ * @property {boolean} [is_test] - Indicates whether the charge creation is for
262
+ * testing purposes.
61
263
  * @property {string} [return_url] - URL to which the user will be redirected
62
264
  * after creating the charge.
63
265
  */
64
266
  /**
65
267
  * @typedef ChargeRecurring
66
- * @property {string} [interval] - The interval at which the recurring charge is
67
- * applied. Examples include "month", "year", etc.
268
+ * @property {string} [interval]
68
269
  * @property {number} [interval_time]
69
270
  */
70
271
  /**
71
272
  * @typedef ChargeDetails
72
273
  * @property {string} [_id] - Unique identifier for the charge.
73
- * @property {string} [entity_type] - Specifies the type of entity related to
74
- * the operation, such as 'extension' or 'subscription'
75
- * @property {string} [entity_id] - Unique identifier for the entity (eg. extension)
76
- * @property {string} [name] - The name of the extension plan
274
+ * @property {string} [entity_type] - The type of entity associated with the
275
+ * charge (e.g., 'extension', 'subscription').
276
+ * @property {string} [entity_id] - Unique identifier for the entity associated
277
+ * with the charge.
278
+ * @property {string} [name] - The name of the charge.
77
279
  * @property {string} [term] - Description of the charge term.
78
280
  * @property {string} [charge_type] - The type of charge (e.g., 'standalone',
79
281
  * 'recurring').
@@ -82,19 +284,16 @@ export = BillingPlatformModel;
82
284
  * @property {EntityChargePrice} [price]
83
285
  * @property {ChargeRecurring} [recurring]
84
286
  * @property {string} [status] - Current status of the charge.
85
- * @property {number} [capped_amount] - The maximum amount that can be charged
86
- * for a particular service or item
287
+ * @property {number} [capped_amount] - Maximum amount that can be charged, if applicable.
87
288
  * @property {string} [activated_on] - Date and time when the charge was activated.
88
289
  * @property {string} [cancelled_on] - Date and time when the charge was cancelled.
89
- * @property {string} [billing_date] - The date when the billing occurred. This
90
- * field is optional and may be null if the billing date is not specified.
290
+ * @property {string} [billing_date] - Date and time when the charge was billed.
91
291
  * @property {SubscriptionTrialPeriod} [current_period]
92
292
  * @property {string} [modified_at] - Date and time when the charge details were
93
293
  * last modified.
94
294
  * @property {string} [created_at] - Date and time when the charge was created.
95
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
96
- * a test mode.
97
- * @property {string} [company_id] - The unique identifier of the company.
295
+ * @property {boolean} [is_test] - Indicates whether the charge is for testing purposes.
296
+ * @property {string} [company_id] - Company id.
98
297
  * @property {Object} [meta] - Additional metadata associated with the charge.
99
298
  * @property {number} [__v] - Internal version key for the charge record.
100
299
  */
@@ -103,36 +302,37 @@ export = BillingPlatformModel;
103
302
  * @property {string} [term] - Description of the charge term or usage.
104
303
  * @property {string} [charge_type] - Type of the charge (e.g., 'subscription',
105
304
  * 'extension').
106
- * @property {number} [capped_amount] - The maximum amount that can be charged
107
- * for a particular service or item
108
- * @property {string} [billing_date] - The date when the billing occurred. This
109
- * field is optional and may be null if the billing date is not specified.
305
+ * @property {number} [capped_amount] - Maximum amount that can be charged. If
306
+ * no cap, the value should be 0.
307
+ * @property {string} [billing_date] - Date when the charge was billed. Null if
308
+ * not yet billed.
110
309
  * @property {string} [created_at] - Date and time when the charge entity was created.
111
310
  * @property {string} [modified_at] - Date and time when the charge entity was
112
311
  * last modified.
113
312
  * @property {number} [__v] - Internal version key for the charge record.
114
313
  * @property {string} [_id] - Unique identifier for the charge entity.
115
314
  * @property {string} [name] - The name of the one-time charge.
116
- * @property {string} [status] - Current status of the charge (e.g., 'pending').
315
+ * @property {string} [status] - Current status of the charge (e.g., 'pending',
316
+ * 'completed').
117
317
  * @property {string} [activated_on] - Date and time when the charge was
118
318
  * activated. Null if not yet activated.
119
319
  * @property {string} [cancelled_on] - Date and time when the charge was
120
320
  * cancelled. Null if not cancelled.
121
321
  * @property {Object} [metadata] - Additional metadata associated with the charge.
122
322
  * @property {string} [return_url] - URL to redirect to after processing the charge.
123
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
124
- * a test mode.
323
+ * @property {boolean} [is_test] - Indicates whether the charge is for testing purposes.
125
324
  * @property {string} [pricing_type] - Pricing model for the charge (e.g., 'one_time').
126
- * @property {string} [subscriber_id] - The unique identifier for the company in
127
- * the system.
128
- * @property {string} [entity_type] - Specifies the type of entity related to
129
- * the operation, such as 'extension' or 'subscription'
130
- * @property {string} [entity_id] - Unique identifier for the entity (eg. extension)
325
+ * @property {string} [subscriber_id] - Unique identifier for the subscriber
326
+ * associated with the charge.
327
+ * @property {string} [entity_type] - Type of the entity related to the charge
328
+ * (e.g., 'subscription', 'user').
329
+ * @property {string} [entity_id] - Unique identifier for the entity associated
330
+ * with the charge.
131
331
  * @property {Object} [meta] - Additional metadata associated with the charge.
132
332
  * @property {EntityChargePrice} [price]
133
333
  */
134
334
  /**
135
- * @typedef CreateOneTimeChargeResponseSchemas
335
+ * @typedef CreateOneTimeChargeResponse
136
336
  * @property {Charge} [charge]
137
337
  * @property {string} [confirm_url] - URL to which users are redirected to
138
338
  * confirm or complete the payment or subscription process.
@@ -142,136 +342,1137 @@ export = BillingPlatformModel;
142
342
  * @property {OneTimeChargeEntity} [final_charge]
143
343
  */
144
344
  /**
145
- * @typedef EntityChargeRecurring
146
- * @property {string} interval - The interval at which the recurring charge is
147
- * applied. Examples include "month", "year", etc.
345
+ * @typedef InvoiceDetailsStatusTrail
346
+ * @property {string} [_id] - Unique identifier for the status trail entry.
347
+ * @property {string} [value] - The status value of the invoice at a particular
348
+ * point in time.
349
+ * @property {string} [timestamp] - The date and time when this status was recorded.
148
350
  */
149
351
  /**
150
- * @typedef ChargeLineItem
151
- * @property {string} name - Its name of the extension plan.
152
- * @property {string} term - It indicates how it will be charged.
153
- * @property {string} pricing_type - Specifies the type of pricing for the
154
- * extension subscription. It indicates whether the subscription will be
155
- * automatically renewed, charged once, or based on usage.
156
- * @property {EntityChargePrice} price
157
- * @property {EntityChargeRecurring} [recurring]
158
- * @property {number} [capped_amount] - The maximum amount that can be charged
159
- * for a particular service or item
160
- * @property {number} [trial_days] - The number of days allocated for the trial period
161
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
162
- * a test mode.
163
- * @property {Object} [metadata]
164
- */
165
- /**
166
- * @typedef CreateSubscriptionCharge
167
- * @property {string} name - The name of the extension plan
168
- * @property {number} [trial_days] - The number of days allocated for the trial period
169
- * @property {ChargeLineItem[]} line_items
170
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
171
- * a test mode.
172
- * @property {string} return_url - The URL to which the user will be redirected
173
- * after the subscription process is complete.
174
- */
175
- /**
176
- * @typedef EntityChargeDetails
177
- * @property {string} [_id] - The unique identifier for the charge.
178
- * @property {string} [subscription_id] - The unique identifier of the subscription.
179
- * @property {string} [subscriber_id] - The unique identifier for the company in
180
- * the system.
181
- * @property {string} [entity_type] - Specifies the type of entity related to
182
- * the operation, such as 'extension' or 'subscription'
183
- * @property {string} [entity_id] - Unique identifier for the entity (eg. extension)
184
- * @property {string} [name] - The name of the extension plan
185
- * @property {string} [term] - Detailed description of the terms and conditions
186
- * associated with the charge.
187
- * @property {string} [charge_type] - The type of charge (e.g., 'standalone',
188
- * 'recurring').
189
- * @property {string} [pricing_type] - The pricing model for the charge (e.g.,
190
- * 'one_time', 'recurring').
191
- * @property {EntityChargePrice} [price]
192
- * @property {ChargeRecurring} [recurring]
193
- * @property {string} [status] - Current status of the charge.
194
- * @property {number} [capped_amount] - The maximum amount that can be charged
195
- * for a particular service or item
196
- * @property {string} [activated_on] - Date and time when the charge was activated.
197
- * @property {string} [cancelled_on] - Date and time when the charge was cancelled.
198
- * @property {string} [billing_date] - The date when the billing occurred. This
199
- * field is optional and may be null if the billing date is not specified.
200
- * @property {SubscriptionTrialPeriod} [current_period]
201
- * @property {string} [modified_at] - Date and time when the charge details were
352
+ * @typedef InvoiceItemsPlanRecurring
353
+ * @property {string} [interval] - The interval at which the plan recurs (e.g.,
354
+ * month, year).
355
+ * @property {number} [interval_count] - The number of intervals for the recurring plan.
356
+ */
357
+ /**
358
+ * @typedef InvoiceItemsPlan
359
+ * @property {InvoiceItemsPlanRecurring} [recurring]
360
+ * @property {boolean} [is_trial_plan] - Indicates whether the plan is a trial plan.
361
+ * @property {string} [plan_group] - Group or category to which the plan belongs.
362
+ * @property {string[]} [tag_lines] - List of tag lines or short descriptions
363
+ * for the plan.
364
+ * @property {string} [currency] - Currency code for the pricing of the plan.
365
+ * @property {boolean} [is_active] - Indicates whether the plan is currently active.
366
+ * @property {boolean} [is_visible] - Indicates whether the plan is visible to users.
367
+ * @property {number} [trial_period] - The number of days for the trial period.
368
+ * @property {string[]} [addons] - List of add-ons available with the plan.
369
+ * @property {string[]} [tags] - Tags associated with the plan for categorization.
370
+ * @property {string} [type] - Type of the plan (e.g., public, private).
371
+ * @property {string} [country] - Country for which plan is created
372
+ * @property {string} [_id] - Unique identifier for the plan.
373
+ * @property {string} [name] - Name of the plan.
374
+ * @property {string} [description] - Detailed description of the plan.
375
+ * @property {number} [amount] - Price of the plan in the specified currency.
376
+ * @property {string} [product_suite_id] - Identifier for the product suite to
377
+ * which the plan belongs.
378
+ * @property {string} [created_at] - Timestamp when the plan was created.
379
+ * @property {string} [modified_at] - Timestamp when the plan was last modified.
380
+ */
381
+ /**
382
+ * @typedef InvoiceItemsPeriod
383
+ * @property {string} [start] - Start date of the invoice period.
384
+ * @property {string} [end] - End date of the invoice period.
385
+ */
386
+ /**
387
+ * @typedef InvoiceItems
388
+ * @property {string} [_id] - Unique identifier for the invoice item.
389
+ * @property {string} [currency] - Currency for the amount.
390
+ * @property {InvoiceItemsPlan} [plan]
391
+ * @property {string} [name] - Name of the invoice item.
392
+ * @property {number} [quantity] - Number of units of the invoice item.
393
+ * @property {string} [description] - Description of the invoice item.
394
+ * @property {InvoiceItemsPeriod} [period]
395
+ * @property {number} [unit_amount] - Amount per unit of the invoice item.
396
+ * @property {number} [amount] - Total amount for the invoice item.
397
+ * @property {string} [type] - Type of the invoice item (e.g., subscription, extension).
398
+ * @property {string} [invoice_id] - Identifier for the invoice to which the item belongs.
399
+ * @property {string} [created_at] - Timestamp when the invoice item was created.
400
+ * @property {string} [modified_at] - Timestamp when the invoice item was last modified.
401
+ */
402
+ /**
403
+ * @typedef InvoicesDataClient
404
+ * @property {string} [name] - Name of the client.
405
+ * @property {string} [email] - Email address of the client.
406
+ * @property {string} [phone] - Phone number of the client.
407
+ * @property {string[]} [address_lines] - Array of address lines for the client’s address.
408
+ */
409
+ /**
410
+ * @typedef InvoicesDataPeriod
411
+ * @property {string} [start] - The start date and time of the invoice period.
412
+ * @property {string} [end] - The end date and time of the invoice period.
413
+ */
414
+ /**
415
+ * @typedef InvoicesDataPaymentMethod
416
+ * @property {string} [pg_payment_method_id] - Payment gateway-specific payment
417
+ * method identifier. Nullable if not applicable.
418
+ */
419
+ /**
420
+ * @typedef InvoicesData
421
+ * @property {string} [_id] - Unique identifier for the invoice.
422
+ * @property {Object} [documents] - Associated documents related to the invoice.
423
+ * @property {Object} [payment] - Payment details for the invoice.
424
+ * @property {number} [old_settlement] - Previous settlement amount, if applicable.
425
+ * @property {number} [credit_balance] - Remaining credit balance applied to the
426
+ * invoice, if any.
427
+ * @property {Object} [discount] - Details of any discounts applied to the invoice.
428
+ * @property {Object} [taxation] - Taxation details associated with the invoice.
429
+ * @property {number} [credit_note_amount] - Amount covered by credit notes, if any.
430
+ * @property {InvoicesDataClient} [client]
431
+ * @property {boolean} [auto_advance] - Indicates if the invoice should be
432
+ * auto-advanced in the billing process.
433
+ * @property {string} [currency] - Currency code used for the invoice amount.
434
+ * @property {boolean} [paid] - Indicates if the invoice has been paid.
435
+ * @property {number} [attemp] - Number of payment attempts made for the invoice.
436
+ * @property {string} [collection_method] - Method used to collect payment for
437
+ * the invoice.
438
+ * @property {string} [subscriber_id] - Identifier for the subscriber associated
439
+ * with the invoice.
440
+ * @property {string} [invoice_url] - URL to view or download the invoice.
441
+ * "null" if not available.
442
+ * @property {string} [number] - Unique invoice number.
443
+ * @property {Object} [pg_data] - Payment gateway-related data for the invoice.
444
+ * @property {InvoicesDataPeriod} [period]
445
+ * @property {string} [receipt_number] - Receipt number for the invoice payment.
446
+ * @property {string} [statement_descriptor] - Descriptor that appears on the
447
+ * client's statement for the invoice.
448
+ * @property {string} [current_status] - Current status of the invoice (e.g.,
449
+ * paid, pending).
450
+ * @property {InvoiceDetailsStatusTrail[]} [status_trail] - History of status
451
+ * changes for the invoice.
452
+ * @property {number} [subtotal] - Subtotal amount before taxes and discounts.
453
+ * @property {number} [total] - Total amount including taxes and discounts.
454
+ * @property {string} [subscription] - Identifier for the subscription
455
+ * associated with the invoice.
456
+ * @property {string} [next_action_time] - Scheduled time for the next action
457
+ * related to the invoice.
458
+ * @property {string} [created_at] - Timestamp when the invoice was created.
459
+ * @property {string} [modified_at] - Timestamp when the invoice was last modified.
460
+ * @property {string} [hash_identifier] - Unique hash identifier for the invoice.
461
+ * @property {InvoicesDataPaymentMethod} [payment_method]
462
+ * @property {InvoiceItems[]} [invoice_items] - List of items included in the invoice.
463
+ * @property {string} [invoice_type] - Type of invoice (e.g., extension, subscription).
464
+ */
465
+ /**
466
+ * @typedef Invoices
467
+ * @property {InvoicesData[]} [data]
468
+ * @property {number} [start] - Index of the first item in the results.
469
+ * @property {number} [end] - Index of the last item in the results.
470
+ * @property {number} [limit] - Number of items per page.
471
+ * @property {number} [page] - Page number of the results.
472
+ * @property {number} [total] - Total number of items available.
473
+ */
474
+ /**
475
+ * @typedef Phone
476
+ * @property {string} [phone_number] - The phone number of the contact.
477
+ * @property {string} [phone_country_code] - The country code of the phone number.
478
+ */
479
+ /**
480
+ * @typedef SubscriptionBillingAddress
481
+ * @property {string} [country] - Name of the country for the billing address.
482
+ * @property {string} [country_code] - ISO country code for the billing address.
483
+ * @property {string} [state] - State or province for the billing address.
484
+ * @property {string} [city] - City for the billing address.
485
+ * @property {string} [line1] - First line of the street address.
486
+ * @property {string} [line2] - Second line of the street address (optional).
487
+ * @property {string} [postal_code] - Postal or ZIP code for the billing address.
488
+ */
489
+ /**
490
+ * @typedef SubscriptionCustomer
491
+ * @property {Phone} [phone]
492
+ * @property {SubscriptionBillingAddress} [billing_address]
493
+ * @property {string} [_id] - Unique identifier for the subscriber.
494
+ * @property {string} [unique_id] - Identifier specific to the company.
495
+ * @property {string} [type] - Type of the customer (e.g., developer, company).
496
+ * @property {string} [name] - Name of the customer.
497
+ * @property {string} [email] - Email address of the customer.
498
+ * @property {string} [created_at] - Timestamp when the customer record was created.
499
+ * @property {string} [modified_at] - Timestamp when the customer record was
202
500
  * last modified.
203
- * @property {string} [created_at] - Date and time when the charge was created.
204
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
205
- * a test mode.
206
- * @property {string} [company_id] - The unique identifier of the company.
207
- * @property {Object} [meta] - Additional metadata associated with the charge.
208
- * @property {number} [__v] - Internal version key for the charge record.
501
+ * @property {Object} [data] - Additional data related to the customer.
502
+ * @property {Object} [documents] - Associated documents related to the customer.
503
+ * @property {boolean} [consent] - Indicates whether the customer has given consent.
504
+ * @property {boolean} [comms] - Indicates whether the customer has opted in for
505
+ * communications.
506
+ * @property {number} [credit_balance] - Current credit balance for the customer, if any.
507
+ * @property {BusinessCountryInfo} [business_country_info]
209
508
  */
210
509
  /**
211
- * @typedef EntitySubscription
212
- * @property {string} [_id] - Unique identifier for the subscription charge
213
- * @property {string} [product_suit_id] - A unique identifier for a product
214
- * suite, which represents a specific collection or group of products within
215
- * the system.
216
- * @property {string} [entity_id] - Unique identifier for the entity (eg. extension)
217
- * @property {string} [entity_type] - Specifies the type of entity related to
218
- * the operation, such as 'extension' or 'subscription'
219
- * @property {string} [name] - The name of the extension plan
220
- * @property {string} [status] - Current status of the subscription charge
221
- * @property {number} [trial_days] - The number of days allocated for the trial period
222
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
223
- * a test mode.
224
- * @property {string} [created_at] - Timestamp when the charge was created
225
- * @property {string} [modified_at] - Timestamp when the charge was last modified
226
- * @property {string} [subscriber_id] - The unique identifier for the company in
227
- * the system.
228
- * @property {EntityChargeDetails[]} [line_items]
229
- * @property {string} [return_url] - The URL passed in request which extension
230
- * expects in return.
510
+ * @typedef SubscriptionCustomerCreate
511
+ * @property {Phone} [phone]
512
+ * @property {SubscriptionBillingAddress} [billing_address]
513
+ * @property {string} [unique_id] - Company id for the customer, generated by the client.
514
+ * @property {string} [type] - Type of company
515
+ * @property {string} [name] - Name of the company
516
+ * @property {string} [email] - Email address of the company
517
+ */
518
+ /**
519
+ * @typedef SubscriptionCurrentPeriod
520
+ * @property {string} [start] - The start date and time of the current
521
+ * subscription period.
522
+ * @property {string} [end] - The end date and time of the current subscription period.
523
+ */
524
+ /**
525
+ * @typedef SubscriptionPauseCollection
526
+ * @property {string} [behavior] - Defines the behavior of the subscription when
527
+ * it is paused. Possible values could include `keep_as_draft` or `cancel`.
528
+ * @property {string} [resume_at] - The date and time when the paused
529
+ * subscription is scheduled to resume.
530
+ */
531
+ /**
532
+ * @typedef SubscriptionTrial
533
+ * @property {string} [start] - The start date and time of the subscription trial period.
534
+ * @property {string} [end] - The end date and time of the subscription trial period.
535
+ */
536
+ /**
537
+ * @typedef SubscriptionInvoiceSettings
538
+ * @property {boolean} [generation] - Indicates whether invoices are
539
+ * automatically generated for the subscription.
540
+ * @property {boolean} [charging] - Indicates whether charging is enabled for
541
+ * the subscription. This setting determines if charges are applied based on
542
+ * the invoice settings.
543
+ */
544
+ /**
545
+ * @typedef Subscription
546
+ * @property {Object} [meta] - Additional metadata related to the subscription.
547
+ * @property {SubscriptionCurrentPeriod} [current_period]
548
+ * @property {SubscriptionPauseCollection} [pause_collection]
549
+ * @property {SubscriptionTrial} [trial]
550
+ * @property {SubscriptionInvoiceSettings} [invoice_settings]
551
+ * @property {boolean} [is_active] - Indicates whether the subscription is
552
+ * currently active.
553
+ * @property {boolean} [cancel_at_period_end] - Indicates whether the
554
+ * subscription will be canceled at the end of the current period.
555
+ * @property {string} [_id] - Unique identifier for the subscription.
556
+ * @property {string} [subscriber_id] - Unique identifier for the subscriber
557
+ * associated with the subscription.
558
+ * @property {string} [plan_id] - Unique identifier for the plan associated with
559
+ * the subscription.
560
+ * @property {string} [product_suite_id] - Unique identifier for the product
561
+ * suite associated with the subscription.
562
+ * @property {boolean} [is_eligible_for_plan_change] - Indicates whether the
563
+ * subscriber is eligible to change their subscription plan.
564
+ * @property {Plan} [plan_data]
565
+ * @property {string} [current_status] - The current status of the subscription
566
+ * (e.g., active, canceled).
567
+ * @property {string} [collection_method] - Method used to collect payments for
568
+ * the subscription (e.g., charge_automatically, invoice).
569
+ * @property {string} [created_at] - The date and time when the subscription was created.
570
+ * @property {string} [modified_at] - The date and time when the subscription
571
+ * was last modified.
572
+ * @property {string} [latest_invoice] - Unique identifier for the most recent
573
+ * invoice related to the subscription.
574
+ * @property {string} [channel_type] - Ordering channel for which the
575
+ * subscription was created (e.g., ecomm, fynd).
576
+ * @property {boolean} [freezed] - Indicates whether the subscription is
577
+ * currently freezed.
578
+ * @property {string} [cancel_at] - The date and time when the subscription is
579
+ * scheduled to be canceled, if applicable.
580
+ * @property {string} [canceled_at] - The date and time when the subscription
581
+ * was actually canceled.
582
+ */
583
+ /**
584
+ * @typedef SubscriptionStatus
585
+ * @property {boolean} [is_enabled] - Indicates whether the subscription status
586
+ * is enabled.
587
+ * @property {Subscription} [subscription]
588
+ * @property {InvoicesData} [latest_invoice]
589
+ * @property {Plan} [next_plan]
590
+ * @property {Subscription[]} [current_subscriptions] - List of current
591
+ * subscriptions associated with the user.
592
+ * @property {number} [mandate_amount] - The amount mandated for the
593
+ * subscription or service.
594
+ * @property {string} [message] - A message providing additional context or
595
+ * information about the subscription status.
596
+ */
597
+ /**
598
+ * @typedef SubscriptionLimitApplication
599
+ * @property {boolean} [enabled] - Indicates whether the application limit is enabled.
600
+ * @property {number} [hard_limit] - The maximum number of applications allowed.
601
+ * @property {number} [soft_limit] - The soft limit of applications allowed,
602
+ * typically a warning threshold before reaching the hard limit.
603
+ */
604
+ /**
605
+ * @typedef SubscriptionLimitMarketplace
606
+ * @property {boolean} [enabled] - Indicates whether the marketplace limit is enabled.
607
+ */
608
+ /**
609
+ * @typedef SubscriptionLimitOtherPlatform
610
+ * @property {boolean} [enabled] - Indicates whether the other platform limit is enabled.
611
+ */
612
+ /**
613
+ * @typedef SubscriptionLimitTeam
614
+ * @property {number} [limit] - The limit for team-related features.
615
+ */
616
+ /**
617
+ * @typedef SubscriptionLimitProducts
618
+ * @property {boolean} [bulk] - Indicates whether bulk product limits are enabled.
619
+ * @property {number} [limit] - The limit for products.
620
+ */
621
+ /**
622
+ * @typedef SubscriptionLimitExtensions
623
+ * @property {boolean} [enabled] - Indicates whether the extensions limit is enabled.
624
+ * @property {number} [limit] - The limit for extensions.
625
+ */
626
+ /**
627
+ * @typedef SubscriptionLimitIntegrations
628
+ * @property {boolean} [enabled] - Indicates whether the integrations limit is enabled.
629
+ * @property {number} [limit] - The limit for integrations. A value of `-1`
630
+ * usually indicates no limit.
631
+ */
632
+ /**
633
+ * @typedef SubscriptionLimit
634
+ * @property {SubscriptionLimitApplication} [application]
635
+ * @property {SubscriptionLimitMarketplace} [marketplace]
636
+ * @property {SubscriptionLimitOtherPlatform} [other_platform]
637
+ * @property {SubscriptionLimitTeam} [team]
638
+ * @property {SubscriptionLimitProducts} [products]
639
+ * @property {SubscriptionLimitExtensions} [extensions]
640
+ * @property {SubscriptionLimitIntegrations} [integrations]
641
+ * @property {boolean} [is_trial_plan] - Indicates whether the subscription is
642
+ * for a trial plan.
643
+ */
644
+ /**
645
+ * @typedef IntentReq
646
+ * @property {string} [unique_external_id] - A unique identifier for the
647
+ * external resource, used to track and reference the request like company id.
648
+ * @property {string} [plan_id] - The identifier for the plan associated with the intent.
649
+ */
650
+ /**
651
+ * @typedef PutIntentReq
652
+ * @property {string} [unique_external_id] - A unique identifier for the
653
+ * external resource, used to track and reference the request like company id.
654
+ * @property {string} [setup_intent_id] - The ID of the setup intent for payment
655
+ * methods, if applicable.
656
+ * @property {string} [payment_method_id] - The ID of the payment method to use
657
+ * for the intent.
658
+ * @property {boolean} [set_default] - Indicates whether the payment method
659
+ * should be set as default.
660
+ */
661
+ /**
662
+ * @typedef SubscriptionActivateReq
663
+ * @property {string} [unique_id] - A unique identifier for the subscription
664
+ * activation request.
665
+ * @property {string} [type] - The type of subscriber account, e.g., company or developer.
666
+ * @property {string} [product_suite] - The product suite associated with the
667
+ * subscription.
668
+ * @property {string} [plan_id] - The ID of the plan to be activated for the subscription.
669
+ * @property {string} [payment_method] - The payment method ID to be used for
670
+ * this subscription.
671
+ * @property {string} [subscription_id] - The ID of the subscription to be
672
+ * activated, if applicable.
673
+ * @property {string} [coupon] - A coupon code for applying discounts, if applicable.
674
+ * @property {Object} [meta] - Additional metadata related to the subscription
675
+ * activation request.
676
+ */
677
+ /**
678
+ * @typedef SubscriptionActivateRes
679
+ * @property {boolean} [success] - Indicates whether the subscription activation
680
+ * was successful.
681
+ * @property {Subscription} [data]
682
+ */
683
+ /**
684
+ * @typedef CancelSubscriptionReq
685
+ * @property {string} [unique_id] - A unique identifier for the subscription
686
+ * cancellation request like company id.
687
+ * @property {string} [type] - The type of subscription to be canceled, e.g.,
688
+ * company or developer.
689
+ * @property {string} [product_suite] - The product suite associated with the
690
+ * subscription to be canceled.
691
+ * @property {string} [subscription_id] - The ID of the subscription to be canceled.
692
+ */
693
+ /**
694
+ * @typedef CancelSubscriptionRes
695
+ * @property {boolean} [success]
696
+ * @property {Subscription} [data]
697
+ */
698
+ /**
699
+ * @typedef PlanStatusUpdateReq
700
+ * @property {string} [plan_id] - The identifier of the plan whose status is
701
+ * being updated.
702
+ * @property {string} [reason] - The reason for updating the plan status.
703
+ * @property {string} [seller_status] - The new status of the plan as set by the
704
+ * seller (e.g., approved, rejected, pending).
705
+ */
706
+ /**
707
+ * @typedef SubscribePlan
708
+ * @property {string} [entity_type] - The type of entity for which the plan is
709
+ * being subscribed (e.g., subscription, extension).
710
+ * @property {string} [collection_type] - The method of collection for the
711
+ * subscription (e.g., online, offline).
712
+ * @property {string} [plan_id] - The identifier of the plan to subscribe to.
713
+ * @property {string} [callback_url] - URL to which the payment result will be sent
714
+ * @property {Meta} [meta]
715
+ */
716
+ /**
717
+ * @typedef Meta
718
+ * @property {boolean} [subscribe] - Indicates whether the subscription is being
719
+ * initiated.
720
+ * @property {boolean} [is_custom_plan] - Indicates if the plan is a custom plan
721
+ * rather than a standard one.
722
+ * @property {boolean} [is_plan_upgrade] - Indicates whether this subscription
723
+ * is an upgrade from a previous plan.
724
+ */
725
+ /**
726
+ * @typedef SubscribePlanRes
727
+ * @property {string} [redirect_url] - The URL to which the user should be
728
+ * redirected after completion of subscription process.
729
+ * @property {string} [transaction_id] - The unique identifier for the
730
+ * subscription transaction.
731
+ * @property {string} [current_status] - The current status of the subscription
732
+ * process (e.g., initiated, success, failed).
733
+ * @property {Meta} [meta]
734
+ */
735
+ /**
736
+ * @typedef EntityDetail
737
+ * @property {string} [entity] - Specifies the type of entity (e.g., subscription, user).
738
+ * @property {Subscription} [item]
739
+ */
740
+ /**
741
+ * @typedef PaymentOptions
742
+ * @property {string} [_id] - Unique identifier for the payment option.
743
+ * @property {string} [name] - Name of the payment option.
744
+ * @property {string} [description] - Brief description of the payment option's
745
+ * functionality.
746
+ * @property {string} [logo] - URL of the payment option's logo like upi logo.
747
+ * @property {string} [aggregator_id] - Unique identifier for the payment aggregator.
748
+ * @property {string} [aggregator] - Identifier for the payment aggregator system.
749
+ * @property {string} [created_at] - Date and time when the payment option was created.
750
+ * @property {string} [modified_at] - Date and time when the payment option was
751
+ * last modified.
752
+ * @property {number} [__v] - Version key for document revision control.
753
+ */
754
+ /**
755
+ * @typedef VerifyPaymentReq
756
+ * @property {string} [razorpay_payment_id] - Unique identifier for the Razorpay payment.
757
+ * @property {string} [razorpay_order_id] - Unique identifier for the Razorpay order.
758
+ * @property {string} [razorpay_signature] - Signature generated by Razorpay to
759
+ * verify the payment.
760
+ * @property {number} [status_code] - HTTP status code of the payment
761
+ * verification response.
762
+ * @property {string} [provider_type] - The payment provider used for the transaction.
763
+ */
764
+ /**
765
+ * @typedef Documents
766
+ * @property {string} [pan] - Permanent Account Number (PAN) used for tax purposes.
767
+ * @property {string} [gst] - Goods and Services Tax (GST) number for business taxation.
768
+ */
769
+ /**
770
+ * @typedef BillingAddress
771
+ * @property {string} [country] - The country where the billing address is located.
772
+ * @property {string} [state] - The state or region within the country.
773
+ * @property {string} [city] - The city of the billing address.
774
+ * @property {string} [line1] - The first line of the billing address.
775
+ * @property {string} [line2] - The second line of the billing address (if applicable).
776
+ * @property {string} [postal_code] - The ZIP code of the billing address.
777
+ * @property {string} [country_code] - ISO country code for the country of the
778
+ * billing address.
779
+ */
780
+ /**
781
+ * @typedef Currency
782
+ * @property {string} [code] - Currency code as per ISO 4217.
783
+ * @property {string} [symbol] - Symbol representing the currency.
784
+ * @property {string} [name] - Full name of the currency.
785
+ */
786
+ /**
787
+ * @typedef BusinessCountryInfo
788
+ * @property {string} [country] - The country where the business is registered.
789
+ * @property {string} [country_code] - ISO country code for the business's country.
790
+ * @property {Currency} [currency]
791
+ * @property {string} [timezone] - Timezone in which the business operates.
792
+ */
793
+ /**
794
+ * @typedef SubscriberData
795
+ * @property {boolean} [pg_user_exists] - Indicates if the user exists in the
796
+ * payment gateway system.
797
+ * @property {string} [id] - Unique identifier for the subscriber.
798
+ * @property {string} [pg_customer_id] - Unique customer ID assigned by the
799
+ * payment gateway.
800
+ * @property {string} [default_payment_method] - Identifier for the default
801
+ * payment method used by the subscriber.
802
+ */
803
+ /**
804
+ * @typedef Subscriber
805
+ * @property {Documents} [documents]
806
+ * @property {Object} [phone] - Contact information for the subscriber, such as
807
+ * phone number.
808
+ * @property {BillingAddress} [billing_address]
809
+ * @property {boolean} [consent] - Indicates whether the subscriber has given
810
+ * consent for processing.
811
+ * @property {boolean} [comms] - Indicates whether the subscriber has opted in
812
+ * for communications.
813
+ * @property {string} [_id] - Unique identifier for the subscriber in the system.
814
+ * @property {string} [type] - The type of the subscriber, such as 'individual'
815
+ * or 'company'.
816
+ * @property {string} [unique_id] - A unique identifier assigned to the subscriber.
817
+ * @property {string} [name] - The name of the subscriber.
818
+ * @property {string} [email] - Email address of the subscriber.
819
+ * @property {BusinessCountryInfo} [business_country_info]
820
+ * @property {string} [created_at] - The date and time when the subscriber was created.
821
+ * @property {string} [modified_at] - The date and time when the subscriber
822
+ * details were last modified.
823
+ * @property {number} [credit_balance] - The current credit balance for the
824
+ * subscriber, if any.
825
+ * @property {SubscriberData} [data]
826
+ */
827
+ /**
828
+ * @typedef AuthorModifiedDetails
829
+ * @property {string} [first_name] - The first name of the author who made modifications.
830
+ * @property {string} [last_name] - The last name of the author who made modifications.
831
+ * @property {boolean} [is_admin] - Indicates whether the author has
832
+ * administrative privileges.
833
+ */
834
+ /**
835
+ * @typedef Author
836
+ * @property {AuthorModifiedDetails} [modified_by_details]
837
+ * @property {string} [created_by] - Identifier of the user who created the record.
838
+ * @property {string} [modified_by] - Identifier of the user who last modified the record.
839
+ */
840
+ /**
841
+ * @typedef EndingBalance
842
+ * @property {number} [amount] - The ending balance amount.
843
+ * @property {string} [old_entry_ref] - Reference to the previous entry if applicable.
844
+ */
845
+ /**
846
+ * @typedef PaymentData
847
+ * @property {string} [transaction_id] - The unique identifier for the transaction.
848
+ * @property {string} [aggregator] - The payment aggregator used for the transaction.
849
+ * @property {string} [aggregator_order_id] - The order ID generated by the
850
+ * payment aggregator.
851
+ * @property {string} [receipt_date] - The date and time when the receipt was generated.
852
+ * @property {string} [unique_transaction_reference] - A unique reference for
853
+ * the transaction.
854
+ */
855
+ /**
856
+ * @typedef CreditTransaction
857
+ * @property {Object} [entity] - The entity associated with the transaction.
858
+ * @property {Author} [author]
859
+ * @property {string} [_id] - The unique identifier for the credit transaction.
860
+ * @property {number} [amount] - The amount credited in the transaction.
861
+ * @property {string} [currency] - The currency of the transaction amount.
862
+ * @property {string} [subscriber_id] - The unique identifier of the subscriber
863
+ * involved in the transaction.
864
+ * @property {string} [description] - A brief description of the transaction.
865
+ * @property {string} [is_test] - Indicates if the transaction is a test transaction.
866
+ * @property {EndingBalance} [ending_balance]
867
+ * @property {PaymentData} [payment]
868
+ * @property {string} [type] - The type of credit transaction.
869
+ * @property {string} [created_at] - The date and time when the transaction was created.
870
+ * @property {string} [modified_at] - The date and time when the transaction was
871
+ * last modified.
872
+ */
873
+ /**
874
+ * @typedef VerifyPaymentData
875
+ * @property {boolean} [success] - Indicates if the payment verification was successful.
876
+ * @property {Subscriber} [subscriber]
877
+ * @property {CreditTransaction} [credit_transaction]
878
+ */
879
+ /**
880
+ * @typedef VerifyPaymentRes
881
+ * @property {string} [status] - The status of the payment verification.
882
+ * @property {VerifyPaymentData} [data]
883
+ */
884
+ /**
885
+ * @typedef DefaultMerchants
886
+ * @property {string} [stripe] - The default Stripe merchant identifier.
887
+ */
888
+ /**
889
+ * @typedef GlobalSettingsPayment
890
+ * @property {DefaultMerchants} [default_merchants]
891
+ */
892
+ /**
893
+ * @typedef GlobalSettingsData
894
+ * @property {GlobalSettingsPayment} [payment]
895
+ * @property {boolean} [freeze_panel] - Indicates if the panel is frozen.
896
+ * @property {string} [_id] - Unique identifier for the global settings.
897
+ * @property {string} [created_at] - The date and time when the global settings
898
+ * were created.
899
+ * @property {string} [modified_at] - The date and time when the global settings
900
+ * were last modified.
901
+ */
902
+ /**
903
+ * @typedef GlobalSettings
904
+ * @property {string} [status] - The status of the global settings retrieval.
905
+ * @property {GlobalSettingsData} [data]
906
+ */
907
+ /**
908
+ * @typedef MethodChecks
909
+ * @property {string} [address_line1_check] - Result of the address line 1 check.
910
+ * @property {string} [address_postal_code_check] - Result of the address postal
911
+ * code check.
912
+ * @property {string} [cvc_check] - Result of the CVC check.
913
+ */
914
+ /**
915
+ * @typedef MethodNetworks
916
+ * @property {string[]} [available] - List of available networks for the payment method.
917
+ * @property {string} [preferred] - Preferred network for the payment method.
918
+ */
919
+ /**
920
+ * @typedef MethodSecureUsage
921
+ * @property {boolean} [supported] - Indicates if 3D Secure is supported for the
922
+ * payment method.
923
+ */
924
+ /**
925
+ * @typedef MethodDetails
926
+ * @property {string} [id] - Unique identifier for the payment method.
927
+ * @property {string} [type] - Type of payment method.
928
+ * @property {boolean} [mandate_available] - Indicates if a mandate is available
929
+ * for the payment method.
930
+ * @property {number} [mandate_amount] - Mandate amount for the payment method.
931
+ * @property {string} [pg_payment_method_id] - Payment gateway's payment method
932
+ * identifier.
933
+ * @property {boolean} [is_default] - Indicates if the payment method is the default.
934
+ * @property {SubscriptionMethodData} [data]
935
+ */
936
+ /**
937
+ * @typedef SubscriptionMethodData
938
+ * @property {string} [brand] - Brand of the payment method.
939
+ * @property {MethodChecks} [checks]
940
+ * @property {string} [country] - Country of the payment method.
941
+ * @property {number} [exp_month] - Expiration month of the payment method.
942
+ * @property {number} [exp_year] - Expiration year of the payment method.
943
+ * @property {string} [fingerprint] - Fingerprint of the payment method.
944
+ * @property {string} [funding] - Funding type of the payment method.
945
+ * @property {string} [generated_from] - Source from which the payment method
946
+ * was generated.
947
+ * @property {string} [last4] - Last 4 digits of the payment method.
948
+ * @property {MethodNetworks} [networks]
949
+ * @property {MethodSecureUsage} [three_d_secure_usage]
950
+ * @property {string} [wallet] - Wallet associated with the payment method.
951
+ * @property {string} [name] - Name associated with the payment method.
952
+ * @property {boolean} [is_default] - Indicates if the payment method is the default.
953
+ */
954
+ /**
955
+ * @typedef SubscriptionMethods
956
+ * @property {boolean} [success] - Indicates if the retrieval of subscription
957
+ * methods was successful.
958
+ * @property {MethodDetails[]} [data] - List of subscription methods.
959
+ */
960
+ /**
961
+ * @typedef ConfigPublicKey
962
+ * @property {string} [public_key] - Public key for the payment aggregator.
963
+ */
964
+ /**
965
+ * @typedef ConfigRes
966
+ * @property {boolean} [success] - Indicates if the retrieval of configuration
967
+ * was successful.
968
+ * @property {string} [aggregator] - The payment aggregator.
969
+ * @property {ConfigPublicKey} [config]
970
+ */
971
+ /**
972
+ * @typedef PlanChangeData
973
+ * @property {number} [total] - The total amount after the plan change.
974
+ * @property {number} [credit_note_amount] - The amount credited due to the plan change.
975
+ * @property {number} [settlement] - The settlement amount for the plan change.
976
+ * @property {number} [taxable_amount] - The taxable amount for the plan change.
977
+ * @property {number} [gst_amount] - The GST amount for the plan change.
978
+ * @property {number} [gross_total] - The gross total amount for the plan change.
979
+ * @property {number} [gst] - The GST for the plan change.
980
+ * @property {number} [discount] - The discount amount applied to the plan change.
981
+ */
982
+ /**
983
+ * @typedef PlanChangeDetails
984
+ * @property {string} [status] - Status of the plan change.
985
+ * @property {PlanChangeData} [data]
986
+ */
987
+ /**
988
+ * @typedef TransactionMeta
989
+ * @property {string} [invoice_id] - Invoice ID associated with the transaction.
990
+ */
991
+ /**
992
+ * @typedef PaymentTransactionDetails
993
+ * @property {Object} [aggregator] - Payment aggregator details.
994
+ * @property {string} [currency] - Currency used in the transaction.
995
+ * @property {string} [current_status] - Current status of the transaction.
996
+ * @property {string} [_id] - Unique identifier for the payment transaction.
997
+ * @property {string} [subscriber_id] - Unique identifier for the subscriber.
998
+ * @property {number} [amount] - Amount involved in the transaction.
999
+ * @property {string} [entity_type] - Type of entity involved in the transaction.
1000
+ * @property {string} [collection_type] - Type of collection for the transaction.
1001
+ * @property {TransactionMeta} [meta]
1002
+ * @property {string} [created_at] - Timestamp when the transaction was created.
1003
+ * @property {string} [modified_at] - Timestamp when the transaction was last modified.
1004
+ */
1005
+ /**
1006
+ * @typedef PaymentItems
1007
+ * @property {string} [name] - Name of the payment option.
1008
+ * @property {string} [code] - Code for the payment option
1009
+ * @property {string} [aggregator] - Aggregator used for the payment option.
1010
+ */
1011
+ /**
1012
+ * @typedef GetPaymentOptions
1013
+ * @property {PaymentItems[]} [payment_options] - List of available payment options.
1014
+ */
1015
+ /**
1016
+ * @typedef TopupReq
1017
+ * @property {number} [amount] - Amount to be topped up.
1018
+ * @property {string} [currency] - Currency in which the top-up is made.
1019
+ * @property {string} [provider_type] - Provider type for the top-up.
1020
+ */
1021
+ /**
1022
+ * @typedef SetupMandateReq
1023
+ * @property {string} [intent_id] - ID of the setup intent.
1024
+ * @property {string} [payment_method_id] - ID of the payment method.
1025
+ */
1026
+ /**
1027
+ * @typedef SetupPaymentReq
1028
+ * @property {string} [payment_method] - Payment method to be used.
1029
+ * @property {string} [payment_id] - ID of the payment.
1030
+ * @property {string} [plan_id] - ID of the plan.
1031
+ * @property {string} [invoice_id] - ID of the invoice.
1032
+ */
1033
+ /**
1034
+ * @typedef SubscriptionRenewReq
1035
+ * @property {string} [invoice_id] - ID of the invoice for renewal.
1036
+ * @property {string} [entity_type] - Type of entity for the renewal.
1037
+ * @property {string} [collection_type] - Collection type for the renewal.
1038
+ * @property {string} [callback_url] - URL to which the payment result will be sent
1039
+ * @property {RenewMeta} [meta]
1040
+ */
1041
+ /**
1042
+ * @typedef RenewMeta
1043
+ * @property {boolean} [invoice_payment] - Indicates whether the invoice payment
1044
+ * is involved in the renewal.
1045
+ * @property {boolean} [renew] - Indicates whether the subscription is being renewed.
1046
+ */
1047
+ /**
1048
+ * @typedef SubscriptionMethodsReq
1049
+ * @property {string} [unique_external_id] - The unique external identifier for
1050
+ * the subscription method.
1051
+ * @property {string} [setup_intent_id] - The setup intent ID for the subscription method.
1052
+ * @property {string} [pg_payment_method_id] - The payment gateway payment method ID.
1053
+ * @property {boolean} [set_default] - Indicates whether this payment method
1054
+ * should be set as the default.
1055
+ */
1056
+ /**
1057
+ * @typedef CreditTransactionResponse
1058
+ * @property {number} [total] - Total number of transactions.
1059
+ * @property {number} [limit] - Maximum number of transactions per page.
1060
+ * @property {number} [page] - Current page number.
1061
+ * @property {number} [pages] - Total number of pages.
1062
+ * @property {CreditTransaction[]} [items] - List of credit transactions.
1063
+ */
1064
+ /**
1065
+ * @typedef DowngradePlanReq
1066
+ * @property {string} [unique_id] - Unique identifier for the request.
1067
+ * @property {string} [type] - Type of entity requesting the downgrade.
1068
+ * @property {string} [product_suite] - Product suite for the plan.
1069
+ * @property {string} [plan_id] - Plan ID for the downgrade request.
1070
+ * @property {string} [reason] - Reason for downgrading the plan.
1071
+ * @property {string} [platform] - Platform from which the request is made.
1072
+ */
1073
+ /**
1074
+ * @typedef Taxation
1075
+ * @property {number} [gst] - GST percentage.
1076
+ */
1077
+ /**
1078
+ * @typedef OneTimeFees
1079
+ * @property {number} [developement] - One-time development fee.
1080
+ * @property {number} [marketing] - One-time marketing fee.
1081
+ */
1082
+ /**
1083
+ * @typedef CreditLine
1084
+ * @property {boolean} [is_active] - Indicates whether the credit line is active.
1085
+ */
1086
+ /**
1087
+ * @typedef StatusMessage
1088
+ * @property {string} [status] - Status of the request.
1089
+ * @property {string} [message] - Detailed message regarding the status.
1090
+ * @property {boolean} [success] - Indicates whether the operation was successful.
1091
+ * @property {string} [code] - Status code of the operation.
1092
+ */
1093
+ /**
1094
+ * @typedef PaymentCollectReq
1095
+ * @property {string} [transaction_id] - ID of the transaction to collect payment for.
1096
+ * @property {boolean} [credit_balance] - Indicates whether to use credit
1097
+ * balance for the payment.
1098
+ * @property {string} [payment_mode] - Mode of payment.
1099
+ * @property {string} [payment_method] - Payment method to be used.
1100
+ * @property {string} [invoice_id] - ID of the invoice for which the payment is collected.
1101
+ */
1102
+ /**
1103
+ * @typedef SubscriptionRenewResMeta
1104
+ * @property {boolean} [invoice_payment] - Indicates whether the invoice payment
1105
+ * is involved in the renewal.
1106
+ * @property {boolean} [renew] - Indicates whether the subscription is being renewed.
1107
+ */
1108
+ /**
1109
+ * @typedef SubscriptionRenewRes
1110
+ * @property {string} [redirect_url] - URL to redirect the user for completing
1111
+ * the renewal.
1112
+ * @property {string} [transaction_id] - ID of the renewal transaction.
1113
+ * @property {string} [current_status] - Current status of the renewal process.
1114
+ * @property {SubscriptionRenewResMeta} [meta]
1115
+ */
1116
+ /**
1117
+ * @typedef SetupIntentRes
1118
+ * @property {boolean} [success] - Indicates if the setup intent was successful.
1119
+ * @property {SetupIntentData} [data]
1120
+ */
1121
+ /**
1122
+ * @typedef SetupIntentData
1123
+ * @property {string} [id] - The ID of the setup intent.
1124
+ * @property {string} [client_secret] - The client secret of the setup intent.
1125
+ * @property {string} [customer] - The customer associated with the setup intent.
1126
+ * @property {string} [status] - The status of the setup intent.
1127
+ */
1128
+ /**
1129
+ * @typedef SetupPayment
1130
+ * @property {string} [id] - The ID of the setup payment.
1131
+ * @property {string} [status] - The status of the setup payment.
1132
+ * @property {string} [customer] - The customer associated with the setup payment.
1133
+ * @property {string} [client_secret] - The client secret of the setup payment.
1134
+ * @property {string} [payment_method] - The payment method used for the setup payment.
1135
+ * @property {string} [mandate] - The mandate ID associated with the setup payment.
1136
+ * @property {PaymentMethodOptions} [payment_method_options]
1137
+ */
1138
+ /**
1139
+ * @typedef PaymentMethodOptions
1140
+ * @property {Card} [card]
1141
+ */
1142
+ /**
1143
+ * @typedef Card
1144
+ * @property {MandateOptions} [mandate_options]
1145
+ */
1146
+ /**
1147
+ * @typedef MandateOptions
1148
+ * @property {number} [amount] - The mandate amount.
1149
+ */
1150
+ /**
1151
+ * @typedef Message
1152
+ * @property {string} [message] - A message providing details about the operation status.
1153
+ */
1154
+ /**
1155
+ * @typedef TopupRes
1156
+ * @property {string} [status] - The status of the top-up request.
1157
+ * @property {string} [aggregator_order_id] - The order ID from the aggregator.
1158
+ * @property {number} [amount] - The amount of the top-up.
1159
+ * @property {string} [currency] - The currency of the top-up.
1160
+ * @property {string} [transaction_id] - The transaction ID for the top-up.
1161
+ */
1162
+ /**
1163
+ * @typedef CancelTopupReq
1164
+ * @property {string} [order_id] - The order ID of the top-up to cancel.
1165
+ */
1166
+ /**
1167
+ * @typedef CancelTopupRes
1168
+ * @property {string} [_id] - The ID of the canceled top-up.
1169
+ * @property {string} [subscriber_id] - The subscriber ID associated with the top-up.
1170
+ * @property {number} [amount] - The amount of the canceled top-up.
1171
+ * @property {string} [currency] - The currency of the canceled top-up.
1172
+ * @property {string} [aggregator] - The aggregator used for the top-up.
1173
+ * @property {string} [aggregator_order_id] - The order ID from the aggregator.
1174
+ * @property {string} [created_at] - The date and time when the top-up was created.
1175
+ * @property {string} [modified_at] - The date and time when the top-up was modified.
1176
+ * @property {number} [__v] - The version key, used for internal purposes.
1177
+ * @property {string} [aggregator_status] - The status of the top-up with the aggregator.
1178
+ * @property {string} [current_status] - The current status of the top-up.
231
1179
  */
232
1180
  /**
233
- * @typedef CreateSubscription
234
- * @property {EntitySubscription} [subscription]
235
- * @property {string} [confirm_url] - URL to which users are redirected to post
236
- * initiation of extension installation.
1181
+ * @typedef DefaultReq
1182
+ * @property {string} [payment_method_id] - The ID of the payment method to set
1183
+ * as default.
237
1184
  */
238
1185
  declare class BillingPlatformModel {
239
1186
  }
240
1187
  declare namespace BillingPlatformModel {
241
- export { SubscriptionChargeRes, BadRequestSchema, ResourceNotFound, SubscriptionTrialPeriod, EntityChargePrice, OneTimeChargeItem, CreateOneTimeCharge, ChargeRecurring, ChargeDetails, OneTimeChargeEntity, CreateOneTimeChargeResponseSchemas, Charge, EntityChargeRecurring, ChargeLineItem, CreateSubscriptionCharge, EntityChargeDetails, EntitySubscription, CreateSubscription };
1188
+ export { CompanyInfo, AddressDetails, InvoiceData, InvoiceDetailsData, Client, Period, StatusTrail, PaymentCollectRes, SubscriptionChargeRes, PostDowngradeRes, DowngradeRes, PaymentStatusData, PaymentStatusResponse, BadRequest, ResourceNotFound, InternalServerError, CheckValidityResponse, PlanRecurring, PlanMeta, CountryRes, Plan, SubscriptionTrialPeriod, EntityChargePrice, OneTimeChargeItem, CreateOneTimeCharge, ChargeRecurring, ChargeDetails, OneTimeChargeEntity, CreateOneTimeChargeResponse, Charge, InvoiceDetailsStatusTrail, InvoiceItemsPlanRecurring, InvoiceItemsPlan, InvoiceItemsPeriod, InvoiceItems, InvoicesDataClient, InvoicesDataPeriod, InvoicesDataPaymentMethod, InvoicesData, Invoices, Phone, SubscriptionBillingAddress, SubscriptionCustomer, SubscriptionCustomerCreate, SubscriptionCurrentPeriod, SubscriptionPauseCollection, SubscriptionTrial, SubscriptionInvoiceSettings, Subscription, SubscriptionStatus, SubscriptionLimitApplication, SubscriptionLimitMarketplace, SubscriptionLimitOtherPlatform, SubscriptionLimitTeam, SubscriptionLimitProducts, SubscriptionLimitExtensions, SubscriptionLimitIntegrations, SubscriptionLimit, IntentReq, PutIntentReq, SubscriptionActivateReq, SubscriptionActivateRes, CancelSubscriptionReq, CancelSubscriptionRes, PlanStatusUpdateReq, SubscribePlan, Meta, SubscribePlanRes, EntityDetail, PaymentOptions, VerifyPaymentReq, Documents, BillingAddress, Currency, BusinessCountryInfo, SubscriberData, Subscriber, AuthorModifiedDetails, Author, EndingBalance, PaymentData, CreditTransaction, VerifyPaymentData, VerifyPaymentRes, DefaultMerchants, GlobalSettingsPayment, GlobalSettingsData, GlobalSettings, MethodChecks, MethodNetworks, MethodSecureUsage, MethodDetails, SubscriptionMethodData, SubscriptionMethods, ConfigPublicKey, ConfigRes, PlanChangeData, PlanChangeDetails, TransactionMeta, PaymentTransactionDetails, PaymentItems, GetPaymentOptions, TopupReq, SetupMandateReq, SetupPaymentReq, SubscriptionRenewReq, RenewMeta, SubscriptionMethodsReq, CreditTransactionResponse, DowngradePlanReq, Taxation, OneTimeFees, CreditLine, StatusMessage, PaymentCollectReq, SubscriptionRenewResMeta, SubscriptionRenewRes, SetupIntentRes, SetupIntentData, SetupPayment, PaymentMethodOptions, Card, MandateOptions, Message, TopupRes, CancelTopupReq, CancelTopupRes, DefaultReq };
242
1189
  }
243
- /** @returns {SubscriptionChargeRes} */
244
- declare function SubscriptionChargeRes(): SubscriptionChargeRes;
245
- type SubscriptionChargeRes = {
1190
+ /** @returns {CompanyInfo} */
1191
+ declare function CompanyInfo(): CompanyInfo;
1192
+ type CompanyInfo = {
246
1193
  /**
247
- * - Unique identifier for the subscription charge
1194
+ * - Name of the company
248
1195
  */
249
- _id?: string;
1196
+ company_name?: string;
250
1197
  /**
251
- * - A unique identifier for a product
252
- * suite, which represents a specific collection or group of products within
253
- * the system.
1198
+ * - Goods and Services Tax Identification Number
1199
+ */
1200
+ gstin?: string;
1201
+ /**
1202
+ * - Main address of the company
1203
+ */
1204
+ address?: string;
1205
+ address_details?: AddressDetails;
1206
+ /**
1207
+ * - Permanent Account Number of the company
1208
+ */
1209
+ pan?: string;
1210
+ /**
1211
+ * - Contact phone number for the company
1212
+ */
1213
+ phone?: string;
1214
+ /**
1215
+ * - Contact email address for the company
1216
+ */
1217
+ email?: string;
1218
+ /**
1219
+ * - Corporate Identification Number
1220
+ */
1221
+ cin?: string;
1222
+ };
1223
+ /** @returns {AddressDetails} */
1224
+ declare function AddressDetails(): AddressDetails;
1225
+ type AddressDetails = {
1226
+ /**
1227
+ * - First line of the address
1228
+ */
1229
+ address_line_1?: string;
1230
+ /**
1231
+ * - Second line of the address (optional)
1232
+ */
1233
+ address_line_2?: string;
1234
+ /**
1235
+ * - Company city
1236
+ */
1237
+ city?: string;
1238
+ /**
1239
+ * - Company pincode
1240
+ */
1241
+ pincode?: string;
1242
+ /**
1243
+ * - Company state
1244
+ */
1245
+ state?: string;
1246
+ /**
1247
+ * - Company country
1248
+ */
1249
+ country?: string;
1250
+ };
1251
+ /** @returns {InvoiceData} */
1252
+ declare function InvoiceData(): InvoiceData;
1253
+ type InvoiceData = {
1254
+ invoice?: InvoiceDetailsData;
1255
+ invoice_items?: InvoiceItems[];
1256
+ shopsense_details?: CompanyInfo;
1257
+ };
1258
+ /** @returns {InvoiceDetailsData} */
1259
+ declare function InvoiceDetailsData(): InvoiceDetailsData;
1260
+ type InvoiceDetailsData = {
1261
+ /**
1262
+ * - Number of attempts made to collect the invoice payment
1263
+ */
1264
+ attemp?: number;
1265
+ /**
1266
+ * - Documents associated with the invoice
1267
+ */
1268
+ documents?: any;
1269
+ /**
1270
+ * - Payment details related to the invoice
1271
+ */
1272
+ payment?: any;
1273
+ period?: Period;
1274
+ client?: Client;
1275
+ /**
1276
+ * - Discount applied to the invoice
1277
+ */
1278
+ discount?: any;
1279
+ /**
1280
+ * - Taxation applied to the invoice
1281
+ */
1282
+ taxation?: any;
1283
+ /**
1284
+ * - Unique identifier for the invoice
1285
+ */
1286
+ _id?: string;
1287
+ /**
1288
+ * - Indicates if the invoice will
1289
+ * automatically advance to the next stage of collection
1290
+ */
1291
+ auto_advance?: boolean;
1292
+ /**
1293
+ * - Method of collection (e.g.,
1294
+ * charge_automatically, send_invoice)
1295
+ */
1296
+ collection_method?: string;
1297
+ /**
1298
+ * - Identifier for the subscriber associated
1299
+ * with the invoice
1300
+ */
1301
+ subscriber_id?: string;
1302
+ /**
1303
+ * - Currency in which the invoice is issued
1304
+ */
1305
+ currency?: string;
1306
+ /**
1307
+ * - URL to view the invoice pdf
1308
+ */
1309
+ invoice_url?: string;
1310
+ /**
1311
+ * - Invoice number
1312
+ */
1313
+ number?: string;
1314
+ /**
1315
+ * - Indicates if the invoice has been paid
1316
+ */
1317
+ paid?: boolean;
1318
+ /**
1319
+ * - Payment gateway data related to the invoice
1320
+ */
1321
+ pg_data?: any;
1322
+ /**
1323
+ * - Receipt number for the invoice payment
1324
+ */
1325
+ receipt_number?: string;
1326
+ /**
1327
+ * - Statement descriptor for the invoice
1328
+ */
1329
+ statement_descriptor?: string;
1330
+ /**
1331
+ * - Current status of the invoice (e.g., paid, open)
1332
+ */
1333
+ current_status?: string;
1334
+ /**
1335
+ * - Trail of status changes for the invoice
1336
+ */
1337
+ status_trail?: StatusTrail[];
1338
+ /**
1339
+ * - Subtotal amount of the invoice
1340
+ */
1341
+ subtotal?: number;
1342
+ /**
1343
+ * - Total amount of the invoice
1344
+ */
1345
+ total?: number;
1346
+ /**
1347
+ * - Previous settlement amount (if any)
1348
+ */
1349
+ old_settlement?: number;
1350
+ /**
1351
+ * - Credit balance applied to the invoice
1352
+ */
1353
+ credit_balance?: number;
1354
+ /**
1355
+ * - Subscription associated with the invoice
1356
+ */
1357
+ subscription?: string;
1358
+ /**
1359
+ * - Number of attempts made to pay the invoice
1360
+ */
1361
+ attempt?: number;
1362
+ /**
1363
+ * - Timestamp for the next action on the invoice
1364
+ */
1365
+ next_action_time?: string;
1366
+ /**
1367
+ * - Amount of credit notes applied to the invoice
1368
+ */
1369
+ credit_note_amount?: number;
1370
+ /**
1371
+ * - Timestamp when the invoice was created
1372
+ */
1373
+ created_at?: string;
1374
+ /**
1375
+ * - Timestamp when the invoice was last modified
1376
+ */
1377
+ modified_at?: string;
1378
+ /**
1379
+ * - Type of invoice (e.g., subscription, extension)
1380
+ */
1381
+ invoice_type?: string;
1382
+ };
1383
+ /** @returns {Client} */
1384
+ declare function Client(): Client;
1385
+ type Client = {
1386
+ /**
1387
+ * - Name of the client
1388
+ */
1389
+ name?: string;
1390
+ /**
1391
+ * - Email address of the client
1392
+ */
1393
+ email?: string;
1394
+ /**
1395
+ * - Phone number of the client
1396
+ */
1397
+ phone?: string;
1398
+ /**
1399
+ * - List of address lines for the client's address
1400
+ */
1401
+ address_lines?: string[];
1402
+ };
1403
+ /** @returns {Period} */
1404
+ declare function Period(): Period;
1405
+ type Period = {
1406
+ /**
1407
+ * - Start date of the period
1408
+ */
1409
+ start?: string;
1410
+ /**
1411
+ * - End date of the period
1412
+ */
1413
+ end?: string;
1414
+ };
1415
+ /** @returns {StatusTrail} */
1416
+ declare function StatusTrail(): StatusTrail;
1417
+ type StatusTrail = {
1418
+ /**
1419
+ * - The status value of the invoice at a particular
1420
+ * timestamp (e.g., open, paid, payment_due)
1421
+ */
1422
+ value?: string;
1423
+ /**
1424
+ * - The date and time when the status was
1425
+ * recorded, in ISO 8601 format
1426
+ */
1427
+ timestamp?: string;
1428
+ /**
1429
+ * - Unique identifier for the status trail entry
1430
+ */
1431
+ _id?: string;
1432
+ };
1433
+ /** @returns {PaymentCollectRes} */
1434
+ declare function PaymentCollectRes(): PaymentCollectRes;
1435
+ type PaymentCollectRes = {
1436
+ /**
1437
+ * - Unique identifier for the transaction
1438
+ */
1439
+ transaction_id?: string;
1440
+ /**
1441
+ * - Current status of the payment
1442
+ * collection (e.g., pending, completed, failed)
1443
+ */
1444
+ current_status?: string;
1445
+ };
1446
+ /** @returns {SubscriptionChargeRes} */
1447
+ declare function SubscriptionChargeRes(): SubscriptionChargeRes;
1448
+ type SubscriptionChargeRes = {
1449
+ /**
1450
+ * - Unique identifier for the subscription charge
1451
+ */
1452
+ _id?: string;
1453
+ /**
1454
+ * - ID of the product suit associated with
1455
+ * the charge
254
1456
  */
255
1457
  product_suit_id?: string;
256
1458
  /**
257
- * - Unique identifier for the entity (eg. extension)
1459
+ * - Unique identifier for the entity
258
1460
  */
259
1461
  entity_id?: string;
260
1462
  /**
261
- * - Specifies the type of entity related to
262
- * the operation, such as 'extension' or 'subscription'
1463
+ * - Type of entity (e.g., subscription, extension)
263
1464
  */
264
1465
  entity_type?: string;
265
1466
  /**
266
- * - The name of the extension plan
1467
+ * - Name of the subscription charge
267
1468
  */
268
1469
  name?: string;
269
1470
  /**
270
- * - Current status of the extension subscription
1471
+ * - Current status of the subscription charge
271
1472
  */
272
1473
  status?: string;
273
1474
  /**
274
- * - The number of days allocated for the trial period
1475
+ * - Number of trial days provided
275
1476
  */
276
1477
  trial_days?: number;
277
1478
  /**
@@ -283,8 +1484,7 @@ type SubscriptionChargeRes = {
283
1484
  */
284
1485
  cancelled_on?: string;
285
1486
  /**
286
- * - Indicates whether the operation or data is in
287
- * a test mode.
1487
+ * - Indicates if the charge is for testing purposes
288
1488
  */
289
1489
  is_test?: boolean;
290
1490
  /**
@@ -296,7 +1496,7 @@ type SubscriptionChargeRes = {
296
1496
  */
297
1497
  modified_at?: string;
298
1498
  /**
299
- * - The unique identifier of the company.
1499
+ * - Company id
300
1500
  */
301
1501
  company_id?: string;
302
1502
  /**
@@ -304,9 +1504,119 @@ type SubscriptionChargeRes = {
304
1504
  */
305
1505
  line_items?: any[];
306
1506
  };
307
- /** @returns {BadRequestSchema} */
308
- declare function BadRequestSchema(): BadRequestSchema;
309
- type BadRequestSchema = {
1507
+ /** @returns {PostDowngradeRes} */
1508
+ declare function PostDowngradeRes(): PostDowngradeRes;
1509
+ type PostDowngradeRes = {
1510
+ success?: boolean;
1511
+ data?: DowngradeRes;
1512
+ };
1513
+ /** @returns {DowngradeRes} */
1514
+ declare function DowngradeRes(): DowngradeRes;
1515
+ type DowngradeRes = {
1516
+ /**
1517
+ * - Unique identifier for the downgrade request
1518
+ */
1519
+ _id?: string;
1520
+ /**
1521
+ * - Current status of the downgrade request (e.g.,
1522
+ * pending, completed)
1523
+ */
1524
+ status?: string;
1525
+ /**
1526
+ * - Unique identifier for the subscriber
1527
+ * making the downgrade request
1528
+ */
1529
+ subscriber_id?: string;
1530
+ /**
1531
+ * - Indicates if the downgrade has been activated
1532
+ */
1533
+ activated?: boolean;
1534
+ /**
1535
+ * - Timestamp when the downgrade request was created
1536
+ */
1537
+ created_at?: string;
1538
+ /**
1539
+ * - Timestamp when the downgrade request was
1540
+ * last modified
1541
+ */
1542
+ modified_at?: string;
1543
+ /**
1544
+ * - ID of the plan to which the subscriber is downgrading
1545
+ */
1546
+ plan_id?: string;
1547
+ /**
1548
+ * - Reason provided for the downgrade request
1549
+ */
1550
+ reason?: string;
1551
+ /**
1552
+ * - ID of the user who initiated the
1553
+ * downgrade request
1554
+ */
1555
+ request_user_id?: string;
1556
+ /**
1557
+ * - ID of the subscription associated with
1558
+ * the downgrade request
1559
+ */
1560
+ subscription_id?: string;
1561
+ };
1562
+ /** @returns {PaymentStatusData} */
1563
+ declare function PaymentStatusData(): PaymentStatusData;
1564
+ type PaymentStatusData = {
1565
+ /**
1566
+ * - Unique identifier for the payment status data
1567
+ */
1568
+ _id?: string;
1569
+ /**
1570
+ * - Payment journey status, such as 'forward' or 'backward'
1571
+ */
1572
+ journey?: string;
1573
+ /**
1574
+ * - List of responses received from
1575
+ * webhooks related to the payment
1576
+ */
1577
+ webhook_response?: any[];
1578
+ /**
1579
+ * - Status of the payment as provided by
1580
+ * the aggregator (e.g., succeeded, failed)
1581
+ */
1582
+ aggregator_status?: string;
1583
+ /**
1584
+ * - Current status of the payment (e.g.,
1585
+ * paid, pending)
1586
+ */
1587
+ current_status?: string;
1588
+ /**
1589
+ * - Timestamp when the payment status data was created
1590
+ */
1591
+ created_at?: string;
1592
+ /**
1593
+ * - Timestamp when the payment status data was
1594
+ * last modified
1595
+ */
1596
+ modified_at?: string;
1597
+ /**
1598
+ * - Version key for the payment status data (typically
1599
+ * used for versioning in databases)
1600
+ */
1601
+ __v?: number;
1602
+ /**
1603
+ * - Unique identifier for the order
1604
+ * provided by the payment aggregator
1605
+ */
1606
+ aggregator_order_id?: string;
1607
+ };
1608
+ /** @returns {PaymentStatusResponse} */
1609
+ declare function PaymentStatusResponse(): PaymentStatusResponse;
1610
+ type PaymentStatusResponse = {
1611
+ /**
1612
+ * - The status of the payment.
1613
+ */
1614
+ status?: string;
1615
+ data?: PaymentStatusData;
1616
+ };
1617
+ /** @returns {BadRequest} */
1618
+ declare function BadRequest(): BadRequest;
1619
+ type BadRequest = {
310
1620
  /**
311
1621
  * - Failure message.
312
1622
  */
@@ -319,523 +1629,2552 @@ type ResourceNotFound = {
319
1629
  * - Resource not found with {id}
320
1630
  */
321
1631
  message?: string;
1632
+ code?: any;
1633
+ success?: any;
1634
+ };
1635
+ /** @returns {InternalServerError} */
1636
+ declare function InternalServerError(): InternalServerError;
1637
+ type InternalServerError = {
1638
+ /**
1639
+ * - Internal server error
1640
+ */
1641
+ message?: string;
1642
+ /**
1643
+ * - Error code
1644
+ */
1645
+ code?: string;
1646
+ };
1647
+ /** @returns {CheckValidityResponse} */
1648
+ declare function CheckValidityResponse(): CheckValidityResponse;
1649
+ type CheckValidityResponse = {
1650
+ /**
1651
+ * - Indicates whether the request is valid.
1652
+ */
1653
+ is_valid?: boolean;
1654
+ /**
1655
+ * - The amount of discount applicable.
1656
+ */
1657
+ discount_amount?: number;
1658
+ };
1659
+ /** @returns {PlanRecurring} */
1660
+ declare function PlanRecurring(): PlanRecurring;
1661
+ type PlanRecurring = {
1662
+ /**
1663
+ * - The interval at which the plan recurs.
1664
+ */
1665
+ interval?: string;
1666
+ interval_count?: number;
1667
+ };
1668
+ /** @returns {PlanMeta} */
1669
+ declare function PlanMeta(): PlanMeta;
1670
+ type PlanMeta = {
1671
+ /**
1672
+ * - Status of the seller associated with the plan.
1673
+ */
1674
+ seller_status?: string;
1675
+ /**
1676
+ * - Name of the company offering the plan.
1677
+ */
1678
+ company?: string;
1679
+ /**
1680
+ * - Display name for platform slug.
1681
+ */
1682
+ plan_platform_display_name?: string;
1683
+ /**
1684
+ * - Tags associated with the plan for
1685
+ * categorization or identification.
1686
+ */
1687
+ tags?: string[];
1688
+ };
1689
+ /** @returns {CountryRes} */
1690
+ declare function CountryRes(): CountryRes;
1691
+ type CountryRes = {
1692
+ /**
1693
+ * - Name of the country.
1694
+ */
1695
+ name?: string;
1696
+ /**
1697
+ * - Country code.
1698
+ */
1699
+ code?: string;
1700
+ };
1701
+ /** @returns {Plan} */
1702
+ declare function Plan(): Plan;
1703
+ type Plan = {
1704
+ /**
1705
+ * - List of fee components associated
1706
+ * with the plan. Each component may be represented as a string or an object.
1707
+ */
1708
+ fee_components?: any[];
1709
+ recurring?: PlanRecurring;
1710
+ /**
1711
+ * - Indicates whether the plan is a trial plan.
1712
+ */
1713
+ is_trial_plan?: boolean;
1714
+ /**
1715
+ * - Group or category of the plan.
1716
+ */
1717
+ plan_group?: string;
1718
+ /**
1719
+ * - List of tag lines or descriptions
1720
+ * associated with the plan.
1721
+ */
1722
+ tag_lines?: string[];
1723
+ /**
1724
+ * - Currency code used for the plan's pricing.
1725
+ */
1726
+ currency?: string;
1727
+ /**
1728
+ * - Identifier of the user or system that
1729
+ * approved the plan.
1730
+ */
1731
+ approved_by?: string;
1732
+ /**
1733
+ * - Indicates if the plan is currently active.
1734
+ */
1735
+ is_active?: boolean;
1736
+ /**
1737
+ * - Indicates if the plan is visible to users.
1738
+ */
1739
+ is_visible?: boolean;
1740
+ /**
1741
+ * - Number of days for the trial period, if applicable.
1742
+ */
1743
+ trial_period?: number;
1744
+ /**
1745
+ * - List of add-ons available for the plan.
1746
+ */
1747
+ addons?: string[];
1748
+ /**
1749
+ * - List of tags associated with the plan.
1750
+ */
1751
+ tags?: string[];
1752
+ /**
1753
+ * - Type of the plan (e.g., public, private).
1754
+ */
1755
+ type?: string;
1756
+ country?: CountryRes;
1757
+ /**
1758
+ * - Unique identifier for the plan.
1759
+ */
1760
+ _id?: string;
1761
+ /**
1762
+ * - Name of the plan.
1763
+ */
1764
+ name?: string;
1765
+ /**
1766
+ * - Description of the plan.
1767
+ */
1768
+ description?: string;
1769
+ /**
1770
+ * - Amount to be charged for the plan.
1771
+ */
1772
+ amount?: number;
1773
+ /**
1774
+ * - Identifier of the product suite to
1775
+ * which the plan belongs.
1776
+ */
1777
+ product_suite_id?: string;
1778
+ /**
1779
+ * - Timestamp when the plan was created.
1780
+ */
1781
+ created_at?: string;
1782
+ /**
1783
+ * - Timestamp when the plan was last modified.
1784
+ */
1785
+ modified_at?: string;
1786
+ taxation?: Taxation;
1787
+ one_time_fees?: OneTimeFees;
1788
+ credit_line?: CreditLine;
1789
+ /**
1790
+ * - Current status of the plan (e.g.,
1791
+ * active, inactive).
1792
+ */
1793
+ current_status?: string;
1794
+ /**
1795
+ * - Type of channel where the plan is offered
1796
+ * (e.g., ecomm, retail).
1797
+ */
1798
+ channel_type?: string;
1799
+ /**
1800
+ * - List of company IDs associated with the
1801
+ * plan. Can be null.
1802
+ */
1803
+ company_ids?: string[];
1804
+ /**
1805
+ * - Platform where the plan is available (e.g.,
1806
+ * web, mobile). Can be null.
1807
+ */
1808
+ platform?: string;
1809
+ /**
1810
+ * - Timestamp when the plan was activated.
1811
+ */
1812
+ activated_on?: string;
1813
+ meta?: PlanMeta;
1814
+ /**
1815
+ * - Identifier of the user who created the plan.
1816
+ */
1817
+ created_by?: string;
1818
+ };
1819
+ /** @returns {SubscriptionTrialPeriod} */
1820
+ declare function SubscriptionTrialPeriod(): SubscriptionTrialPeriod;
1821
+ type SubscriptionTrialPeriod = {
1822
+ /**
1823
+ * - The start date and time of the trial period.
1824
+ */
1825
+ start_date?: string;
1826
+ /**
1827
+ * - The end date and time of the trial period.
1828
+ */
1829
+ end_date?: string;
1830
+ };
1831
+ /** @returns {EntityChargePrice} */
1832
+ declare function EntityChargePrice(): EntityChargePrice;
1833
+ type EntityChargePrice = {
1834
+ /**
1835
+ * - The amount for the price. The minimum value is 1.
1836
+ */
1837
+ amount?: number;
1838
+ /**
1839
+ * - The currency code for the price
1840
+ */
1841
+ currency_code?: string;
1842
+ };
1843
+ /** @returns {OneTimeChargeItem} */
1844
+ declare function OneTimeChargeItem(): OneTimeChargeItem;
1845
+ type OneTimeChargeItem = {
1846
+ /**
1847
+ * - The name of the one-time charge item.
1848
+ */
1849
+ name?: string;
1850
+ /**
1851
+ * - The term or description of the charge.
1852
+ */
1853
+ term?: string;
1854
+ /**
1855
+ * - The type of pricing for the charge item.
1856
+ */
1857
+ pricing_type?: string;
1858
+ price?: EntityChargePrice;
1859
+ /**
1860
+ * - The maximum amount that can be charged
1861
+ * for this item, if applicable.
1862
+ */
1863
+ capped_amount?: number;
1864
+ /**
1865
+ * - Indicates whether the charge item is for
1866
+ * testing purposes.
1867
+ */
1868
+ is_test?: boolean;
1869
+ /**
1870
+ * - Additional metadata associated with the charge item.
1871
+ */
1872
+ metadata?: any;
1873
+ };
1874
+ /** @returns {CreateOneTimeCharge} */
1875
+ declare function CreateOneTimeCharge(): CreateOneTimeCharge;
1876
+ type CreateOneTimeCharge = {
1877
+ /**
1878
+ * - The name of the one-time charge to be created.
1879
+ */
1880
+ name?: string;
1881
+ charge?: OneTimeChargeItem;
1882
+ /**
1883
+ * - Indicates whether the charge creation is for
1884
+ * testing purposes.
1885
+ */
1886
+ is_test?: boolean;
1887
+ /**
1888
+ * - URL to which the user will be redirected
1889
+ * after creating the charge.
1890
+ */
1891
+ return_url?: string;
1892
+ };
1893
+ /** @returns {ChargeRecurring} */
1894
+ declare function ChargeRecurring(): ChargeRecurring;
1895
+ type ChargeRecurring = {
1896
+ interval?: string;
1897
+ interval_time?: number;
1898
+ };
1899
+ /** @returns {ChargeDetails} */
1900
+ declare function ChargeDetails(): ChargeDetails;
1901
+ type ChargeDetails = {
1902
+ /**
1903
+ * - Unique identifier for the charge.
1904
+ */
1905
+ _id?: string;
1906
+ /**
1907
+ * - The type of entity associated with the
1908
+ * charge (e.g., 'extension', 'subscription').
1909
+ */
1910
+ entity_type?: string;
1911
+ /**
1912
+ * - Unique identifier for the entity associated
1913
+ * with the charge.
1914
+ */
1915
+ entity_id?: string;
1916
+ /**
1917
+ * - The name of the charge.
1918
+ */
1919
+ name?: string;
1920
+ /**
1921
+ * - Description of the charge term.
1922
+ */
1923
+ term?: string;
1924
+ /**
1925
+ * - The type of charge (e.g., 'standalone',
1926
+ * 'recurring').
1927
+ */
1928
+ charge_type?: string;
1929
+ /**
1930
+ * - The pricing model for the charge (e.g.,
1931
+ * 'one_time', 'recurring').
1932
+ */
1933
+ pricing_type?: string;
1934
+ price?: EntityChargePrice;
1935
+ recurring?: ChargeRecurring;
1936
+ /**
1937
+ * - Current status of the charge.
1938
+ */
1939
+ status?: string;
1940
+ /**
1941
+ * - Maximum amount that can be charged, if applicable.
1942
+ */
1943
+ capped_amount?: number;
1944
+ /**
1945
+ * - Date and time when the charge was activated.
1946
+ */
1947
+ activated_on?: string;
1948
+ /**
1949
+ * - Date and time when the charge was cancelled.
1950
+ */
1951
+ cancelled_on?: string;
1952
+ /**
1953
+ * - Date and time when the charge was billed.
1954
+ */
1955
+ billing_date?: string;
1956
+ current_period?: SubscriptionTrialPeriod;
1957
+ /**
1958
+ * - Date and time when the charge details were
1959
+ * last modified.
1960
+ */
1961
+ modified_at?: string;
1962
+ /**
1963
+ * - Date and time when the charge was created.
1964
+ */
1965
+ created_at?: string;
1966
+ /**
1967
+ * - Indicates whether the charge is for testing purposes.
1968
+ */
1969
+ is_test?: boolean;
1970
+ /**
1971
+ * - Company id.
1972
+ */
1973
+ company_id?: string;
1974
+ /**
1975
+ * - Additional metadata associated with the charge.
1976
+ */
1977
+ meta?: any;
1978
+ /**
1979
+ * - Internal version key for the charge record.
1980
+ */
1981
+ __v?: number;
1982
+ };
1983
+ /** @returns {OneTimeChargeEntity} */
1984
+ declare function OneTimeChargeEntity(): OneTimeChargeEntity;
1985
+ type OneTimeChargeEntity = {
1986
+ /**
1987
+ * - Description of the charge term or usage.
1988
+ */
1989
+ term?: string;
1990
+ /**
1991
+ * - Type of the charge (e.g., 'subscription',
1992
+ * 'extension').
1993
+ */
1994
+ charge_type?: string;
1995
+ /**
1996
+ * - Maximum amount that can be charged. If
1997
+ * no cap, the value should be 0.
1998
+ */
1999
+ capped_amount?: number;
2000
+ /**
2001
+ * - Date when the charge was billed. Null if
2002
+ * not yet billed.
2003
+ */
2004
+ billing_date?: string;
2005
+ /**
2006
+ * - Date and time when the charge entity was created.
2007
+ */
2008
+ created_at?: string;
2009
+ /**
2010
+ * - Date and time when the charge entity was
2011
+ * last modified.
2012
+ */
2013
+ modified_at?: string;
2014
+ /**
2015
+ * - Internal version key for the charge record.
2016
+ */
2017
+ __v?: number;
2018
+ /**
2019
+ * - Unique identifier for the charge entity.
2020
+ */
2021
+ _id?: string;
2022
+ /**
2023
+ * - The name of the one-time charge.
2024
+ */
2025
+ name?: string;
2026
+ /**
2027
+ * - Current status of the charge (e.g., 'pending',
2028
+ * 'completed').
2029
+ */
2030
+ status?: string;
2031
+ /**
2032
+ * - Date and time when the charge was
2033
+ * activated. Null if not yet activated.
2034
+ */
2035
+ activated_on?: string;
2036
+ /**
2037
+ * - Date and time when the charge was
2038
+ * cancelled. Null if not cancelled.
2039
+ */
2040
+ cancelled_on?: string;
2041
+ /**
2042
+ * - Additional metadata associated with the charge.
2043
+ */
2044
+ metadata?: any;
2045
+ /**
2046
+ * - URL to redirect to after processing the charge.
2047
+ */
2048
+ return_url?: string;
2049
+ /**
2050
+ * - Indicates whether the charge is for testing purposes.
2051
+ */
2052
+ is_test?: boolean;
2053
+ /**
2054
+ * - Pricing model for the charge (e.g., 'one_time').
2055
+ */
2056
+ pricing_type?: string;
2057
+ /**
2058
+ * - Unique identifier for the subscriber
2059
+ * associated with the charge.
2060
+ */
2061
+ subscriber_id?: string;
2062
+ /**
2063
+ * - Type of the entity related to the charge
2064
+ * (e.g., 'subscription', 'user').
2065
+ */
2066
+ entity_type?: string;
2067
+ /**
2068
+ * - Unique identifier for the entity associated
2069
+ * with the charge.
2070
+ */
2071
+ entity_id?: string;
2072
+ /**
2073
+ * - Additional metadata associated with the charge.
2074
+ */
2075
+ meta?: any;
2076
+ price?: EntityChargePrice;
2077
+ };
2078
+ /** @returns {CreateOneTimeChargeResponse} */
2079
+ declare function CreateOneTimeChargeResponse(): CreateOneTimeChargeResponse;
2080
+ type CreateOneTimeChargeResponse = {
2081
+ charge?: Charge;
2082
+ /**
2083
+ * - URL to which users are redirected to
2084
+ * confirm or complete the payment or subscription process.
2085
+ */
2086
+ confirm_url?: string;
2087
+ };
2088
+ /** @returns {Charge} */
2089
+ declare function Charge(): Charge;
2090
+ type Charge = {
2091
+ final_charge?: OneTimeChargeEntity;
2092
+ };
2093
+ /** @returns {InvoiceDetailsStatusTrail} */
2094
+ declare function InvoiceDetailsStatusTrail(): InvoiceDetailsStatusTrail;
2095
+ type InvoiceDetailsStatusTrail = {
2096
+ /**
2097
+ * - Unique identifier for the status trail entry.
2098
+ */
2099
+ _id?: string;
2100
+ /**
2101
+ * - The status value of the invoice at a particular
2102
+ * point in time.
2103
+ */
2104
+ value?: string;
2105
+ /**
2106
+ * - The date and time when this status was recorded.
2107
+ */
2108
+ timestamp?: string;
2109
+ };
2110
+ /** @returns {InvoiceItemsPlanRecurring} */
2111
+ declare function InvoiceItemsPlanRecurring(): InvoiceItemsPlanRecurring;
2112
+ type InvoiceItemsPlanRecurring = {
2113
+ /**
2114
+ * - The interval at which the plan recurs (e.g.,
2115
+ * month, year).
2116
+ */
2117
+ interval?: string;
2118
+ /**
2119
+ * - The number of intervals for the recurring plan.
2120
+ */
2121
+ interval_count?: number;
2122
+ };
2123
+ /** @returns {InvoiceItemsPlan} */
2124
+ declare function InvoiceItemsPlan(): InvoiceItemsPlan;
2125
+ type InvoiceItemsPlan = {
2126
+ recurring?: InvoiceItemsPlanRecurring;
2127
+ /**
2128
+ * - Indicates whether the plan is a trial plan.
2129
+ */
2130
+ is_trial_plan?: boolean;
2131
+ /**
2132
+ * - Group or category to which the plan belongs.
2133
+ */
2134
+ plan_group?: string;
2135
+ /**
2136
+ * - List of tag lines or short descriptions
2137
+ * for the plan.
2138
+ */
2139
+ tag_lines?: string[];
2140
+ /**
2141
+ * - Currency code for the pricing of the plan.
2142
+ */
2143
+ currency?: string;
2144
+ /**
2145
+ * - Indicates whether the plan is currently active.
2146
+ */
2147
+ is_active?: boolean;
2148
+ /**
2149
+ * - Indicates whether the plan is visible to users.
2150
+ */
2151
+ is_visible?: boolean;
2152
+ /**
2153
+ * - The number of days for the trial period.
2154
+ */
2155
+ trial_period?: number;
2156
+ /**
2157
+ * - List of add-ons available with the plan.
2158
+ */
2159
+ addons?: string[];
2160
+ /**
2161
+ * - Tags associated with the plan for categorization.
2162
+ */
2163
+ tags?: string[];
2164
+ /**
2165
+ * - Type of the plan (e.g., public, private).
2166
+ */
2167
+ type?: string;
2168
+ /**
2169
+ * - Country for which plan is created
2170
+ */
2171
+ country?: string;
2172
+ /**
2173
+ * - Unique identifier for the plan.
2174
+ */
2175
+ _id?: string;
2176
+ /**
2177
+ * - Name of the plan.
2178
+ */
2179
+ name?: string;
2180
+ /**
2181
+ * - Detailed description of the plan.
2182
+ */
2183
+ description?: string;
2184
+ /**
2185
+ * - Price of the plan in the specified currency.
2186
+ */
2187
+ amount?: number;
2188
+ /**
2189
+ * - Identifier for the product suite to
2190
+ * which the plan belongs.
2191
+ */
2192
+ product_suite_id?: string;
2193
+ /**
2194
+ * - Timestamp when the plan was created.
2195
+ */
2196
+ created_at?: string;
2197
+ /**
2198
+ * - Timestamp when the plan was last modified.
2199
+ */
2200
+ modified_at?: string;
2201
+ };
2202
+ /** @returns {InvoiceItemsPeriod} */
2203
+ declare function InvoiceItemsPeriod(): InvoiceItemsPeriod;
2204
+ type InvoiceItemsPeriod = {
2205
+ /**
2206
+ * - Start date of the invoice period.
2207
+ */
2208
+ start?: string;
2209
+ /**
2210
+ * - End date of the invoice period.
2211
+ */
2212
+ end?: string;
2213
+ };
2214
+ /** @returns {InvoiceItems} */
2215
+ declare function InvoiceItems(): InvoiceItems;
2216
+ type InvoiceItems = {
2217
+ /**
2218
+ * - Unique identifier for the invoice item.
2219
+ */
2220
+ _id?: string;
2221
+ /**
2222
+ * - Currency for the amount.
2223
+ */
2224
+ currency?: string;
2225
+ plan?: InvoiceItemsPlan;
2226
+ /**
2227
+ * - Name of the invoice item.
2228
+ */
2229
+ name?: string;
2230
+ /**
2231
+ * - Number of units of the invoice item.
2232
+ */
2233
+ quantity?: number;
2234
+ /**
2235
+ * - Description of the invoice item.
2236
+ */
2237
+ description?: string;
2238
+ period?: InvoiceItemsPeriod;
2239
+ /**
2240
+ * - Amount per unit of the invoice item.
2241
+ */
2242
+ unit_amount?: number;
2243
+ /**
2244
+ * - Total amount for the invoice item.
2245
+ */
2246
+ amount?: number;
2247
+ /**
2248
+ * - Type of the invoice item (e.g., subscription, extension).
2249
+ */
2250
+ type?: string;
2251
+ /**
2252
+ * - Identifier for the invoice to which the item belongs.
2253
+ */
2254
+ invoice_id?: string;
2255
+ /**
2256
+ * - Timestamp when the invoice item was created.
2257
+ */
2258
+ created_at?: string;
2259
+ /**
2260
+ * - Timestamp when the invoice item was last modified.
2261
+ */
2262
+ modified_at?: string;
2263
+ };
2264
+ /** @returns {InvoicesDataClient} */
2265
+ declare function InvoicesDataClient(): InvoicesDataClient;
2266
+ type InvoicesDataClient = {
2267
+ /**
2268
+ * - Name of the client.
2269
+ */
2270
+ name?: string;
2271
+ /**
2272
+ * - Email address of the client.
2273
+ */
2274
+ email?: string;
2275
+ /**
2276
+ * - Phone number of the client.
2277
+ */
2278
+ phone?: string;
2279
+ /**
2280
+ * - Array of address lines for the client’s address.
2281
+ */
2282
+ address_lines?: string[];
2283
+ };
2284
+ /** @returns {InvoicesDataPeriod} */
2285
+ declare function InvoicesDataPeriod(): InvoicesDataPeriod;
2286
+ type InvoicesDataPeriod = {
2287
+ /**
2288
+ * - The start date and time of the invoice period.
2289
+ */
2290
+ start?: string;
2291
+ /**
2292
+ * - The end date and time of the invoice period.
2293
+ */
2294
+ end?: string;
2295
+ };
2296
+ /** @returns {InvoicesDataPaymentMethod} */
2297
+ declare function InvoicesDataPaymentMethod(): InvoicesDataPaymentMethod;
2298
+ type InvoicesDataPaymentMethod = {
2299
+ /**
2300
+ * - Payment gateway-specific payment
2301
+ * method identifier. Nullable if not applicable.
2302
+ */
2303
+ pg_payment_method_id?: string;
2304
+ };
2305
+ /** @returns {InvoicesData} */
2306
+ declare function InvoicesData(): InvoicesData;
2307
+ type InvoicesData = {
2308
+ /**
2309
+ * - Unique identifier for the invoice.
2310
+ */
2311
+ _id?: string;
2312
+ /**
2313
+ * - Associated documents related to the invoice.
2314
+ */
2315
+ documents?: any;
2316
+ /**
2317
+ * - Payment details for the invoice.
2318
+ */
2319
+ payment?: any;
2320
+ /**
2321
+ * - Previous settlement amount, if applicable.
2322
+ */
2323
+ old_settlement?: number;
2324
+ /**
2325
+ * - Remaining credit balance applied to the
2326
+ * invoice, if any.
2327
+ */
2328
+ credit_balance?: number;
2329
+ /**
2330
+ * - Details of any discounts applied to the invoice.
2331
+ */
2332
+ discount?: any;
2333
+ /**
2334
+ * - Taxation details associated with the invoice.
2335
+ */
2336
+ taxation?: any;
2337
+ /**
2338
+ * - Amount covered by credit notes, if any.
2339
+ */
2340
+ credit_note_amount?: number;
2341
+ client?: InvoicesDataClient;
2342
+ /**
2343
+ * - Indicates if the invoice should be
2344
+ * auto-advanced in the billing process.
2345
+ */
2346
+ auto_advance?: boolean;
2347
+ /**
2348
+ * - Currency code used for the invoice amount.
2349
+ */
2350
+ currency?: string;
2351
+ /**
2352
+ * - Indicates if the invoice has been paid.
2353
+ */
2354
+ paid?: boolean;
2355
+ /**
2356
+ * - Number of payment attempts made for the invoice.
2357
+ */
2358
+ attemp?: number;
2359
+ /**
2360
+ * - Method used to collect payment for
2361
+ * the invoice.
2362
+ */
2363
+ collection_method?: string;
2364
+ /**
2365
+ * - Identifier for the subscriber associated
2366
+ * with the invoice.
2367
+ */
2368
+ subscriber_id?: string;
2369
+ /**
2370
+ * - URL to view or download the invoice.
2371
+ * "null" if not available.
2372
+ */
2373
+ invoice_url?: string;
2374
+ /**
2375
+ * - Unique invoice number.
2376
+ */
2377
+ number?: string;
2378
+ /**
2379
+ * - Payment gateway-related data for the invoice.
2380
+ */
2381
+ pg_data?: any;
2382
+ period?: InvoicesDataPeriod;
2383
+ /**
2384
+ * - Receipt number for the invoice payment.
2385
+ */
2386
+ receipt_number?: string;
2387
+ /**
2388
+ * - Descriptor that appears on the
2389
+ * client's statement for the invoice.
2390
+ */
2391
+ statement_descriptor?: string;
2392
+ /**
2393
+ * - Current status of the invoice (e.g.,
2394
+ * paid, pending).
2395
+ */
2396
+ current_status?: string;
2397
+ /**
2398
+ * - History of status
2399
+ * changes for the invoice.
2400
+ */
2401
+ status_trail?: InvoiceDetailsStatusTrail[];
2402
+ /**
2403
+ * - Subtotal amount before taxes and discounts.
2404
+ */
2405
+ subtotal?: number;
2406
+ /**
2407
+ * - Total amount including taxes and discounts.
2408
+ */
2409
+ total?: number;
2410
+ /**
2411
+ * - Identifier for the subscription
2412
+ * associated with the invoice.
2413
+ */
2414
+ subscription?: string;
2415
+ /**
2416
+ * - Scheduled time for the next action
2417
+ * related to the invoice.
2418
+ */
2419
+ next_action_time?: string;
2420
+ /**
2421
+ * - Timestamp when the invoice was created.
2422
+ */
2423
+ created_at?: string;
2424
+ /**
2425
+ * - Timestamp when the invoice was last modified.
2426
+ */
2427
+ modified_at?: string;
2428
+ /**
2429
+ * - Unique hash identifier for the invoice.
2430
+ */
2431
+ hash_identifier?: string;
2432
+ payment_method?: InvoicesDataPaymentMethod;
2433
+ /**
2434
+ * - List of items included in the invoice.
2435
+ */
2436
+ invoice_items?: InvoiceItems[];
2437
+ /**
2438
+ * - Type of invoice (e.g., extension, subscription).
2439
+ */
2440
+ invoice_type?: string;
2441
+ };
2442
+ /** @returns {Invoices} */
2443
+ declare function Invoices(): Invoices;
2444
+ type Invoices = {
2445
+ data?: InvoicesData[];
2446
+ /**
2447
+ * - Index of the first item in the results.
2448
+ */
2449
+ start?: number;
2450
+ /**
2451
+ * - Index of the last item in the results.
2452
+ */
2453
+ end?: number;
2454
+ /**
2455
+ * - Number of items per page.
2456
+ */
2457
+ limit?: number;
2458
+ /**
2459
+ * - Page number of the results.
2460
+ */
2461
+ page?: number;
2462
+ /**
2463
+ * - Total number of items available.
2464
+ */
2465
+ total?: number;
2466
+ };
2467
+ /** @returns {Phone} */
2468
+ declare function Phone(): Phone;
2469
+ type Phone = {
2470
+ /**
2471
+ * - The phone number of the contact.
2472
+ */
2473
+ phone_number?: string;
2474
+ /**
2475
+ * - The country code of the phone number.
2476
+ */
2477
+ phone_country_code?: string;
2478
+ };
2479
+ /** @returns {SubscriptionBillingAddress} */
2480
+ declare function SubscriptionBillingAddress(): SubscriptionBillingAddress;
2481
+ type SubscriptionBillingAddress = {
2482
+ /**
2483
+ * - Name of the country for the billing address.
2484
+ */
2485
+ country?: string;
2486
+ /**
2487
+ * - ISO country code for the billing address.
2488
+ */
2489
+ country_code?: string;
2490
+ /**
2491
+ * - State or province for the billing address.
2492
+ */
2493
+ state?: string;
2494
+ /**
2495
+ * - City for the billing address.
2496
+ */
2497
+ city?: string;
2498
+ /**
2499
+ * - First line of the street address.
2500
+ */
2501
+ line1?: string;
2502
+ /**
2503
+ * - Second line of the street address (optional).
2504
+ */
2505
+ line2?: string;
2506
+ /**
2507
+ * - Postal or ZIP code for the billing address.
2508
+ */
2509
+ postal_code?: string;
2510
+ };
2511
+ /** @returns {SubscriptionCustomer} */
2512
+ declare function SubscriptionCustomer(): SubscriptionCustomer;
2513
+ type SubscriptionCustomer = {
2514
+ phone?: Phone;
2515
+ billing_address?: SubscriptionBillingAddress;
2516
+ /**
2517
+ * - Unique identifier for the subscriber.
2518
+ */
2519
+ _id?: string;
2520
+ /**
2521
+ * - Identifier specific to the company.
2522
+ */
2523
+ unique_id?: string;
2524
+ /**
2525
+ * - Type of the customer (e.g., developer, company).
2526
+ */
2527
+ type?: string;
2528
+ /**
2529
+ * - Name of the customer.
2530
+ */
2531
+ name?: string;
2532
+ /**
2533
+ * - Email address of the customer.
2534
+ */
2535
+ email?: string;
2536
+ /**
2537
+ * - Timestamp when the customer record was created.
2538
+ */
2539
+ created_at?: string;
2540
+ /**
2541
+ * - Timestamp when the customer record was
2542
+ * last modified.
2543
+ */
2544
+ modified_at?: string;
2545
+ /**
2546
+ * - Additional data related to the customer.
2547
+ */
2548
+ data?: any;
2549
+ /**
2550
+ * - Associated documents related to the customer.
2551
+ */
2552
+ documents?: any;
2553
+ /**
2554
+ * - Indicates whether the customer has given consent.
2555
+ */
2556
+ consent?: boolean;
2557
+ /**
2558
+ * - Indicates whether the customer has opted in for
2559
+ * communications.
2560
+ */
2561
+ comms?: boolean;
2562
+ /**
2563
+ * - Current credit balance for the customer, if any.
2564
+ */
2565
+ credit_balance?: number;
2566
+ business_country_info?: BusinessCountryInfo;
2567
+ };
2568
+ /** @returns {SubscriptionCustomerCreate} */
2569
+ declare function SubscriptionCustomerCreate(): SubscriptionCustomerCreate;
2570
+ type SubscriptionCustomerCreate = {
2571
+ phone?: Phone;
2572
+ billing_address?: SubscriptionBillingAddress;
2573
+ /**
2574
+ * - Company id for the customer, generated by the client.
2575
+ */
2576
+ unique_id?: string;
2577
+ /**
2578
+ * - Type of company
2579
+ */
2580
+ type?: string;
2581
+ /**
2582
+ * - Name of the company
2583
+ */
2584
+ name?: string;
2585
+ /**
2586
+ * - Email address of the company
2587
+ */
2588
+ email?: string;
2589
+ };
2590
+ /** @returns {SubscriptionCurrentPeriod} */
2591
+ declare function SubscriptionCurrentPeriod(): SubscriptionCurrentPeriod;
2592
+ type SubscriptionCurrentPeriod = {
2593
+ /**
2594
+ * - The start date and time of the current
2595
+ * subscription period.
2596
+ */
2597
+ start?: string;
2598
+ /**
2599
+ * - The end date and time of the current subscription period.
2600
+ */
2601
+ end?: string;
2602
+ };
2603
+ /** @returns {SubscriptionPauseCollection} */
2604
+ declare function SubscriptionPauseCollection(): SubscriptionPauseCollection;
2605
+ type SubscriptionPauseCollection = {
2606
+ /**
2607
+ * - Defines the behavior of the subscription when
2608
+ * it is paused. Possible values could include `keep_as_draft` or `cancel`.
2609
+ */
2610
+ behavior?: string;
2611
+ /**
2612
+ * - The date and time when the paused
2613
+ * subscription is scheduled to resume.
2614
+ */
2615
+ resume_at?: string;
2616
+ };
2617
+ /** @returns {SubscriptionTrial} */
2618
+ declare function SubscriptionTrial(): SubscriptionTrial;
2619
+ type SubscriptionTrial = {
2620
+ /**
2621
+ * - The start date and time of the subscription trial period.
2622
+ */
2623
+ start?: string;
2624
+ /**
2625
+ * - The end date and time of the subscription trial period.
2626
+ */
2627
+ end?: string;
2628
+ };
2629
+ /** @returns {SubscriptionInvoiceSettings} */
2630
+ declare function SubscriptionInvoiceSettings(): SubscriptionInvoiceSettings;
2631
+ type SubscriptionInvoiceSettings = {
2632
+ /**
2633
+ * - Indicates whether invoices are
2634
+ * automatically generated for the subscription.
2635
+ */
2636
+ generation?: boolean;
2637
+ /**
2638
+ * - Indicates whether charging is enabled for
2639
+ * the subscription. This setting determines if charges are applied based on
2640
+ * the invoice settings.
2641
+ */
2642
+ charging?: boolean;
2643
+ };
2644
+ /** @returns {Subscription} */
2645
+ declare function Subscription(): Subscription;
2646
+ type Subscription = {
2647
+ /**
2648
+ * - Additional metadata related to the subscription.
2649
+ */
2650
+ meta?: any;
2651
+ current_period?: SubscriptionCurrentPeriod;
2652
+ pause_collection?: SubscriptionPauseCollection;
2653
+ trial?: SubscriptionTrial;
2654
+ invoice_settings?: SubscriptionInvoiceSettings;
2655
+ /**
2656
+ * - Indicates whether the subscription is
2657
+ * currently active.
2658
+ */
2659
+ is_active?: boolean;
2660
+ /**
2661
+ * - Indicates whether the
2662
+ * subscription will be canceled at the end of the current period.
2663
+ */
2664
+ cancel_at_period_end?: boolean;
2665
+ /**
2666
+ * - Unique identifier for the subscription.
2667
+ */
2668
+ _id?: string;
2669
+ /**
2670
+ * - Unique identifier for the subscriber
2671
+ * associated with the subscription.
2672
+ */
2673
+ subscriber_id?: string;
2674
+ /**
2675
+ * - Unique identifier for the plan associated with
2676
+ * the subscription.
2677
+ */
2678
+ plan_id?: string;
2679
+ /**
2680
+ * - Unique identifier for the product
2681
+ * suite associated with the subscription.
2682
+ */
2683
+ product_suite_id?: string;
2684
+ /**
2685
+ * - Indicates whether the
2686
+ * subscriber is eligible to change their subscription plan.
2687
+ */
2688
+ is_eligible_for_plan_change?: boolean;
2689
+ plan_data?: Plan;
2690
+ /**
2691
+ * - The current status of the subscription
2692
+ * (e.g., active, canceled).
2693
+ */
2694
+ current_status?: string;
2695
+ /**
2696
+ * - Method used to collect payments for
2697
+ * the subscription (e.g., charge_automatically, invoice).
2698
+ */
2699
+ collection_method?: string;
2700
+ /**
2701
+ * - The date and time when the subscription was created.
2702
+ */
2703
+ created_at?: string;
2704
+ /**
2705
+ * - The date and time when the subscription
2706
+ * was last modified.
2707
+ */
2708
+ modified_at?: string;
2709
+ /**
2710
+ * - Unique identifier for the most recent
2711
+ * invoice related to the subscription.
2712
+ */
2713
+ latest_invoice?: string;
2714
+ /**
2715
+ * - Ordering channel for which the
2716
+ * subscription was created (e.g., ecomm, fynd).
2717
+ */
2718
+ channel_type?: string;
2719
+ /**
2720
+ * - Indicates whether the subscription is
2721
+ * currently freezed.
2722
+ */
2723
+ freezed?: boolean;
2724
+ /**
2725
+ * - The date and time when the subscription is
2726
+ * scheduled to be canceled, if applicable.
2727
+ */
2728
+ cancel_at?: string;
2729
+ /**
2730
+ * - The date and time when the subscription
2731
+ * was actually canceled.
2732
+ */
2733
+ canceled_at?: string;
2734
+ };
2735
+ /** @returns {SubscriptionStatus} */
2736
+ declare function SubscriptionStatus(): SubscriptionStatus;
2737
+ type SubscriptionStatus = {
2738
+ /**
2739
+ * - Indicates whether the subscription status
2740
+ * is enabled.
2741
+ */
2742
+ is_enabled?: boolean;
2743
+ subscription?: Subscription;
2744
+ latest_invoice?: InvoicesData;
2745
+ next_plan?: Plan;
2746
+ /**
2747
+ * - List of current
2748
+ * subscriptions associated with the user.
2749
+ */
2750
+ current_subscriptions?: Subscription[];
2751
+ /**
2752
+ * - The amount mandated for the
2753
+ * subscription or service.
2754
+ */
2755
+ mandate_amount?: number;
2756
+ /**
2757
+ * - A message providing additional context or
2758
+ * information about the subscription status.
2759
+ */
2760
+ message?: string;
2761
+ };
2762
+ /** @returns {SubscriptionLimitApplication} */
2763
+ declare function SubscriptionLimitApplication(): SubscriptionLimitApplication;
2764
+ type SubscriptionLimitApplication = {
2765
+ /**
2766
+ * - Indicates whether the application limit is enabled.
2767
+ */
2768
+ enabled?: boolean;
2769
+ /**
2770
+ * - The maximum number of applications allowed.
2771
+ */
2772
+ hard_limit?: number;
2773
+ /**
2774
+ * - The soft limit of applications allowed,
2775
+ * typically a warning threshold before reaching the hard limit.
2776
+ */
2777
+ soft_limit?: number;
2778
+ };
2779
+ /** @returns {SubscriptionLimitMarketplace} */
2780
+ declare function SubscriptionLimitMarketplace(): SubscriptionLimitMarketplace;
2781
+ type SubscriptionLimitMarketplace = {
2782
+ /**
2783
+ * - Indicates whether the marketplace limit is enabled.
2784
+ */
2785
+ enabled?: boolean;
2786
+ };
2787
+ /** @returns {SubscriptionLimitOtherPlatform} */
2788
+ declare function SubscriptionLimitOtherPlatform(): SubscriptionLimitOtherPlatform;
2789
+ type SubscriptionLimitOtherPlatform = {
2790
+ /**
2791
+ * - Indicates whether the other platform limit is enabled.
2792
+ */
2793
+ enabled?: boolean;
2794
+ };
2795
+ /** @returns {SubscriptionLimitTeam} */
2796
+ declare function SubscriptionLimitTeam(): SubscriptionLimitTeam;
2797
+ type SubscriptionLimitTeam = {
2798
+ /**
2799
+ * - The limit for team-related features.
2800
+ */
2801
+ limit?: number;
2802
+ };
2803
+ /** @returns {SubscriptionLimitProducts} */
2804
+ declare function SubscriptionLimitProducts(): SubscriptionLimitProducts;
2805
+ type SubscriptionLimitProducts = {
2806
+ /**
2807
+ * - Indicates whether bulk product limits are enabled.
2808
+ */
2809
+ bulk?: boolean;
2810
+ /**
2811
+ * - The limit for products.
2812
+ */
2813
+ limit?: number;
2814
+ };
2815
+ /** @returns {SubscriptionLimitExtensions} */
2816
+ declare function SubscriptionLimitExtensions(): SubscriptionLimitExtensions;
2817
+ type SubscriptionLimitExtensions = {
2818
+ /**
2819
+ * - Indicates whether the extensions limit is enabled.
2820
+ */
2821
+ enabled?: boolean;
2822
+ /**
2823
+ * - The limit for extensions.
2824
+ */
2825
+ limit?: number;
2826
+ };
2827
+ /** @returns {SubscriptionLimitIntegrations} */
2828
+ declare function SubscriptionLimitIntegrations(): SubscriptionLimitIntegrations;
2829
+ type SubscriptionLimitIntegrations = {
2830
+ /**
2831
+ * - Indicates whether the integrations limit is enabled.
2832
+ */
2833
+ enabled?: boolean;
2834
+ /**
2835
+ * - The limit for integrations. A value of `-1`
2836
+ * usually indicates no limit.
2837
+ */
2838
+ limit?: number;
2839
+ };
2840
+ /** @returns {SubscriptionLimit} */
2841
+ declare function SubscriptionLimit(): SubscriptionLimit;
2842
+ type SubscriptionLimit = {
2843
+ application?: SubscriptionLimitApplication;
2844
+ marketplace?: SubscriptionLimitMarketplace;
2845
+ other_platform?: SubscriptionLimitOtherPlatform;
2846
+ team?: SubscriptionLimitTeam;
2847
+ products?: SubscriptionLimitProducts;
2848
+ extensions?: SubscriptionLimitExtensions;
2849
+ integrations?: SubscriptionLimitIntegrations;
2850
+ /**
2851
+ * - Indicates whether the subscription is
2852
+ * for a trial plan.
2853
+ */
2854
+ is_trial_plan?: boolean;
2855
+ };
2856
+ /** @returns {IntentReq} */
2857
+ declare function IntentReq(): IntentReq;
2858
+ type IntentReq = {
2859
+ /**
2860
+ * - A unique identifier for the
2861
+ * external resource, used to track and reference the request like company id.
2862
+ */
2863
+ unique_external_id?: string;
2864
+ /**
2865
+ * - The identifier for the plan associated with the intent.
2866
+ */
2867
+ plan_id?: string;
2868
+ };
2869
+ /** @returns {PutIntentReq} */
2870
+ declare function PutIntentReq(): PutIntentReq;
2871
+ type PutIntentReq = {
2872
+ /**
2873
+ * - A unique identifier for the
2874
+ * external resource, used to track and reference the request like company id.
2875
+ */
2876
+ unique_external_id?: string;
2877
+ /**
2878
+ * - The ID of the setup intent for payment
2879
+ * methods, if applicable.
2880
+ */
2881
+ setup_intent_id?: string;
2882
+ /**
2883
+ * - The ID of the payment method to use
2884
+ * for the intent.
2885
+ */
2886
+ payment_method_id?: string;
2887
+ /**
2888
+ * - Indicates whether the payment method
2889
+ * should be set as default.
2890
+ */
2891
+ set_default?: boolean;
2892
+ };
2893
+ /** @returns {SubscriptionActivateReq} */
2894
+ declare function SubscriptionActivateReq(): SubscriptionActivateReq;
2895
+ type SubscriptionActivateReq = {
2896
+ /**
2897
+ * - A unique identifier for the subscription
2898
+ * activation request.
2899
+ */
2900
+ unique_id?: string;
2901
+ /**
2902
+ * - The type of subscriber account, e.g., company or developer.
2903
+ */
2904
+ type?: string;
2905
+ /**
2906
+ * - The product suite associated with the
2907
+ * subscription.
2908
+ */
2909
+ product_suite?: string;
2910
+ /**
2911
+ * - The ID of the plan to be activated for the subscription.
2912
+ */
2913
+ plan_id?: string;
2914
+ /**
2915
+ * - The payment method ID to be used for
2916
+ * this subscription.
2917
+ */
2918
+ payment_method?: string;
2919
+ /**
2920
+ * - The ID of the subscription to be
2921
+ * activated, if applicable.
2922
+ */
2923
+ subscription_id?: string;
2924
+ /**
2925
+ * - A coupon code for applying discounts, if applicable.
2926
+ */
2927
+ coupon?: string;
2928
+ /**
2929
+ * - Additional metadata related to the subscription
2930
+ * activation request.
2931
+ */
2932
+ meta?: any;
2933
+ };
2934
+ /** @returns {SubscriptionActivateRes} */
2935
+ declare function SubscriptionActivateRes(): SubscriptionActivateRes;
2936
+ type SubscriptionActivateRes = {
2937
+ /**
2938
+ * - Indicates whether the subscription activation
2939
+ * was successful.
2940
+ */
2941
+ success?: boolean;
2942
+ data?: Subscription;
2943
+ };
2944
+ /** @returns {CancelSubscriptionReq} */
2945
+ declare function CancelSubscriptionReq(): CancelSubscriptionReq;
2946
+ type CancelSubscriptionReq = {
2947
+ /**
2948
+ * - A unique identifier for the subscription
2949
+ * cancellation request like company id.
2950
+ */
2951
+ unique_id?: string;
2952
+ /**
2953
+ * - The type of subscription to be canceled, e.g.,
2954
+ * company or developer.
2955
+ */
2956
+ type?: string;
2957
+ /**
2958
+ * - The product suite associated with the
2959
+ * subscription to be canceled.
2960
+ */
2961
+ product_suite?: string;
2962
+ /**
2963
+ * - The ID of the subscription to be canceled.
2964
+ */
2965
+ subscription_id?: string;
2966
+ };
2967
+ /** @returns {CancelSubscriptionRes} */
2968
+ declare function CancelSubscriptionRes(): CancelSubscriptionRes;
2969
+ type CancelSubscriptionRes = {
2970
+ success?: boolean;
2971
+ data?: Subscription;
2972
+ };
2973
+ /** @returns {PlanStatusUpdateReq} */
2974
+ declare function PlanStatusUpdateReq(): PlanStatusUpdateReq;
2975
+ type PlanStatusUpdateReq = {
2976
+ /**
2977
+ * - The identifier of the plan whose status is
2978
+ * being updated.
2979
+ */
2980
+ plan_id?: string;
2981
+ /**
2982
+ * - The reason for updating the plan status.
2983
+ */
2984
+ reason?: string;
2985
+ /**
2986
+ * - The new status of the plan as set by the
2987
+ * seller (e.g., approved, rejected, pending).
2988
+ */
2989
+ seller_status?: string;
2990
+ };
2991
+ /** @returns {SubscribePlan} */
2992
+ declare function SubscribePlan(): SubscribePlan;
2993
+ type SubscribePlan = {
2994
+ /**
2995
+ * - The type of entity for which the plan is
2996
+ * being subscribed (e.g., subscription, extension).
2997
+ */
2998
+ entity_type?: string;
2999
+ /**
3000
+ * - The method of collection for the
3001
+ * subscription (e.g., online, offline).
3002
+ */
3003
+ collection_type?: string;
3004
+ /**
3005
+ * - The identifier of the plan to subscribe to.
3006
+ */
3007
+ plan_id?: string;
3008
+ /**
3009
+ * - URL to which the payment result will be sent
3010
+ */
3011
+ callback_url?: string;
3012
+ meta?: Meta;
3013
+ };
3014
+ /** @returns {Meta} */
3015
+ declare function Meta(): Meta;
3016
+ type Meta = {
3017
+ /**
3018
+ * - Indicates whether the subscription is being
3019
+ * initiated.
3020
+ */
3021
+ subscribe?: boolean;
3022
+ /**
3023
+ * - Indicates if the plan is a custom plan
3024
+ * rather than a standard one.
3025
+ */
3026
+ is_custom_plan?: boolean;
3027
+ /**
3028
+ * - Indicates whether this subscription
3029
+ * is an upgrade from a previous plan.
3030
+ */
3031
+ is_plan_upgrade?: boolean;
3032
+ };
3033
+ /** @returns {SubscribePlanRes} */
3034
+ declare function SubscribePlanRes(): SubscribePlanRes;
3035
+ type SubscribePlanRes = {
3036
+ /**
3037
+ * - The URL to which the user should be
3038
+ * redirected after completion of subscription process.
3039
+ */
3040
+ redirect_url?: string;
3041
+ /**
3042
+ * - The unique identifier for the
3043
+ * subscription transaction.
3044
+ */
3045
+ transaction_id?: string;
3046
+ /**
3047
+ * - The current status of the subscription
3048
+ * process (e.g., initiated, success, failed).
3049
+ */
3050
+ current_status?: string;
3051
+ meta?: Meta;
3052
+ };
3053
+ /** @returns {EntityDetail} */
3054
+ declare function EntityDetail(): EntityDetail;
3055
+ type EntityDetail = {
3056
+ /**
3057
+ * - Specifies the type of entity (e.g., subscription, user).
3058
+ */
3059
+ entity?: string;
3060
+ item?: Subscription;
3061
+ };
3062
+ /** @returns {PaymentOptions} */
3063
+ declare function PaymentOptions(): PaymentOptions;
3064
+ type PaymentOptions = {
3065
+ /**
3066
+ * - Unique identifier for the payment option.
3067
+ */
3068
+ _id?: string;
3069
+ /**
3070
+ * - Name of the payment option.
3071
+ */
3072
+ name?: string;
3073
+ /**
3074
+ * - Brief description of the payment option's
3075
+ * functionality.
3076
+ */
3077
+ description?: string;
3078
+ /**
3079
+ * - URL of the payment option's logo like upi logo.
3080
+ */
3081
+ logo?: string;
3082
+ /**
3083
+ * - Unique identifier for the payment aggregator.
3084
+ */
3085
+ aggregator_id?: string;
3086
+ /**
3087
+ * - Identifier for the payment aggregator system.
3088
+ */
3089
+ aggregator?: string;
3090
+ /**
3091
+ * - Date and time when the payment option was created.
3092
+ */
3093
+ created_at?: string;
3094
+ /**
3095
+ * - Date and time when the payment option was
3096
+ * last modified.
3097
+ */
3098
+ modified_at?: string;
3099
+ /**
3100
+ * - Version key for document revision control.
3101
+ */
3102
+ __v?: number;
3103
+ };
3104
+ /** @returns {VerifyPaymentReq} */
3105
+ declare function VerifyPaymentReq(): VerifyPaymentReq;
3106
+ type VerifyPaymentReq = {
3107
+ /**
3108
+ * - Unique identifier for the Razorpay payment.
3109
+ */
3110
+ razorpay_payment_id?: string;
3111
+ /**
3112
+ * - Unique identifier for the Razorpay order.
3113
+ */
3114
+ razorpay_order_id?: string;
3115
+ /**
3116
+ * - Signature generated by Razorpay to
3117
+ * verify the payment.
3118
+ */
3119
+ razorpay_signature?: string;
3120
+ /**
3121
+ * - HTTP status code of the payment
3122
+ * verification response.
3123
+ */
3124
+ status_code?: number;
3125
+ /**
3126
+ * - The payment provider used for the transaction.
3127
+ */
3128
+ provider_type?: string;
3129
+ };
3130
+ /** @returns {Documents} */
3131
+ declare function Documents(): Documents;
3132
+ type Documents = {
3133
+ /**
3134
+ * - Permanent Account Number (PAN) used for tax purposes.
3135
+ */
3136
+ pan?: string;
3137
+ /**
3138
+ * - Goods and Services Tax (GST) number for business taxation.
3139
+ */
3140
+ gst?: string;
3141
+ };
3142
+ /** @returns {BillingAddress} */
3143
+ declare function BillingAddress(): BillingAddress;
3144
+ type BillingAddress = {
3145
+ /**
3146
+ * - The country where the billing address is located.
3147
+ */
3148
+ country?: string;
3149
+ /**
3150
+ * - The state or region within the country.
3151
+ */
3152
+ state?: string;
3153
+ /**
3154
+ * - The city of the billing address.
3155
+ */
3156
+ city?: string;
3157
+ /**
3158
+ * - The first line of the billing address.
3159
+ */
3160
+ line1?: string;
3161
+ /**
3162
+ * - The second line of the billing address (if applicable).
3163
+ */
3164
+ line2?: string;
3165
+ /**
3166
+ * - The ZIP code of the billing address.
3167
+ */
3168
+ postal_code?: string;
3169
+ /**
3170
+ * - ISO country code for the country of the
3171
+ * billing address.
3172
+ */
3173
+ country_code?: string;
3174
+ };
3175
+ /** @returns {Currency} */
3176
+ declare function Currency(): Currency;
3177
+ type Currency = {
3178
+ /**
3179
+ * - Currency code as per ISO 4217.
3180
+ */
3181
+ code?: string;
3182
+ /**
3183
+ * - Symbol representing the currency.
3184
+ */
3185
+ symbol?: string;
3186
+ /**
3187
+ * - Full name of the currency.
3188
+ */
3189
+ name?: string;
3190
+ };
3191
+ /** @returns {BusinessCountryInfo} */
3192
+ declare function BusinessCountryInfo(): BusinessCountryInfo;
3193
+ type BusinessCountryInfo = {
3194
+ /**
3195
+ * - The country where the business is registered.
3196
+ */
3197
+ country?: string;
3198
+ /**
3199
+ * - ISO country code for the business's country.
3200
+ */
3201
+ country_code?: string;
3202
+ currency?: Currency;
3203
+ /**
3204
+ * - Timezone in which the business operates.
3205
+ */
3206
+ timezone?: string;
3207
+ };
3208
+ /** @returns {SubscriberData} */
3209
+ declare function SubscriberData(): SubscriberData;
3210
+ type SubscriberData = {
3211
+ /**
3212
+ * - Indicates if the user exists in the
3213
+ * payment gateway system.
3214
+ */
3215
+ pg_user_exists?: boolean;
3216
+ /**
3217
+ * - Unique identifier for the subscriber.
3218
+ */
3219
+ id?: string;
3220
+ /**
3221
+ * - Unique customer ID assigned by the
3222
+ * payment gateway.
3223
+ */
3224
+ pg_customer_id?: string;
3225
+ /**
3226
+ * - Identifier for the default
3227
+ * payment method used by the subscriber.
3228
+ */
3229
+ default_payment_method?: string;
3230
+ };
3231
+ /** @returns {Subscriber} */
3232
+ declare function Subscriber(): Subscriber;
3233
+ type Subscriber = {
3234
+ documents?: Documents;
3235
+ /**
3236
+ * - Contact information for the subscriber, such as
3237
+ * phone number.
3238
+ */
3239
+ phone?: any;
3240
+ billing_address?: BillingAddress;
3241
+ /**
3242
+ * - Indicates whether the subscriber has given
3243
+ * consent for processing.
3244
+ */
3245
+ consent?: boolean;
3246
+ /**
3247
+ * - Indicates whether the subscriber has opted in
3248
+ * for communications.
3249
+ */
3250
+ comms?: boolean;
3251
+ /**
3252
+ * - Unique identifier for the subscriber in the system.
3253
+ */
3254
+ _id?: string;
3255
+ /**
3256
+ * - The type of the subscriber, such as 'individual'
3257
+ * or 'company'.
3258
+ */
3259
+ type?: string;
3260
+ /**
3261
+ * - A unique identifier assigned to the subscriber.
3262
+ */
3263
+ unique_id?: string;
3264
+ /**
3265
+ * - The name of the subscriber.
3266
+ */
3267
+ name?: string;
3268
+ /**
3269
+ * - Email address of the subscriber.
3270
+ */
3271
+ email?: string;
3272
+ business_country_info?: BusinessCountryInfo;
3273
+ /**
3274
+ * - The date and time when the subscriber was created.
3275
+ */
3276
+ created_at?: string;
3277
+ /**
3278
+ * - The date and time when the subscriber
3279
+ * details were last modified.
3280
+ */
3281
+ modified_at?: string;
3282
+ /**
3283
+ * - The current credit balance for the
3284
+ * subscriber, if any.
3285
+ */
3286
+ credit_balance?: number;
3287
+ data?: SubscriberData;
3288
+ };
3289
+ /** @returns {AuthorModifiedDetails} */
3290
+ declare function AuthorModifiedDetails(): AuthorModifiedDetails;
3291
+ type AuthorModifiedDetails = {
3292
+ /**
3293
+ * - The first name of the author who made modifications.
3294
+ */
3295
+ first_name?: string;
3296
+ /**
3297
+ * - The last name of the author who made modifications.
3298
+ */
3299
+ last_name?: string;
3300
+ /**
3301
+ * - Indicates whether the author has
3302
+ * administrative privileges.
3303
+ */
3304
+ is_admin?: boolean;
3305
+ };
3306
+ /** @returns {Author} */
3307
+ declare function Author(): Author;
3308
+ type Author = {
3309
+ modified_by_details?: AuthorModifiedDetails;
3310
+ /**
3311
+ * - Identifier of the user who created the record.
3312
+ */
3313
+ created_by?: string;
3314
+ /**
3315
+ * - Identifier of the user who last modified the record.
3316
+ */
3317
+ modified_by?: string;
3318
+ };
3319
+ /** @returns {EndingBalance} */
3320
+ declare function EndingBalance(): EndingBalance;
3321
+ type EndingBalance = {
3322
+ /**
3323
+ * - The ending balance amount.
3324
+ */
3325
+ amount?: number;
3326
+ /**
3327
+ * - Reference to the previous entry if applicable.
3328
+ */
3329
+ old_entry_ref?: string;
3330
+ };
3331
+ /** @returns {PaymentData} */
3332
+ declare function PaymentData(): PaymentData;
3333
+ type PaymentData = {
3334
+ /**
3335
+ * - The unique identifier for the transaction.
3336
+ */
3337
+ transaction_id?: string;
3338
+ /**
3339
+ * - The payment aggregator used for the transaction.
3340
+ */
3341
+ aggregator?: string;
3342
+ /**
3343
+ * - The order ID generated by the
3344
+ * payment aggregator.
3345
+ */
3346
+ aggregator_order_id?: string;
3347
+ /**
3348
+ * - The date and time when the receipt was generated.
3349
+ */
3350
+ receipt_date?: string;
3351
+ /**
3352
+ * - A unique reference for
3353
+ * the transaction.
3354
+ */
3355
+ unique_transaction_reference?: string;
3356
+ };
3357
+ /** @returns {CreditTransaction} */
3358
+ declare function CreditTransaction(): CreditTransaction;
3359
+ type CreditTransaction = {
3360
+ /**
3361
+ * - The entity associated with the transaction.
3362
+ */
3363
+ entity?: any;
3364
+ author?: Author;
3365
+ /**
3366
+ * - The unique identifier for the credit transaction.
3367
+ */
3368
+ _id?: string;
3369
+ /**
3370
+ * - The amount credited in the transaction.
3371
+ */
3372
+ amount?: number;
3373
+ /**
3374
+ * - The currency of the transaction amount.
3375
+ */
3376
+ currency?: string;
3377
+ /**
3378
+ * - The unique identifier of the subscriber
3379
+ * involved in the transaction.
3380
+ */
3381
+ subscriber_id?: string;
3382
+ /**
3383
+ * - A brief description of the transaction.
3384
+ */
3385
+ description?: string;
3386
+ /**
3387
+ * - Indicates if the transaction is a test transaction.
3388
+ */
3389
+ is_test?: string;
3390
+ ending_balance?: EndingBalance;
3391
+ payment?: PaymentData;
3392
+ /**
3393
+ * - The type of credit transaction.
3394
+ */
3395
+ type?: string;
3396
+ /**
3397
+ * - The date and time when the transaction was created.
3398
+ */
3399
+ created_at?: string;
3400
+ /**
3401
+ * - The date and time when the transaction was
3402
+ * last modified.
3403
+ */
3404
+ modified_at?: string;
3405
+ };
3406
+ /** @returns {VerifyPaymentData} */
3407
+ declare function VerifyPaymentData(): VerifyPaymentData;
3408
+ type VerifyPaymentData = {
3409
+ /**
3410
+ * - Indicates if the payment verification was successful.
3411
+ */
3412
+ success?: boolean;
3413
+ subscriber?: Subscriber;
3414
+ credit_transaction?: CreditTransaction;
3415
+ };
3416
+ /** @returns {VerifyPaymentRes} */
3417
+ declare function VerifyPaymentRes(): VerifyPaymentRes;
3418
+ type VerifyPaymentRes = {
3419
+ /**
3420
+ * - The status of the payment verification.
3421
+ */
3422
+ status?: string;
3423
+ data?: VerifyPaymentData;
3424
+ };
3425
+ /** @returns {DefaultMerchants} */
3426
+ declare function DefaultMerchants(): DefaultMerchants;
3427
+ type DefaultMerchants = {
3428
+ /**
3429
+ * - The default Stripe merchant identifier.
3430
+ */
3431
+ stripe?: string;
3432
+ };
3433
+ /** @returns {GlobalSettingsPayment} */
3434
+ declare function GlobalSettingsPayment(): GlobalSettingsPayment;
3435
+ type GlobalSettingsPayment = {
3436
+ default_merchants?: DefaultMerchants;
3437
+ };
3438
+ /** @returns {GlobalSettingsData} */
3439
+ declare function GlobalSettingsData(): GlobalSettingsData;
3440
+ type GlobalSettingsData = {
3441
+ payment?: GlobalSettingsPayment;
3442
+ /**
3443
+ * - Indicates if the panel is frozen.
3444
+ */
3445
+ freeze_panel?: boolean;
3446
+ /**
3447
+ * - Unique identifier for the global settings.
3448
+ */
3449
+ _id?: string;
3450
+ /**
3451
+ * - The date and time when the global settings
3452
+ * were created.
3453
+ */
3454
+ created_at?: string;
3455
+ /**
3456
+ * - The date and time when the global settings
3457
+ * were last modified.
3458
+ */
3459
+ modified_at?: string;
3460
+ };
3461
+ /** @returns {GlobalSettings} */
3462
+ declare function GlobalSettings(): GlobalSettings;
3463
+ type GlobalSettings = {
3464
+ /**
3465
+ * - The status of the global settings retrieval.
3466
+ */
3467
+ status?: string;
3468
+ data?: GlobalSettingsData;
3469
+ };
3470
+ /** @returns {MethodChecks} */
3471
+ declare function MethodChecks(): MethodChecks;
3472
+ type MethodChecks = {
3473
+ /**
3474
+ * - Result of the address line 1 check.
3475
+ */
3476
+ address_line1_check?: string;
3477
+ /**
3478
+ * - Result of the address postal
3479
+ * code check.
3480
+ */
3481
+ address_postal_code_check?: string;
3482
+ /**
3483
+ * - Result of the CVC check.
3484
+ */
3485
+ cvc_check?: string;
3486
+ };
3487
+ /** @returns {MethodNetworks} */
3488
+ declare function MethodNetworks(): MethodNetworks;
3489
+ type MethodNetworks = {
3490
+ /**
3491
+ * - List of available networks for the payment method.
3492
+ */
3493
+ available?: string[];
3494
+ /**
3495
+ * - Preferred network for the payment method.
3496
+ */
3497
+ preferred?: string;
3498
+ };
3499
+ /** @returns {MethodSecureUsage} */
3500
+ declare function MethodSecureUsage(): MethodSecureUsage;
3501
+ type MethodSecureUsage = {
3502
+ /**
3503
+ * - Indicates if 3D Secure is supported for the
3504
+ * payment method.
3505
+ */
3506
+ supported?: boolean;
3507
+ };
3508
+ /** @returns {MethodDetails} */
3509
+ declare function MethodDetails(): MethodDetails;
3510
+ type MethodDetails = {
3511
+ /**
3512
+ * - Unique identifier for the payment method.
3513
+ */
3514
+ id?: string;
3515
+ /**
3516
+ * - Type of payment method.
3517
+ */
3518
+ type?: string;
3519
+ /**
3520
+ * - Indicates if a mandate is available
3521
+ * for the payment method.
3522
+ */
3523
+ mandate_available?: boolean;
3524
+ /**
3525
+ * - Mandate amount for the payment method.
3526
+ */
3527
+ mandate_amount?: number;
3528
+ /**
3529
+ * - Payment gateway's payment method
3530
+ * identifier.
3531
+ */
3532
+ pg_payment_method_id?: string;
3533
+ /**
3534
+ * - Indicates if the payment method is the default.
3535
+ */
3536
+ is_default?: boolean;
3537
+ data?: SubscriptionMethodData;
3538
+ };
3539
+ /** @returns {SubscriptionMethodData} */
3540
+ declare function SubscriptionMethodData(): SubscriptionMethodData;
3541
+ type SubscriptionMethodData = {
3542
+ /**
3543
+ * - Brand of the payment method.
3544
+ */
3545
+ brand?: string;
3546
+ checks?: MethodChecks;
3547
+ /**
3548
+ * - Country of the payment method.
3549
+ */
3550
+ country?: string;
3551
+ /**
3552
+ * - Expiration month of the payment method.
3553
+ */
3554
+ exp_month?: number;
3555
+ /**
3556
+ * - Expiration year of the payment method.
3557
+ */
3558
+ exp_year?: number;
3559
+ /**
3560
+ * - Fingerprint of the payment method.
3561
+ */
3562
+ fingerprint?: string;
3563
+ /**
3564
+ * - Funding type of the payment method.
3565
+ */
3566
+ funding?: string;
3567
+ /**
3568
+ * - Source from which the payment method
3569
+ * was generated.
3570
+ */
3571
+ generated_from?: string;
3572
+ /**
3573
+ * - Last 4 digits of the payment method.
3574
+ */
3575
+ last4?: string;
3576
+ networks?: MethodNetworks;
3577
+ three_d_secure_usage?: MethodSecureUsage;
3578
+ /**
3579
+ * - Wallet associated with the payment method.
3580
+ */
3581
+ wallet?: string;
3582
+ /**
3583
+ * - Name associated with the payment method.
3584
+ */
3585
+ name?: string;
3586
+ /**
3587
+ * - Indicates if the payment method is the default.
3588
+ */
3589
+ is_default?: boolean;
3590
+ };
3591
+ /** @returns {SubscriptionMethods} */
3592
+ declare function SubscriptionMethods(): SubscriptionMethods;
3593
+ type SubscriptionMethods = {
3594
+ /**
3595
+ * - Indicates if the retrieval of subscription
3596
+ * methods was successful.
3597
+ */
3598
+ success?: boolean;
3599
+ /**
3600
+ * - List of subscription methods.
3601
+ */
3602
+ data?: MethodDetails[];
3603
+ };
3604
+ /** @returns {ConfigPublicKey} */
3605
+ declare function ConfigPublicKey(): ConfigPublicKey;
3606
+ type ConfigPublicKey = {
322
3607
  /**
323
- * - The HTTP status code associated with the error
3608
+ * - Public key for the payment aggregator.
324
3609
  */
325
- code?: number;
3610
+ public_key?: string;
3611
+ };
3612
+ /** @returns {ConfigRes} */
3613
+ declare function ConfigRes(): ConfigRes;
3614
+ type ConfigRes = {
326
3615
  /**
327
- * - Indicates if the request was successful
3616
+ * - Indicates if the retrieval of configuration
3617
+ * was successful.
328
3618
  */
329
3619
  success?: boolean;
330
- };
331
- /** @returns {SubscriptionTrialPeriod} */
332
- declare function SubscriptionTrialPeriod(): SubscriptionTrialPeriod;
333
- type SubscriptionTrialPeriod = {
334
3620
  /**
335
- * - The start date and time of the trial period.
3621
+ * - The payment aggregator.
336
3622
  */
337
- start_date?: string;
3623
+ aggregator?: string;
3624
+ config?: ConfigPublicKey;
3625
+ };
3626
+ /** @returns {PlanChangeData} */
3627
+ declare function PlanChangeData(): PlanChangeData;
3628
+ type PlanChangeData = {
338
3629
  /**
339
- * - The end date and time of the trial period.
3630
+ * - The total amount after the plan change.
340
3631
  */
341
- end_date?: string;
342
- };
343
- /** @returns {EntityChargePrice} */
344
- declare function EntityChargePrice(): EntityChargePrice;
345
- type EntityChargePrice = {
3632
+ total?: number;
346
3633
  /**
347
- * - The amount for the price. The minimum value is 1.
3634
+ * - The amount credited due to the plan change.
348
3635
  */
349
- amount?: number;
3636
+ credit_note_amount?: number;
350
3637
  /**
351
- * - The currency code for the price
3638
+ * - The settlement amount for the plan change.
352
3639
  */
353
- currency_code?: string;
354
- };
355
- /** @returns {OneTimeChargeItem} */
356
- declare function OneTimeChargeItem(): OneTimeChargeItem;
357
- type OneTimeChargeItem = {
3640
+ settlement?: number;
358
3641
  /**
359
- * - The name of the one-time charge item.
3642
+ * - The taxable amount for the plan change.
360
3643
  */
361
- name?: string;
3644
+ taxable_amount?: number;
362
3645
  /**
363
- * - The term or description of the charge.
3646
+ * - The GST amount for the plan change.
364
3647
  */
365
- term?: string;
3648
+ gst_amount?: number;
366
3649
  /**
367
- * - The type of pricing for the charge item.
3650
+ * - The gross total amount for the plan change.
368
3651
  */
369
- pricing_type?: string;
370
- price?: EntityChargePrice;
3652
+ gross_total?: number;
371
3653
  /**
372
- * - The maximum amount that can be charged
373
- * for a particular service or item
3654
+ * - The GST for the plan change.
374
3655
  */
375
- capped_amount?: number;
3656
+ gst?: number;
376
3657
  /**
377
- * - Indicates whether the operation or data is in
378
- * a test mode.
3658
+ * - The discount amount applied to the plan change.
379
3659
  */
380
- is_test?: boolean;
3660
+ discount?: number;
3661
+ };
3662
+ /** @returns {PlanChangeDetails} */
3663
+ declare function PlanChangeDetails(): PlanChangeDetails;
3664
+ type PlanChangeDetails = {
381
3665
  /**
382
- * - Additional metadata associated with the charge item.
3666
+ * - Status of the plan change.
383
3667
  */
384
- metadata?: any;
3668
+ status?: string;
3669
+ data?: PlanChangeData;
385
3670
  };
386
- /** @returns {CreateOneTimeCharge} */
387
- declare function CreateOneTimeCharge(): CreateOneTimeCharge;
388
- type CreateOneTimeCharge = {
3671
+ /** @returns {TransactionMeta} */
3672
+ declare function TransactionMeta(): TransactionMeta;
3673
+ type TransactionMeta = {
389
3674
  /**
390
- * - The name of the one-time charge to be created.
3675
+ * - Invoice ID associated with the transaction.
391
3676
  */
392
- name?: string;
393
- charge?: OneTimeChargeItem;
3677
+ invoice_id?: string;
3678
+ };
3679
+ /** @returns {PaymentTransactionDetails} */
3680
+ declare function PaymentTransactionDetails(): PaymentTransactionDetails;
3681
+ type PaymentTransactionDetails = {
394
3682
  /**
395
- * - Indicates whether the operation or data is in
396
- * a test mode.
3683
+ * - Payment aggregator details.
397
3684
  */
398
- is_test?: boolean;
3685
+ aggregator?: any;
399
3686
  /**
400
- * - URL to which the user will be redirected
401
- * after creating the charge.
3687
+ * - Currency used in the transaction.
402
3688
  */
403
- return_url?: string;
404
- };
405
- /** @returns {ChargeRecurring} */
406
- declare function ChargeRecurring(): ChargeRecurring;
407
- type ChargeRecurring = {
3689
+ currency?: string;
408
3690
  /**
409
- * - The interval at which the recurring charge is
410
- * applied. Examples include "month", "year", etc.
3691
+ * - Current status of the transaction.
411
3692
  */
412
- interval?: string;
413
- interval_time?: number;
414
- };
415
- /** @returns {ChargeDetails} */
416
- declare function ChargeDetails(): ChargeDetails;
417
- type ChargeDetails = {
3693
+ current_status?: string;
418
3694
  /**
419
- * - Unique identifier for the charge.
3695
+ * - Unique identifier for the payment transaction.
420
3696
  */
421
3697
  _id?: string;
422
3698
  /**
423
- * - Specifies the type of entity related to
424
- * the operation, such as 'extension' or 'subscription'
3699
+ * - Unique identifier for the subscriber.
3700
+ */
3701
+ subscriber_id?: string;
3702
+ /**
3703
+ * - Amount involved in the transaction.
3704
+ */
3705
+ amount?: number;
3706
+ /**
3707
+ * - Type of entity involved in the transaction.
425
3708
  */
426
3709
  entity_type?: string;
427
3710
  /**
428
- * - Unique identifier for the entity (eg. extension)
3711
+ * - Type of collection for the transaction.
429
3712
  */
430
- entity_id?: string;
3713
+ collection_type?: string;
3714
+ meta?: TransactionMeta;
431
3715
  /**
432
- * - The name of the extension plan
3716
+ * - Timestamp when the transaction was created.
433
3717
  */
434
- name?: string;
3718
+ created_at?: string;
435
3719
  /**
436
- * - Description of the charge term.
3720
+ * - Timestamp when the transaction was last modified.
437
3721
  */
438
- term?: string;
3722
+ modified_at?: string;
3723
+ };
3724
+ /** @returns {PaymentItems} */
3725
+ declare function PaymentItems(): PaymentItems;
3726
+ type PaymentItems = {
439
3727
  /**
440
- * - The type of charge (e.g., 'standalone',
441
- * 'recurring').
3728
+ * - Name of the payment option.
442
3729
  */
443
- charge_type?: string;
3730
+ name?: string;
444
3731
  /**
445
- * - The pricing model for the charge (e.g.,
446
- * 'one_time', 'recurring').
3732
+ * - Code for the payment option
447
3733
  */
448
- pricing_type?: string;
449
- price?: EntityChargePrice;
450
- recurring?: ChargeRecurring;
3734
+ code?: string;
451
3735
  /**
452
- * - Current status of the charge.
3736
+ * - Aggregator used for the payment option.
453
3737
  */
454
- status?: string;
3738
+ aggregator?: string;
3739
+ };
3740
+ /** @returns {GetPaymentOptions} */
3741
+ declare function GetPaymentOptions(): GetPaymentOptions;
3742
+ type GetPaymentOptions = {
455
3743
  /**
456
- * - The maximum amount that can be charged
457
- * for a particular service or item
3744
+ * - List of available payment options.
458
3745
  */
459
- capped_amount?: number;
3746
+ payment_options?: PaymentItems[];
3747
+ };
3748
+ /** @returns {TopupReq} */
3749
+ declare function TopupReq(): TopupReq;
3750
+ type TopupReq = {
460
3751
  /**
461
- * - Date and time when the charge was activated.
3752
+ * - Amount to be topped up.
462
3753
  */
463
- activated_on?: string;
3754
+ amount?: number;
464
3755
  /**
465
- * - Date and time when the charge was cancelled.
3756
+ * - Currency in which the top-up is made.
466
3757
  */
467
- cancelled_on?: string;
3758
+ currency?: string;
468
3759
  /**
469
- * - The date when the billing occurred. This
470
- * field is optional and may be null if the billing date is not specified.
3760
+ * - Provider type for the top-up.
471
3761
  */
472
- billing_date?: string;
473
- current_period?: SubscriptionTrialPeriod;
3762
+ provider_type?: string;
3763
+ };
3764
+ /** @returns {SetupMandateReq} */
3765
+ declare function SetupMandateReq(): SetupMandateReq;
3766
+ type SetupMandateReq = {
474
3767
  /**
475
- * - Date and time when the charge details were
476
- * last modified.
3768
+ * - ID of the setup intent.
477
3769
  */
478
- modified_at?: string;
3770
+ intent_id?: string;
479
3771
  /**
480
- * - Date and time when the charge was created.
3772
+ * - ID of the payment method.
481
3773
  */
482
- created_at?: string;
3774
+ payment_method_id?: string;
3775
+ };
3776
+ /** @returns {SetupPaymentReq} */
3777
+ declare function SetupPaymentReq(): SetupPaymentReq;
3778
+ type SetupPaymentReq = {
483
3779
  /**
484
- * - Indicates whether the operation or data is in
485
- * a test mode.
3780
+ * - Payment method to be used.
486
3781
  */
487
- is_test?: boolean;
3782
+ payment_method?: string;
488
3783
  /**
489
- * - The unique identifier of the company.
3784
+ * - ID of the payment.
490
3785
  */
491
- company_id?: string;
3786
+ payment_id?: string;
492
3787
  /**
493
- * - Additional metadata associated with the charge.
3788
+ * - ID of the plan.
494
3789
  */
495
- meta?: any;
3790
+ plan_id?: string;
496
3791
  /**
497
- * - Internal version key for the charge record.
3792
+ * - ID of the invoice.
498
3793
  */
499
- __v?: number;
3794
+ invoice_id?: string;
500
3795
  };
501
- /** @returns {OneTimeChargeEntity} */
502
- declare function OneTimeChargeEntity(): OneTimeChargeEntity;
503
- type OneTimeChargeEntity = {
3796
+ /** @returns {SubscriptionRenewReq} */
3797
+ declare function SubscriptionRenewReq(): SubscriptionRenewReq;
3798
+ type SubscriptionRenewReq = {
504
3799
  /**
505
- * - Description of the charge term or usage.
3800
+ * - ID of the invoice for renewal.
506
3801
  */
507
- term?: string;
3802
+ invoice_id?: string;
508
3803
  /**
509
- * - Type of the charge (e.g., 'subscription',
510
- * 'extension').
3804
+ * - Type of entity for the renewal.
511
3805
  */
512
- charge_type?: string;
3806
+ entity_type?: string;
513
3807
  /**
514
- * - The maximum amount that can be charged
515
- * for a particular service or item
3808
+ * - Collection type for the renewal.
516
3809
  */
517
- capped_amount?: number;
3810
+ collection_type?: string;
518
3811
  /**
519
- * - The date when the billing occurred. This
520
- * field is optional and may be null if the billing date is not specified.
3812
+ * - URL to which the payment result will be sent
521
3813
  */
522
- billing_date?: string;
3814
+ callback_url?: string;
3815
+ meta?: RenewMeta;
3816
+ };
3817
+ /** @returns {RenewMeta} */
3818
+ declare function RenewMeta(): RenewMeta;
3819
+ type RenewMeta = {
523
3820
  /**
524
- * - Date and time when the charge entity was created.
3821
+ * - Indicates whether the invoice payment
3822
+ * is involved in the renewal.
525
3823
  */
526
- created_at?: string;
3824
+ invoice_payment?: boolean;
527
3825
  /**
528
- * - Date and time when the charge entity was
529
- * last modified.
3826
+ * - Indicates whether the subscription is being renewed.
530
3827
  */
531
- modified_at?: string;
3828
+ renew?: boolean;
3829
+ };
3830
+ /** @returns {SubscriptionMethodsReq} */
3831
+ declare function SubscriptionMethodsReq(): SubscriptionMethodsReq;
3832
+ type SubscriptionMethodsReq = {
532
3833
  /**
533
- * - Internal version key for the charge record.
3834
+ * - The unique external identifier for
3835
+ * the subscription method.
534
3836
  */
535
- __v?: number;
3837
+ unique_external_id?: string;
536
3838
  /**
537
- * - Unique identifier for the charge entity.
3839
+ * - The setup intent ID for the subscription method.
538
3840
  */
539
- _id?: string;
3841
+ setup_intent_id?: string;
540
3842
  /**
541
- * - The name of the one-time charge.
3843
+ * - The payment gateway payment method ID.
542
3844
  */
543
- name?: string;
3845
+ pg_payment_method_id?: string;
544
3846
  /**
545
- * - Current status of the charge (e.g., 'pending').
3847
+ * - Indicates whether this payment method
3848
+ * should be set as the default.
546
3849
  */
547
- status?: string;
3850
+ set_default?: boolean;
3851
+ };
3852
+ /** @returns {CreditTransactionResponse} */
3853
+ declare function CreditTransactionResponse(): CreditTransactionResponse;
3854
+ type CreditTransactionResponse = {
548
3855
  /**
549
- * - Date and time when the charge was
550
- * activated. Null if not yet activated.
3856
+ * - Total number of transactions.
551
3857
  */
552
- activated_on?: string;
3858
+ total?: number;
553
3859
  /**
554
- * - Date and time when the charge was
555
- * cancelled. Null if not cancelled.
3860
+ * - Maximum number of transactions per page.
556
3861
  */
557
- cancelled_on?: string;
3862
+ limit?: number;
558
3863
  /**
559
- * - Additional metadata associated with the charge.
3864
+ * - Current page number.
560
3865
  */
561
- metadata?: any;
3866
+ page?: number;
562
3867
  /**
563
- * - URL to redirect to after processing the charge.
3868
+ * - Total number of pages.
564
3869
  */
565
- return_url?: string;
3870
+ pages?: number;
566
3871
  /**
567
- * - Indicates whether the operation or data is in
568
- * a test mode.
3872
+ * - List of credit transactions.
569
3873
  */
570
- is_test?: boolean;
3874
+ items?: CreditTransaction[];
3875
+ };
3876
+ /** @returns {DowngradePlanReq} */
3877
+ declare function DowngradePlanReq(): DowngradePlanReq;
3878
+ type DowngradePlanReq = {
571
3879
  /**
572
- * - Pricing model for the charge (e.g., 'one_time').
3880
+ * - Unique identifier for the request.
573
3881
  */
574
- pricing_type?: string;
3882
+ unique_id?: string;
575
3883
  /**
576
- * - The unique identifier for the company in
577
- * the system.
3884
+ * - Type of entity requesting the downgrade.
578
3885
  */
579
- subscriber_id?: string;
3886
+ type?: string;
580
3887
  /**
581
- * - Specifies the type of entity related to
582
- * the operation, such as 'extension' or 'subscription'
3888
+ * - Product suite for the plan.
583
3889
  */
584
- entity_type?: string;
3890
+ product_suite?: string;
585
3891
  /**
586
- * - Unique identifier for the entity (eg. extension)
3892
+ * - Plan ID for the downgrade request.
587
3893
  */
588
- entity_id?: string;
3894
+ plan_id?: string;
589
3895
  /**
590
- * - Additional metadata associated with the charge.
3896
+ * - Reason for downgrading the plan.
591
3897
  */
592
- meta?: any;
593
- price?: EntityChargePrice;
3898
+ reason?: string;
3899
+ /**
3900
+ * - Platform from which the request is made.
3901
+ */
3902
+ platform?: string;
594
3903
  };
595
- /** @returns {CreateOneTimeChargeResponseSchemas} */
596
- declare function CreateOneTimeChargeResponseSchemas(): CreateOneTimeChargeResponseSchemas;
597
- type CreateOneTimeChargeResponseSchemas = {
598
- charge?: Charge;
3904
+ /** @returns {Taxation} */
3905
+ declare function Taxation(): Taxation;
3906
+ type Taxation = {
599
3907
  /**
600
- * - URL to which users are redirected to
601
- * confirm or complete the payment or subscription process.
3908
+ * - GST percentage.
602
3909
  */
603
- confirm_url?: string;
3910
+ gst?: number;
604
3911
  };
605
- /** @returns {Charge} */
606
- declare function Charge(): Charge;
607
- type Charge = {
608
- final_charge?: OneTimeChargeEntity;
3912
+ /** @returns {OneTimeFees} */
3913
+ declare function OneTimeFees(): OneTimeFees;
3914
+ type OneTimeFees = {
3915
+ /**
3916
+ * - One-time development fee.
3917
+ */
3918
+ developement?: number;
3919
+ /**
3920
+ * - One-time marketing fee.
3921
+ */
3922
+ marketing?: number;
609
3923
  };
610
- /** @returns {EntityChargeRecurring} */
611
- declare function EntityChargeRecurring(): EntityChargeRecurring;
612
- type EntityChargeRecurring = {
3924
+ /** @returns {CreditLine} */
3925
+ declare function CreditLine(): CreditLine;
3926
+ type CreditLine = {
613
3927
  /**
614
- * - The interval at which the recurring charge is
615
- * applied. Examples include "month", "year", etc.
3928
+ * - Indicates whether the credit line is active.
616
3929
  */
617
- interval: string;
3930
+ is_active?: boolean;
618
3931
  };
619
- /** @returns {ChargeLineItem} */
620
- declare function ChargeLineItem(): ChargeLineItem;
621
- type ChargeLineItem = {
3932
+ /** @returns {StatusMessage} */
3933
+ declare function StatusMessage(): StatusMessage;
3934
+ type StatusMessage = {
622
3935
  /**
623
- * - Its name of the extension plan.
3936
+ * - Status of the request.
624
3937
  */
625
- name: string;
3938
+ status?: string;
626
3939
  /**
627
- * - It indicates how it will be charged.
3940
+ * - Detailed message regarding the status.
628
3941
  */
629
- term: string;
3942
+ message?: string;
630
3943
  /**
631
- * - Specifies the type of pricing for the
632
- * extension subscription. It indicates whether the subscription will be
633
- * automatically renewed, charged once, or based on usage.
3944
+ * - Indicates whether the operation was successful.
634
3945
  */
635
- pricing_type: string;
636
- price: EntityChargePrice;
637
- recurring?: EntityChargeRecurring;
3946
+ success?: boolean;
638
3947
  /**
639
- * - The maximum amount that can be charged
640
- * for a particular service or item
3948
+ * - Status code of the operation.
641
3949
  */
642
- capped_amount?: number;
3950
+ code?: string;
3951
+ };
3952
+ /** @returns {PaymentCollectReq} */
3953
+ declare function PaymentCollectReq(): PaymentCollectReq;
3954
+ type PaymentCollectReq = {
643
3955
  /**
644
- * - The number of days allocated for the trial period
3956
+ * - ID of the transaction to collect payment for.
645
3957
  */
646
- trial_days?: number;
3958
+ transaction_id?: string;
647
3959
  /**
648
- * - Indicates whether the operation or data is in
649
- * a test mode.
3960
+ * - Indicates whether to use credit
3961
+ * balance for the payment.
650
3962
  */
651
- is_test?: boolean;
652
- metadata?: any;
653
- };
654
- /** @returns {CreateSubscriptionCharge} */
655
- declare function CreateSubscriptionCharge(): CreateSubscriptionCharge;
656
- type CreateSubscriptionCharge = {
3963
+ credit_balance?: boolean;
657
3964
  /**
658
- * - The name of the extension plan
3965
+ * - Mode of payment.
659
3966
  */
660
- name: string;
3967
+ payment_mode?: string;
661
3968
  /**
662
- * - The number of days allocated for the trial period
3969
+ * - Payment method to be used.
663
3970
  */
664
- trial_days?: number;
665
- line_items: ChargeLineItem[];
3971
+ payment_method?: string;
666
3972
  /**
667
- * - Indicates whether the operation or data is in
668
- * a test mode.
3973
+ * - ID of the invoice for which the payment is collected.
669
3974
  */
670
- is_test?: boolean;
3975
+ invoice_id?: string;
3976
+ };
3977
+ /** @returns {SubscriptionRenewResMeta} */
3978
+ declare function SubscriptionRenewResMeta(): SubscriptionRenewResMeta;
3979
+ type SubscriptionRenewResMeta = {
671
3980
  /**
672
- * - The URL to which the user will be redirected
673
- * after the subscription process is complete.
3981
+ * - Indicates whether the invoice payment
3982
+ * is involved in the renewal.
674
3983
  */
675
- return_url: string;
3984
+ invoice_payment?: boolean;
3985
+ /**
3986
+ * - Indicates whether the subscription is being renewed.
3987
+ */
3988
+ renew?: boolean;
676
3989
  };
677
- /** @returns {EntityChargeDetails} */
678
- declare function EntityChargeDetails(): EntityChargeDetails;
679
- type EntityChargeDetails = {
3990
+ /** @returns {SubscriptionRenewRes} */
3991
+ declare function SubscriptionRenewRes(): SubscriptionRenewRes;
3992
+ type SubscriptionRenewRes = {
680
3993
  /**
681
- * - The unique identifier for the charge.
3994
+ * - URL to redirect the user for completing
3995
+ * the renewal.
682
3996
  */
683
- _id?: string;
3997
+ redirect_url?: string;
684
3998
  /**
685
- * - The unique identifier of the subscription.
3999
+ * - ID of the renewal transaction.
686
4000
  */
687
- subscription_id?: string;
4001
+ transaction_id?: string;
688
4002
  /**
689
- * - The unique identifier for the company in
690
- * the system.
4003
+ * - Current status of the renewal process.
691
4004
  */
692
- subscriber_id?: string;
4005
+ current_status?: string;
4006
+ meta?: SubscriptionRenewResMeta;
4007
+ };
4008
+ /** @returns {SetupIntentRes} */
4009
+ declare function SetupIntentRes(): SetupIntentRes;
4010
+ type SetupIntentRes = {
693
4011
  /**
694
- * - Specifies the type of entity related to
695
- * the operation, such as 'extension' or 'subscription'
4012
+ * - Indicates if the setup intent was successful.
696
4013
  */
697
- entity_type?: string;
4014
+ success?: boolean;
4015
+ data?: SetupIntentData;
4016
+ };
4017
+ /** @returns {SetupIntentData} */
4018
+ declare function SetupIntentData(): SetupIntentData;
4019
+ type SetupIntentData = {
698
4020
  /**
699
- * - Unique identifier for the entity (eg. extension)
4021
+ * - The ID of the setup intent.
700
4022
  */
701
- entity_id?: string;
4023
+ id?: string;
702
4024
  /**
703
- * - The name of the extension plan
4025
+ * - The client secret of the setup intent.
704
4026
  */
705
- name?: string;
4027
+ client_secret?: string;
706
4028
  /**
707
- * - Detailed description of the terms and conditions
708
- * associated with the charge.
4029
+ * - The customer associated with the setup intent.
709
4030
  */
710
- term?: string;
4031
+ customer?: string;
711
4032
  /**
712
- * - The type of charge (e.g., 'standalone',
713
- * 'recurring').
4033
+ * - The status of the setup intent.
714
4034
  */
715
- charge_type?: string;
4035
+ status?: string;
4036
+ };
4037
+ /** @returns {SetupPayment} */
4038
+ declare function SetupPayment(): SetupPayment;
4039
+ type SetupPayment = {
716
4040
  /**
717
- * - The pricing model for the charge (e.g.,
718
- * 'one_time', 'recurring').
4041
+ * - The ID of the setup payment.
719
4042
  */
720
- pricing_type?: string;
721
- price?: EntityChargePrice;
722
- recurring?: ChargeRecurring;
4043
+ id?: string;
723
4044
  /**
724
- * - Current status of the charge.
4045
+ * - The status of the setup payment.
725
4046
  */
726
4047
  status?: string;
727
4048
  /**
728
- * - The maximum amount that can be charged
729
- * for a particular service or item
4049
+ * - The customer associated with the setup payment.
730
4050
  */
731
- capped_amount?: number;
4051
+ customer?: string;
732
4052
  /**
733
- * - Date and time when the charge was activated.
4053
+ * - The client secret of the setup payment.
734
4054
  */
735
- activated_on?: string;
4055
+ client_secret?: string;
736
4056
  /**
737
- * - Date and time when the charge was cancelled.
4057
+ * - The payment method used for the setup payment.
738
4058
  */
739
- cancelled_on?: string;
4059
+ payment_method?: string;
740
4060
  /**
741
- * - The date when the billing occurred. This
742
- * field is optional and may be null if the billing date is not specified.
4061
+ * - The mandate ID associated with the setup payment.
743
4062
  */
744
- billing_date?: string;
745
- current_period?: SubscriptionTrialPeriod;
4063
+ mandate?: string;
4064
+ payment_method_options?: PaymentMethodOptions;
4065
+ };
4066
+ /** @returns {PaymentMethodOptions} */
4067
+ declare function PaymentMethodOptions(): PaymentMethodOptions;
4068
+ type PaymentMethodOptions = {
4069
+ card?: Card;
4070
+ };
4071
+ /** @returns {Card} */
4072
+ declare function Card(): Card;
4073
+ type Card = {
4074
+ mandate_options?: MandateOptions;
4075
+ };
4076
+ /** @returns {MandateOptions} */
4077
+ declare function MandateOptions(): MandateOptions;
4078
+ type MandateOptions = {
746
4079
  /**
747
- * - Date and time when the charge details were
748
- * last modified.
4080
+ * - The mandate amount.
749
4081
  */
750
- modified_at?: string;
4082
+ amount?: number;
4083
+ };
4084
+ /** @returns {Message} */
4085
+ declare function Message(): Message;
4086
+ type Message = {
751
4087
  /**
752
- * - Date and time when the charge was created.
4088
+ * - A message providing details about the operation status.
753
4089
  */
754
- created_at?: string;
4090
+ message?: string;
4091
+ };
4092
+ /** @returns {TopupRes} */
4093
+ declare function TopupRes(): TopupRes;
4094
+ type TopupRes = {
755
4095
  /**
756
- * - Indicates whether the operation or data is in
757
- * a test mode.
4096
+ * - The status of the top-up request.
758
4097
  */
759
- is_test?: boolean;
4098
+ status?: string;
760
4099
  /**
761
- * - The unique identifier of the company.
4100
+ * - The order ID from the aggregator.
762
4101
  */
763
- company_id?: string;
4102
+ aggregator_order_id?: string;
764
4103
  /**
765
- * - Additional metadata associated with the charge.
4104
+ * - The amount of the top-up.
766
4105
  */
767
- meta?: any;
4106
+ amount?: number;
768
4107
  /**
769
- * - Internal version key for the charge record.
4108
+ * - The currency of the top-up.
770
4109
  */
771
- __v?: number;
772
- };
773
- /** @returns {EntitySubscription} */
774
- declare function EntitySubscription(): EntitySubscription;
775
- type EntitySubscription = {
4110
+ currency?: string;
776
4111
  /**
777
- * - Unique identifier for the subscription charge
4112
+ * - The transaction ID for the top-up.
778
4113
  */
779
- _id?: string;
4114
+ transaction_id?: string;
4115
+ };
4116
+ /** @returns {CancelTopupReq} */
4117
+ declare function CancelTopupReq(): CancelTopupReq;
4118
+ type CancelTopupReq = {
780
4119
  /**
781
- * - A unique identifier for a product
782
- * suite, which represents a specific collection or group of products within
783
- * the system.
4120
+ * - The order ID of the top-up to cancel.
784
4121
  */
785
- product_suit_id?: string;
4122
+ order_id?: string;
4123
+ };
4124
+ /** @returns {CancelTopupRes} */
4125
+ declare function CancelTopupRes(): CancelTopupRes;
4126
+ type CancelTopupRes = {
786
4127
  /**
787
- * - Unique identifier for the entity (eg. extension)
4128
+ * - The ID of the canceled top-up.
788
4129
  */
789
- entity_id?: string;
4130
+ _id?: string;
790
4131
  /**
791
- * - Specifies the type of entity related to
792
- * the operation, such as 'extension' or 'subscription'
4132
+ * - The subscriber ID associated with the top-up.
793
4133
  */
794
- entity_type?: string;
4134
+ subscriber_id?: string;
795
4135
  /**
796
- * - The name of the extension plan
4136
+ * - The amount of the canceled top-up.
797
4137
  */
798
- name?: string;
4138
+ amount?: number;
799
4139
  /**
800
- * - Current status of the subscription charge
4140
+ * - The currency of the canceled top-up.
801
4141
  */
802
- status?: string;
4142
+ currency?: string;
803
4143
  /**
804
- * - The number of days allocated for the trial period
4144
+ * - The aggregator used for the top-up.
805
4145
  */
806
- trial_days?: number;
4146
+ aggregator?: string;
807
4147
  /**
808
- * - Indicates whether the operation or data is in
809
- * a test mode.
4148
+ * - The order ID from the aggregator.
810
4149
  */
811
- is_test?: boolean;
4150
+ aggregator_order_id?: string;
812
4151
  /**
813
- * - Timestamp when the charge was created
4152
+ * - The date and time when the top-up was created.
814
4153
  */
815
4154
  created_at?: string;
816
4155
  /**
817
- * - Timestamp when the charge was last modified
4156
+ * - The date and time when the top-up was modified.
818
4157
  */
819
4158
  modified_at?: string;
820
4159
  /**
821
- * - The unique identifier for the company in
822
- * the system.
4160
+ * - The version key, used for internal purposes.
823
4161
  */
824
- subscriber_id?: string;
825
- line_items?: EntityChargeDetails[];
4162
+ __v?: number;
826
4163
  /**
827
- * - The URL passed in request which extension
828
- * expects in return.
4164
+ * - The status of the top-up with the aggregator.
829
4165
  */
830
- return_url?: string;
4166
+ aggregator_status?: string;
4167
+ /**
4168
+ * - The current status of the top-up.
4169
+ */
4170
+ current_status?: string;
831
4171
  };
832
- /** @returns {CreateSubscription} */
833
- declare function CreateSubscription(): CreateSubscription;
834
- type CreateSubscription = {
835
- subscription?: EntitySubscription;
4172
+ /** @returns {DefaultReq} */
4173
+ declare function DefaultReq(): DefaultReq;
4174
+ type DefaultReq = {
836
4175
  /**
837
- * - URL to which users are redirected to post
838
- * initiation of extension installation.
4176
+ * - The ID of the payment method to set
4177
+ * as default.
839
4178
  */
840
- confirm_url?: string;
4179
+ payment_method_id?: string;
841
4180
  };