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