@emilgroup/customer-sdk-node 1.6.0 → 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 +19 -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 +4 -3
- package/dist/models/account-class.js +1 -1
- package/dist/models/account-policy-class.d.ts +30 -0
- package/dist/models/account-policy-class.js +15 -0
- 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 +17 -0
- package/dist/models/index.js +17 -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 +4 -3
- 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 +30 -0
- package/dist/models/shared-customer-policy-object-request-dto.js +15 -0
- 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 +4 -3
- package/models/account-policy-class.ts +36 -0
- 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 +17 -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 +4 -3
- 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 +36 -0
- 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
package/api/customers-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL CustomerService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -21,6 +21,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CompletePaymentSetupPspRequest } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CompletePaymentSetupResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
24
28
|
import { CreateCustomerRequestDto } from '../models';
|
|
25
29
|
// @ts-ignore
|
|
26
30
|
import { CreateCustomerResponseClass } from '../models';
|
|
@@ -31,12 +35,12 @@ import { GetCustomerDocumentDownloadUrlResponseClass } from '../models';
|
|
|
31
35
|
// @ts-ignore
|
|
32
36
|
import { GetCustomerResponseClass } from '../models';
|
|
33
37
|
// @ts-ignore
|
|
34
|
-
import { GetPolicyResponseClass } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
38
|
import { InitiateAuthRequestDto } from '../models';
|
|
37
39
|
// @ts-ignore
|
|
38
40
|
import { InitiateAuthResponseClass } from '../models';
|
|
39
41
|
// @ts-ignore
|
|
42
|
+
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
40
44
|
import { InviteByCustomerRequestDto } from '../models';
|
|
41
45
|
// @ts-ignore
|
|
42
46
|
import { InviteByCustomerResponseClass } from '../models';
|
|
@@ -47,31 +51,19 @@ import { ListDocumentsResponseClass } from '../models';
|
|
|
47
51
|
// @ts-ignore
|
|
48
52
|
import { ListInvoicesResponseClass } from '../models';
|
|
49
53
|
// @ts-ignore
|
|
50
|
-
import { ListPoliciesResponseClass } from '../models';
|
|
51
|
-
// @ts-ignore
|
|
52
54
|
import { RefreshTokenDto } from '../models';
|
|
53
55
|
// @ts-ignore
|
|
54
|
-
import { RequestPolicyUpdateRequestDto } from '../models';
|
|
55
|
-
// @ts-ignore
|
|
56
|
-
import { RequestPolicyUpdateResponseClass } from '../models';
|
|
57
|
-
// @ts-ignore
|
|
58
56
|
import { ResetPasswordByCustomerRequestDto } from '../models';
|
|
59
57
|
// @ts-ignore
|
|
60
58
|
import { RespondToAuthChallengeClass } from '../models';
|
|
61
59
|
// @ts-ignore
|
|
62
60
|
import { RespondToAuthChallengeRequestDto } from '../models';
|
|
63
61
|
// @ts-ignore
|
|
64
|
-
import { TerminateCustomerPolicyRequestDto } from '../models';
|
|
65
|
-
// @ts-ignore
|
|
66
|
-
import { TerminateCustomerPolicyResponseClass } from '../models';
|
|
67
|
-
// @ts-ignore
|
|
68
62
|
import { UpdateCustomerRequestDto } from '../models';
|
|
69
63
|
// @ts-ignore
|
|
70
64
|
import { UpdateCustomerResponseClass } from '../models';
|
|
71
65
|
// @ts-ignore
|
|
72
66
|
import { VerifyCustomerInviteResponseClass } from '../models';
|
|
73
|
-
// @ts-ignore
|
|
74
|
-
import { WithdrawCustomerPolicyResponseClass } from '../models';
|
|
75
67
|
// URLSearchParams not necessarily used
|
|
76
68
|
// @ts-ignore
|
|
77
69
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -82,6 +74,53 @@ const FormData = require('form-data');
|
|
|
82
74
|
*/
|
|
83
75
|
export const CustomersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
84
76
|
return {
|
|
77
|
+
/**
|
|
78
|
+
* Request to complete a payment change by customer.
|
|
79
|
+
* @summary Request payment setup complete by customer
|
|
80
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
81
|
+
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
82
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
83
|
+
* @param {*} [options] Override http request option.
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
*/
|
|
86
|
+
completePaymentSetup: async (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
87
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
88
|
+
assertParamExists('completePaymentSetup', 'customerCode', customerCode)
|
|
89
|
+
// verify required parameter 'completePaymentSetupPspRequest' is not null or undefined
|
|
90
|
+
assertParamExists('completePaymentSetup', 'completePaymentSetupPspRequest', completePaymentSetupPspRequest)
|
|
91
|
+
const localVarPath = `/v1/customers/{customerCode}/payment_setup/complete`
|
|
92
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
93
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
94
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
95
|
+
let baseOptions;
|
|
96
|
+
let baseAccessToken;
|
|
97
|
+
if (configuration) {
|
|
98
|
+
baseOptions = configuration.baseOptions;
|
|
99
|
+
baseAccessToken = configuration.accessToken;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
103
|
+
const localVarHeaderParameter = {} as any;
|
|
104
|
+
const localVarQueryParameter = {} as any;
|
|
105
|
+
|
|
106
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
107
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
113
|
+
|
|
114
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
115
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
116
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
117
|
+
localVarRequestOptions.data = serializeDataIfNeeded(completePaymentSetupPspRequest, localVarRequestOptions, configuration)
|
|
118
|
+
|
|
119
|
+
return {
|
|
120
|
+
url: toPathString(localVarUrlObj),
|
|
121
|
+
options: localVarRequestOptions,
|
|
122
|
+
};
|
|
123
|
+
},
|
|
85
124
|
/**
|
|
86
125
|
* 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.
|
|
87
126
|
* @summary Register a customer after invite
|
|
@@ -159,9 +198,9 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
159
198
|
};
|
|
160
199
|
},
|
|
161
200
|
/**
|
|
162
|
-
* Get customer details
|
|
201
|
+
* Get customer details.
|
|
163
202
|
* @summary Get customer details
|
|
164
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
203
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
165
204
|
* @param {string} [expand] Fields to expand response by - [account]
|
|
166
205
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
167
206
|
* @param {*} [options] Override http request option.
|
|
@@ -205,10 +244,10 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
205
244
|
};
|
|
206
245
|
},
|
|
207
246
|
/**
|
|
208
|
-
* Get a presigned download url for document
|
|
247
|
+
* Get a presigned download url for document.
|
|
209
248
|
* @summary Get a presigned download url for document
|
|
210
|
-
* @param {string} documentCode The document code
|
|
211
|
-
* @param {string} customerCode
|
|
249
|
+
* @param {string} documentCode The document code.
|
|
250
|
+
* @param {string} customerCode
|
|
212
251
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
213
252
|
* @param {*} [options] Override http request option.
|
|
214
253
|
* @throws {RequiredError}
|
|
@@ -250,23 +289,16 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
250
289
|
};
|
|
251
290
|
},
|
|
252
291
|
/**
|
|
253
|
-
*
|
|
254
|
-
* @summary
|
|
255
|
-
* @param {
|
|
256
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
257
|
-
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
258
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
292
|
+
* Start auth process to get new access token, refresh token after successful login.
|
|
293
|
+
* @summary Initiate auth by customer
|
|
294
|
+
* @param {InitiateAuthRequestDto} initiateAuthRequestDto
|
|
259
295
|
* @param {*} [options] Override http request option.
|
|
260
296
|
* @throws {RequiredError}
|
|
261
297
|
*/
|
|
262
|
-
|
|
263
|
-
// verify required parameter '
|
|
264
|
-
assertParamExists('
|
|
265
|
-
|
|
266
|
-
assertParamExists('getPolicy', 'customerCode', customerCode)
|
|
267
|
-
const localVarPath = `/v1/customers/{customerCode}/policies/{policyCode}`
|
|
268
|
-
.replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)))
|
|
269
|
-
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
298
|
+
initiateAuth: async (initiateAuthRequestDto: InitiateAuthRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
299
|
+
// verify required parameter 'initiateAuthRequestDto' is not null or undefined
|
|
300
|
+
assertParamExists('initiateAuth', 'initiateAuthRequestDto', initiateAuthRequestDto)
|
|
301
|
+
const localVarPath = `/v1/customers/auth/initiate`;
|
|
270
302
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
271
303
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
272
304
|
let baseOptions;
|
|
@@ -276,23 +308,18 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
276
308
|
baseAccessToken = configuration.accessToken;
|
|
277
309
|
}
|
|
278
310
|
|
|
279
|
-
const localVarRequestOptions = { method: '
|
|
311
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
280
312
|
const localVarHeaderParameter = {} as any;
|
|
281
313
|
const localVarQueryParameter = {} as any;
|
|
282
314
|
|
|
283
|
-
if (expand !== undefined) {
|
|
284
|
-
localVarQueryParameter['expand'] = expand;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
288
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
315
|
|
|
292
316
|
|
|
317
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
318
|
+
|
|
293
319
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
294
320
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
295
321
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
322
|
+
localVarRequestOptions.data = serializeDataIfNeeded(initiateAuthRequestDto, localVarRequestOptions, configuration)
|
|
296
323
|
|
|
297
324
|
return {
|
|
298
325
|
url: toPathString(localVarUrlObj),
|
|
@@ -300,16 +327,18 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
300
327
|
};
|
|
301
328
|
},
|
|
302
329
|
/**
|
|
303
|
-
*
|
|
304
|
-
* @summary
|
|
305
|
-
* @param {
|
|
330
|
+
* Request to initiate a payment change by customer.
|
|
331
|
+
* @summary Request payment setup initiation by customer
|
|
332
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
333
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
306
334
|
* @param {*} [options] Override http request option.
|
|
307
335
|
* @throws {RequiredError}
|
|
308
336
|
*/
|
|
309
|
-
|
|
310
|
-
// verify required parameter '
|
|
311
|
-
assertParamExists('
|
|
312
|
-
const localVarPath = `/v1/customers/
|
|
337
|
+
initiatePaymentSetup: async (customerCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
338
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
339
|
+
assertParamExists('initiatePaymentSetup', 'customerCode', customerCode)
|
|
340
|
+
const localVarPath = `/v1/customers/{customerCode}/payment_setup/initiate`
|
|
341
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
313
342
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
343
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
315
344
|
let baseOptions;
|
|
@@ -323,14 +352,15 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
323
352
|
const localVarHeaderParameter = {} as any;
|
|
324
353
|
const localVarQueryParameter = {} as any;
|
|
325
354
|
|
|
355
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
356
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
357
|
+
}
|
|
326
358
|
|
|
327
|
-
|
|
328
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
329
359
|
|
|
360
|
+
|
|
330
361
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
331
362
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
332
363
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
333
|
-
localVarRequestOptions.data = serializeDataIfNeeded(initiateAuthRequestDto, localVarRequestOptions, configuration)
|
|
334
364
|
|
|
335
365
|
return {
|
|
336
366
|
url: toPathString(localVarUrlObj),
|
|
@@ -341,7 +371,7 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
341
371
|
* 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.
|
|
342
372
|
* @summary Invite a customer by self
|
|
343
373
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
344
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
374
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
345
375
|
* @param {*} [options] Override http request option.
|
|
346
376
|
* @throws {RequiredError}
|
|
347
377
|
*/
|
|
@@ -384,7 +414,7 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
384
414
|
* 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.
|
|
385
415
|
* @summary Invite a customer by tenant
|
|
386
416
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
387
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
417
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
388
418
|
* @param {*} [options] Override http request option.
|
|
389
419
|
* @throws {RequiredError}
|
|
390
420
|
*/
|
|
@@ -424,9 +454,9 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
424
454
|
};
|
|
425
455
|
},
|
|
426
456
|
/**
|
|
427
|
-
* List all the documents of a customer
|
|
457
|
+
* List all the documents of a customer.
|
|
428
458
|
* @summary List documents of a customer
|
|
429
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
459
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
430
460
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
431
461
|
* @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.
|
|
432
462
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -495,9 +525,9 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
495
525
|
};
|
|
496
526
|
},
|
|
497
527
|
/**
|
|
498
|
-
* List all the invoices of a customer
|
|
528
|
+
* List all the invoices of a customer.
|
|
499
529
|
* @summary List invoices of a customer
|
|
500
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
530
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
501
531
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
502
532
|
* @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.
|
|
503
533
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -556,77 +586,6 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
556
586
|
|
|
557
587
|
|
|
558
588
|
|
|
559
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
560
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
561
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
562
|
-
|
|
563
|
-
return {
|
|
564
|
-
url: toPathString(localVarUrlObj),
|
|
565
|
-
options: localVarRequestOptions,
|
|
566
|
-
};
|
|
567
|
-
},
|
|
568
|
-
/**
|
|
569
|
-
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
570
|
-
* @summary List policies of a customer
|
|
571
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
572
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
573
|
-
* @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.
|
|
574
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
575
|
-
* @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.
|
|
576
|
-
* @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.
|
|
577
|
-
* @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.
|
|
578
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
579
|
-
* @param {*} [options] Override http request option.
|
|
580
|
-
* @throws {RequiredError}
|
|
581
|
-
*/
|
|
582
|
-
listPolicies: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
583
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
584
|
-
assertParamExists('listPolicies', 'customerCode', customerCode)
|
|
585
|
-
const localVarPath = `/v1/customers/{customerCode}/policies`
|
|
586
|
-
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
587
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
588
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
589
|
-
let baseOptions;
|
|
590
|
-
let baseAccessToken;
|
|
591
|
-
if (configuration) {
|
|
592
|
-
baseOptions = configuration.baseOptions;
|
|
593
|
-
baseAccessToken = configuration.accessToken;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
597
|
-
const localVarHeaderParameter = {} as any;
|
|
598
|
-
const localVarQueryParameter = {} as any;
|
|
599
|
-
|
|
600
|
-
if (pageSize !== undefined) {
|
|
601
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
if (pageToken !== undefined) {
|
|
605
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
if (filter !== undefined) {
|
|
609
|
-
localVarQueryParameter['filter'] = filter;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
if (search !== undefined) {
|
|
613
|
-
localVarQueryParameter['search'] = search;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
if (order !== undefined) {
|
|
617
|
-
localVarQueryParameter['order'] = order;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
if (expand !== undefined) {
|
|
621
|
-
localVarQueryParameter['expand'] = expand;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
625
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
589
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
631
590
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
632
591
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -679,57 +638,6 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
679
638
|
options: localVarRequestOptions,
|
|
680
639
|
};
|
|
681
640
|
},
|
|
682
|
-
/**
|
|
683
|
-
* Request to update an existing policy by customer
|
|
684
|
-
* @summary Request policy update by customer
|
|
685
|
-
* @param {string} policyCode The policy code
|
|
686
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
687
|
-
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
688
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
689
|
-
* @param {*} [options] Override http request option.
|
|
690
|
-
* @throws {RequiredError}
|
|
691
|
-
*/
|
|
692
|
-
requestPolicyUpdate: async (policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
693
|
-
// verify required parameter 'policyCode' is not null or undefined
|
|
694
|
-
assertParamExists('requestPolicyUpdate', 'policyCode', policyCode)
|
|
695
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
696
|
-
assertParamExists('requestPolicyUpdate', 'customerCode', customerCode)
|
|
697
|
-
// verify required parameter 'requestPolicyUpdateRequestDto' is not null or undefined
|
|
698
|
-
assertParamExists('requestPolicyUpdate', 'requestPolicyUpdateRequestDto', requestPolicyUpdateRequestDto)
|
|
699
|
-
const localVarPath = `/v1/customers/{customerCode}/policies/{policyCode}/request-update`
|
|
700
|
-
.replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)))
|
|
701
|
-
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
702
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
703
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
704
|
-
let baseOptions;
|
|
705
|
-
let baseAccessToken;
|
|
706
|
-
if (configuration) {
|
|
707
|
-
baseOptions = configuration.baseOptions;
|
|
708
|
-
baseAccessToken = configuration.accessToken;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
712
|
-
const localVarHeaderParameter = {} as any;
|
|
713
|
-
const localVarQueryParameter = {} as any;
|
|
714
|
-
|
|
715
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
716
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
722
|
-
|
|
723
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
724
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
725
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
726
|
-
localVarRequestOptions.data = serializeDataIfNeeded(requestPolicyUpdateRequestDto, localVarRequestOptions, configuration)
|
|
727
|
-
|
|
728
|
-
return {
|
|
729
|
-
url: toPathString(localVarUrlObj),
|
|
730
|
-
options: localVarRequestOptions,
|
|
731
|
-
};
|
|
732
|
-
},
|
|
733
641
|
/**
|
|
734
642
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
735
643
|
* @summary Change password by customer
|
|
@@ -807,60 +715,9 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
807
715
|
};
|
|
808
716
|
},
|
|
809
717
|
/**
|
|
810
|
-
*
|
|
811
|
-
* @summary Terminate a policy by customer
|
|
812
|
-
* @param {string} policyCode The policy code
|
|
813
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
814
|
-
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
815
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
816
|
-
* @param {*} [options] Override http request option.
|
|
817
|
-
* @throws {RequiredError}
|
|
818
|
-
*/
|
|
819
|
-
terminateCustomerPolicy: async (policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
820
|
-
// verify required parameter 'policyCode' is not null or undefined
|
|
821
|
-
assertParamExists('terminateCustomerPolicy', 'policyCode', policyCode)
|
|
822
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
823
|
-
assertParamExists('terminateCustomerPolicy', 'customerCode', customerCode)
|
|
824
|
-
// verify required parameter 'terminateCustomerPolicyRequestDto' is not null or undefined
|
|
825
|
-
assertParamExists('terminateCustomerPolicy', 'terminateCustomerPolicyRequestDto', terminateCustomerPolicyRequestDto)
|
|
826
|
-
const localVarPath = `/v1/customers/{customerCode}/policies/{policyCode}/terminate`
|
|
827
|
-
.replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)))
|
|
828
|
-
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
829
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
830
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
831
|
-
let baseOptions;
|
|
832
|
-
let baseAccessToken;
|
|
833
|
-
if (configuration) {
|
|
834
|
-
baseOptions = configuration.baseOptions;
|
|
835
|
-
baseAccessToken = configuration.accessToken;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
839
|
-
const localVarHeaderParameter = {} as any;
|
|
840
|
-
const localVarQueryParameter = {} as any;
|
|
841
|
-
|
|
842
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
843
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
849
|
-
|
|
850
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
851
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
852
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
853
|
-
localVarRequestOptions.data = serializeDataIfNeeded(terminateCustomerPolicyRequestDto, localVarRequestOptions, configuration)
|
|
854
|
-
|
|
855
|
-
return {
|
|
856
|
-
url: toPathString(localVarUrlObj),
|
|
857
|
-
options: localVarRequestOptions,
|
|
858
|
-
};
|
|
859
|
-
},
|
|
860
|
-
/**
|
|
861
|
-
* Update customer details like phone, email, names, addresses etc
|
|
718
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
862
719
|
* @summary Update customer details
|
|
863
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
720
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
864
721
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
865
722
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
866
723
|
* @param {*} [options] Override http request option.
|
|
@@ -982,61 +839,29 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
982
839
|
options: localVarRequestOptions,
|
|
983
840
|
};
|
|
984
841
|
},
|
|
842
|
+
}
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* CustomersApi - functional programming interface
|
|
847
|
+
* @export
|
|
848
|
+
*/
|
|
849
|
+
export const CustomersApiFp = function(configuration?: Configuration) {
|
|
850
|
+
const localVarAxiosParamCreator = CustomersApiAxiosParamCreator(configuration)
|
|
851
|
+
return {
|
|
985
852
|
/**
|
|
986
|
-
*
|
|
987
|
-
* @summary
|
|
988
|
-
* @param {string}
|
|
989
|
-
* @param {
|
|
853
|
+
* Request to complete a payment change by customer.
|
|
854
|
+
* @summary Request payment setup complete by customer
|
|
855
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
856
|
+
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
990
857
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
991
858
|
* @param {*} [options] Override http request option.
|
|
992
859
|
* @throws {RequiredError}
|
|
993
860
|
*/
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
998
|
-
assertParamExists('withdrawCustomerPolicy', 'customerCode', customerCode)
|
|
999
|
-
const localVarPath = `/v1/customers/{customerCode}/policies/{policyCode}/withdraw`
|
|
1000
|
-
.replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)))
|
|
1001
|
-
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)));
|
|
1002
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1003
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1004
|
-
let baseOptions;
|
|
1005
|
-
let baseAccessToken;
|
|
1006
|
-
if (configuration) {
|
|
1007
|
-
baseOptions = configuration.baseOptions;
|
|
1008
|
-
baseAccessToken = configuration.accessToken;
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1012
|
-
const localVarHeaderParameter = {} as any;
|
|
1013
|
-
const localVarQueryParameter = {} as any;
|
|
1014
|
-
|
|
1015
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1016
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1022
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1023
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1024
|
-
|
|
1025
|
-
return {
|
|
1026
|
-
url: toPathString(localVarUrlObj),
|
|
1027
|
-
options: localVarRequestOptions,
|
|
1028
|
-
};
|
|
861
|
+
async completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>> {
|
|
862
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options);
|
|
863
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1029
864
|
},
|
|
1030
|
-
}
|
|
1031
|
-
};
|
|
1032
|
-
|
|
1033
|
-
/**
|
|
1034
|
-
* CustomersApi - functional programming interface
|
|
1035
|
-
* @export
|
|
1036
|
-
*/
|
|
1037
|
-
export const CustomersApiFp = function(configuration?: Configuration) {
|
|
1038
|
-
const localVarAxiosParamCreator = CustomersApiAxiosParamCreator(configuration)
|
|
1039
|
-
return {
|
|
1040
865
|
/**
|
|
1041
866
|
* 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.
|
|
1042
867
|
* @summary Register a customer after invite
|
|
@@ -1060,9 +885,9 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
1060
885
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1061
886
|
},
|
|
1062
887
|
/**
|
|
1063
|
-
* Get customer details
|
|
888
|
+
* Get customer details.
|
|
1064
889
|
* @summary Get customer details
|
|
1065
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
890
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1066
891
|
* @param {string} [expand] Fields to expand response by - [account]
|
|
1067
892
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1068
893
|
* @param {*} [options] Override http request option.
|
|
@@ -1073,10 +898,10 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
1073
898
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1074
899
|
},
|
|
1075
900
|
/**
|
|
1076
|
-
* Get a presigned download url for document
|
|
901
|
+
* Get a presigned download url for document.
|
|
1077
902
|
* @summary Get a presigned download url for document
|
|
1078
|
-
* @param {string} documentCode The document code
|
|
1079
|
-
* @param {string} customerCode
|
|
903
|
+
* @param {string} documentCode The document code.
|
|
904
|
+
* @param {string} customerCode
|
|
1080
905
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1081
906
|
* @param {*} [options] Override http request option.
|
|
1082
907
|
* @throws {RequiredError}
|
|
@@ -1086,35 +911,33 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
1086
911
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1087
912
|
},
|
|
1088
913
|
/**
|
|
1089
|
-
*
|
|
1090
|
-
* @summary
|
|
1091
|
-
* @param {
|
|
1092
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1093
|
-
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
1094
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
914
|
+
* Start auth process to get new access token, refresh token after successful login.
|
|
915
|
+
* @summary Initiate auth by customer
|
|
916
|
+
* @param {InitiateAuthRequestDto} initiateAuthRequestDto
|
|
1095
917
|
* @param {*} [options] Override http request option.
|
|
1096
918
|
* @throws {RequiredError}
|
|
1097
919
|
*/
|
|
1098
|
-
async
|
|
1099
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
920
|
+
async initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateAuthResponseClass>> {
|
|
921
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateAuth(initiateAuthRequestDto, options);
|
|
1100
922
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1101
923
|
},
|
|
1102
924
|
/**
|
|
1103
|
-
*
|
|
1104
|
-
* @summary
|
|
1105
|
-
* @param {
|
|
925
|
+
* Request to initiate a payment change by customer.
|
|
926
|
+
* @summary Request payment setup initiation by customer
|
|
927
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
928
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1106
929
|
* @param {*} [options] Override http request option.
|
|
1107
930
|
* @throws {RequiredError}
|
|
1108
931
|
*/
|
|
1109
|
-
async
|
|
1110
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
932
|
+
async initiatePaymentSetup(customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>> {
|
|
933
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePaymentSetup(customerCode, authorization, options);
|
|
1111
934
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1112
935
|
},
|
|
1113
936
|
/**
|
|
1114
937
|
* 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.
|
|
1115
938
|
* @summary Invite a customer by self
|
|
1116
939
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
1117
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
940
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1118
941
|
* @param {*} [options] Override http request option.
|
|
1119
942
|
* @throws {RequiredError}
|
|
1120
943
|
*/
|
|
@@ -1126,7 +949,7 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
1126
949
|
* 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.
|
|
1127
950
|
* @summary Invite a customer by tenant
|
|
1128
951
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
1129
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
952
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1130
953
|
* @param {*} [options] Override http request option.
|
|
1131
954
|
* @throws {RequiredError}
|
|
1132
955
|
*/
|
|
@@ -1135,9 +958,9 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
1135
958
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1136
959
|
},
|
|
1137
960
|
/**
|
|
1138
|
-
* List all the documents of a customer
|
|
961
|
+
* List all the documents of a customer.
|
|
1139
962
|
* @summary List documents of a customer
|
|
1140
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
963
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1141
964
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1142
965
|
* @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.
|
|
1143
966
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -1153,9 +976,9 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
1153
976
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1154
977
|
},
|
|
1155
978
|
/**
|
|
1156
|
-
* List all the invoices of a customer
|
|
979
|
+
* List all the invoices of a customer.
|
|
1157
980
|
* @summary List invoices of a customer
|
|
1158
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
981
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1159
982
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1160
983
|
* @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.
|
|
1161
984
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -1170,24 +993,6 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
1170
993
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
|
|
1171
994
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1172
995
|
},
|
|
1173
|
-
/**
|
|
1174
|
-
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
1175
|
-
* @summary List policies of a customer
|
|
1176
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1177
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1178
|
-
* @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.
|
|
1179
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1180
|
-
* @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.
|
|
1181
|
-
* @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.
|
|
1182
|
-
* @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.
|
|
1183
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1184
|
-
* @param {*} [options] Override http request option.
|
|
1185
|
-
* @throws {RequiredError}
|
|
1186
|
-
*/
|
|
1187
|
-
async 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>> {
|
|
1188
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options);
|
|
1189
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1190
|
-
},
|
|
1191
996
|
/**
|
|
1192
997
|
* Get new access token, new refresh token.
|
|
1193
998
|
* @summary Refresh token by customer
|
|
@@ -1200,20 +1005,6 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
1200
1005
|
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(refreshTokenDto, cookie, options);
|
|
1201
1006
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1202
1007
|
},
|
|
1203
|
-
/**
|
|
1204
|
-
* Request to update an existing policy by customer
|
|
1205
|
-
* @summary Request policy update by customer
|
|
1206
|
-
* @param {string} policyCode The policy code
|
|
1207
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1208
|
-
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
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
|
-
async requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPolicyUpdateResponseClass>> {
|
|
1214
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.requestPolicyUpdate(policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options);
|
|
1215
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1216
|
-
},
|
|
1217
1008
|
/**
|
|
1218
1009
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
1219
1010
|
* @summary Change password by customer
|
|
@@ -1237,23 +1028,9 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
1237
1028
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1238
1029
|
},
|
|
1239
1030
|
/**
|
|
1240
|
-
*
|
|
1241
|
-
* @summary Terminate a policy by customer
|
|
1242
|
-
* @param {string} policyCode The policy code
|
|
1243
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1244
|
-
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
1245
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1246
|
-
* @param {*} [options] Override http request option.
|
|
1247
|
-
* @throws {RequiredError}
|
|
1248
|
-
*/
|
|
1249
|
-
async terminateCustomerPolicy(policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminateCustomerPolicyResponseClass>> {
|
|
1250
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.terminateCustomerPolicy(policyCode, customerCode, terminateCustomerPolicyRequestDto, authorization, options);
|
|
1251
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1252
|
-
},
|
|
1253
|
-
/**
|
|
1254
|
-
* Update customer details like phone, email, names, addresses etc
|
|
1031
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
1255
1032
|
* @summary Update customer details
|
|
1256
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1033
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1257
1034
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
1258
1035
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1259
1036
|
* @param {*} [options] Override http request option.
|
|
@@ -1285,19 +1062,6 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
1285
1062
|
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyResetPasswordToken(resetToken, options);
|
|
1286
1063
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1287
1064
|
},
|
|
1288
|
-
/**
|
|
1289
|
-
* Withdraw policy by customer
|
|
1290
|
-
* @summary Withdraw policy by customer
|
|
1291
|
-
* @param {string} policyCode The policy code
|
|
1292
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1293
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1294
|
-
* @param {*} [options] Override http request option.
|
|
1295
|
-
* @throws {RequiredError}
|
|
1296
|
-
*/
|
|
1297
|
-
async withdrawCustomerPolicy(policyCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawCustomerPolicyResponseClass>> {
|
|
1298
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.withdrawCustomerPolicy(policyCode, customerCode, authorization, options);
|
|
1299
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1300
|
-
},
|
|
1301
1065
|
}
|
|
1302
1066
|
};
|
|
1303
1067
|
|
|
@@ -1308,6 +1072,18 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
1308
1072
|
export const CustomersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1309
1073
|
const localVarFp = CustomersApiFp(configuration)
|
|
1310
1074
|
return {
|
|
1075
|
+
/**
|
|
1076
|
+
* Request to complete a payment change by customer.
|
|
1077
|
+
* @summary Request payment setup complete by customer
|
|
1078
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1079
|
+
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
1080
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1081
|
+
* @param {*} [options] Override http request option.
|
|
1082
|
+
* @throws {RequiredError}
|
|
1083
|
+
*/
|
|
1084
|
+
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
|
|
1085
|
+
return localVarFp.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options).then((request) => request(axios, basePath));
|
|
1086
|
+
},
|
|
1311
1087
|
/**
|
|
1312
1088
|
* 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.
|
|
1313
1089
|
* @summary Register a customer after invite
|
|
@@ -1329,9 +1105,9 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1329
1105
|
return localVarFp.forgotPassword(forgotPasswordRequestDto, options).then((request) => request(axios, basePath));
|
|
1330
1106
|
},
|
|
1331
1107
|
/**
|
|
1332
|
-
* Get customer details
|
|
1108
|
+
* Get customer details.
|
|
1333
1109
|
* @summary Get customer details
|
|
1334
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1110
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1335
1111
|
* @param {string} [expand] Fields to expand response by - [account]
|
|
1336
1112
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1337
1113
|
* @param {*} [options] Override http request option.
|
|
@@ -1341,10 +1117,10 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1341
1117
|
return localVarFp.getCustomer(customerCode, expand, authorization, options).then((request) => request(axios, basePath));
|
|
1342
1118
|
},
|
|
1343
1119
|
/**
|
|
1344
|
-
* Get a presigned download url for document
|
|
1120
|
+
* Get a presigned download url for document.
|
|
1345
1121
|
* @summary Get a presigned download url for document
|
|
1346
|
-
* @param {string} documentCode The document code
|
|
1347
|
-
* @param {string} customerCode
|
|
1122
|
+
* @param {string} documentCode The document code.
|
|
1123
|
+
* @param {string} customerCode
|
|
1348
1124
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1349
1125
|
* @param {*} [options] Override http request option.
|
|
1350
1126
|
* @throws {RequiredError}
|
|
@@ -1352,19 +1128,6 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1352
1128
|
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass> {
|
|
1353
1129
|
return localVarFp.getCustomerDocumentDownloadUrl(documentCode, customerCode, authorization, options).then((request) => request(axios, basePath));
|
|
1354
1130
|
},
|
|
1355
|
-
/**
|
|
1356
|
-
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
1357
|
-
* @summary Get policy details
|
|
1358
|
-
* @param {string} policyCode The policy code
|
|
1359
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1360
|
-
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
1361
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1362
|
-
* @param {*} [options] Override http request option.
|
|
1363
|
-
* @throws {RequiredError}
|
|
1364
|
-
*/
|
|
1365
|
-
getPolicy(policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetPolicyResponseClass> {
|
|
1366
|
-
return localVarFp.getPolicy(policyCode, customerCode, expand, authorization, options).then((request) => request(axios, basePath));
|
|
1367
|
-
},
|
|
1368
1131
|
/**
|
|
1369
1132
|
* Start auth process to get new access token, refresh token after successful login.
|
|
1370
1133
|
* @summary Initiate auth by customer
|
|
@@ -1375,11 +1138,22 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1375
1138
|
initiateAuth(initiateAuthRequestDto: InitiateAuthRequestDto, options?: any): AxiosPromise<InitiateAuthResponseClass> {
|
|
1376
1139
|
return localVarFp.initiateAuth(initiateAuthRequestDto, options).then((request) => request(axios, basePath));
|
|
1377
1140
|
},
|
|
1141
|
+
/**
|
|
1142
|
+
* Request to initiate a payment change by customer.
|
|
1143
|
+
* @summary Request payment setup initiation by customer
|
|
1144
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1145
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1146
|
+
* @param {*} [options] Override http request option.
|
|
1147
|
+
* @throws {RequiredError}
|
|
1148
|
+
*/
|
|
1149
|
+
initiatePaymentSetup(customerCode: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass> {
|
|
1150
|
+
return localVarFp.initiatePaymentSetup(customerCode, authorization, options).then((request) => request(axios, basePath));
|
|
1151
|
+
},
|
|
1378
1152
|
/**
|
|
1379
1153
|
* 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.
|
|
1380
1154
|
* @summary Invite a customer by self
|
|
1381
1155
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
1382
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
1156
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1383
1157
|
* @param {*} [options] Override http request option.
|
|
1384
1158
|
* @throws {RequiredError}
|
|
1385
1159
|
*/
|
|
@@ -1390,7 +1164,7 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1390
1164
|
* 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.
|
|
1391
1165
|
* @summary Invite a customer by tenant
|
|
1392
1166
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
1393
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
1167
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1394
1168
|
* @param {*} [options] Override http request option.
|
|
1395
1169
|
* @throws {RequiredError}
|
|
1396
1170
|
*/
|
|
@@ -1398,9 +1172,9 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1398
1172
|
return localVarFp.inviteByTenant(inviteByCustomerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1399
1173
|
},
|
|
1400
1174
|
/**
|
|
1401
|
-
* List all the documents of a customer
|
|
1175
|
+
* List all the documents of a customer.
|
|
1402
1176
|
* @summary List documents of a customer
|
|
1403
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1177
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1404
1178
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1405
1179
|
* @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.
|
|
1406
1180
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -1415,9 +1189,9 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1415
1189
|
return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
1416
1190
|
},
|
|
1417
1191
|
/**
|
|
1418
|
-
* List all the invoices of a customer
|
|
1192
|
+
* List all the invoices of a customer.
|
|
1419
1193
|
* @summary List invoices of a customer
|
|
1420
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1194
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1421
1195
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1422
1196
|
* @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.
|
|
1423
1197
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -1431,23 +1205,6 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1431
1205
|
listInvoices(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListInvoicesResponseClass> {
|
|
1432
1206
|
return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
1433
1207
|
},
|
|
1434
|
-
/**
|
|
1435
|
-
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
1436
|
-
* @summary List policies of a customer
|
|
1437
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1438
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1439
|
-
* @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.
|
|
1440
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1441
|
-
* @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.
|
|
1442
|
-
* @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.
|
|
1443
|
-
* @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.
|
|
1444
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1445
|
-
* @param {*} [options] Override http request option.
|
|
1446
|
-
* @throws {RequiredError}
|
|
1447
|
-
*/
|
|
1448
|
-
listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass> {
|
|
1449
|
-
return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
1450
|
-
},
|
|
1451
1208
|
/**
|
|
1452
1209
|
* Get new access token, new refresh token.
|
|
1453
1210
|
* @summary Refresh token by customer
|
|
@@ -1459,19 +1216,6 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1459
1216
|
refreshToken(refreshTokenDto: RefreshTokenDto, cookie?: string, options?: any): AxiosPromise<void> {
|
|
1460
1217
|
return localVarFp.refreshToken(refreshTokenDto, cookie, options).then((request) => request(axios, basePath));
|
|
1461
1218
|
},
|
|
1462
|
-
/**
|
|
1463
|
-
* Request to update an existing policy by customer
|
|
1464
|
-
* @summary Request policy update by customer
|
|
1465
|
-
* @param {string} policyCode The policy code
|
|
1466
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1467
|
-
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
1468
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1469
|
-
* @param {*} [options] Override http request option.
|
|
1470
|
-
* @throws {RequiredError}
|
|
1471
|
-
*/
|
|
1472
|
-
requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: any): AxiosPromise<RequestPolicyUpdateResponseClass> {
|
|
1473
|
-
return localVarFp.requestPolicyUpdate(policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1474
|
-
},
|
|
1475
1219
|
/**
|
|
1476
1220
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
1477
1221
|
* @summary Change password by customer
|
|
@@ -1493,22 +1237,9 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1493
1237
|
return localVarFp.respondToAuthChallenge(respondToAuthChallengeRequestDto, options).then((request) => request(axios, basePath));
|
|
1494
1238
|
},
|
|
1495
1239
|
/**
|
|
1496
|
-
*
|
|
1497
|
-
* @summary Terminate a policy by customer
|
|
1498
|
-
* @param {string} policyCode The policy code
|
|
1499
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1500
|
-
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
1501
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1502
|
-
* @param {*} [options] Override http request option.
|
|
1503
|
-
* @throws {RequiredError}
|
|
1504
|
-
*/
|
|
1505
|
-
terminateCustomerPolicy(policyCode: string, customerCode: string, terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<TerminateCustomerPolicyResponseClass> {
|
|
1506
|
-
return localVarFp.terminateCustomerPolicy(policyCode, customerCode, terminateCustomerPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1507
|
-
},
|
|
1508
|
-
/**
|
|
1509
|
-
* Update customer details like phone, email, names, addresses etc
|
|
1240
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
1510
1241
|
* @summary Update customer details
|
|
1511
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1242
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1512
1243
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
1513
1244
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1514
1245
|
* @param {*} [options] Override http request option.
|
|
@@ -1537,21 +1268,37 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1537
1268
|
verifyResetPasswordToken(resetToken: string, options?: any): AxiosPromise<void> {
|
|
1538
1269
|
return localVarFp.verifyResetPasswordToken(resetToken, options).then((request) => request(axios, basePath));
|
|
1539
1270
|
},
|
|
1540
|
-
/**
|
|
1541
|
-
* Withdraw policy by customer
|
|
1542
|
-
* @summary Withdraw policy by customer
|
|
1543
|
-
* @param {string} policyCode The policy code
|
|
1544
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1545
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1546
|
-
* @param {*} [options] Override http request option.
|
|
1547
|
-
* @throws {RequiredError}
|
|
1548
|
-
*/
|
|
1549
|
-
withdrawCustomerPolicy(policyCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<WithdrawCustomerPolicyResponseClass> {
|
|
1550
|
-
return localVarFp.withdrawCustomerPolicy(policyCode, customerCode, authorization, options).then((request) => request(axios, basePath));
|
|
1551
|
-
},
|
|
1552
1271
|
};
|
|
1553
1272
|
};
|
|
1554
1273
|
|
|
1274
|
+
/**
|
|
1275
|
+
* Request parameters for completePaymentSetup operation in CustomersApi.
|
|
1276
|
+
* @export
|
|
1277
|
+
* @interface CustomersApiCompletePaymentSetupRequest
|
|
1278
|
+
*/
|
|
1279
|
+
export interface CustomersApiCompletePaymentSetupRequest {
|
|
1280
|
+
/**
|
|
1281
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
1282
|
+
* @type {string}
|
|
1283
|
+
* @memberof CustomersApiCompletePaymentSetup
|
|
1284
|
+
*/
|
|
1285
|
+
readonly customerCode: string
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
*
|
|
1289
|
+
* @type {CompletePaymentSetupPspRequest}
|
|
1290
|
+
* @memberof CustomersApiCompletePaymentSetup
|
|
1291
|
+
*/
|
|
1292
|
+
readonly completePaymentSetupPspRequest: CompletePaymentSetupPspRequest
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1296
|
+
* @type {string}
|
|
1297
|
+
* @memberof CustomersApiCompletePaymentSetup
|
|
1298
|
+
*/
|
|
1299
|
+
readonly authorization?: string
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1555
1302
|
/**
|
|
1556
1303
|
* Request parameters for createCustomer operation in CustomersApi.
|
|
1557
1304
|
* @export
|
|
@@ -1587,7 +1334,7 @@ export interface CustomersApiForgotPasswordRequest {
|
|
|
1587
1334
|
*/
|
|
1588
1335
|
export interface CustomersApiGetCustomerRequest {
|
|
1589
1336
|
/**
|
|
1590
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
1337
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
1591
1338
|
* @type {string}
|
|
1592
1339
|
* @memberof CustomersApiGetCustomer
|
|
1593
1340
|
*/
|
|
@@ -1615,14 +1362,14 @@ export interface CustomersApiGetCustomerRequest {
|
|
|
1615
1362
|
*/
|
|
1616
1363
|
export interface CustomersApiGetCustomerDocumentDownloadUrlRequest {
|
|
1617
1364
|
/**
|
|
1618
|
-
* The document code
|
|
1365
|
+
* The document code.
|
|
1619
1366
|
* @type {string}
|
|
1620
1367
|
* @memberof CustomersApiGetCustomerDocumentDownloadUrl
|
|
1621
1368
|
*/
|
|
1622
1369
|
readonly documentCode: string
|
|
1623
1370
|
|
|
1624
1371
|
/**
|
|
1625
|
-
*
|
|
1372
|
+
*
|
|
1626
1373
|
* @type {string}
|
|
1627
1374
|
* @memberof CustomersApiGetCustomerDocumentDownloadUrl
|
|
1628
1375
|
*/
|
|
@@ -1637,54 +1384,40 @@ export interface CustomersApiGetCustomerDocumentDownloadUrlRequest {
|
|
|
1637
1384
|
}
|
|
1638
1385
|
|
|
1639
1386
|
/**
|
|
1640
|
-
* Request parameters for
|
|
1387
|
+
* Request parameters for initiateAuth operation in CustomersApi.
|
|
1641
1388
|
* @export
|
|
1642
|
-
* @interface
|
|
1389
|
+
* @interface CustomersApiInitiateAuthRequest
|
|
1643
1390
|
*/
|
|
1644
|
-
export interface
|
|
1391
|
+
export interface CustomersApiInitiateAuthRequest {
|
|
1645
1392
|
/**
|
|
1646
|
-
*
|
|
1647
|
-
* @type {
|
|
1648
|
-
* @memberof
|
|
1393
|
+
*
|
|
1394
|
+
* @type {InitiateAuthRequestDto}
|
|
1395
|
+
* @memberof CustomersApiInitiateAuth
|
|
1649
1396
|
*/
|
|
1650
|
-
readonly
|
|
1397
|
+
readonly initiateAuthRequestDto: InitiateAuthRequestDto
|
|
1398
|
+
}
|
|
1651
1399
|
|
|
1400
|
+
/**
|
|
1401
|
+
* Request parameters for initiatePaymentSetup operation in CustomersApi.
|
|
1402
|
+
* @export
|
|
1403
|
+
* @interface CustomersApiInitiatePaymentSetupRequest
|
|
1404
|
+
*/
|
|
1405
|
+
export interface CustomersApiInitiatePaymentSetupRequest {
|
|
1652
1406
|
/**
|
|
1653
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
1407
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
1654
1408
|
* @type {string}
|
|
1655
|
-
* @memberof
|
|
1409
|
+
* @memberof CustomersApiInitiatePaymentSetup
|
|
1656
1410
|
*/
|
|
1657
1411
|
readonly customerCode: string
|
|
1658
1412
|
|
|
1659
|
-
/**
|
|
1660
|
-
* Fields to expand response by - [versions, premiumItems]
|
|
1661
|
-
* @type {string}
|
|
1662
|
-
* @memberof CustomersApiGetPolicy
|
|
1663
|
-
*/
|
|
1664
|
-
readonly expand?: string
|
|
1665
|
-
|
|
1666
1413
|
/**
|
|
1667
1414
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1668
1415
|
* @type {string}
|
|
1669
|
-
* @memberof
|
|
1416
|
+
* @memberof CustomersApiInitiatePaymentSetup
|
|
1670
1417
|
*/
|
|
1671
1418
|
readonly authorization?: string
|
|
1672
1419
|
}
|
|
1673
1420
|
|
|
1674
|
-
/**
|
|
1675
|
-
* Request parameters for initiateAuth operation in CustomersApi.
|
|
1676
|
-
* @export
|
|
1677
|
-
* @interface CustomersApiInitiateAuthRequest
|
|
1678
|
-
*/
|
|
1679
|
-
export interface CustomersApiInitiateAuthRequest {
|
|
1680
|
-
/**
|
|
1681
|
-
*
|
|
1682
|
-
* @type {InitiateAuthRequestDto}
|
|
1683
|
-
* @memberof CustomersApiInitiateAuth
|
|
1684
|
-
*/
|
|
1685
|
-
readonly initiateAuthRequestDto: InitiateAuthRequestDto
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
1421
|
/**
|
|
1689
1422
|
* Request parameters for inviteByCustomer operation in CustomersApi.
|
|
1690
1423
|
* @export
|
|
@@ -1699,7 +1432,7 @@ export interface CustomersApiInviteByCustomerRequest {
|
|
|
1699
1432
|
readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto
|
|
1700
1433
|
|
|
1701
1434
|
/**
|
|
1702
|
-
* Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
1435
|
+
* Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1703
1436
|
* @type {string}
|
|
1704
1437
|
* @memberof CustomersApiInviteByCustomer
|
|
1705
1438
|
*/
|
|
@@ -1720,7 +1453,7 @@ export interface CustomersApiInviteByTenantRequest {
|
|
|
1720
1453
|
readonly inviteByCustomerRequestDto: InviteByCustomerRequestDto
|
|
1721
1454
|
|
|
1722
1455
|
/**
|
|
1723
|
-
* Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
1456
|
+
* Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1724
1457
|
* @type {string}
|
|
1725
1458
|
* @memberof CustomersApiInviteByTenant
|
|
1726
1459
|
*/
|
|
@@ -1734,7 +1467,7 @@ export interface CustomersApiInviteByTenantRequest {
|
|
|
1734
1467
|
*/
|
|
1735
1468
|
export interface CustomersApiListDocumentsRequest {
|
|
1736
1469
|
/**
|
|
1737
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
1470
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
1738
1471
|
* @type {string}
|
|
1739
1472
|
* @memberof CustomersApiListDocuments
|
|
1740
1473
|
*/
|
|
@@ -1797,7 +1530,7 @@ export interface CustomersApiListDocumentsRequest {
|
|
|
1797
1530
|
*/
|
|
1798
1531
|
export interface CustomersApiListInvoicesRequest {
|
|
1799
1532
|
/**
|
|
1800
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
1533
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
1801
1534
|
* @type {string}
|
|
1802
1535
|
* @memberof CustomersApiListInvoices
|
|
1803
1536
|
*/
|
|
@@ -1853,69 +1586,6 @@ export interface CustomersApiListInvoicesRequest {
|
|
|
1853
1586
|
readonly authorization?: string
|
|
1854
1587
|
}
|
|
1855
1588
|
|
|
1856
|
-
/**
|
|
1857
|
-
* Request parameters for listPolicies operation in CustomersApi.
|
|
1858
|
-
* @export
|
|
1859
|
-
* @interface CustomersApiListPoliciesRequest
|
|
1860
|
-
*/
|
|
1861
|
-
export interface CustomersApiListPoliciesRequest {
|
|
1862
|
-
/**
|
|
1863
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
1864
|
-
* @type {string}
|
|
1865
|
-
* @memberof CustomersApiListPolicies
|
|
1866
|
-
*/
|
|
1867
|
-
readonly customerCode: string
|
|
1868
|
-
|
|
1869
|
-
/**
|
|
1870
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1871
|
-
* @type {any}
|
|
1872
|
-
* @memberof CustomersApiListPolicies
|
|
1873
|
-
*/
|
|
1874
|
-
readonly pageSize?: any
|
|
1875
|
-
|
|
1876
|
-
/**
|
|
1877
|
-
* 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.
|
|
1878
|
-
* @type {any}
|
|
1879
|
-
* @memberof CustomersApiListPolicies
|
|
1880
|
-
*/
|
|
1881
|
-
readonly pageToken?: any
|
|
1882
|
-
|
|
1883
|
-
/**
|
|
1884
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1885
|
-
* @type {any}
|
|
1886
|
-
* @memberof CustomersApiListPolicies
|
|
1887
|
-
*/
|
|
1888
|
-
readonly filter?: any
|
|
1889
|
-
|
|
1890
|
-
/**
|
|
1891
|
-
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
1892
|
-
* @type {any}
|
|
1893
|
-
* @memberof CustomersApiListPolicies
|
|
1894
|
-
*/
|
|
1895
|
-
readonly search?: any
|
|
1896
|
-
|
|
1897
|
-
/**
|
|
1898
|
-
* 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.
|
|
1899
|
-
* @type {any}
|
|
1900
|
-
* @memberof CustomersApiListPolicies
|
|
1901
|
-
*/
|
|
1902
|
-
readonly order?: any
|
|
1903
|
-
|
|
1904
|
-
/**
|
|
1905
|
-
* 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.
|
|
1906
|
-
* @type {any}
|
|
1907
|
-
* @memberof CustomersApiListPolicies
|
|
1908
|
-
*/
|
|
1909
|
-
readonly expand?: any
|
|
1910
|
-
|
|
1911
|
-
/**
|
|
1912
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1913
|
-
* @type {string}
|
|
1914
|
-
* @memberof CustomersApiListPolicies
|
|
1915
|
-
*/
|
|
1916
|
-
readonly authorization?: string
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
1589
|
/**
|
|
1920
1590
|
* Request parameters for refreshToken operation in CustomersApi.
|
|
1921
1591
|
* @export
|
|
@@ -1937,41 +1607,6 @@ export interface CustomersApiRefreshTokenRequest {
|
|
|
1937
1607
|
readonly cookie?: string
|
|
1938
1608
|
}
|
|
1939
1609
|
|
|
1940
|
-
/**
|
|
1941
|
-
* Request parameters for requestPolicyUpdate operation in CustomersApi.
|
|
1942
|
-
* @export
|
|
1943
|
-
* @interface CustomersApiRequestPolicyUpdateRequest
|
|
1944
|
-
*/
|
|
1945
|
-
export interface CustomersApiRequestPolicyUpdateRequest {
|
|
1946
|
-
/**
|
|
1947
|
-
* The policy code
|
|
1948
|
-
* @type {string}
|
|
1949
|
-
* @memberof CustomersApiRequestPolicyUpdate
|
|
1950
|
-
*/
|
|
1951
|
-
readonly policyCode: string
|
|
1952
|
-
|
|
1953
|
-
/**
|
|
1954
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
1955
|
-
* @type {string}
|
|
1956
|
-
* @memberof CustomersApiRequestPolicyUpdate
|
|
1957
|
-
*/
|
|
1958
|
-
readonly customerCode: string
|
|
1959
|
-
|
|
1960
|
-
/**
|
|
1961
|
-
*
|
|
1962
|
-
* @type {RequestPolicyUpdateRequestDto}
|
|
1963
|
-
* @memberof CustomersApiRequestPolicyUpdate
|
|
1964
|
-
*/
|
|
1965
|
-
readonly requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto
|
|
1966
|
-
|
|
1967
|
-
/**
|
|
1968
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1969
|
-
* @type {string}
|
|
1970
|
-
* @memberof CustomersApiRequestPolicyUpdate
|
|
1971
|
-
*/
|
|
1972
|
-
readonly authorization?: string
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
1610
|
/**
|
|
1976
1611
|
* Request parameters for resetPassword operation in CustomersApi.
|
|
1977
1612
|
* @export
|
|
@@ -2000,41 +1635,6 @@ export interface CustomersApiRespondToAuthChallengeRequest {
|
|
|
2000
1635
|
readonly respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto
|
|
2001
1636
|
}
|
|
2002
1637
|
|
|
2003
|
-
/**
|
|
2004
|
-
* Request parameters for terminateCustomerPolicy operation in CustomersApi.
|
|
2005
|
-
* @export
|
|
2006
|
-
* @interface CustomersApiTerminateCustomerPolicyRequest
|
|
2007
|
-
*/
|
|
2008
|
-
export interface CustomersApiTerminateCustomerPolicyRequest {
|
|
2009
|
-
/**
|
|
2010
|
-
* The policy code
|
|
2011
|
-
* @type {string}
|
|
2012
|
-
* @memberof CustomersApiTerminateCustomerPolicy
|
|
2013
|
-
*/
|
|
2014
|
-
readonly policyCode: string
|
|
2015
|
-
|
|
2016
|
-
/**
|
|
2017
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
2018
|
-
* @type {string}
|
|
2019
|
-
* @memberof CustomersApiTerminateCustomerPolicy
|
|
2020
|
-
*/
|
|
2021
|
-
readonly customerCode: string
|
|
2022
|
-
|
|
2023
|
-
/**
|
|
2024
|
-
*
|
|
2025
|
-
* @type {TerminateCustomerPolicyRequestDto}
|
|
2026
|
-
* @memberof CustomersApiTerminateCustomerPolicy
|
|
2027
|
-
*/
|
|
2028
|
-
readonly terminateCustomerPolicyRequestDto: TerminateCustomerPolicyRequestDto
|
|
2029
|
-
|
|
2030
|
-
/**
|
|
2031
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
2032
|
-
* @type {string}
|
|
2033
|
-
* @memberof CustomersApiTerminateCustomerPolicy
|
|
2034
|
-
*/
|
|
2035
|
-
readonly authorization?: string
|
|
2036
|
-
}
|
|
2037
|
-
|
|
2038
1638
|
/**
|
|
2039
1639
|
* Request parameters for updateCustomer operation in CustomersApi.
|
|
2040
1640
|
* @export
|
|
@@ -2042,7 +1642,7 @@ export interface CustomersApiTerminateCustomerPolicyRequest {
|
|
|
2042
1642
|
*/
|
|
2043
1643
|
export interface CustomersApiUpdateCustomerRequest {
|
|
2044
1644
|
/**
|
|
2045
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
1645
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
2046
1646
|
* @type {string}
|
|
2047
1647
|
* @memberof CustomersApiUpdateCustomer
|
|
2048
1648
|
*/
|
|
@@ -2091,34 +1691,6 @@ export interface CustomersApiVerifyResetPasswordTokenRequest {
|
|
|
2091
1691
|
readonly resetToken: string
|
|
2092
1692
|
}
|
|
2093
1693
|
|
|
2094
|
-
/**
|
|
2095
|
-
* Request parameters for withdrawCustomerPolicy operation in CustomersApi.
|
|
2096
|
-
* @export
|
|
2097
|
-
* @interface CustomersApiWithdrawCustomerPolicyRequest
|
|
2098
|
-
*/
|
|
2099
|
-
export interface CustomersApiWithdrawCustomerPolicyRequest {
|
|
2100
|
-
/**
|
|
2101
|
-
* The policy code
|
|
2102
|
-
* @type {string}
|
|
2103
|
-
* @memberof CustomersApiWithdrawCustomerPolicy
|
|
2104
|
-
*/
|
|
2105
|
-
readonly policyCode: string
|
|
2106
|
-
|
|
2107
|
-
/**
|
|
2108
|
-
* The customer code or \"me\" for the currently logged in customer
|
|
2109
|
-
* @type {string}
|
|
2110
|
-
* @memberof CustomersApiWithdrawCustomerPolicy
|
|
2111
|
-
*/
|
|
2112
|
-
readonly customerCode: string
|
|
2113
|
-
|
|
2114
|
-
/**
|
|
2115
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
2116
|
-
* @type {string}
|
|
2117
|
-
* @memberof CustomersApiWithdrawCustomerPolicy
|
|
2118
|
-
*/
|
|
2119
|
-
readonly authorization?: string
|
|
2120
|
-
}
|
|
2121
|
-
|
|
2122
1694
|
/**
|
|
2123
1695
|
* CustomersApi - object-oriented interface
|
|
2124
1696
|
* @export
|
|
@@ -2126,6 +1698,18 @@ export interface CustomersApiWithdrawCustomerPolicyRequest {
|
|
|
2126
1698
|
* @extends {BaseAPI}
|
|
2127
1699
|
*/
|
|
2128
1700
|
export class CustomersApi extends BaseAPI {
|
|
1701
|
+
/**
|
|
1702
|
+
* Request to complete a payment change by customer.
|
|
1703
|
+
* @summary Request payment setup complete by customer
|
|
1704
|
+
* @param {CustomersApiCompletePaymentSetupRequest} requestParameters Request parameters.
|
|
1705
|
+
* @param {*} [options] Override http request option.
|
|
1706
|
+
* @throws {RequiredError}
|
|
1707
|
+
* @memberof CustomersApi
|
|
1708
|
+
*/
|
|
1709
|
+
public completePaymentSetup(requestParameters: CustomersApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
1710
|
+
return CustomersApiFp(this.configuration).completePaymentSetup(requestParameters.customerCode, requestParameters.completePaymentSetupPspRequest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1711
|
+
}
|
|
1712
|
+
|
|
2129
1713
|
/**
|
|
2130
1714
|
* 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.
|
|
2131
1715
|
* @summary Register a customer after invite
|
|
@@ -2151,7 +1735,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
2151
1735
|
}
|
|
2152
1736
|
|
|
2153
1737
|
/**
|
|
2154
|
-
* Get customer details
|
|
1738
|
+
* Get customer details.
|
|
2155
1739
|
* @summary Get customer details
|
|
2156
1740
|
* @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
|
|
2157
1741
|
* @param {*} [options] Override http request option.
|
|
@@ -2163,7 +1747,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
2163
1747
|
}
|
|
2164
1748
|
|
|
2165
1749
|
/**
|
|
2166
|
-
* Get a presigned download url for document
|
|
1750
|
+
* Get a presigned download url for document.
|
|
2167
1751
|
* @summary Get a presigned download url for document
|
|
2168
1752
|
* @param {CustomersApiGetCustomerDocumentDownloadUrlRequest} requestParameters Request parameters.
|
|
2169
1753
|
* @param {*} [options] Override http request option.
|
|
@@ -2175,27 +1759,27 @@ export class CustomersApi extends BaseAPI {
|
|
|
2175
1759
|
}
|
|
2176
1760
|
|
|
2177
1761
|
/**
|
|
2178
|
-
*
|
|
2179
|
-
* @summary
|
|
2180
|
-
* @param {
|
|
1762
|
+
* Start auth process to get new access token, refresh token after successful login.
|
|
1763
|
+
* @summary Initiate auth by customer
|
|
1764
|
+
* @param {CustomersApiInitiateAuthRequest} requestParameters Request parameters.
|
|
2181
1765
|
* @param {*} [options] Override http request option.
|
|
2182
1766
|
* @throws {RequiredError}
|
|
2183
1767
|
* @memberof CustomersApi
|
|
2184
1768
|
*/
|
|
2185
|
-
public
|
|
2186
|
-
return CustomersApiFp(this.configuration).
|
|
1769
|
+
public initiateAuth(requestParameters: CustomersApiInitiateAuthRequest, options?: AxiosRequestConfig) {
|
|
1770
|
+
return CustomersApiFp(this.configuration).initiateAuth(requestParameters.initiateAuthRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
2187
1771
|
}
|
|
2188
1772
|
|
|
2189
1773
|
/**
|
|
2190
|
-
*
|
|
2191
|
-
* @summary
|
|
2192
|
-
* @param {
|
|
1774
|
+
* Request to initiate a payment change by customer.
|
|
1775
|
+
* @summary Request payment setup initiation by customer
|
|
1776
|
+
* @param {CustomersApiInitiatePaymentSetupRequest} requestParameters Request parameters.
|
|
2193
1777
|
* @param {*} [options] Override http request option.
|
|
2194
1778
|
* @throws {RequiredError}
|
|
2195
1779
|
* @memberof CustomersApi
|
|
2196
1780
|
*/
|
|
2197
|
-
public
|
|
2198
|
-
return CustomersApiFp(this.configuration).
|
|
1781
|
+
public initiatePaymentSetup(requestParameters: CustomersApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
1782
|
+
return CustomersApiFp(this.configuration).initiatePaymentSetup(requestParameters.customerCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2199
1783
|
}
|
|
2200
1784
|
|
|
2201
1785
|
/**
|
|
@@ -2223,7 +1807,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
2223
1807
|
}
|
|
2224
1808
|
|
|
2225
1809
|
/**
|
|
2226
|
-
* List all the documents of a customer
|
|
1810
|
+
* List all the documents of a customer.
|
|
2227
1811
|
* @summary List documents of a customer
|
|
2228
1812
|
* @param {CustomersApiListDocumentsRequest} requestParameters Request parameters.
|
|
2229
1813
|
* @param {*} [options] Override http request option.
|
|
@@ -2235,7 +1819,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
2235
1819
|
}
|
|
2236
1820
|
|
|
2237
1821
|
/**
|
|
2238
|
-
* List all the invoices of a customer
|
|
1822
|
+
* List all the invoices of a customer.
|
|
2239
1823
|
* @summary List invoices of a customer
|
|
2240
1824
|
* @param {CustomersApiListInvoicesRequest} requestParameters Request parameters.
|
|
2241
1825
|
* @param {*} [options] Override http request option.
|
|
@@ -2246,18 +1830,6 @@ export class CustomersApi extends BaseAPI {
|
|
|
2246
1830
|
return CustomersApiFp(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2247
1831
|
}
|
|
2248
1832
|
|
|
2249
|
-
/**
|
|
2250
|
-
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
2251
|
-
* @summary List policies of a customer
|
|
2252
|
-
* @param {CustomersApiListPoliciesRequest} requestParameters Request parameters.
|
|
2253
|
-
* @param {*} [options] Override http request option.
|
|
2254
|
-
* @throws {RequiredError}
|
|
2255
|
-
* @memberof CustomersApi
|
|
2256
|
-
*/
|
|
2257
|
-
public listPolicies(requestParameters: CustomersApiListPoliciesRequest, options?: AxiosRequestConfig) {
|
|
2258
|
-
return CustomersApiFp(this.configuration).listPolicies(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2259
|
-
}
|
|
2260
|
-
|
|
2261
1833
|
/**
|
|
2262
1834
|
* Get new access token, new refresh token.
|
|
2263
1835
|
* @summary Refresh token by customer
|
|
@@ -2270,18 +1842,6 @@ export class CustomersApi extends BaseAPI {
|
|
|
2270
1842
|
return CustomersApiFp(this.configuration).refreshToken(requestParameters.refreshTokenDto, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath));
|
|
2271
1843
|
}
|
|
2272
1844
|
|
|
2273
|
-
/**
|
|
2274
|
-
* Request to update an existing policy by customer
|
|
2275
|
-
* @summary Request policy update by customer
|
|
2276
|
-
* @param {CustomersApiRequestPolicyUpdateRequest} requestParameters Request parameters.
|
|
2277
|
-
* @param {*} [options] Override http request option.
|
|
2278
|
-
* @throws {RequiredError}
|
|
2279
|
-
* @memberof CustomersApi
|
|
2280
|
-
*/
|
|
2281
|
-
public requestPolicyUpdate(requestParameters: CustomersApiRequestPolicyUpdateRequest, options?: AxiosRequestConfig) {
|
|
2282
|
-
return CustomersApiFp(this.configuration).requestPolicyUpdate(requestParameters.policyCode, requestParameters.customerCode, requestParameters.requestPolicyUpdateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
1845
|
/**
|
|
2286
1846
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
2287
1847
|
* @summary Change password by customer
|
|
@@ -2307,19 +1867,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
2307
1867
|
}
|
|
2308
1868
|
|
|
2309
1869
|
/**
|
|
2310
|
-
*
|
|
2311
|
-
* @summary Terminate a policy by customer
|
|
2312
|
-
* @param {CustomersApiTerminateCustomerPolicyRequest} requestParameters Request parameters.
|
|
2313
|
-
* @param {*} [options] Override http request option.
|
|
2314
|
-
* @throws {RequiredError}
|
|
2315
|
-
* @memberof CustomersApi
|
|
2316
|
-
*/
|
|
2317
|
-
public terminateCustomerPolicy(requestParameters: CustomersApiTerminateCustomerPolicyRequest, options?: AxiosRequestConfig) {
|
|
2318
|
-
return CustomersApiFp(this.configuration).terminateCustomerPolicy(requestParameters.policyCode, requestParameters.customerCode, requestParameters.terminateCustomerPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
/**
|
|
2322
|
-
* Update customer details like phone, email, names, addresses etc
|
|
1870
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
2323
1871
|
* @summary Update customer details
|
|
2324
1872
|
* @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
2325
1873
|
* @param {*} [options] Override http request option.
|
|
@@ -2353,16 +1901,4 @@ export class CustomersApi extends BaseAPI {
|
|
|
2353
1901
|
public verifyResetPasswordToken(requestParameters: CustomersApiVerifyResetPasswordTokenRequest, options?: AxiosRequestConfig) {
|
|
2354
1902
|
return CustomersApiFp(this.configuration).verifyResetPasswordToken(requestParameters.resetToken, options).then((request) => request(this.axios, this.basePath));
|
|
2355
1903
|
}
|
|
2356
|
-
|
|
2357
|
-
/**
|
|
2358
|
-
* Withdraw policy by customer
|
|
2359
|
-
* @summary Withdraw policy by customer
|
|
2360
|
-
* @param {CustomersApiWithdrawCustomerPolicyRequest} requestParameters Request parameters.
|
|
2361
|
-
* @param {*} [options] Override http request option.
|
|
2362
|
-
* @throws {RequiredError}
|
|
2363
|
-
* @memberof CustomersApi
|
|
2364
|
-
*/
|
|
2365
|
-
public withdrawCustomerPolicy(requestParameters: CustomersApiWithdrawCustomerPolicyRequest, options?: AxiosRequestConfig) {
|
|
2366
|
-
return CustomersApiFp(this.configuration).withdrawCustomerPolicy(requestParameters.policyCode, requestParameters.customerCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2367
|
-
}
|
|
2368
1904
|
}
|