@emilgroup/billing-sdk-node 1.3.0 → 1.4.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 +7 -0
- package/README.md +2 -2
- package/api/correction-invoices-api.ts +29 -11
- package/api/estimated-invoices-api.ts +17 -9
- package/api/initial-invoices-api.ts +29 -11
- package/api/invoices-api.ts +95 -87
- package/api/recurring-invoices-api.ts +29 -11
- package/api.ts +1 -6
- package/base.ts +6 -5
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/correction-invoices-api.d.ts +21 -8
- package/dist/api/correction-invoices-api.js +21 -11
- package/dist/api/estimated-invoices-api.d.ts +17 -9
- package/dist/api/estimated-invoices-api.js +17 -9
- package/dist/api/initial-invoices-api.d.ts +21 -8
- package/dist/api/initial-invoices-api.js +21 -11
- package/dist/api/invoices-api.d.ts +95 -87
- package/dist/api/invoices-api.js +53 -45
- package/dist/api/recurring-invoices-api.d.ts +21 -8
- package/dist/api/recurring-invoices-api.js +21 -11
- package/dist/api.d.ts +1 -5
- package/dist/api.js +1 -7
- package/dist/base.d.ts +4 -3
- package/dist/base.js +6 -5
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/models/create-correction-invoices-response-class.d.ts +5 -5
- package/dist/models/create-correction-invoices-response-class.js +1 -1
- package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +3 -3
- package/dist/models/create-custom-estimated-invoice-request-dto.js +1 -1
- package/dist/models/create-custom-estimated-invoice-response-class.d.ts +1 -1
- package/dist/models/create-custom-estimated-invoice-response-class.js +1 -1
- package/dist/models/create-estimated-invoice-request-dto.d.ts +3 -3
- package/dist/models/create-estimated-invoice-request-dto.js +1 -1
- package/dist/models/create-estimated-invoice-response-class.d.ts +3 -3
- package/dist/models/create-estimated-invoice-response-class.js +1 -1
- package/dist/models/create-invoice-request-dto.d.ts +16 -14
- package/dist/models/create-invoice-request-dto.js +4 -2
- package/dist/models/create-invoice-response-class.d.ts +5 -5
- package/dist/models/create-invoice-response-class.js +1 -1
- package/dist/models/create-invoice-status-request-dto.d.ts +35 -0
- package/dist/models/create-invoice-status-request-dto.js +20 -0
- package/dist/models/create-termination-invoice-request-dto.d.ts +48 -0
- package/dist/models/create-termination-invoice-request-dto.js +15 -0
- package/dist/models/currency-class.d.ts +48 -0
- package/dist/models/currency-class.js +15 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/invoice-class.d.ts +50 -20
- package/dist/models/invoice-class.js +16 -1
- package/dist/models/invoice-item-class.d.ts +26 -17
- package/dist/models/invoice-item-class.js +10 -1
- package/dist/models/invoice-status-class.d.ts +47 -0
- package/dist/models/invoice-status-class.js +20 -0
- package/dist/models/list-invoices-response-class.d.ts +3 -3
- package/dist/models/list-invoices-response-class.js +1 -1
- package/dist/models/list-policies-billing-dates-response-class.d.ts +6 -5
- package/dist/models/list-policies-billing-dates-response-class.js +1 -1
- package/dist/models/list-request-dto.d.ts +1 -1
- package/dist/models/list-request-dto.js +1 -1
- package/dist/models/omit-type-class.d.ts +144 -0
- package/dist/models/omit-type-class.js +30 -0
- package/dist/models/policy-billing-date-class.d.ts +42 -0
- package/dist/models/policy-billing-date-class.js +15 -0
- package/dist/models/policy-dto.d.ts +62 -25
- package/dist/models/policy-dto.js +8 -1
- package/dist/models/policy-object-dto.d.ts +10 -10
- package/dist/models/policy-object-dto.js +1 -1
- package/dist/models/policy-premium-dto.d.ts +12 -12
- package/dist/models/policy-premium-dto.js +1 -1
- package/dist/models/policy-premium-item-dto.d.ts +20 -14
- package/dist/models/policy-premium-item-dto.js +1 -1
- package/dist/models/policy-version-dto.d.ts +17 -17
- package/dist/models/policy-version-dto.js +1 -1
- package/dist/models/premium-formula-dto.d.ts +20 -20
- package/dist/models/premium-formula-dto.js +1 -1
- package/dist/models/revert-invoice-request-dto.d.ts +24 -0
- package/dist/models/revert-invoice-request-dto.js +15 -0
- package/dist/models/timeslice-dto.d.ts +13 -13
- package/dist/models/timeslice-dto.js +1 -1
- package/index.ts +2 -2
- package/models/create-correction-invoices-response-class.ts +5 -5
- package/models/create-custom-estimated-invoice-request-dto.ts +3 -3
- package/models/create-custom-estimated-invoice-response-class.ts +1 -1
- package/models/create-estimated-invoice-request-dto.ts +3 -3
- package/models/create-estimated-invoice-response-class.ts +3 -3
- package/models/create-invoice-request-dto.ts +17 -15
- package/models/create-invoice-response-class.ts +5 -5
- package/models/create-invoice-status-request-dto.ts +44 -0
- package/models/create-termination-invoice-request-dto.ts +54 -0
- package/models/currency-class.ts +54 -0
- package/models/index.ts +7 -0
- package/models/invoice-class.ts +54 -20
- package/models/invoice-item-class.ts +29 -17
- package/models/invoice-status-class.ts +56 -0
- package/models/list-invoices-response-class.ts +3 -3
- package/models/list-policies-billing-dates-response-class.ts +6 -5
- package/models/list-request-dto.ts +1 -1
- package/models/omit-type-class.ts +154 -0
- package/models/policy-billing-date-class.ts +48 -0
- package/models/policy-dto.ts +65 -25
- package/models/policy-object-dto.ts +10 -10
- package/models/policy-premium-dto.ts +12 -12
- package/models/policy-premium-item-dto.ts +20 -14
- package/models/policy-version-dto.ts +17 -17
- package/models/premium-formula-dto.ts +20 -20
- package/models/revert-invoice-request-dto.ts +30 -0
- package/models/timeslice-dto.ts +13 -13
- package/package.json +1 -1
package/api/invoices-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL BillingService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -35,18 +35,19 @@ const FormData = require('form-data');
|
|
|
35
35
|
export const InvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
39
|
+
* @summary List invoices
|
|
39
40
|
* @param {string} [authorization] Bearer Token
|
|
40
|
-
* @param {
|
|
41
|
-
* @param {
|
|
42
|
-
* @param {
|
|
43
|
-
* @param {
|
|
44
|
-
* @param {
|
|
45
|
-
* @param {
|
|
41
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
42
|
+
* @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.
|
|
43
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
44
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
45
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
46
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
46
47
|
* @param {*} [options] Override http request option.
|
|
47
48
|
* @throws {RequiredError}
|
|
48
49
|
*/
|
|
49
|
-
listInvoices: async (authorization?: string, pageSize?:
|
|
50
|
+
listInvoices: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
51
|
const localVarPath = `/billingservice/v1/invoices`;
|
|
51
52
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
53
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -105,18 +106,19 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
105
106
|
};
|
|
106
107
|
},
|
|
107
108
|
/**
|
|
108
|
-
*
|
|
109
|
+
* 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.
|
|
110
|
+
* @summary List policies billing dates
|
|
109
111
|
* @param {string} [authorization] Bearer Token
|
|
110
|
-
* @param {
|
|
111
|
-
* @param {
|
|
112
|
-
* @param {
|
|
113
|
-
* @param {
|
|
114
|
-
* @param {
|
|
115
|
-
* @param {
|
|
112
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
113
|
+
* @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.
|
|
114
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
115
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
116
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
117
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
116
118
|
* @param {*} [options] Override http request option.
|
|
117
119
|
* @throws {RequiredError}
|
|
118
120
|
*/
|
|
119
|
-
listPoliciesBillingDates: async (authorization?: string, pageSize?:
|
|
121
|
+
listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
120
122
|
const localVarPath = `/billingservice/v1/invoices/policies-billing-dates`;
|
|
121
123
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
122
124
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -185,34 +187,36 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
185
187
|
const localVarAxiosParamCreator = InvoicesApiAxiosParamCreator(configuration)
|
|
186
188
|
return {
|
|
187
189
|
/**
|
|
188
|
-
*
|
|
190
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
191
|
+
* @summary List invoices
|
|
189
192
|
* @param {string} [authorization] Bearer Token
|
|
190
|
-
* @param {
|
|
191
|
-
* @param {
|
|
192
|
-
* @param {
|
|
193
|
-
* @param {
|
|
194
|
-
* @param {
|
|
195
|
-
* @param {
|
|
193
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
194
|
+
* @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.
|
|
195
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
196
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
197
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
198
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
196
199
|
* @param {*} [options] Override http request option.
|
|
197
200
|
* @throws {RequiredError}
|
|
198
201
|
*/
|
|
199
|
-
async listInvoices(authorization?: string, pageSize?:
|
|
202
|
+
async listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>> {
|
|
200
203
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
201
204
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
202
205
|
},
|
|
203
206
|
/**
|
|
204
|
-
*
|
|
207
|
+
* 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.
|
|
208
|
+
* @summary List policies billing dates
|
|
205
209
|
* @param {string} [authorization] Bearer Token
|
|
206
|
-
* @param {
|
|
207
|
-
* @param {
|
|
208
|
-
* @param {
|
|
209
|
-
* @param {
|
|
210
|
-
* @param {
|
|
211
|
-
* @param {
|
|
210
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
211
|
+
* @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.
|
|
212
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
213
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
214
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
215
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
212
216
|
* @param {*} [options] Override http request option.
|
|
213
217
|
* @throws {RequiredError}
|
|
214
218
|
*/
|
|
215
|
-
async listPoliciesBillingDates(authorization?: string, pageSize?:
|
|
219
|
+
async listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesBillingDatesResponseClass>> {
|
|
216
220
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
217
221
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
218
222
|
},
|
|
@@ -227,33 +231,35 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
227
231
|
const localVarFp = InvoicesApiFp(configuration)
|
|
228
232
|
return {
|
|
229
233
|
/**
|
|
230
|
-
*
|
|
234
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
235
|
+
* @summary List invoices
|
|
231
236
|
* @param {string} [authorization] Bearer Token
|
|
232
|
-
* @param {
|
|
233
|
-
* @param {
|
|
234
|
-
* @param {
|
|
235
|
-
* @param {
|
|
236
|
-
* @param {
|
|
237
|
-
* @param {
|
|
237
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
238
|
+
* @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.
|
|
239
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
240
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
241
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
242
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
238
243
|
* @param {*} [options] Override http request option.
|
|
239
244
|
* @throws {RequiredError}
|
|
240
245
|
*/
|
|
241
|
-
listInvoices(authorization?: string, pageSize?:
|
|
246
|
+
listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListInvoicesResponseClass> {
|
|
242
247
|
return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
243
248
|
},
|
|
244
249
|
/**
|
|
245
|
-
*
|
|
250
|
+
* 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.
|
|
251
|
+
* @summary List policies billing dates
|
|
246
252
|
* @param {string} [authorization] Bearer Token
|
|
247
|
-
* @param {
|
|
248
|
-
* @param {
|
|
249
|
-
* @param {
|
|
250
|
-
* @param {
|
|
251
|
-
* @param {
|
|
252
|
-
* @param {
|
|
253
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
254
|
+
* @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.
|
|
255
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
256
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
257
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
258
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
253
259
|
* @param {*} [options] Override http request option.
|
|
254
260
|
* @throws {RequiredError}
|
|
255
261
|
*/
|
|
256
|
-
listPoliciesBillingDates(authorization?: string, pageSize?:
|
|
262
|
+
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPoliciesBillingDatesResponseClass> {
|
|
257
263
|
return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
258
264
|
},
|
|
259
265
|
};
|
|
@@ -273,46 +279,46 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
273
279
|
readonly authorization?: string
|
|
274
280
|
|
|
275
281
|
/**
|
|
276
|
-
*
|
|
277
|
-
* @type {
|
|
282
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
283
|
+
* @type {any}
|
|
278
284
|
* @memberof InvoicesApiListInvoices
|
|
279
285
|
*/
|
|
280
|
-
readonly pageSize?:
|
|
286
|
+
readonly pageSize?: any
|
|
281
287
|
|
|
282
288
|
/**
|
|
283
|
-
*
|
|
284
|
-
* @type {
|
|
289
|
+
* 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.
|
|
290
|
+
* @type {any}
|
|
285
291
|
* @memberof InvoicesApiListInvoices
|
|
286
292
|
*/
|
|
287
|
-
readonly pageToken?:
|
|
293
|
+
readonly pageToken?: any
|
|
288
294
|
|
|
289
295
|
/**
|
|
290
|
-
*
|
|
291
|
-
* @type {
|
|
296
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
297
|
+
* @type {any}
|
|
292
298
|
* @memberof InvoicesApiListInvoices
|
|
293
299
|
*/
|
|
294
|
-
readonly filter?:
|
|
300
|
+
readonly filter?: any
|
|
295
301
|
|
|
296
302
|
/**
|
|
297
|
-
* Search
|
|
298
|
-
* @type {
|
|
303
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
304
|
+
* @type {any}
|
|
299
305
|
* @memberof InvoicesApiListInvoices
|
|
300
306
|
*/
|
|
301
|
-
readonly search?:
|
|
307
|
+
readonly search?: any
|
|
302
308
|
|
|
303
309
|
/**
|
|
304
|
-
*
|
|
305
|
-
* @type {
|
|
310
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
311
|
+
* @type {any}
|
|
306
312
|
* @memberof InvoicesApiListInvoices
|
|
307
313
|
*/
|
|
308
|
-
readonly order?:
|
|
314
|
+
readonly order?: any
|
|
309
315
|
|
|
310
316
|
/**
|
|
311
|
-
*
|
|
312
|
-
* @type {
|
|
317
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
318
|
+
* @type {any}
|
|
313
319
|
* @memberof InvoicesApiListInvoices
|
|
314
320
|
*/
|
|
315
|
-
readonly expand?:
|
|
321
|
+
readonly expand?: any
|
|
316
322
|
}
|
|
317
323
|
|
|
318
324
|
/**
|
|
@@ -329,46 +335,46 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
329
335
|
readonly authorization?: string
|
|
330
336
|
|
|
331
337
|
/**
|
|
332
|
-
*
|
|
333
|
-
* @type {
|
|
338
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
339
|
+
* @type {any}
|
|
334
340
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
335
341
|
*/
|
|
336
|
-
readonly pageSize?:
|
|
342
|
+
readonly pageSize?: any
|
|
337
343
|
|
|
338
344
|
/**
|
|
339
|
-
*
|
|
340
|
-
* @type {
|
|
345
|
+
* 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.
|
|
346
|
+
* @type {any}
|
|
341
347
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
342
348
|
*/
|
|
343
|
-
readonly pageToken?:
|
|
349
|
+
readonly pageToken?: any
|
|
344
350
|
|
|
345
351
|
/**
|
|
346
|
-
*
|
|
347
|
-
* @type {
|
|
352
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
353
|
+
* @type {any}
|
|
348
354
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
349
355
|
*/
|
|
350
|
-
readonly filter?:
|
|
356
|
+
readonly filter?: any
|
|
351
357
|
|
|
352
358
|
/**
|
|
353
|
-
* Search
|
|
354
|
-
* @type {
|
|
359
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
360
|
+
* @type {any}
|
|
355
361
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
356
362
|
*/
|
|
357
|
-
readonly search?:
|
|
363
|
+
readonly search?: any
|
|
358
364
|
|
|
359
365
|
/**
|
|
360
|
-
*
|
|
361
|
-
* @type {
|
|
366
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
367
|
+
* @type {any}
|
|
362
368
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
363
369
|
*/
|
|
364
|
-
readonly order?:
|
|
370
|
+
readonly order?: any
|
|
365
371
|
|
|
366
372
|
/**
|
|
367
|
-
*
|
|
368
|
-
* @type {
|
|
373
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
374
|
+
* @type {any}
|
|
369
375
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
370
376
|
*/
|
|
371
|
-
readonly expand?:
|
|
377
|
+
readonly expand?: any
|
|
372
378
|
}
|
|
373
379
|
|
|
374
380
|
/**
|
|
@@ -379,7 +385,8 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
379
385
|
*/
|
|
380
386
|
export class InvoicesApi extends BaseAPI {
|
|
381
387
|
/**
|
|
382
|
-
*
|
|
388
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
389
|
+
* @summary List invoices
|
|
383
390
|
* @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
|
|
384
391
|
* @param {*} [options] Override http request option.
|
|
385
392
|
* @throws {RequiredError}
|
|
@@ -390,7 +397,8 @@ export class InvoicesApi extends BaseAPI {
|
|
|
390
397
|
}
|
|
391
398
|
|
|
392
399
|
/**
|
|
393
|
-
*
|
|
400
|
+
* 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.
|
|
401
|
+
* @summary List policies billing dates
|
|
394
402
|
* @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
|
|
395
403
|
* @param {*} [options] Override http request option.
|
|
396
404
|
* @throws {RequiredError}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL BillingService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -35,13 +35,15 @@ const FormData = require('form-data');
|
|
|
35
35
|
export const RecurringInvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
|
|
39
|
+
* @summary Create the recurring invoice
|
|
39
40
|
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
40
41
|
* @param {string} [authorization] Bearer Token
|
|
42
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
41
43
|
* @param {*} [options] Override http request option.
|
|
42
44
|
* @throws {RequiredError}
|
|
43
45
|
*/
|
|
44
|
-
createRecurringInvoice: async (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
createRecurringInvoice: async (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
47
|
// verify required parameter 'createInvoiceRequestDto' is not null or undefined
|
|
46
48
|
assertParamExists('createRecurringInvoice', 'createInvoiceRequestDto', createInvoiceRequestDto)
|
|
47
49
|
const localVarPath = `/billingservice/v1/recurring-invoices`;
|
|
@@ -66,6 +68,10 @@ export const RecurringInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
66
68
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
67
69
|
}
|
|
68
70
|
|
|
71
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
73
|
+
}
|
|
74
|
+
|
|
69
75
|
|
|
70
76
|
|
|
71
77
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -91,14 +97,16 @@ export const RecurringInvoicesApiFp = function(configuration?: Configuration) {
|
|
|
91
97
|
const localVarAxiosParamCreator = RecurringInvoicesApiAxiosParamCreator(configuration)
|
|
92
98
|
return {
|
|
93
99
|
/**
|
|
94
|
-
*
|
|
100
|
+
* This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
|
|
101
|
+
* @summary Create the recurring invoice
|
|
95
102
|
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
96
103
|
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
97
105
|
* @param {*} [options] Override http request option.
|
|
98
106
|
* @throws {RequiredError}
|
|
99
107
|
*/
|
|
100
|
-
async createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>> {
|
|
101
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createRecurringInvoice(createInvoiceRequestDto, authorization, options);
|
|
108
|
+
async createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>> {
|
|
109
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createRecurringInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options);
|
|
102
110
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
103
111
|
},
|
|
104
112
|
}
|
|
@@ -112,14 +120,16 @@ export const RecurringInvoicesApiFactory = function (configuration?: Configurati
|
|
|
112
120
|
const localVarFp = RecurringInvoicesApiFp(configuration)
|
|
113
121
|
return {
|
|
114
122
|
/**
|
|
115
|
-
*
|
|
123
|
+
* This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
|
|
124
|
+
* @summary Create the recurring invoice
|
|
116
125
|
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
117
126
|
* @param {string} [authorization] Bearer Token
|
|
127
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
118
128
|
* @param {*} [options] Override http request option.
|
|
119
129
|
* @throws {RequiredError}
|
|
120
130
|
*/
|
|
121
|
-
createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass> {
|
|
122
|
-
return localVarFp.createRecurringInvoice(createInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
131
|
+
createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass> {
|
|
132
|
+
return localVarFp.createRecurringInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
|
|
123
133
|
},
|
|
124
134
|
};
|
|
125
135
|
};
|
|
@@ -143,6 +153,13 @@ export interface RecurringInvoicesApiCreateRecurringInvoiceRequest {
|
|
|
143
153
|
* @memberof RecurringInvoicesApiCreateRecurringInvoice
|
|
144
154
|
*/
|
|
145
155
|
readonly authorization?: string
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof RecurringInvoicesApiCreateRecurringInvoice
|
|
161
|
+
*/
|
|
162
|
+
readonly idempotencyKey?: string
|
|
146
163
|
}
|
|
147
164
|
|
|
148
165
|
/**
|
|
@@ -153,13 +170,14 @@ export interface RecurringInvoicesApiCreateRecurringInvoiceRequest {
|
|
|
153
170
|
*/
|
|
154
171
|
export class RecurringInvoicesApi extends BaseAPI {
|
|
155
172
|
/**
|
|
156
|
-
*
|
|
173
|
+
* This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
|
|
174
|
+
* @summary Create the recurring invoice
|
|
157
175
|
* @param {RecurringInvoicesApiCreateRecurringInvoiceRequest} requestParameters Request parameters.
|
|
158
176
|
* @param {*} [options] Override http request option.
|
|
159
177
|
* @throws {RequiredError}
|
|
160
178
|
* @memberof RecurringInvoicesApi
|
|
161
179
|
*/
|
|
162
180
|
public createRecurringInvoice(requestParameters: RecurringInvoicesApiCreateRecurringInvoiceRequest, options?: AxiosRequestConfig) {
|
|
163
|
-
return RecurringInvoicesApiFp(this.configuration).createRecurringInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
181
|
+
return RecurringInvoicesApiFp(this.configuration).createRecurringInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
164
182
|
}
|
|
165
183
|
}
|
package/api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL BillingService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -37,8 +37,3 @@ export * from './api/initial-invoices-api';
|
|
|
37
37
|
export * from './api/invoices-api';
|
|
38
38
|
export * from './api/recurring-invoices-api';
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
export enum Environment {
|
|
42
|
-
Production = 'https://apiv2.emil.de',
|
|
43
|
-
Test = 'https://apiv2-test.emil.de',
|
|
44
|
-
}
|
package/base.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL BillingService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -21,7 +21,7 @@ import * as fs from 'fs';
|
|
|
21
21
|
import * as path from 'path';
|
|
22
22
|
import * as os from 'os';
|
|
23
23
|
|
|
24
|
-
export const BASE_PATH = "
|
|
24
|
+
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
25
25
|
const CONFIG_DIRECTORY = '.emil';
|
|
26
26
|
const CONFIG_FILENAME = 'credentials';
|
|
27
27
|
const KEY_USERNAME = 'emil_username';
|
|
@@ -47,6 +47,7 @@ export interface LoginClass {
|
|
|
47
47
|
export enum Environment {
|
|
48
48
|
Production = 'https://apiv2.emil.de',
|
|
49
49
|
Test = 'https://apiv2-test.emil.de',
|
|
50
|
+
Development = 'https://apiv2-dev.emil.de',
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
let _retry_count = 0
|
|
@@ -169,7 +170,7 @@ export class BaseAPI {
|
|
|
169
170
|
this.configuration.refreshToken = refreshToken;
|
|
170
171
|
}
|
|
171
172
|
|
|
172
|
-
async
|
|
173
|
+
async refreshTokenInternal(): Promise<string> {
|
|
173
174
|
const { username, refreshToken } = this.configuration;
|
|
174
175
|
|
|
175
176
|
|
|
@@ -219,7 +220,7 @@ export class BaseAPI {
|
|
|
219
220
|
if (err.response.status === 401 && !originalConfig._retry) {
|
|
220
221
|
originalConfig._retry = true;
|
|
221
222
|
try {
|
|
222
|
-
const tokenString = await this.
|
|
223
|
+
const tokenString = await this.refreshTokenInternal();
|
|
223
224
|
const accessToken = `Bearer ${tokenString}`;
|
|
224
225
|
|
|
225
226
|
originalConfig.headers['Authorization'] = `Bearer ${accessToken}`
|
|
@@ -244,7 +245,7 @@ export class BaseAPI {
|
|
|
244
245
|
){
|
|
245
246
|
_retry_count++;
|
|
246
247
|
try {
|
|
247
|
-
const tokenString = await this.
|
|
248
|
+
const tokenString = await this.refreshTokenInternal();
|
|
248
249
|
const accessToken = `Bearer ${tokenString}`;
|
|
249
250
|
|
|
250
251
|
_retry = true;
|
package/common.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL BillingService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -144,7 +144,7 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
|
|
|
144
144
|
* The EMIL BillingService API description
|
|
145
145
|
*
|
|
146
146
|
* The version of the OpenAPI document: 1.0
|
|
147
|
-
*
|
|
147
|
+
* Contact: kontakt@emil.de
|
|
148
148
|
*
|
|
149
149
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
150
150
|
* https://openapi-generator.tech
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL BillingService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -20,13 +20,15 @@ import { CreateInvoiceRequestDto } from '../models';
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const CorrectionInvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
|
|
24
|
+
* @summary Create the correction invoice
|
|
24
25
|
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
25
26
|
* @param {string} [authorization] Bearer Token
|
|
27
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
26
28
|
* @param {*} [options] Override http request option.
|
|
27
29
|
* @throws {RequiredError}
|
|
28
30
|
*/
|
|
29
|
-
createCorrectionInvoice: (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
createCorrectionInvoice: (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
32
|
};
|
|
31
33
|
/**
|
|
32
34
|
* CorrectionInvoicesApi - functional programming interface
|
|
@@ -34,13 +36,15 @@ export declare const CorrectionInvoicesApiAxiosParamCreator: (configuration?: Co
|
|
|
34
36
|
*/
|
|
35
37
|
export declare const CorrectionInvoicesApiFp: (configuration?: Configuration) => {
|
|
36
38
|
/**
|
|
37
|
-
*
|
|
39
|
+
* This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
|
|
40
|
+
* @summary Create the correction invoice
|
|
38
41
|
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
39
42
|
* @param {string} [authorization] Bearer Token
|
|
43
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
40
44
|
* @param {*} [options] Override http request option.
|
|
41
45
|
* @throws {RequiredError}
|
|
42
46
|
*/
|
|
43
|
-
createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCorrectionInvoicesResponseClass>>;
|
|
47
|
+
createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCorrectionInvoicesResponseClass>>;
|
|
44
48
|
};
|
|
45
49
|
/**
|
|
46
50
|
* CorrectionInvoicesApi - factory interface
|
|
@@ -48,13 +52,15 @@ export declare const CorrectionInvoicesApiFp: (configuration?: Configuration) =>
|
|
|
48
52
|
*/
|
|
49
53
|
export declare const CorrectionInvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
50
54
|
/**
|
|
51
|
-
*
|
|
55
|
+
* This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
|
|
56
|
+
* @summary Create the correction invoice
|
|
52
57
|
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
53
58
|
* @param {string} [authorization] Bearer Token
|
|
59
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
54
60
|
* @param {*} [options] Override http request option.
|
|
55
61
|
* @throws {RequiredError}
|
|
56
62
|
*/
|
|
57
|
-
createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCorrectionInvoicesResponseClass>;
|
|
63
|
+
createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateCorrectionInvoicesResponseClass>;
|
|
58
64
|
};
|
|
59
65
|
/**
|
|
60
66
|
* Request parameters for createCorrectionInvoice operation in CorrectionInvoicesApi.
|
|
@@ -74,6 +80,12 @@ export interface CorrectionInvoicesApiCreateCorrectionInvoiceRequest {
|
|
|
74
80
|
* @memberof CorrectionInvoicesApiCreateCorrectionInvoice
|
|
75
81
|
*/
|
|
76
82
|
readonly authorization?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof CorrectionInvoicesApiCreateCorrectionInvoice
|
|
87
|
+
*/
|
|
88
|
+
readonly idempotencyKey?: string;
|
|
77
89
|
}
|
|
78
90
|
/**
|
|
79
91
|
* CorrectionInvoicesApi - object-oriented interface
|
|
@@ -83,7 +95,8 @@ export interface CorrectionInvoicesApiCreateCorrectionInvoiceRequest {
|
|
|
83
95
|
*/
|
|
84
96
|
export declare class CorrectionInvoicesApi extends BaseAPI {
|
|
85
97
|
/**
|
|
86
|
-
*
|
|
98
|
+
* This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
|
|
99
|
+
* @summary Create the correction invoice
|
|
87
100
|
* @param {CorrectionInvoicesApiCreateCorrectionInvoiceRequest} requestParameters Request parameters.
|
|
88
101
|
* @param {*} [options] Override http request option.
|
|
89
102
|
* @throws {RequiredError}
|