Add price_related_quantity to PriceDTO.php

This commit is contained in:
d-buchmann 2023-10-25 13:58:59 +02:00 committed by GitHub
parent 7239aef47f
commit f8ccd5bc22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,6 +41,8 @@ class PriceDTO
public readonly ?string $currency_iso_code,
/** @var bool If the price includes tax */
public readonly ?bool $includes_tax = true,
/** @var float the price related quantity */
public readonly ?float $price_related_quantity = 1.0,
)
{
$this->price_as_big_decimal = BigDecimal::of($this->price);
@ -54,4 +56,4 @@ class PriceDTO
{
return $this->price_as_big_decimal;
}
}
}