EARS: When the airline prices a change or cancellation of order items, the system shall state the amount due to the airline, the amount due by the airline and a type code that names the outcome.
Story: As a seller, I want every change or cancellation offer to state what the customer pays and what the airline returns, so that I can settle the change without working the amounts out myself.
Acceptance criteria:
-
ONE-201.1: If the prices, penalty and forfeited amount of a change are not all in one currency, then the system shall reject the change unpriced.
-
ONE-201.2: The system shall give a price differential a type code that names a collection exactly when an amount is due to the airline.
-
ONE-201.3: The system shall give a price differential a type code that names a refund or a value store exactly when an amount is due by the airline.
-
ONE-201.4: When the seller asks to keep the value of cancelled items for later use, the system shall type the differential Reusable and set both due amounts to zero.
-
ONE-201.5: When the airline prices a change or cancellation, the system shall make the amount due to the airline less the amount due by the airline equal the new price, less the old price, plus the penalty, plus the forfeited amount.
The due amounts come from dueAmounts, except for a request to keep the
value for later use, where the guide shows both amounts as zero
(statedDue).