feat: add notif message for LOW_RECYCLER_STACKER

This commit is contained in:
siiky 2024-10-28 16:27:23 +00:00
parent 815fd36ede
commit 1395448e78
2 changed files with 5 additions and 0 deletions

View file

@ -21,6 +21,7 @@ const {
LOW_CRYPTO_BALANCE,
CASH_BOX_FULL,
LOW_CASH_OUT,
LOW_RECYCLER_STACKER,
} = require('./codes')
const sanctionsNotify = (customer, phone) => {
@ -79,6 +80,8 @@ const fiatBalancesNotify = (fiatWarnings) => {
}, notInvalidated)) return
const message = balance.code === LOW_CASH_OUT ?
`Cash-out cassette ${balance.cassette} low or empty!` :
balance.code === LOW_RECYCLER_STACKER ?
`Recycler ${balance.cassette} low or empty!` :
balance.code === CASH_BOX_FULL ?
`Cash box full or almost full!` :
`Cash box full or almost full!` /* Shouldn't happen */