@emilgroup/public-api-sdk 1.4.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 (56) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/address-completions-validations-api.ts +348 -0
  4. package/api/documents-api.ts +41 -53
  5. package/api/payments-setup-api.ts +104 -0
  6. package/api/products-api.ts +12 -12
  7. package/api.ts +2 -0
  8. package/base.ts +2 -0
  9. package/dist/api/address-completions-validations-api.d.ts +197 -0
  10. package/dist/api/address-completions-validations-api.js +357 -0
  11. package/dist/api/documents-api.d.ts +36 -45
  12. package/dist/api/documents-api.js +23 -28
  13. package/dist/api/payments-setup-api.d.ts +56 -0
  14. package/dist/api/payments-setup-api.js +93 -0
  15. package/dist/api/products-api.d.ts +12 -12
  16. package/dist/api/products-api.js +9 -9
  17. package/dist/api.d.ts +1 -0
  18. package/dist/api.js +1 -0
  19. package/dist/base.js +3 -0
  20. package/dist/models/address-completion-item-class.d.ts +49 -0
  21. package/dist/models/address-completion-item-class.js +15 -0
  22. package/dist/models/address-completion-response-class.d.ts +25 -0
  23. package/dist/models/address-completion-response-class.js +15 -0
  24. package/dist/models/address-field-score-class.d.ts +48 -0
  25. package/dist/models/address-field-score-class.js +15 -0
  26. package/dist/models/create-lead-request-dto.d.ts +14 -15
  27. package/dist/models/create-lead-request-dto.js +0 -7
  28. package/dist/models/get-public-psp-settings-response-class.d.ts +30 -0
  29. package/dist/models/get-public-psp-settings-response-class.js +15 -0
  30. package/dist/models/index.d.ts +7 -0
  31. package/dist/models/index.js +7 -0
  32. package/dist/models/insured-object-class.d.ts +18 -0
  33. package/dist/models/lead-class.d.ts +7 -0
  34. package/dist/models/product-field-class.d.ts +12 -0
  35. package/dist/models/structured-address-class.d.ts +54 -0
  36. package/dist/models/structured-address-class.js +15 -0
  37. package/dist/models/suggested-address-details-class.d.ts +90 -0
  38. package/dist/models/suggested-address-details-class.js +15 -0
  39. package/dist/models/update-lead-request-dto.d.ts +3 -17
  40. package/dist/models/update-lead-request-dto.js +0 -7
  41. package/dist/models/validate-address-response-class.d.ts +50 -0
  42. package/dist/models/validate-address-response-class.js +15 -0
  43. package/models/address-completion-item-class.ts +55 -0
  44. package/models/address-completion-response-class.ts +31 -0
  45. package/models/address-field-score-class.ts +54 -0
  46. package/models/create-lead-request-dto.ts +14 -18
  47. package/models/get-public-psp-settings-response-class.ts +36 -0
  48. package/models/index.ts +7 -0
  49. package/models/insured-object-class.ts +18 -0
  50. package/models/lead-class.ts +7 -0
  51. package/models/product-field-class.ts +12 -0
  52. package/models/structured-address-class.ts +60 -0
  53. package/models/suggested-address-details-class.ts +96 -0
  54. package/models/update-lead-request-dto.ts +3 -20
  55. package/models/validate-address-response-class.ts +56 -0
  56. package/package.json +1 -1
@@ -25,6 +25,8 @@ import { CompletePaymentSetupRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CompletePaymentSetupResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { GetPublicPspSettingsResponseClass } from '../models';
29
+ // @ts-ignore
28
30
  import { InitiatePaymentSetupRequestDto } from '../models';
29
31
  // @ts-ignore
30
32
  import { InitiatePaymentSetupResponseClass } from '../models';
@@ -86,6 +88,52 @@ export const PaymentsSetupApiAxiosParamCreator = function (configuration?: Confi
86
88
  options: localVarRequestOptions,
87
89
  };
88
90
  },
91
+ /**
92
+ * This will send the customer the public key to load the payment form and complete the payment setup.
93
+ * @summary Get public key and psp
94
+ * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
95
+ * @param {string} [authorization] Bearer Token
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ getPublicPSPConfig: async (idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
100
+ const localVarPath = `/publicapi/v1/payment-setup/get-psp-config`;
101
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
102
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
103
+ let baseOptions;
104
+ let baseAccessToken;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ baseAccessToken = configuration.accessToken;
108
+ }
109
+
110
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
111
+ const localVarHeaderParameter = {} as any;
112
+ const localVarQueryParameter = {} as any;
113
+
114
+ // authentication bearer required
115
+ // http bearer authentication required
116
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
+
118
+ if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
120
+ }
121
+
122
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
123
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
+ }
125
+
126
+
127
+
128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
131
+
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ },
89
137
  /**
90
138
  * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
91
139
  * @summary Initiate a payment setup
@@ -161,6 +209,18 @@ export const PaymentsSetupApiFp = function(configuration?: Configuration) {
161
209
  const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, idempotencyKey, authorization, options);
162
210
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
163
211
  },
212
+ /**
213
+ * This will send the customer the public key to load the payment form and complete the payment setup.
214
+ * @summary Get public key and psp
215
+ * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
216
+ * @param {string} [authorization] Bearer Token
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ async getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>> {
221
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPSPConfig(idempotencyKey, authorization, options);
222
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
223
+ },
164
224
  /**
165
225
  * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
166
226
  * @summary Initiate a payment setup
@@ -196,6 +256,17 @@ export const PaymentsSetupApiFactory = function (configuration?: Configuration,
196
256
  completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
197
257
  return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, idempotencyKey, authorization, options).then((request) => request(axios, basePath));
198
258
  },
259
+ /**
260
+ * This will send the customer the public key to load the payment form and complete the payment setup.
261
+ * @summary Get public key and psp
262
+ * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
263
+ * @param {string} [authorization] Bearer Token
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass> {
268
+ return localVarFp.getPublicPSPConfig(idempotencyKey, authorization, options).then((request) => request(axios, basePath));
269
+ },
199
270
  /**
200
271
  * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
201
272
  * @summary Initiate a payment setup
@@ -239,6 +310,27 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
239
310
  readonly authorization?: string
240
311
  }
241
312
 
313
+ /**
314
+ * Request parameters for getPublicPSPConfig operation in PaymentsSetupApi.
315
+ * @export
316
+ * @interface PaymentsSetupApiGetPublicPSPConfigRequest
317
+ */
318
+ export interface PaymentsSetupApiGetPublicPSPConfigRequest {
319
+ /**
320
+ * An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
321
+ * @type {string}
322
+ * @memberof PaymentsSetupApiGetPublicPSPConfig
323
+ */
324
+ readonly idempotencyKey?: string
325
+
326
+ /**
327
+ * Bearer Token
328
+ * @type {string}
329
+ * @memberof PaymentsSetupApiGetPublicPSPConfig
330
+ */
331
+ readonly authorization?: string
332
+ }
333
+
242
334
  /**
243
335
  * Request parameters for initiatePaymentSetup operation in PaymentsSetupApi.
244
336
  * @export
@@ -286,6 +378,18 @@ export class PaymentsSetupApi extends BaseAPI {
286
378
  return PaymentsSetupApiFp(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
287
379
  }
288
380
 
381
+ /**
382
+ * This will send the customer the public key to load the payment form and complete the payment setup.
383
+ * @summary Get public key and psp
384
+ * @param {PaymentsSetupApiGetPublicPSPConfigRequest} requestParameters Request parameters.
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ * @memberof PaymentsSetupApi
388
+ */
389
+ public getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest = {}, options?: AxiosRequestConfig) {
390
+ return PaymentsSetupApiFp(this.configuration).getPublicPSPConfig(requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
391
+ }
392
+
289
393
  /**
290
394
  * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
291
395
  * @summary Initiate a payment setup
@@ -333,11 +333,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
333
333
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
334
334
  * @summary List products
335
335
  * @param {string} [authorization] Bearer Token
336
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
337
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
336
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
337
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
338
338
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
339
339
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
340
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
340
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
341
341
  * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
342
342
  * @param {*} [options] Override http request option.
343
343
  * @throws {RequiredError}
@@ -488,11 +488,11 @@ export const ProductsApiFp = function(configuration?: Configuration) {
488
488
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
489
489
  * @summary List products
490
490
  * @param {string} [authorization] Bearer Token
491
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
492
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
491
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
492
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
493
493
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
494
494
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
495
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
495
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
496
496
  * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
497
497
  * @param {*} [options] Override http request option.
498
498
  * @throws {RequiredError}
@@ -583,11 +583,11 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
583
583
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
584
584
  * @summary List products
585
585
  * @param {string} [authorization] Bearer Token
586
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
587
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
586
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
587
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
588
588
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
589
589
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
590
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
590
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
591
591
  * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
592
592
  * @param {*} [options] Override http request option.
593
593
  * @throws {RequiredError}
@@ -752,14 +752,14 @@ export interface ProductsApiListProductsRequest {
752
752
  readonly authorization?: string
753
753
 
754
754
  /**
755
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
755
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
756
756
  * @type {any}
757
757
  * @memberof ProductsApiListProducts
758
758
  */
759
759
  readonly pageSize?: any
760
760
 
761
761
  /**
762
- * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
762
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
763
763
  * @type {any}
764
764
  * @memberof ProductsApiListProducts
765
765
  */
@@ -780,7 +780,7 @@ export interface ProductsApiListProductsRequest {
780
780
  readonly search?: any
781
781
 
782
782
  /**
783
- * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
783
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
784
784
  * @type {any}
785
785
  * @memberof ProductsApiListProducts
786
786
  */
package/api.ts CHANGED
@@ -20,6 +20,7 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResp
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
+ import { AddressCompletionsValidationsApi } from './api';
23
24
  import { DocumentsApi } from './api';
24
25
  import { LeadsApi } from './api';
25
26
  import { NotificationsApi } from './api';
@@ -27,6 +28,7 @@ import { PaymentsSetupApi } from './api';
27
28
  import { ProductsApi } from './api';
28
29
 
29
30
 
31
+ export * from './api/address-completions-validations-api';
30
32
  export * from './api/documents-api';
31
33
  export * from './api/leads-api';
32
34
  export * from './api/notifications-api';
package/base.ts CHANGED
@@ -160,6 +160,8 @@ export class BaseAPI {
160
160
  public loadTokenData() {
161
161
  if (typeof window !== 'undefined') {
162
162
  this.tokenData = defaultStorage().get<TokenData>(TOKEN_DATA) || {};
163
+ } else {
164
+ this.tokenData = {};
163
165
  }
164
166
  }
165
167
 
@@ -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
+ }