def partial[P <: SubscriptionPlan.AnyPlan]()

in app/com/gu/memsub/subsv2/Subscription.scala [145:179]


  def partial[P <: SubscriptionPlan.AnyPlan](hasPendingFreePlan: Boolean)(
    id: memsub.Subscription.Id,
    name: memsub.Subscription.Name,
    accountId: memsub.Subscription.AccountId,
    startDate: LocalDate,
    acceptanceDate: LocalDate,
    termStartDate: LocalDate,
    termEndDate: LocalDate,
    casActivationDate: Option[DateTime],
    promoCode: Option[PromoCode],
    isCancelled: Boolean,
    readerType: ReaderType,
    gifteeIdentityId: Option[String],
    autoRenew: Boolean
  )(plans: NonEmptyList[P]): Subscription[P] =
    new Subscription(
      id = id,
      name = name,
      accountId = accountId,
      startDate = startDate,
      acceptanceDate = acceptanceDate,
      termStartDate = termStartDate,
      termEndDate = termEndDate,
      casActivationDate = casActivationDate,
      promoCode = promoCode,
      isCancelled = isCancelled,
      hasPendingFreePlan = hasPendingFreePlan,
      plans = CovariantNonEmptyList(plans.head, plans.tail.toList),
      readerType = readerType,
      gifteeIdentityId = gifteeIdentityId,
      autoRenew = autoRenew
    )
}

object ReaderType {