From 88b45bc3f7f84da9b6028ffd7f02547d9b537506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0brahim=20=C5=9E=2E=20=C3=96rencik?= Date: Fri, 20 Jan 2017 03:31:14 +0200 Subject: [PATCH] Update Sale.php (#5) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update Sale.php Yeni güncellemeyle faturaların güncellenme/oluşturulma tarihine göre filtreleme geldi. --- src/Bundle/Sale.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Bundle/Sale.php b/src/Bundle/Sale.php index cc2fb96..7948b3d 100644 --- a/src/Bundle/Sale.php +++ b/src/Bundle/Sale.php @@ -28,13 +28,15 @@ class Sale extends Bundle * * @param int $page * @param int $limit + * @param string|null $lastSynch * @return array */ - public function get($page = 1, $limit = 25) + public function get($page = 1, $limit = 25, $lastSynch = null) { return $this->client->call("sales_invoices", [ 'page' => $page, 'per_page' => $limit, + 'last_synch' => $lastSynch, ], 'GET'); }