(params: {
email: string
firstName: string
disputeAmount: string
logger: Logger
})
| 207 | * Offers to work with them to resolve the issue. |
| 208 | */ |
| 209 | export async function sendDisputeNotificationEmail(params: { |
| 210 | email: string |
| 211 | firstName: string |
| 212 | disputeAmount: string |
| 213 | logger: Logger |
| 214 | }): Promise<SendEmailResult> { |
| 215 | const { email, firstName, disputeAmount, logger } = params |
| 216 | |
| 217 | const subject = "We noticed a dispute on your account - let's resolve this together" |
| 218 | const message = `Hi ${firstName}, |
| 219 | |
| 220 | We noticed that a dispute was filed for a ${disputeAmount} charge on your Codebuff account. We're sorry to hear you had an issue and we'd love the opportunity to make things right. |
| 221 | |
| 222 | If there was a problem with your experience or a charge you didn't recognize, please reach out to us directly and we'll be happy to: |
| 223 | |
| 224 | • Issue a full refund if appropriate |
| 225 | • Help resolve any technical issues you experienced |
| 226 | • Answer any questions about your billing |
| 227 | |
| 228 | Working with us directly is often faster than going through your bank, and it helps us improve our service for everyone. |
| 229 | |
| 230 | Just reply to this email - we're here to help! |
| 231 | |
| 232 | Best regards, |
| 233 | The Codebuff Team` |
| 234 | |
| 235 | return sendBasicEmail({ |
| 236 | email, |
| 237 | data: { subject, message }, |
| 238 | logger, |
| 239 | }) |
| 240 | } |
no test coverage detected