Feat: make SMS transaction notifications more descriptive

This commit is contained in:
Cesar 2020-12-04 12:28:26 +00:00 committed by Josh Harvey
parent 04fd82454d
commit 9471da31a4

View file

@ -398,14 +398,15 @@ function plugins (settings, deviceId) {
- Customer: ${customerName}
${phone}
`
const subject = `A ${highValueTx ? 'high value ' : ''}transaction just happened`
const smsSubject = `A ${highValueTx ? 'high value ' : ''}${direction.toLowerCase()} transaction just happened at ${machineName} for ${fiat}`
const emailSubject = `A ${highValueTx ? 'high value ' : ''}transaction just happened`
return [{
sms: {
body: `${subject} - ${status}`
body: `${smsSubject} ${status}`
},
email: {
subject,
emailSubject,
body
}
}, highValueTx]