2018-05-17 15:03:59 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const packageJson = require('../package.json');
|
|
|
|
|
2019-07-22 15:31:24 +00:00
|
|
|
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
|
|
|
|
2019-08-01 12:00:07 +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}`,
|
2019-08-01 12:00:07 +00:00
|
|
|
dateRange,
|
2018-06-01 13:16:43 +00:00
|
|
|
};
|