mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-08-13 11:25:36 +00:00
feat: prepare order generation tests
This commit is contained in:
@@ -174,6 +174,12 @@ module.exports = class Client {
|
||||
});
|
||||
}
|
||||
|
||||
async signOrder(order) {
|
||||
const { version } = order;
|
||||
const keys = await this.keys();
|
||||
return signer.version(version).sign((await serializer.use(order, this)).toXML(), keys.x());
|
||||
}
|
||||
|
||||
async keys() {
|
||||
try {
|
||||
const keysString = await this._readKeys();
|
||||
|
Reference in New Issue
Block a user