@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,176 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { V1SetUserNonBillablePayloadToJSON, V1UserFromJSON, V1UserStatusFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class UserV1Api extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Get billing information about a User
|
|
31
|
+
*/
|
|
32
|
+
getUserRaw(requestParameters, initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['uuid'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling getUser().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
// oauth required
|
|
41
|
+
const token = this.configuration.accessToken;
|
|
42
|
+
const tokenString = yield token("OAuth2", []);
|
|
43
|
+
if (tokenString) {
|
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const response = yield this.request({
|
|
48
|
+
path: `/v1/users/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid']))),
|
|
49
|
+
method: 'GET',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
}, initOverrides);
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => V1UserFromJSON(jsonValue));
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get billing information about a User
|
|
58
|
+
*/
|
|
59
|
+
getUser(requestParameters, initOverrides) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const response = yield this.getUserRaw(requestParameters, initOverrides);
|
|
62
|
+
return yield response.value();
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Get billing status of a user
|
|
67
|
+
*/
|
|
68
|
+
getUserStatusRaw(requestParameters, initOverrides) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
if (requestParameters['uuid'] == null) {
|
|
71
|
+
throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling getUserStatus().');
|
|
72
|
+
}
|
|
73
|
+
const queryParameters = {};
|
|
74
|
+
const headerParameters = {};
|
|
75
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
76
|
+
// oauth required
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = yield token("OAuth2", []);
|
|
79
|
+
if (tokenString) {
|
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const response = yield this.request({
|
|
84
|
+
path: `/v1/users/{uuid}/status`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid']))),
|
|
85
|
+
method: 'GET',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
}, initOverrides);
|
|
89
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => V1UserStatusFromJSON(jsonValue));
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Get billing status of a user
|
|
94
|
+
*/
|
|
95
|
+
getUserStatus(requestParameters, initOverrides) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
const response = yield this.getUserStatusRaw(requestParameters, initOverrides);
|
|
98
|
+
return yield response.value();
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Set the user non-billable
|
|
103
|
+
*/
|
|
104
|
+
setNonBillableRaw(requestParameters, initOverrides) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
if (requestParameters['uuid'] == null) {
|
|
107
|
+
throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling setNonBillable().');
|
|
108
|
+
}
|
|
109
|
+
if (requestParameters['v1SetUserNonBillablePayload'] == null) {
|
|
110
|
+
throw new runtime.RequiredError('v1SetUserNonBillablePayload', 'Required parameter "v1SetUserNonBillablePayload" was null or undefined when calling setNonBillable().');
|
|
111
|
+
}
|
|
112
|
+
const queryParameters = {};
|
|
113
|
+
const headerParameters = {};
|
|
114
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
115
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
116
|
+
// oauth required
|
|
117
|
+
const token = this.configuration.accessToken;
|
|
118
|
+
const tokenString = yield token("OAuth2", []);
|
|
119
|
+
if (tokenString) {
|
|
120
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
const response = yield this.request({
|
|
124
|
+
path: `/v1/users/{uuid}/nonBillable`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid']))),
|
|
125
|
+
method: 'PUT',
|
|
126
|
+
headers: headerParameters,
|
|
127
|
+
query: queryParameters,
|
|
128
|
+
body: V1SetUserNonBillablePayloadToJSON(requestParameters['v1SetUserNonBillablePayload']),
|
|
129
|
+
}, initOverrides);
|
|
130
|
+
return new runtime.VoidApiResponse(response);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Set the user non-billable
|
|
135
|
+
*/
|
|
136
|
+
setNonBillable(requestParameters, initOverrides) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
yield this.setNonBillableRaw(requestParameters, initOverrides);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Remove the non-billable flag on the user
|
|
143
|
+
*/
|
|
144
|
+
unsetNonBillableRaw(requestParameters, initOverrides) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
if (requestParameters['uuid'] == null) {
|
|
147
|
+
throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling unsetNonBillable().');
|
|
148
|
+
}
|
|
149
|
+
const queryParameters = {};
|
|
150
|
+
const headerParameters = {};
|
|
151
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
152
|
+
// oauth required
|
|
153
|
+
const token = this.configuration.accessToken;
|
|
154
|
+
const tokenString = yield token("OAuth2", []);
|
|
155
|
+
if (tokenString) {
|
|
156
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const response = yield this.request({
|
|
160
|
+
path: `/v1/users/{uuid}/nonBillable`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid']))),
|
|
161
|
+
method: 'DELETE',
|
|
162
|
+
headers: headerParameters,
|
|
163
|
+
query: queryParameters,
|
|
164
|
+
}, initOverrides);
|
|
165
|
+
return new runtime.VoidApiResponse(response);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Remove the non-billable flag on the user
|
|
170
|
+
*/
|
|
171
|
+
unsetNonBillable(requestParameters, initOverrides) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
yield this.unsetNonBillableRaw(requestParameters, initOverrides);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const ErrorCodes: {
|
|
17
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
18
|
+
readonly SERVER_ERROR: "SERVER_ERROR";
|
|
19
|
+
readonly SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
|
|
20
|
+
readonly INVALID_BILLING_TYPE: "INVALID_BILLING_TYPE";
|
|
21
|
+
readonly ACCESS_DENIED: "ACCESS_DENIED";
|
|
22
|
+
readonly PAYMENT_ERROR: "PAYMENT_ERROR";
|
|
23
|
+
readonly INVALID_PORTAL_SESSION_REDIRECT_URL: "INVALID_PORTAL_SESSION_REDIRECT_URL";
|
|
24
|
+
readonly unknown_default_open_api: "11184809";
|
|
25
|
+
};
|
|
26
|
+
export type ErrorCodes = typeof ErrorCodes[keyof typeof ErrorCodes];
|
|
27
|
+
export declare function instanceOfErrorCodes(value: any): boolean;
|
|
28
|
+
export declare function ErrorCodesFromJSON(json: any): ErrorCodes;
|
|
29
|
+
export declare function ErrorCodesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorCodes;
|
|
30
|
+
export declare function ErrorCodesToJSON(value?: ErrorCodes | null): any;
|
|
31
|
+
export declare function ErrorCodesToJSONTyped(value: any, ignoreDiscriminator: boolean): ErrorCodes;
|
|
@@ -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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ErrorCodes = {
|
|
19
|
+
NOT_FOUND: 'NOT_FOUND',
|
|
20
|
+
SERVER_ERROR: 'SERVER_ERROR',
|
|
21
|
+
SERVICE_UNAVAILABLE: 'SERVICE_UNAVAILABLE',
|
|
22
|
+
INVALID_BILLING_TYPE: 'INVALID_BILLING_TYPE',
|
|
23
|
+
ACCESS_DENIED: 'ACCESS_DENIED',
|
|
24
|
+
PAYMENT_ERROR: 'PAYMENT_ERROR',
|
|
25
|
+
INVALID_PORTAL_SESSION_REDIRECT_URL: 'INVALID_PORTAL_SESSION_REDIRECT_URL',
|
|
26
|
+
unknown_default_open_api: '11184809'
|
|
27
|
+
};
|
|
28
|
+
export function instanceOfErrorCodes(value) {
|
|
29
|
+
for (const key in ErrorCodes) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(ErrorCodes, key)) {
|
|
31
|
+
if (ErrorCodes[key] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
export function ErrorCodesFromJSON(json) {
|
|
39
|
+
return ErrorCodesFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ErrorCodesFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
export function ErrorCodesToJSON(value) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
export function ErrorCodesToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { ErrorCodes } from './ErrorCodes';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ErrorSchema
|
|
17
|
+
*/
|
|
18
|
+
export interface ErrorSchema {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ErrorCodes}
|
|
22
|
+
* @memberof ErrorSchema
|
|
23
|
+
*/
|
|
24
|
+
code: ErrorCodes;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ErrorSchema
|
|
29
|
+
*/
|
|
30
|
+
message?: string | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ErrorSchema interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfErrorSchema(value: object): value is ErrorSchema;
|
|
36
|
+
export declare function ErrorSchemaFromJSON(json: any): ErrorSchema;
|
|
37
|
+
export declare function ErrorSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorSchema;
|
|
38
|
+
export declare function ErrorSchemaToJSON(json: any): ErrorSchema;
|
|
39
|
+
export declare function ErrorSchemaToJSONTyped(value?: ErrorSchema | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { ErrorCodesFromJSON, ErrorCodesToJSON, } from './ErrorCodes';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ErrorSchema interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfErrorSchema(value) {
|
|
19
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function ErrorSchemaFromJSON(json) {
|
|
24
|
+
return ErrorSchemaFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function ErrorSchemaFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'code': ErrorCodesFromJSON(json['code']),
|
|
32
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function ErrorSchemaToJSON(json) {
|
|
36
|
+
return ErrorSchemaToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function ErrorSchemaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'code': ErrorCodesToJSON(value['code']),
|
|
44
|
+
'message': value['message'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const SubscriptionCreationMode: {
|
|
17
|
+
readonly CREATE_ON_FIRST_PAYMENT: "CREATE_ON_FIRST_PAYMENT";
|
|
18
|
+
readonly CREATE_NOW_WITH_PAYMENT_DUE: "CREATE_NOW_WITH_PAYMENT_DUE";
|
|
19
|
+
readonly unknown_default_open_api: "11184809";
|
|
20
|
+
};
|
|
21
|
+
export type SubscriptionCreationMode = typeof SubscriptionCreationMode[keyof typeof SubscriptionCreationMode];
|
|
22
|
+
export declare function instanceOfSubscriptionCreationMode(value: any): boolean;
|
|
23
|
+
export declare function SubscriptionCreationModeFromJSON(json: any): SubscriptionCreationMode;
|
|
24
|
+
export declare function SubscriptionCreationModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionCreationMode;
|
|
25
|
+
export declare function SubscriptionCreationModeToJSON(value?: SubscriptionCreationMode | null): any;
|
|
26
|
+
export declare function SubscriptionCreationModeToJSONTyped(value: any, ignoreDiscriminator: boolean): SubscriptionCreationMode;
|
|
@@ -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
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SubscriptionCreationMode = {
|
|
19
|
+
CREATE_ON_FIRST_PAYMENT: 'CREATE_ON_FIRST_PAYMENT',
|
|
20
|
+
CREATE_NOW_WITH_PAYMENT_DUE: 'CREATE_NOW_WITH_PAYMENT_DUE',
|
|
21
|
+
unknown_default_open_api: '11184809'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfSubscriptionCreationMode(value) {
|
|
24
|
+
for (const key in SubscriptionCreationMode) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(SubscriptionCreationMode, key)) {
|
|
26
|
+
if (SubscriptionCreationMode[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function SubscriptionCreationModeFromJSON(json) {
|
|
34
|
+
return SubscriptionCreationModeFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function SubscriptionCreationModeFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function SubscriptionCreationModeToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function SubscriptionCreationModeToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
* Billing status of the organization. This is agnostic and complementary to the billingType
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const V1BillingStatus: {
|
|
17
|
+
/**
|
|
18
|
+
* Automatic billing with active subscription
|
|
19
|
+
*/
|
|
20
|
+
readonly ACTIVE_SUBSCRIPTION: "ACTIVE_SUBSCRIPTION";
|
|
21
|
+
/**
|
|
22
|
+
* Automatic billing without subscription. Waiting customer first payment.
|
|
23
|
+
*/
|
|
24
|
+
readonly NO_SUBSCRIPTION: "NO_SUBSCRIPTION";
|
|
25
|
+
/**
|
|
26
|
+
* Automatic billing without unpaid invoices
|
|
27
|
+
*/
|
|
28
|
+
readonly UNPAID_SUBSCRIPTION: "UNPAID_SUBSCRIPTION";
|
|
29
|
+
/**
|
|
30
|
+
* Automatic billing with canceled subscription
|
|
31
|
+
*/
|
|
32
|
+
readonly CANCELLED_SUBSCRIPTION: "CANCELLED_SUBSCRIPTION";
|
|
33
|
+
/**
|
|
34
|
+
* Manual billing
|
|
35
|
+
*/
|
|
36
|
+
readonly MANUAL: "MANUAL";
|
|
37
|
+
/**
|
|
38
|
+
* No billing
|
|
39
|
+
*/
|
|
40
|
+
readonly NONE: "NONE";
|
|
41
|
+
readonly unknown_default_open_api: "11184809";
|
|
42
|
+
};
|
|
43
|
+
export type V1BillingStatus = typeof V1BillingStatus[keyof typeof V1BillingStatus];
|
|
44
|
+
export declare function instanceOfV1BillingStatus(value: any): boolean;
|
|
45
|
+
export declare function V1BillingStatusFromJSON(json: any): V1BillingStatus;
|
|
46
|
+
export declare function V1BillingStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1BillingStatus;
|
|
47
|
+
export declare function V1BillingStatusToJSON(value?: V1BillingStatus | null): any;
|
|
48
|
+
export declare function V1BillingStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): V1BillingStatus;
|
|
@@ -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
|
+
* Billing status of the organization. This is agnostic and complementary to the billingType
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const V1BillingStatus = {
|
|
19
|
+
/**
|
|
20
|
+
* Automatic billing with active subscription
|
|
21
|
+
*/
|
|
22
|
+
ACTIVE_SUBSCRIPTION: 'ACTIVE_SUBSCRIPTION',
|
|
23
|
+
/**
|
|
24
|
+
* Automatic billing without subscription. Waiting customer first payment.
|
|
25
|
+
*/
|
|
26
|
+
NO_SUBSCRIPTION: 'NO_SUBSCRIPTION',
|
|
27
|
+
/**
|
|
28
|
+
* Automatic billing without unpaid invoices
|
|
29
|
+
*/
|
|
30
|
+
UNPAID_SUBSCRIPTION: 'UNPAID_SUBSCRIPTION',
|
|
31
|
+
/**
|
|
32
|
+
* Automatic billing with canceled subscription
|
|
33
|
+
*/
|
|
34
|
+
CANCELLED_SUBSCRIPTION: 'CANCELLED_SUBSCRIPTION',
|
|
35
|
+
/**
|
|
36
|
+
* Manual billing
|
|
37
|
+
*/
|
|
38
|
+
MANUAL: 'MANUAL',
|
|
39
|
+
/**
|
|
40
|
+
* No billing
|
|
41
|
+
*/
|
|
42
|
+
NONE: 'NONE',
|
|
43
|
+
unknown_default_open_api: '11184809'
|
|
44
|
+
};
|
|
45
|
+
export function instanceOfV1BillingStatus(value) {
|
|
46
|
+
for (const key in V1BillingStatus) {
|
|
47
|
+
if (Object.prototype.hasOwnProperty.call(V1BillingStatus, key)) {
|
|
48
|
+
if (V1BillingStatus[key] === value) {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
export function V1BillingStatusFromJSON(json) {
|
|
56
|
+
return V1BillingStatusFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
export function V1BillingStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
export function V1BillingStatusToJSON(value) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
export function V1BillingStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const V1BillingType: {
|
|
17
|
+
readonly NONE: "NONE";
|
|
18
|
+
readonly MANUAL: "MANUAL";
|
|
19
|
+
readonly LEGACY_CONNECT: "LEGACY_CONNECT";
|
|
20
|
+
readonly LEGACY_PLAN: "LEGACY_PLAN";
|
|
21
|
+
readonly CHARGEBEE_V1: "CHARGEBEE_V1";
|
|
22
|
+
readonly NON_BILLABLE: "NON_BILLABLE";
|
|
23
|
+
readonly unknown_default_open_api: "11184809";
|
|
24
|
+
};
|
|
25
|
+
export type V1BillingType = typeof V1BillingType[keyof typeof V1BillingType];
|
|
26
|
+
export declare function instanceOfV1BillingType(value: any): boolean;
|
|
27
|
+
export declare function V1BillingTypeFromJSON(json: any): V1BillingType;
|
|
28
|
+
export declare function V1BillingTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1BillingType;
|
|
29
|
+
export declare function V1BillingTypeToJSON(value?: V1BillingType | null): any;
|
|
30
|
+
export declare function V1BillingTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): V1BillingType;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const V1BillingType = {
|
|
19
|
+
NONE: 'NONE',
|
|
20
|
+
MANUAL: 'MANUAL',
|
|
21
|
+
LEGACY_CONNECT: 'LEGACY_CONNECT',
|
|
22
|
+
LEGACY_PLAN: 'LEGACY_PLAN',
|
|
23
|
+
CHARGEBEE_V1: 'CHARGEBEE_V1',
|
|
24
|
+
NON_BILLABLE: 'NON_BILLABLE',
|
|
25
|
+
unknown_default_open_api: '11184809'
|
|
26
|
+
};
|
|
27
|
+
export function instanceOfV1BillingType(value) {
|
|
28
|
+
for (const key in V1BillingType) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(V1BillingType, key)) {
|
|
30
|
+
if (V1BillingType[key] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
export function V1BillingTypeFromJSON(json) {
|
|
38
|
+
return V1BillingTypeFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function V1BillingTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
export function V1BillingTypeToJSON(value) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
export function V1BillingTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
@@ -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 V1ChargebeeV1NotPaidInvoice
|
|
16
|
+
*/
|
|
17
|
+
export interface V1ChargebeeV1NotPaidInvoice {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof V1ChargebeeV1NotPaidInvoice
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Due date of the invoice
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof V1ChargebeeV1NotPaidInvoice
|
|
28
|
+
*/
|
|
29
|
+
dueDate?: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
* The unpaid amount that is due on the invoice in dollars.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof V1ChargebeeV1NotPaidInvoice
|
|
34
|
+
*/
|
|
35
|
+
amountDue: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the V1ChargebeeV1NotPaidInvoice interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfV1ChargebeeV1NotPaidInvoice(value: object): value is V1ChargebeeV1NotPaidInvoice;
|
|
41
|
+
export declare function V1ChargebeeV1NotPaidInvoiceFromJSON(json: any): V1ChargebeeV1NotPaidInvoice;
|
|
42
|
+
export declare function V1ChargebeeV1NotPaidInvoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1ChargebeeV1NotPaidInvoice;
|
|
43
|
+
export declare function V1ChargebeeV1NotPaidInvoiceToJSON(json: any): V1ChargebeeV1NotPaidInvoice;
|
|
44
|
+
export declare function V1ChargebeeV1NotPaidInvoiceToJSONTyped(value?: V1ChargebeeV1NotPaidInvoice | null, ignoreDiscriminator?: boolean): any;
|