@emilgroup/billing-sdk 1.63.1-beta.5 → 1.63.1-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/.openapi-generator/FILES +1 -4
  2. package/README.md +2 -2
  3. package/api.ts +0 -2
  4. package/dist/api.d.ts +0 -1
  5. package/dist/api.js +0 -1
  6. package/dist/models/create-correction-invoices-response-class.d.ts +3 -3
  7. package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +2 -4
  8. package/dist/models/create-draft-invoice-request-dto.d.ts +2 -4
  9. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +2 -4
  10. package/dist/models/create-estimated-invoice-request-dto.d.ts +2 -4
  11. package/dist/models/create-invoice-for-policy-request-dto.d.ts +2 -4
  12. package/dist/models/create-invoice-request-dto.d.ts +2 -4
  13. package/dist/models/create-invoice-response-class.d.ts +3 -3
  14. package/dist/models/create-termination-invoice-request-dto.d.ts +2 -4
  15. package/dist/models/get-invoice-response-class.d.ts +3 -3
  16. package/dist/models/index.d.ts +1 -3
  17. package/dist/models/index.js +1 -3
  18. package/dist/models/{omit-invoice-class-statuses.d.ts → omit-type-class.d.ts} +37 -37
  19. package/dist/models/{omit-invoice-class-statuses.js → omit-type-class.js} +3 -3
  20. package/dist/models/policy-object-dto.d.ts +2 -4
  21. package/dist/models/policy-version-dto.d.ts +2 -4
  22. package/models/create-correction-invoices-response-class.ts +3 -3
  23. package/models/create-custom-estimated-invoice-request-dto.ts +2 -2
  24. package/models/create-draft-invoice-request-dto.ts +2 -2
  25. package/models/create-estimated-invoice-for-interval-request-dto.ts +2 -2
  26. package/models/create-estimated-invoice-request-dto.ts +2 -2
  27. package/models/create-invoice-for-policy-request-dto.ts +2 -2
  28. package/models/create-invoice-request-dto.ts +2 -2
  29. package/models/create-invoice-response-class.ts +3 -3
  30. package/models/create-termination-invoice-request-dto.ts +2 -2
  31. package/models/get-invoice-response-class.ts +3 -3
  32. package/models/index.ts +1 -3
  33. package/models/{omit-invoice-class-statuses.ts → omit-type-class.ts} +37 -37
  34. package/models/policy-object-dto.ts +2 -2
  35. package/models/policy-version-dto.ts +2 -2
  36. package/package.json +1 -1
  37. package/api/withdraw-invoices-api.ts +0 -179
  38. package/dist/api/withdraw-invoices-api.d.ts +0 -106
  39. package/dist/api/withdraw-invoices-api.js +0 -230
  40. package/dist/models/create-withdraw-invoice-request-dto-rest.d.ts +0 -50
  41. package/dist/models/create-withdraw-invoice-request-dto-rest.js +0 -15
  42. package/dist/models/create-withdraw-invoice-request-dto.d.ts +0 -50
  43. package/dist/models/create-withdraw-invoice-request-dto.js +0 -15
  44. package/models/create-withdraw-invoice-request-dto-rest.ts +0 -54
  45. package/models/create-withdraw-invoice-request-dto.ts +0 -54
@@ -41,10 +41,10 @@ export interface CreateInvoiceRequestDto {
41
41
  'type': CreateInvoiceRequestDtoTypeEnum;
42
42
  /**
43
43
  * Metadata contains extra information that the object would need for specific cases.
44
- * @type {{ [key: string]: object; }}
44
+ * @type {object}
45
45
  * @memberof CreateInvoiceRequestDto
46
46
  */
47
- 'metadata'?: { [key: string]: object; };
47
+ 'metadata': object;
48
48
  /**
49
49
  * This is the date from which the invoice interval starts.
50
50
  * @type {string}
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- import { OmitInvoiceClassStatuses } from './omit-invoice-class-statuses';
16
+ import { OmitTypeClass } from './omit-type-class';
17
17
 
18
18
  /**
19
19
  *
@@ -23,9 +23,9 @@ import { OmitInvoiceClassStatuses } from './omit-invoice-class-statuses';
23
23
  export interface CreateInvoiceResponseClass {
24
24
  /**
25
25
  * Invoice response.
26
- * @type {OmitInvoiceClassStatuses}
26
+ * @type {OmitTypeClass}
27
27
  * @memberof CreateInvoiceResponseClass
28
28
  */
29
- 'invoice': OmitInvoiceClassStatuses;
29
+ 'invoice': OmitTypeClass;
30
30
  }
31
31
 
@@ -34,10 +34,10 @@ export interface CreateTerminationInvoiceRequestDto {
34
34
  'accountNumber': string;
35
35
  /**
36
36
  *
37
- * @type {{ [key: string]: object; }}
37
+ * @type {object}
38
38
  * @memberof CreateTerminationInvoiceRequestDto
39
39
  */
40
- 'metadata'?: { [key: string]: object; };
40
+ 'metadata'?: object;
41
41
  /**
42
42
  *
43
43
  * @type {string}
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- import { OmitInvoiceClassStatuses } from './omit-invoice-class-statuses';
16
+ import { OmitTypeClass } from './omit-type-class';
17
17
 
18
18
  /**
19
19
  *
@@ -23,9 +23,9 @@ import { OmitInvoiceClassStatuses } from './omit-invoice-class-statuses';
23
23
  export interface GetInvoiceResponseClass {
24
24
  /**
25
25
  * Invoice response.
26
- * @type {OmitInvoiceClassStatuses}
26
+ * @type {OmitTypeClass}
27
27
  * @memberof GetInvoiceResponseClass
28
28
  */
29
- 'invoice': OmitInvoiceClassStatuses;
29
+ 'invoice': OmitTypeClass;
30
30
  }
31
31
 
package/models/index.ts CHANGED
@@ -17,8 +17,6 @@ export * from './create-policy-billing-response-class';
17
17
  export * from './create-product-estimated-invoice-request-dto';
18
18
  export * from './create-product-estimated-invoice-response-class';
19
19
  export * from './create-termination-invoice-request-dto';
20
- export * from './create-withdraw-invoice-request-dto';
21
- export * from './create-withdraw-invoice-request-dto-rest';
22
20
  export * from './get-invoice-response-class';
23
21
  export * from './inline-response200';
24
22
  export * from './inline-response503';
@@ -30,7 +28,7 @@ export * from './invoice-status-class';
30
28
  export * from './list-invoices-response-class';
31
29
  export * from './list-policies-billings-response-class';
32
30
  export * from './list-request-dto';
33
- export * from './omit-invoice-class-statuses';
31
+ export * from './omit-type-class';
34
32
  export * from './policy-billing-class';
35
33
  export * from './policy-dto';
36
34
  export * from './policy-object-dto';
@@ -19,186 +19,186 @@ import { InvoicePaymentsClass } from './invoice-payments-class';
19
19
  /**
20
20
  *
21
21
  * @export
22
- * @interface OmitInvoiceClassStatuses
22
+ * @interface OmitTypeClass
23
23
  */
24
- export interface OmitInvoiceClassStatuses {
24
+ export interface OmitTypeClass {
25
25
  /**
26
26
  * Internal unique identifier for the object. You should not have to use this, use code instead.
27
27
  * @type {number}
28
- * @memberof OmitInvoiceClassStatuses
28
+ * @memberof OmitTypeClass
29
29
  */
30
30
  'id': number;
31
31
  /**
32
32
  * Unique identifier of the policy that this object belongs to.
33
33
  * @type {string}
34
- * @memberof OmitInvoiceClassStatuses
34
+ * @memberof OmitTypeClass
35
35
  */
36
36
  'policyCode': string;
37
37
  /**
38
38
  * Account number.
39
39
  * @type {string}
40
- * @memberof OmitInvoiceClassStatuses
40
+ * @memberof OmitTypeClass
41
41
  */
42
42
  'accountNumber': string;
43
43
  /**
44
44
  * Policy number.
45
45
  * @type {string}
46
- * @memberof OmitInvoiceClassStatuses
46
+ * @memberof OmitTypeClass
47
47
  */
48
48
  'policyNumber': string;
49
49
  /**
50
50
  * Unique identifier for the object.
51
51
  * @type {string}
52
- * @memberof OmitInvoiceClassStatuses
52
+ * @memberof OmitTypeClass
53
53
  */
54
54
  'code': string;
55
55
  /**
56
56
  * Invoice type.
57
57
  * @type {string}
58
- * @memberof OmitInvoiceClassStatuses
58
+ * @memberof OmitTypeClass
59
59
  */
60
- 'type': OmitInvoiceClassStatusesTypeEnum;
60
+ 'type': OmitTypeClassTypeEnum;
61
61
  /**
62
62
  * Invoice number.
63
63
  * @type {string}
64
- * @memberof OmitInvoiceClassStatuses
64
+ * @memberof OmitTypeClass
65
65
  */
66
66
  'invoiceNumber': string;
67
67
  /**
68
68
  * Net amount is in cents.
69
69
  * @type {number}
70
- * @memberof OmitInvoiceClassStatuses
70
+ * @memberof OmitTypeClass
71
71
  */
72
72
  'netAmount': number;
73
73
  /**
74
74
  * Tax amount is in cents.
75
75
  * @type {number}
76
- * @memberof OmitInvoiceClassStatuses
76
+ * @memberof OmitTypeClass
77
77
  */
78
78
  'taxAmount': number;
79
79
  /**
80
80
  * Credit amount.
81
81
  * @type {number}
82
- * @memberof OmitInvoiceClassStatuses
82
+ * @memberof OmitTypeClass
83
83
  */
84
84
  'creditAmount': number;
85
85
  /**
86
86
  * Gross amount. This property is sum of taxAmount and netAmount.
87
87
  * @type {number}
88
- * @memberof OmitInvoiceClassStatuses
88
+ * @memberof OmitTypeClass
89
89
  */
90
90
  'grossAmount': number;
91
91
  /**
92
92
  * Paid amount. This property is amount paid by this invoice. The amount corresponds to the sum (positives and negatives) of all payments relating to that invoice.
93
93
  * @type {number}
94
- * @memberof OmitInvoiceClassStatuses
94
+ * @memberof OmitTypeClass
95
95
  */
96
96
  'paidAmount': number;
97
97
  /**
98
98
  * Invoice status.
99
99
  * @type {string}
100
- * @memberof OmitInvoiceClassStatuses
100
+ * @memberof OmitTypeClass
101
101
  */
102
- 'status': OmitInvoiceClassStatusesStatusEnum;
102
+ 'status': OmitTypeClassStatusEnum;
103
103
  /**
104
104
  * Invoice due date.
105
105
  * @type {string}
106
- * @memberof OmitInvoiceClassStatuses
106
+ * @memberof OmitTypeClass
107
107
  */
108
108
  'dueDate': string;
109
109
  /**
110
110
  * Metadata contains extra information that the object would need for specific cases.
111
111
  * @type {object}
112
- * @memberof OmitInvoiceClassStatuses
112
+ * @memberof OmitTypeClass
113
113
  */
114
114
  'metadata': object;
115
115
  /**
116
116
  * Start date of billing interval.
117
117
  * @type {string}
118
- * @memberof OmitInvoiceClassStatuses
118
+ * @memberof OmitTypeClass
119
119
  */
120
120
  'billingIntervalFrom': string;
121
121
  /**
122
122
  * End date of billing interval.
123
123
  * @type {string}
124
- * @memberof OmitInvoiceClassStatuses
124
+ * @memberof OmitTypeClass
125
125
  */
126
126
  'billingIntervalTo': string;
127
127
  /**
128
128
  * Time at which the object was created.
129
129
  * @type {string}
130
- * @memberof OmitInvoiceClassStatuses
130
+ * @memberof OmitTypeClass
131
131
  */
132
132
  'createdAt': string;
133
133
  /**
134
134
  * Invoice items.
135
135
  * @type {Array<InvoiceItemClass>}
136
- * @memberof OmitInvoiceClassStatuses
136
+ * @memberof OmitTypeClass
137
137
  */
138
138
  'invoiceItems': Array<InvoiceItemClass>;
139
139
  /**
140
140
  * Invoice currency. EUR is used by default.
141
141
  * @type {string}
142
- * @memberof OmitInvoiceClassStatuses
142
+ * @memberof OmitTypeClass
143
143
  */
144
144
  'currency': string;
145
145
  /**
146
146
  * Invoice payments.
147
147
  * @type {InvoicePaymentsClass}
148
- * @memberof OmitInvoiceClassStatuses
148
+ * @memberof OmitTypeClass
149
149
  */
150
150
  'payments': InvoicePaymentsClass;
151
151
  /**
152
152
  * Identifier of the user who created the record.
153
153
  * @type {string}
154
- * @memberof OmitInvoiceClassStatuses
154
+ * @memberof OmitTypeClass
155
155
  */
156
156
  'createdBy': string;
157
157
  /**
158
158
  * Identifier of the user who last updated the record.
159
159
  * @type {string}
160
- * @memberof OmitInvoiceClassStatuses
160
+ * @memberof OmitTypeClass
161
161
  */
162
162
  'updatedBy': string;
163
163
  /**
164
164
  * Invoice payment method code.
165
165
  * @type {string}
166
- * @memberof OmitInvoiceClassStatuses
166
+ * @memberof OmitTypeClass
167
167
  */
168
168
  'paymentMethodCode': string;
169
169
  /**
170
170
  * Invoice payment method Payment Service Provider.
171
171
  * @type {string}
172
- * @memberof OmitInvoiceClassStatuses
172
+ * @memberof OmitTypeClass
173
173
  */
174
174
  'paymentMethodPsp': string;
175
175
  /**
176
176
  * Invoice payment method type (e.g. card, bank transfer, etc.).
177
177
  * @type {string}
178
- * @memberof OmitInvoiceClassStatuses
178
+ * @memberof OmitTypeClass
179
179
  */
180
180
  'paymentMethodType': string;
181
181
  /**
182
182
  * Dunning fees.
183
183
  * @type {number}
184
- * @memberof OmitInvoiceClassStatuses
184
+ * @memberof OmitTypeClass
185
185
  */
186
186
  'dunningFees': number;
187
187
  /**
188
188
  * Total amount.
189
189
  * @type {number}
190
- * @memberof OmitInvoiceClassStatuses
190
+ * @memberof OmitTypeClass
191
191
  */
192
192
  'totalAmount': number;
193
193
  /**
194
194
  * Open amount.
195
195
  * @type {number}
196
- * @memberof OmitInvoiceClassStatuses
196
+ * @memberof OmitTypeClass
197
197
  */
198
198
  'openAmount': number;
199
199
  }
200
200
 
201
- export const OmitInvoiceClassStatusesTypeEnum = {
201
+ export const OmitTypeClassTypeEnum = {
202
202
  Initial: 'initial',
203
203
  Recurring: 'recurring',
204
204
  Correction: 'correction',
@@ -209,14 +209,14 @@ export const OmitInvoiceClassStatusesTypeEnum = {
209
209
  Final: 'final'
210
210
  } as const;
211
211
 
212
- export type OmitInvoiceClassStatusesTypeEnum = typeof OmitInvoiceClassStatusesTypeEnum[keyof typeof OmitInvoiceClassStatusesTypeEnum];
213
- export const OmitInvoiceClassStatusesStatusEnum = {
212
+ export type OmitTypeClassTypeEnum = typeof OmitTypeClassTypeEnum[keyof typeof OmitTypeClassTypeEnum];
213
+ export const OmitTypeClassStatusEnum = {
214
214
  Open: 'open',
215
215
  Paid: 'paid',
216
216
  PartiallyPaid: 'partially-paid',
217
217
  Refunded: 'refunded'
218
218
  } as const;
219
219
 
220
- export type OmitInvoiceClassStatusesStatusEnum = typeof OmitInvoiceClassStatusesStatusEnum[keyof typeof OmitInvoiceClassStatusesStatusEnum];
220
+ export type OmitTypeClassStatusEnum = typeof OmitTypeClassStatusEnum[keyof typeof OmitTypeClassStatusEnum];
221
221
 
222
222
 
@@ -52,10 +52,10 @@ export interface PolicyObjectDto {
52
52
  'summary': string;
53
53
  /**
54
54
  * Insured object data.
55
- * @type {{ [key: string]: object; }}
55
+ * @type {object}
56
56
  * @memberof PolicyObjectDto
57
57
  */
58
- 'data': { [key: string]: object; };
58
+ 'data': object;
59
59
  /**
60
60
  * Time at which the object was created.
61
61
  * @type {string}
@@ -35,10 +35,10 @@ export interface PolicyVersionDto {
35
35
  'isCurrent': boolean;
36
36
  /**
37
37
  * Metadata contains extra information that the object would need for specific cases.
38
- * @type {{ [key: string]: object; }}
38
+ * @type {object}
39
39
  * @memberof PolicyVersionDto
40
40
  */
41
- 'metadata'?: { [key: string]: object; };
41
+ 'metadata'?: object;
42
42
  /**
43
43
  * Time at which the object was created.
44
44
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk",
3
- "version": "1.63.1-beta.5",
3
+ "version": "1.63.1-beta.7",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,179 +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
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { CreateInvoiceResponseClass } from '../models';
25
- // @ts-ignore
26
- import { CreateWithdrawInvoiceRequestDtoRest } from '../models';
27
- /**
28
- * WithdrawInvoicesApi - axios parameter creator
29
- * @export
30
- */
31
- export const WithdrawInvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
32
- return {
33
- /**
34
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
35
- * @summary Create the Withdraw invoice
36
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
37
- * @param {string} [authorization] Bearer Token
38
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
39
- * @param {*} [options] Override http request option.
40
- * @throws {RequiredError}
41
- */
42
- createWithdrawInvoice: async (createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43
- // verify required parameter 'createWithdrawInvoiceRequestDtoRest' is not null or undefined
44
- assertParamExists('createWithdrawInvoice', 'createWithdrawInvoiceRequestDtoRest', createWithdrawInvoiceRequestDtoRest)
45
- const localVarPath = `/billingservice/v1/withdraw-invoices`;
46
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
- let baseOptions;
49
- let baseAccessToken;
50
- if (configuration) {
51
- baseOptions = configuration.baseOptions;
52
- baseAccessToken = configuration.accessToken;
53
- }
54
-
55
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
56
- const localVarHeaderParameter = {} as any;
57
- const localVarQueryParameter = {} as any;
58
-
59
- // authentication bearer required
60
- // http bearer authentication required
61
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
62
-
63
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
64
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
65
- }
66
-
67
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
69
- }
70
-
71
-
72
-
73
- localVarHeaderParameter['Content-Type'] = 'application/json';
74
-
75
- setSearchParams(localVarUrlObj, localVarQueryParameter);
76
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
77
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
78
- localVarRequestOptions.data = serializeDataIfNeeded(createWithdrawInvoiceRequestDtoRest, localVarRequestOptions, configuration)
79
-
80
- return {
81
- url: toPathString(localVarUrlObj),
82
- options: localVarRequestOptions,
83
- };
84
- },
85
- }
86
- };
87
-
88
- /**
89
- * WithdrawInvoicesApi - functional programming interface
90
- * @export
91
- */
92
- export const WithdrawInvoicesApiFp = function(configuration?: Configuration) {
93
- const localVarAxiosParamCreator = WithdrawInvoicesApiAxiosParamCreator(configuration)
94
- return {
95
- /**
96
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
97
- * @summary Create the Withdraw invoice
98
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
99
- * @param {string} [authorization] Bearer Token
100
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- async createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>> {
105
- const localVarAxiosArgs = await localVarAxiosParamCreator.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options);
106
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
107
- },
108
- }
109
- };
110
-
111
- /**
112
- * WithdrawInvoicesApi - factory interface
113
- * @export
114
- */
115
- export const WithdrawInvoicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
116
- const localVarFp = WithdrawInvoicesApiFp(configuration)
117
- return {
118
- /**
119
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
120
- * @summary Create the Withdraw invoice
121
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
122
- * @param {string} [authorization] Bearer Token
123
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
124
- * @param {*} [options] Override http request option.
125
- * @throws {RequiredError}
126
- */
127
- createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass> {
128
- return localVarFp.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
129
- },
130
- };
131
- };
132
-
133
- /**
134
- * Request parameters for createWithdrawInvoice operation in WithdrawInvoicesApi.
135
- * @export
136
- * @interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest
137
- */
138
- export interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest {
139
- /**
140
- *
141
- * @type {CreateWithdrawInvoiceRequestDtoRest}
142
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
143
- */
144
- readonly createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest
145
-
146
- /**
147
- * Bearer Token
148
- * @type {string}
149
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
150
- */
151
- readonly authorization?: string
152
-
153
- /**
154
- * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
155
- * @type {string}
156
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
157
- */
158
- readonly idempotencyKey?: string
159
- }
160
-
161
- /**
162
- * WithdrawInvoicesApi - object-oriented interface
163
- * @export
164
- * @class WithdrawInvoicesApi
165
- * @extends {BaseAPI}
166
- */
167
- export class WithdrawInvoicesApi extends BaseAPI {
168
- /**
169
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
170
- * @summary Create the Withdraw invoice
171
- * @param {WithdrawInvoicesApiCreateWithdrawInvoiceRequest} requestParameters Request parameters.
172
- * @param {*} [options] Override http request option.
173
- * @throws {RequiredError}
174
- * @memberof WithdrawInvoicesApi
175
- */
176
- public createWithdrawInvoice(requestParameters: WithdrawInvoicesApiCreateWithdrawInvoiceRequest, options?: AxiosRequestConfig) {
177
- return WithdrawInvoicesApiFp(this.configuration).createWithdrawInvoice(requestParameters.createWithdrawInvoiceRequestDtoRest, requestParameters.authorization, requestParameters.idempotencyKey, options).then((request) => request(this.axios, this.basePath));
178
- }
179
- }
@@ -1,106 +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
- import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
- import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
15
- import { CreateInvoiceResponseClass } from '../models';
16
- import { CreateWithdrawInvoiceRequestDtoRest } from '../models';
17
- /**
18
- * WithdrawInvoicesApi - axios parameter creator
19
- * @export
20
- */
21
- export declare const WithdrawInvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
22
- /**
23
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
24
- * @summary Create the Withdraw invoice
25
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
26
- * @param {string} [authorization] Bearer Token
27
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
28
- * @param {*} [options] Override http request option.
29
- * @throws {RequiredError}
30
- */
31
- createWithdrawInvoice: (createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
- };
33
- /**
34
- * WithdrawInvoicesApi - functional programming interface
35
- * @export
36
- */
37
- export declare const WithdrawInvoicesApiFp: (configuration?: Configuration) => {
38
- /**
39
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
40
- * @summary Create the Withdraw invoice
41
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
42
- * @param {string} [authorization] Bearer Token
43
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
44
- * @param {*} [options] Override http request option.
45
- * @throws {RequiredError}
46
- */
47
- createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>>;
48
- };
49
- /**
50
- * WithdrawInvoicesApi - factory interface
51
- * @export
52
- */
53
- export declare const WithdrawInvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
54
- /**
55
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
56
- * @summary Create the Withdraw invoice
57
- * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
58
- * @param {string} [authorization] Bearer Token
59
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
60
- * @param {*} [options] Override http request option.
61
- * @throws {RequiredError}
62
- */
63
- createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass>;
64
- };
65
- /**
66
- * Request parameters for createWithdrawInvoice operation in WithdrawInvoicesApi.
67
- * @export
68
- * @interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest
69
- */
70
- export interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest {
71
- /**
72
- *
73
- * @type {CreateWithdrawInvoiceRequestDtoRest}
74
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
75
- */
76
- readonly createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest;
77
- /**
78
- * Bearer Token
79
- * @type {string}
80
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
81
- */
82
- readonly authorization?: string;
83
- /**
84
- * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
85
- * @type {string}
86
- * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
87
- */
88
- readonly idempotencyKey?: string;
89
- }
90
- /**
91
- * WithdrawInvoicesApi - object-oriented interface
92
- * @export
93
- * @class WithdrawInvoicesApi
94
- * @extends {BaseAPI}
95
- */
96
- export declare class WithdrawInvoicesApi extends BaseAPI {
97
- /**
98
- * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
99
- * @summary Create the Withdraw invoice
100
- * @param {WithdrawInvoicesApiCreateWithdrawInvoiceRequest} requestParameters Request parameters.
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- * @memberof WithdrawInvoicesApi
104
- */
105
- createWithdrawInvoice(requestParameters: WithdrawInvoicesApiCreateWithdrawInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}>>;
106
- }