def paymentFailureId()

in handlers/zuora-callout-apis/src/main/scala/com/gu/util/email/EmailSendSteps.scala [43:49]


  def paymentFailureId(failureNumber: Int): Either[String, EmailId] = failureNumber match {
    case 1 => Right(EmailId("first-failed-payment-email"))
    case 2 => Right(EmailId("second-failed-payment-email"))
    case 3 => Right(EmailId("third-failed-payment-email"))
    case 4 => Right(EmailId("fourth-failed-payment-email"))
    case _ => Left(s"no Braze id configured for failure number: $failureNumber")
  }