diff --git a/src/Twisto/Invoice.php b/src/Twisto/Invoice.php index c8e17f9..17e7f29 100644 --- a/src/Twisto/Invoice.php +++ b/src/Twisto/Invoice.php @@ -46,6 +46,9 @@ class Invoice /** @var Item[] */ public $items; + /** @var bool */ + public $has_account; + /** * @param Twisto $twisto * @param string $invoice_id @@ -188,6 +191,8 @@ private function deserialize($data) $this->items = array_map(function($item) { return Item::deserialize($item); }, $data['items']); + + $this->has_account = (bool)$data['has_account']; } private function serialize() @@ -205,4 +210,4 @@ private function serialize() return $data; } -} \ No newline at end of file +}