@gofynd/fdk-client-javascript 1.4.16-beta.2 → 1.4.16-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
  6. package/sdk/application/Cart/CartApplicationClient.js +27 -114
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  10. package/sdk/application/Common/CommonApplicationClient.js +1 -1
  11. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +30 -51
  14. package/sdk/application/Content/ContentApplicationClient.js +56 -161
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -9
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -7
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  18. package/sdk/application/Lead/LeadApplicationClient.js +1 -1
  19. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
  20. package/sdk/application/Logistic/LogisticApplicationClient.js +8 -101
  21. package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
  22. package/sdk/application/Order/OrderApplicationClient.js +8 -56
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  24. package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
  25. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  26. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  27. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  28. package/sdk/application/Theme/ThemeApplicationClient.js +2 -4
  29. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  30. package/sdk/application/User/UserApplicationClient.js +6 -6
  31. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  32. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  33. package/sdk/common/Utility.js +6 -3
  34. package/sdk/common/utils.d.ts +0 -1
  35. package/sdk/common/utils.js +0 -14
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  37. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
  39. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  41. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  42. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  43. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  44. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  45. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  47. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
  49. package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  51. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
  52. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  53. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  54. package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
  55. package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
  56. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  57. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  58. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  59. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  60. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  62. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  64. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  66. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  72. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  73. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  74. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  75. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  76. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  77. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  78. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  80. package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -121
  82. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
  83. package/sdk/platform/Cart/CartPlatformModel.d.ts +1294 -5068
  84. package/sdk/platform/Cart/CartPlatformModel.js +1217 -1992
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
  88. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
  89. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
  90. package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
  91. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6389
  92. package/sdk/platform/Catalog/CatalogPlatformModel.js +1681 -3222
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
  94. package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
  95. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  96. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  97. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  98. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  103. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  104. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  110. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  116. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
  118. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  120. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -204
  122. package/sdk/platform/Content/ContentPlatformApplicationClient.js +475 -1073
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -253
  124. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -256
  125. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  126. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  127. package/sdk/platform/Content/ContentPlatformModel.d.ts +403 -1375
  128. package/sdk/platform/Content/ContentPlatformModel.js +394 -631
  129. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  130. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  131. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  132. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  133. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  134. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  135. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
  142. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
  144. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  146. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  147. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  148. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  149. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  150. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  151. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  152. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  153. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  154. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  155. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  156. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  157. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
  159. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
  161. package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
  162. package/sdk/platform/Order/OrderPlatformClient.js +198 -416
  163. package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
  164. package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
  165. package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
  166. package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
  167. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  168. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  169. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  170. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
  172. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  174. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  175. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  176. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  177. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
  178. package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
  179. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  180. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  181. package/sdk/platform/PlatformClient.d.ts +2 -0
  182. package/sdk/platform/PlatformClient.js +4 -0
  183. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  184. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  185. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  186. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  187. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  188. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +49 -45
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +30 -28
  199. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
  200. package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
  201. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -3
  202. package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
  203. package/sdk/platform/Share/SharePlatformModel.d.ts +7 -46
  204. package/sdk/platform/Share/SharePlatformModel.js +6 -31
  205. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  206. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  207. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  208. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  209. package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
  210. package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
  211. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  212. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  213. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  214. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  215. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  216. package/sdk/platform/User/UserPlatformModel.js +23 -23
  217. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  218. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  219. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  220. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  221. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  222. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  223. package/sdk/platform/index.d.ts +1 -0
  224. package/sdk/platform/index.js +2 -0
  225. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  226. package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
  227. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  228. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  229. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  230. package/sdk/public/Content/ContentPublicClient.js +6 -810
  231. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  232. package/sdk/public/Content/ContentPublicModel.js +3 -649
  233. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  234. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  235. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  236. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  237. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  238. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  239. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  240. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  241. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  242. package/sdk/application/Finance/FinanceApplicationClient.js +0 -111
@@ -2,44 +2,109 @@ export = BillingPlatformModel;
2
2
  /**
3
3
  * @typedef SubscriptionChargeRes
4
4
  * @property {string} [_id] - Unique identifier for the subscription charge
5
- * @property {string} [product_suit_id] - A unique identifier for a product
6
- * suite, which represents a specific collection or group of products within
7
- * the system.
8
- * @property {string} [entity_id] - Unique identifier for the entity (eg. extension)
9
- * @property {string} [entity_type] - Specifies the type of entity related to
10
- * the operation, such as 'extension' or 'subscription'
11
- * @property {string} [name] - The name of the extension plan
12
- * @property {string} [status] - Current status of the extension subscription
13
- * @property {number} [trial_days] - The number of days allocated for the trial period
5
+ * @property {string} [product_suit_id] - ID of the product suit associated with
6
+ * the charge
7
+ * @property {string} [entity_id] - Unique identifier for the entity
8
+ * @property {string} [entity_type] - Type of entity (e.g., subscription, extension)
9
+ * @property {string} [name] - Name of the subscription charge
10
+ * @property {string} [status] - Current status of the subscription charge
11
+ * @property {number} [trial_days] - Number of trial days provided
14
12
  * @property {string} [activated_on] - Date when the charge was activated
15
13
  * @property {string} [cancelled_on] - Date when the charge was cancelled
16
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
17
- * a test mode.
14
+ * @property {boolean} [is_test] - Indicates if the charge is for testing purposes
18
15
  * @property {string} [created_at] - Timestamp when the charge was created
19
16
  * @property {string} [modified_at] - Timestamp when the charge was last modified
20
- * @property {string} [company_id] - The unique identifier of the company.
17
+ * @property {string} [company_id] - Company id
21
18
  * @property {Object[]} [line_items] - List of line items associated with the charge
22
19
  */
23
20
  /**
24
- * @typedef BadRequestSchema
25
- * @property {string} [message] - Failure message.
21
+ * @typedef ChargeDetails
22
+ * @property {string} [_id] - Unique identifier for the charge.
23
+ * @property {string} [entity_type] - The type of entity associated with the
24
+ * charge (e.g., 'extension', 'subscription').
25
+ * @property {string} [entity_id] - Unique identifier for the entity associated
26
+ * with the charge.
27
+ * @property {string} [name] - The name of the charge.
28
+ * @property {string} [term] - Description of the charge term.
29
+ * @property {string} [charge_type] - The type of charge (e.g., 'standalone',
30
+ * 'recurring').
31
+ * @property {string} [pricing_type] - The pricing model for the charge (e.g.,
32
+ * 'one_time', 'recurring').
33
+ * @property {EntityChargePrice} [price]
34
+ * @property {ChargeRecurring} [recurring]
35
+ * @property {string} [status] - Current status of the charge.
36
+ * @property {number} [capped_amount] - Maximum amount that can be charged, if applicable.
37
+ * @property {string} [activated_on] - Date and time when the charge was activated.
38
+ * @property {string} [cancelled_on] - Date and time when the charge was cancelled.
39
+ * @property {string} [billing_date] - Date and time when the charge was billed.
40
+ * @property {SubscriptionTrialPeriod} [current_period]
41
+ * @property {string} [modified_at] - Date and time when the charge details were
42
+ * last modified.
43
+ * @property {string} [created_at] - Date and time when the charge was created.
44
+ * @property {boolean} [is_test] - Indicates whether the charge is for testing purposes.
45
+ * @property {string} [company_id] - Company id.
46
+ * @property {Object} [meta] - Additional metadata associated with the charge.
47
+ * @property {number} [__v] - Internal version key for the charge record.
26
48
  */
27
49
  /**
28
50
  * @typedef ResourceNotFound
29
51
  * @property {string} [message] - Resource not found with {id}
30
- * @property {number} [code] - The HTTP status code associated with the error
31
- * @property {boolean} [success] - Indicates if the request was successful
52
+ * @property {Object} [code]
53
+ * @property {Object} [success]
32
54
  */
33
55
  /**
34
- * @typedef SubscriptionTrialPeriod
35
- * @property {string} [start_date] - The start date and time of the trial period.
36
- * @property {string} [end_date] - The end date and time of the trial period.
56
+ * @typedef CreateOneTimeCharge
57
+ * @property {string} [name] - The name of the one-time charge to be created.
58
+ * @property {OneTimeChargeItem} [charge]
59
+ * @property {boolean} [is_test] - Indicates whether the charge creation is for
60
+ * testing purposes.
61
+ * @property {string} [return_url] - URL to which the user will be redirected
62
+ * after creating the charge.
63
+ */
64
+ /**
65
+ * @typedef CreateOneTimeChargeResponse
66
+ * @property {Charge} [charge]
67
+ * @property {string} [confirm_url] - URL to which users are redirected to
68
+ * confirm or complete the payment or subscription process.
69
+ */
70
+ /**
71
+ * @typedef BadRequest
72
+ * @property {string} [message] - Failure message.
73
+ */
74
+ /**
75
+ * @typedef CreateSubscriptionCharge
76
+ * @property {string} name - The name of the charge.
77
+ * @property {number} [trial_days]
78
+ * @property {ChargeLineItem[]} line_items
79
+ * @property {boolean} [is_test] - Indicates whether the charge is for testing purposes.
80
+ * @property {string} return_url - The URL passed in request which extension
81
+ * expects in return.
82
+ */
83
+ /**
84
+ * @typedef CreateSubscriptionResponse
85
+ * @property {EntitySubscription} [subscription]
86
+ * @property {string} [confirm_url] - URL to which users are redirected to
87
+ * confirm or complete the payment or subscription process.
37
88
  */
38
89
  /**
39
90
  * @typedef EntityChargePrice
40
91
  * @property {number} [amount] - The amount for the price. The minimum value is 1.
41
92
  * @property {string} [currency_code] - The currency code for the price
42
93
  */
94
+ /**
95
+ * @typedef ChargeRecurring
96
+ * @property {string} [interval]
97
+ * @property {number} [interval_time]
98
+ */
99
+ /**
100
+ * @typedef SubscriptionTrialPeriod
101
+ * @property {string} [start_date] - The start date and time of the trial period.
102
+ * @property {string} [end_date] - The end date and time of the trial period.
103
+ */
104
+ /**
105
+ * @typedef Charge
106
+ * @property {OneTimeChargeEntity} [final_charge]
107
+ */
43
108
  /**
44
109
  * @typedef OneTimeChargeItem
45
110
  * @property {string} [name] - The name of the one-time charge item.
@@ -47,143 +112,92 @@ export = BillingPlatformModel;
47
112
  * @property {string} [pricing_type] - The type of pricing for the charge item.
48
113
  * @property {EntityChargePrice} [price]
49
114
  * @property {number} [capped_amount] - The maximum amount that can be charged
50
- * for a particular service or item
51
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
52
- * a test mode.
115
+ * for this item, if applicable.
116
+ * @property {boolean} [is_test] - Indicates whether the charge item is for
117
+ * testing purposes.
53
118
  * @property {Object} [metadata] - Additional metadata associated with the charge item.
54
119
  */
55
120
  /**
56
- * @typedef CreateOneTimeCharge
57
- * @property {string} [name] - The name of the one-time charge to be created.
58
- * @property {OneTimeChargeItem} [charge]
59
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
60
- * a test mode.
61
- * @property {string} [return_url] - URL to which the user will be redirected
62
- * after creating the charge.
63
- */
64
- /**
65
- * @typedef ChargeRecurring
66
- * @property {string} [interval] - The interval at which the recurring charge is
67
- * applied. Examples include "month", "year", etc.
68
- * @property {number} [interval_time]
121
+ * @typedef ChargeLineItem
122
+ * @property {string} name - Its name of the extension plan.
123
+ * @property {string} term - It indicates how it will be charged.
124
+ * @property {string} pricing_type - It indicates the extension subscription
125
+ * will be auto renewed timely.
126
+ * @property {EntityChargePrice} price
127
+ * @property {EntityChargeRecurring} [recurring]
128
+ * @property {number} [capped_amount]
129
+ * @property {number} [trial_days]
130
+ * @property {boolean} [is_test]
131
+ * @property {Object} [metadata]
69
132
  */
70
133
  /**
71
- * @typedef ChargeDetails
72
- * @property {string} [_id] - Unique identifier for the charge.
73
- * @property {string} [entity_type] - Specifies the type of entity related to
74
- * the operation, such as 'extension' or 'subscription'
75
- * @property {string} [entity_id] - Unique identifier for the entity (eg. extension)
76
- * @property {string} [name] - The name of the extension plan
77
- * @property {string} [term] - Description of the charge term.
78
- * @property {string} [charge_type] - The type of charge (e.g., 'standalone',
79
- * 'recurring').
80
- * @property {string} [pricing_type] - The pricing model for the charge (e.g.,
81
- * 'one_time', 'recurring').
82
- * @property {EntityChargePrice} [price]
83
- * @property {ChargeRecurring} [recurring]
84
- * @property {string} [status] - Current status of the charge.
85
- * @property {number} [capped_amount] - The maximum amount that can be charged
86
- * for a particular service or item
87
- * @property {string} [activated_on] - Date and time when the charge was activated.
88
- * @property {string} [cancelled_on] - Date and time when the charge was cancelled.
89
- * @property {string} [billing_date] - The date when the billing occurred. This
90
- * field is optional and may be null if the billing date is not specified.
91
- * @property {SubscriptionTrialPeriod} [current_period]
92
- * @property {string} [modified_at] - Date and time when the charge details were
93
- * last modified.
94
- * @property {string} [created_at] - Date and time when the charge was created.
95
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
96
- * a test mode.
97
- * @property {string} [company_id] - The unique identifier of the company.
98
- * @property {Object} [meta] - Additional metadata associated with the charge.
99
- * @property {number} [__v] - Internal version key for the charge record.
134
+ * @typedef EntitySubscription
135
+ * @property {string} [_id] - Unique identifier for the subscription charge
136
+ * @property {string} [product_suit_id] - ID of the product suit associated with
137
+ * the charge
138
+ * @property {string} [entity_id] - Unique identifier for the entity
139
+ * @property {string} [entity_type] - Type of entity (e.g., subscription, extension)
140
+ * @property {string} [name] - Name of the subscription charge
141
+ * @property {string} [status] - Current status of the subscription charge
142
+ * @property {number} [trial_days] - Number of trial days provided
143
+ * @property {boolean} [is_test] - Indicates if the charge is for testing purposes
144
+ * @property {string} [created_at] - Timestamp when the charge was created
145
+ * @property {string} [modified_at] - Timestamp when the charge was last modified
146
+ * @property {string} [subscriber_id] - Unique Identifier of the company
147
+ * @property {EntityChargeDetails[]} [line_items]
148
+ * @property {string} [return_url] - The URL passed in request which extension
149
+ * expects in return.
100
150
  */
101
151
  /**
102
152
  * @typedef OneTimeChargeEntity
103
153
  * @property {string} [term] - Description of the charge term or usage.
104
154
  * @property {string} [charge_type] - Type of the charge (e.g., 'subscription',
105
155
  * 'extension').
106
- * @property {number} [capped_amount] - The maximum amount that can be charged
107
- * for a particular service or item
108
- * @property {string} [billing_date] - The date when the billing occurred. This
109
- * field is optional and may be null if the billing date is not specified.
156
+ * @property {number} [capped_amount] - Maximum amount that can be charged. If
157
+ * no cap, the value should be 0.
158
+ * @property {string} [billing_date] - Date when the charge was billed. Null if
159
+ * not yet billed.
110
160
  * @property {string} [created_at] - Date and time when the charge entity was created.
111
161
  * @property {string} [modified_at] - Date and time when the charge entity was
112
162
  * last modified.
113
163
  * @property {number} [__v] - Internal version key for the charge record.
114
164
  * @property {string} [_id] - Unique identifier for the charge entity.
115
165
  * @property {string} [name] - The name of the one-time charge.
116
- * @property {string} [status] - Current status of the charge (e.g., 'pending').
166
+ * @property {string} [status] - Current status of the charge (e.g., 'pending',
167
+ * 'completed').
117
168
  * @property {string} [activated_on] - Date and time when the charge was
118
169
  * activated. Null if not yet activated.
119
170
  * @property {string} [cancelled_on] - Date and time when the charge was
120
171
  * cancelled. Null if not cancelled.
121
172
  * @property {Object} [metadata] - Additional metadata associated with the charge.
122
173
  * @property {string} [return_url] - URL to redirect to after processing the charge.
123
- * @property {boolean} [is_test] - Indicates whether the operation or data is in
124
- * a test mode.
174
+ * @property {boolean} [is_test] - Indicates whether the charge is for testing purposes.
125
175
  * @property {string} [pricing_type] - Pricing model for the charge (e.g., 'one_time').
126
- * @property {string} [subscriber_id] - The unique identifier for the company in
127
- * the system.
128
- * @property {string} [entity_type] - Specifies the type of entity related to
129
- * the operation, such as 'extension' or 'subscription'
130
- * @property {string} [entity_id] - Unique identifier for the entity (eg. extension)
176
+ * @property {string} [subscriber_id] - Unique identifier for the subscriber
177
+ * associated with the charge.
178
+ * @property {string} [entity_type] - Type of the entity related to the charge
179
+ * (e.g., 'subscription', 'user').
180
+ * @property {string} [entity_id] - Unique identifier for the entity associated
181
+ * with the charge.
131
182
  * @property {Object} [meta] - Additional metadata associated with the charge.
132
183
  * @property {EntityChargePrice} [price]
133
184
  */
134
- /**
135
- * @typedef CreateOneTimeChargeResponseSchemas
136
- * @property {Charge} [charge]
137
- * @property {string} [confirm_url] - URL to which users are redirected to
138
- * confirm or complete the payment or subscription process.
139
- */
140
- /**
141
- * @typedef Charge
142
- * @property {OneTimeChargeEntity} [final_charge]
143
- */
144
185
  /**
145
186
  * @typedef EntityChargeRecurring
146
- * @property {string} interval - The interval at which the recurring charge is
147
- * applied. Examples include "month", "year", etc.
148
- */
149
- /**
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.
187
+ * @property {string} interval - The interval of the subscription.
174
188
  */
175
189
  /**
176
190
  * @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.
191
+ * @property {string} [_id] - Unique identifier for the charge.
192
+ * @property {string} [subscription_id] - Unique identifier of the extension subscription.
193
+ * @property {string} [subscriber_id] - Unique identifier of the
194
+ * subscriber/company who installed extension subscription.
195
+ * @property {string} [entity_type] - The type of entity associated with the
196
+ * charge (e.g., 'extension', 'subscription').
197
+ * @property {string} [entity_id] - Unique identifier for the entity associated
198
+ * with the charge.
199
+ * @property {string} [name] - The name of the charge.
200
+ * @property {string} [term] - Description of the charge term.
187
201
  * @property {string} [charge_type] - The type of charge (e.g., 'standalone',
188
202
  * 'recurring').
189
203
  * @property {string} [pricing_type] - The pricing model for the charge (e.g.,
@@ -191,54 +205,23 @@ export = BillingPlatformModel;
191
205
  * @property {EntityChargePrice} [price]
192
206
  * @property {ChargeRecurring} [recurring]
193
207
  * @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
208
+ * @property {number} [capped_amount] - Maximum amount that can be charged, if applicable.
196
209
  * @property {string} [activated_on] - Date and time when the charge was activated.
197
210
  * @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.
211
+ * @property {string} [billing_date] - Date and time when the charge was billed.
200
212
  * @property {SubscriptionTrialPeriod} [current_period]
201
213
  * @property {string} [modified_at] - Date and time when the charge details were
202
214
  * last modified.
203
215
  * @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.
216
+ * @property {boolean} [is_test] - Indicates whether the charge is for testing purposes.
217
+ * @property {string} [company_id] - Company id.
207
218
  * @property {Object} [meta] - Additional metadata associated with the charge.
208
219
  * @property {number} [__v] - Internal version key for the charge record.
209
220
  */
210
- /**
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.
231
- */
232
- /**
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.
237
- */
238
221
  declare class BillingPlatformModel {
239
222
  }
240
223
  declare namespace BillingPlatformModel {
241
- export { SubscriptionChargeRes, BadRequestSchema, ResourceNotFound, SubscriptionTrialPeriod, EntityChargePrice, OneTimeChargeItem, CreateOneTimeCharge, ChargeRecurring, ChargeDetails, OneTimeChargeEntity, CreateOneTimeChargeResponseSchemas, Charge, EntityChargeRecurring, ChargeLineItem, CreateSubscriptionCharge, EntityChargeDetails, EntitySubscription, CreateSubscription };
224
+ export { SubscriptionChargeRes, ChargeDetails, ResourceNotFound, CreateOneTimeCharge, CreateOneTimeChargeResponse, BadRequest, CreateSubscriptionCharge, CreateSubscriptionResponse, EntityChargePrice, ChargeRecurring, SubscriptionTrialPeriod, Charge, OneTimeChargeItem, ChargeLineItem, EntitySubscription, OneTimeChargeEntity, EntityChargeRecurring, EntityChargeDetails };
242
225
  }
243
226
  /** @returns {SubscriptionChargeRes} */
244
227
  declare function SubscriptionChargeRes(): SubscriptionChargeRes;
@@ -248,30 +231,28 @@ type SubscriptionChargeRes = {
248
231
  */
249
232
  _id?: string;
250
233
  /**
251
- * - A unique identifier for a product
252
- * suite, which represents a specific collection or group of products within
253
- * the system.
234
+ * - ID of the product suit associated with
235
+ * the charge
254
236
  */
255
237
  product_suit_id?: string;
256
238
  /**
257
- * - Unique identifier for the entity (eg. extension)
239
+ * - Unique identifier for the entity
258
240
  */
259
241
  entity_id?: string;
260
242
  /**
261
- * - Specifies the type of entity related to
262
- * the operation, such as 'extension' or 'subscription'
243
+ * - Type of entity (e.g., subscription, extension)
263
244
  */
264
245
  entity_type?: string;
265
246
  /**
266
- * - The name of the extension plan
247
+ * - Name of the subscription charge
267
248
  */
268
249
  name?: string;
269
250
  /**
270
- * - Current status of the extension subscription
251
+ * - Current status of the subscription charge
271
252
  */
272
253
  status?: string;
273
254
  /**
274
- * - The number of days allocated for the trial period
255
+ * - Number of trial days provided
275
256
  */
276
257
  trial_days?: number;
277
258
  /**
@@ -283,8 +264,7 @@ type SubscriptionChargeRes = {
283
264
  */
284
265
  cancelled_on?: string;
285
266
  /**
286
- * - Indicates whether the operation or data is in
287
- * a test mode.
267
+ * - Indicates if the charge is for testing purposes
288
268
  */
289
269
  is_test?: boolean;
290
270
  /**
@@ -296,7 +276,7 @@ type SubscriptionChargeRes = {
296
276
  */
297
277
  modified_at?: string;
298
278
  /**
299
- * - The unique identifier of the company.
279
+ * - Company id
300
280
  */
301
281
  company_id?: string;
302
282
  /**
@@ -304,13 +284,89 @@ type SubscriptionChargeRes = {
304
284
  */
305
285
  line_items?: any[];
306
286
  };
307
- /** @returns {BadRequestSchema} */
308
- declare function BadRequestSchema(): BadRequestSchema;
309
- type BadRequestSchema = {
287
+ /** @returns {ChargeDetails} */
288
+ declare function ChargeDetails(): ChargeDetails;
289
+ type ChargeDetails = {
310
290
  /**
311
- * - Failure message.
291
+ * - Unique identifier for the charge.
312
292
  */
313
- message?: string;
293
+ _id?: string;
294
+ /**
295
+ * - The type of entity associated with the
296
+ * charge (e.g., 'extension', 'subscription').
297
+ */
298
+ entity_type?: string;
299
+ /**
300
+ * - Unique identifier for the entity associated
301
+ * with the charge.
302
+ */
303
+ entity_id?: string;
304
+ /**
305
+ * - The name of the charge.
306
+ */
307
+ name?: string;
308
+ /**
309
+ * - Description of the charge term.
310
+ */
311
+ term?: string;
312
+ /**
313
+ * - The type of charge (e.g., 'standalone',
314
+ * 'recurring').
315
+ */
316
+ charge_type?: string;
317
+ /**
318
+ * - The pricing model for the charge (e.g.,
319
+ * 'one_time', 'recurring').
320
+ */
321
+ pricing_type?: string;
322
+ price?: EntityChargePrice;
323
+ recurring?: ChargeRecurring;
324
+ /**
325
+ * - Current status of the charge.
326
+ */
327
+ status?: string;
328
+ /**
329
+ * - Maximum amount that can be charged, if applicable.
330
+ */
331
+ capped_amount?: number;
332
+ /**
333
+ * - Date and time when the charge was activated.
334
+ */
335
+ activated_on?: string;
336
+ /**
337
+ * - Date and time when the charge was cancelled.
338
+ */
339
+ cancelled_on?: string;
340
+ /**
341
+ * - Date and time when the charge was billed.
342
+ */
343
+ billing_date?: string;
344
+ current_period?: SubscriptionTrialPeriod;
345
+ /**
346
+ * - Date and time when the charge details were
347
+ * last modified.
348
+ */
349
+ modified_at?: string;
350
+ /**
351
+ * - Date and time when the charge was created.
352
+ */
353
+ created_at?: string;
354
+ /**
355
+ * - Indicates whether the charge is for testing purposes.
356
+ */
357
+ is_test?: boolean;
358
+ /**
359
+ * - Company id.
360
+ */
361
+ company_id?: string;
362
+ /**
363
+ * - Additional metadata associated with the charge.
364
+ */
365
+ meta?: any;
366
+ /**
367
+ * - Internal version key for the charge record.
368
+ */
369
+ __v?: number;
314
370
  };
315
371
  /** @returns {ResourceNotFound} */
316
372
  declare function ResourceNotFound(): ResourceNotFound;
@@ -319,26 +375,74 @@ type ResourceNotFound = {
319
375
  * - Resource not found with {id}
320
376
  */
321
377
  message?: string;
378
+ code?: any;
379
+ success?: any;
380
+ };
381
+ /** @returns {CreateOneTimeCharge} */
382
+ declare function CreateOneTimeCharge(): CreateOneTimeCharge;
383
+ type CreateOneTimeCharge = {
322
384
  /**
323
- * - The HTTP status code associated with the error
385
+ * - The name of the one-time charge to be created.
386
+ */
387
+ name?: string;
388
+ charge?: OneTimeChargeItem;
389
+ /**
390
+ * - Indicates whether the charge creation is for
391
+ * testing purposes.
324
392
  */
325
- code?: number;
393
+ is_test?: boolean;
326
394
  /**
327
- * - Indicates if the request was successful
395
+ * - URL to which the user will be redirected
396
+ * after creating the charge.
328
397
  */
329
- success?: boolean;
398
+ return_url?: string;
330
399
  };
331
- /** @returns {SubscriptionTrialPeriod} */
332
- declare function SubscriptionTrialPeriod(): SubscriptionTrialPeriod;
333
- type SubscriptionTrialPeriod = {
400
+ /** @returns {CreateOneTimeChargeResponse} */
401
+ declare function CreateOneTimeChargeResponse(): CreateOneTimeChargeResponse;
402
+ type CreateOneTimeChargeResponse = {
403
+ charge?: Charge;
334
404
  /**
335
- * - The start date and time of the trial period.
405
+ * - URL to which users are redirected to
406
+ * confirm or complete the payment or subscription process.
336
407
  */
337
- start_date?: string;
408
+ confirm_url?: string;
409
+ };
410
+ /** @returns {BadRequest} */
411
+ declare function BadRequest(): BadRequest;
412
+ type BadRequest = {
338
413
  /**
339
- * - The end date and time of the trial period.
414
+ * - Failure message.
340
415
  */
341
- end_date?: string;
416
+ message?: string;
417
+ };
418
+ /** @returns {CreateSubscriptionCharge} */
419
+ declare function CreateSubscriptionCharge(): CreateSubscriptionCharge;
420
+ type CreateSubscriptionCharge = {
421
+ /**
422
+ * - The name of the charge.
423
+ */
424
+ name: string;
425
+ trial_days?: number;
426
+ line_items: ChargeLineItem[];
427
+ /**
428
+ * - Indicates whether the charge is for testing purposes.
429
+ */
430
+ is_test?: boolean;
431
+ /**
432
+ * - The URL passed in request which extension
433
+ * expects in return.
434
+ */
435
+ return_url: string;
436
+ };
437
+ /** @returns {CreateSubscriptionResponse} */
438
+ declare function CreateSubscriptionResponse(): CreateSubscriptionResponse;
439
+ type CreateSubscriptionResponse = {
440
+ subscription?: EntitySubscription;
441
+ /**
442
+ * - URL to which users are redirected to
443
+ * confirm or complete the payment or subscription process.
444
+ */
445
+ confirm_url?: string;
342
446
  };
343
447
  /** @returns {EntityChargePrice} */
344
448
  declare function EntityChargePrice(): EntityChargePrice;
@@ -352,6 +456,29 @@ type EntityChargePrice = {
352
456
  */
353
457
  currency_code?: string;
354
458
  };
459
+ /** @returns {ChargeRecurring} */
460
+ declare function ChargeRecurring(): ChargeRecurring;
461
+ type ChargeRecurring = {
462
+ interval?: string;
463
+ interval_time?: number;
464
+ };
465
+ /** @returns {SubscriptionTrialPeriod} */
466
+ declare function SubscriptionTrialPeriod(): SubscriptionTrialPeriod;
467
+ type SubscriptionTrialPeriod = {
468
+ /**
469
+ * - The start date and time of the trial period.
470
+ */
471
+ start_date?: string;
472
+ /**
473
+ * - The end date and time of the trial period.
474
+ */
475
+ end_date?: string;
476
+ };
477
+ /** @returns {Charge} */
478
+ declare function Charge(): Charge;
479
+ type Charge = {
480
+ final_charge?: OneTimeChargeEntity;
481
+ };
355
482
  /** @returns {OneTimeChargeItem} */
356
483
  declare function OneTimeChargeItem(): OneTimeChargeItem;
357
484
  type OneTimeChargeItem = {
@@ -370,12 +497,12 @@ type OneTimeChargeItem = {
370
497
  price?: EntityChargePrice;
371
498
  /**
372
499
  * - The maximum amount that can be charged
373
- * for a particular service or item
500
+ * for this item, if applicable.
374
501
  */
375
502
  capped_amount?: number;
376
503
  /**
377
- * - Indicates whether the operation or data is in
378
- * a test mode.
504
+ * - Indicates whether the charge item is for
505
+ * testing purposes.
379
506
  */
380
507
  is_test?: boolean;
381
508
  /**
@@ -383,120 +510,83 @@ type OneTimeChargeItem = {
383
510
  */
384
511
  metadata?: any;
385
512
  };
386
- /** @returns {CreateOneTimeCharge} */
387
- declare function CreateOneTimeCharge(): CreateOneTimeCharge;
388
- type CreateOneTimeCharge = {
389
- /**
390
- * - The name of the one-time charge to be created.
391
- */
392
- name?: string;
393
- charge?: OneTimeChargeItem;
513
+ /** @returns {ChargeLineItem} */
514
+ declare function ChargeLineItem(): ChargeLineItem;
515
+ type ChargeLineItem = {
394
516
  /**
395
- * - Indicates whether the operation or data is in
396
- * a test mode.
517
+ * - Its name of the extension plan.
397
518
  */
398
- is_test?: boolean;
519
+ name: string;
399
520
  /**
400
- * - URL to which the user will be redirected
401
- * after creating the charge.
521
+ * - It indicates how it will be charged.
402
522
  */
403
- return_url?: string;
404
- };
405
- /** @returns {ChargeRecurring} */
406
- declare function ChargeRecurring(): ChargeRecurring;
407
- type ChargeRecurring = {
523
+ term: string;
408
524
  /**
409
- * - The interval at which the recurring charge is
410
- * applied. Examples include "month", "year", etc.
525
+ * - It indicates the extension subscription
526
+ * will be auto renewed timely.
411
527
  */
412
- interval?: string;
413
- interval_time?: number;
528
+ pricing_type: string;
529
+ price: EntityChargePrice;
530
+ recurring?: EntityChargeRecurring;
531
+ capped_amount?: number;
532
+ trial_days?: number;
533
+ is_test?: boolean;
534
+ metadata?: any;
414
535
  };
415
- /** @returns {ChargeDetails} */
416
- declare function ChargeDetails(): ChargeDetails;
417
- type ChargeDetails = {
536
+ /** @returns {EntitySubscription} */
537
+ declare function EntitySubscription(): EntitySubscription;
538
+ type EntitySubscription = {
418
539
  /**
419
- * - Unique identifier for the charge.
540
+ * - Unique identifier for the subscription charge
420
541
  */
421
542
  _id?: string;
422
543
  /**
423
- * - Specifies the type of entity related to
424
- * the operation, such as 'extension' or 'subscription'
544
+ * - ID of the product suit associated with
545
+ * the charge
425
546
  */
426
- entity_type?: string;
547
+ product_suit_id?: string;
427
548
  /**
428
- * - Unique identifier for the entity (eg. extension)
549
+ * - Unique identifier for the entity
429
550
  */
430
551
  entity_id?: string;
431
552
  /**
432
- * - The name of the extension plan
433
- */
434
- name?: string;
435
- /**
436
- * - Description of the charge term.
437
- */
438
- term?: string;
439
- /**
440
- * - The type of charge (e.g., 'standalone',
441
- * 'recurring').
553
+ * - Type of entity (e.g., subscription, extension)
442
554
  */
443
- charge_type?: string;
555
+ entity_type?: string;
444
556
  /**
445
- * - The pricing model for the charge (e.g.,
446
- * 'one_time', 'recurring').
557
+ * - Name of the subscription charge
447
558
  */
448
- pricing_type?: string;
449
- price?: EntityChargePrice;
450
- recurring?: ChargeRecurring;
559
+ name?: string;
451
560
  /**
452
- * - Current status of the charge.
561
+ * - Current status of the subscription charge
453
562
  */
454
563
  status?: string;
455
564
  /**
456
- * - The maximum amount that can be charged
457
- * for a particular service or item
458
- */
459
- capped_amount?: number;
460
- /**
461
- * - Date and time when the charge was activated.
462
- */
463
- activated_on?: string;
464
- /**
465
- * - Date and time when the charge was cancelled.
565
+ * - Number of trial days provided
466
566
  */
467
- cancelled_on?: string;
468
- /**
469
- * - The date when the billing occurred. This
470
- * field is optional and may be null if the billing date is not specified.
471
- */
472
- billing_date?: string;
473
- current_period?: SubscriptionTrialPeriod;
567
+ trial_days?: number;
474
568
  /**
475
- * - Date and time when the charge details were
476
- * last modified.
569
+ * - Indicates if the charge is for testing purposes
477
570
  */
478
- modified_at?: string;
571
+ is_test?: boolean;
479
572
  /**
480
- * - Date and time when the charge was created.
573
+ * - Timestamp when the charge was created
481
574
  */
482
575
  created_at?: string;
483
576
  /**
484
- * - Indicates whether the operation or data is in
485
- * a test mode.
486
- */
487
- is_test?: boolean;
488
- /**
489
- * - The unique identifier of the company.
577
+ * - Timestamp when the charge was last modified
490
578
  */
491
- company_id?: string;
579
+ modified_at?: string;
492
580
  /**
493
- * - Additional metadata associated with the charge.
581
+ * - Unique Identifier of the company
494
582
  */
495
- meta?: any;
583
+ subscriber_id?: string;
584
+ line_items?: EntityChargeDetails[];
496
585
  /**
497
- * - Internal version key for the charge record.
586
+ * - The URL passed in request which extension
587
+ * expects in return.
498
588
  */
499
- __v?: number;
589
+ return_url?: string;
500
590
  };
501
591
  /** @returns {OneTimeChargeEntity} */
502
592
  declare function OneTimeChargeEntity(): OneTimeChargeEntity;
@@ -511,13 +601,13 @@ type OneTimeChargeEntity = {
511
601
  */
512
602
  charge_type?: string;
513
603
  /**
514
- * - The maximum amount that can be charged
515
- * for a particular service or item
604
+ * - Maximum amount that can be charged. If
605
+ * no cap, the value should be 0.
516
606
  */
517
607
  capped_amount?: number;
518
608
  /**
519
- * - The date when the billing occurred. This
520
- * field is optional and may be null if the billing date is not specified.
609
+ * - Date when the charge was billed. Null if
610
+ * not yet billed.
521
611
  */
522
612
  billing_date?: string;
523
613
  /**
@@ -542,7 +632,8 @@ type OneTimeChargeEntity = {
542
632
  */
543
633
  name?: string;
544
634
  /**
545
- * - Current status of the charge (e.g., 'pending').
635
+ * - Current status of the charge (e.g., 'pending',
636
+ * 'completed').
546
637
  */
547
638
  status?: string;
548
639
  /**
@@ -564,8 +655,7 @@ type OneTimeChargeEntity = {
564
655
  */
565
656
  return_url?: string;
566
657
  /**
567
- * - Indicates whether the operation or data is in
568
- * a test mode.
658
+ * - Indicates whether the charge is for testing purposes.
569
659
  */
570
660
  is_test?: boolean;
571
661
  /**
@@ -573,17 +663,18 @@ type OneTimeChargeEntity = {
573
663
  */
574
664
  pricing_type?: string;
575
665
  /**
576
- * - The unique identifier for the company in
577
- * the system.
666
+ * - Unique identifier for the subscriber
667
+ * associated with the charge.
578
668
  */
579
669
  subscriber_id?: string;
580
670
  /**
581
- * - Specifies the type of entity related to
582
- * the operation, such as 'extension' or 'subscription'
671
+ * - Type of the entity related to the charge
672
+ * (e.g., 'subscription', 'user').
583
673
  */
584
674
  entity_type?: string;
585
675
  /**
586
- * - Unique identifier for the entity (eg. extension)
676
+ * - Unique identifier for the entity associated
677
+ * with the charge.
587
678
  */
588
679
  entity_id?: string;
589
680
  /**
@@ -592,120 +683,46 @@ type OneTimeChargeEntity = {
592
683
  meta?: any;
593
684
  price?: EntityChargePrice;
594
685
  };
595
- /** @returns {CreateOneTimeChargeResponseSchemas} */
596
- declare function CreateOneTimeChargeResponseSchemas(): CreateOneTimeChargeResponseSchemas;
597
- type CreateOneTimeChargeResponseSchemas = {
598
- charge?: Charge;
599
- /**
600
- * - URL to which users are redirected to
601
- * confirm or complete the payment or subscription process.
602
- */
603
- confirm_url?: string;
604
- };
605
- /** @returns {Charge} */
606
- declare function Charge(): Charge;
607
- type Charge = {
608
- final_charge?: OneTimeChargeEntity;
609
- };
610
686
  /** @returns {EntityChargeRecurring} */
611
687
  declare function EntityChargeRecurring(): EntityChargeRecurring;
612
688
  type EntityChargeRecurring = {
613
689
  /**
614
- * - The interval at which the recurring charge is
615
- * applied. Examples include "month", "year", etc.
690
+ * - The interval of the subscription.
616
691
  */
617
692
  interval: string;
618
693
  };
619
- /** @returns {ChargeLineItem} */
620
- declare function ChargeLineItem(): ChargeLineItem;
621
- type ChargeLineItem = {
622
- /**
623
- * - Its name of the extension plan.
624
- */
625
- name: string;
626
- /**
627
- * - It indicates how it will be charged.
628
- */
629
- term: string;
630
- /**
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.
634
- */
635
- pricing_type: string;
636
- price: EntityChargePrice;
637
- recurring?: EntityChargeRecurring;
638
- /**
639
- * - The maximum amount that can be charged
640
- * for a particular service or item
641
- */
642
- capped_amount?: number;
643
- /**
644
- * - The number of days allocated for the trial period
645
- */
646
- trial_days?: number;
647
- /**
648
- * - Indicates whether the operation or data is in
649
- * a test mode.
650
- */
651
- is_test?: boolean;
652
- metadata?: any;
653
- };
654
- /** @returns {CreateSubscriptionCharge} */
655
- declare function CreateSubscriptionCharge(): CreateSubscriptionCharge;
656
- type CreateSubscriptionCharge = {
657
- /**
658
- * - The name of the extension plan
659
- */
660
- name: string;
661
- /**
662
- * - The number of days allocated for the trial period
663
- */
664
- trial_days?: number;
665
- line_items: ChargeLineItem[];
666
- /**
667
- * - Indicates whether the operation or data is in
668
- * a test mode.
669
- */
670
- is_test?: boolean;
671
- /**
672
- * - The URL to which the user will be redirected
673
- * after the subscription process is complete.
674
- */
675
- return_url: string;
676
- };
677
694
  /** @returns {EntityChargeDetails} */
678
695
  declare function EntityChargeDetails(): EntityChargeDetails;
679
696
  type EntityChargeDetails = {
680
697
  /**
681
- * - The unique identifier for the charge.
698
+ * - Unique identifier for the charge.
682
699
  */
683
700
  _id?: string;
684
701
  /**
685
- * - The unique identifier of the subscription.
702
+ * - Unique identifier of the extension subscription.
686
703
  */
687
704
  subscription_id?: string;
688
705
  /**
689
- * - The unique identifier for the company in
690
- * the system.
706
+ * - Unique identifier of the
707
+ * subscriber/company who installed extension subscription.
691
708
  */
692
709
  subscriber_id?: string;
693
710
  /**
694
- * - Specifies the type of entity related to
695
- * the operation, such as 'extension' or 'subscription'
711
+ * - The type of entity associated with the
712
+ * charge (e.g., 'extension', 'subscription').
696
713
  */
697
714
  entity_type?: string;
698
715
  /**
699
- * - Unique identifier for the entity (eg. extension)
716
+ * - Unique identifier for the entity associated
717
+ * with the charge.
700
718
  */
701
719
  entity_id?: string;
702
720
  /**
703
- * - The name of the extension plan
721
+ * - The name of the charge.
704
722
  */
705
723
  name?: string;
706
724
  /**
707
- * - Detailed description of the terms and conditions
708
- * associated with the charge.
725
+ * - Description of the charge term.
709
726
  */
710
727
  term?: string;
711
728
  /**
@@ -725,8 +742,7 @@ type EntityChargeDetails = {
725
742
  */
726
743
  status?: string;
727
744
  /**
728
- * - The maximum amount that can be charged
729
- * for a particular service or item
745
+ * - Maximum amount that can be charged, if applicable.
730
746
  */
731
747
  capped_amount?: number;
732
748
  /**
@@ -738,8 +754,7 @@ type EntityChargeDetails = {
738
754
  */
739
755
  cancelled_on?: string;
740
756
  /**
741
- * - The date when the billing occurred. This
742
- * field is optional and may be null if the billing date is not specified.
757
+ * - Date and time when the charge was billed.
743
758
  */
744
759
  billing_date?: string;
745
760
  current_period?: SubscriptionTrialPeriod;
@@ -753,12 +768,11 @@ type EntityChargeDetails = {
753
768
  */
754
769
  created_at?: string;
755
770
  /**
756
- * - Indicates whether the operation or data is in
757
- * a test mode.
771
+ * - Indicates whether the charge is for testing purposes.
758
772
  */
759
773
  is_test?: boolean;
760
774
  /**
761
- * - The unique identifier of the company.
775
+ * - Company id.
762
776
  */
763
777
  company_id?: string;
764
778
  /**
@@ -770,72 +784,3 @@ type EntityChargeDetails = {
770
784
  */
771
785
  __v?: number;
772
786
  };
773
- /** @returns {EntitySubscription} */
774
- declare function EntitySubscription(): EntitySubscription;
775
- type EntitySubscription = {
776
- /**
777
- * - Unique identifier for the subscription charge
778
- */
779
- _id?: string;
780
- /**
781
- * - A unique identifier for a product
782
- * suite, which represents a specific collection or group of products within
783
- * the system.
784
- */
785
- product_suit_id?: string;
786
- /**
787
- * - Unique identifier for the entity (eg. extension)
788
- */
789
- entity_id?: string;
790
- /**
791
- * - Specifies the type of entity related to
792
- * the operation, such as 'extension' or 'subscription'
793
- */
794
- entity_type?: string;
795
- /**
796
- * - The name of the extension plan
797
- */
798
- name?: string;
799
- /**
800
- * - Current status of the subscription charge
801
- */
802
- status?: string;
803
- /**
804
- * - The number of days allocated for the trial period
805
- */
806
- trial_days?: number;
807
- /**
808
- * - Indicates whether the operation or data is in
809
- * a test mode.
810
- */
811
- is_test?: boolean;
812
- /**
813
- * - Timestamp when the charge was created
814
- */
815
- created_at?: string;
816
- /**
817
- * - Timestamp when the charge was last modified
818
- */
819
- modified_at?: string;
820
- /**
821
- * - The unique identifier for the company in
822
- * the system.
823
- */
824
- subscriber_id?: string;
825
- line_items?: EntityChargeDetails[];
826
- /**
827
- * - The URL passed in request which extension
828
- * expects in return.
829
- */
830
- return_url?: string;
831
- };
832
- /** @returns {CreateSubscription} */
833
- declare function CreateSubscription(): CreateSubscription;
834
- type CreateSubscription = {
835
- subscription?: EntitySubscription;
836
- /**
837
- * - URL to which users are redirected to post
838
- * initiation of extension installation.
839
- */
840
- confirm_url?: string;
841
- };