in membership-attribute-service/app/services/mail/Emails.scala [47:68]
def updateAmountEmail(
email: String,
contact: Contact,
newPrice: BigDecimal,
currency: Currency,
billingPeriod: RecurringPeriod,
nextPaymentDate: LocalDate,
): EmailData = {
EmailData(
email,
contact.salesforceContactId,
"payment-amount-changed-email",
Map(
"first_name" -> contact.firstName.getOrElse(""),
"last_name" -> contact.lastName,
"new_amount" -> decimalFormat.format(newPrice),
"currency" -> currency.iso,
"frequency" -> billingPeriod.noun,
"next_payment_date" -> dateFormat.print(nextPaymentDate),
),
)
}