Email quick sale receipts and send them again from the sales list
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace App\Modules\Sales\Domain\Contracts;
|
||||
|
||||
use App\Modules\Sales\Domain\Entities\QuickSale;
|
||||
use App\Modules\Shared\Domain\ValueObjects\EmailAddress;
|
||||
use DateTimeImmutable;
|
||||
|
||||
interface QuickSaleRepository
|
||||
@@ -24,4 +25,14 @@ interface QuickSaleRepository
|
||||
* @return list<QuickSale>
|
||||
*/
|
||||
public function forDay(DateTimeImmutable $day): array;
|
||||
|
||||
/**
|
||||
* Sets the address the receipt is emailed to and clears the earlier
|
||||
* sending result, before the receipt is sent again.
|
||||
*/
|
||||
public function changeReceiptEmail(int $saleId, EmailAddress $email): void;
|
||||
|
||||
public function markReceiptSent(int $saleId, DateTimeImmutable $at): void;
|
||||
|
||||
public function markReceiptFailed(int $saleId, DateTimeImmutable $at): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user