From 0b79929e1c37a5d83874bd6f9336c7edf20b1efc Mon Sep 17 00:00:00 2001 From: Vladislav Hristov Date: Thu, 31 May 2018 12:08:07 +0300 Subject: [PATCH] Add upload method in Client.js file --- lib/Client.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Client.js b/lib/Client.js index 5abcd9c..da3e76c 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -144,6 +144,16 @@ module.exports = class Client { return res.orderData(); }; + async upload(order) { + let res = await this.ebicsRequest(order.toXML()); + order.transactionId = res.transactionId(); + const orderId = res.orderId(); + + res = await this.ebicsRequest(order.toTransferXML()); + + return res.transactionId(); + } + async downloadAndUnzip(order) { }