<?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 Recurrence extends Dto
{
    /**
     * @param  \DateTimeInterface  $endTime  End time of the recurrence.
     * @param  ?string[]  $daysOfWeek  Days of the week when recurrence is valid. If the schedule is valid every Monday, input will only contain `MONDAY` in the list.
     * @param  int[]|null  $daysOfMonth  Days of the month when recurrence is valid.
     */
    public function __construct(
        public readonly \DateTimeInterface $endTime,
        public readonly ?array $daysOfWeek = null,
        public readonly ?array $daysOfMonth = null,
    ) {}
}
