mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2024-11-24 23:22:06 +00:00
14 lines
311 B
JavaScript
14 lines
311 B
JavaScript
'use strict';
|
|
|
|
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');
|
|
},
|
|
};
|