39 lines
1.2 KiB
PHP
39 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\EventPaymentModules\Modules;
|
|
|
|
use App\EventPaymentModules\AbstractEventPaymentModule;
|
|
use App\EventPaymentModules\DTO\CreateInvoiceRequest;
|
|
use App\Models\PaymentMethod;
|
|
|
|
/**
|
|
* Überweisung auf das Veranstaltungskonto -- die Zahlung erfolgt manuell durch die teilnehmende Person.
|
|
*/
|
|
class AccountTransferPaymentModule extends AbstractEventPaymentModule
|
|
{
|
|
public static function slug(): string
|
|
{
|
|
return PaymentMethod::PAYMENT_ACCOUNT_TRANSACTION;
|
|
}
|
|
|
|
public function defaultName(): string
|
|
{
|
|
return 'Überweisung auf Veranstaltungskonto';
|
|
}
|
|
|
|
public function getOptions(): array
|
|
{
|
|
return [
|
|
['name' => 'account_owner', 'label' => 'Kontoinhaber', 'type' => 'string', 'required' => true],
|
|
['name' => 'iban', 'label' => 'IBAN', 'type' => 'string', 'required' => true],
|
|
['name' => 'bic', 'label' => 'BIC', 'type' => 'string', 'required' => false],
|
|
];
|
|
}
|
|
|
|
protected function invoiceClosingStatement(CreateInvoiceRequest $request): string
|
|
{
|
|
// TODO: In einer Folge-Iteration ausformulieren (z.B. "Bitte überweise bis zum ... auf IBAN ...").
|
|
return '';
|
|
}
|
|
}
|