node-ebics-client/lib/orders/HAA.js

44 lines
1018 B
JavaScript
Raw Normal View History

2018-05-17 15:03:59 +00:00
'use strict';
const GenericOrder = require('./GenericOrder');
module.exports = class HAA extends GenericOrder {
2018-06-01 13:16:43 +00:00
constructor(client) {
2018-05-17 15:03:59 +00:00
super(client);
this._schema.header = {
2018-06-01 13:16:43 +00:00
'@': { authenticate: true },
2018-05-17 15:03:59 +00:00
static: {
HostID: this.hostId,
Nonce: this.nonce(),
Timestamp: this.timestamp(),
PartnerID: this.partnerId,
UserID: this.userId,
Product: {
2018-06-01 13:16:43 +00:00
'@': { Language: 'de' },
'#': this.productString,
2018-05-17 15:03:59 +00:00
},
OrderDetails: {
2018-06-01 13:16:43 +00:00
OrderType: 'HAA',
OrderAttribute: 'DZHNN',
StandardOrderParams: '',
2018-05-17 15:03:59 +00:00
},
BankPubKeyDigests: {
Authentication: {
2018-06-01 13:16:43 +00:00
'@': { Version: 'X002', Algorithm: 'http://www.w3.org/2001/04/xmlenc#sha256' },
'#': this.client.bankX().publicDigest(),
2018-05-17 15:03:59 +00:00
},
Encryption: {
2018-06-01 13:16:43 +00:00
'@': { Version: 'E002', Algorithm: 'http://www.w3.org/2001/04/xmlenc#sha256' },
'#': this.client.bankE().publicDigest(),
},
2018-05-17 15:03:59 +00:00
},
2018-06-01 13:16:43 +00:00
SecurityMedium: '0000',
2018-05-17 15:03:59 +00:00
},
mutable: {
2018-06-01 13:16:43 +00:00
TransactionPhase: 'Initialisation',
},
2018-05-17 15:03:59 +00:00
};
2018-06-01 13:16:43 +00:00
}
2018-05-17 15:03:59 +00:00
};