@emilgroup/billing-sdk 1.26.1-beta.1 → 1.26.1-beta.11
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 -2
- package/README.md +2 -2
- package/api/invoices-api.ts +14 -12
- package/api/policy-billing-api.ts +467 -0
- package/api.ts +2 -0
- package/base.ts +20 -7
- package/dist/api/invoices-api.d.ts +15 -12
- package/dist/api/invoices-api.js +10 -6
- package/dist/api/policy-billing-api.d.ts +270 -0
- package/dist/api/policy-billing-api.js +452 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +0 -1
- package/dist/base.js +18 -6
- package/dist/models/create-draft-invoice-request-dto.d.ts +2 -2
- package/dist/models/create-invoice-request-dto.d.ts +0 -12
- package/dist/models/create-item-request-dto.d.ts +0 -65
- package/dist/models/create-item-request-dto.js +0 -21
- package/dist/models/create-policy-billing-request-dto.d.ts +50 -0
- package/dist/models/{list-policies-billing-dates-response-class.js → create-policy-billing-request-dto.js} +8 -0
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/dist/models/update-policy-billing-request-dto.d.ts +32 -0
- package/dist/models/{policy-billing-date-class.js → update-policy-billing-request-dto.js} +8 -0
- package/models/create-draft-invoice-request-dto.ts +2 -2
- package/models/create-invoice-request-dto.ts +0 -12
- package/models/create-item-request-dto.ts +0 -70
- package/models/create-policy-billing-request-dto.ts +59 -0
- package/models/index.ts +2 -2
- package/models/update-policy-billing-request-dto.ts +41 -0
- package/package.json +1 -1
- package/dist/models/list-policies-billing-dates-response-class.d.ts +0 -31
- package/dist/models/policy-billing-date-class.d.ts +0 -54
- package/models/list-policies-billing-dates-response-class.ts +0 -37
- package/models/policy-billing-date-class.ts +0 -60
package/.openapi-generator/FILES
CHANGED
|
@@ -9,6 +9,7 @@ api/draft-invoice-api.ts
|
|
|
9
9
|
api/estimated-invoices-api.ts
|
|
10
10
|
api/initial-invoices-api.ts
|
|
11
11
|
api/invoices-api.ts
|
|
12
|
+
api/policy-billing-api.ts
|
|
12
13
|
api/recurring-invoices-api.ts
|
|
13
14
|
base.ts
|
|
14
15
|
common.ts
|
|
@@ -29,6 +30,7 @@ models/create-invoice-request-dto.ts
|
|
|
29
30
|
models/create-invoice-response-class.ts
|
|
30
31
|
models/create-invoice-status-request-dto.ts
|
|
31
32
|
models/create-item-request-dto.ts
|
|
33
|
+
models/create-policy-billing-request-dto.ts
|
|
32
34
|
models/create-termination-invoice-request-dto.ts
|
|
33
35
|
models/get-invoice-response-class.ts
|
|
34
36
|
models/index.ts
|
|
@@ -40,10 +42,8 @@ models/invoice-payment-class.ts
|
|
|
40
42
|
models/invoice-payments-class.ts
|
|
41
43
|
models/invoice-status-class.ts
|
|
42
44
|
models/list-invoices-response-class.ts
|
|
43
|
-
models/list-policies-billing-dates-response-class.ts
|
|
44
45
|
models/list-request-dto.ts
|
|
45
46
|
models/omit-type-class.ts
|
|
46
|
-
models/policy-billing-date-class.ts
|
|
47
47
|
models/policy-dto.ts
|
|
48
48
|
models/policy-object-dto.ts
|
|
49
49
|
models/policy-premium-dto.ts
|
|
@@ -52,5 +52,6 @@ models/policy-version-dto.ts
|
|
|
52
52
|
models/premium-formula-dto.ts
|
|
53
53
|
models/revert-invoice-request-dto.ts
|
|
54
54
|
models/timeslice-dto.ts
|
|
55
|
+
models/update-policy-billing-request-dto.ts
|
|
55
56
|
package.json
|
|
56
57
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/billing-sdk@1.26.1-beta.
|
|
20
|
+
npm install @emilgroup/billing-sdk@1.26.1-beta.11 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/billing-sdk@1.26.1-beta.
|
|
24
|
+
yarn add @emilgroup/billing-sdk@1.26.1-beta.11
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `InvoicesApi`.
|
package/api/invoices-api.ts
CHANGED
|
@@ -28,8 +28,6 @@ import { CreateInvoiceResponseClass } from '../models';
|
|
|
28
28
|
import { GetInvoiceResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListInvoicesResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { ListPoliciesBillingDatesResponseClass } from '../models';
|
|
33
31
|
/**
|
|
34
32
|
* InvoicesApi - axios parameter creator
|
|
35
33
|
* @export
|
|
@@ -222,12 +220,13 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
222
220
|
* @param {string} [authorization] Bearer Token
|
|
223
221
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
224
222
|
* @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.
|
|
225
|
-
* @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,
|
|
223
|
+
* @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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
226
224
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
227
225
|
* @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>
|
|
228
226
|
* @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>
|
|
229
|
-
* @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,
|
|
227
|
+
* @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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
230
228
|
* @param {*} [options] Override http request option.
|
|
229
|
+
* @deprecated
|
|
231
230
|
* @throws {RequiredError}
|
|
232
231
|
*/
|
|
233
232
|
listPoliciesBillingDates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -352,15 +351,16 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
352
351
|
* @param {string} [authorization] Bearer Token
|
|
353
352
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
354
353
|
* @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.
|
|
355
|
-
* @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,
|
|
354
|
+
* @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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
356
355
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
357
356
|
* @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>
|
|
358
357
|
* @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>
|
|
359
|
-
* @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,
|
|
358
|
+
* @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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
360
359
|
* @param {*} [options] Override http request option.
|
|
360
|
+
* @deprecated
|
|
361
361
|
* @throws {RequiredError}
|
|
362
362
|
*/
|
|
363
|
-
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<
|
|
363
|
+
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<object>> {
|
|
364
364
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
365
365
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
366
366
|
},
|
|
@@ -421,15 +421,16 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
421
421
|
* @param {string} [authorization] Bearer Token
|
|
422
422
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
423
423
|
* @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.
|
|
424
|
-
* @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,
|
|
424
|
+
* @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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
425
425
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
426
426
|
* @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>
|
|
427
427
|
* @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>
|
|
428
|
-
* @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,
|
|
428
|
+
* @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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
429
429
|
* @param {*} [options] Override http request option.
|
|
430
|
+
* @deprecated
|
|
430
431
|
* @throws {RequiredError}
|
|
431
432
|
*/
|
|
432
|
-
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
433
|
+
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<object> {
|
|
433
434
|
return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
434
435
|
},
|
|
435
436
|
};
|
|
@@ -582,7 +583,7 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
582
583
|
readonly pageToken?: any
|
|
583
584
|
|
|
584
585
|
/**
|
|
585
|
-
* 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,
|
|
586
|
+
* 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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
586
587
|
* @type {string}
|
|
587
588
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
588
589
|
*/
|
|
@@ -610,7 +611,7 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
610
611
|
readonly expand?: string
|
|
611
612
|
|
|
612
613
|
/**
|
|
613
|
-
* 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,
|
|
614
|
+
* 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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
614
615
|
* @type {string}
|
|
615
616
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
616
617
|
*/
|
|
@@ -665,6 +666,7 @@ export class InvoicesApi extends BaseAPI {
|
|
|
665
666
|
* @summary List policies billing dates
|
|
666
667
|
* @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
|
|
667
668
|
* @param {*} [options] Override http request option.
|
|
669
|
+
* @deprecated
|
|
668
670
|
* @throws {RequiredError}
|
|
669
671
|
* @memberof InvoicesApi
|
|
670
672
|
*/
|
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL BillingService
|
|
5
|
+
* The EMIL BillingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreatePolicyBillingRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { UpdatePolicyBillingRequestDto } from '../models';
|
|
27
|
+
/**
|
|
28
|
+
* PolicyBillingApi - axios parameter creator
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const PolicyBillingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* Create a new policy billing
|
|
35
|
+
* @summary Create the Policy Billing
|
|
36
|
+
* @param {CreatePolicyBillingRequestDto} createPolicyBillingRequestDto
|
|
37
|
+
* @param {string} [authorization] Bearer Token
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
createPolicyBilling: async (createPolicyBillingRequestDto: CreatePolicyBillingRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'createPolicyBillingRequestDto' is not null or undefined
|
|
43
|
+
assertParamExists('createPolicyBilling', 'createPolicyBillingRequestDto', createPolicyBillingRequestDto)
|
|
44
|
+
const localVarPath = `/billingservice/v1/policies-billings`;
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
let baseAccessToken;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
baseAccessToken = configuration.accessToken;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
55
|
+
const localVarHeaderParameter = {} as any;
|
|
56
|
+
const localVarQueryParameter = {} as any;
|
|
57
|
+
|
|
58
|
+
// authentication bearer required
|
|
59
|
+
// http bearer authentication required
|
|
60
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
61
|
+
|
|
62
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
63
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
69
|
+
|
|
70
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPolicyBillingRequestDto, localVarRequestOptions, configuration)
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
url: toPathString(localVarUrlObj),
|
|
77
|
+
options: localVarRequestOptions,
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* Returns a list of policies billings you have previously created. The policies billings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
82
|
+
* @summary List policies billings
|
|
83
|
+
* @param {string} [authorization] Bearer Token
|
|
84
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
85
|
+
* @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.
|
|
86
|
+
* @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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
87
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
88
|
+
* @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>
|
|
89
|
+
* @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>
|
|
90
|
+
* @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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
listPoliciesBillings: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
|
+
const localVarPath = `/billingservice/v1/policies-billings`;
|
|
96
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
98
|
+
let baseOptions;
|
|
99
|
+
let baseAccessToken;
|
|
100
|
+
if (configuration) {
|
|
101
|
+
baseOptions = configuration.baseOptions;
|
|
102
|
+
baseAccessToken = configuration.accessToken;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
106
|
+
const localVarHeaderParameter = {} as any;
|
|
107
|
+
const localVarQueryParameter = {} as any;
|
|
108
|
+
|
|
109
|
+
// authentication bearer required
|
|
110
|
+
// http bearer authentication required
|
|
111
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
112
|
+
|
|
113
|
+
if (pageSize !== undefined) {
|
|
114
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (pageToken !== undefined) {
|
|
118
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (filter !== undefined) {
|
|
122
|
+
localVarQueryParameter['filter'] = filter;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (search !== undefined) {
|
|
126
|
+
localVarQueryParameter['search'] = search;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (order !== undefined) {
|
|
130
|
+
localVarQueryParameter['order'] = order;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (expand !== undefined) {
|
|
134
|
+
localVarQueryParameter['expand'] = expand;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (filters !== undefined) {
|
|
138
|
+
localVarQueryParameter['filters'] = filters;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
142
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
148
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
149
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
150
|
+
|
|
151
|
+
return {
|
|
152
|
+
url: toPathString(localVarUrlObj),
|
|
153
|
+
options: localVarRequestOptions,
|
|
154
|
+
};
|
|
155
|
+
},
|
|
156
|
+
/**
|
|
157
|
+
* Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
158
|
+
* @summary Update the request message
|
|
159
|
+
* @param {string} code Unique identifier for the object.
|
|
160
|
+
* @param {UpdatePolicyBillingRequestDto} updatePolicyBillingRequestDto
|
|
161
|
+
* @param {string} [authorization] Bearer Token
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
*/
|
|
165
|
+
updatePolicyBilling: async (code: string, updatePolicyBillingRequestDto: UpdatePolicyBillingRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
166
|
+
// verify required parameter 'code' is not null or undefined
|
|
167
|
+
assertParamExists('updatePolicyBilling', 'code', code)
|
|
168
|
+
// verify required parameter 'updatePolicyBillingRequestDto' is not null or undefined
|
|
169
|
+
assertParamExists('updatePolicyBilling', 'updatePolicyBillingRequestDto', updatePolicyBillingRequestDto)
|
|
170
|
+
const localVarPath = `/billingservice/v1/policies-billings/{code}`
|
|
171
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
172
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
173
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
174
|
+
let baseOptions;
|
|
175
|
+
let baseAccessToken;
|
|
176
|
+
if (configuration) {
|
|
177
|
+
baseOptions = configuration.baseOptions;
|
|
178
|
+
baseAccessToken = configuration.accessToken;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
182
|
+
const localVarHeaderParameter = {} as any;
|
|
183
|
+
const localVarQueryParameter = {} as any;
|
|
184
|
+
|
|
185
|
+
// authentication bearer required
|
|
186
|
+
// http bearer authentication required
|
|
187
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
188
|
+
|
|
189
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
190
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
196
|
+
|
|
197
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
200
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePolicyBillingRequestDto, localVarRequestOptions, configuration)
|
|
201
|
+
|
|
202
|
+
return {
|
|
203
|
+
url: toPathString(localVarUrlObj),
|
|
204
|
+
options: localVarRequestOptions,
|
|
205
|
+
};
|
|
206
|
+
},
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* PolicyBillingApi - functional programming interface
|
|
212
|
+
* @export
|
|
213
|
+
*/
|
|
214
|
+
export const PolicyBillingApiFp = function(configuration?: Configuration) {
|
|
215
|
+
const localVarAxiosParamCreator = PolicyBillingApiAxiosParamCreator(configuration)
|
|
216
|
+
return {
|
|
217
|
+
/**
|
|
218
|
+
* Create a new policy billing
|
|
219
|
+
* @summary Create the Policy Billing
|
|
220
|
+
* @param {CreatePolicyBillingRequestDto} createPolicyBillingRequestDto
|
|
221
|
+
* @param {string} [authorization] Bearer Token
|
|
222
|
+
* @param {*} [options] Override http request option.
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
*/
|
|
225
|
+
async createPolicyBilling(createPolicyBillingRequestDto: CreatePolicyBillingRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
226
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPolicyBilling(createPolicyBillingRequestDto, authorization, options);
|
|
227
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
* Returns a list of policies billings you have previously created. The policies billings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
231
|
+
* @summary List policies billings
|
|
232
|
+
* @param {string} [authorization] Bearer Token
|
|
233
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
234
|
+
* @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.
|
|
235
|
+
* @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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
236
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
237
|
+
* @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>
|
|
238
|
+
* @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>
|
|
239
|
+
* @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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
async listPoliciesBillings(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>> {
|
|
244
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPoliciesBillings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
245
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
246
|
+
},
|
|
247
|
+
/**
|
|
248
|
+
* Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
249
|
+
* @summary Update the request message
|
|
250
|
+
* @param {string} code Unique identifier for the object.
|
|
251
|
+
* @param {UpdatePolicyBillingRequestDto} updatePolicyBillingRequestDto
|
|
252
|
+
* @param {string} [authorization] Bearer Token
|
|
253
|
+
* @param {*} [options] Override http request option.
|
|
254
|
+
* @throws {RequiredError}
|
|
255
|
+
*/
|
|
256
|
+
async updatePolicyBilling(code: string, updatePolicyBillingRequestDto: UpdatePolicyBillingRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
257
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePolicyBilling(code, updatePolicyBillingRequestDto, authorization, options);
|
|
258
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
259
|
+
},
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* PolicyBillingApi - factory interface
|
|
265
|
+
* @export
|
|
266
|
+
*/
|
|
267
|
+
export const PolicyBillingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
268
|
+
const localVarFp = PolicyBillingApiFp(configuration)
|
|
269
|
+
return {
|
|
270
|
+
/**
|
|
271
|
+
* Create a new policy billing
|
|
272
|
+
* @summary Create the Policy Billing
|
|
273
|
+
* @param {CreatePolicyBillingRequestDto} createPolicyBillingRequestDto
|
|
274
|
+
* @param {string} [authorization] Bearer Token
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
createPolicyBilling(createPolicyBillingRequestDto: CreatePolicyBillingRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
|
|
279
|
+
return localVarFp.createPolicyBilling(createPolicyBillingRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
280
|
+
},
|
|
281
|
+
/**
|
|
282
|
+
* Returns a list of policies billings you have previously created. The policies billings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
283
|
+
* @summary List policies billings
|
|
284
|
+
* @param {string} [authorization] Bearer Token
|
|
285
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
286
|
+
* @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.
|
|
287
|
+
* @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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
288
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
289
|
+
* @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>
|
|
290
|
+
* @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>
|
|
291
|
+
* @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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
listPoliciesBillings(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
296
|
+
return localVarFp.listPoliciesBillings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
* Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
300
|
+
* @summary Update the request message
|
|
301
|
+
* @param {string} code Unique identifier for the object.
|
|
302
|
+
* @param {UpdatePolicyBillingRequestDto} updatePolicyBillingRequestDto
|
|
303
|
+
* @param {string} [authorization] Bearer Token
|
|
304
|
+
* @param {*} [options] Override http request option.
|
|
305
|
+
* @throws {RequiredError}
|
|
306
|
+
*/
|
|
307
|
+
updatePolicyBilling(code: string, updatePolicyBillingRequestDto: UpdatePolicyBillingRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
|
|
308
|
+
return localVarFp.updatePolicyBilling(code, updatePolicyBillingRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
309
|
+
},
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Request parameters for createPolicyBilling operation in PolicyBillingApi.
|
|
315
|
+
* @export
|
|
316
|
+
* @interface PolicyBillingApiCreatePolicyBillingRequest
|
|
317
|
+
*/
|
|
318
|
+
export interface PolicyBillingApiCreatePolicyBillingRequest {
|
|
319
|
+
/**
|
|
320
|
+
*
|
|
321
|
+
* @type {CreatePolicyBillingRequestDto}
|
|
322
|
+
* @memberof PolicyBillingApiCreatePolicyBilling
|
|
323
|
+
*/
|
|
324
|
+
readonly createPolicyBillingRequestDto: CreatePolicyBillingRequestDto
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Bearer Token
|
|
328
|
+
* @type {string}
|
|
329
|
+
* @memberof PolicyBillingApiCreatePolicyBilling
|
|
330
|
+
*/
|
|
331
|
+
readonly authorization?: string
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Request parameters for listPoliciesBillings operation in PolicyBillingApi.
|
|
336
|
+
* @export
|
|
337
|
+
* @interface PolicyBillingApiListPoliciesBillingsRequest
|
|
338
|
+
*/
|
|
339
|
+
export interface PolicyBillingApiListPoliciesBillingsRequest {
|
|
340
|
+
/**
|
|
341
|
+
* Bearer Token
|
|
342
|
+
* @type {string}
|
|
343
|
+
* @memberof PolicyBillingApiListPoliciesBillings
|
|
344
|
+
*/
|
|
345
|
+
readonly authorization?: string
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
349
|
+
* @type {any}
|
|
350
|
+
* @memberof PolicyBillingApiListPoliciesBillings
|
|
351
|
+
*/
|
|
352
|
+
readonly pageSize?: any
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* 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.
|
|
356
|
+
* @type {any}
|
|
357
|
+
* @memberof PolicyBillingApiListPoliciesBillings
|
|
358
|
+
*/
|
|
359
|
+
readonly pageToken?: any
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* 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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
363
|
+
* @type {string}
|
|
364
|
+
* @memberof PolicyBillingApiListPoliciesBillings
|
|
365
|
+
*/
|
|
366
|
+
readonly filter?: string
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
370
|
+
* @type {any}
|
|
371
|
+
* @memberof PolicyBillingApiListPoliciesBillings
|
|
372
|
+
*/
|
|
373
|
+
readonly search?: any
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* 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>
|
|
377
|
+
* @type {string}
|
|
378
|
+
* @memberof PolicyBillingApiListPoliciesBillings
|
|
379
|
+
*/
|
|
380
|
+
readonly order?: string
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* 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>
|
|
384
|
+
* @type {string}
|
|
385
|
+
* @memberof PolicyBillingApiListPoliciesBillings
|
|
386
|
+
*/
|
|
387
|
+
readonly expand?: string
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* 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, status, billingIntervalFrom, billingIntervalTo</i>
|
|
391
|
+
* @type {string}
|
|
392
|
+
* @memberof PolicyBillingApiListPoliciesBillings
|
|
393
|
+
*/
|
|
394
|
+
readonly filters?: string
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Request parameters for updatePolicyBilling operation in PolicyBillingApi.
|
|
399
|
+
* @export
|
|
400
|
+
* @interface PolicyBillingApiUpdatePolicyBillingRequest
|
|
401
|
+
*/
|
|
402
|
+
export interface PolicyBillingApiUpdatePolicyBillingRequest {
|
|
403
|
+
/**
|
|
404
|
+
* Unique identifier for the object.
|
|
405
|
+
* @type {string}
|
|
406
|
+
* @memberof PolicyBillingApiUpdatePolicyBilling
|
|
407
|
+
*/
|
|
408
|
+
readonly code: string
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
*
|
|
412
|
+
* @type {UpdatePolicyBillingRequestDto}
|
|
413
|
+
* @memberof PolicyBillingApiUpdatePolicyBilling
|
|
414
|
+
*/
|
|
415
|
+
readonly updatePolicyBillingRequestDto: UpdatePolicyBillingRequestDto
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Bearer Token
|
|
419
|
+
* @type {string}
|
|
420
|
+
* @memberof PolicyBillingApiUpdatePolicyBilling
|
|
421
|
+
*/
|
|
422
|
+
readonly authorization?: string
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* PolicyBillingApi - object-oriented interface
|
|
427
|
+
* @export
|
|
428
|
+
* @class PolicyBillingApi
|
|
429
|
+
* @extends {BaseAPI}
|
|
430
|
+
*/
|
|
431
|
+
export class PolicyBillingApi extends BaseAPI {
|
|
432
|
+
/**
|
|
433
|
+
* Create a new policy billing
|
|
434
|
+
* @summary Create the Policy Billing
|
|
435
|
+
* @param {PolicyBillingApiCreatePolicyBillingRequest} requestParameters Request parameters.
|
|
436
|
+
* @param {*} [options] Override http request option.
|
|
437
|
+
* @throws {RequiredError}
|
|
438
|
+
* @memberof PolicyBillingApi
|
|
439
|
+
*/
|
|
440
|
+
public createPolicyBilling(requestParameters: PolicyBillingApiCreatePolicyBillingRequest, options?: AxiosRequestConfig) {
|
|
441
|
+
return PolicyBillingApiFp(this.configuration).createPolicyBilling(requestParameters.createPolicyBillingRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Returns a list of policies billings you have previously created. The policies billings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
446
|
+
* @summary List policies billings
|
|
447
|
+
* @param {PolicyBillingApiListPoliciesBillingsRequest} requestParameters Request parameters.
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
* @memberof PolicyBillingApi
|
|
451
|
+
*/
|
|
452
|
+
public listPoliciesBillings(requestParameters: PolicyBillingApiListPoliciesBillingsRequest = {}, options?: AxiosRequestConfig) {
|
|
453
|
+
return PolicyBillingApiFp(this.configuration).listPoliciesBillings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
458
|
+
* @summary Update the request message
|
|
459
|
+
* @param {PolicyBillingApiUpdatePolicyBillingRequest} requestParameters Request parameters.
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
* @memberof PolicyBillingApi
|
|
463
|
+
*/
|
|
464
|
+
public updatePolicyBilling(requestParameters: PolicyBillingApiUpdatePolicyBillingRequest, options?: AxiosRequestConfig) {
|
|
465
|
+
return PolicyBillingApiFp(this.configuration).updatePolicyBilling(requestParameters.code, requestParameters.updatePolicyBillingRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
466
|
+
}
|
|
467
|
+
}
|
package/api.ts
CHANGED
|
@@ -26,6 +26,7 @@ import { DraftInvoiceApi } from './api';
|
|
|
26
26
|
import { EstimatedInvoicesApi } from './api';
|
|
27
27
|
import { InitialInvoicesApi } from './api';
|
|
28
28
|
import { InvoicesApi } from './api';
|
|
29
|
+
import { PolicyBillingApi } from './api';
|
|
29
30
|
import { RecurringInvoicesApi } from './api';
|
|
30
31
|
|
|
31
32
|
|
|
@@ -35,5 +36,6 @@ export * from './api/draft-invoice-api';
|
|
|
35
36
|
export * from './api/estimated-invoices-api';
|
|
36
37
|
export * from './api/initial-invoices-api';
|
|
37
38
|
export * from './api/invoices-api';
|
|
39
|
+
export * from './api/policy-billing-api';
|
|
38
40
|
export * from './api/recurring-invoices-api';
|
|
39
41
|
|