wip: modernized edit flow
This commit is contained in:
@@ -33,6 +33,17 @@ class BankAccountDto
|
||||
#[Assert\IsTrue(message: 'Bitte akzeptieren Sie das SEPA-Mandat.')]
|
||||
public bool $sepaMandateAccepted = false;
|
||||
|
||||
public static function fromBankAccount(\App\BusProNet\Model\BankAccount $bankAccount): static
|
||||
{
|
||||
$instance = new static();
|
||||
$instance->iban = $bankAccount->iban;
|
||||
$instance->accountHolder = $bankAccount->holder;
|
||||
$instance->bankName = $bankAccount->bankName;
|
||||
$instance->sepaMandateAccepted = true;
|
||||
|
||||
return $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns IBAN formatted with spaces for display (e.g., DE12 3456 7890 1234 5678 90).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user