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

use SellingPartnerApi\Dto;

final class GetRatesResult extends Dto
{
    protected static array $complexArrayTypes = ['rates' => [Rate::class], 'ineligibleRates' => [IneligibleRate::class]];

    /**
     * @param  string  $requestToken  A unique token generated to identify a getRates operation.
     * @param  Rate[]  $rates  A list of eligible shipping service offerings.
     * @param  IneligibleRate[]|null  $ineligibleRates  A list of ineligible shipping service offerings.
     */
    public function __construct(
        public readonly string $requestToken,
        public readonly array $rates,
        public readonly ?array $ineligibleRates = null,
    ) {}
}
