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

use SellingPartnerApi\Dto;

final class AutomatedShippingSettings extends Dto
{
    protected static array $attributeMap = [
        'hasAutomatedShippingSettings' => 'HasAutomatedShippingSettings',
        'automatedCarrier' => 'AutomatedCarrier',
        'automatedShipMethod' => 'AutomatedShipMethod',
        'automatedShipMethodName' => 'AutomatedShipMethodName',
        'automatedCarrierName' => 'AutomatedCarrierName',
    ];

    /**
     * @param  ?bool  $hasAutomatedShippingSettings  When true, this order has automated shipping settings generated by Amazon. This order could be identified as an SSA order.
     * @param  ?string  $automatedCarrier  Auto-generated carrier for SSA orders.
     * @param  ?string  $automatedShipMethod  Auto-generated ship method for SSA orders.
     * @param  ?string  $automatedShipMethodName  The name of the automated shipping method.
     * @param  ?string  $automatedCarrierName  The name of the automated carrier.
     */
    public function __construct(
        public readonly ?bool $hasAutomatedShippingSettings = null,
        public readonly ?string $automatedCarrier = null,
        public readonly ?string $automatedShipMethod = null,
        public readonly ?string $automatedShipMethodName = null,
        public readonly ?string $automatedCarrierName = null,
    ) {}
}
