Add gold credit feature gated by SuperAdmin enable_gold_credit.

Port tables, APIs, and overdue cron from goldali, default the flag off, and keep customer routes behind auth.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-30 00:17:01 +03:30
co-authored by Cursor
parent a8be3d499b
commit 050bd26318
18 changed files with 1670 additions and 5 deletions
@@ -16,6 +16,7 @@ class SuperAdminProgramSettingsOverlayTest extends TestCase
'enable_automation',
'enable_conditional_order',
'enable_customer_level_profit',
'enable_gold_credit',
'enable_product_funds',
'group_sms',
'has_page_earn_money',
@@ -28,7 +29,7 @@ class SuperAdminProgramSettingsOverlayTest extends TestCase
];
$this->assertSame($expected, SuperAdminProgramSettingsOverlay::SUPERADMIN_OWNED_KEYS);
$this->assertCount(14, SuperAdminProgramSettingsOverlay::SUPERADMIN_OWNED_KEYS);
$this->assertCount(15, SuperAdminProgramSettingsOverlay::SUPERADMIN_OWNED_KEYS);
}
public function test_overlay_keeps_only_access_keys(): void