From 096b1347a97d3dfea8f9974f69092f509b0dbaca Mon Sep 17 00:00:00 2001 From: Adrian Walls Date: Tue, 12 Sep 2017 12:25:32 +0100 Subject: [PATCH 1/3] Update SalesReceipt.php --- src/Services/SalesReceipt.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Services/SalesReceipt.php b/src/Services/SalesReceipt.php index 7abe83c..40a1927 100644 --- a/src/Services/SalesReceipt.php +++ b/src/Services/SalesReceipt.php @@ -7,18 +7,4 @@ 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()}; - } } From 7c09c9f46bb311c2bebc429a3faacfa5137270b5 Mon Sep 17 00:00:00 2001 From: Adrian Walls Date: Tue, 12 Sep 2017 12:27:01 +0100 Subject: [PATCH 2/3] Added void code to Invoice class --- src/Services/Invoice.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Services/Invoice.php b/src/Services/Invoice.php index eb5c439..ad0e125 100644 --- a/src/Services/Invoice.php +++ b/src/Services/Invoice.php @@ -44,4 +44,18 @@ public function send($id, $email = null) 'Content-Type' => 'application/octet-stream', ]); } + + /** + * 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()}; + } } From 8e1eb6038373bf8a2114a0b8f5b686692a3f96d7 Mon Sep 17 00:00:00 2001 From: renedekat Date: Tue, 12 Sep 2017 11:29:07 +0000 Subject: [PATCH 3/3] Apply fixes from StyleCI --- src/Services/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Invoice.php b/src/Services/Invoice.php index ad0e125..e2339f2 100644 --- a/src/Services/Invoice.php +++ b/src/Services/Invoice.php @@ -44,7 +44,7 @@ public function send($id, $email = null) 'Content-Type' => 'application/octet-stream', ]); } - + /** * Void an entity. *