<?php

/**
 * This file is auto-generated by Saloon SDK Generator
 * Generator: SellingPartnerApi\Generator\Generators\ResponseGenerator
 * Do not modify it directly.
 */

declare(strict_types=1);

namespace SellingPartnerApi\Seller\EasyShipV20220323\Responses;

use SellingPartnerApi\Response;
use SellingPartnerApi\Seller\EasyShipV20220323\Dto\RejectedOrder;

final class CreateScheduledPackagesResponse extends Response
{
    protected static array $complexArrayTypes = [
        'scheduledPackages' => Package::class,
        'rejectedOrders' => RejectedOrder::class,
    ];

    /**
     * @param  Package[]|null  $scheduledPackages  A list of packages. Refer to the `Package` object.
     * @param  RejectedOrder[]|null  $rejectedOrders  A list of orders we couldn't scheduled on your behalf. Each element contains the reason and details on the error.
     * @param  ?string  $printableDocumentsUrl  A pre-signed URL for the zip document containing the shipping labels and the documents enabled for your marketplace.
     */
    public function __construct(
        public readonly ?array $scheduledPackages = null,
        public readonly ?array $rejectedOrders = null,
        public readonly ?string $printableDocumentsUrl = null,
    ) {}
}
