@equisoft/billing-sdk 3.7.1-snapshot.20260629135524 → 3.8.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 (273) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -3
  3. package/dist/apis/AddonV1Api.d.ts +1 -1
  4. package/dist/apis/AddonV1Api.js +1 -1
  5. package/dist/apis/ChargebeeV1Api.d.ts +1 -1
  6. package/dist/apis/ChargebeeV1Api.js +1 -1
  7. package/dist/apis/DistributorV1Api.d.ts +12 -2
  8. package/dist/apis/DistributorV1Api.js +42 -1
  9. package/dist/apis/OrganizationV1Api.d.ts +1 -1
  10. package/dist/apis/OrganizationV1Api.js +1 -1
  11. package/dist/apis/UserV1Api.d.ts +1 -1
  12. package/dist/apis/UserV1Api.js +1 -1
  13. package/dist/esm/apis/AddonV1Api.d.ts +1 -1
  14. package/dist/esm/apis/AddonV1Api.js +1 -1
  15. package/dist/esm/apis/ChargebeeV1Api.d.ts +1 -1
  16. package/dist/esm/apis/ChargebeeV1Api.js +1 -1
  17. package/dist/esm/apis/DistributorV1Api.d.ts +12 -2
  18. package/dist/esm/apis/DistributorV1Api.js +43 -2
  19. package/dist/esm/apis/OrganizationV1Api.d.ts +1 -1
  20. package/dist/esm/apis/OrganizationV1Api.js +1 -1
  21. package/dist/esm/apis/UserV1Api.d.ts +1 -1
  22. package/dist/esm/apis/UserV1Api.js +1 -1
  23. package/dist/esm/models/Country.d.ts +1 -1
  24. package/dist/esm/models/Country.js +1 -1
  25. package/dist/esm/models/ErrorCodes.d.ts +1 -1
  26. package/dist/esm/models/ErrorCodes.js +1 -1
  27. package/dist/esm/models/ErrorSchema.d.ts +1 -1
  28. package/dist/esm/models/ErrorSchema.js +1 -1
  29. package/dist/esm/models/SubscriptionCreationMode.d.ts +1 -1
  30. package/dist/esm/models/SubscriptionCreationMode.js +1 -1
  31. package/dist/esm/models/V1Addon.d.ts +1 -1
  32. package/dist/esm/models/V1Addon.js +1 -1
  33. package/dist/esm/models/V1AddonList.d.ts +1 -1
  34. package/dist/esm/models/V1AddonList.js +1 -1
  35. package/dist/esm/models/V1BillingProfile.d.ts +1 -1
  36. package/dist/esm/models/V1BillingProfile.js +1 -1
  37. package/dist/esm/models/V1BillingRule.d.ts +2 -8
  38. package/dist/esm/models/V1BillingRule.js +3 -5
  39. package/dist/esm/models/V1BillingStatus.d.ts +1 -1
  40. package/dist/esm/models/V1BillingStatus.js +1 -1
  41. package/dist/esm/models/V1BillingType.d.ts +1 -1
  42. package/dist/esm/models/V1BillingType.js +1 -1
  43. package/dist/esm/models/V1ChargebeeV1NotPaidInvoice.d.ts +1 -1
  44. package/dist/esm/models/V1ChargebeeV1NotPaidInvoice.js +1 -1
  45. package/dist/esm/models/V1ChargebeeV1PaymentDueInvoice.d.ts +1 -1
  46. package/dist/esm/models/V1ChargebeeV1PaymentDueInvoice.js +1 -1
  47. package/dist/esm/models/V1ChargebeeV1PortalSession.d.ts +1 -1
  48. package/dist/esm/models/V1ChargebeeV1PortalSession.js +1 -1
  49. package/dist/esm/models/V1ChargebeeV1UnpaidInvoice.d.ts +1 -1
  50. package/dist/esm/models/V1ChargebeeV1UnpaidInvoice.js +1 -1
  51. package/dist/esm/models/V1ChargebeeWebhookEvent.d.ts +1 -1
  52. package/dist/esm/models/V1ChargebeeWebhookEvent.js +1 -1
  53. package/dist/esm/models/V1ChargebeeWebhookEventContent.d.ts +1 -1
  54. package/dist/esm/models/V1ChargebeeWebhookEventContent.js +1 -1
  55. package/dist/esm/models/V1ChargebeeWebhookEventCustomer.d.ts +1 -1
  56. package/dist/esm/models/V1ChargebeeWebhookEventCustomer.js +1 -1
  57. package/dist/esm/models/V1CollectChargebeeV1Payment.d.ts +1 -1
  58. package/dist/esm/models/V1CollectChargebeeV1Payment.js +1 -1
  59. package/dist/esm/models/V1CreateBillingRulePayload.d.ts +1 -1
  60. package/dist/esm/models/V1CreateBillingRulePayload.js +1 -1
  61. package/dist/esm/models/V1CreateChargebeeV1PortalSessionPayload.d.ts +1 -1
  62. package/dist/esm/models/V1CreateChargebeeV1PortalSessionPayload.js +1 -1
  63. package/dist/esm/models/V1CreateDistributorPayload.d.ts +1 -1
  64. package/dist/esm/models/V1CreateDistributorPayload.js +1 -1
  65. package/dist/esm/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.d.ts +1 -1
  66. package/dist/esm/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.js +1 -1
  67. package/dist/esm/models/V1DefaultBillingRule.d.ts +45 -0
  68. package/dist/esm/models/V1DefaultBillingRule.js +52 -0
  69. package/dist/esm/models/V1DefaultBillingRules.d.ts +33 -0
  70. package/dist/esm/models/V1DefaultBillingRules.js +44 -0
  71. package/dist/esm/models/V1Distributor.d.ts +1 -7
  72. package/dist/esm/models/V1Distributor.js +1 -3
  73. package/dist/esm/models/V1DistributorList.d.ts +1 -1
  74. package/dist/esm/models/V1DistributorList.js +1 -1
  75. package/dist/esm/models/V1Organization.d.ts +1 -1
  76. package/dist/esm/models/V1Organization.js +1 -1
  77. package/dist/esm/models/V1OrganizationBillingUser.d.ts +1 -1
  78. package/dist/esm/models/V1OrganizationBillingUser.js +1 -1
  79. package/dist/esm/models/V1OrganizationBillingUsers.d.ts +1 -1
  80. package/dist/esm/models/V1OrganizationBillingUsers.js +1 -1
  81. package/dist/esm/models/V1OrganizationChargebeeV1Status.d.ts +1 -1
  82. package/dist/esm/models/V1OrganizationChargebeeV1Status.js +1 -1
  83. package/dist/esm/models/V1OrganizationStatus.d.ts +1 -1
  84. package/dist/esm/models/V1OrganizationStatus.js +1 -1
  85. package/dist/esm/models/V1OrganizationStatusChargebeeV1Addon.d.ts +1 -1
  86. package/dist/esm/models/V1OrganizationStatusChargebeeV1Addon.js +1 -1
  87. package/dist/esm/models/V1OrganizationStatusChargebeeV1User.d.ts +1 -1
  88. package/dist/esm/models/V1OrganizationStatusChargebeeV1User.js +1 -1
  89. package/dist/esm/models/V1OrganizationStatusChargebeeV1UserBillingStatus.d.ts +1 -1
  90. package/dist/esm/models/V1OrganizationStatusChargebeeV1UserBillingStatus.js +1 -1
  91. package/dist/esm/models/V1Profile.d.ts +1 -1
  92. package/dist/esm/models/V1Profile.js +1 -1
  93. package/dist/esm/models/V1SetChargebeeV1BillingPayorPayload.d.ts +1 -1
  94. package/dist/esm/models/V1SetChargebeeV1BillingPayorPayload.js +1 -1
  95. package/dist/esm/models/V1SetChargebeeV1Payload.d.ts +1 -1
  96. package/dist/esm/models/V1SetChargebeeV1Payload.js +1 -1
  97. package/dist/esm/models/V1SetOrganisationDistributorPayload.d.ts +1 -1
  98. package/dist/esm/models/V1SetOrganisationDistributorPayload.js +1 -1
  99. package/dist/esm/models/V1SetUserBillingProfilePayload.d.ts +1 -1
  100. package/dist/esm/models/V1SetUserBillingProfilePayload.js +1 -1
  101. package/dist/esm/models/V1SetUserNonBillablePayload.d.ts +1 -1
  102. package/dist/esm/models/V1SetUserNonBillablePayload.js +1 -1
  103. package/dist/esm/models/V1UpdateBillingRulePayload.d.ts +1 -1
  104. package/dist/esm/models/V1UpdateBillingRulePayload.js +1 -1
  105. package/dist/esm/models/V1UpdateBillingRulePriorityPayload.d.ts +1 -1
  106. package/dist/esm/models/V1UpdateBillingRulePriorityPayload.js +1 -1
  107. package/dist/esm/models/V1UpdateDistributorPayload.d.ts +1 -1
  108. package/dist/esm/models/V1UpdateDistributorPayload.js +1 -1
  109. package/dist/esm/models/V1User.d.ts +1 -1
  110. package/dist/esm/models/V1User.js +1 -1
  111. package/dist/esm/models/V1UserServiceStatus.d.ts +1 -1
  112. package/dist/esm/models/V1UserServiceStatus.js +1 -1
  113. package/dist/esm/models/V1UserStatus.d.ts +1 -1
  114. package/dist/esm/models/V1UserStatus.js +1 -1
  115. package/dist/esm/models/index.d.ts +2 -0
  116. package/dist/esm/models/index.js +2 -0
  117. package/dist/esm/runtime.d.ts +1 -1
  118. package/dist/esm/runtime.js +1 -1
  119. package/dist/models/Country.d.ts +1 -1
  120. package/dist/models/Country.js +1 -1
  121. package/dist/models/ErrorCodes.d.ts +1 -1
  122. package/dist/models/ErrorCodes.js +1 -1
  123. package/dist/models/ErrorSchema.d.ts +1 -1
  124. package/dist/models/ErrorSchema.js +1 -1
  125. package/dist/models/SubscriptionCreationMode.d.ts +1 -1
  126. package/dist/models/SubscriptionCreationMode.js +1 -1
  127. package/dist/models/V1Addon.d.ts +1 -1
  128. package/dist/models/V1Addon.js +1 -1
  129. package/dist/models/V1AddonList.d.ts +1 -1
  130. package/dist/models/V1AddonList.js +1 -1
  131. package/dist/models/V1BillingProfile.d.ts +1 -1
  132. package/dist/models/V1BillingProfile.js +1 -1
  133. package/dist/models/V1BillingRule.d.ts +2 -8
  134. package/dist/models/V1BillingRule.js +3 -5
  135. package/dist/models/V1BillingStatus.d.ts +1 -1
  136. package/dist/models/V1BillingStatus.js +1 -1
  137. package/dist/models/V1BillingType.d.ts +1 -1
  138. package/dist/models/V1BillingType.js +1 -1
  139. package/dist/models/V1ChargebeeV1NotPaidInvoice.d.ts +1 -1
  140. package/dist/models/V1ChargebeeV1NotPaidInvoice.js +1 -1
  141. package/dist/models/V1ChargebeeV1PaymentDueInvoice.d.ts +1 -1
  142. package/dist/models/V1ChargebeeV1PaymentDueInvoice.js +1 -1
  143. package/dist/models/V1ChargebeeV1PortalSession.d.ts +1 -1
  144. package/dist/models/V1ChargebeeV1PortalSession.js +1 -1
  145. package/dist/models/V1ChargebeeV1UnpaidInvoice.d.ts +1 -1
  146. package/dist/models/V1ChargebeeV1UnpaidInvoice.js +1 -1
  147. package/dist/models/V1ChargebeeWebhookEvent.d.ts +1 -1
  148. package/dist/models/V1ChargebeeWebhookEvent.js +1 -1
  149. package/dist/models/V1ChargebeeWebhookEventContent.d.ts +1 -1
  150. package/dist/models/V1ChargebeeWebhookEventContent.js +1 -1
  151. package/dist/models/V1ChargebeeWebhookEventCustomer.d.ts +1 -1
  152. package/dist/models/V1ChargebeeWebhookEventCustomer.js +1 -1
  153. package/dist/models/V1CollectChargebeeV1Payment.d.ts +1 -1
  154. package/dist/models/V1CollectChargebeeV1Payment.js +1 -1
  155. package/dist/models/V1CreateBillingRulePayload.d.ts +1 -1
  156. package/dist/models/V1CreateBillingRulePayload.js +1 -1
  157. package/dist/models/V1CreateChargebeeV1PortalSessionPayload.d.ts +1 -1
  158. package/dist/models/V1CreateChargebeeV1PortalSessionPayload.js +1 -1
  159. package/dist/models/V1CreateDistributorPayload.d.ts +1 -1
  160. package/dist/models/V1CreateDistributorPayload.js +1 -1
  161. package/dist/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.d.ts +1 -1
  162. package/dist/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.js +1 -1
  163. package/dist/models/V1DefaultBillingRule.d.ts +45 -0
  164. package/dist/models/V1DefaultBillingRule.js +59 -0
  165. package/dist/models/V1DefaultBillingRules.d.ts +33 -0
  166. package/dist/models/V1DefaultBillingRules.js +51 -0
  167. package/dist/models/V1Distributor.d.ts +1 -7
  168. package/dist/models/V1Distributor.js +1 -3
  169. package/dist/models/V1DistributorList.d.ts +1 -1
  170. package/dist/models/V1DistributorList.js +1 -1
  171. package/dist/models/V1Organization.d.ts +1 -1
  172. package/dist/models/V1Organization.js +1 -1
  173. package/dist/models/V1OrganizationBillingUser.d.ts +1 -1
  174. package/dist/models/V1OrganizationBillingUser.js +1 -1
  175. package/dist/models/V1OrganizationBillingUsers.d.ts +1 -1
  176. package/dist/models/V1OrganizationBillingUsers.js +1 -1
  177. package/dist/models/V1OrganizationChargebeeV1Status.d.ts +1 -1
  178. package/dist/models/V1OrganizationChargebeeV1Status.js +1 -1
  179. package/dist/models/V1OrganizationStatus.d.ts +1 -1
  180. package/dist/models/V1OrganizationStatus.js +1 -1
  181. package/dist/models/V1OrganizationStatusChargebeeV1Addon.d.ts +1 -1
  182. package/dist/models/V1OrganizationStatusChargebeeV1Addon.js +1 -1
  183. package/dist/models/V1OrganizationStatusChargebeeV1User.d.ts +1 -1
  184. package/dist/models/V1OrganizationStatusChargebeeV1User.js +1 -1
  185. package/dist/models/V1OrganizationStatusChargebeeV1UserBillingStatus.d.ts +1 -1
  186. package/dist/models/V1OrganizationStatusChargebeeV1UserBillingStatus.js +1 -1
  187. package/dist/models/V1Profile.d.ts +1 -1
  188. package/dist/models/V1Profile.js +1 -1
  189. package/dist/models/V1SetChargebeeV1BillingPayorPayload.d.ts +1 -1
  190. package/dist/models/V1SetChargebeeV1BillingPayorPayload.js +1 -1
  191. package/dist/models/V1SetChargebeeV1Payload.d.ts +1 -1
  192. package/dist/models/V1SetChargebeeV1Payload.js +1 -1
  193. package/dist/models/V1SetOrganisationDistributorPayload.d.ts +1 -1
  194. package/dist/models/V1SetOrganisationDistributorPayload.js +1 -1
  195. package/dist/models/V1SetUserBillingProfilePayload.d.ts +1 -1
  196. package/dist/models/V1SetUserBillingProfilePayload.js +1 -1
  197. package/dist/models/V1SetUserNonBillablePayload.d.ts +1 -1
  198. package/dist/models/V1SetUserNonBillablePayload.js +1 -1
  199. package/dist/models/V1UpdateBillingRulePayload.d.ts +1 -1
  200. package/dist/models/V1UpdateBillingRulePayload.js +1 -1
  201. package/dist/models/V1UpdateBillingRulePriorityPayload.d.ts +1 -1
  202. package/dist/models/V1UpdateBillingRulePriorityPayload.js +1 -1
  203. package/dist/models/V1UpdateDistributorPayload.d.ts +1 -1
  204. package/dist/models/V1UpdateDistributorPayload.js +1 -1
  205. package/dist/models/V1User.d.ts +1 -1
  206. package/dist/models/V1User.js +1 -1
  207. package/dist/models/V1UserServiceStatus.d.ts +1 -1
  208. package/dist/models/V1UserServiceStatus.js +1 -1
  209. package/dist/models/V1UserStatus.d.ts +1 -1
  210. package/dist/models/V1UserStatus.js +1 -1
  211. package/dist/models/index.d.ts +2 -0
  212. package/dist/models/index.js +2 -0
  213. package/dist/runtime.d.ts +1 -1
  214. package/dist/runtime.js +1 -1
  215. package/docs/DistributorV1Api.md +63 -0
  216. package/docs/V1BillingRule.md +0 -2
  217. package/docs/V1DefaultBillingRule.md +38 -0
  218. package/docs/V1DefaultBillingRules.md +34 -0
  219. package/docs/V1Distributor.md +0 -2
  220. package/package.json +1 -1
  221. package/src/apis/AddonV1Api.ts +1 -1
  222. package/src/apis/ChargebeeV1Api.ts +1 -1
  223. package/src/apis/DistributorV1Api.ts +48 -1
  224. package/src/apis/OrganizationV1Api.ts +1 -1
  225. package/src/apis/UserV1Api.ts +1 -1
  226. package/src/models/Country.ts +1 -1
  227. package/src/models/ErrorCodes.ts +1 -1
  228. package/src/models/ErrorSchema.ts +1 -1
  229. package/src/models/SubscriptionCreationMode.ts +1 -1
  230. package/src/models/V1Addon.ts +1 -1
  231. package/src/models/V1AddonList.ts +1 -1
  232. package/src/models/V1BillingProfile.ts +1 -1
  233. package/src/models/V1BillingRule.ts +4 -12
  234. package/src/models/V1BillingStatus.ts +1 -1
  235. package/src/models/V1BillingType.ts +1 -1
  236. package/src/models/V1ChargebeeV1NotPaidInvoice.ts +1 -1
  237. package/src/models/V1ChargebeeV1PaymentDueInvoice.ts +1 -1
  238. package/src/models/V1ChargebeeV1PortalSession.ts +1 -1
  239. package/src/models/V1ChargebeeV1UnpaidInvoice.ts +1 -1
  240. package/src/models/V1ChargebeeWebhookEvent.ts +1 -1
  241. package/src/models/V1ChargebeeWebhookEventContent.ts +1 -1
  242. package/src/models/V1ChargebeeWebhookEventCustomer.ts +1 -1
  243. package/src/models/V1CollectChargebeeV1Payment.ts +1 -1
  244. package/src/models/V1CreateBillingRulePayload.ts +1 -1
  245. package/src/models/V1CreateChargebeeV1PortalSessionPayload.ts +1 -1
  246. package/src/models/V1CreateDistributorPayload.ts +1 -1
  247. package/src/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.ts +1 -1
  248. package/src/models/V1DefaultBillingRule.ts +92 -0
  249. package/src/models/V1DefaultBillingRules.ts +74 -0
  250. package/src/models/V1Distributor.ts +1 -9
  251. package/src/models/V1DistributorList.ts +1 -1
  252. package/src/models/V1Organization.ts +1 -1
  253. package/src/models/V1OrganizationBillingUser.ts +1 -1
  254. package/src/models/V1OrganizationBillingUsers.ts +1 -1
  255. package/src/models/V1OrganizationChargebeeV1Status.ts +1 -1
  256. package/src/models/V1OrganizationStatus.ts +1 -1
  257. package/src/models/V1OrganizationStatusChargebeeV1Addon.ts +1 -1
  258. package/src/models/V1OrganizationStatusChargebeeV1User.ts +1 -1
  259. package/src/models/V1OrganizationStatusChargebeeV1UserBillingStatus.ts +1 -1
  260. package/src/models/V1Profile.ts +1 -1
  261. package/src/models/V1SetChargebeeV1BillingPayorPayload.ts +1 -1
  262. package/src/models/V1SetChargebeeV1Payload.ts +1 -1
  263. package/src/models/V1SetOrganisationDistributorPayload.ts +1 -1
  264. package/src/models/V1SetUserBillingProfilePayload.ts +1 -1
  265. package/src/models/V1SetUserNonBillablePayload.ts +1 -1
  266. package/src/models/V1UpdateBillingRulePayload.ts +1 -1
  267. package/src/models/V1UpdateBillingRulePriorityPayload.ts +1 -1
  268. package/src/models/V1UpdateDistributorPayload.ts +1 -1
  269. package/src/models/V1User.ts +1 -1
  270. package/src/models/V1UserServiceStatus.ts +1 -1
  271. package/src/models/V1UserStatus.ts +1 -1
  272. package/src/models/index.ts +2 -0
  273. package/src/runtime.ts +1 -1
@@ -2,7 +2,7 @@
2
2
  * Billing
3
3
  * Micro-Service to handle billing
4
4
  *
5
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
5
+ * The version of the OpenAPI document: 3.8.0
6
6
  * Contact: customersuccess@equisoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Billing
6
6
  * Micro-Service to handle billing
7
7
  *
8
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
8
+ * The version of the OpenAPI document: 3.8.0
9
9
  * Contact: customersuccess@equisoft.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Billing
3
3
  * Micro-Service to handle billing
4
4
  *
5
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
5
+ * The version of the OpenAPI document: 3.8.0
6
6
  * Contact: customersuccess@equisoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Billing
6
6
  * Micro-Service to handle billing
7
7
  *
8
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
8
+ * The version of the OpenAPI document: 3.8.0
9
9
  * Contact: customersuccess@equisoft.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Billing
3
3
  * Micro-Service to handle billing
4
4
  *
5
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
5
+ * The version of the OpenAPI document: 3.8.0
6
6
  * Contact: customersuccess@equisoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Billing
6
6
  * Micro-Service to handle billing
7
7
  *
8
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
8
+ * The version of the OpenAPI document: 3.8.0
9
9
  * Contact: customersuccess@equisoft.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Billing
3
3
  * Micro-Service to handle billing
4
4
  *
5
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
5
+ * The version of the OpenAPI document: 3.8.0
6
6
  * Contact: customersuccess@equisoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Billing
6
6
  * Micro-Service to handle billing
7
7
  *
8
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
8
+ * The version of the OpenAPI document: 3.8.0
9
9
  * Contact: customersuccess@equisoft.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Billing
3
3
  * Micro-Service to handle billing
4
4
  *
5
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
5
+ * The version of the OpenAPI document: 3.8.0
6
6
  * Contact: customersuccess@equisoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Billing
6
6
  * Micro-Service to handle billing
7
7
  *
8
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
8
+ * The version of the OpenAPI document: 3.8.0
9
9
  * Contact: customersuccess@equisoft.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Billing
3
3
  * Micro-Service to handle billing
4
4
  *
5
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
5
+ * The version of the OpenAPI document: 3.8.0
6
6
  * Contact: customersuccess@equisoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Billing
6
6
  * Micro-Service to handle billing
7
7
  *
8
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
8
+ * The version of the OpenAPI document: 3.8.0
9
9
  * Contact: customersuccess@equisoft.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Billing
3
3
  * Micro-Service to handle billing
4
4
  *
5
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
5
+ * The version of the OpenAPI document: 3.8.0
6
6
  * Contact: customersuccess@equisoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Billing
6
6
  * Micro-Service to handle billing
7
7
  *
8
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
8
+ * The version of the OpenAPI document: 3.8.0
9
9
  * Contact: customersuccess@equisoft.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Billing
3
3
  * Micro-Service to handle billing
4
4
  *
5
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
5
+ * The version of the OpenAPI document: 3.8.0
6
6
  * Contact: customersuccess@equisoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Billing
6
6
  * Micro-Service to handle billing
7
7
  *
8
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
8
+ * The version of the OpenAPI document: 3.8.0
9
9
  * Contact: customersuccess@equisoft.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Billing
3
3
  * Micro-Service to handle billing
4
4
  *
5
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
5
+ * The version of the OpenAPI document: 3.8.0
6
6
  * Contact: customersuccess@equisoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Billing
6
6
  * Micro-Service to handle billing
7
7
  *
8
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
8
+ * The version of the OpenAPI document: 3.8.0
9
9
  * Contact: customersuccess@equisoft.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -20,6 +20,8 @@ export * from './V1CreateBillingRulePayload';
20
20
  export * from './V1CreateChargebeeV1PortalSessionPayload';
21
21
  export * from './V1CreateDistributorPayload';
22
22
  export * from './V1CreateOrUpdateChargebeeV1SubscriptionPayload';
23
+ export * from './V1DefaultBillingRule';
24
+ export * from './V1DefaultBillingRules';
23
25
  export * from './V1Distributor';
24
26
  export * from './V1DistributorList';
25
27
  export * from './V1Organization';
@@ -38,6 +38,8 @@ __exportStar(require("./V1CreateBillingRulePayload"), exports);
38
38
  __exportStar(require("./V1CreateChargebeeV1PortalSessionPayload"), exports);
39
39
  __exportStar(require("./V1CreateDistributorPayload"), exports);
40
40
  __exportStar(require("./V1CreateOrUpdateChargebeeV1SubscriptionPayload"), exports);
41
+ __exportStar(require("./V1DefaultBillingRule"), exports);
42
+ __exportStar(require("./V1DefaultBillingRules"), exports);
41
43
  __exportStar(require("./V1Distributor"), exports);
42
44
  __exportStar(require("./V1DistributorList"), exports);
43
45
  __exportStar(require("./V1Organization"), exports);
package/dist/runtime.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Billing
3
3
  * Micro-Service to handle billing
4
4
  *
5
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
5
+ * The version of the OpenAPI document: 3.8.0
6
6
  * Contact: customersuccess@equisoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/runtime.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Billing
6
6
  * Micro-Service to handle billing
7
7
  *
8
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
8
+ * The version of the OpenAPI document: 3.8.0
9
9
  * Contact: customersuccess@equisoft.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -8,6 +8,7 @@ All URIs are relative to *http://../..*
8
8
  | [**createDistributor**](DistributorV1Api.md#createdistributor) | **POST** /v1/distributors | Create a new distributor |
9
9
  | [**deleteBillingRule**](DistributorV1Api.md#deletebillingrule) | **DELETE** /v1/distributors/{code}/profiles/{profile}/billingRules/{uuid} | Delete a billing rule |
10
10
  | [**deleteDistributor**](DistributorV1Api.md#deletedistributor) | **DELETE** /v1/distributors/{code} | Delete a distributor and its non-shared billing rules |
11
+ | [**getDefaultBillingRules**](DistributorV1Api.md#getdefaultbillingrules) | **GET** /v1/distributors/defaultBillingRules | |
11
12
  | [**getDistributor**](DistributorV1Api.md#getdistributor) | **GET** /v1/distributors/{code} | Get billing information about a distributor |
12
13
  | [**listDistributors**](DistributorV1Api.md#listdistributors) | **GET** /v1/distributors | List all available distributors |
13
14
  | [**updateBillingRule**](DistributorV1Api.md#updatebillingrule) | **PUT** /v1/distributors/{code}/profiles/{profile}/billingRules/{uuid} | Update a billing rule\'s services and addons |
@@ -309,6 +310,68 @@ example().catch(console.error);
309
310
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
310
311
 
311
312
 
313
+ ## getDefaultBillingRules
314
+
315
+ > V1DefaultBillingRules getDefaultBillingRules()
316
+
317
+
318
+
319
+ ### Example
320
+
321
+ ```ts
322
+ import {
323
+ Configuration,
324
+ DistributorV1Api,
325
+ } from '@equisoft/billing-sdk';
326
+ import type { GetDefaultBillingRulesRequest } from '@equisoft/billing-sdk';
327
+
328
+ async function example() {
329
+ console.log("🚀 Testing @equisoft/billing-sdk SDK...");
330
+ const config = new Configuration({
331
+ // To configure OAuth2 access token for authorization: OAuth2 accessCode
332
+ accessToken: "YOUR ACCESS TOKEN",
333
+ });
334
+ const api = new DistributorV1Api(config);
335
+
336
+ try {
337
+ const data = await api.getDefaultBillingRules();
338
+ console.log(data);
339
+ } catch (error) {
340
+ console.error(error);
341
+ }
342
+ }
343
+
344
+ // Run the test
345
+ example().catch(console.error);
346
+ ```
347
+
348
+ ### Parameters
349
+
350
+ This endpoint does not need any parameter.
351
+
352
+ ### Return type
353
+
354
+ [**V1DefaultBillingRules**](V1DefaultBillingRules.md)
355
+
356
+ ### Authorization
357
+
358
+ [OAuth2 accessCode](../README.md#OAuth2-accessCode)
359
+
360
+ ### HTTP request headers
361
+
362
+ - **Content-Type**: Not defined
363
+ - **Accept**: `application/json`
364
+
365
+
366
+ ### HTTP response details
367
+ | Status code | Description | Response headers |
368
+ |-------------|-------------|------------------|
369
+ | **200** | Success | - |
370
+ | **500** | An unexpected error happened. | - |
371
+
372
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
373
+
374
+
312
375
  ## getDistributor
313
376
 
314
377
  > V1Distributor getDistributor(code)
@@ -6,7 +6,6 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `_default` | boolean
10
9
  `uuid` | string
11
10
  `priority` | number
12
11
  `shared` | boolean
@@ -20,7 +19,6 @@ import type { V1BillingRule } from '@equisoft/billing-sdk'
20
19
 
21
20
  // TODO: Update the object below with actual values
22
21
  const example = {
23
- "_default": null,
24
22
  "uuid": null,
25
23
  "priority": null,
26
24
  "shared": null,
@@ -0,0 +1,38 @@
1
+
2
+ # V1DefaultBillingRule
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `priority` | number
10
+ `services` | Array<string>
11
+ `addons` | [Array<V1Addon>](V1Addon.md)
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { V1DefaultBillingRule } from '@equisoft/billing-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "priority": null,
21
+ "services": null,
22
+ "addons": null,
23
+ } satisfies V1DefaultBillingRule
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as V1DefaultBillingRule
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,34 @@
1
+
2
+ # V1DefaultBillingRules
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `defaultBillingRules` | [Array<V1DefaultBillingRule>](V1DefaultBillingRule.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { V1DefaultBillingRules } from '@equisoft/billing-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "defaultBillingRules": null,
19
+ } satisfies V1DefaultBillingRules
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as V1DefaultBillingRules
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -8,7 +8,6 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `code` | string
10
10
  `name` | string
11
- `billable` | boolean
12
11
  `profiles` | [Array<V1Profile>](V1Profile.md)
13
12
 
14
13
  ## Example
@@ -20,7 +19,6 @@ import type { V1Distributor } from '@equisoft/billing-sdk'
20
19
  const example = {
21
20
  "code": null,
22
21
  "name": null,
23
- "billable": null,
24
22
  "profiles": null,
25
23
  } satisfies V1Distributor
26
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/billing-sdk",
3
- "version": "3.7.1-snapshot.20260629135524",
3
+ "version": "3.8.0",
4
4
  "description": "OpenAPI client for @equisoft/billing-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -4,7 +4,7 @@
4
4
  * Billing
5
5
  * Micro-Service to handle billing
6
6
  *
7
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
7
+ * The version of the OpenAPI document: 3.8.0
8
8
  * Contact: customersuccess@equisoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Billing
5
5
  * Micro-Service to handle billing
6
6
  *
7
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
7
+ * The version of the OpenAPI document: 3.8.0
8
8
  * Contact: customersuccess@equisoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Billing
5
5
  * Micro-Service to handle billing
6
6
  *
7
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
7
+ * The version of the OpenAPI document: 3.8.0
8
8
  * Contact: customersuccess@equisoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,6 +18,7 @@ import type {
18
18
  ErrorSchema,
19
19
  V1CreateBillingRulePayload,
20
20
  V1CreateDistributorPayload,
21
+ V1DefaultBillingRules,
21
22
  V1Distributor,
22
23
  V1DistributorList,
23
24
  V1UpdateBillingRulePayload,
@@ -31,6 +32,8 @@ import {
31
32
  V1CreateBillingRulePayloadToJSON,
32
33
  V1CreateDistributorPayloadFromJSON,
33
34
  V1CreateDistributorPayloadToJSON,
35
+ V1DefaultBillingRulesFromJSON,
36
+ V1DefaultBillingRulesToJSON,
34
37
  V1DistributorFromJSON,
35
38
  V1DistributorToJSON,
36
39
  V1DistributorListFromJSON,
@@ -340,6 +343,50 @@ export class DistributorV1Api extends runtime.BaseAPI {
340
343
  await this.deleteDistributorRaw(requestParameters, initOverrides);
341
344
  }
342
345
 
346
+ /**
347
+ * Creates request options for getDefaultBillingRules without sending the request
348
+ */
349
+ async getDefaultBillingRulesRequestOpts(): Promise<runtime.RequestOpts> {
350
+ const queryParameters: any = {};
351
+
352
+ const headerParameters: runtime.HTTPHeaders = {};
353
+
354
+ if (this.configuration && this.configuration.accessToken) {
355
+ // oauth required
356
+ const token = this.configuration.accessToken;
357
+ const tokenString = await token("OAuth2", []);
358
+ if (tokenString) {
359
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
360
+ }
361
+ }
362
+
363
+
364
+ let urlPath = `/v1/distributors/defaultBillingRules`;
365
+
366
+ return {
367
+ path: urlPath,
368
+ method: 'GET',
369
+ headers: headerParameters,
370
+ query: queryParameters,
371
+ };
372
+ }
373
+
374
+ /**
375
+ */
376
+ async getDefaultBillingRulesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<V1DefaultBillingRules>> {
377
+ const requestOptions = await this.getDefaultBillingRulesRequestOpts();
378
+ const response = await this.request(requestOptions, initOverrides);
379
+
380
+ return new runtime.JSONApiResponse(response, (jsonValue) => V1DefaultBillingRulesFromJSON(jsonValue));
381
+ }
382
+
383
+ /**
384
+ */
385
+ async getDefaultBillingRules(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<V1DefaultBillingRules> {
386
+ const response = await this.getDefaultBillingRulesRaw(initOverrides);
387
+ return await response.value();
388
+ }
389
+
343
390
  /**
344
391
  * Creates request options for getDistributor without sending the request
345
392
  */
@@ -4,7 +4,7 @@
4
4
  * Billing
5
5
  * Micro-Service to handle billing
6
6
  *
7
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
7
+ * The version of the OpenAPI document: 3.8.0
8
8
  * Contact: customersuccess@equisoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Billing
5
5
  * Micro-Service to handle billing
6
6
  *
7
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
7
+ * The version of the OpenAPI document: 3.8.0
8
8
  * Contact: customersuccess@equisoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Billing
5
5
  * Micro-Service to handle billing
6
6
  *
7
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
7
+ * The version of the OpenAPI document: 3.8.0
8
8
  * Contact: customersuccess@equisoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Billing
5
5
  * Micro-Service to handle billing
6
6
  *
7
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
7
+ * The version of the OpenAPI document: 3.8.0
8
8
  * Contact: customersuccess@equisoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Billing
5
5
  * Micro-Service to handle billing
6
6
  *
7
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
7
+ * The version of the OpenAPI document: 3.8.0
8
8
  * Contact: customersuccess@equisoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Billing
5
5
  * Micro-Service to handle billing
6
6
  *
7
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
7
+ * The version of the OpenAPI document: 3.8.0
8
8
  * Contact: customersuccess@equisoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Billing
5
5
  * Micro-Service to handle billing
6
6
  *
7
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
7
+ * The version of the OpenAPI document: 3.8.0
8
8
  * Contact: customersuccess@equisoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Billing
5
5
  * Micro-Service to handle billing
6
6
  *
7
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
7
+ * The version of the OpenAPI document: 3.8.0
8
8
  * Contact: customersuccess@equisoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Billing
5
5
  * Micro-Service to handle billing
6
6
  *
7
- * The version of the OpenAPI document: 3.7.1-SNAPSHOT
7
+ * The version of the OpenAPI document: 3.8.0
8
8
  * Contact: customersuccess@equisoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).