@emilgroup/customer-sdk-node 1.40.0 → 1.42.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 (84) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/api/claims-api.ts +28 -28
  4. package/api/customers-api.ts +28 -28
  5. package/api/documents-api.ts +51 -34
  6. package/api/invoices-api.ts +28 -28
  7. package/api/leads-api.ts +36 -36
  8. package/api/payments-api.ts +23 -6
  9. package/api/policies-api.ts +28 -28
  10. package/api/products-api.ts +28 -28
  11. package/base.ts +14 -23
  12. package/dist/api/claims-api.d.ts +20 -20
  13. package/dist/api/claims-api.js +18 -18
  14. package/dist/api/customers-api.d.ts +20 -20
  15. package/dist/api/customers-api.js +18 -18
  16. package/dist/api/documents-api.d.ts +33 -23
  17. package/dist/api/documents-api.js +31 -24
  18. package/dist/api/invoices-api.d.ts +20 -20
  19. package/dist/api/invoices-api.js +18 -18
  20. package/dist/api/leads-api.d.ts +28 -28
  21. package/dist/api/leads-api.js +26 -26
  22. package/dist/api/payments-api.d.ts +13 -3
  23. package/dist/api/payments-api.js +13 -6
  24. package/dist/api/policies-api.d.ts +20 -20
  25. package/dist/api/policies-api.js +18 -18
  26. package/dist/api/products-api.d.ts +20 -20
  27. package/dist/api/products-api.js +18 -18
  28. package/dist/base.d.ts +3 -4
  29. package/dist/base.js +29 -37
  30. package/dist/models/account-class.d.ts +1 -1
  31. package/dist/models/account-class.js +1 -1
  32. package/dist/models/card-details-dto.d.ts +42 -0
  33. package/dist/models/card-details-dto.js +15 -0
  34. package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +80 -0
  35. package/dist/models/complete-adyen-payment-setup-request-dto.js +15 -0
  36. package/dist/models/complete-payment-setup-psp-request.d.ts +13 -0
  37. package/dist/models/complete-payment-setup-response-class.d.ts +3 -2
  38. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +19 -0
  39. package/dist/models/create-account-request-dto.d.ts +2 -8
  40. package/dist/models/create-account-request-dto.js +1 -1
  41. package/dist/models/customer-product-class.d.ts +2 -2
  42. package/dist/models/index.d.ts +7 -0
  43. package/dist/models/index.js +7 -0
  44. package/dist/models/initiate-adyen-payment-setup-response-class.d.ts +42 -0
  45. package/dist/models/initiate-adyen-payment-setup-response-class.js +15 -0
  46. package/dist/models/initiate-payment-setup-request-dto.d.ts +30 -0
  47. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  48. package/dist/models/initiate-payment-setup-response-class.d.ts +7 -0
  49. package/dist/models/inline-response200.d.ts +6 -6
  50. package/dist/models/inline-response503.d.ts +6 -6
  51. package/dist/models/lead-class.d.ts +1 -1
  52. package/dist/models/link-lead-partner-request-dto.d.ts +16 -4
  53. package/dist/models/payment-method-class.d.ts +78 -0
  54. package/dist/models/payment-method-class.js +15 -0
  55. package/dist/models/policy-object-dto.d.ts +2 -2
  56. package/dist/models/policy-premium-class.d.ts +2 -2
  57. package/dist/models/sepa-direct-dto.d.ts +24 -0
  58. package/dist/models/sepa-direct-dto.js +15 -0
  59. package/dist/models/update-lead-request-dto.d.ts +1 -1
  60. package/dist/models/upload-account-documents-request-dto.d.ts +46 -0
  61. package/dist/models/upload-account-documents-request-dto.js +19 -0
  62. package/models/account-class.ts +1 -1
  63. package/models/card-details-dto.ts +48 -0
  64. package/models/complete-adyen-payment-setup-request-dto.ts +86 -0
  65. package/models/complete-payment-setup-psp-request.ts +13 -0
  66. package/models/complete-payment-setup-response-class.ts +3 -2
  67. package/models/complete-stripe-payment-setup-request-dto.ts +19 -0
  68. package/models/create-account-request-dto.ts +2 -8
  69. package/models/customer-product-class.ts +2 -2
  70. package/models/index.ts +7 -0
  71. package/models/initiate-adyen-payment-setup-response-class.ts +48 -0
  72. package/models/initiate-payment-setup-request-dto.ts +36 -0
  73. package/models/initiate-payment-setup-response-class.ts +7 -0
  74. package/models/inline-response200.ts +6 -6
  75. package/models/inline-response503.ts +6 -6
  76. package/models/lead-class.ts +1 -1
  77. package/models/link-lead-partner-request-dto.ts +16 -4
  78. package/models/payment-method-class.ts +84 -0
  79. package/models/policy-object-dto.ts +2 -2
  80. package/models/policy-premium-class.ts +2 -2
  81. package/models/sepa-direct-dto.ts +30 -0
  82. package/models/update-lead-request-dto.ts +1 -1
  83. package/models/upload-account-documents-request-dto.ts +55 -0
  84. package/package.json +1 -1
@@ -22,10 +22,12 @@ index.ts
22
22
  models/account-class.ts
23
23
  models/account-policy-class.ts
24
24
  models/authentication-result-class.ts
25
+ models/card-details-dto.ts
25
26
  models/change-customer-email-request-dto.ts
26
27
  models/change-password-request-dto.ts
27
28
  models/change-password-response-class.ts
28
29
  models/claim-class.ts
30
+ models/complete-adyen-payment-setup-request-dto.ts
29
31
  models/complete-braintree-payment-setup-request-dto.ts
30
32
  models/complete-payment-setup-psp-request.ts
31
33
  models/complete-payment-setup-response-class.ts
@@ -53,9 +55,11 @@ models/get-policy-response-class.ts
53
55
  models/get-product-response-class.ts
54
56
  models/grpc-update-lead-request-dto.ts
55
57
  models/index.ts
58
+ models/initiate-adyen-payment-setup-response-class.ts
56
59
  models/initiate-auth-request-dto.ts
57
60
  models/initiate-auth-response-class.ts
58
61
  models/initiate-braintree-payment-setup-response-class.ts
62
+ models/initiate-payment-setup-request-dto.ts
59
63
  models/initiate-payment-setup-response-class.ts
60
64
  models/initiate-stripe-payment-setup-response-class.ts
61
65
  models/inline-response200.ts
@@ -76,6 +80,7 @@ models/list-leads-response-class.ts
76
80
  models/list-policies-response-class.ts
77
81
  models/list-products-response-class.ts
78
82
  models/partner-link-class.ts
83
+ models/payment-method-class.ts
79
84
  models/policy-class.ts
80
85
  models/policy-object-class.ts
81
86
  models/policy-object-dto.ts
@@ -93,6 +98,7 @@ models/request-policy-update-response-class.ts
93
98
  models/reset-password-by-customer-request-dto.ts
94
99
  models/respond-to-auth-challenge-class.ts
95
100
  models/respond-to-auth-challenge-request-dto.ts
101
+ models/sepa-direct-dto.ts
96
102
  models/sepa-dto.ts
97
103
  models/shared-customer-policy-object-request-dto.ts
98
104
  models/shared-invoice-item-class.ts
@@ -107,6 +113,7 @@ models/update-customer-request-dto.ts
107
113
  models/update-customer-response-class.ts
108
114
  models/update-lead-request-dto.ts
109
115
  models/update-lead-response-class.ts
116
+ models/upload-account-documents-request-dto.ts
110
117
  models/upload-customer-claim-documents-request-dto.ts
111
118
  models/upload-customer-policy-documents-request-dto.ts
112
119
  models/uploaded-document-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/customer-sdk-node@1.40.0 --save
20
+ npm install @emilgroup/customer-sdk-node@1.42.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/customer-sdk-node@1.40.0
24
+ yarn add @emilgroup/customer-sdk-node@1.42.0
25
25
  ```
26
26
 
27
27
  And then you can import `CustomersApi`.
package/api/claims-api.ts CHANGED
@@ -151,17 +151,17 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
151
151
  * @summary List claims
152
152
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
153
153
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
154
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
155
155
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
156
156
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
157
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
158
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
157
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
159
158
  * @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.
160
159
  * @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.
160
+ * @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.
161
161
  * @param {*} [options] Override http request option.
162
162
  * @throws {RequiredError}
163
163
  */
164
- listCustomerClaims: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
164
+ listCustomerClaims: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
165
165
  // verify required parameter 'customerCode' is not null or undefined
166
166
  assertParamExists('listCustomerClaims', 'customerCode', customerCode)
167
167
  const localVarPath = `/v1/customers/{customerCode}/claims`
@@ -195,10 +195,6 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
195
195
  localVarQueryParameter['filter'] = filter;
196
196
  }
197
197
 
198
- if (filters !== undefined) {
199
- localVarQueryParameter['filters'] = filters;
200
- }
201
-
202
198
  if (search !== undefined) {
203
199
  localVarQueryParameter['search'] = search;
204
200
  }
@@ -211,6 +207,10 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
211
207
  localVarQueryParameter['expand'] = expand;
212
208
  }
213
209
 
210
+ if (filters !== undefined) {
211
+ localVarQueryParameter['filters'] = filters;
212
+ }
213
+
214
214
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
215
215
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
216
216
  }
@@ -377,18 +377,18 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
377
377
  * @summary List claims
378
378
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
379
379
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
380
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
380
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
381
381
  * @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.
382
382
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
383
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
384
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
383
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
385
384
  * @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.
386
385
  * @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.
386
+ * @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.
387
387
  * @param {*} [options] Override http request option.
388
388
  * @throws {RequiredError}
389
389
  */
390
- async listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerClaimsResponseClass>> {
391
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options);
390
+ async listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerClaimsResponseClass>> {
391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
392
392
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
393
393
  },
394
394
  /**
@@ -458,18 +458,18 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
458
458
  * @summary List claims
459
459
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
460
460
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
461
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
461
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
462
462
  * @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.
463
463
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
464
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
465
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
464
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
466
465
  * @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.
467
466
  * @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.
467
+ * @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.
468
468
  * @param {*} [options] Override http request option.
469
469
  * @throws {RequiredError}
470
470
  */
471
- listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomerClaimsResponseClass> {
472
- return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
471
+ listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListCustomerClaimsResponseClass> {
472
+ return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
473
473
  },
474
474
  /**
475
475
  * Update claim for customer.
@@ -577,7 +577,7 @@ export interface ClaimsApiListCustomerClaimsRequest {
577
577
  readonly authorization?: string
578
578
 
579
579
  /**
580
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
580
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
581
581
  * @type {any}
582
582
  * @memberof ClaimsApiListCustomerClaims
583
583
  */
@@ -598,14 +598,7 @@ export interface ClaimsApiListCustomerClaimsRequest {
598
598
  readonly filter?: any
599
599
 
600
600
  /**
601
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
602
- * @type {any}
603
- * @memberof ClaimsApiListCustomerClaims
604
- */
605
- readonly filters?: any
606
-
607
- /**
608
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
601
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
609
602
  * @type {any}
610
603
  * @memberof ClaimsApiListCustomerClaims
611
604
  */
@@ -624,6 +617,13 @@ export interface ClaimsApiListCustomerClaimsRequest {
624
617
  * @memberof ClaimsApiListCustomerClaims
625
618
  */
626
619
  readonly expand?: any
620
+
621
+ /**
622
+ * 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.
623
+ * @type {any}
624
+ * @memberof ClaimsApiListCustomerClaims
625
+ */
626
+ readonly filters?: any
627
627
  }
628
628
 
629
629
  /**
@@ -736,7 +736,7 @@ export class ClaimsApi extends BaseAPI {
736
736
  * @memberof ClaimsApi
737
737
  */
738
738
  public listCustomerClaims(requestParameters: ClaimsApiListCustomerClaimsRequest, options?: AxiosRequestConfig) {
739
- return ClaimsApiFp(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
739
+ return ClaimsApiFp(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
740
740
  }
741
741
 
742
742
  /**
@@ -133,18 +133,18 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
133
133
  /**
134
134
  * Get customer list.
135
135
  * @summary Get customers list
136
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
136
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
137
137
  * @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.
138
138
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
139
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
140
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
139
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
141
140
  * @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.
142
141
  * @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.
142
+ * @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.
143
143
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
144
144
  * @param {*} [options] Override http request option.
145
145
  * @throws {RequiredError}
146
146
  */
147
- listCustomers: async (pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
147
+ listCustomers: async (pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
148
  const localVarPath = `/v1/customers`;
149
149
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
150
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -171,10 +171,6 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
171
171
  localVarQueryParameter['filter'] = filter;
172
172
  }
173
173
 
174
- if (filters !== undefined) {
175
- localVarQueryParameter['filters'] = filters;
176
- }
177
-
178
174
  if (search !== undefined) {
179
175
  localVarQueryParameter['search'] = search;
180
176
  }
@@ -187,6 +183,10 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
187
183
  localVarQueryParameter['expand'] = expand;
188
184
  }
189
185
 
186
+ if (filters !== undefined) {
187
+ localVarQueryParameter['filters'] = filters;
188
+ }
189
+
190
190
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
191
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
192
192
  }
@@ -376,19 +376,19 @@ export const CustomersApiFp = function(configuration?: Configuration) {
376
376
  /**
377
377
  * Get customer list.
378
378
  * @summary Get customers list
379
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
379
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
380
380
  * @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.
381
381
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
382
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
383
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
382
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
384
383
  * @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.
385
384
  * @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.
385
+ * @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.
386
386
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
387
387
  * @param {*} [options] Override http request option.
388
388
  * @throws {RequiredError}
389
389
  */
390
- async listCustomers(pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
391
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(pageSize, pageToken, filter, filters, search, order, expand, authorization, options);
390
+ async listCustomers(pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
392
392
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
393
393
  },
394
394
  /**
@@ -464,19 +464,19 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
464
464
  /**
465
465
  * Get customer list.
466
466
  * @summary Get customers list
467
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
467
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
468
468
  * @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.
469
469
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
470
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
471
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
470
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
472
471
  * @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.
473
472
  * @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.
473
+ * @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.
474
474
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
475
475
  * @param {*} [options] Override http request option.
476
476
  * @throws {RequiredError}
477
477
  */
478
- listCustomers(pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<object> {
479
- return localVarFp.listCustomers(pageSize, pageToken, filter, filters, search, order, expand, authorization, options).then((request) => request(axios, basePath));
478
+ listCustomers(pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<object> {
479
+ return localVarFp.listCustomers(pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
480
480
  },
481
481
  /**
482
482
  * Request a token to change the email address for the customer.
@@ -565,7 +565,7 @@ export interface CustomersApiGetCustomerRequest {
565
565
  */
566
566
  export interface CustomersApiListCustomersRequest {
567
567
  /**
568
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
568
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
569
569
  * @type {any}
570
570
  * @memberof CustomersApiListCustomers
571
571
  */
@@ -586,14 +586,7 @@ export interface CustomersApiListCustomersRequest {
586
586
  readonly filter?: any
587
587
 
588
588
  /**
589
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
590
- * @type {any}
591
- * @memberof CustomersApiListCustomers
592
- */
593
- readonly filters?: any
594
-
595
- /**
596
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
589
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
597
590
  * @type {any}
598
591
  * @memberof CustomersApiListCustomers
599
592
  */
@@ -613,6 +606,13 @@ export interface CustomersApiListCustomersRequest {
613
606
  */
614
607
  readonly expand?: any
615
608
 
609
+ /**
610
+ * 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.
611
+ * @type {any}
612
+ * @memberof CustomersApiListCustomers
613
+ */
614
+ readonly filters?: any
615
+
616
616
  /**
617
617
  * Bearer Token: provided by the login endpoint under the name accessToken.
618
618
  * @type {string}
@@ -738,7 +738,7 @@ export class CustomersApi extends BaseAPI {
738
738
  * @memberof CustomersApi
739
739
  */
740
740
  public listCustomers(requestParameters: CustomersApiListCustomersRequest = {}, options?: AxiosRequestConfig) {
741
- return CustomersApiFp(this.configuration).listCustomers(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
741
+ return CustomersApiFp(this.configuration).listCustomers(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
742
742
  }
743
743
 
744
744
  /**
@@ -26,6 +26,8 @@ import { CreatePresignedPostResponseClass } from '../models';
26
26
  import { GetCustomerDocumentDownloadUrlResponseClass } from '../models';
27
27
  // @ts-ignore
28
28
  import { ListDocumentsResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { UploadAccountDocumentsRequestDto } from '../models';
29
31
  // URLSearchParams not necessarily used
30
32
  // @ts-ignore
31
33
  import { URL, URLSearchParams } from 'url';
@@ -90,18 +92,18 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
90
92
  * List all the documents of a customer.
91
93
  * @summary List documents of a customer
92
94
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
93
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
95
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
94
96
  * @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.
95
97
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
96
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
97
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
98
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
98
99
  * @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.
99
100
  * @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.
101
+ * @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.
100
102
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
101
103
  * @param {*} [options] Override http request option.
102
104
  * @throws {RequiredError}
103
105
  */
104
- listDocuments: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
106
+ listDocuments: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
105
107
  // verify required parameter 'customerCode' is not null or undefined
106
108
  assertParamExists('listDocuments', 'customerCode', customerCode)
107
109
  const localVarPath = `/v1/customers/{customerCode}/documents`
@@ -131,10 +133,6 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
131
133
  localVarQueryParameter['filter'] = filter;
132
134
  }
133
135
 
134
- if (filters !== undefined) {
135
- localVarQueryParameter['filters'] = filters;
136
- }
137
-
138
136
  if (search !== undefined) {
139
137
  localVarQueryParameter['search'] = search;
140
138
  }
@@ -147,6 +145,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
147
145
  localVarQueryParameter['expand'] = expand;
148
146
  }
149
147
 
148
+ if (filters !== undefined) {
149
+ localVarQueryParameter['filters'] = filters;
150
+ }
151
+
150
152
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
151
153
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
152
154
  }
@@ -166,12 +168,15 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
166
168
  * API to upload and attach documents to an account.
167
169
  * @summary Upload account documents
168
170
  * @param {string} customerCode
171
+ * @param {UploadAccountDocumentsRequestDto} uploadAccountDocumentsRequestDto
169
172
  * @param {*} [options] Override http request option.
170
173
  * @throws {RequiredError}
171
174
  */
172
- uploadAccountDocuments: async (customerCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
175
+ uploadAccountDocuments: async (customerCode: string, uploadAccountDocumentsRequestDto: UploadAccountDocumentsRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
173
176
  // verify required parameter 'customerCode' is not null or undefined
174
177
  assertParamExists('uploadAccountDocuments', 'customerCode', customerCode)
178
+ // verify required parameter 'uploadAccountDocumentsRequestDto' is not null or undefined
179
+ assertParamExists('uploadAccountDocuments', 'uploadAccountDocumentsRequestDto', uploadAccountDocumentsRequestDto)
175
180
  const localVarPath = `/v1/customers/{customerCode}/documents`
176
181
  .replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
177
182
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -189,9 +194,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
189
194
 
190
195
 
191
196
 
197
+ localVarHeaderParameter['Content-Type'] = 'application/json';
198
+
192
199
  setSearchParams(localVarUrlObj, localVarQueryParameter);
193
200
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
194
201
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
202
+ localVarRequestOptions.data = serializeDataIfNeeded(uploadAccountDocumentsRequestDto, localVarRequestOptions, configuration)
195
203
 
196
204
  return {
197
205
  url: toPathString(localVarUrlObj),
@@ -226,30 +234,31 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
226
234
  * List all the documents of a customer.
227
235
  * @summary List documents of a customer
228
236
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
229
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
237
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
230
238
  * @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.
231
239
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
232
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
233
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
240
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
234
241
  * @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.
235
242
  * @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.
243
+ * @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.
236
244
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
237
245
  * @param {*} [options] Override http request option.
238
246
  * @throws {RequiredError}
239
247
  */
240
- async listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>> {
241
- const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options);
248
+ async listDocuments(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<ListDocumentsResponseClass>> {
249
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options);
242
250
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
243
251
  },
244
252
  /**
245
253
  * API to upload and attach documents to an account.
246
254
  * @summary Upload account documents
247
255
  * @param {string} customerCode
256
+ * @param {UploadAccountDocumentsRequestDto} uploadAccountDocumentsRequestDto
248
257
  * @param {*} [options] Override http request option.
249
258
  * @throws {RequiredError}
250
259
  */
251
- async uploadAccountDocuments(customerCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
252
- const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAccountDocuments(customerCode, options);
260
+ async uploadAccountDocuments(customerCode: string, uploadAccountDocumentsRequestDto: UploadAccountDocumentsRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
261
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadAccountDocuments(customerCode, uploadAccountDocumentsRequestDto, options);
253
262
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
254
263
  },
255
264
  }
@@ -279,29 +288,30 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
279
288
  * List all the documents of a customer.
280
289
  * @summary List documents of a customer
281
290
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
282
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
291
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
283
292
  * @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.
284
293
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
285
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
286
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
294
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
287
295
  * @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.
288
296
  * @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.
297
+ * @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.
289
298
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
290
299
  * @param {*} [options] Override http request option.
291
300
  * @throws {RequiredError}
292
301
  */
293
- listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
294
- return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options).then((request) => request(axios, basePath));
302
+ listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
303
+ return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then((request) => request(axios, basePath));
295
304
  },
296
305
  /**
297
306
  * API to upload and attach documents to an account.
298
307
  * @summary Upload account documents
299
308
  * @param {string} customerCode
309
+ * @param {UploadAccountDocumentsRequestDto} uploadAccountDocumentsRequestDto
300
310
  * @param {*} [options] Override http request option.
301
311
  * @throws {RequiredError}
302
312
  */
303
- uploadAccountDocuments(customerCode: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
304
- return localVarFp.uploadAccountDocuments(customerCode, options).then((request) => request(axios, basePath));
313
+ uploadAccountDocuments(customerCode: string, uploadAccountDocumentsRequestDto: UploadAccountDocumentsRequestDto, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
314
+ return localVarFp.uploadAccountDocuments(customerCode, uploadAccountDocumentsRequestDto, options).then((request) => request(axios, basePath));
305
315
  },
306
316
  };
307
317
  };
@@ -355,7 +365,7 @@ export interface DocumentsApiListDocumentsRequest {
355
365
  readonly customerCode: string
356
366
 
357
367
  /**
358
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
368
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
359
369
  * @type {any}
360
370
  * @memberof DocumentsApiListDocuments
361
371
  */
@@ -376,14 +386,7 @@ export interface DocumentsApiListDocumentsRequest {
376
386
  readonly filter?: any
377
387
 
378
388
  /**
379
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
380
- * @type {any}
381
- * @memberof DocumentsApiListDocuments
382
- */
383
- readonly filters?: any
384
-
385
- /**
386
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
389
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
387
390
  * @type {any}
388
391
  * @memberof DocumentsApiListDocuments
389
392
  */
@@ -403,6 +406,13 @@ export interface DocumentsApiListDocumentsRequest {
403
406
  */
404
407
  readonly expand?: any
405
408
 
409
+ /**
410
+ * 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.
411
+ * @type {any}
412
+ * @memberof DocumentsApiListDocuments
413
+ */
414
+ readonly filters?: any
415
+
406
416
  /**
407
417
  * Bearer Token: provided by the login endpoint under the name accessToken.
408
418
  * @type {string}
@@ -423,6 +433,13 @@ export interface DocumentsApiUploadAccountDocumentsRequest {
423
433
  * @memberof DocumentsApiUploadAccountDocuments
424
434
  */
425
435
  readonly customerCode: string
436
+
437
+ /**
438
+ *
439
+ * @type {UploadAccountDocumentsRequestDto}
440
+ * @memberof DocumentsApiUploadAccountDocuments
441
+ */
442
+ readonly uploadAccountDocumentsRequestDto: UploadAccountDocumentsRequestDto
426
443
  }
427
444
 
428
445
  /**
@@ -453,7 +470,7 @@ export class DocumentsApi extends BaseAPI {
453
470
  * @memberof DocumentsApi
454
471
  */
455
472
  public listDocuments(requestParameters: DocumentsApiListDocumentsRequest, options?: AxiosRequestConfig) {
456
- return DocumentsApiFp(this.configuration).listDocuments(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
473
+ return DocumentsApiFp(this.configuration).listDocuments(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
457
474
  }
458
475
 
459
476
  /**
@@ -465,6 +482,6 @@ export class DocumentsApi extends BaseAPI {
465
482
  * @memberof DocumentsApi
466
483
  */
467
484
  public uploadAccountDocuments(requestParameters: DocumentsApiUploadAccountDocumentsRequest, options?: AxiosRequestConfig) {
468
- return DocumentsApiFp(this.configuration).uploadAccountDocuments(requestParameters.customerCode, options).then((request) => request(this.axios, this.basePath));
485
+ return DocumentsApiFp(this.configuration).uploadAccountDocuments(requestParameters.customerCode, requestParameters.uploadAccountDocumentsRequestDto, options).then((request) => request(this.axios, this.basePath));
469
486
  }
470
487
  }