MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / sendDisputeNotificationEmail

Function sendDisputeNotificationEmail

packages/internal/src/loops/client.ts:209–240  ·  view source on GitHub ↗
(params: {
  email: string
  firstName: string
  disputeAmount: string
  logger: Logger
})

Source from the content-addressed store, hash-verified

207 * Offers to work with them to resolve the issue.
208 */
209export 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
220We 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
222If 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
228Working with us directly is often faster than going through your bank, and it helps us improve our service for everyone.
229
230Just reply to this email - we're here to help!
231
232Best regards,
233The Codebuff Team`
234
235 return sendBasicEmail({
236 email,
237 data: { subject, message },
238 logger,
239 })
240}

Callers 1

webhookHandlerFunction · 0.90

Calls 1

sendBasicEmailFunction · 0.85

Tested by

no test coverage detected