EARS: When a payment commitment is made, the system shall state the clearances between the ORA and the seller for it, with their net clearance amounts.
Story: As a seller, I want each payment cleared with the ORA by one rule, so that I receive my commission once and the airline receives the rest.
Acceptance criteria:
-
ONE-802.1: When the seller collected the customer's payment and nets its commission, the system shall state one clearance in which the seller pays the ORA the payment amount less the commission.
-
ONE-802.2: When the seller collected the customer's payment and its commission is cleared separately, the system shall state one clearance in which the seller pays the ORA the payment amount and one in which the ORA pays the seller the commission.
-
ONE-802.3: When the airline collected the customer's payment, the system shall state one clearance in which the ORA pays the seller the commission.
-
ONE-802.4: The system shall clear the seller's commission on each payment exactly once, leaving the ORA the payment amount less the commission and the seller the commission.
-
ONE-802.5: When a payment is refunded through the seller, the system shall state one clearance in which the ORA pays the seller the refund less the commission recalled on it.
-
ONE-802.6: If a payment is refunded through the seller, then the system shall not leave the seller paying the ORA for the refund.
The standard defines the net clearance amount only as what the two parties
agreed; the formulas come from the worked examples. A refund is cleared by
refundClearance, and how much commission it recalls is a reading of
the sources (RecallReading).