mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-08-13 11:25:36 +00:00
Async read and write keys
This commit is contained in:
@@ -7,8 +7,8 @@ const Crypto = require('../../../crypto/Crypto');
|
||||
const genericSerializer = require('./generic');
|
||||
|
||||
module.exports = {
|
||||
use(order, client) {
|
||||
const keys = client.keys();
|
||||
async use(order, client) {
|
||||
const keys = await client.keys();
|
||||
const ebicsAccount = {
|
||||
partnerId: client.partnerId,
|
||||
userId: client.userId,
|
||||
|
@@ -118,8 +118,8 @@ const process = {
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
use(order, client) {
|
||||
const keys = client.keys();
|
||||
async use(order, client) {
|
||||
const keys = await client.keys();
|
||||
const { orderDetails, transactionId } = order;
|
||||
const { xmlOptions, xmlSchema, productString } = genericSerializer(client.host, transactionId);
|
||||
const orderType = orderDetails.OrderType.toUpperCase();
|
||||
|
@@ -47,19 +47,17 @@ const encryptedOrderData = (document, transactionKey) => {
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
use(order, client) {
|
||||
const keys = client.keys();
|
||||
async use(order, client) {
|
||||
const keys = await client.keys();
|
||||
const ebicsAccount = {
|
||||
partnerId: client.partnerId,
|
||||
userId: client.userId,
|
||||
hostId: client.hostId,
|
||||
};
|
||||
const {
|
||||
transactionId, document,
|
||||
} = order;
|
||||
const { transactionId, document } = order;
|
||||
const {
|
||||
rootName, xmlOptions, xmlSchema, transfer,
|
||||
} = downloadSerializer.use(order, client);
|
||||
} = await downloadSerializer.use(order, client);
|
||||
|
||||
this.rootName = rootName;
|
||||
this.xmlOptions = xmlOptions;
|
||||
|
Reference in New Issue
Block a user