@dibs-tech/mail-client
Advanced tools
Comparing version 1.9.1 to 1.9.2
12
index.js
@@ -34,2 +34,4 @@ const SparkPost = require('sparkpost'); | ||
'WAITLIST_CONFIRMATION', | ||
'PACKAGE_CONFIRMATION', | ||
'PACKAGE_CONFIRMATION_AUTOPAY', | ||
]); | ||
@@ -202,2 +204,4 @@ | ||
[MailClient.EmailTypes.BOOKING_CONFIRMATION]: 'confirmation', | ||
[MailClient.EmailTypes.PACKAGE_CONFIRMATION]: 'package-purchase-no-autopay', | ||
[MailClient.EmailTypes.PACKAGE_CONFIRMATION_AUTOPAY]: 'package-purchase-with-autopay', | ||
}; | ||
@@ -215,2 +219,10 @@ let template = `white-label/${whiteLabelTemplateMap[emailType]}`; | ||
case MailClient.EmailTypes.PACKAGE_CONFIRMATION: | ||
template = studio.custom_email_template.autoPayExpire.link; | ||
break; | ||
case MailClient.EmailTypes.PACKAGE_CONFIRMATION_AUTOPAY: | ||
template = studio.custom_email_template.autoPayNoExpire.link; | ||
break; | ||
case MailClient.EmailTypes.BOOKING_CONFIRMATION: | ||
@@ -217,0 +229,0 @@ default: |
{ | ||
"name": "@dibs-tech/mail-client", | ||
"version": "1.9.1", | ||
"version": "1.9.2", | ||
"description": "A mail client implementation, using sparkpost", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15732
362