diff --git a/src/Services/SalesReceipt.php b/src/Services/SalesReceipt.php index 40a1927..944d668 100644 --- a/src/Services/SalesReceipt.php +++ b/src/Services/SalesReceipt.php @@ -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()}; + } }