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

use SellingPartnerApi\Dto;

final class OrderAcknowledgement extends Dto
{
    protected static array $complexArrayTypes = ['items' => OrderAcknowledgementItem::class];

    /**
     * @param  string  $purchaseOrderNumber  The purchase order number. Formatting Notes: 8-character alpha-numeric code.
     * @param  PartyIdentification  $sellingParty  Name, address and tax details of a party.
     * @param  \DateTimeInterface  $acknowledgementDate  The date and time when the purchase order is acknowledged, in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> date/time format.
     * @param  OrderAcknowledgementItem[]  $items  A list of the items being acknowledged with associated details.
     */
    public function __construct(
        public readonly string $purchaseOrderNumber,
        public readonly PartyIdentification $sellingParty,
        public readonly \DateTimeInterface $acknowledgementDate,
        public readonly array $items,
    ) {}
}
