@emilgroup/billing-sdk-node 1.17.0 → 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 +3 -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 +112 -11
- package/api/initial-invoices-api.ts +2 -4
- package/api/invoices-api.ts +110 -222
- 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 +66 -12
- package/dist/api/estimated-invoices-api.js +97 -4
- package/dist/api/initial-invoices-api.d.ts +3 -4
- package/dist/api/invoices-api.d.ts +97 -157
- package/dist/api/invoices-api.js +70 -163
- 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 -7
- package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
- package/dist/models/create-estimated-invoice-request-dto.d.ts +1 -7
- package/dist/models/create-invoice-payment-request-dto.d.ts +2 -2
- package/dist/models/create-invoice-request-dto.d.ts +5 -5
- package/dist/models/index.d.ts +2 -17
- package/dist/models/index.js +2 -17
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/policy-dto.d.ts +5 -19
- package/dist/models/policy-dto.js +0 -8
- package/dist/models/policy-object-dto.d.ts +14 -20
- 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 +9 -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 +55 -0
- package/models/create-estimated-invoice-request-dto.ts +1 -7
- package/models/create-invoice-payment-request-dto.ts +2 -2
- package/models/create-invoice-request-dto.ts +5 -5
- package/models/index.ts +2 -17
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/policy-dto.ts +5 -22
- package/models/policy-object-dto.ts +14 -20
- package/models/policy-premium-dto.ts +2 -2
- package/models/policy-premium-item-dto.ts +2 -2
- package/models/policy-version-dto.ts +9 -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-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-response-class.d.ts +0 -31
- package/dist/models/create-estimated-invoice-response-class.js +0 -15
- package/dist/models/create-invoice-payment-response-class.d.ts +0 -25
- package/dist/models/create-invoice-payment-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 -36
- package/dist/models/create-invoice-status-request-dto.js +0 -21
- 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 -170
- 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 -48
- package/dist/models/invoice-status-class.js +0 -21
- 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 -156
- package/dist/models/omit-type-class.js +0 -31
- 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-response-class.ts +0 -37
- package/models/create-invoice-payment-response-class.ts +0 -31
- package/models/create-invoice-response-class.ts +0 -31
- package/models/create-invoice-status-request-dto.ts +0 -45
- 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 -180
- 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 -57
- 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 -166
- package/models/policy-billing-date-class.ts +0 -48
- /package/dist/models/{create-correction-invoices-response-class.js → create-estimated-invoice-for-interval-request-dto.js} +0 -0
package/api/invoices-api.ts
CHANGED
|
@@ -20,16 +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 { CreateInvoicePaymentRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreateInvoicePaymentResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetInvoiceResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListInvoicesResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { ListPoliciesBillingDatesResponseClass } from '../models';
|
|
33
23
|
// URLSearchParams not necessarily used
|
|
34
24
|
// @ts-ignore
|
|
35
25
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -41,64 +31,8 @@ const FormData = require('form-data');
|
|
|
41
31
|
export const InvoicesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
32
|
return {
|
|
43
33
|
/**
|
|
44
|
-
*
|
|
45
|
-
* @summary
|
|
46
|
-
* @param {number} id
|
|
47
|
-
* @param {CreateInvoicePaymentRequestDto} createInvoicePaymentRequestDto
|
|
48
|
-
* @param {string} [authorization] Bearer Token
|
|
49
|
-
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
50
|
-
* @param {*} [options] Override http request option.
|
|
51
|
-
* @throws {RequiredError}
|
|
52
|
-
*/
|
|
53
|
-
createInvoicePayment: async (id: number, createInvoicePaymentRequestDto: CreateInvoicePaymentRequestDto, authorization?: string, idempotencyKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
|
-
// verify required parameter 'id' is not null or undefined
|
|
55
|
-
assertParamExists('createInvoicePayment', 'id', id)
|
|
56
|
-
// verify required parameter 'createInvoicePaymentRequestDto' is not null or undefined
|
|
57
|
-
assertParamExists('createInvoicePayment', 'createInvoicePaymentRequestDto', createInvoicePaymentRequestDto)
|
|
58
|
-
const localVarPath = `/billingservice/v1/invoices/{id}/payments`
|
|
59
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
60
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
61
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
62
|
-
let baseOptions;
|
|
63
|
-
let baseAccessToken;
|
|
64
|
-
if (configuration) {
|
|
65
|
-
baseOptions = configuration.baseOptions;
|
|
66
|
-
baseAccessToken = configuration.accessToken;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
70
|
-
const localVarHeaderParameter = {} as any;
|
|
71
|
-
const localVarQueryParameter = {} as any;
|
|
72
|
-
|
|
73
|
-
// authentication bearer required
|
|
74
|
-
// http bearer authentication required
|
|
75
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
76
|
-
|
|
77
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
78
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
82
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
88
|
-
|
|
89
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
90
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
91
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
92
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createInvoicePaymentRequestDto, localVarRequestOptions, configuration)
|
|
93
|
-
|
|
94
|
-
return {
|
|
95
|
-
url: toPathString(localVarUrlObj),
|
|
96
|
-
options: localVarRequestOptions,
|
|
97
|
-
};
|
|
98
|
-
},
|
|
99
|
-
/**
|
|
100
|
-
* 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.
|
|
101
|
-
* @summary List invoices
|
|
34
|
+
* Gets an invoice.
|
|
35
|
+
* @summary Retrieve the invoice
|
|
102
36
|
* @param {string} code
|
|
103
37
|
* @param {string} expand
|
|
104
38
|
* @param {string} [authorization] Bearer Token
|
|
@@ -149,19 +83,20 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
149
83
|
};
|
|
150
84
|
},
|
|
151
85
|
/**
|
|
152
|
-
* 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.
|
|
153
87
|
* @summary List invoices
|
|
154
88
|
* @param {string} [authorization] Bearer Token
|
|
155
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
89
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
156
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.
|
|
157
|
-
* @param {
|
|
158
|
-
* @param {any} [search]
|
|
159
|
-
* @param {
|
|
160
|
-
* @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>
|
|
161
96
|
* @param {*} [options] Override http request option.
|
|
162
97
|
* @throws {RequiredError}
|
|
163
98
|
*/
|
|
164
|
-
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> => {
|
|
165
100
|
const localVarPath = `/billingservice/v1/invoices`;
|
|
166
101
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
167
102
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -204,6 +139,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
204
139
|
localVarQueryParameter['expand'] = expand;
|
|
205
140
|
}
|
|
206
141
|
|
|
142
|
+
if (filters !== undefined) {
|
|
143
|
+
localVarQueryParameter['filters'] = filters;
|
|
144
|
+
}
|
|
145
|
+
|
|
207
146
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
208
147
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
209
148
|
}
|
|
@@ -220,19 +159,20 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
220
159
|
};
|
|
221
160
|
},
|
|
222
161
|
/**
|
|
223
|
-
* 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.
|
|
224
163
|
* @summary List policies billing dates
|
|
225
164
|
* @param {string} [authorization] Bearer Token
|
|
226
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
165
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
227
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.
|
|
228
|
-
* @param {
|
|
229
|
-
* @param {any} [search]
|
|
230
|
-
* @param {
|
|
231
|
-
* @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>
|
|
232
172
|
* @param {*} [options] Override http request option.
|
|
233
173
|
* @throws {RequiredError}
|
|
234
174
|
*/
|
|
235
|
-
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> => {
|
|
236
176
|
const localVarPath = `/billingservice/v1/invoices/policies-billing-dates`;
|
|
237
177
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
238
178
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -275,6 +215,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
275
215
|
localVarQueryParameter['expand'] = expand;
|
|
276
216
|
}
|
|
277
217
|
|
|
218
|
+
if (filters !== undefined) {
|
|
219
|
+
localVarQueryParameter['filters'] = filters;
|
|
220
|
+
}
|
|
221
|
+
|
|
278
222
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
279
223
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
280
224
|
}
|
|
@@ -301,64 +245,52 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
301
245
|
const localVarAxiosParamCreator = InvoicesApiAxiosParamCreator(configuration)
|
|
302
246
|
return {
|
|
303
247
|
/**
|
|
304
|
-
*
|
|
305
|
-
* @summary
|
|
306
|
-
* @param {number} id
|
|
307
|
-
* @param {CreateInvoicePaymentRequestDto} createInvoicePaymentRequestDto
|
|
308
|
-
* @param {string} [authorization] Bearer Token
|
|
309
|
-
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
310
|
-
* @param {*} [options] Override http request option.
|
|
311
|
-
* @throws {RequiredError}
|
|
312
|
-
*/
|
|
313
|
-
async createInvoicePayment(id: number, createInvoicePaymentRequestDto: CreateInvoicePaymentRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoicePaymentResponseClass>> {
|
|
314
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createInvoicePayment(id, createInvoicePaymentRequestDto, authorization, idempotencyKey, options);
|
|
315
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
316
|
-
},
|
|
317
|
-
/**
|
|
318
|
-
* 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.
|
|
319
|
-
* @summary List invoices
|
|
248
|
+
* Gets an invoice.
|
|
249
|
+
* @summary Retrieve the invoice
|
|
320
250
|
* @param {string} code
|
|
321
251
|
* @param {string} expand
|
|
322
252
|
* @param {string} [authorization] Bearer Token
|
|
323
253
|
* @param {*} [options] Override http request option.
|
|
324
254
|
* @throws {RequiredError}
|
|
325
255
|
*/
|
|
326
|
-
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>> {
|
|
327
257
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoice(code, expand, authorization, options);
|
|
328
258
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
329
259
|
},
|
|
330
260
|
/**
|
|
331
|
-
* 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.
|
|
332
262
|
* @summary List invoices
|
|
333
263
|
* @param {string} [authorization] Bearer Token
|
|
334
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
264
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
335
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.
|
|
336
|
-
* @param {
|
|
337
|
-
* @param {any} [search]
|
|
338
|
-
* @param {
|
|
339
|
-
* @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>
|
|
340
271
|
* @param {*} [options] Override http request option.
|
|
341
272
|
* @throws {RequiredError}
|
|
342
273
|
*/
|
|
343
|
-
async listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
344
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
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>> {
|
|
275
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
345
276
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
346
277
|
},
|
|
347
278
|
/**
|
|
348
|
-
* 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.
|
|
349
280
|
* @summary List policies billing dates
|
|
350
281
|
* @param {string} [authorization] Bearer Token
|
|
351
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
282
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
352
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.
|
|
353
|
-
* @param {
|
|
354
|
-
* @param {any} [search]
|
|
355
|
-
* @param {
|
|
356
|
-
* @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>
|
|
357
289
|
* @param {*} [options] Override http request option.
|
|
358
290
|
* @throws {RequiredError}
|
|
359
291
|
*/
|
|
360
|
-
async listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
361
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
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>> {
|
|
293
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
362
294
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
363
295
|
},
|
|
364
296
|
}
|
|
@@ -372,100 +304,54 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
372
304
|
const localVarFp = InvoicesApiFp(configuration)
|
|
373
305
|
return {
|
|
374
306
|
/**
|
|
375
|
-
*
|
|
376
|
-
* @summary
|
|
377
|
-
* @param {number} id
|
|
378
|
-
* @param {CreateInvoicePaymentRequestDto} createInvoicePaymentRequestDto
|
|
379
|
-
* @param {string} [authorization] Bearer Token
|
|
380
|
-
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
381
|
-
* @param {*} [options] Override http request option.
|
|
382
|
-
* @throws {RequiredError}
|
|
383
|
-
*/
|
|
384
|
-
createInvoicePayment(id: number, createInvoicePaymentRequestDto: CreateInvoicePaymentRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoicePaymentResponseClass> {
|
|
385
|
-
return localVarFp.createInvoicePayment(id, createInvoicePaymentRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
|
|
386
|
-
},
|
|
387
|
-
/**
|
|
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
|
|
307
|
+
* Gets an invoice.
|
|
308
|
+
* @summary Retrieve the invoice
|
|
390
309
|
* @param {string} code
|
|
391
310
|
* @param {string} expand
|
|
392
311
|
* @param {string} [authorization] Bearer Token
|
|
393
312
|
* @param {*} [options] Override http request option.
|
|
394
313
|
* @throws {RequiredError}
|
|
395
314
|
*/
|
|
396
|
-
getInvoice(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<
|
|
315
|
+
getInvoice(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
397
316
|
return localVarFp.getInvoice(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
398
317
|
},
|
|
399
318
|
/**
|
|
400
|
-
* 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.
|
|
401
320
|
* @summary List invoices
|
|
402
321
|
* @param {string} [authorization] Bearer Token
|
|
403
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
322
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
404
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.
|
|
405
|
-
* @param {
|
|
406
|
-
* @param {any} [search]
|
|
407
|
-
* @param {
|
|
408
|
-
* @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>
|
|
409
329
|
* @param {*} [options] Override http request option.
|
|
410
330
|
* @throws {RequiredError}
|
|
411
331
|
*/
|
|
412
|
-
listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
413
|
-
return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
332
|
+
listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
333
|
+
return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
414
334
|
},
|
|
415
335
|
/**
|
|
416
|
-
* 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.
|
|
417
337
|
* @summary List policies billing dates
|
|
418
338
|
* @param {string} [authorization] Bearer Token
|
|
419
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
339
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
420
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.
|
|
421
|
-
* @param {
|
|
422
|
-
* @param {any} [search]
|
|
423
|
-
* @param {
|
|
424
|
-
* @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>
|
|
425
346
|
* @param {*} [options] Override http request option.
|
|
426
347
|
* @throws {RequiredError}
|
|
427
348
|
*/
|
|
428
|
-
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
429
|
-
return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
349
|
+
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
350
|
+
return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
430
351
|
},
|
|
431
352
|
};
|
|
432
353
|
};
|
|
433
354
|
|
|
434
|
-
/**
|
|
435
|
-
* Request parameters for createInvoicePayment operation in InvoicesApi.
|
|
436
|
-
* @export
|
|
437
|
-
* @interface InvoicesApiCreateInvoicePaymentRequest
|
|
438
|
-
*/
|
|
439
|
-
export interface InvoicesApiCreateInvoicePaymentRequest {
|
|
440
|
-
/**
|
|
441
|
-
*
|
|
442
|
-
* @type {number}
|
|
443
|
-
* @memberof InvoicesApiCreateInvoicePayment
|
|
444
|
-
*/
|
|
445
|
-
readonly id: number
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
*
|
|
449
|
-
* @type {CreateInvoicePaymentRequestDto}
|
|
450
|
-
* @memberof InvoicesApiCreateInvoicePayment
|
|
451
|
-
*/
|
|
452
|
-
readonly createInvoicePaymentRequestDto: CreateInvoicePaymentRequestDto
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* Bearer Token
|
|
456
|
-
* @type {string}
|
|
457
|
-
* @memberof InvoicesApiCreateInvoicePayment
|
|
458
|
-
*/
|
|
459
|
-
readonly authorization?: string
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
463
|
-
* @type {string}
|
|
464
|
-
* @memberof InvoicesApiCreateInvoicePayment
|
|
465
|
-
*/
|
|
466
|
-
readonly idempotencyKey?: string
|
|
467
|
-
}
|
|
468
|
-
|
|
469
355
|
/**
|
|
470
356
|
* Request parameters for getInvoice operation in InvoicesApi.
|
|
471
357
|
* @export
|
|
@@ -508,7 +394,7 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
508
394
|
readonly authorization?: string
|
|
509
395
|
|
|
510
396
|
/**
|
|
511
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
397
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
512
398
|
* @type {any}
|
|
513
399
|
* @memberof InvoicesApiListInvoices
|
|
514
400
|
*/
|
|
@@ -522,32 +408,39 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
522
408
|
readonly pageToken?: any
|
|
523
409
|
|
|
524
410
|
/**
|
|
525
|
-
* Filter the response by one or multiple fields.
|
|
526
|
-
* @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}
|
|
527
413
|
* @memberof InvoicesApiListInvoices
|
|
528
414
|
*/
|
|
529
|
-
readonly filter?:
|
|
415
|
+
readonly filter?: string
|
|
530
416
|
|
|
531
417
|
/**
|
|
532
|
-
*
|
|
418
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
533
419
|
* @type {any}
|
|
534
420
|
* @memberof InvoicesApiListInvoices
|
|
535
421
|
*/
|
|
536
422
|
readonly search?: any
|
|
537
423
|
|
|
538
424
|
/**
|
|
539
|
-
*
|
|
540
|
-
* @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}
|
|
541
427
|
* @memberof InvoicesApiListInvoices
|
|
542
428
|
*/
|
|
543
|
-
readonly order?:
|
|
429
|
+
readonly order?: string
|
|
544
430
|
|
|
545
431
|
/**
|
|
546
|
-
*
|
|
547
|
-
* @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}
|
|
548
434
|
* @memberof InvoicesApiListInvoices
|
|
549
435
|
*/
|
|
550
|
-
readonly expand?:
|
|
436
|
+
readonly expand?: string
|
|
437
|
+
|
|
438
|
+
/**
|
|
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}
|
|
441
|
+
* @memberof InvoicesApiListInvoices
|
|
442
|
+
*/
|
|
443
|
+
readonly filters?: string
|
|
551
444
|
}
|
|
552
445
|
|
|
553
446
|
/**
|
|
@@ -564,7 +457,7 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
564
457
|
readonly authorization?: string
|
|
565
458
|
|
|
566
459
|
/**
|
|
567
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
460
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
568
461
|
* @type {any}
|
|
569
462
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
570
463
|
*/
|
|
@@ -578,32 +471,39 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
578
471
|
readonly pageToken?: any
|
|
579
472
|
|
|
580
473
|
/**
|
|
581
|
-
* Filter the response by one or multiple fields.
|
|
582
|
-
* @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}
|
|
583
476
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
584
477
|
*/
|
|
585
|
-
readonly filter?:
|
|
478
|
+
readonly filter?: string
|
|
586
479
|
|
|
587
480
|
/**
|
|
588
|
-
*
|
|
481
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
589
482
|
* @type {any}
|
|
590
483
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
591
484
|
*/
|
|
592
485
|
readonly search?: any
|
|
593
486
|
|
|
594
487
|
/**
|
|
595
|
-
*
|
|
596
|
-
* @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}
|
|
597
490
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
598
491
|
*/
|
|
599
|
-
readonly order?:
|
|
492
|
+
readonly order?: string
|
|
600
493
|
|
|
601
494
|
/**
|
|
602
|
-
*
|
|
603
|
-
* @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}
|
|
604
497
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
605
498
|
*/
|
|
606
|
-
readonly expand?:
|
|
499
|
+
readonly expand?: string
|
|
500
|
+
|
|
501
|
+
/**
|
|
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}
|
|
504
|
+
* @memberof InvoicesApiListPoliciesBillingDates
|
|
505
|
+
*/
|
|
506
|
+
readonly filters?: string
|
|
607
507
|
}
|
|
608
508
|
|
|
609
509
|
/**
|
|
@@ -614,20 +514,8 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
614
514
|
*/
|
|
615
515
|
export class InvoicesApi extends BaseAPI {
|
|
616
516
|
/**
|
|
617
|
-
*
|
|
618
|
-
* @summary
|
|
619
|
-
* @param {InvoicesApiCreateInvoicePaymentRequest} requestParameters Request parameters.
|
|
620
|
-
* @param {*} [options] Override http request option.
|
|
621
|
-
* @throws {RequiredError}
|
|
622
|
-
* @memberof InvoicesApi
|
|
623
|
-
*/
|
|
624
|
-
public createInvoicePayment(requestParameters: InvoicesApiCreateInvoicePaymentRequest, options?: AxiosRequestConfig) {
|
|
625
|
-
return InvoicesApiFp(this.configuration).createInvoicePayment(requestParameters.id, requestParameters.createInvoicePaymentRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* 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.
|
|
630
|
-
* @summary List invoices
|
|
517
|
+
* Gets an invoice.
|
|
518
|
+
* @summary Retrieve the invoice
|
|
631
519
|
* @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
|
|
632
520
|
* @param {*} [options] Override http request option.
|
|
633
521
|
* @throws {RequiredError}
|
|
@@ -638,7 +526,7 @@ export class InvoicesApi extends BaseAPI {
|
|
|
638
526
|
}
|
|
639
527
|
|
|
640
528
|
/**
|
|
641
|
-
* 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.
|
|
642
530
|
* @summary List invoices
|
|
643
531
|
* @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
|
|
644
532
|
* @param {*} [options] Override http request option.
|
|
@@ -646,11 +534,11 @@ export class InvoicesApi extends BaseAPI {
|
|
|
646
534
|
* @memberof InvoicesApi
|
|
647
535
|
*/
|
|
648
536
|
public listInvoices(requestParameters: InvoicesApiListInvoicesRequest = {}, options?: AxiosRequestConfig) {
|
|
649
|
-
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));
|
|
537
|
+
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));
|
|
650
538
|
}
|
|
651
539
|
|
|
652
540
|
/**
|
|
653
|
-
* 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.
|
|
654
542
|
* @summary List policies billing dates
|
|
655
543
|
* @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
|
|
656
544
|
* @param {*} [options] Override http request option.
|
|
@@ -658,6 +546,6 @@ export class InvoicesApi extends BaseAPI {
|
|
|
658
546
|
* @memberof InvoicesApi
|
|
659
547
|
*/
|
|
660
548
|
public listPoliciesBillingDates(requestParameters: InvoicesApiListPoliciesBillingDatesRequest = {}, options?: AxiosRequestConfig) {
|
|
661
|
-
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));
|
|
549
|
+
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));
|
|
662
550
|
}
|
|
663
551
|
}
|
|
@@ -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';
|