chore(openspec): archive add-flash-sales
Sync the flash-sales capability plus the order, frontend-mall, and frontend-shop-admin requirements into the main specs, and write the capability Purpose the archive leaves as a placeholder. Restate the flash-price and coupon-exclusion scenarios in the group-buying order delta, since its MODIFIED checkout block must carry the scenarios the main order spec now has.
This commit is contained in:
@@ -11,6 +11,14 @@
|
||||
- **WHEN** any line's qty exceeds SKU stock or applicable flash-sale stock
|
||||
- **THEN** the whole checkout returns 409 and no order is created and stock is unchanged
|
||||
|
||||
#### Scenario: active flash price applied
|
||||
- **WHEN** checkout contains a SKU with an active eligible flash-sale item and no group-buy intent applies to it
|
||||
- **THEN** the order item records the server-calculated flash-sale price and activity identity
|
||||
|
||||
#### Scenario: coupon rejected on a flash-priced shop order
|
||||
- **WHEN** the customer selects a coupon for a shop whose generated order applied flash-sale pricing on any line
|
||||
- **THEN** checkout returns 409 and creates no orders
|
||||
|
||||
#### Scenario: open a group at checkout
|
||||
- **WHEN** a customer checks out one eligible group-buying SKU at quantity 1 with open-group intent
|
||||
- **THEN** a pending-payment order and an open group identity are created with the server-resolved group price
|
||||
|
||||
Reference in New Issue
Block a user