private def domestic()

in support-models/src/main/scala/com/gu/support/catalog/Product.scala [288:385]


  private def domestic(
      id: String,
      billingPeriod: BillingPeriod,
      description: String,
      readerType: ReaderType = Direct,
  ) = ProductRatePlan(
    id,
    billingPeriod,
    Domestic,
    NoProductOptions,
    description,
    readerType = readerType,
  )

  private def restOfWorld(
      id: String,
      billingPeriod: BillingPeriod,
      description: String,
      readerType: ReaderType = Direct,
  ) = ProductRatePlan(
    id,
    billingPeriod,
    RestOfWorld,
    NoProductOptions,
    description,
    readerType = readerType,
  )

  lazy val ratePlans: Map[TouchPointEnvironment, List[ProductRatePlan[GuardianWeekly.type]]] =
    Map(
      PROD -> List(
        restOfWorld("2c92a0fe6619b4b601661ab300222651", Annual, "Guardian Weekly annual, rest of world delivery"),
        restOfWorld(
          "2c92a0ff67cebd140167f0a2f66a12eb",
          Annual,
          "Guardian Weekly one year, rest of world delivery",
          readerType = Gift,
        ),
        restOfWorld("2c92a0086619bf8901661ab02752722f", Quarterly, "Guardian Weekly quarterly, rest of world delivery"),
        restOfWorld("2c92a0ff79ac64e30179ae45669b3a83", Monthly, "Guardian Weekly monthly, rest of world delivery"),
        restOfWorld(
          "2c92a0076dd9892e016df8503e7c6c48",
          Quarterly,
          "Guardian Weekly three month, rest of world delivery",
          readerType = Gift,
        ),
        domestic("2c92a0fe6619b4b901661aa8e66c1692", Annual, "Guardian Weekly annual, domestic delivery"),
        domestic(
          "2c92a0ff67cebd0d0167f0a1a834234e",
          Annual,
          "Guardian Weekly one year, domestic delivery",
          readerType = Gift,
        ),
        domestic("2c92a0fe6619b4b301661aa494392ee2", Quarterly, "Guardian Weekly quarterly, domestic delivery"),
        domestic("2c92a0fd79ac64b00179ae3f9d474960", Monthly, "Guardian Weekly monthly, domestic delivery"),
        domestic(
          "2c92a00e6dd988e2016df85387417498",
          Quarterly,
          "Guardian Weekly three months, domestic delivery",
          readerType = Gift,
        ),
      ),
      CODE -> List(
        restOfWorld("2c92c0f965f2122101660fb33ed24a45", Annual, "Guardian Weekly annual, rest of world delivery"),
        restOfWorld(
          "2c92c0f967caee410167eff78e7b5244",
          Annual,
          "Guardian Weekly one year, rest of world delivery",
          readerType = Gift,
        ),
        restOfWorld("2c92c0f965f2122101660fb81b745a06", Quarterly, "Guardian Weekly quarterly, rest of world delivery"),
        restOfWorld("2c92c0f878ac402c0178acb3a90a3620", Monthly, "Guardian Weekly monthly, rest of world delivery"),
        restOfWorld(
          "2c92c0f96df75b5a016df81ba1c62609",
          Quarterly,
          "Guardian Weekly three months, rest of world delivery",
          readerType = Gift,
        ),
        domestic("2c92c0f965d280590165f16b1b9946c2", Annual, "Guardian Weekly annual, domestic delivery"),
        domestic(
          "2c92c0f867cae0700167eff921734f7b",
          Annual,
          "Guardian Weekly one year, domestic delivery",
          readerType = Gift,
        ),
        domestic("2c92c0f965dc30640165f150c0956859", Quarterly, "Guardian Weekly quarterly, domestic delivery"),
        domestic("2c92c0f878ac40300178acaa04bb401d", Monthly, "Guardian Weekly monthly, domestic delivery"),
        domestic(
          "2c92c0f96ded216a016df491134d4091",
          Quarterly,
          "Guardian Weekly three months, domestic delivery",
          readerType = Gift,
        ),
      ),
    )
}

object Product {