<?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 ExceptionDates extends Dto
{
    protected static array $attributeMap = [
        'exceptionDate' => 'ExceptionDate',
        'isOpen' => 'IsOpen',
        'openIntervals' => 'OpenIntervals',
    ];

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

    /**
     * @param  ?string  $exceptionDate  Date when the business is closed, in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> date format.
     * @param  ?bool  $isOpen  Boolean indicating if the business is closed or open on that date.
     * @param  OpenInterval[]|null  $openIntervals  Time window during the day when the business is open.
     */
    public function __construct(
        public readonly ?string $exceptionDate = null,
        public readonly ?bool $isOpen = null,
        public readonly ?array $openIntervals = null,
    ) {}
}
