<?php

namespace Opencart\Extension\Alsendo\Providers;

class ApaczkaPackageTypesProvider
{
    public function getPackageTypes(): array
    {
        return [
            ['id' => 'LIST', 'name' => 'List'],
            ['id' => 'PACZKA', 'name' => 'Paczka'],
            ['id' => 'PALETA', 'name' => 'Paleta 120x80'],
            ['id' => 'PALETA_60X40', 'name' => 'Paleta 60x40'],
            ['id' => 'POLPALETA', 'name' => 'Półpaleta 60x80'],
            ['id' => 'PALETA_PRZEMYSLOWA', 'name' => 'Paleta przemysłowa 120x100'],
            ['id' => 'PALETA_PRZEMYSLOWA_B', 'name' => 'Paleta przemysłowa 120x120'],
        ];
    }

    public function getPackageDimensions(): array
    {
        return [
            'LIST' => [
                'length' => '35',
                'width' => '25',
                'height' => '5',
                'weight' => '1'
            ],
            'PACZKA' => [
                'length' => null,
                'width' => null,
                'height' => null,
                'weight' => null,
            ],
            'PALETA' => [
                'length' => '120',
                'width' => '80',
                'height' => null,
                'weight' => null,
            ],
            'PALETA_60X40' => [
                'length' => '60',
                'width' => '40',
                'height' => null,
                'weight' => null,
            ],
            'POLPALETA' => [
                'length' => '60',
                'width' => '80',
                'height' => null,
                'weight' => null,
            ],
            'PALETA_PRZEMYSLOWA' => [
                'length' => '120',
                'width' => '100',
                'height' => null,
                'weight' => null,
            ],
            'PALETA_PRZEMYSLOWA_B' => [
                'length' => '120',
                'width' => '120',
                'height' => null,
                'weight' => null,
            ]
        ];
    }
}
