Skip to content

Commit 44d1ebd

Browse files
authored
Remove Sunday+ plans from new-product-api (#3324)
1 parent 38ab6cb commit 44d1ebd

File tree

12 files changed

+3
-107
lines changed

12 files changed

+3
-107
lines changed

handlers/new-product-api/src/main/scala/com/gu/newproduct/api/addsubscription/email/serialisers/DigipackEmailFields.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ object DigipackEmailDataSerialiser {
2323
object DigipackEmailFields {
2424

2525
val digipackPlans =
26-
List(VoucherWeekendPlus, VoucherEveryDayPlus, VoucherSixDayPlus, VoucherSundayPlus, VoucherSaturdayPlus)
26+
List(VoucherWeekendPlus, VoucherEveryDayPlus, VoucherSixDayPlus, VoucherSaturdayPlus)
2727
val dateformat = DateTimeFormatter.ofPattern("d MMMM yyyy")
2828

2929
def nounFor(billingPeriod: BillingPeriod) = billingPeriod match {

handlers/new-product-api/src/main/scala/com/gu/newproduct/api/addsubscription/email/serialisers/PaperEmailFields.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ object PaperEmailDataSerialiser {
1515
object PaperEmailFields {
1616

1717
private val digipackPlans =
18-
List(VoucherWeekendPlus, VoucherEveryDayPlus, VoucherSixDayPlus, VoucherSundayPlus, VoucherSaturdayPlus)
18+
List(VoucherWeekendPlus, VoucherEveryDayPlus, VoucherSixDayPlus, VoucherSaturdayPlus)
1919
private val dateformat = DateTimeFormatter.ofPattern("d MMMM yyyy")
2020

2121
def serialise(data: PaperEmailData): Map[String, String] =

handlers/new-product-api/src/main/scala/com/gu/newproduct/api/productcatalog/plans/DigitalVoucherPlans.scala

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@ class DigitalVoucherPlans(getStartDateFromFulfilmentFiles: (ProductType, List[Da
6060
startDateRule(sundayDays),
6161
Monthly,
6262
),
63-
(
64-
DigitalVoucherSundayPlus,
65-
PlanDescription("Sunday+"),
66-
startDateRule(sundayDays),
67-
Monthly,
68-
),
6963
(
7064
DigitalVoucherSixday,
7165
PlanDescription("Sixday"),

handlers/new-product-api/src/main/scala/com/gu/newproduct/api/productcatalog/plans/HomeDeliveryPlans.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class HomeDeliveryPlans(getStartDateFromFulfilmentFiles: (ProductType, List[DayO
3636
(HomeDeliveryEveryDayPlus, PlanDescription("Everyday+"), everyDayRules, Monthly),
3737
(HomeDeliverySixDayPlus, PlanDescription("Sixday+"), sixDayRules, Monthly),
3838
(HomeDeliveryWeekendPlus, PlanDescription("Weekend+"), weekendRules, Monthly),
39-
(HomeDeliverySundayPlus, PlanDescription("Sunday+"), sundayDateRules, Monthly),
4039
(HomeDeliverySaturdayPlus, PlanDescription("Saturday+"), saturdayDateRules, Monthly),
4140
)
4241

handlers/new-product-api/src/main/scala/com/gu/newproduct/api/productcatalog/plans/VoucherPlans.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class VoucherPlans(getStartDateFromFulfilmentFiles: (ProductType, List[DayOfWeek
3434
(VoucherSixDay, PlanDescription("Sixday"), mondayRules, Monthly),
3535
(VoucherWeekendPlus, PlanDescription("Weekend+"), saturdayDateRules, Monthly),
3636
(VoucherSaturdayPlus, PlanDescription("Saturday+"), saturdayDateRules, Monthly),
37-
(VoucherSundayPlus, PlanDescription("Sunday+"), sundayDateRules, Monthly),
3837
(VoucherEveryDayPlus, PlanDescription("Everyday+"), mondayRules, Monthly),
3938
(VoucherSixDayPlus, PlanDescription("Sixday+"), mondayRules, Monthly),
4039
)

handlers/new-product-api/src/test/scala/com/gu/newproduct/api/PricesFromZuoraCatalogEffectsTest.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ object ProductsData {
4343

4444
val voucher = Set(
4545
VoucherSaturdayPlus,
46-
VoucherSundayPlus,
4746
VoucherWeekendPlus,
4847
VoucherSixDayPlus,
4948
VoucherEveryDayPlus,
@@ -59,7 +58,6 @@ object ProductsData {
5958
HomeDeliveryEveryDay,
6059
HomeDeliverySixDay,
6160
HomeDeliveryWeekendPlus,
62-
HomeDeliverySundayPlus,
6361
HomeDeliveryEveryDayPlus,
6462
HomeDeliverySixDayPlus,
6563
HomeDeliverySaturday,
@@ -71,7 +69,6 @@ object ProductsData {
7169
DigitalVoucherSaturdayPlus,
7270
DigitalVoucherSixdayPlus,
7371
DigitalVoucherWeekend,
74-
DigitalVoucherSundayPlus,
7572
DigitalVoucherEverydayPlus,
7673
DigitalVoucherSixday,
7774
DigitalVoucherEveryday,

handlers/new-product-api/src/test/scala/com/gu/newproduct/api/PricesFromZuoraCatalogTest.scala

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,6 @@ class PricesFromZuoraCatalogTest extends AnyFlatSpec with Matchers {
3636
| "pricing": [ { "currency": "GBP", "price": 11.26 }, { "currency": "USD", "price": 11.46 }, { "currency": "EUR", "price": 11.26 } ]
3737
| }
3838
| ]
39-
| },
40-
| {
41-
| "id": "VoucherSundayPlusId",
42-
| "productRatePlanCharges": [
43-
| {
44-
| "name": "Digital Pack",
45-
| "pricing": [ { "currency": "GBP", "price": 11.27 }
46-
| ]
47-
| },
48-
| {
49-
| "name": "Sunday",
50-
| "pricing": [ {"currency": "GBP", "price": 10.79 } ]
51-
| }
52-
| ]
5339
| }
5440
| ]
5541
| }
@@ -62,7 +48,6 @@ class PricesFromZuoraCatalogTest extends AnyFlatSpec with Matchers {
6248
it should "load catalog" in {
6349

6450
val rateplanToPlanId = Map(
65-
ProductRatePlanId("VoucherSundayPlusId") -> VoucherSundayPlus,
6651
ProductRatePlanId("VoucherSaturdayPlusId") -> VoucherSaturdayPlus,
6752
)
6853

@@ -78,9 +63,6 @@ class PricesFromZuoraCatalogTest extends AnyFlatSpec with Matchers {
7863
USD -> AmountMinorUnits(2192),
7964
EUR -> AmountMinorUnits(2152),
8065
),
81-
VoucherSundayPlus -> Map(
82-
GBP -> AmountMinorUnits(2206),
83-
),
8466
),
8567
)
8668
}

handlers/new-product-api/src/test/scala/com/gu/newproduct/api/addsubscription/email/paper/PaperEmailDataTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class PaperEmailDataTest extends AnyFlatSpec with Matchers {
221221
it should "IncludesDigipack should be true for plus plans " in {
222222

223223
val digipackPlans =
224-
List(VoucherEveryDayPlus, VoucherWeekendPlus, VoucherSixDayPlus, VoucherSaturdayPlus, VoucherSundayPlus)
224+
List(VoucherEveryDayPlus, VoucherWeekendPlus, VoucherSixDayPlus, VoucherSaturdayPlus)
225225

226226
val allDigipackPlanFields: List[Map[String, String]] = fieldsForPlanIds(digipackPlans)
227227

handlers/new-product-api/src/test/scala/com/gu/newproduct/api/productcatalog/CatalogWireTest.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class CatalogWireTest extends AnyFlatSpec with Matchers with ResourceLoader {
3333
case VoucherWeekendPlus => gbpPrice(2942)
3434
case VoucherWeekend => gbpPrice(2076)
3535
case VoucherSunday => gbpPrice(1079)
36-
case VoucherSundayPlus => gbpPrice(2206)
3736
case VoucherSaturday => gbpPrice(1036)
3837
case VoucherSaturdayPlus => gbpPrice(2162)
3938
case VoucherEveryDay => gbpPrice(4762)
@@ -51,7 +50,6 @@ class CatalogWireTest extends AnyFlatSpec with Matchers with ResourceLoader {
5150
case HomeDeliveryWeekend => gbpPrice(888)
5251
case HomeDeliveryEveryDayPlus => gbpPrice(999)
5352
case HomeDeliverySaturdayPlus => gbpPrice(678)
54-
case HomeDeliverySundayPlus => gbpPrice(1010)
5553
case HomeDeliverySixDayPlus => gbpPrice(1111)
5654
case HomeDeliveryWeekendPlus => gbpPrice(2222)
5755
case DigipackMonthly =>
@@ -103,7 +101,6 @@ class CatalogWireTest extends AnyFlatSpec with Matchers with ResourceLoader {
103101
case DigitalVoucherSaturday => gbpPrice(7007)
104102
case DigitalVoucherSaturdayPlus => gbpPrice(7008)
105103
case DigitalVoucherSunday => gbpPrice(7009)
106-
case DigitalVoucherSundayPlus => gbpPrice(7010)
107104
case NationalDeliveryEveryday => gbpPrice(7100)
108105
case NationalDeliverySixday => gbpPrice(7101)
109106
case NationalDeliveryWeekend => gbpPrice(7102)

handlers/new-product-api/src/test/scala/com/gu/newproduct/api/productcatalog/catalogWireTest.json

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -166,23 +166,6 @@
166166
"description" : "GBP 6.78 every month"
167167
} ],
168168
"paymentPlan" : "GBP 6.78 every month"
169-
}, {
170-
"id" : "home_delivery_sunday_plus",
171-
"label" : "Sunday+",
172-
"startDateRules" : {
173-
"daysOfWeek" : [ "Sunday" ],
174-
"selectableWindow" : {
175-
"startDate" : "2020-02-04",
176-
"sizeInDays" : 28
177-
}
178-
},
179-
"paymentPlans" : [ {
180-
"currencyCode" : "GBP",
181-
"amount" : 10.1,
182-
"billingPeriod" : "Monthly",
183-
"description" : "GBP 10.10 every month"
184-
} ],
185-
"paymentPlan" : "GBP 10.10 every month"
186169
}, {
187170
"id" : "home_delivery_everyday",
188171
"label" : "Everyday",
@@ -445,23 +428,6 @@
445428
"description" : "GBP 70.08 every month"
446429
} ],
447430
"paymentPlan" : "GBP 70.08 every month"
448-
}, {
449-
"id" : "digital_voucher_sunday_plus",
450-
"label" : "Sunday+",
451-
"startDateRules" : {
452-
"daysOfWeek" : [ "Sunday" ],
453-
"selectableWindow" : {
454-
"startDate" : "2020-04-05",
455-
"sizeInDays" : 1
456-
}
457-
},
458-
"paymentPlans" : [ {
459-
"currencyCode" : "GBP",
460-
"amount" : 70.1,
461-
"billingPeriod" : "Monthly",
462-
"description" : "GBP 70.10 every month"
463-
} ],
464-
"paymentPlan" : "GBP 70.10 every month"
465431
}, {
466432
"id" : "digital_voucher_everyday",
467433
"label" : "Everyday",
@@ -619,23 +585,6 @@
619585
"description" : "GBP 21.62 every month"
620586
} ],
621587
"paymentPlan" : "GBP 21.62 every month"
622-
}, {
623-
"id" : "voucher_sunday_plus",
624-
"label" : "Sunday+",
625-
"startDateRules" : {
626-
"daysOfWeek" : [ "Sunday" ],
627-
"selectableWindow" : {
628-
"startDate" : "2020-03-03",
629-
"sizeInDays" : 35
630-
}
631-
},
632-
"paymentPlans" : [ {
633-
"currencyCode" : "GBP",
634-
"amount" : 22.06,
635-
"billingPeriod" : "Monthly",
636-
"description" : "GBP 22.06 every month"
637-
} ],
638-
"paymentPlan" : "GBP 22.06 every month"
639588
}, {
640589
"id" : "voucher_everyday",
641590
"label" : "Everyday",

0 commit comments

Comments
 (0)