From f2b024801e0420e974ef26abdf56d84c22d000ff Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Thu, 22 Nov 2018 14:13:27 +0100 Subject: [PATCH 1/2] Support for (root) chargebacks endpoint --- composer.json | 2 +- src/Wrappers/MollieApiWrapper.php | 8 ++++++++ tests/Wrappers/MollieApiWrapperTest.php | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5589bea..9a83975 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "require": { "php": ">=7.0.0", "illuminate/support": "^5.5", - "mollie/mollie-api-php": "^2.1" + "mollie/mollie-api-php": ">=2.1.6" }, "require-dev": { "graham-campbell/testbench": "^4.0|^5.0", diff --git a/src/Wrappers/MollieApiWrapper.php b/src/Wrappers/MollieApiWrapper.php index 9039193..3168025 100644 --- a/src/Wrappers/MollieApiWrapper.php +++ b/src/Wrappers/MollieApiWrapper.php @@ -203,6 +203,14 @@ public function refunds() return $this->client->refunds; } + /** + * @return Mollie\Api\Endpoints\ChargebackEndpoint + */ + public function chargebacks() + { + return $this->client->chargebacks; + } + /** * @return Mollie\Api\Endpoints\OrderEndpoint */ diff --git a/tests/Wrappers/MollieApiWrapperTest.php b/tests/Wrappers/MollieApiWrapperTest.php index 5dac8b8..82c56f3 100644 --- a/tests/Wrappers/MollieApiWrapperTest.php +++ b/tests/Wrappers/MollieApiWrapperTest.php @@ -86,6 +86,7 @@ public function testSetBadToken() public function testWrappedEndpoints() { $endpoints = [ + 'chargebacks', 'customers', 'customerPayments', 'invoices', From fd25cd6aec2897655e84ee63d0af61c16ff1aa8c Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Thu, 22 Nov 2018 14:25:00 +0100 Subject: [PATCH 2/2] Revert mollie core client dependency notation --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9a83975..5589bea 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "require": { "php": ">=7.0.0", "illuminate/support": "^5.5", - "mollie/mollie-api-php": ">=2.1.6" + "mollie/mollie-api-php": "^2.1" }, "require-dev": { "graham-campbell/testbench": "^4.0|^5.0",