From cc211e6e1e0cdeaf79f7c7dfcecd0680696246c9 Mon Sep 17 00:00:00 2001 From: Giulia Vergottini Date: Wed, 14 Jan 2015 15:44:55 +0100 Subject: [PATCH] add write-off method to API --- Billogram/Api/Objects/BillogramObject.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Billogram/Api/Objects/BillogramObject.php b/Billogram/Api/Objects/BillogramObject.php index 8d42b68..e994263 100644 --- a/Billogram/Api/Objects/BillogramObject.php +++ b/Billogram/Api/Objects/BillogramObject.php @@ -254,4 +254,15 @@ public function attachPdf($filepath) return $this->performEvent('attach', array('filename' => $filename, 'content' => base64_encode($content))); } + + /** + * Write-off remaining fees from a billogram. + * + * @return $this + */ + public function writeOff() + { + return $this->performEvent('writeoff'); + } + }