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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +93 -113
  6. package/sdk/application/Cart/CartApplicationClient.js +157 -530
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -19
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +65 -55
  16. package/sdk/application/Content/ContentApplicationClient.js +211 -341
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -33
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
  22. package/sdk/application/Lead/LeadApplicationClient.js +24 -55
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +32 -87
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +126 -383
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
  26. package/sdk/application/Order/OrderApplicationClient.js +89 -293
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
  28. package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
  29. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
  30. package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
  31. package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
  32. package/sdk/application/Share/ShareApplicationClient.js +35 -89
  33. package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
  34. package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
  35. package/sdk/application/User/UserApplicationClient.d.ts +23 -13
  36. package/sdk/application/User/UserApplicationClient.js +49 -407
  37. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  38. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
  39. package/sdk/common/Utility.d.ts +1 -1
  40. package/sdk/common/Utility.js +10 -7
  41. package/sdk/common/Validator.d.ts +1 -0
  42. package/sdk/common/Validator.js +20 -0
  43. package/sdk/common/utils.d.ts +0 -1
  44. package/sdk/common/utils.js +0 -14
  45. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +18 -62
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +40 -372
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +99 -33
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +84 -25
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +7 -38
  51. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  52. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  53. package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
  54. package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
  55. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
  57. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
  59. package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
  61. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
  62. package/sdk/partner/PartnerClient.d.ts +0 -6
  63. package/sdk/partner/PartnerClient.js +0 -9
  64. package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
  65. package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
  66. package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
  67. package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
  68. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
  69. package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
  70. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  71. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  72. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
  73. package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
  74. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  75. package/sdk/partner/index.d.ts +0 -3
  76. package/sdk/partner/index.js +0 -6
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -406
  88. package/sdk/platform/Billing/BillingPlatformClient.js +76 -3214
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +459 -3798
  90. package/sdk/platform/Billing/BillingPlatformModel.js +338 -2573
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +24 -465
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +14 -490
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +205 -284
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +554 -672
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +132 -108
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +4865 -3148
  98. package/sdk/platform/Cart/CartPlatformModel.js +2071 -2854
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +419 -1015
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6444
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +226 -1117
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +127 -919
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +574 -372
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +1315 -1238
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9334 -7634
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +6980 -9652
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +239 -294
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +186 -246
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
  110. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
  112. package/sdk/platform/Common/CommonPlatformModel.js +11 -14
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +236 -376
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +579 -868
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
  117. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
  118. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
  119. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +314 -422
  120. package/sdk/platform/Communication/CommunicationPlatformModel.js +382 -538
  121. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
  122. package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -68
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -84
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
  128. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +118 -333
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
  132. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
  134. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +565 -1282
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +369 -1034
  137. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
  138. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
  139. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -246
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1297 -776
  141. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
  142. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
  143. package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
  144. package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
  145. package/sdk/platform/Content/ContentPlatformModel.d.ts +2374 -877
  146. package/sdk/platform/Content/ContentPlatformModel.js +1304 -930
  147. package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
  148. package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
  149. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
  150. package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
  151. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
  152. package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
  153. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  154. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  155. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
  156. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
  157. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
  158. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
  159. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  160. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  161. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
  162. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
  163. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  164. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  165. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  166. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  167. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  168. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  169. package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
  170. package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
  171. package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
  172. package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
  173. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
  174. package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
  175. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
  176. package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
  177. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
  178. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
  179. package/sdk/platform/Order/OrderPlatformClient.d.ts +421 -418
  180. package/sdk/platform/Order/OrderPlatformClient.js +1194 -1350
  181. package/sdk/platform/Order/OrderPlatformModel.d.ts +9145 -4107
  182. package/sdk/platform/Order/OrderPlatformModel.js +4257 -3197
  183. package/sdk/platform/Order/OrderPlatformValidator.d.ts +641 -442
  184. package/sdk/platform/Order/OrderPlatformValidator.js +341 -311
  185. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  186. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  187. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
  188. package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
  189. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
  190. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +934 -2452
  191. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -306
  192. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -305
  193. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
  194. package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
  195. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1327 -3529
  196. package/sdk/platform/Payment/PaymentPlatformModel.js +1397 -3693
  197. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
  198. package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
  199. package/sdk/platform/PlatformClient.d.ts +0 -2
  200. package/sdk/platform/PlatformClient.js +0 -4
  201. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  202. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  203. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  204. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  205. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
  206. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -513
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -103
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -99
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +162 -127
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +775 -435
  213. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6250 -3861
  214. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3178 -3798
  215. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +295 -199
  216. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -133
  217. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
  218. package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
  219. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
  220. package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
  221. package/sdk/platform/Share/SharePlatformModel.d.ts +53 -4
  222. package/sdk/platform/Share/SharePlatformModel.js +45 -3
  223. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +4 -26
  224. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +10 -157
  225. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -21
  226. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +6 -23
  227. package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
  228. package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
  229. package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
  230. package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
  231. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
  232. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
  233. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
  234. package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
  235. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
  236. package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
  237. package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
  238. package/sdk/platform/User/UserPlatformModel.js +253 -210
  239. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  240. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  241. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
  242. package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
  243. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  244. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  245. package/sdk/platform/index.d.ts +0 -1
  246. package/sdk/platform/index.js +0 -2
  247. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  248. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  249. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  250. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  251. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  252. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  253. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
  254. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
  255. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
  256. package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
  257. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
  258. package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
  259. package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
  260. package/sdk/public/Content/ContentPublicClient.js +254 -280
  261. package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
  262. package/sdk/public/Content/ContentPublicModel.js +98 -44
  263. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
  264. package/sdk/public/Content/ContentPublicValidator.js +26 -19
  265. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  266. package/sdk/public/Partner/PartnerPublicClient.js +6 -11
  267. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  268. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  269. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  270. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  271. package/sdk/public/PublicClient.d.ts +2 -2
  272. package/sdk/public/PublicClient.js +2 -2
  273. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  274. package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
  275. package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
  276. package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
  277. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  278. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  279. package/sdk/public/index.d.ts +1 -1
  280. package/sdk/public/index.js +1 -1
  281. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
  282. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
  283. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
  284. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
  285. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
  286. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
  287. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
  288. package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
  289. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
  290. package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
  291. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
  292. package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
  293. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
  294. package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
  295. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
  296. package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
  297. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
  298. package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
  299. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  300. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  301. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
  302. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
  303. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  304. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  305. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
  306. package/sdk/public/Billing/BillingPublicClient.js +0 -397
  307. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
  308. package/sdk/public/Billing/BillingPublicModel.js +0 -560
  309. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
  310. package/sdk/public/Billing/BillingPublicValidator.js +0 -50
@@ -1,236 +1,34 @@
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
- */
91
2
  /**
92
3
  * @typedef SubscriptionChargeRes
93
4
  * @property {string} [_id] - Unique identifier for the subscription charge
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
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
101
14
  * @property {string} [activated_on] - Date when the charge was activated
102
15
  * @property {string} [cancelled_on] - Date when the charge was cancelled
103
- * @property {boolean} [is_test] - Indicates if the charge is for testing purposes
16
+ * @property {boolean} [is_test] - Indicates whether the operation or data is in
17
+ * a test mode.
104
18
  * @property {string} [created_at] - Timestamp when the charge was created
105
19
  * @property {string} [modified_at] - Timestamp when the charge was last modified
106
- * @property {string} [company_id] - Company id
20
+ * @property {string} [company_id] - The unique identifier of the company.
107
21
  * @property {Object[]} [line_items] - List of line items associated with the charge
108
22
  */
109
23
  /**
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
24
+ * @typedef BadRequestSchema
157
25
  * @property {string} [message] - Failure message.
158
26
  */
159
27
  /**
160
28
  * @typedef ResourceNotFound
161
29
  * @property {string} [message] - Resource not found with {id}
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.
30
+ * @property {number} [code] - The HTTP status code associated with the error
31
+ * @property {boolean} [success] - Indicates if the request was successful
234
32
  */
235
33
  /**
236
34
  * @typedef SubscriptionTrialPeriod
@@ -249,33 +47,33 @@ export = BillingPlatformModel;
249
47
  * @property {string} [pricing_type] - The type of pricing for the charge item.
250
48
  * @property {EntityChargePrice} [price]
251
49
  * @property {number} [capped_amount] - The maximum amount that can be charged
252
- * for this item, if applicable.
253
- * @property {boolean} [is_test] - Indicates whether the charge item is for
254
- * testing purposes.
50
+ * for a particular service or item
51
+ * @property {boolean} [is_test] - Indicates whether the operation or data is in
52
+ * a test mode.
255
53
  * @property {Object} [metadata] - Additional metadata associated with the charge item.
256
54
  */
257
55
  /**
258
56
  * @typedef CreateOneTimeCharge
259
57
  * @property {string} [name] - The name of the one-time charge to be created.
260
58
  * @property {OneTimeChargeItem} [charge]
261
- * @property {boolean} [is_test] - Indicates whether the charge creation is for
262
- * testing purposes.
59
+ * @property {boolean} [is_test] - Indicates whether the operation or data is in
60
+ * a test mode.
263
61
  * @property {string} [return_url] - URL to which the user will be redirected
264
62
  * after creating the charge.
265
63
  */
266
64
  /**
267
65
  * @typedef ChargeRecurring
268
- * @property {string} [interval]
66
+ * @property {string} [interval] - The interval at which the recurring charge is
67
+ * applied. Examples include "month", "year", etc.
269
68
  * @property {number} [interval_time]
270
69
  */
271
70
  /**
272
71
  * @typedef ChargeDetails
273
72
  * @property {string} [_id] - Unique identifier for the charge.
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.
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
279
77
  * @property {string} [term] - Description of the charge term.
280
78
  * @property {string} [charge_type] - The type of charge (e.g., 'standalone',
281
79
  * 'recurring').
@@ -284,16 +82,19 @@ export = BillingPlatformModel;
284
82
  * @property {EntityChargePrice} [price]
285
83
  * @property {ChargeRecurring} [recurring]
286
84
  * @property {string} [status] - Current status of the charge.
287
- * @property {number} [capped_amount] - Maximum amount that can be charged, if applicable.
85
+ * @property {number} [capped_amount] - The maximum amount that can be charged
86
+ * for a particular service or item
288
87
  * @property {string} [activated_on] - Date and time when the charge was activated.
289
88
  * @property {string} [cancelled_on] - Date and time when the charge was cancelled.
290
- * @property {string} [billing_date] - Date and time when the charge was billed.
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.
291
91
  * @property {SubscriptionTrialPeriod} [current_period]
292
92
  * @property {string} [modified_at] - Date and time when the charge details were
293
93
  * last modified.
294
94
  * @property {string} [created_at] - Date and time when the charge was created.
295
- * @property {boolean} [is_test] - Indicates whether the charge is for testing purposes.
296
- * @property {string} [company_id] - Company id.
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.
297
98
  * @property {Object} [meta] - Additional metadata associated with the charge.
298
99
  * @property {number} [__v] - Internal version key for the charge record.
299
100
  */
@@ -302,37 +103,36 @@ export = BillingPlatformModel;
302
103
  * @property {string} [term] - Description of the charge term or usage.
303
104
  * @property {string} [charge_type] - Type of the charge (e.g., 'subscription',
304
105
  * 'extension').
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.
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.
309
110
  * @property {string} [created_at] - Date and time when the charge entity was created.
310
111
  * @property {string} [modified_at] - Date and time when the charge entity was
311
112
  * last modified.
312
113
  * @property {number} [__v] - Internal version key for the charge record.
313
114
  * @property {string} [_id] - Unique identifier for the charge entity.
314
115
  * @property {string} [name] - The name of the one-time charge.
315
- * @property {string} [status] - Current status of the charge (e.g., 'pending',
316
- * 'completed').
116
+ * @property {string} [status] - Current status of the charge (e.g., 'pending').
317
117
  * @property {string} [activated_on] - Date and time when the charge was
318
118
  * activated. Null if not yet activated.
319
119
  * @property {string} [cancelled_on] - Date and time when the charge was
320
120
  * cancelled. Null if not cancelled.
321
121
  * @property {Object} [metadata] - Additional metadata associated with the charge.
322
122
  * @property {string} [return_url] - URL to redirect to after processing the charge.
323
- * @property {boolean} [is_test] - Indicates whether the charge is for testing purposes.
123
+ * @property {boolean} [is_test] - Indicates whether the operation or data is in
124
+ * a test mode.
324
125
  * @property {string} [pricing_type] - Pricing model for the charge (e.g., 'one_time').
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.
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)
331
131
  * @property {Object} [meta] - Additional metadata associated with the charge.
332
132
  * @property {EntityChargePrice} [price]
333
133
  */
334
134
  /**
335
- * @typedef CreateOneTimeChargeResponse
135
+ * @typedef CreateOneTimeChargeResponseSchemas
336
136
  * @property {Charge} [charge]
337
137
  * @property {string} [confirm_url] - URL to which users are redirected to
338
138
  * confirm or complete the payment or subscription process.
@@ -342,1137 +142,136 @@ export = BillingPlatformModel;
342
142
  * @property {OneTimeChargeEntity} [final_charge]
343
143
  */
344
144
  /**
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.
350
- */
351
- /**
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
500
- * last modified.
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]
508
- */
509
- /**
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.
145
+ * @typedef EntityChargeRecurring
146
+ * @property {string} interval - The interval at which the recurring charge is
147
+ * applied. Examples include "month", "year", etc.
785
148
  */
786
149
  /**
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
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
871
202
  * 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.
872
209
  */
873
210
  /**
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.
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.
1179
231
  */
1180
232
  /**
1181
- * @typedef DefaultReq
1182
- * @property {string} [payment_method_id] - The ID of the payment method to set
1183
- * as default.
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.
1184
237
  */
1185
238
  declare class BillingPlatformModel {
1186
239
  }
1187
240
  declare namespace BillingPlatformModel {
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 };
241
+ export { SubscriptionChargeRes, BadRequestSchema, ResourceNotFound, SubscriptionTrialPeriod, EntityChargePrice, OneTimeChargeItem, CreateOneTimeCharge, ChargeRecurring, ChargeDetails, OneTimeChargeEntity, CreateOneTimeChargeResponseSchemas, Charge, EntityChargeRecurring, ChargeLineItem, CreateSubscriptionCharge, EntityChargeDetails, EntitySubscription, CreateSubscription };
1189
242
  }
1190
- /** @returns {CompanyInfo} */
1191
- declare function CompanyInfo(): CompanyInfo;
1192
- type CompanyInfo = {
243
+ /** @returns {SubscriptionChargeRes} */
244
+ declare function SubscriptionChargeRes(): SubscriptionChargeRes;
245
+ type SubscriptionChargeRes = {
1193
246
  /**
1194
- * - Name of the company
247
+ * - Unique identifier for the subscription charge
1195
248
  */
1196
- company_name?: string;
249
+ _id?: string;
1197
250
  /**
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
251
+ * - A unique identifier for a product
252
+ * suite, which represents a specific collection or group of products within
253
+ * the system.
1456
254
  */
1457
255
  product_suit_id?: string;
1458
256
  /**
1459
- * - Unique identifier for the entity
257
+ * - Unique identifier for the entity (eg. extension)
1460
258
  */
1461
259
  entity_id?: string;
1462
260
  /**
1463
- * - Type of entity (e.g., subscription, extension)
261
+ * - Specifies the type of entity related to
262
+ * the operation, such as 'extension' or 'subscription'
1464
263
  */
1465
264
  entity_type?: string;
1466
265
  /**
1467
- * - Name of the subscription charge
266
+ * - The name of the extension plan
1468
267
  */
1469
268
  name?: string;
1470
269
  /**
1471
- * - Current status of the subscription charge
270
+ * - Current status of the extension subscription
1472
271
  */
1473
272
  status?: string;
1474
273
  /**
1475
- * - Number of trial days provided
274
+ * - The number of days allocated for the trial period
1476
275
  */
1477
276
  trial_days?: number;
1478
277
  /**
@@ -1484,7 +283,8 @@ type SubscriptionChargeRes = {
1484
283
  */
1485
284
  cancelled_on?: string;
1486
285
  /**
1487
- * - Indicates if the charge is for testing purposes
286
+ * - Indicates whether the operation or data is in
287
+ * a test mode.
1488
288
  */
1489
289
  is_test?: boolean;
1490
290
  /**
@@ -1496,7 +296,7 @@ type SubscriptionChargeRes = {
1496
296
  */
1497
297
  modified_at?: string;
1498
298
  /**
1499
- * - Company id
299
+ * - The unique identifier of the company.
1500
300
  */
1501
301
  company_id?: string;
1502
302
  /**
@@ -1504,119 +304,9 @@ type SubscriptionChargeRes = {
1504
304
  */
1505
305
  line_items?: any[];
1506
306
  };
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 = {
307
+ /** @returns {BadRequestSchema} */
308
+ declare function BadRequestSchema(): BadRequestSchema;
309
+ type BadRequestSchema = {
1620
310
  /**
1621
311
  * - Failure message.
1622
312
  */
@@ -1629,2552 +319,523 @@ type ResourceNotFound = {
1629
319
  * - Resource not found with {id}
1630
320
  */
1631
321
  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 = {
3607
322
  /**
3608
- * - Public key for the payment aggregator.
323
+ * - The HTTP status code associated with the error
3609
324
  */
3610
- public_key?: string;
3611
- };
3612
- /** @returns {ConfigRes} */
3613
- declare function ConfigRes(): ConfigRes;
3614
- type ConfigRes = {
325
+ code?: number;
3615
326
  /**
3616
- * - Indicates if the retrieval of configuration
3617
- * was successful.
327
+ * - Indicates if the request was successful
3618
328
  */
3619
329
  success?: boolean;
3620
- /**
3621
- * - The payment aggregator.
3622
- */
3623
- aggregator?: string;
3624
- config?: ConfigPublicKey;
3625
330
  };
3626
- /** @returns {PlanChangeData} */
3627
- declare function PlanChangeData(): PlanChangeData;
3628
- type PlanChangeData = {
331
+ /** @returns {SubscriptionTrialPeriod} */
332
+ declare function SubscriptionTrialPeriod(): SubscriptionTrialPeriod;
333
+ type SubscriptionTrialPeriod = {
3629
334
  /**
3630
- * - The total amount after the plan change.
335
+ * - The start date and time of the trial period.
3631
336
  */
3632
- total?: number;
337
+ start_date?: string;
3633
338
  /**
3634
- * - The amount credited due to the plan change.
339
+ * - The end date and time of the trial period.
3635
340
  */
3636
- credit_note_amount?: number;
341
+ end_date?: string;
342
+ };
343
+ /** @returns {EntityChargePrice} */
344
+ declare function EntityChargePrice(): EntityChargePrice;
345
+ type EntityChargePrice = {
3637
346
  /**
3638
- * - The settlement amount for the plan change.
347
+ * - The amount for the price. The minimum value is 1.
3639
348
  */
3640
- settlement?: number;
349
+ amount?: number;
3641
350
  /**
3642
- * - The taxable amount for the plan change.
351
+ * - The currency code for the price
3643
352
  */
3644
- taxable_amount?: number;
353
+ currency_code?: string;
354
+ };
355
+ /** @returns {OneTimeChargeItem} */
356
+ declare function OneTimeChargeItem(): OneTimeChargeItem;
357
+ type OneTimeChargeItem = {
3645
358
  /**
3646
- * - The GST amount for the plan change.
359
+ * - The name of the one-time charge item.
3647
360
  */
3648
- gst_amount?: number;
361
+ name?: string;
3649
362
  /**
3650
- * - The gross total amount for the plan change.
363
+ * - The term or description of the charge.
3651
364
  */
3652
- gross_total?: number;
365
+ term?: string;
3653
366
  /**
3654
- * - The GST for the plan change.
367
+ * - The type of pricing for the charge item.
3655
368
  */
3656
- gst?: number;
369
+ pricing_type?: string;
370
+ price?: EntityChargePrice;
3657
371
  /**
3658
- * - The discount amount applied to the plan change.
372
+ * - The maximum amount that can be charged
373
+ * for a particular service or item
3659
374
  */
3660
- discount?: number;
3661
- };
3662
- /** @returns {PlanChangeDetails} */
3663
- declare function PlanChangeDetails(): PlanChangeDetails;
3664
- type PlanChangeDetails = {
375
+ capped_amount?: number;
3665
376
  /**
3666
- * - Status of the plan change.
377
+ * - Indicates whether the operation or data is in
378
+ * a test mode.
3667
379
  */
3668
- status?: string;
3669
- data?: PlanChangeData;
3670
- };
3671
- /** @returns {TransactionMeta} */
3672
- declare function TransactionMeta(): TransactionMeta;
3673
- type TransactionMeta = {
380
+ is_test?: boolean;
3674
381
  /**
3675
- * - Invoice ID associated with the transaction.
382
+ * - Additional metadata associated with the charge item.
3676
383
  */
3677
- invoice_id?: string;
384
+ metadata?: any;
3678
385
  };
3679
- /** @returns {PaymentTransactionDetails} */
3680
- declare function PaymentTransactionDetails(): PaymentTransactionDetails;
3681
- type PaymentTransactionDetails = {
3682
- /**
3683
- * - Payment aggregator details.
3684
- */
3685
- aggregator?: any;
386
+ /** @returns {CreateOneTimeCharge} */
387
+ declare function CreateOneTimeCharge(): CreateOneTimeCharge;
388
+ type CreateOneTimeCharge = {
3686
389
  /**
3687
- * - Currency used in the transaction.
390
+ * - The name of the one-time charge to be created.
3688
391
  */
3689
- currency?: string;
392
+ name?: string;
393
+ charge?: OneTimeChargeItem;
3690
394
  /**
3691
- * - Current status of the transaction.
395
+ * - Indicates whether the operation or data is in
396
+ * a test mode.
3692
397
  */
3693
- current_status?: string;
398
+ is_test?: boolean;
3694
399
  /**
3695
- * - Unique identifier for the payment transaction.
400
+ * - URL to which the user will be redirected
401
+ * after creating the charge.
3696
402
  */
3697
- _id?: string;
403
+ return_url?: string;
404
+ };
405
+ /** @returns {ChargeRecurring} */
406
+ declare function ChargeRecurring(): ChargeRecurring;
407
+ type ChargeRecurring = {
3698
408
  /**
3699
- * - Unique identifier for the subscriber.
409
+ * - The interval at which the recurring charge is
410
+ * applied. Examples include "month", "year", etc.
3700
411
  */
3701
- subscriber_id?: string;
412
+ interval?: string;
413
+ interval_time?: number;
414
+ };
415
+ /** @returns {ChargeDetails} */
416
+ declare function ChargeDetails(): ChargeDetails;
417
+ type ChargeDetails = {
3702
418
  /**
3703
- * - Amount involved in the transaction.
419
+ * - Unique identifier for the charge.
3704
420
  */
3705
- amount?: number;
421
+ _id?: string;
3706
422
  /**
3707
- * - Type of entity involved in the transaction.
423
+ * - Specifies the type of entity related to
424
+ * the operation, such as 'extension' or 'subscription'
3708
425
  */
3709
426
  entity_type?: string;
3710
427
  /**
3711
- * - Type of collection for the transaction.
428
+ * - Unique identifier for the entity (eg. extension)
3712
429
  */
3713
- collection_type?: string;
3714
- meta?: TransactionMeta;
430
+ entity_id?: string;
3715
431
  /**
3716
- * - Timestamp when the transaction was created.
432
+ * - The name of the extension plan
3717
433
  */
3718
- created_at?: string;
434
+ name?: string;
3719
435
  /**
3720
- * - Timestamp when the transaction was last modified.
436
+ * - Description of the charge term.
3721
437
  */
3722
- modified_at?: string;
3723
- };
3724
- /** @returns {PaymentItems} */
3725
- declare function PaymentItems(): PaymentItems;
3726
- type PaymentItems = {
438
+ term?: string;
3727
439
  /**
3728
- * - Name of the payment option.
440
+ * - The type of charge (e.g., 'standalone',
441
+ * 'recurring').
3729
442
  */
3730
- name?: string;
443
+ charge_type?: string;
3731
444
  /**
3732
- * - Code for the payment option
445
+ * - The pricing model for the charge (e.g.,
446
+ * 'one_time', 'recurring').
3733
447
  */
3734
- code?: string;
448
+ pricing_type?: string;
449
+ price?: EntityChargePrice;
450
+ recurring?: ChargeRecurring;
3735
451
  /**
3736
- * - Aggregator used for the payment option.
452
+ * - Current status of the charge.
3737
453
  */
3738
- aggregator?: string;
3739
- };
3740
- /** @returns {GetPaymentOptions} */
3741
- declare function GetPaymentOptions(): GetPaymentOptions;
3742
- type GetPaymentOptions = {
454
+ status?: string;
3743
455
  /**
3744
- * - List of available payment options.
456
+ * - The maximum amount that can be charged
457
+ * for a particular service or item
3745
458
  */
3746
- payment_options?: PaymentItems[];
3747
- };
3748
- /** @returns {TopupReq} */
3749
- declare function TopupReq(): TopupReq;
3750
- type TopupReq = {
459
+ capped_amount?: number;
3751
460
  /**
3752
- * - Amount to be topped up.
461
+ * - Date and time when the charge was activated.
3753
462
  */
3754
- amount?: number;
463
+ activated_on?: string;
3755
464
  /**
3756
- * - Currency in which the top-up is made.
465
+ * - Date and time when the charge was cancelled.
3757
466
  */
3758
- currency?: string;
467
+ cancelled_on?: string;
3759
468
  /**
3760
- * - Provider type for the top-up.
469
+ * - The date when the billing occurred. This
470
+ * field is optional and may be null if the billing date is not specified.
3761
471
  */
3762
- provider_type?: string;
3763
- };
3764
- /** @returns {SetupMandateReq} */
3765
- declare function SetupMandateReq(): SetupMandateReq;
3766
- type SetupMandateReq = {
472
+ billing_date?: string;
473
+ current_period?: SubscriptionTrialPeriod;
3767
474
  /**
3768
- * - ID of the setup intent.
475
+ * - Date and time when the charge details were
476
+ * last modified.
3769
477
  */
3770
- intent_id?: string;
478
+ modified_at?: string;
3771
479
  /**
3772
- * - ID of the payment method.
480
+ * - Date and time when the charge was created.
3773
481
  */
3774
- payment_method_id?: string;
3775
- };
3776
- /** @returns {SetupPaymentReq} */
3777
- declare function SetupPaymentReq(): SetupPaymentReq;
3778
- type SetupPaymentReq = {
482
+ created_at?: string;
3779
483
  /**
3780
- * - Payment method to be used.
484
+ * - Indicates whether the operation or data is in
485
+ * a test mode.
3781
486
  */
3782
- payment_method?: string;
487
+ is_test?: boolean;
3783
488
  /**
3784
- * - ID of the payment.
489
+ * - The unique identifier of the company.
3785
490
  */
3786
- payment_id?: string;
491
+ company_id?: string;
3787
492
  /**
3788
- * - ID of the plan.
493
+ * - Additional metadata associated with the charge.
3789
494
  */
3790
- plan_id?: string;
495
+ meta?: any;
3791
496
  /**
3792
- * - ID of the invoice.
497
+ * - Internal version key for the charge record.
3793
498
  */
3794
- invoice_id?: string;
499
+ __v?: number;
3795
500
  };
3796
- /** @returns {SubscriptionRenewReq} */
3797
- declare function SubscriptionRenewReq(): SubscriptionRenewReq;
3798
- type SubscriptionRenewReq = {
3799
- /**
3800
- * - ID of the invoice for renewal.
3801
- */
3802
- invoice_id?: string;
501
+ /** @returns {OneTimeChargeEntity} */
502
+ declare function OneTimeChargeEntity(): OneTimeChargeEntity;
503
+ type OneTimeChargeEntity = {
3803
504
  /**
3804
- * - Type of entity for the renewal.
505
+ * - Description of the charge term or usage.
3805
506
  */
3806
- entity_type?: string;
507
+ term?: string;
3807
508
  /**
3808
- * - Collection type for the renewal.
509
+ * - Type of the charge (e.g., 'subscription',
510
+ * 'extension').
3809
511
  */
3810
- collection_type?: string;
512
+ charge_type?: string;
3811
513
  /**
3812
- * - URL to which the payment result will be sent
514
+ * - The maximum amount that can be charged
515
+ * for a particular service or item
3813
516
  */
3814
- callback_url?: string;
3815
- meta?: RenewMeta;
3816
- };
3817
- /** @returns {RenewMeta} */
3818
- declare function RenewMeta(): RenewMeta;
3819
- type RenewMeta = {
517
+ capped_amount?: number;
3820
518
  /**
3821
- * - Indicates whether the invoice payment
3822
- * is involved in the renewal.
519
+ * - The date when the billing occurred. This
520
+ * field is optional and may be null if the billing date is not specified.
3823
521
  */
3824
- invoice_payment?: boolean;
522
+ billing_date?: string;
3825
523
  /**
3826
- * - Indicates whether the subscription is being renewed.
524
+ * - Date and time when the charge entity was created.
3827
525
  */
3828
- renew?: boolean;
3829
- };
3830
- /** @returns {SubscriptionMethodsReq} */
3831
- declare function SubscriptionMethodsReq(): SubscriptionMethodsReq;
3832
- type SubscriptionMethodsReq = {
526
+ created_at?: string;
3833
527
  /**
3834
- * - The unique external identifier for
3835
- * the subscription method.
528
+ * - Date and time when the charge entity was
529
+ * last modified.
3836
530
  */
3837
- unique_external_id?: string;
531
+ modified_at?: string;
3838
532
  /**
3839
- * - The setup intent ID for the subscription method.
533
+ * - Internal version key for the charge record.
3840
534
  */
3841
- setup_intent_id?: string;
535
+ __v?: number;
3842
536
  /**
3843
- * - The payment gateway payment method ID.
537
+ * - Unique identifier for the charge entity.
3844
538
  */
3845
- pg_payment_method_id?: string;
539
+ _id?: string;
3846
540
  /**
3847
- * - Indicates whether this payment method
3848
- * should be set as the default.
541
+ * - The name of the one-time charge.
3849
542
  */
3850
- set_default?: boolean;
3851
- };
3852
- /** @returns {CreditTransactionResponse} */
3853
- declare function CreditTransactionResponse(): CreditTransactionResponse;
3854
- type CreditTransactionResponse = {
543
+ name?: string;
3855
544
  /**
3856
- * - Total number of transactions.
545
+ * - Current status of the charge (e.g., 'pending').
3857
546
  */
3858
- total?: number;
547
+ status?: string;
3859
548
  /**
3860
- * - Maximum number of transactions per page.
549
+ * - Date and time when the charge was
550
+ * activated. Null if not yet activated.
3861
551
  */
3862
- limit?: number;
552
+ activated_on?: string;
3863
553
  /**
3864
- * - Current page number.
554
+ * - Date and time when the charge was
555
+ * cancelled. Null if not cancelled.
3865
556
  */
3866
- page?: number;
557
+ cancelled_on?: string;
3867
558
  /**
3868
- * - Total number of pages.
559
+ * - Additional metadata associated with the charge.
3869
560
  */
3870
- pages?: number;
561
+ metadata?: any;
3871
562
  /**
3872
- * - List of credit transactions.
563
+ * - URL to redirect to after processing the charge.
3873
564
  */
3874
- items?: CreditTransaction[];
3875
- };
3876
- /** @returns {DowngradePlanReq} */
3877
- declare function DowngradePlanReq(): DowngradePlanReq;
3878
- type DowngradePlanReq = {
565
+ return_url?: string;
3879
566
  /**
3880
- * - Unique identifier for the request.
567
+ * - Indicates whether the operation or data is in
568
+ * a test mode.
3881
569
  */
3882
- unique_id?: string;
570
+ is_test?: boolean;
3883
571
  /**
3884
- * - Type of entity requesting the downgrade.
572
+ * - Pricing model for the charge (e.g., 'one_time').
3885
573
  */
3886
- type?: string;
574
+ pricing_type?: string;
3887
575
  /**
3888
- * - Product suite for the plan.
576
+ * - The unique identifier for the company in
577
+ * the system.
3889
578
  */
3890
- product_suite?: string;
579
+ subscriber_id?: string;
3891
580
  /**
3892
- * - Plan ID for the downgrade request.
581
+ * - Specifies the type of entity related to
582
+ * the operation, such as 'extension' or 'subscription'
3893
583
  */
3894
- plan_id?: string;
584
+ entity_type?: string;
3895
585
  /**
3896
- * - Reason for downgrading the plan.
586
+ * - Unique identifier for the entity (eg. extension)
3897
587
  */
3898
- reason?: string;
588
+ entity_id?: string;
3899
589
  /**
3900
- * - Platform from which the request is made.
590
+ * - Additional metadata associated with the charge.
3901
591
  */
3902
- platform?: string;
592
+ meta?: any;
593
+ price?: EntityChargePrice;
3903
594
  };
3904
- /** @returns {Taxation} */
3905
- declare function Taxation(): Taxation;
3906
- type Taxation = {
595
+ /** @returns {CreateOneTimeChargeResponseSchemas} */
596
+ declare function CreateOneTimeChargeResponseSchemas(): CreateOneTimeChargeResponseSchemas;
597
+ type CreateOneTimeChargeResponseSchemas = {
598
+ charge?: Charge;
3907
599
  /**
3908
- * - GST percentage.
600
+ * - URL to which users are redirected to
601
+ * confirm or complete the payment or subscription process.
3909
602
  */
3910
- gst?: number;
603
+ confirm_url?: string;
3911
604
  };
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;
605
+ /** @returns {Charge} */
606
+ declare function Charge(): Charge;
607
+ type Charge = {
608
+ final_charge?: OneTimeChargeEntity;
3923
609
  };
3924
- /** @returns {CreditLine} */
3925
- declare function CreditLine(): CreditLine;
3926
- type CreditLine = {
610
+ /** @returns {EntityChargeRecurring} */
611
+ declare function EntityChargeRecurring(): EntityChargeRecurring;
612
+ type EntityChargeRecurring = {
3927
613
  /**
3928
- * - Indicates whether the credit line is active.
614
+ * - The interval at which the recurring charge is
615
+ * applied. Examples include "month", "year", etc.
3929
616
  */
3930
- is_active?: boolean;
617
+ interval: string;
3931
618
  };
3932
- /** @returns {StatusMessage} */
3933
- declare function StatusMessage(): StatusMessage;
3934
- type StatusMessage = {
3935
- /**
3936
- * - Status of the request.
3937
- */
3938
- status?: string;
619
+ /** @returns {ChargeLineItem} */
620
+ declare function ChargeLineItem(): ChargeLineItem;
621
+ type ChargeLineItem = {
3939
622
  /**
3940
- * - Detailed message regarding the status.
623
+ * - Its name of the extension plan.
3941
624
  */
3942
- message?: string;
625
+ name: string;
3943
626
  /**
3944
- * - Indicates whether the operation was successful.
627
+ * - It indicates how it will be charged.
3945
628
  */
3946
- success?: boolean;
629
+ term: string;
3947
630
  /**
3948
- * - Status code of the operation.
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.
3949
634
  */
3950
- code?: string;
3951
- };
3952
- /** @returns {PaymentCollectReq} */
3953
- declare function PaymentCollectReq(): PaymentCollectReq;
3954
- type PaymentCollectReq = {
635
+ pricing_type: string;
636
+ price: EntityChargePrice;
637
+ recurring?: EntityChargeRecurring;
3955
638
  /**
3956
- * - ID of the transaction to collect payment for.
639
+ * - The maximum amount that can be charged
640
+ * for a particular service or item
3957
641
  */
3958
- transaction_id?: string;
642
+ capped_amount?: number;
3959
643
  /**
3960
- * - Indicates whether to use credit
3961
- * balance for the payment.
644
+ * - The number of days allocated for the trial period
3962
645
  */
3963
- credit_balance?: boolean;
646
+ trial_days?: number;
3964
647
  /**
3965
- * - Mode of payment.
648
+ * - Indicates whether the operation or data is in
649
+ * a test mode.
3966
650
  */
3967
- payment_mode?: string;
651
+ is_test?: boolean;
652
+ metadata?: any;
653
+ };
654
+ /** @returns {CreateSubscriptionCharge} */
655
+ declare function CreateSubscriptionCharge(): CreateSubscriptionCharge;
656
+ type CreateSubscriptionCharge = {
3968
657
  /**
3969
- * - Payment method to be used.
658
+ * - The name of the extension plan
3970
659
  */
3971
- payment_method?: string;
660
+ name: string;
3972
661
  /**
3973
- * - ID of the invoice for which the payment is collected.
662
+ * - The number of days allocated for the trial period
3974
663
  */
3975
- invoice_id?: string;
3976
- };
3977
- /** @returns {SubscriptionRenewResMeta} */
3978
- declare function SubscriptionRenewResMeta(): SubscriptionRenewResMeta;
3979
- type SubscriptionRenewResMeta = {
664
+ trial_days?: number;
665
+ line_items: ChargeLineItem[];
3980
666
  /**
3981
- * - Indicates whether the invoice payment
3982
- * is involved in the renewal.
667
+ * - Indicates whether the operation or data is in
668
+ * a test mode.
3983
669
  */
3984
- invoice_payment?: boolean;
670
+ is_test?: boolean;
3985
671
  /**
3986
- * - Indicates whether the subscription is being renewed.
672
+ * - The URL to which the user will be redirected
673
+ * after the subscription process is complete.
3987
674
  */
3988
- renew?: boolean;
675
+ return_url: string;
3989
676
  };
3990
- /** @returns {SubscriptionRenewRes} */
3991
- declare function SubscriptionRenewRes(): SubscriptionRenewRes;
3992
- type SubscriptionRenewRes = {
677
+ /** @returns {EntityChargeDetails} */
678
+ declare function EntityChargeDetails(): EntityChargeDetails;
679
+ type EntityChargeDetails = {
3993
680
  /**
3994
- * - URL to redirect the user for completing
3995
- * the renewal.
681
+ * - The unique identifier for the charge.
3996
682
  */
3997
- redirect_url?: string;
683
+ _id?: string;
3998
684
  /**
3999
- * - ID of the renewal transaction.
685
+ * - The unique identifier of the subscription.
4000
686
  */
4001
- transaction_id?: string;
687
+ subscription_id?: string;
4002
688
  /**
4003
- * - Current status of the renewal process.
689
+ * - The unique identifier for the company in
690
+ * the system.
4004
691
  */
4005
- current_status?: string;
4006
- meta?: SubscriptionRenewResMeta;
4007
- };
4008
- /** @returns {SetupIntentRes} */
4009
- declare function SetupIntentRes(): SetupIntentRes;
4010
- type SetupIntentRes = {
692
+ subscriber_id?: string;
4011
693
  /**
4012
- * - Indicates if the setup intent was successful.
694
+ * - Specifies the type of entity related to
695
+ * the operation, such as 'extension' or 'subscription'
4013
696
  */
4014
- success?: boolean;
4015
- data?: SetupIntentData;
4016
- };
4017
- /** @returns {SetupIntentData} */
4018
- declare function SetupIntentData(): SetupIntentData;
4019
- type SetupIntentData = {
697
+ entity_type?: string;
4020
698
  /**
4021
- * - The ID of the setup intent.
699
+ * - Unique identifier for the entity (eg. extension)
4022
700
  */
4023
- id?: string;
701
+ entity_id?: string;
4024
702
  /**
4025
- * - The client secret of the setup intent.
703
+ * - The name of the extension plan
4026
704
  */
4027
- client_secret?: string;
705
+ name?: string;
4028
706
  /**
4029
- * - The customer associated with the setup intent.
707
+ * - Detailed description of the terms and conditions
708
+ * associated with the charge.
4030
709
  */
4031
- customer?: string;
710
+ term?: string;
4032
711
  /**
4033
- * - The status of the setup intent.
712
+ * - The type of charge (e.g., 'standalone',
713
+ * 'recurring').
4034
714
  */
4035
- status?: string;
4036
- };
4037
- /** @returns {SetupPayment} */
4038
- declare function SetupPayment(): SetupPayment;
4039
- type SetupPayment = {
715
+ charge_type?: string;
4040
716
  /**
4041
- * - The ID of the setup payment.
717
+ * - The pricing model for the charge (e.g.,
718
+ * 'one_time', 'recurring').
4042
719
  */
4043
- id?: string;
720
+ pricing_type?: string;
721
+ price?: EntityChargePrice;
722
+ recurring?: ChargeRecurring;
4044
723
  /**
4045
- * - The status of the setup payment.
724
+ * - Current status of the charge.
4046
725
  */
4047
726
  status?: string;
4048
727
  /**
4049
- * - The customer associated with the setup payment.
728
+ * - The maximum amount that can be charged
729
+ * for a particular service or item
4050
730
  */
4051
- customer?: string;
731
+ capped_amount?: number;
4052
732
  /**
4053
- * - The client secret of the setup payment.
733
+ * - Date and time when the charge was activated.
4054
734
  */
4055
- client_secret?: string;
735
+ activated_on?: string;
4056
736
  /**
4057
- * - The payment method used for the setup payment.
737
+ * - Date and time when the charge was cancelled.
4058
738
  */
4059
- payment_method?: string;
739
+ cancelled_on?: string;
4060
740
  /**
4061
- * - The mandate ID associated with the setup payment.
741
+ * - The date when the billing occurred. This
742
+ * field is optional and may be null if the billing date is not specified.
4062
743
  */
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 = {
744
+ billing_date?: string;
745
+ current_period?: SubscriptionTrialPeriod;
4079
746
  /**
4080
- * - The mandate amount.
747
+ * - Date and time when the charge details were
748
+ * last modified.
4081
749
  */
4082
- amount?: number;
4083
- };
4084
- /** @returns {Message} */
4085
- declare function Message(): Message;
4086
- type Message = {
750
+ modified_at?: string;
4087
751
  /**
4088
- * - A message providing details about the operation status.
752
+ * - Date and time when the charge was created.
4089
753
  */
4090
- message?: string;
4091
- };
4092
- /** @returns {TopupRes} */
4093
- declare function TopupRes(): TopupRes;
4094
- type TopupRes = {
754
+ created_at?: string;
4095
755
  /**
4096
- * - The status of the top-up request.
756
+ * - Indicates whether the operation or data is in
757
+ * a test mode.
4097
758
  */
4098
- status?: string;
759
+ is_test?: boolean;
4099
760
  /**
4100
- * - The order ID from the aggregator.
761
+ * - The unique identifier of the company.
4101
762
  */
4102
- aggregator_order_id?: string;
763
+ company_id?: string;
4103
764
  /**
4104
- * - The amount of the top-up.
765
+ * - Additional metadata associated with the charge.
4105
766
  */
4106
- amount?: number;
767
+ meta?: any;
4107
768
  /**
4108
- * - The currency of the top-up.
769
+ * - Internal version key for the charge record.
4109
770
  */
4110
- currency?: string;
771
+ __v?: number;
772
+ };
773
+ /** @returns {EntitySubscription} */
774
+ declare function EntitySubscription(): EntitySubscription;
775
+ type EntitySubscription = {
4111
776
  /**
4112
- * - The transaction ID for the top-up.
777
+ * - Unique identifier for the subscription charge
4113
778
  */
4114
- transaction_id?: string;
4115
- };
4116
- /** @returns {CancelTopupReq} */
4117
- declare function CancelTopupReq(): CancelTopupReq;
4118
- type CancelTopupReq = {
779
+ _id?: string;
4119
780
  /**
4120
- * - The order ID of the top-up to cancel.
781
+ * - A unique identifier for a product
782
+ * suite, which represents a specific collection or group of products within
783
+ * the system.
4121
784
  */
4122
- order_id?: string;
4123
- };
4124
- /** @returns {CancelTopupRes} */
4125
- declare function CancelTopupRes(): CancelTopupRes;
4126
- type CancelTopupRes = {
785
+ product_suit_id?: string;
4127
786
  /**
4128
- * - The ID of the canceled top-up.
787
+ * - Unique identifier for the entity (eg. extension)
4129
788
  */
4130
- _id?: string;
789
+ entity_id?: string;
4131
790
  /**
4132
- * - The subscriber ID associated with the top-up.
791
+ * - Specifies the type of entity related to
792
+ * the operation, such as 'extension' or 'subscription'
4133
793
  */
4134
- subscriber_id?: string;
794
+ entity_type?: string;
4135
795
  /**
4136
- * - The amount of the canceled top-up.
796
+ * - The name of the extension plan
4137
797
  */
4138
- amount?: number;
798
+ name?: string;
4139
799
  /**
4140
- * - The currency of the canceled top-up.
800
+ * - Current status of the subscription charge
4141
801
  */
4142
- currency?: string;
802
+ status?: string;
4143
803
  /**
4144
- * - The aggregator used for the top-up.
804
+ * - The number of days allocated for the trial period
4145
805
  */
4146
- aggregator?: string;
806
+ trial_days?: number;
4147
807
  /**
4148
- * - The order ID from the aggregator.
808
+ * - Indicates whether the operation or data is in
809
+ * a test mode.
4149
810
  */
4150
- aggregator_order_id?: string;
811
+ is_test?: boolean;
4151
812
  /**
4152
- * - The date and time when the top-up was created.
813
+ * - Timestamp when the charge was created
4153
814
  */
4154
815
  created_at?: string;
4155
816
  /**
4156
- * - The date and time when the top-up was modified.
817
+ * - Timestamp when the charge was last modified
4157
818
  */
4158
819
  modified_at?: string;
4159
820
  /**
4160
- * - The version key, used for internal purposes.
4161
- */
4162
- __v?: number;
4163
- /**
4164
- * - The status of the top-up with the aggregator.
821
+ * - The unique identifier for the company in
822
+ * the system.
4165
823
  */
4166
- aggregator_status?: string;
824
+ subscriber_id?: string;
825
+ line_items?: EntityChargeDetails[];
4167
826
  /**
4168
- * - The current status of the top-up.
827
+ * - The URL passed in request which extension
828
+ * expects in return.
4169
829
  */
4170
- current_status?: string;
830
+ return_url?: string;
4171
831
  };
4172
- /** @returns {DefaultReq} */
4173
- declare function DefaultReq(): DefaultReq;
4174
- type DefaultReq = {
832
+ /** @returns {CreateSubscription} */
833
+ declare function CreateSubscription(): CreateSubscription;
834
+ type CreateSubscription = {
835
+ subscription?: EntitySubscription;
4175
836
  /**
4176
- * - The ID of the payment method to set
4177
- * as default.
837
+ * - URL to which users are redirected to post
838
+ * initiation of extension installation.
4178
839
  */
4179
- payment_method_id?: string;
840
+ confirm_url?: string;
4180
841
  };