client and some admin new

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-08-05 04:32:43 +08:00
parent 8922f7f2f4
commit 0c7f5ccd0f
33 changed files with 937 additions and 770 deletions
+32
View File
@@ -161,6 +161,38 @@ const emailTemplates = {
<p>For security, please do not share your credentials with anyone. If you need a new password, contact your administrator.</p>
`),
}),
TIER_ACCESS_REVOKED: ({ name, label, date }) => ({
subject: "Your Subscription Access Has Been Revoked - STARR System",
html: wrap(`
<p>Dear ${name},</p>
<p>We're writing to inform you that your access under the following subscription plan has been revoked by our team, effective <strong>${date}</strong>:</p>
<table style="${FONT}">
<tr><td><strong>Plan</strong></td><td>${label}</td></tr>
<tr><td><strong>Status</strong></td><td>Access Revoked</td></tr>
<tr><td><strong>Refund</strong></td><td>Not applicable — this subscription is non-refundable</td></tr>
</table>
<p>Your account no longer has access to the courses, units, and lessons included in this plan. If you were not concurrently subscribed to another active plan, your account has reverted to the Free tier.</p>
<p>If you believe this was done in error or have questions about this change, please contact our support team.</p>
`),
}),
REFUND_PROCESSED: ({ name, label, amount, currency, date, refundId }) => ({
subject: "Your Refund Has Been Processed - STARR System",
html: wrap(`
<p>Dear ${name},</p>
<p>We're writing to confirm that your refund request has been processed as of <strong>${date}</strong>:</p>
<table style="${FONT}">
<tr><td><strong>Plan</strong></td><td>${label}</td></tr>
<tr><td><strong>Amount Refunded</strong></td><td>${currency} ${amount}</td></tr>
<tr><td><strong>Refund ID</strong></td><td>${refundId}</td></tr>
<tr><td><strong>Status</strong></td><td>Refunded</td></tr>
</table>
<p>Your access to the courses, units, and lessons included in this plan has been revoked effective immediately. If you were not concurrently subscribed to another active plan, your account has reverted to the Free tier.</p>
<p>Please allow a few business days for the refunded amount to reflect on your original payment method, depending on your provider.</p>
<p>If you have any questions about this refund, please contact our support team.</p>
`),
}),
};
module.exports = { emailTemplates };