Add Queue Pro billing, renewal, and scheduler.
Deploy Ladill Queue / deploy (push) Successful in 42s
Deploy Ladill Queue / deploy (push) Successful in 42s
Organizations can upgrade from wallet with plan expiry enforcement and nightly qms:pro-renew charges. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Services\Qms\ProRenewalService;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class RenewProSubscriptionsCommand extends Command
|
||||
{
|
||||
protected $signature = 'qms:pro-renew';
|
||||
|
||||
protected $description = 'Charge the Ladill wallet for due Queue Pro subscriptions (and downgrade after the grace window).';
|
||||
|
||||
public function handle(ProRenewalService $renewals): int
|
||||
{
|
||||
$due = $renewals->dueOrganizations();
|
||||
$this->info("Renewing {$due->count()} due organization(s).");
|
||||
$due->each(fn ($organization) => $renewals->renewIfDue($organization));
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user