@emilgroup/public-api-sdk 1.6.0 → 1.7.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 +348 -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 +357 -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,357 @@
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
+ /**
89
+ * AddressCompletionsValidationsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var AddressCompletionsValidationsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * This will return a list of address completions based on the provided partial address.
97
+ * @summary Retrieve the address
98
+ * @param {string} partialAddress
99
+ * @param {string} [authorization] Bearer Token
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ listAddressCompletions: function (partialAddress, 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, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'partialAddress' is not null or undefined
111
+ (0, common_1.assertParamExists)('listAddressCompletions', 'partialAddress', partialAddress);
112
+ localVarPath = "/publicapi/v1/addresses/completions";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (partialAddress !== undefined) {
129
+ localVarQueryParameter['partialAddress'] = partialAddress;
130
+ }
131
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
+ }
134
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
135
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
137
+ return [2 /*return*/, {
138
+ url: (0, common_1.toPathString)(localVarUrlObj),
139
+ options: localVarRequestOptions,
140
+ }];
141
+ }
142
+ });
143
+ });
144
+ },
145
+ /**
146
+ * This will return a response whether the provided address is valid or not.
147
+ * @summary Retrieve the Address validation
148
+ * @param {string} city The city of the address
149
+ * @param {string} country The country of the address
150
+ * @param {string} postalCode The postal code of the address. Must be a number and between 4 and 10 characters long
151
+ * @param {string} street The street of the address
152
+ * @param {string} houseNumber The house number of the address
153
+ * @param {string} [authorization] Bearer Token
154
+ * @param {string} [completeAddress] The complete address to validate
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
158
+ validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
159
+ if (options === void 0) { options = {}; }
160
+ return __awaiter(_this, void 0, void 0, function () {
161
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ return __generator(this, function (_a) {
163
+ switch (_a.label) {
164
+ case 0:
165
+ // verify required parameter 'city' is not null or undefined
166
+ (0, common_1.assertParamExists)('validateAddress', 'city', city);
167
+ // verify required parameter 'country' is not null or undefined
168
+ (0, common_1.assertParamExists)('validateAddress', 'country', country);
169
+ // verify required parameter 'postalCode' is not null or undefined
170
+ (0, common_1.assertParamExists)('validateAddress', 'postalCode', postalCode);
171
+ // verify required parameter 'street' is not null or undefined
172
+ (0, common_1.assertParamExists)('validateAddress', 'street', street);
173
+ // verify required parameter 'houseNumber' is not null or undefined
174
+ (0, common_1.assertParamExists)('validateAddress', 'houseNumber', houseNumber);
175
+ localVarPath = "/publicapi/v1/addresses/validation";
176
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
177
+ if (configuration) {
178
+ baseOptions = configuration.baseOptions;
179
+ baseAccessToken = configuration.accessToken;
180
+ }
181
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
182
+ localVarHeaderParameter = {};
183
+ localVarQueryParameter = {};
184
+ // authentication bearer required
185
+ // http bearer authentication required
186
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
187
+ case 1:
188
+ // authentication bearer required
189
+ // http bearer authentication required
190
+ _a.sent();
191
+ if (completeAddress !== undefined) {
192
+ localVarQueryParameter['completeAddress'] = completeAddress;
193
+ }
194
+ if (city !== undefined) {
195
+ localVarQueryParameter['city'] = city;
196
+ }
197
+ if (country !== undefined) {
198
+ localVarQueryParameter['country'] = country;
199
+ }
200
+ if (postalCode !== undefined) {
201
+ localVarQueryParameter['postalCode'] = postalCode;
202
+ }
203
+ if (street !== undefined) {
204
+ localVarQueryParameter['street'] = street;
205
+ }
206
+ if (houseNumber !== undefined) {
207
+ localVarQueryParameter['houseNumber'] = houseNumber;
208
+ }
209
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
210
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
211
+ }
212
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
213
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
215
+ return [2 /*return*/, {
216
+ url: (0, common_1.toPathString)(localVarUrlObj),
217
+ options: localVarRequestOptions,
218
+ }];
219
+ }
220
+ });
221
+ });
222
+ },
223
+ };
224
+ };
225
+ exports.AddressCompletionsValidationsApiAxiosParamCreator = AddressCompletionsValidationsApiAxiosParamCreator;
226
+ /**
227
+ * AddressCompletionsValidationsApi - functional programming interface
228
+ * @export
229
+ */
230
+ var AddressCompletionsValidationsApiFp = function (configuration) {
231
+ var localVarAxiosParamCreator = (0, exports.AddressCompletionsValidationsApiAxiosParamCreator)(configuration);
232
+ return {
233
+ /**
234
+ * This will return a list of address completions based on the provided partial address.
235
+ * @summary Retrieve the address
236
+ * @param {string} partialAddress
237
+ * @param {string} [authorization] Bearer Token
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ listAddressCompletions: function (partialAddress, authorization, options) {
242
+ return __awaiter(this, void 0, void 0, function () {
243
+ var localVarAxiosArgs;
244
+ return __generator(this, function (_a) {
245
+ switch (_a.label) {
246
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAddressCompletions(partialAddress, authorization, options)];
247
+ case 1:
248
+ localVarAxiosArgs = _a.sent();
249
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
250
+ }
251
+ });
252
+ });
253
+ },
254
+ /**
255
+ * This will return a response whether the provided address is valid or not.
256
+ * @summary Retrieve the Address validation
257
+ * @param {string} city The city of the address
258
+ * @param {string} country The country of the address
259
+ * @param {string} postalCode The postal code of the address. Must be a number and between 4 and 10 characters long
260
+ * @param {string} street The street of the address
261
+ * @param {string} houseNumber The house number of the address
262
+ * @param {string} [authorization] Bearer Token
263
+ * @param {string} [completeAddress] The complete address to validate
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
268
+ return __awaiter(this, void 0, void 0, function () {
269
+ var localVarAxiosArgs;
270
+ return __generator(this, function (_a) {
271
+ switch (_a.label) {
272
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options)];
273
+ case 1:
274
+ localVarAxiosArgs = _a.sent();
275
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
276
+ }
277
+ });
278
+ });
279
+ },
280
+ };
281
+ };
282
+ exports.AddressCompletionsValidationsApiFp = AddressCompletionsValidationsApiFp;
283
+ /**
284
+ * AddressCompletionsValidationsApi - factory interface
285
+ * @export
286
+ */
287
+ var AddressCompletionsValidationsApiFactory = function (configuration, basePath, axios) {
288
+ var localVarFp = (0, exports.AddressCompletionsValidationsApiFp)(configuration);
289
+ return {
290
+ /**
291
+ * This will return a list of address completions based on the provided partial address.
292
+ * @summary Retrieve the address
293
+ * @param {string} partialAddress
294
+ * @param {string} [authorization] Bearer Token
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ listAddressCompletions: function (partialAddress, authorization, options) {
299
+ return localVarFp.listAddressCompletions(partialAddress, authorization, options).then(function (request) { return request(axios, basePath); });
300
+ },
301
+ /**
302
+ * This will return a response whether the provided address is valid or not.
303
+ * @summary Retrieve the Address validation
304
+ * @param {string} city The city of the address
305
+ * @param {string} country The country of the address
306
+ * @param {string} postalCode The postal code of the address. Must be a number and between 4 and 10 characters long
307
+ * @param {string} street The street of the address
308
+ * @param {string} houseNumber The house number of the address
309
+ * @param {string} [authorization] Bearer Token
310
+ * @param {string} [completeAddress] The complete address to validate
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
315
+ return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options).then(function (request) { return request(axios, basePath); });
316
+ },
317
+ };
318
+ };
319
+ exports.AddressCompletionsValidationsApiFactory = AddressCompletionsValidationsApiFactory;
320
+ /**
321
+ * AddressCompletionsValidationsApi - object-oriented interface
322
+ * @export
323
+ * @class AddressCompletionsValidationsApi
324
+ * @extends {BaseAPI}
325
+ */
326
+ var AddressCompletionsValidationsApi = /** @class */ (function (_super) {
327
+ __extends(AddressCompletionsValidationsApi, _super);
328
+ function AddressCompletionsValidationsApi() {
329
+ return _super !== null && _super.apply(this, arguments) || this;
330
+ }
331
+ /**
332
+ * This will return a list of address completions based on the provided partial address.
333
+ * @summary Retrieve the address
334
+ * @param {AddressCompletionsValidationsApiListAddressCompletionsRequest} requestParameters Request parameters.
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ * @memberof AddressCompletionsValidationsApi
338
+ */
339
+ AddressCompletionsValidationsApi.prototype.listAddressCompletions = function (requestParameters, options) {
340
+ var _this = this;
341
+ return (0, exports.AddressCompletionsValidationsApiFp)(this.configuration).listAddressCompletions(requestParameters.partialAddress, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
342
+ };
343
+ /**
344
+ * This will return a response whether the provided address is valid or not.
345
+ * @summary Retrieve the Address validation
346
+ * @param {AddressCompletionsValidationsApiValidateAddressRequest} requestParameters Request parameters.
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ * @memberof AddressCompletionsValidationsApi
350
+ */
351
+ AddressCompletionsValidationsApi.prototype.validateAddress = function (requestParameters, options) {
352
+ var _this = this;
353
+ 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); });
354
+ };
355
+ return AddressCompletionsValidationsApi;
356
+ }(base_1.BaseAPI));
357
+ exports.AddressCompletionsValidationsApi = AddressCompletionsValidationsApi;