@emilgroup/customer-sdk-node 1.1.1 → 1.4.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.
- package/.openapi-generator/FILES +7 -0
- package/README.md +22 -5
- package/api/customers-api.ts +549 -8
- package/base.ts +150 -9
- package/dist/api/customers-api.d.ts +324 -8
- package/dist/api/customers-api.js +398 -8
- package/dist/base.d.ts +12 -3
- package/dist/base.js +192 -13
- package/dist/models/get-customer-response-class.d.ts +24 -0
- package/dist/models/get-customer-response-class.js +15 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/initiate-auth-response-class.d.ts +4 -4
- package/dist/models/list-documents-response-class.d.ts +30 -0
- package/dist/models/list-documents-response-class.js +15 -0
- package/dist/models/request-policy-update-request-dto.d.ts +42 -0
- package/dist/models/request-policy-update-request-dto.js +15 -0
- package/dist/models/request-policy-update-response-class.d.ts +25 -0
- package/dist/models/request-policy-update-response-class.js +15 -0
- package/dist/models/respond-to-auth-challenge-class.d.ts +4 -4
- package/dist/models/update-account-request-dto.d.ts +96 -0
- package/dist/models/update-account-request-dto.js +21 -0
- package/dist/models/update-customer-request-dto.d.ts +31 -0
- package/dist/models/update-customer-request-dto.js +15 -0
- package/dist/models/update-customer-response-class.d.ts +24 -0
- package/dist/models/update-customer-response-class.js +15 -0
- package/models/get-customer-response-class.ts +30 -0
- package/models/index.ts +7 -0
- package/models/initiate-auth-response-class.ts +4 -4
- package/models/list-documents-response-class.ts +36 -0
- package/models/request-policy-update-request-dto.ts +48 -0
- package/models/request-policy-update-response-class.ts +31 -0
- package/models/respond-to-auth-challenge-class.ts +4 -4
- package/models/update-account-request-dto.ts +105 -0
- package/models/update-customer-request-dto.ts +37 -0
- package/models/update-customer-response-class.ts +30 -0
- package/package.json +4 -3
package/api/customers-api.ts
CHANGED
|
@@ -27,6 +27,8 @@ import { CreateCustomerResponseClass } from '../models';
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { ForgotPasswordRequestDto } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
|
+
import { GetCustomerResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
30
32
|
import { GetPolicyResponseClass } from '../models';
|
|
31
33
|
// @ts-ignore
|
|
32
34
|
import { InitiateAuthRequestDto } from '../models';
|
|
@@ -39,18 +41,28 @@ import { InviteByCustomerResponseClass } from '../models';
|
|
|
39
41
|
// @ts-ignore
|
|
40
42
|
import { InviteByTenantResponseClass } from '../models';
|
|
41
43
|
// @ts-ignore
|
|
44
|
+
import { ListDocumentsResponseClass } from '../models';
|
|
45
|
+
// @ts-ignore
|
|
42
46
|
import { ListInvoicesResponseClass } from '../models';
|
|
43
47
|
// @ts-ignore
|
|
44
48
|
import { ListPoliciesResponseClass } from '../models';
|
|
45
49
|
// @ts-ignore
|
|
46
50
|
import { RefreshTokenDto } from '../models';
|
|
47
51
|
// @ts-ignore
|
|
52
|
+
import { RequestPolicyUpdateRequestDto } from '../models';
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
import { RequestPolicyUpdateResponseClass } from '../models';
|
|
55
|
+
// @ts-ignore
|
|
48
56
|
import { ResetPasswordByCustomerRequestDto } from '../models';
|
|
49
57
|
// @ts-ignore
|
|
50
58
|
import { RespondToAuthChallengeClass } from '../models';
|
|
51
59
|
// @ts-ignore
|
|
52
60
|
import { RespondToAuthChallengeRequestDto } from '../models';
|
|
53
61
|
// @ts-ignore
|
|
62
|
+
import { UpdateCustomerRequestDto } from '../models';
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
import { UpdateCustomerResponseClass } from '../models';
|
|
65
|
+
// @ts-ignore
|
|
54
66
|
import { VerifyCustomerInviteResponseClass } from '../models';
|
|
55
67
|
// URLSearchParams not necessarily used
|
|
56
68
|
// @ts-ignore
|
|
@@ -138,6 +150,52 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
138
150
|
options: localVarRequestOptions,
|
|
139
151
|
};
|
|
140
152
|
},
|
|
153
|
+
/**
|
|
154
|
+
* Get customer details
|
|
155
|
+
* @summary Get customer details
|
|
156
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
157
|
+
* @param {string} [expand] Fields to expand response by - [account]
|
|
158
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
getCustomer: async (customerCode: string, expand?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
163
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
164
|
+
assertParamExists('getCustomer', 'customerCode', customerCode)
|
|
165
|
+
const localVarPath = `/v1/customers/{customerCode}`
|
|
166
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
168
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
169
|
+
let baseOptions;
|
|
170
|
+
let baseAccessToken;
|
|
171
|
+
if (configuration) {
|
|
172
|
+
baseOptions = configuration.baseOptions;
|
|
173
|
+
baseAccessToken = configuration.accessToken;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
177
|
+
const localVarHeaderParameter = {} as any;
|
|
178
|
+
const localVarQueryParameter = {} as any;
|
|
179
|
+
|
|
180
|
+
if (expand !== undefined) {
|
|
181
|
+
localVarQueryParameter['expand'] = expand;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
185
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
191
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
193
|
+
|
|
194
|
+
return {
|
|
195
|
+
url: toPathString(localVarUrlObj),
|
|
196
|
+
options: localVarRequestOptions,
|
|
197
|
+
};
|
|
198
|
+
},
|
|
141
199
|
/**
|
|
142
200
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
143
201
|
* @summary Get policy details
|
|
@@ -228,7 +286,7 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
228
286
|
},
|
|
229
287
|
/**
|
|
230
288
|
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
231
|
-
* @summary Invite by
|
|
289
|
+
* @summary Invite a customer by self
|
|
232
290
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
233
291
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
234
292
|
* @param {*} [options] Override http request option.
|
|
@@ -271,7 +329,7 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
271
329
|
},
|
|
272
330
|
/**
|
|
273
331
|
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
274
|
-
* @summary Invite by tenant
|
|
332
|
+
* @summary Invite a customer by tenant
|
|
275
333
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
276
334
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
277
335
|
* @param {*} [options] Override http request option.
|
|
@@ -312,6 +370,77 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
312
370
|
options: localVarRequestOptions,
|
|
313
371
|
};
|
|
314
372
|
},
|
|
373
|
+
/**
|
|
374
|
+
* List all the documents of a customer
|
|
375
|
+
* @summary List documents of a customer
|
|
376
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
377
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
378
|
+
* @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.
|
|
379
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
380
|
+
* @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.
|
|
381
|
+
* @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.
|
|
382
|
+
* @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.
|
|
383
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
*/
|
|
387
|
+
listDocuments: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
388
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
389
|
+
assertParamExists('listDocuments', 'customerCode', customerCode)
|
|
390
|
+
const localVarPath = `/v1/customers/{customerCode}/documents`
|
|
391
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
392
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
393
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
394
|
+
let baseOptions;
|
|
395
|
+
let baseAccessToken;
|
|
396
|
+
if (configuration) {
|
|
397
|
+
baseOptions = configuration.baseOptions;
|
|
398
|
+
baseAccessToken = configuration.accessToken;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
402
|
+
const localVarHeaderParameter = {} as any;
|
|
403
|
+
const localVarQueryParameter = {} as any;
|
|
404
|
+
|
|
405
|
+
if (pageSize !== undefined) {
|
|
406
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
if (pageToken !== undefined) {
|
|
410
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
if (filter !== undefined) {
|
|
414
|
+
localVarQueryParameter['filter'] = filter;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if (search !== undefined) {
|
|
418
|
+
localVarQueryParameter['search'] = search;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
if (order !== undefined) {
|
|
422
|
+
localVarQueryParameter['order'] = order;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
if (expand !== undefined) {
|
|
426
|
+
localVarQueryParameter['expand'] = expand;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
430
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
436
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
437
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
438
|
+
|
|
439
|
+
return {
|
|
440
|
+
url: toPathString(localVarUrlObj),
|
|
441
|
+
options: localVarRequestOptions,
|
|
442
|
+
};
|
|
443
|
+
},
|
|
315
444
|
/**
|
|
316
445
|
* List all the invoices of a customer
|
|
317
446
|
* @summary List invoices of a customer
|
|
@@ -497,6 +626,57 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
497
626
|
options: localVarRequestOptions,
|
|
498
627
|
};
|
|
499
628
|
},
|
|
629
|
+
/**
|
|
630
|
+
* Request to update an existing policy by customer
|
|
631
|
+
* @summary Request policy update by customer
|
|
632
|
+
* @param {string} policyCode The policy code
|
|
633
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
634
|
+
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
635
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
*/
|
|
639
|
+
requestPolicyUpdate: async (policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
640
|
+
// verify required parameter 'policyCode' is not null or undefined
|
|
641
|
+
assertParamExists('requestPolicyUpdate', 'policyCode', policyCode)
|
|
642
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
643
|
+
assertParamExists('requestPolicyUpdate', 'customerCode', customerCode)
|
|
644
|
+
// verify required parameter 'requestPolicyUpdateRequestDto' is not null or undefined
|
|
645
|
+
assertParamExists('requestPolicyUpdate', 'requestPolicyUpdateRequestDto', requestPolicyUpdateRequestDto)
|
|
646
|
+
const localVarPath = `/v1/customers/{customerCode}/policies/{policyCode}/request-update`
|
|
647
|
+
.replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)))
|
|
648
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
649
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
650
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
651
|
+
let baseOptions;
|
|
652
|
+
let baseAccessToken;
|
|
653
|
+
if (configuration) {
|
|
654
|
+
baseOptions = configuration.baseOptions;
|
|
655
|
+
baseAccessToken = configuration.accessToken;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
659
|
+
const localVarHeaderParameter = {} as any;
|
|
660
|
+
const localVarQueryParameter = {} as any;
|
|
661
|
+
|
|
662
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
663
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
669
|
+
|
|
670
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
671
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
672
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
673
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestPolicyUpdateRequestDto, localVarRequestOptions, configuration)
|
|
674
|
+
|
|
675
|
+
return {
|
|
676
|
+
url: toPathString(localVarUrlObj),
|
|
677
|
+
options: localVarRequestOptions,
|
|
678
|
+
};
|
|
679
|
+
},
|
|
500
680
|
/**
|
|
501
681
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
502
682
|
* @summary Change password by customer
|
|
@@ -573,6 +753,53 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
573
753
|
options: localVarRequestOptions,
|
|
574
754
|
};
|
|
575
755
|
},
|
|
756
|
+
/**
|
|
757
|
+
* Update customer details like phone, email, names, addresses etc
|
|
758
|
+
* @summary Update customer details
|
|
759
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
760
|
+
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
761
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
762
|
+
* @param {*} [options] Override http request option.
|
|
763
|
+
* @throws {RequiredError}
|
|
764
|
+
*/
|
|
765
|
+
updateCustomer: async (customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
766
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
767
|
+
assertParamExists('updateCustomer', 'customerCode', customerCode)
|
|
768
|
+
// verify required parameter 'updateCustomerRequestDto' is not null or undefined
|
|
769
|
+
assertParamExists('updateCustomer', 'updateCustomerRequestDto', updateCustomerRequestDto)
|
|
770
|
+
const localVarPath = `/v1/customers/{customerCode}`
|
|
771
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
772
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
773
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
774
|
+
let baseOptions;
|
|
775
|
+
let baseAccessToken;
|
|
776
|
+
if (configuration) {
|
|
777
|
+
baseOptions = configuration.baseOptions;
|
|
778
|
+
baseAccessToken = configuration.accessToken;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
782
|
+
const localVarHeaderParameter = {} as any;
|
|
783
|
+
const localVarQueryParameter = {} as any;
|
|
784
|
+
|
|
785
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
786
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
792
|
+
|
|
793
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
794
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
795
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
796
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCustomerRequestDto, localVarRequestOptions, configuration)
|
|
797
|
+
|
|
798
|
+
return {
|
|
799
|
+
url: toPathString(localVarUrlObj),
|
|
800
|
+
options: localVarRequestOptions,
|
|
801
|
+
};
|
|
802
|
+
},
|
|
576
803
|
/**
|
|
577
804
|
* Verify the invite sent to the customer via email.
|
|
578
805
|
* @summary Verify customer\'s invite token
|
|
@@ -683,6 +910,19 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
683
910
|
const localVarAxiosArgs = await localVarAxiosParamCreator.forgotPassword(forgotPasswordRequestDto, options);
|
|
684
911
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
685
912
|
},
|
|
913
|
+
/**
|
|
914
|
+
* Get customer details
|
|
915
|
+
* @summary Get customer details
|
|
916
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
917
|
+
* @param {string} [expand] Fields to expand response by - [account]
|
|
918
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
919
|
+
* @param {*} [options] Override http request option.
|
|
920
|
+
* @throws {RequiredError}
|
|
921
|
+
*/
|
|
922
|
+
async getCustomer(customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerResponseClass>> {
|
|
923
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomer(customerCode, expand, authorization, options);
|
|
924
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
925
|
+
},
|
|
686
926
|
/**
|
|
687
927
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
688
928
|
* @summary Get policy details
|
|
@@ -710,7 +950,7 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
710
950
|
},
|
|
711
951
|
/**
|
|
712
952
|
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
713
|
-
* @summary Invite by
|
|
953
|
+
* @summary Invite a customer by self
|
|
714
954
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
715
955
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
716
956
|
* @param {*} [options] Override http request option.
|
|
@@ -722,7 +962,7 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
722
962
|
},
|
|
723
963
|
/**
|
|
724
964
|
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
725
|
-
* @summary Invite by tenant
|
|
965
|
+
* @summary Invite a customer by tenant
|
|
726
966
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
727
967
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
728
968
|
* @param {*} [options] Override http request option.
|
|
@@ -732,6 +972,24 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
732
972
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteByTenant(inviteByCustomerRequestDto, authorization, options);
|
|
733
973
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
734
974
|
},
|
|
975
|
+
/**
|
|
976
|
+
* List all the documents of a customer
|
|
977
|
+
* @summary List documents of a customer
|
|
978
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
979
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
980
|
+
* @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.
|
|
981
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
982
|
+
* @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.
|
|
983
|
+
* @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.
|
|
984
|
+
* @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.
|
|
985
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
986
|
+
* @param {*} [options] Override http request option.
|
|
987
|
+
* @throws {RequiredError}
|
|
988
|
+
*/
|
|
989
|
+
async listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocumentsResponseClass>> {
|
|
990
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
|
|
991
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
992
|
+
},
|
|
735
993
|
/**
|
|
736
994
|
* List all the invoices of a customer
|
|
737
995
|
* @summary List invoices of a customer
|
|
@@ -780,6 +1038,20 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
780
1038
|
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(refreshTokenDto, cookie, options);
|
|
781
1039
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
782
1040
|
},
|
|
1041
|
+
/**
|
|
1042
|
+
* Request to update an existing policy by customer
|
|
1043
|
+
* @summary Request policy update by customer
|
|
1044
|
+
* @param {string} policyCode The policy code
|
|
1045
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1046
|
+
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
1047
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1048
|
+
* @param {*} [options] Override http request option.
|
|
1049
|
+
* @throws {RequiredError}
|
|
1050
|
+
*/
|
|
1051
|
+
async requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPolicyUpdateResponseClass>> {
|
|
1052
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.requestPolicyUpdate(policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options);
|
|
1053
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1054
|
+
},
|
|
783
1055
|
/**
|
|
784
1056
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
785
1057
|
* @summary Change password by customer
|
|
@@ -802,6 +1074,19 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
802
1074
|
const localVarAxiosArgs = await localVarAxiosParamCreator.respondToAuthChallenge(respondToAuthChallengeRequestDto, options);
|
|
803
1075
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
804
1076
|
},
|
|
1077
|
+
/**
|
|
1078
|
+
* Update customer details like phone, email, names, addresses etc
|
|
1079
|
+
* @summary Update customer details
|
|
1080
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1081
|
+
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
1082
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1083
|
+
* @param {*} [options] Override http request option.
|
|
1084
|
+
* @throws {RequiredError}
|
|
1085
|
+
*/
|
|
1086
|
+
async updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerResponseClass>> {
|
|
1087
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options);
|
|
1088
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1089
|
+
},
|
|
805
1090
|
/**
|
|
806
1091
|
* Verify the invite sent to the customer via email.
|
|
807
1092
|
* @summary Verify customer\'s invite token
|
|
@@ -854,6 +1139,18 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
854
1139
|
forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: any): AxiosPromise<void> {
|
|
855
1140
|
return localVarFp.forgotPassword(forgotPasswordRequestDto, options).then((request) => request(axios, basePath));
|
|
856
1141
|
},
|
|
1142
|
+
/**
|
|
1143
|
+
* Get customer details
|
|
1144
|
+
* @summary Get customer details
|
|
1145
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1146
|
+
* @param {string} [expand] Fields to expand response by - [account]
|
|
1147
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1148
|
+
* @param {*} [options] Override http request option.
|
|
1149
|
+
* @throws {RequiredError}
|
|
1150
|
+
*/
|
|
1151
|
+
getCustomer(customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetCustomerResponseClass> {
|
|
1152
|
+
return localVarFp.getCustomer(customerCode, expand, authorization, options).then((request) => request(axios, basePath));
|
|
1153
|
+
},
|
|
857
1154
|
/**
|
|
858
1155
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
859
1156
|
* @summary Get policy details
|
|
@@ -879,7 +1176,7 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
879
1176
|
},
|
|
880
1177
|
/**
|
|
881
1178
|
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
882
|
-
* @summary Invite by
|
|
1179
|
+
* @summary Invite a customer by self
|
|
883
1180
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
884
1181
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
885
1182
|
* @param {*} [options] Override http request option.
|
|
@@ -890,7 +1187,7 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
890
1187
|
},
|
|
891
1188
|
/**
|
|
892
1189
|
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
893
|
-
* @summary Invite by tenant
|
|
1190
|
+
* @summary Invite a customer by tenant
|
|
894
1191
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
895
1192
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
896
1193
|
* @param {*} [options] Override http request option.
|
|
@@ -899,6 +1196,23 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
899
1196
|
inviteByTenant(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByTenantResponseClass> {
|
|
900
1197
|
return localVarFp.inviteByTenant(inviteByCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
901
1198
|
},
|
|
1199
|
+
/**
|
|
1200
|
+
* List all the documents of a customer
|
|
1201
|
+
* @summary List documents of a customer
|
|
1202
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1203
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1204
|
+
* @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.
|
|
1205
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1206
|
+
* @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.
|
|
1207
|
+
* @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.
|
|
1208
|
+
* @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.
|
|
1209
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1210
|
+
* @param {*} [options] Override http request option.
|
|
1211
|
+
* @throws {RequiredError}
|
|
1212
|
+
*/
|
|
1213
|
+
listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListDocumentsResponseClass> {
|
|
1214
|
+
return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
1215
|
+
},
|
|
902
1216
|
/**
|
|
903
1217
|
* List all the invoices of a customer
|
|
904
1218
|
* @summary List invoices of a customer
|
|
@@ -944,6 +1258,19 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
944
1258
|
refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: any): AxiosPromise<void> {
|
|
945
1259
|
return localVarFp.refreshToken(refreshTokenDto, cookie, options).then((request) => request(axios, basePath));
|
|
946
1260
|
},
|
|
1261
|
+
/**
|
|
1262
|
+
* Request to update an existing policy by customer
|
|
1263
|
+
* @summary Request policy update by customer
|
|
1264
|
+
* @param {string} policyCode The policy code
|
|
1265
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1266
|
+
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
1267
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1268
|
+
* @param {*} [options] Override http request option.
|
|
1269
|
+
* @throws {RequiredError}
|
|
1270
|
+
*/
|
|
1271
|
+
requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: any): AxiosPromise<RequestPolicyUpdateResponseClass> {
|
|
1272
|
+
return localVarFp.requestPolicyUpdate(policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1273
|
+
},
|
|
947
1274
|
/**
|
|
948
1275
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
949
1276
|
* @summary Change password by customer
|
|
@@ -964,6 +1291,18 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
964
1291
|
respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: any): AxiosPromise<RespondToAuthChallengeClass> {
|
|
965
1292
|
return localVarFp.respondToAuthChallenge(respondToAuthChallengeRequestDto, options).then((request) => request(axios, basePath));
|
|
966
1293
|
},
|
|
1294
|
+
/**
|
|
1295
|
+
* Update customer details like phone, email, names, addresses etc
|
|
1296
|
+
* @summary Update customer details
|
|
1297
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1298
|
+
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
1299
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1300
|
+
* @param {*} [options] Override http request option.
|
|
1301
|
+
* @throws {RequiredError}
|
|
1302
|
+
*/
|
|
1303
|
+
updateCustomer(customerCode: string, updateCustomerRequestDto: UpdateCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCustomerResponseClass> {
|
|
1304
|
+
return localVarFp.updateCustomer(customerCode, updateCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1305
|
+
},
|
|
967
1306
|
/**
|
|
968
1307
|
* Verify the invite sent to the customer via email.
|
|
969
1308
|
* @summary Verify customer\'s invite token
|
|
@@ -1015,6 +1354,34 @@ export interface CustomersApiForgotPasswordRequest {
|
|
|
1015
1354
|
readonly forgotPasswordRequestDto: ForgotPasswordRequestDto
|
|
1016
1355
|
}
|
|
1017
1356
|
|
|
1357
|
+
/**
|
|
1358
|
+
* Request parameters for getCustomer operation in CustomersApi.
|
|
1359
|
+
* @export
|
|
1360
|
+
* @interface CustomersApiGetCustomerRequest
|
|
1361
|
+
*/
|
|
1362
|
+
export interface CustomersApiGetCustomerRequest {
|
|
1363
|
+
/**
|
|
1364
|
+
* The customer code or \"me\" for the currently logged in customer
|
|
1365
|
+
* @type {string}
|
|
1366
|
+
* @memberof CustomersApiGetCustomer
|
|
1367
|
+
*/
|
|
1368
|
+
readonly customerCode: string
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* Fields to expand response by - [account]
|
|
1372
|
+
* @type {string}
|
|
1373
|
+
* @memberof CustomersApiGetCustomer
|
|
1374
|
+
*/
|
|
1375
|
+
readonly expand?: string
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1379
|
+
* @type {string}
|
|
1380
|
+
* @memberof CustomersApiGetCustomer
|
|
1381
|
+
*/
|
|
1382
|
+
readonly authorization?: string
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1018
1385
|
/**
|
|
1019
1386
|
* Request parameters for getPolicy operation in CustomersApi.
|
|
1020
1387
|
* @export
|
|
@@ -1106,6 +1473,69 @@ export interface CustomersApiInviteByTenantRequest {
|
|
|
1106
1473
|
readonly authorization?: string
|
|
1107
1474
|
}
|
|
1108
1475
|
|
|
1476
|
+
/**
|
|
1477
|
+
* Request parameters for listDocuments operation in CustomersApi.
|
|
1478
|
+
* @export
|
|
1479
|
+
* @interface CustomersApiListDocumentsRequest
|
|
1480
|
+
*/
|
|
1481
|
+
export interface CustomersApiListDocumentsRequest {
|
|
1482
|
+
/**
|
|
1483
|
+
* The customer code or \"me\" for the currently logged in customer
|
|
1484
|
+
* @type {string}
|
|
1485
|
+
* @memberof CustomersApiListDocuments
|
|
1486
|
+
*/
|
|
1487
|
+
readonly customerCode: string
|
|
1488
|
+
|
|
1489
|
+
/**
|
|
1490
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1491
|
+
* @type {any}
|
|
1492
|
+
* @memberof CustomersApiListDocuments
|
|
1493
|
+
*/
|
|
1494
|
+
readonly pageSize?: any
|
|
1495
|
+
|
|
1496
|
+
/**
|
|
1497
|
+
* 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.
|
|
1498
|
+
* @type {any}
|
|
1499
|
+
* @memberof CustomersApiListDocuments
|
|
1500
|
+
*/
|
|
1501
|
+
readonly pageToken?: any
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1505
|
+
* @type {any}
|
|
1506
|
+
* @memberof CustomersApiListDocuments
|
|
1507
|
+
*/
|
|
1508
|
+
readonly filter?: any
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
1512
|
+
* @type {any}
|
|
1513
|
+
* @memberof CustomersApiListDocuments
|
|
1514
|
+
*/
|
|
1515
|
+
readonly search?: any
|
|
1516
|
+
|
|
1517
|
+
/**
|
|
1518
|
+
* 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.
|
|
1519
|
+
* @type {any}
|
|
1520
|
+
* @memberof CustomersApiListDocuments
|
|
1521
|
+
*/
|
|
1522
|
+
readonly order?: any
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* 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.
|
|
1526
|
+
* @type {any}
|
|
1527
|
+
* @memberof CustomersApiListDocuments
|
|
1528
|
+
*/
|
|
1529
|
+
readonly expand?: any
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1533
|
+
* @type {string}
|
|
1534
|
+
* @memberof CustomersApiListDocuments
|
|
1535
|
+
*/
|
|
1536
|
+
readonly authorization?: string
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1109
1539
|
/**
|
|
1110
1540
|
* Request parameters for listInvoices operation in CustomersApi.
|
|
1111
1541
|
* @export
|
|
@@ -1253,6 +1683,41 @@ export interface CustomersApiRefreshTokenRequest {
|
|
|
1253
1683
|
readonly cookie?: string
|
|
1254
1684
|
}
|
|
1255
1685
|
|
|
1686
|
+
/**
|
|
1687
|
+
* Request parameters for requestPolicyUpdate operation in CustomersApi.
|
|
1688
|
+
* @export
|
|
1689
|
+
* @interface CustomersApiRequestPolicyUpdateRequest
|
|
1690
|
+
*/
|
|
1691
|
+
export interface CustomersApiRequestPolicyUpdateRequest {
|
|
1692
|
+
/**
|
|
1693
|
+
* The policy code
|
|
1694
|
+
* @type {string}
|
|
1695
|
+
* @memberof CustomersApiRequestPolicyUpdate
|
|
1696
|
+
*/
|
|
1697
|
+
readonly policyCode: string
|
|
1698
|
+
|
|
1699
|
+
/**
|
|
1700
|
+
* The customer code or \"me\" for the currently logged in customer
|
|
1701
|
+
* @type {string}
|
|
1702
|
+
* @memberof CustomersApiRequestPolicyUpdate
|
|
1703
|
+
*/
|
|
1704
|
+
readonly customerCode: string
|
|
1705
|
+
|
|
1706
|
+
/**
|
|
1707
|
+
*
|
|
1708
|
+
* @type {RequestPolicyUpdateRequestDto}
|
|
1709
|
+
* @memberof CustomersApiRequestPolicyUpdate
|
|
1710
|
+
*/
|
|
1711
|
+
readonly requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1715
|
+
* @type {string}
|
|
1716
|
+
* @memberof CustomersApiRequestPolicyUpdate
|
|
1717
|
+
*/
|
|
1718
|
+
readonly authorization?: string
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1256
1721
|
/**
|
|
1257
1722
|
* Request parameters for resetPassword operation in CustomersApi.
|
|
1258
1723
|
* @export
|
|
@@ -1281,6 +1746,34 @@ export interface CustomersApiRespondToAuthChallengeRequest {
|
|
|
1281
1746
|
readonly respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto
|
|
1282
1747
|
}
|
|
1283
1748
|
|
|
1749
|
+
/**
|
|
1750
|
+
* Request parameters for updateCustomer operation in CustomersApi.
|
|
1751
|
+
* @export
|
|
1752
|
+
* @interface CustomersApiUpdateCustomerRequest
|
|
1753
|
+
*/
|
|
1754
|
+
export interface CustomersApiUpdateCustomerRequest {
|
|
1755
|
+
/**
|
|
1756
|
+
* The customer code or \"me\" for the currently logged in customer
|
|
1757
|
+
* @type {string}
|
|
1758
|
+
* @memberof CustomersApiUpdateCustomer
|
|
1759
|
+
*/
|
|
1760
|
+
readonly customerCode: string
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
*
|
|
1764
|
+
* @type {UpdateCustomerRequestDto}
|
|
1765
|
+
* @memberof CustomersApiUpdateCustomer
|
|
1766
|
+
*/
|
|
1767
|
+
readonly updateCustomerRequestDto: UpdateCustomerRequestDto
|
|
1768
|
+
|
|
1769
|
+
/**
|
|
1770
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1771
|
+
* @type {string}
|
|
1772
|
+
* @memberof CustomersApiUpdateCustomer
|
|
1773
|
+
*/
|
|
1774
|
+
readonly authorization?: string
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1284
1777
|
/**
|
|
1285
1778
|
* Request parameters for verifyInvite operation in CustomersApi.
|
|
1286
1779
|
* @export
|
|
@@ -1340,6 +1833,18 @@ export class CustomersApi extends BaseAPI {
|
|
|
1340
1833
|
return CustomersApiFp(this.configuration).forgotPassword(requestParameters.forgotPasswordRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1341
1834
|
}
|
|
1342
1835
|
|
|
1836
|
+
/**
|
|
1837
|
+
* Get customer details
|
|
1838
|
+
* @summary Get customer details
|
|
1839
|
+
* @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
|
|
1840
|
+
* @param {*} [options] Override http request option.
|
|
1841
|
+
* @throws {RequiredError}
|
|
1842
|
+
* @memberof CustomersApi
|
|
1843
|
+
*/
|
|
1844
|
+
public getCustomer(requestParameters: CustomersApiGetCustomerRequest, options?: AxiosRequestConfig) {
|
|
1845
|
+
return CustomersApiFp(this.configuration).getCustomer(requestParameters.customerCode, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1343
1848
|
/**
|
|
1344
1849
|
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
1345
1850
|
* @summary Get policy details
|
|
@@ -1366,7 +1871,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
1366
1871
|
|
|
1367
1872
|
/**
|
|
1368
1873
|
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
1369
|
-
* @summary Invite by
|
|
1874
|
+
* @summary Invite a customer by self
|
|
1370
1875
|
* @param {CustomersApiInviteByCustomerRequest} requestParameters Request parameters.
|
|
1371
1876
|
* @param {*} [options] Override http request option.
|
|
1372
1877
|
* @throws {RequiredError}
|
|
@@ -1378,7 +1883,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
1378
1883
|
|
|
1379
1884
|
/**
|
|
1380
1885
|
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
1381
|
-
* @summary Invite by tenant
|
|
1886
|
+
* @summary Invite a customer by tenant
|
|
1382
1887
|
* @param {CustomersApiInviteByTenantRequest} requestParameters Request parameters.
|
|
1383
1888
|
* @param {*} [options] Override http request option.
|
|
1384
1889
|
* @throws {RequiredError}
|
|
@@ -1388,6 +1893,18 @@ export class CustomersApi extends BaseAPI {
|
|
|
1388
1893
|
return CustomersApiFp(this.configuration).inviteByTenant(requestParameters.inviteByCustomerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1389
1894
|
}
|
|
1390
1895
|
|
|
1896
|
+
/**
|
|
1897
|
+
* List all the documents of a customer
|
|
1898
|
+
* @summary List documents of a customer
|
|
1899
|
+
* @param {CustomersApiListDocumentsRequest} requestParameters Request parameters.
|
|
1900
|
+
* @param {*} [options] Override http request option.
|
|
1901
|
+
* @throws {RequiredError}
|
|
1902
|
+
* @memberof CustomersApi
|
|
1903
|
+
*/
|
|
1904
|
+
public listDocuments(requestParameters: CustomersApiListDocumentsRequest, options?: AxiosRequestConfig) {
|
|
1905
|
+
return CustomersApiFp(this.configuration).listDocuments(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1391
1908
|
/**
|
|
1392
1909
|
* List all the invoices of a customer
|
|
1393
1910
|
* @summary List invoices of a customer
|
|
@@ -1424,6 +1941,18 @@ export class CustomersApi extends BaseAPI {
|
|
|
1424
1941
|
return CustomersApiFp(this.configuration).refreshToken(requestParameters.refreshTokenDto, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath));
|
|
1425
1942
|
}
|
|
1426
1943
|
|
|
1944
|
+
/**
|
|
1945
|
+
* Request to update an existing policy by customer
|
|
1946
|
+
* @summary Request policy update by customer
|
|
1947
|
+
* @param {CustomersApiRequestPolicyUpdateRequest} requestParameters Request parameters.
|
|
1948
|
+
* @param {*} [options] Override http request option.
|
|
1949
|
+
* @throws {RequiredError}
|
|
1950
|
+
* @memberof CustomersApi
|
|
1951
|
+
*/
|
|
1952
|
+
public requestPolicyUpdate(requestParameters: CustomersApiRequestPolicyUpdateRequest, options?: AxiosRequestConfig) {
|
|
1953
|
+
return CustomersApiFp(this.configuration).requestPolicyUpdate(requestParameters.policyCode, requestParameters.customerCode, requestParameters.requestPolicyUpdateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1427
1956
|
/**
|
|
1428
1957
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
1429
1958
|
* @summary Change password by customer
|
|
@@ -1448,6 +1977,18 @@ export class CustomersApi extends BaseAPI {
|
|
|
1448
1977
|
return CustomersApiFp(this.configuration).respondToAuthChallenge(requestParameters.respondToAuthChallengeRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1449
1978
|
}
|
|
1450
1979
|
|
|
1980
|
+
/**
|
|
1981
|
+
* Update customer details like phone, email, names, addresses etc
|
|
1982
|
+
* @summary Update customer details
|
|
1983
|
+
* @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
1984
|
+
* @param {*} [options] Override http request option.
|
|
1985
|
+
* @throws {RequiredError}
|
|
1986
|
+
* @memberof CustomersApi
|
|
1987
|
+
*/
|
|
1988
|
+
public updateCustomer(requestParameters: CustomersApiUpdateCustomerRequest, options?: AxiosRequestConfig) {
|
|
1989
|
+
return CustomersApiFp(this.configuration).updateCustomer(requestParameters.customerCode, requestParameters.updateCustomerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1451
1992
|
/**
|
|
1452
1993
|
* Verify the invite sent to the customer via email.
|
|
1453
1994
|
* @summary Verify customer\'s invite token
|