@emilgroup/insurance-sdk-node 1.76.0 → 1.76.1-beta.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 +14 -4
  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 +6 -0
  19. package/dist/models/create-product-field-request-dto.d.ts +22 -0
  20. package/dist/models/create-product-field-request-dto.js +9 -1
  21. package/dist/models/create-product-version-request-dto.d.ts +30 -0
  22. package/dist/models/{patch-booking-funnel-request-dto.d.ts → grpc-patch-booking-funnel-request-dto.d.ts} +10 -10
  23. package/dist/models/grpc-patch-draft-policy-request-dto.d.ts +76 -0
  24. package/dist/models/{patch-draft-policy-request-dto.js → grpc-patch-draft-policy-request-dto.js} +2 -2
  25. package/dist/models/grpc-patch-status-transition-rule-request-dto.d.ts +53 -0
  26. package/dist/models/{update-status-transition-rule-request-dto.js → grpc-patch-status-transition-rule-request-dto.js} +2 -2
  27. package/dist/models/{update-booking-funnel-request-dto.d.ts → grpc-update-booking-funnel-request-dto.d.ts} +10 -10
  28. package/dist/models/grpc-update-booking-funnel-request-dto.js +15 -0
  29. package/dist/models/grpc-update-status-transition-rule-request-dto.d.ts +53 -0
  30. package/dist/models/grpc-update-status-transition-rule-request-dto.js +20 -0
  31. package/dist/models/index.d.ts +14 -4
  32. package/dist/models/index.js +14 -4
  33. package/dist/models/patch-status-transition-rule-request-dto.d.ts +4 -10
  34. package/dist/models/product-field-class.d.ts +34 -0
  35. package/dist/models/product-field-class.js +9 -0
  36. package/dist/models/rest-create-draft-policy-request-dto.d.ts +70 -0
  37. package/dist/models/rest-create-draft-policy-request-dto.js +23 -0
  38. package/dist/models/rest-create-status-transition-rule-request-dto.d.ts +47 -0
  39. package/dist/models/rest-create-status-transition-rule-request-dto.js +20 -0
  40. package/dist/models/rest-patch-booking-funnel-request-dto.d.ts +60 -0
  41. package/dist/models/rest-patch-booking-funnel-request-dto.js +15 -0
  42. package/dist/models/{patch-draft-policy-request-dto.d.ts → rest-patch-draft-policy-request-dto.d.ts} +12 -12
  43. package/dist/models/rest-patch-draft-policy-request-dto.js +23 -0
  44. package/dist/models/rest-update-booking-funnel-request-dto.d.ts +60 -0
  45. package/dist/models/rest-update-booking-funnel-request-dto.js +15 -0
  46. package/dist/models/rest-update-product-field-request-dto.d.ts +171 -0
  47. package/dist/models/rest-update-product-field-request-dto.js +28 -0
  48. package/dist/models/rest-update-status-transition-rule-request-dto.d.ts +47 -0
  49. package/dist/models/rest-update-status-transition-rule-request-dto.js +20 -0
  50. package/dist/models/shared-delete-request-dto.d.ts +24 -0
  51. package/dist/models/shared-delete-request-dto.js +15 -0
  52. package/dist/models/shared-product-field-class.d.ts +34 -0
  53. package/dist/models/shared-product-field-class.js +9 -0
  54. package/dist/models/update-product-field-request-dto.d.ts +22 -0
  55. package/dist/models/update-product-field-request-dto.js +9 -1
  56. package/models/create-draft-policy-request-dto.ts +6 -0
  57. package/models/create-product-field-request-dto.ts +24 -0
  58. package/models/create-product-version-request-dto.ts +36 -0
  59. package/models/{patch-booking-funnel-request-dto.ts → grpc-patch-booking-funnel-request-dto.ts} +10 -10
  60. package/models/grpc-patch-draft-policy-request-dto.ts +85 -0
  61. package/models/grpc-patch-status-transition-rule-request-dto.ts +62 -0
  62. package/models/{update-booking-funnel-request-dto.ts → grpc-update-booking-funnel-request-dto.ts} +10 -10
  63. package/models/{update-status-transition-rule-request-dto.ts → grpc-update-status-transition-rule-request-dto.ts} +10 -10
  64. package/models/index.ts +14 -4
  65. package/models/patch-status-transition-rule-request-dto.ts +4 -10
  66. package/models/product-field-class.ts +38 -0
  67. package/models/rest-create-draft-policy-request-dto.ts +79 -0
  68. package/models/rest-create-status-transition-rule-request-dto.ts +56 -0
  69. package/models/rest-patch-booking-funnel-request-dto.ts +66 -0
  70. package/models/{patch-draft-policy-request-dto.ts → rest-patch-draft-policy-request-dto.ts} +12 -12
  71. package/models/rest-update-booking-funnel-request-dto.ts +66 -0
  72. package/models/rest-update-product-field-request-dto.ts +182 -0
  73. package/models/rest-update-status-transition-rule-request-dto.ts +56 -0
  74. package/models/shared-delete-request-dto.ts +30 -0
  75. package/models/shared-product-field-class.ts +38 -0
  76. package/models/update-product-field-request-dto.ts +24 -0
  77. package/package.json +1 -1
  78. package/dist/models/update-status-transition-rule-request-dto.d.ts +0 -53
  79. /package/dist/models/{patch-booking-funnel-request-dto.js → create-product-version-request-dto.js} +0 -0
  80. /package/dist/models/{update-booking-funnel-request-dto.js → grpc-patch-booking-funnel-request-dto.js} +0 -0
@@ -87,6 +87,7 @@ 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
90
91
  models/create-status-transition-rule-request-dto.ts
91
92
  models/create-status-transition-rule-response-class.ts
92
93
  models/csv-product-factor-dto.ts
@@ -135,6 +136,11 @@ models/get-status-transition-rule-response-class.ts
135
136
  models/grouped-product-factor-class.ts
136
137
  models/grouped-product-factor-value-class.ts
137
138
  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
138
144
  models/index.ts
139
145
  models/inline-response200.ts
140
146
  models/inline-response503.ts
@@ -180,9 +186,7 @@ models/omit-type-class.ts
180
186
  models/partner-class.ts
181
187
  models/partner-link-class.ts
182
188
  models/partner-role-class.ts
183
- models/patch-booking-funnel-request-dto.ts
184
189
  models/patch-booking-funnel-response-class.ts
185
- models/patch-draft-policy-request-dto.ts
186
190
  models/patch-lead-request-dto.ts
187
191
  models/patch-lead-response-class.ts
188
192
  models/patch-policy-request-dto.ts
@@ -208,8 +212,16 @@ models/product-field-class.ts
208
212
  models/product-field-type-class.ts
209
213
  models/product-version-class.ts
210
214
  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
211
222
  models/sepa-dto.ts
212
223
  models/shared-create-lead-policy-request-dto.ts
224
+ models/shared-delete-request-dto.ts
213
225
  models/shared-invoice-class.ts
214
226
  models/shared-lead-policy-object-dto.ts
215
227
  models/shared-product-field-class.ts
@@ -227,7 +239,6 @@ models/terminate-policy-request-dto.ts
227
239
  models/terminate-policy-response-class.ts
228
240
  models/timeslice-class.ts
229
241
  models/unlink-partner-response-class.ts
230
- models/update-booking-funnel-request-dto.ts
231
242
  models/update-booking-funnel-response-class.ts
232
243
  models/update-commission-agreement-item-request-dto.ts
233
244
  models/update-commission-agreement-item-response-class.ts
@@ -260,7 +271,6 @@ models/update-product-request-dto.ts
260
271
  models/update-product-response-class.ts
261
272
  models/update-product-version-request-dto.ts
262
273
  models/update-product-version-response-class.ts
263
- models/update-status-transition-rule-request-dto.ts
264
274
  models/update-status-transition-rule-response-class.ts
265
275
  models/uploaded-document-dto.ts
266
276
  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-node@1.76.0 --save
20
+ npm install @emilgroup/insurance-sdk-node@1.76.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk-node@1.76.0
24
+ yarn add @emilgroup/insurance-sdk-node@1.76.1-beta.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 { PatchBookingFunnelRequestDto } from '../models';
35
- // @ts-ignore
36
34
  import { PatchBookingFunnelResponseClass } from '../models';
37
35
  // @ts-ignore
38
- import { UpdateBookingFunnelRequestDto } from '../models';
36
+ import { RestPatchBookingFunnelRequestDto } from '../models';
37
+ // @ts-ignore
38
+ import { RestUpdateBookingFunnelRequestDto } from '../models';
39
39
  // @ts-ignore
40
40
  import { UpdateBookingFunnelResponseClass } from '../models';
41
41
  // URLSearchParams not necessarily used
@@ -264,16 +264,16 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
264
264
  /**
265
265
  * This will patch a booking funnel. **Required Permissions** \"policy-management.products.update\"
266
266
  * @param {string} code
267
- * @param {PatchBookingFunnelRequestDto} patchBookingFunnelRequestDto
267
+ * @param {RestPatchBookingFunnelRequestDto} restPatchBookingFunnelRequestDto
268
268
  * @param {string} [authorization] Bearer Token
269
269
  * @param {*} [options] Override http request option.
270
270
  * @throws {RequiredError}
271
271
  */
272
- patchBookingFunnel: async (code: string, patchBookingFunnelRequestDto: PatchBookingFunnelRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
272
+ patchBookingFunnel: async (code: string, restPatchBookingFunnelRequestDto: RestPatchBookingFunnelRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
273
273
  // verify required parameter 'code' is not null or undefined
274
274
  assertParamExists('patchBookingFunnel', 'code', code)
275
- // verify required parameter 'patchBookingFunnelRequestDto' is not null or undefined
276
- assertParamExists('patchBookingFunnel', 'patchBookingFunnelRequestDto', patchBookingFunnelRequestDto)
275
+ // verify required parameter 'restPatchBookingFunnelRequestDto' is not null or undefined
276
+ assertParamExists('patchBookingFunnel', 'restPatchBookingFunnelRequestDto', restPatchBookingFunnelRequestDto)
277
277
  const localVarPath = `/insuranceservice/v1/booking-funnels/{code}`
278
278
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
279
279
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -304,7 +304,7 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
304
304
  setSearchParams(localVarUrlObj, localVarQueryParameter);
305
305
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
306
306
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
307
- localVarRequestOptions.data = serializeDataIfNeeded(patchBookingFunnelRequestDto, localVarRequestOptions, configuration)
307
+ localVarRequestOptions.data = serializeDataIfNeeded(restPatchBookingFunnelRequestDto, localVarRequestOptions, configuration)
308
308
 
309
309
  return {
310
310
  url: toPathString(localVarUrlObj),
@@ -315,16 +315,16 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
315
315
  * This will update a booking funnel. **Required Permissions** \"policy-management.products.update\"
316
316
  * @summary Update the booking funnel
317
317
  * @param {string} code
318
- * @param {UpdateBookingFunnelRequestDto} updateBookingFunnelRequestDto
318
+ * @param {RestUpdateBookingFunnelRequestDto} restUpdateBookingFunnelRequestDto
319
319
  * @param {string} [authorization] Bearer Token
320
320
  * @param {*} [options] Override http request option.
321
321
  * @throws {RequiredError}
322
322
  */
323
- updateBookingFunnel: async (code: string, updateBookingFunnelRequestDto: UpdateBookingFunnelRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
323
+ updateBookingFunnel: async (code: string, restUpdateBookingFunnelRequestDto: RestUpdateBookingFunnelRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
324
324
  // verify required parameter 'code' is not null or undefined
325
325
  assertParamExists('updateBookingFunnel', 'code', code)
326
- // verify required parameter 'updateBookingFunnelRequestDto' is not null or undefined
327
- assertParamExists('updateBookingFunnel', 'updateBookingFunnelRequestDto', updateBookingFunnelRequestDto)
326
+ // verify required parameter 'restUpdateBookingFunnelRequestDto' is not null or undefined
327
+ assertParamExists('updateBookingFunnel', 'restUpdateBookingFunnelRequestDto', restUpdateBookingFunnelRequestDto)
328
328
  const localVarPath = `/insuranceservice/v1/booking-funnels/{code}`
329
329
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
330
330
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -355,7 +355,7 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
355
355
  setSearchParams(localVarUrlObj, localVarQueryParameter);
356
356
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
357
357
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
358
- localVarRequestOptions.data = serializeDataIfNeeded(updateBookingFunnelRequestDto, localVarRequestOptions, configuration)
358
+ localVarRequestOptions.data = serializeDataIfNeeded(restUpdateBookingFunnelRequestDto, localVarRequestOptions, configuration)
359
359
 
360
360
  return {
361
361
  url: toPathString(localVarUrlObj),
@@ -429,26 +429,26 @@ export const BookingFunnelsApiFp = function(configuration?: Configuration) {
429
429
  /**
430
430
  * This will patch a booking funnel. **Required Permissions** \"policy-management.products.update\"
431
431
  * @param {string} code
432
- * @param {PatchBookingFunnelRequestDto} patchBookingFunnelRequestDto
432
+ * @param {RestPatchBookingFunnelRequestDto} restPatchBookingFunnelRequestDto
433
433
  * @param {string} [authorization] Bearer Token
434
434
  * @param {*} [options] Override http request option.
435
435
  * @throws {RequiredError}
436
436
  */
437
- async patchBookingFunnel(code: string, patchBookingFunnelRequestDto: PatchBookingFunnelRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchBookingFunnelResponseClass>> {
438
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchBookingFunnel(code, patchBookingFunnelRequestDto, authorization, options);
437
+ async patchBookingFunnel(code: string, restPatchBookingFunnelRequestDto: RestPatchBookingFunnelRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchBookingFunnelResponseClass>> {
438
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchBookingFunnel(code, restPatchBookingFunnelRequestDto, authorization, options);
439
439
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
440
440
  },
441
441
  /**
442
442
  * This will update a booking funnel. **Required Permissions** \"policy-management.products.update\"
443
443
  * @summary Update the booking funnel
444
444
  * @param {string} code
445
- * @param {UpdateBookingFunnelRequestDto} updateBookingFunnelRequestDto
445
+ * @param {RestUpdateBookingFunnelRequestDto} restUpdateBookingFunnelRequestDto
446
446
  * @param {string} [authorization] Bearer Token
447
447
  * @param {*} [options] Override http request option.
448
448
  * @throws {RequiredError}
449
449
  */
450
- async updateBookingFunnel(code: string, updateBookingFunnelRequestDto: UpdateBookingFunnelRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBookingFunnelResponseClass>> {
451
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingFunnel(code, updateBookingFunnelRequestDto, authorization, options);
450
+ async updateBookingFunnel(code: string, restUpdateBookingFunnelRequestDto: RestUpdateBookingFunnelRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBookingFunnelResponseClass>> {
451
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookingFunnel(code, restUpdateBookingFunnelRequestDto, authorization, options);
452
452
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
453
453
  },
454
454
  }
@@ -514,25 +514,25 @@ export const BookingFunnelsApiFactory = function (configuration?: Configuration,
514
514
  /**
515
515
  * This will patch a booking funnel. **Required Permissions** \"policy-management.products.update\"
516
516
  * @param {string} code
517
- * @param {PatchBookingFunnelRequestDto} patchBookingFunnelRequestDto
517
+ * @param {RestPatchBookingFunnelRequestDto} restPatchBookingFunnelRequestDto
518
518
  * @param {string} [authorization] Bearer Token
519
519
  * @param {*} [options] Override http request option.
520
520
  * @throws {RequiredError}
521
521
  */
522
- patchBookingFunnel(code: string, patchBookingFunnelRequestDto: PatchBookingFunnelRequestDto, authorization?: string, options?: any): AxiosPromise<PatchBookingFunnelResponseClass> {
523
- return localVarFp.patchBookingFunnel(code, patchBookingFunnelRequestDto, authorization, options).then((request) => request(axios, basePath));
522
+ patchBookingFunnel(code: string, restPatchBookingFunnelRequestDto: RestPatchBookingFunnelRequestDto, authorization?: string, options?: any): AxiosPromise<PatchBookingFunnelResponseClass> {
523
+ return localVarFp.patchBookingFunnel(code, restPatchBookingFunnelRequestDto, authorization, options).then((request) => request(axios, basePath));
524
524
  },
525
525
  /**
526
526
  * This will update a booking funnel. **Required Permissions** \"policy-management.products.update\"
527
527
  * @summary Update the booking funnel
528
528
  * @param {string} code
529
- * @param {UpdateBookingFunnelRequestDto} updateBookingFunnelRequestDto
529
+ * @param {RestUpdateBookingFunnelRequestDto} restUpdateBookingFunnelRequestDto
530
530
  * @param {string} [authorization] Bearer Token
531
531
  * @param {*} [options] Override http request option.
532
532
  * @throws {RequiredError}
533
533
  */
534
- updateBookingFunnel(code: string, updateBookingFunnelRequestDto: UpdateBookingFunnelRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBookingFunnelResponseClass> {
535
- return localVarFp.updateBookingFunnel(code, updateBookingFunnelRequestDto, authorization, options).then((request) => request(axios, basePath));
534
+ updateBookingFunnel(code: string, restUpdateBookingFunnelRequestDto: RestUpdateBookingFunnelRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBookingFunnelResponseClass> {
535
+ return localVarFp.updateBookingFunnel(code, restUpdateBookingFunnelRequestDto, authorization, options).then((request) => request(axios, basePath));
536
536
  },
537
537
  };
538
538
  };
@@ -678,10 +678,10 @@ export interface BookingFunnelsApiPatchBookingFunnelRequest {
678
678
 
679
679
  /**
680
680
  *
681
- * @type {PatchBookingFunnelRequestDto}
681
+ * @type {RestPatchBookingFunnelRequestDto}
682
682
  * @memberof BookingFunnelsApiPatchBookingFunnel
683
683
  */
684
- readonly patchBookingFunnelRequestDto: PatchBookingFunnelRequestDto
684
+ readonly restPatchBookingFunnelRequestDto: RestPatchBookingFunnelRequestDto
685
685
 
686
686
  /**
687
687
  * Bearer Token
@@ -706,10 +706,10 @@ export interface BookingFunnelsApiUpdateBookingFunnelRequest {
706
706
 
707
707
  /**
708
708
  *
709
- * @type {UpdateBookingFunnelRequestDto}
709
+ * @type {RestUpdateBookingFunnelRequestDto}
710
710
  * @memberof BookingFunnelsApiUpdateBookingFunnel
711
711
  */
712
- readonly updateBookingFunnelRequestDto: UpdateBookingFunnelRequestDto
712
+ readonly restUpdateBookingFunnelRequestDto: RestUpdateBookingFunnelRequestDto
713
713
 
714
714
  /**
715
715
  * Bearer Token
@@ -782,7 +782,7 @@ export class BookingFunnelsApi extends BaseAPI {
782
782
  * @memberof BookingFunnelsApi
783
783
  */
784
784
  public patchBookingFunnel(requestParameters: BookingFunnelsApiPatchBookingFunnelRequest, options?: AxiosRequestConfig) {
785
- return BookingFunnelsApiFp(this.configuration).patchBookingFunnel(requestParameters.code, requestParameters.patchBookingFunnelRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
785
+ return BookingFunnelsApiFp(this.configuration).patchBookingFunnel(requestParameters.code, requestParameters.restPatchBookingFunnelRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
786
786
  }
787
787
 
788
788
  /**
@@ -794,6 +794,6 @@ export class BookingFunnelsApi extends BaseAPI {
794
794
  * @memberof BookingFunnelsApi
795
795
  */
796
796
  public updateBookingFunnel(requestParameters: BookingFunnelsApiUpdateBookingFunnelRequest, options?: AxiosRequestConfig) {
797
- return BookingFunnelsApiFp(this.configuration).updateBookingFunnel(requestParameters.code, requestParameters.updateBookingFunnelRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
797
+ return BookingFunnelsApiFp(this.configuration).updateBookingFunnel(requestParameters.code, requestParameters.restUpdateBookingFunnelRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
798
798
  }
799
799
  }
@@ -200,7 +200,7 @@ export const CommissionAgreementItemsApiAxiosParamCreator = function (configurat
200
200
  * @param {string} [pageToken] Page token.
201
201
  * @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;
202
202
  * @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;
203
- * @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;
203
+ * @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;
204
204
  * @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;
205
205
  * @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;
206
206
  * @param {*} [options] Override http request option.
@@ -375,7 +375,7 @@ export const CommissionAgreementItemsApiFp = function(configuration?: Configurat
375
375
  * @param {string} [pageToken] Page token.
376
376
  * @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;
377
377
  * @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;
378
- * @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;
378
+ * @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;
379
379
  * @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;
380
380
  * @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;
381
381
  * @param {*} [options] Override http request option.
@@ -451,7 +451,7 @@ export const CommissionAgreementItemsApiFactory = function (configuration?: Conf
451
451
  * @param {string} [pageToken] Page token.
452
452
  * @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;
453
453
  * @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;
454
- * @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;
454
+ * @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;
455
455
  * @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;
456
456
  * @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;
457
457
  * @param {*} [options] Override http request option.
@@ -594,7 +594,7 @@ export interface CommissionAgreementItemsApiListCommissionAgreementItemsRequest
594
594
  readonly search?: string
595
595
 
596
596
  /**
597
- * 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;
597
+ * 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;
598
598
  * @type {string}
599
599
  * @memberof CommissionAgreementItemsApiListCommissionAgreementItems
600
600
  */
@@ -25,8 +25,6 @@ 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
30
28
  import { CreatePolicyRequestDto } from '../models';
31
29
  // @ts-ignore
32
30
  import { CreatePolicyResponseClass } from '../models';
@@ -41,12 +39,14 @@ import { ListPolicyObjectsResponseClass } from '../models';
41
39
  // @ts-ignore
42
40
  import { ListPolicyVersionResponseClass } from '../models';
43
41
  // @ts-ignore
44
- import { PatchDraftPolicyRequestDto } from '../models';
45
- // @ts-ignore
46
42
  import { PatchPolicyRequestDto } from '../models';
47
43
  // @ts-ignore
48
44
  import { PatchPolicyResponseClass } from '../models';
49
45
  // @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';
@@ -125,16 +125,16 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
125
125
  * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
126
126
  * @summary Create the draft-policy
127
127
  * @param {string} policyCode Unique identifier for the object.
128
- * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
128
+ * @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
129
129
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
130
130
  * @param {*} [options] Override http request option.
131
131
  * @throws {RequiredError}
132
132
  */
133
- createDraftPolicy: async (policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
133
+ createDraftPolicy: async (policyCode: string, restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
134
134
  // verify required parameter 'policyCode' is not null or undefined
135
135
  assertParamExists('createDraftPolicy', 'policyCode', policyCode)
136
- // verify required parameter 'createDraftPolicyRequestDto' is not null or undefined
137
- assertParamExists('createDraftPolicy', 'createDraftPolicyRequestDto', createDraftPolicyRequestDto)
136
+ // verify required parameter 'restCreateDraftPolicyRequestDto' is not null or undefined
137
+ assertParamExists('createDraftPolicy', 'restCreateDraftPolicyRequestDto', restCreateDraftPolicyRequestDto)
138
138
  const localVarPath = `/insuranceservice/v1/policies/{policyCode}/draft`
139
139
  .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
140
140
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -165,7 +165,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
165
165
  setSearchParams(localVarUrlObj, localVarQueryParameter);
166
166
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
167
167
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
168
- localVarRequestOptions.data = serializeDataIfNeeded(createDraftPolicyRequestDto, localVarRequestOptions, configuration)
168
+ localVarRequestOptions.data = serializeDataIfNeeded(restCreateDraftPolicyRequestDto, localVarRequestOptions, configuration)
169
169
 
170
170
  return {
171
171
  url: toPathString(localVarUrlObj),
@@ -655,16 +655,16 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
655
655
  * 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\"
656
656
  * @summary Update the draft-policy
657
657
  * @param {string} policyCode Unique identifier for the object.
658
- * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
658
+ * @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
659
659
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
660
660
  * @param {*} [options] Override http request option.
661
661
  * @throws {RequiredError}
662
662
  */
663
- patchDraftPolicy: async (policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
663
+ patchDraftPolicy: async (policyCode: string, restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
664
664
  // verify required parameter 'policyCode' is not null or undefined
665
665
  assertParamExists('patchDraftPolicy', 'policyCode', policyCode)
666
- // verify required parameter 'patchDraftPolicyRequestDto' is not null or undefined
667
- assertParamExists('patchDraftPolicy', 'patchDraftPolicyRequestDto', patchDraftPolicyRequestDto)
666
+ // verify required parameter 'restPatchDraftPolicyRequestDto' is not null or undefined
667
+ assertParamExists('patchDraftPolicy', 'restPatchDraftPolicyRequestDto', restPatchDraftPolicyRequestDto)
668
668
  const localVarPath = `/insuranceservice/v1/policies/{policyCode}/draft`
669
669
  .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
670
670
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -695,7 +695,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
695
695
  setSearchParams(localVarUrlObj, localVarQueryParameter);
696
696
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
697
697
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
698
- localVarRequestOptions.data = serializeDataIfNeeded(patchDraftPolicyRequestDto, localVarRequestOptions, configuration)
698
+ localVarRequestOptions.data = serializeDataIfNeeded(restPatchDraftPolicyRequestDto, localVarRequestOptions, configuration)
699
699
 
700
700
  return {
701
701
  url: toPathString(localVarUrlObj),
@@ -984,13 +984,13 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
984
984
  * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
985
985
  * @summary Create the draft-policy
986
986
  * @param {string} policyCode Unique identifier for the object.
987
- * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
987
+ * @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
988
988
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
989
989
  * @param {*} [options] Override http request option.
990
990
  * @throws {RequiredError}
991
991
  */
992
- async createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>> {
993
- const localVarAxiosArgs = await localVarAxiosParamCreator.createDraftPolicy(policyCode, createDraftPolicyRequestDto, authorization, options);
992
+ async createDraftPolicy(policyCode: string, restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>> {
993
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createDraftPolicy(policyCode, restCreateDraftPolicyRequestDto, authorization, options);
994
994
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
995
995
  },
996
996
  /**
@@ -1116,13 +1116,13 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1116
1116
  * 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\"
1117
1117
  * @summary Update the draft-policy
1118
1118
  * @param {string} policyCode Unique identifier for the object.
1119
- * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
1119
+ * @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
1120
1120
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1121
1121
  * @param {*} [options] Override http request option.
1122
1122
  * @throws {RequiredError}
1123
1123
  */
1124
- async patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>> {
1125
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchDraftPolicy(policyCode, patchDraftPolicyRequestDto, authorization, options);
1124
+ async patchDraftPolicy(policyCode: string, restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>> {
1125
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchDraftPolicy(policyCode, restPatchDraftPolicyRequestDto, authorization, options);
1126
1126
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1127
1127
  },
1128
1128
  /**
@@ -1216,13 +1216,13 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1216
1216
  * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
1217
1217
  * @summary Create the draft-policy
1218
1218
  * @param {string} policyCode Unique identifier for the object.
1219
- * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
1219
+ * @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
1220
1220
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1221
1221
  * @param {*} [options] Override http request option.
1222
1222
  * @throws {RequiredError}
1223
1223
  */
1224
- createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass> {
1225
- return localVarFp.createDraftPolicy(policyCode, createDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1224
+ createDraftPolicy(policyCode: string, restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass> {
1225
+ return localVarFp.createDraftPolicy(policyCode, restCreateDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1226
1226
  },
1227
1227
  /**
1228
1228
  * 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\"
@@ -1339,13 +1339,13 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1339
1339
  * 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\"
1340
1340
  * @summary Update the draft-policy
1341
1341
  * @param {string} policyCode Unique identifier for the object.
1342
- * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
1342
+ * @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
1343
1343
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1344
1344
  * @param {*} [options] Override http request option.
1345
1345
  * @throws {RequiredError}
1346
1346
  */
1347
- patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass> {
1348
- return localVarFp.patchDraftPolicy(policyCode, patchDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1347
+ patchDraftPolicy(policyCode: string, restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass> {
1348
+ return localVarFp.patchDraftPolicy(policyCode, restPatchDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1349
1349
  },
1350
1350
  /**
1351
1351
  * 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\"
@@ -1453,10 +1453,10 @@ export interface PoliciesApiCreateDraftPolicyRequest {
1453
1453
 
1454
1454
  /**
1455
1455
  *
1456
- * @type {CreateDraftPolicyRequestDto}
1456
+ * @type {RestCreateDraftPolicyRequestDto}
1457
1457
  * @memberof PoliciesApiCreateDraftPolicy
1458
1458
  */
1459
- readonly createDraftPolicyRequestDto: CreateDraftPolicyRequestDto
1459
+ readonly restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto
1460
1460
 
1461
1461
  /**
1462
1462
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -1810,10 +1810,10 @@ export interface PoliciesApiPatchDraftPolicyRequest {
1810
1810
 
1811
1811
  /**
1812
1812
  *
1813
- * @type {PatchDraftPolicyRequestDto}
1813
+ * @type {RestPatchDraftPolicyRequestDto}
1814
1814
  * @memberof PoliciesApiPatchDraftPolicy
1815
1815
  */
1816
- readonly patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto
1816
+ readonly restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto
1817
1817
 
1818
1818
  /**
1819
1819
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -1991,7 +1991,7 @@ export class PoliciesApi extends BaseAPI {
1991
1991
  * @memberof PoliciesApi
1992
1992
  */
1993
1993
  public createDraftPolicy(requestParameters: PoliciesApiCreateDraftPolicyRequest, options?: AxiosRequestConfig) {
1994
- return PoliciesApiFp(this.configuration).createDraftPolicy(requestParameters.policyCode, requestParameters.createDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1994
+ return PoliciesApiFp(this.configuration).createDraftPolicy(requestParameters.policyCode, requestParameters.restCreateDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1995
1995
  }
1996
1996
 
1997
1997
  /**
@@ -2099,7 +2099,7 @@ export class PoliciesApi extends BaseAPI {
2099
2099
  * @memberof PoliciesApi
2100
2100
  */
2101
2101
  public patchDraftPolicy(requestParameters: PoliciesApiPatchDraftPolicyRequest, options?: AxiosRequestConfig) {
2102
- return PoliciesApiFp(this.configuration).patchDraftPolicy(requestParameters.policyCode, requestParameters.patchDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2102
+ return PoliciesApiFp(this.configuration).patchDraftPolicy(requestParameters.policyCode, requestParameters.restPatchDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2103
2103
  }
2104
2104
 
2105
2105
  /**
@@ -35,9 +35,9 @@ import { ListProductFieldTypesResponseClass } from '../models';
35
35
  // @ts-ignore
36
36
  import { ListProductFieldsResponseClass } from '../models';
37
37
  // @ts-ignore
38
- import { SwapProductFieldsOrderRequestDto } from '../models';
38
+ import { RestUpdateProductFieldRequestDto } from '../models';
39
39
  // @ts-ignore
40
- import { UpdateProductFieldRequestDto } from '../models';
40
+ import { SwapProductFieldsOrderRequestDto } from '../models';
41
41
  // @ts-ignore
42
42
  import { UpdateProductFieldResponseClass } from '../models';
43
43
  // URLSearchParams not necessarily used
@@ -390,16 +390,16 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration?: Confi
390
390
  * 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\"
391
391
  * @summary Update the product
392
392
  * @param {number} id
393
- * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
393
+ * @param {RestUpdateProductFieldRequestDto} restUpdateProductFieldRequestDto
394
394
  * @param {string} [authorization] Bearer Token
395
395
  * @param {*} [options] Override http request option.
396
396
  * @throws {RequiredError}
397
397
  */
398
- updateProductField: async (id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
398
+ updateProductField: async (id: number, restUpdateProductFieldRequestDto: RestUpdateProductFieldRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
399
399
  // verify required parameter 'id' is not null or undefined
400
400
  assertParamExists('updateProductField', 'id', id)
401
- // verify required parameter 'updateProductFieldRequestDto' is not null or undefined
402
- assertParamExists('updateProductField', 'updateProductFieldRequestDto', updateProductFieldRequestDto)
401
+ // verify required parameter 'restUpdateProductFieldRequestDto' is not null or undefined
402
+ assertParamExists('updateProductField', 'restUpdateProductFieldRequestDto', restUpdateProductFieldRequestDto)
403
403
  const localVarPath = `/insuranceservice/v1/product-fields/{id}`
404
404
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
405
405
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -430,7 +430,7 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration?: Confi
430
430
  setSearchParams(localVarUrlObj, localVarQueryParameter);
431
431
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
432
432
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
433
- localVarRequestOptions.data = serializeDataIfNeeded(updateProductFieldRequestDto, localVarRequestOptions, configuration)
433
+ localVarRequestOptions.data = serializeDataIfNeeded(restUpdateProductFieldRequestDto, localVarRequestOptions, configuration)
434
434
 
435
435
  return {
436
436
  url: toPathString(localVarUrlObj),
@@ -535,13 +535,13 @@ export const ProductFieldsApiFp = function(configuration?: Configuration) {
535
535
  * 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\"
536
536
  * @summary Update the product
537
537
  * @param {number} id
538
- * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
538
+ * @param {RestUpdateProductFieldRequestDto} restUpdateProductFieldRequestDto
539
539
  * @param {string} [authorization] Bearer Token
540
540
  * @param {*} [options] Override http request option.
541
541
  * @throws {RequiredError}
542
542
  */
543
- async updateProductField(id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductFieldResponseClass>> {
544
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductField(id, updateProductFieldRequestDto, authorization, options);
543
+ async updateProductField(id: number, restUpdateProductFieldRequestDto: RestUpdateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductFieldResponseClass>> {
544
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductField(id, restUpdateProductFieldRequestDto, authorization, options);
545
545
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
546
546
  },
547
547
  }
@@ -636,13 +636,13 @@ export const ProductFieldsApiFactory = function (configuration?: Configuration,
636
636
  * 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\"
637
637
  * @summary Update the product
638
638
  * @param {number} id
639
- * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
639
+ * @param {RestUpdateProductFieldRequestDto} restUpdateProductFieldRequestDto
640
640
  * @param {string} [authorization] Bearer Token
641
641
  * @param {*} [options] Override http request option.
642
642
  * @throws {RequiredError}
643
643
  */
644
- updateProductField(id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductFieldResponseClass> {
645
- return localVarFp.updateProductField(id, updateProductFieldRequestDto, authorization, options).then((request) => request(axios, basePath));
644
+ updateProductField(id: number, restUpdateProductFieldRequestDto: RestUpdateProductFieldRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductFieldResponseClass> {
645
+ return localVarFp.updateProductField(id, restUpdateProductFieldRequestDto, authorization, options).then((request) => request(axios, basePath));
646
646
  },
647
647
  };
648
648
  };
@@ -872,10 +872,10 @@ export interface ProductFieldsApiUpdateProductFieldRequest {
872
872
 
873
873
  /**
874
874
  *
875
- * @type {UpdateProductFieldRequestDto}
875
+ * @type {RestUpdateProductFieldRequestDto}
876
876
  * @memberof ProductFieldsApiUpdateProductField
877
877
  */
878
- readonly updateProductFieldRequestDto: UpdateProductFieldRequestDto
878
+ readonly restUpdateProductFieldRequestDto: RestUpdateProductFieldRequestDto
879
879
 
880
880
  /**
881
881
  * Bearer Token
@@ -973,6 +973,6 @@ export class ProductFieldsApi extends BaseAPI {
973
973
  * @memberof ProductFieldsApi
974
974
  */
975
975
  public updateProductField(requestParameters: ProductFieldsApiUpdateProductFieldRequest, options?: AxiosRequestConfig) {
976
- return ProductFieldsApiFp(this.configuration).updateProductField(requestParameters.id, requestParameters.updateProductFieldRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
976
+ return ProductFieldsApiFp(this.configuration).updateProductField(requestParameters.id, requestParameters.restUpdateProductFieldRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
977
977
  }
978
978
  }