ebics-client
Version:
Node.js ISO 20022 Compliant EBICS Client
14 lines (9 loc) • 311 B
JavaScript
;
const H004Serializer = require('../orders/H004/serializer');
module.exports = {
use(order, client) {
const { version } = order;
if (version.toUpperCase() === 'H004') return H004Serializer.use(order, client);
throw Error('Error middleware/serializer.js: Invalid version number');
},
};