@emilgroup/billing-sdk-node 1.5.0 → 1.7.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.
@@ -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/currency-class.ts
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-node@1.5.0 --save
20
+ npm install @emilgroup/billing-sdk-node@1.7.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk-node@1.5.0
24
+ yarn add @emilgroup/billing-sdk-node@1.7.0
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
@@ -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';
@@ -34,6 +36,58 @@ const FormData = require('form-data');
34
36
  */
35
37
  export const InvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
36
38
  return {
39
+ /**
40
+ * 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.
41
+ * @summary List invoices
42
+ * @param {string} code
43
+ * @param {string} expand
44
+ * @param {string} [authorization] Bearer Token
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ getInvoice: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
49
+ // verify required parameter 'code' is not null or undefined
50
+ assertParamExists('getInvoice', 'code', code)
51
+ // verify required parameter 'expand' is not null or undefined
52
+ assertParamExists('getInvoice', 'expand', expand)
53
+ const localVarPath = `/billingservice/v1/invoices/{code}`
54
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
55
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
56
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57
+ let baseOptions;
58
+ let baseAccessToken;
59
+ if (configuration) {
60
+ baseOptions = configuration.baseOptions;
61
+ baseAccessToken = configuration.accessToken;
62
+ }
63
+
64
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
65
+ const localVarHeaderParameter = {} as any;
66
+ const localVarQueryParameter = {} as any;
67
+
68
+ // authentication bearer required
69
+ // http bearer authentication required
70
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
71
+
72
+ if (expand !== undefined) {
73
+ localVarQueryParameter['expand'] = expand;
74
+ }
75
+
76
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
78
+ }
79
+
80
+
81
+
82
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
83
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
85
+
86
+ return {
87
+ url: toPathString(localVarUrlObj),
88
+ options: localVarRequestOptions,
89
+ };
90
+ },
37
91
  /**
38
92
  * 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.
39
93
  * @summary List invoices
@@ -186,6 +240,19 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
186
240
  export const InvoicesApiFp = function(configuration?: Configuration) {
187
241
  const localVarAxiosParamCreator = InvoicesApiAxiosParamCreator(configuration)
188
242
  return {
243
+ /**
244
+ * 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.
245
+ * @summary List invoices
246
+ * @param {string} code
247
+ * @param {string} expand
248
+ * @param {string} [authorization] Bearer Token
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ async getInvoice(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceResponseClass>> {
253
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoice(code, expand, authorization, options);
254
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
255
+ },
189
256
  /**
190
257
  * 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.
191
258
  * @summary List invoices
@@ -230,6 +297,18 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
230
297
  export const InvoicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
231
298
  const localVarFp = InvoicesApiFp(configuration)
232
299
  return {
300
+ /**
301
+ * 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.
302
+ * @summary List invoices
303
+ * @param {string} code
304
+ * @param {string} expand
305
+ * @param {string} [authorization] Bearer Token
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ */
309
+ getInvoice(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetInvoiceResponseClass> {
310
+ return localVarFp.getInvoice(code, expand, authorization, options).then((request) => request(axios, basePath));
311
+ },
233
312
  /**
234
313
  * 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.
235
314
  * @summary List invoices
@@ -265,6 +344,34 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
265
344
  };
266
345
  };
267
346
 
347
+ /**
348
+ * Request parameters for getInvoice operation in InvoicesApi.
349
+ * @export
350
+ * @interface InvoicesApiGetInvoiceRequest
351
+ */
352
+ export interface InvoicesApiGetInvoiceRequest {
353
+ /**
354
+ *
355
+ * @type {string}
356
+ * @memberof InvoicesApiGetInvoice
357
+ */
358
+ readonly code: string
359
+
360
+ /**
361
+ *
362
+ * @type {string}
363
+ * @memberof InvoicesApiGetInvoice
364
+ */
365
+ readonly expand: string
366
+
367
+ /**
368
+ * Bearer Token
369
+ * @type {string}
370
+ * @memberof InvoicesApiGetInvoice
371
+ */
372
+ readonly authorization?: string
373
+ }
374
+
268
375
  /**
269
376
  * Request parameters for listInvoices operation in InvoicesApi.
270
377
  * @export
@@ -384,6 +491,18 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
384
491
  * @extends {BaseAPI}
385
492
  */
386
493
  export class InvoicesApi extends BaseAPI {
494
+ /**
495
+ * 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.
496
+ * @summary List invoices
497
+ * @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
498
+ * @param {*} [options] Override http request option.
499
+ * @throws {RequiredError}
500
+ * @memberof InvoicesApi
501
+ */
502
+ public getInvoice(requestParameters: InvoicesApiGetInvoiceRequest, options?: AxiosRequestConfig) {
503
+ return InvoicesApiFp(this.configuration).getInvoice(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
504
+ }
505
+
387
506
  /**
388
507
  * 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.
389
508
  * @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
@@ -96,6 +96,60 @@ var FormData = require('form-data');
96
96
  var InvoicesApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
+ /**
100
+ * 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.
101
+ * @summary List invoices
102
+ * @param {string} code
103
+ * @param {string} expand
104
+ * @param {string} [authorization] Bearer Token
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ getInvoice: function (code, expand, authorization, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'code' is not null or undefined
116
+ (0, common_1.assertParamExists)('getInvoice', 'code', code);
117
+ // verify required parameter 'expand' is not null or undefined
118
+ (0, common_1.assertParamExists)('getInvoice', 'expand', expand);
119
+ localVarPath = "/billingservice/v1/invoices/{code}"
120
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
121
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
127
+ localVarHeaderParameter = {};
128
+ localVarQueryParameter = {};
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (expand !== undefined) {
137
+ localVarQueryParameter['expand'] = expand;
138
+ }
139
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
140
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
141
+ }
142
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
143
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
144
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
145
+ return [2 /*return*/, {
146
+ url: (0, common_1.toPathString)(localVarUrlObj),
147
+ options: localVarRequestOptions,
148
+ }];
149
+ }
150
+ });
151
+ });
152
+ },
99
153
  /**
100
154
  * 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.
101
155
  * @summary List invoices
@@ -242,6 +296,28 @@ exports.InvoicesApiAxiosParamCreator = InvoicesApiAxiosParamCreator;
242
296
  var InvoicesApiFp = function (configuration) {
243
297
  var localVarAxiosParamCreator = (0, exports.InvoicesApiAxiosParamCreator)(configuration);
244
298
  return {
299
+ /**
300
+ * 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.
301
+ * @summary List invoices
302
+ * @param {string} code
303
+ * @param {string} expand
304
+ * @param {string} [authorization] Bearer Token
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ */
308
+ getInvoice: function (code, expand, authorization, options) {
309
+ return __awaiter(this, void 0, void 0, function () {
310
+ var localVarAxiosArgs;
311
+ return __generator(this, function (_a) {
312
+ switch (_a.label) {
313
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInvoice(code, expand, authorization, options)];
314
+ case 1:
315
+ localVarAxiosArgs = _a.sent();
316
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
317
+ }
318
+ });
319
+ });
320
+ },
245
321
  /**
246
322
  * 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.
247
323
  * @summary List invoices
@@ -304,6 +380,18 @@ exports.InvoicesApiFp = InvoicesApiFp;
304
380
  var InvoicesApiFactory = function (configuration, basePath, axios) {
305
381
  var localVarFp = (0, exports.InvoicesApiFp)(configuration);
306
382
  return {
383
+ /**
384
+ * 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
+ * @summary List invoices
386
+ * @param {string} code
387
+ * @param {string} expand
388
+ * @param {string} [authorization] Bearer Token
389
+ * @param {*} [options] Override http request option.
390
+ * @throws {RequiredError}
391
+ */
392
+ getInvoice: function (code, expand, authorization, options) {
393
+ return localVarFp.getInvoice(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
394
+ },
307
395
  /**
308
396
  * 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.
309
397
  * @summary List invoices
@@ -350,6 +438,18 @@ var InvoicesApi = /** @class */ (function (_super) {
350
438
  function InvoicesApi() {
351
439
  return _super !== null && _super.apply(this, arguments) || this;
352
440
  }
441
+ /**
442
+ * 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.
443
+ * @summary List invoices
444
+ * @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ * @memberof InvoicesApi
448
+ */
449
+ InvoicesApi.prototype.getInvoice = function (requestParameters, options) {
450
+ var _this = this;
451
+ return (0, exports.InvoicesApiFp)(this.configuration).getInvoice(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
452
+ };
353
453
  /**
354
454
  * 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.
355
455
  * @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
+ }
@@ -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 './currency-class';
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';
@@ -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("./currency-class"), exports);
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 {CurrencyClass}
130
+ * @type {string}
132
131
  * @memberof InvoiceClass
133
132
  */
134
- 'currency': CurrencyClass;
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 {CurrencyClass}
123
+ * @type {string}
125
124
  * @memberof OmitTypeClass
126
125
  */
127
- 'currency': CurrencyClass;
126
+ 'currency': string;
128
127
  }
129
128
  export declare const OmitTypeClassTypeEnum: {
130
129
  readonly Initial: "initial";
@@ -40,4 +40,10 @@ export interface PolicyPremiumDto {
40
40
  * @memberof PolicyPremiumDto
41
41
  */
42
42
  'premiumItems': Array<PolicyPremiumItemDto>;
43
+ /**
44
+ * The currency of policy premium
45
+ * @type {string}
46
+ * @memberof PolicyPremiumDto
47
+ */
48
+ 'currency': string;
43
49
  }
@@ -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 './currency-class';
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';
@@ -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 {CurrencyClass}
135
+ * @type {string}
137
136
  * @memberof InvoiceClass
138
137
  */
139
- 'currency': CurrencyClass;
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 {CurrencyClass}
128
+ * @type {string}
130
129
  * @memberof OmitTypeClass
131
130
  */
132
- 'currency': CurrencyClass;
131
+ 'currency': string;
133
132
  }
134
133
 
135
134
  export const OmitTypeClassTypeEnum = {
@@ -45,5 +45,11 @@ export interface PolicyPremiumDto {
45
45
  * @memberof PolicyPremiumDto
46
46
  */
47
47
  'premiumItems': Array<PolicyPremiumItemDto>;
48
+ /**
49
+ * The currency of policy premium
50
+ * @type {string}
51
+ * @memberof PolicyPremiumDto
52
+ */
53
+ 'currency': string;
48
54
  }
49
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk-node",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -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
- }
@@ -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
-