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

784 B
Raw Blame
<?php

namespace HiEvents\Resources\Event;

use HiEvents\Resources\BaseResource;
use HiEvents\Services\Application\Handlers\EventSettings\DTO\PlatformFeePreviewResponseDTO;

/**
 * @mixin PlatformFeePreviewResponseDTO
 */
class PlatformFeePreviewResource extends BaseResource
{
    public function toArray($request): array
    {
        return [
            'event_currency' => $this->eventCurrency,
            'fee_currency' => $this->feeCurrency,
            'fixed_fee_original' => $this->fixedFeeOriginal,
            'fixed_fee_converted' => $this->fixedFeeConverted,
            'percentage_fee' => $this->percentageFee,
            'sample_price' => $this->samplePrice,
            'platform_fee' => $this->platformFee,
            'total' => $this->total,
        ];
    }
}