mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-08-14 03:35:36 +00:00
Major changes. Separating responsibilities. Orders builder, serializer.
This commit is contained in:
@@ -3,14 +3,8 @@
|
||||
const Response = require('../Response');
|
||||
|
||||
module.exports = class ParseResponse {
|
||||
constructor(client, data) {
|
||||
this.client = client;
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
static go(client, data) {
|
||||
// const parseRensponse = new ParseResponse(client, data);
|
||||
const response = new Response(client, data);
|
||||
static go(keys, data) {
|
||||
const response = new Response(keys, data);
|
||||
|
||||
// TODO:
|
||||
// raise error if any
|
||||
|
@@ -3,14 +3,8 @@
|
||||
const Signer = require('../Signer');
|
||||
|
||||
module.exports = class XMLSign {
|
||||
constructor(client, data) {
|
||||
this.client = client;
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
static go(client, data) {
|
||||
// const xmlSigner = new XMLSign(client, data);
|
||||
const signer = new Signer(client, data);
|
||||
static go(keys, xml) {
|
||||
const signer = new Signer(keys, xml);
|
||||
|
||||
signer.digest();
|
||||
signer.sign();
|
||||
|
Reference in New Issue
Block a user