Automatischer Zahlungsparser
This commit is contained in:
@@ -8,6 +8,8 @@ use App\Enumerations\EfzStatus;
|
||||
use App\Enumerations\FirstAidPermission;
|
||||
use App\Enumerations\ParticipationType;
|
||||
use App\Enumerations\SwimmingPermission;
|
||||
use App\EventPaymentModules\DTO\GetRefundDataRequest;
|
||||
use App\EventPaymentModules\DTO\GetRefundDataResponse;
|
||||
use App\EventPaymentModules\DTO\RegistrationRenderContext;
|
||||
use App\EventPaymentModules\DTO\RegistrationSummaryRequest;
|
||||
use App\EventPaymentModules\DTO\RegistrationSummaryResponse;
|
||||
@@ -238,4 +240,21 @@ class EventParticipant extends InstancedModel
|
||||
|
||||
return $module->registrationSummary(new RegistrationSummaryRequest($this, $this->paymentConfiguration(), $context));
|
||||
}
|
||||
|
||||
/**
|
||||
* Auf welches Konto wäre zu erstatten -- und woher kommt es?
|
||||
*
|
||||
* Einmal hier statt viermal verstreut: Die Freigabe, die Teilnehmerliste, die öffentliche
|
||||
* Erstattungsseite und der Beleg stellen dieselbe Frage und müssen dieselbe Antwort bekommen.
|
||||
* Fehlt die Zahlungsart, gilt die strengere Vorgabe des Moduls-Standards (Ursprungskonto).
|
||||
*/
|
||||
public function refundData(): GetRefundDataResponse
|
||||
{
|
||||
$module = $this->paymentModule();
|
||||
if ($module === null) {
|
||||
return new GetRefundDataResponse();
|
||||
}
|
||||
|
||||
return $module->getRefundData(new GetRefundDataRequest($this, $this->paymentConfiguration()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user