- Added UnsubscribeFromNewsletter action and input/output classes. - Introduced CrmHashcode value object and its cast. - Updated NewsletterController to use the new unsubscribe action. - Enhanced validation in UnsubscribeNewsletterRequest.
16 lines
293 B
PHP
16 lines
293 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Actions\Crm;
|
|
|
|
use App\Contracts\ActionInput;
|
|
use Shared\ValueObjects\CrmHashcode;
|
|
|
|
final readonly class UnsubscribeFromNewsletterInput implements ActionInput
|
|
{
|
|
public function __construct(
|
|
public CrmHashcode $hashcode
|
|
) {
|
|
}
|
|
}
|