feat: create cashbox removal notifications

This commit is contained in:
Sérgio Salgado 2021-05-20 14:40:38 +01:00 committed by Josh Harvey
parent 73bd11b38b
commit 598135ccaf
6 changed files with 92 additions and 4 deletions

View file

@ -6,6 +6,7 @@ const codes = require('./codes')
const customers = require('../customers')
const { NOTIFICATION_TYPES: {
SECURITY,
COMPLIANCE,
CRYPTO_BALANCE,
FIAT_BALANCE,
@ -177,11 +178,18 @@ const blacklistNotify = (tx, isAddressReuse) => {
return queries.addNotification(COMPLIANCE, message, detailB)
}
const cashboxNotify = deviceId => {
const detailB = utils.buildDetail({ deviceId: deviceId })
const message = `Cashbox removed`
return queries.addNotification(SECURITY, message, detailB)
}
module.exports = {
sanctionsNotify,
customerComplianceNotify,
balancesNotify,
errorAlertsNotify,
notifCenterTransactionNotify,
blacklistNotify
blacklistNotify,
cashboxNotify
}