@emilgroup/public-api-sdk-node 1.40.1-beta.8 → 1.41.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 +1 -5
- package/README.md +2 -2
- package/api/address-completions-validations-api.ts +6 -20
- package/api/{health-api.ts → default-api.ts} +13 -13
- package/api/documents-api.ts +8 -10
- package/api/leads-api.ts +10 -98
- package/api/payments-setup-api.ts +11 -113
- package/api.ts +2 -4
- package/dist/api/address-completions-validations-api.d.ts +3 -12
- package/dist/api/address-completions-validations-api.js +6 -12
- package/dist/api/{health-api.d.ts → default-api.d.ts} +10 -10
- package/dist/api/{health-api.js → default-api.js} +22 -22
- package/dist/api/documents-api.d.ts +8 -9
- package/dist/api/documents-api.js +3 -3
- package/dist/api/leads-api.d.ts +6 -52
- package/dist/api/leads-api.js +7 -94
- package/dist/api/payments-setup-api.d.ts +7 -62
- package/dist/api/payments-setup-api.js +7 -100
- package/dist/api.d.ts +1 -2
- package/dist/api.js +1 -2
- package/dist/models/deductible-class.d.ts +6 -0
- package/dist/models/index.d.ts +0 -3
- package/dist/models/index.js +0 -3
- package/dist/models/tariff-category-summary-class.d.ts +0 -7
- package/models/deductible-class.ts +6 -0
- package/models/index.ts +0 -3
- package/models/tariff-category-summary-class.ts +0 -7
- package/package.json +1 -1
- package/api/partners-api.ts +0 -169
- package/dist/api/partners-api.d.ts +0 -97
- package/dist/api/partners-api.js +0 -228
- package/dist/models/get-product-document-download-url-request-rest-dto.d.ts +0 -29
- package/dist/models/get-product-document-download-url-request-rest-dto.js +0 -20
- package/dist/models/validate-partner-request-dto.d.ts +0 -30
- package/dist/models/validate-partner-request-dto.js +0 -15
- package/dist/models/validate-partner-response-class.d.ts +0 -30
- package/dist/models/validate-partner-response-class.js +0 -15
- package/models/get-product-document-download-url-request-rest-dto.ts +0 -38
- package/models/validate-partner-request-dto.ts +0 -36
- package/models/validate-partner-response-class.ts +0 -36
|
@@ -35,22 +35,13 @@ export declare const PaymentsSetupApiAxiosParamCreator: (configuration?: Configu
|
|
|
35
35
|
/**
|
|
36
36
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
37
37
|
* @summary Get public key and psp
|
|
38
|
-
* @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.
|
|
39
|
-
* @param {string} [authorization] Bearer Token
|
|
40
|
-
* @param {*} [options] Override http request option.
|
|
41
|
-
* @throws {RequiredError}
|
|
42
|
-
*/
|
|
43
|
-
getPublicPSPConfig: (idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
-
/**
|
|
45
|
-
* 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.
|
|
46
|
-
* @summary Retrieve the psp-settings
|
|
47
38
|
* @param {string} productSlug
|
|
48
39
|
* @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.
|
|
49
40
|
* @param {string} [authorization] Bearer Token
|
|
50
41
|
* @param {*} [options] Override http request option.
|
|
51
42
|
* @throws {RequiredError}
|
|
52
43
|
*/
|
|
53
|
-
|
|
44
|
+
getPublicPSPConfig: (productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
45
|
/**
|
|
55
46
|
* 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.
|
|
56
47
|
* @summary Initiate a payment setup
|
|
@@ -80,22 +71,13 @@ export declare const PaymentsSetupApiFp: (configuration?: Configuration) => {
|
|
|
80
71
|
/**
|
|
81
72
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
82
73
|
* @summary Get public key and psp
|
|
83
|
-
* @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.
|
|
84
|
-
* @param {string} [authorization] Bearer Token
|
|
85
|
-
* @param {*} [options] Override http request option.
|
|
86
|
-
* @throws {RequiredError}
|
|
87
|
-
*/
|
|
88
|
-
getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>>;
|
|
89
|
-
/**
|
|
90
|
-
* 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.
|
|
91
|
-
* @summary Retrieve the psp-settings
|
|
92
74
|
* @param {string} productSlug
|
|
93
75
|
* @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.
|
|
94
76
|
* @param {string} [authorization] Bearer Token
|
|
95
77
|
* @param {*} [options] Override http request option.
|
|
96
78
|
* @throws {RequiredError}
|
|
97
79
|
*/
|
|
98
|
-
|
|
80
|
+
getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>>;
|
|
99
81
|
/**
|
|
100
82
|
* 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.
|
|
101
83
|
* @summary Initiate a payment setup
|
|
@@ -125,22 +107,13 @@ export declare const PaymentsSetupApiFactory: (configuration?: Configuration, ba
|
|
|
125
107
|
/**
|
|
126
108
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
127
109
|
* @summary Get public key and psp
|
|
128
|
-
* @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.
|
|
129
|
-
* @param {string} [authorization] Bearer Token
|
|
130
|
-
* @param {*} [options] Override http request option.
|
|
131
|
-
* @throws {RequiredError}
|
|
132
|
-
*/
|
|
133
|
-
getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass>;
|
|
134
|
-
/**
|
|
135
|
-
* 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.
|
|
136
|
-
* @summary Retrieve the psp-settings
|
|
137
110
|
* @param {string} productSlug
|
|
138
111
|
* @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.
|
|
139
112
|
* @param {string} [authorization] Bearer Token
|
|
140
113
|
* @param {*} [options] Override http request option.
|
|
141
114
|
* @throws {RequiredError}
|
|
142
115
|
*/
|
|
143
|
-
|
|
116
|
+
getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass>;
|
|
144
117
|
/**
|
|
145
118
|
* 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.
|
|
146
119
|
* @summary Initiate a payment setup
|
|
@@ -183,41 +156,22 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
|
|
|
183
156
|
* @interface PaymentsSetupApiGetPublicPSPConfigRequest
|
|
184
157
|
*/
|
|
185
158
|
export interface PaymentsSetupApiGetPublicPSPConfigRequest {
|
|
186
|
-
/**
|
|
187
|
-
* 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.
|
|
188
|
-
* @type {string}
|
|
189
|
-
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
190
|
-
*/
|
|
191
|
-
readonly idempotencyKey?: string;
|
|
192
|
-
/**
|
|
193
|
-
* Bearer Token
|
|
194
|
-
* @type {string}
|
|
195
|
-
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
196
|
-
*/
|
|
197
|
-
readonly authorization?: string;
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Request parameters for getPublicPSPConfigForProduct operation in PaymentsSetupApi.
|
|
201
|
-
* @export
|
|
202
|
-
* @interface PaymentsSetupApiGetPublicPSPConfigForProductRequest
|
|
203
|
-
*/
|
|
204
|
-
export interface PaymentsSetupApiGetPublicPSPConfigForProductRequest {
|
|
205
159
|
/**
|
|
206
160
|
*
|
|
207
161
|
* @type {string}
|
|
208
|
-
* @memberof
|
|
162
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
209
163
|
*/
|
|
210
164
|
readonly productSlug: string;
|
|
211
165
|
/**
|
|
212
166
|
* 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.
|
|
213
167
|
* @type {string}
|
|
214
|
-
* @memberof
|
|
168
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
215
169
|
*/
|
|
216
170
|
readonly idempotencyKey?: string;
|
|
217
171
|
/**
|
|
218
172
|
* Bearer Token
|
|
219
173
|
* @type {string}
|
|
220
|
-
* @memberof
|
|
174
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
221
175
|
*/
|
|
222
176
|
readonly authorization?: string;
|
|
223
177
|
}
|
|
@@ -270,16 +224,7 @@ export declare class PaymentsSetupApi extends BaseAPI {
|
|
|
270
224
|
* @throws {RequiredError}
|
|
271
225
|
* @memberof PaymentsSetupApi
|
|
272
226
|
*/
|
|
273
|
-
getPublicPSPConfig(requestParameters
|
|
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
|
|
277
|
-
* @param {PaymentsSetupApiGetPublicPSPConfigForProductRequest} requestParameters Request parameters.
|
|
278
|
-
* @param {*} [options] Override http request option.
|
|
279
|
-
* @throws {RequiredError}
|
|
280
|
-
* @memberof PaymentsSetupApi
|
|
281
|
-
*/
|
|
282
|
-
getPublicPSPConfigForProduct(requestParameters: PaymentsSetupApiGetPublicPSPConfigForProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPublicPspSettingsResponseClass, any, {}>>;
|
|
227
|
+
getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPublicPspSettingsResponseClass, any, {}>>;
|
|
283
228
|
/**
|
|
284
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.
|
|
285
230
|
* @summary Initiate a payment setup
|
|
@@ -152,61 +152,13 @@ var PaymentsSetupApiAxiosParamCreator = function (configuration) {
|
|
|
152
152
|
/**
|
|
153
153
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
154
154
|
* @summary Get public key and psp
|
|
155
|
-
* @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.
|
|
156
|
-
* @param {string} [authorization] Bearer Token
|
|
157
|
-
* @param {*} [options] Override http request option.
|
|
158
|
-
* @throws {RequiredError}
|
|
159
|
-
*/
|
|
160
|
-
getPublicPSPConfig: function (idempotencyKey, authorization, options) {
|
|
161
|
-
if (options === void 0) { options = {}; }
|
|
162
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
163
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
164
|
-
return __generator(this, function (_a) {
|
|
165
|
-
switch (_a.label) {
|
|
166
|
-
case 0:
|
|
167
|
-
localVarPath = "/publicapi/v1/payment-setup/get-psp-config";
|
|
168
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
169
|
-
if (configuration) {
|
|
170
|
-
baseOptions = configuration.baseOptions;
|
|
171
|
-
baseAccessToken = configuration.accessToken;
|
|
172
|
-
}
|
|
173
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
174
|
-
localVarHeaderParameter = {};
|
|
175
|
-
localVarQueryParameter = {};
|
|
176
|
-
// authentication bearer required
|
|
177
|
-
// http bearer authentication required
|
|
178
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
179
|
-
case 1:
|
|
180
|
-
// authentication bearer required
|
|
181
|
-
// http bearer authentication required
|
|
182
|
-
_a.sent();
|
|
183
|
-
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
184
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
185
|
-
}
|
|
186
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
187
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
188
|
-
}
|
|
189
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
190
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
191
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
192
|
-
return [2 /*return*/, {
|
|
193
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
194
|
-
options: localVarRequestOptions,
|
|
195
|
-
}];
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
});
|
|
199
|
-
},
|
|
200
|
-
/**
|
|
201
|
-
* 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.
|
|
202
|
-
* @summary Retrieve the psp-settings
|
|
203
155
|
* @param {string} productSlug
|
|
204
156
|
* @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.
|
|
205
157
|
* @param {string} [authorization] Bearer Token
|
|
206
158
|
* @param {*} [options] Override http request option.
|
|
207
159
|
* @throws {RequiredError}
|
|
208
160
|
*/
|
|
209
|
-
|
|
161
|
+
getPublicPSPConfig: function (productSlug, idempotencyKey, authorization, options) {
|
|
210
162
|
if (options === void 0) { options = {}; }
|
|
211
163
|
return __awaiter(_this, void 0, void 0, function () {
|
|
212
164
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -214,7 +166,7 @@ var PaymentsSetupApiAxiosParamCreator = function (configuration) {
|
|
|
214
166
|
switch (_a.label) {
|
|
215
167
|
case 0:
|
|
216
168
|
// verify required parameter 'productSlug' is not null or undefined
|
|
217
|
-
(0, common_1.assertParamExists)('
|
|
169
|
+
(0, common_1.assertParamExists)('getPublicPSPConfig', 'productSlug', productSlug);
|
|
218
170
|
localVarPath = "/publicapi/v1/payment-setup/get-psp-config/{productSlug}"
|
|
219
171
|
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
220
172
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -337,39 +289,18 @@ var PaymentsSetupApiFp = function (configuration) {
|
|
|
337
289
|
/**
|
|
338
290
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
339
291
|
* @summary Get public key and psp
|
|
340
|
-
* @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.
|
|
341
|
-
* @param {string} [authorization] Bearer Token
|
|
342
|
-
* @param {*} [options] Override http request option.
|
|
343
|
-
* @throws {RequiredError}
|
|
344
|
-
*/
|
|
345
|
-
getPublicPSPConfig: function (idempotencyKey, authorization, options) {
|
|
346
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
347
|
-
var localVarAxiosArgs;
|
|
348
|
-
return __generator(this, function (_a) {
|
|
349
|
-
switch (_a.label) {
|
|
350
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPublicPSPConfig(idempotencyKey, authorization, options)];
|
|
351
|
-
case 1:
|
|
352
|
-
localVarAxiosArgs = _a.sent();
|
|
353
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
354
|
-
}
|
|
355
|
-
});
|
|
356
|
-
});
|
|
357
|
-
},
|
|
358
|
-
/**
|
|
359
|
-
* 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.
|
|
360
|
-
* @summary Retrieve the psp-settings
|
|
361
292
|
* @param {string} productSlug
|
|
362
293
|
* @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.
|
|
363
294
|
* @param {string} [authorization] Bearer Token
|
|
364
295
|
* @param {*} [options] Override http request option.
|
|
365
296
|
* @throws {RequiredError}
|
|
366
297
|
*/
|
|
367
|
-
|
|
298
|
+
getPublicPSPConfig: function (productSlug, idempotencyKey, authorization, options) {
|
|
368
299
|
return __awaiter(this, void 0, void 0, function () {
|
|
369
300
|
var localVarAxiosArgs;
|
|
370
301
|
return __generator(this, function (_a) {
|
|
371
302
|
switch (_a.label) {
|
|
372
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
303
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options)];
|
|
373
304
|
case 1:
|
|
374
305
|
localVarAxiosArgs = _a.sent();
|
|
375
306
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -424,25 +355,14 @@ var PaymentsSetupApiFactory = function (configuration, basePath, axios) {
|
|
|
424
355
|
/**
|
|
425
356
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
426
357
|
* @summary Get public key and psp
|
|
427
|
-
* @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.
|
|
428
|
-
* @param {string} [authorization] Bearer Token
|
|
429
|
-
* @param {*} [options] Override http request option.
|
|
430
|
-
* @throws {RequiredError}
|
|
431
|
-
*/
|
|
432
|
-
getPublicPSPConfig: function (idempotencyKey, authorization, options) {
|
|
433
|
-
return localVarFp.getPublicPSPConfig(idempotencyKey, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
434
|
-
},
|
|
435
|
-
/**
|
|
436
|
-
* 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.
|
|
437
|
-
* @summary Retrieve the psp-settings
|
|
438
358
|
* @param {string} productSlug
|
|
439
359
|
* @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.
|
|
440
360
|
* @param {string} [authorization] Bearer Token
|
|
441
361
|
* @param {*} [options] Override http request option.
|
|
442
362
|
* @throws {RequiredError}
|
|
443
363
|
*/
|
|
444
|
-
|
|
445
|
-
return localVarFp.
|
|
364
|
+
getPublicPSPConfig: function (productSlug, idempotencyKey, authorization, options) {
|
|
365
|
+
return localVarFp.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
446
366
|
},
|
|
447
367
|
/**
|
|
448
368
|
* 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.
|
|
@@ -492,20 +412,7 @@ var PaymentsSetupApi = /** @class */ (function (_super) {
|
|
|
492
412
|
*/
|
|
493
413
|
PaymentsSetupApi.prototype.getPublicPSPConfig = function (requestParameters, options) {
|
|
494
414
|
var _this = this;
|
|
495
|
-
|
|
496
|
-
return (0, exports.PaymentsSetupApiFp)(this.configuration).getPublicPSPConfig(requestParameters.idempotencyKey, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
497
|
-
};
|
|
498
|
-
/**
|
|
499
|
-
* 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.
|
|
500
|
-
* @summary Retrieve the psp-settings
|
|
501
|
-
* @param {PaymentsSetupApiGetPublicPSPConfigForProductRequest} requestParameters Request parameters.
|
|
502
|
-
* @param {*} [options] Override http request option.
|
|
503
|
-
* @throws {RequiredError}
|
|
504
|
-
* @memberof PaymentsSetupApi
|
|
505
|
-
*/
|
|
506
|
-
PaymentsSetupApi.prototype.getPublicPSPConfigForProduct = function (requestParameters, options) {
|
|
507
|
-
var _this = this;
|
|
508
|
-
return (0, exports.PaymentsSetupApiFp)(this.configuration).getPublicPSPConfigForProduct(requestParameters.productSlug, requestParameters.idempotencyKey, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
415
|
+
return (0, exports.PaymentsSetupApiFp)(this.configuration).getPublicPSPConfig(requestParameters.productSlug, requestParameters.idempotencyKey, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
509
416
|
};
|
|
510
417
|
/**
|
|
511
418
|
* 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.
|
package/dist/api.d.ts
CHANGED
|
@@ -11,12 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export * from './api/address-completions-validations-api';
|
|
13
13
|
export * from './api/booking-funnels-api';
|
|
14
|
+
export * from './api/default-api';
|
|
14
15
|
export * from './api/documents-api';
|
|
15
|
-
export * from './api/health-api';
|
|
16
16
|
export * from './api/leads-api';
|
|
17
17
|
export * from './api/named-ranges-api';
|
|
18
18
|
export * from './api/notifications-api';
|
|
19
|
-
export * from './api/partners-api';
|
|
20
19
|
export * from './api/payments-setup-api';
|
|
21
20
|
export * from './api/product-versions-api';
|
|
22
21
|
export * from './api/products-api';
|
package/dist/api.js
CHANGED
|
@@ -29,12 +29,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/address-completions-validations-api"), exports);
|
|
31
31
|
__exportStar(require("./api/booking-funnels-api"), exports);
|
|
32
|
+
__exportStar(require("./api/default-api"), exports);
|
|
32
33
|
__exportStar(require("./api/documents-api"), exports);
|
|
33
|
-
__exportStar(require("./api/health-api"), exports);
|
|
34
34
|
__exportStar(require("./api/leads-api"), exports);
|
|
35
35
|
__exportStar(require("./api/named-ranges-api"), exports);
|
|
36
36
|
__exportStar(require("./api/notifications-api"), exports);
|
|
37
|
-
__exportStar(require("./api/partners-api"), exports);
|
|
38
37
|
__exportStar(require("./api/payments-setup-api"), exports);
|
|
39
38
|
__exportStar(require("./api/product-versions-api"), exports);
|
|
40
39
|
__exportStar(require("./api/products-api"), exports);
|
|
@@ -46,6 +46,12 @@ export interface DeductibleClass {
|
|
|
46
46
|
* @memberof DeductibleClass
|
|
47
47
|
*/
|
|
48
48
|
'options': Array<AmountWithLimitClass>;
|
|
49
|
+
/**
|
|
50
|
+
* Categories this deductible applies to
|
|
51
|
+
* @type {Array<string>}
|
|
52
|
+
* @memberof DeductibleClass
|
|
53
|
+
*/
|
|
54
|
+
'applicableCategoryKeys': Array<string>;
|
|
49
55
|
}
|
|
50
56
|
export declare const DeductibleClassTypeEnum: {
|
|
51
57
|
readonly Fixed: "fixed";
|
package/dist/models/index.d.ts
CHANGED
|
@@ -48,7 +48,6 @@ export * from './get-booking-funnel-response-class';
|
|
|
48
48
|
export * from './get-custom-css-response-class';
|
|
49
49
|
export * from './get-lead-response-class';
|
|
50
50
|
export * from './get-product-config-tariffs-response-class';
|
|
51
|
-
export * from './get-product-document-download-url-request-rest-dto';
|
|
52
51
|
export * from './get-product-document-download-url-response-class';
|
|
53
52
|
export * from './get-public-psp-settings-response-class';
|
|
54
53
|
export * from './initiate-adyen-payment-setup-request-dto';
|
|
@@ -115,5 +114,3 @@ export * from './update-lead-request-dto';
|
|
|
115
114
|
export * from './update-lead-response-class';
|
|
116
115
|
export * from './uploaded-document-dto';
|
|
117
116
|
export * from './validate-address-response-class';
|
|
118
|
-
export * from './validate-partner-request-dto';
|
|
119
|
-
export * from './validate-partner-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -64,7 +64,6 @@ __exportStar(require("./get-booking-funnel-response-class"), exports);
|
|
|
64
64
|
__exportStar(require("./get-custom-css-response-class"), exports);
|
|
65
65
|
__exportStar(require("./get-lead-response-class"), exports);
|
|
66
66
|
__exportStar(require("./get-product-config-tariffs-response-class"), exports);
|
|
67
|
-
__exportStar(require("./get-product-document-download-url-request-rest-dto"), exports);
|
|
68
67
|
__exportStar(require("./get-product-document-download-url-response-class"), exports);
|
|
69
68
|
__exportStar(require("./get-public-psp-settings-response-class"), exports);
|
|
70
69
|
__exportStar(require("./initiate-adyen-payment-setup-request-dto"), exports);
|
|
@@ -131,5 +130,3 @@ __exportStar(require("./update-lead-request-dto"), exports);
|
|
|
131
130
|
__exportStar(require("./update-lead-response-class"), exports);
|
|
132
131
|
__exportStar(require("./uploaded-document-dto"), exports);
|
|
133
132
|
__exportStar(require("./validate-address-response-class"), exports);
|
|
134
|
-
__exportStar(require("./validate-partner-request-dto"), exports);
|
|
135
|
-
__exportStar(require("./validate-partner-response-class"), exports);
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { CategoryCoverageSummaryClass } from './category-coverage-summary-class';
|
|
13
13
|
import { CoverageTermClass } from './coverage-term-class';
|
|
14
|
-
import { DeductibleClass } from './deductible-class';
|
|
15
14
|
/**
|
|
16
15
|
*
|
|
17
16
|
* @export
|
|
@@ -48,10 +47,4 @@ export interface TariffCategorySummaryClass {
|
|
|
48
47
|
* @memberof TariffCategorySummaryClass
|
|
49
48
|
*/
|
|
50
49
|
'coverages': Array<CategoryCoverageSummaryClass>;
|
|
51
|
-
/**
|
|
52
|
-
* List of category deductibles
|
|
53
|
-
* @type {Array<DeductibleClass>}
|
|
54
|
-
* @memberof TariffCategorySummaryClass
|
|
55
|
-
*/
|
|
56
|
-
'deductibles': Array<DeductibleClass>;
|
|
57
50
|
}
|
|
@@ -51,6 +51,12 @@ export interface DeductibleClass {
|
|
|
51
51
|
* @memberof DeductibleClass
|
|
52
52
|
*/
|
|
53
53
|
'options': Array<AmountWithLimitClass>;
|
|
54
|
+
/**
|
|
55
|
+
* Categories this deductible applies to
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof DeductibleClass
|
|
58
|
+
*/
|
|
59
|
+
'applicableCategoryKeys': Array<string>;
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
export const DeductibleClassTypeEnum = {
|
package/models/index.ts
CHANGED
|
@@ -48,7 +48,6 @@ export * from './get-booking-funnel-response-class';
|
|
|
48
48
|
export * from './get-custom-css-response-class';
|
|
49
49
|
export * from './get-lead-response-class';
|
|
50
50
|
export * from './get-product-config-tariffs-response-class';
|
|
51
|
-
export * from './get-product-document-download-url-request-rest-dto';
|
|
52
51
|
export * from './get-product-document-download-url-response-class';
|
|
53
52
|
export * from './get-public-psp-settings-response-class';
|
|
54
53
|
export * from './initiate-adyen-payment-setup-request-dto';
|
|
@@ -115,5 +114,3 @@ export * from './update-lead-request-dto';
|
|
|
115
114
|
export * from './update-lead-response-class';
|
|
116
115
|
export * from './uploaded-document-dto';
|
|
117
116
|
export * from './validate-address-response-class';
|
|
118
|
-
export * from './validate-partner-request-dto';
|
|
119
|
-
export * from './validate-partner-response-class';
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
|
|
16
16
|
import { CategoryCoverageSummaryClass } from './category-coverage-summary-class';
|
|
17
17
|
import { CoverageTermClass } from './coverage-term-class';
|
|
18
|
-
import { DeductibleClass } from './deductible-class';
|
|
19
18
|
|
|
20
19
|
/**
|
|
21
20
|
*
|
|
@@ -53,11 +52,5 @@ export interface TariffCategorySummaryClass {
|
|
|
53
52
|
* @memberof TariffCategorySummaryClass
|
|
54
53
|
*/
|
|
55
54
|
'coverages': Array<CategoryCoverageSummaryClass>;
|
|
56
|
-
/**
|
|
57
|
-
* List of category deductibles
|
|
58
|
-
* @type {Array<DeductibleClass>}
|
|
59
|
-
* @memberof TariffCategorySummaryClass
|
|
60
|
-
*/
|
|
61
|
-
'deductibles': Array<DeductibleClass>;
|
|
62
55
|
}
|
|
63
56
|
|
package/package.json
CHANGED
package/api/partners-api.ts
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
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
|
-
// URLSearchParams not necessarily used
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
import { URL, URLSearchParams } from 'url';
|
|
30
|
-
const FormData = require('form-data');
|
|
31
|
-
/**
|
|
32
|
-
* PartnersApi - axios parameter creator
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
|
-
export const PartnersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
-
return {
|
|
37
|
-
/**
|
|
38
|
-
* 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.
|
|
39
|
-
* @summary Validate a partner
|
|
40
|
-
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
41
|
-
* @param {string} [authorization] Bearer Token
|
|
42
|
-
* @param {*} [options] Override http request option.
|
|
43
|
-
* @throws {RequiredError}
|
|
44
|
-
*/
|
|
45
|
-
validatePartner: async (validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
-
// verify required parameter 'validatePartnerRequestDto' is not null or undefined
|
|
47
|
-
assertParamExists('validatePartner', 'validatePartnerRequestDto', validatePartnerRequestDto)
|
|
48
|
-
const localVarPath = `/publicapi/v1/partners/validate`;
|
|
49
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
-
let baseOptions;
|
|
52
|
-
let baseAccessToken;
|
|
53
|
-
if (configuration) {
|
|
54
|
-
baseOptions = configuration.baseOptions;
|
|
55
|
-
baseAccessToken = configuration.accessToken;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
59
|
-
const localVarHeaderParameter = {} as any;
|
|
60
|
-
const localVarQueryParameter = {} as any;
|
|
61
|
-
|
|
62
|
-
// authentication bearer required
|
|
63
|
-
// http bearer authentication required
|
|
64
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
|
-
|
|
66
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
67
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
73
|
-
|
|
74
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
-
localVarRequestOptions.data = serializeDataIfNeeded(validatePartnerRequestDto, localVarRequestOptions, configuration)
|
|
78
|
-
|
|
79
|
-
return {
|
|
80
|
-
url: toPathString(localVarUrlObj),
|
|
81
|
-
options: localVarRequestOptions,
|
|
82
|
-
};
|
|
83
|
-
},
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* PartnersApi - functional programming interface
|
|
89
|
-
* @export
|
|
90
|
-
*/
|
|
91
|
-
export const PartnersApiFp = function(configuration?: Configuration) {
|
|
92
|
-
const localVarAxiosParamCreator = PartnersApiAxiosParamCreator(configuration)
|
|
93
|
-
return {
|
|
94
|
-
/**
|
|
95
|
-
* 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.
|
|
96
|
-
* @summary Validate a partner
|
|
97
|
-
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
98
|
-
* @param {string} [authorization] Bearer Token
|
|
99
|
-
* @param {*} [options] Override http request option.
|
|
100
|
-
* @throws {RequiredError}
|
|
101
|
-
*/
|
|
102
|
-
async validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidatePartnerResponseClass>> {
|
|
103
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.validatePartner(validatePartnerRequestDto, authorization, options);
|
|
104
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
105
|
-
},
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* PartnersApi - factory interface
|
|
111
|
-
* @export
|
|
112
|
-
*/
|
|
113
|
-
export const PartnersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
114
|
-
const localVarFp = PartnersApiFp(configuration)
|
|
115
|
-
return {
|
|
116
|
-
/**
|
|
117
|
-
* 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.
|
|
118
|
-
* @summary Validate a partner
|
|
119
|
-
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
120
|
-
* @param {string} [authorization] Bearer Token
|
|
121
|
-
* @param {*} [options] Override http request option.
|
|
122
|
-
* @throws {RequiredError}
|
|
123
|
-
*/
|
|
124
|
-
validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<ValidatePartnerResponseClass> {
|
|
125
|
-
return localVarFp.validatePartner(validatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
126
|
-
},
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Request parameters for validatePartner operation in PartnersApi.
|
|
132
|
-
* @export
|
|
133
|
-
* @interface PartnersApiValidatePartnerRequest
|
|
134
|
-
*/
|
|
135
|
-
export interface PartnersApiValidatePartnerRequest {
|
|
136
|
-
/**
|
|
137
|
-
*
|
|
138
|
-
* @type {ValidatePartnerRequestDto}
|
|
139
|
-
* @memberof PartnersApiValidatePartner
|
|
140
|
-
*/
|
|
141
|
-
readonly validatePartnerRequestDto: ValidatePartnerRequestDto
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Bearer Token
|
|
145
|
-
* @type {string}
|
|
146
|
-
* @memberof PartnersApiValidatePartner
|
|
147
|
-
*/
|
|
148
|
-
readonly authorization?: string
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* PartnersApi - object-oriented interface
|
|
153
|
-
* @export
|
|
154
|
-
* @class PartnersApi
|
|
155
|
-
* @extends {BaseAPI}
|
|
156
|
-
*/
|
|
157
|
-
export class PartnersApi extends BaseAPI {
|
|
158
|
-
/**
|
|
159
|
-
* 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.
|
|
160
|
-
* @summary Validate a partner
|
|
161
|
-
* @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
|
|
162
|
-
* @param {*} [options] Override http request option.
|
|
163
|
-
* @throws {RequiredError}
|
|
164
|
-
* @memberof PartnersApi
|
|
165
|
-
*/
|
|
166
|
-
public validatePartner(requestParameters: PartnersApiValidatePartnerRequest, options?: AxiosRequestConfig) {
|
|
167
|
-
return PartnersApiFp(this.configuration).validatePartner(requestParameters.validatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
168
|
-
}
|
|
169
|
-
}
|