All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gu.config.DiscountRatePlanIds.scala Maven / Gradle / Ivy

There is a newer version: 0.605
Show newest version
package com.gu.config

import com.gu.memsub.Subscription.{ProductRatePlanChargeId, ProductRatePlanId}
import com.typesafe.config.Config


case class DiscountRatePlan(planId: ProductRatePlanId, planChargeId: ProductRatePlanChargeId)
case class DiscountRatePlanIds(percentageDiscount: DiscountRatePlan)

object DiscountRatePlanIds {
  def fromConfig(config: Config) =
    DiscountRatePlanIds(
      DiscountRatePlan(
        ProductRatePlanId(config.getString("discount.percentage.plan")),
        ProductRatePlanChargeId(config.getString("discount.percentage.charge"))
      )
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy