EARS: When the airline cancels a flight and does not re-accommodate the customer, the system shall cancel every live service on that flight with delivery status UNABLE TO DELIVER.
Story: As a customer whose flight the airline cancelled, I want the cancelled services marked and their value returned, so that I do not pay for a flight that will not operate.
Acceptance criteria:
-
ONE-704.1: When the airline cancels a flight and does not re-accommodate the customer, the system shall mark CANCELLED with delivery status UNABLE TO DELIVER every live service on that flight, in every order item, that the delivery status table lets become UNABLE TO DELIVER.
-
ONE-704.2: When the airline cancels a flight, the system shall leave every service on other flights unchanged.
-
ONE-704.3: When the airline cancels a flight, the system shall keep every order item with its reference and price.
-
ONE-704.4: If the airline cancels a flight of a paid order item and does not re-accommodate the customer, then the system shall refund the customer part of the item's price.
-
ONE-704.5: When the airline cancels a flight, the system shall mark CANCELLED every order item that holds a CANCELLED service.
-
ONE-704.6: When the airline cancels a flight and does not re-accommodate the customer, the system shall leave no live service on that flight.
A service is for one passenger on one flight segment, so the services that
depend on a flight, such as a bag or a seat on it, are services on the same
segment. How much is refunded is the reading's (FlightRefund). The
delivery status table has no move to UNABLE TO DELIVER from REQUESTED, IN
PROGRESS or SUSPENDED, so a service in one of those statuses keeps it
(Delivery.endWith).