<?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\ServicesV1\Dto;

use SellingPartnerApi\Dto;

final class AvailabilityRecord extends Dto
{
    /**
     * @param  \DateTimeInterface  $startTime  Denotes the time from when the resource is available in a day in ISO-8601 format.
     * @param  \DateTimeInterface  $endTime  Denotes the time till when the resource is available in a day in ISO-8601 format.
     * @param  ?Recurrence  $recurrence  Repeated occurrence of an event in a time range.
     * @param  ?int  $capacity  Signifies the capacity of a resource which is available.
     */
    public function __construct(
        public readonly \DateTimeInterface $startTime,
        public readonly \DateTimeInterface $endTime,
        public readonly ?Recurrence $recurrence = null,
        public readonly ?int $capacity = null,
    ) {}
}
