@emilgroup/insurance-sdk 1.25.0 → 1.26.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.
@@ -20,6 +20,8 @@ common.ts
20
20
  configuration.ts
21
21
  git_push.sh
22
22
  index.ts
23
+ models/activate-policy-request-dto.ts
24
+ models/activate-policy-response-class.ts
23
25
  models/calculate-custom-premium-request-dto.ts
24
26
  models/calculate-premium-request-dto.ts
25
27
  models/clone-product-version-request-dto.ts
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/insurance-sdk@1.25.0 --save
20
+ npm install @emilgroup/insurance-sdk@1.26.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk@1.25.0
24
+ yarn add @emilgroup/insurance-sdk@1.26.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -21,6 +21,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { ActivatePolicyRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { ActivatePolicyResponseClass } from '../models';
27
+ // @ts-ignore
24
28
  import { CreatePolicyRequestDto } from '../models';
25
29
  // @ts-ignore
26
30
  import { CreatePolicyResponseClass } from '../models';
@@ -48,6 +52,57 @@ import { WithdrawPolicyResponseClass } from '../models';
48
52
  */
49
53
  export const PoliciesApiAxiosParamCreator = function (configuration?: Configuration) {
50
54
  return {
55
+ /**
56
+ * Request to activate an existing suspended policy by tenant.
57
+ * @summary Activate a suspended policy by tenant
58
+ * @param {string} policyCode The policy code.
59
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
60
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ */
64
+ activatePolicy: async (policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
65
+ // verify required parameter 'policyCode' is not null or undefined
66
+ assertParamExists('activatePolicy', 'policyCode', policyCode)
67
+ // verify required parameter 'activatePolicyRequestDto' is not null or undefined
68
+ assertParamExists('activatePolicy', 'activatePolicyRequestDto', activatePolicyRequestDto)
69
+ const localVarPath = `/insuranceservice/v1/policies/{policyCode}/activate`
70
+ .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
71
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
72
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
73
+ let baseOptions;
74
+ let baseAccessToken;
75
+ if (configuration) {
76
+ baseOptions = configuration.baseOptions;
77
+ baseAccessToken = configuration.accessToken;
78
+ }
79
+
80
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
81
+ const localVarHeaderParameter = {} as any;
82
+ const localVarQueryParameter = {} as any;
83
+
84
+ // authentication bearer required
85
+ // http bearer authentication required
86
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
87
+
88
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
89
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
90
+ }
91
+
92
+
93
+
94
+ localVarHeaderParameter['Content-Type'] = 'application/json';
95
+
96
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
97
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
98
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
99
+ localVarRequestOptions.data = serializeDataIfNeeded(activatePolicyRequestDto, localVarRequestOptions, configuration)
100
+
101
+ return {
102
+ url: toPathString(localVarUrlObj),
103
+ options: localVarRequestOptions,
104
+ };
105
+ },
51
106
  /**
52
107
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
53
108
  * @summary Create the policy
@@ -201,14 +256,14 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
201
256
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
202
257
  * @param {number} [pageSize] Page size.
203
258
  * @param {string} [pageToken] Page token.
204
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
259
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
205
260
  * @param {string} [search] Search query.
206
261
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
207
262
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
208
263
  * @param {*} [options] Override http request option.
209
264
  * @throws {RequiredError}
210
265
  */
211
- listPolicies: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
266
+ listPolicies: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
212
267
  const localVarPath = `/insuranceservice/v1/policies`;
213
268
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
214
269
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -480,6 +535,19 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
480
535
  export const PoliciesApiFp = function(configuration?: Configuration) {
481
536
  const localVarAxiosParamCreator = PoliciesApiAxiosParamCreator(configuration)
482
537
  return {
538
+ /**
539
+ * Request to activate an existing suspended policy by tenant.
540
+ * @summary Activate a suspended policy by tenant
541
+ * @param {string} policyCode The policy code.
542
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
543
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
544
+ * @param {*} [options] Override http request option.
545
+ * @throws {RequiredError}
546
+ */
547
+ async activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivatePolicyResponseClass>> {
548
+ const localVarAxiosArgs = await localVarAxiosParamCreator.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options);
549
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
550
+ },
483
551
  /**
484
552
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
485
553
  * @summary Create the policy
@@ -524,14 +592,14 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
524
592
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
525
593
  * @param {number} [pageSize] Page size.
526
594
  * @param {string} [pageToken] Page token.
527
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
595
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
528
596
  * @param {string} [search] Search query.
529
597
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
530
598
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
531
599
  * @param {*} [options] Override http request option.
532
600
  * @throws {RequiredError}
533
601
  */
534
- async listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
602
+ async listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
535
603
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options);
536
604
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
537
605
  },
@@ -597,6 +665,18 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
597
665
  export const PoliciesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
598
666
  const localVarFp = PoliciesApiFp(configuration)
599
667
  return {
668
+ /**
669
+ * Request to activate an existing suspended policy by tenant.
670
+ * @summary Activate a suspended policy by tenant
671
+ * @param {string} policyCode The policy code.
672
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
673
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<ActivatePolicyResponseClass> {
678
+ return localVarFp.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
679
+ },
600
680
  /**
601
681
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
602
682
  * @summary Create the policy
@@ -638,14 +718,14 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
638
718
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
639
719
  * @param {number} [pageSize] Page size.
640
720
  * @param {string} [pageToken] Page token.
641
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
721
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
642
722
  * @param {string} [search] Search query.
643
723
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
644
724
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
645
725
  * @param {*} [options] Override http request option.
646
726
  * @throws {RequiredError}
647
727
  */
648
- listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<ListPoliciesResponseClass> {
728
+ listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<ListPoliciesResponseClass> {
649
729
  return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
650
730
  },
651
731
  /**
@@ -699,6 +779,34 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
699
779
  };
700
780
  };
701
781
 
782
+ /**
783
+ * Request parameters for activatePolicy operation in PoliciesApi.
784
+ * @export
785
+ * @interface PoliciesApiActivatePolicyRequest
786
+ */
787
+ export interface PoliciesApiActivatePolicyRequest {
788
+ /**
789
+ * The policy code.
790
+ * @type {string}
791
+ * @memberof PoliciesApiActivatePolicy
792
+ */
793
+ readonly policyCode: string
794
+
795
+ /**
796
+ *
797
+ * @type {ActivatePolicyRequestDto}
798
+ * @memberof PoliciesApiActivatePolicy
799
+ */
800
+ readonly activatePolicyRequestDto: ActivatePolicyRequestDto
801
+
802
+ /**
803
+ * Bearer Token: provided by the login endpoint under the name accessToken.
804
+ * @type {string}
805
+ * @memberof PoliciesApiActivatePolicy
806
+ */
807
+ readonly authorization?: string
808
+ }
809
+
702
810
  /**
703
811
  * Request parameters for createPolicy operation in PoliciesApi.
704
812
  * @export
@@ -805,10 +913,10 @@ export interface PoliciesApiListPoliciesRequest {
805
913
 
806
914
  /**
807
915
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
808
- * @type {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'}
916
+ * @type {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'}
809
917
  * @memberof PoliciesApiListPolicies
810
918
  */
811
- readonly filter?: 'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'
919
+ readonly filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'
812
920
 
813
921
  /**
814
922
  * Search query.
@@ -951,6 +1059,18 @@ export interface PoliciesApiWithdrawPolicyRequest {
951
1059
  * @extends {BaseAPI}
952
1060
  */
953
1061
  export class PoliciesApi extends BaseAPI {
1062
+ /**
1063
+ * Request to activate an existing suspended policy by tenant.
1064
+ * @summary Activate a suspended policy by tenant
1065
+ * @param {PoliciesApiActivatePolicyRequest} requestParameters Request parameters.
1066
+ * @param {*} [options] Override http request option.
1067
+ * @throws {RequiredError}
1068
+ * @memberof PoliciesApi
1069
+ */
1070
+ public activatePolicy(requestParameters: PoliciesApiActivatePolicyRequest, options?: AxiosRequestConfig) {
1071
+ return PoliciesApiFp(this.configuration).activatePolicy(requestParameters.policyCode, requestParameters.activatePolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1072
+ }
1073
+
954
1074
  /**
955
1075
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
956
1076
  * @summary Create the policy
@@ -12,6 +12,8 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { ActivatePolicyRequestDto } from '../models';
16
+ import { ActivatePolicyResponseClass } from '../models';
15
17
  import { CreatePolicyRequestDto } from '../models';
16
18
  import { CreatePolicyResponseClass } from '../models';
17
19
  import { GetPolicyResponseClass } from '../models';
@@ -28,6 +30,16 @@ import { WithdrawPolicyResponseClass } from '../models';
28
30
  * @export
29
31
  */
30
32
  export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuration) => {
33
+ /**
34
+ * Request to activate an existing suspended policy by tenant.
35
+ * @summary Activate a suspended policy by tenant
36
+ * @param {string} policyCode The policy code.
37
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
38
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ activatePolicy: (policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
43
  /**
32
44
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
33
45
  * @summary Create the policy
@@ -63,14 +75,14 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
63
75
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
64
76
  * @param {number} [pageSize] Page size.
65
77
  * @param {string} [pageToken] Page token.
66
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
78
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
67
79
  * @param {string} [search] Search query.
68
80
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
69
81
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
70
82
  * @param {*} [options] Override http request option.
71
83
  * @throws {RequiredError}
72
84
  */
73
- listPolicies: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig) => Promise<RequestArgs>;
85
+ listPolicies: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig) => Promise<RequestArgs>;
74
86
  /**
75
87
  * Request to suspend an existing policy by tenant.
76
88
  * @summary Suspend a policy by tenant
@@ -117,6 +129,16 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
117
129
  * @export
118
130
  */
119
131
  export declare const PoliciesApiFp: (configuration?: Configuration) => {
132
+ /**
133
+ * Request to activate an existing suspended policy by tenant.
134
+ * @summary Activate a suspended policy by tenant
135
+ * @param {string} policyCode The policy code.
136
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
137
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivatePolicyResponseClass>>;
120
142
  /**
121
143
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
122
144
  * @summary Create the policy
@@ -152,14 +174,14 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
152
174
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
175
  * @param {number} [pageSize] Page size.
154
176
  * @param {string} [pageToken] Page token.
155
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
177
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
156
178
  * @param {string} [search] Search query.
157
179
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
158
180
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
159
181
  * @param {*} [options] Override http request option.
160
182
  * @throws {RequiredError}
161
183
  */
162
- listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
184
+ listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
163
185
  /**
164
186
  * Request to suspend an existing policy by tenant.
165
187
  * @summary Suspend a policy by tenant
@@ -206,6 +228,16 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
206
228
  * @export
207
229
  */
208
230
  export declare const PoliciesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
231
+ /**
232
+ * Request to activate an existing suspended policy by tenant.
233
+ * @summary Activate a suspended policy by tenant
234
+ * @param {string} policyCode The policy code.
235
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
236
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ */
240
+ activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<ActivatePolicyResponseClass>;
209
241
  /**
210
242
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
211
243
  * @summary Create the policy
@@ -241,14 +273,14 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
241
273
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
242
274
  * @param {number} [pageSize] Page size.
243
275
  * @param {string} [pageToken] Page token.
244
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
276
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
245
277
  * @param {string} [search] Search query.
246
278
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
247
279
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
248
280
  * @param {*} [options] Override http request option.
249
281
  * @throws {RequiredError}
250
282
  */
251
- listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<ListPoliciesResponseClass>;
283
+ listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<ListPoliciesResponseClass>;
252
284
  /**
253
285
  * Request to suspend an existing policy by tenant.
254
286
  * @summary Suspend a policy by tenant
@@ -290,6 +322,31 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
290
322
  */
291
323
  withdrawPolicy(policyCode: string, body: object, authorization?: string, options?: any): AxiosPromise<WithdrawPolicyResponseClass>;
292
324
  };
325
+ /**
326
+ * Request parameters for activatePolicy operation in PoliciesApi.
327
+ * @export
328
+ * @interface PoliciesApiActivatePolicyRequest
329
+ */
330
+ export interface PoliciesApiActivatePolicyRequest {
331
+ /**
332
+ * The policy code.
333
+ * @type {string}
334
+ * @memberof PoliciesApiActivatePolicy
335
+ */
336
+ readonly policyCode: string;
337
+ /**
338
+ *
339
+ * @type {ActivatePolicyRequestDto}
340
+ * @memberof PoliciesApiActivatePolicy
341
+ */
342
+ readonly activatePolicyRequestDto: ActivatePolicyRequestDto;
343
+ /**
344
+ * Bearer Token: provided by the login endpoint under the name accessToken.
345
+ * @type {string}
346
+ * @memberof PoliciesApiActivatePolicy
347
+ */
348
+ readonly authorization?: string;
349
+ }
293
350
  /**
294
351
  * Request parameters for createPolicy operation in PoliciesApi.
295
352
  * @export
@@ -385,10 +442,10 @@ export interface PoliciesApiListPoliciesRequest {
385
442
  readonly pageToken?: string;
386
443
  /**
387
444
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
388
- * @type {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'}
445
+ * @type {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'}
389
446
  * @memberof PoliciesApiListPolicies
390
447
  */
391
- readonly filter?: 'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData';
448
+ readonly filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData';
392
449
  /**
393
450
  * Search query.
394
451
  * @type {string}
@@ -515,6 +572,15 @@ export interface PoliciesApiWithdrawPolicyRequest {
515
572
  * @extends {BaseAPI}
516
573
  */
517
574
  export declare class PoliciesApi extends BaseAPI {
575
+ /**
576
+ * Request to activate an existing suspended policy by tenant.
577
+ * @summary Activate a suspended policy by tenant
578
+ * @param {PoliciesApiActivatePolicyRequest} requestParameters Request parameters.
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ * @memberof PoliciesApi
582
+ */
583
+ activatePolicy(requestParameters: PoliciesApiActivatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ActivatePolicyResponseClass, any>>;
518
584
  /**
519
585
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
520
586
  * @summary Create the policy
@@ -92,6 +92,59 @@ var base_1 = require("../base");
92
92
  var PoliciesApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
+ /**
96
+ * Request to activate an existing suspended policy by tenant.
97
+ * @summary Activate a suspended policy by tenant
98
+ * @param {string} policyCode The policy code.
99
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
100
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ activatePolicy: function (policyCode, activatePolicyRequestDto, authorization, options) {
105
+ if (options === void 0) { options = {}; }
106
+ return __awaiter(_this, void 0, void 0, function () {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0:
111
+ // verify required parameter 'policyCode' is not null or undefined
112
+ (0, common_1.assertParamExists)('activatePolicy', 'policyCode', policyCode);
113
+ // verify required parameter 'activatePolicyRequestDto' is not null or undefined
114
+ (0, common_1.assertParamExists)('activatePolicy', 'activatePolicyRequestDto', activatePolicyRequestDto);
115
+ localVarPath = "/insuranceservice/v1/policies/{policyCode}/activate"
116
+ .replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
117
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(activatePolicyRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
95
148
  /**
96
149
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
97
150
  * @summary Create the policy
@@ -251,7 +304,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
251
304
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
252
305
  * @param {number} [pageSize] Page size.
253
306
  * @param {string} [pageToken] Page token.
254
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
307
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
255
308
  * @param {string} [search] Search query.
256
309
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
257
310
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
@@ -535,6 +588,28 @@ exports.PoliciesApiAxiosParamCreator = PoliciesApiAxiosParamCreator;
535
588
  var PoliciesApiFp = function (configuration) {
536
589
  var localVarAxiosParamCreator = (0, exports.PoliciesApiAxiosParamCreator)(configuration);
537
590
  return {
591
+ /**
592
+ * Request to activate an existing suspended policy by tenant.
593
+ * @summary Activate a suspended policy by tenant
594
+ * @param {string} policyCode The policy code.
595
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
596
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ */
600
+ activatePolicy: function (policyCode, activatePolicyRequestDto, authorization, options) {
601
+ return __awaiter(this, void 0, void 0, function () {
602
+ var localVarAxiosArgs;
603
+ return __generator(this, function (_a) {
604
+ switch (_a.label) {
605
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options)];
606
+ case 1:
607
+ localVarAxiosArgs = _a.sent();
608
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
609
+ }
610
+ });
611
+ });
612
+ },
538
613
  /**
539
614
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
540
615
  * @summary Create the policy
@@ -606,7 +681,7 @@ var PoliciesApiFp = function (configuration) {
606
681
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
607
682
  * @param {number} [pageSize] Page size.
608
683
  * @param {string} [pageToken] Page token.
609
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
684
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
610
685
  * @param {string} [search] Search query.
611
686
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
612
687
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
@@ -724,6 +799,18 @@ exports.PoliciesApiFp = PoliciesApiFp;
724
799
  var PoliciesApiFactory = function (configuration, basePath, axios) {
725
800
  var localVarFp = (0, exports.PoliciesApiFp)(configuration);
726
801
  return {
802
+ /**
803
+ * Request to activate an existing suspended policy by tenant.
804
+ * @summary Activate a suspended policy by tenant
805
+ * @param {string} policyCode The policy code.
806
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
807
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
808
+ * @param {*} [options] Override http request option.
809
+ * @throws {RequiredError}
810
+ */
811
+ activatePolicy: function (policyCode, activatePolicyRequestDto, authorization, options) {
812
+ return localVarFp.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
813
+ },
727
814
  /**
728
815
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
729
816
  * @summary Create the policy
@@ -765,7 +852,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
765
852
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
766
853
  * @param {number} [pageSize] Page size.
767
854
  * @param {string} [pageToken] Page token.
768
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
855
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
769
856
  * @param {string} [search] Search query.
770
857
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
771
858
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
@@ -837,6 +924,18 @@ var PoliciesApi = /** @class */ (function (_super) {
837
924
  function PoliciesApi() {
838
925
  return _super !== null && _super.apply(this, arguments) || this;
839
926
  }
927
+ /**
928
+ * Request to activate an existing suspended policy by tenant.
929
+ * @summary Activate a suspended policy by tenant
930
+ * @param {PoliciesApiActivatePolicyRequest} requestParameters Request parameters.
931
+ * @param {*} [options] Override http request option.
932
+ * @throws {RequiredError}
933
+ * @memberof PoliciesApi
934
+ */
935
+ PoliciesApi.prototype.activatePolicy = function (requestParameters, options) {
936
+ var _this = this;
937
+ return (0, exports.PoliciesApiFp)(this.configuration).activatePolicy(requestParameters.policyCode, requestParameters.activatePolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
938
+ };
840
939
  /**
841
940
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
842
941
  * @summary Create the policy
@@ -0,0 +1,24 @@
1
+ /**
2
+ * EMIL InsuranceService
3
+ * The EMIL InsuranceService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ActivatePolicyRequestDto
16
+ */
17
+ export interface ActivatePolicyRequestDto {
18
+ /**
19
+ * Activate from.
20
+ * @type {string}
21
+ * @memberof ActivatePolicyRequestDto
22
+ */
23
+ 'from'?: string;
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL InsuranceService
6
+ * The EMIL InsuranceService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL InsuranceService
3
+ * The EMIL InsuranceService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { PolicyClass } from './policy-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ActivatePolicyResponseClass
17
+ */
18
+ export interface ActivatePolicyResponseClass {
19
+ /**
20
+ * Policy.
21
+ * @type {PolicyClass}
22
+ * @memberof ActivatePolicyResponseClass
23
+ */
24
+ 'policy': PolicyClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL InsuranceService
6
+ * The EMIL InsuranceService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,5 @@
1
+ export * from './activate-policy-request-dto';
2
+ export * from './activate-policy-response-class';
1
3
  export * from './calculate-custom-premium-request-dto';
2
4
  export * from './calculate-premium-request-dto';
3
5
  export * from './clone-product-version-request-dto';
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./activate-policy-request-dto"), exports);
18
+ __exportStar(require("./activate-policy-response-class"), exports);
17
19
  __exportStar(require("./calculate-custom-premium-request-dto"), exports);
18
20
  __exportStar(require("./calculate-premium-request-dto"), exports);
19
21
  __exportStar(require("./clone-product-version-request-dto"), exports);
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL InsuranceService
5
+ * The EMIL InsuranceService 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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ActivatePolicyRequestDto
21
+ */
22
+ export interface ActivatePolicyRequestDto {
23
+ /**
24
+ * Activate from.
25
+ * @type {string}
26
+ * @memberof ActivatePolicyRequestDto
27
+ */
28
+ 'from'?: string;
29
+ }
30
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL InsuranceService
5
+ * The EMIL InsuranceService 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 { PolicyClass } from './policy-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ActivatePolicyResponseClass
22
+ */
23
+ export interface ActivatePolicyResponseClass {
24
+ /**
25
+ * Policy.
26
+ * @type {PolicyClass}
27
+ * @memberof ActivatePolicyResponseClass
28
+ */
29
+ 'policy': PolicyClass;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * from './activate-policy-request-dto';
2
+ export * from './activate-policy-response-class';
1
3
  export * from './calculate-custom-premium-request-dto';
2
4
  export * from './calculate-premium-request-dto';
3
5
  export * from './clone-product-version-request-dto';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk",
3
- "version": "1.25.0",
3
+ "version": "1.26.0",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [