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

use SellingPartnerApi\Dto;

final class Rate extends Dto
{
    /**
     * @param  ?string  $rateId  An identifier for the rate.
     * @param  ?Currency  $totalCharge  The total value of all items in the container.
     * @param  ?Weight  $billedWeight  The weight.
     * @param  ?\DateTimeInterface  $expirationTime  The time after which the offering will expire.
     * @param  ?string  $serviceType  The type of shipping service that will be used for the service offering.
     * @param  ?ShippingPromiseSet  $promise  The promised delivery time and pickup time.
     */
    public function __construct(
        public readonly ?string $rateId = null,
        public readonly ?Currency $totalCharge = null,
        public readonly ?Weight $billedWeight = null,
        public readonly ?\DateTimeInterface $expirationTime = null,
        public readonly ?string $serviceType = null,
        public readonly ?ShippingPromiseSet $promise = null,
    ) {}
}
