Skip to content

Commit

Permalink
Merge pull request #280 from guardian/revert-279-support-plus-v2
Browse files Browse the repository at this point in the history
Revert "fix: use SupporterPlusV2 Zuora catalogue plans"
  • Loading branch information
jamesgorrie authored Feb 8, 2024
2 parents 1b40073 + 7a72463 commit 6b1d44b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions app/com/gu/memsub/subsv2/Plan.scala
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,13 @@ object FrontendId {
case object OneYear extends FrontendId { val name = "OneYear" }
case object ThreeMonths extends FrontendId { val name = "ThreeMonths" }
case object Monthly extends FrontendId { val name = "Monthly" }
case object MonthlyV2 extends FrontendId { val name = "MonthlyV2" }
case object Quarterly extends FrontendId { val name = "Quarterly" }
case object Yearly extends FrontendId { val name = "Yearly" }
case object YearlyV2 extends FrontendId { val name = "YearlyV2" }
case object Introductory extends FrontendId { val name = "Introductory" }
case object Free extends FrontendId { val name = "Free" }
case object SixWeeks extends FrontendId { val name = "SixWeeks" }

val all = List(OneYear, ThreeMonths, Monthly, MonthlyV2, Quarterly, Yearly, YearlyV2, Introductory, Free, SixWeeks)
val all = List(OneYear, ThreeMonths, Monthly, Quarterly, Yearly, Introductory, Free, SixWeeks)

def get(jsonString: String): Option[FrontendId] =
all.find(_.name == jsonString)
Expand Down
4 changes: 2 additions & 2 deletions app/com/gu/memsub/subsv2/services/CatalogService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class CatalogService[M[_] : Monad](productIds: ProductIds, fetchCatalog: M[Strin
one[Digipack[Year.type]](plans, "Digipack year", FrontendId.Yearly)
) (DigipackPlans)
supporterPlus <- (
one[SupporterPlus[Month.type]](plans, "Supporter Plus month", FrontendId.MonthlyV2) |@|
one[SupporterPlus[Year.type]](plans, "Supporter Plus year", FrontendId.YearlyV2)
one[SupporterPlus[Month.type]](plans, "Supporter Plus month", FrontendId.Monthly) |@|
one[SupporterPlus[Year.type]](plans, "Supporter Plus year", FrontendId.Yearly)
) (SupporterPlusPlans)
contributor <- one[Contributor](plans, "Contributor month", FrontendId.Monthly)
voucher <- many[Voucher](plans, "Paper voucher")
Expand Down

0 comments on commit 6b1d44b

Please sign in to comment.