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

use SellingPartnerApi\Dto;

final class AdhocDisbursementEvent extends Dto
{
    protected static array $attributeMap = [
        'transactionType' => 'TransactionType',
        'postedDate' => 'PostedDate',
        'transactionId' => 'TransactionId',
        'transactionAmount' => 'TransactionAmount',
    ];

    /**
     * @param  ?string  $transactionType  Indicates the type of transaction.
     *
     * Example: "Disbursed to Amazon Gift Card balance"
     * @param  ?\DateTimeInterface  $postedDate
     * @param  ?string  $transactionId  The identifier for the transaction.
     * @param  ?Currency  $transactionAmount  A currency type and amount.
     */
    public function __construct(
        public readonly ?string $transactionType = null,
        public readonly ?\DateTimeInterface $postedDate = null,
        public readonly ?string $transactionId = null,
        public readonly ?Currency $transactionAmount = null,
    ) {}
}
