| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace App\Notifications\Push\Prestador\Agendamento;
- use App\Enums\PushNotificationCategoryEnum;
- use App\Enums\PushNotificationTargetEnum;
- use App\Notifications\Push\BasePushNotification;
- use Illuminate\Database\Eloquent\Collection;
- /**
- * Lembrete enviado ao prestador quando um atendimento já iniciou
- * há 20 minutos e o código de confirmação ainda não foi preenchido.
- */
- class CodigoNaoPreenchidoPush extends BasePushNotification
- {
- public function __construct(
- private readonly string $clientName,
- ) {}
- public function label(): string
- {
- return 'provider_code_reminder';
- }
- public function title(): string
- {
- return 'Confirme o código do atendimento';
- }
- public function body(): string
- {
- return "Não esqueça de confirmar o código informado por {$this->clientName} para iniciar o registro do serviço.";
- }
- public function target(): PushNotificationTargetEnum
- {
- return PushNotificationTargetEnum::PRESTADOR;
- }
- public function category(): PushNotificationCategoryEnum
- {
- return PushNotificationCategoryEnum::TRANSACIONAL;
- }
- public function eligibleUsers(): Collection
- {
- return new Collection();
- }
- public function notificationCooldownDays(): int
- {
- return 0;
- }
- public function categoryCooldownDays(): int
- {
- return 0;
- }
- }
|