Skip to content

Commit

Permalink
Added void method to Bill service
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene de Kat committed Sep 27, 2017
1 parent 9931859 commit 7b75dfd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Services/Bill.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,18 @@
class Bill extends Service
{
use Attachable;

/**
* Void an entity.
*
* @param string $id Invoice ID.
* @param int $syncToken
*/
public function void($id, $syncToken = 0)
{
return parent::post($this->getResourceName().'?operation=void', [
'Id' => $id,
'SyncToken' => $syncToken,
])->{$this->getEntityName()};
}
}

0 comments on commit 7b75dfd

Please sign in to comment.