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

use SellingPartnerApi\Dto;

final class Pallet extends Dto
{
    protected static array $complexArrayTypes = [
        'palletIdentifiers' => ContainerIdentification::class,
        'items' => ContainerItem::class,
    ];

    /**
     * @param  ContainerIdentification[]  $palletIdentifiers  A list of pallet identifiers.
     * @param  ?int  $tier  Number of layers per pallet. Only applicable to container type Pallet.
     * @param  ?int  $block  Number of cartons per layer on the pallet. Only applicable to container type Pallet.
     * @param  ?Dimensions  $dimensions  Physical dimensional measurements of a container.
     * @param  ?Weight  $weight  The weight of the shipment.
     * @param  ?CartonReferenceDetails  $cartonReferenceDetails  Carton reference details.
     * @param  ContainerItem[]|null  $items  A list of container item details.
     */
    public function __construct(
        public readonly array $palletIdentifiers,
        public readonly ?int $tier = null,
        public readonly ?int $block = null,
        public readonly ?Dimensions $dimensions = null,
        public readonly ?Weight $weight = null,
        public readonly ?CartonReferenceDetails $cartonReferenceDetails = null,
        public readonly ?array $items = null,
    ) {}
}
