feat: create cashbox removal notifications
This commit is contained in:
parent
73bd11b38b
commit
598135ccaf
6 changed files with 92 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue