27 lines
585 B
PHP
27 lines
585 B
PHP
<?php
|
|
|
|
namespace App\Domains\Ticket\Resources\AdminApp;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
/**
|
|
* @property-read array{
|
|
* total: string|null,
|
|
* partial: string|null,
|
|
* } $resource
|
|
*/
|
|
class AdminAppTicketRefundCalculationResource extends JsonResource
|
|
{
|
|
/**
|
|
* @return array{total: string|null, partial: string|null}
|
|
*/
|
|
public function toArray(Request $request): array
|
|
{
|
|
return [
|
|
'total' => $this->resource['total'],
|
|
'partial' => $this->resource['partial'],
|
|
];
|
|
}
|
|
}
|