def plansFor()

in app/conf/WeeklyPlans.scala [23:35]


  def plansFor(config: Config, product: String) = {
    WeeklySchedules(
      yearly = ProductRatePlanId(config.getString(s"weekly.$product.yearly")),
      quarterly = ProductRatePlanId(config.getString(s"weekly.$product.quarterly")),
      monthly = ProductRatePlanId(config.getString(s"weekly.$product.monthly")),
      six = if (config.hasPath(s"weekly.$product.six"))
        Some(ProductRatePlanId(config.getString(s"weekly.$product.six"))) else None,
      oneYear = if (config.hasPath(s"weekly.$product.oneyear"))
        Some(ProductRatePlanId(config.getString(s"weekly.$product.oneyear"))) else None,
      threeMonth = if (config.hasPath(s"weekly.$product.threemonths"))
        Some(ProductRatePlanId(config.getString(s"weekly.$product.threemonths"))) else None
    )
  }