diff --git a/app/Domain/Integrations/Controllers/IntegrationController.php b/app/Domain/Integrations/Controllers/IntegrationController.php index 80db303dd..494090561 100644 --- a/app/Domain/Integrations/Controllers/IntegrationController.php +++ b/app/Domain/Integrations/Controllers/IntegrationController.php @@ -16,7 +16,7 @@ use App\Domain\Integrations\FormRequests\StoreIntegrationRequest; use App\Domain\Integrations\FormRequests\StoreIntegrationUrlRequest; use App\Domain\Integrations\FormRequests\UpdateContactInfoRequest; -use App\Domain\Integrations\FormRequests\UpdateIntegrationUiTdatabankOrganizersRequest; +use App\Domain\Integrations\FormRequests\UpdateIntegrationUdbOrganizersRequest; use App\Domain\Integrations\FormRequests\UpdateIntegrationRequest; use App\Domain\Integrations\FormRequests\UpdateIntegrationUrlsRequest; use App\Domain\Integrations\FormRequests\UpdateOrganizationRequest; @@ -293,7 +293,7 @@ public function updateOrganization(string $id, UpdateOrganizationRequest $reques ); } - public function updateOrganizers(string $integrationId, UpdateIntegrationUiTdatabankOrganizersRequest $request): RedirectResponse + public function updateOrganizers(string $integrationId, UpdateIntegrationUdbOrganizersRequest $request): RedirectResponse { $integration = $this->integrationRepository->getById(Uuid::fromString($integrationId)); diff --git a/app/Domain/Integrations/FormRequests/RequestActivationRequest.php b/app/Domain/Integrations/FormRequests/RequestActivationRequest.php index cde7c11d1..3b2f71999 100644 --- a/app/Domain/Integrations/FormRequests/RequestActivationRequest.php +++ b/app/Domain/Integrations/FormRequests/RequestActivationRequest.php @@ -24,7 +24,7 @@ public function rules(): array { $rules = collect([ ...(new CreateOrganizationRequest())->rules(), - ...(new UpdateIntegrationUiTdatabankOrganizersRequest())->rules(), + ...(new UpdateIntegrationUdbOrganizersRequest())->rules(), 'coupon' => ['nullable', 'string', 'max:255'], ]); diff --git a/app/Domain/Integrations/FormRequests/UpdateIntegrationUiTdatabankOrganizersRequest.php b/app/Domain/Integrations/FormRequests/UpdateIntegrationUdbOrganizersRequest.php similarity index 82% rename from app/Domain/Integrations/FormRequests/UpdateIntegrationUiTdatabankOrganizersRequest.php rename to app/Domain/Integrations/FormRequests/UpdateIntegrationUdbOrganizersRequest.php index a32e869b1..66b64a829 100644 --- a/app/Domain/Integrations/FormRequests/UpdateIntegrationUiTdatabankOrganizersRequest.php +++ b/app/Domain/Integrations/FormRequests/UpdateIntegrationUdbOrganizersRequest.php @@ -6,7 +6,7 @@ use Illuminate\Foundation\Http\FormRequest; -final class UpdateIntegrationUiTdatabankOrganizersRequest extends FormRequest +final class UpdateIntegrationUdbOrganizersRequest extends FormRequest { public function rules(): array { diff --git a/app/Domain/Integrations/Mappers/UdbOrganizerMapper.php b/app/Domain/Integrations/Mappers/UdbOrganizerMapper.php index 05b08e29c..3f8d503b2 100644 --- a/app/Domain/Integrations/Mappers/UdbOrganizerMapper.php +++ b/app/Domain/Integrations/Mappers/UdbOrganizerMapper.php @@ -5,7 +5,7 @@ namespace App\Domain\Integrations\Mappers; use App\Domain\Integrations\FormRequests\RequestActivationRequest; -use App\Domain\Integrations\FormRequests\UpdateIntegrationUiTdatabankOrganizersRequest; +use App\Domain\Integrations\FormRequests\UpdateIntegrationUdbOrganizersRequest; use App\Domain\Integrations\UdbOrganizer; use Illuminate\Http\Request; use Ramsey\Uuid\Uuid; @@ -33,7 +33,7 @@ public static function map(Request $request, string $id): array return $organizers; } - public static function mapUpdateOrganizers(UpdateIntegrationUiTdatabankOrganizersRequest $request, string $id): array + public static function mapUpdateOrganizers(UpdateIntegrationUdbOrganizersRequest $request, string $id): array { return self::map($request, $id); } diff --git a/app/Domain/Integrations/Models/IntegrationModel.php b/app/Domain/Integrations/Models/IntegrationModel.php index ed72c7593..ebbe76045 100644 --- a/app/Domain/Integrations/Models/IntegrationModel.php +++ b/app/Domain/Integrations/Models/IntegrationModel.php @@ -203,7 +203,7 @@ public function keyVisibilityUpgrade(): HasOne /** * @return HasMany */ - public function uiTdatabankOrganizers(): HasMany + public function udbOrganizers(): HasMany { return $this->hasMany(UdbOrganizerModel::class, 'integration_id'); } @@ -361,7 +361,7 @@ public function toDomain(): Integration ->map(fn (KeycloakClientModel $keycloakClientModel) => $keycloakClientModel->toDomain()) ->toArray() )->withUiTdatabankOrganizers( - ...$this->uiTdatabankOrganizers() + ...$this->udbOrganizers() ->get() ->map(fn (UdbOrganizerModel $organizerModel) => $organizerModel->toDomain()) ->toArray()