@emilgroup/insurance-sdk-node 1.52.0 → 1.53.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.
Files changed (114) hide show
  1. package/.openapi-generator/FILES +33 -1
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +710 -0
  4. package/api/commission-agreement-versions-api.ts +592 -0
  5. package/api/commission-agreements-api.ts +697 -0
  6. package/api/commission-recipients-api.ts +696 -0
  7. package/api/{default-api.ts → health-check-api.ts} +21 -17
  8. package/api/insured-objects-api.ts +5 -2
  9. package/api/policies-api.ts +176 -221
  10. package/api.ts +10 -2
  11. package/dist/api/commission-agreement-products-api.d.ts +403 -0
  12. package/dist/api/commission-agreement-products-api.js +652 -0
  13. package/dist/api/commission-agreement-versions-api.d.ts +337 -0
  14. package/dist/api/commission-agreement-versions-api.js +555 -0
  15. package/dist/api/commission-agreements-api.d.ts +394 -0
  16. package/dist/api/commission-agreements-api.js +646 -0
  17. package/dist/api/commission-recipients-api.d.ts +394 -0
  18. package/dist/api/commission-recipients-api.js +646 -0
  19. package/dist/api/health-check-api.d.ts +70 -0
  20. package/dist/api/{default-api.js → health-check-api.js} +30 -26
  21. package/dist/api/insured-objects-api.js +4 -2
  22. package/dist/api/policies-api.d.ts +134 -161
  23. package/dist/api/policies-api.js +129 -151
  24. package/dist/api.d.ts +5 -1
  25. package/dist/api.js +5 -1
  26. package/dist/models/commission-agreement-class.d.ts +89 -0
  27. package/dist/models/commission-agreement-class.js +23 -0
  28. package/dist/models/commission-agreement-item-class.d.ts +66 -0
  29. package/dist/models/commission-agreement-item-class.js +15 -0
  30. package/dist/models/commission-agreement-product-class.d.ts +72 -0
  31. package/dist/models/commission-agreement-product-class.js +15 -0
  32. package/dist/models/commission-agreement-version-class.d.ts +79 -0
  33. package/dist/models/commission-agreement-version-class.js +15 -0
  34. package/dist/models/commission-recipient-class.d.ts +78 -0
  35. package/dist/models/commission-recipient-class.js +15 -0
  36. package/dist/models/create-commission-agreement-item-dto.d.ts +36 -0
  37. package/dist/models/create-commission-agreement-item-dto.js +15 -0
  38. package/dist/models/create-commission-agreement-product-request-dto.d.ts +42 -0
  39. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  40. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  41. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  42. package/dist/models/create-commission-agreement-request-dto.d.ts +75 -0
  43. package/dist/models/create-commission-agreement-request-dto.js +23 -0
  44. package/dist/models/create-commission-agreement-response-class.d.ts +25 -0
  45. package/dist/models/create-commission-agreement-response-class.js +15 -0
  46. package/dist/models/create-commission-agreement-version-request-dto.d.ts +49 -0
  47. package/dist/models/create-commission-agreement-version-request-dto.js +15 -0
  48. package/dist/models/create-commission-agreement-version-response-class.d.ts +25 -0
  49. package/dist/models/create-commission-agreement-version-response-class.js +15 -0
  50. package/dist/models/create-commission-recipient-request-dto.d.ts +48 -0
  51. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  52. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  53. package/dist/models/create-commission-recipient-response-class.js +15 -0
  54. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  55. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  56. package/dist/models/get-commission-agreement-response-class.d.ts +25 -0
  57. package/dist/models/get-commission-agreement-response-class.js +15 -0
  58. package/dist/models/get-commission-agreement-version-response-class.d.ts +25 -0
  59. package/dist/models/get-commission-agreement-version-response-class.js +15 -0
  60. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  61. package/dist/models/get-commission-recipient-response-class.js +15 -0
  62. package/dist/models/index.d.ts +28 -0
  63. package/dist/models/index.js +28 -0
  64. package/dist/models/list-commission-agreement-products-response-class.d.ts +31 -0
  65. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  66. package/dist/models/list-commission-agreement-versions-response-class.d.ts +31 -0
  67. package/dist/models/list-commission-agreement-versions-response-class.js +15 -0
  68. package/dist/models/list-commission-agreements-response-class.d.ts +31 -0
  69. package/dist/models/list-commission-agreements-response-class.js +15 -0
  70. package/dist/models/list-commission-recipients-response-class.d.ts +31 -0
  71. package/dist/models/list-commission-recipients-response-class.js +15 -0
  72. package/dist/models/update-commission-agreement-product-request-dto.d.ts +42 -0
  73. package/dist/models/update-commission-agreement-product-request-dto.js +15 -0
  74. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  75. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  76. package/dist/models/update-commission-agreement-request-dto.d.ts +44 -0
  77. package/dist/models/update-commission-agreement-request-dto.js +23 -0
  78. package/dist/models/update-commission-agreement-response-class.d.ts +25 -0
  79. package/dist/models/update-commission-agreement-response-class.js +15 -0
  80. package/dist/models/update-commission-recipient-request-dto.d.ts +48 -0
  81. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  82. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  83. package/dist/models/update-commission-recipient-response-class.js +15 -0
  84. package/models/commission-agreement-class.ts +98 -0
  85. package/models/commission-agreement-item-class.ts +72 -0
  86. package/models/commission-agreement-product-class.ts +78 -0
  87. package/models/commission-agreement-version-class.ts +85 -0
  88. package/models/commission-recipient-class.ts +84 -0
  89. package/models/create-commission-agreement-item-dto.ts +42 -0
  90. package/models/create-commission-agreement-product-request-dto.ts +48 -0
  91. package/models/create-commission-agreement-product-response-class.ts +31 -0
  92. package/models/create-commission-agreement-request-dto.ts +84 -0
  93. package/models/create-commission-agreement-response-class.ts +31 -0
  94. package/models/create-commission-agreement-version-request-dto.ts +55 -0
  95. package/models/create-commission-agreement-version-response-class.ts +31 -0
  96. package/models/create-commission-recipient-request-dto.ts +54 -0
  97. package/models/create-commission-recipient-response-class.ts +31 -0
  98. package/models/get-commission-agreement-product-response-class.ts +31 -0
  99. package/models/get-commission-agreement-response-class.ts +31 -0
  100. package/models/get-commission-agreement-version-response-class.ts +31 -0
  101. package/models/get-commission-recipient-response-class.ts +31 -0
  102. package/models/index.ts +28 -0
  103. package/models/list-commission-agreement-products-response-class.ts +37 -0
  104. package/models/list-commission-agreement-versions-response-class.ts +37 -0
  105. package/models/list-commission-agreements-response-class.ts +37 -0
  106. package/models/list-commission-recipients-response-class.ts +37 -0
  107. package/models/update-commission-agreement-product-request-dto.ts +48 -0
  108. package/models/update-commission-agreement-product-response-class.ts +31 -0
  109. package/models/update-commission-agreement-request-dto.ts +53 -0
  110. package/models/update-commission-agreement-response-class.ts +31 -0
  111. package/models/update-commission-recipient-request-dto.ts +54 -0
  112. package/models/update-commission-recipient-response-class.ts +31 -0
  113. package/package.json +1 -1
  114. package/dist/api/default-api.d.ts +0 -66
@@ -122,17 +122,21 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
122
122
  };
123
123
  },
124
124
  /**
125
- * 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.
126
- * @summary Create the policy
127
- * @param {CreatePolicyRequestDto} createPolicyRequestDto
125
+ * This will create a draft policy in the database.
126
+ * @summary Create the draft-policy
127
+ * @param {string} policyCode Unique identifier for the object.
128
+ * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
128
129
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
129
130
  * @param {*} [options] Override http request option.
130
131
  * @throws {RequiredError}
131
132
  */
132
- createPolicy: async (createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
133
- // verify required parameter 'createPolicyRequestDto' is not null or undefined
134
- assertParamExists('createPolicy', 'createPolicyRequestDto', createPolicyRequestDto)
135
- const localVarPath = `/insuranceservice/v1/policies`;
133
+ createDraftPolicy: async (policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
134
+ // verify required parameter 'policyCode' is not null or undefined
135
+ assertParamExists('createDraftPolicy', 'policyCode', policyCode)
136
+ // verify required parameter 'createDraftPolicyRequestDto' is not null or undefined
137
+ assertParamExists('createDraftPolicy', 'createDraftPolicyRequestDto', createDraftPolicyRequestDto)
138
+ const localVarPath = `/insuranceservice/v1/policies/{policyCode}/draft`
139
+ .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
136
140
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
137
141
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
138
142
  let baseOptions;
@@ -161,7 +165,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
161
165
  setSearchParams(localVarUrlObj, localVarQueryParameter);
162
166
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
163
167
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
164
- localVarRequestOptions.data = serializeDataIfNeeded(createPolicyRequestDto, localVarRequestOptions, configuration)
168
+ localVarRequestOptions.data = serializeDataIfNeeded(createDraftPolicyRequestDto, localVarRequestOptions, configuration)
165
169
 
166
170
  return {
167
171
  url: toPathString(localVarUrlObj),
@@ -169,21 +173,17 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
169
173
  };
170
174
  },
171
175
  /**
172
- * This will create a draft policy in the database.
173
- * @summary Create the draft-policy
174
- * @param {string} policyCode
175
- * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
176
+ * 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.
177
+ * @summary Create the policy
178
+ * @param {CreatePolicyRequestDto} createPolicyRequestDto
176
179
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
177
180
  * @param {*} [options] Override http request option.
178
181
  * @throws {RequiredError}
179
182
  */
180
- createPolicy_1: async (policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
181
- // verify required parameter 'policyCode' is not null or undefined
182
- assertParamExists('createPolicy_1', 'policyCode', policyCode)
183
- // verify required parameter 'createDraftPolicyRequestDto' is not null or undefined
184
- assertParamExists('createPolicy_1', 'createDraftPolicyRequestDto', createDraftPolicyRequestDto)
185
- const localVarPath = `/insuranceservice/v1/policies/{policyCode}/draft`
186
- .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
183
+ createPolicy: async (createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
184
+ // verify required parameter 'createPolicyRequestDto' is not null or undefined
185
+ assertParamExists('createPolicy', 'createPolicyRequestDto', createPolicyRequestDto)
186
+ const localVarPath = `/insuranceservice/v1/policies`;
187
187
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
188
188
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
189
189
  let baseOptions;
@@ -212,7 +212,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
212
212
  setSearchParams(localVarUrlObj, localVarQueryParameter);
213
213
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
214
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
215
- localVarRequestOptions.data = serializeDataIfNeeded(createDraftPolicyRequestDto, localVarRequestOptions, configuration)
215
+ localVarRequestOptions.data = serializeDataIfNeeded(createPolicyRequestDto, localVarRequestOptions, configuration)
216
216
 
217
217
  return {
218
218
  url: toPathString(localVarUrlObj),
@@ -222,17 +222,14 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
222
222
  /**
223
223
  * Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
224
224
  * @summary Delete the draft-policy
225
- * @param {string} policyCode
226
- * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
225
+ * @param {string} policyCode Unique identifier for the object.
227
226
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
228
227
  * @param {*} [options] Override http request option.
229
228
  * @throws {RequiredError}
230
229
  */
231
- deleteDraftPolicy: async (policyCode: string, policyCode2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
230
+ deleteDraftPolicy: async (policyCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
232
231
  // verify required parameter 'policyCode' is not null or undefined
233
232
  assertParamExists('deleteDraftPolicy', 'policyCode', policyCode)
234
- // verify required parameter 'policyCode2' is not null or undefined
235
- assertParamExists('deleteDraftPolicy', 'policyCode2', policyCode2)
236
233
  const localVarPath = `/insuranceservice/v1/policies/{policyCode}/draft`
237
234
  .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
238
235
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -252,10 +249,6 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
252
249
  // http bearer authentication required
253
250
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
254
251
 
255
- if (policyCode2 !== undefined) {
256
- localVarQueryParameter['policyCode'] = policyCode2;
257
- }
258
-
259
252
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
260
253
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
261
254
  }
@@ -274,18 +267,15 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
274
267
  /**
275
268
  * Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
276
269
  * @summary Retrieve the draft-policy
277
- * @param {string} policyCode
278
- * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
270
+ * @param {string} policyCode Unique identifier for the object.
279
271
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
280
272
  * @param {string} [expand] Fields to expand response by.
281
273
  * @param {*} [options] Override http request option.
282
274
  * @throws {RequiredError}
283
275
  */
284
- getDraftPolicy: async (policyCode: string, policyCode2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
276
+ getDraftPolicy: async (policyCode: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
285
277
  // verify required parameter 'policyCode' is not null or undefined
286
278
  assertParamExists('getDraftPolicy', 'policyCode', policyCode)
287
- // verify required parameter 'policyCode2' is not null or undefined
288
- assertParamExists('getDraftPolicy', 'policyCode2', policyCode2)
289
279
  const localVarPath = `/insuranceservice/v1/policies/{policyCode}/draft`
290
280
  .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
291
281
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -305,10 +295,6 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
305
295
  // http bearer authentication required
306
296
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
307
297
 
308
- if (policyCode2 !== undefined) {
309
- localVarQueryParameter['policyCode'] = policyCode2;
310
- }
311
-
312
298
  if (expand !== undefined) {
313
299
  localVarQueryParameter['expand'] = expand;
314
300
  }
@@ -333,11 +319,11 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
333
319
  * @summary Retrieve the policy
334
320
  * @param {string} code Unique identifier for the object.
335
321
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
336
- * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'} [expand] You can expand policy in this endpoint. \&#39; + \&#39;By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
322
+ * @param {string} [expand] You can expand policy in this endpoint. \&#39; + \&#39;By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
337
323
  * @param {*} [options] Override http request option.
338
324
  * @throws {RequiredError}
339
325
  */
340
- getPolicy: async (code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
326
+ getPolicy: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
341
327
  // verify required parameter 'code' is not null or undefined
342
328
  assertParamExists('getPolicy', 'code', code)
343
329
  const localVarPath = `/insuranceservice/v1/policies/{code}`
@@ -661,21 +647,21 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
661
647
  };
662
648
  },
663
649
  /**
664
- * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
665
- * @summary Update the policy
666
- * @param {string} code Unique identifier for the object.
667
- * @param {PatchPolicyRequestDto} patchPolicyRequestDto
650
+ * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
651
+ * @summary Update the draft-policy
652
+ * @param {string} policyCode Unique identifier for the object.
653
+ * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
668
654
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
669
655
  * @param {*} [options] Override http request option.
670
656
  * @throws {RequiredError}
671
657
  */
672
- patchPolicy: async (code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
673
- // verify required parameter 'code' is not null or undefined
674
- assertParamExists('patchPolicy', 'code', code)
675
- // verify required parameter 'patchPolicyRequestDto' is not null or undefined
676
- assertParamExists('patchPolicy', 'patchPolicyRequestDto', patchPolicyRequestDto)
677
- const localVarPath = `/insuranceservice/v1/policies/{code}`
678
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
658
+ patchDraftPolicy: async (policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
659
+ // verify required parameter 'policyCode' is not null or undefined
660
+ assertParamExists('patchDraftPolicy', 'policyCode', policyCode)
661
+ // verify required parameter 'patchDraftPolicyRequestDto' is not null or undefined
662
+ assertParamExists('patchDraftPolicy', 'patchDraftPolicyRequestDto', patchDraftPolicyRequestDto)
663
+ const localVarPath = `/insuranceservice/v1/policies/{policyCode}/draft`
664
+ .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
679
665
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
680
666
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
681
667
  let baseOptions;
@@ -704,7 +690,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
704
690
  setSearchParams(localVarUrlObj, localVarQueryParameter);
705
691
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
706
692
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
707
- localVarRequestOptions.data = serializeDataIfNeeded(patchPolicyRequestDto, localVarRequestOptions, configuration)
693
+ localVarRequestOptions.data = serializeDataIfNeeded(patchDraftPolicyRequestDto, localVarRequestOptions, configuration)
708
694
 
709
695
  return {
710
696
  url: toPathString(localVarUrlObj),
@@ -712,24 +698,20 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
712
698
  };
713
699
  },
714
700
  /**
715
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
716
- * @summary Update the draft-policy
717
- * @param {string} policyCode
718
- * @param {any} code Unique identifier for the object.
719
- * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
701
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
702
+ * @summary Update the policy
703
+ * @param {string} code Unique identifier for the object.
704
+ * @param {PatchPolicyRequestDto} patchPolicyRequestDto
720
705
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
721
706
  * @param {*} [options] Override http request option.
722
707
  * @throws {RequiredError}
723
708
  */
724
- patchPolicy_2: async (policyCode: string, code: any, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
725
- // verify required parameter 'policyCode' is not null or undefined
726
- assertParamExists('patchPolicy_2', 'policyCode', policyCode)
709
+ patchPolicy: async (code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
727
710
  // verify required parameter 'code' is not null or undefined
728
- assertParamExists('patchPolicy_2', 'code', code)
729
- // verify required parameter 'patchDraftPolicyRequestDto' is not null or undefined
730
- assertParamExists('patchPolicy_2', 'patchDraftPolicyRequestDto', patchDraftPolicyRequestDto)
731
- const localVarPath = `/insuranceservice/v1/policies/{policyCode}/draft`
732
- .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)))
711
+ assertParamExists('patchPolicy', 'code', code)
712
+ // verify required parameter 'patchPolicyRequestDto' is not null or undefined
713
+ assertParamExists('patchPolicy', 'patchPolicyRequestDto', patchPolicyRequestDto)
714
+ const localVarPath = `/insuranceservice/v1/policies/{code}`
733
715
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
734
716
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
735
717
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -759,7 +741,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
759
741
  setSearchParams(localVarUrlObj, localVarQueryParameter);
760
742
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
761
743
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
762
- localVarRequestOptions.data = serializeDataIfNeeded(patchDraftPolicyRequestDto, localVarRequestOptions, configuration)
744
+ localVarRequestOptions.data = serializeDataIfNeeded(patchPolicyRequestDto, localVarRequestOptions, configuration)
763
745
 
764
746
  return {
765
747
  url: toPathString(localVarUrlObj),
@@ -994,55 +976,53 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
994
976
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
995
977
  },
996
978
  /**
997
- * 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.
998
- * @summary Create the policy
999
- * @param {CreatePolicyRequestDto} createPolicyRequestDto
979
+ * This will create a draft policy in the database.
980
+ * @summary Create the draft-policy
981
+ * @param {string} policyCode Unique identifier for the object.
982
+ * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
1000
983
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1001
984
  * @param {*} [options] Override http request option.
1002
985
  * @throws {RequiredError}
1003
986
  */
1004
- async createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>> {
1005
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPolicy(createPolicyRequestDto, authorization, options);
987
+ async createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>> {
988
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createDraftPolicy(policyCode, createDraftPolicyRequestDto, authorization, options);
1006
989
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1007
990
  },
1008
991
  /**
1009
- * This will create a draft policy in the database.
1010
- * @summary Create the draft-policy
1011
- * @param {string} policyCode
1012
- * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
992
+ * 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.
993
+ * @summary Create the policy
994
+ * @param {CreatePolicyRequestDto} createPolicyRequestDto
1013
995
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1014
996
  * @param {*} [options] Override http request option.
1015
997
  * @throws {RequiredError}
1016
998
  */
1017
- async createPolicy_1(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>> {
1018
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPolicy_1(policyCode, createDraftPolicyRequestDto, authorization, options);
999
+ async createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>> {
1000
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPolicy(createPolicyRequestDto, authorization, options);
1019
1001
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1020
1002
  },
1021
1003
  /**
1022
1004
  * Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
1023
1005
  * @summary Delete the draft-policy
1024
- * @param {string} policyCode
1025
- * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
1006
+ * @param {string} policyCode Unique identifier for the object.
1026
1007
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1027
1008
  * @param {*} [options] Override http request option.
1028
1009
  * @throws {RequiredError}
1029
1010
  */
1030
- async deleteDraftPolicy(policyCode: string, policyCode2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
1031
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDraftPolicy(policyCode, policyCode2, authorization, options);
1011
+ async deleteDraftPolicy(policyCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
1012
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDraftPolicy(policyCode, authorization, options);
1032
1013
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1033
1014
  },
1034
1015
  /**
1035
1016
  * Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
1036
1017
  * @summary Retrieve the draft-policy
1037
- * @param {string} policyCode
1038
- * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
1018
+ * @param {string} policyCode Unique identifier for the object.
1039
1019
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1040
1020
  * @param {string} [expand] Fields to expand response by.
1041
1021
  * @param {*} [options] Override http request option.
1042
1022
  * @throws {RequiredError}
1043
1023
  */
1044
- async getDraftPolicy(policyCode: string, policyCode2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
1045
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDraftPolicy(policyCode, policyCode2, authorization, expand, options);
1024
+ async getDraftPolicy(policyCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
1025
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDraftPolicy(policyCode, authorization, expand, options);
1046
1026
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1047
1027
  },
1048
1028
  /**
@@ -1050,11 +1030,11 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1050
1030
  * @summary Retrieve the policy
1051
1031
  * @param {string} code Unique identifier for the object.
1052
1032
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1053
- * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'} [expand] You can expand policy in this endpoint. \&#39; + \&#39;By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
1033
+ * @param {string} [expand] You can expand policy in this endpoint. \&#39; + \&#39;By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
1054
1034
  * @param {*} [options] Override http request option.
1055
1035
  * @throws {RequiredError}
1056
1036
  */
1057
- async getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
1037
+ async getPolicy(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
1058
1038
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, expand, options);
1059
1039
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1060
1040
  },
@@ -1127,30 +1107,29 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1127
1107
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1128
1108
  },
1129
1109
  /**
1130
- * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1131
- * @summary Update the policy
1132
- * @param {string} code Unique identifier for the object.
1133
- * @param {PatchPolicyRequestDto} patchPolicyRequestDto
1110
+ * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1111
+ * @summary Update the draft-policy
1112
+ * @param {string} policyCode Unique identifier for the object.
1113
+ * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
1134
1114
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1135
1115
  * @param {*} [options] Override http request option.
1136
1116
  * @throws {RequiredError}
1137
1117
  */
1138
- async patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>> {
1139
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchPolicy(code, patchPolicyRequestDto, authorization, options);
1118
+ async patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>> {
1119
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchDraftPolicy(policyCode, patchDraftPolicyRequestDto, authorization, options);
1140
1120
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1141
1121
  },
1142
1122
  /**
1143
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1144
- * @summary Update the draft-policy
1145
- * @param {string} policyCode
1146
- * @param {any} code Unique identifier for the object.
1147
- * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
1123
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1124
+ * @summary Update the policy
1125
+ * @param {string} code Unique identifier for the object.
1126
+ * @param {PatchPolicyRequestDto} patchPolicyRequestDto
1148
1127
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1149
1128
  * @param {*} [options] Override http request option.
1150
1129
  * @throws {RequiredError}
1151
1130
  */
1152
- async patchPolicy_2(policyCode: string, code: any, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>> {
1153
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchPolicy_2(policyCode, code, patchDraftPolicyRequestDto, authorization, options);
1131
+ async patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>> {
1132
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchPolicy(code, patchPolicyRequestDto, authorization, options);
1154
1133
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1155
1134
  },
1156
1135
  /**
@@ -1228,63 +1207,61 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1228
1207
  return localVarFp.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1229
1208
  },
1230
1209
  /**
1231
- * 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.
1232
- * @summary Create the policy
1233
- * @param {CreatePolicyRequestDto} createPolicyRequestDto
1210
+ * This will create a draft policy in the database.
1211
+ * @summary Create the draft-policy
1212
+ * @param {string} policyCode Unique identifier for the object.
1213
+ * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
1234
1214
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1235
1215
  * @param {*} [options] Override http request option.
1236
1216
  * @throws {RequiredError}
1237
1217
  */
1238
- createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass> {
1239
- return localVarFp.createPolicy(createPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1218
+ createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass> {
1219
+ return localVarFp.createDraftPolicy(policyCode, createDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1240
1220
  },
1241
1221
  /**
1242
- * This will create a draft policy in the database.
1243
- * @summary Create the draft-policy
1244
- * @param {string} policyCode
1245
- * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
1222
+ * 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.
1223
+ * @summary Create the policy
1224
+ * @param {CreatePolicyRequestDto} createPolicyRequestDto
1246
1225
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1247
1226
  * @param {*} [options] Override http request option.
1248
1227
  * @throws {RequiredError}
1249
1228
  */
1250
- createPolicy_1(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass> {
1251
- return localVarFp.createPolicy_1(policyCode, createDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1229
+ createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass> {
1230
+ return localVarFp.createPolicy(createPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1252
1231
  },
1253
1232
  /**
1254
1233
  * Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
1255
1234
  * @summary Delete the draft-policy
1256
- * @param {string} policyCode
1257
- * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
1235
+ * @param {string} policyCode Unique identifier for the object.
1258
1236
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1259
1237
  * @param {*} [options] Override http request option.
1260
1238
  * @throws {RequiredError}
1261
1239
  */
1262
- deleteDraftPolicy(policyCode: string, policyCode2: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
1263
- return localVarFp.deleteDraftPolicy(policyCode, policyCode2, authorization, options).then((request) => request(axios, basePath));
1240
+ deleteDraftPolicy(policyCode: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
1241
+ return localVarFp.deleteDraftPolicy(policyCode, authorization, options).then((request) => request(axios, basePath));
1264
1242
  },
1265
1243
  /**
1266
1244
  * Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
1267
1245
  * @summary Retrieve the draft-policy
1268
- * @param {string} policyCode
1269
- * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
1246
+ * @param {string} policyCode Unique identifier for the object.
1270
1247
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1271
1248
  * @param {string} [expand] Fields to expand response by.
1272
1249
  * @param {*} [options] Override http request option.
1273
1250
  * @throws {RequiredError}
1274
1251
  */
1275
- getDraftPolicy(policyCode: string, policyCode2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass> {
1276
- return localVarFp.getDraftPolicy(policyCode, policyCode2, authorization, expand, options).then((request) => request(axios, basePath));
1252
+ getDraftPolicy(policyCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass> {
1253
+ return localVarFp.getDraftPolicy(policyCode, authorization, expand, options).then((request) => request(axios, basePath));
1277
1254
  },
1278
1255
  /**
1279
1256
  * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
1280
1257
  * @summary Retrieve the policy
1281
1258
  * @param {string} code Unique identifier for the object.
1282
1259
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1283
- * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'} [expand] You can expand policy in this endpoint. \&#39; + \&#39;By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
1260
+ * @param {string} [expand] You can expand policy in this endpoint. \&#39; + \&#39;By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
1284
1261
  * @param {*} [options] Override http request option.
1285
1262
  * @throws {RequiredError}
1286
1263
  */
1287
- getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks', options?: any): AxiosPromise<GetPolicyResponseClass> {
1264
+ getPolicy(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass> {
1288
1265
  return localVarFp.getPolicy(code, authorization, expand, options).then((request) => request(axios, basePath));
1289
1266
  },
1290
1267
  /**
@@ -1352,29 +1329,28 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1352
1329
  return localVarFp.listPolicyVersions(policyCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1353
1330
  },
1354
1331
  /**
1355
- * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1356
- * @summary Update the policy
1357
- * @param {string} code Unique identifier for the object.
1358
- * @param {PatchPolicyRequestDto} patchPolicyRequestDto
1332
+ * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1333
+ * @summary Update the draft-policy
1334
+ * @param {string} policyCode Unique identifier for the object.
1335
+ * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
1359
1336
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1360
1337
  * @param {*} [options] Override http request option.
1361
1338
  * @throws {RequiredError}
1362
1339
  */
1363
- patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass> {
1364
- return localVarFp.patchPolicy(code, patchPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1340
+ patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass> {
1341
+ return localVarFp.patchDraftPolicy(policyCode, patchDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1365
1342
  },
1366
1343
  /**
1367
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1368
- * @summary Update the draft-policy
1369
- * @param {string} policyCode
1370
- * @param {any} code Unique identifier for the object.
1371
- * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
1344
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1345
+ * @summary Update the policy
1346
+ * @param {string} code Unique identifier for the object.
1347
+ * @param {PatchPolicyRequestDto} patchPolicyRequestDto
1372
1348
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1373
1349
  * @param {*} [options] Override http request option.
1374
1350
  * @throws {RequiredError}
1375
1351
  */
1376
- patchPolicy_2(policyCode: string, code: any, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass> {
1377
- return localVarFp.patchPolicy_2(policyCode, code, patchDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1352
+ patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass> {
1353
+ return localVarFp.patchPolicy(code, patchPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1378
1354
  },
1379
1355
  /**
1380
1356
  * Request to suspend an existing policy by tenant.
@@ -1456,50 +1432,50 @@ export interface PoliciesApiActivatePolicyRequest {
1456
1432
  }
1457
1433
 
1458
1434
  /**
1459
- * Request parameters for createPolicy operation in PoliciesApi.
1435
+ * Request parameters for createDraftPolicy operation in PoliciesApi.
1460
1436
  * @export
1461
- * @interface PoliciesApiCreatePolicyRequest
1437
+ * @interface PoliciesApiCreateDraftPolicyRequest
1462
1438
  */
1463
- export interface PoliciesApiCreatePolicyRequest {
1439
+ export interface PoliciesApiCreateDraftPolicyRequest {
1440
+ /**
1441
+ * Unique identifier for the object.
1442
+ * @type {string}
1443
+ * @memberof PoliciesApiCreateDraftPolicy
1444
+ */
1445
+ readonly policyCode: string
1446
+
1464
1447
  /**
1465
1448
  *
1466
- * @type {CreatePolicyRequestDto}
1467
- * @memberof PoliciesApiCreatePolicy
1449
+ * @type {CreateDraftPolicyRequestDto}
1450
+ * @memberof PoliciesApiCreateDraftPolicy
1468
1451
  */
1469
- readonly createPolicyRequestDto: CreatePolicyRequestDto
1452
+ readonly createDraftPolicyRequestDto: CreateDraftPolicyRequestDto
1470
1453
 
1471
1454
  /**
1472
1455
  * Bearer Token: provided by the login endpoint under the name accessToken.
1473
1456
  * @type {string}
1474
- * @memberof PoliciesApiCreatePolicy
1457
+ * @memberof PoliciesApiCreateDraftPolicy
1475
1458
  */
1476
1459
  readonly authorization?: string
1477
1460
  }
1478
1461
 
1479
1462
  /**
1480
- * Request parameters for createPolicy_1 operation in PoliciesApi.
1463
+ * Request parameters for createPolicy operation in PoliciesApi.
1481
1464
  * @export
1482
- * @interface PoliciesApiCreatePolicy0Request
1465
+ * @interface PoliciesApiCreatePolicyRequest
1483
1466
  */
1484
- export interface PoliciesApiCreatePolicy0Request {
1485
- /**
1486
- *
1487
- * @type {string}
1488
- * @memberof PoliciesApiCreatePolicy0
1489
- */
1490
- readonly policyCode: string
1491
-
1467
+ export interface PoliciesApiCreatePolicyRequest {
1492
1468
  /**
1493
1469
  *
1494
- * @type {CreateDraftPolicyRequestDto}
1495
- * @memberof PoliciesApiCreatePolicy0
1470
+ * @type {CreatePolicyRequestDto}
1471
+ * @memberof PoliciesApiCreatePolicy
1496
1472
  */
1497
- readonly createDraftPolicyRequestDto: CreateDraftPolicyRequestDto
1473
+ readonly createPolicyRequestDto: CreatePolicyRequestDto
1498
1474
 
1499
1475
  /**
1500
1476
  * Bearer Token: provided by the login endpoint under the name accessToken.
1501
1477
  * @type {string}
1502
- * @memberof PoliciesApiCreatePolicy0
1478
+ * @memberof PoliciesApiCreatePolicy
1503
1479
  */
1504
1480
  readonly authorization?: string
1505
1481
  }
@@ -1511,19 +1487,12 @@ export interface PoliciesApiCreatePolicy0Request {
1511
1487
  */
1512
1488
  export interface PoliciesApiDeleteDraftPolicyRequest {
1513
1489
  /**
1514
- *
1490
+ * Unique identifier for the object.
1515
1491
  * @type {string}
1516
1492
  * @memberof PoliciesApiDeleteDraftPolicy
1517
1493
  */
1518
1494
  readonly policyCode: string
1519
1495
 
1520
- /**
1521
- * Unique identifier of the Draft Policy that this object belongs to.
1522
- * @type {string}
1523
- * @memberof PoliciesApiDeleteDraftPolicy
1524
- */
1525
- readonly policyCode2: string
1526
-
1527
1496
  /**
1528
1497
  * Bearer Token: provided by the login endpoint under the name accessToken.
1529
1498
  * @type {string}
@@ -1539,19 +1508,12 @@ export interface PoliciesApiDeleteDraftPolicyRequest {
1539
1508
  */
1540
1509
  export interface PoliciesApiGetDraftPolicyRequest {
1541
1510
  /**
1542
- *
1511
+ * Unique identifier for the object.
1543
1512
  * @type {string}
1544
1513
  * @memberof PoliciesApiGetDraftPolicy
1545
1514
  */
1546
1515
  readonly policyCode: string
1547
1516
 
1548
- /**
1549
- * Unique identifier of the Draft Policy that this object belongs to.
1550
- * @type {string}
1551
- * @memberof PoliciesApiGetDraftPolicy
1552
- */
1553
- readonly policyCode2: string
1554
-
1555
1517
  /**
1556
1518
  * Bearer Token: provided by the login endpoint under the name accessToken.
1557
1519
  * @type {string}
@@ -1589,10 +1551,10 @@ export interface PoliciesApiGetPolicyRequest {
1589
1551
 
1590
1552
  /**
1591
1553
  * You can expand policy in this endpoint. \&#39; + \&#39;By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
1592
- * @type {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'}
1554
+ * @type {string}
1593
1555
  * @memberof PoliciesApiGetPolicy
1594
1556
  */
1595
- readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'
1557
+ readonly expand?: string
1596
1558
  }
1597
1559
 
1598
1560
  /**
@@ -1820,64 +1782,57 @@ export interface PoliciesApiListPolicyVersionsRequest {
1820
1782
  }
1821
1783
 
1822
1784
  /**
1823
- * Request parameters for patchPolicy operation in PoliciesApi.
1785
+ * Request parameters for patchDraftPolicy operation in PoliciesApi.
1824
1786
  * @export
1825
- * @interface PoliciesApiPatchPolicyRequest
1787
+ * @interface PoliciesApiPatchDraftPolicyRequest
1826
1788
  */
1827
- export interface PoliciesApiPatchPolicyRequest {
1789
+ export interface PoliciesApiPatchDraftPolicyRequest {
1828
1790
  /**
1829
1791
  * Unique identifier for the object.
1830
1792
  * @type {string}
1831
- * @memberof PoliciesApiPatchPolicy
1793
+ * @memberof PoliciesApiPatchDraftPolicy
1832
1794
  */
1833
- readonly code: string
1795
+ readonly policyCode: string
1834
1796
 
1835
1797
  /**
1836
1798
  *
1837
- * @type {PatchPolicyRequestDto}
1838
- * @memberof PoliciesApiPatchPolicy
1799
+ * @type {PatchDraftPolicyRequestDto}
1800
+ * @memberof PoliciesApiPatchDraftPolicy
1839
1801
  */
1840
- readonly patchPolicyRequestDto: PatchPolicyRequestDto
1802
+ readonly patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto
1841
1803
 
1842
1804
  /**
1843
1805
  * Bearer Token: provided by the login endpoint under the name accessToken.
1844
1806
  * @type {string}
1845
- * @memberof PoliciesApiPatchPolicy
1807
+ * @memberof PoliciesApiPatchDraftPolicy
1846
1808
  */
1847
1809
  readonly authorization?: string
1848
1810
  }
1849
1811
 
1850
1812
  /**
1851
- * Request parameters for patchPolicy_2 operation in PoliciesApi.
1813
+ * Request parameters for patchPolicy operation in PoliciesApi.
1852
1814
  * @export
1853
- * @interface PoliciesApiPatchPolicy0Request
1815
+ * @interface PoliciesApiPatchPolicyRequest
1854
1816
  */
1855
- export interface PoliciesApiPatchPolicy0Request {
1856
- /**
1857
- *
1858
- * @type {string}
1859
- * @memberof PoliciesApiPatchPolicy0
1860
- */
1861
- readonly policyCode: string
1862
-
1817
+ export interface PoliciesApiPatchPolicyRequest {
1863
1818
  /**
1864
1819
  * Unique identifier for the object.
1865
- * @type {any}
1866
- * @memberof PoliciesApiPatchPolicy0
1820
+ * @type {string}
1821
+ * @memberof PoliciesApiPatchPolicy
1867
1822
  */
1868
- readonly code: any
1823
+ readonly code: string
1869
1824
 
1870
1825
  /**
1871
1826
  *
1872
- * @type {PatchDraftPolicyRequestDto}
1873
- * @memberof PoliciesApiPatchPolicy0
1827
+ * @type {PatchPolicyRequestDto}
1828
+ * @memberof PoliciesApiPatchPolicy
1874
1829
  */
1875
- readonly patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto
1830
+ readonly patchPolicyRequestDto: PatchPolicyRequestDto
1876
1831
 
1877
1832
  /**
1878
1833
  * Bearer Token: provided by the login endpoint under the name accessToken.
1879
1834
  * @type {string}
1880
- * @memberof PoliciesApiPatchPolicy0
1835
+ * @memberof PoliciesApiPatchPolicy
1881
1836
  */
1882
1837
  readonly authorization?: string
1883
1838
  }
@@ -2014,27 +1969,27 @@ export class PoliciesApi extends BaseAPI {
2014
1969
  }
2015
1970
 
2016
1971
  /**
2017
- * 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.
2018
- * @summary Create the policy
2019
- * @param {PoliciesApiCreatePolicyRequest} requestParameters Request parameters.
1972
+ * This will create a draft policy in the database.
1973
+ * @summary Create the draft-policy
1974
+ * @param {PoliciesApiCreateDraftPolicyRequest} requestParameters Request parameters.
2020
1975
  * @param {*} [options] Override http request option.
2021
1976
  * @throws {RequiredError}
2022
1977
  * @memberof PoliciesApi
2023
1978
  */
2024
- public createPolicy(requestParameters: PoliciesApiCreatePolicyRequest, options?: AxiosRequestConfig) {
2025
- return PoliciesApiFp(this.configuration).createPolicy(requestParameters.createPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1979
+ public createDraftPolicy(requestParameters: PoliciesApiCreateDraftPolicyRequest, options?: AxiosRequestConfig) {
1980
+ return PoliciesApiFp(this.configuration).createDraftPolicy(requestParameters.policyCode, requestParameters.createDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2026
1981
  }
2027
1982
 
2028
1983
  /**
2029
- * This will create a draft policy in the database.
2030
- * @summary Create the draft-policy
2031
- * @param {PoliciesApiCreatePolicy0Request} requestParameters Request parameters.
1984
+ * 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.
1985
+ * @summary Create the policy
1986
+ * @param {PoliciesApiCreatePolicyRequest} requestParameters Request parameters.
2032
1987
  * @param {*} [options] Override http request option.
2033
1988
  * @throws {RequiredError}
2034
1989
  * @memberof PoliciesApi
2035
1990
  */
2036
- public createPolicy_1(requestParameters: PoliciesApiCreatePolicy0Request, options?: AxiosRequestConfig) {
2037
- return PoliciesApiFp(this.configuration).createPolicy_1(requestParameters.policyCode, requestParameters.createDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1991
+ public createPolicy(requestParameters: PoliciesApiCreatePolicyRequest, options?: AxiosRequestConfig) {
1992
+ return PoliciesApiFp(this.configuration).createPolicy(requestParameters.createPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2038
1993
  }
2039
1994
 
2040
1995
  /**
@@ -2046,7 +2001,7 @@ export class PoliciesApi extends BaseAPI {
2046
2001
  * @memberof PoliciesApi
2047
2002
  */
2048
2003
  public deleteDraftPolicy(requestParameters: PoliciesApiDeleteDraftPolicyRequest, options?: AxiosRequestConfig) {
2049
- return PoliciesApiFp(this.configuration).deleteDraftPolicy(requestParameters.policyCode, requestParameters.policyCode2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2004
+ return PoliciesApiFp(this.configuration).deleteDraftPolicy(requestParameters.policyCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2050
2005
  }
2051
2006
 
2052
2007
  /**
@@ -2058,7 +2013,7 @@ export class PoliciesApi extends BaseAPI {
2058
2013
  * @memberof PoliciesApi
2059
2014
  */
2060
2015
  public getDraftPolicy(requestParameters: PoliciesApiGetDraftPolicyRequest, options?: AxiosRequestConfig) {
2061
- return PoliciesApiFp(this.configuration).getDraftPolicy(requestParameters.policyCode, requestParameters.policyCode2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
2016
+ return PoliciesApiFp(this.configuration).getDraftPolicy(requestParameters.policyCode, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
2062
2017
  }
2063
2018
 
2064
2019
  /**
@@ -2122,27 +2077,27 @@ export class PoliciesApi extends BaseAPI {
2122
2077
  }
2123
2078
 
2124
2079
  /**
2125
- * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2126
- * @summary Update the policy
2127
- * @param {PoliciesApiPatchPolicyRequest} requestParameters Request parameters.
2080
+ * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2081
+ * @summary Update the draft-policy
2082
+ * @param {PoliciesApiPatchDraftPolicyRequest} requestParameters Request parameters.
2128
2083
  * @param {*} [options] Override http request option.
2129
2084
  * @throws {RequiredError}
2130
2085
  * @memberof PoliciesApi
2131
2086
  */
2132
- public patchPolicy(requestParameters: PoliciesApiPatchPolicyRequest, options?: AxiosRequestConfig) {
2133
- return PoliciesApiFp(this.configuration).patchPolicy(requestParameters.code, requestParameters.patchPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2087
+ public patchDraftPolicy(requestParameters: PoliciesApiPatchDraftPolicyRequest, options?: AxiosRequestConfig) {
2088
+ return PoliciesApiFp(this.configuration).patchDraftPolicy(requestParameters.policyCode, requestParameters.patchDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2134
2089
  }
2135
2090
 
2136
2091
  /**
2137
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2138
- * @summary Update the draft-policy
2139
- * @param {PoliciesApiPatchPolicy0Request} requestParameters Request parameters.
2092
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2093
+ * @summary Update the policy
2094
+ * @param {PoliciesApiPatchPolicyRequest} requestParameters Request parameters.
2140
2095
  * @param {*} [options] Override http request option.
2141
2096
  * @throws {RequiredError}
2142
2097
  * @memberof PoliciesApi
2143
2098
  */
2144
- public patchPolicy_2(requestParameters: PoliciesApiPatchPolicy0Request, options?: AxiosRequestConfig) {
2145
- return PoliciesApiFp(this.configuration).patchPolicy_2(requestParameters.policyCode, requestParameters.code, requestParameters.patchDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2099
+ public patchPolicy(requestParameters: PoliciesApiPatchPolicyRequest, options?: AxiosRequestConfig) {
2100
+ return PoliciesApiFp(this.configuration).patchPolicy(requestParameters.code, requestParameters.patchPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2146
2101
  }
2147
2102
 
2148
2103
  /**