<?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 AffordabilityExpenseEvent extends Dto
{
    protected static array $attributeMap = [
        'taxTypeCgst' => 'TaxTypeCGST',
        'taxTypeSgst' => 'TaxTypeSGST',
        'taxTypeIgst' => 'TaxTypeIGST',
        'amazonOrderId' => 'AmazonOrderId',
        'postedDate' => 'PostedDate',
        'marketplaceId' => 'MarketplaceId',
        'transactionType' => 'TransactionType',
        'baseExpense' => 'BaseExpense',
        'totalExpense' => 'TotalExpense',
    ];

    /**
     * @param  Currency  $taxTypeCgst  A currency type and amount.
     * @param  Currency  $taxTypeSgst  A currency type and amount.
     * @param  Currency  $taxTypeIgst  A currency type and amount.
     * @param  ?string  $amazonOrderId  An Amazon-defined identifier for an order.
     * @param  ?\DateTimeInterface  $postedDate
     * @param  ?string  $marketplaceId  An encrypted, Amazon-defined marketplace identifier.
     * @param  ?string  $transactionType  Indicates the type of transaction.
     *
     * Possible values:
     *
     * * Charge - For an affordability promotion expense.
     *
     * * Refund - For an affordability promotion expense reversal.
     * @param  ?Currency  $baseExpense  A currency type and amount.
     * @param  ?Currency  $totalExpense  A currency type and amount.
     */
    public function __construct(
        public readonly Currency $taxTypeCgst,
        public readonly Currency $taxTypeSgst,
        public readonly Currency $taxTypeIgst,
        public readonly ?string $amazonOrderId = null,
        public readonly ?\DateTimeInterface $postedDate = null,
        public readonly ?string $marketplaceId = null,
        public readonly ?string $transactionType = null,
        public readonly ?Currency $baseExpense = null,
        public readonly ?Currency $totalExpense = null,
    ) {}
}
