EARS: The system shall count an order item paid once a SUCCESSFUL payment covers it.
Story: As an airline, I want an order item counted as paid only when a payment for it has succeeded, so that I release nothing on money I may not collect.
Acceptance criteria:
-
ONE-302.1: When a SUCCESSFUL payment covers an order item, the system shall count the item paid.
-
ONE-302.2: If every payment covering an order item is PENDING or FAILED, then the system shall not count the item paid.
-
ONE-302.3: If the transaction of any payment method in a payment fails, then the system shall count none of the order items it covers as paid by that payment and shall leave their services unchanged.
The amounts are checked when the payment is accepted: the requested amounts of a payment add up to the price of the items it covers. Value carried over from an item that a change replaced is not modelled.