<?php

namespace App\Domains\CostUnit\Actions\ChangeCostUnitDetails;

use App\Models\CostUnit;
use App\ValueObjects\Amount;
use DateTime;

class ChangeCostUnitDetailsRequest {
    public CostUnit $costUnit;

    public Amount $distanceAllowance;
    public bool $mailOnNew;
    public ?DateTime $billingDeadline;

    public function __construct(CostUnit $costUnit, Amount $distanceAllowance, bool $mailOnNew, ?DateTime $billingDeadline = null) {
        $this->costUnit = $costUnit;
        $this->distanceAllowance = $distanceAllowance;
        $this->mailOnNew = $mailOnNew;
        $this->billingDeadline = $billingDeadline;
    }
}
