@emilgroup/public-api-sdk-node 1.7.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.
- package/.openapi-generator/FILES +8 -0
- package/README.md +2 -2
- package/api/address-completions-validations-api.ts +352 -0
- package/api/documents-api.ts +41 -53
- package/api/payments-setup-api.ts +104 -0
- package/api/products-api.ts +12 -12
- package/api.ts +2 -0
- package/base.ts +1 -1
- package/dist/api/address-completions-validations-api.d.ts +197 -0
- package/dist/api/address-completions-validations-api.js +361 -0
- package/dist/api/documents-api.d.ts +36 -45
- package/dist/api/documents-api.js +23 -28
- package/dist/api/payments-setup-api.d.ts +56 -0
- package/dist/api/payments-setup-api.js +93 -0
- package/dist/api/products-api.d.ts +12 -12
- package/dist/api/products-api.js +9 -9
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +1 -1
- package/dist/models/address-completion-item-class.d.ts +49 -0
- package/dist/models/address-completion-item-class.js +15 -0
- package/dist/models/address-completion-response-class.d.ts +25 -0
- package/dist/models/address-completion-response-class.js +15 -0
- package/dist/models/address-field-score-class.d.ts +48 -0
- package/dist/models/address-field-score-class.js +15 -0
- package/dist/models/create-lead-request-dto.d.ts +14 -15
- package/dist/models/create-lead-request-dto.js +0 -7
- package/dist/models/get-public-psp-settings-response-class.d.ts +30 -0
- package/dist/models/get-public-psp-settings-response-class.js +15 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/insured-object-class.d.ts +18 -0
- package/dist/models/lead-class.d.ts +7 -0
- package/dist/models/product-field-class.d.ts +12 -0
- package/dist/models/structured-address-class.d.ts +54 -0
- package/dist/models/structured-address-class.js +15 -0
- package/dist/models/suggested-address-details-class.d.ts +90 -0
- package/dist/models/suggested-address-details-class.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +3 -17
- package/dist/models/update-lead-request-dto.js +0 -7
- package/dist/models/validate-address-response-class.d.ts +50 -0
- package/dist/models/validate-address-response-class.js +15 -0
- package/models/address-completion-item-class.ts +55 -0
- package/models/address-completion-response-class.ts +31 -0
- package/models/address-field-score-class.ts +54 -0
- package/models/create-lead-request-dto.ts +14 -18
- package/models/get-public-psp-settings-response-class.ts +36 -0
- package/models/index.ts +7 -0
- package/models/insured-object-class.ts +18 -0
- package/models/lead-class.ts +7 -0
- package/models/product-field-class.ts +12 -0
- package/models/structured-address-class.ts +60 -0
- package/models/suggested-address-details-class.ts +96 -0
- package/models/update-lead-request-dto.ts +3 -20
- package/models/validate-address-response-class.ts +56 -0
- 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';
|
|
@@ -90,6 +92,52 @@ export const PaymentsSetupApiAxiosParamCreator = function (configuration?: Confi
|
|
|
90
92
|
options: localVarRequestOptions,
|
|
91
93
|
};
|
|
92
94
|
},
|
|
95
|
+
/**
|
|
96
|
+
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
97
|
+
* @summary Get public key and psp
|
|
98
|
+
* @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.
|
|
99
|
+
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
getPublicPSPConfig: async (idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
104
|
+
const localVarPath = `/publicapi/v1/payment-setup/get-psp-config`;
|
|
105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
+
let baseOptions;
|
|
108
|
+
let baseAccessToken;
|
|
109
|
+
if (configuration) {
|
|
110
|
+
baseOptions = configuration.baseOptions;
|
|
111
|
+
baseAccessToken = configuration.accessToken;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
115
|
+
const localVarHeaderParameter = {} as any;
|
|
116
|
+
const localVarQueryParameter = {} as any;
|
|
117
|
+
|
|
118
|
+
// authentication bearer required
|
|
119
|
+
// http bearer authentication required
|
|
120
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
|
+
|
|
122
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
123
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
127
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
135
|
+
|
|
136
|
+
return {
|
|
137
|
+
url: toPathString(localVarUrlObj),
|
|
138
|
+
options: localVarRequestOptions,
|
|
139
|
+
};
|
|
140
|
+
},
|
|
93
141
|
/**
|
|
94
142
|
* 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.
|
|
95
143
|
* @summary Initiate a payment setup
|
|
@@ -165,6 +213,18 @@ export const PaymentsSetupApiFp = function(configuration?: Configuration) {
|
|
|
165
213
|
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, idempotencyKey, authorization, options);
|
|
166
214
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
167
215
|
},
|
|
216
|
+
/**
|
|
217
|
+
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
218
|
+
* @summary Get public key and psp
|
|
219
|
+
* @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.
|
|
220
|
+
* @param {string} [authorization] Bearer Token
|
|
221
|
+
* @param {*} [options] Override http request option.
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
*/
|
|
224
|
+
async getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>> {
|
|
225
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPSPConfig(idempotencyKey, authorization, options);
|
|
226
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
227
|
+
},
|
|
168
228
|
/**
|
|
169
229
|
* 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.
|
|
170
230
|
* @summary Initiate a payment setup
|
|
@@ -200,6 +260,17 @@ export const PaymentsSetupApiFactory = function (configuration?: Configuration,
|
|
|
200
260
|
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
|
|
201
261
|
return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
202
262
|
},
|
|
263
|
+
/**
|
|
264
|
+
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
265
|
+
* @summary Get public key and psp
|
|
266
|
+
* @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.
|
|
267
|
+
* @param {string} [authorization] Bearer Token
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
*/
|
|
271
|
+
getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass> {
|
|
272
|
+
return localVarFp.getPublicPSPConfig(idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
273
|
+
},
|
|
203
274
|
/**
|
|
204
275
|
* 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.
|
|
205
276
|
* @summary Initiate a payment setup
|
|
@@ -243,6 +314,27 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
|
|
|
243
314
|
readonly authorization?: string
|
|
244
315
|
}
|
|
245
316
|
|
|
317
|
+
/**
|
|
318
|
+
* Request parameters for getPublicPSPConfig operation in PaymentsSetupApi.
|
|
319
|
+
* @export
|
|
320
|
+
* @interface PaymentsSetupApiGetPublicPSPConfigRequest
|
|
321
|
+
*/
|
|
322
|
+
export interface PaymentsSetupApiGetPublicPSPConfigRequest {
|
|
323
|
+
/**
|
|
324
|
+
* 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.
|
|
325
|
+
* @type {string}
|
|
326
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
327
|
+
*/
|
|
328
|
+
readonly idempotencyKey?: string
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Bearer Token
|
|
332
|
+
* @type {string}
|
|
333
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
334
|
+
*/
|
|
335
|
+
readonly authorization?: string
|
|
336
|
+
}
|
|
337
|
+
|
|
246
338
|
/**
|
|
247
339
|
* Request parameters for initiatePaymentSetup operation in PaymentsSetupApi.
|
|
248
340
|
* @export
|
|
@@ -290,6 +382,18 @@ export class PaymentsSetupApi extends BaseAPI {
|
|
|
290
382
|
return PaymentsSetupApiFp(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
291
383
|
}
|
|
292
384
|
|
|
385
|
+
/**
|
|
386
|
+
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
387
|
+
* @summary Get public key and psp
|
|
388
|
+
* @param {PaymentsSetupApiGetPublicPSPConfigRequest} requestParameters Request parameters.
|
|
389
|
+
* @param {*} [options] Override http request option.
|
|
390
|
+
* @throws {RequiredError}
|
|
391
|
+
* @memberof PaymentsSetupApi
|
|
392
|
+
*/
|
|
393
|
+
public getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest = {}, options?: AxiosRequestConfig) {
|
|
394
|
+
return PaymentsSetupApiFp(this.configuration).getPublicPSPConfig(requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
395
|
+
}
|
|
396
|
+
|
|
293
397
|
/**
|
|
294
398
|
* 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.
|
|
295
399
|
* @summary Initiate a payment setup
|
package/api/products-api.ts
CHANGED
|
@@ -337,11 +337,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
337
337
|
* 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.
|
|
338
338
|
* @summary List products
|
|
339
339
|
* @param {string} [authorization] Bearer Token
|
|
340
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
341
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
340
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
341
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
342
342
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
343
343
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
344
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
344
|
+
* @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.
|
|
345
345
|
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
346
346
|
* @param {*} [options] Override http request option.
|
|
347
347
|
* @throws {RequiredError}
|
|
@@ -492,11 +492,11 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
492
492
|
* 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.
|
|
493
493
|
* @summary List products
|
|
494
494
|
* @param {string} [authorization] Bearer Token
|
|
495
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
496
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
495
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
496
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
497
497
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
498
498
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
499
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
499
|
+
* @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.
|
|
500
500
|
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
501
501
|
* @param {*} [options] Override http request option.
|
|
502
502
|
* @throws {RequiredError}
|
|
@@ -587,11 +587,11 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
587
587
|
* 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.
|
|
588
588
|
* @summary List products
|
|
589
589
|
* @param {string} [authorization] Bearer Token
|
|
590
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
591
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
590
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
591
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
592
592
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
593
593
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
594
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
594
|
+
* @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.
|
|
595
595
|
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
596
596
|
* @param {*} [options] Override http request option.
|
|
597
597
|
* @throws {RequiredError}
|
|
@@ -756,14 +756,14 @@ export interface ProductsApiListProductsRequest {
|
|
|
756
756
|
readonly authorization?: string
|
|
757
757
|
|
|
758
758
|
/**
|
|
759
|
-
* A limit on the number of objects to be returned.
|
|
759
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
760
760
|
* @type {any}
|
|
761
761
|
* @memberof ProductsApiListProducts
|
|
762
762
|
*/
|
|
763
763
|
readonly pageSize?: any
|
|
764
764
|
|
|
765
765
|
/**
|
|
766
|
-
* A cursor for use in pagination.
|
|
766
|
+
* 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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
767
767
|
* @type {any}
|
|
768
768
|
* @memberof ProductsApiListProducts
|
|
769
769
|
*/
|
|
@@ -784,7 +784,7 @@ export interface ProductsApiListProductsRequest {
|
|
|
784
784
|
readonly search?: any
|
|
785
785
|
|
|
786
786
|
/**
|
|
787
|
-
* The order parameter determines how the results should be sorted according to a specified field.
|
|
787
|
+
* 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.
|
|
788
788
|
* @type {any}
|
|
789
789
|
* @memberof ProductsApiListProducts
|
|
790
790
|
*/
|
package/api.ts
CHANGED
|
@@ -24,6 +24,7 @@ import FormData from 'form-data'
|
|
|
24
24
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
|
+
import { AddressCompletionsValidationsApi } from './api';
|
|
27
28
|
import { DocumentsApi } from './api';
|
|
28
29
|
import { LeadsApi } from './api';
|
|
29
30
|
import { NotificationsApi } from './api';
|
|
@@ -31,6 +32,7 @@ import { PaymentsSetupApi } from './api';
|
|
|
31
32
|
import { ProductsApi } from './api';
|
|
32
33
|
|
|
33
34
|
|
|
35
|
+
export * from './api/address-completions-validations-api';
|
|
34
36
|
export * from './api/documents-api';
|
|
35
37
|
export * from './api/leads-api';
|
|
36
38
|
export * from './api/notifications-api';
|
package/base.ts
CHANGED
|
@@ -21,7 +21,7 @@ import * as fs from 'fs';
|
|
|
21
21
|
import * as path from 'path';
|
|
22
22
|
import * as os from 'os';
|
|
23
23
|
|
|
24
|
-
export const BASE_PATH = "
|
|
24
|
+
export const BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
|
|
25
25
|
const CONFIG_DIRECTORY = '.emil';
|
|
26
26
|
const CONFIG_FILENAME = 'credentials';
|
|
27
27
|
const KEY_USERNAME = 'emil_username';
|
|
@@ -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
|
+
}
|