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} - Customer: ${customerName}
${phone} ${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 [{ return [{
sms: { sms: {
body: `${subject} - ${status}` body: `${smsSubject} ${status}`
}, },
email: { email: {
subject, emailSubject,
body body
} }
}, highValueTx] }, highValueTx]