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

35 lines
688 B
JavaScript
Raw Normal View History

2018-05-17 15:03:59 +00:00
'use strict';
const GenericOrder = require('./GenericOrder');
module.exports = class HPB 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: 'HPB',
OrderAttribute: 'DZHNN',
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
},
2018-06-01 13:16:43 +00:00
mutable: {},
2018-05-17 15:03:59 +00:00
};
2018-06-01 13:16:43 +00:00
}
2018-05-17 15:03:59 +00:00
2018-06-01 13:16:43 +00:00
root() { // eslint-disable-line class-methods-use-this
return 'ebicsNoPubKeyDigestsRequest';
}
2018-05-17 15:03:59 +00:00
};