Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace HiEvents\Enterprise\BoxOffice\Http\Actions\Organizers\Stripe\Terminal;
use HiEvents\DomainObjects\Enums\Permission;
use HiEvents\DomainObjects\OrganizerDomainObject;
use HiEvents\Enterprise\BoxOffice\Services\Application\Handlers\Organizer\Payment\Stripe\Terminal\DeleteStripeTerminalReaderHandler;
use HiEvents\Http\Actions\BaseAction;
use HiEvents\Http\Attributes\RequiresPermission;
use Illuminate\Http\Response;
#[RequiresPermission(Permission::MANAGE_PAYMENTS)]
class DeleteStripeTerminalReaderAction extends BaseAction
{
public function __construct(
private readonly DeleteStripeTerminalReaderHandler $handler,
) {}
public function __invoke(int $organizerId, int $readerId): Response
{
$this->isActionAuthorized($organizerId, OrganizerDomainObject::class);
$this->handler->handle($organizerId, $this->getAuthenticatedAccountId(), $readerId);
return $this->noContentResponse();
}
}