@emilgroup/public-api-sdk 1.40.1-beta.23 → 1.40.1-beta.25
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 +0 -6
- package/README.md +2 -2
- package/api.ts +0 -2
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/models/index.ts +0 -5
- package/package.json +1 -1
- package/api/withdrawal-requests-api.ts +0 -176
- package/dist/api/withdrawal-requests-api.d.ts +0 -97
- package/dist/api/withdrawal-requests-api.js +0 -231
- package/dist/models/inline-response400.d.ts +0 -36
- package/dist/models/inline-response400.js +0 -15
- package/dist/models/inline-response401.d.ts +0 -30
- package/dist/models/inline-response401.js +0 -15
- package/dist/models/submit-withdrawal-request-dto.d.ts +0 -30
- package/dist/models/submit-withdrawal-request-dto.js +0 -15
- package/dist/models/submit-withdrawal-request-response-class.d.ts +0 -24
- package/dist/models/submit-withdrawal-request-response-class.js +0 -15
- package/dist/models/withdrawal-request-error-response-class.d.ts +0 -43
- package/dist/models/withdrawal-request-error-response-class.js +0 -22
- package/models/inline-response400.ts +0 -42
- package/models/inline-response401.ts +0 -36
- package/models/submit-withdrawal-request-dto.ts +0 -36
- package/models/submit-withdrawal-request-response-class.ts +0 -30
- package/models/withdrawal-request-error-response-class.ts +0 -52
package/.openapi-generator/FILES
CHANGED
|
@@ -15,7 +15,6 @@ api/partners-api.ts
|
|
|
15
15
|
api/payments-setup-api.ts
|
|
16
16
|
api/product-versions-api.ts
|
|
17
17
|
api/products-api.ts
|
|
18
|
-
api/withdrawal-requests-api.ts
|
|
19
18
|
base.ts
|
|
20
19
|
common.ts
|
|
21
20
|
configuration.ts
|
|
@@ -90,8 +89,6 @@ models/initiate-payment-setup-response-class.ts
|
|
|
90
89
|
models/initiate-stripe-payment-setup-request-dto.ts
|
|
91
90
|
models/initiate-stripe-payment-setup-response-class.ts
|
|
92
91
|
models/inline-response200.ts
|
|
93
|
-
models/inline-response400.ts
|
|
94
|
-
models/inline-response401.ts
|
|
95
92
|
models/inline-response503.ts
|
|
96
93
|
models/insured-object-class.ts
|
|
97
94
|
models/insured-object-type-class.ts
|
|
@@ -134,8 +131,6 @@ models/sepa-direct-dto.ts
|
|
|
134
131
|
models/sepa-dto.ts
|
|
135
132
|
models/sepa-response-class.ts
|
|
136
133
|
models/structured-address-class.ts
|
|
137
|
-
models/submit-withdrawal-request-dto.ts
|
|
138
|
-
models/submit-withdrawal-request-response-class.ts
|
|
139
134
|
models/suggested-address-details-class.ts
|
|
140
135
|
models/tariff-category-summary-class.ts
|
|
141
136
|
models/tariff-coverage-term-class.ts
|
|
@@ -149,6 +144,5 @@ models/validate-iban-request-dto.ts
|
|
|
149
144
|
models/validate-iban-response-class.ts
|
|
150
145
|
models/validate-partner-request-dto.ts
|
|
151
146
|
models/validate-partner-response-class.ts
|
|
152
|
-
models/withdrawal-request-error-response-class.ts
|
|
153
147
|
package.json
|
|
154
148
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/public-api-sdk@1.40.1-beta.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.40.1-beta.25 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.40.1-beta.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.40.1-beta.25
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
package/api.ts
CHANGED
|
@@ -32,7 +32,6 @@ import { PartnersApi } from './api';
|
|
|
32
32
|
import { PaymentsSetupApi } from './api';
|
|
33
33
|
import { ProductVersionsApi } from './api';
|
|
34
34
|
import { ProductsApi } from './api';
|
|
35
|
-
import { WithdrawalRequestsApi } from './api';
|
|
36
35
|
|
|
37
36
|
|
|
38
37
|
export * from './api/address-completions-validations-api';
|
|
@@ -47,5 +46,4 @@ export * from './api/partners-api';
|
|
|
47
46
|
export * from './api/payments-setup-api';
|
|
48
47
|
export * from './api/product-versions-api';
|
|
49
48
|
export * from './api/products-api';
|
|
50
|
-
export * from './api/withdrawal-requests-api';
|
|
51
49
|
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -39,4 +39,3 @@ __exportStar(require("./api/partners-api"), exports);
|
|
|
39
39
|
__exportStar(require("./api/payments-setup-api"), exports);
|
|
40
40
|
__exportStar(require("./api/product-versions-api"), exports);
|
|
41
41
|
__exportStar(require("./api/products-api"), exports);
|
|
42
|
-
__exportStar(require("./api/withdrawal-requests-api"), exports);
|
package/dist/models/index.d.ts
CHANGED
|
@@ -66,8 +66,6 @@ export * from './initiate-payment-setup-response-class';
|
|
|
66
66
|
export * from './initiate-stripe-payment-setup-request-dto';
|
|
67
67
|
export * from './initiate-stripe-payment-setup-response-class';
|
|
68
68
|
export * from './inline-response200';
|
|
69
|
-
export * from './inline-response400';
|
|
70
|
-
export * from './inline-response401';
|
|
71
69
|
export * from './inline-response503';
|
|
72
70
|
export * from './insured-object-class';
|
|
73
71
|
export * from './insured-object-type-class';
|
|
@@ -110,8 +108,6 @@ export * from './sepa-direct-dto';
|
|
|
110
108
|
export * from './sepa-dto';
|
|
111
109
|
export * from './sepa-response-class';
|
|
112
110
|
export * from './structured-address-class';
|
|
113
|
-
export * from './submit-withdrawal-request-dto';
|
|
114
|
-
export * from './submit-withdrawal-request-response-class';
|
|
115
111
|
export * from './suggested-address-details-class';
|
|
116
112
|
export * from './tariff-category-summary-class';
|
|
117
113
|
export * from './tariff-coverage-term-class';
|
|
@@ -125,4 +121,3 @@ export * from './validate-iban-request-dto';
|
|
|
125
121
|
export * from './validate-iban-response-class';
|
|
126
122
|
export * from './validate-partner-request-dto';
|
|
127
123
|
export * from './validate-partner-response-class';
|
|
128
|
-
export * from './withdrawal-request-error-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -82,8 +82,6 @@ __exportStar(require("./initiate-payment-setup-response-class"), exports);
|
|
|
82
82
|
__exportStar(require("./initiate-stripe-payment-setup-request-dto"), exports);
|
|
83
83
|
__exportStar(require("./initiate-stripe-payment-setup-response-class"), exports);
|
|
84
84
|
__exportStar(require("./inline-response200"), exports);
|
|
85
|
-
__exportStar(require("./inline-response400"), exports);
|
|
86
|
-
__exportStar(require("./inline-response401"), exports);
|
|
87
85
|
__exportStar(require("./inline-response503"), exports);
|
|
88
86
|
__exportStar(require("./insured-object-class"), exports);
|
|
89
87
|
__exportStar(require("./insured-object-type-class"), exports);
|
|
@@ -126,8 +124,6 @@ __exportStar(require("./sepa-direct-dto"), exports);
|
|
|
126
124
|
__exportStar(require("./sepa-dto"), exports);
|
|
127
125
|
__exportStar(require("./sepa-response-class"), exports);
|
|
128
126
|
__exportStar(require("./structured-address-class"), exports);
|
|
129
|
-
__exportStar(require("./submit-withdrawal-request-dto"), exports);
|
|
130
|
-
__exportStar(require("./submit-withdrawal-request-response-class"), exports);
|
|
131
127
|
__exportStar(require("./suggested-address-details-class"), exports);
|
|
132
128
|
__exportStar(require("./tariff-category-summary-class"), exports);
|
|
133
129
|
__exportStar(require("./tariff-coverage-term-class"), exports);
|
|
@@ -141,4 +137,3 @@ __exportStar(require("./validate-iban-request-dto"), exports);
|
|
|
141
137
|
__exportStar(require("./validate-iban-response-class"), exports);
|
|
142
138
|
__exportStar(require("./validate-partner-request-dto"), exports);
|
|
143
139
|
__exportStar(require("./validate-partner-response-class"), exports);
|
|
144
|
-
__exportStar(require("./withdrawal-request-error-response-class"), exports);
|
package/models/index.ts
CHANGED
|
@@ -66,8 +66,6 @@ export * from './initiate-payment-setup-response-class';
|
|
|
66
66
|
export * from './initiate-stripe-payment-setup-request-dto';
|
|
67
67
|
export * from './initiate-stripe-payment-setup-response-class';
|
|
68
68
|
export * from './inline-response200';
|
|
69
|
-
export * from './inline-response400';
|
|
70
|
-
export * from './inline-response401';
|
|
71
69
|
export * from './inline-response503';
|
|
72
70
|
export * from './insured-object-class';
|
|
73
71
|
export * from './insured-object-type-class';
|
|
@@ -110,8 +108,6 @@ export * from './sepa-direct-dto';
|
|
|
110
108
|
export * from './sepa-dto';
|
|
111
109
|
export * from './sepa-response-class';
|
|
112
110
|
export * from './structured-address-class';
|
|
113
|
-
export * from './submit-withdrawal-request-dto';
|
|
114
|
-
export * from './submit-withdrawal-request-response-class';
|
|
115
111
|
export * from './suggested-address-details-class';
|
|
116
112
|
export * from './tariff-category-summary-class';
|
|
117
113
|
export * from './tariff-coverage-term-class';
|
|
@@ -125,4 +121,3 @@ export * from './validate-iban-request-dto';
|
|
|
125
121
|
export * from './validate-iban-response-class';
|
|
126
122
|
export * from './validate-partner-request-dto';
|
|
127
123
|
export * from './validate-partner-response-class';
|
|
128
|
-
export * from './withdrawal-request-error-response-class';
|
package/package.json
CHANGED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Emil PublicAPI
|
|
5
|
-
* The Emil Public API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
-
import { Configuration } from '../configuration';
|
|
18
|
-
// Some imports not used depending on template conditions
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { InlineResponse400 } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { InlineResponse401 } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { SubmitWithdrawalRequestDto } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { SubmitWithdrawalRequestResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { WithdrawalRequestErrorResponseClass } from '../models';
|
|
33
|
-
/**
|
|
34
|
-
* WithdrawalRequestsApi - axios parameter creator
|
|
35
|
-
* @export
|
|
36
|
-
*/
|
|
37
|
-
export const WithdrawalRequestsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
|
-
return {
|
|
39
|
-
/**
|
|
40
|
-
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
41
|
-
* @summary Submit a withdrawal request
|
|
42
|
-
* @param {SubmitWithdrawalRequestDto} submitWithdrawalRequestDto
|
|
43
|
-
* @param {string} [authorization] Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
44
|
-
* @param {*} [options] Override http request option.
|
|
45
|
-
* @throws {RequiredError}
|
|
46
|
-
*/
|
|
47
|
-
submitWithdrawalRequest: async (submitWithdrawalRequestDto: SubmitWithdrawalRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
|
-
// verify required parameter 'submitWithdrawalRequestDto' is not null or undefined
|
|
49
|
-
assertParamExists('submitWithdrawalRequest', 'submitWithdrawalRequestDto', submitWithdrawalRequestDto)
|
|
50
|
-
const localVarPath = `/publicapi/v1/withdrawal-requests`;
|
|
51
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
53
|
-
let baseOptions;
|
|
54
|
-
let baseAccessToken;
|
|
55
|
-
if (configuration) {
|
|
56
|
-
baseOptions = configuration.baseOptions;
|
|
57
|
-
baseAccessToken = configuration.accessToken;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
61
|
-
const localVarHeaderParameter = {} as any;
|
|
62
|
-
const localVarQueryParameter = {} as any;
|
|
63
|
-
|
|
64
|
-
// authentication bearer required
|
|
65
|
-
// http bearer authentication required
|
|
66
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
67
|
-
|
|
68
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
69
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
70
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
71
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
72
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
73
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
74
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
80
|
-
|
|
81
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
84
|
-
localVarRequestOptions.data = serializeDataIfNeeded(submitWithdrawalRequestDto, localVarRequestOptions, configuration)
|
|
85
|
-
|
|
86
|
-
return {
|
|
87
|
-
url: toPathString(localVarUrlObj),
|
|
88
|
-
options: localVarRequestOptions,
|
|
89
|
-
};
|
|
90
|
-
},
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* WithdrawalRequestsApi - functional programming interface
|
|
96
|
-
* @export
|
|
97
|
-
*/
|
|
98
|
-
export const WithdrawalRequestsApiFp = function(configuration?: Configuration) {
|
|
99
|
-
const localVarAxiosParamCreator = WithdrawalRequestsApiAxiosParamCreator(configuration)
|
|
100
|
-
return {
|
|
101
|
-
/**
|
|
102
|
-
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
103
|
-
* @summary Submit a withdrawal request
|
|
104
|
-
* @param {SubmitWithdrawalRequestDto} submitWithdrawalRequestDto
|
|
105
|
-
* @param {string} [authorization] Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
106
|
-
* @param {*} [options] Override http request option.
|
|
107
|
-
* @throws {RequiredError}
|
|
108
|
-
*/
|
|
109
|
-
async submitWithdrawalRequest(submitWithdrawalRequestDto: SubmitWithdrawalRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitWithdrawalRequestResponseClass>> {
|
|
110
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.submitWithdrawalRequest(submitWithdrawalRequestDto, authorization, options);
|
|
111
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
112
|
-
},
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* WithdrawalRequestsApi - factory interface
|
|
118
|
-
* @export
|
|
119
|
-
*/
|
|
120
|
-
export const WithdrawalRequestsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
121
|
-
const localVarFp = WithdrawalRequestsApiFp(configuration)
|
|
122
|
-
return {
|
|
123
|
-
/**
|
|
124
|
-
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
125
|
-
* @summary Submit a withdrawal request
|
|
126
|
-
* @param {SubmitWithdrawalRequestDto} submitWithdrawalRequestDto
|
|
127
|
-
* @param {string} [authorization] Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
128
|
-
* @param {*} [options] Override http request option.
|
|
129
|
-
* @throws {RequiredError}
|
|
130
|
-
*/
|
|
131
|
-
submitWithdrawalRequest(submitWithdrawalRequestDto: SubmitWithdrawalRequestDto, authorization?: string, options?: any): AxiosPromise<SubmitWithdrawalRequestResponseClass> {
|
|
132
|
-
return localVarFp.submitWithdrawalRequest(submitWithdrawalRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
133
|
-
},
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Request parameters for submitWithdrawalRequest operation in WithdrawalRequestsApi.
|
|
139
|
-
* @export
|
|
140
|
-
* @interface WithdrawalRequestsApiSubmitWithdrawalRequestRequest
|
|
141
|
-
*/
|
|
142
|
-
export interface WithdrawalRequestsApiSubmitWithdrawalRequestRequest {
|
|
143
|
-
/**
|
|
144
|
-
*
|
|
145
|
-
* @type {SubmitWithdrawalRequestDto}
|
|
146
|
-
* @memberof WithdrawalRequestsApiSubmitWithdrawalRequest
|
|
147
|
-
*/
|
|
148
|
-
readonly submitWithdrawalRequestDto: SubmitWithdrawalRequestDto
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
152
|
-
* @type {string}
|
|
153
|
-
* @memberof WithdrawalRequestsApiSubmitWithdrawalRequest
|
|
154
|
-
*/
|
|
155
|
-
readonly authorization?: string
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* WithdrawalRequestsApi - object-oriented interface
|
|
160
|
-
* @export
|
|
161
|
-
* @class WithdrawalRequestsApi
|
|
162
|
-
* @extends {BaseAPI}
|
|
163
|
-
*/
|
|
164
|
-
export class WithdrawalRequestsApi extends BaseAPI {
|
|
165
|
-
/**
|
|
166
|
-
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
167
|
-
* @summary Submit a withdrawal request
|
|
168
|
-
* @param {WithdrawalRequestsApiSubmitWithdrawalRequestRequest} requestParameters Request parameters.
|
|
169
|
-
* @param {*} [options] Override http request option.
|
|
170
|
-
* @throws {RequiredError}
|
|
171
|
-
* @memberof WithdrawalRequestsApi
|
|
172
|
-
*/
|
|
173
|
-
public submitWithdrawalRequest(requestParameters: WithdrawalRequestsApiSubmitWithdrawalRequestRequest, options?: AxiosRequestConfig) {
|
|
174
|
-
return WithdrawalRequestsApiFp(this.configuration).submitWithdrawalRequest(requestParameters.submitWithdrawalRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
175
|
-
}
|
|
176
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Emil PublicAPI
|
|
3
|
-
* The Emil Public API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
-
import { Configuration } from '../configuration';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { SubmitWithdrawalRequestDto } from '../models';
|
|
16
|
-
import { SubmitWithdrawalRequestResponseClass } from '../models';
|
|
17
|
-
/**
|
|
18
|
-
* WithdrawalRequestsApi - axios parameter creator
|
|
19
|
-
* @export
|
|
20
|
-
*/
|
|
21
|
-
export declare const WithdrawalRequestsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
-
/**
|
|
23
|
-
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
24
|
-
* @summary Submit a withdrawal request
|
|
25
|
-
* @param {SubmitWithdrawalRequestDto} submitWithdrawalRequestDto
|
|
26
|
-
* @param {string} [authorization] Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
27
|
-
* @param {*} [options] Override http request option.
|
|
28
|
-
* @throws {RequiredError}
|
|
29
|
-
*/
|
|
30
|
-
submitWithdrawalRequest: (submitWithdrawalRequestDto: SubmitWithdrawalRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* WithdrawalRequestsApi - functional programming interface
|
|
34
|
-
* @export
|
|
35
|
-
*/
|
|
36
|
-
export declare const WithdrawalRequestsApiFp: (configuration?: Configuration) => {
|
|
37
|
-
/**
|
|
38
|
-
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
39
|
-
* @summary Submit a withdrawal request
|
|
40
|
-
* @param {SubmitWithdrawalRequestDto} submitWithdrawalRequestDto
|
|
41
|
-
* @param {string} [authorization] Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
42
|
-
* @param {*} [options] Override http request option.
|
|
43
|
-
* @throws {RequiredError}
|
|
44
|
-
*/
|
|
45
|
-
submitWithdrawalRequest(submitWithdrawalRequestDto: SubmitWithdrawalRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitWithdrawalRequestResponseClass>>;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* WithdrawalRequestsApi - factory interface
|
|
49
|
-
* @export
|
|
50
|
-
*/
|
|
51
|
-
export declare const WithdrawalRequestsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
52
|
-
/**
|
|
53
|
-
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
54
|
-
* @summary Submit a withdrawal request
|
|
55
|
-
* @param {SubmitWithdrawalRequestDto} submitWithdrawalRequestDto
|
|
56
|
-
* @param {string} [authorization] Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
57
|
-
* @param {*} [options] Override http request option.
|
|
58
|
-
* @throws {RequiredError}
|
|
59
|
-
*/
|
|
60
|
-
submitWithdrawalRequest(submitWithdrawalRequestDto: SubmitWithdrawalRequestDto, authorization?: string, options?: any): AxiosPromise<SubmitWithdrawalRequestResponseClass>;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Request parameters for submitWithdrawalRequest operation in WithdrawalRequestsApi.
|
|
64
|
-
* @export
|
|
65
|
-
* @interface WithdrawalRequestsApiSubmitWithdrawalRequestRequest
|
|
66
|
-
*/
|
|
67
|
-
export interface WithdrawalRequestsApiSubmitWithdrawalRequestRequest {
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {SubmitWithdrawalRequestDto}
|
|
71
|
-
* @memberof WithdrawalRequestsApiSubmitWithdrawalRequest
|
|
72
|
-
*/
|
|
73
|
-
readonly submitWithdrawalRequestDto: SubmitWithdrawalRequestDto;
|
|
74
|
-
/**
|
|
75
|
-
* Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof WithdrawalRequestsApiSubmitWithdrawalRequest
|
|
78
|
-
*/
|
|
79
|
-
readonly authorization?: string;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* WithdrawalRequestsApi - object-oriented interface
|
|
83
|
-
* @export
|
|
84
|
-
* @class WithdrawalRequestsApi
|
|
85
|
-
* @extends {BaseAPI}
|
|
86
|
-
*/
|
|
87
|
-
export declare class WithdrawalRequestsApi extends BaseAPI {
|
|
88
|
-
/**
|
|
89
|
-
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
90
|
-
* @summary Submit a withdrawal request
|
|
91
|
-
* @param {WithdrawalRequestsApiSubmitWithdrawalRequestRequest} requestParameters Request parameters.
|
|
92
|
-
* @param {*} [options] Override http request option.
|
|
93
|
-
* @throws {RequiredError}
|
|
94
|
-
* @memberof WithdrawalRequestsApi
|
|
95
|
-
*/
|
|
96
|
-
submitWithdrawalRequest(requestParameters: WithdrawalRequestsApiSubmitWithdrawalRequestRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitWithdrawalRequestResponseClass, any, {}, any>>;
|
|
97
|
-
}
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Emil PublicAPI
|
|
6
|
-
* The Emil Public API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __assign = (this && this.__assign) || function () {
|
|
31
|
-
__assign = Object.assign || function(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
return __assign.apply(this, arguments);
|
|
40
|
-
};
|
|
41
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
-
function step(op) {
|
|
55
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
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
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
-
switch (op[0]) {
|
|
60
|
-
case 0: case 1: t = op; break;
|
|
61
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
-
default:
|
|
65
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
-
if (t[2]) _.ops.pop();
|
|
70
|
-
_.trys.pop(); continue;
|
|
71
|
-
}
|
|
72
|
-
op = body.call(thisArg, _);
|
|
73
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
-
};
|
|
80
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.WithdrawalRequestsApi = exports.WithdrawalRequestsApiFactory = exports.WithdrawalRequestsApiFp = exports.WithdrawalRequestsApiAxiosParamCreator = void 0;
|
|
82
|
-
var axios_1 = __importDefault(require("axios"));
|
|
83
|
-
// Some imports not used depending on template conditions
|
|
84
|
-
// @ts-ignore
|
|
85
|
-
var common_1 = require("../common");
|
|
86
|
-
// @ts-ignore
|
|
87
|
-
var base_1 = require("../base");
|
|
88
|
-
/**
|
|
89
|
-
* WithdrawalRequestsApi - axios parameter creator
|
|
90
|
-
* @export
|
|
91
|
-
*/
|
|
92
|
-
var WithdrawalRequestsApiAxiosParamCreator = function (configuration) {
|
|
93
|
-
var _this = this;
|
|
94
|
-
return {
|
|
95
|
-
/**
|
|
96
|
-
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
97
|
-
* @summary Submit a withdrawal request
|
|
98
|
-
* @param {SubmitWithdrawalRequestDto} submitWithdrawalRequestDto
|
|
99
|
-
* @param {string} [authorization] Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
100
|
-
* @param {*} [options] Override http request option.
|
|
101
|
-
* @throws {RequiredError}
|
|
102
|
-
*/
|
|
103
|
-
submitWithdrawalRequest: function (submitWithdrawalRequestDto, authorization, options) {
|
|
104
|
-
if (options === void 0) { options = {}; }
|
|
105
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
-
var _a;
|
|
108
|
-
return __generator(this, function (_b) {
|
|
109
|
-
switch (_b.label) {
|
|
110
|
-
case 0:
|
|
111
|
-
// verify required parameter 'submitWithdrawalRequestDto' is not null or undefined
|
|
112
|
-
(0, common_1.assertParamExists)('submitWithdrawalRequest', 'submitWithdrawalRequestDto', submitWithdrawalRequestDto);
|
|
113
|
-
localVarPath = "/publicapi/v1/withdrawal-requests";
|
|
114
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
-
if (configuration) {
|
|
116
|
-
baseOptions = configuration.baseOptions;
|
|
117
|
-
baseAccessToken = configuration.accessToken;
|
|
118
|
-
}
|
|
119
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
120
|
-
localVarHeaderParameter = {};
|
|
121
|
-
localVarQueryParameter = {};
|
|
122
|
-
// authentication bearer required
|
|
123
|
-
// http bearer authentication required
|
|
124
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
-
];
|
|
128
|
-
case 1:
|
|
129
|
-
// authentication bearer required
|
|
130
|
-
// http bearer authentication required
|
|
131
|
-
_b.sent();
|
|
132
|
-
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
-
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
137
|
-
}
|
|
138
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
140
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
142
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(submitWithdrawalRequestDto, localVarRequestOptions, configuration);
|
|
143
|
-
return [2 /*return*/, {
|
|
144
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
145
|
-
options: localVarRequestOptions,
|
|
146
|
-
}];
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
},
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
exports.WithdrawalRequestsApiAxiosParamCreator = WithdrawalRequestsApiAxiosParamCreator;
|
|
154
|
-
/**
|
|
155
|
-
* WithdrawalRequestsApi - functional programming interface
|
|
156
|
-
* @export
|
|
157
|
-
*/
|
|
158
|
-
var WithdrawalRequestsApiFp = function (configuration) {
|
|
159
|
-
var localVarAxiosParamCreator = (0, exports.WithdrawalRequestsApiAxiosParamCreator)(configuration);
|
|
160
|
-
return {
|
|
161
|
-
/**
|
|
162
|
-
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
163
|
-
* @summary Submit a withdrawal request
|
|
164
|
-
* @param {SubmitWithdrawalRequestDto} submitWithdrawalRequestDto
|
|
165
|
-
* @param {string} [authorization] Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
166
|
-
* @param {*} [options] Override http request option.
|
|
167
|
-
* @throws {RequiredError}
|
|
168
|
-
*/
|
|
169
|
-
submitWithdrawalRequest: function (submitWithdrawalRequestDto, authorization, options) {
|
|
170
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
171
|
-
var localVarAxiosArgs;
|
|
172
|
-
return __generator(this, function (_a) {
|
|
173
|
-
switch (_a.label) {
|
|
174
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.submitWithdrawalRequest(submitWithdrawalRequestDto, authorization, options)];
|
|
175
|
-
case 1:
|
|
176
|
-
localVarAxiosArgs = _a.sent();
|
|
177
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
});
|
|
181
|
-
},
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
exports.WithdrawalRequestsApiFp = WithdrawalRequestsApiFp;
|
|
185
|
-
/**
|
|
186
|
-
* WithdrawalRequestsApi - factory interface
|
|
187
|
-
* @export
|
|
188
|
-
*/
|
|
189
|
-
var WithdrawalRequestsApiFactory = function (configuration, basePath, axios) {
|
|
190
|
-
var localVarFp = (0, exports.WithdrawalRequestsApiFp)(configuration);
|
|
191
|
-
return {
|
|
192
|
-
/**
|
|
193
|
-
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
194
|
-
* @summary Submit a withdrawal request
|
|
195
|
-
* @param {SubmitWithdrawalRequestDto} submitWithdrawalRequestDto
|
|
196
|
-
* @param {string} [authorization] Bearer token. Use the public key of the tenant, for example `Bearer pb_<key>`.
|
|
197
|
-
* @param {*} [options] Override http request option.
|
|
198
|
-
* @throws {RequiredError}
|
|
199
|
-
*/
|
|
200
|
-
submitWithdrawalRequest: function (submitWithdrawalRequestDto, authorization, options) {
|
|
201
|
-
return localVarFp.submitWithdrawalRequest(submitWithdrawalRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
202
|
-
},
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
exports.WithdrawalRequestsApiFactory = WithdrawalRequestsApiFactory;
|
|
206
|
-
/**
|
|
207
|
-
* WithdrawalRequestsApi - object-oriented interface
|
|
208
|
-
* @export
|
|
209
|
-
* @class WithdrawalRequestsApi
|
|
210
|
-
* @extends {BaseAPI}
|
|
211
|
-
*/
|
|
212
|
-
var WithdrawalRequestsApi = /** @class */ (function (_super) {
|
|
213
|
-
__extends(WithdrawalRequestsApi, _super);
|
|
214
|
-
function WithdrawalRequestsApi() {
|
|
215
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Records the request of a customer to withdraw from a policy. Use it from the withdrawal form of the tenant page, after the customer types the policy number and the policyholder name. The platform checks that the number and the name belong together. A failed check gives one uniform answer, so the response does not show whether a policy number exists. The request needs a policy that is not terminated or withdrawn and that has no open request. A rejected request does not block a new one. The call does not withdraw the policy. A case manager accepts or rejects the request later. The response holds only the time of receipt, in UTC. It holds no policy or customer data. To authenticate, send the public key of the tenant in the Authorization header. Related endpoint: [Create the lead](#/Leads/createLead) uses the same public key. Search terms: withdrawal, revocation, cancellation form, right of withdrawal.
|
|
219
|
-
* @summary Submit a withdrawal request
|
|
220
|
-
* @param {WithdrawalRequestsApiSubmitWithdrawalRequestRequest} requestParameters Request parameters.
|
|
221
|
-
* @param {*} [options] Override http request option.
|
|
222
|
-
* @throws {RequiredError}
|
|
223
|
-
* @memberof WithdrawalRequestsApi
|
|
224
|
-
*/
|
|
225
|
-
WithdrawalRequestsApi.prototype.submitWithdrawalRequest = function (requestParameters, options) {
|
|
226
|
-
var _this = this;
|
|
227
|
-
return (0, exports.WithdrawalRequestsApiFp)(this.configuration).submitWithdrawalRequest(requestParameters.submitWithdrawalRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
228
|
-
};
|
|
229
|
-
return WithdrawalRequestsApi;
|
|
230
|
-
}(base_1.BaseAPI));
|
|
231
|
-
exports.WithdrawalRequestsApi = WithdrawalRequestsApi;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Emil PublicAPI
|
|
3
|
-
* The Emil Public API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface InlineResponse400
|
|
16
|
-
*/
|
|
17
|
-
export interface InlineResponse400 {
|
|
18
|
-
/**
|
|
19
|
-
* HTTP status code of the response.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof InlineResponse400
|
|
22
|
-
*/
|
|
23
|
-
'statusCode': number;
|
|
24
|
-
/**
|
|
25
|
-
* One text for each field that failed the check.
|
|
26
|
-
* @type {Array<string>}
|
|
27
|
-
* @memberof InlineResponse400
|
|
28
|
-
*/
|
|
29
|
-
'message': Array<string>;
|
|
30
|
-
/**
|
|
31
|
-
* Name of the HTTP status.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof InlineResponse400
|
|
34
|
-
*/
|
|
35
|
-
'error': string;
|
|
36
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Emil PublicAPI
|
|
6
|
-
* The Emil Public API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Emil PublicAPI
|
|
3
|
-
* The Emil Public API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface InlineResponse401
|
|
16
|
-
*/
|
|
17
|
-
export interface InlineResponse401 {
|
|
18
|
-
/**
|
|
19
|
-
* HTTP status code of the response.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof InlineResponse401
|
|
22
|
-
*/
|
|
23
|
-
'statusCode': number;
|
|
24
|
-
/**
|
|
25
|
-
* Reason for the refusal.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof InlineResponse401
|
|
28
|
-
*/
|
|
29
|
-
'message': string;
|
|
30
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Emil PublicAPI
|
|
6
|
-
* The Emil Public API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Emil PublicAPI
|
|
3
|
-
* The Emil Public API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface SubmitWithdrawalRequestDto
|
|
16
|
-
*/
|
|
17
|
-
export interface SubmitWithdrawalRequestDto {
|
|
18
|
-
/**
|
|
19
|
-
* Policy number exactly as it appears on the policy documents of the customer. The route removes the spaces at the start and the end before it checks the value. The value must not be empty after that. The service compares it to the policies of the tenant that owns the public key.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof SubmitWithdrawalRequestDto
|
|
22
|
-
*/
|
|
23
|
-
'policyNumber': string;
|
|
24
|
-
/**
|
|
25
|
-
* Full name of the policyholder as the customer types it. For a company, this is the company name. The route removes the spaces at the start and the end before it checks the value. The value must not be empty after that. The service checks it against the policy and does not store or log it.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof SubmitWithdrawalRequestDto
|
|
28
|
-
*/
|
|
29
|
-
'policyholderName': string;
|
|
30
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Emil PublicAPI
|
|
6
|
-
* The Emil Public API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Emil PublicAPI
|
|
3
|
-
* The Emil Public API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface SubmitWithdrawalRequestResponseClass
|
|
16
|
-
*/
|
|
17
|
-
export interface SubmitWithdrawalRequestResponseClass {
|
|
18
|
-
/**
|
|
19
|
-
* Date and time at which the platform received the withdrawal request, in UTC, as an ISO 8601 string. Show this value to the customer as the proof of receipt.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof SubmitWithdrawalRequestResponseClass
|
|
22
|
-
*/
|
|
23
|
-
'receivedAt': string;
|
|
24
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Emil PublicAPI
|
|
6
|
-
* The Emil Public API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Emil PublicAPI
|
|
3
|
-
* The Emil Public API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface WithdrawalRequestErrorResponseClass
|
|
16
|
-
*/
|
|
17
|
-
export interface WithdrawalRequestErrorResponseClass {
|
|
18
|
-
/**
|
|
19
|
-
* HTTP status code of the response.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof WithdrawalRequestErrorResponseClass
|
|
22
|
-
*/
|
|
23
|
-
'statusCode': number;
|
|
24
|
-
/**
|
|
25
|
-
* Text that the tenant page can show to the customer as it is.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof WithdrawalRequestErrorResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'message': string;
|
|
30
|
-
/**
|
|
31
|
-
* Stable code of the error. Use it in your page logic instead of the message text.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof WithdrawalRequestErrorResponseClass
|
|
34
|
-
*/
|
|
35
|
-
'code': WithdrawalRequestErrorResponseClassCodeEnum;
|
|
36
|
-
}
|
|
37
|
-
export declare const WithdrawalRequestErrorResponseClassCodeEnum: {
|
|
38
|
-
readonly WithdrawalRequestNotVerified: "WITHDRAWAL_REQUEST_NOT_VERIFIED";
|
|
39
|
-
readonly PolicyTerminatedOrWithdrawn: "POLICY_TERMINATED_OR_WITHDRAWN";
|
|
40
|
-
readonly WithdrawalRequestAlreadySubmitted: "WITHDRAWAL_REQUEST_ALREADY_SUBMITTED";
|
|
41
|
-
readonly WithdrawalRequestNotProcessed: "WITHDRAWAL_REQUEST_NOT_PROCESSED";
|
|
42
|
-
};
|
|
43
|
-
export type WithdrawalRequestErrorResponseClassCodeEnum = typeof WithdrawalRequestErrorResponseClassCodeEnum[keyof typeof WithdrawalRequestErrorResponseClassCodeEnum];
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Emil PublicAPI
|
|
6
|
-
* The Emil Public API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.WithdrawalRequestErrorResponseClassCodeEnum = void 0;
|
|
17
|
-
exports.WithdrawalRequestErrorResponseClassCodeEnum = {
|
|
18
|
-
WithdrawalRequestNotVerified: 'WITHDRAWAL_REQUEST_NOT_VERIFIED',
|
|
19
|
-
PolicyTerminatedOrWithdrawn: 'POLICY_TERMINATED_OR_WITHDRAWN',
|
|
20
|
-
WithdrawalRequestAlreadySubmitted: 'WITHDRAWAL_REQUEST_ALREADY_SUBMITTED',
|
|
21
|
-
WithdrawalRequestNotProcessed: 'WITHDRAWAL_REQUEST_NOT_PROCESSED'
|
|
22
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Emil PublicAPI
|
|
5
|
-
* The Emil Public API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface InlineResponse400
|
|
21
|
-
*/
|
|
22
|
-
export interface InlineResponse400 {
|
|
23
|
-
/**
|
|
24
|
-
* HTTP status code of the response.
|
|
25
|
-
* @type {number}
|
|
26
|
-
* @memberof InlineResponse400
|
|
27
|
-
*/
|
|
28
|
-
'statusCode': number;
|
|
29
|
-
/**
|
|
30
|
-
* One text for each field that failed the check.
|
|
31
|
-
* @type {Array<string>}
|
|
32
|
-
* @memberof InlineResponse400
|
|
33
|
-
*/
|
|
34
|
-
'message': Array<string>;
|
|
35
|
-
/**
|
|
36
|
-
* Name of the HTTP status.
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof InlineResponse400
|
|
39
|
-
*/
|
|
40
|
-
'error': string;
|
|
41
|
-
}
|
|
42
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Emil PublicAPI
|
|
5
|
-
* The Emil Public API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface InlineResponse401
|
|
21
|
-
*/
|
|
22
|
-
export interface InlineResponse401 {
|
|
23
|
-
/**
|
|
24
|
-
* HTTP status code of the response.
|
|
25
|
-
* @type {number}
|
|
26
|
-
* @memberof InlineResponse401
|
|
27
|
-
*/
|
|
28
|
-
'statusCode': number;
|
|
29
|
-
/**
|
|
30
|
-
* Reason for the refusal.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof InlineResponse401
|
|
33
|
-
*/
|
|
34
|
-
'message': string;
|
|
35
|
-
}
|
|
36
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Emil PublicAPI
|
|
5
|
-
* The Emil Public API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface SubmitWithdrawalRequestDto
|
|
21
|
-
*/
|
|
22
|
-
export interface SubmitWithdrawalRequestDto {
|
|
23
|
-
/**
|
|
24
|
-
* Policy number exactly as it appears on the policy documents of the customer. The route removes the spaces at the start and the end before it checks the value. The value must not be empty after that. The service compares it to the policies of the tenant that owns the public key.
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof SubmitWithdrawalRequestDto
|
|
27
|
-
*/
|
|
28
|
-
'policyNumber': string;
|
|
29
|
-
/**
|
|
30
|
-
* Full name of the policyholder as the customer types it. For a company, this is the company name. The route removes the spaces at the start and the end before it checks the value. The value must not be empty after that. The service checks it against the policy and does not store or log it.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof SubmitWithdrawalRequestDto
|
|
33
|
-
*/
|
|
34
|
-
'policyholderName': string;
|
|
35
|
-
}
|
|
36
|
-
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Emil PublicAPI
|
|
5
|
-
* The Emil Public API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface SubmitWithdrawalRequestResponseClass
|
|
21
|
-
*/
|
|
22
|
-
export interface SubmitWithdrawalRequestResponseClass {
|
|
23
|
-
/**
|
|
24
|
-
* Date and time at which the platform received the withdrawal request, in UTC, as an ISO 8601 string. Show this value to the customer as the proof of receipt.
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof SubmitWithdrawalRequestResponseClass
|
|
27
|
-
*/
|
|
28
|
-
'receivedAt': string;
|
|
29
|
-
}
|
|
30
|
-
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Emil PublicAPI
|
|
5
|
-
* The Emil Public API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface WithdrawalRequestErrorResponseClass
|
|
21
|
-
*/
|
|
22
|
-
export interface WithdrawalRequestErrorResponseClass {
|
|
23
|
-
/**
|
|
24
|
-
* HTTP status code of the response.
|
|
25
|
-
* @type {number}
|
|
26
|
-
* @memberof WithdrawalRequestErrorResponseClass
|
|
27
|
-
*/
|
|
28
|
-
'statusCode': number;
|
|
29
|
-
/**
|
|
30
|
-
* Text that the tenant page can show to the customer as it is.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof WithdrawalRequestErrorResponseClass
|
|
33
|
-
*/
|
|
34
|
-
'message': string;
|
|
35
|
-
/**
|
|
36
|
-
* Stable code of the error. Use it in your page logic instead of the message text.
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof WithdrawalRequestErrorResponseClass
|
|
39
|
-
*/
|
|
40
|
-
'code': WithdrawalRequestErrorResponseClassCodeEnum;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const WithdrawalRequestErrorResponseClassCodeEnum = {
|
|
44
|
-
WithdrawalRequestNotVerified: 'WITHDRAWAL_REQUEST_NOT_VERIFIED',
|
|
45
|
-
PolicyTerminatedOrWithdrawn: 'POLICY_TERMINATED_OR_WITHDRAWN',
|
|
46
|
-
WithdrawalRequestAlreadySubmitted: 'WITHDRAWAL_REQUEST_ALREADY_SUBMITTED',
|
|
47
|
-
WithdrawalRequestNotProcessed: 'WITHDRAWAL_REQUEST_NOT_PROCESSED'
|
|
48
|
-
} as const;
|
|
49
|
-
|
|
50
|
-
export type WithdrawalRequestErrorResponseClassCodeEnum = typeof WithdrawalRequestErrorResponseClassCodeEnum[keyof typeof WithdrawalRequestErrorResponseClassCodeEnum];
|
|
51
|
-
|
|
52
|
-
|