<?php

namespace Alsendo\AlsendoWrapper\Api\Ecolet\Model\Order;

use Alsendo\AlsendoWrapper\Json;
use DateTimeImmutable;

class StatusItem {
    public ?string $name = null;
    public ?string $realName = null;
    public ?DateTimeImmutable $createdAt = null;

    public static function getPropertyTypeMap(): array {
        return [
            'name' => ['mappedTo' => 'name'],
            'real_name' => ['mappedTo' => 'realName'],
            'created_at' => ['mappedTo' => 'createdAt', 'convert' => Json::DATE_TIME],
        ];
    }
}