EARS: When a change or cancellation is asked for at an instant, the system shall take as the rule in force the rule for that action and the journey's current stage with the latest effective date not after that instant.
Story: As a seller, I want to know which change or cancel rule applies at any moment of the journey, so that I can tell the customer what a change costs and what a cancellation returns.
Acceptance criteria:
-
ONE-503.1: When a rule is in force for an action at an instant, the system shall take it from the rules for that action and for the stage the journey is in at that instant.
-
ONE-503.2: When a rule is in force at an instant, the system shall take one whose effective date is not after that instant.
-
ONE-503.3: When rules for an action and the current stage have started, and have not expired where expiration dates end rules, the system shall take as the rule in force one with the latest effective date among them.
-
ONE-503.4: Where expiration dates end rules, the system shall not take a rule as in force at or after its expiration date.
-
ONE-503.5: While a journey is in a stage for which an action has rules, the system shall have a rule in force for that action.
Whether a rule's expiration date ends it is a reading of the guide
(ExpiryReading).