in src/main/scala/payment_failure_comms/TestEventLoader.scala [102:257]
private def genScenario1(): Unit =
withConfig(config =>
genScenario(
config,
events = Seq(
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_entry", daysBeforeNow = 5)
),
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_recovery", daysBeforeNow = 1)
)
)
)
)
private def genScenario2(): Unit =
withConfig(config =>
genScenario(
config,
events = Seq(
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_entry", daysBeforeNow = 15)
),
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_recovery", daysBeforeNow = 1)
)
)
)
)
private def genScenario3(): Unit =
withConfig(config =>
genScenario(
config,
events = Seq(
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_entry", daysBeforeNow = 28)
),
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_recovery", daysBeforeNow = 1)
)
)
)
)
private def genScenario4(): Unit =
withConfig(config =>
genScenario(
config,
events = Seq(
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_entry", daysBeforeNow = 12)
),
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_cancel_voluntary", daysBeforeNow = 1)
)
)
)
)
private def genScenario5(): Unit =
withConfig(config =>
genScenario(
config,
events = Seq(
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_entry", daysBeforeNow = 28)
),
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_cancel_auto", daysBeforeNow = 1)
)
)
)
)
private def genScenario6(): Unit =
withConfig(config =>
genScenario(
config,
events = Seq(
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_entry", daysBeforeNow = 4)
),
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Guardian Weekly", "pf_entry", daysBeforeNow = 3)
)
)
)
)
private def genScenario7(): Unit =
withConfig(config =>
genScenario(
config,
events = Seq(
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_entry", daysBeforeNow = 90)
),
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_recovery", daysBeforeNow = 80)
),
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_entry", daysBeforeNow = 1)
)
)
)
)
private def genScenario8(): Unit =
withConfig(config =>
genScenario(
config,
events = Seq(
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_entry", daysBeforeNow = 90)
),
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_recovery", daysBeforeNow = 80)
),
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Guardian Weekly", "pf_entry", daysBeforeNow = 60)
),
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Guardian Weekly", "pf_recovery", daysBeforeNow = 55)
),
CustomEventWithAttributes(
Seq(ResponseCodeAttr("b1", Some("402"))),
mkCustomEvent(config, "Digital Pack", "pf_entry", daysBeforeNow = 1)
)
)
)
)
withConfig { config =>
deleteAccount(config)
createAccount(config)
}