Skip to content

Commit

Permalink
Same Discount holiday stop product is reused for all products
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Galic committed Sep 26, 2019
1 parent 463f0ab commit 3fcafd3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,30 +123,21 @@ object GuardianWeeklyHolidayStopConfig {

lazy val Prod =
GuardianWeeklyHolidayStopConfig(
HolidayCreditProduct(
productRatePlanId = "2c92a0076ae9189c016b080c930a6186",
productRatePlanChargeId = "2c92a0086ae928d7016b080f638477a6"
),
HolidayCreditProduct.Prod,
guardianWeeklyProductRatePlanIdsPROD,
gwNforNProductRatePlanIdsPROD,
)

lazy val Code =
GuardianWeeklyHolidayStopConfig(
HolidayCreditProduct(
productRatePlanId = "2c92c0f86b0378b0016b08112e870d0a",
productRatePlanChargeId = "2c92c0f86b0378b0016b08112ec70d14"
),
HolidayCreditProduct.Code,
guardianWeeklyProductRatePlanIdsUAT,
gwNforNProductRatePlanIdsUAT
)

lazy val Dev =
GuardianWeeklyHolidayStopConfig(
HolidayCreditProduct(
productRatePlanId = "2c92c0f96b03800b016b081fc04f1ba2",
productRatePlanChargeId = "2c92c0f96b03800b016b081fc0f41bb4"
),
HolidayCreditProduct.Dev,
guardianWeeklyProductRatePlanIdsDEV,
gwNforNProductRatePlanIdsDEV
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.gu.holiday_stops

/**
* Same Discount product is reused for all products, namely:
* Same Discount holiday stop product is reused for all products, namely:
* 'DO NOT USE MANUALLY: Holiday Credit - automated'
*
* https://www.zuora.com/apps/Product.do?method=view&id=2c92a0ff5345f9200153559c6d2a3385#ST_DO%20NOT%20USE%20MANUALLY:%20Holiday%20Credit%20-%20automated
*/
case class HolidayCreditProduct(
productRatePlanId: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
package com.gu.holiday_stops

// DO NOT USE MANUALLY: Holiday Credit - automated
case class SundayVoucherHolidayStopConfig(
holidayCreditProduct: HolidayCreditProduct,
productRatePlanChargeId: String
)

object SundayVoucherHolidayStopConfig {
val Prod = SundayVoucherHolidayStopConfig(
holidayCreditProduct = HolidayCreditProduct(
productRatePlanId = "2c92a0076ae9189c016b080c930a6186",
productRatePlanChargeId = "2c92a0086ae928d7016b080f638477a6"
),
HolidayCreditProduct.Prod,
productRatePlanChargeId = "2c92a0fe5af9a6b9015b0fe1ed121177"
)
val Code = SundayVoucherHolidayStopConfig(
holidayCreditProduct = HolidayCreditProduct(
productRatePlanId = "2c92c0f86b0378b0016b08112e870d0a",
productRatePlanChargeId = "2c92c0f86b0378b0016b08112ec70d14"
),
HolidayCreditProduct.Code,
productRatePlanChargeId = "2c92c0f95aff3b54015b0ee0eb620b30"
)
val Dev = SundayVoucherHolidayStopConfig(
holidayCreditProduct = HolidayCreditProduct(
productRatePlanId = "2c92c0f96b03800b016b081fc04f1ba2",
productRatePlanChargeId = "2c92c0f96b03800b016b081fc0f41bb4"
),
HolidayCreditProduct.Dev,
productRatePlanChargeId = "2c92c0f95aff3b56015b1045fba832d4"
)
}

0 comments on commit 3fcafd3

Please sign in to comment.