@emilgroup/billing-sdk-node 1.17.1-beta.1 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -17
- package/README.md +2 -2
- package/api/correction-invoices-api.ts +2 -4
- package/api/draft-invoice-api.ts +346 -0
- package/api/estimated-invoices-api.ts +6 -12
- package/api/initial-invoices-api.ts +2 -4
- package/api/invoices-api.ts +80 -86
- package/api/recurring-invoices-api.ts +2 -4
- package/api.ts +2 -0
- package/dist/api/correction-invoices-api.d.ts +3 -4
- package/dist/api/draft-invoice-api.d.ts +185 -0
- package/dist/api/draft-invoice-api.js +396 -0
- package/dist/api/estimated-invoices-api.d.ts +9 -12
- package/dist/api/initial-invoices-api.d.ts +3 -4
- package/dist/api/invoices-api.d.ts +83 -86
- package/dist/api/invoices-api.js +46 -46
- package/dist/api/recurring-invoices-api.d.ts +3 -4
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/create-draft-invoice-request-dto.d.ts +89 -0
- package/dist/models/{invoice-class.js → create-draft-invoice-request-dto.js} +2 -8
- package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +2 -2
- package/dist/models/create-estimated-invoice-request-dto.d.ts +1 -7
- package/dist/models/create-invoice-payment-request-dto.d.ts +2 -8
- package/dist/models/create-invoice-request-dto.d.ts +6 -6
- package/dist/models/index.d.ts +1 -17
- package/dist/models/index.js +1 -17
- package/dist/models/policy-dto.d.ts +4 -18
- package/dist/models/policy-dto.js +0 -8
- package/dist/models/policy-object-dto.d.ts +2 -8
- package/dist/models/policy-premium-dto.d.ts +2 -2
- package/dist/models/policy-premium-item-dto.d.ts +2 -2
- package/dist/models/policy-version-dto.d.ts +3 -3
- package/dist/models/premium-formula-dto.d.ts +2 -2
- 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 +2 -2
- package/models/create-estimated-invoice-request-dto.ts +1 -7
- package/models/create-invoice-payment-request-dto.ts +2 -8
- package/models/create-invoice-request-dto.ts +6 -6
- package/models/index.ts +1 -17
- package/models/policy-dto.ts +4 -21
- package/models/policy-object-dto.ts +2 -8
- package/models/policy-premium-dto.ts +2 -2
- package/models/policy-premium-item-dto.ts +2 -2
- package/models/policy-version-dto.ts +3 -3
- package/models/premium-formula-dto.ts +2 -2
- package/models/timeslice-dto.ts +1 -1
- package/package.json +1 -1
- package/dist/models/create-correction-invoices-response-class.d.ts +0 -25
- package/dist/models/create-correction-invoices-response-class.js +0 -15
- package/dist/models/create-custom-estimated-invoice-response-class.d.ts +0 -24
- package/dist/models/create-custom-estimated-invoice-response-class.js +0 -15
- package/dist/models/create-estimated-invoice-for-interval-response-class.d.ts +0 -25
- package/dist/models/create-estimated-invoice-for-interval-response-class.js +0 -15
- package/dist/models/create-estimated-invoice-response-class.d.ts +0 -31
- package/dist/models/create-estimated-invoice-response-class.js +0 -15
- package/dist/models/create-invoice-response-class.d.ts +0 -25
- package/dist/models/create-invoice-response-class.js +0 -15
- package/dist/models/create-invoice-status-request-dto.d.ts +0 -37
- package/dist/models/create-invoice-status-request-dto.js +0 -22
- package/dist/models/create-termination-invoice-request-dto.d.ts +0 -54
- package/dist/models/create-termination-invoice-request-dto.js +0 -15
- package/dist/models/get-invoice-response-class.d.ts +0 -25
- package/dist/models/get-invoice-response-class.js +0 -15
- package/dist/models/invoice-class.d.ts +0 -171
- package/dist/models/invoice-item-class.d.ts +0 -129
- package/dist/models/invoice-item-class.js +0 -24
- package/dist/models/invoice-payment-class.d.ts +0 -102
- package/dist/models/invoice-payment-class.js +0 -15
- package/dist/models/invoice-payments-class.d.ts +0 -25
- package/dist/models/invoice-payments-class.js +0 -15
- package/dist/models/invoice-status-class.d.ts +0 -49
- package/dist/models/invoice-status-class.js +0 -22
- package/dist/models/list-invoices-response-class.d.ts +0 -31
- package/dist/models/list-invoices-response-class.js +0 -15
- package/dist/models/list-policies-billing-dates-response-class.d.ts +0 -31
- package/dist/models/list-policies-billing-dates-response-class.js +0 -15
- package/dist/models/omit-type-class.d.ts +0 -164
- package/dist/models/omit-type-class.js +0 -32
- package/dist/models/policy-billing-date-class.d.ts +0 -42
- package/dist/models/policy-billing-date-class.js +0 -15
- package/models/create-correction-invoices-response-class.ts +0 -31
- package/models/create-custom-estimated-invoice-response-class.ts +0 -30
- package/models/create-estimated-invoice-for-interval-response-class.ts +0 -31
- package/models/create-estimated-invoice-response-class.ts +0 -37
- package/models/create-invoice-response-class.ts +0 -31
- package/models/create-invoice-status-request-dto.ts +0 -46
- package/models/create-termination-invoice-request-dto.ts +0 -60
- package/models/get-invoice-response-class.ts +0 -31
- package/models/invoice-class.ts +0 -181
- package/models/invoice-item-class.ts +0 -138
- package/models/invoice-payment-class.ts +0 -108
- package/models/invoice-payments-class.ts +0 -31
- package/models/invoice-status-class.ts +0 -58
- package/models/list-invoices-response-class.ts +0 -37
- package/models/list-policies-billing-dates-response-class.ts +0 -37
- package/models/omit-type-class.ts +0 -174
- package/models/policy-billing-date-class.ts +0 -48
package/api/invoices-api.ts
CHANGED
|
@@ -20,12 +20,6 @@ import { Configuration } from '../configuration';
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { GetInvoiceResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { ListInvoicesResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { ListPoliciesBillingDatesResponseClass } from '../models';
|
|
29
23
|
// URLSearchParams not necessarily used
|
|
30
24
|
// @ts-ignore
|
|
31
25
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -37,8 +31,8 @@ const FormData = require('form-data');
|
|
|
37
31
|
export const InvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
32
|
return {
|
|
39
33
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @summary
|
|
34
|
+
* Gets an invoice.
|
|
35
|
+
* @summary Retrieve the invoice
|
|
42
36
|
* @param {string} code
|
|
43
37
|
* @param {string} expand
|
|
44
38
|
* @param {string} [authorization] Bearer Token
|
|
@@ -89,20 +83,20 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
89
83
|
};
|
|
90
84
|
},
|
|
91
85
|
/**
|
|
92
|
-
* Returns a list of invoices you have previously created.
|
|
86
|
+
* 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.
|
|
93
87
|
* @summary List invoices
|
|
94
88
|
* @param {string} [authorization] Bearer Token
|
|
95
89
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
96
90
|
* @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.
|
|
97
|
-
* @param {
|
|
98
|
-
* @param {any} [search]
|
|
99
|
-
* @param {
|
|
100
|
-
* @param {
|
|
101
|
-
* @param {
|
|
91
|
+
* @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>
|
|
92
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
93
|
+
* @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>
|
|
94
|
+
* @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>
|
|
95
|
+
* @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>
|
|
102
96
|
* @param {*} [options] Override http request option.
|
|
103
97
|
* @throws {RequiredError}
|
|
104
98
|
*/
|
|
105
|
-
listInvoices: async (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
99
|
+
listInvoices: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
106
100
|
const localVarPath = `/billingservice/v1/invoices`;
|
|
107
101
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
108
102
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -165,20 +159,20 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
165
159
|
};
|
|
166
160
|
},
|
|
167
161
|
/**
|
|
168
|
-
* Returns a list of policies billing dates you have previously created.
|
|
162
|
+
* 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.
|
|
169
163
|
* @summary List policies billing dates
|
|
170
164
|
* @param {string} [authorization] Bearer Token
|
|
171
165
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
172
166
|
* @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.
|
|
173
|
-
* @param {
|
|
174
|
-
* @param {any} [search]
|
|
175
|
-
* @param {
|
|
176
|
-
* @param {
|
|
177
|
-
* @param {
|
|
167
|
+
* @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>
|
|
168
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
169
|
+
* @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>
|
|
170
|
+
* @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>
|
|
171
|
+
* @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>
|
|
178
172
|
* @param {*} [options] Override http request option.
|
|
179
173
|
* @throws {RequiredError}
|
|
180
174
|
*/
|
|
181
|
-
listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
175
|
+
listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
182
176
|
const localVarPath = `/billingservice/v1/invoices/policies-billing-dates`;
|
|
183
177
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
184
178
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -251,51 +245,51 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
251
245
|
const localVarAxiosParamCreator = InvoicesApiAxiosParamCreator(configuration)
|
|
252
246
|
return {
|
|
253
247
|
/**
|
|
254
|
-
*
|
|
255
|
-
* @summary
|
|
248
|
+
* Gets an invoice.
|
|
249
|
+
* @summary Retrieve the invoice
|
|
256
250
|
* @param {string} code
|
|
257
251
|
* @param {string} expand
|
|
258
252
|
* @param {string} [authorization] Bearer Token
|
|
259
253
|
* @param {*} [options] Override http request option.
|
|
260
254
|
* @throws {RequiredError}
|
|
261
255
|
*/
|
|
262
|
-
async getInvoice(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
256
|
+
async getInvoice(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
263
257
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoice(code, expand, authorization, options);
|
|
264
258
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
265
259
|
},
|
|
266
260
|
/**
|
|
267
|
-
* Returns a list of invoices you have previously created.
|
|
261
|
+
* 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.
|
|
268
262
|
* @summary List invoices
|
|
269
263
|
* @param {string} [authorization] Bearer Token
|
|
270
264
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
271
265
|
* @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.
|
|
272
|
-
* @param {
|
|
273
|
-
* @param {any} [search]
|
|
274
|
-
* @param {
|
|
275
|
-
* @param {
|
|
276
|
-
* @param {
|
|
266
|
+
* @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>
|
|
267
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
268
|
+
* @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>
|
|
269
|
+
* @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>
|
|
270
|
+
* @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>
|
|
277
271
|
* @param {*} [options] Override http request option.
|
|
278
272
|
* @throws {RequiredError}
|
|
279
273
|
*/
|
|
280
|
-
async listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
274
|
+
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<void>> {
|
|
281
275
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
282
276
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
283
277
|
},
|
|
284
278
|
/**
|
|
285
|
-
* Returns a list of policies billing dates you have previously created.
|
|
279
|
+
* 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.
|
|
286
280
|
* @summary List policies billing dates
|
|
287
281
|
* @param {string} [authorization] Bearer Token
|
|
288
282
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
289
283
|
* @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.
|
|
290
|
-
* @param {
|
|
291
|
-
* @param {any} [search]
|
|
292
|
-
* @param {
|
|
293
|
-
* @param {
|
|
294
|
-
* @param {
|
|
284
|
+
* @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>
|
|
285
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
286
|
+
* @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>
|
|
287
|
+
* @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>
|
|
288
|
+
* @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>
|
|
295
289
|
* @param {*} [options] Override http request option.
|
|
296
290
|
* @throws {RequiredError}
|
|
297
291
|
*/
|
|
298
|
-
async listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
292
|
+
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<void>> {
|
|
299
293
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
300
294
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
301
295
|
},
|
|
@@ -310,49 +304,49 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
310
304
|
const localVarFp = InvoicesApiFp(configuration)
|
|
311
305
|
return {
|
|
312
306
|
/**
|
|
313
|
-
*
|
|
314
|
-
* @summary
|
|
307
|
+
* Gets an invoice.
|
|
308
|
+
* @summary Retrieve the invoice
|
|
315
309
|
* @param {string} code
|
|
316
310
|
* @param {string} expand
|
|
317
311
|
* @param {string} [authorization] Bearer Token
|
|
318
312
|
* @param {*} [options] Override http request option.
|
|
319
313
|
* @throws {RequiredError}
|
|
320
314
|
*/
|
|
321
|
-
getInvoice(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<
|
|
315
|
+
getInvoice(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
322
316
|
return localVarFp.getInvoice(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
323
317
|
},
|
|
324
318
|
/**
|
|
325
|
-
* Returns a list of invoices you have previously created.
|
|
319
|
+
* 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.
|
|
326
320
|
* @summary List invoices
|
|
327
321
|
* @param {string} [authorization] Bearer Token
|
|
328
322
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
329
323
|
* @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 {
|
|
334
|
-
* @param {
|
|
324
|
+
* @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>
|
|
325
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
326
|
+
* @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>
|
|
327
|
+
* @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>
|
|
328
|
+
* @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>
|
|
335
329
|
* @param {*} [options] Override http request option.
|
|
336
330
|
* @throws {RequiredError}
|
|
337
331
|
*/
|
|
338
|
-
listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
332
|
+
listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
339
333
|
return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
340
334
|
},
|
|
341
335
|
/**
|
|
342
|
-
* Returns a list of policies billing dates you have previously created.
|
|
336
|
+
* 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.
|
|
343
337
|
* @summary List policies billing dates
|
|
344
338
|
* @param {string} [authorization] Bearer Token
|
|
345
339
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
346
340
|
* @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.
|
|
347
|
-
* @param {
|
|
348
|
-
* @param {any} [search]
|
|
349
|
-
* @param {
|
|
350
|
-
* @param {
|
|
351
|
-
* @param {
|
|
341
|
+
* @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>
|
|
342
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
343
|
+
* @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>
|
|
344
|
+
* @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>
|
|
345
|
+
* @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>
|
|
352
346
|
* @param {*} [options] Override http request option.
|
|
353
347
|
* @throws {RequiredError}
|
|
354
348
|
*/
|
|
355
|
-
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
349
|
+
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
356
350
|
return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
357
351
|
},
|
|
358
352
|
};
|
|
@@ -414,39 +408,39 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
414
408
|
readonly pageToken?: any
|
|
415
409
|
|
|
416
410
|
/**
|
|
417
|
-
* Filter the response by one or multiple fields.
|
|
418
|
-
* @type {
|
|
411
|
+
* 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>
|
|
412
|
+
* @type {string}
|
|
419
413
|
* @memberof InvoicesApiListInvoices
|
|
420
414
|
*/
|
|
421
|
-
readonly filter?:
|
|
415
|
+
readonly filter?: string
|
|
422
416
|
|
|
423
417
|
/**
|
|
424
|
-
*
|
|
418
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
425
419
|
* @type {any}
|
|
426
420
|
* @memberof InvoicesApiListInvoices
|
|
427
421
|
*/
|
|
428
422
|
readonly search?: any
|
|
429
423
|
|
|
430
424
|
/**
|
|
431
|
-
*
|
|
432
|
-
* @type {
|
|
425
|
+
* 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>
|
|
426
|
+
* @type {string}
|
|
433
427
|
* @memberof InvoicesApiListInvoices
|
|
434
428
|
*/
|
|
435
|
-
readonly order?:
|
|
429
|
+
readonly order?: string
|
|
436
430
|
|
|
437
431
|
/**
|
|
438
|
-
*
|
|
439
|
-
* @type {
|
|
432
|
+
* 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>
|
|
433
|
+
* @type {string}
|
|
440
434
|
* @memberof InvoicesApiListInvoices
|
|
441
435
|
*/
|
|
442
|
-
readonly expand?:
|
|
436
|
+
readonly expand?: string
|
|
443
437
|
|
|
444
438
|
/**
|
|
445
|
-
* Filters the response by one or multiple fields.
|
|
446
|
-
* @type {
|
|
439
|
+
* 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>
|
|
440
|
+
* @type {string}
|
|
447
441
|
* @memberof InvoicesApiListInvoices
|
|
448
442
|
*/
|
|
449
|
-
readonly filters?:
|
|
443
|
+
readonly filters?: string
|
|
450
444
|
}
|
|
451
445
|
|
|
452
446
|
/**
|
|
@@ -477,39 +471,39 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
477
471
|
readonly pageToken?: any
|
|
478
472
|
|
|
479
473
|
/**
|
|
480
|
-
* Filter the response by one or multiple fields.
|
|
481
|
-
* @type {
|
|
474
|
+
* 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>
|
|
475
|
+
* @type {string}
|
|
482
476
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
483
477
|
*/
|
|
484
|
-
readonly filter?:
|
|
478
|
+
readonly filter?: string
|
|
485
479
|
|
|
486
480
|
/**
|
|
487
|
-
*
|
|
481
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
488
482
|
* @type {any}
|
|
489
483
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
490
484
|
*/
|
|
491
485
|
readonly search?: any
|
|
492
486
|
|
|
493
487
|
/**
|
|
494
|
-
*
|
|
495
|
-
* @type {
|
|
488
|
+
* 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>
|
|
489
|
+
* @type {string}
|
|
496
490
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
497
491
|
*/
|
|
498
|
-
readonly order?:
|
|
492
|
+
readonly order?: string
|
|
499
493
|
|
|
500
494
|
/**
|
|
501
|
-
*
|
|
502
|
-
* @type {
|
|
495
|
+
* 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>
|
|
496
|
+
* @type {string}
|
|
503
497
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
504
498
|
*/
|
|
505
|
-
readonly expand?:
|
|
499
|
+
readonly expand?: string
|
|
506
500
|
|
|
507
501
|
/**
|
|
508
|
-
* Filters the response by one or multiple fields.
|
|
509
|
-
* @type {
|
|
502
|
+
* 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>
|
|
503
|
+
* @type {string}
|
|
510
504
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
511
505
|
*/
|
|
512
|
-
readonly filters?:
|
|
506
|
+
readonly filters?: string
|
|
513
507
|
}
|
|
514
508
|
|
|
515
509
|
/**
|
|
@@ -520,8 +514,8 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
520
514
|
*/
|
|
521
515
|
export class InvoicesApi extends BaseAPI {
|
|
522
516
|
/**
|
|
523
|
-
*
|
|
524
|
-
* @summary
|
|
517
|
+
* Gets an invoice.
|
|
518
|
+
* @summary Retrieve the invoice
|
|
525
519
|
* @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
|
|
526
520
|
* @param {*} [options] Override http request option.
|
|
527
521
|
* @throws {RequiredError}
|
|
@@ -532,7 +526,7 @@ export class InvoicesApi extends BaseAPI {
|
|
|
532
526
|
}
|
|
533
527
|
|
|
534
528
|
/**
|
|
535
|
-
* Returns a list of invoices you have previously created.
|
|
529
|
+
* 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.
|
|
536
530
|
* @summary List invoices
|
|
537
531
|
* @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
|
|
538
532
|
* @param {*} [options] Override http request option.
|
|
@@ -544,7 +538,7 @@ export class InvoicesApi extends BaseAPI {
|
|
|
544
538
|
}
|
|
545
539
|
|
|
546
540
|
/**
|
|
547
|
-
* Returns a list of policies billing dates you have previously created.
|
|
541
|
+
* 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.
|
|
548
542
|
* @summary List policies billing dates
|
|
549
543
|
* @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
|
|
550
544
|
* @param {*} [options] Override http request option.
|
|
@@ -22,8 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateInvoiceRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreateInvoiceResponseClass } from '../models';
|
|
27
25
|
// URLSearchParams not necessarily used
|
|
28
26
|
// @ts-ignore
|
|
29
27
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -105,7 +103,7 @@ export const RecurringInvoicesApiFp = function(configuration?: Configuration) {
|
|
|
105
103
|
* @param {*} [options] Override http request option.
|
|
106
104
|
* @throws {RequiredError}
|
|
107
105
|
*/
|
|
108
|
-
async createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
106
|
+
async createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
109
107
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createRecurringInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options);
|
|
110
108
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
111
109
|
},
|
|
@@ -128,7 +126,7 @@ export const RecurringInvoicesApiFactory = function (configuration?: Configurati
|
|
|
128
126
|
* @param {*} [options] Override http request option.
|
|
129
127
|
* @throws {RequiredError}
|
|
130
128
|
*/
|
|
131
|
-
createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<
|
|
129
|
+
createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<void> {
|
|
132
130
|
return localVarFp.createRecurringInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
|
|
133
131
|
},
|
|
134
132
|
};
|
package/api.ts
CHANGED
|
@@ -26,6 +26,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { CorrectionInvoicesApi } from './api';
|
|
28
28
|
import { DefaultApi } from './api';
|
|
29
|
+
import { DraftInvoiceApi } from './api';
|
|
29
30
|
import { EstimatedInvoicesApi } from './api';
|
|
30
31
|
import { InitialInvoicesApi } from './api';
|
|
31
32
|
import { InvoicesApi } from './api';
|
|
@@ -34,6 +35,7 @@ import { RecurringInvoicesApi } from './api';
|
|
|
34
35
|
|
|
35
36
|
export * from './api/correction-invoices-api';
|
|
36
37
|
export * from './api/default-api';
|
|
38
|
+
export * from './api/draft-invoice-api';
|
|
37
39
|
export * from './api/estimated-invoices-api';
|
|
38
40
|
export * from './api/initial-invoices-api';
|
|
39
41
|
export * from './api/invoices-api';
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { CreateCorrectionInvoicesResponseClass } from '../models';
|
|
16
15
|
import { CreateInvoiceRequestDto } from '../models';
|
|
17
16
|
/**
|
|
18
17
|
* CorrectionInvoicesApi - axios parameter creator
|
|
@@ -44,7 +43,7 @@ export declare const CorrectionInvoicesApiFp: (configuration?: Configuration) =>
|
|
|
44
43
|
* @param {*} [options] Override http request option.
|
|
45
44
|
* @throws {RequiredError}
|
|
46
45
|
*/
|
|
47
|
-
createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
46
|
+
createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
48
47
|
};
|
|
49
48
|
/**
|
|
50
49
|
* CorrectionInvoicesApi - factory interface
|
|
@@ -60,7 +59,7 @@ export declare const CorrectionInvoicesApiFactory: (configuration?: Configuratio
|
|
|
60
59
|
* @param {*} [options] Override http request option.
|
|
61
60
|
* @throws {RequiredError}
|
|
62
61
|
*/
|
|
63
|
-
createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<
|
|
62
|
+
createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<void>;
|
|
64
63
|
};
|
|
65
64
|
/**
|
|
66
65
|
* Request parameters for createCorrectionInvoice operation in CorrectionInvoicesApi.
|
|
@@ -102,5 +101,5 @@ export declare class CorrectionInvoicesApi extends BaseAPI {
|
|
|
102
101
|
* @throws {RequiredError}
|
|
103
102
|
* @memberof CorrectionInvoicesApi
|
|
104
103
|
*/
|
|
105
|
-
createCorrectionInvoice(requestParameters: CorrectionInvoicesApiCreateCorrectionInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
104
|
+
createCorrectionInvoice(requestParameters: CorrectionInvoicesApiCreateCorrectionInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
106
105
|
}
|