@emilgroup/billing-sdk 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -1
- package/README.md +2 -2
- package/api/invoices-api.ts +119 -0
- package/dist/api/invoices-api.d.ts +65 -0
- package/dist/api/invoices-api.js +100 -0
- package/dist/models/get-invoice-response-class.d.ts +25 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/invoice-class.d.ts +2 -3
- package/dist/models/omit-type-class.d.ts +2 -3
- package/dist/models/policy-premium-dto.d.ts +6 -0
- package/models/get-invoice-response-class.ts +31 -0
- package/models/index.ts +1 -1
- package/models/invoice-class.ts +2 -3
- package/models/omit-type-class.ts +2 -3
- package/models/policy-premium-dto.ts +6 -0
- package/package.json +1 -1
- package/dist/models/currency-class.d.ts +0 -48
- package/models/currency-class.ts +0 -54
- /package/dist/models/{currency-class.js → get-invoice-response-class.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -22,7 +22,7 @@ models/create-invoice-request-dto.ts
|
|
|
22
22
|
models/create-invoice-response-class.ts
|
|
23
23
|
models/create-invoice-status-request-dto.ts
|
|
24
24
|
models/create-termination-invoice-request-dto.ts
|
|
25
|
-
models/
|
|
25
|
+
models/get-invoice-response-class.ts
|
|
26
26
|
models/index.ts
|
|
27
27
|
models/invoice-class.ts
|
|
28
28
|
models/invoice-item-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/billing-sdk@1.
|
|
20
|
+
npm install @emilgroup/billing-sdk@1.5.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/billing-sdk@1.
|
|
24
|
+
yarn add @emilgroup/billing-sdk@1.5.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `InvoicesApi`.
|
package/api/invoices-api.ts
CHANGED
|
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { GetInvoiceResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { ListInvoicesResponseClass } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { ListPoliciesBillingDatesResponseClass } from '../models';
|
|
@@ -30,6 +32,58 @@ import { ListPoliciesBillingDatesResponseClass } from '../models';
|
|
|
30
32
|
*/
|
|
31
33
|
export const InvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
34
|
return {
|
|
35
|
+
/**
|
|
36
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
37
|
+
* @summary List invoices
|
|
38
|
+
* @param {string} code
|
|
39
|
+
* @param {string} expand
|
|
40
|
+
* @param {string} [authorization] Bearer Token
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
getInvoice: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
|
+
// verify required parameter 'code' is not null or undefined
|
|
46
|
+
assertParamExists('getInvoice', 'code', code)
|
|
47
|
+
// verify required parameter 'expand' is not null or undefined
|
|
48
|
+
assertParamExists('getInvoice', 'expand', expand)
|
|
49
|
+
const localVarPath = `/billingservice/v1/invoices/{code}`
|
|
50
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
51
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
53
|
+
let baseOptions;
|
|
54
|
+
let baseAccessToken;
|
|
55
|
+
if (configuration) {
|
|
56
|
+
baseOptions = configuration.baseOptions;
|
|
57
|
+
baseAccessToken = configuration.accessToken;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
61
|
+
const localVarHeaderParameter = {} as any;
|
|
62
|
+
const localVarQueryParameter = {} as any;
|
|
63
|
+
|
|
64
|
+
// authentication bearer required
|
|
65
|
+
// http bearer authentication required
|
|
66
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
67
|
+
|
|
68
|
+
if (expand !== undefined) {
|
|
69
|
+
localVarQueryParameter['expand'] = expand;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
73
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
url: toPathString(localVarUrlObj),
|
|
84
|
+
options: localVarRequestOptions,
|
|
85
|
+
};
|
|
86
|
+
},
|
|
33
87
|
/**
|
|
34
88
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
35
89
|
* @summary List invoices
|
|
@@ -182,6 +236,19 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
182
236
|
export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
183
237
|
const localVarAxiosParamCreator = InvoicesApiAxiosParamCreator(configuration)
|
|
184
238
|
return {
|
|
239
|
+
/**
|
|
240
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
241
|
+
* @summary List invoices
|
|
242
|
+
* @param {string} code
|
|
243
|
+
* @param {string} expand
|
|
244
|
+
* @param {string} [authorization] Bearer Token
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
async getInvoice(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceResponseClass>> {
|
|
249
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoice(code, expand, authorization, options);
|
|
250
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
251
|
+
},
|
|
185
252
|
/**
|
|
186
253
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
187
254
|
* @summary List invoices
|
|
@@ -226,6 +293,18 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
226
293
|
export const InvoicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
227
294
|
const localVarFp = InvoicesApiFp(configuration)
|
|
228
295
|
return {
|
|
296
|
+
/**
|
|
297
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
298
|
+
* @summary List invoices
|
|
299
|
+
* @param {string} code
|
|
300
|
+
* @param {string} expand
|
|
301
|
+
* @param {string} [authorization] Bearer Token
|
|
302
|
+
* @param {*} [options] Override http request option.
|
|
303
|
+
* @throws {RequiredError}
|
|
304
|
+
*/
|
|
305
|
+
getInvoice(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetInvoiceResponseClass> {
|
|
306
|
+
return localVarFp.getInvoice(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
307
|
+
},
|
|
229
308
|
/**
|
|
230
309
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
231
310
|
* @summary List invoices
|
|
@@ -261,6 +340,34 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
261
340
|
};
|
|
262
341
|
};
|
|
263
342
|
|
|
343
|
+
/**
|
|
344
|
+
* Request parameters for getInvoice operation in InvoicesApi.
|
|
345
|
+
* @export
|
|
346
|
+
* @interface InvoicesApiGetInvoiceRequest
|
|
347
|
+
*/
|
|
348
|
+
export interface InvoicesApiGetInvoiceRequest {
|
|
349
|
+
/**
|
|
350
|
+
*
|
|
351
|
+
* @type {string}
|
|
352
|
+
* @memberof InvoicesApiGetInvoice
|
|
353
|
+
*/
|
|
354
|
+
readonly code: string
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @type {string}
|
|
359
|
+
* @memberof InvoicesApiGetInvoice
|
|
360
|
+
*/
|
|
361
|
+
readonly expand: string
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Bearer Token
|
|
365
|
+
* @type {string}
|
|
366
|
+
* @memberof InvoicesApiGetInvoice
|
|
367
|
+
*/
|
|
368
|
+
readonly authorization?: string
|
|
369
|
+
}
|
|
370
|
+
|
|
264
371
|
/**
|
|
265
372
|
* Request parameters for listInvoices operation in InvoicesApi.
|
|
266
373
|
* @export
|
|
@@ -380,6 +487,18 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
380
487
|
* @extends {BaseAPI}
|
|
381
488
|
*/
|
|
382
489
|
export class InvoicesApi extends BaseAPI {
|
|
490
|
+
/**
|
|
491
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
492
|
+
* @summary List invoices
|
|
493
|
+
* @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
|
|
494
|
+
* @param {*} [options] Override http request option.
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
* @memberof InvoicesApi
|
|
497
|
+
*/
|
|
498
|
+
public getInvoice(requestParameters: InvoicesApiGetInvoiceRequest, options?: AxiosRequestConfig) {
|
|
499
|
+
return InvoicesApiFp(this.configuration).getInvoice(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
500
|
+
}
|
|
501
|
+
|
|
383
502
|
/**
|
|
384
503
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
385
504
|
* @summary List invoices
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { GetInvoiceResponseClass } from '../models';
|
|
15
16
|
import { ListInvoicesResponseClass } from '../models';
|
|
16
17
|
import { ListPoliciesBillingDatesResponseClass } from '../models';
|
|
17
18
|
/**
|
|
@@ -19,6 +20,16 @@ import { ListPoliciesBillingDatesResponseClass } from '../models';
|
|
|
19
20
|
* @export
|
|
20
21
|
*/
|
|
21
22
|
export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
25
|
+
* @summary List invoices
|
|
26
|
+
* @param {string} code
|
|
27
|
+
* @param {string} expand
|
|
28
|
+
* @param {string} [authorization] Bearer Token
|
|
29
|
+
* @param {*} [options] Override http request option.
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
getInvoice: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
22
33
|
/**
|
|
23
34
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
24
35
|
* @summary List invoices
|
|
@@ -53,6 +64,16 @@ export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
53
64
|
* @export
|
|
54
65
|
*/
|
|
55
66
|
export declare const InvoicesApiFp: (configuration?: Configuration) => {
|
|
67
|
+
/**
|
|
68
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
69
|
+
* @summary List invoices
|
|
70
|
+
* @param {string} code
|
|
71
|
+
* @param {string} expand
|
|
72
|
+
* @param {string} [authorization] Bearer Token
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
getInvoice(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceResponseClass>>;
|
|
56
77
|
/**
|
|
57
78
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
58
79
|
* @summary List invoices
|
|
@@ -87,6 +108,16 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
|
|
|
87
108
|
* @export
|
|
88
109
|
*/
|
|
89
110
|
export declare const InvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
111
|
+
/**
|
|
112
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
113
|
+
* @summary List invoices
|
|
114
|
+
* @param {string} code
|
|
115
|
+
* @param {string} expand
|
|
116
|
+
* @param {string} [authorization] Bearer Token
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
getInvoice(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetInvoiceResponseClass>;
|
|
90
121
|
/**
|
|
91
122
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
92
123
|
* @summary List invoices
|
|
@@ -116,6 +147,31 @@ export declare const InvoicesApiFactory: (configuration?: Configuration, basePat
|
|
|
116
147
|
*/
|
|
117
148
|
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPoliciesBillingDatesResponseClass>;
|
|
118
149
|
};
|
|
150
|
+
/**
|
|
151
|
+
* Request parameters for getInvoice operation in InvoicesApi.
|
|
152
|
+
* @export
|
|
153
|
+
* @interface InvoicesApiGetInvoiceRequest
|
|
154
|
+
*/
|
|
155
|
+
export interface InvoicesApiGetInvoiceRequest {
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof InvoicesApiGetInvoice
|
|
160
|
+
*/
|
|
161
|
+
readonly code: string;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof InvoicesApiGetInvoice
|
|
166
|
+
*/
|
|
167
|
+
readonly expand: string;
|
|
168
|
+
/**
|
|
169
|
+
* Bearer Token
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof InvoicesApiGetInvoice
|
|
172
|
+
*/
|
|
173
|
+
readonly authorization?: string;
|
|
174
|
+
}
|
|
119
175
|
/**
|
|
120
176
|
* Request parameters for listInvoices operation in InvoicesApi.
|
|
121
177
|
* @export
|
|
@@ -221,6 +277,15 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
221
277
|
* @extends {BaseAPI}
|
|
222
278
|
*/
|
|
223
279
|
export declare class InvoicesApi extends BaseAPI {
|
|
280
|
+
/**
|
|
281
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
282
|
+
* @summary List invoices
|
|
283
|
+
* @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
|
|
284
|
+
* @param {*} [options] Override http request option.
|
|
285
|
+
* @throws {RequiredError}
|
|
286
|
+
* @memberof InvoicesApi
|
|
287
|
+
*/
|
|
288
|
+
getInvoice(requestParameters: InvoicesApiGetInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetInvoiceResponseClass, any>>;
|
|
224
289
|
/**
|
|
225
290
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
226
291
|
* @summary List invoices
|
package/dist/api/invoices-api.js
CHANGED
|
@@ -92,6 +92,60 @@ var base_1 = require("../base");
|
|
|
92
92
|
var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
+
/**
|
|
96
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
97
|
+
* @summary List invoices
|
|
98
|
+
* @param {string} code
|
|
99
|
+
* @param {string} expand
|
|
100
|
+
* @param {string} [authorization] Bearer Token
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
getInvoice: function (code, expand, authorization, options) {
|
|
105
|
+
if (options === void 0) { options = {}; }
|
|
106
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
108
|
+
return __generator(this, function (_a) {
|
|
109
|
+
switch (_a.label) {
|
|
110
|
+
case 0:
|
|
111
|
+
// verify required parameter 'code' is not null or undefined
|
|
112
|
+
(0, common_1.assertParamExists)('getInvoice', 'code', code);
|
|
113
|
+
// verify required parameter 'expand' is not null or undefined
|
|
114
|
+
(0, common_1.assertParamExists)('getInvoice', 'expand', expand);
|
|
115
|
+
localVarPath = "/billingservice/v1/invoices/{code}"
|
|
116
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
117
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
baseAccessToken = configuration.accessToken;
|
|
121
|
+
}
|
|
122
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
123
|
+
localVarHeaderParameter = {};
|
|
124
|
+
localVarQueryParameter = {};
|
|
125
|
+
// authentication bearer required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
|
+
case 1:
|
|
129
|
+
// authentication bearer required
|
|
130
|
+
// http bearer authentication required
|
|
131
|
+
_a.sent();
|
|
132
|
+
if (expand !== undefined) {
|
|
133
|
+
localVarQueryParameter['expand'] = expand;
|
|
134
|
+
}
|
|
135
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
|
+
}
|
|
138
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
139
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
140
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
141
|
+
return [2 /*return*/, {
|
|
142
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
143
|
+
options: localVarRequestOptions,
|
|
144
|
+
}];
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
},
|
|
95
149
|
/**
|
|
96
150
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
97
151
|
* @summary List invoices
|
|
@@ -238,6 +292,28 @@ exports.InvoicesApiAxiosParamCreator = InvoicesApiAxiosParamCreator;
|
|
|
238
292
|
var InvoicesApiFp = function (configuration) {
|
|
239
293
|
var localVarAxiosParamCreator = (0, exports.InvoicesApiAxiosParamCreator)(configuration);
|
|
240
294
|
return {
|
|
295
|
+
/**
|
|
296
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
297
|
+
* @summary List invoices
|
|
298
|
+
* @param {string} code
|
|
299
|
+
* @param {string} expand
|
|
300
|
+
* @param {string} [authorization] Bearer Token
|
|
301
|
+
* @param {*} [options] Override http request option.
|
|
302
|
+
* @throws {RequiredError}
|
|
303
|
+
*/
|
|
304
|
+
getInvoice: function (code, expand, authorization, options) {
|
|
305
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
306
|
+
var localVarAxiosArgs;
|
|
307
|
+
return __generator(this, function (_a) {
|
|
308
|
+
switch (_a.label) {
|
|
309
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInvoice(code, expand, authorization, options)];
|
|
310
|
+
case 1:
|
|
311
|
+
localVarAxiosArgs = _a.sent();
|
|
312
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
},
|
|
241
317
|
/**
|
|
242
318
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
243
319
|
* @summary List invoices
|
|
@@ -300,6 +376,18 @@ exports.InvoicesApiFp = InvoicesApiFp;
|
|
|
300
376
|
var InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
301
377
|
var localVarFp = (0, exports.InvoicesApiFp)(configuration);
|
|
302
378
|
return {
|
|
379
|
+
/**
|
|
380
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
381
|
+
* @summary List invoices
|
|
382
|
+
* @param {string} code
|
|
383
|
+
* @param {string} expand
|
|
384
|
+
* @param {string} [authorization] Bearer Token
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
getInvoice: function (code, expand, authorization, options) {
|
|
389
|
+
return localVarFp.getInvoice(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
390
|
+
},
|
|
303
391
|
/**
|
|
304
392
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
305
393
|
* @summary List invoices
|
|
@@ -346,6 +434,18 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
346
434
|
function InvoicesApi() {
|
|
347
435
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
348
436
|
}
|
|
437
|
+
/**
|
|
438
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
439
|
+
* @summary List invoices
|
|
440
|
+
* @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
|
|
441
|
+
* @param {*} [options] Override http request option.
|
|
442
|
+
* @throws {RequiredError}
|
|
443
|
+
* @memberof InvoicesApi
|
|
444
|
+
*/
|
|
445
|
+
InvoicesApi.prototype.getInvoice = function (requestParameters, options) {
|
|
446
|
+
var _this = this;
|
|
447
|
+
return (0, exports.InvoicesApiFp)(this.configuration).getInvoice(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
448
|
+
};
|
|
349
449
|
/**
|
|
350
450
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
351
451
|
* @summary List invoices
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL BillingService
|
|
3
|
+
* The EMIL BillingService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
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 { OmitTypeClass } from './omit-type-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetInvoiceResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface GetInvoiceResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Invoice response.
|
|
21
|
+
* @type {OmitTypeClass}
|
|
22
|
+
* @memberof GetInvoiceResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'invoice': OmitTypeClass;
|
|
25
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export * from './create-invoice-request-dto';
|
|
|
7
7
|
export * from './create-invoice-response-class';
|
|
8
8
|
export * from './create-invoice-status-request-dto';
|
|
9
9
|
export * from './create-termination-invoice-request-dto';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './get-invoice-response-class';
|
|
11
11
|
export * from './invoice-class';
|
|
12
12
|
export * from './invoice-item-class';
|
|
13
13
|
export * from './invoice-status-class';
|
package/dist/models/index.js
CHANGED
|
@@ -23,7 +23,7 @@ __exportStar(require("./create-invoice-request-dto"), exports);
|
|
|
23
23
|
__exportStar(require("./create-invoice-response-class"), exports);
|
|
24
24
|
__exportStar(require("./create-invoice-status-request-dto"), exports);
|
|
25
25
|
__exportStar(require("./create-termination-invoice-request-dto"), exports);
|
|
26
|
-
__exportStar(require("./
|
|
26
|
+
__exportStar(require("./get-invoice-response-class"), exports);
|
|
27
27
|
__exportStar(require("./invoice-class"), exports);
|
|
28
28
|
__exportStar(require("./invoice-item-class"), exports);
|
|
29
29
|
__exportStar(require("./invoice-status-class"), exports);
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CurrencyClass } from './currency-class';
|
|
13
12
|
import { InvoiceItemClass } from './invoice-item-class';
|
|
14
13
|
import { InvoiceStatusClass } from './invoice-status-class';
|
|
15
14
|
/**
|
|
@@ -128,10 +127,10 @@ export interface InvoiceClass {
|
|
|
128
127
|
'statuses': Array<InvoiceStatusClass>;
|
|
129
128
|
/**
|
|
130
129
|
* Invoice currency. EUR is used by default.
|
|
131
|
-
* @type {
|
|
130
|
+
* @type {string}
|
|
132
131
|
* @memberof InvoiceClass
|
|
133
132
|
*/
|
|
134
|
-
'currency':
|
|
133
|
+
'currency': string;
|
|
135
134
|
}
|
|
136
135
|
export declare const InvoiceClassTypeEnum: {
|
|
137
136
|
readonly Initial: "initial";
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CurrencyClass } from './currency-class';
|
|
13
12
|
import { InvoiceItemClass } from './invoice-item-class';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
@@ -121,10 +120,10 @@ export interface OmitTypeClass {
|
|
|
121
120
|
'invoiceItems': Array<InvoiceItemClass>;
|
|
122
121
|
/**
|
|
123
122
|
* Invoice currency. EUR is used by default.
|
|
124
|
-
* @type {
|
|
123
|
+
* @type {string}
|
|
125
124
|
* @memberof OmitTypeClass
|
|
126
125
|
*/
|
|
127
|
-
'currency':
|
|
126
|
+
'currency': string;
|
|
128
127
|
}
|
|
129
128
|
export declare const OmitTypeClassTypeEnum: {
|
|
130
129
|
readonly Initial: "initial";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL BillingService
|
|
5
|
+
* The EMIL BillingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
import { OmitTypeClass } from './omit-type-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetInvoiceResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetInvoiceResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Invoice response.
|
|
26
|
+
* @type {OmitTypeClass}
|
|
27
|
+
* @memberof GetInvoiceResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'invoice': OmitTypeClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
CHANGED
|
@@ -7,7 +7,7 @@ export * from './create-invoice-request-dto';
|
|
|
7
7
|
export * from './create-invoice-response-class';
|
|
8
8
|
export * from './create-invoice-status-request-dto';
|
|
9
9
|
export * from './create-termination-invoice-request-dto';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './get-invoice-response-class';
|
|
11
11
|
export * from './invoice-class';
|
|
12
12
|
export * from './invoice-item-class';
|
|
13
13
|
export * from './invoice-status-class';
|
package/models/invoice-class.ts
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import { CurrencyClass } from './currency-class';
|
|
17
16
|
import { InvoiceItemClass } from './invoice-item-class';
|
|
18
17
|
import { InvoiceStatusClass } from './invoice-status-class';
|
|
19
18
|
|
|
@@ -133,10 +132,10 @@ export interface InvoiceClass {
|
|
|
133
132
|
'statuses': Array<InvoiceStatusClass>;
|
|
134
133
|
/**
|
|
135
134
|
* Invoice currency. EUR is used by default.
|
|
136
|
-
* @type {
|
|
135
|
+
* @type {string}
|
|
137
136
|
* @memberof InvoiceClass
|
|
138
137
|
*/
|
|
139
|
-
'currency':
|
|
138
|
+
'currency': string;
|
|
140
139
|
}
|
|
141
140
|
|
|
142
141
|
export const InvoiceClassTypeEnum = {
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import { CurrencyClass } from './currency-class';
|
|
17
16
|
import { InvoiceItemClass } from './invoice-item-class';
|
|
18
17
|
|
|
19
18
|
/**
|
|
@@ -126,10 +125,10 @@ export interface OmitTypeClass {
|
|
|
126
125
|
'invoiceItems': Array<InvoiceItemClass>;
|
|
127
126
|
/**
|
|
128
127
|
* Invoice currency. EUR is used by default.
|
|
129
|
-
* @type {
|
|
128
|
+
* @type {string}
|
|
130
129
|
* @memberof OmitTypeClass
|
|
131
130
|
*/
|
|
132
|
-
'currency':
|
|
131
|
+
'currency': string;
|
|
133
132
|
}
|
|
134
133
|
|
|
135
134
|
export const OmitTypeClassTypeEnum = {
|
package/package.json
CHANGED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL BillingService
|
|
3
|
-
* The EMIL BillingService API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
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 CurrencyClass
|
|
16
|
-
*/
|
|
17
|
-
export interface CurrencyClass {
|
|
18
|
-
/**
|
|
19
|
-
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof CurrencyClass
|
|
22
|
-
*/
|
|
23
|
-
'id': number;
|
|
24
|
-
/**
|
|
25
|
-
* Name of currency in English.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CurrencyClass
|
|
28
|
-
*/
|
|
29
|
-
'name': string;
|
|
30
|
-
/**
|
|
31
|
-
* Name of currency in native language.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CurrencyClass
|
|
34
|
-
*/
|
|
35
|
-
'nativeName': string;
|
|
36
|
-
/**
|
|
37
|
-
* Code defined by ISO 4217 standard.
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof CurrencyClass
|
|
40
|
-
*/
|
|
41
|
-
'code': string;
|
|
42
|
-
/**
|
|
43
|
-
* Currency symbols are graphical representations used to denote a particular currency in written or printed form.
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof CurrencyClass
|
|
46
|
-
*/
|
|
47
|
-
'symbol': string;
|
|
48
|
-
}
|
package/models/currency-class.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL BillingService
|
|
5
|
-
* The EMIL BillingService API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface CurrencyClass
|
|
21
|
-
*/
|
|
22
|
-
export interface CurrencyClass {
|
|
23
|
-
/**
|
|
24
|
-
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
-
* @type {number}
|
|
26
|
-
* @memberof CurrencyClass
|
|
27
|
-
*/
|
|
28
|
-
'id': number;
|
|
29
|
-
/**
|
|
30
|
-
* Name of currency in English.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof CurrencyClass
|
|
33
|
-
*/
|
|
34
|
-
'name': string;
|
|
35
|
-
/**
|
|
36
|
-
* Name of currency in native language.
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof CurrencyClass
|
|
39
|
-
*/
|
|
40
|
-
'nativeName': string;
|
|
41
|
-
/**
|
|
42
|
-
* Code defined by ISO 4217 standard.
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof CurrencyClass
|
|
45
|
-
*/
|
|
46
|
-
'code': string;
|
|
47
|
-
/**
|
|
48
|
-
* Currency symbols are graphical representations used to denote a particular currency in written or printed form.
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof CurrencyClass
|
|
51
|
-
*/
|
|
52
|
-
'symbol': string;
|
|
53
|
-
}
|
|
54
|
-
|
|
File without changes
|