diff --git a/Models/Invoice.php b/Models/Invoice.php index f6cdf86..622da65 100644 --- a/Models/Invoice.php +++ b/Models/Invoice.php @@ -98,7 +98,7 @@ class Invoice implements \JsonSerializable /** * Person refering for this order. * - * @var \DateTime + * @var int * @since 1.0.0 */ private $referer = 0; @@ -385,14 +385,14 @@ class Invoice implements \JsonSerializable return $this->insurance; } - public function setFreight(Money $freigth) /* : void */ + public function setFreight(Money $freight) /* : void */ { $this->freight = $freight; } - public function getFreigth() : Money + public function getFreight() : Money { - return $this->freigth; + return $this->freight; } public function getNet() : Money diff --git a/Models/InvoiceElement.php b/Models/InvoiceElement.php index 596b581..a0b8fd7 100644 --- a/Models/InvoiceElement.php +++ b/Models/InvoiceElement.php @@ -55,7 +55,7 @@ class InvoiceElement implements \JsonSerializable private $totalPriceNet = null; - private $taxP = 0; + private $taxP = null; private $taxR = null;