Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same Discount holiday stop product is reused for all products #429

Merged
merged 1 commit into from
Sep 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"
)
}