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