<?php

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

declare(strict_types=1);

namespace SellingPartnerApi\Seller\ServicesV1\Responses;

use SellingPartnerApi\Response;
use SellingPartnerApi\Seller\ServicesV1\Dto\FixedSlot;

final class FixedSlotCapacity extends Response
{
    protected static array $complexArrayTypes = ['capacities' => [FixedSlot::class]];

    /**
     * @param  ?string  $resourceId  Resource Identifier.
     * @param  ?float  $slotDuration  The duration of each slot which is returned. This value will be a multiple of 5 and fall in the following range: 5 <= `slotDuration` <= 360.
     * @param  FixedSlot[]|null  $capacities  Array of capacity slots in fixed slot format.
     * @param  ?string  $nextPageToken  Next page token, if there are more pages.
     */
    public function __construct(
        public readonly ?string $resourceId = null,
        public readonly ?float $slotDuration = null,
        public readonly ?array $capacities = null,
        public readonly ?string $nextPageToken = null,
    ) {}
}
