EARS: When a seller adds services to an order, the system shall accept the request only if every flight-related ancillary in it has a live flight service for its passenger and segment, in the order or in the request.
Story: As an airline, I want a bag or a seat sold only with the flight it is for, so that no customer pays for an ancillary on a flight they do not hold.
Acceptance criteria:
-
ONE-602.1: If a seller adds a flight-related ancillary for a passenger on a segment, and neither the order nor the request holds a live flight service for that passenger on that segment, then the system shall refuse the request.
-
ONE-602.2: When a request to add services is accepted, the system shall add its order items after the existing ones and leave the existing ones as they were.
-
ONE-602.3: Where no service in a request is a flight-related ancillary, the system shall accept the request.
-
ONE-602.4: When a seller changes an order item of an order in which every live flight-related ancillary has a live flight service for its passenger and segment, the system shall keep a live flight service for the passenger and segment of every live flight-related ancillary.
Which kinds are flight related is the reading's. The last criterion asks
whether the rule holds for the life of the order or only when the ancillary
is bought; it is checked against the change rule for a paid change
(Rules.OneOrder.Change.changeItem).