Commits
Marek Vsechovsky committed 93c8bb04a4b
Session 99, Step 8: Place payout request button below empty state - AIM-3602 Place payout request button below empty state - AIM-3603 User date and time format settings - AIM-3604 Affiliate pricing discount toggle - AIM-3605 Affiliate nickname and certification token registration - AIM-3606 Discount code first-use onboarding - AIM-3607 General behavioural changes - AIM-3608 New "Requests" tab - AIM-3609 Commissions holding period - AIM-3610 Emailing affiliates before terms change - AIM-3611 Other - AIM-3612 Updating the "Terms & Conditions" tab and a new "Guide" tab - AIM-3613 Aisman Affiliate Program  Terms and Conditions - AIM-3614 Aisman Affiliate Program Guide - AIM-3615 2.1 Affiliate account status - AIM-3616 2.2 Certification and commission are separate - AIM-3617 2.3 Configurable values - AIM-3618 3.1 Standard registration - AIM-3619 3.2 Registration with an override token - AIM-3620 4.1 What counts as a qualifying purchase - AIM-3621 4.2 Independent holding periods - AIM-3622 4.3 Qualification processing - AIM-3623 4.4 Refunds and chargebacks - AIM-3624 5.1 Affiliate-facing request - AIM-3625 5.2 Request eligibility and duplicate prevention - AIM-3626 5.3 Request statuses - AIM-3627 5.4 Administrator review - AIM-3628 5.5 Approval of an existing Affiliate - AIM-3629 5.6 Approval for a prospective person who has not registered - AIM-3630 5.7 Rejection - AIM-3631 5.8 Audit requirements - AIM-3632 6.1 Definition of a New customer - AIM-3633 6.2 Attribution - AIM-3634 6.3 Certified Affiliate checkout - AIM-3635 6.4 Pending Affiliate checkout - AIM-3636 6.5 Affiliate's own purchases - AIM-3637 7.1 Credit creation and ledger data - AIM-3638 7.2 Credit states - AIM-3639 7.3 Releasing credit - AIM-3640 7.4 Expiration of unreleased credit - AIM-3641 7.5 Released credit never expires - AIM-3642 7.6 Partial credit redemption and unused balances - AIM-3643 8.1 Pending Affiliate with no or less than required minimum successful referred-customer sale - AIM-3644 8.2 Pending Affiliate with at least the minimum successful referred-customer sales - AIM-3645 8.3 Certified Affiliate - AIM-3646 8.4 Notice selection - AIM-3647 8.5 Abandoned checkout communications - AIM-3648 9.1 Preserve existing calculation - AIM-3649 9.2 Commission rate and discount limits - AIM-3650 9.3 Eligible transactions - AIM-3651 9.4 Commission holding period - AIM-3652 9.5 Refunds and chargebacks - AIM-3653 9.6 Suspicious transactions - AIM-3654 9.7 Suspension and termination of Affiliate accounts - AIM-3655 10.1 Monthly - AIM-3656 10.2 Quarterly - AIM-3657 10.3 Rollover and partial withdrawals - AIM-3658 10.4 Payment details and fees - AIM-3659 10.5 Below-threshold balance - AIM-3660 11.1 Qualification progress - AIM-3661 11.2 Instant certification request in Requests - AIM-3662 11.3 Commission and withdrawal balances - AIM-3663 11.4 Discount-code status and settings - AIM-3664 Administrator functionality - AIM-3665 Data integrity, transactions, and concurrency - AIM-3666 Auditing and notifications - AIM-3667 Security and authorization - AIM-3668 16.1 Database and resource efficiency - AIM-1760 Affiliates tab order and detail form action buttons Outcome: ## STEP 8 checkpoint  partial implementation Implemented a broad portion of the affiliate-program work in the existing dirty worktree: date/time preferences; the affiliate portal and requests; policy-backed terms/guide; settings; payout/commission tracking; customer-credit accounting; and affiliate-checkout scaffolding. This continuation changed customer eligibility and discount validation, durable provider transaction binding, Pending invoice-credit calculation, webhook completion, notice selection, consent/abandonment state, and related SQL fixtures. Added migrations 272–274 and SQL completion-test scaffolding. No files were committed. ## Validation evidence - The application build succeeded during this continuation. - The focused AffiliateCheckoutSmoke passed before subsequent eligibility edits; the latest run fails at the eligible Pending-code assertion. - CustomerCreditSmoke builds, but the latest LocalDB run fails in the earlier existing credit/policy setup, before the new Pending completion test is reached. The suite is not passing against current changes. - Migrations 273–274, abandonment delivery, provider/webhook completion, browser behavior, and a real Paddle sandbox checkout have not been verified end to end. ## Required next work Repair the failing affiliate-policy and SQL integration tests first. Then verify Pending and Certified provider checkout, invoice eligibility, conditional-credit lifecycle, qualification holding periods and configurable first-N behavior, reward-service reuse and first-purchase commission eligibility, notice consent/abandonment/retries, and the pricing flow. Complete all outstanding issues and update their results with verified evidence before marking STEP 8 complete. Original tempNums and titles remain on each issue entry for Aisman import and subsequent issue-number remapping.