@emilgroup/customer-sdk-node 1.9.0-beta.0 → 1.9.1

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 (31) hide show
  1. package/.openapi-generator/FILES +4 -2
  2. package/README.md +2 -2
  3. package/api/customers-api.ts +85 -0
  4. package/api/policies-api.ts +128 -4
  5. package/api/products-api.ts +357 -0
  6. package/api.ts +2 -0
  7. package/dist/api/customers-api.d.ts +47 -0
  8. package/dist/api/customers-api.js +76 -0
  9. package/dist/api/policies-api.d.ts +77 -4
  10. package/dist/api/policies-api.js +97 -3
  11. package/dist/api/products-api.d.ts +215 -0
  12. package/dist/api/products-api.js +341 -0
  13. package/dist/api.d.ts +1 -0
  14. package/dist/api.js +1 -0
  15. package/dist/models/{shared-customer-product-class.d.ts → customer-product-class.d.ts} +8 -8
  16. package/dist/models/{shared-customer-product-class.js → customer-product-class.js} +0 -0
  17. package/dist/models/get-product-response-class.d.ts +25 -0
  18. package/dist/models/{to-grpc-customer-product-class.js → get-product-response-class.js} +0 -0
  19. package/dist/models/index.d.ts +3 -2
  20. package/dist/models/index.js +3 -2
  21. package/dist/models/list-products-response-class.d.ts +31 -0
  22. package/dist/models/list-products-response-class.js +15 -0
  23. package/dist/models/policy-class.d.ts +3 -3
  24. package/models/{shared-customer-product-class.ts → customer-product-class.ts} +8 -8
  25. package/models/get-product-response-class.ts +31 -0
  26. package/models/index.ts +3 -2
  27. package/models/list-products-response-class.ts +37 -0
  28. package/models/policy-class.ts +3 -3
  29. package/package.json +1 -1
  30. package/dist/models/to-grpc-customer-product-class.d.ts +0 -54
  31. package/models/to-grpc-customer-product-class.ts +0 -60
@@ -0,0 +1,357 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { GetProductResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { ListProductsResponseClass } from '../models';
27
+ // URLSearchParams not necessarily used
28
+ // @ts-ignore
29
+ import { URL, URLSearchParams } from 'url';
30
+ const FormData = require('form-data');
31
+ /**
32
+ * ProductsApi - axios parameter creator
33
+ * @export
34
+ */
35
+ export const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {
36
+ return {
37
+ /**
38
+ * Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
39
+ * @summary Get product details
40
+ * @param {string} productCode The product code.
41
+ * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
42
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ getProduct: async (productCode: string, customerCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47
+ // verify required parameter 'productCode' is not null or undefined
48
+ assertParamExists('getProduct', 'productCode', productCode)
49
+ // verify required parameter 'customerCode' is not null or undefined
50
+ assertParamExists('getProduct', 'customerCode', customerCode)
51
+ const localVarPath = `/v1/customers/{customerCode}/products/{productCode}`
52
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
53
+ .replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
54
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
56
+ let baseOptions;
57
+ let baseAccessToken;
58
+ if (configuration) {
59
+ baseOptions = configuration.baseOptions;
60
+ baseAccessToken = configuration.accessToken;
61
+ }
62
+
63
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
64
+ const localVarHeaderParameter = {} as any;
65
+ const localVarQueryParameter = {} as any;
66
+
67
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
69
+ }
70
+
71
+
72
+
73
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
74
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76
+
77
+ return {
78
+ url: toPathString(localVarUrlObj),
79
+ options: localVarRequestOptions,
80
+ };
81
+ },
82
+ /**
83
+ * List all the products that a customer can insure, the products can be filtered by product code, product number.
84
+ * @summary List products available to insure for a customer
85
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
86
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
87
+ * @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.
88
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
89
+ * @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.
90
+ * @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.
91
+ * @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.
92
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ listProducts: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ // verify required parameter 'customerCode' is not null or undefined
98
+ assertParamExists('listProducts', 'customerCode', customerCode)
99
+ const localVarPath = `/v1/customers/{customerCode}/products`
100
+ .replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
101
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
102
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
103
+ let baseOptions;
104
+ let baseAccessToken;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ baseAccessToken = configuration.accessToken;
108
+ }
109
+
110
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
111
+ const localVarHeaderParameter = {} as any;
112
+ const localVarQueryParameter = {} as any;
113
+
114
+ if (pageSize !== undefined) {
115
+ localVarQueryParameter['pageSize'] = pageSize;
116
+ }
117
+
118
+ if (pageToken !== undefined) {
119
+ localVarQueryParameter['pageToken'] = pageToken;
120
+ }
121
+
122
+ if (filter !== undefined) {
123
+ localVarQueryParameter['filter'] = filter;
124
+ }
125
+
126
+ if (search !== undefined) {
127
+ localVarQueryParameter['search'] = search;
128
+ }
129
+
130
+ if (order !== undefined) {
131
+ localVarQueryParameter['order'] = order;
132
+ }
133
+
134
+ if (expand !== undefined) {
135
+ localVarQueryParameter['expand'] = expand;
136
+ }
137
+
138
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
139
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
140
+ }
141
+
142
+
143
+
144
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
145
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147
+
148
+ return {
149
+ url: toPathString(localVarUrlObj),
150
+ options: localVarRequestOptions,
151
+ };
152
+ },
153
+ }
154
+ };
155
+
156
+ /**
157
+ * ProductsApi - functional programming interface
158
+ * @export
159
+ */
160
+ export const ProductsApiFp = function(configuration?: Configuration) {
161
+ const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)
162
+ return {
163
+ /**
164
+ * Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
165
+ * @summary Get product details
166
+ * @param {string} productCode The product code.
167
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
168
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ async getProduct(productCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
173
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProduct(productCode, customerCode, authorization, options);
174
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
175
+ },
176
+ /**
177
+ * List all the products that a customer can insure, the products can be filtered by product code, product number.
178
+ * @summary List products available to insure for a customer
179
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
180
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
181
+ * @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.
182
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
183
+ * @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.
184
+ * @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.
185
+ * @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.
186
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ async listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>> {
191
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
192
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
193
+ },
194
+ }
195
+ };
196
+
197
+ /**
198
+ * ProductsApi - factory interface
199
+ * @export
200
+ */
201
+ export const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
202
+ const localVarFp = ProductsApiFp(configuration)
203
+ return {
204
+ /**
205
+ * Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
206
+ * @summary Get product details
207
+ * @param {string} productCode The product code.
208
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
209
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ getProduct(productCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<GetProductResponseClass> {
214
+ return localVarFp.getProduct(productCode, customerCode, authorization, options).then((request) => request(axios, basePath));
215
+ },
216
+ /**
217
+ * List all the products that a customer can insure, the products can be filtered by product code, product number.
218
+ * @summary List products available to insure for a customer
219
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
220
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
221
+ * @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.
222
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
223
+ * @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.
224
+ * @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.
225
+ * @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.
226
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ */
230
+ listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListProductsResponseClass> {
231
+ return localVarFp.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
232
+ },
233
+ };
234
+ };
235
+
236
+ /**
237
+ * Request parameters for getProduct operation in ProductsApi.
238
+ * @export
239
+ * @interface ProductsApiGetProductRequest
240
+ */
241
+ export interface ProductsApiGetProductRequest {
242
+ /**
243
+ * The product code.
244
+ * @type {string}
245
+ * @memberof ProductsApiGetProduct
246
+ */
247
+ readonly productCode: string
248
+
249
+ /**
250
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
251
+ * @type {string}
252
+ * @memberof ProductsApiGetProduct
253
+ */
254
+ readonly customerCode: string
255
+
256
+ /**
257
+ * Bearer Token: provided by the login endpoint under the name accessToken.
258
+ * @type {string}
259
+ * @memberof ProductsApiGetProduct
260
+ */
261
+ readonly authorization?: string
262
+ }
263
+
264
+ /**
265
+ * Request parameters for listProducts operation in ProductsApi.
266
+ * @export
267
+ * @interface ProductsApiListProductsRequest
268
+ */
269
+ export interface ProductsApiListProductsRequest {
270
+ /**
271
+ * The customer code or \&quot;me\&quot; for the currently logged in customer.
272
+ * @type {string}
273
+ * @memberof ProductsApiListProducts
274
+ */
275
+ readonly customerCode: string
276
+
277
+ /**
278
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
279
+ * @type {any}
280
+ * @memberof ProductsApiListProducts
281
+ */
282
+ readonly pageSize?: any
283
+
284
+ /**
285
+ * 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.
286
+ * @type {any}
287
+ * @memberof ProductsApiListProducts
288
+ */
289
+ readonly pageToken?: any
290
+
291
+ /**
292
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
293
+ * @type {any}
294
+ * @memberof ProductsApiListProducts
295
+ */
296
+ readonly filter?: any
297
+
298
+ /**
299
+ * 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.
300
+ * @type {any}
301
+ * @memberof ProductsApiListProducts
302
+ */
303
+ readonly search?: any
304
+
305
+ /**
306
+ * 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.
307
+ * @type {any}
308
+ * @memberof ProductsApiListProducts
309
+ */
310
+ readonly order?: any
311
+
312
+ /**
313
+ * 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.
314
+ * @type {any}
315
+ * @memberof ProductsApiListProducts
316
+ */
317
+ readonly expand?: any
318
+
319
+ /**
320
+ * Bearer Token: provided by the login endpoint under the name accessToken.
321
+ * @type {string}
322
+ * @memberof ProductsApiListProducts
323
+ */
324
+ readonly authorization?: string
325
+ }
326
+
327
+ /**
328
+ * ProductsApi - object-oriented interface
329
+ * @export
330
+ * @class ProductsApi
331
+ * @extends {BaseAPI}
332
+ */
333
+ export class ProductsApi extends BaseAPI {
334
+ /**
335
+ * Get detailed product that a customer can insure; the details can be expanded using expand query parameter.
336
+ * @summary Get product details
337
+ * @param {ProductsApiGetProductRequest} requestParameters Request parameters.
338
+ * @param {*} [options] Override http request option.
339
+ * @throws {RequiredError}
340
+ * @memberof ProductsApi
341
+ */
342
+ public getProduct(requestParameters: ProductsApiGetProductRequest, options?: AxiosRequestConfig) {
343
+ return ProductsApiFp(this.configuration).getProduct(requestParameters.productCode, requestParameters.customerCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
344
+ }
345
+
346
+ /**
347
+ * List all the products that a customer can insure, the products can be filtered by product code, product number.
348
+ * @summary List products available to insure for a customer
349
+ * @param {ProductsApiListProductsRequest} requestParameters Request parameters.
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ * @memberof ProductsApi
353
+ */
354
+ public listProducts(requestParameters: ProductsApiListProductsRequest, options?: AxiosRequestConfig) {
355
+ return ProductsApiFp(this.configuration).listProducts(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
356
+ }
357
+ }
package/api.ts CHANGED
@@ -27,11 +27,13 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
27
27
  import { ClaimsApi } from './api';
28
28
  import { CustomersApi } from './api';
29
29
  import { PoliciesApi } from './api';
30
+ import { ProductsApi } from './api';
30
31
 
31
32
 
32
33
  export * from './api/claims-api';
33
34
  export * from './api/customers-api';
34
35
  export * from './api/policies-api';
36
+ export * from './api/products-api';
35
37
 
36
38
 
37
39
  export enum Environment {
@@ -16,6 +16,7 @@ import { CompletePaymentSetupPspRequest } from '../models';
16
16
  import { CompletePaymentSetupResponseClass } from '../models';
17
17
  import { CreateCustomerRequestDto } from '../models';
18
18
  import { CreateCustomerResponseClass } from '../models';
19
+ import { CreatePresignedPostResponseClass } from '../models';
19
20
  import { ForgotPasswordRequestDto } from '../models';
20
21
  import { GetCustomerDocumentDownloadUrlResponseClass } from '../models';
21
22
  import { GetCustomerResponseClass } from '../models';
@@ -185,6 +186,14 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
185
186
  * @throws {RequiredError}
186
187
  */
187
188
  updateCustomer: (customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
189
+ /**
190
+ * API to upload and attach documents to an account.
191
+ * @summary Upload account documents
192
+ * @param {string} customerCode
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ uploadAccountDocuments: (customerCode: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
188
197
  /**
189
198
  * Verify the invite sent to the customer via email.
190
199
  * @summary Verify customer\'s invite token
@@ -353,6 +362,14 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
353
362
  * @throws {RequiredError}
354
363
  */
355
364
  updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>>;
365
+ /**
366
+ * API to upload and attach documents to an account.
367
+ * @summary Upload account documents
368
+ * @param {string} customerCode
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ uploadAccountDocuments(customerCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
356
373
  /**
357
374
  * Verify the invite sent to the customer via email.
358
375
  * @summary Verify customer\'s invite token
@@ -521,6 +538,14 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
521
538
  * @throws {RequiredError}
522
539
  */
523
540
  updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass>;
541
+ /**
542
+ * API to upload and attach documents to an account.
543
+ * @summary Upload account documents
544
+ * @param {string} customerCode
545
+ * @param {*} [options] Override http request option.
546
+ * @throws {RequiredError}
547
+ */
548
+ uploadAccountDocuments(customerCode: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
524
549
  /**
525
550
  * Verify the invite sent to the customer via email.
526
551
  * @summary Verify customer\'s invite token
@@ -889,6 +914,19 @@ export interface CustomersApiUpdateCustomerRequest {
889
914
  */
890
915
  readonly authorization?: string;
891
916
  }
917
+ /**
918
+ * Request parameters for uploadAccountDocuments operation in CustomersApi.
919
+ * @export
920
+ * @interface CustomersApiUploadAccountDocumentsRequest
921
+ */
922
+ export interface CustomersApiUploadAccountDocumentsRequest {
923
+ /**
924
+ *
925
+ * @type {string}
926
+ * @memberof CustomersApiUploadAccountDocuments
927
+ */
928
+ readonly customerCode: string;
929
+ }
892
930
  /**
893
931
  * Request parameters for verifyInvite operation in CustomersApi.
894
932
  * @export
@@ -1057,6 +1095,15 @@ export declare class CustomersApi extends BaseAPI {
1057
1095
  * @memberof CustomersApi
1058
1096
  */
1059
1097
  updateCustomer(requestParameters: CustomersApiUpdateCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateCustomerResponseClass, any>>;
1098
+ /**
1099
+ * API to upload and attach documents to an account.
1100
+ * @summary Upload account documents
1101
+ * @param {CustomersApiUploadAccountDocumentsRequest} requestParameters Request parameters.
1102
+ * @param {*} [options] Override http request option.
1103
+ * @throws {RequiredError}
1104
+ * @memberof CustomersApi
1105
+ */
1106
+ uploadAccountDocuments(requestParameters: CustomersApiUploadAccountDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any>>;
1060
1107
  /**
1061
1108
  * Verify the invite sent to the customer via email.
1062
1109
  * @summary Verify customer\'s invite token
@@ -720,6 +720,40 @@ var CustomersApiAxiosParamCreator = function (configuration) {
720
720
  });
721
721
  });
722
722
  },
723
+ /**
724
+ * API to upload and attach documents to an account.
725
+ * @summary Upload account documents
726
+ * @param {string} customerCode
727
+ * @param {*} [options] Override http request option.
728
+ * @throws {RequiredError}
729
+ */
730
+ uploadAccountDocuments: function (customerCode, options) {
731
+ if (options === void 0) { options = {}; }
732
+ return __awaiter(_this, void 0, void 0, function () {
733
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
734
+ return __generator(this, function (_a) {
735
+ // verify required parameter 'customerCode' is not null or undefined
736
+ (0, common_1.assertParamExists)('uploadAccountDocuments', 'customerCode', customerCode);
737
+ localVarPath = "/v1/customers/{customerCode}/documents"
738
+ .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
739
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
740
+ if (configuration) {
741
+ baseOptions = configuration.baseOptions;
742
+ baseAccessToken = configuration.accessToken;
743
+ }
744
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
745
+ localVarHeaderParameter = {};
746
+ localVarQueryParameter = {};
747
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
748
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
749
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
750
+ return [2 /*return*/, {
751
+ url: (0, common_1.toPathString)(localVarUrlObj),
752
+ options: localVarRequestOptions,
753
+ }];
754
+ });
755
+ });
756
+ },
723
757
  /**
724
758
  * Verify the invite sent to the customer via email.
725
759
  * @summary Verify customer\'s invite token
@@ -1128,6 +1162,26 @@ var CustomersApiFp = function (configuration) {
1128
1162
  });
1129
1163
  });
1130
1164
  },
1165
+ /**
1166
+ * API to upload and attach documents to an account.
1167
+ * @summary Upload account documents
1168
+ * @param {string} customerCode
1169
+ * @param {*} [options] Override http request option.
1170
+ * @throws {RequiredError}
1171
+ */
1172
+ uploadAccountDocuments: function (customerCode, options) {
1173
+ return __awaiter(this, void 0, void 0, function () {
1174
+ var localVarAxiosArgs;
1175
+ return __generator(this, function (_a) {
1176
+ switch (_a.label) {
1177
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadAccountDocuments(customerCode, options)];
1178
+ case 1:
1179
+ localVarAxiosArgs = _a.sent();
1180
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1181
+ }
1182
+ });
1183
+ });
1184
+ },
1131
1185
  /**
1132
1186
  * Verify the invite sent to the customer via email.
1133
1187
  * @summary Verify customer\'s invite token
@@ -1354,6 +1408,16 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
1354
1408
  updateCustomer: function (customerCode, updateCustomerRequestDto, authorization, options) {
1355
1409
  return localVarFp.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1356
1410
  },
1411
+ /**
1412
+ * API to upload and attach documents to an account.
1413
+ * @summary Upload account documents
1414
+ * @param {string} customerCode
1415
+ * @param {*} [options] Override http request option.
1416
+ * @throws {RequiredError}
1417
+ */
1418
+ uploadAccountDocuments: function (customerCode, options) {
1419
+ return localVarFp.uploadAccountDocuments(customerCode, options).then(function (request) { return request(axios, basePath); });
1420
+ },
1357
1421
  /**
1358
1422
  * Verify the invite sent to the customer via email.
1359
1423
  * @summary Verify customer\'s invite token
@@ -1568,6 +1632,18 @@ var CustomersApi = /** @class */ (function (_super) {
1568
1632
  var _this = this;
1569
1633
  return (0, exports.CustomersApiFp)(this.configuration).updateCustomer(requestParameters.customerCode, requestParameters.updateCustomerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1570
1634
  };
1635
+ /**
1636
+ * API to upload and attach documents to an account.
1637
+ * @summary Upload account documents
1638
+ * @param {CustomersApiUploadAccountDocumentsRequest} requestParameters Request parameters.
1639
+ * @param {*} [options] Override http request option.
1640
+ * @throws {RequiredError}
1641
+ * @memberof CustomersApi
1642
+ */
1643
+ CustomersApi.prototype.uploadAccountDocuments = function (requestParameters, options) {
1644
+ var _this = this;
1645
+ return (0, exports.CustomersApiFp)(this.configuration).uploadAccountDocuments(requestParameters.customerCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
1646
+ };
1571
1647
  /**
1572
1648
  * Verify the invite sent to the customer via email.
1573
1649
  * @summary Verify customer\'s invite token