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