private def shouldPerformFinalPriceCheck()

in lambda/src/main/scala/pricemigrationengine/handlers/AmendmentHandler.scala [93:104]


  private def shouldPerformFinalPriceCheck(cohortSpec: CohortSpec): Boolean = {
    // We do not apply the check to the SupporterPlus2024
    // migration where, due to the way the prices are computed, the new price can be higher than the
    // estimated price (which wasn't including the extra contribution).

    MigrationType(cohortSpec) match {
      case Newspaper2024     => true
      case GW2024            => true
      case SupporterPlus2024 => false
      case Default           => true
    }
  }