@emilgroup/insurance-sdk 1.76.1-beta.0 → 1.77.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 (80) hide show
  1. package/.openapi-generator/FILES +4 -14
  2. package/README.md +2 -2
  3. package/api/booking-funnels-api.ts +31 -31
  4. package/api/commission-agreement-items-api.ts +4 -4
  5. package/api/policies-api.ts +32 -32
  6. package/api/product-fields-api.ts +16 -16
  7. package/api/status-transition-rules-api.ts +31 -31
  8. package/dist/api/booking-funnels-api.d.ts +18 -18
  9. package/dist/api/booking-funnels-api.js +24 -24
  10. package/dist/api/commission-agreement-items-api.d.ts +4 -4
  11. package/dist/api/commission-agreement-items-api.js +3 -3
  12. package/dist/api/policies-api.d.ts +18 -18
  13. package/dist/api/policies-api.js +24 -24
  14. package/dist/api/product-fields-api.d.ts +9 -9
  15. package/dist/api/product-fields-api.js +12 -12
  16. package/dist/api/status-transition-rules-api.d.ts +18 -18
  17. package/dist/api/status-transition-rules-api.js +24 -24
  18. package/dist/models/create-draft-policy-request-dto.d.ts +0 -6
  19. package/dist/models/create-product-field-request-dto.d.ts +0 -22
  20. package/dist/models/create-product-field-request-dto.js +1 -9
  21. package/dist/models/index.d.ts +4 -14
  22. package/dist/models/index.js +4 -14
  23. package/dist/models/{grpc-patch-booking-funnel-request-dto.d.ts → patch-booking-funnel-request-dto.d.ts} +10 -10
  24. package/dist/models/{rest-patch-draft-policy-request-dto.d.ts → patch-draft-policy-request-dto.d.ts} +12 -12
  25. package/dist/models/{rest-patch-draft-policy-request-dto.js → patch-draft-policy-request-dto.js} +2 -2
  26. package/dist/models/patch-status-transition-rule-request-dto.d.ts +10 -4
  27. package/dist/models/product-field-class.d.ts +0 -34
  28. package/dist/models/product-field-class.js +0 -9
  29. package/dist/models/shared-product-field-class.d.ts +0 -34
  30. package/dist/models/shared-product-field-class.js +0 -9
  31. package/dist/models/{grpc-update-booking-funnel-request-dto.d.ts → update-booking-funnel-request-dto.d.ts} +10 -10
  32. package/dist/models/update-product-field-request-dto.d.ts +0 -22
  33. package/dist/models/update-product-field-request-dto.js +1 -9
  34. package/dist/models/update-status-transition-rule-request-dto.d.ts +53 -0
  35. package/dist/models/{grpc-patch-status-transition-rule-request-dto.js → update-status-transition-rule-request-dto.js} +2 -2
  36. package/models/create-draft-policy-request-dto.ts +0 -6
  37. package/models/create-product-field-request-dto.ts +0 -24
  38. package/models/index.ts +4 -14
  39. package/models/{grpc-patch-booking-funnel-request-dto.ts → patch-booking-funnel-request-dto.ts} +10 -10
  40. package/models/{rest-patch-draft-policy-request-dto.ts → patch-draft-policy-request-dto.ts} +12 -12
  41. package/models/patch-status-transition-rule-request-dto.ts +10 -4
  42. package/models/product-field-class.ts +0 -38
  43. package/models/shared-product-field-class.ts +0 -38
  44. package/models/{grpc-update-booking-funnel-request-dto.ts → update-booking-funnel-request-dto.ts} +10 -10
  45. package/models/update-product-field-request-dto.ts +0 -24
  46. package/models/{grpc-update-status-transition-rule-request-dto.ts → update-status-transition-rule-request-dto.ts} +10 -10
  47. package/package.json +1 -1
  48. package/dist/models/create-product-version-request-dto.d.ts +0 -30
  49. package/dist/models/grpc-patch-draft-policy-request-dto.d.ts +0 -76
  50. package/dist/models/grpc-patch-draft-policy-request-dto.js +0 -23
  51. package/dist/models/grpc-patch-status-transition-rule-request-dto.d.ts +0 -53
  52. package/dist/models/grpc-update-booking-funnel-request-dto.js +0 -15
  53. package/dist/models/grpc-update-status-transition-rule-request-dto.d.ts +0 -53
  54. package/dist/models/grpc-update-status-transition-rule-request-dto.js +0 -20
  55. package/dist/models/rest-create-draft-policy-request-dto.d.ts +0 -70
  56. package/dist/models/rest-create-draft-policy-request-dto.js +0 -23
  57. package/dist/models/rest-create-status-transition-rule-request-dto.d.ts +0 -47
  58. package/dist/models/rest-create-status-transition-rule-request-dto.js +0 -20
  59. package/dist/models/rest-patch-booking-funnel-request-dto.d.ts +0 -60
  60. package/dist/models/rest-patch-booking-funnel-request-dto.js +0 -15
  61. package/dist/models/rest-update-booking-funnel-request-dto.d.ts +0 -60
  62. package/dist/models/rest-update-booking-funnel-request-dto.js +0 -15
  63. package/dist/models/rest-update-product-field-request-dto.d.ts +0 -171
  64. package/dist/models/rest-update-product-field-request-dto.js +0 -28
  65. package/dist/models/rest-update-status-transition-rule-request-dto.d.ts +0 -47
  66. package/dist/models/rest-update-status-transition-rule-request-dto.js +0 -20
  67. package/dist/models/shared-delete-request-dto.d.ts +0 -24
  68. package/dist/models/shared-delete-request-dto.js +0 -15
  69. package/models/create-product-version-request-dto.ts +0 -36
  70. package/models/grpc-patch-draft-policy-request-dto.ts +0 -85
  71. package/models/grpc-patch-status-transition-rule-request-dto.ts +0 -62
  72. package/models/rest-create-draft-policy-request-dto.ts +0 -79
  73. package/models/rest-create-status-transition-rule-request-dto.ts +0 -56
  74. package/models/rest-patch-booking-funnel-request-dto.ts +0 -66
  75. package/models/rest-update-booking-funnel-request-dto.ts +0 -66
  76. package/models/rest-update-product-field-request-dto.ts +0 -182
  77. package/models/rest-update-status-transition-rule-request-dto.ts +0 -56
  78. package/models/shared-delete-request-dto.ts +0 -30
  79. /package/dist/models/{create-product-version-request-dto.js → patch-booking-funnel-request-dto.js} +0 -0
  80. /package/dist/models/{grpc-patch-booking-funnel-request-dto.js → update-booking-funnel-request-dto.js} +0 -0
@@ -87,7 +87,6 @@ models/create-product-field-request-dto.ts
87
87
  models/create-product-field-response-class.ts
88
88
  models/create-product-request-dto.ts
89
89
  models/create-product-response-class.ts
90
- models/create-product-version-request-dto.ts
91
90
  models/create-status-transition-rule-request-dto.ts
92
91
  models/create-status-transition-rule-response-class.ts
93
92
  models/csv-product-factor-dto.ts
@@ -136,11 +135,6 @@ models/get-status-transition-rule-response-class.ts
136
135
  models/grouped-product-factor-class.ts
137
136
  models/grouped-product-factor-value-class.ts
138
137
  models/grouped-product-factors-response-class.ts
139
- models/grpc-patch-booking-funnel-request-dto.ts
140
- models/grpc-patch-draft-policy-request-dto.ts
141
- models/grpc-patch-status-transition-rule-request-dto.ts
142
- models/grpc-update-booking-funnel-request-dto.ts
143
- models/grpc-update-status-transition-rule-request-dto.ts
144
138
  models/index.ts
145
139
  models/inline-response200.ts
146
140
  models/inline-response503.ts
@@ -186,7 +180,9 @@ models/omit-type-class.ts
186
180
  models/partner-class.ts
187
181
  models/partner-link-class.ts
188
182
  models/partner-role-class.ts
183
+ models/patch-booking-funnel-request-dto.ts
189
184
  models/patch-booking-funnel-response-class.ts
185
+ models/patch-draft-policy-request-dto.ts
190
186
  models/patch-lead-request-dto.ts
191
187
  models/patch-lead-response-class.ts
192
188
  models/patch-policy-request-dto.ts
@@ -212,16 +208,8 @@ models/product-field-class.ts
212
208
  models/product-field-type-class.ts
213
209
  models/product-version-class.ts
214
210
  models/rest-clone-lead-account-request-dto.ts
215
- models/rest-create-draft-policy-request-dto.ts
216
- models/rest-create-status-transition-rule-request-dto.ts
217
- models/rest-patch-booking-funnel-request-dto.ts
218
- models/rest-patch-draft-policy-request-dto.ts
219
- models/rest-update-booking-funnel-request-dto.ts
220
- models/rest-update-product-field-request-dto.ts
221
- models/rest-update-status-transition-rule-request-dto.ts
222
211
  models/sepa-dto.ts
223
212
  models/shared-create-lead-policy-request-dto.ts
224
- models/shared-delete-request-dto.ts
225
213
  models/shared-invoice-class.ts
226
214
  models/shared-lead-policy-object-dto.ts
227
215
  models/shared-product-field-class.ts
@@ -239,6 +227,7 @@ models/terminate-policy-request-dto.ts
239
227
  models/terminate-policy-response-class.ts
240
228
  models/timeslice-class.ts
241
229
  models/unlink-partner-response-class.ts
230
+ models/update-booking-funnel-request-dto.ts
242
231
  models/update-booking-funnel-response-class.ts
243
232
  models/update-commission-agreement-item-request-dto.ts
244
233
  models/update-commission-agreement-item-response-class.ts
@@ -271,6 +260,7 @@ models/update-product-request-dto.ts
271
260
  models/update-product-response-class.ts
272
261
  models/update-product-version-request-dto.ts
273
262
  models/update-product-version-response-class.ts
263
+ models/update-status-transition-rule-request-dto.ts
274
264
  models/update-status-transition-rule-response-class.ts
275
265
  models/uploaded-document-dto.ts
276
266
  models/validate-product-factors-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.76.1-beta.0 --save
20
+ npm install @emilgroup/insurance-sdk@1.77.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk@1.76.1-beta.0
24
+ yarn add @emilgroup/insurance-sdk@1.77.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -31,11 +31,11 @@ import { GetBookingFunnelResponseClass } from '../models';
31
31
  // @ts-ignore
32
32
  import { ListBookingFunnelsResponseClass } from '../models';
33
33
  // @ts-ignore
34
- import { PatchBookingFunnelResponseClass } from '../models';
34
+ import { PatchBookingFunnelRequestDto } from '../models';
35
35
  // @ts-ignore
36
- import { RestPatchBookingFunnelRequestDto } from '../models';
36
+ import { PatchBookingFunnelResponseClass } from '../models';
37
37
  // @ts-ignore
38
- import { RestUpdateBookingFunnelRequestDto } from '../models';
38
+ import { UpdateBookingFunnelRequestDto } from '../models';
39
39
  // @ts-ignore
40
40
  import { UpdateBookingFunnelResponseClass } from '../models';
41
41
  /**
@@ -260,16 +260,16 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
260
260
  /**
261
261
  * This will patch a booking funnel. **Required Permissions** \"policy-management.products.update\"
262
262
  * @param {string} code
263
- * @param {RestPatchBookingFunnelRequestDto} restPatchBookingFunnelRequestDto
263
+ * @param {PatchBookingFunnelRequestDto} patchBookingFunnelRequestDto
264
264
  * @param {string} [authorization] Bearer Token
265
265
  * @param {*} [options] Override http request option.
266
266
  * @throws {RequiredError}
267
267
  */
268
- patchBookingFunnel: async (code: string, restPatchBookingFunnelRequestDto: RestPatchBookingFunnelRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
268
+ patchBookingFunnel: async (code: string, patchBookingFunnelRequestDto: PatchBookingFunnelRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
269
269
  // verify required parameter 'code' is not null or undefined
270
270
  assertParamExists('patchBookingFunnel', 'code', code)
271
- // verify required parameter 'restPatchBookingFunnelRequestDto' is not null or undefined
272
- assertParamExists('patchBookingFunnel', 'restPatchBookingFunnelRequestDto', restPatchBookingFunnelRequestDto)
271
+ // verify required parameter 'patchBookingFunnelRequestDto' is not null or undefined
272
+ assertParamExists('patchBookingFunnel', 'patchBookingFunnelRequestDto', patchBookingFunnelRequestDto)
273
273
  const localVarPath = `/insuranceservice/v1/booking-funnels/{code}`
274
274
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
275
275
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -300,7 +300,7 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
300
300
  setSearchParams(localVarUrlObj, localVarQueryParameter);
301
301
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
302
302
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
303
- localVarRequestOptions.data = serializeDataIfNeeded(restPatchBookingFunnelRequestDto, localVarRequestOptions, configuration)
303
+ localVarRequestOptions.data = serializeDataIfNeeded(patchBookingFunnelRequestDto, localVarRequestOptions, configuration)
304
304
 
305
305
  return {
306
306
  url: toPathString(localVarUrlObj),
@@ -311,16 +311,16 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
311
311
  * This will update a booking funnel. **Required Permissions** \"policy-management.products.update\"
312
312
  * @summary Update the booking funnel
313
313
  * @param {string} code
314
- * @param {RestUpdateBookingFunnelRequestDto} restUpdateBookingFunnelRequestDto
314
+ * @param {UpdateBookingFunnelRequestDto} updateBookingFunnelRequestDto
315
315
  * @param {string} [authorization] Bearer Token
316
316
  * @param {*} [options] Override http request option.
317
317
  * @throws {RequiredError}
318
318
  */
319
- updateBookingFunnel: async (code: string, restUpdateBookingFunnelRequestDto: RestUpdateBookingFunnelRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
319
+ updateBookingFunnel: async (code: string, updateBookingFunnelRequestDto: UpdateBookingFunnelRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
320
320
  // verify required parameter 'code' is not null or undefined
321
321
  assertParamExists('updateBookingFunnel', 'code', code)
322
- // verify required parameter 'restUpdateBookingFunnelRequestDto' is not null or undefined
323
- assertParamExists('updateBookingFunnel', 'restUpdateBookingFunnelRequestDto', restUpdateBookingFunnelRequestDto)
322
+ // verify required parameter 'updateBookingFunnelRequestDto' is not null or undefined
323
+ assertParamExists('updateBookingFunnel', 'updateBookingFunnelRequestDto', updateBookingFunnelRequestDto)
324
324
  const localVarPath = `/insuranceservice/v1/booking-funnels/{code}`
325
325
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
326
326
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -351,7 +351,7 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
351
351
  setSearchParams(localVarUrlObj, localVarQueryParameter);
352
352
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
353
353
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
354
- localVarRequestOptions.data = serializeDataIfNeeded(restUpdateBookingFunnelRequestDto, localVarRequestOptions, configuration)
354
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBookingFunnelRequestDto, localVarRequestOptions, configuration)
355
355
 
356
356
  return {
357
357
  url: toPathString(localVarUrlObj),
@@ -425,26 +425,26 @@ export const BookingFunnelsApiFp = function(configuration?: Configuration) {
425
425
  /**
426
426
  * This will patch a booking funnel. **Required Permissions** \"policy-management.products.update\"
427
427
  * @param {string} code
428
- * @param {RestPatchBookingFunnelRequestDto} restPatchBookingFunnelRequestDto
428
+ * @param {PatchBookingFunnelRequestDto} patchBookingFunnelRequestDto
429
429
  * @param {string} [authorization] Bearer Token
430
430
  * @param {*} [options] Override http request option.
431
431
  * @throws {RequiredError}
432
432
  */
433
- async patchBookingFunnel(code: string, restPatchBookingFunnelRequestDto: RestPatchBookingFunnelRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchBookingFunnelResponseClass>> {
434
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchBookingFunnel(code, restPatchBookingFunnelRequestDto, authorization, options);
433
+ async patchBookingFunnel(code: string, patchBookingFunnelRequestDto: PatchBookingFunnelRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchBookingFunnelResponseClass>> {
434
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchBookingFunnel(code, patchBookingFunnelRequestDto, authorization, options);
435
435
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
436
436
  },
437
437
  /**
438
438
  * This will update a booking funnel. **Required Permissions** \"policy-management.products.update\"
439
439
  * @summary Update the booking funnel
440
440
  * @param {string} code
441
- * @param {RestUpdateBookingFunnelRequestDto} restUpdateBookingFunnelRequestDto
441
+ * @param {UpdateBookingFunnelRequestDto} updateBookingFunnelRequestDto
442
442
  * @param {string} [authorization] Bearer Token
443
443
  * @param {*} [options] Override http request option.
444
444
  * @throws {RequiredError}
445
445
  */
446
- async updateBookingFunnel(code: string, restUpdateBookingFunnelRequestDto: RestUpdateBookingFunnelRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBookingFunnelResponseClass>> {
447
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingFunnel(code, restUpdateBookingFunnelRequestDto, authorization, options);
446
+ async updateBookingFunnel(code: string, updateBookingFunnelRequestDto: UpdateBookingFunnelRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBookingFunnelResponseClass>> {
447
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingFunnel(code, updateBookingFunnelRequestDto, authorization, options);
448
448
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
449
449
  },
450
450
  }
@@ -510,25 +510,25 @@ export const BookingFunnelsApiFactory = function (configuration?: Configuration,
510
510
  /**
511
511
  * This will patch a booking funnel. **Required Permissions** \"policy-management.products.update\"
512
512
  * @param {string} code
513
- * @param {RestPatchBookingFunnelRequestDto} restPatchBookingFunnelRequestDto
513
+ * @param {PatchBookingFunnelRequestDto} patchBookingFunnelRequestDto
514
514
  * @param {string} [authorization] Bearer Token
515
515
  * @param {*} [options] Override http request option.
516
516
  * @throws {RequiredError}
517
517
  */
518
- patchBookingFunnel(code: string, restPatchBookingFunnelRequestDto: RestPatchBookingFunnelRequestDto, authorization?: string, options?: any): AxiosPromise<PatchBookingFunnelResponseClass> {
519
- return localVarFp.patchBookingFunnel(code, restPatchBookingFunnelRequestDto, authorization, options).then((request) => request(axios, basePath));
518
+ patchBookingFunnel(code: string, patchBookingFunnelRequestDto: PatchBookingFunnelRequestDto, authorization?: string, options?: any): AxiosPromise<PatchBookingFunnelResponseClass> {
519
+ return localVarFp.patchBookingFunnel(code, patchBookingFunnelRequestDto, authorization, options).then((request) => request(axios, basePath));
520
520
  },
521
521
  /**
522
522
  * This will update a booking funnel. **Required Permissions** \"policy-management.products.update\"
523
523
  * @summary Update the booking funnel
524
524
  * @param {string} code
525
- * @param {RestUpdateBookingFunnelRequestDto} restUpdateBookingFunnelRequestDto
525
+ * @param {UpdateBookingFunnelRequestDto} updateBookingFunnelRequestDto
526
526
  * @param {string} [authorization] Bearer Token
527
527
  * @param {*} [options] Override http request option.
528
528
  * @throws {RequiredError}
529
529
  */
530
- updateBookingFunnel(code: string, restUpdateBookingFunnelRequestDto: RestUpdateBookingFunnelRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBookingFunnelResponseClass> {
531
- return localVarFp.updateBookingFunnel(code, restUpdateBookingFunnelRequestDto, authorization, options).then((request) => request(axios, basePath));
530
+ updateBookingFunnel(code: string, updateBookingFunnelRequestDto: UpdateBookingFunnelRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBookingFunnelResponseClass> {
531
+ return localVarFp.updateBookingFunnel(code, updateBookingFunnelRequestDto, authorization, options).then((request) => request(axios, basePath));
532
532
  },
533
533
  };
534
534
  };
@@ -674,10 +674,10 @@ export interface BookingFunnelsApiPatchBookingFunnelRequest {
674
674
 
675
675
  /**
676
676
  *
677
- * @type {RestPatchBookingFunnelRequestDto}
677
+ * @type {PatchBookingFunnelRequestDto}
678
678
  * @memberof BookingFunnelsApiPatchBookingFunnel
679
679
  */
680
- readonly restPatchBookingFunnelRequestDto: RestPatchBookingFunnelRequestDto
680
+ readonly patchBookingFunnelRequestDto: PatchBookingFunnelRequestDto
681
681
 
682
682
  /**
683
683
  * Bearer Token
@@ -702,10 +702,10 @@ export interface BookingFunnelsApiUpdateBookingFunnelRequest {
702
702
 
703
703
  /**
704
704
  *
705
- * @type {RestUpdateBookingFunnelRequestDto}
705
+ * @type {UpdateBookingFunnelRequestDto}
706
706
  * @memberof BookingFunnelsApiUpdateBookingFunnel
707
707
  */
708
- readonly restUpdateBookingFunnelRequestDto: RestUpdateBookingFunnelRequestDto
708
+ readonly updateBookingFunnelRequestDto: UpdateBookingFunnelRequestDto
709
709
 
710
710
  /**
711
711
  * Bearer Token
@@ -778,7 +778,7 @@ export class BookingFunnelsApi extends BaseAPI {
778
778
  * @memberof BookingFunnelsApi
779
779
  */
780
780
  public patchBookingFunnel(requestParameters: BookingFunnelsApiPatchBookingFunnelRequest, options?: AxiosRequestConfig) {
781
- return BookingFunnelsApiFp(this.configuration).patchBookingFunnel(requestParameters.code, requestParameters.restPatchBookingFunnelRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
781
+ return BookingFunnelsApiFp(this.configuration).patchBookingFunnel(requestParameters.code, requestParameters.patchBookingFunnelRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
782
782
  }
783
783
 
784
784
  /**
@@ -790,6 +790,6 @@ export class BookingFunnelsApi extends BaseAPI {
790
790
  * @memberof BookingFunnelsApi
791
791
  */
792
792
  public updateBookingFunnel(requestParameters: BookingFunnelsApiUpdateBookingFunnelRequest, options?: AxiosRequestConfig) {
793
- return BookingFunnelsApiFp(this.configuration).updateBookingFunnel(requestParameters.code, requestParameters.restUpdateBookingFunnelRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
793
+ return BookingFunnelsApiFp(this.configuration).updateBookingFunnel(requestParameters.code, requestParameters.updateBookingFunnelRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
794
794
  }
795
795
  }
@@ -196,7 +196,7 @@ export const CommissionAgreementItemsApiAxiosParamCreator = function (configurat
196
196
  * @param {string} [pageToken] Page token.
197
197
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
198
198
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: itemName, itemDescription, commissionFormula, code&lt;/i&gt;
199
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, itemName, itemDescription, commissionFormula, code, createdAt, updatedAt&lt;/i&gt;
199
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt&lt;/i&gt;
200
200
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
201
201
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
202
202
  * @param {*} [options] Override http request option.
@@ -371,7 +371,7 @@ export const CommissionAgreementItemsApiFp = function(configuration?: Configurat
371
371
  * @param {string} [pageToken] Page token.
372
372
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
373
373
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: itemName, itemDescription, commissionFormula, code&lt;/i&gt;
374
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, itemName, itemDescription, commissionFormula, code, createdAt, updatedAt&lt;/i&gt;
374
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt&lt;/i&gt;
375
375
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
376
376
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
377
377
  * @param {*} [options] Override http request option.
@@ -447,7 +447,7 @@ export const CommissionAgreementItemsApiFactory = function (configuration?: Conf
447
447
  * @param {string} [pageToken] Page token.
448
448
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
449
449
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: itemName, itemDescription, commissionFormula, code&lt;/i&gt;
450
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, itemName, itemDescription, commissionFormula, code, createdAt, updatedAt&lt;/i&gt;
450
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt&lt;/i&gt;
451
451
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
452
452
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, itemName, itemDescription, commissionFormula, commissionAgreementVersionId&lt;/i&gt;
453
453
  * @param {*} [options] Override http request option.
@@ -590,7 +590,7 @@ export interface CommissionAgreementItemsApiListCommissionAgreementItemsRequest
590
590
  readonly search?: string
591
591
 
592
592
  /**
593
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, itemName, itemDescription, commissionFormula, code, createdAt, updatedAt&lt;/i&gt;
593
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, itemName, itemDescription, commissionFormula, code, , createdAt, updatedAt&lt;/i&gt;
594
594
  * @type {string}
595
595
  * @memberof CommissionAgreementItemsApiListCommissionAgreementItems
596
596
  */
@@ -25,6 +25,8 @@ import { ActivatePolicyRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { ActivatePolicyResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { CreateDraftPolicyRequestDto } from '../models';
29
+ // @ts-ignore
28
30
  import { CreatePolicyRequestDto } from '../models';
29
31
  // @ts-ignore
30
32
  import { CreatePolicyResponseClass } from '../models';
@@ -39,14 +41,12 @@ import { ListPolicyObjectsResponseClass } from '../models';
39
41
  // @ts-ignore
40
42
  import { ListPolicyVersionResponseClass } from '../models';
41
43
  // @ts-ignore
44
+ import { PatchDraftPolicyRequestDto } from '../models';
45
+ // @ts-ignore
42
46
  import { PatchPolicyRequestDto } from '../models';
43
47
  // @ts-ignore
44
48
  import { PatchPolicyResponseClass } from '../models';
45
49
  // @ts-ignore
46
- import { RestCreateDraftPolicyRequestDto } from '../models';
47
- // @ts-ignore
48
- import { RestPatchDraftPolicyRequestDto } from '../models';
49
- // @ts-ignore
50
50
  import { SuspendPolicyRequestDto } from '../models';
51
51
  // @ts-ignore
52
52
  import { SuspendPolicyResponseClass } from '../models';
@@ -121,16 +121,16 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
121
121
  * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
122
122
  * @summary Create the draft-policy
123
123
  * @param {string} policyCode Unique identifier for the object.
124
- * @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
124
+ * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
125
125
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
126
126
  * @param {*} [options] Override http request option.
127
127
  * @throws {RequiredError}
128
128
  */
129
- createDraftPolicy: async (policyCode: string, restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
129
+ createDraftPolicy: async (policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
130
130
  // verify required parameter 'policyCode' is not null or undefined
131
131
  assertParamExists('createDraftPolicy', 'policyCode', policyCode)
132
- // verify required parameter 'restCreateDraftPolicyRequestDto' is not null or undefined
133
- assertParamExists('createDraftPolicy', 'restCreateDraftPolicyRequestDto', restCreateDraftPolicyRequestDto)
132
+ // verify required parameter 'createDraftPolicyRequestDto' is not null or undefined
133
+ assertParamExists('createDraftPolicy', 'createDraftPolicyRequestDto', createDraftPolicyRequestDto)
134
134
  const localVarPath = `/insuranceservice/v1/policies/{policyCode}/draft`
135
135
  .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
136
136
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -161,7 +161,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
161
161
  setSearchParams(localVarUrlObj, localVarQueryParameter);
162
162
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
163
163
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
164
- localVarRequestOptions.data = serializeDataIfNeeded(restCreateDraftPolicyRequestDto, localVarRequestOptions, configuration)
164
+ localVarRequestOptions.data = serializeDataIfNeeded(createDraftPolicyRequestDto, localVarRequestOptions, configuration)
165
165
 
166
166
  return {
167
167
  url: toPathString(localVarUrlObj),
@@ -651,16 +651,16 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
651
651
  * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
652
652
  * @summary Update the draft-policy
653
653
  * @param {string} policyCode Unique identifier for the object.
654
- * @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
654
+ * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
655
655
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
656
656
  * @param {*} [options] Override http request option.
657
657
  * @throws {RequiredError}
658
658
  */
659
- patchDraftPolicy: async (policyCode: string, restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
659
+ patchDraftPolicy: async (policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
660
660
  // verify required parameter 'policyCode' is not null or undefined
661
661
  assertParamExists('patchDraftPolicy', 'policyCode', policyCode)
662
- // verify required parameter 'restPatchDraftPolicyRequestDto' is not null or undefined
663
- assertParamExists('patchDraftPolicy', 'restPatchDraftPolicyRequestDto', restPatchDraftPolicyRequestDto)
662
+ // verify required parameter 'patchDraftPolicyRequestDto' is not null or undefined
663
+ assertParamExists('patchDraftPolicy', 'patchDraftPolicyRequestDto', patchDraftPolicyRequestDto)
664
664
  const localVarPath = `/insuranceservice/v1/policies/{policyCode}/draft`
665
665
  .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
666
666
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -691,7 +691,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
691
691
  setSearchParams(localVarUrlObj, localVarQueryParameter);
692
692
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
693
693
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
694
- localVarRequestOptions.data = serializeDataIfNeeded(restPatchDraftPolicyRequestDto, localVarRequestOptions, configuration)
694
+ localVarRequestOptions.data = serializeDataIfNeeded(patchDraftPolicyRequestDto, localVarRequestOptions, configuration)
695
695
 
696
696
  return {
697
697
  url: toPathString(localVarUrlObj),
@@ -980,13 +980,13 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
980
980
  * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
981
981
  * @summary Create the draft-policy
982
982
  * @param {string} policyCode Unique identifier for the object.
983
- * @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
983
+ * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
984
984
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
985
985
  * @param {*} [options] Override http request option.
986
986
  * @throws {RequiredError}
987
987
  */
988
- async createDraftPolicy(policyCode: string, restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>> {
989
- const localVarAxiosArgs = await localVarAxiosParamCreator.createDraftPolicy(policyCode, restCreateDraftPolicyRequestDto, authorization, options);
988
+ async createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>> {
989
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createDraftPolicy(policyCode, createDraftPolicyRequestDto, authorization, options);
990
990
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
991
991
  },
992
992
  /**
@@ -1112,13 +1112,13 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1112
1112
  * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
1113
1113
  * @summary Update the draft-policy
1114
1114
  * @param {string} policyCode Unique identifier for the object.
1115
- * @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
1115
+ * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
1116
1116
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1117
1117
  * @param {*} [options] Override http request option.
1118
1118
  * @throws {RequiredError}
1119
1119
  */
1120
- async patchDraftPolicy(policyCode: string, restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>> {
1121
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchDraftPolicy(policyCode, restPatchDraftPolicyRequestDto, authorization, options);
1120
+ async patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>> {
1121
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchDraftPolicy(policyCode, patchDraftPolicyRequestDto, authorization, options);
1122
1122
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1123
1123
  },
1124
1124
  /**
@@ -1212,13 +1212,13 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1212
1212
  * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
1213
1213
  * @summary Create the draft-policy
1214
1214
  * @param {string} policyCode Unique identifier for the object.
1215
- * @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
1215
+ * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
1216
1216
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1217
1217
  * @param {*} [options] Override http request option.
1218
1218
  * @throws {RequiredError}
1219
1219
  */
1220
- createDraftPolicy(policyCode: string, restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass> {
1221
- return localVarFp.createDraftPolicy(policyCode, restCreateDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1220
+ createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass> {
1221
+ return localVarFp.createDraftPolicy(policyCode, createDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1222
1222
  },
1223
1223
  /**
1224
1224
  * 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. **Required Permissions** \"policy-management.policies.create\"
@@ -1335,13 +1335,13 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1335
1335
  * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
1336
1336
  * @summary Update the draft-policy
1337
1337
  * @param {string} policyCode Unique identifier for the object.
1338
- * @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
1338
+ * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
1339
1339
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1340
1340
  * @param {*} [options] Override http request option.
1341
1341
  * @throws {RequiredError}
1342
1342
  */
1343
- patchDraftPolicy(policyCode: string, restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass> {
1344
- return localVarFp.patchDraftPolicy(policyCode, restPatchDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1343
+ patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass> {
1344
+ return localVarFp.patchDraftPolicy(policyCode, patchDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1345
1345
  },
1346
1346
  /**
1347
1347
  * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
@@ -1449,10 +1449,10 @@ export interface PoliciesApiCreateDraftPolicyRequest {
1449
1449
 
1450
1450
  /**
1451
1451
  *
1452
- * @type {RestCreateDraftPolicyRequestDto}
1452
+ * @type {CreateDraftPolicyRequestDto}
1453
1453
  * @memberof PoliciesApiCreateDraftPolicy
1454
1454
  */
1455
- readonly restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto
1455
+ readonly createDraftPolicyRequestDto: CreateDraftPolicyRequestDto
1456
1456
 
1457
1457
  /**
1458
1458
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -1806,10 +1806,10 @@ export interface PoliciesApiPatchDraftPolicyRequest {
1806
1806
 
1807
1807
  /**
1808
1808
  *
1809
- * @type {RestPatchDraftPolicyRequestDto}
1809
+ * @type {PatchDraftPolicyRequestDto}
1810
1810
  * @memberof PoliciesApiPatchDraftPolicy
1811
1811
  */
1812
- readonly restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto
1812
+ readonly patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto
1813
1813
 
1814
1814
  /**
1815
1815
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -1987,7 +1987,7 @@ export class PoliciesApi extends BaseAPI {
1987
1987
  * @memberof PoliciesApi
1988
1988
  */
1989
1989
  public createDraftPolicy(requestParameters: PoliciesApiCreateDraftPolicyRequest, options?: AxiosRequestConfig) {
1990
- return PoliciesApiFp(this.configuration).createDraftPolicy(requestParameters.policyCode, requestParameters.restCreateDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1990
+ return PoliciesApiFp(this.configuration).createDraftPolicy(requestParameters.policyCode, requestParameters.createDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1991
1991
  }
1992
1992
 
1993
1993
  /**
@@ -2095,7 +2095,7 @@ export class PoliciesApi extends BaseAPI {
2095
2095
  * @memberof PoliciesApi
2096
2096
  */
2097
2097
  public patchDraftPolicy(requestParameters: PoliciesApiPatchDraftPolicyRequest, options?: AxiosRequestConfig) {
2098
- return PoliciesApiFp(this.configuration).patchDraftPolicy(requestParameters.policyCode, requestParameters.restPatchDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2098
+ return PoliciesApiFp(this.configuration).patchDraftPolicy(requestParameters.policyCode, requestParameters.patchDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2099
2099
  }
2100
2100
 
2101
2101
  /**
@@ -35,10 +35,10 @@ import { ListProductFieldTypesResponseClass } from '../models';
35
35
  // @ts-ignore
36
36
  import { ListProductFieldsResponseClass } from '../models';
37
37
  // @ts-ignore
38
- import { RestUpdateProductFieldRequestDto } from '../models';
39
- // @ts-ignore
40
38
  import { SwapProductFieldsOrderRequestDto } from '../models';
41
39
  // @ts-ignore
40
+ import { UpdateProductFieldRequestDto } from '../models';
41
+ // @ts-ignore
42
42
  import { UpdateProductFieldResponseClass } from '../models';
43
43
  /**
44
44
  * ProductFieldsApi - axios parameter creator
@@ -386,16 +386,16 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration?: Confi
386
386
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
387
387
  * @summary Update the product
388
388
  * @param {number} id
389
- * @param {RestUpdateProductFieldRequestDto} restUpdateProductFieldRequestDto
389
+ * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
390
390
  * @param {string} [authorization] Bearer Token
391
391
  * @param {*} [options] Override http request option.
392
392
  * @throws {RequiredError}
393
393
  */
394
- updateProductField: async (id: number, restUpdateProductFieldRequestDto: RestUpdateProductFieldRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
394
+ updateProductField: async (id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
395
395
  // verify required parameter 'id' is not null or undefined
396
396
  assertParamExists('updateProductField', 'id', id)
397
- // verify required parameter 'restUpdateProductFieldRequestDto' is not null or undefined
398
- assertParamExists('updateProductField', 'restUpdateProductFieldRequestDto', restUpdateProductFieldRequestDto)
397
+ // verify required parameter 'updateProductFieldRequestDto' is not null or undefined
398
+ assertParamExists('updateProductField', 'updateProductFieldRequestDto', updateProductFieldRequestDto)
399
399
  const localVarPath = `/insuranceservice/v1/product-fields/{id}`
400
400
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
401
401
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -426,7 +426,7 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration?: Confi
426
426
  setSearchParams(localVarUrlObj, localVarQueryParameter);
427
427
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
428
428
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
429
- localVarRequestOptions.data = serializeDataIfNeeded(restUpdateProductFieldRequestDto, localVarRequestOptions, configuration)
429
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProductFieldRequestDto, localVarRequestOptions, configuration)
430
430
 
431
431
  return {
432
432
  url: toPathString(localVarUrlObj),
@@ -531,13 +531,13 @@ export const ProductFieldsApiFp = function(configuration?: Configuration) {
531
531
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
532
532
  * @summary Update the product
533
533
  * @param {number} id
534
- * @param {RestUpdateProductFieldRequestDto} restUpdateProductFieldRequestDto
534
+ * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
535
535
  * @param {string} [authorization] Bearer Token
536
536
  * @param {*} [options] Override http request option.
537
537
  * @throws {RequiredError}
538
538
  */
539
- async updateProductField(id: number, restUpdateProductFieldRequestDto: RestUpdateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductFieldResponseClass>> {
540
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductField(id, restUpdateProductFieldRequestDto, authorization, options);
539
+ async updateProductField(id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductFieldResponseClass>> {
540
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductField(id, updateProductFieldRequestDto, authorization, options);
541
541
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
542
542
  },
543
543
  }
@@ -632,13 +632,13 @@ export const ProductFieldsApiFactory = function (configuration?: Configuration,
632
632
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
633
633
  * @summary Update the product
634
634
  * @param {number} id
635
- * @param {RestUpdateProductFieldRequestDto} restUpdateProductFieldRequestDto
635
+ * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
636
636
  * @param {string} [authorization] Bearer Token
637
637
  * @param {*} [options] Override http request option.
638
638
  * @throws {RequiredError}
639
639
  */
640
- updateProductField(id: number, restUpdateProductFieldRequestDto: RestUpdateProductFieldRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductFieldResponseClass> {
641
- return localVarFp.updateProductField(id, restUpdateProductFieldRequestDto, authorization, options).then((request) => request(axios, basePath));
640
+ updateProductField(id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductFieldResponseClass> {
641
+ return localVarFp.updateProductField(id, updateProductFieldRequestDto, authorization, options).then((request) => request(axios, basePath));
642
642
  },
643
643
  };
644
644
  };
@@ -868,10 +868,10 @@ export interface ProductFieldsApiUpdateProductFieldRequest {
868
868
 
869
869
  /**
870
870
  *
871
- * @type {RestUpdateProductFieldRequestDto}
871
+ * @type {UpdateProductFieldRequestDto}
872
872
  * @memberof ProductFieldsApiUpdateProductField
873
873
  */
874
- readonly restUpdateProductFieldRequestDto: RestUpdateProductFieldRequestDto
874
+ readonly updateProductFieldRequestDto: UpdateProductFieldRequestDto
875
875
 
876
876
  /**
877
877
  * Bearer Token
@@ -969,6 +969,6 @@ export class ProductFieldsApi extends BaseAPI {
969
969
  * @memberof ProductFieldsApi
970
970
  */
971
971
  public updateProductField(requestParameters: ProductFieldsApiUpdateProductFieldRequest, options?: AxiosRequestConfig) {
972
- return ProductFieldsApiFp(this.configuration).updateProductField(requestParameters.id, requestParameters.restUpdateProductFieldRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
972
+ return ProductFieldsApiFp(this.configuration).updateProductField(requestParameters.id, requestParameters.updateProductFieldRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
973
973
  }
974
974
  }