Files
ladill-meet/app/Console/Commands/ProcessMeetBillingCommand.php
isaaccladandCursor 59b59cb70e
Deploy Ladill Meet / deploy (push) Successful in 54s
Bill Meet streaming hourly and storage per GB like Transfer.
Wallet debits at session end, on recording/file storage, and via daily renewals with grace period before asset deletion.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 16:33:45 +00:00

28 lines
683 B
PHP

<?php
namespace App\Console\Commands;
use App\Services\Meet\MeetBillingService;
use Illuminate\Console\Command;
class ProcessMeetBillingCommand extends Command
{
protected $signature = 'meet:process-billing';
protected $description = 'Renew monthly Meet recording and file storage billing';
public function handle(MeetBillingService $billing): int
{
$result = $billing->processDueStorageRenewals();
$this->info(sprintf(
'Meet storage billing: %d renewed, %d entered grace, %d deleted.',
$result['renewed'],
$result['graced'],
$result['deleted'],
));
return self::SUCCESS;
}
}