ldc-cocotte/domain/Ports/Services/CrmCustomerGatewayService.php

21 lines
549 B
PHP

<?php
declare(strict_types=1);
namespace Domain\Ports\Services;
use Domain\Models\ValueObjects\CrmCustomer;
use Domain\Models\ValueObjects\Email;
use Shared\ValueObjects\CrmHashcode;
interface CrmCustomerGatewayService
{
public function resetPasswordFor(Email $email, string $newPassword): bool | \Exception;
public function getCustomerFromHashCode(CrmHashcode $hashcode): null | CrmCustomer | \Exception;
/**
* @return object{result:bool,message:string}
*/
public function activate(CrmCustomer $customer): object;
}