in lambda/src/main/scala/pricemigrationengine/model/BillingPeriod.scala [36:50]
def fromString(period: String): BillingPeriod = {
if (period == "Month") {
Monthly
} else if (period == "Quarterly" || period == "Quarter") {
// This function is used when reading a BillingPeriod from a CohortItem, and we have both
// strings, Quarterly and Quarter in the cohort tables.
Quarterly
} else if (period == "Annual") {
Annual
} else if (period == "Semi_Annual") {
SemiAnnual
} else {
throw new Exception(s"could no recover BillingPeriod for period: ${period}")
}
}