Feat: make SMS transaction notifications more descriptive
This commit is contained in:
parent
04fd82454d
commit
9471da31a4
1 changed files with 4 additions and 3 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue