@emilgroup/public-api-sdk 1.6.0 → 1.8.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 +9 -0
- package/README.md +2 -2
- package/api/address-completions-validations-api.ts +348 -0
- package/api/documents-api.ts +189 -14
- package/api.ts +2 -0
- package/dist/api/address-completions-validations-api.d.ts +197 -0
- package/dist/api/address-completions-validations-api.js +357 -0
- package/dist/api/documents-api.d.ts +111 -10
- package/dist/api/documents-api.js +131 -8
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/address-completion-item-class.d.ts +49 -0
- package/dist/models/address-completion-item-class.js +15 -0
- package/dist/models/address-completion-response-class.d.ts +25 -0
- package/dist/models/address-completion-response-class.js +15 -0
- package/dist/models/address-field-score-class.d.ts +48 -0
- package/dist/models/address-field-score-class.js +15 -0
- package/dist/models/create-lead-request-dto.d.ts +12 -12
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/insured-object-class.d.ts +7 -7
- package/dist/models/lead-class.d.ts +6 -0
- package/dist/models/list-product-documents-response-class.d.ts +31 -0
- package/dist/models/list-product-documents-response-class.js +15 -0
- package/dist/models/product-document-class.d.ts +91 -0
- package/dist/models/product-document-class.js +28 -0
- package/dist/models/structured-address-class.d.ts +54 -0
- package/dist/models/structured-address-class.js +15 -0
- package/dist/models/suggested-address-details-class.d.ts +90 -0
- package/dist/models/suggested-address-details-class.js +15 -0
- package/dist/models/validate-address-response-class.d.ts +50 -0
- package/dist/models/validate-address-response-class.js +15 -0
- package/models/address-completion-item-class.ts +55 -0
- package/models/address-completion-response-class.ts +31 -0
- package/models/address-field-score-class.ts +54 -0
- package/models/create-lead-request-dto.ts +12 -12
- package/models/index.ts +8 -0
- package/models/insured-object-class.ts +7 -7
- package/models/lead-class.ts +6 -0
- package/models/list-product-documents-response-class.ts +37 -0
- package/models/product-document-class.ts +100 -0
- package/models/structured-address-class.ts +60 -0
- package/models/suggested-address-details-class.ts +96 -0
- package/models/validate-address-response-class.ts +56 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
|
+
api/address-completions-validations-api.ts
|
|
6
7
|
api/documents-api.ts
|
|
7
8
|
api/leads-api.ts
|
|
8
9
|
api/notifications-api.ts
|
|
@@ -13,6 +14,9 @@ common.ts
|
|
|
13
14
|
configuration.ts
|
|
14
15
|
git_push.sh
|
|
15
16
|
index.ts
|
|
17
|
+
models/address-completion-item-class.ts
|
|
18
|
+
models/address-completion-response-class.ts
|
|
19
|
+
models/address-field-score-class.ts
|
|
16
20
|
models/complete-braintree-payment-setup-request-dto.ts
|
|
17
21
|
models/complete-payment-setup-request-dto.ts
|
|
18
22
|
models/complete-payment-setup-response-class.ts
|
|
@@ -49,19 +53,24 @@ models/lead-class.ts
|
|
|
49
53
|
models/lead-policy-class.ts
|
|
50
54
|
models/lead-policy-object-class.ts
|
|
51
55
|
models/list-documents-response-class.ts
|
|
56
|
+
models/list-product-documents-response-class.ts
|
|
52
57
|
models/list-products-response-class.ts
|
|
53
58
|
models/payment-method-class.ts
|
|
54
59
|
models/policy-object-request-dto.ts
|
|
55
60
|
models/premium-override-dto.ts
|
|
56
61
|
models/premium-override-request-dto.ts
|
|
57
62
|
models/product-class.ts
|
|
63
|
+
models/product-document-class.ts
|
|
58
64
|
models/product-factor-class.ts
|
|
59
65
|
models/product-field-class.ts
|
|
60
66
|
models/product-version-class.ts
|
|
61
67
|
models/send-notification-request-dto.ts
|
|
62
68
|
models/send-notification-response-class.ts
|
|
69
|
+
models/structured-address-class.ts
|
|
70
|
+
models/suggested-address-details-class.ts
|
|
63
71
|
models/update-lead-request-dto.ts
|
|
64
72
|
models/update-lead-response-class.ts
|
|
65
73
|
models/uploaded-document-dto.ts
|
|
74
|
+
models/validate-address-response-class.ts
|
|
66
75
|
package.json
|
|
67
76
|
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.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.8.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.8.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -0,0 +1,348 @@
|
|
|
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 { AddressCompletionResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ValidateAddressResponseClass } from '../models';
|
|
27
|
+
/**
|
|
28
|
+
* AddressCompletionsValidationsApi - axios parameter creator
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const AddressCompletionsValidationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* This will return a list of address completions based on the provided partial address.
|
|
35
|
+
* @summary Retrieve the address
|
|
36
|
+
* @param {string} partialAddress
|
|
37
|
+
* @param {string} [authorization] Bearer Token
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
listAddressCompletions: async (partialAddress: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'partialAddress' is not null or undefined
|
|
43
|
+
assertParamExists('listAddressCompletions', 'partialAddress', partialAddress)
|
|
44
|
+
const localVarPath = `/publicapi/v1/addresses/completions`;
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
let baseAccessToken;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
baseAccessToken = configuration.accessToken;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
55
|
+
const localVarHeaderParameter = {} as any;
|
|
56
|
+
const localVarQueryParameter = {} as any;
|
|
57
|
+
|
|
58
|
+
// authentication bearer required
|
|
59
|
+
// http bearer authentication required
|
|
60
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
61
|
+
|
|
62
|
+
if (partialAddress !== undefined) {
|
|
63
|
+
localVarQueryParameter['partialAddress'] = partialAddress;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
67
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
73
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
74
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
url: toPathString(localVarUrlObj),
|
|
78
|
+
options: localVarRequestOptions,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* This will return a response whether the provided address is valid or not.
|
|
83
|
+
* @summary Retrieve the Address validation
|
|
84
|
+
* @param {string} city The city of the address
|
|
85
|
+
* @param {string} country The country of the address
|
|
86
|
+
* @param {string} postalCode The postal code of the address. Must be a number and between 4 and 10 characters long
|
|
87
|
+
* @param {string} street The street of the address
|
|
88
|
+
* @param {string} houseNumber The house number of the address
|
|
89
|
+
* @param {string} [authorization] Bearer Token
|
|
90
|
+
* @param {string} [completeAddress] The complete address to validate
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
validateAddress: async (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
|
+
// verify required parameter 'city' is not null or undefined
|
|
96
|
+
assertParamExists('validateAddress', 'city', city)
|
|
97
|
+
// verify required parameter 'country' is not null or undefined
|
|
98
|
+
assertParamExists('validateAddress', 'country', country)
|
|
99
|
+
// verify required parameter 'postalCode' is not null or undefined
|
|
100
|
+
assertParamExists('validateAddress', 'postalCode', postalCode)
|
|
101
|
+
// verify required parameter 'street' is not null or undefined
|
|
102
|
+
assertParamExists('validateAddress', 'street', street)
|
|
103
|
+
// verify required parameter 'houseNumber' is not null or undefined
|
|
104
|
+
assertParamExists('validateAddress', 'houseNumber', houseNumber)
|
|
105
|
+
const localVarPath = `/publicapi/v1/addresses/validation`;
|
|
106
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
107
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
108
|
+
let baseOptions;
|
|
109
|
+
let baseAccessToken;
|
|
110
|
+
if (configuration) {
|
|
111
|
+
baseOptions = configuration.baseOptions;
|
|
112
|
+
baseAccessToken = configuration.accessToken;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
116
|
+
const localVarHeaderParameter = {} as any;
|
|
117
|
+
const localVarQueryParameter = {} as any;
|
|
118
|
+
|
|
119
|
+
// authentication bearer required
|
|
120
|
+
// http bearer authentication required
|
|
121
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
122
|
+
|
|
123
|
+
if (completeAddress !== undefined) {
|
|
124
|
+
localVarQueryParameter['completeAddress'] = completeAddress;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (city !== undefined) {
|
|
128
|
+
localVarQueryParameter['city'] = city;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (country !== undefined) {
|
|
132
|
+
localVarQueryParameter['country'] = country;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (postalCode !== undefined) {
|
|
136
|
+
localVarQueryParameter['postalCode'] = postalCode;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (street !== undefined) {
|
|
140
|
+
localVarQueryParameter['street'] = street;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (houseNumber !== undefined) {
|
|
144
|
+
localVarQueryParameter['houseNumber'] = houseNumber;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
148
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
154
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
155
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
156
|
+
|
|
157
|
+
return {
|
|
158
|
+
url: toPathString(localVarUrlObj),
|
|
159
|
+
options: localVarRequestOptions,
|
|
160
|
+
};
|
|
161
|
+
},
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* AddressCompletionsValidationsApi - functional programming interface
|
|
167
|
+
* @export
|
|
168
|
+
*/
|
|
169
|
+
export const AddressCompletionsValidationsApiFp = function(configuration?: Configuration) {
|
|
170
|
+
const localVarAxiosParamCreator = AddressCompletionsValidationsApiAxiosParamCreator(configuration)
|
|
171
|
+
return {
|
|
172
|
+
/**
|
|
173
|
+
* This will return a list of address completions based on the provided partial address.
|
|
174
|
+
* @summary Retrieve the address
|
|
175
|
+
* @param {string} partialAddress
|
|
176
|
+
* @param {string} [authorization] Bearer Token
|
|
177
|
+
* @param {*} [options] Override http request option.
|
|
178
|
+
* @throws {RequiredError}
|
|
179
|
+
*/
|
|
180
|
+
async listAddressCompletions(partialAddress: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddressCompletionResponseClass>> {
|
|
181
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAddressCompletions(partialAddress, authorization, options);
|
|
182
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
183
|
+
},
|
|
184
|
+
/**
|
|
185
|
+
* This will return a response whether the provided address is valid or not.
|
|
186
|
+
* @summary Retrieve the Address validation
|
|
187
|
+
* @param {string} city The city of the address
|
|
188
|
+
* @param {string} country The country of the address
|
|
189
|
+
* @param {string} postalCode The postal code of the address. Must be a number and between 4 and 10 characters long
|
|
190
|
+
* @param {string} street The street of the address
|
|
191
|
+
* @param {string} houseNumber The house number of the address
|
|
192
|
+
* @param {string} [authorization] Bearer Token
|
|
193
|
+
* @param {string} [completeAddress] The complete address to validate
|
|
194
|
+
* @param {*} [options] Override http request option.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
*/
|
|
197
|
+
async validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAddressResponseClass>> {
|
|
198
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options);
|
|
199
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
200
|
+
},
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* AddressCompletionsValidationsApi - factory interface
|
|
206
|
+
* @export
|
|
207
|
+
*/
|
|
208
|
+
export const AddressCompletionsValidationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
209
|
+
const localVarFp = AddressCompletionsValidationsApiFp(configuration)
|
|
210
|
+
return {
|
|
211
|
+
/**
|
|
212
|
+
* This will return a list of address completions based on the provided partial address.
|
|
213
|
+
* @summary Retrieve the address
|
|
214
|
+
* @param {string} partialAddress
|
|
215
|
+
* @param {string} [authorization] Bearer Token
|
|
216
|
+
* @param {*} [options] Override http request option.
|
|
217
|
+
* @throws {RequiredError}
|
|
218
|
+
*/
|
|
219
|
+
listAddressCompletions(partialAddress: string, authorization?: string, options?: any): AxiosPromise<AddressCompletionResponseClass> {
|
|
220
|
+
return localVarFp.listAddressCompletions(partialAddress, authorization, options).then((request) => request(axios, basePath));
|
|
221
|
+
},
|
|
222
|
+
/**
|
|
223
|
+
* This will return a response whether the provided address is valid or not.
|
|
224
|
+
* @summary Retrieve the Address validation
|
|
225
|
+
* @param {string} city The city of the address
|
|
226
|
+
* @param {string} country The country of the address
|
|
227
|
+
* @param {string} postalCode The postal code of the address. Must be a number and between 4 and 10 characters long
|
|
228
|
+
* @param {string} street The street of the address
|
|
229
|
+
* @param {string} houseNumber The house number of the address
|
|
230
|
+
* @param {string} [authorization] Bearer Token
|
|
231
|
+
* @param {string} [completeAddress] The complete address to validate
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
*/
|
|
235
|
+
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: any): AxiosPromise<ValidateAddressResponseClass> {
|
|
236
|
+
return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options).then((request) => request(axios, basePath));
|
|
237
|
+
},
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Request parameters for listAddressCompletions operation in AddressCompletionsValidationsApi.
|
|
243
|
+
* @export
|
|
244
|
+
* @interface AddressCompletionsValidationsApiListAddressCompletionsRequest
|
|
245
|
+
*/
|
|
246
|
+
export interface AddressCompletionsValidationsApiListAddressCompletionsRequest {
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @type {string}
|
|
250
|
+
* @memberof AddressCompletionsValidationsApiListAddressCompletions
|
|
251
|
+
*/
|
|
252
|
+
readonly partialAddress: string
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Bearer Token
|
|
256
|
+
* @type {string}
|
|
257
|
+
* @memberof AddressCompletionsValidationsApiListAddressCompletions
|
|
258
|
+
*/
|
|
259
|
+
readonly authorization?: string
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Request parameters for validateAddress operation in AddressCompletionsValidationsApi.
|
|
264
|
+
* @export
|
|
265
|
+
* @interface AddressCompletionsValidationsApiValidateAddressRequest
|
|
266
|
+
*/
|
|
267
|
+
export interface AddressCompletionsValidationsApiValidateAddressRequest {
|
|
268
|
+
/**
|
|
269
|
+
* The city of the address
|
|
270
|
+
* @type {string}
|
|
271
|
+
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
272
|
+
*/
|
|
273
|
+
readonly city: string
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* The country of the address
|
|
277
|
+
* @type {string}
|
|
278
|
+
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
279
|
+
*/
|
|
280
|
+
readonly country: string
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* The postal code of the address. Must be a number and between 4 and 10 characters long
|
|
284
|
+
* @type {string}
|
|
285
|
+
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
286
|
+
*/
|
|
287
|
+
readonly postalCode: string
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* The street of the address
|
|
291
|
+
* @type {string}
|
|
292
|
+
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
293
|
+
*/
|
|
294
|
+
readonly street: string
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* The house number of the address
|
|
298
|
+
* @type {string}
|
|
299
|
+
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
300
|
+
*/
|
|
301
|
+
readonly houseNumber: string
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Bearer Token
|
|
305
|
+
* @type {string}
|
|
306
|
+
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
307
|
+
*/
|
|
308
|
+
readonly authorization?: string
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* The complete address to validate
|
|
312
|
+
* @type {string}
|
|
313
|
+
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
314
|
+
*/
|
|
315
|
+
readonly completeAddress?: string
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* AddressCompletionsValidationsApi - object-oriented interface
|
|
320
|
+
* @export
|
|
321
|
+
* @class AddressCompletionsValidationsApi
|
|
322
|
+
* @extends {BaseAPI}
|
|
323
|
+
*/
|
|
324
|
+
export class AddressCompletionsValidationsApi extends BaseAPI {
|
|
325
|
+
/**
|
|
326
|
+
* This will return a list of address completions based on the provided partial address.
|
|
327
|
+
* @summary Retrieve the address
|
|
328
|
+
* @param {AddressCompletionsValidationsApiListAddressCompletionsRequest} requestParameters Request parameters.
|
|
329
|
+
* @param {*} [options] Override http request option.
|
|
330
|
+
* @throws {RequiredError}
|
|
331
|
+
* @memberof AddressCompletionsValidationsApi
|
|
332
|
+
*/
|
|
333
|
+
public listAddressCompletions(requestParameters: AddressCompletionsValidationsApiListAddressCompletionsRequest, options?: AxiosRequestConfig) {
|
|
334
|
+
return AddressCompletionsValidationsApiFp(this.configuration).listAddressCompletions(requestParameters.partialAddress, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* This will return a response whether the provided address is valid or not.
|
|
339
|
+
* @summary Retrieve the Address validation
|
|
340
|
+
* @param {AddressCompletionsValidationsApiValidateAddressRequest} requestParameters Request parameters.
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
* @memberof AddressCompletionsValidationsApi
|
|
344
|
+
*/
|
|
345
|
+
public validateAddress(requestParameters: AddressCompletionsValidationsApiValidateAddressRequest, options?: AxiosRequestConfig) {
|
|
346
|
+
return AddressCompletionsValidationsApiFp(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress, options).then((request) => request(this.axios, this.basePath));
|
|
347
|
+
}
|
|
348
|
+
}
|