<?php

namespace App\Game\BetBy;


class TransactionItem
{
    public $id;
    public $betslip_id;
    public $player_id;
    public $operator_id;
    public $operator_brand_id;
    public $ext_player_id;
    public $timestamp;
    public $amount;
    public $currency;
    public $cross_rate_euro;
    public $operation;
    public $bonus_id;

    public $parent_transaction_id;

    public function __construct(array $data)
    {
        $this->id = $data['id'];
        $this->betslip_id = $data['betslip_id'];
        $this->player_id = $data['player_id'];
        $this->operator_id = $data['operator_id'];
        $this->operator_brand_id = $data['operator_brand_id'];
        $this->ext_player_id = $data['ext_player_id'];
        $this->timestamp = $data['timestamp'];
        $this->amount = $data['amount'];
        $this->currency = $data['currency'];
        $this->cross_rate_euro = $data['cross_rate_euro'];
        $this->operation = $data['operation'];
        $this->bonus_id = $data['bonus_id'] ?? null;
        $this->parent_transaction_id = $data['parent_transaction_id'] ?? null;
    }
}
