ui/messaging/src/ManageWallet/Notifications/TransferFundsEmailSender.php
<?php declare(strict_types=1);
/**
* PHP version 7.4
*
* This source file is subject to the license that is bundled with this package in the file LICENSE.
*/
namespace Ewallet\ManageWallet\Notifications;
use DateTimeInterface;
use Ewallet\Memberships\Member;
use Money\Money;
/**
* It will send an email to both sender and recipient, with the summary of their
* last account transaction
*/
interface TransferFundsEmailSender
{
public function sendFundsTransferredEmail(
Member $sender,
Member $recipient,
Money $amount,
DateTimeInterface $occurredOn
): void;
public function sendDepositReceivedEmail(
Member $sender,
Member $recipient,
Money $amount,
DateTimeInterface $occurredOn
): void;
}