EARS: When a customer accepts an offer whose items carry time limits, the system shall create the order as ONE-001 does and give each order item its payment time limit and price guarantee from its offer item.
Story: As an airline, I want each new order item to start with the payment time limit and price guarantee its offer item promised, so that the customer gets the time to pay and the price the offer stated.
Acceptance criteria:
-
ONE-502.1: When an order is created from an offer item whose payment time limit is stated only as a duration, the system shall set the order item's payment time limit to the creation instant plus that duration.
-
ONE-502.2: When an order is created from an offer item whose payment time limit is stated only as a fixed date and time, the system shall set the order item's payment time limit to that instant.
-
ONE-502.3: When an order is created, the system shall carry each offer item's price guarantee time limit into its order item.
-
ONE-502.4: If a customer accepts an offer after the price guarantee of one of its items has lapsed, then the system shall not create the order at the offered price.
-
ONE-502.5: When an order is created, the system shall give no order item a payment time limit before the order's creation.
-
ONE-502.6: When an offer item's payment time limit is a duration of zero, the system shall accept a payment for its order item made at the instant the order is created.
The checks of ONE-001 run first (accept). Then, under the reading that
asks for a new offer, an item whose price guarantee has lapsed refuses the
acceptance. Which payment time limit applies when an offer item states both
forms is a reading of the guide (BothForms).