@emilgroup/customer-sdk-node 1.6.1 → 1.9.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +17 -0
- package/README.md +2 -2
- package/api/claims-api.ts +557 -0
- package/api/customers-api.ts +248 -712
- package/api/policies-api.ts +856 -0
- package/api.ts +5 -1
- package/base.ts +24 -32
- package/common.ts +2 -1
- package/configuration.ts +1 -1
- package/dist/api/claims-api.d.ts +327 -0
- package/dist/api/claims-api.js +508 -0
- package/dist/api/customers-api.d.ts +171 -448
- package/dist/api/customers-api.js +189 -508
- package/dist/api/policies-api.d.ts +505 -0
- package/dist/api/policies-api.js +714 -0
- package/dist/api.d.ts +3 -1
- package/dist/api.js +3 -1
- package/dist/base.d.ts +2 -3
- package/dist/base.js +20 -21
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/account-class.d.ts +1 -1
- package/dist/models/account-class.js +1 -1
- package/dist/models/account-policy-class.d.ts +1 -1
- package/dist/models/account-policy-class.js +1 -1
- package/dist/models/authentication-result-class.d.ts +1 -1
- package/dist/models/authentication-result-class.js +1 -1
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-psp-request.d.ts +32 -0
- package/dist/models/complete-payment-setup-psp-request.js +15 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +24 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +96 -0
- package/dist/models/create-account-request-dto.js +21 -0
- package/dist/models/create-customer-claim-request-dto.d.ts +108 -0
- package/dist/models/create-customer-claim-request-dto.js +15 -0
- package/dist/models/create-customer-request-dto.d.ts +8 -1
- package/dist/models/create-customer-request-dto.js +1 -1
- package/dist/models/create-customer-response-class.d.ts +1 -1
- package/dist/models/create-customer-response-class.js +1 -1
- package/dist/models/create-presigned-post-response-class.d.ts +30 -0
- package/dist/models/create-presigned-post-response-class.js +15 -0
- package/dist/models/customer-class.d.ts +8 -2
- package/dist/models/customer-class.js +1 -1
- package/dist/models/customer-document-class.d.ts +2 -2
- package/dist/models/customer-document-class.js +1 -1
- package/dist/models/forgot-password-request-dto.d.ts +1 -1
- package/dist/models/forgot-password-request-dto.js +1 -1
- package/dist/models/get-customer-document-download-url-response-class.d.ts +1 -1
- package/dist/models/get-customer-document-download-url-response-class.js +1 -1
- package/dist/models/get-customer-response-class.d.ts +1 -1
- package/dist/models/get-customer-response-class.js +1 -1
- package/dist/models/get-policy-response-class.d.ts +1 -1
- package/dist/models/get-policy-response-class.js +1 -1
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/dist/models/initiate-auth-request-dto.d.ts +1 -1
- package/dist/models/initiate-auth-request-dto.js +1 -1
- package/dist/models/initiate-auth-response-class.d.ts +1 -1
- package/dist/models/initiate-auth-response-class.js +1 -1
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- package/dist/models/invite-by-customer-request-dto.d.ts +1 -1
- package/dist/models/invite-by-customer-request-dto.js +1 -1
- package/dist/models/invite-by-customer-response-class.d.ts +1 -1
- package/dist/models/invite-by-customer-response-class.js +1 -1
- package/dist/models/invite-by-tenant-response-class.d.ts +1 -1
- package/dist/models/invite-by-tenant-response-class.js +1 -1
- package/dist/models/invite-class.d.ts +1 -1
- package/dist/models/invite-class.js +1 -1
- package/dist/models/invoice-class.d.ts +3 -3
- package/dist/models/invoice-class.js +1 -1
- package/dist/models/list-documents-response-class.d.ts +1 -1
- package/dist/models/list-documents-response-class.js +1 -1
- package/dist/models/list-invoices-response-class.d.ts +1 -1
- package/dist/models/list-invoices-response-class.js +1 -1
- package/dist/models/list-policies-response-class.d.ts +1 -1
- package/dist/models/list-policies-response-class.js +1 -1
- package/dist/models/policy-class.d.ts +14 -1
- package/dist/models/policy-class.js +1 -1
- package/dist/models/policy-object-class.d.ts +1 -1
- package/dist/models/policy-object-class.js +1 -1
- package/dist/models/policy-premium-class.d.ts +1 -1
- package/dist/models/policy-premium-class.js +1 -1
- package/dist/models/policy-premium-item-class.d.ts +1 -1
- package/dist/models/policy-premium-item-class.js +1 -1
- package/dist/models/policy-version-class.d.ts +1 -1
- package/dist/models/policy-version-class.js +1 -1
- package/dist/models/refresh-token-dto.d.ts +1 -1
- package/dist/models/refresh-token-dto.js +1 -1
- package/dist/models/request-policy-update-request-dto.d.ts +1 -1
- package/dist/models/request-policy-update-request-dto.js +1 -1
- package/dist/models/request-policy-update-response-class.d.ts +1 -1
- package/dist/models/request-policy-update-response-class.js +1 -1
- package/dist/models/reset-password-by-customer-request-dto.d.ts +1 -1
- package/dist/models/reset-password-by-customer-request-dto.js +1 -1
- package/dist/models/respond-to-auth-challenge-class.d.ts +1 -1
- package/dist/models/respond-to-auth-challenge-class.js +1 -1
- package/dist/models/respond-to-auth-challenge-request-dto.d.ts +1 -1
- package/dist/models/respond-to-auth-challenge-request-dto.js +1 -1
- package/dist/models/shared-customer-policy-object-request-dto.d.ts +1 -1
- package/dist/models/shared-customer-policy-object-request-dto.js +1 -1
- package/dist/models/shared-customer-product-class.d.ts +54 -0
- package/dist/models/shared-customer-product-class.js +15 -0
- package/dist/models/shared-invoice-item-class.d.ts +1 -1
- package/dist/models/shared-invoice-item-class.js +1 -1
- package/dist/models/terminate-customer-policy-request-dto.d.ts +1 -1
- package/dist/models/terminate-customer-policy-request-dto.js +1 -1
- package/dist/models/terminate-customer-policy-response-class.d.ts +1 -1
- package/dist/models/terminate-customer-policy-response-class.js +1 -1
- package/dist/models/timeslice-class.d.ts +1 -1
- package/dist/models/timeslice-class.js +1 -1
- package/dist/models/to-grpc-customer-product-class.d.ts +54 -0
- package/dist/models/to-grpc-customer-product-class.js +15 -0
- package/dist/models/update-account-request-dto.d.ts +2 -2
- package/dist/models/update-account-request-dto.js +1 -1
- package/dist/models/update-customer-claim-request-dto.d.ts +120 -0
- package/dist/models/update-customer-claim-request-dto.js +15 -0
- package/dist/models/update-customer-request-dto.d.ts +1 -1
- package/dist/models/update-customer-request-dto.js +1 -1
- package/dist/models/update-customer-response-class.d.ts +1 -1
- package/dist/models/update-customer-response-class.js +1 -1
- package/dist/models/upload-customer-claim-documents-request-dto.d.ts +36 -0
- package/dist/models/upload-customer-claim-documents-request-dto.js +15 -0
- package/dist/models/upload-customer-policy-documents-request-dto.d.ts +47 -0
- package/dist/models/upload-customer-policy-documents-request-dto.js +20 -0
- package/dist/models/verify-customer-invite-response-class.d.ts +1 -1
- package/dist/models/verify-customer-invite-response-class.js +1 -1
- package/dist/models/withdraw-customer-policy-response-class.d.ts +1 -1
- package/dist/models/withdraw-customer-policy-response-class.js +1 -1
- package/index.ts +1 -1
- package/models/account-class.ts +1 -1
- package/models/account-policy-class.ts +1 -1
- package/models/authentication-result-class.ts +1 -1
- package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
- package/models/complete-payment-setup-psp-request.ts +38 -0
- package/models/complete-payment-setup-response-class.ts +30 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
- package/models/create-account-request-dto.ts +105 -0
- package/models/create-customer-claim-request-dto.ts +114 -0
- package/models/create-customer-request-dto.ts +8 -1
- package/models/create-customer-response-class.ts +1 -1
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/customer-class.ts +8 -2
- package/models/customer-document-class.ts +1 -1
- package/models/forgot-password-request-dto.ts +1 -1
- package/models/get-customer-document-download-url-response-class.ts +1 -1
- package/models/get-customer-response-class.ts +1 -1
- package/models/get-policy-response-class.ts +1 -1
- package/models/index.ts +15 -0
- package/models/initiate-auth-request-dto.ts +1 -1
- package/models/initiate-auth-response-class.ts +1 -1
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/invite-by-customer-request-dto.ts +1 -1
- package/models/invite-by-customer-response-class.ts +1 -1
- package/models/invite-by-tenant-response-class.ts +1 -1
- package/models/invite-class.ts +1 -1
- package/models/invoice-class.ts +1 -1
- package/models/list-documents-response-class.ts +1 -1
- package/models/list-invoices-response-class.ts +1 -1
- package/models/list-policies-response-class.ts +1 -1
- package/models/policy-class.ts +14 -1
- package/models/policy-object-class.ts +1 -1
- package/models/policy-premium-class.ts +1 -1
- package/models/policy-premium-item-class.ts +1 -1
- package/models/policy-version-class.ts +1 -1
- package/models/refresh-token-dto.ts +1 -1
- package/models/request-policy-update-request-dto.ts +1 -1
- package/models/request-policy-update-response-class.ts +1 -1
- package/models/reset-password-by-customer-request-dto.ts +1 -1
- package/models/respond-to-auth-challenge-class.ts +1 -1
- package/models/respond-to-auth-challenge-request-dto.ts +1 -1
- package/models/shared-customer-policy-object-request-dto.ts +1 -1
- package/models/shared-customer-product-class.ts +60 -0
- package/models/shared-invoice-item-class.ts +1 -1
- package/models/terminate-customer-policy-request-dto.ts +1 -1
- package/models/terminate-customer-policy-response-class.ts +1 -1
- package/models/timeslice-class.ts +1 -1
- package/models/to-grpc-customer-product-class.ts +60 -0
- package/models/update-account-request-dto.ts +1 -1
- package/models/update-customer-claim-request-dto.ts +126 -0
- package/models/update-customer-request-dto.ts +1 -1
- package/models/update-customer-response-class.ts +1 -1
- package/models/upload-customer-claim-documents-request-dto.ts +42 -0
- package/models/upload-customer-policy-documents-request-dto.ts +56 -0
- package/models/verify-customer-invite-response-class.ts +1 -1
- package/models/withdraw-customer-policy-response-class.ts +1 -1
- package/package.json +2 -3
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL CustomerService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -12,37 +12,43 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CompletePaymentSetupPspRequest } from '../models';
|
|
16
|
+
import { CompletePaymentSetupResponseClass } from '../models';
|
|
15
17
|
import { CreateCustomerRequestDto } from '../models';
|
|
16
18
|
import { CreateCustomerResponseClass } from '../models';
|
|
17
19
|
import { ForgotPasswordRequestDto } from '../models';
|
|
18
20
|
import { GetCustomerDocumentDownloadUrlResponseClass } from '../models';
|
|
19
21
|
import { GetCustomerResponseClass } from '../models';
|
|
20
|
-
import { GetPolicyResponseClass } from '../models';
|
|
21
22
|
import { InitiateAuthRequestDto } from '../models';
|
|
22
23
|
import { InitiateAuthResponseClass } from '../models';
|
|
24
|
+
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
23
25
|
import { InviteByCustomerRequestDto } from '../models';
|
|
24
26
|
import { InviteByCustomerResponseClass } from '../models';
|
|
25
27
|
import { InviteByTenantResponseClass } from '../models';
|
|
26
28
|
import { ListDocumentsResponseClass } from '../models';
|
|
27
29
|
import { ListInvoicesResponseClass } from '../models';
|
|
28
|
-
import { ListPoliciesResponseClass } from '../models';
|
|
29
30
|
import { RefreshTokenDto } from '../models';
|
|
30
|
-
import { RequestPolicyUpdateRequestDto } from '../models';
|
|
31
|
-
import { RequestPolicyUpdateResponseClass } from '../models';
|
|
32
31
|
import { ResetPasswordByCustomerRequestDto } from '../models';
|
|
33
32
|
import { RespondToAuthChallengeClass } from '../models';
|
|
34
33
|
import { RespondToAuthChallengeRequestDto } from '../models';
|
|
35
|
-
import { TerminateCustomerPolicyRequestDto } from '../models';
|
|
36
|
-
import { TerminateCustomerPolicyResponseClass } from '../models';
|
|
37
34
|
import { UpdateCustomerRequestDto } from '../models';
|
|
38
35
|
import { UpdateCustomerResponseClass } from '../models';
|
|
39
36
|
import { VerifyCustomerInviteResponseClass } from '../models';
|
|
40
|
-
import { WithdrawCustomerPolicyResponseClass } from '../models';
|
|
41
37
|
/**
|
|
42
38
|
* CustomersApi - axios parameter creator
|
|
43
39
|
* @export
|
|
44
40
|
*/
|
|
45
41
|
export declare const CustomersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
42
|
+
/**
|
|
43
|
+
* Request to complete a payment change by customer.
|
|
44
|
+
* @summary Request payment setup complete by customer
|
|
45
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
46
|
+
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
47
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
48
|
+
* @param {*} [options] Override http request option.
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
*/
|
|
51
|
+
completePaymentSetup: (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
52
|
/**
|
|
47
53
|
* Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
|
|
48
54
|
* @summary Register a customer after invite
|
|
@@ -60,9 +66,9 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
60
66
|
*/
|
|
61
67
|
forgotPassword: (forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
68
|
/**
|
|
63
|
-
* Get customer details
|
|
69
|
+
* Get customer details.
|
|
64
70
|
* @summary Get customer details
|
|
65
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
71
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
66
72
|
* @param {string} [expand] Fields to expand response by - [account]
|
|
67
73
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
68
74
|
* @param {*} [options] Override http request option.
|
|
@@ -70,26 +76,15 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
70
76
|
*/
|
|
71
77
|
getCustomer: (customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
72
78
|
/**
|
|
73
|
-
* Get a presigned download url for document
|
|
79
|
+
* Get a presigned download url for document.
|
|
74
80
|
* @summary Get a presigned download url for document
|
|
75
|
-
* @param {string} documentCode The document code
|
|
76
|
-
* @param {string} customerCode
|
|
81
|
+
* @param {string} documentCode The document code.
|
|
82
|
+
* @param {string} customerCode
|
|
77
83
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
78
84
|
* @param {*} [options] Override http request option.
|
|
79
85
|
* @throws {RequiredError}
|
|
80
86
|
*/
|
|
81
87
|
getCustomerDocumentDownloadUrl: (documentCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
82
|
-
/**
|
|
83
|
-
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
84
|
-
* @summary Get policy details
|
|
85
|
-
* @param {string} policyCode The policy code
|
|
86
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
87
|
-
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
88
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
89
|
-
* @param {*} [options] Override http request option.
|
|
90
|
-
* @throws {RequiredError}
|
|
91
|
-
*/
|
|
92
|
-
getPolicy: (policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
93
88
|
/**
|
|
94
89
|
* Start auth process to get new access token, refresh token after successful login.
|
|
95
90
|
* @summary Initiate auth by customer
|
|
@@ -98,11 +93,20 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
98
93
|
* @throws {RequiredError}
|
|
99
94
|
*/
|
|
100
95
|
initiateAuth: (initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
96
|
+
/**
|
|
97
|
+
* Request to initiate a payment change by customer.
|
|
98
|
+
* @summary Request payment setup initiation by customer
|
|
99
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
100
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
initiatePaymentSetup: (customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
101
105
|
/**
|
|
102
106
|
* 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.
|
|
103
107
|
* @summary Invite a customer by self
|
|
104
108
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
105
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
109
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
106
110
|
* @param {*} [options] Override http request option.
|
|
107
111
|
* @throws {RequiredError}
|
|
108
112
|
*/
|
|
@@ -111,15 +115,15 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
111
115
|
* 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.
|
|
112
116
|
* @summary Invite a customer by tenant
|
|
113
117
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
114
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
118
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
115
119
|
* @param {*} [options] Override http request option.
|
|
116
120
|
* @throws {RequiredError}
|
|
117
121
|
*/
|
|
118
122
|
inviteByTenant: (inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
119
123
|
/**
|
|
120
|
-
* List all the documents of a customer
|
|
124
|
+
* List all the documents of a customer.
|
|
121
125
|
* @summary List documents of a customer
|
|
122
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
126
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
123
127
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
124
128
|
* @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.
|
|
125
129
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -132,9 +136,9 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
132
136
|
*/
|
|
133
137
|
listDocuments: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
134
138
|
/**
|
|
135
|
-
* List all the invoices of a customer
|
|
139
|
+
* List all the invoices of a customer.
|
|
136
140
|
* @summary List invoices of a customer
|
|
137
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
141
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
138
142
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
139
143
|
* @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.
|
|
140
144
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -146,21 +150,6 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
146
150
|
* @throws {RequiredError}
|
|
147
151
|
*/
|
|
148
152
|
listInvoices: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
149
|
-
/**
|
|
150
|
-
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
151
|
-
* @summary List policies of a customer
|
|
152
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
153
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
154
|
-
* @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.
|
|
155
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
156
|
-
* @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} [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.
|
|
158
|
-
* @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.
|
|
159
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
160
|
-
* @param {*} [options] Override http request option.
|
|
161
|
-
* @throws {RequiredError}
|
|
162
|
-
*/
|
|
163
|
-
listPolicies: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
164
153
|
/**
|
|
165
154
|
* Get new access token, new refresh token.
|
|
166
155
|
* @summary Refresh token by customer
|
|
@@ -170,17 +159,6 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
170
159
|
* @throws {RequiredError}
|
|
171
160
|
*/
|
|
172
161
|
refreshToken: (refreshTokenDto: RefreshTokenDto, cookie?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
173
|
-
/**
|
|
174
|
-
* Request to update an existing policy by customer
|
|
175
|
-
* @summary Request policy update by customer
|
|
176
|
-
* @param {string} policyCode The policy code
|
|
177
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
178
|
-
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
179
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
180
|
-
* @param {*} [options] Override http request option.
|
|
181
|
-
* @throws {RequiredError}
|
|
182
|
-
*/
|
|
183
|
-
requestPolicyUpdate: (policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
184
162
|
/**
|
|
185
163
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
186
164
|
* @summary Change password by customer
|
|
@@ -198,20 +176,9 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
198
176
|
*/
|
|
199
177
|
respondToAuthChallenge: (respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
200
178
|
/**
|
|
201
|
-
*
|
|
202
|
-
* @summary Terminate a policy by customer
|
|
203
|
-
* @param {string} policyCode The policy code
|
|
204
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
205
|
-
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
206
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
207
|
-
* @param {*} [options] Override http request option.
|
|
208
|
-
* @throws {RequiredError}
|
|
209
|
-
*/
|
|
210
|
-
terminateCustomerPolicy: (policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
211
|
-
/**
|
|
212
|
-
* Update customer details like phone, email, names, addresses etc
|
|
179
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
213
180
|
* @summary Update customer details
|
|
214
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
181
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
215
182
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
216
183
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
217
184
|
* @param {*} [options] Override http request option.
|
|
@@ -234,22 +201,22 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
234
201
|
* @throws {RequiredError}
|
|
235
202
|
*/
|
|
236
203
|
verifyResetPasswordToken: (resetToken: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
237
|
-
/**
|
|
238
|
-
* Withdraw policy by customer
|
|
239
|
-
* @summary Withdraw policy by customer
|
|
240
|
-
* @param {string} policyCode The policy code
|
|
241
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
242
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
243
|
-
* @param {*} [options] Override http request option.
|
|
244
|
-
* @throws {RequiredError}
|
|
245
|
-
*/
|
|
246
|
-
withdrawCustomerPolicy: (policyCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
247
204
|
};
|
|
248
205
|
/**
|
|
249
206
|
* CustomersApi - functional programming interface
|
|
250
207
|
* @export
|
|
251
208
|
*/
|
|
252
209
|
export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
210
|
+
/**
|
|
211
|
+
* Request to complete a payment change by customer.
|
|
212
|
+
* @summary Request payment setup complete by customer
|
|
213
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
214
|
+
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
215
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
216
|
+
* @param {*} [options] Override http request option.
|
|
217
|
+
* @throws {RequiredError}
|
|
218
|
+
*/
|
|
219
|
+
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
|
|
253
220
|
/**
|
|
254
221
|
* Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
|
|
255
222
|
* @summary Register a customer after invite
|
|
@@ -267,9 +234,9 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
267
234
|
*/
|
|
268
235
|
forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
269
236
|
/**
|
|
270
|
-
* Get customer details
|
|
237
|
+
* Get customer details.
|
|
271
238
|
* @summary Get customer details
|
|
272
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
239
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
273
240
|
* @param {string} [expand] Fields to expand response by - [account]
|
|
274
241
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
275
242
|
* @param {*} [options] Override http request option.
|
|
@@ -277,26 +244,15 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
277
244
|
*/
|
|
278
245
|
getCustomer(customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerResponseClass>>;
|
|
279
246
|
/**
|
|
280
|
-
* Get a presigned download url for document
|
|
247
|
+
* Get a presigned download url for document.
|
|
281
248
|
* @summary Get a presigned download url for document
|
|
282
|
-
* @param {string} documentCode The document code
|
|
283
|
-
* @param {string} customerCode
|
|
249
|
+
* @param {string} documentCode The document code.
|
|
250
|
+
* @param {string} customerCode
|
|
284
251
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
285
252
|
* @param {*} [options] Override http request option.
|
|
286
253
|
* @throws {RequiredError}
|
|
287
254
|
*/
|
|
288
255
|
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>>;
|
|
289
|
-
/**
|
|
290
|
-
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
291
|
-
* @summary Get policy details
|
|
292
|
-
* @param {string} policyCode The policy code
|
|
293
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
294
|
-
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
295
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
296
|
-
* @param {*} [options] Override http request option.
|
|
297
|
-
* @throws {RequiredError}
|
|
298
|
-
*/
|
|
299
|
-
getPolicy(policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
|
|
300
256
|
/**
|
|
301
257
|
* Start auth process to get new access token, refresh token after successful login.
|
|
302
258
|
* @summary Initiate auth by customer
|
|
@@ -305,11 +261,20 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
305
261
|
* @throws {RequiredError}
|
|
306
262
|
*/
|
|
307
263
|
initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateAuthResponseClass>>;
|
|
264
|
+
/**
|
|
265
|
+
* Request to initiate a payment change by customer.
|
|
266
|
+
* @summary Request payment setup initiation by customer
|
|
267
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
268
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
*/
|
|
272
|
+
initiatePaymentSetup(customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
|
|
308
273
|
/**
|
|
309
274
|
* 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.
|
|
310
275
|
* @summary Invite a customer by self
|
|
311
276
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
312
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
277
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
313
278
|
* @param {*} [options] Override http request option.
|
|
314
279
|
* @throws {RequiredError}
|
|
315
280
|
*/
|
|
@@ -318,15 +283,15 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
318
283
|
* 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.
|
|
319
284
|
* @summary Invite a customer by tenant
|
|
320
285
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
321
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
286
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
322
287
|
* @param {*} [options] Override http request option.
|
|
323
288
|
* @throws {RequiredError}
|
|
324
289
|
*/
|
|
325
290
|
inviteByTenant(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByTenantResponseClass>>;
|
|
326
291
|
/**
|
|
327
|
-
* List all the documents of a customer
|
|
292
|
+
* List all the documents of a customer.
|
|
328
293
|
* @summary List documents of a customer
|
|
329
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
294
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
330
295
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
331
296
|
* @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.
|
|
332
297
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -339,9 +304,9 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
339
304
|
*/
|
|
340
305
|
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>>;
|
|
341
306
|
/**
|
|
342
|
-
* List all the invoices of a customer
|
|
307
|
+
* List all the invoices of a customer.
|
|
343
308
|
* @summary List invoices of a customer
|
|
344
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
309
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
345
310
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
346
311
|
* @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.
|
|
347
312
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -353,21 +318,6 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
353
318
|
* @throws {RequiredError}
|
|
354
319
|
*/
|
|
355
320
|
listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>>;
|
|
356
|
-
/**
|
|
357
|
-
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
358
|
-
* @summary List policies of a customer
|
|
359
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
360
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
361
|
-
* @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.
|
|
362
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
363
|
-
* @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.
|
|
364
|
-
* @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.
|
|
365
|
-
* @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.
|
|
366
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
367
|
-
* @param {*} [options] Override http request option.
|
|
368
|
-
* @throws {RequiredError}
|
|
369
|
-
*/
|
|
370
|
-
listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
|
|
371
321
|
/**
|
|
372
322
|
* Get new access token, new refresh token.
|
|
373
323
|
* @summary Refresh token by customer
|
|
@@ -377,17 +327,6 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
377
327
|
* @throws {RequiredError}
|
|
378
328
|
*/
|
|
379
329
|
refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
380
|
-
/**
|
|
381
|
-
* Request to update an existing policy by customer
|
|
382
|
-
* @summary Request policy update by customer
|
|
383
|
-
* @param {string} policyCode The policy code
|
|
384
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
385
|
-
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
386
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
387
|
-
* @param {*} [options] Override http request option.
|
|
388
|
-
* @throws {RequiredError}
|
|
389
|
-
*/
|
|
390
|
-
requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPolicyUpdateResponseClass>>;
|
|
391
330
|
/**
|
|
392
331
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
393
332
|
* @summary Change password by customer
|
|
@@ -405,20 +344,9 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
405
344
|
*/
|
|
406
345
|
respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RespondToAuthChallengeClass>>;
|
|
407
346
|
/**
|
|
408
|
-
*
|
|
409
|
-
* @summary Terminate a policy by customer
|
|
410
|
-
* @param {string} policyCode The policy code
|
|
411
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
412
|
-
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
413
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
414
|
-
* @param {*} [options] Override http request option.
|
|
415
|
-
* @throws {RequiredError}
|
|
416
|
-
*/
|
|
417
|
-
terminateCustomerPolicy(policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminateCustomerPolicyResponseClass>>;
|
|
418
|
-
/**
|
|
419
|
-
* Update customer details like phone, email, names, addresses etc
|
|
347
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
420
348
|
* @summary Update customer details
|
|
421
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
349
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
422
350
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
423
351
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
424
352
|
* @param {*} [options] Override http request option.
|
|
@@ -441,22 +369,22 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
441
369
|
* @throws {RequiredError}
|
|
442
370
|
*/
|
|
443
371
|
verifyResetPasswordToken(resetToken: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
444
|
-
/**
|
|
445
|
-
* Withdraw policy by customer
|
|
446
|
-
* @summary Withdraw policy by customer
|
|
447
|
-
* @param {string} policyCode The policy code
|
|
448
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
449
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
450
|
-
* @param {*} [options] Override http request option.
|
|
451
|
-
* @throws {RequiredError}
|
|
452
|
-
*/
|
|
453
|
-
withdrawCustomerPolicy(policyCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawCustomerPolicyResponseClass>>;
|
|
454
372
|
};
|
|
455
373
|
/**
|
|
456
374
|
* CustomersApi - factory interface
|
|
457
375
|
* @export
|
|
458
376
|
*/
|
|
459
377
|
export declare const CustomersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
378
|
+
/**
|
|
379
|
+
* Request to complete a payment change by customer.
|
|
380
|
+
* @summary Request payment setup complete by customer
|
|
381
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
382
|
+
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
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
|
+
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
|
|
460
388
|
/**
|
|
461
389
|
* Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
|
|
462
390
|
* @summary Register a customer after invite
|
|
@@ -474,9 +402,9 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
474
402
|
*/
|
|
475
403
|
forgotPassword(forgotPasswordRequestDto: ForgotPasswordRequestDto, options?: any): AxiosPromise<void>;
|
|
476
404
|
/**
|
|
477
|
-
* Get customer details
|
|
405
|
+
* Get customer details.
|
|
478
406
|
* @summary Get customer details
|
|
479
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
407
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
480
408
|
* @param {string} [expand] Fields to expand response by - [account]
|
|
481
409
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
482
410
|
* @param {*} [options] Override http request option.
|
|
@@ -484,26 +412,15 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
484
412
|
*/
|
|
485
413
|
getCustomer(customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetCustomerResponseClass>;
|
|
486
414
|
/**
|
|
487
|
-
* Get a presigned download url for document
|
|
415
|
+
* Get a presigned download url for document.
|
|
488
416
|
* @summary Get a presigned download url for document
|
|
489
|
-
* @param {string} documentCode The document code
|
|
490
|
-
* @param {string} customerCode
|
|
417
|
+
* @param {string} documentCode The document code.
|
|
418
|
+
* @param {string} customerCode
|
|
491
419
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
492
420
|
* @param {*} [options] Override http request option.
|
|
493
421
|
* @throws {RequiredError}
|
|
494
422
|
*/
|
|
495
423
|
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>;
|
|
496
|
-
/**
|
|
497
|
-
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
498
|
-
* @summary Get policy details
|
|
499
|
-
* @param {string} policyCode The policy code
|
|
500
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
501
|
-
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
502
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
503
|
-
* @param {*} [options] Override http request option.
|
|
504
|
-
* @throws {RequiredError}
|
|
505
|
-
*/
|
|
506
|
-
getPolicy(policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
|
|
507
424
|
/**
|
|
508
425
|
* Start auth process to get new access token, refresh token after successful login.
|
|
509
426
|
* @summary Initiate auth by customer
|
|
@@ -512,11 +429,20 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
512
429
|
* @throws {RequiredError}
|
|
513
430
|
*/
|
|
514
431
|
initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: any): AxiosPromise<InitiateAuthResponseClass>;
|
|
432
|
+
/**
|
|
433
|
+
* Request to initiate a payment change by customer.
|
|
434
|
+
* @summary Request payment setup initiation by customer
|
|
435
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
436
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
437
|
+
* @param {*} [options] Override http request option.
|
|
438
|
+
* @throws {RequiredError}
|
|
439
|
+
*/
|
|
440
|
+
initiatePaymentSetup(customerCode: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
|
|
515
441
|
/**
|
|
516
442
|
* 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.
|
|
517
443
|
* @summary Invite a customer by self
|
|
518
444
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
519
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
445
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
520
446
|
* @param {*} [options] Override http request option.
|
|
521
447
|
* @throws {RequiredError}
|
|
522
448
|
*/
|
|
@@ -525,15 +451,15 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
525
451
|
* 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.
|
|
526
452
|
* @summary Invite a customer by tenant
|
|
527
453
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
528
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
454
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
529
455
|
* @param {*} [options] Override http request option.
|
|
530
456
|
* @throws {RequiredError}
|
|
531
457
|
*/
|
|
532
458
|
inviteByTenant(inviteByCustomerRequestDto: InviteByCustomerRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByTenantResponseClass>;
|
|
533
459
|
/**
|
|
534
|
-
* List all the documents of a customer
|
|
460
|
+
* List all the documents of a customer.
|
|
535
461
|
* @summary List documents of a customer
|
|
536
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
462
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
537
463
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
538
464
|
* @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.
|
|
539
465
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -546,9 +472,9 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
546
472
|
*/
|
|
547
473
|
listDocuments(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListDocumentsResponseClass>;
|
|
548
474
|
/**
|
|
549
|
-
* List all the invoices of a customer
|
|
475
|
+
* List all the invoices of a customer.
|
|
550
476
|
* @summary List invoices of a customer
|
|
551
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
477
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
552
478
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
553
479
|
* @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.
|
|
554
480
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -560,21 +486,6 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
560
486
|
* @throws {RequiredError}
|
|
561
487
|
*/
|
|
562
488
|
listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass>;
|
|
563
|
-
/**
|
|
564
|
-
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
565
|
-
* @summary List policies of a customer
|
|
566
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
567
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
568
|
-
* @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.
|
|
569
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
570
|
-
* @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.
|
|
571
|
-
* @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.
|
|
572
|
-
* @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.
|
|
573
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
574
|
-
* @param {*} [options] Override http request option.
|
|
575
|
-
* @throws {RequiredError}
|
|
576
|
-
*/
|
|
577
|
-
listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass>;
|
|
578
489
|
/**
|
|
579
490
|
* Get new access token, new refresh token.
|
|
580
491
|
* @summary Refresh token by customer
|
|
@@ -584,17 +495,6 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
584
495
|
* @throws {RequiredError}
|
|
585
496
|
*/
|
|
586
497
|
refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: any): AxiosPromise<void>;
|
|
587
|
-
/**
|
|
588
|
-
* Request to update an existing policy by customer
|
|
589
|
-
* @summary Request policy update by customer
|
|
590
|
-
* @param {string} policyCode The policy code
|
|
591
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
592
|
-
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
593
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
594
|
-
* @param {*} [options] Override http request option.
|
|
595
|
-
* @throws {RequiredError}
|
|
596
|
-
*/
|
|
597
|
-
requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: any): AxiosPromise<RequestPolicyUpdateResponseClass>;
|
|
598
498
|
/**
|
|
599
499
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
600
500
|
* @summary Change password by customer
|
|
@@ -612,20 +512,9 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
612
512
|
*/
|
|
613
513
|
respondToAuthChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto, options?: any): AxiosPromise<RespondToAuthChallengeClass>;
|
|
614
514
|
/**
|
|
615
|
-
*
|
|
616
|
-
* @summary Terminate a policy by customer
|
|
617
|
-
* @param {string} policyCode The policy code
|
|
618
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
619
|
-
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
620
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
621
|
-
* @param {*} [options] Override http request option.
|
|
622
|
-
* @throws {RequiredError}
|
|
623
|
-
*/
|
|
624
|
-
terminateCustomerPolicy(policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<TerminateCustomerPolicyResponseClass>;
|
|
625
|
-
/**
|
|
626
|
-
* Update customer details like phone, email, names, addresses etc
|
|
515
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
627
516
|
* @summary Update customer details
|
|
628
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
517
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
629
518
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
630
519
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
631
520
|
* @param {*} [options] Override http request option.
|
|
@@ -648,17 +537,32 @@ export declare const CustomersApiFactory: (configuration?: Configuration, basePa
|
|
|
648
537
|
* @throws {RequiredError}
|
|
649
538
|
*/
|
|
650
539
|
verifyResetPasswordToken(resetToken: string, options?: any): AxiosPromise<void>;
|
|
540
|
+
};
|
|
541
|
+
/**
|
|
542
|
+
* Request parameters for completePaymentSetup operation in CustomersApi.
|
|
543
|
+
* @export
|
|
544
|
+
* @interface CustomersApiCompletePaymentSetupRequest
|
|
545
|
+
*/
|
|
546
|
+
export interface CustomersApiCompletePaymentSetupRequest {
|
|
651
547
|
/**
|
|
652
|
-
*
|
|
653
|
-
* @
|
|
654
|
-
* @
|
|
655
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
656
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
657
|
-
* @param {*} [options] Override http request option.
|
|
658
|
-
* @throws {RequiredError}
|
|
548
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
549
|
+
* @type {string}
|
|
550
|
+
* @memberof CustomersApiCompletePaymentSetup
|
|
659
551
|
*/
|
|
660
|
-
|
|
661
|
-
|
|
552
|
+
readonly customerCode: string;
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @type {CompletePaymentSetupPspRequest}
|
|
556
|
+
* @memberof CustomersApiCompletePaymentSetup
|
|
557
|
+
*/
|
|
558
|
+
readonly completePaymentSetupPspRequest: CompletePaymentSetupPspRequest;
|
|
559
|
+
/**
|
|
560
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
561
|
+
* @type {string}
|
|
562
|
+
* @memberof CustomersApiCompletePaymentSetup
|
|
563
|
+
*/
|
|
564
|
+
readonly authorization?: string;
|
|
565
|
+
}
|
|
662
566
|
/**
|
|
663
567
|
* Request parameters for createCustomer operation in CustomersApi.
|
|
664
568
|
* @export
|
|
@@ -692,7 +596,7 @@ export interface CustomersApiForgotPasswordRequest {
|
|
|
692
596
|
*/
|
|
693
597
|
export interface CustomersApiGetCustomerRequest {
|
|
694
598
|
/**
|
|
695
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
599
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
696
600
|
* @type {string}
|
|
697
601
|
* @memberof CustomersApiGetCustomer
|
|
698
602
|
*/
|
|
@@ -717,13 +621,13 @@ export interface CustomersApiGetCustomerRequest {
|
|
|
717
621
|
*/
|
|
718
622
|
export interface CustomersApiGetCustomerDocumentDownloadUrlRequest {
|
|
719
623
|
/**
|
|
720
|
-
* The document code
|
|
624
|
+
* The document code.
|
|
721
625
|
* @type {string}
|
|
722
626
|
* @memberof CustomersApiGetCustomerDocumentDownloadUrl
|
|
723
627
|
*/
|
|
724
628
|
readonly documentCode: string;
|
|
725
629
|
/**
|
|
726
|
-
*
|
|
630
|
+
*
|
|
727
631
|
* @type {string}
|
|
728
632
|
* @memberof CustomersApiGetCustomerDocumentDownloadUrl
|
|
729
633
|
*/
|
|
@@ -736,49 +640,37 @@ export interface CustomersApiGetCustomerDocumentDownloadUrlRequest {
|
|
|
736
640
|
readonly authorization?: string;
|
|
737
641
|
}
|
|
738
642
|
/**
|
|
739
|
-
* Request parameters for
|
|
643
|
+
* Request parameters for initiateAuth operation in CustomersApi.
|
|
740
644
|
* @export
|
|
741
|
-
* @interface
|
|
645
|
+
* @interface CustomersApiInitiateAuthRequest
|
|
742
646
|
*/
|
|
743
|
-
export interface
|
|
647
|
+
export interface CustomersApiInitiateAuthRequest {
|
|
744
648
|
/**
|
|
745
|
-
*
|
|
746
|
-
* @type {
|
|
747
|
-
* @memberof
|
|
649
|
+
*
|
|
650
|
+
* @type {InitiateAuthRequestDto}
|
|
651
|
+
* @memberof CustomersApiInitiateAuth
|
|
748
652
|
*/
|
|
749
|
-
readonly
|
|
653
|
+
readonly initiateAuthRequestDto: InitiateAuthRequestDto;
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Request parameters for initiatePaymentSetup operation in CustomersApi.
|
|
657
|
+
* @export
|
|
658
|
+
* @interface CustomersApiInitiatePaymentSetupRequest
|
|
659
|
+
*/
|
|
660
|
+
export interface CustomersApiInitiatePaymentSetupRequest {
|
|
750
661
|
/**
|
|
751
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
662
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
752
663
|
* @type {string}
|
|
753
|
-
* @memberof
|
|
664
|
+
* @memberof CustomersApiInitiatePaymentSetup
|
|
754
665
|
*/
|
|
755
666
|
readonly customerCode: string;
|
|
756
|
-
/**
|
|
757
|
-
* Fields to expand response by - [versions, premiumItems]
|
|
758
|
-
* @type {string}
|
|
759
|
-
* @memberof CustomersApiGetPolicy
|
|
760
|
-
*/
|
|
761
|
-
readonly expand?: string;
|
|
762
667
|
/**
|
|
763
668
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
764
669
|
* @type {string}
|
|
765
|
-
* @memberof
|
|
670
|
+
* @memberof CustomersApiInitiatePaymentSetup
|
|
766
671
|
*/
|
|
767
672
|
readonly authorization?: string;
|
|
768
673
|
}
|
|
769
|
-
/**
|
|
770
|
-
* Request parameters for initiateAuth operation in CustomersApi.
|
|
771
|
-
* @export
|
|
772
|
-
* @interface CustomersApiInitiateAuthRequest
|
|
773
|
-
*/
|
|
774
|
-
export interface CustomersApiInitiateAuthRequest {
|
|
775
|
-
/**
|
|
776
|
-
*
|
|
777
|
-
* @type {InitiateAuthRequestDto}
|
|
778
|
-
* @memberof CustomersApiInitiateAuth
|
|
779
|
-
*/
|
|
780
|
-
readonly initiateAuthRequestDto: InitiateAuthRequestDto;
|
|
781
|
-
}
|
|
782
674
|
/**
|
|
783
675
|
* Request parameters for inviteByCustomer operation in CustomersApi.
|
|
784
676
|
* @export
|
|
@@ -792,7 +684,7 @@ export interface CustomersApiInviteByCustomerRequest {
|
|
|
792
684
|
*/
|
|
793
685
|
readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto;
|
|
794
686
|
/**
|
|
795
|
-
* Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
687
|
+
* Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
796
688
|
* @type {string}
|
|
797
689
|
* @memberof CustomersApiInviteByCustomer
|
|
798
690
|
*/
|
|
@@ -811,7 +703,7 @@ export interface CustomersApiInviteByTenantRequest {
|
|
|
811
703
|
*/
|
|
812
704
|
readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto;
|
|
813
705
|
/**
|
|
814
|
-
* Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
706
|
+
* Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
815
707
|
* @type {string}
|
|
816
708
|
* @memberof CustomersApiInviteByTenant
|
|
817
709
|
*/
|
|
@@ -824,7 +716,7 @@ export interface CustomersApiInviteByTenantRequest {
|
|
|
824
716
|
*/
|
|
825
717
|
export interface CustomersApiListDocumentsRequest {
|
|
826
718
|
/**
|
|
827
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
719
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
828
720
|
* @type {string}
|
|
829
721
|
* @memberof CustomersApiListDocuments
|
|
830
722
|
*/
|
|
@@ -879,7 +771,7 @@ export interface CustomersApiListDocumentsRequest {
|
|
|
879
771
|
*/
|
|
880
772
|
export interface CustomersApiListInvoicesRequest {
|
|
881
773
|
/**
|
|
882
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
774
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
883
775
|
* @type {string}
|
|
884
776
|
* @memberof CustomersApiListInvoices
|
|
885
777
|
*/
|
|
@@ -927,61 +819,6 @@ export interface CustomersApiListInvoicesRequest {
|
|
|
927
819
|
*/
|
|
928
820
|
readonly authorization?: string;
|
|
929
821
|
}
|
|
930
|
-
/**
|
|
931
|
-
* Request parameters for listPolicies operation in CustomersApi.
|
|
932
|
-
* @export
|
|
933
|
-
* @interface CustomersApiListPoliciesRequest
|
|
934
|
-
*/
|
|
935
|
-
export interface CustomersApiListPoliciesRequest {
|
|
936
|
-
/**
|
|
937
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
938
|
-
* @type {string}
|
|
939
|
-
* @memberof CustomersApiListPolicies
|
|
940
|
-
*/
|
|
941
|
-
readonly customerCode: string;
|
|
942
|
-
/**
|
|
943
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
944
|
-
* @type {any}
|
|
945
|
-
* @memberof CustomersApiListPolicies
|
|
946
|
-
*/
|
|
947
|
-
readonly pageSize?: any;
|
|
948
|
-
/**
|
|
949
|
-
* 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.
|
|
950
|
-
* @type {any}
|
|
951
|
-
* @memberof CustomersApiListPolicies
|
|
952
|
-
*/
|
|
953
|
-
readonly pageToken?: any;
|
|
954
|
-
/**
|
|
955
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
956
|
-
* @type {any}
|
|
957
|
-
* @memberof CustomersApiListPolicies
|
|
958
|
-
*/
|
|
959
|
-
readonly filter?: any;
|
|
960
|
-
/**
|
|
961
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
962
|
-
* @type {any}
|
|
963
|
-
* @memberof CustomersApiListPolicies
|
|
964
|
-
*/
|
|
965
|
-
readonly search?: any;
|
|
966
|
-
/**
|
|
967
|
-
* 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.
|
|
968
|
-
* @type {any}
|
|
969
|
-
* @memberof CustomersApiListPolicies
|
|
970
|
-
*/
|
|
971
|
-
readonly order?: any;
|
|
972
|
-
/**
|
|
973
|
-
* 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.
|
|
974
|
-
* @type {any}
|
|
975
|
-
* @memberof CustomersApiListPolicies
|
|
976
|
-
*/
|
|
977
|
-
readonly expand?: any;
|
|
978
|
-
/**
|
|
979
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
980
|
-
* @type {string}
|
|
981
|
-
* @memberof CustomersApiListPolicies
|
|
982
|
-
*/
|
|
983
|
-
readonly authorization?: string;
|
|
984
|
-
}
|
|
985
822
|
/**
|
|
986
823
|
* Request parameters for refreshToken operation in CustomersApi.
|
|
987
824
|
* @export
|
|
@@ -1001,37 +838,6 @@ export interface CustomersApiRefreshTokenRequest {
|
|
|
1001
838
|
*/
|
|
1002
839
|
readonly cookie?: string;
|
|
1003
840
|
}
|
|
1004
|
-
/**
|
|
1005
|
-
* Request parameters for requestPolicyUpdate operation in CustomersApi.
|
|
1006
|
-
* @export
|
|
1007
|
-
* @interface CustomersApiRequestPolicyUpdateRequest
|
|
1008
|
-
*/
|
|
1009
|
-
export interface CustomersApiRequestPolicyUpdateRequest {
|
|
1010
|
-
/**
|
|
1011
|
-
* The policy code
|
|
1012
|
-
* @type {string}
|
|
1013
|
-
* @memberof CustomersApiRequestPolicyUpdate
|
|
1014
|
-
*/
|
|
1015
|
-
readonly policyCode: string;
|
|
1016
|
-
/**
|
|
1017
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
1018
|
-
* @type {string}
|
|
1019
|
-
* @memberof CustomersApiRequestPolicyUpdate
|
|
1020
|
-
*/
|
|
1021
|
-
readonly customerCode: string;
|
|
1022
|
-
/**
|
|
1023
|
-
*
|
|
1024
|
-
* @type {RequestPolicyUpdateRequestDto}
|
|
1025
|
-
* @memberof CustomersApiRequestPolicyUpdate
|
|
1026
|
-
*/
|
|
1027
|
-
readonly requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto;
|
|
1028
|
-
/**
|
|
1029
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1030
|
-
* @type {string}
|
|
1031
|
-
* @memberof CustomersApiRequestPolicyUpdate
|
|
1032
|
-
*/
|
|
1033
|
-
readonly authorization?: string;
|
|
1034
|
-
}
|
|
1035
841
|
/**
|
|
1036
842
|
* Request parameters for resetPassword operation in CustomersApi.
|
|
1037
843
|
* @export
|
|
@@ -1058,37 +864,6 @@ export interface CustomersApiRespondToAuthChallengeRequest {
|
|
|
1058
864
|
*/
|
|
1059
865
|
readonly respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto;
|
|
1060
866
|
}
|
|
1061
|
-
/**
|
|
1062
|
-
* Request parameters for terminateCustomerPolicy operation in CustomersApi.
|
|
1063
|
-
* @export
|
|
1064
|
-
* @interface CustomersApiTerminateCustomerPolicyRequest
|
|
1065
|
-
*/
|
|
1066
|
-
export interface CustomersApiTerminateCustomerPolicyRequest {
|
|
1067
|
-
/**
|
|
1068
|
-
* The policy code
|
|
1069
|
-
* @type {string}
|
|
1070
|
-
* @memberof CustomersApiTerminateCustomerPolicy
|
|
1071
|
-
*/
|
|
1072
|
-
readonly policyCode: string;
|
|
1073
|
-
/**
|
|
1074
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
1075
|
-
* @type {string}
|
|
1076
|
-
* @memberof CustomersApiTerminateCustomerPolicy
|
|
1077
|
-
*/
|
|
1078
|
-
readonly customerCode: string;
|
|
1079
|
-
/**
|
|
1080
|
-
*
|
|
1081
|
-
* @type {TerminateCustomerPolicyRequestDto}
|
|
1082
|
-
* @memberof CustomersApiTerminateCustomerPolicy
|
|
1083
|
-
*/
|
|
1084
|
-
readonly terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto;
|
|
1085
|
-
/**
|
|
1086
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1087
|
-
* @type {string}
|
|
1088
|
-
* @memberof CustomersApiTerminateCustomerPolicy
|
|
1089
|
-
*/
|
|
1090
|
-
readonly authorization?: string;
|
|
1091
|
-
}
|
|
1092
867
|
/**
|
|
1093
868
|
* Request parameters for updateCustomer operation in CustomersApi.
|
|
1094
869
|
* @export
|
|
@@ -1096,7 +871,7 @@ export interface CustomersApiTerminateCustomerPolicyRequest {
|
|
|
1096
871
|
*/
|
|
1097
872
|
export interface CustomersApiUpdateCustomerRequest {
|
|
1098
873
|
/**
|
|
1099
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
874
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
1100
875
|
* @type {string}
|
|
1101
876
|
* @memberof CustomersApiUpdateCustomer
|
|
1102
877
|
*/
|
|
@@ -1140,31 +915,6 @@ export interface CustomersApiVerifyResetPasswordTokenRequest {
|
|
|
1140
915
|
*/
|
|
1141
916
|
readonly resetToken: string;
|
|
1142
917
|
}
|
|
1143
|
-
/**
|
|
1144
|
-
* Request parameters for withdrawCustomerPolicy operation in CustomersApi.
|
|
1145
|
-
* @export
|
|
1146
|
-
* @interface CustomersApiWithdrawCustomerPolicyRequest
|
|
1147
|
-
*/
|
|
1148
|
-
export interface CustomersApiWithdrawCustomerPolicyRequest {
|
|
1149
|
-
/**
|
|
1150
|
-
* The policy code
|
|
1151
|
-
* @type {string}
|
|
1152
|
-
* @memberof CustomersApiWithdrawCustomerPolicy
|
|
1153
|
-
*/
|
|
1154
|
-
readonly policyCode: string;
|
|
1155
|
-
/**
|
|
1156
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
1157
|
-
* @type {string}
|
|
1158
|
-
* @memberof CustomersApiWithdrawCustomerPolicy
|
|
1159
|
-
*/
|
|
1160
|
-
readonly customerCode: string;
|
|
1161
|
-
/**
|
|
1162
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1163
|
-
* @type {string}
|
|
1164
|
-
* @memberof CustomersApiWithdrawCustomerPolicy
|
|
1165
|
-
*/
|
|
1166
|
-
readonly authorization?: string;
|
|
1167
|
-
}
|
|
1168
918
|
/**
|
|
1169
919
|
* CustomersApi - object-oriented interface
|
|
1170
920
|
* @export
|
|
@@ -1172,6 +922,15 @@ export interface CustomersApiWithdrawCustomerPolicyRequest {
|
|
|
1172
922
|
* @extends {BaseAPI}
|
|
1173
923
|
*/
|
|
1174
924
|
export declare class CustomersApi extends BaseAPI {
|
|
925
|
+
/**
|
|
926
|
+
* Request to complete a payment change by customer.
|
|
927
|
+
* @summary Request payment setup complete by customer
|
|
928
|
+
* @param {CustomersApiCompletePaymentSetupRequest} requestParameters Request parameters.
|
|
929
|
+
* @param {*} [options] Override http request option.
|
|
930
|
+
* @throws {RequiredError}
|
|
931
|
+
* @memberof CustomersApi
|
|
932
|
+
*/
|
|
933
|
+
completePaymentSetup(requestParameters: CustomersApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any>>;
|
|
1175
934
|
/**
|
|
1176
935
|
* Register a customer using the invite token sent to customer\'s email address. Customer can set a new password for his account created during booking a policy.
|
|
1177
936
|
* @summary Register a customer after invite
|
|
@@ -1191,7 +950,7 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
1191
950
|
*/
|
|
1192
951
|
forgotPassword(requestParameters: CustomersApiForgotPasswordRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1193
952
|
/**
|
|
1194
|
-
* Get customer details
|
|
953
|
+
* Get customer details.
|
|
1195
954
|
* @summary Get customer details
|
|
1196
955
|
* @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
|
|
1197
956
|
* @param {*} [options] Override http request option.
|
|
@@ -1200,7 +959,7 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
1200
959
|
*/
|
|
1201
960
|
getCustomer(requestParameters: CustomersApiGetCustomerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCustomerResponseClass, any>>;
|
|
1202
961
|
/**
|
|
1203
|
-
* Get a presigned download url for document
|
|
962
|
+
* Get a presigned download url for document.
|
|
1204
963
|
* @summary Get a presigned download url for document
|
|
1205
964
|
* @param {CustomersApiGetCustomerDocumentDownloadUrlRequest} requestParameters Request parameters.
|
|
1206
965
|
* @param {*} [options] Override http request option.
|
|
@@ -1209,23 +968,23 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
1209
968
|
*/
|
|
1210
969
|
getCustomerDocumentDownloadUrl(requestParameters: CustomersApiGetCustomerDocumentDownloadUrlRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCustomerDocumentDownloadUrlResponseClass, any>>;
|
|
1211
970
|
/**
|
|
1212
|
-
*
|
|
1213
|
-
* @summary
|
|
1214
|
-
* @param {
|
|
971
|
+
* Start auth process to get new access token, refresh token after successful login.
|
|
972
|
+
* @summary Initiate auth by customer
|
|
973
|
+
* @param {CustomersApiInitiateAuthRequest} requestParameters Request parameters.
|
|
1215
974
|
* @param {*} [options] Override http request option.
|
|
1216
975
|
* @throws {RequiredError}
|
|
1217
976
|
* @memberof CustomersApi
|
|
1218
977
|
*/
|
|
1219
|
-
|
|
978
|
+
initiateAuth(requestParameters: CustomersApiInitiateAuthRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateAuthResponseClass, any>>;
|
|
1220
979
|
/**
|
|
1221
|
-
*
|
|
1222
|
-
* @summary
|
|
1223
|
-
* @param {
|
|
980
|
+
* Request to initiate a payment change by customer.
|
|
981
|
+
* @summary Request payment setup initiation by customer
|
|
982
|
+
* @param {CustomersApiInitiatePaymentSetupRequest} requestParameters Request parameters.
|
|
1224
983
|
* @param {*} [options] Override http request option.
|
|
1225
984
|
* @throws {RequiredError}
|
|
1226
985
|
* @memberof CustomersApi
|
|
1227
986
|
*/
|
|
1228
|
-
|
|
987
|
+
initiatePaymentSetup(requestParameters: CustomersApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiatePaymentSetupResponseClass, any>>;
|
|
1229
988
|
/**
|
|
1230
989
|
* 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.
|
|
1231
990
|
* @summary Invite a customer by self
|
|
@@ -1245,7 +1004,7 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
1245
1004
|
*/
|
|
1246
1005
|
inviteByTenant(requestParameters: CustomersApiInviteByTenantRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InviteByTenantResponseClass, any>>;
|
|
1247
1006
|
/**
|
|
1248
|
-
* List all the documents of a customer
|
|
1007
|
+
* List all the documents of a customer.
|
|
1249
1008
|
* @summary List documents of a customer
|
|
1250
1009
|
* @param {CustomersApiListDocumentsRequest} requestParameters Request parameters.
|
|
1251
1010
|
* @param {*} [options] Override http request option.
|
|
@@ -1254,7 +1013,7 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
1254
1013
|
*/
|
|
1255
1014
|
listDocuments(requestParameters: CustomersApiListDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocumentsResponseClass, any>>;
|
|
1256
1015
|
/**
|
|
1257
|
-
* List all the invoices of a customer
|
|
1016
|
+
* List all the invoices of a customer.
|
|
1258
1017
|
* @summary List invoices of a customer
|
|
1259
1018
|
* @param {CustomersApiListInvoicesRequest} requestParameters Request parameters.
|
|
1260
1019
|
* @param {*} [options] Override http request option.
|
|
@@ -1262,15 +1021,6 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
1262
1021
|
* @memberof CustomersApi
|
|
1263
1022
|
*/
|
|
1264
1023
|
listInvoices(requestParameters: CustomersApiListInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInvoicesResponseClass, any>>;
|
|
1265
|
-
/**
|
|
1266
|
-
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
1267
|
-
* @summary List policies of a customer
|
|
1268
|
-
* @param {CustomersApiListPoliciesRequest} requestParameters Request parameters.
|
|
1269
|
-
* @param {*} [options] Override http request option.
|
|
1270
|
-
* @throws {RequiredError}
|
|
1271
|
-
* @memberof CustomersApi
|
|
1272
|
-
*/
|
|
1273
|
-
listPolicies(requestParameters: CustomersApiListPoliciesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesResponseClass, any>>;
|
|
1274
1024
|
/**
|
|
1275
1025
|
* Get new access token, new refresh token.
|
|
1276
1026
|
* @summary Refresh token by customer
|
|
@@ -1280,15 +1030,6 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
1280
1030
|
* @memberof CustomersApi
|
|
1281
1031
|
*/
|
|
1282
1032
|
refreshToken(requestParameters: CustomersApiRefreshTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1283
|
-
/**
|
|
1284
|
-
* Request to update an existing policy by customer
|
|
1285
|
-
* @summary Request policy update by customer
|
|
1286
|
-
* @param {CustomersApiRequestPolicyUpdateRequest} requestParameters Request parameters.
|
|
1287
|
-
* @param {*} [options] Override http request option.
|
|
1288
|
-
* @throws {RequiredError}
|
|
1289
|
-
* @memberof CustomersApi
|
|
1290
|
-
*/
|
|
1291
|
-
requestPolicyUpdate(requestParameters: CustomersApiRequestPolicyUpdateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestPolicyUpdateResponseClass, any>>;
|
|
1292
1033
|
/**
|
|
1293
1034
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
1294
1035
|
* @summary Change password by customer
|
|
@@ -1308,16 +1049,7 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
1308
1049
|
*/
|
|
1309
1050
|
respondToAuthChallenge(requestParameters: CustomersApiRespondToAuthChallengeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RespondToAuthChallengeClass, any>>;
|
|
1310
1051
|
/**
|
|
1311
|
-
*
|
|
1312
|
-
* @summary Terminate a policy by customer
|
|
1313
|
-
* @param {CustomersApiTerminateCustomerPolicyRequest} requestParameters Request parameters.
|
|
1314
|
-
* @param {*} [options] Override http request option.
|
|
1315
|
-
* @throws {RequiredError}
|
|
1316
|
-
* @memberof CustomersApi
|
|
1317
|
-
*/
|
|
1318
|
-
terminateCustomerPolicy(requestParameters: CustomersApiTerminateCustomerPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TerminateCustomerPolicyResponseClass, any>>;
|
|
1319
|
-
/**
|
|
1320
|
-
* Update customer details like phone, email, names, addresses etc
|
|
1052
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
1321
1053
|
* @summary Update customer details
|
|
1322
1054
|
* @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
1323
1055
|
* @param {*} [options] Override http request option.
|
|
@@ -1343,13 +1075,4 @@ export declare class CustomersApi extends BaseAPI {
|
|
|
1343
1075
|
* @memberof CustomersApi
|
|
1344
1076
|
*/
|
|
1345
1077
|
verifyResetPasswordToken(requestParameters: CustomersApiVerifyResetPasswordTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1346
|
-
/**
|
|
1347
|
-
* Withdraw policy by customer
|
|
1348
|
-
* @summary Withdraw policy by customer
|
|
1349
|
-
* @param {CustomersApiWithdrawCustomerPolicyRequest} requestParameters Request parameters.
|
|
1350
|
-
* @param {*} [options] Override http request option.
|
|
1351
|
-
* @throws {RequiredError}
|
|
1352
|
-
* @memberof CustomersApi
|
|
1353
|
-
*/
|
|
1354
|
-
withdrawCustomerPolicy(requestParameters: CustomersApiWithdrawCustomerPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WithdrawCustomerPolicyResponseClass, any>>;
|
|
1355
1078
|
}
|