* On booking add team members & translation
* Add team members to round robin create
* Only update calendars on reschedule if there is a calendar reference
* Send email on reschedules
* Send team email on cancelled event
* Add team members to calendar event description
* Clean up
* Convert other emails to organizer & teams
* Type check fixes
* More type fixes
* Change organizer scheduled input to an object
* early return updateCalendarEvent
* Introduce team member type
* Fix type errors
* Put team members before attendees
* Remove lodash cloneDeep
* Update packages/core/EventManager.ts
Co-authored-by: Omar López <zomars@me.com>
* Remove booking select object
* Revert "Remove booking select object"
This reverts commit 9f121ff4eb
.
* Refactor email manager (#7270)
Co-authored-by: zomars <zomars@me.com>
* Type change
* Remove conditional check for updateAllCalendarEvents
---------
Co-authored-by: zomars <zomars@me.com>
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import { APP_NAME } from "@calcom/lib/constants";
|
|
|
|
import { renderEmail } from "../";
|
|
import OrganizerScheduledEmail from "./organizer-scheduled-email";
|
|
|
|
export default class OrganizerPaymentRefundFailedEmail extends OrganizerScheduledEmail {
|
|
protected getNodeMailerPayload(): Record<string, unknown> {
|
|
const toAddresses = [this.teamMember?.email || this.calEvent.organizer.email];
|
|
|
|
return {
|
|
from: `${APP_NAME} <${this.getMailerOptions().from}>`,
|
|
to: toAddresses.join(","),
|
|
subject: `${this.t("refund_failed_subject", {
|
|
eventType: this.calEvent.type,
|
|
name: this.calEvent.attendees[0].name,
|
|
date: this.getFormattedDate(),
|
|
})}`,
|
|
html: renderEmail("OrganizerPaymentRefundFailedEmail", {
|
|
calEvent: this.calEvent,
|
|
attendee: this.calEvent.organizer,
|
|
}),
|
|
text: this.getTextBody(
|
|
"a_refund_failed",
|
|
this.t("check_with_provider_and_user", {
|
|
user: this.calEvent.attendees[0].name,
|
|
}),
|
|
this.calEvent.paymentInfo
|
|
? this.t("error_message", {
|
|
errorMessage: this.calEvent.paymentInfo.reason,
|
|
})
|
|
: " "
|
|
),
|
|
};
|
|
}
|
|
}
|