@emilgroup/billing-sdk-node 1.17.1-beta.1 → 1.18.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.
Files changed (99) hide show
  1. package/.openapi-generator/FILES +2 -17
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +2 -4
  4. package/api/draft-invoice-api.ts +346 -0
  5. package/api/estimated-invoices-api.ts +6 -12
  6. package/api/initial-invoices-api.ts +2 -4
  7. package/api/invoices-api.ts +80 -86
  8. package/api/recurring-invoices-api.ts +2 -4
  9. package/api.ts +2 -0
  10. package/dist/api/correction-invoices-api.d.ts +3 -4
  11. package/dist/api/draft-invoice-api.d.ts +185 -0
  12. package/dist/api/draft-invoice-api.js +396 -0
  13. package/dist/api/estimated-invoices-api.d.ts +9 -12
  14. package/dist/api/initial-invoices-api.d.ts +3 -4
  15. package/dist/api/invoices-api.d.ts +83 -86
  16. package/dist/api/invoices-api.js +46 -46
  17. package/dist/api/recurring-invoices-api.d.ts +3 -4
  18. package/dist/api.d.ts +1 -0
  19. package/dist/api.js +1 -0
  20. package/dist/models/create-draft-invoice-request-dto.d.ts +89 -0
  21. package/dist/models/{invoice-class.js → create-draft-invoice-request-dto.js} +2 -8
  22. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +2 -2
  23. package/dist/models/create-estimated-invoice-request-dto.d.ts +1 -7
  24. package/dist/models/create-invoice-payment-request-dto.d.ts +2 -8
  25. package/dist/models/create-invoice-request-dto.d.ts +6 -6
  26. package/dist/models/index.d.ts +1 -17
  27. package/dist/models/index.js +1 -17
  28. package/dist/models/policy-dto.d.ts +4 -18
  29. package/dist/models/policy-dto.js +0 -8
  30. package/dist/models/policy-object-dto.d.ts +2 -8
  31. package/dist/models/policy-premium-dto.d.ts +2 -2
  32. package/dist/models/policy-premium-item-dto.d.ts +2 -2
  33. package/dist/models/policy-version-dto.d.ts +3 -3
  34. package/dist/models/premium-formula-dto.d.ts +2 -2
  35. package/dist/models/timeslice-dto.d.ts +1 -1
  36. package/models/create-draft-invoice-request-dto.ts +98 -0
  37. package/models/create-estimated-invoice-for-interval-request-dto.ts +2 -2
  38. package/models/create-estimated-invoice-request-dto.ts +1 -7
  39. package/models/create-invoice-payment-request-dto.ts +2 -8
  40. package/models/create-invoice-request-dto.ts +6 -6
  41. package/models/index.ts +1 -17
  42. package/models/policy-dto.ts +4 -21
  43. package/models/policy-object-dto.ts +2 -8
  44. package/models/policy-premium-dto.ts +2 -2
  45. package/models/policy-premium-item-dto.ts +2 -2
  46. package/models/policy-version-dto.ts +3 -3
  47. package/models/premium-formula-dto.ts +2 -2
  48. package/models/timeslice-dto.ts +1 -1
  49. package/package.json +1 -1
  50. package/dist/models/create-correction-invoices-response-class.d.ts +0 -25
  51. package/dist/models/create-correction-invoices-response-class.js +0 -15
  52. package/dist/models/create-custom-estimated-invoice-response-class.d.ts +0 -24
  53. package/dist/models/create-custom-estimated-invoice-response-class.js +0 -15
  54. package/dist/models/create-estimated-invoice-for-interval-response-class.d.ts +0 -25
  55. package/dist/models/create-estimated-invoice-for-interval-response-class.js +0 -15
  56. package/dist/models/create-estimated-invoice-response-class.d.ts +0 -31
  57. package/dist/models/create-estimated-invoice-response-class.js +0 -15
  58. package/dist/models/create-invoice-response-class.d.ts +0 -25
  59. package/dist/models/create-invoice-response-class.js +0 -15
  60. package/dist/models/create-invoice-status-request-dto.d.ts +0 -37
  61. package/dist/models/create-invoice-status-request-dto.js +0 -22
  62. package/dist/models/create-termination-invoice-request-dto.d.ts +0 -54
  63. package/dist/models/create-termination-invoice-request-dto.js +0 -15
  64. package/dist/models/get-invoice-response-class.d.ts +0 -25
  65. package/dist/models/get-invoice-response-class.js +0 -15
  66. package/dist/models/invoice-class.d.ts +0 -171
  67. package/dist/models/invoice-item-class.d.ts +0 -129
  68. package/dist/models/invoice-item-class.js +0 -24
  69. package/dist/models/invoice-payment-class.d.ts +0 -102
  70. package/dist/models/invoice-payment-class.js +0 -15
  71. package/dist/models/invoice-payments-class.d.ts +0 -25
  72. package/dist/models/invoice-payments-class.js +0 -15
  73. package/dist/models/invoice-status-class.d.ts +0 -49
  74. package/dist/models/invoice-status-class.js +0 -22
  75. package/dist/models/list-invoices-response-class.d.ts +0 -31
  76. package/dist/models/list-invoices-response-class.js +0 -15
  77. package/dist/models/list-policies-billing-dates-response-class.d.ts +0 -31
  78. package/dist/models/list-policies-billing-dates-response-class.js +0 -15
  79. package/dist/models/omit-type-class.d.ts +0 -164
  80. package/dist/models/omit-type-class.js +0 -32
  81. package/dist/models/policy-billing-date-class.d.ts +0 -42
  82. package/dist/models/policy-billing-date-class.js +0 -15
  83. package/models/create-correction-invoices-response-class.ts +0 -31
  84. package/models/create-custom-estimated-invoice-response-class.ts +0 -30
  85. package/models/create-estimated-invoice-for-interval-response-class.ts +0 -31
  86. package/models/create-estimated-invoice-response-class.ts +0 -37
  87. package/models/create-invoice-response-class.ts +0 -31
  88. package/models/create-invoice-status-request-dto.ts +0 -46
  89. package/models/create-termination-invoice-request-dto.ts +0 -60
  90. package/models/get-invoice-response-class.ts +0 -31
  91. package/models/invoice-class.ts +0 -181
  92. package/models/invoice-item-class.ts +0 -138
  93. package/models/invoice-payment-class.ts +0 -108
  94. package/models/invoice-payments-class.ts +0 -31
  95. package/models/invoice-status-class.ts +0 -58
  96. package/models/list-invoices-response-class.ts +0 -37
  97. package/models/list-policies-billing-dates-response-class.ts +0 -37
  98. package/models/omit-type-class.ts +0 -174
  99. package/models/policy-billing-date-class.ts +0 -48
@@ -5,6 +5,7 @@ README.md
5
5
  api.ts
6
6
  api/correction-invoices-api.ts
7
7
  api/default-api.ts
8
+ api/draft-invoice-api.ts
8
9
  api/estimated-invoices-api.ts
9
10
  api/initial-invoices-api.ts
10
11
  api/invoices-api.ts
@@ -14,32 +15,16 @@ common.ts
14
15
  configuration.ts
15
16
  git_push.sh
16
17
  index.ts
17
- models/create-correction-invoices-response-class.ts
18
18
  models/create-custom-estimated-invoice-request-dto.ts
19
- models/create-custom-estimated-invoice-response-class.ts
19
+ models/create-draft-invoice-request-dto.ts
20
20
  models/create-estimated-invoice-for-interval-request-dto.ts
21
- models/create-estimated-invoice-for-interval-response-class.ts
22
21
  models/create-estimated-invoice-request-dto.ts
23
- models/create-estimated-invoice-response-class.ts
24
22
  models/create-invoice-payment-request-dto.ts
25
23
  models/create-invoice-request-dto.ts
26
- models/create-invoice-response-class.ts
27
- models/create-invoice-status-request-dto.ts
28
- models/create-termination-invoice-request-dto.ts
29
- models/get-invoice-response-class.ts
30
24
  models/index.ts
31
25
  models/inline-response200.ts
32
26
  models/inline-response503.ts
33
- models/invoice-class.ts
34
- models/invoice-item-class.ts
35
- models/invoice-payment-class.ts
36
- models/invoice-payments-class.ts
37
- models/invoice-status-class.ts
38
- models/list-invoices-response-class.ts
39
- models/list-policies-billing-dates-response-class.ts
40
27
  models/list-request-dto.ts
41
- models/omit-type-class.ts
42
- models/policy-billing-date-class.ts
43
28
  models/policy-dto.ts
44
29
  models/policy-object-dto.ts
45
30
  models/policy-premium-dto.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.17.1-beta.1 --save
20
+ npm install @emilgroup/billing-sdk-node@1.18.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk-node@1.17.1-beta.1
24
+ yarn add @emilgroup/billing-sdk-node@1.18.0
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
@@ -21,8 +21,6 @@ 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 { CreateCorrectionInvoicesResponseClass } from '../models';
25
- // @ts-ignore
26
24
  import { CreateInvoiceRequestDto } from '../models';
27
25
  // URLSearchParams not necessarily used
28
26
  // @ts-ignore
@@ -105,7 +103,7 @@ export const CorrectionInvoicesApiFp = function(configuration?: Configuration) {
105
103
  * @param {*} [options] Override http request option.
106
104
  * @throws {RequiredError}
107
105
  */
108
- async createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCorrectionInvoicesResponseClass>> {
106
+ async createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
109
107
  const localVarAxiosArgs = await localVarAxiosParamCreator.createCorrectionInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options);
110
108
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
111
109
  },
@@ -128,7 +126,7 @@ export const CorrectionInvoicesApiFactory = function (configuration?: Configurat
128
126
  * @param {*} [options] Override http request option.
129
127
  * @throws {RequiredError}
130
128
  */
131
- createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateCorrectionInvoicesResponseClass> {
129
+ createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<void> {
132
130
  return localVarFp.createCorrectionInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
133
131
  },
134
132
  };
@@ -0,0 +1,346 @@
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 { CreateDraftInvoiceRequestDto } from '../models';
25
+ // URLSearchParams not necessarily used
26
+ // @ts-ignore
27
+ import { URL, URLSearchParams } from 'url';
28
+ const FormData = require('form-data');
29
+ /**
30
+ * DraftInvoiceApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ *
37
+ * @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
38
+ * @param {string} [authorization] Bearer Token
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ createDraftInvoice: async (createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43
+ // verify required parameter 'createDraftInvoiceRequestDto' is not null or undefined
44
+ assertParamExists('createDraftInvoice', 'createDraftInvoiceRequestDto', createDraftInvoiceRequestDto)
45
+ const localVarPath = `/billingservice/v1/draft-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
+
68
+
69
+ localVarHeaderParameter['Content-Type'] = 'application/json';
70
+
71
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
72
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
73
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
74
+ localVarRequestOptions.data = serializeDataIfNeeded(createDraftInvoiceRequestDto, localVarRequestOptions, configuration)
75
+
76
+ return {
77
+ url: toPathString(localVarUrlObj),
78
+ options: localVarRequestOptions,
79
+ };
80
+ },
81
+ /**
82
+ *
83
+ * @param {string} [authorization] Bearer Token
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ deleteAllDraftInvoices: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
88
+ const localVarPath = `/billingservice/v1/draft-invoices`;
89
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
90
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
91
+ let baseOptions;
92
+ let baseAccessToken;
93
+ if (configuration) {
94
+ baseOptions = configuration.baseOptions;
95
+ baseAccessToken = configuration.accessToken;
96
+ }
97
+
98
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
99
+ const localVarHeaderParameter = {} as any;
100
+ const localVarQueryParameter = {} as any;
101
+
102
+ // authentication bearer required
103
+ // http bearer authentication required
104
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
105
+
106
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
107
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
108
+ }
109
+
110
+
111
+
112
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
113
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
114
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
115
+
116
+ return {
117
+ url: toPathString(localVarUrlObj),
118
+ options: localVarRequestOptions,
119
+ };
120
+ },
121
+ /**
122
+ *
123
+ * @param {object} body
124
+ * @param {string} [authorization] Bearer Token
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ deleteDraftInvoice: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
129
+ // verify required parameter 'body' is not null or undefined
130
+ assertParamExists('deleteDraftInvoice', 'body', body)
131
+ const localVarPath = `/billingservice/v1/draft-invoices/code`;
132
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
133
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
134
+ let baseOptions;
135
+ let baseAccessToken;
136
+ if (configuration) {
137
+ baseOptions = configuration.baseOptions;
138
+ baseAccessToken = configuration.accessToken;
139
+ }
140
+
141
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
142
+ const localVarHeaderParameter = {} as any;
143
+ const localVarQueryParameter = {} as any;
144
+
145
+ // authentication bearer required
146
+ // http bearer authentication required
147
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
148
+
149
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
150
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
151
+ }
152
+
153
+
154
+
155
+ localVarHeaderParameter['Content-Type'] = 'application/json';
156
+
157
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
158
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
159
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
160
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
161
+
162
+ return {
163
+ url: toPathString(localVarUrlObj),
164
+ options: localVarRequestOptions,
165
+ };
166
+ },
167
+ }
168
+ };
169
+
170
+ /**
171
+ * DraftInvoiceApi - functional programming interface
172
+ * @export
173
+ */
174
+ export const DraftInvoiceApiFp = function(configuration?: Configuration) {
175
+ const localVarAxiosParamCreator = DraftInvoiceApiAxiosParamCreator(configuration)
176
+ return {
177
+ /**
178
+ *
179
+ * @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
180
+ * @param {string} [authorization] Bearer Token
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ async createDraftInvoice(createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
185
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createDraftInvoice(createDraftInvoiceRequestDto, authorization, options);
186
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
187
+ },
188
+ /**
189
+ *
190
+ * @param {string} [authorization] Bearer Token
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ async deleteAllDraftInvoices(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAllDraftInvoices(authorization, options);
196
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
197
+ },
198
+ /**
199
+ *
200
+ * @param {object} body
201
+ * @param {string} [authorization] Bearer Token
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ async deleteDraftInvoice(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
206
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDraftInvoice(body, authorization, options);
207
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
208
+ },
209
+ }
210
+ };
211
+
212
+ /**
213
+ * DraftInvoiceApi - factory interface
214
+ * @export
215
+ */
216
+ export const DraftInvoiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
217
+ const localVarFp = DraftInvoiceApiFp(configuration)
218
+ return {
219
+ /**
220
+ *
221
+ * @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
222
+ * @param {string} [authorization] Bearer Token
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ */
226
+ createDraftInvoice(createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
227
+ return localVarFp.createDraftInvoice(createDraftInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
228
+ },
229
+ /**
230
+ *
231
+ * @param {string} [authorization] Bearer Token
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ deleteAllDraftInvoices(authorization?: string, options?: any): AxiosPromise<void> {
236
+ return localVarFp.deleteAllDraftInvoices(authorization, options).then((request) => request(axios, basePath));
237
+ },
238
+ /**
239
+ *
240
+ * @param {object} body
241
+ * @param {string} [authorization] Bearer Token
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ */
245
+ deleteDraftInvoice(body: object, authorization?: string, options?: any): AxiosPromise<void> {
246
+ return localVarFp.deleteDraftInvoice(body, authorization, options).then((request) => request(axios, basePath));
247
+ },
248
+ };
249
+ };
250
+
251
+ /**
252
+ * Request parameters for createDraftInvoice operation in DraftInvoiceApi.
253
+ * @export
254
+ * @interface DraftInvoiceApiCreateDraftInvoiceRequest
255
+ */
256
+ export interface DraftInvoiceApiCreateDraftInvoiceRequest {
257
+ /**
258
+ *
259
+ * @type {CreateDraftInvoiceRequestDto}
260
+ * @memberof DraftInvoiceApiCreateDraftInvoice
261
+ */
262
+ readonly createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto
263
+
264
+ /**
265
+ * Bearer Token
266
+ * @type {string}
267
+ * @memberof DraftInvoiceApiCreateDraftInvoice
268
+ */
269
+ readonly authorization?: string
270
+ }
271
+
272
+ /**
273
+ * Request parameters for deleteAllDraftInvoices operation in DraftInvoiceApi.
274
+ * @export
275
+ * @interface DraftInvoiceApiDeleteAllDraftInvoicesRequest
276
+ */
277
+ export interface DraftInvoiceApiDeleteAllDraftInvoicesRequest {
278
+ /**
279
+ * Bearer Token
280
+ * @type {string}
281
+ * @memberof DraftInvoiceApiDeleteAllDraftInvoices
282
+ */
283
+ readonly authorization?: string
284
+ }
285
+
286
+ /**
287
+ * Request parameters for deleteDraftInvoice operation in DraftInvoiceApi.
288
+ * @export
289
+ * @interface DraftInvoiceApiDeleteDraftInvoiceRequest
290
+ */
291
+ export interface DraftInvoiceApiDeleteDraftInvoiceRequest {
292
+ /**
293
+ *
294
+ * @type {object}
295
+ * @memberof DraftInvoiceApiDeleteDraftInvoice
296
+ */
297
+ readonly body: object
298
+
299
+ /**
300
+ * Bearer Token
301
+ * @type {string}
302
+ * @memberof DraftInvoiceApiDeleteDraftInvoice
303
+ */
304
+ readonly authorization?: string
305
+ }
306
+
307
+ /**
308
+ * DraftInvoiceApi - object-oriented interface
309
+ * @export
310
+ * @class DraftInvoiceApi
311
+ * @extends {BaseAPI}
312
+ */
313
+ export class DraftInvoiceApi extends BaseAPI {
314
+ /**
315
+ *
316
+ * @param {DraftInvoiceApiCreateDraftInvoiceRequest} requestParameters Request parameters.
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ * @memberof DraftInvoiceApi
320
+ */
321
+ public createDraftInvoice(requestParameters: DraftInvoiceApiCreateDraftInvoiceRequest, options?: AxiosRequestConfig) {
322
+ return DraftInvoiceApiFp(this.configuration).createDraftInvoice(requestParameters.createDraftInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
323
+ }
324
+
325
+ /**
326
+ *
327
+ * @param {DraftInvoiceApiDeleteAllDraftInvoicesRequest} requestParameters Request parameters.
328
+ * @param {*} [options] Override http request option.
329
+ * @throws {RequiredError}
330
+ * @memberof DraftInvoiceApi
331
+ */
332
+ public deleteAllDraftInvoices(requestParameters: DraftInvoiceApiDeleteAllDraftInvoicesRequest = {}, options?: AxiosRequestConfig) {
333
+ return DraftInvoiceApiFp(this.configuration).deleteAllDraftInvoices(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
334
+ }
335
+
336
+ /**
337
+ *
338
+ * @param {DraftInvoiceApiDeleteDraftInvoiceRequest} requestParameters Request parameters.
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ * @memberof DraftInvoiceApi
342
+ */
343
+ public deleteDraftInvoice(requestParameters: DraftInvoiceApiDeleteDraftInvoiceRequest, options?: AxiosRequestConfig) {
344
+ return DraftInvoiceApiFp(this.configuration).deleteDraftInvoice(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
345
+ }
346
+ }
@@ -23,15 +23,9 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { CreateCustomEstimatedInvoiceRequestDto } from '../models';
25
25
  // @ts-ignore
26
- import { CreateCustomEstimatedInvoiceResponseClass } from '../models';
27
- // @ts-ignore
28
26
  import { CreateEstimatedInvoiceForIntervalRequestDto } from '../models';
29
27
  // @ts-ignore
30
- import { CreateEstimatedInvoiceForIntervalResponseClass } from '../models';
31
- // @ts-ignore
32
28
  import { CreateEstimatedInvoiceRequestDto } from '../models';
33
- // @ts-ignore
34
- import { CreateEstimatedInvoiceResponseClass } from '../models';
35
29
  // URLSearchParams not necessarily used
36
30
  // @ts-ignore
37
31
  import { URL, URLSearchParams } from 'url';
@@ -201,7 +195,7 @@ export const EstimatedInvoicesApiFp = function(configuration?: Configuration) {
201
195
  * @param {*} [options] Override http request option.
202
196
  * @throws {RequiredError}
203
197
  */
204
- async createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomEstimatedInvoiceResponseClass>> {
198
+ async createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
205
199
  const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto, authorization, options);
206
200
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
207
201
  },
@@ -213,7 +207,7 @@ export const EstimatedInvoicesApiFp = function(configuration?: Configuration) {
213
207
  * @param {*} [options] Override http request option.
214
208
  * @throws {RequiredError}
215
209
  */
216
- async createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEstimatedInvoiceResponseClass>> {
210
+ async createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
217
211
  const localVarAxiosArgs = await localVarAxiosParamCreator.createEstimatedInvoice(createEstimatedInvoiceRequestDto, authorization, options);
218
212
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
219
213
  },
@@ -225,7 +219,7 @@ export const EstimatedInvoicesApiFp = function(configuration?: Configuration) {
225
219
  * @param {*} [options] Override http request option.
226
220
  * @throws {RequiredError}
227
221
  */
228
- async createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass>> {
222
+ async createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
229
223
  const localVarAxiosArgs = await localVarAxiosParamCreator.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options);
230
224
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
231
225
  },
@@ -247,7 +241,7 @@ export const EstimatedInvoicesApiFactory = function (configuration?: Configurati
247
241
  * @param {*} [options] Override http request option.
248
242
  * @throws {RequiredError}
249
243
  */
250
- createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCustomEstimatedInvoiceResponseClass> {
244
+ createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
251
245
  return localVarFp.createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
252
246
  },
253
247
  /**
@@ -258,7 +252,7 @@ export const EstimatedInvoicesApiFactory = function (configuration?: Configurati
258
252
  * @param {*} [options] Override http request option.
259
253
  * @throws {RequiredError}
260
254
  */
261
- createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceResponseClass> {
255
+ createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
262
256
  return localVarFp.createEstimatedInvoice(createEstimatedInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
263
257
  },
264
258
  /**
@@ -269,7 +263,7 @@ export const EstimatedInvoicesApiFactory = function (configuration?: Configurati
269
263
  * @param {*} [options] Override http request option.
270
264
  * @throws {RequiredError}
271
265
  */
272
- createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass> {
266
+ createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
273
267
  return localVarFp.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options).then((request) => request(axios, basePath));
274
268
  },
275
269
  };
@@ -22,8 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
24
  import { CreateInvoiceRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateInvoiceResponseClass } from '../models';
27
25
  // URLSearchParams not necessarily used
28
26
  // @ts-ignore
29
27
  import { URL, URLSearchParams } from 'url';
@@ -105,7 +103,7 @@ export const InitialInvoicesApiFp = function(configuration?: Configuration) {
105
103
  * @param {*} [options] Override http request option.
106
104
  * @throws {RequiredError}
107
105
  */
108
- async createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>> {
106
+ async createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
109
107
  const localVarAxiosArgs = await localVarAxiosParamCreator.createInitialInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options);
110
108
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
111
109
  },
@@ -128,7 +126,7 @@ export const InitialInvoicesApiFactory = function (configuration?: Configuration
128
126
  * @param {*} [options] Override http request option.
129
127
  * @throws {RequiredError}
130
128
  */
131
- createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass> {
129
+ createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<void> {
132
130
  return localVarFp.createInitialInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
133
131
  },
134
132
  };