feat(event): support ticket refund configuration in event endpoints

This commit is contained in:
2026-09-11 16:22:46 -03:00
parent c0c19c9c01
commit 4bb4f526e4
4 changed files with 117 additions and 0 deletions

View File

@@ -18,6 +18,10 @@ class EventResource extends JsonResource
'id' => $this->id,
'title' => $this->event_title,
'location' => $this->event_location,
'allow_ticket_refund' => $this->allow_ticket_refund,
'allow_ticket_total_refund' => $this->allow_ticket_total_refund,
'allow_ticket_partial_refund' => $this->allow_ticket_partial_refund,
'ticket_partial_refund_percentage' => $this->ticket_partial_refund_percentage,
'dates' => EventDateResource::collection($this->eventDates),
'social_media' => $this->socialMedia->map(fn ($item): array => [
'code' => $item->code,