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

use SellingPartnerApi\Dto;

final class AllowanceDetails extends Dto
{
    protected static array $complexArrayTypes = ['taxDetails' => TaxDetails::class];

    /**
     * @param  string  $type  Type of the allowance applied.
     * @param  Money  $allowanceAmount  An amount of money, including units in the form of currency.
     * @param  ?string  $description  Description of the allowance.
     * @param  TaxDetails[]|null  $taxDetails  Tax amount details applied on this allowance.
     */
    public function __construct(
        public readonly string $type,
        public readonly Money $allowanceAmount,
        public readonly ?string $description = null,
        public readonly ?array $taxDetails = null,
    ) {}
}
