node-ebics-client/packages/ebics-client/lib/middleware/response.js

12 lines
245 B
JavaScript
Raw Normal View History

2018-06-15 06:33:41 +00:00
'use strict';
const H004Response = require('../orders/H004/response');
module.exports = {
version(v) {
if (v.toUpperCase() === 'H004') return H004Response;
throw Error('Error from middleware/response.js: Invalid version number');
},
};