fintecture-client
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -100,2 +100,6 @@ import { AIS } from './src/Ais'; | ||
public async initiateRefund(accessToken: string, sessionId: string) { | ||
return this.pis.initiateRefund(accessToken, sessionId); | ||
} | ||
public async getPisConnect(accessToken: string, connectConfig: any): Promise<IPisConnect> { | ||
@@ -149,2 +153,2 @@ return this.connect.getPisConnect(accessToken, connectConfig); | ||
} | ||
} |
@@ -35,2 +35,3 @@ import { IPisConnect, IAisConnect } from './src/interfaces/connect/ConnectInterface'; | ||
getPayments(accessToken: string, sessionId: string): Promise<object>; | ||
initiateRefund(accessToken: string, sessionId: string): Promise<object>; | ||
getPisConnect(accessToken: string, connectConfig: any): Promise<IPisConnect>; | ||
@@ -37,0 +38,0 @@ getAisConnect(accessToken: string, connectConfig: any): IAisConnect; |
@@ -112,2 +112,7 @@ "use strict"; | ||
} | ||
initiateRefund(accessToken, sessionId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.pis.initiateRefund(accessToken, sessionId); | ||
}); | ||
} | ||
getPisConnect(accessToken, connectConfig) { | ||
@@ -114,0 +119,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "fintecture-client", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"description": "Fintecture Open Banking API Gateway enabling secure bank connections and payments", | ||
@@ -5,0 +5,0 @@ "main": "lib/fintecture-client.js", |
@@ -46,2 +46,10 @@ import { IFintectureConfig } from './interfaces/ConfigInterface'; | ||
/** | ||
* Initiate a refund | ||
* | ||
* @param {string} accessToken | ||
* @param {string} sessionId | ||
* @returns {Promise<object>} | ||
*/ | ||
initiateRefund(accessToken: string, sessionId: string): Promise<object>; | ||
/** | ||
* This endpoint returns the details of all transfers or of a specific transfer | ||
@@ -48,0 +56,0 @@ * |
@@ -88,2 +88,18 @@ "use strict"; | ||
/** | ||
* Initiate a refund | ||
* | ||
* @param {string} accessToken | ||
* @param {string} sessionId | ||
* @returns {Promise<object>} | ||
*/ | ||
initiateRefund(accessToken, sessionId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const url = `${Endpoints_1.Endpoints.PIS}/refund`; | ||
const payload = this._buildSessionPayload(sessionId); | ||
const headers = apiService.getHeaders('post', url, accessToken, this.config, payload); | ||
const response = yield this.axiosInstance.post(url, payload, { headers }); | ||
return response.data; | ||
}); | ||
} | ||
/** | ||
* This endpoint returns the details of all transfers or of a specific transfer | ||
@@ -90,0 +106,0 @@ * |
{ | ||
"name": "fintecture-client", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"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
167439
2430