feat: add notif message for LOW_RECYCLER_STACKER
This commit is contained in:
parent
815fd36ede
commit
1395448e78
2 changed files with 5 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ const LOW_CRYPTO_BALANCE = 'LOW_CRYPTO_BALANCE'
|
|||
const HIGH_CRYPTO_BALANCE = 'HIGH_CRYPTO_BALANCE'
|
||||
const CASH_BOX_FULL = 'CASH_BOX_FULL'
|
||||
const LOW_CASH_OUT = 'LOW_CASH_OUT'
|
||||
const LOW_RECYCLER_STACKER = 'LOW_RECYCLER_STACKER'
|
||||
const SECURITY = 'SECURITY'
|
||||
|
||||
const CODES_DISPLAY = {
|
||||
|
|
@ -41,6 +42,7 @@ module.exports = {
|
|||
HIGH_CRYPTO_BALANCE,
|
||||
CASH_BOX_FULL,
|
||||
LOW_CASH_OUT,
|
||||
LOW_RECYCLER_STACKER,
|
||||
SECURITY,
|
||||
CODES_DISPLAY,
|
||||
NETWORK_DOWN_TIME,
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue