<?php
declare(strict_types=1);
namespace App\Application\Site\Command\EditSiteBillingInformation;
use App\Application\Site\Command\BillingInformationTrait;
use App\Infrastructure\Shared\Bus\Command\CommandInterface;
class EditSiteBillingInformationCommand implements CommandInterface
{
use BillingInformationTrait;
public function __construct(
public readonly string $id,
string $name,
string $country,
string $city,
string $street,
string $streetNumber,
string $postalCode,
string $iban,
bool $isBankWebhook
) {
$this->billingInfoName = $name;
$this->billingInfoCountry = $country;
$this->billingInfoCity = $city;
$this->billingInfoStreet = $street;
$this->billingInfoStreetNumber = $streetNumber;
$this->billingInfoPostalCode = $postalCode;
$this->billingInfoIban = $iban;
$this->isBankWebhook = $isBankWebhook;
}
}