@emilgroup/billing-sdk 1.9.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -0
- package/README.md +2 -2
- package/api/draft-invoice-api.ts +342 -0
- package/api/estimated-invoices-api.ts +111 -4
- package/api/invoices-api.ts +108 -80
- package/api.ts +2 -0
- package/base.ts +1 -0
- package/dist/api/draft-invoice-api.d.ts +185 -0
- package/dist/api/draft-invoice-api.js +392 -0
- package/dist/api/estimated-invoices-api.d.ts +61 -4
- package/dist/api/estimated-invoices-api.js +97 -4
- package/dist/api/invoices-api.d.ts +92 -74
- package/dist/api/invoices-api.js +70 -58
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +1 -0
- package/dist/models/create-draft-invoice-request-dto.d.ts +89 -0
- package/dist/models/create-draft-invoice-request-dto.js +26 -0
- package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
- package/dist/models/create-estimated-invoice-for-interval-request-dto.js +15 -0
- package/dist/models/create-estimated-invoice-for-interval-response-class.d.ts +25 -0
- package/dist/models/create-estimated-invoice-for-interval-response-class.js +15 -0
- package/dist/models/create-estimated-invoice-request-dto.d.ts +7 -1
- package/dist/models/create-invoice-payment-request-dto.d.ts +1 -1
- package/dist/models/create-invoice-request-dto.d.ts +3 -3
- package/dist/models/create-invoice-status-request-dto.d.ts +1 -0
- package/dist/models/create-invoice-status-request-dto.js +2 -1
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/invoice-class.d.ts +1 -0
- package/dist/models/invoice-class.js +2 -1
- package/dist/models/invoice-item-class.d.ts +12 -0
- package/dist/models/invoice-payment-class.d.ts +7 -1
- package/dist/models/invoice-status-class.d.ts +1 -0
- package/dist/models/invoice-status-class.js +2 -1
- package/dist/models/omit-type-class.d.ts +1 -0
- package/dist/models/omit-type-class.js +2 -1
- package/dist/models/policy-dto.d.ts +9 -2
- package/dist/models/policy-dto.js +3 -2
- package/dist/models/policy-object-dto.d.ts +24 -0
- package/dist/models/policy-version-dto.d.ts +9 -3
- package/dist/models/timeslice-dto.d.ts +1 -1
- package/models/create-draft-invoice-request-dto.ts +98 -0
- package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
- package/models/create-estimated-invoice-for-interval-response-class.ts +31 -0
- package/models/create-estimated-invoice-request-dto.ts +7 -1
- package/models/create-invoice-payment-request-dto.ts +1 -1
- package/models/create-invoice-request-dto.ts +3 -3
- package/models/create-invoice-status-request-dto.ts +2 -1
- package/models/index.ts +3 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/invoice-class.ts +2 -1
- package/models/invoice-item-class.ts +12 -0
- package/models/invoice-payment-class.ts +7 -1
- package/models/invoice-status-class.ts +2 -1
- package/models/omit-type-class.ts +2 -1
- package/models/policy-dto.ts +10 -3
- package/models/policy-object-dto.ts +24 -0
- package/models/policy-version-dto.ts +9 -3
- package/models/timeslice-dto.ts +1 -1
- package/package.json +1 -2
package/api/invoices-api.ts
CHANGED
|
@@ -33,8 +33,8 @@ import { ListPoliciesBillingDatesResponseClass } from '../models';
|
|
|
33
33
|
export const InvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
34
|
return {
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @summary
|
|
36
|
+
* Gets an invoice.
|
|
37
|
+
* @summary Retrieve the invoice
|
|
38
38
|
* @param {string} code
|
|
39
39
|
* @param {string} expand
|
|
40
40
|
* @param {string} [authorization] Bearer Token
|
|
@@ -85,19 +85,20 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
85
85
|
};
|
|
86
86
|
},
|
|
87
87
|
/**
|
|
88
|
-
* Returns a list of invoices you have previously created.
|
|
88
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
89
89
|
* @summary List invoices
|
|
90
90
|
* @param {string} [authorization] Bearer Token
|
|
91
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
91
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
92
92
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
93
|
-
* @param {
|
|
94
|
-
* @param {any} [search]
|
|
95
|
-
* @param {
|
|
96
|
-
* @param {
|
|
93
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
|
|
94
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
95
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id</i>
|
|
96
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments.<i>
|
|
97
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
|
|
97
98
|
* @param {*} [options] Override http request option.
|
|
98
99
|
* @throws {RequiredError}
|
|
99
100
|
*/
|
|
100
|
-
listInvoices: async (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
101
|
+
listInvoices: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
102
|
const localVarPath = `/billingservice/v1/invoices`;
|
|
102
103
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
104
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -140,6 +141,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
140
141
|
localVarQueryParameter['expand'] = expand;
|
|
141
142
|
}
|
|
142
143
|
|
|
144
|
+
if (filters !== undefined) {
|
|
145
|
+
localVarQueryParameter['filters'] = filters;
|
|
146
|
+
}
|
|
147
|
+
|
|
143
148
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
144
149
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
145
150
|
}
|
|
@@ -156,19 +161,20 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
156
161
|
};
|
|
157
162
|
},
|
|
158
163
|
/**
|
|
159
|
-
* Returns a list of policies billing dates you have previously created.
|
|
164
|
+
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
160
165
|
* @summary List policies billing dates
|
|
161
166
|
* @param {string} [authorization] Bearer Token
|
|
162
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
167
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
163
168
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
164
|
-
* @param {
|
|
165
|
-
* @param {any} [search]
|
|
166
|
-
* @param {
|
|
167
|
-
* @param {
|
|
169
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
|
|
170
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
171
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
172
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
173
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
|
|
168
174
|
* @param {*} [options] Override http request option.
|
|
169
175
|
* @throws {RequiredError}
|
|
170
176
|
*/
|
|
171
|
-
listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
177
|
+
listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
172
178
|
const localVarPath = `/billingservice/v1/invoices/policies-billing-dates`;
|
|
173
179
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
174
180
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -211,6 +217,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
211
217
|
localVarQueryParameter['expand'] = expand;
|
|
212
218
|
}
|
|
213
219
|
|
|
220
|
+
if (filters !== undefined) {
|
|
221
|
+
localVarQueryParameter['filters'] = filters;
|
|
222
|
+
}
|
|
223
|
+
|
|
214
224
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
215
225
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
216
226
|
}
|
|
@@ -237,8 +247,8 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
237
247
|
const localVarAxiosParamCreator = InvoicesApiAxiosParamCreator(configuration)
|
|
238
248
|
return {
|
|
239
249
|
/**
|
|
240
|
-
*
|
|
241
|
-
* @summary
|
|
250
|
+
* Gets an invoice.
|
|
251
|
+
* @summary Retrieve the invoice
|
|
242
252
|
* @param {string} code
|
|
243
253
|
* @param {string} expand
|
|
244
254
|
* @param {string} [authorization] Bearer Token
|
|
@@ -250,37 +260,39 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
250
260
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
251
261
|
},
|
|
252
262
|
/**
|
|
253
|
-
* Returns a list of invoices you have previously created.
|
|
263
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
254
264
|
* @summary List invoices
|
|
255
265
|
* @param {string} [authorization] Bearer Token
|
|
256
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
266
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
257
267
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
258
|
-
* @param {
|
|
259
|
-
* @param {any} [search]
|
|
260
|
-
* @param {
|
|
261
|
-
* @param {
|
|
268
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
|
|
269
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
270
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id</i>
|
|
271
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments.<i>
|
|
272
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
|
|
262
273
|
* @param {*} [options] Override http request option.
|
|
263
274
|
* @throws {RequiredError}
|
|
264
275
|
*/
|
|
265
|
-
async listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
266
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
276
|
+
async listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>> {
|
|
277
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
267
278
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
268
279
|
},
|
|
269
280
|
/**
|
|
270
|
-
* Returns a list of policies billing dates you have previously created.
|
|
281
|
+
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
271
282
|
* @summary List policies billing dates
|
|
272
283
|
* @param {string} [authorization] Bearer Token
|
|
273
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
284
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
274
285
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
275
|
-
* @param {
|
|
276
|
-
* @param {any} [search]
|
|
277
|
-
* @param {
|
|
278
|
-
* @param {
|
|
286
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
|
|
287
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
288
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
289
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
290
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
|
|
279
291
|
* @param {*} [options] Override http request option.
|
|
280
292
|
* @throws {RequiredError}
|
|
281
293
|
*/
|
|
282
|
-
async listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
283
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
294
|
+
async listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesBillingDatesResponseClass>> {
|
|
295
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
284
296
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
285
297
|
},
|
|
286
298
|
}
|
|
@@ -294,8 +306,8 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
294
306
|
const localVarFp = InvoicesApiFp(configuration)
|
|
295
307
|
return {
|
|
296
308
|
/**
|
|
297
|
-
*
|
|
298
|
-
* @summary
|
|
309
|
+
* Gets an invoice.
|
|
310
|
+
* @summary Retrieve the invoice
|
|
299
311
|
* @param {string} code
|
|
300
312
|
* @param {string} expand
|
|
301
313
|
* @param {string} [authorization] Bearer Token
|
|
@@ -306,36 +318,38 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
306
318
|
return localVarFp.getInvoice(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
307
319
|
},
|
|
308
320
|
/**
|
|
309
|
-
* Returns a list of invoices you have previously created.
|
|
321
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
310
322
|
* @summary List invoices
|
|
311
323
|
* @param {string} [authorization] Bearer Token
|
|
312
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
324
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
313
325
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
314
|
-
* @param {
|
|
315
|
-
* @param {any} [search]
|
|
316
|
-
* @param {
|
|
317
|
-
* @param {
|
|
326
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
|
|
327
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
328
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id</i>
|
|
329
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments.<i>
|
|
330
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
|
|
318
331
|
* @param {*} [options] Override http request option.
|
|
319
332
|
* @throws {RequiredError}
|
|
320
333
|
*/
|
|
321
|
-
listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
322
|
-
return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
334
|
+
listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListInvoicesResponseClass> {
|
|
335
|
+
return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
323
336
|
},
|
|
324
337
|
/**
|
|
325
|
-
* Returns a list of policies billing dates you have previously created.
|
|
338
|
+
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
326
339
|
* @summary List policies billing dates
|
|
327
340
|
* @param {string} [authorization] Bearer Token
|
|
328
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
341
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
329
342
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
330
|
-
* @param {
|
|
331
|
-
* @param {any} [search]
|
|
332
|
-
* @param {
|
|
333
|
-
* @param {
|
|
343
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
|
|
344
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
345
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
346
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
347
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
|
|
334
348
|
* @param {*} [options] Override http request option.
|
|
335
349
|
* @throws {RequiredError}
|
|
336
350
|
*/
|
|
337
|
-
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
338
|
-
return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
351
|
+
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPoliciesBillingDatesResponseClass> {
|
|
352
|
+
return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
339
353
|
},
|
|
340
354
|
};
|
|
341
355
|
};
|
|
@@ -382,7 +396,7 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
382
396
|
readonly authorization?: string
|
|
383
397
|
|
|
384
398
|
/**
|
|
385
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
399
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
386
400
|
* @type {any}
|
|
387
401
|
* @memberof InvoicesApiListInvoices
|
|
388
402
|
*/
|
|
@@ -396,32 +410,39 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
396
410
|
readonly pageToken?: any
|
|
397
411
|
|
|
398
412
|
/**
|
|
399
|
-
* Filter the response by one or multiple fields.
|
|
400
|
-
* @type {
|
|
413
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
|
|
414
|
+
* @type {string}
|
|
401
415
|
* @memberof InvoicesApiListInvoices
|
|
402
416
|
*/
|
|
403
|
-
readonly filter?:
|
|
417
|
+
readonly filter?: string
|
|
404
418
|
|
|
405
419
|
/**
|
|
406
|
-
*
|
|
420
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
407
421
|
* @type {any}
|
|
408
422
|
* @memberof InvoicesApiListInvoices
|
|
409
423
|
*/
|
|
410
424
|
readonly search?: any
|
|
411
425
|
|
|
412
426
|
/**
|
|
413
|
-
*
|
|
414
|
-
* @type {
|
|
427
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id</i>
|
|
428
|
+
* @type {string}
|
|
415
429
|
* @memberof InvoicesApiListInvoices
|
|
416
430
|
*/
|
|
417
|
-
readonly order?:
|
|
431
|
+
readonly order?: string
|
|
418
432
|
|
|
419
433
|
/**
|
|
420
|
-
*
|
|
421
|
-
* @type {
|
|
434
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments.<i>
|
|
435
|
+
* @type {string}
|
|
436
|
+
* @memberof InvoicesApiListInvoices
|
|
437
|
+
*/
|
|
438
|
+
readonly expand?: string
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt</i>
|
|
442
|
+
* @type {string}
|
|
422
443
|
* @memberof InvoicesApiListInvoices
|
|
423
444
|
*/
|
|
424
|
-
readonly
|
|
445
|
+
readonly filters?: string
|
|
425
446
|
}
|
|
426
447
|
|
|
427
448
|
/**
|
|
@@ -438,7 +459,7 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
438
459
|
readonly authorization?: string
|
|
439
460
|
|
|
440
461
|
/**
|
|
441
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
462
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
442
463
|
* @type {any}
|
|
443
464
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
444
465
|
*/
|
|
@@ -452,32 +473,39 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
452
473
|
readonly pageToken?: any
|
|
453
474
|
|
|
454
475
|
/**
|
|
455
|
-
* Filter the response by one or multiple fields.
|
|
456
|
-
* @type {
|
|
476
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
|
|
477
|
+
* @type {string}
|
|
457
478
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
458
479
|
*/
|
|
459
|
-
readonly filter?:
|
|
480
|
+
readonly filter?: string
|
|
460
481
|
|
|
461
482
|
/**
|
|
462
|
-
*
|
|
483
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
463
484
|
* @type {any}
|
|
464
485
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
465
486
|
*/
|
|
466
487
|
readonly search?: any
|
|
467
488
|
|
|
468
489
|
/**
|
|
469
|
-
*
|
|
470
|
-
* @type {
|
|
490
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
491
|
+
* @type {string}
|
|
471
492
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
472
493
|
*/
|
|
473
|
-
readonly order?:
|
|
494
|
+
readonly order?: string
|
|
474
495
|
|
|
475
496
|
/**
|
|
476
|
-
*
|
|
477
|
-
* @type {
|
|
497
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: .<i>
|
|
498
|
+
* @type {string}
|
|
478
499
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
479
500
|
*/
|
|
480
|
-
readonly expand?:
|
|
501
|
+
readonly expand?: string
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: policyCode, isInvoiced, nextBillingDate, accountNumber, status, billingIntervalFrom, billingIntervalTo</i>
|
|
505
|
+
* @type {string}
|
|
506
|
+
* @memberof InvoicesApiListPoliciesBillingDates
|
|
507
|
+
*/
|
|
508
|
+
readonly filters?: string
|
|
481
509
|
}
|
|
482
510
|
|
|
483
511
|
/**
|
|
@@ -488,8 +516,8 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
488
516
|
*/
|
|
489
517
|
export class InvoicesApi extends BaseAPI {
|
|
490
518
|
/**
|
|
491
|
-
*
|
|
492
|
-
* @summary
|
|
519
|
+
* Gets an invoice.
|
|
520
|
+
* @summary Retrieve the invoice
|
|
493
521
|
* @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
|
|
494
522
|
* @param {*} [options] Override http request option.
|
|
495
523
|
* @throws {RequiredError}
|
|
@@ -500,7 +528,7 @@ export class InvoicesApi extends BaseAPI {
|
|
|
500
528
|
}
|
|
501
529
|
|
|
502
530
|
/**
|
|
503
|
-
* Returns a list of invoices you have previously created.
|
|
531
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
504
532
|
* @summary List invoices
|
|
505
533
|
* @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
|
|
506
534
|
* @param {*} [options] Override http request option.
|
|
@@ -508,11 +536,11 @@ export class InvoicesApi extends BaseAPI {
|
|
|
508
536
|
* @memberof InvoicesApi
|
|
509
537
|
*/
|
|
510
538
|
public listInvoices(requestParameters: InvoicesApiListInvoicesRequest = {}, options?: AxiosRequestConfig) {
|
|
511
|
-
return InvoicesApiFp(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
539
|
+
return InvoicesApiFp(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
512
540
|
}
|
|
513
541
|
|
|
514
542
|
/**
|
|
515
|
-
* Returns a list of policies billing dates you have previously created.
|
|
543
|
+
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
516
544
|
* @summary List policies billing dates
|
|
517
545
|
* @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
|
|
518
546
|
* @param {*} [options] Override http request option.
|
|
@@ -520,6 +548,6 @@ export class InvoicesApi extends BaseAPI {
|
|
|
520
548
|
* @memberof InvoicesApi
|
|
521
549
|
*/
|
|
522
550
|
public listPoliciesBillingDates(requestParameters: InvoicesApiListPoliciesBillingDatesRequest = {}, options?: AxiosRequestConfig) {
|
|
523
|
-
return InvoicesApiFp(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
551
|
+
return InvoicesApiFp(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
524
552
|
}
|
|
525
553
|
}
|
package/api.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
import { CorrectionInvoicesApi } from './api';
|
|
24
24
|
import { DefaultApi } from './api';
|
|
25
|
+
import { DraftInvoiceApi } from './api';
|
|
25
26
|
import { EstimatedInvoicesApi } from './api';
|
|
26
27
|
import { InitialInvoicesApi } from './api';
|
|
27
28
|
import { InvoicesApi } from './api';
|
|
@@ -30,6 +31,7 @@ import { RecurringInvoicesApi } from './api';
|
|
|
30
31
|
|
|
31
32
|
export * from './api/correction-invoices-api';
|
|
32
33
|
export * from './api/default-api';
|
|
34
|
+
export * from './api/draft-invoice-api';
|
|
33
35
|
export * from './api/estimated-invoices-api';
|
|
34
36
|
export * from './api/initial-invoices-api';
|
|
35
37
|
export * from './api/invoices-api';
|
package/base.ts
CHANGED
|
@@ -87,6 +87,7 @@ export class BaseAPI {
|
|
|
87
87
|
if (configuration) {
|
|
88
88
|
this.configuration = configuration;
|
|
89
89
|
this.basePath = configuration.basePath || this.basePath;
|
|
90
|
+
this.configuration.accessToken = this.tokenData.accessToken ? `Bearer ${this.tokenData.accessToken}` : '';
|
|
90
91
|
} else {
|
|
91
92
|
const { accessToken, username } = this.tokenData;
|
|
92
93
|
|
|
@@ -0,0 +1,185 @@
|
|
|
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 { CreateDraftInvoiceRequestDto } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* DraftInvoiceApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const DraftInvoiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
|
|
24
|
+
* @param {string} [authorization] Bearer Token
|
|
25
|
+
* @param {*} [options] Override http request option.
|
|
26
|
+
* @throws {RequiredError}
|
|
27
|
+
*/
|
|
28
|
+
createDraftInvoice: (createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param {string} [authorization] Bearer Token
|
|
32
|
+
* @param {*} [options] Override http request option.
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
*/
|
|
35
|
+
deleteAllDraftInvoices: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @param {object} body
|
|
39
|
+
* @param {string} [authorization] Bearer Token
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
deleteDraftInvoice: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* DraftInvoiceApi - functional programming interface
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
export declare const DraftInvoiceApiFp: (configuration?: Configuration) => {
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
|
|
53
|
+
* @param {string} [authorization] Bearer Token
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
createDraftInvoice(createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @param {string} [authorization] Bearer Token
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
deleteAllDraftInvoices(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @param {object} body
|
|
68
|
+
* @param {string} [authorization] Bearer Token
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
deleteDraftInvoice(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* DraftInvoiceApi - factory interface
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const DraftInvoiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
|
|
82
|
+
* @param {string} [authorization] Bearer Token
|
|
83
|
+
* @param {*} [options] Override http request option.
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
*/
|
|
86
|
+
createDraftInvoice(createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @param {string} [authorization] Bearer Token
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
*/
|
|
93
|
+
deleteAllDraftInvoices(authorization?: string, options?: any): AxiosPromise<void>;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @param {object} body
|
|
97
|
+
* @param {string} [authorization] Bearer Token
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
deleteDraftInvoice(body: object, authorization?: string, options?: any): AxiosPromise<void>;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Request parameters for createDraftInvoice operation in DraftInvoiceApi.
|
|
105
|
+
* @export
|
|
106
|
+
* @interface DraftInvoiceApiCreateDraftInvoiceRequest
|
|
107
|
+
*/
|
|
108
|
+
export interface DraftInvoiceApiCreateDraftInvoiceRequest {
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {CreateDraftInvoiceRequestDto}
|
|
112
|
+
* @memberof DraftInvoiceApiCreateDraftInvoice
|
|
113
|
+
*/
|
|
114
|
+
readonly createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto;
|
|
115
|
+
/**
|
|
116
|
+
* Bearer Token
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof DraftInvoiceApiCreateDraftInvoice
|
|
119
|
+
*/
|
|
120
|
+
readonly authorization?: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Request parameters for deleteAllDraftInvoices operation in DraftInvoiceApi.
|
|
124
|
+
* @export
|
|
125
|
+
* @interface DraftInvoiceApiDeleteAllDraftInvoicesRequest
|
|
126
|
+
*/
|
|
127
|
+
export interface DraftInvoiceApiDeleteAllDraftInvoicesRequest {
|
|
128
|
+
/**
|
|
129
|
+
* Bearer Token
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof DraftInvoiceApiDeleteAllDraftInvoices
|
|
132
|
+
*/
|
|
133
|
+
readonly authorization?: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Request parameters for deleteDraftInvoice operation in DraftInvoiceApi.
|
|
137
|
+
* @export
|
|
138
|
+
* @interface DraftInvoiceApiDeleteDraftInvoiceRequest
|
|
139
|
+
*/
|
|
140
|
+
export interface DraftInvoiceApiDeleteDraftInvoiceRequest {
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {object}
|
|
144
|
+
* @memberof DraftInvoiceApiDeleteDraftInvoice
|
|
145
|
+
*/
|
|
146
|
+
readonly body: object;
|
|
147
|
+
/**
|
|
148
|
+
* Bearer Token
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof DraftInvoiceApiDeleteDraftInvoice
|
|
151
|
+
*/
|
|
152
|
+
readonly authorization?: string;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* DraftInvoiceApi - object-oriented interface
|
|
156
|
+
* @export
|
|
157
|
+
* @class DraftInvoiceApi
|
|
158
|
+
* @extends {BaseAPI}
|
|
159
|
+
*/
|
|
160
|
+
export declare class DraftInvoiceApi extends BaseAPI {
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @param {DraftInvoiceApiCreateDraftInvoiceRequest} requestParameters Request parameters.
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
* @memberof DraftInvoiceApi
|
|
167
|
+
*/
|
|
168
|
+
createDraftInvoice(requestParameters: DraftInvoiceApiCreateDraftInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @param {DraftInvoiceApiDeleteAllDraftInvoicesRequest} requestParameters Request parameters.
|
|
172
|
+
* @param {*} [options] Override http request option.
|
|
173
|
+
* @throws {RequiredError}
|
|
174
|
+
* @memberof DraftInvoiceApi
|
|
175
|
+
*/
|
|
176
|
+
deleteAllDraftInvoices(requestParameters?: DraftInvoiceApiDeleteAllDraftInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @param {DraftInvoiceApiDeleteDraftInvoiceRequest} requestParameters Request parameters.
|
|
180
|
+
* @param {*} [options] Override http request option.
|
|
181
|
+
* @throws {RequiredError}
|
|
182
|
+
* @memberof DraftInvoiceApi
|
|
183
|
+
*/
|
|
184
|
+
deleteDraftInvoice(requestParameters: DraftInvoiceApiDeleteDraftInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
185
|
+
}
|