@emilgroup/customer-sdk-node 1.6.1 → 1.9.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +17 -0
- package/README.md +2 -2
- package/api/claims-api.ts +557 -0
- package/api/customers-api.ts +248 -712
- package/api/policies-api.ts +856 -0
- package/api.ts +5 -1
- package/base.ts +24 -32
- package/common.ts +2 -1
- package/configuration.ts +1 -1
- package/dist/api/claims-api.d.ts +327 -0
- package/dist/api/claims-api.js +508 -0
- package/dist/api/customers-api.d.ts +171 -448
- package/dist/api/customers-api.js +189 -508
- package/dist/api/policies-api.d.ts +505 -0
- package/dist/api/policies-api.js +714 -0
- package/dist/api.d.ts +3 -1
- package/dist/api.js +3 -1
- package/dist/base.d.ts +2 -3
- package/dist/base.js +20 -21
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/account-class.d.ts +1 -1
- package/dist/models/account-class.js +1 -1
- package/dist/models/account-policy-class.d.ts +1 -1
- package/dist/models/account-policy-class.js +1 -1
- package/dist/models/authentication-result-class.d.ts +1 -1
- package/dist/models/authentication-result-class.js +1 -1
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-psp-request.d.ts +32 -0
- package/dist/models/complete-payment-setup-psp-request.js +15 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +24 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +96 -0
- package/dist/models/create-account-request-dto.js +21 -0
- package/dist/models/create-customer-claim-request-dto.d.ts +108 -0
- package/dist/models/create-customer-claim-request-dto.js +15 -0
- package/dist/models/create-customer-request-dto.d.ts +8 -1
- package/dist/models/create-customer-request-dto.js +1 -1
- package/dist/models/create-customer-response-class.d.ts +1 -1
- package/dist/models/create-customer-response-class.js +1 -1
- package/dist/models/create-presigned-post-response-class.d.ts +30 -0
- package/dist/models/create-presigned-post-response-class.js +15 -0
- package/dist/models/customer-class.d.ts +8 -2
- package/dist/models/customer-class.js +1 -1
- package/dist/models/customer-document-class.d.ts +2 -2
- package/dist/models/customer-document-class.js +1 -1
- package/dist/models/forgot-password-request-dto.d.ts +1 -1
- package/dist/models/forgot-password-request-dto.js +1 -1
- package/dist/models/get-customer-document-download-url-response-class.d.ts +1 -1
- package/dist/models/get-customer-document-download-url-response-class.js +1 -1
- package/dist/models/get-customer-response-class.d.ts +1 -1
- package/dist/models/get-customer-response-class.js +1 -1
- package/dist/models/get-policy-response-class.d.ts +1 -1
- package/dist/models/get-policy-response-class.js +1 -1
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/dist/models/initiate-auth-request-dto.d.ts +1 -1
- package/dist/models/initiate-auth-request-dto.js +1 -1
- package/dist/models/initiate-auth-response-class.d.ts +1 -1
- package/dist/models/initiate-auth-response-class.js +1 -1
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- package/dist/models/invite-by-customer-request-dto.d.ts +1 -1
- package/dist/models/invite-by-customer-request-dto.js +1 -1
- package/dist/models/invite-by-customer-response-class.d.ts +1 -1
- package/dist/models/invite-by-customer-response-class.js +1 -1
- package/dist/models/invite-by-tenant-response-class.d.ts +1 -1
- package/dist/models/invite-by-tenant-response-class.js +1 -1
- package/dist/models/invite-class.d.ts +1 -1
- package/dist/models/invite-class.js +1 -1
- package/dist/models/invoice-class.d.ts +3 -3
- package/dist/models/invoice-class.js +1 -1
- package/dist/models/list-documents-response-class.d.ts +1 -1
- package/dist/models/list-documents-response-class.js +1 -1
- package/dist/models/list-invoices-response-class.d.ts +1 -1
- package/dist/models/list-invoices-response-class.js +1 -1
- package/dist/models/list-policies-response-class.d.ts +1 -1
- package/dist/models/list-policies-response-class.js +1 -1
- package/dist/models/policy-class.d.ts +14 -1
- package/dist/models/policy-class.js +1 -1
- package/dist/models/policy-object-class.d.ts +1 -1
- package/dist/models/policy-object-class.js +1 -1
- package/dist/models/policy-premium-class.d.ts +1 -1
- package/dist/models/policy-premium-class.js +1 -1
- package/dist/models/policy-premium-item-class.d.ts +1 -1
- package/dist/models/policy-premium-item-class.js +1 -1
- package/dist/models/policy-version-class.d.ts +1 -1
- package/dist/models/policy-version-class.js +1 -1
- package/dist/models/refresh-token-dto.d.ts +1 -1
- package/dist/models/refresh-token-dto.js +1 -1
- package/dist/models/request-policy-update-request-dto.d.ts +1 -1
- package/dist/models/request-policy-update-request-dto.js +1 -1
- package/dist/models/request-policy-update-response-class.d.ts +1 -1
- package/dist/models/request-policy-update-response-class.js +1 -1
- package/dist/models/reset-password-by-customer-request-dto.d.ts +1 -1
- package/dist/models/reset-password-by-customer-request-dto.js +1 -1
- package/dist/models/respond-to-auth-challenge-class.d.ts +1 -1
- package/dist/models/respond-to-auth-challenge-class.js +1 -1
- package/dist/models/respond-to-auth-challenge-request-dto.d.ts +1 -1
- package/dist/models/respond-to-auth-challenge-request-dto.js +1 -1
- package/dist/models/shared-customer-policy-object-request-dto.d.ts +1 -1
- package/dist/models/shared-customer-policy-object-request-dto.js +1 -1
- package/dist/models/shared-customer-product-class.d.ts +54 -0
- package/dist/models/shared-customer-product-class.js +15 -0
- package/dist/models/shared-invoice-item-class.d.ts +1 -1
- package/dist/models/shared-invoice-item-class.js +1 -1
- package/dist/models/terminate-customer-policy-request-dto.d.ts +1 -1
- package/dist/models/terminate-customer-policy-request-dto.js +1 -1
- package/dist/models/terminate-customer-policy-response-class.d.ts +1 -1
- package/dist/models/terminate-customer-policy-response-class.js +1 -1
- package/dist/models/timeslice-class.d.ts +1 -1
- package/dist/models/timeslice-class.js +1 -1
- package/dist/models/to-grpc-customer-product-class.d.ts +54 -0
- package/dist/models/to-grpc-customer-product-class.js +15 -0
- package/dist/models/update-account-request-dto.d.ts +2 -2
- package/dist/models/update-account-request-dto.js +1 -1
- package/dist/models/update-customer-claim-request-dto.d.ts +120 -0
- package/dist/models/update-customer-claim-request-dto.js +15 -0
- package/dist/models/update-customer-request-dto.d.ts +1 -1
- package/dist/models/update-customer-request-dto.js +1 -1
- package/dist/models/update-customer-response-class.d.ts +1 -1
- package/dist/models/update-customer-response-class.js +1 -1
- package/dist/models/upload-customer-claim-documents-request-dto.d.ts +36 -0
- package/dist/models/upload-customer-claim-documents-request-dto.js +15 -0
- package/dist/models/upload-customer-policy-documents-request-dto.d.ts +47 -0
- package/dist/models/upload-customer-policy-documents-request-dto.js +20 -0
- package/dist/models/verify-customer-invite-response-class.d.ts +1 -1
- package/dist/models/verify-customer-invite-response-class.js +1 -1
- package/dist/models/withdraw-customer-policy-response-class.d.ts +1 -1
- package/dist/models/withdraw-customer-policy-response-class.js +1 -1
- package/index.ts +1 -1
- package/models/account-class.ts +1 -1
- package/models/account-policy-class.ts +1 -1
- package/models/authentication-result-class.ts +1 -1
- package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
- package/models/complete-payment-setup-psp-request.ts +38 -0
- package/models/complete-payment-setup-response-class.ts +30 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +66 -0
- package/models/create-account-request-dto.ts +105 -0
- package/models/create-customer-claim-request-dto.ts +114 -0
- package/models/create-customer-request-dto.ts +8 -1
- package/models/create-customer-response-class.ts +1 -1
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/customer-class.ts +8 -2
- package/models/customer-document-class.ts +1 -1
- package/models/forgot-password-request-dto.ts +1 -1
- package/models/get-customer-document-download-url-response-class.ts +1 -1
- package/models/get-customer-response-class.ts +1 -1
- package/models/get-policy-response-class.ts +1 -1
- package/models/index.ts +15 -0
- package/models/initiate-auth-request-dto.ts +1 -1
- package/models/initiate-auth-response-class.ts +1 -1
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/invite-by-customer-request-dto.ts +1 -1
- package/models/invite-by-customer-response-class.ts +1 -1
- package/models/invite-by-tenant-response-class.ts +1 -1
- package/models/invite-class.ts +1 -1
- package/models/invoice-class.ts +1 -1
- package/models/list-documents-response-class.ts +1 -1
- package/models/list-invoices-response-class.ts +1 -1
- package/models/list-policies-response-class.ts +1 -1
- package/models/policy-class.ts +14 -1
- package/models/policy-object-class.ts +1 -1
- package/models/policy-premium-class.ts +1 -1
- package/models/policy-premium-item-class.ts +1 -1
- package/models/policy-version-class.ts +1 -1
- package/models/refresh-token-dto.ts +1 -1
- package/models/request-policy-update-request-dto.ts +1 -1
- package/models/request-policy-update-response-class.ts +1 -1
- package/models/reset-password-by-customer-request-dto.ts +1 -1
- package/models/respond-to-auth-challenge-class.ts +1 -1
- package/models/respond-to-auth-challenge-request-dto.ts +1 -1
- package/models/shared-customer-policy-object-request-dto.ts +1 -1
- package/models/shared-customer-product-class.ts +60 -0
- package/models/shared-invoice-item-class.ts +1 -1
- package/models/terminate-customer-policy-request-dto.ts +1 -1
- package/models/terminate-customer-policy-response-class.ts +1 -1
- package/models/timeslice-class.ts +1 -1
- package/models/to-grpc-customer-product-class.ts +60 -0
- package/models/update-account-request-dto.ts +1 -1
- package/models/update-customer-claim-request-dto.ts +126 -0
- package/models/update-customer-request-dto.ts +1 -1
- package/models/update-customer-response-class.ts +1 -1
- package/models/upload-customer-claim-documents-request-dto.ts +42 -0
- package/models/upload-customer-policy-documents-request-dto.ts +56 -0
- package/models/verify-customer-invite-response-class.ts +1 -1
- package/models/withdraw-customer-policy-response-class.ts +1 -1
- package/package.json +2 -3
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The EMIL CustomerService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (_) try {
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
57
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
58
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
59
|
switch (op[0]) {
|
|
@@ -96,6 +96,49 @@ var FormData = require('form-data');
|
|
|
96
96
|
var CustomersApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
|
+
/**
|
|
100
|
+
* Request to complete a payment change by customer.
|
|
101
|
+
* @summary Request payment setup complete by customer
|
|
102
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
103
|
+
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
104
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, options) {
|
|
109
|
+
if (options === void 0) { options = {}; }
|
|
110
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
114
|
+
(0, common_1.assertParamExists)('completePaymentSetup', 'customerCode', customerCode);
|
|
115
|
+
// verify required parameter 'completePaymentSetupPspRequest' is not null or undefined
|
|
116
|
+
(0, common_1.assertParamExists)('completePaymentSetup', 'completePaymentSetupPspRequest', completePaymentSetupPspRequest);
|
|
117
|
+
localVarPath = "/v1/customers/{customerCode}/payment_setup/complete"
|
|
118
|
+
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
119
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
120
|
+
if (configuration) {
|
|
121
|
+
baseOptions = configuration.baseOptions;
|
|
122
|
+
baseAccessToken = configuration.accessToken;
|
|
123
|
+
}
|
|
124
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
125
|
+
localVarHeaderParameter = {};
|
|
126
|
+
localVarQueryParameter = {};
|
|
127
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
128
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
129
|
+
}
|
|
130
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
131
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completePaymentSetupPspRequest, localVarRequestOptions, configuration);
|
|
135
|
+
return [2 /*return*/, {
|
|
136
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
}];
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
},
|
|
99
142
|
/**
|
|
100
143
|
* 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.
|
|
101
144
|
* @summary Register a customer after invite
|
|
@@ -167,9 +210,9 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
167
210
|
});
|
|
168
211
|
},
|
|
169
212
|
/**
|
|
170
|
-
* Get customer details
|
|
213
|
+
* Get customer details.
|
|
171
214
|
* @summary Get customer details
|
|
172
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
215
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
173
216
|
* @param {string} [expand] Fields to expand response by - [account]
|
|
174
217
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
175
218
|
* @param {*} [options] Override http request option.
|
|
@@ -209,10 +252,10 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
209
252
|
});
|
|
210
253
|
},
|
|
211
254
|
/**
|
|
212
|
-
* Get a presigned download url for document
|
|
255
|
+
* Get a presigned download url for document.
|
|
213
256
|
* @summary Get a presigned download url for document
|
|
214
|
-
* @param {string} documentCode The document code
|
|
215
|
-
* @param {string} customerCode
|
|
257
|
+
* @param {string} documentCode The document code.
|
|
258
|
+
* @param {string} customerCode
|
|
216
259
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
217
260
|
* @param {*} [options] Override http request option.
|
|
218
261
|
* @throws {RequiredError}
|
|
@@ -251,44 +294,33 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
251
294
|
});
|
|
252
295
|
},
|
|
253
296
|
/**
|
|
254
|
-
*
|
|
255
|
-
* @summary
|
|
256
|
-
* @param {
|
|
257
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
258
|
-
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
259
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
297
|
+
* Start auth process to get new access token, refresh token after successful login.
|
|
298
|
+
* @summary Initiate auth by customer
|
|
299
|
+
* @param {InitiateAuthRequestDto} initiateAuthRequestDto
|
|
260
300
|
* @param {*} [options] Override http request option.
|
|
261
301
|
* @throws {RequiredError}
|
|
262
302
|
*/
|
|
263
|
-
|
|
303
|
+
initiateAuth: function (initiateAuthRequestDto, options) {
|
|
264
304
|
if (options === void 0) { options = {}; }
|
|
265
305
|
return __awaiter(_this, void 0, void 0, function () {
|
|
266
306
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
267
307
|
return __generator(this, function (_a) {
|
|
268
|
-
// verify required parameter '
|
|
269
|
-
(0, common_1.assertParamExists)('
|
|
270
|
-
|
|
271
|
-
(0, common_1.assertParamExists)('getPolicy', 'customerCode', customerCode);
|
|
272
|
-
localVarPath = "/v1/customers/{customerCode}/policies/{policyCode}"
|
|
273
|
-
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)))
|
|
274
|
-
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
308
|
+
// verify required parameter 'initiateAuthRequestDto' is not null or undefined
|
|
309
|
+
(0, common_1.assertParamExists)('initiateAuth', 'initiateAuthRequestDto', initiateAuthRequestDto);
|
|
310
|
+
localVarPath = "/v1/customers/auth/initiate";
|
|
275
311
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
276
312
|
if (configuration) {
|
|
277
313
|
baseOptions = configuration.baseOptions;
|
|
278
314
|
baseAccessToken = configuration.accessToken;
|
|
279
315
|
}
|
|
280
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
316
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
281
317
|
localVarHeaderParameter = {};
|
|
282
318
|
localVarQueryParameter = {};
|
|
283
|
-
|
|
284
|
-
localVarQueryParameter['expand'] = expand;
|
|
285
|
-
}
|
|
286
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
287
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
288
|
-
}
|
|
319
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
289
320
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
290
321
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
291
322
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
323
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiateAuthRequestDto, localVarRequestOptions, configuration);
|
|
292
324
|
return [2 /*return*/, {
|
|
293
325
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
294
326
|
options: localVarRequestOptions,
|
|
@@ -297,20 +329,22 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
297
329
|
});
|
|
298
330
|
},
|
|
299
331
|
/**
|
|
300
|
-
*
|
|
301
|
-
* @summary
|
|
302
|
-
* @param {
|
|
332
|
+
* Request to initiate a payment change by customer.
|
|
333
|
+
* @summary Request payment setup initiation by customer
|
|
334
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
335
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
303
336
|
* @param {*} [options] Override http request option.
|
|
304
337
|
* @throws {RequiredError}
|
|
305
338
|
*/
|
|
306
|
-
|
|
339
|
+
initiatePaymentSetup: function (customerCode, authorization, options) {
|
|
307
340
|
if (options === void 0) { options = {}; }
|
|
308
341
|
return __awaiter(_this, void 0, void 0, function () {
|
|
309
342
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
310
343
|
return __generator(this, function (_a) {
|
|
311
|
-
// verify required parameter '
|
|
312
|
-
(0, common_1.assertParamExists)('
|
|
313
|
-
localVarPath = "/v1/customers/
|
|
344
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
345
|
+
(0, common_1.assertParamExists)('initiatePaymentSetup', 'customerCode', customerCode);
|
|
346
|
+
localVarPath = "/v1/customers/{customerCode}/payment_setup/initiate"
|
|
347
|
+
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
314
348
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
315
349
|
if (configuration) {
|
|
316
350
|
baseOptions = configuration.baseOptions;
|
|
@@ -319,11 +353,12 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
319
353
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
320
354
|
localVarHeaderParameter = {};
|
|
321
355
|
localVarQueryParameter = {};
|
|
322
|
-
|
|
356
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
357
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
358
|
+
}
|
|
323
359
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
324
360
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
325
361
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
326
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiateAuthRequestDto, localVarRequestOptions, configuration);
|
|
327
362
|
return [2 /*return*/, {
|
|
328
363
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
329
364
|
options: localVarRequestOptions,
|
|
@@ -335,7 +370,7 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
335
370
|
* 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.
|
|
336
371
|
* @summary Invite a customer by self
|
|
337
372
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
338
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
373
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
339
374
|
* @param {*} [options] Override http request option.
|
|
340
375
|
* @throws {RequiredError}
|
|
341
376
|
*/
|
|
@@ -374,7 +409,7 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
374
409
|
* 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.
|
|
375
410
|
* @summary Invite a customer by tenant
|
|
376
411
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
377
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
412
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
378
413
|
* @param {*} [options] Override http request option.
|
|
379
414
|
* @throws {RequiredError}
|
|
380
415
|
*/
|
|
@@ -410,9 +445,9 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
410
445
|
});
|
|
411
446
|
},
|
|
412
447
|
/**
|
|
413
|
-
* List all the documents of a customer
|
|
448
|
+
* List all the documents of a customer.
|
|
414
449
|
* @summary List documents of a customer
|
|
415
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
450
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
416
451
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
417
452
|
* @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.
|
|
418
453
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -472,9 +507,9 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
472
507
|
});
|
|
473
508
|
},
|
|
474
509
|
/**
|
|
475
|
-
* List all the invoices of a customer
|
|
510
|
+
* List all the invoices of a customer.
|
|
476
511
|
* @summary List invoices of a customer
|
|
477
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
512
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
478
513
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
479
514
|
* @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.
|
|
480
515
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -533,68 +568,6 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
533
568
|
});
|
|
534
569
|
});
|
|
535
570
|
},
|
|
536
|
-
/**
|
|
537
|
-
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
538
|
-
* @summary List policies of a customer
|
|
539
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
540
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
541
|
-
* @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.
|
|
542
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
543
|
-
* @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.
|
|
544
|
-
* @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.
|
|
545
|
-
* @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.
|
|
546
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
547
|
-
* @param {*} [options] Override http request option.
|
|
548
|
-
* @throws {RequiredError}
|
|
549
|
-
*/
|
|
550
|
-
listPolicies: function (customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options) {
|
|
551
|
-
if (options === void 0) { options = {}; }
|
|
552
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
553
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
554
|
-
return __generator(this, function (_a) {
|
|
555
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
556
|
-
(0, common_1.assertParamExists)('listPolicies', 'customerCode', customerCode);
|
|
557
|
-
localVarPath = "/v1/customers/{customerCode}/policies"
|
|
558
|
-
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
559
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
560
|
-
if (configuration) {
|
|
561
|
-
baseOptions = configuration.baseOptions;
|
|
562
|
-
baseAccessToken = configuration.accessToken;
|
|
563
|
-
}
|
|
564
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
565
|
-
localVarHeaderParameter = {};
|
|
566
|
-
localVarQueryParameter = {};
|
|
567
|
-
if (pageSize !== undefined) {
|
|
568
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
569
|
-
}
|
|
570
|
-
if (pageToken !== undefined) {
|
|
571
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
572
|
-
}
|
|
573
|
-
if (filter !== undefined) {
|
|
574
|
-
localVarQueryParameter['filter'] = filter;
|
|
575
|
-
}
|
|
576
|
-
if (search !== undefined) {
|
|
577
|
-
localVarQueryParameter['search'] = search;
|
|
578
|
-
}
|
|
579
|
-
if (order !== undefined) {
|
|
580
|
-
localVarQueryParameter['order'] = order;
|
|
581
|
-
}
|
|
582
|
-
if (expand !== undefined) {
|
|
583
|
-
localVarQueryParameter['expand'] = expand;
|
|
584
|
-
}
|
|
585
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
586
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
587
|
-
}
|
|
588
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
589
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
590
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
591
|
-
return [2 /*return*/, {
|
|
592
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
593
|
-
options: localVarRequestOptions,
|
|
594
|
-
}];
|
|
595
|
-
});
|
|
596
|
-
});
|
|
597
|
-
},
|
|
598
571
|
/**
|
|
599
572
|
* Get new access token, new refresh token.
|
|
600
573
|
* @summary Refresh token by customer
|
|
@@ -634,53 +607,6 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
634
607
|
});
|
|
635
608
|
});
|
|
636
609
|
},
|
|
637
|
-
/**
|
|
638
|
-
* Request to update an existing policy by customer
|
|
639
|
-
* @summary Request policy update by customer
|
|
640
|
-
* @param {string} policyCode The policy code
|
|
641
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
642
|
-
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
643
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
644
|
-
* @param {*} [options] Override http request option.
|
|
645
|
-
* @throws {RequiredError}
|
|
646
|
-
*/
|
|
647
|
-
requestPolicyUpdate: function (policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options) {
|
|
648
|
-
if (options === void 0) { options = {}; }
|
|
649
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
650
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
651
|
-
return __generator(this, function (_a) {
|
|
652
|
-
// verify required parameter 'policyCode' is not null or undefined
|
|
653
|
-
(0, common_1.assertParamExists)('requestPolicyUpdate', 'policyCode', policyCode);
|
|
654
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
655
|
-
(0, common_1.assertParamExists)('requestPolicyUpdate', 'customerCode', customerCode);
|
|
656
|
-
// verify required parameter 'requestPolicyUpdateRequestDto' is not null or undefined
|
|
657
|
-
(0, common_1.assertParamExists)('requestPolicyUpdate', 'requestPolicyUpdateRequestDto', requestPolicyUpdateRequestDto);
|
|
658
|
-
localVarPath = "/v1/customers/{customerCode}/policies/{policyCode}/request-update"
|
|
659
|
-
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)))
|
|
660
|
-
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
661
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
662
|
-
if (configuration) {
|
|
663
|
-
baseOptions = configuration.baseOptions;
|
|
664
|
-
baseAccessToken = configuration.accessToken;
|
|
665
|
-
}
|
|
666
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
667
|
-
localVarHeaderParameter = {};
|
|
668
|
-
localVarQueryParameter = {};
|
|
669
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
670
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
671
|
-
}
|
|
672
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
673
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
674
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
675
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
676
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestPolicyUpdateRequestDto, localVarRequestOptions, configuration);
|
|
677
|
-
return [2 /*return*/, {
|
|
678
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
679
|
-
options: localVarRequestOptions,
|
|
680
|
-
}];
|
|
681
|
-
});
|
|
682
|
-
});
|
|
683
|
-
},
|
|
684
610
|
/**
|
|
685
611
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
686
612
|
* @summary Change password by customer
|
|
@@ -752,56 +678,9 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
752
678
|
});
|
|
753
679
|
},
|
|
754
680
|
/**
|
|
755
|
-
*
|
|
756
|
-
* @summary Terminate a policy by customer
|
|
757
|
-
* @param {string} policyCode The policy code
|
|
758
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
759
|
-
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
760
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
761
|
-
* @param {*} [options] Override http request option.
|
|
762
|
-
* @throws {RequiredError}
|
|
763
|
-
*/
|
|
764
|
-
terminateCustomerPolicy: function (policyCode, customerCode, terminateCustomerPolicyRequestDto, authorization, options) {
|
|
765
|
-
if (options === void 0) { options = {}; }
|
|
766
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
767
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
768
|
-
return __generator(this, function (_a) {
|
|
769
|
-
// verify required parameter 'policyCode' is not null or undefined
|
|
770
|
-
(0, common_1.assertParamExists)('terminateCustomerPolicy', 'policyCode', policyCode);
|
|
771
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
772
|
-
(0, common_1.assertParamExists)('terminateCustomerPolicy', 'customerCode', customerCode);
|
|
773
|
-
// verify required parameter 'terminateCustomerPolicyRequestDto' is not null or undefined
|
|
774
|
-
(0, common_1.assertParamExists)('terminateCustomerPolicy', 'terminateCustomerPolicyRequestDto', terminateCustomerPolicyRequestDto);
|
|
775
|
-
localVarPath = "/v1/customers/{customerCode}/policies/{policyCode}/terminate"
|
|
776
|
-
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)))
|
|
777
|
-
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
778
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
779
|
-
if (configuration) {
|
|
780
|
-
baseOptions = configuration.baseOptions;
|
|
781
|
-
baseAccessToken = configuration.accessToken;
|
|
782
|
-
}
|
|
783
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
784
|
-
localVarHeaderParameter = {};
|
|
785
|
-
localVarQueryParameter = {};
|
|
786
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
787
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
788
|
-
}
|
|
789
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
790
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
791
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
792
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
793
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(terminateCustomerPolicyRequestDto, localVarRequestOptions, configuration);
|
|
794
|
-
return [2 /*return*/, {
|
|
795
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
796
|
-
options: localVarRequestOptions,
|
|
797
|
-
}];
|
|
798
|
-
});
|
|
799
|
-
});
|
|
800
|
-
},
|
|
801
|
-
/**
|
|
802
|
-
* Update customer details like phone, email, names, addresses etc
|
|
681
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
803
682
|
* @summary Update customer details
|
|
804
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
683
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
805
684
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
806
685
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
807
686
|
* @param {*} [options] Override http request option.
|
|
@@ -913,48 +792,6 @@ var CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
913
792
|
});
|
|
914
793
|
});
|
|
915
794
|
},
|
|
916
|
-
/**
|
|
917
|
-
* Withdraw policy by customer
|
|
918
|
-
* @summary Withdraw policy by customer
|
|
919
|
-
* @param {string} policyCode The policy code
|
|
920
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
921
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
922
|
-
* @param {*} [options] Override http request option.
|
|
923
|
-
* @throws {RequiredError}
|
|
924
|
-
*/
|
|
925
|
-
withdrawCustomerPolicy: function (policyCode, customerCode, authorization, options) {
|
|
926
|
-
if (options === void 0) { options = {}; }
|
|
927
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
928
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
929
|
-
return __generator(this, function (_a) {
|
|
930
|
-
// verify required parameter 'policyCode' is not null or undefined
|
|
931
|
-
(0, common_1.assertParamExists)('withdrawCustomerPolicy', 'policyCode', policyCode);
|
|
932
|
-
// verify required parameter 'customerCode' is not null or undefined
|
|
933
|
-
(0, common_1.assertParamExists)('withdrawCustomerPolicy', 'customerCode', customerCode);
|
|
934
|
-
localVarPath = "/v1/customers/{customerCode}/policies/{policyCode}/withdraw"
|
|
935
|
-
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)))
|
|
936
|
-
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
937
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
938
|
-
if (configuration) {
|
|
939
|
-
baseOptions = configuration.baseOptions;
|
|
940
|
-
baseAccessToken = configuration.accessToken;
|
|
941
|
-
}
|
|
942
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
943
|
-
localVarHeaderParameter = {};
|
|
944
|
-
localVarQueryParameter = {};
|
|
945
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
946
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
947
|
-
}
|
|
948
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
949
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
950
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
951
|
-
return [2 /*return*/, {
|
|
952
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
953
|
-
options: localVarRequestOptions,
|
|
954
|
-
}];
|
|
955
|
-
});
|
|
956
|
-
});
|
|
957
|
-
},
|
|
958
795
|
};
|
|
959
796
|
};
|
|
960
797
|
exports.CustomersApiAxiosParamCreator = CustomersApiAxiosParamCreator;
|
|
@@ -965,6 +802,28 @@ exports.CustomersApiAxiosParamCreator = CustomersApiAxiosParamCreator;
|
|
|
965
802
|
var CustomersApiFp = function (configuration) {
|
|
966
803
|
var localVarAxiosParamCreator = (0, exports.CustomersApiAxiosParamCreator)(configuration);
|
|
967
804
|
return {
|
|
805
|
+
/**
|
|
806
|
+
* Request to complete a payment change by customer.
|
|
807
|
+
* @summary Request payment setup complete by customer
|
|
808
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
809
|
+
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
810
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
811
|
+
* @param {*} [options] Override http request option.
|
|
812
|
+
* @throws {RequiredError}
|
|
813
|
+
*/
|
|
814
|
+
completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, options) {
|
|
815
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
816
|
+
var localVarAxiosArgs;
|
|
817
|
+
return __generator(this, function (_a) {
|
|
818
|
+
switch (_a.label) {
|
|
819
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options)];
|
|
820
|
+
case 1:
|
|
821
|
+
localVarAxiosArgs = _a.sent();
|
|
822
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
823
|
+
}
|
|
824
|
+
});
|
|
825
|
+
});
|
|
826
|
+
},
|
|
968
827
|
/**
|
|
969
828
|
* 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.
|
|
970
829
|
* @summary Register a customer after invite
|
|
@@ -1006,9 +865,9 @@ var CustomersApiFp = function (configuration) {
|
|
|
1006
865
|
});
|
|
1007
866
|
},
|
|
1008
867
|
/**
|
|
1009
|
-
* Get customer details
|
|
868
|
+
* Get customer details.
|
|
1010
869
|
* @summary Get customer details
|
|
1011
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
870
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1012
871
|
* @param {string} [expand] Fields to expand response by - [account]
|
|
1013
872
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1014
873
|
* @param {*} [options] Override http request option.
|
|
@@ -1028,10 +887,10 @@ var CustomersApiFp = function (configuration) {
|
|
|
1028
887
|
});
|
|
1029
888
|
},
|
|
1030
889
|
/**
|
|
1031
|
-
* Get a presigned download url for document
|
|
890
|
+
* Get a presigned download url for document.
|
|
1032
891
|
* @summary Get a presigned download url for document
|
|
1033
|
-
* @param {string} documentCode The document code
|
|
1034
|
-
* @param {string} customerCode
|
|
892
|
+
* @param {string} documentCode The document code.
|
|
893
|
+
* @param {string} customerCode
|
|
1035
894
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1036
895
|
* @param {*} [options] Override http request option.
|
|
1037
896
|
* @throws {RequiredError}
|
|
@@ -1050,21 +909,18 @@ var CustomersApiFp = function (configuration) {
|
|
|
1050
909
|
});
|
|
1051
910
|
},
|
|
1052
911
|
/**
|
|
1053
|
-
*
|
|
1054
|
-
* @summary
|
|
1055
|
-
* @param {
|
|
1056
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1057
|
-
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
1058
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
912
|
+
* Start auth process to get new access token, refresh token after successful login.
|
|
913
|
+
* @summary Initiate auth by customer
|
|
914
|
+
* @param {InitiateAuthRequestDto} initiateAuthRequestDto
|
|
1059
915
|
* @param {*} [options] Override http request option.
|
|
1060
916
|
* @throws {RequiredError}
|
|
1061
917
|
*/
|
|
1062
|
-
|
|
918
|
+
initiateAuth: function (initiateAuthRequestDto, options) {
|
|
1063
919
|
return __awaiter(this, void 0, void 0, function () {
|
|
1064
920
|
var localVarAxiosArgs;
|
|
1065
921
|
return __generator(this, function (_a) {
|
|
1066
922
|
switch (_a.label) {
|
|
1067
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
923
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateAuth(initiateAuthRequestDto, options)];
|
|
1068
924
|
case 1:
|
|
1069
925
|
localVarAxiosArgs = _a.sent();
|
|
1070
926
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1073,18 +929,19 @@ var CustomersApiFp = function (configuration) {
|
|
|
1073
929
|
});
|
|
1074
930
|
},
|
|
1075
931
|
/**
|
|
1076
|
-
*
|
|
1077
|
-
* @summary
|
|
1078
|
-
* @param {
|
|
932
|
+
* Request to initiate a payment change by customer.
|
|
933
|
+
* @summary Request payment setup initiation by customer
|
|
934
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
935
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1079
936
|
* @param {*} [options] Override http request option.
|
|
1080
937
|
* @throws {RequiredError}
|
|
1081
938
|
*/
|
|
1082
|
-
|
|
939
|
+
initiatePaymentSetup: function (customerCode, authorization, options) {
|
|
1083
940
|
return __awaiter(this, void 0, void 0, function () {
|
|
1084
941
|
var localVarAxiosArgs;
|
|
1085
942
|
return __generator(this, function (_a) {
|
|
1086
943
|
switch (_a.label) {
|
|
1087
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
944
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(customerCode, authorization, options)];
|
|
1088
945
|
case 1:
|
|
1089
946
|
localVarAxiosArgs = _a.sent();
|
|
1090
947
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1096,7 +953,7 @@ var CustomersApiFp = function (configuration) {
|
|
|
1096
953
|
* 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.
|
|
1097
954
|
* @summary Invite a customer by self
|
|
1098
955
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
1099
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
956
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1100
957
|
* @param {*} [options] Override http request option.
|
|
1101
958
|
* @throws {RequiredError}
|
|
1102
959
|
*/
|
|
@@ -1117,7 +974,7 @@ var CustomersApiFp = function (configuration) {
|
|
|
1117
974
|
* 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.
|
|
1118
975
|
* @summary Invite a customer by tenant
|
|
1119
976
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
1120
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
977
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1121
978
|
* @param {*} [options] Override http request option.
|
|
1122
979
|
* @throws {RequiredError}
|
|
1123
980
|
*/
|
|
@@ -1135,9 +992,9 @@ var CustomersApiFp = function (configuration) {
|
|
|
1135
992
|
});
|
|
1136
993
|
},
|
|
1137
994
|
/**
|
|
1138
|
-
* List all the documents of a customer
|
|
995
|
+
* List all the documents of a customer.
|
|
1139
996
|
* @summary List documents of a customer
|
|
1140
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
997
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1141
998
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1142
999
|
* @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
1000
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -1162,9 +1019,9 @@ var CustomersApiFp = function (configuration) {
|
|
|
1162
1019
|
});
|
|
1163
1020
|
},
|
|
1164
1021
|
/**
|
|
1165
|
-
* List all the invoices of a customer
|
|
1022
|
+
* List all the invoices of a customer.
|
|
1166
1023
|
* @summary List invoices of a customer
|
|
1167
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1024
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1168
1025
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1169
1026
|
* @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.
|
|
1170
1027
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -1188,33 +1045,6 @@ var CustomersApiFp = function (configuration) {
|
|
|
1188
1045
|
});
|
|
1189
1046
|
});
|
|
1190
1047
|
},
|
|
1191
|
-
/**
|
|
1192
|
-
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
1193
|
-
* @summary List policies of a customer
|
|
1194
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1195
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
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.
|
|
1197
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1198
|
-
* @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.
|
|
1199
|
-
* @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.
|
|
1200
|
-
* @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.
|
|
1201
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1202
|
-
* @param {*} [options] Override http request option.
|
|
1203
|
-
* @throws {RequiredError}
|
|
1204
|
-
*/
|
|
1205
|
-
listPolicies: function (customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options) {
|
|
1206
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1207
|
-
var localVarAxiosArgs;
|
|
1208
|
-
return __generator(this, function (_a) {
|
|
1209
|
-
switch (_a.label) {
|
|
1210
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options)];
|
|
1211
|
-
case 1:
|
|
1212
|
-
localVarAxiosArgs = _a.sent();
|
|
1213
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1214
|
-
}
|
|
1215
|
-
});
|
|
1216
|
-
});
|
|
1217
|
-
},
|
|
1218
1048
|
/**
|
|
1219
1049
|
* Get new access token, new refresh token.
|
|
1220
1050
|
* @summary Refresh token by customer
|
|
@@ -1236,29 +1066,6 @@ var CustomersApiFp = function (configuration) {
|
|
|
1236
1066
|
});
|
|
1237
1067
|
});
|
|
1238
1068
|
},
|
|
1239
|
-
/**
|
|
1240
|
-
* Request to update an existing policy by customer
|
|
1241
|
-
* @summary Request policy update 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 {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
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
|
-
requestPolicyUpdate: function (policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options) {
|
|
1250
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1251
|
-
var localVarAxiosArgs;
|
|
1252
|
-
return __generator(this, function (_a) {
|
|
1253
|
-
switch (_a.label) {
|
|
1254
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.requestPolicyUpdate(policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options)];
|
|
1255
|
-
case 1:
|
|
1256
|
-
localVarAxiosArgs = _a.sent();
|
|
1257
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1258
|
-
}
|
|
1259
|
-
});
|
|
1260
|
-
});
|
|
1261
|
-
},
|
|
1262
1069
|
/**
|
|
1263
1070
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
1264
1071
|
* @summary Change password by customer
|
|
@@ -1300,32 +1107,9 @@ var CustomersApiFp = function (configuration) {
|
|
|
1300
1107
|
});
|
|
1301
1108
|
},
|
|
1302
1109
|
/**
|
|
1303
|
-
*
|
|
1304
|
-
* @summary Terminate a policy by customer
|
|
1305
|
-
* @param {string} policyCode The policy code
|
|
1306
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1307
|
-
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
1308
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1309
|
-
* @param {*} [options] Override http request option.
|
|
1310
|
-
* @throws {RequiredError}
|
|
1311
|
-
*/
|
|
1312
|
-
terminateCustomerPolicy: function (policyCode, customerCode, terminateCustomerPolicyRequestDto, authorization, options) {
|
|
1313
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1314
|
-
var localVarAxiosArgs;
|
|
1315
|
-
return __generator(this, function (_a) {
|
|
1316
|
-
switch (_a.label) {
|
|
1317
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.terminateCustomerPolicy(policyCode, customerCode, terminateCustomerPolicyRequestDto, authorization, options)];
|
|
1318
|
-
case 1:
|
|
1319
|
-
localVarAxiosArgs = _a.sent();
|
|
1320
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1321
|
-
}
|
|
1322
|
-
});
|
|
1323
|
-
});
|
|
1324
|
-
},
|
|
1325
|
-
/**
|
|
1326
|
-
* Update customer details like phone, email, names, addresses etc
|
|
1110
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
1327
1111
|
* @summary Update customer details
|
|
1328
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1112
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1329
1113
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
1330
1114
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1331
1115
|
* @param {*} [options] Override http request option.
|
|
@@ -1384,28 +1168,6 @@ var CustomersApiFp = function (configuration) {
|
|
|
1384
1168
|
});
|
|
1385
1169
|
});
|
|
1386
1170
|
},
|
|
1387
|
-
/**
|
|
1388
|
-
* Withdraw policy by customer
|
|
1389
|
-
* @summary Withdraw policy by customer
|
|
1390
|
-
* @param {string} policyCode The policy code
|
|
1391
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1392
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1393
|
-
* @param {*} [options] Override http request option.
|
|
1394
|
-
* @throws {RequiredError}
|
|
1395
|
-
*/
|
|
1396
|
-
withdrawCustomerPolicy: function (policyCode, customerCode, authorization, options) {
|
|
1397
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1398
|
-
var localVarAxiosArgs;
|
|
1399
|
-
return __generator(this, function (_a) {
|
|
1400
|
-
switch (_a.label) {
|
|
1401
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.withdrawCustomerPolicy(policyCode, customerCode, authorization, options)];
|
|
1402
|
-
case 1:
|
|
1403
|
-
localVarAxiosArgs = _a.sent();
|
|
1404
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1405
|
-
}
|
|
1406
|
-
});
|
|
1407
|
-
});
|
|
1408
|
-
},
|
|
1409
1171
|
};
|
|
1410
1172
|
};
|
|
1411
1173
|
exports.CustomersApiFp = CustomersApiFp;
|
|
@@ -1416,6 +1178,18 @@ exports.CustomersApiFp = CustomersApiFp;
|
|
|
1416
1178
|
var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
1417
1179
|
var localVarFp = (0, exports.CustomersApiFp)(configuration);
|
|
1418
1180
|
return {
|
|
1181
|
+
/**
|
|
1182
|
+
* Request to complete a payment change by customer.
|
|
1183
|
+
* @summary Request payment setup complete by customer
|
|
1184
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1185
|
+
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
1186
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1187
|
+
* @param {*} [options] Override http request option.
|
|
1188
|
+
* @throws {RequiredError}
|
|
1189
|
+
*/
|
|
1190
|
+
completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, options) {
|
|
1191
|
+
return localVarFp.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1192
|
+
},
|
|
1419
1193
|
/**
|
|
1420
1194
|
* 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.
|
|
1421
1195
|
* @summary Register a customer after invite
|
|
@@ -1437,9 +1211,9 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
1437
1211
|
return localVarFp.forgotPassword(forgotPasswordRequestDto, options).then(function (request) { return request(axios, basePath); });
|
|
1438
1212
|
},
|
|
1439
1213
|
/**
|
|
1440
|
-
* Get customer details
|
|
1214
|
+
* Get customer details.
|
|
1441
1215
|
* @summary Get customer details
|
|
1442
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1216
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1443
1217
|
* @param {string} [expand] Fields to expand response by - [account]
|
|
1444
1218
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1445
1219
|
* @param {*} [options] Override http request option.
|
|
@@ -1449,10 +1223,10 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
1449
1223
|
return localVarFp.getCustomer(customerCode, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1450
1224
|
},
|
|
1451
1225
|
/**
|
|
1452
|
-
* Get a presigned download url for document
|
|
1226
|
+
* Get a presigned download url for document.
|
|
1453
1227
|
* @summary Get a presigned download url for document
|
|
1454
|
-
* @param {string} documentCode The document code
|
|
1455
|
-
* @param {string} customerCode
|
|
1228
|
+
* @param {string} documentCode The document code.
|
|
1229
|
+
* @param {string} customerCode
|
|
1456
1230
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1457
1231
|
* @param {*} [options] Override http request option.
|
|
1458
1232
|
* @throws {RequiredError}
|
|
@@ -1460,19 +1234,6 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
1460
1234
|
getCustomerDocumentDownloadUrl: function (documentCode, customerCode, authorization, options) {
|
|
1461
1235
|
return localVarFp.getCustomerDocumentDownloadUrl(documentCode, customerCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1462
1236
|
},
|
|
1463
|
-
/**
|
|
1464
|
-
* Get detailed policy that belongs to a customer; the details can be expanded using expand query parameter.
|
|
1465
|
-
* @summary Get policy details
|
|
1466
|
-
* @param {string} policyCode The policy code
|
|
1467
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1468
|
-
* @param {string} [expand] Fields to expand response by - [versions, premiumItems]
|
|
1469
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1470
|
-
* @param {*} [options] Override http request option.
|
|
1471
|
-
* @throws {RequiredError}
|
|
1472
|
-
*/
|
|
1473
|
-
getPolicy: function (policyCode, customerCode, expand, authorization, options) {
|
|
1474
|
-
return localVarFp.getPolicy(policyCode, customerCode, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1475
|
-
},
|
|
1476
1237
|
/**
|
|
1477
1238
|
* Start auth process to get new access token, refresh token after successful login.
|
|
1478
1239
|
* @summary Initiate auth by customer
|
|
@@ -1483,11 +1244,22 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
1483
1244
|
initiateAuth: function (initiateAuthRequestDto, options) {
|
|
1484
1245
|
return localVarFp.initiateAuth(initiateAuthRequestDto, options).then(function (request) { return request(axios, basePath); });
|
|
1485
1246
|
},
|
|
1247
|
+
/**
|
|
1248
|
+
* Request to initiate a payment change by customer.
|
|
1249
|
+
* @summary Request payment setup initiation by customer
|
|
1250
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1251
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1252
|
+
* @param {*} [options] Override http request option.
|
|
1253
|
+
* @throws {RequiredError}
|
|
1254
|
+
*/
|
|
1255
|
+
initiatePaymentSetup: function (customerCode, authorization, options) {
|
|
1256
|
+
return localVarFp.initiatePaymentSetup(customerCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1257
|
+
},
|
|
1486
1258
|
/**
|
|
1487
1259
|
* 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.
|
|
1488
1260
|
* @summary Invite a customer by self
|
|
1489
1261
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
1490
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
1262
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1491
1263
|
* @param {*} [options] Override http request option.
|
|
1492
1264
|
* @throws {RequiredError}
|
|
1493
1265
|
*/
|
|
@@ -1498,7 +1270,7 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
1498
1270
|
* 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.
|
|
1499
1271
|
* @summary Invite a customer by tenant
|
|
1500
1272
|
* @param {InviteByCustomerRequestDto} inviteByCustomerRequestDto
|
|
1501
|
-
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken
|
|
1273
|
+
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
1502
1274
|
* @param {*} [options] Override http request option.
|
|
1503
1275
|
* @throws {RequiredError}
|
|
1504
1276
|
*/
|
|
@@ -1506,9 +1278,9 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
1506
1278
|
return localVarFp.inviteByTenant(inviteByCustomerRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1507
1279
|
},
|
|
1508
1280
|
/**
|
|
1509
|
-
* List all the documents of a customer
|
|
1281
|
+
* List all the documents of a customer.
|
|
1510
1282
|
* @summary List documents of a customer
|
|
1511
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1283
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1512
1284
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1513
1285
|
* @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.
|
|
1514
1286
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -1523,9 +1295,9 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
1523
1295
|
return localVarFp.listDocuments(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1524
1296
|
},
|
|
1525
1297
|
/**
|
|
1526
|
-
* List all the invoices of a customer
|
|
1298
|
+
* List all the invoices of a customer.
|
|
1527
1299
|
* @summary List invoices of a customer
|
|
1528
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1300
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1529
1301
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1530
1302
|
* @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.
|
|
1531
1303
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -1539,23 +1311,6 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
1539
1311
|
listInvoices: function (customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options) {
|
|
1540
1312
|
return localVarFp.listInvoices(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1541
1313
|
},
|
|
1542
|
-
/**
|
|
1543
|
-
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
1544
|
-
* @summary List policies of a customer
|
|
1545
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1546
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
1547
|
-
* @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.
|
|
1548
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
1549
|
-
* @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.
|
|
1550
|
-
* @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.
|
|
1551
|
-
* @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.
|
|
1552
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1553
|
-
* @param {*} [options] Override http request option.
|
|
1554
|
-
* @throws {RequiredError}
|
|
1555
|
-
*/
|
|
1556
|
-
listPolicies: function (customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options) {
|
|
1557
|
-
return localVarFp.listPolicies(customerCode, pageSize, pageToken, filter, search, order, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1558
|
-
},
|
|
1559
1314
|
/**
|
|
1560
1315
|
* Get new access token, new refresh token.
|
|
1561
1316
|
* @summary Refresh token by customer
|
|
@@ -1567,19 +1322,6 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
1567
1322
|
refreshToken: function (refreshTokenDto, cookie, options) {
|
|
1568
1323
|
return localVarFp.refreshToken(refreshTokenDto, cookie, options).then(function (request) { return request(axios, basePath); });
|
|
1569
1324
|
},
|
|
1570
|
-
/**
|
|
1571
|
-
* Request to update an existing policy by customer
|
|
1572
|
-
* @summary Request policy update by customer
|
|
1573
|
-
* @param {string} policyCode The policy code
|
|
1574
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1575
|
-
* @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
|
|
1576
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1577
|
-
* @param {*} [options] Override http request option.
|
|
1578
|
-
* @throws {RequiredError}
|
|
1579
|
-
*/
|
|
1580
|
-
requestPolicyUpdate: function (policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options) {
|
|
1581
|
-
return localVarFp.requestPolicyUpdate(policyCode, customerCode, requestPolicyUpdateRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1582
|
-
},
|
|
1583
1325
|
/**
|
|
1584
1326
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
1585
1327
|
* @summary Change password by customer
|
|
@@ -1601,22 +1343,9 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
1601
1343
|
return localVarFp.respondToAuthChallenge(respondToAuthChallengeRequestDto, options).then(function (request) { return request(axios, basePath); });
|
|
1602
1344
|
},
|
|
1603
1345
|
/**
|
|
1604
|
-
*
|
|
1605
|
-
* @summary Terminate a policy by customer
|
|
1606
|
-
* @param {string} policyCode The policy code
|
|
1607
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1608
|
-
* @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
|
|
1609
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1610
|
-
* @param {*} [options] Override http request option.
|
|
1611
|
-
* @throws {RequiredError}
|
|
1612
|
-
*/
|
|
1613
|
-
terminateCustomerPolicy: function (policyCode, customerCode, terminateCustomerPolicyRequestDto, authorization, options) {
|
|
1614
|
-
return localVarFp.terminateCustomerPolicy(policyCode, customerCode, terminateCustomerPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1615
|
-
},
|
|
1616
|
-
/**
|
|
1617
|
-
* Update customer details like phone, email, names, addresses etc
|
|
1346
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
1618
1347
|
* @summary Update customer details
|
|
1619
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1348
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
1620
1349
|
* @param {UpdateCustomerRequestDto} updateCustomerRequestDto
|
|
1621
1350
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1622
1351
|
* @param {*} [options] Override http request option.
|
|
@@ -1645,18 +1374,6 @@ var CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
1645
1374
|
verifyResetPasswordToken: function (resetToken, options) {
|
|
1646
1375
|
return localVarFp.verifyResetPasswordToken(resetToken, options).then(function (request) { return request(axios, basePath); });
|
|
1647
1376
|
},
|
|
1648
|
-
/**
|
|
1649
|
-
* Withdraw policy by customer
|
|
1650
|
-
* @summary Withdraw policy by customer
|
|
1651
|
-
* @param {string} policyCode The policy code
|
|
1652
|
-
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer
|
|
1653
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1654
|
-
* @param {*} [options] Override http request option.
|
|
1655
|
-
* @throws {RequiredError}
|
|
1656
|
-
*/
|
|
1657
|
-
withdrawCustomerPolicy: function (policyCode, customerCode, authorization, options) {
|
|
1658
|
-
return localVarFp.withdrawCustomerPolicy(policyCode, customerCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1659
|
-
},
|
|
1660
1377
|
};
|
|
1661
1378
|
};
|
|
1662
1379
|
exports.CustomersApiFactory = CustomersApiFactory;
|
|
@@ -1671,6 +1388,18 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
1671
1388
|
function CustomersApi() {
|
|
1672
1389
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1673
1390
|
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Request to complete a payment change by customer.
|
|
1393
|
+
* @summary Request payment setup complete by customer
|
|
1394
|
+
* @param {CustomersApiCompletePaymentSetupRequest} requestParameters Request parameters.
|
|
1395
|
+
* @param {*} [options] Override http request option.
|
|
1396
|
+
* @throws {RequiredError}
|
|
1397
|
+
* @memberof CustomersApi
|
|
1398
|
+
*/
|
|
1399
|
+
CustomersApi.prototype.completePaymentSetup = function (requestParameters, options) {
|
|
1400
|
+
var _this = this;
|
|
1401
|
+
return (0, exports.CustomersApiFp)(this.configuration).completePaymentSetup(requestParameters.customerCode, requestParameters.completePaymentSetupPspRequest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1402
|
+
};
|
|
1674
1403
|
/**
|
|
1675
1404
|
* 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.
|
|
1676
1405
|
* @summary Register a customer after invite
|
|
@@ -1696,7 +1425,7 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
1696
1425
|
return (0, exports.CustomersApiFp)(this.configuration).forgotPassword(requestParameters.forgotPasswordRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1697
1426
|
};
|
|
1698
1427
|
/**
|
|
1699
|
-
* Get customer details
|
|
1428
|
+
* Get customer details.
|
|
1700
1429
|
* @summary Get customer details
|
|
1701
1430
|
* @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
|
|
1702
1431
|
* @param {*} [options] Override http request option.
|
|
@@ -1708,7 +1437,7 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
1708
1437
|
return (0, exports.CustomersApiFp)(this.configuration).getCustomer(requestParameters.customerCode, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1709
1438
|
};
|
|
1710
1439
|
/**
|
|
1711
|
-
* Get a presigned download url for document
|
|
1440
|
+
* Get a presigned download url for document.
|
|
1712
1441
|
* @summary Get a presigned download url for document
|
|
1713
1442
|
* @param {CustomersApiGetCustomerDocumentDownloadUrlRequest} requestParameters Request parameters.
|
|
1714
1443
|
* @param {*} [options] Override http request option.
|
|
@@ -1720,28 +1449,28 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
1720
1449
|
return (0, exports.CustomersApiFp)(this.configuration).getCustomerDocumentDownloadUrl(requestParameters.documentCode, requestParameters.customerCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1721
1450
|
};
|
|
1722
1451
|
/**
|
|
1723
|
-
*
|
|
1724
|
-
* @summary
|
|
1725
|
-
* @param {
|
|
1452
|
+
* Start auth process to get new access token, refresh token after successful login.
|
|
1453
|
+
* @summary Initiate auth by customer
|
|
1454
|
+
* @param {CustomersApiInitiateAuthRequest} requestParameters Request parameters.
|
|
1726
1455
|
* @param {*} [options] Override http request option.
|
|
1727
1456
|
* @throws {RequiredError}
|
|
1728
1457
|
* @memberof CustomersApi
|
|
1729
1458
|
*/
|
|
1730
|
-
CustomersApi.prototype.
|
|
1459
|
+
CustomersApi.prototype.initiateAuth = function (requestParameters, options) {
|
|
1731
1460
|
var _this = this;
|
|
1732
|
-
return (0, exports.CustomersApiFp)(this.configuration).
|
|
1461
|
+
return (0, exports.CustomersApiFp)(this.configuration).initiateAuth(requestParameters.initiateAuthRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1733
1462
|
};
|
|
1734
1463
|
/**
|
|
1735
|
-
*
|
|
1736
|
-
* @summary
|
|
1737
|
-
* @param {
|
|
1464
|
+
* Request to initiate a payment change by customer.
|
|
1465
|
+
* @summary Request payment setup initiation by customer
|
|
1466
|
+
* @param {CustomersApiInitiatePaymentSetupRequest} requestParameters Request parameters.
|
|
1738
1467
|
* @param {*} [options] Override http request option.
|
|
1739
1468
|
* @throws {RequiredError}
|
|
1740
1469
|
* @memberof CustomersApi
|
|
1741
1470
|
*/
|
|
1742
|
-
CustomersApi.prototype.
|
|
1471
|
+
CustomersApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
|
|
1743
1472
|
var _this = this;
|
|
1744
|
-
return (0, exports.CustomersApiFp)(this.configuration).
|
|
1473
|
+
return (0, exports.CustomersApiFp)(this.configuration).initiatePaymentSetup(requestParameters.customerCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1745
1474
|
};
|
|
1746
1475
|
/**
|
|
1747
1476
|
* 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.
|
|
@@ -1768,7 +1497,7 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
1768
1497
|
return (0, exports.CustomersApiFp)(this.configuration).inviteByTenant(requestParameters.inviteByCustomerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1769
1498
|
};
|
|
1770
1499
|
/**
|
|
1771
|
-
* List all the documents of a customer
|
|
1500
|
+
* List all the documents of a customer.
|
|
1772
1501
|
* @summary List documents of a customer
|
|
1773
1502
|
* @param {CustomersApiListDocumentsRequest} requestParameters Request parameters.
|
|
1774
1503
|
* @param {*} [options] Override http request option.
|
|
@@ -1780,7 +1509,7 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
1780
1509
|
return (0, exports.CustomersApiFp)(this.configuration).listDocuments(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1781
1510
|
};
|
|
1782
1511
|
/**
|
|
1783
|
-
* List all the invoices of a customer
|
|
1512
|
+
* List all the invoices of a customer.
|
|
1784
1513
|
* @summary List invoices of a customer
|
|
1785
1514
|
* @param {CustomersApiListInvoicesRequest} requestParameters Request parameters.
|
|
1786
1515
|
* @param {*} [options] Override http request option.
|
|
@@ -1791,18 +1520,6 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
1791
1520
|
var _this = this;
|
|
1792
1521
|
return (0, exports.CustomersApiFp)(this.configuration).listInvoices(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1793
1522
|
};
|
|
1794
|
-
/**
|
|
1795
|
-
* List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
|
|
1796
|
-
* @summary List policies of a customer
|
|
1797
|
-
* @param {CustomersApiListPoliciesRequest} requestParameters Request parameters.
|
|
1798
|
-
* @param {*} [options] Override http request option.
|
|
1799
|
-
* @throws {RequiredError}
|
|
1800
|
-
* @memberof CustomersApi
|
|
1801
|
-
*/
|
|
1802
|
-
CustomersApi.prototype.listPolicies = function (requestParameters, options) {
|
|
1803
|
-
var _this = this;
|
|
1804
|
-
return (0, exports.CustomersApiFp)(this.configuration).listPolicies(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1805
|
-
};
|
|
1806
1523
|
/**
|
|
1807
1524
|
* Get new access token, new refresh token.
|
|
1808
1525
|
* @summary Refresh token by customer
|
|
@@ -1815,18 +1532,6 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
1815
1532
|
var _this = this;
|
|
1816
1533
|
return (0, exports.CustomersApiFp)(this.configuration).refreshToken(requestParameters.refreshTokenDto, requestParameters.cookie, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1817
1534
|
};
|
|
1818
|
-
/**
|
|
1819
|
-
* Request to update an existing policy by customer
|
|
1820
|
-
* @summary Request policy update by customer
|
|
1821
|
-
* @param {CustomersApiRequestPolicyUpdateRequest} requestParameters Request parameters.
|
|
1822
|
-
* @param {*} [options] Override http request option.
|
|
1823
|
-
* @throws {RequiredError}
|
|
1824
|
-
* @memberof CustomersApi
|
|
1825
|
-
*/
|
|
1826
|
-
CustomersApi.prototype.requestPolicyUpdate = function (requestParameters, options) {
|
|
1827
|
-
var _this = this;
|
|
1828
|
-
return (0, exports.CustomersApiFp)(this.configuration).requestPolicyUpdate(requestParameters.policyCode, requestParameters.customerCode, requestParameters.requestPolicyUpdateRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1829
|
-
};
|
|
1830
1535
|
/**
|
|
1831
1536
|
* Change customer\'s password using the token provided by the reset password endpoint.
|
|
1832
1537
|
* @summary Change password by customer
|
|
@@ -1852,19 +1557,7 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
1852
1557
|
return (0, exports.CustomersApiFp)(this.configuration).respondToAuthChallenge(requestParameters.respondToAuthChallengeRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1853
1558
|
};
|
|
1854
1559
|
/**
|
|
1855
|
-
*
|
|
1856
|
-
* @summary Terminate a policy by customer
|
|
1857
|
-
* @param {CustomersApiTerminateCustomerPolicyRequest} requestParameters Request parameters.
|
|
1858
|
-
* @param {*} [options] Override http request option.
|
|
1859
|
-
* @throws {RequiredError}
|
|
1860
|
-
* @memberof CustomersApi
|
|
1861
|
-
*/
|
|
1862
|
-
CustomersApi.prototype.terminateCustomerPolicy = function (requestParameters, options) {
|
|
1863
|
-
var _this = this;
|
|
1864
|
-
return (0, exports.CustomersApiFp)(this.configuration).terminateCustomerPolicy(requestParameters.policyCode, requestParameters.customerCode, requestParameters.terminateCustomerPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1865
|
-
};
|
|
1866
|
-
/**
|
|
1867
|
-
* Update customer details like phone, email, names, addresses etc
|
|
1560
|
+
* Update customer details like phone, email, names, addresses etc.
|
|
1868
1561
|
* @summary Update customer details
|
|
1869
1562
|
* @param {CustomersApiUpdateCustomerRequest} requestParameters Request parameters.
|
|
1870
1563
|
* @param {*} [options] Override http request option.
|
|
@@ -1899,18 +1592,6 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
1899
1592
|
var _this = this;
|
|
1900
1593
|
return (0, exports.CustomersApiFp)(this.configuration).verifyResetPasswordToken(requestParameters.resetToken, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1901
1594
|
};
|
|
1902
|
-
/**
|
|
1903
|
-
* Withdraw policy by customer
|
|
1904
|
-
* @summary Withdraw policy by customer
|
|
1905
|
-
* @param {CustomersApiWithdrawCustomerPolicyRequest} requestParameters Request parameters.
|
|
1906
|
-
* @param {*} [options] Override http request option.
|
|
1907
|
-
* @throws {RequiredError}
|
|
1908
|
-
* @memberof CustomersApi
|
|
1909
|
-
*/
|
|
1910
|
-
CustomersApi.prototype.withdrawCustomerPolicy = function (requestParameters, options) {
|
|
1911
|
-
var _this = this;
|
|
1912
|
-
return (0, exports.CustomersApiFp)(this.configuration).withdrawCustomerPolicy(requestParameters.policyCode, requestParameters.customerCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1913
|
-
};
|
|
1914
1595
|
return CustomersApi;
|
|
1915
1596
|
}(base_1.BaseAPI));
|
|
1916
1597
|
exports.CustomersApi = CustomersApi;
|