def apply[T <: PromotionType[PromoContext]]()

in app/com/gu/memsub/promo/Promotion.scala [244:267]


  def apply[T <: PromotionType[PromoContext]](
     name: String,
     description: String,
     appliesTo: AppliesTo,
     campaign: CampaignCode,
     channelCodes: Map[Channel, Set[PromoCode]],
     landingPage: Option[LandingPage],
     starts: DateTime,
     expires: Option[DateTime],
     promotionType: T): Promotion[T, Option, LandingPage] = {

    Promotion(
      uuid = UUID.randomUUID(),
      name = name,
      description = description,
      appliesTo = appliesTo,
      campaign = campaign,
      channelCodes = channelCodes,
      landingPage = landingPage,
      starts = starts,
      expires = expires,
      promotionType = promotionType
    )
  }