<?php

/**
 * This file is auto-generated by Saloon SDK Generator
 * Generator: Crescat\SaloonSdkGenerator\Generators\DtoGenerator
 * Do not modify it directly.
 */

declare(strict_types=1);

namespace SellingPartnerApi\Seller\OrdersV0\Dto;

use SellingPartnerApi\Dto;

final class BusinessHours extends Dto
{
    protected static array $attributeMap = ['dayOfWeek' => 'DayOfWeek', 'openIntervals' => 'OpenIntervals'];

    protected static array $complexArrayTypes = ['openIntervals' => [OpenInterval::class]];

    /**
     * @param  ?string  $dayOfWeek  Day of the week.
     * @param  OpenInterval[]|null  $openIntervals  Time window during the day when the business is open.
     */
    public function __construct(
        public readonly ?string $dayOfWeek = null,
        public readonly ?array $openIntervals = null,
    ) {}
}
