node-ebics-client/lib/consts.js

32 lines
465 B
JavaScript
Raw Normal View History

2018-05-17 15:03:59 +00:00
'use strict';
const packageJson = require('../package.json');
const name = 'Node Ebics Client';
2018-06-01 13:16:43 +00:00
const { version } = packageJson;
2018-06-20 09:20:03 +00:00
const orderOperations = {
ini: 'INI',
upload: 'UPLOAD',
download: 'DOWNLOAD',
};
2018-05-17 15:03:59 +00:00
const dateRange = (start, end) => {
if (start && end)
return {
DateRange: {
Start: start,
End: end,
},
};
return {};
};
2018-05-17 15:03:59 +00:00
module.exports = {
2018-06-01 13:16:43 +00:00
name,
version,
2018-06-20 09:20:03 +00:00
orderOperations,
2018-06-01 13:16:43 +00:00
productString: `${name} ${version}`,
dateRange,
2018-06-01 13:16:43 +00:00
};