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

645 B
Raw Blame
<?php

namespace HiEvents\Enterprise\BoxOffice\Services\Domain\Payment\Stripe\Terminal\DTO;

use HiEvents\DataTransferObjects\BaseDataObject;
use HiEvents\DomainObjects\Enums\StripePlatform;
use Stripe\StripeClient;

class TerminalContextDTO extends BaseDataObject
{
    public function __construct(
        public StripeClient $client,
        public ?StripePlatform $platform,
        public ?string $stripe_account_id,
        public ?int $organizer_stripe_platform_id,
    ) {}

    public function requestOptions(): array
    {
        return $this->stripe_account_id === null ? [] : ['stripe_account' => $this->stripe_account_id];
    }
}