Skip to content

Commit

Permalink
Update SalesReceipt.php
Browse files Browse the repository at this point in the history
  • Loading branch information
renedekat authored Sep 12, 2017
1 parent 4f1eaf4 commit fa3c6a2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Services/SalesReceipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,18 @@
class SalesReceipt extends Service
{
use Attachable;

/**
* Void an entity.
*
* @param string $id Item information.
* @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 fa3c6a2

Please sign in to comment.