mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-08-14 11:45:35 +00:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
79f17e1404 | ||
|
3ef32c8ce5 | ||
|
aa761cf7ad | ||
|
5ff3147124 | ||
|
01d4634d86 | ||
|
89904afa63 | ||
|
4907524259 |
@@ -1,23 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
const dateRange = (start, end) => {
|
||||
if (start && end)
|
||||
return {
|
||||
DateRange: {
|
||||
Start: start,
|
||||
End: end,
|
||||
},
|
||||
};
|
||||
|
||||
return {};
|
||||
};
|
||||
const utils = require('../utils');
|
||||
|
||||
module.exports = (start = null, end = null) => ({
|
||||
version: 'h004',
|
||||
orderDetails: {
|
||||
OrderType: 'HAC',
|
||||
OrderAttribute: 'DZHNN',
|
||||
StandardOrderParams: dateRange(start, end),
|
||||
StandardOrderParams: utils.dateRange(start, end),
|
||||
},
|
||||
operation: 'download',
|
||||
});
|
||||
|
@@ -1,23 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
const dateRange = (start, end) => {
|
||||
if (start && end)
|
||||
return {
|
||||
DateRange: {
|
||||
Start: start,
|
||||
End: end,
|
||||
},
|
||||
};
|
||||
|
||||
return {};
|
||||
};
|
||||
const utils = require('../utils');
|
||||
|
||||
module.exports = (start = null, end = null) => ({
|
||||
version: 'h004',
|
||||
orderDetails: {
|
||||
OrderType: 'PTK',
|
||||
OrderAttribute: 'DZHNN',
|
||||
StandardOrderParams: dateRange(start, end),
|
||||
StandardOrderParams: utils.dateRange(start, end),
|
||||
},
|
||||
operation: 'download',
|
||||
});
|
||||
|
@@ -1,23 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
const dateRange = (start, end) => {
|
||||
if (start && end)
|
||||
return {
|
||||
DateRange: {
|
||||
Start: start,
|
||||
End: end,
|
||||
},
|
||||
};
|
||||
|
||||
return {};
|
||||
};
|
||||
const utils = require('../utils');
|
||||
|
||||
module.exports = (start = null, end = null) => ({
|
||||
version: 'h004',
|
||||
orderDetails: {
|
||||
OrderType: 'STA',
|
||||
OrderAttribute: 'DZHNN',
|
||||
StandardOrderParams: dateRange(start, end),
|
||||
StandardOrderParams: utils.dateRange(start, end),
|
||||
},
|
||||
operation: 'download',
|
||||
});
|
||||
|
@@ -1,23 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
const dateRange = (start, end) => {
|
||||
if (start && end)
|
||||
return {
|
||||
DateRange: {
|
||||
Start: start,
|
||||
End: end,
|
||||
},
|
||||
};
|
||||
|
||||
return {};
|
||||
};
|
||||
const utils = require('../utils');
|
||||
|
||||
module.exports = (start = null, end = null) => ({
|
||||
version: 'h004',
|
||||
orderDetails: {
|
||||
OrderType: 'VMK',
|
||||
OrderAttribute: 'DZHNN',
|
||||
StandardOrderParams: dateRange(start, end),
|
||||
StandardOrderParams: utils.dateRange(start, end),
|
||||
},
|
||||
operation: 'download',
|
||||
});
|
||||
|
13
lib/predefinedOrders/Z53.js
Normal file
13
lib/predefinedOrders/Z53.js
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
const utils = require('../utils');
|
||||
|
||||
module.exports = (start = null, end = null) => ({
|
||||
version: 'h004',
|
||||
orderDetails: {
|
||||
OrderType: 'Z53',
|
||||
OrderAttribute: 'DZHNN',
|
||||
StandardOrderParams: utils.dateRange(start, end),
|
||||
},
|
||||
operation: 'download',
|
||||
});
|
@@ -22,11 +22,13 @@ const HPD = require('./HPD');
|
||||
const HKD = require('./HKD');
|
||||
const PTK = require('./PTK');
|
||||
const HAC = require('./HAC');
|
||||
const Z53 = require('./Z53');
|
||||
|
||||
module.exports = {
|
||||
INI,
|
||||
HIA,
|
||||
HPB,
|
||||
Z53,
|
||||
|
||||
AZV,
|
||||
CD1,
|
||||
|
18
lib/utils.js
Normal file
18
lib/utils.js
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
const dateRange = (start, end) => {
|
||||
if (start && end)
|
||||
return {
|
||||
DateRange: {
|
||||
Start: start,
|
||||
End: end,
|
||||
},
|
||||
};
|
||||
|
||||
return {};
|
||||
};
|
||||
|
||||
|
||||
module.exports = {
|
||||
dateRange,
|
||||
};
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ebics-client",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.7",
|
||||
"description": "Node.js ISO 20022 Compliant EBICS Client",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
Reference in New Issue
Block a user