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