<?php

declare(strict_types=1);

namespace App\Http\Resources;

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

class PaymentSimpleResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->id,
            'transaction_id' => $this->transaction_id,
            'ref_id' => $this->ref_id,
            'ref_url' => $this->ref_url,
            'price' => $this->price,
            'gateway' => $this->gateway,
            'status' => $this->status,
        ];
    }
}
