7 Commits

Author SHA1 Message Date
Dimitar Nanov
79f17e1404 bump version 2019-08-02 10:52:48 +03:00
Dimitar Nanov
3ef32c8ce5 Merge pull request #7 from anandsahil/addCAMT53OrderType
* Add Z53 order type
* Create utils container and move dateRange functionality to there
2019-08-01 16:59:25 +03:00
anandsahil
aa761cf7ad move dateRange from constants to utils 2019-08-01 14:14:30 +02:00
anandsahil
5ff3147124 add new order type XZ53 and removed repeated dateRange to consts 2019-08-01 14:00:07 +02:00
anandsahil
01d4634d86 Merge remote-tracking branch 'src/master' 2019-08-01 13:52:51 +02:00
sahil anand
89904afa63 Merge pull request #2 from anandsahil/minorChanges
remove eCollect from constant and minor verbose error handeling
2019-07-25 17:40:29 +02:00
sahil anand
4907524259 Merge pull request #1 from anandsahil/and-XCT-order-type
add iso pain format XCT order type
2019-07-25 17:40:04 +02:00
8 changed files with 42 additions and 49 deletions

View File

@@ -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',
}); });

View File

@@ -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',
}); });

View File

@@ -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',
}); });

View File

@@ -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',
}); });

View 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',
});

View File

@@ -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
View File

@@ -0,0 +1,18 @@
'use strict';
const dateRange = (start, end) => {
if (start && end)
return {
DateRange: {
Start: start,
End: end,
},
};
return {};
};
module.exports = {
dateRange,
};

View File

@@ -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": {