From 433b0f0b5660b344f5bcde47f8968f68df9c627c Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Tue, 13 Dec 2022 14:17:44 +0100 Subject: [PATCH] Add balances support: --- src/Wrappers/MollieApiWrapper.php | 24 ++++++++++++++++++++++++ tests/Wrappers/MollieApiWrapperTest.php | 3 +++ 2 files changed, 27 insertions(+) diff --git a/src/Wrappers/MollieApiWrapper.php b/src/Wrappers/MollieApiWrapper.php index b5c2790..e0b4eb7 100644 --- a/src/Wrappers/MollieApiWrapper.php +++ b/src/Wrappers/MollieApiWrapper.php @@ -192,6 +192,30 @@ public function customers() return $this->client->customers; } + /** + * @return \Mollie\Api\Endpoints\BalanceEndpoint + */ + public function balances() + { + return $this->client->balances; + } + + /** + * @return \Mollie\Api\Endpoints\BalanceTransactionEndpoint + */ + public function balanceTransactions() + { + return $this->client->balanceTransactions; + } + + /** + * @return \Mollie\Api\Endpoints\BalanceReportEndpoint + */ + public function balanceReports() + { + return $this->client->balanceReports; + } + /** * @return \Mollie\Api\Endpoints\SettlementsEndpoint */ diff --git a/tests/Wrappers/MollieApiWrapperTest.php b/tests/Wrappers/MollieApiWrapperTest.php index 7df7053..44e8cee 100644 --- a/tests/Wrappers/MollieApiWrapperTest.php +++ b/tests/Wrappers/MollieApiWrapperTest.php @@ -19,6 +19,9 @@ class MollieApiWrapperTest extends TestCase protected $api; protected $endpoints = [ + 'balances', + 'balanceReports', + 'balanceTransactions', 'chargebacks', 'customers', 'customerPayments',