node-ebics-client/lib/predefinedOrders/STA.js
2018-06-20 14:08:31 +03:00

24 lines
367 B
JavaScript

'use strict';
const dateRange = (start, end) => {
if (start && end)
return {
DateRange: {
Start: start,
End: end,
},
};
return {};
};
module.exports = (start = null, end = null) => ({
version: 'h004',
orderDetails: {
OrderType: 'STA',
OrderAttribute: 'DZHNN',
StandardOrderParams: dateRange(start, end),
},
operation: 'download',
});