@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.
- package/.openapi-generator/FILES +41 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +13 -0
- package/.tool-versions +3 -0
- package/README.md +46 -0
- package/dist/apis/DistributorV1Api.d.ts +37 -0
- package/dist/apis/DistributorV1Api.js +102 -0
- package/dist/apis/OrganizationV1Api.d.ts +180 -0
- package/dist/apis/OrganizationV1Api.js +566 -0
- package/dist/apis/UserV1Api.d.ts +63 -0
- package/dist/apis/UserV1Api.js +180 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +21 -0
- package/dist/esm/apis/DistributorV1Api.d.ts +37 -0
- package/dist/esm/apis/DistributorV1Api.js +98 -0
- package/dist/esm/apis/OrganizationV1Api.d.ts +180 -0
- package/dist/esm/apis/OrganizationV1Api.js +562 -0
- package/dist/esm/apis/UserV1Api.d.ts +63 -0
- package/dist/esm/apis/UserV1Api.js +176 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +5 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ErrorCodes.d.ts +31 -0
- package/dist/esm/models/ErrorCodes.js +49 -0
- package/dist/esm/models/ErrorSchema.d.ts +39 -0
- package/dist/esm/models/ErrorSchema.js +46 -0
- package/dist/esm/models/SubscriptionCreationMode.d.ts +26 -0
- package/dist/esm/models/SubscriptionCreationMode.js +44 -0
- package/dist/esm/models/V1BillingStatus.d.ts +48 -0
- package/dist/esm/models/V1BillingStatus.js +66 -0
- package/dist/esm/models/V1BillingType.d.ts +30 -0
- package/dist/esm/models/V1BillingType.js +48 -0
- package/dist/esm/models/V1ChargebeeV1NotPaidInvoice.d.ts +44 -0
- package/dist/esm/models/V1ChargebeeV1NotPaidInvoice.js +49 -0
- package/dist/esm/models/V1ChargebeeV1PaymentDueInvoice.d.ts +44 -0
- package/dist/esm/models/V1ChargebeeV1PaymentDueInvoice.js +49 -0
- package/dist/esm/models/V1ChargebeeV1PortalSession.d.ts +44 -0
- package/dist/esm/models/V1ChargebeeV1PortalSession.js +49 -0
- package/dist/esm/models/V1ChargebeeV1UnpaidInvoice.d.ts +44 -0
- package/dist/esm/models/V1ChargebeeV1UnpaidInvoice.js +49 -0
- package/dist/esm/models/V1CollectChargebeeV1Payment.d.ts +32 -0
- package/dist/esm/models/V1CollectChargebeeV1Payment.js +43 -0
- package/dist/esm/models/V1CreateChargebeeV1PortalSessionPayload.d.ts +32 -0
- package/dist/esm/models/V1CreateChargebeeV1PortalSessionPayload.js +41 -0
- package/dist/esm/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.d.ts +38 -0
- package/dist/esm/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.js +47 -0
- package/dist/esm/models/V1Distributor.d.ts +50 -0
- package/dist/esm/models/V1Distributor.js +53 -0
- package/dist/esm/models/V1DistributorList.d.ts +33 -0
- package/dist/esm/models/V1DistributorList.js +44 -0
- package/dist/esm/models/V1MigrateLegacyBillingPayload.d.ts +38 -0
- package/dist/esm/models/V1MigrateLegacyBillingPayload.js +47 -0
- package/dist/esm/models/V1Organization.d.ts +57 -0
- package/dist/esm/models/V1Organization.js +54 -0
- package/dist/esm/models/V1OrganizationChargebeeV1Status.d.ts +79 -0
- package/dist/esm/models/V1OrganizationChargebeeV1Status.js +72 -0
- package/dist/esm/models/V1OrganizationStatus.d.ts +59 -0
- package/dist/esm/models/V1OrganizationStatus.js +58 -0
- package/dist/esm/models/V1OrganizationStatusChargebeeV1Addon.d.ts +44 -0
- package/dist/esm/models/V1OrganizationStatusChargebeeV1Addon.js +49 -0
- package/dist/esm/models/V1OrganizationStatusChargebeeV1User.d.ts +46 -0
- package/dist/esm/models/V1OrganizationStatusChargebeeV1User.js +53 -0
- package/dist/esm/models/V1OrganizationStatusChargebeeV1UserBillingStatus.d.ts +40 -0
- package/dist/esm/models/V1OrganizationStatusChargebeeV1UserBillingStatus.js +58 -0
- package/dist/esm/models/V1SetChargebeeV1BillingPayorPayload.d.ts +32 -0
- package/dist/esm/models/V1SetChargebeeV1BillingPayorPayload.js +43 -0
- package/dist/esm/models/V1SetChargebeeV1Payload.d.ts +45 -0
- package/dist/esm/models/V1SetChargebeeV1Payload.js +52 -0
- package/dist/esm/models/V1SetLegacyBillingPayload.d.ts +45 -0
- package/dist/esm/models/V1SetLegacyBillingPayload.js +50 -0
- package/dist/esm/models/V1SetOrganisationDistributorPayload.d.ts +32 -0
- package/dist/esm/models/V1SetOrganisationDistributorPayload.js +43 -0
- package/dist/esm/models/V1SetUserNonBillablePayload.d.ts +32 -0
- package/dist/esm/models/V1SetUserNonBillablePayload.js +43 -0
- package/dist/esm/models/V1User.d.ts +50 -0
- package/dist/esm/models/V1User.js +55 -0
- package/dist/esm/models/V1UserServiceStatus.d.ts +44 -0
- package/dist/esm/models/V1UserServiceStatus.js +51 -0
- package/dist/esm/models/V1UserStatus.d.ts +33 -0
- package/dist/esm/models/V1UserStatus.js +44 -0
- package/dist/esm/models/index.d.ts +29 -0
- package/dist/esm/models/index.js +31 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/ErrorCodes.d.ts +31 -0
- package/dist/models/ErrorCodes.js +57 -0
- package/dist/models/ErrorSchema.d.ts +39 -0
- package/dist/models/ErrorSchema.js +53 -0
- package/dist/models/SubscriptionCreationMode.d.ts +26 -0
- package/dist/models/SubscriptionCreationMode.js +52 -0
- package/dist/models/V1BillingStatus.d.ts +48 -0
- package/dist/models/V1BillingStatus.js +74 -0
- package/dist/models/V1BillingType.d.ts +30 -0
- package/dist/models/V1BillingType.js +56 -0
- package/dist/models/V1ChargebeeV1NotPaidInvoice.d.ts +44 -0
- package/dist/models/V1ChargebeeV1NotPaidInvoice.js +56 -0
- package/dist/models/V1ChargebeeV1PaymentDueInvoice.d.ts +44 -0
- package/dist/models/V1ChargebeeV1PaymentDueInvoice.js +56 -0
- package/dist/models/V1ChargebeeV1PortalSession.d.ts +44 -0
- package/dist/models/V1ChargebeeV1PortalSession.js +56 -0
- package/dist/models/V1ChargebeeV1UnpaidInvoice.d.ts +44 -0
- package/dist/models/V1ChargebeeV1UnpaidInvoice.js +56 -0
- package/dist/models/V1CollectChargebeeV1Payment.d.ts +32 -0
- package/dist/models/V1CollectChargebeeV1Payment.js +50 -0
- package/dist/models/V1CreateChargebeeV1PortalSessionPayload.d.ts +32 -0
- package/dist/models/V1CreateChargebeeV1PortalSessionPayload.js +48 -0
- package/dist/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.d.ts +38 -0
- package/dist/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.js +54 -0
- package/dist/models/V1Distributor.d.ts +50 -0
- package/dist/models/V1Distributor.js +60 -0
- package/dist/models/V1DistributorList.d.ts +33 -0
- package/dist/models/V1DistributorList.js +51 -0
- package/dist/models/V1MigrateLegacyBillingPayload.d.ts +38 -0
- package/dist/models/V1MigrateLegacyBillingPayload.js +54 -0
- package/dist/models/V1Organization.d.ts +57 -0
- package/dist/models/V1Organization.js +61 -0
- package/dist/models/V1OrganizationChargebeeV1Status.d.ts +79 -0
- package/dist/models/V1OrganizationChargebeeV1Status.js +79 -0
- package/dist/models/V1OrganizationStatus.d.ts +59 -0
- package/dist/models/V1OrganizationStatus.js +65 -0
- package/dist/models/V1OrganizationStatusChargebeeV1Addon.d.ts +44 -0
- package/dist/models/V1OrganizationStatusChargebeeV1Addon.js +56 -0
- package/dist/models/V1OrganizationStatusChargebeeV1User.d.ts +46 -0
- package/dist/models/V1OrganizationStatusChargebeeV1User.js +60 -0
- package/dist/models/V1OrganizationStatusChargebeeV1UserBillingStatus.d.ts +40 -0
- package/dist/models/V1OrganizationStatusChargebeeV1UserBillingStatus.js +66 -0
- package/dist/models/V1SetChargebeeV1BillingPayorPayload.d.ts +32 -0
- package/dist/models/V1SetChargebeeV1BillingPayorPayload.js +50 -0
- package/dist/models/V1SetChargebeeV1Payload.d.ts +45 -0
- package/dist/models/V1SetChargebeeV1Payload.js +59 -0
- package/dist/models/V1SetLegacyBillingPayload.d.ts +45 -0
- package/dist/models/V1SetLegacyBillingPayload.js +57 -0
- package/dist/models/V1SetOrganisationDistributorPayload.d.ts +32 -0
- package/dist/models/V1SetOrganisationDistributorPayload.js +50 -0
- package/dist/models/V1SetUserNonBillablePayload.d.ts +32 -0
- package/dist/models/V1SetUserNonBillablePayload.js +50 -0
- package/dist/models/V1User.d.ts +50 -0
- package/dist/models/V1User.js +62 -0
- package/dist/models/V1UserServiceStatus.d.ts +44 -0
- package/dist/models/V1UserServiceStatus.js +58 -0
- package/dist/models/V1UserStatus.d.ts +33 -0
- package/dist/models/V1UserStatus.js +51 -0
- package/dist/models/index.d.ts +29 -0
- package/dist/models/index.js +47 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/package.json +22 -0
- package/renovate.json +6 -0
- package/src/apis/DistributorV1Api.ts +117 -0
- package/src/apis/OrganizationV1Api.ts +784 -0
- package/src/apis/UserV1Api.ts +232 -0
- package/src/apis/index.ts +5 -0
- package/src/index.ts +5 -0
- package/src/models/ErrorCodes.ts +59 -0
- package/src/models/ErrorSchema.ts +84 -0
- package/src/models/SubscriptionCreationMode.ts +54 -0
- package/src/models/V1BillingStatus.ts +76 -0
- package/src/models/V1BillingType.ts +58 -0
- package/src/models/V1ChargebeeV1NotPaidInvoice.ts +83 -0
- package/src/models/V1ChargebeeV1PaymentDueInvoice.ts +83 -0
- package/src/models/V1ChargebeeV1PortalSession.ts +83 -0
- package/src/models/V1ChargebeeV1UnpaidInvoice.ts +83 -0
- package/src/models/V1CollectChargebeeV1Payment.ts +66 -0
- package/src/models/V1CreateChargebeeV1PortalSessionPayload.ts +65 -0
- package/src/models/V1CreateOrUpdateChargebeeV1SubscriptionPayload.ts +75 -0
- package/src/models/V1Distributor.ts +92 -0
- package/src/models/V1DistributorList.ts +74 -0
- package/src/models/V1MigrateLegacyBillingPayload.ts +75 -0
- package/src/models/V1Organization.ts +109 -0
- package/src/models/V1OrganizationChargebeeV1Status.ts +163 -0
- package/src/models/V1OrganizationStatus.ts +124 -0
- package/src/models/V1OrganizationStatusChargebeeV1Addon.ts +83 -0
- package/src/models/V1OrganizationStatusChargebeeV1User.ts +101 -0
- package/src/models/V1OrganizationStatusChargebeeV1UserBillingStatus.ts +68 -0
- package/src/models/V1SetChargebeeV1BillingPayorPayload.ts +66 -0
- package/src/models/V1SetChargebeeV1Payload.ts +94 -0
- package/src/models/V1SetLegacyBillingPayload.ts +93 -0
- package/src/models/V1SetOrganisationDistributorPayload.ts +66 -0
- package/src/models/V1SetUserNonBillablePayload.ts +66 -0
- package/src/models/V1User.ts +93 -0
- package/src/models/V1UserServiceStatus.ts +84 -0
- package/src/models/V1UserStatus.ts +74 -0
- package/src/models/index.ts +31 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,66 @@
|
|
|
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 V1SetChargebeeV1BillingPayorPayload
|
|
20
|
+
*/
|
|
21
|
+
export interface V1SetChargebeeV1BillingPayorPayload {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof V1SetChargebeeV1BillingPayorPayload
|
|
26
|
+
*/
|
|
27
|
+
payorUuid: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the V1SetChargebeeV1BillingPayorPayload interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfV1SetChargebeeV1BillingPayorPayload(value: object): value is V1SetChargebeeV1BillingPayorPayload {
|
|
34
|
+
if (!('payorUuid' in value) || value['payorUuid'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function V1SetChargebeeV1BillingPayorPayloadFromJSON(json: any): V1SetChargebeeV1BillingPayorPayload {
|
|
39
|
+
return V1SetChargebeeV1BillingPayorPayloadFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function V1SetChargebeeV1BillingPayorPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetChargebeeV1BillingPayorPayload {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'payorUuid': json['payorUuid'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function V1SetChargebeeV1BillingPayorPayloadToJSON(json: any): V1SetChargebeeV1BillingPayorPayload {
|
|
53
|
+
return V1SetChargebeeV1BillingPayorPayloadToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function V1SetChargebeeV1BillingPayorPayloadToJSONTyped(value?: V1SetChargebeeV1BillingPayorPayload | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'payorUuid': value['payorUuid'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { SubscriptionCreationMode } from './SubscriptionCreationMode';
|
|
17
|
+
import {
|
|
18
|
+
SubscriptionCreationModeFromJSON,
|
|
19
|
+
SubscriptionCreationModeFromJSONTyped,
|
|
20
|
+
SubscriptionCreationModeToJSON,
|
|
21
|
+
SubscriptionCreationModeToJSONTyped,
|
|
22
|
+
} from './SubscriptionCreationMode';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface V1SetChargebeeV1Payload
|
|
28
|
+
*/
|
|
29
|
+
export interface V1SetChargebeeV1Payload {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof V1SetChargebeeV1Payload
|
|
34
|
+
*/
|
|
35
|
+
payorUserUuid: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof V1SetChargebeeV1Payload
|
|
40
|
+
*/
|
|
41
|
+
distributorCode: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {SubscriptionCreationMode}
|
|
45
|
+
* @memberof V1SetChargebeeV1Payload
|
|
46
|
+
*/
|
|
47
|
+
subscriptionCreationMode: SubscriptionCreationMode;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the V1SetChargebeeV1Payload interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfV1SetChargebeeV1Payload(value: object): value is V1SetChargebeeV1Payload {
|
|
56
|
+
if (!('payorUserUuid' in value) || value['payorUserUuid'] === undefined) return false;
|
|
57
|
+
if (!('distributorCode' in value) || value['distributorCode'] === undefined) return false;
|
|
58
|
+
if (!('subscriptionCreationMode' in value) || value['subscriptionCreationMode'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function V1SetChargebeeV1PayloadFromJSON(json: any): V1SetChargebeeV1Payload {
|
|
63
|
+
return V1SetChargebeeV1PayloadFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function V1SetChargebeeV1PayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetChargebeeV1Payload {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'payorUserUuid': json['payorUserUuid'],
|
|
73
|
+
'distributorCode': json['distributorCode'],
|
|
74
|
+
'subscriptionCreationMode': SubscriptionCreationModeFromJSON(json['subscriptionCreationMode']),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function V1SetChargebeeV1PayloadToJSON(json: any): V1SetChargebeeV1Payload {
|
|
79
|
+
return V1SetChargebeeV1PayloadToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function V1SetChargebeeV1PayloadToJSONTyped(value?: V1SetChargebeeV1Payload | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'payorUserUuid': value['payorUserUuid'],
|
|
90
|
+
'distributorCode': value['distributorCode'],
|
|
91
|
+
'subscriptionCreationMode': SubscriptionCreationModeToJSON(value['subscriptionCreationMode']),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 V1SetLegacyBillingPayload
|
|
28
|
+
*/
|
|
29
|
+
export interface V1SetLegacyBillingPayload {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {V1BillingType}
|
|
33
|
+
* @memberof V1SetLegacyBillingPayload
|
|
34
|
+
*/
|
|
35
|
+
billingType: V1BillingType;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof V1SetLegacyBillingPayload
|
|
40
|
+
*/
|
|
41
|
+
chargebeeId: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof V1SetLegacyBillingPayload
|
|
46
|
+
*/
|
|
47
|
+
distributorCode?: string | null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the V1SetLegacyBillingPayload interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfV1SetLegacyBillingPayload(value: object): value is V1SetLegacyBillingPayload {
|
|
56
|
+
if (!('billingType' in value) || value['billingType'] === undefined) return false;
|
|
57
|
+
if (!('chargebeeId' in value) || value['chargebeeId'] === undefined) return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function V1SetLegacyBillingPayloadFromJSON(json: any): V1SetLegacyBillingPayload {
|
|
62
|
+
return V1SetLegacyBillingPayloadFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function V1SetLegacyBillingPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetLegacyBillingPayload {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'billingType': V1BillingTypeFromJSON(json['billingType']),
|
|
72
|
+
'chargebeeId': json['chargebeeId'],
|
|
73
|
+
'distributorCode': json['distributorCode'] == null ? undefined : json['distributorCode'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function V1SetLegacyBillingPayloadToJSON(json: any): V1SetLegacyBillingPayload {
|
|
78
|
+
return V1SetLegacyBillingPayloadToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function V1SetLegacyBillingPayloadToJSONTyped(value?: V1SetLegacyBillingPayload | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'billingType': V1BillingTypeToJSON(value['billingType']),
|
|
89
|
+
'chargebeeId': value['chargebeeId'],
|
|
90
|
+
'distributorCode': value['distributorCode'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 V1SetOrganisationDistributorPayload
|
|
20
|
+
*/
|
|
21
|
+
export interface V1SetOrganisationDistributorPayload {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof V1SetOrganisationDistributorPayload
|
|
26
|
+
*/
|
|
27
|
+
distributorCode: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the V1SetOrganisationDistributorPayload interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfV1SetOrganisationDistributorPayload(value: object): value is V1SetOrganisationDistributorPayload {
|
|
34
|
+
if (!('distributorCode' in value) || value['distributorCode'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function V1SetOrganisationDistributorPayloadFromJSON(json: any): V1SetOrganisationDistributorPayload {
|
|
39
|
+
return V1SetOrganisationDistributorPayloadFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function V1SetOrganisationDistributorPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetOrganisationDistributorPayload {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'distributorCode': json['distributorCode'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function V1SetOrganisationDistributorPayloadToJSON(json: any): V1SetOrganisationDistributorPayload {
|
|
53
|
+
return V1SetOrganisationDistributorPayloadToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function V1SetOrganisationDistributorPayloadToJSONTyped(value?: V1SetOrganisationDistributorPayload | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'distributorCode': value['distributorCode'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 V1SetUserNonBillablePayload
|
|
20
|
+
*/
|
|
21
|
+
export interface V1SetUserNonBillablePayload {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof V1SetUserNonBillablePayload
|
|
26
|
+
*/
|
|
27
|
+
reason: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the V1SetUserNonBillablePayload interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfV1SetUserNonBillablePayload(value: object): value is V1SetUserNonBillablePayload {
|
|
34
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function V1SetUserNonBillablePayloadFromJSON(json: any): V1SetUserNonBillablePayload {
|
|
39
|
+
return V1SetUserNonBillablePayloadFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function V1SetUserNonBillablePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1SetUserNonBillablePayload {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'reason': json['reason'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function V1SetUserNonBillablePayloadToJSON(json: any): V1SetUserNonBillablePayload {
|
|
53
|
+
return V1SetUserNonBillablePayloadToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function V1SetUserNonBillablePayloadToJSONTyped(value?: V1SetUserNonBillablePayload | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'reason': value['reason'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 V1User
|
|
20
|
+
*/
|
|
21
|
+
export interface V1User {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof V1User
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof V1User
|
|
32
|
+
*/
|
|
33
|
+
nonBillable: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof V1User
|
|
38
|
+
*/
|
|
39
|
+
nonBillableReason: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof V1User
|
|
44
|
+
*/
|
|
45
|
+
payorForOrganizations: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the V1User interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfV1User(value: object): value is V1User {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('nonBillable' in value) || value['nonBillable'] === undefined) return false;
|
|
54
|
+
if (!('nonBillableReason' in value) || value['nonBillableReason'] === undefined) return false;
|
|
55
|
+
if (!('payorForOrganizations' in value) || value['payorForOrganizations'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function V1UserFromJSON(json: any): V1User {
|
|
60
|
+
return V1UserFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function V1UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1User {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'nonBillable': json['nonBillable'],
|
|
71
|
+
'nonBillableReason': json['nonBillableReason'],
|
|
72
|
+
'payorForOrganizations': json['payorForOrganizations'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function V1UserToJSON(json: any): V1User {
|
|
77
|
+
return V1UserToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function V1UserToJSONTyped(value?: V1User | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'nonBillable': value['nonBillable'],
|
|
89
|
+
'nonBillableReason': value['nonBillableReason'],
|
|
90
|
+
'payorForOrganizations': value['payorForOrganizations'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 V1UserServiceStatus
|
|
20
|
+
*/
|
|
21
|
+
export interface V1UserServiceStatus {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof V1UserServiceStatus
|
|
26
|
+
*/
|
|
27
|
+
organizationUuid: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof V1UserServiceStatus
|
|
32
|
+
*/
|
|
33
|
+
code: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof V1UserServiceStatus
|
|
38
|
+
*/
|
|
39
|
+
authorized: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the V1UserServiceStatus interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfV1UserServiceStatus(value: object): value is V1UserServiceStatus {
|
|
46
|
+
if (!('organizationUuid' in value) || value['organizationUuid'] === undefined) return false;
|
|
47
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
48
|
+
if (!('authorized' in value) || value['authorized'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function V1UserServiceStatusFromJSON(json: any): V1UserServiceStatus {
|
|
53
|
+
return V1UserServiceStatusFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function V1UserServiceStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UserServiceStatus {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'organizationUuid': json['organizationUuid'],
|
|
63
|
+
'code': json['code'],
|
|
64
|
+
'authorized': json['authorized'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function V1UserServiceStatusToJSON(json: any): V1UserServiceStatus {
|
|
69
|
+
return V1UserServiceStatusToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function V1UserServiceStatusToJSONTyped(value?: V1UserServiceStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'organizationUuid': value['organizationUuid'],
|
|
80
|
+
'code': value['code'],
|
|
81
|
+
'authorized': value['authorized'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { V1UserServiceStatus } from './V1UserServiceStatus';
|
|
17
|
+
import {
|
|
18
|
+
V1UserServiceStatusFromJSON,
|
|
19
|
+
V1UserServiceStatusFromJSONTyped,
|
|
20
|
+
V1UserServiceStatusToJSON,
|
|
21
|
+
V1UserServiceStatusToJSONTyped,
|
|
22
|
+
} from './V1UserServiceStatus';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface V1UserStatus
|
|
28
|
+
*/
|
|
29
|
+
export interface V1UserStatus {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<V1UserServiceStatus>}
|
|
33
|
+
* @memberof V1UserStatus
|
|
34
|
+
*/
|
|
35
|
+
services: Array<V1UserServiceStatus>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the V1UserStatus interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfV1UserStatus(value: object): value is V1UserStatus {
|
|
42
|
+
if (!('services' in value) || value['services'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function V1UserStatusFromJSON(json: any): V1UserStatus {
|
|
47
|
+
return V1UserStatusFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function V1UserStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1UserStatus {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'services': ((json['services'] as Array<any>).map(V1UserServiceStatusFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function V1UserStatusToJSON(json: any): V1UserStatus {
|
|
61
|
+
return V1UserStatusToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function V1UserStatusToJSONTyped(value?: V1UserStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'services': ((value['services'] as Array<any>).map(V1UserServiceStatusToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export * from './ErrorCodes';
|
|
4
|
+
export * from './ErrorSchema';
|
|
5
|
+
export * from './SubscriptionCreationMode';
|
|
6
|
+
export * from './V1BillingStatus';
|
|
7
|
+
export * from './V1BillingType';
|
|
8
|
+
export * from './V1ChargebeeV1NotPaidInvoice';
|
|
9
|
+
export * from './V1ChargebeeV1PaymentDueInvoice';
|
|
10
|
+
export * from './V1ChargebeeV1PortalSession';
|
|
11
|
+
export * from './V1ChargebeeV1UnpaidInvoice';
|
|
12
|
+
export * from './V1CollectChargebeeV1Payment';
|
|
13
|
+
export * from './V1CreateChargebeeV1PortalSessionPayload';
|
|
14
|
+
export * from './V1CreateOrUpdateChargebeeV1SubscriptionPayload';
|
|
15
|
+
export * from './V1Distributor';
|
|
16
|
+
export * from './V1DistributorList';
|
|
17
|
+
export * from './V1MigrateLegacyBillingPayload';
|
|
18
|
+
export * from './V1Organization';
|
|
19
|
+
export * from './V1OrganizationChargebeeV1Status';
|
|
20
|
+
export * from './V1OrganizationStatus';
|
|
21
|
+
export * from './V1OrganizationStatusChargebeeV1Addon';
|
|
22
|
+
export * from './V1OrganizationStatusChargebeeV1User';
|
|
23
|
+
export * from './V1OrganizationStatusChargebeeV1UserBillingStatus';
|
|
24
|
+
export * from './V1SetChargebeeV1BillingPayorPayload';
|
|
25
|
+
export * from './V1SetChargebeeV1Payload';
|
|
26
|
+
export * from './V1SetLegacyBillingPayload';
|
|
27
|
+
export * from './V1SetOrganisationDistributorPayload';
|
|
28
|
+
export * from './V1SetUserNonBillablePayload';
|
|
29
|
+
export * from './V1User';
|
|
30
|
+
export * from './V1UserServiceStatus';
|
|
31
|
+
export * from './V1UserStatus';
|