<?php

namespace Alsendo\AlsendoWrapper\Api\Apaczka\Model;

use Alsendo\AlsendoWrapper\Model\Service\Option;
use Alsendo\AlsendoWrapper\Model\Service\PackageType;
use Alsendo\AlsendoWrapper\Model\Service\PickupType;
use Alsendo\AlsendoWrapper\Model\Service\Service;
use Alsendo\AlsendoWrapper\Model\Service\ServiceStructure;
use Alsendo\AlsendoWrapper\Model\Service\UnitType;

class ApaczkaServiceStructure extends ServiceStructure
{
    public static function getPropertyTypeMap(): array
    {
        return [
            'services' => ['mappedTo' => 'services', 'type' => Service::class],
            'options' => ['mappedTo' => 'options', 'type' => Option::class, 'mapFields' => [
                'type' => 'type',
                'name' => 'name',
                'desc' => 'desc',
            ]],
            'package_type' => ['mappedTo' => 'package_type', 'type' => PackageType::class, 'mapFields' => [
                'type' => 'type',
                'name' => 'name',
            ]],
            'pickup_type' => ['mappedTo' => 'pickup_type', 'type' => PickupType::class, 'mapFields' => [
                'type' => 'type',
                'desc' => 'desc',
            ]],
            'unit_type' => ['mappedTo' => 'unit_type', 'type' => UnitType::class, 'mapFields' => [
                'type' => 'type',
                'desc' => 'desc',
            ]],
        ];
    }
}