refactor: renamed email notification file
MODIFY
src/assets/i18n/en.json
src/assets/i18n/en.json
},
"billingSubAccountCreationLink": {
"title": "Billing sub-account",
- "body": "You have been invited to create a billing sub-account in organization. Please check your email to complete the process"
+ "body": "You have been invited to create a billing sub-account. Please check your email to complete the process"
},
"endUserErrorNotification": {
"title": "A User Reported an Error",

RENAME
src/assets/server/notification/email/en/billing-subaccount-created.json
src/assets/server/notification/email/en/billing-sub-account-created.json
{
- "subject": "Billing - New invoice",
+ "subject": "Billing - Sub-account onboarding",
"tenant": "<%- tenantID %>",
"baseURL": "<%- evseDashboardURL %>",
"body": {

MODIFY
src/notification/email/EMailNotificationTask.ts
src/notification/email/EMailNotificationTask.ts
@@ -141,7 +141,7 @@ export default class EMailNotificationTask implements NotificationTask {
}
public async sendBillingSubAccountCreationLink(data: BillingSubAccountCreationLink, user: User, tenant: Tenant, severity: NotificationSeverity): Promise<void> {
- return this.prepareAndSendEmail('billing-subaccount-created', data, user, tenant, severity);
+ return this.prepareAndSendEmail('billing-sub-account-created', data, user, tenant, severity);
}
// TODO : Delete sendBillingNewInvoice ??

refactor: renamed email notification file