private def dataExtensionFor()

in handlers/new-product-api/src/main/scala/com/gu/newproduct/api/addsubscription/email/SendConfirmationEmail.scala [45:57]


  private def dataExtensionFor(plan: Plan): DataExtensionName = DataExtensionName(
    plan.id match {
      case _: DigitalVoucherPlanId => "paper-subscription-card" // SV_SC_WelcomeDay0
      case _: VoucherPlanId => "paper-voucher"
      case _: DigipackPlanId => "digipack"
      case _: SupporterPlusPlanId => "supporter-plus"
      case _: ContributionPlanId => "regular-contribution-thank-you"
      case _: HomeDeliveryPlanId => "paper-delivery"
      case _: GuardianWeeklyDomestic => "guardian-weekly"
      case _: GuardianWeeklyRow => "guardian-weekly"
      case _: NationalDeliveryPlanId => "paper-national-delivery"
      case _: TierThreePlanId => "tier-three"
    },