@emilgroup/public-api-sdk 1.39.0 → 1.39.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +9 -1
- package/README.md +2 -2
- package/api/address-completions-validations-api.ts +20 -6
- package/api/documents-api.ts +10 -8
- package/api/{default-api.ts → health-api.ts} +13 -13
- package/api/ibanvalidator-api.ts +165 -0
- package/api/leads-api.ts +98 -10
- package/api/partners-api.ts +165 -0
- package/api/payments-setup-api.ts +113 -11
- package/api.ts +6 -2
- package/dist/api/address-completions-validations-api.d.ts +12 -3
- package/dist/api/address-completions-validations-api.js +12 -6
- package/dist/api/documents-api.d.ts +9 -8
- package/dist/api/documents-api.js +3 -3
- package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
- package/dist/api/{default-api.js → health-api.js} +22 -22
- package/dist/api/ibanvalidator-api.d.ts +97 -0
- package/dist/api/ibanvalidator-api.js +224 -0
- package/dist/api/leads-api.d.ts +52 -6
- package/dist/api/leads-api.js +94 -7
- package/dist/api/partners-api.d.ts +97 -0
- package/dist/api/partners-api.js +224 -0
- package/dist/api/payments-setup-api.d.ts +62 -7
- package/dist/api/payments-setup-api.js +100 -7
- package/dist/api.d.ts +3 -1
- package/dist/api.js +3 -1
- package/dist/models/bank-data-class.d.ts +36 -0
- package/dist/models/bank-data-class.js +15 -0
- package/dist/models/get-product-document-download-url-request-rest-dto.d.ts +29 -0
- package/dist/models/get-product-document-download-url-request-rest-dto.js +20 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/validate-iban-request-dto.d.ts +24 -0
- package/dist/models/validate-iban-request-dto.js +15 -0
- package/dist/models/validate-iban-response-class.d.ts +31 -0
- package/dist/models/validate-iban-response-class.js +15 -0
- package/dist/models/validate-partner-request-dto.d.ts +30 -0
- package/dist/models/validate-partner-request-dto.js +15 -0
- package/dist/models/validate-partner-response-class.d.ts +30 -0
- package/dist/models/validate-partner-response-class.js +15 -0
- package/models/bank-data-class.ts +42 -0
- package/models/get-product-document-download-url-request-rest-dto.ts +38 -0
- package/models/index.ts +6 -0
- package/models/validate-iban-request-dto.ts +30 -0
- package/models/validate-iban-response-class.ts +37 -0
- package/models/validate-partner-request-dto.ts +36 -0
- package/models/validate-partner-response-class.ts +36 -0
- package/package.json +2 -2
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil PublicAPI
|
|
5
|
+
* The Emil Public API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { ValidatePartnerRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ValidatePartnerResponseClass } from '../models';
|
|
27
|
+
/**
|
|
28
|
+
* PartnersApi - axios parameter creator
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const PartnersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message.
|
|
35
|
+
* @summary Validate a partner
|
|
36
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
37
|
+
* @param {string} [authorization] Bearer Token
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
validatePartner: async (validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'validatePartnerRequestDto' is not null or undefined
|
|
43
|
+
assertParamExists('validatePartner', 'validatePartnerRequestDto', validatePartnerRequestDto)
|
|
44
|
+
const localVarPath = `/publicapi/v1/partners/validate`;
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
let baseAccessToken;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
baseAccessToken = configuration.accessToken;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
55
|
+
const localVarHeaderParameter = {} as any;
|
|
56
|
+
const localVarQueryParameter = {} as any;
|
|
57
|
+
|
|
58
|
+
// authentication bearer required
|
|
59
|
+
// http bearer authentication required
|
|
60
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
61
|
+
|
|
62
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
63
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
69
|
+
|
|
70
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
+
localVarRequestOptions.data = serializeDataIfNeeded(validatePartnerRequestDto, localVarRequestOptions, configuration)
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
url: toPathString(localVarUrlObj),
|
|
77
|
+
options: localVarRequestOptions,
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* PartnersApi - functional programming interface
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
87
|
+
export const PartnersApiFp = function(configuration?: Configuration) {
|
|
88
|
+
const localVarAxiosParamCreator = PartnersApiAxiosParamCreator(configuration)
|
|
89
|
+
return {
|
|
90
|
+
/**
|
|
91
|
+
* Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message.
|
|
92
|
+
* @summary Validate a partner
|
|
93
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
94
|
+
* @param {string} [authorization] Bearer Token
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
async validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidatePartnerResponseClass>> {
|
|
99
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validatePartner(validatePartnerRequestDto, authorization, options);
|
|
100
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
101
|
+
},
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* PartnersApi - factory interface
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export const PartnersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
110
|
+
const localVarFp = PartnersApiFp(configuration)
|
|
111
|
+
return {
|
|
112
|
+
/**
|
|
113
|
+
* Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message.
|
|
114
|
+
* @summary Validate a partner
|
|
115
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
116
|
+
* @param {string} [authorization] Bearer Token
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<ValidatePartnerResponseClass> {
|
|
121
|
+
return localVarFp.validatePartner(validatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Request parameters for validatePartner operation in PartnersApi.
|
|
128
|
+
* @export
|
|
129
|
+
* @interface PartnersApiValidatePartnerRequest
|
|
130
|
+
*/
|
|
131
|
+
export interface PartnersApiValidatePartnerRequest {
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {ValidatePartnerRequestDto}
|
|
135
|
+
* @memberof PartnersApiValidatePartner
|
|
136
|
+
*/
|
|
137
|
+
readonly validatePartnerRequestDto: ValidatePartnerRequestDto
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Bearer Token
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof PartnersApiValidatePartner
|
|
143
|
+
*/
|
|
144
|
+
readonly authorization?: string
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* PartnersApi - object-oriented interface
|
|
149
|
+
* @export
|
|
150
|
+
* @class PartnersApi
|
|
151
|
+
* @extends {BaseAPI}
|
|
152
|
+
*/
|
|
153
|
+
export class PartnersApi extends BaseAPI {
|
|
154
|
+
/**
|
|
155
|
+
* Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message.
|
|
156
|
+
* @summary Validate a partner
|
|
157
|
+
* @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
* @memberof PartnersApi
|
|
161
|
+
*/
|
|
162
|
+
public validatePartner(requestParameters: PartnersApiValidatePartnerRequest, options?: AxiosRequestConfig) {
|
|
163
|
+
return PartnersApiFp(this.configuration).validatePartner(requestParameters.validatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -91,15 +91,61 @@ export const PaymentsSetupApiAxiosParamCreator = function (configuration?: Confi
|
|
|
91
91
|
/**
|
|
92
92
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
93
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
|
+
},
|
|
137
|
+
/**
|
|
138
|
+
* Retrieves the details of the psp-settings that was previously created. Supply the unique psp-settings code that was returned when you created it and Emil Api will return the corresponding psp-settings information.
|
|
139
|
+
* @summary Retrieve the psp-settings
|
|
94
140
|
* @param {string} productSlug
|
|
95
141
|
* @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.
|
|
96
142
|
* @param {string} [authorization] Bearer Token
|
|
97
143
|
* @param {*} [options] Override http request option.
|
|
98
144
|
* @throws {RequiredError}
|
|
99
145
|
*/
|
|
100
|
-
|
|
146
|
+
getPublicPSPConfigForProduct: async (productSlug: string, idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
147
|
// verify required parameter 'productSlug' is not null or undefined
|
|
102
|
-
assertParamExists('
|
|
148
|
+
assertParamExists('getPublicPSPConfigForProduct', 'productSlug', productSlug)
|
|
103
149
|
const localVarPath = `/publicapi/v1/payment-setup/get-psp-config/{productSlug}`
|
|
104
150
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
105
151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -216,14 +262,26 @@ export const PaymentsSetupApiFp = function(configuration?: Configuration) {
|
|
|
216
262
|
/**
|
|
217
263
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
218
264
|
* @summary Get public key and psp
|
|
265
|
+
* @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.
|
|
266
|
+
* @param {string} [authorization] Bearer Token
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
*/
|
|
270
|
+
async getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>> {
|
|
271
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPSPConfig(idempotencyKey, authorization, options);
|
|
272
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
273
|
+
},
|
|
274
|
+
/**
|
|
275
|
+
* Retrieves the details of the psp-settings that was previously created. Supply the unique psp-settings code that was returned when you created it and Emil Api will return the corresponding psp-settings information.
|
|
276
|
+
* @summary Retrieve the psp-settings
|
|
219
277
|
* @param {string} productSlug
|
|
220
278
|
* @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.
|
|
221
279
|
* @param {string} [authorization] Bearer Token
|
|
222
280
|
* @param {*} [options] Override http request option.
|
|
223
281
|
* @throws {RequiredError}
|
|
224
282
|
*/
|
|
225
|
-
async
|
|
226
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
283
|
+
async getPublicPSPConfigForProduct(productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>> {
|
|
284
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPSPConfigForProduct(productSlug, idempotencyKey, authorization, options);
|
|
227
285
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
228
286
|
},
|
|
229
287
|
/**
|
|
@@ -264,14 +322,25 @@ export const PaymentsSetupApiFactory = function (configuration?: Configuration,
|
|
|
264
322
|
/**
|
|
265
323
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
266
324
|
* @summary Get public key and psp
|
|
325
|
+
* @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.
|
|
326
|
+
* @param {string} [authorization] Bearer Token
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass> {
|
|
331
|
+
return localVarFp.getPublicPSPConfig(idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
332
|
+
},
|
|
333
|
+
/**
|
|
334
|
+
* Retrieves the details of the psp-settings that was previously created. Supply the unique psp-settings code that was returned when you created it and Emil Api will return the corresponding psp-settings information.
|
|
335
|
+
* @summary Retrieve the psp-settings
|
|
267
336
|
* @param {string} productSlug
|
|
268
337
|
* @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.
|
|
269
338
|
* @param {string} [authorization] Bearer Token
|
|
270
339
|
* @param {*} [options] Override http request option.
|
|
271
340
|
* @throws {RequiredError}
|
|
272
341
|
*/
|
|
273
|
-
|
|
274
|
-
return localVarFp.
|
|
342
|
+
getPublicPSPConfigForProduct(productSlug: string, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass> {
|
|
343
|
+
return localVarFp.getPublicPSPConfigForProduct(productSlug, idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
275
344
|
},
|
|
276
345
|
/**
|
|
277
346
|
* 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.
|
|
@@ -323,23 +392,44 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
|
|
|
323
392
|
*/
|
|
324
393
|
export interface PaymentsSetupApiGetPublicPSPConfigRequest {
|
|
325
394
|
/**
|
|
326
|
-
*
|
|
395
|
+
* 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.
|
|
396
|
+
* @type {string}
|
|
397
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
398
|
+
*/
|
|
399
|
+
readonly idempotencyKey?: string
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Bearer Token
|
|
327
403
|
* @type {string}
|
|
328
404
|
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
329
405
|
*/
|
|
406
|
+
readonly authorization?: string
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Request parameters for getPublicPSPConfigForProduct operation in PaymentsSetupApi.
|
|
411
|
+
* @export
|
|
412
|
+
* @interface PaymentsSetupApiGetPublicPSPConfigForProductRequest
|
|
413
|
+
*/
|
|
414
|
+
export interface PaymentsSetupApiGetPublicPSPConfigForProductRequest {
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @type {string}
|
|
418
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfigForProduct
|
|
419
|
+
*/
|
|
330
420
|
readonly productSlug: string
|
|
331
421
|
|
|
332
422
|
/**
|
|
333
423
|
* 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.
|
|
334
424
|
* @type {string}
|
|
335
|
-
* @memberof
|
|
425
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfigForProduct
|
|
336
426
|
*/
|
|
337
427
|
readonly idempotencyKey?: string
|
|
338
428
|
|
|
339
429
|
/**
|
|
340
430
|
* Bearer Token
|
|
341
431
|
* @type {string}
|
|
342
|
-
* @memberof
|
|
432
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfigForProduct
|
|
343
433
|
*/
|
|
344
434
|
readonly authorization?: string
|
|
345
435
|
}
|
|
@@ -399,8 +489,20 @@ export class PaymentsSetupApi extends BaseAPI {
|
|
|
399
489
|
* @throws {RequiredError}
|
|
400
490
|
* @memberof PaymentsSetupApi
|
|
401
491
|
*/
|
|
402
|
-
public getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest, options?: AxiosRequestConfig) {
|
|
403
|
-
return PaymentsSetupApiFp(this.configuration).getPublicPSPConfig(requestParameters.
|
|
492
|
+
public getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest = {}, options?: AxiosRequestConfig) {
|
|
493
|
+
return PaymentsSetupApiFp(this.configuration).getPublicPSPConfig(requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Retrieves the details of the psp-settings that was previously created. Supply the unique psp-settings code that was returned when you created it and Emil Api will return the corresponding psp-settings information.
|
|
498
|
+
* @summary Retrieve the psp-settings
|
|
499
|
+
* @param {PaymentsSetupApiGetPublicPSPConfigForProductRequest} requestParameters Request parameters.
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
* @memberof PaymentsSetupApi
|
|
503
|
+
*/
|
|
504
|
+
public getPublicPSPConfigForProduct(requestParameters: PaymentsSetupApiGetPublicPSPConfigForProductRequest, options?: AxiosRequestConfig) {
|
|
505
|
+
return PaymentsSetupApiFp(this.configuration).getPublicPSPConfigForProduct(requestParameters.productSlug, requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
404
506
|
}
|
|
405
507
|
|
|
406
508
|
/**
|
package/api.ts
CHANGED
|
@@ -22,11 +22,13 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
import { AddressCompletionsValidationsApi } from './api';
|
|
24
24
|
import { BookingFunnelsApi } from './api';
|
|
25
|
-
import { DefaultApi } from './api';
|
|
26
25
|
import { DocumentsApi } from './api';
|
|
26
|
+
import { HealthApi } from './api';
|
|
27
|
+
import { IBANValidatorApi } from './api';
|
|
27
28
|
import { LeadsApi } from './api';
|
|
28
29
|
import { NamedRangesApi } from './api';
|
|
29
30
|
import { NotificationsApi } from './api';
|
|
31
|
+
import { PartnersApi } from './api';
|
|
30
32
|
import { PaymentsSetupApi } from './api';
|
|
31
33
|
import { ProductVersionsApi } from './api';
|
|
32
34
|
import { ProductsApi } from './api';
|
|
@@ -34,11 +36,13 @@ import { ProductsApi } from './api';
|
|
|
34
36
|
|
|
35
37
|
export * from './api/address-completions-validations-api';
|
|
36
38
|
export * from './api/booking-funnels-api';
|
|
37
|
-
export * from './api/default-api';
|
|
38
39
|
export * from './api/documents-api';
|
|
40
|
+
export * from './api/health-api';
|
|
41
|
+
export * from './api/ibanvalidator-api';
|
|
39
42
|
export * from './api/leads-api';
|
|
40
43
|
export * from './api/named-ranges-api';
|
|
41
44
|
export * from './api/notifications-api';
|
|
45
|
+
export * from './api/partners-api';
|
|
42
46
|
export * from './api/payments-setup-api';
|
|
43
47
|
export * from './api/product-versions-api';
|
|
44
48
|
export * from './api/products-api';
|
|
@@ -40,10 +40,11 @@ export declare const AddressCompletionsValidationsApiAxiosParamCreator: (configu
|
|
|
40
40
|
* @param {string} houseNumber The house number of the address
|
|
41
41
|
* @param {string} [authorization] Bearer Token
|
|
42
42
|
* @param {string} [completeAddress] The complete address to validate
|
|
43
|
+
* @param {any} [limit]
|
|
43
44
|
* @param {*} [options] Override http request option.
|
|
44
45
|
* @throws {RequiredError}
|
|
45
46
|
*/
|
|
46
|
-
validateAddress: (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
|
+
validateAddress: (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
48
|
};
|
|
48
49
|
/**
|
|
49
50
|
* AddressCompletionsValidationsApi - functional programming interface
|
|
@@ -71,10 +72,11 @@ export declare const AddressCompletionsValidationsApiFp: (configuration?: Config
|
|
|
71
72
|
* @param {string} houseNumber The house number of the address
|
|
72
73
|
* @param {string} [authorization] Bearer Token
|
|
73
74
|
* @param {string} [completeAddress] The complete address to validate
|
|
75
|
+
* @param {any} [limit]
|
|
74
76
|
* @param {*} [options] Override http request option.
|
|
75
77
|
* @throws {RequiredError}
|
|
76
78
|
*/
|
|
77
|
-
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAddressResponseClass>>;
|
|
79
|
+
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAddressResponseClass>>;
|
|
78
80
|
};
|
|
79
81
|
/**
|
|
80
82
|
* AddressCompletionsValidationsApi - factory interface
|
|
@@ -102,10 +104,11 @@ export declare const AddressCompletionsValidationsApiFactory: (configuration?: C
|
|
|
102
104
|
* @param {string} houseNumber The house number of the address
|
|
103
105
|
* @param {string} [authorization] Bearer Token
|
|
104
106
|
* @param {string} [completeAddress] The complete address to validate
|
|
107
|
+
* @param {any} [limit]
|
|
105
108
|
* @param {*} [options] Override http request option.
|
|
106
109
|
* @throws {RequiredError}
|
|
107
110
|
*/
|
|
108
|
-
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: any): AxiosPromise<ValidateAddressResponseClass>;
|
|
111
|
+
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options?: any): AxiosPromise<ValidateAddressResponseClass>;
|
|
109
112
|
};
|
|
110
113
|
/**
|
|
111
114
|
* Request parameters for listAddressCompletions operation in AddressCompletionsValidationsApi.
|
|
@@ -186,6 +189,12 @@ export interface AddressCompletionsValidationsApiValidateAddressRequest {
|
|
|
186
189
|
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
187
190
|
*/
|
|
188
191
|
readonly completeAddress?: string;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @type {any}
|
|
195
|
+
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
196
|
+
*/
|
|
197
|
+
readonly limit?: any;
|
|
189
198
|
}
|
|
190
199
|
/**
|
|
191
200
|
* AddressCompletionsValidationsApi - object-oriented interface
|
|
@@ -160,10 +160,11 @@ var AddressCompletionsValidationsApiAxiosParamCreator = function (configuration)
|
|
|
160
160
|
* @param {string} houseNumber The house number of the address
|
|
161
161
|
* @param {string} [authorization] Bearer Token
|
|
162
162
|
* @param {string} [completeAddress] The complete address to validate
|
|
163
|
+
* @param {any} [limit]
|
|
163
164
|
* @param {*} [options] Override http request option.
|
|
164
165
|
* @throws {RequiredError}
|
|
165
166
|
*/
|
|
166
|
-
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
|
|
167
|
+
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options) {
|
|
167
168
|
if (options === void 0) { options = {}; }
|
|
168
169
|
return __awaiter(_this, void 0, void 0, function () {
|
|
169
170
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -214,6 +215,9 @@ var AddressCompletionsValidationsApiAxiosParamCreator = function (configuration)
|
|
|
214
215
|
if (houseNumber !== undefined) {
|
|
215
216
|
localVarQueryParameter['houseNumber'] = houseNumber;
|
|
216
217
|
}
|
|
218
|
+
if (limit !== undefined) {
|
|
219
|
+
localVarQueryParameter['limit'] = limit;
|
|
220
|
+
}
|
|
217
221
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
218
222
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
219
223
|
}
|
|
@@ -271,15 +275,16 @@ var AddressCompletionsValidationsApiFp = function (configuration) {
|
|
|
271
275
|
* @param {string} houseNumber The house number of the address
|
|
272
276
|
* @param {string} [authorization] Bearer Token
|
|
273
277
|
* @param {string} [completeAddress] The complete address to validate
|
|
278
|
+
* @param {any} [limit]
|
|
274
279
|
* @param {*} [options] Override http request option.
|
|
275
280
|
* @throws {RequiredError}
|
|
276
281
|
*/
|
|
277
|
-
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
|
|
282
|
+
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options) {
|
|
278
283
|
return __awaiter(this, void 0, void 0, function () {
|
|
279
284
|
var localVarAxiosArgs;
|
|
280
285
|
return __generator(this, function (_a) {
|
|
281
286
|
switch (_a.label) {
|
|
282
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options)];
|
|
287
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options)];
|
|
283
288
|
case 1:
|
|
284
289
|
localVarAxiosArgs = _a.sent();
|
|
285
290
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -320,11 +325,12 @@ var AddressCompletionsValidationsApiFactory = function (configuration, basePath,
|
|
|
320
325
|
* @param {string} houseNumber The house number of the address
|
|
321
326
|
* @param {string} [authorization] Bearer Token
|
|
322
327
|
* @param {string} [completeAddress] The complete address to validate
|
|
328
|
+
* @param {any} [limit]
|
|
323
329
|
* @param {*} [options] Override http request option.
|
|
324
330
|
* @throws {RequiredError}
|
|
325
331
|
*/
|
|
326
|
-
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
|
|
327
|
-
return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options).then(function (request) { return request(axios, basePath); });
|
|
332
|
+
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options) {
|
|
333
|
+
return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options).then(function (request) { return request(axios, basePath); });
|
|
328
334
|
},
|
|
329
335
|
};
|
|
330
336
|
};
|
|
@@ -362,7 +368,7 @@ var AddressCompletionsValidationsApi = /** @class */ (function (_super) {
|
|
|
362
368
|
*/
|
|
363
369
|
AddressCompletionsValidationsApi.prototype.validateAddress = function (requestParameters, options) {
|
|
364
370
|
var _this = this;
|
|
365
|
-
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); });
|
|
371
|
+
return (0, exports.AddressCompletionsValidationsApiFp)(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress, requestParameters.limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
366
372
|
};
|
|
367
373
|
return AddressCompletionsValidationsApi;
|
|
368
374
|
}(base_1.BaseAPI));
|
|
@@ -15,6 +15,7 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import { CreateDocumentRequestDto } from '../models';
|
|
16
16
|
import { CreatePresignedPostRequestDto } from '../models';
|
|
17
17
|
import { CreatePresignedPostResponseClass } from '../models';
|
|
18
|
+
import { GetProductDocumentDownloadUrlRequestRestDto } from '../models';
|
|
18
19
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
19
20
|
import { ListDocumentsResponseClass } from '../models';
|
|
20
21
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
@@ -57,11 +58,11 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
57
58
|
* @param {string} productCode
|
|
58
59
|
* @param {string} code
|
|
59
60
|
* @param {string} [authorization] Bearer Token
|
|
60
|
-
* @param {
|
|
61
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
61
62
|
* @param {*} [options] Override http request option.
|
|
62
63
|
* @throws {RequiredError}
|
|
63
64
|
*/
|
|
64
|
-
downloadProductDocumentUrl: (productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
65
|
+
downloadProductDocumentUrl: (productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
66
|
/**
|
|
66
67
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
67
68
|
* @summary List documents
|
|
@@ -140,11 +141,11 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
140
141
|
* @param {string} productCode
|
|
141
142
|
* @param {string} code
|
|
142
143
|
* @param {string} [authorization] Bearer Token
|
|
143
|
-
* @param {
|
|
144
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
144
145
|
* @param {*} [options] Override http request option.
|
|
145
146
|
* @throws {RequiredError}
|
|
146
147
|
*/
|
|
147
|
-
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
148
|
+
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>>;
|
|
148
149
|
/**
|
|
149
150
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
150
151
|
* @summary List documents
|
|
@@ -223,11 +224,11 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
223
224
|
* @param {string} productCode
|
|
224
225
|
* @param {string} code
|
|
225
226
|
* @param {string} [authorization] Bearer Token
|
|
226
|
-
* @param {
|
|
227
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
227
228
|
* @param {*} [options] Override http request option.
|
|
228
229
|
* @throws {RequiredError}
|
|
229
230
|
*/
|
|
230
|
-
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
231
|
+
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass>;
|
|
231
232
|
/**
|
|
232
233
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
233
234
|
* @summary List documents
|
|
@@ -356,10 +357,10 @@ export interface DocumentsApiDownloadProductDocumentUrlRequest {
|
|
|
356
357
|
readonly authorization?: string;
|
|
357
358
|
/**
|
|
358
359
|
* Content disposition override. Default will be depending on the document type.
|
|
359
|
-
* @type {
|
|
360
|
+
* @type {GetProductDocumentDownloadUrlRequestRestDto}
|
|
360
361
|
* @memberof DocumentsApiDownloadProductDocumentUrl
|
|
361
362
|
*/
|
|
362
|
-
readonly contentDisposition?:
|
|
363
|
+
readonly contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto;
|
|
363
364
|
}
|
|
364
365
|
/**
|
|
365
366
|
* Request parameters for listDocuments operation in DocumentsApi.
|
|
@@ -247,7 +247,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
247
247
|
* @param {string} productCode
|
|
248
248
|
* @param {string} code
|
|
249
249
|
* @param {string} [authorization] Bearer Token
|
|
250
|
-
* @param {
|
|
250
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
251
251
|
* @param {*} [options] Override http request option.
|
|
252
252
|
* @throws {RequiredError}
|
|
253
253
|
*/
|
|
@@ -568,7 +568,7 @@ var DocumentsApiFp = function (configuration) {
|
|
|
568
568
|
* @param {string} productCode
|
|
569
569
|
* @param {string} code
|
|
570
570
|
* @param {string} [authorization] Bearer Token
|
|
571
|
-
* @param {
|
|
571
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
572
572
|
* @param {*} [options] Override http request option.
|
|
573
573
|
* @throws {RequiredError}
|
|
574
574
|
*/
|
|
@@ -709,7 +709,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
709
709
|
* @param {string} productCode
|
|
710
710
|
* @param {string} code
|
|
711
711
|
* @param {string} [authorization] Bearer Token
|
|
712
|
-
* @param {
|
|
712
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
713
713
|
* @param {*} [options] Override http request option.
|
|
714
714
|
* @throws {RequiredError}
|
|
715
715
|
*/
|