Skip to content

Commit

Permalink
Merge pull request #4 from michalvoscek/master
Browse files Browse the repository at this point in the history
Add has account to API
  • Loading branch information
jsalvet authored Apr 18, 2018
2 parents 51f77a0 + fbd92c2 commit 27d67ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Twisto/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ class Invoice
/** @var Item[] */
public $items;

/** @var bool */
public $has_account;

/**
* @param Twisto $twisto
* @param string $invoice_id
Expand Down Expand Up @@ -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()
Expand All @@ -205,4 +210,4 @@ private function serialize()

return $data;
}
}
}

0 comments on commit 27d67ee

Please sign in to comment.