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

use SellingPartnerApi\Dto;

final class FeesEstimateError extends Dto
{
    protected static array $attributeMap = [
        'type' => 'Type',
        'code' => 'Code',
        'message' => 'Message',
        'detail' => 'Detail',
    ];

    /**
     * @param  string  $type  An error type, identifying either the receiver or the sender as the originator of the error.
     * @param  string  $code  An error code that identifies the type of error that occurred.
     * @param  string  $message  A message that describes the error condition.
     * @param  mixed[]  $detail
     */
    public function __construct(
        public readonly string $type,
        public readonly string $code,
        public readonly string $message,
        public readonly array $detail,
    ) {}
}
