@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,33 @@
1
+ /**
2
+ * Billing
3
+ * Micro-Service to handle billing
4
+ *
5
+ * The version of the OpenAPI document: 2.1.1-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { V1Distributor } from './V1Distributor';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface V1DistributorList
17
+ */
18
+ export interface V1DistributorList {
19
+ /**
20
+ *
21
+ * @type {Array<V1Distributor>}
22
+ * @memberof V1DistributorList
23
+ */
24
+ distributors: Array<V1Distributor>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the V1DistributorList interface.
28
+ */
29
+ export declare function instanceOfV1DistributorList(value: object): value is V1DistributorList;
30
+ export declare function V1DistributorListFromJSON(json: any): V1DistributorList;
31
+ export declare function V1DistributorListFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1DistributorList;
32
+ export declare function V1DistributorListToJSON(json: any): V1DistributorList;
33
+ export declare function V1DistributorListToJSONTyped(value?: V1DistributorList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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
+ import { V1DistributorFromJSON, V1DistributorToJSON, } from './V1Distributor';
15
+ /**
16
+ * Check if a given object implements the V1DistributorList interface.
17
+ */
18
+ export function instanceOfV1DistributorList(value) {
19
+ if (!('distributors' in value) || value['distributors'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function V1DistributorListFromJSON(json) {
24
+ return V1DistributorListFromJSONTyped(json, false);
25
+ }
26
+ export function V1DistributorListFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'distributors': (json['distributors'].map(V1DistributorFromJSON)),
32
+ };
33
+ }
34
+ export function V1DistributorListToJSON(json) {
35
+ return V1DistributorListToJSONTyped(json, false);
36
+ }
37
+ export function V1DistributorListToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'distributors': (value['distributors'].map(V1DistributorToJSON)),
43
+ };
44
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Billing
3
+ * Micro-Service to handle billing
4
+ *
5
+ * The version of the OpenAPI document: 2.1.1-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface V1MigrateLegacyBillingPayload
16
+ */
17
+ export interface V1MigrateLegacyBillingPayload {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof V1MigrateLegacyBillingPayload
22
+ */
23
+ payorUserUuid: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof V1MigrateLegacyBillingPayload
28
+ */
29
+ distributorCode: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the V1MigrateLegacyBillingPayload interface.
33
+ */
34
+ export declare function instanceOfV1MigrateLegacyBillingPayload(value: object): value is V1MigrateLegacyBillingPayload;
35
+ export declare function V1MigrateLegacyBillingPayloadFromJSON(json: any): V1MigrateLegacyBillingPayload;
36
+ export declare function V1MigrateLegacyBillingPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1MigrateLegacyBillingPayload;
37
+ export declare function V1MigrateLegacyBillingPayloadToJSON(json: any): V1MigrateLegacyBillingPayload;
38
+ export declare function V1MigrateLegacyBillingPayloadToJSONTyped(value?: V1MigrateLegacyBillingPayload | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ * Check if a given object implements the V1MigrateLegacyBillingPayload interface.
16
+ */
17
+ export function instanceOfV1MigrateLegacyBillingPayload(value) {
18
+ if (!('payorUserUuid' in value) || value['payorUserUuid'] === undefined)
19
+ return false;
20
+ if (!('distributorCode' in value) || value['distributorCode'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function V1MigrateLegacyBillingPayloadFromJSON(json) {
25
+ return V1MigrateLegacyBillingPayloadFromJSONTyped(json, false);
26
+ }
27
+ export function V1MigrateLegacyBillingPayloadFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'payorUserUuid': json['payorUserUuid'],
33
+ 'distributorCode': json['distributorCode'],
34
+ };
35
+ }
36
+ export function V1MigrateLegacyBillingPayloadToJSON(json) {
37
+ return V1MigrateLegacyBillingPayloadToJSONTyped(json, false);
38
+ }
39
+ export function V1MigrateLegacyBillingPayloadToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'payorUserUuid': value['payorUserUuid'],
45
+ 'distributorCode': value['distributorCode'],
46
+ };
47
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Billing
3
+ * Micro-Service to handle billing
4
+ *
5
+ * The version of the OpenAPI document: 2.1.1-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { V1BillingType } from './V1BillingType';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface V1Organization
17
+ */
18
+ export interface V1Organization {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof V1Organization
23
+ */
24
+ uuid: string;
25
+ /**
26
+ *
27
+ * @type {V1BillingType}
28
+ * @memberof V1Organization
29
+ */
30
+ billingType: V1BillingType;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof V1Organization
35
+ */
36
+ payorUuid?: string | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof V1Organization
41
+ */
42
+ chargebeeId?: string | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof V1Organization
47
+ */
48
+ distributorCode?: string | null;
49
+ }
50
+ /**
51
+ * Check if a given object implements the V1Organization interface.
52
+ */
53
+ export declare function instanceOfV1Organization(value: object): value is V1Organization;
54
+ export declare function V1OrganizationFromJSON(json: any): V1Organization;
55
+ export declare function V1OrganizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1Organization;
56
+ export declare function V1OrganizationToJSON(json: any): V1Organization;
57
+ export declare function V1OrganizationToJSONTyped(value?: V1Organization | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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
+ import { V1BillingTypeFromJSON, V1BillingTypeToJSON, } from './V1BillingType';
15
+ /**
16
+ * Check if a given object implements the V1Organization interface.
17
+ */
18
+ export function instanceOfV1Organization(value) {
19
+ if (!('uuid' in value) || value['uuid'] === undefined)
20
+ return false;
21
+ if (!('billingType' in value) || value['billingType'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function V1OrganizationFromJSON(json) {
26
+ return V1OrganizationFromJSONTyped(json, false);
27
+ }
28
+ export function V1OrganizationFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'uuid': json['uuid'],
34
+ 'billingType': V1BillingTypeFromJSON(json['billingType']),
35
+ 'payorUuid': json['payorUuid'] == null ? undefined : json['payorUuid'],
36
+ 'chargebeeId': json['chargebeeId'] == null ? undefined : json['chargebeeId'],
37
+ 'distributorCode': json['distributorCode'] == null ? undefined : json['distributorCode'],
38
+ };
39
+ }
40
+ export function V1OrganizationToJSON(json) {
41
+ return V1OrganizationToJSONTyped(json, false);
42
+ }
43
+ export function V1OrganizationToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'uuid': value['uuid'],
49
+ 'billingType': V1BillingTypeToJSON(value['billingType']),
50
+ 'payorUuid': value['payorUuid'],
51
+ 'chargebeeId': value['chargebeeId'],
52
+ 'distributorCode': value['distributorCode'],
53
+ };
54
+ }
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Billing
3
+ * Micro-Service to handle billing
4
+ *
5
+ * The version of the OpenAPI document: 2.1.1-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { V1OrganizationStatusChargebeeV1Addon } from './V1OrganizationStatusChargebeeV1Addon';
13
+ import type { V1ChargebeeV1UnpaidInvoice } from './V1ChargebeeV1UnpaidInvoice';
14
+ import type { V1OrganizationStatusChargebeeV1User } from './V1OrganizationStatusChargebeeV1User';
15
+ import type { V1ChargebeeV1NotPaidInvoice } from './V1ChargebeeV1NotPaidInvoice';
16
+ import type { V1ChargebeeV1PaymentDueInvoice } from './V1ChargebeeV1PaymentDueInvoice';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface V1OrganizationChargebeeV1Status
21
+ */
22
+ export interface V1OrganizationChargebeeV1Status {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof V1OrganizationChargebeeV1Status
27
+ */
28
+ customerId: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof V1OrganizationChargebeeV1Status
33
+ */
34
+ customerEmail?: string | null;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof V1OrganizationChargebeeV1Status
39
+ */
40
+ subscriptionId?: string | null;
41
+ /**
42
+ *
43
+ * @type {Array<V1ChargebeeV1NotPaidInvoice>}
44
+ * @memberof V1OrganizationChargebeeV1Status
45
+ */
46
+ notPaidInvoices: Array<V1ChargebeeV1NotPaidInvoice>;
47
+ /**
48
+ *
49
+ * @type {Array<V1ChargebeeV1UnpaidInvoice>}
50
+ * @memberof V1OrganizationChargebeeV1Status
51
+ */
52
+ unpaidInvoices: Array<V1ChargebeeV1UnpaidInvoice>;
53
+ /**
54
+ *
55
+ * @type {Array<V1ChargebeeV1PaymentDueInvoice>}
56
+ * @memberof V1OrganizationChargebeeV1Status
57
+ */
58
+ paymentDueInvoices: Array<V1ChargebeeV1PaymentDueInvoice>;
59
+ /**
60
+ *
61
+ * @type {Array<V1OrganizationStatusChargebeeV1Addon>}
62
+ * @memberof V1OrganizationChargebeeV1Status
63
+ */
64
+ addons: Array<V1OrganizationStatusChargebeeV1Addon>;
65
+ /**
66
+ *
67
+ * @type {Array<V1OrganizationStatusChargebeeV1User>}
68
+ * @memberof V1OrganizationChargebeeV1Status
69
+ */
70
+ users: Array<V1OrganizationStatusChargebeeV1User>;
71
+ }
72
+ /**
73
+ * Check if a given object implements the V1OrganizationChargebeeV1Status interface.
74
+ */
75
+ export declare function instanceOfV1OrganizationChargebeeV1Status(value: object): value is V1OrganizationChargebeeV1Status;
76
+ export declare function V1OrganizationChargebeeV1StatusFromJSON(json: any): V1OrganizationChargebeeV1Status;
77
+ export declare function V1OrganizationChargebeeV1StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrganizationChargebeeV1Status;
78
+ export declare function V1OrganizationChargebeeV1StatusToJSON(json: any): V1OrganizationChargebeeV1Status;
79
+ export declare function V1OrganizationChargebeeV1StatusToJSONTyped(value?: V1OrganizationChargebeeV1Status | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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
+ import { V1OrganizationStatusChargebeeV1AddonFromJSON, V1OrganizationStatusChargebeeV1AddonToJSON, } from './V1OrganizationStatusChargebeeV1Addon';
15
+ import { V1ChargebeeV1UnpaidInvoiceFromJSON, V1ChargebeeV1UnpaidInvoiceToJSON, } from './V1ChargebeeV1UnpaidInvoice';
16
+ import { V1OrganizationStatusChargebeeV1UserFromJSON, V1OrganizationStatusChargebeeV1UserToJSON, } from './V1OrganizationStatusChargebeeV1User';
17
+ import { V1ChargebeeV1NotPaidInvoiceFromJSON, V1ChargebeeV1NotPaidInvoiceToJSON, } from './V1ChargebeeV1NotPaidInvoice';
18
+ import { V1ChargebeeV1PaymentDueInvoiceFromJSON, V1ChargebeeV1PaymentDueInvoiceToJSON, } from './V1ChargebeeV1PaymentDueInvoice';
19
+ /**
20
+ * Check if a given object implements the V1OrganizationChargebeeV1Status interface.
21
+ */
22
+ export function instanceOfV1OrganizationChargebeeV1Status(value) {
23
+ if (!('customerId' in value) || value['customerId'] === undefined)
24
+ return false;
25
+ if (!('notPaidInvoices' in value) || value['notPaidInvoices'] === undefined)
26
+ return false;
27
+ if (!('unpaidInvoices' in value) || value['unpaidInvoices'] === undefined)
28
+ return false;
29
+ if (!('paymentDueInvoices' in value) || value['paymentDueInvoices'] === undefined)
30
+ return false;
31
+ if (!('addons' in value) || value['addons'] === undefined)
32
+ return false;
33
+ if (!('users' in value) || value['users'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ export function V1OrganizationChargebeeV1StatusFromJSON(json) {
38
+ return V1OrganizationChargebeeV1StatusFromJSONTyped(json, false);
39
+ }
40
+ export function V1OrganizationChargebeeV1StatusFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'customerId': json['customerId'],
46
+ 'customerEmail': json['customerEmail'] == null ? undefined : json['customerEmail'],
47
+ 'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
48
+ 'notPaidInvoices': (json['notPaidInvoices'].map(V1ChargebeeV1NotPaidInvoiceFromJSON)),
49
+ 'unpaidInvoices': (json['unpaidInvoices'].map(V1ChargebeeV1UnpaidInvoiceFromJSON)),
50
+ 'paymentDueInvoices': (json['paymentDueInvoices'].map(V1ChargebeeV1PaymentDueInvoiceFromJSON)),
51
+ 'addons': (json['addons'].map(V1OrganizationStatusChargebeeV1AddonFromJSON)),
52
+ 'users': (json['users'].map(V1OrganizationStatusChargebeeV1UserFromJSON)),
53
+ };
54
+ }
55
+ export function V1OrganizationChargebeeV1StatusToJSON(json) {
56
+ return V1OrganizationChargebeeV1StatusToJSONTyped(json, false);
57
+ }
58
+ export function V1OrganizationChargebeeV1StatusToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'customerId': value['customerId'],
64
+ 'customerEmail': value['customerEmail'],
65
+ 'subscriptionId': value['subscriptionId'],
66
+ 'notPaidInvoices': (value['notPaidInvoices'].map(V1ChargebeeV1NotPaidInvoiceToJSON)),
67
+ 'unpaidInvoices': (value['unpaidInvoices'].map(V1ChargebeeV1UnpaidInvoiceToJSON)),
68
+ 'paymentDueInvoices': (value['paymentDueInvoices'].map(V1ChargebeeV1PaymentDueInvoiceToJSON)),
69
+ 'addons': (value['addons'].map(V1OrganizationStatusChargebeeV1AddonToJSON)),
70
+ 'users': (value['users'].map(V1OrganizationStatusChargebeeV1UserToJSON)),
71
+ };
72
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Billing
3
+ * Micro-Service to handle billing
4
+ *
5
+ * The version of the OpenAPI document: 2.1.1-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { V1BillingType } from './V1BillingType';
13
+ import type { V1OrganizationChargebeeV1Status } from './V1OrganizationChargebeeV1Status';
14
+ import type { V1BillingStatus } from './V1BillingStatus';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface V1OrganizationStatus
19
+ */
20
+ export interface V1OrganizationStatus {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof V1OrganizationStatus
25
+ */
26
+ uuid: string;
27
+ /**
28
+ *
29
+ * @type {V1BillingType}
30
+ * @memberof V1OrganizationStatus
31
+ */
32
+ billingType: V1BillingType;
33
+ /**
34
+ *
35
+ * @type {V1BillingStatus}
36
+ * @memberof V1OrganizationStatus
37
+ */
38
+ billingStatus: V1BillingStatus;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof V1OrganizationStatus
43
+ */
44
+ payorUuid?: string | null;
45
+ /**
46
+ *
47
+ * @type {V1OrganizationChargebeeV1Status}
48
+ * @memberof V1OrganizationStatus
49
+ */
50
+ chargebeeV1?: V1OrganizationChargebeeV1Status | null;
51
+ }
52
+ /**
53
+ * Check if a given object implements the V1OrganizationStatus interface.
54
+ */
55
+ export declare function instanceOfV1OrganizationStatus(value: object): value is V1OrganizationStatus;
56
+ export declare function V1OrganizationStatusFromJSON(json: any): V1OrganizationStatus;
57
+ export declare function V1OrganizationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrganizationStatus;
58
+ export declare function V1OrganizationStatusToJSON(json: any): V1OrganizationStatus;
59
+ export declare function V1OrganizationStatusToJSONTyped(value?: V1OrganizationStatus | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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
+ import { V1BillingTypeFromJSON, V1BillingTypeToJSON, } from './V1BillingType';
15
+ import { V1OrganizationChargebeeV1StatusFromJSON, V1OrganizationChargebeeV1StatusToJSON, } from './V1OrganizationChargebeeV1Status';
16
+ import { V1BillingStatusFromJSON, V1BillingStatusToJSON, } from './V1BillingStatus';
17
+ /**
18
+ * Check if a given object implements the V1OrganizationStatus interface.
19
+ */
20
+ export function instanceOfV1OrganizationStatus(value) {
21
+ if (!('uuid' in value) || value['uuid'] === undefined)
22
+ return false;
23
+ if (!('billingType' in value) || value['billingType'] === undefined)
24
+ return false;
25
+ if (!('billingStatus' in value) || value['billingStatus'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function V1OrganizationStatusFromJSON(json) {
30
+ return V1OrganizationStatusFromJSONTyped(json, false);
31
+ }
32
+ export function V1OrganizationStatusFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'uuid': json['uuid'],
38
+ 'billingType': V1BillingTypeFromJSON(json['billingType']),
39
+ 'billingStatus': V1BillingStatusFromJSON(json['billingStatus']),
40
+ 'payorUuid': json['payorUuid'] == null ? undefined : json['payorUuid'],
41
+ 'chargebeeV1': json['chargebeeV1'] == null ? undefined : V1OrganizationChargebeeV1StatusFromJSON(json['chargebeeV1']),
42
+ };
43
+ }
44
+ export function V1OrganizationStatusToJSON(json) {
45
+ return V1OrganizationStatusToJSONTyped(json, false);
46
+ }
47
+ export function V1OrganizationStatusToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'uuid': value['uuid'],
53
+ 'billingType': V1BillingTypeToJSON(value['billingType']),
54
+ 'billingStatus': V1BillingStatusToJSON(value['billingStatus']),
55
+ 'payorUuid': value['payorUuid'],
56
+ 'chargebeeV1': V1OrganizationChargebeeV1StatusToJSON(value['chargebeeV1']),
57
+ };
58
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Billing
3
+ * Micro-Service to handle billing
4
+ *
5
+ * The version of the OpenAPI document: 2.1.1-SNAPSHOT
6
+ * Contact: customersuccess@equisoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface V1OrganizationStatusChargebeeV1Addon
16
+ */
17
+ export interface V1OrganizationStatusChargebeeV1Addon {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof V1OrganizationStatusChargebeeV1Addon
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof V1OrganizationStatusChargebeeV1Addon
28
+ */
29
+ name?: string | null;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof V1OrganizationStatusChargebeeV1Addon
34
+ */
35
+ quantity: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the V1OrganizationStatusChargebeeV1Addon interface.
39
+ */
40
+ export declare function instanceOfV1OrganizationStatusChargebeeV1Addon(value: object): value is V1OrganizationStatusChargebeeV1Addon;
41
+ export declare function V1OrganizationStatusChargebeeV1AddonFromJSON(json: any): V1OrganizationStatusChargebeeV1Addon;
42
+ export declare function V1OrganizationStatusChargebeeV1AddonFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1OrganizationStatusChargebeeV1Addon;
43
+ export declare function V1OrganizationStatusChargebeeV1AddonToJSON(json: any): V1OrganizationStatusChargebeeV1Addon;
44
+ export declare function V1OrganizationStatusChargebeeV1AddonToJSONTyped(value?: V1OrganizationStatusChargebeeV1Addon | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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
+ * Check if a given object implements the V1OrganizationStatusChargebeeV1Addon interface.
16
+ */
17
+ export function instanceOfV1OrganizationStatusChargebeeV1Addon(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('quantity' in value) || value['quantity'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function V1OrganizationStatusChargebeeV1AddonFromJSON(json) {
25
+ return V1OrganizationStatusChargebeeV1AddonFromJSONTyped(json, false);
26
+ }
27
+ export function V1OrganizationStatusChargebeeV1AddonFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'name': json['name'] == null ? undefined : json['name'],
34
+ 'quantity': json['quantity'],
35
+ };
36
+ }
37
+ export function V1OrganizationStatusChargebeeV1AddonToJSON(json) {
38
+ return V1OrganizationStatusChargebeeV1AddonToJSONTyped(json, false);
39
+ }
40
+ export function V1OrganizationStatusChargebeeV1AddonToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'id': value['id'],
46
+ 'name': value['name'],
47
+ 'quantity': value['quantity'],
48
+ };
49
+ }