make_post_sell/docs
Russell Ballestrini c7caae8d4a Fix crypto payment state machine logic and naming consistency
Major fixes:
1. Remove invalid received→expired transition
   - Payments that reach 'received' state cannot expire
   - Only pending payments can expire
   - Updated VALID_TRANSITIONS and tests accordingly

2. Rename STATUS_DOUBLEPAY_REFUND to STATUS_DOUBLEPAY_REFUNDED
   - Maintains consistency with all other past-tense status names
   - Updated all references across codebase and tests

3. Add INITIAL_WAITING_STATUSES semantic group
   - Groups states that are entry points: pending, latepay_refunded, doublepay_refunded
   - These states don't transition from 'received' - they represent initial states
   - Added is_initial_waiting_state() helper method

4. Update semantic groups
   - Removed latepay_refunded and doublepay_refunded from FAILED_PAYMENT_STATUSES
   - These are now in INITIAL_WAITING_STATUSES as they represent entry points

5. Fix mermaid diagram label
   - confirmed_overpay_not_refunded now correctly labeled as "Terminal Success (Not Refunded)"
   - Remove invalid received→expired transition from documentation

This improves the logical consistency of the state machine and aligns
the naming conventions across all status constants.
2025-09-30 14:34:11 -04:00
..
crypto-payments-state-machine.md Fix crypto payment state machine logic and naming consistency 2025-09-30 14:34:11 -04:00
CRYPTO.rst Move crypto documentation to docs directory 2025-09-23 13:21:15 -04:00
CRYPTO_PROBLEMS.rst Remove pooled sweep behavior and implement individual payment sweeping 2025-09-24 16:03:50 -04:00
CRYPTO_WATCHER_FLOW.md deleted: debug_auth_headers.py 2025-09-28 15:26:42 -04:00
DOGECOIN.md Dogecoin payment support 2025-09-23 11:17:05 +00:00
MONERO.rst Improve crypto payment handling and out-of-stock refunds 2025-09-24 09:35:07 -04:00
MONERO_DEFECTS.rst Document Monero RPC get_transfers unlocked field defect 2025-09-24 15:03:31 -04:00
MONERO_DOOM.rst Add comprehensive crypto payment state transition validation 2025-09-30 11:26:44 -04:00