@emilgroup/customer-sdk-node 1.44.1-beta.0 → 1.46.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 (40) hide show
  1. package/README.md +2 -2
  2. package/api/claims-api.ts +40 -40
  3. package/api/customers-api.ts +40 -40
  4. package/api/documents-api.ts +40 -40
  5. package/api/invites-api.ts +4 -4
  6. package/api/invoices-api.ts +40 -40
  7. package/api/leads-api.ts +70 -70
  8. package/api/policies-api.ts +40 -40
  9. package/api/products-api.ts +40 -40
  10. package/base.ts +1 -1
  11. package/common.ts +2 -2
  12. package/configuration.ts +9 -0
  13. package/dist/api/authentication-api.js +60 -23
  14. package/dist/api/claims-api.d.ts +40 -40
  15. package/dist/api/claims-api.js +67 -38
  16. package/dist/api/customers-api.d.ts +40 -40
  17. package/dist/api/customers-api.js +74 -41
  18. package/dist/api/default-api.js +18 -5
  19. package/dist/api/documents-api.d.ts +43 -43
  20. package/dist/api/documents-api.js +53 -32
  21. package/dist/api/invites-api.d.ts +4 -4
  22. package/dist/api/invites-api.js +43 -18
  23. package/dist/api/invoices-api.d.ts +40 -40
  24. package/dist/api/invoices-api.js +39 -26
  25. package/dist/api/leads-api.d.ts +56 -56
  26. package/dist/api/leads-api.js +84 -59
  27. package/dist/api/payments-api.js +25 -8
  28. package/dist/api/policies-api.d.ts +40 -40
  29. package/dist/api/policies-api.js +81 -44
  30. package/dist/api/products-api.d.ts +40 -40
  31. package/dist/api/products-api.js +46 -29
  32. package/dist/base.js +25 -15
  33. package/dist/common.d.ts +1 -1
  34. package/dist/common.js +4 -4
  35. package/dist/configuration.d.ts +6 -0
  36. package/dist/configuration.js +8 -0
  37. package/dist/models/policy-class.d.ts +48 -0
  38. package/models/policy-class.ts +48 -0
  39. package/package.json +4 -4
  40. package/tsconfig.json +1 -0
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -105,10 +114,14 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
105
114
  * @param {*} [options] Override http request option.
106
115
  * @throws {RequiredError}
107
116
  */
108
- completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, options) {
109
- if (options === void 0) { options = {}; }
110
- return __awaiter(_this, void 0, void 0, function () {
117
+ completePaymentSetup: function (customerCode_1, completePaymentSetupPspRequest_1, authorization_1) {
118
+ var args_1 = [];
119
+ for (var _i = 3; _i < arguments.length; _i++) {
120
+ args_1[_i - 3] = arguments[_i];
121
+ }
122
+ return __awaiter(_this, __spreadArray([customerCode_1, completePaymentSetupPspRequest_1, authorization_1], args_1, true), void 0, function (customerCode, completePaymentSetupPspRequest, authorization, options) {
111
123
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
124
+ if (options === void 0) { options = {}; }
112
125
  return __generator(this, function (_a) {
113
126
  // verify required parameter 'customerCode' is not null or undefined
114
127
  (0, common_1.assertParamExists)('completePaymentSetup', 'customerCode', customerCode);
@@ -148,10 +161,14 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
148
161
  * @param {*} [options] Override http request option.
149
162
  * @throws {RequiredError}
150
163
  */
151
- initiatePaymentSetup: function (customerCode, initiatePaymentSetupRequestDto, authorization, options) {
152
- if (options === void 0) { options = {}; }
153
- return __awaiter(_this, void 0, void 0, function () {
164
+ initiatePaymentSetup: function (customerCode_1, initiatePaymentSetupRequestDto_1, authorization_1) {
165
+ var args_1 = [];
166
+ for (var _i = 3; _i < arguments.length; _i++) {
167
+ args_1[_i - 3] = arguments[_i];
168
+ }
169
+ return __awaiter(_this, __spreadArray([customerCode_1, initiatePaymentSetupRequestDto_1, authorization_1], args_1, true), void 0, function (customerCode, initiatePaymentSetupRequestDto, authorization, options) {
154
170
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
171
+ if (options === void 0) { options = {}; }
155
172
  return __generator(this, function (_a) {
156
173
  // verify required parameter 'customerCode' is not null or undefined
157
174
  (0, common_1.assertParamExists)('initiatePaymentSetup', 'customerCode', customerCode);
@@ -52,18 +52,18 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
52
52
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
53
53
  * @summary List policies
54
54
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
55
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
56
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
57
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
58
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
59
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
60
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
61
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
55
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
56
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
57
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
58
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
59
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
60
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
61
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
62
62
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
63
63
  * @param {*} [options] Override http request option.
64
64
  * @throws {RequiredError}
65
65
  */
66
- listPolicies: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
+ listPolicies: (customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
67
  /**
68
68
  * Request to update an existing policy by customer.
69
69
  * @summary Request policy update
@@ -138,18 +138,18 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
138
138
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
139
139
  * @summary List policies
140
140
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
141
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
142
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
143
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
144
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
145
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
146
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
147
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
141
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
142
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
143
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
144
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
145
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
146
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
147
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
148
148
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
149
  * @param {*} [options] Override http request option.
150
150
  * @throws {RequiredError}
151
151
  */
152
- listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
152
+ listPolicies(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
153
153
  /**
154
154
  * Request to update an existing policy by customer.
155
155
  * @summary Request policy update
@@ -224,18 +224,18 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
224
224
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
225
225
  * @summary List policies
226
226
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
227
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
228
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
229
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
230
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
231
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
232
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
233
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
227
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
228
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
229
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
230
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
231
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
232
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
233
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
234
234
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
235
235
  * @param {*} [options] Override http request option.
236
236
  * @throws {RequiredError}
237
237
  */
238
- listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass>;
238
+ listPolicies(customerCode: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass>;
239
239
  /**
240
240
  * Request to update an existing policy by customer.
241
241
  * @summary Request policy update
@@ -355,46 +355,46 @@ export interface PoliciesApiListPoliciesRequest {
355
355
  readonly customerCode: string;
356
356
  /**
357
357
  * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
358
- * @type {any}
358
+ * @type {number}
359
359
  * @memberof PoliciesApiListPolicies
360
360
  */
361
- readonly pageSize?: any;
361
+ readonly pageSize?: number;
362
362
  /**
363
- * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
364
- * @type {any}
363
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
364
+ * @type {string}
365
365
  * @memberof PoliciesApiListPolicies
366
366
  */
367
- readonly pageToken?: any;
367
+ readonly pageToken?: string;
368
368
  /**
369
369
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
370
- * @type {any}
370
+ * @type {string}
371
371
  * @memberof PoliciesApiListPolicies
372
372
  */
373
- readonly filter?: any;
373
+ readonly filter?: string;
374
374
  /**
375
375
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
376
- * @type {any}
376
+ * @type {string}
377
377
  * @memberof PoliciesApiListPolicies
378
378
  */
379
- readonly search?: any;
379
+ readonly search?: string;
380
380
  /**
381
381
  * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
382
- * @type {any}
382
+ * @type {string}
383
383
  * @memberof PoliciesApiListPolicies
384
384
  */
385
- readonly order?: any;
385
+ readonly order?: string;
386
386
  /**
387
- * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
388
- * @type {any}
387
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
388
+ * @type {string}
389
389
  * @memberof PoliciesApiListPolicies
390
390
  */
391
- readonly expand?: any;
391
+ readonly expand?: string;
392
392
  /**
393
393
  * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
394
- * @type {any}
394
+ * @type {string}
395
395
  * @memberof PoliciesApiListPolicies
396
396
  */
397
- readonly filters?: any;
397
+ readonly filters?: string;
398
398
  /**
399
399
  * Bearer Token: provided by the login endpoint under the name accessToken.
400
400
  * @type {string}
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -106,10 +115,14 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
106
115
  * @param {*} [options] Override http request option.
107
116
  * @throws {RequiredError}
108
117
  */
109
- getCustomerPolicyDataByDate: function (policyCode, customerCode, timesliceDate, authorization, options) {
110
- if (options === void 0) { options = {}; }
111
- return __awaiter(_this, void 0, void 0, function () {
118
+ getCustomerPolicyDataByDate: function (policyCode_1, customerCode_1, timesliceDate_1, authorization_1) {
119
+ var args_1 = [];
120
+ for (var _i = 4; _i < arguments.length; _i++) {
121
+ args_1[_i - 4] = arguments[_i];
122
+ }
123
+ return __awaiter(_this, __spreadArray([policyCode_1, customerCode_1, timesliceDate_1, authorization_1], args_1, true), void 0, function (policyCode, customerCode, timesliceDate, authorization, options) {
112
124
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
125
+ if (options === void 0) { options = {}; }
113
126
  return __generator(this, function (_a) {
114
127
  // verify required parameter 'policyCode' is not null or undefined
115
128
  (0, common_1.assertParamExists)('getCustomerPolicyDataByDate', 'policyCode', policyCode);
@@ -152,10 +165,14 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
152
165
  * @param {*} [options] Override http request option.
153
166
  * @throws {RequiredError}
154
167
  */
155
- getPolicy: function (policyCode, customerCode, expand, authorization, options) {
156
- if (options === void 0) { options = {}; }
157
- return __awaiter(_this, void 0, void 0, function () {
168
+ getPolicy: function (policyCode_1, customerCode_1, expand_1, authorization_1) {
169
+ var args_1 = [];
170
+ for (var _i = 4; _i < arguments.length; _i++) {
171
+ args_1[_i - 4] = arguments[_i];
172
+ }
173
+ return __awaiter(_this, __spreadArray([policyCode_1, customerCode_1, expand_1, authorization_1], args_1, true), void 0, function (policyCode, customerCode, expand, authorization, options) {
158
174
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
175
+ if (options === void 0) { options = {}; }
159
176
  return __generator(this, function (_a) {
160
177
  // verify required parameter 'policyCode' is not null or undefined
161
178
  (0, common_1.assertParamExists)('getPolicy', 'policyCode', policyCode);
@@ -192,21 +209,25 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
192
209
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
193
210
  * @summary List policies
194
211
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
195
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
196
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
197
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
198
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
199
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
200
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
201
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
212
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
213
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
214
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
215
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
216
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
217
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
218
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
202
219
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
203
220
  * @param {*} [options] Override http request option.
204
221
  * @throws {RequiredError}
205
222
  */
206
- listPolicies: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
207
- if (options === void 0) { options = {}; }
208
- return __awaiter(_this, void 0, void 0, function () {
223
+ listPolicies: function (customerCode_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1, authorization_1) {
224
+ var args_1 = [];
225
+ for (var _i = 9; _i < arguments.length; _i++) {
226
+ args_1[_i - 9] = arguments[_i];
227
+ }
228
+ return __awaiter(_this, __spreadArray([customerCode_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1, authorization_1], args_1, true), void 0, function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
209
229
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
230
+ if (options === void 0) { options = {}; }
210
231
  return __generator(this, function (_a) {
211
232
  // verify required parameter 'customerCode' is not null or undefined
212
233
  (0, common_1.assertParamExists)('listPolicies', 'customerCode', customerCode);
@@ -264,10 +285,14 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
264
285
  * @param {*} [options] Override http request option.
265
286
  * @throws {RequiredError}
266
287
  */
267
- requestPolicyUpdate: function (policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options) {
268
- if (options === void 0) { options = {}; }
269
- return __awaiter(_this, void 0, void 0, function () {
288
+ requestPolicyUpdate: function (policyCode_1, customerCode_1, requestPolicyUpdateRequestDto_1, authorization_1) {
289
+ var args_1 = [];
290
+ for (var _i = 4; _i < arguments.length; _i++) {
291
+ args_1[_i - 4] = arguments[_i];
292
+ }
293
+ return __awaiter(_this, __spreadArray([policyCode_1, customerCode_1, requestPolicyUpdateRequestDto_1, authorization_1], args_1, true), void 0, function (policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options) {
270
294
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
295
+ if (options === void 0) { options = {}; }
271
296
  return __generator(this, function (_a) {
272
297
  // verify required parameter 'policyCode' is not null or undefined
273
298
  (0, common_1.assertParamExists)('requestPolicyUpdate', 'policyCode', policyCode);
@@ -311,10 +336,14 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
311
336
  * @param {*} [options] Override http request option.
312
337
  * @throws {RequiredError}
313
338
  */
314
- terminateCustomerPolicy: function (policyCode, customerCode, terminateCustomerPolicyRequestDto, authorization, options) {
315
- if (options === void 0) { options = {}; }
316
- return __awaiter(_this, void 0, void 0, function () {
339
+ terminateCustomerPolicy: function (policyCode_1, customerCode_1, terminateCustomerPolicyRequestDto_1, authorization_1) {
340
+ var args_1 = [];
341
+ for (var _i = 4; _i < arguments.length; _i++) {
342
+ args_1[_i - 4] = arguments[_i];
343
+ }
344
+ return __awaiter(_this, __spreadArray([policyCode_1, customerCode_1, terminateCustomerPolicyRequestDto_1, authorization_1], args_1, true), void 0, function (policyCode, customerCode, terminateCustomerPolicyRequestDto, authorization, options) {
317
345
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
346
+ if (options === void 0) { options = {}; }
318
347
  return __generator(this, function (_a) {
319
348
  // verify required parameter 'policyCode' is not null or undefined
320
349
  (0, common_1.assertParamExists)('terminateCustomerPolicy', 'policyCode', policyCode);
@@ -357,10 +386,14 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
357
386
  * @param {*} [options] Override http request option.
358
387
  * @throws {RequiredError}
359
388
  */
360
- uploadCustomerPolicyDocuments: function (customerCode, policyCode, uploadCustomerPolicyDocumentsRequestDto, options) {
361
- if (options === void 0) { options = {}; }
362
- return __awaiter(_this, void 0, void 0, function () {
389
+ uploadCustomerPolicyDocuments: function (customerCode_1, policyCode_1, uploadCustomerPolicyDocumentsRequestDto_1) {
390
+ var args_1 = [];
391
+ for (var _i = 3; _i < arguments.length; _i++) {
392
+ args_1[_i - 3] = arguments[_i];
393
+ }
394
+ return __awaiter(_this, __spreadArray([customerCode_1, policyCode_1, uploadCustomerPolicyDocumentsRequestDto_1], args_1, true), void 0, function (customerCode, policyCode, uploadCustomerPolicyDocumentsRequestDto, options) {
363
395
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
396
+ if (options === void 0) { options = {}; }
364
397
  return __generator(this, function (_a) {
365
398
  // verify required parameter 'customerCode' is not null or undefined
366
399
  (0, common_1.assertParamExists)('uploadCustomerPolicyDocuments', 'customerCode', customerCode);
@@ -400,10 +433,14 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
400
433
  * @param {*} [options] Override http request option.
401
434
  * @throws {RequiredError}
402
435
  */
403
- withdrawCustomerPolicy: function (policyCode, customerCode, authorization, options) {
404
- if (options === void 0) { options = {}; }
405
- return __awaiter(_this, void 0, void 0, function () {
436
+ withdrawCustomerPolicy: function (policyCode_1, customerCode_1, authorization_1) {
437
+ var args_1 = [];
438
+ for (var _i = 3; _i < arguments.length; _i++) {
439
+ args_1[_i - 3] = arguments[_i];
440
+ }
441
+ return __awaiter(_this, __spreadArray([policyCode_1, customerCode_1, authorization_1], args_1, true), void 0, function (policyCode, customerCode, authorization, options) {
406
442
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
443
+ if (options === void 0) { options = {}; }
407
444
  return __generator(this, function (_a) {
408
445
  // verify required parameter 'policyCode' is not null or undefined
409
446
  (0, common_1.assertParamExists)('withdrawCustomerPolicy', 'policyCode', policyCode);
@@ -493,13 +530,13 @@ var PoliciesApiFp = function (configuration) {
493
530
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
494
531
  * @summary List policies
495
532
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
496
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
497
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
498
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
499
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
500
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
501
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
502
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
533
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
534
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
535
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
536
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
537
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
538
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
539
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
503
540
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
504
541
  * @param {*} [options] Override http request option.
505
542
  * @throws {RequiredError}
@@ -647,13 +684,13 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
647
684
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
648
685
  * @summary List policies
649
686
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
650
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
651
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
652
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
653
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
654
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
655
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
656
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
687
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
688
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
689
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
690
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
691
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
692
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
693
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
657
694
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
658
695
  * @param {*} [options] Override http request option.
659
696
  * @throws {RequiredError}