<?php

namespace Daniv04\HaciendaPackage\Http\Resources;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class ReceiptStatusResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->id,
            'receipt_type' => $this->receipt_type,
            'ui_key' => $this->ui_key,
            'consecutive_number' => $this->consecutive_number,
            'clave' => $this->clave,
            'emission_date' => $this->emission_date,
            'sent_to_hacienda_at' => $this->sent_to_hacienda_at,
            'hacienda_status' => $this->hacienda_status,
            'hacienda_response' => $this->hacienda_response,
            'sent_at' => $this->sent_at,
            'status_checked_at' => $this->status_checked_at,
            'receipt_status' => $this->receipt_status,
        ];
    }
}
