mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-12-16 16:42:45 +00:00
add new order type XZ53 and removed repeated dateRange to consts
This commit is contained in:
@@ -1,23 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
const dateRange = (start, end) => {
|
||||
if (start && end)
|
||||
return {
|
||||
DateRange: {
|
||||
Start: start,
|
||||
End: end,
|
||||
},
|
||||
};
|
||||
|
||||
return {};
|
||||
};
|
||||
const utils = require('../consts');
|
||||
|
||||
module.exports = (start = null, end = null) => ({
|
||||
version: 'h004',
|
||||
orderDetails: {
|
||||
OrderType: 'STA',
|
||||
OrderAttribute: 'DZHNN',
|
||||
StandardOrderParams: dateRange(start, end),
|
||||
StandardOrderParams: utils.dateRange(start, end),
|
||||
},
|
||||
operation: 'download',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user