@eld0ud/fintecture-client
Advanced tools
Comparing version 1.0.29 to 1.0.30
{ | ||
"name": "@eld0ud/fintecture-client", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"description": "Fintecture Open Banking API Gateway enabling secure bank connections and payments", | ||
@@ -5,0 +5,0 @@ "main": "lib/fintecture-client.js", |
@@ -25,3 +25,7 @@ import { IFintectureConfig } from './interfaces/ConfigInterface'; | ||
*/ | ||
connect(accessToken: string, payload: object, state: string): Promise<IPisV2Connect>; | ||
connect(accessToken: string, payload: object, connectConfig: { | ||
state: string; | ||
redirect_uri?: string; | ||
origin_uri?: string; | ||
}): Promise<IPisV2Connect>; | ||
/** | ||
@@ -28,0 +32,0 @@ * This endpoint returns the details of all transfers or of a specific transfer |
@@ -48,5 +48,5 @@ "use strict"; | ||
*/ | ||
connect(accessToken, payload, state) { | ||
connect(accessToken, payload, connectConfig) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const url = `${Endpoints_1.Endpoints.PISV2}/connect?state=${state}`; | ||
const url = `${Endpoints_1.Endpoints.PISV2}/connect?state=${connectConfig.state}${connectConfig.redirect_uri ? `&redirect_uri=${encodeURIComponent(connectConfig.redirect_uri)}` : ''}${connectConfig.origin_uri ? `&origin_uri=${encodeURIComponent(connectConfig.origin_uri)}` : ''}`; | ||
const headers = apiService.getHeaders('post', url, accessToken, this.config, payload); | ||
@@ -53,0 +53,0 @@ const response = yield this.axiosInstance.post(url, payload, { headers }); |
{ | ||
"name": "@eld0ud/fintecture-client", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"description": "Fintecture Open Banking API Gateway enabling secure bank connections and payments", | ||
@@ -5,0 +5,0 @@ "main": "lib/fintecture-client.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
201643
2983