node-ebics-client/lib/middleware/ParseResponse.js
2018-06-11 15:25:07 +03:00

12 lines
283 B
JavaScript

'use strict';
const H004Response = require('../versions/H004/Response');
module.exports = class ParseResponse {
static parse(data, keys, version) {
if (version.toUpperCase() === 'H004') return new H004Response(data, keys);
throw Error('Unknow EBICS response version');
}
};