add predefined orders

This commit is contained in:
Vladislav Hristov
2018-06-20 14:08:31 +03:00
parent 8e9e0df276
commit c0ec4b8fb7
23 changed files with 271 additions and 17 deletions

View File

@@ -0,0 +1,23 @@
'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: 'HAC',
OrderAttribute: 'DZHNN',
StandardOrderParams: dateRange(start, end),
},
operation: 'download',
});