<?php

namespace SellingPartnerApi\Seller\FBAInboundEligibilityV1\Dto;

use Crescat\SaloonSdkGenerator\BaseDto;

final class Error extends BaseDto
{
    /**
     * @param  string  $code  An error code that identifies the type of error that occurred.
     * @param  ?string  $message  A message that describes the error condition in a human-readable form.
     * @param  ?string  $details  Additional information that can help the caller understand or fix the issue.
     */
    public function __construct(
        public readonly string $code,
        public readonly ?string $message = null,
        public readonly ?string $details = null,
    ) {
    }
}
