From ce8a587eb77ed6a9b8888406f68663b2db17104f Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Tue, 13 Dec 2022 14:15:24 +0100 Subject: [PATCH 1/2] Drop php7 support --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 9950cd6..9530b0d 100644 --- a/composer.json +++ b/composer.json @@ -41,9 +41,9 @@ "socialite" ], "require": { - "php": "^7.3|^8.0", + "php": "^8.0", "illuminate/support": "^8.0|^9.0", - "mollie/mollie-api-php": "^2.40", + "mollie/mollie-api-php": "^2.49", "ext-json": "*" }, "require-dev": { From 433b0f0b5660b344f5bcde47f8968f68df9c627c Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Tue, 13 Dec 2022 14:17:44 +0100 Subject: [PATCH 2/2] 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',