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