<?php

use Illuminate\Support\Facades\Schedule;

// WhatsApp automation engine.
Schedule::command('whatsapp:dispatch --retries')->everyFiveMinutes()->withoutOverlapping();
Schedule::command('whatsapp:dispatch --reminders')->everyTenMinutes()->withoutOverlapping();
Schedule::command('whatsapp:dispatch --installments')->dailyAt('10:00');
Schedule::command('whatsapp:dispatch --recalls')->dailyAt('10:30');
Schedule::command('whatsapp:dispatch --reviews')->hourly();

// SaaS billing lifecycle + expiry notifications.
Schedule::command('medibook:subscriptions --lifecycle')->dailyAt('00:30');
Schedule::command('medibook:subscriptions --notify')->dailyAt('09:00');
