in lib/zuora-models/src/main/scala/com/gu/newproduct/api/productcatalog/ZuoraIds.scala [215:402]
def zuoraIdsForStage(stage: Stage): Either[String, ZuoraIds] = {
val mappings = Map(
// todo ideally we should add an id to the fields in zuora so we don't have to hard code
Stage("PROD") -> ZuoraIds(
SupporterPlusZuoraIds(
// Can be deleted after migration of existing subs to V2 - needed until then for cancellations
monthly = PlanAndCharge(
productRatePlanId = ProductRatePlanId("8a12865b8219d9b401822106192b64dc"),
productRatePlanChargeId = ProductRatePlanChargeId("8a12865b8219d9b401822106194e64e3"),
),
monthlyV2 = PlanAndCharges(
productRatePlanId = ProductRatePlanId("8a128ed885fc6ded018602296ace3eb8"),
productRatePlanChargeId = ProductRatePlanChargeId("8a128ed885fc6ded018602296af13eba"),
contributionProductRatePlanChargeId = ProductRatePlanChargeId("8a128d7085fc6dec01860234cd075270"),
),
// Can be deleted after migration of existing subs to V2 - needed until then for cancellations
annual = PlanAndCharge(
productRatePlanId = ProductRatePlanId("8a12865b8219d9b40182210618a464ba"),
productRatePlanChargeId = ProductRatePlanChargeId("8a12865b8219d9b40182210618c664c1"),
),
annualV2 = PlanAndCharges(
productRatePlanId = ProductRatePlanId("8a128ed885fc6ded01860228f77e3d5a"),
productRatePlanChargeId = ProductRatePlanChargeId("8a128ed885fc6ded01860228f7cb3d5f"),
contributionProductRatePlanChargeId = ProductRatePlanChargeId("8a12892d85fc6df4018602451322287f"),
),
),
ContributionsZuoraIds(
monthly = PlanAndCharge(
ProductRatePlanId("2c92a0fc5aacfadd015ad24db4ff5e97"),
ProductRatePlanChargeId("2c92a0fc5aacfadd015ad250bf2c6d38"),
),
annual = PlanAndCharge(
ProductRatePlanId("2c92a0fc5e1dc084015e37f58c200eea"),
ProductRatePlanChargeId("2c92a0fc5e1dc084015e37f58c7b0f34"),
),
),
VoucherZuoraIds(
everyday = ProductRatePlanId("2c92a0fd56fe270b0157040dd79b35da"),
saturday = ProductRatePlanId("2c92a0fd6205707201621f9f6d7e0116"),
weekend = ProductRatePlanId("2c92a0ff56fe33f00157040f9a537f4b"),
sixDay = ProductRatePlanId("2c92a0fd56fe270b0157040e42e536ef"),
everydayPlus = ProductRatePlanId("2c92a0ff56fe33f50157040bbdcf3ae4"),
sundayPlus = ProductRatePlanId("2c92a0fe56fe33ff0157040d4b824168"),
saturdayPlus = ProductRatePlanId("2c92a0fd6205707201621fa1350710e3"),
weekendPlus = ProductRatePlanId("2c92a0fd56fe26b60157040cdd323f76"),
sixDayPlus = ProductRatePlanId("2c92a0fc56fe26ba0157040c5ea17f6a"),
),
HomeDeliveryZuoraIds(
everyday = ProductRatePlanId("2c92a0fd560d13880156136b72e50f0c"),
sixDay = ProductRatePlanId("2c92a0ff560d311b0156136f2afe5315"),
weekend = ProductRatePlanId("2c92a0fd5614305c01561dc88f3275be"),
saturday = ProductRatePlanId("2c92a0fd5e1dcf0d015e3cb39d0a7ddb"),
saturdayPlus = ProductRatePlanId("2c92a0ff6205708e01622484bb2c4613"),
sundayPlus = ProductRatePlanId("2c92a0fd560d13880156136b8e490f8b"),
weekendPlus = ProductRatePlanId("2c92a0ff560d311b0156136b9f5c3968"),
sixDayPlus = ProductRatePlanId("2c92a0ff560d311b0156136b697438a9"),
everydayPlus = ProductRatePlanId("2c92a0fd560d132301560e43cf041a3c"),
),
DigipackZuoraIds(
monthly = ProductRatePlanId("2c92a0fb4edd70c8014edeaa4eae220a"),
annual = ProductRatePlanId("2c92a0fb4edd70c8014edeaa4e972204"),
),
GuardianWeeklyDomesticIds(
monthly = ProductRatePlanId("2c92a0fd79ac64b00179ae3f9d474960"),
quarterly = ProductRatePlanId("2c92a0fe6619b4b301661aa494392ee2"),
annual = ProductRatePlanId("2c92a0fe6619b4b901661aa8e66c1692"),
),
GuardianWeeklyROWIds(
monthly = ProductRatePlanId("2c92a0ff79ac64e30179ae45669b3a83"),
quarterly = ProductRatePlanId("2c92a0086619bf8901661ab02752722f"),
annual = ProductRatePlanId("2c92a0fe6619b4b601661ab300222651"),
),
DigitalVoucherZuoraIds(
everyday = ProductRatePlanId("2c92a00870ec598001710740c78d2f13"),
saturday = ProductRatePlanId("2c92a00870ec598001710740cdd02fbd"),
weekend = ProductRatePlanId("2c92a00870ec598001710740d24b3022"),
sixDay = ProductRatePlanId("2c92a00870ec598001710740ca532f69"),
everydayPlus = ProductRatePlanId("2c92a00870ec598001710740d3d03035"),
sundayPlus = ProductRatePlanId("2c92a00870ec598001710740cf9e3004"),
saturdayPlus = ProductRatePlanId("2c92a00870ec598001710740ce702ff0"),
weekendPlus = ProductRatePlanId("2c92a00870ec598001710740c6672ee7"),
sixDayPlus = ProductRatePlanId("2c92a00870ec598001710740c4582ead"),
),
NationalDeliveryZuoraIds(
everyday = ProductRatePlanId("8a12999f8a268c57018a27ebe31414a4"),
weekend = ProductRatePlanId("8a12999f8a268c57018a27ebe868150c"),
sixDay = ProductRatePlanId("8a12999f8a268c57018a27ebfd721883"),
),
TierThreeZuoraIds(
monthlyDomestic = ProductRatePlanId("8a1299788ff2ec100190025fccc32bb1"),
annualDomestic = ProductRatePlanId("8a1288a38ff2af980190025b32591ccc"),
monthlyRestOfWorld = ProductRatePlanId("8a128ab18ff2af9301900255d77979ac"),
annualRestOfWorld = ProductRatePlanId("8a1299788ff2ec100190024d1e3b1a09"),
),
),
Stage("CODE") -> ZuoraIds(
SupporterPlusZuoraIds(
monthly = PlanAndCharge(
productRatePlanId = ProductRatePlanId("8ad09fc281de1ce70181de3b251736a4"),
productRatePlanChargeId = ProductRatePlanChargeId("8ad09fc281de1ce70181de3b253e36a6"),
),
monthlyV2 = PlanAndCharges(
productRatePlanId = ProductRatePlanId("8ad08cbd8586721c01858804e3275376"),
productRatePlanChargeId = ProductRatePlanChargeId("8ad08cbd8586721c01858804e3715378"),
contributionProductRatePlanChargeId = ProductRatePlanChargeId("8ad09ea0858682bb0185880ac57f4c4c"),
),
annual = PlanAndCharge(
productRatePlanId = ProductRatePlanId("8ad09fc281de1ce70181de3b28ee3783"),
productRatePlanChargeId = ProductRatePlanChargeId("8ad09fc281de1ce70181de3b29223787"),
),
annualV2 = PlanAndCharges(
productRatePlanId = ProductRatePlanId("8ad08e1a8586721801858805663f6fab"),
productRatePlanChargeId = ProductRatePlanChargeId("8ad08e1a858672180185880566606fad"),
contributionProductRatePlanChargeId = ProductRatePlanChargeId("8ad096ca858682bb0185881568385d73"),
),
),
ContributionsZuoraIds(
monthly = PlanAndCharge(
productRatePlanId = ProductRatePlanId("2c92c0f85a6b134e015a7fcd9f0c7855"),
productRatePlanChargeId = ProductRatePlanChargeId("2c92c0f85a6b1352015a7fcf35ab397c"),
),
annual = PlanAndCharge(
productRatePlanId = ProductRatePlanId("2c92c0f85e2d19af015e3896e824092c"),
productRatePlanChargeId = ProductRatePlanChargeId("2c92c0f85e2d19af015e3896e84d092e"),
),
),
VoucherZuoraIds(
everyday = ProductRatePlanId("2c92c0f9555cf10501556e84a70440e2"),
saturday = ProductRatePlanId("2c92c0f861f9c26d0161fc434bfe004c"),
weekend = ProductRatePlanId("2c92c0f8555ce5cf01556e7f01b81b94"),
sixDay = ProductRatePlanId("2c92c0f8555ce5cf01556e7f01771b8a"),
everydayPlus = ProductRatePlanId("2c92c0f95aff3b53015b10469bbf5f5f"),
sundayPlus = ProductRatePlanId("2c92c0f955a0b5bf0155b62623846fc8"),
saturdayPlus = ProductRatePlanId("2c92c0f961f9cf300161fc44f2661258"),
weekendPlus = ProductRatePlanId("2c92c0f95aff3b54015b1047efaa2ac3"),
sixDayPlus = ProductRatePlanId("2c92c0f855c3b8190155c585a95e6f5a"),
),
HomeDeliveryZuoraIds(
everyday = ProductRatePlanId("2c92c0f955c3cf0f0155c5d9e2493c43"),
sixDay = ProductRatePlanId("2c92c0f955c3cf0f0155c5d9ddf13bc5"),
weekend = ProductRatePlanId("2c92c0f955c3cf0f0155c5d9df433bf7"),
sundayPlus = ProductRatePlanId("2c92c0f955c3cf0f0155c5d9e83a3cb7"),
saturday = ProductRatePlanId("2c92c0f961f9cf300161fc4d2e3e3664"),
saturdayPlus = ProductRatePlanId("2c92c0f961f9cf300161fc4f71473a34"),
weekendPlus = ProductRatePlanId("2c92c0f95aff3b56015b104aa9a13ea5"),
sixDayPlus = ProductRatePlanId("2c92c0f85aff33ff015b1042d4ba0a05"),
everydayPlus = ProductRatePlanId("2c92c0f85aff3453015b10496b5e3d17"),
),
DigipackZuoraIds(
monthly = ProductRatePlanId("2c92c0f84bbfec8b014bc655f4852d9d"),
annual = ProductRatePlanId("2c92c0f94bbffaaa014bc6a4212e205b"),
),
GuardianWeeklyDomesticIds(
monthly = ProductRatePlanId("2c92c0f878ac40300178acaa04bb401d"),
quarterly = ProductRatePlanId("2c92c0f965dc30640165f150c0956859"),
annual = ProductRatePlanId("2c92c0f965d280590165f16b1b9946c2"),
),
GuardianWeeklyROWIds(
monthly = ProductRatePlanId("2c92c0f878ac402c0178acb3a90a3620"),
quarterly = ProductRatePlanId("2c92c0f965f2122101660fb81b745a06"),
annual = ProductRatePlanId("2c92c0f965f2122101660fb33ed24a45"),
),
DigitalVoucherZuoraIds(
everyday = ProductRatePlanId("2c92c0f86fa49142016fa49ea56a2938"),
saturday = ProductRatePlanId("2c92c0f86fa49142016fa49ea442291b"),
weekend = ProductRatePlanId("2c92c0f86fa49142016fa49ea0d028b6"),
sixDay = ProductRatePlanId("2c92c0f86fa49142016fa49e9b9a286f"),
everydayPlus = ProductRatePlanId("2c92c0f86fa49142016fa49eaa492988"),
sundayPlus = ProductRatePlanId("2c92c0f86fa49142016fa49ea90e2976"),
saturdayPlus = ProductRatePlanId("2c92c0f86fa49142016fa49eb1732a39"),
weekendPlus = ProductRatePlanId("2c92c0f86fa49142016fa49eaecb29dd"),
sixDayPlus = ProductRatePlanId("2c92c0f86fa49142016fa49ea1af28c8"),
),
NationalDeliveryZuoraIds(
everyday = ProductRatePlanId("8ad096ca8992481d018992a363bd17ad"),
weekend = ProductRatePlanId("8ad096ca8992481d018992a36256175e"),
sixDay = ProductRatePlanId("8ad096ca8992481d018992a35f60171b"),
),
TierThreeZuoraIds(
monthlyDomestic = ProductRatePlanId("8ad097b48ff26452019001cebac92376"),
annualDomestic = ProductRatePlanId("8ad081dd8ff24a9a019001d95e4e3574"),
monthlyRestOfWorld = ProductRatePlanId("8ad081dd8ff24a9a019001df2ce83657"),
annualRestOfWorld = ProductRatePlanId("8ad097b48ff26452019001e65bbf2ca8"),
),
),
)
mappings.get(stage).toRight(s"missing zuora ids for stage $stage")
}