@equisoft/billing-sdk 0.0.2-snapshot.20250930230514

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 (189) hide show
  1. package/.openapi-generator/FILES +41 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +13 -0
  4. package/.tool-versions +3 -0
  5. package/README.md +46 -0
  6. package/dist/apis/DistributorV1Api.d.ts +37 -0
  7. package/dist/apis/DistributorV1Api.js +102 -0
  8. package/dist/apis/OrganizationV1Api.d.ts +180 -0
  9. package/dist/apis/OrganizationV1Api.js +566 -0
  10. package/dist/apis/UserV1Api.d.ts +63 -0
  11. package/dist/apis/UserV1Api.js +180 -0
  12. package/dist/apis/index.d.ts +3 -0
  13. package/dist/apis/index.js +21 -0
  14. package/dist/esm/apis/DistributorV1Api.d.ts +37 -0
  15. package/dist/esm/apis/DistributorV1Api.js +98 -0
  16. package/dist/esm/apis/OrganizationV1Api.d.ts +180 -0
  17. package/dist/esm/apis/OrganizationV1Api.js +562 -0
  18. package/dist/esm/apis/UserV1Api.d.ts +63 -0
  19. package/dist/esm/apis/UserV1Api.js +176 -0
  20. package/dist/esm/apis/index.d.ts +3 -0
  21. package/dist/esm/apis/index.js +5 -0
  22. package/dist/esm/index.d.ts +3 -0
  23. package/dist/esm/index.js +5 -0
  24. package/dist/esm/models/ErrorCodes.d.ts +31 -0
  25. package/dist/esm/models/ErrorCodes.js +49 -0
  26. package/dist/esm/models/ErrorSchema.d.ts +39 -0
  27. package/dist/esm/models/ErrorSchema.js +46 -0
  28. package/dist/esm/models/SubscriptionCreationMode.d.ts +26 -0
  29. package/dist/esm/models/SubscriptionCreationMode.js +44 -0
  30. package/dist/esm/models/V1BillingStatus.d.ts +48 -0
  31. package/dist/esm/models/V1BillingStatus.js +66 -0
  32. package/dist/esm/models/V1BillingType.d.ts +30 -0
  33. package/dist/esm/models/V1BillingType.js +48 -0
  34. package/dist/esm/models/V1ChargebeeV1NotPaidInvoice.d.ts +44 -0
  35. package/dist/esm/models/V1ChargebeeV1NotPaidInvoice.js +49 -0
  36. package/dist/esm/models/V1ChargebeeV1PaymentDueInvoice.d.ts +44 -0
  37. package/dist/esm/models/V1ChargebeeV1PaymentDueInvoice.js +49 -0
  38. package/dist/esm/models/V1ChargebeeV1PortalSession.d.ts +44 -0
  39. package/dist/esm/models/V1ChargebeeV1PortalSession.js +49 -0
  40. package/dist/esm/models/V1ChargebeeV1UnpaidInvoice.d.ts +44 -0
  41. package/dist/esm/models/V1ChargebeeV1UnpaidInvoice.js +49 -0
  42. package/dist/esm/models/V1CollectChargebeeV1Payment.d.ts +32 -0
  43. package/dist/esm/models/V1CollectChargebeeV1Payment.js +43 -0
  44. package/dist/esm/models/V1CreateChargebeeV1PortalSessionPayload.d.ts +32 -0
  45. package/dist/esm/models/V1CreateChargebeeV1PortalSessionPayload.js +41 -0
  46. package/dist/esm/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.d.ts +38 -0
  47. package/dist/esm/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.js +47 -0
  48. package/dist/esm/models/V1Distributor.d.ts +50 -0
  49. package/dist/esm/models/V1Distributor.js +53 -0
  50. package/dist/esm/models/V1DistributorList.d.ts +33 -0
  51. package/dist/esm/models/V1DistributorList.js +44 -0
  52. package/dist/esm/models/V1MigrateLegacyBillingPayload.d.ts +38 -0
  53. package/dist/esm/models/V1MigrateLegacyBillingPayload.js +47 -0
  54. package/dist/esm/models/V1Organization.d.ts +57 -0
  55. package/dist/esm/models/V1Organization.js +54 -0
  56. package/dist/esm/models/V1OrganizationChargebeeV1Status.d.ts +79 -0
  57. package/dist/esm/models/V1OrganizationChargebeeV1Status.js +72 -0
  58. package/dist/esm/models/V1OrganizationStatus.d.ts +59 -0
  59. package/dist/esm/models/V1OrganizationStatus.js +58 -0
  60. package/dist/esm/models/V1OrganizationStatusChargebeeV1Addon.d.ts +44 -0
  61. package/dist/esm/models/V1OrganizationStatusChargebeeV1Addon.js +49 -0
  62. package/dist/esm/models/V1OrganizationStatusChargebeeV1User.d.ts +46 -0
  63. package/dist/esm/models/V1OrganizationStatusChargebeeV1User.js +53 -0
  64. package/dist/esm/models/V1OrganizationStatusChargebeeV1UserBillingStatus.d.ts +40 -0
  65. package/dist/esm/models/V1OrganizationStatusChargebeeV1UserBillingStatus.js +58 -0
  66. package/dist/esm/models/V1SetChargebeeV1BillingPayorPayload.d.ts +32 -0
  67. package/dist/esm/models/V1SetChargebeeV1BillingPayorPayload.js +43 -0
  68. package/dist/esm/models/V1SetChargebeeV1Payload.d.ts +45 -0
  69. package/dist/esm/models/V1SetChargebeeV1Payload.js +52 -0
  70. package/dist/esm/models/V1SetLegacyBillingPayload.d.ts +45 -0
  71. package/dist/esm/models/V1SetLegacyBillingPayload.js +50 -0
  72. package/dist/esm/models/V1SetOrganisationDistributorPayload.d.ts +32 -0
  73. package/dist/esm/models/V1SetOrganisationDistributorPayload.js +43 -0
  74. package/dist/esm/models/V1SetUserNonBillablePayload.d.ts +32 -0
  75. package/dist/esm/models/V1SetUserNonBillablePayload.js +43 -0
  76. package/dist/esm/models/V1User.d.ts +50 -0
  77. package/dist/esm/models/V1User.js +55 -0
  78. package/dist/esm/models/V1UserServiceStatus.d.ts +44 -0
  79. package/dist/esm/models/V1UserServiceStatus.js +51 -0
  80. package/dist/esm/models/V1UserStatus.d.ts +33 -0
  81. package/dist/esm/models/V1UserStatus.js +44 -0
  82. package/dist/esm/models/index.d.ts +29 -0
  83. package/dist/esm/models/index.js +31 -0
  84. package/dist/esm/runtime.d.ts +184 -0
  85. package/dist/esm/runtime.js +334 -0
  86. package/dist/index.d.ts +3 -0
  87. package/dist/index.js +21 -0
  88. package/dist/models/ErrorCodes.d.ts +31 -0
  89. package/dist/models/ErrorCodes.js +57 -0
  90. package/dist/models/ErrorSchema.d.ts +39 -0
  91. package/dist/models/ErrorSchema.js +53 -0
  92. package/dist/models/SubscriptionCreationMode.d.ts +26 -0
  93. package/dist/models/SubscriptionCreationMode.js +52 -0
  94. package/dist/models/V1BillingStatus.d.ts +48 -0
  95. package/dist/models/V1BillingStatus.js +74 -0
  96. package/dist/models/V1BillingType.d.ts +30 -0
  97. package/dist/models/V1BillingType.js +56 -0
  98. package/dist/models/V1ChargebeeV1NotPaidInvoice.d.ts +44 -0
  99. package/dist/models/V1ChargebeeV1NotPaidInvoice.js +56 -0
  100. package/dist/models/V1ChargebeeV1PaymentDueInvoice.d.ts +44 -0
  101. package/dist/models/V1ChargebeeV1PaymentDueInvoice.js +56 -0
  102. package/dist/models/V1ChargebeeV1PortalSession.d.ts +44 -0
  103. package/dist/models/V1ChargebeeV1PortalSession.js +56 -0
  104. package/dist/models/V1ChargebeeV1UnpaidInvoice.d.ts +44 -0
  105. package/dist/models/V1ChargebeeV1UnpaidInvoice.js +56 -0
  106. package/dist/models/V1CollectChargebeeV1Payment.d.ts +32 -0
  107. package/dist/models/V1CollectChargebeeV1Payment.js +50 -0
  108. package/dist/models/V1CreateChargebeeV1PortalSessionPayload.d.ts +32 -0
  109. package/dist/models/V1CreateChargebeeV1PortalSessionPayload.js +48 -0
  110. package/dist/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.d.ts +38 -0
  111. package/dist/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.js +54 -0
  112. package/dist/models/V1Distributor.d.ts +50 -0
  113. package/dist/models/V1Distributor.js +60 -0
  114. package/dist/models/V1DistributorList.d.ts +33 -0
  115. package/dist/models/V1DistributorList.js +51 -0
  116. package/dist/models/V1MigrateLegacyBillingPayload.d.ts +38 -0
  117. package/dist/models/V1MigrateLegacyBillingPayload.js +54 -0
  118. package/dist/models/V1Organization.d.ts +57 -0
  119. package/dist/models/V1Organization.js +61 -0
  120. package/dist/models/V1OrganizationChargebeeV1Status.d.ts +79 -0
  121. package/dist/models/V1OrganizationChargebeeV1Status.js +79 -0
  122. package/dist/models/V1OrganizationStatus.d.ts +59 -0
  123. package/dist/models/V1OrganizationStatus.js +65 -0
  124. package/dist/models/V1OrganizationStatusChargebeeV1Addon.d.ts +44 -0
  125. package/dist/models/V1OrganizationStatusChargebeeV1Addon.js +56 -0
  126. package/dist/models/V1OrganizationStatusChargebeeV1User.d.ts +46 -0
  127. package/dist/models/V1OrganizationStatusChargebeeV1User.js +60 -0
  128. package/dist/models/V1OrganizationStatusChargebeeV1UserBillingStatus.d.ts +40 -0
  129. package/dist/models/V1OrganizationStatusChargebeeV1UserBillingStatus.js +66 -0
  130. package/dist/models/V1SetChargebeeV1BillingPayorPayload.d.ts +32 -0
  131. package/dist/models/V1SetChargebeeV1BillingPayorPayload.js +50 -0
  132. package/dist/models/V1SetChargebeeV1Payload.d.ts +45 -0
  133. package/dist/models/V1SetChargebeeV1Payload.js +59 -0
  134. package/dist/models/V1SetLegacyBillingPayload.d.ts +45 -0
  135. package/dist/models/V1SetLegacyBillingPayload.js +57 -0
  136. package/dist/models/V1SetOrganisationDistributorPayload.d.ts +32 -0
  137. package/dist/models/V1SetOrganisationDistributorPayload.js +50 -0
  138. package/dist/models/V1SetUserNonBillablePayload.d.ts +32 -0
  139. package/dist/models/V1SetUserNonBillablePayload.js +50 -0
  140. package/dist/models/V1User.d.ts +50 -0
  141. package/dist/models/V1User.js +62 -0
  142. package/dist/models/V1UserServiceStatus.d.ts +44 -0
  143. package/dist/models/V1UserServiceStatus.js +58 -0
  144. package/dist/models/V1UserStatus.d.ts +33 -0
  145. package/dist/models/V1UserStatus.js +51 -0
  146. package/dist/models/index.d.ts +29 -0
  147. package/dist/models/index.js +47 -0
  148. package/dist/runtime.d.ts +184 -0
  149. package/dist/runtime.js +350 -0
  150. package/package.json +22 -0
  151. package/renovate.json +6 -0
  152. package/src/apis/DistributorV1Api.ts +117 -0
  153. package/src/apis/OrganizationV1Api.ts +784 -0
  154. package/src/apis/UserV1Api.ts +232 -0
  155. package/src/apis/index.ts +5 -0
  156. package/src/index.ts +5 -0
  157. package/src/models/ErrorCodes.ts +59 -0
  158. package/src/models/ErrorSchema.ts +84 -0
  159. package/src/models/SubscriptionCreationMode.ts +54 -0
  160. package/src/models/V1BillingStatus.ts +76 -0
  161. package/src/models/V1BillingType.ts +58 -0
  162. package/src/models/V1ChargebeeV1NotPaidInvoice.ts +83 -0
  163. package/src/models/V1ChargebeeV1PaymentDueInvoice.ts +83 -0
  164. package/src/models/V1ChargebeeV1PortalSession.ts +83 -0
  165. package/src/models/V1ChargebeeV1UnpaidInvoice.ts +83 -0
  166. package/src/models/V1CollectChargebeeV1Payment.ts +66 -0
  167. package/src/models/V1CreateChargebeeV1PortalSessionPayload.ts +65 -0
  168. package/src/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.ts +75 -0
  169. package/src/models/V1Distributor.ts +92 -0
  170. package/src/models/V1DistributorList.ts +74 -0
  171. package/src/models/V1MigrateLegacyBillingPayload.ts +75 -0
  172. package/src/models/V1Organization.ts +109 -0
  173. package/src/models/V1OrganizationChargebeeV1Status.ts +163 -0
  174. package/src/models/V1OrganizationStatus.ts +124 -0
  175. package/src/models/V1OrganizationStatusChargebeeV1Addon.ts +83 -0
  176. package/src/models/V1OrganizationStatusChargebeeV1User.ts +101 -0
  177. package/src/models/V1OrganizationStatusChargebeeV1UserBillingStatus.ts +68 -0
  178. package/src/models/V1SetChargebeeV1BillingPayorPayload.ts +66 -0
  179. package/src/models/V1SetChargebeeV1Payload.ts +94 -0
  180. package/src/models/V1SetLegacyBillingPayload.ts +93 -0
  181. package/src/models/V1SetOrganisationDistributorPayload.ts +66 -0
  182. package/src/models/V1SetUserNonBillablePayload.ts +66 -0
  183. package/src/models/V1User.ts +93 -0
  184. package/src/models/V1UserServiceStatus.ts +84 -0
  185. package/src/models/V1UserStatus.ts +74 -0
  186. package/src/models/index.ts +31 -0
  187. package/src/runtime.ts +432 -0
  188. package/tsconfig.esm.json +7 -0
  189. package/tsconfig.json +16 -0
@@ -0,0 +1,109 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Billing
5
+ * Micro-Service to handle billing
6
+ *
7
+ * The version of the OpenAPI document: 2.1.1-SNAPSHOT
8
+ * Contact: customersuccess@equisoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { V1BillingType } from './V1BillingType';
17
+ import {
18
+ V1BillingTypeFromJSON,
19
+ V1BillingTypeFromJSONTyped,
20
+ V1BillingTypeToJSON,
21
+ V1BillingTypeToJSONTyped,
22
+ } from './V1BillingType';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface V1Organization
28
+ */
29
+ export interface V1Organization {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof V1Organization
34
+ */
35
+ uuid: string;
36
+ /**
37
+ *
38
+ * @type {V1BillingType}
39
+ * @memberof V1Organization
40
+ */
41
+ billingType: V1BillingType;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof V1Organization
46
+ */
47
+ payorUuid?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof V1Organization
52
+ */
53
+ chargebeeId?: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof V1Organization
58
+ */
59
+ distributorCode?: string | null;
60
+ }
61
+
62
+
63
+
64
+ /**
65
+ * Check if a given object implements the V1Organization interface.
66
+ */
67
+ export function instanceOfV1Organization(value: object): value is V1Organization {
68
+ if (!('uuid' in value) || value['uuid'] === undefined) return false;
69
+ if (!('billingType' in value) || value['billingType'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function V1OrganizationFromJSON(json: any): V1Organization {
74
+ return V1OrganizationFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function V1OrganizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Organization {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'uuid': json['uuid'],
84
+ 'billingType': V1BillingTypeFromJSON(json['billingType']),
85
+ 'payorUuid': json['payorUuid'] == null ? undefined : json['payorUuid'],
86
+ 'chargebeeId': json['chargebeeId'] == null ? undefined : json['chargebeeId'],
87
+ 'distributorCode': json['distributorCode'] == null ? undefined : json['distributorCode'],
88
+ };
89
+ }
90
+
91
+ export function V1OrganizationToJSON(json: any): V1Organization {
92
+ return V1OrganizationToJSONTyped(json, false);
93
+ }
94
+
95
+ export function V1OrganizationToJSONTyped(value?: V1Organization | null, ignoreDiscriminator: boolean = false): any {
96
+ if (value == null) {
97
+ return value;
98
+ }
99
+
100
+ return {
101
+
102
+ 'uuid': value['uuid'],
103
+ 'billingType': V1BillingTypeToJSON(value['billingType']),
104
+ 'payorUuid': value['payorUuid'],
105
+ 'chargebeeId': value['chargebeeId'],
106
+ 'distributorCode': value['distributorCode'],
107
+ };
108
+ }
109
+
@@ -0,0 +1,163 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Billing
5
+ * Micro-Service to handle billing
6
+ *
7
+ * The version of the OpenAPI document: 2.1.1-SNAPSHOT
8
+ * Contact: customersuccess@equisoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { V1OrganizationStatusChargebeeV1Addon } from './V1OrganizationStatusChargebeeV1Addon';
17
+ import {
18
+ V1OrganizationStatusChargebeeV1AddonFromJSON,
19
+ V1OrganizationStatusChargebeeV1AddonFromJSONTyped,
20
+ V1OrganizationStatusChargebeeV1AddonToJSON,
21
+ V1OrganizationStatusChargebeeV1AddonToJSONTyped,
22
+ } from './V1OrganizationStatusChargebeeV1Addon';
23
+ import type { V1ChargebeeV1UnpaidInvoice } from './V1ChargebeeV1UnpaidInvoice';
24
+ import {
25
+ V1ChargebeeV1UnpaidInvoiceFromJSON,
26
+ V1ChargebeeV1UnpaidInvoiceFromJSONTyped,
27
+ V1ChargebeeV1UnpaidInvoiceToJSON,
28
+ V1ChargebeeV1UnpaidInvoiceToJSONTyped,
29
+ } from './V1ChargebeeV1UnpaidInvoice';
30
+ import type { V1OrganizationStatusChargebeeV1User } from './V1OrganizationStatusChargebeeV1User';
31
+ import {
32
+ V1OrganizationStatusChargebeeV1UserFromJSON,
33
+ V1OrganizationStatusChargebeeV1UserFromJSONTyped,
34
+ V1OrganizationStatusChargebeeV1UserToJSON,
35
+ V1OrganizationStatusChargebeeV1UserToJSONTyped,
36
+ } from './V1OrganizationStatusChargebeeV1User';
37
+ import type { V1ChargebeeV1NotPaidInvoice } from './V1ChargebeeV1NotPaidInvoice';
38
+ import {
39
+ V1ChargebeeV1NotPaidInvoiceFromJSON,
40
+ V1ChargebeeV1NotPaidInvoiceFromJSONTyped,
41
+ V1ChargebeeV1NotPaidInvoiceToJSON,
42
+ V1ChargebeeV1NotPaidInvoiceToJSONTyped,
43
+ } from './V1ChargebeeV1NotPaidInvoice';
44
+ import type { V1ChargebeeV1PaymentDueInvoice } from './V1ChargebeeV1PaymentDueInvoice';
45
+ import {
46
+ V1ChargebeeV1PaymentDueInvoiceFromJSON,
47
+ V1ChargebeeV1PaymentDueInvoiceFromJSONTyped,
48
+ V1ChargebeeV1PaymentDueInvoiceToJSON,
49
+ V1ChargebeeV1PaymentDueInvoiceToJSONTyped,
50
+ } from './V1ChargebeeV1PaymentDueInvoice';
51
+
52
+ /**
53
+ *
54
+ * @export
55
+ * @interface V1OrganizationChargebeeV1Status
56
+ */
57
+ export interface V1OrganizationChargebeeV1Status {
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof V1OrganizationChargebeeV1Status
62
+ */
63
+ customerId: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof V1OrganizationChargebeeV1Status
68
+ */
69
+ customerEmail?: string | null;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof V1OrganizationChargebeeV1Status
74
+ */
75
+ subscriptionId?: string | null;
76
+ /**
77
+ *
78
+ * @type {Array<V1ChargebeeV1NotPaidInvoice>}
79
+ * @memberof V1OrganizationChargebeeV1Status
80
+ */
81
+ notPaidInvoices: Array<V1ChargebeeV1NotPaidInvoice>;
82
+ /**
83
+ *
84
+ * @type {Array<V1ChargebeeV1UnpaidInvoice>}
85
+ * @memberof V1OrganizationChargebeeV1Status
86
+ */
87
+ unpaidInvoices: Array<V1ChargebeeV1UnpaidInvoice>;
88
+ /**
89
+ *
90
+ * @type {Array<V1ChargebeeV1PaymentDueInvoice>}
91
+ * @memberof V1OrganizationChargebeeV1Status
92
+ */
93
+ paymentDueInvoices: Array<V1ChargebeeV1PaymentDueInvoice>;
94
+ /**
95
+ *
96
+ * @type {Array<V1OrganizationStatusChargebeeV1Addon>}
97
+ * @memberof V1OrganizationChargebeeV1Status
98
+ */
99
+ addons: Array<V1OrganizationStatusChargebeeV1Addon>;
100
+ /**
101
+ *
102
+ * @type {Array<V1OrganizationStatusChargebeeV1User>}
103
+ * @memberof V1OrganizationChargebeeV1Status
104
+ */
105
+ users: Array<V1OrganizationStatusChargebeeV1User>;
106
+ }
107
+
108
+ /**
109
+ * Check if a given object implements the V1OrganizationChargebeeV1Status interface.
110
+ */
111
+ export function instanceOfV1OrganizationChargebeeV1Status(value: object): value is V1OrganizationChargebeeV1Status {
112
+ if (!('customerId' in value) || value['customerId'] === undefined) return false;
113
+ if (!('notPaidInvoices' in value) || value['notPaidInvoices'] === undefined) return false;
114
+ if (!('unpaidInvoices' in value) || value['unpaidInvoices'] === undefined) return false;
115
+ if (!('paymentDueInvoices' in value) || value['paymentDueInvoices'] === undefined) return false;
116
+ if (!('addons' in value) || value['addons'] === undefined) return false;
117
+ if (!('users' in value) || value['users'] === undefined) return false;
118
+ return true;
119
+ }
120
+
121
+ export function V1OrganizationChargebeeV1StatusFromJSON(json: any): V1OrganizationChargebeeV1Status {
122
+ return V1OrganizationChargebeeV1StatusFromJSONTyped(json, false);
123
+ }
124
+
125
+ export function V1OrganizationChargebeeV1StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrganizationChargebeeV1Status {
126
+ if (json == null) {
127
+ return json;
128
+ }
129
+ return {
130
+
131
+ 'customerId': json['customerId'],
132
+ 'customerEmail': json['customerEmail'] == null ? undefined : json['customerEmail'],
133
+ 'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
134
+ 'notPaidInvoices': ((json['notPaidInvoices'] as Array<any>).map(V1ChargebeeV1NotPaidInvoiceFromJSON)),
135
+ 'unpaidInvoices': ((json['unpaidInvoices'] as Array<any>).map(V1ChargebeeV1UnpaidInvoiceFromJSON)),
136
+ 'paymentDueInvoices': ((json['paymentDueInvoices'] as Array<any>).map(V1ChargebeeV1PaymentDueInvoiceFromJSON)),
137
+ 'addons': ((json['addons'] as Array<any>).map(V1OrganizationStatusChargebeeV1AddonFromJSON)),
138
+ 'users': ((json['users'] as Array<any>).map(V1OrganizationStatusChargebeeV1UserFromJSON)),
139
+ };
140
+ }
141
+
142
+ export function V1OrganizationChargebeeV1StatusToJSON(json: any): V1OrganizationChargebeeV1Status {
143
+ return V1OrganizationChargebeeV1StatusToJSONTyped(json, false);
144
+ }
145
+
146
+ export function V1OrganizationChargebeeV1StatusToJSONTyped(value?: V1OrganizationChargebeeV1Status | null, ignoreDiscriminator: boolean = false): any {
147
+ if (value == null) {
148
+ return value;
149
+ }
150
+
151
+ return {
152
+
153
+ 'customerId': value['customerId'],
154
+ 'customerEmail': value['customerEmail'],
155
+ 'subscriptionId': value['subscriptionId'],
156
+ 'notPaidInvoices': ((value['notPaidInvoices'] as Array<any>).map(V1ChargebeeV1NotPaidInvoiceToJSON)),
157
+ 'unpaidInvoices': ((value['unpaidInvoices'] as Array<any>).map(V1ChargebeeV1UnpaidInvoiceToJSON)),
158
+ 'paymentDueInvoices': ((value['paymentDueInvoices'] as Array<any>).map(V1ChargebeeV1PaymentDueInvoiceToJSON)),
159
+ 'addons': ((value['addons'] as Array<any>).map(V1OrganizationStatusChargebeeV1AddonToJSON)),
160
+ 'users': ((value['users'] as Array<any>).map(V1OrganizationStatusChargebeeV1UserToJSON)),
161
+ };
162
+ }
163
+
@@ -0,0 +1,124 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Billing
5
+ * Micro-Service to handle billing
6
+ *
7
+ * The version of the OpenAPI document: 2.1.1-SNAPSHOT
8
+ * Contact: customersuccess@equisoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { V1BillingType } from './V1BillingType';
17
+ import {
18
+ V1BillingTypeFromJSON,
19
+ V1BillingTypeFromJSONTyped,
20
+ V1BillingTypeToJSON,
21
+ V1BillingTypeToJSONTyped,
22
+ } from './V1BillingType';
23
+ import type { V1OrganizationChargebeeV1Status } from './V1OrganizationChargebeeV1Status';
24
+ import {
25
+ V1OrganizationChargebeeV1StatusFromJSON,
26
+ V1OrganizationChargebeeV1StatusFromJSONTyped,
27
+ V1OrganizationChargebeeV1StatusToJSON,
28
+ V1OrganizationChargebeeV1StatusToJSONTyped,
29
+ } from './V1OrganizationChargebeeV1Status';
30
+ import type { V1BillingStatus } from './V1BillingStatus';
31
+ import {
32
+ V1BillingStatusFromJSON,
33
+ V1BillingStatusFromJSONTyped,
34
+ V1BillingStatusToJSON,
35
+ V1BillingStatusToJSONTyped,
36
+ } from './V1BillingStatus';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface V1OrganizationStatus
42
+ */
43
+ export interface V1OrganizationStatus {
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof V1OrganizationStatus
48
+ */
49
+ uuid: string;
50
+ /**
51
+ *
52
+ * @type {V1BillingType}
53
+ * @memberof V1OrganizationStatus
54
+ */
55
+ billingType: V1BillingType;
56
+ /**
57
+ *
58
+ * @type {V1BillingStatus}
59
+ * @memberof V1OrganizationStatus
60
+ */
61
+ billingStatus: V1BillingStatus;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof V1OrganizationStatus
66
+ */
67
+ payorUuid?: string | null;
68
+ /**
69
+ *
70
+ * @type {V1OrganizationChargebeeV1Status}
71
+ * @memberof V1OrganizationStatus
72
+ */
73
+ chargebeeV1?: V1OrganizationChargebeeV1Status | null;
74
+ }
75
+
76
+
77
+
78
+ /**
79
+ * Check if a given object implements the V1OrganizationStatus interface.
80
+ */
81
+ export function instanceOfV1OrganizationStatus(value: object): value is V1OrganizationStatus {
82
+ if (!('uuid' in value) || value['uuid'] === undefined) return false;
83
+ if (!('billingType' in value) || value['billingType'] === undefined) return false;
84
+ if (!('billingStatus' in value) || value['billingStatus'] === undefined) return false;
85
+ return true;
86
+ }
87
+
88
+ export function V1OrganizationStatusFromJSON(json: any): V1OrganizationStatus {
89
+ return V1OrganizationStatusFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function V1OrganizationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrganizationStatus {
93
+ if (json == null) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'uuid': json['uuid'],
99
+ 'billingType': V1BillingTypeFromJSON(json['billingType']),
100
+ 'billingStatus': V1BillingStatusFromJSON(json['billingStatus']),
101
+ 'payorUuid': json['payorUuid'] == null ? undefined : json['payorUuid'],
102
+ 'chargebeeV1': json['chargebeeV1'] == null ? undefined : V1OrganizationChargebeeV1StatusFromJSON(json['chargebeeV1']),
103
+ };
104
+ }
105
+
106
+ export function V1OrganizationStatusToJSON(json: any): V1OrganizationStatus {
107
+ return V1OrganizationStatusToJSONTyped(json, false);
108
+ }
109
+
110
+ export function V1OrganizationStatusToJSONTyped(value?: V1OrganizationStatus | null, ignoreDiscriminator: boolean = false): any {
111
+ if (value == null) {
112
+ return value;
113
+ }
114
+
115
+ return {
116
+
117
+ 'uuid': value['uuid'],
118
+ 'billingType': V1BillingTypeToJSON(value['billingType']),
119
+ 'billingStatus': V1BillingStatusToJSON(value['billingStatus']),
120
+ 'payorUuid': value['payorUuid'],
121
+ 'chargebeeV1': V1OrganizationChargebeeV1StatusToJSON(value['chargebeeV1']),
122
+ };
123
+ }
124
+
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Billing
5
+ * Micro-Service to handle billing
6
+ *
7
+ * The version of the OpenAPI document: 2.1.1-SNAPSHOT
8
+ * Contact: customersuccess@equisoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface V1OrganizationStatusChargebeeV1Addon
20
+ */
21
+ export interface V1OrganizationStatusChargebeeV1Addon {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof V1OrganizationStatusChargebeeV1Addon
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof V1OrganizationStatusChargebeeV1Addon
32
+ */
33
+ name?: string | null;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof V1OrganizationStatusChargebeeV1Addon
38
+ */
39
+ quantity: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the V1OrganizationStatusChargebeeV1Addon interface.
44
+ */
45
+ export function instanceOfV1OrganizationStatusChargebeeV1Addon(value: object): value is V1OrganizationStatusChargebeeV1Addon {
46
+ if (!('id' in value) || value['id'] === undefined) return false;
47
+ if (!('quantity' in value) || value['quantity'] === undefined) return false;
48
+ return true;
49
+ }
50
+
51
+ export function V1OrganizationStatusChargebeeV1AddonFromJSON(json: any): V1OrganizationStatusChargebeeV1Addon {
52
+ return V1OrganizationStatusChargebeeV1AddonFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function V1OrganizationStatusChargebeeV1AddonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrganizationStatusChargebeeV1Addon {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'id': json['id'],
62
+ 'name': json['name'] == null ? undefined : json['name'],
63
+ 'quantity': json['quantity'],
64
+ };
65
+ }
66
+
67
+ export function V1OrganizationStatusChargebeeV1AddonToJSON(json: any): V1OrganizationStatusChargebeeV1Addon {
68
+ return V1OrganizationStatusChargebeeV1AddonToJSONTyped(json, false);
69
+ }
70
+
71
+ export function V1OrganizationStatusChargebeeV1AddonToJSONTyped(value?: V1OrganizationStatusChargebeeV1Addon | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'id': value['id'],
79
+ 'name': value['name'],
80
+ 'quantity': value['quantity'],
81
+ };
82
+ }
83
+
@@ -0,0 +1,101 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Billing
5
+ * Micro-Service to handle billing
6
+ *
7
+ * The version of the OpenAPI document: 2.1.1-SNAPSHOT
8
+ * Contact: customersuccess@equisoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { V1OrganizationStatusChargebeeV1Addon } from './V1OrganizationStatusChargebeeV1Addon';
17
+ import {
18
+ V1OrganizationStatusChargebeeV1AddonFromJSON,
19
+ V1OrganizationStatusChargebeeV1AddonFromJSONTyped,
20
+ V1OrganizationStatusChargebeeV1AddonToJSON,
21
+ V1OrganizationStatusChargebeeV1AddonToJSONTyped,
22
+ } from './V1OrganizationStatusChargebeeV1Addon';
23
+ import type { V1OrganizationStatusChargebeeV1UserBillingStatus } from './V1OrganizationStatusChargebeeV1UserBillingStatus';
24
+ import {
25
+ V1OrganizationStatusChargebeeV1UserBillingStatusFromJSON,
26
+ V1OrganizationStatusChargebeeV1UserBillingStatusFromJSONTyped,
27
+ V1OrganizationStatusChargebeeV1UserBillingStatusToJSON,
28
+ V1OrganizationStatusChargebeeV1UserBillingStatusToJSONTyped,
29
+ } from './V1OrganizationStatusChargebeeV1UserBillingStatus';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface V1OrganizationStatusChargebeeV1User
35
+ */
36
+ export interface V1OrganizationStatusChargebeeV1User {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof V1OrganizationStatusChargebeeV1User
41
+ */
42
+ uuid: string;
43
+ /**
44
+ *
45
+ * @type {V1OrganizationStatusChargebeeV1UserBillingStatus}
46
+ * @memberof V1OrganizationStatusChargebeeV1User
47
+ */
48
+ billingStatus: V1OrganizationStatusChargebeeV1UserBillingStatus;
49
+ /**
50
+ *
51
+ * @type {Array<V1OrganizationStatusChargebeeV1Addon>}
52
+ * @memberof V1OrganizationStatusChargebeeV1User
53
+ */
54
+ addons: Array<V1OrganizationStatusChargebeeV1Addon>;
55
+ }
56
+
57
+
58
+
59
+ /**
60
+ * Check if a given object implements the V1OrganizationStatusChargebeeV1User interface.
61
+ */
62
+ export function instanceOfV1OrganizationStatusChargebeeV1User(value: object): value is V1OrganizationStatusChargebeeV1User {
63
+ if (!('uuid' in value) || value['uuid'] === undefined) return false;
64
+ if (!('billingStatus' in value) || value['billingStatus'] === undefined) return false;
65
+ if (!('addons' in value) || value['addons'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function V1OrganizationStatusChargebeeV1UserFromJSON(json: any): V1OrganizationStatusChargebeeV1User {
70
+ return V1OrganizationStatusChargebeeV1UserFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function V1OrganizationStatusChargebeeV1UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrganizationStatusChargebeeV1User {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'uuid': json['uuid'],
80
+ 'billingStatus': V1OrganizationStatusChargebeeV1UserBillingStatusFromJSON(json['billingStatus']),
81
+ 'addons': ((json['addons'] as Array<any>).map(V1OrganizationStatusChargebeeV1AddonFromJSON)),
82
+ };
83
+ }
84
+
85
+ export function V1OrganizationStatusChargebeeV1UserToJSON(json: any): V1OrganizationStatusChargebeeV1User {
86
+ return V1OrganizationStatusChargebeeV1UserToJSONTyped(json, false);
87
+ }
88
+
89
+ export function V1OrganizationStatusChargebeeV1UserToJSONTyped(value?: V1OrganizationStatusChargebeeV1User | null, ignoreDiscriminator: boolean = false): any {
90
+ if (value == null) {
91
+ return value;
92
+ }
93
+
94
+ return {
95
+
96
+ 'uuid': value['uuid'],
97
+ 'billingStatus': V1OrganizationStatusChargebeeV1UserBillingStatusToJSON(value['billingStatus']),
98
+ 'addons': ((value['addons'] as Array<any>).map(V1OrganizationStatusChargebeeV1AddonToJSON)),
99
+ };
100
+ }
101
+
@@ -0,0 +1,68 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Billing
5
+ * Micro-Service to handle billing
6
+ *
7
+ * The version of the OpenAPI document: 2.1.1-SNAPSHOT
8
+ * Contact: customersuccess@equisoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ * Billing status of the user
18
+ * @export
19
+ */
20
+ export const V1OrganizationStatusChargebeeV1UserBillingStatus = {
21
+ /**
22
+ * User is be billable
23
+ */
24
+ BILLABLE: 'BILLABLE',
25
+ /**
26
+ * User cannot be billed because it is not enabled
27
+ */
28
+ NOT_ENABLED: 'NOT_ENABLED',
29
+ /**
30
+ * User cannot be billed because it has no authentication method
31
+ */
32
+ NO_AUTHENTICATION_METHOD: 'NO_AUTHENTICATION_METHOD',
33
+ /**
34
+ * User is marked as non-billable
35
+ */
36
+ NON_BILLABLE: 'NON_BILLABLE',
37
+ unknown_default_open_api: '11184809'
38
+ } as const;
39
+ export type V1OrganizationStatusChargebeeV1UserBillingStatus = typeof V1OrganizationStatusChargebeeV1UserBillingStatus[keyof typeof V1OrganizationStatusChargebeeV1UserBillingStatus];
40
+
41
+
42
+ export function instanceOfV1OrganizationStatusChargebeeV1UserBillingStatus(value: any): boolean {
43
+ for (const key in V1OrganizationStatusChargebeeV1UserBillingStatus) {
44
+ if (Object.prototype.hasOwnProperty.call(V1OrganizationStatusChargebeeV1UserBillingStatus, key)) {
45
+ if (V1OrganizationStatusChargebeeV1UserBillingStatus[key as keyof typeof V1OrganizationStatusChargebeeV1UserBillingStatus] === value) {
46
+ return true;
47
+ }
48
+ }
49
+ }
50
+ return false;
51
+ }
52
+
53
+ export function V1OrganizationStatusChargebeeV1UserBillingStatusFromJSON(json: any): V1OrganizationStatusChargebeeV1UserBillingStatus {
54
+ return V1OrganizationStatusChargebeeV1UserBillingStatusFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function V1OrganizationStatusChargebeeV1UserBillingStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrganizationStatusChargebeeV1UserBillingStatus {
58
+ return json as V1OrganizationStatusChargebeeV1UserBillingStatus;
59
+ }
60
+
61
+ export function V1OrganizationStatusChargebeeV1UserBillingStatusToJSON(value?: V1OrganizationStatusChargebeeV1UserBillingStatus | null): any {
62
+ return value as any;
63
+ }
64
+
65
+ export function V1OrganizationStatusChargebeeV1UserBillingStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): V1OrganizationStatusChargebeeV1UserBillingStatus {
66
+ return value as V1OrganizationStatusChargebeeV1UserBillingStatus;
67
+ }
68
+