node-ebics-client/lib/predefinedOrders/PTK.js

24 lines
367 B
JavaScript
Raw Normal View History

2018-06-20 11:08:31 +00:00
'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: 'PTK',
OrderAttribute: 'DZHNN',
StandardOrderParams: dateRange(start, end),
},
operation: 'download',
});