Skip to content

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 ⭐️

678 B
Raw Blame
<?php

namespace HiEvents\Enterprise\BoxOffice\Resources\Organizer\Stripe;

use HiEvents\Enterprise\BoxOffice\Services\Domain\Payment\Stripe\Terminal\DTO\TerminalReaderDTO;
use Illuminate\Http\Resources\Json\JsonResource;

/**
 * @mixin TerminalReaderDTO
 */
class StripeTerminalReaderResource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            'id' => $this->id,
            'label' => $this->label,
            'device_type' => $this->device_type,
            /** @var 'online'|'offline'|'unknown'|'unavailable' */
            'status' => $this->status,
            'is_available' => $this->is_available,
        ];
    }
}