From a9bad6260b408147de1168a829908895e7b7f590 Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Mon, 30 Nov 2020 15:26:12 +0100 Subject: [PATCH] Added paymentRefunds endpoint --- src/MollieServiceProvider.php | 2 +- src/Wrappers/MollieApiWrapper.php | 8 ++++++++ tests/Wrappers/MollieApiWrapperTest.php | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/MollieServiceProvider.php b/src/MollieServiceProvider.php index 6e5550a..5e20c03 100644 --- a/src/MollieServiceProvider.php +++ b/src/MollieServiceProvider.php @@ -43,7 +43,7 @@ */ class MollieServiceProvider extends ServiceProvider { - const PACKAGE_VERSION = '2.9.0'; + const PACKAGE_VERSION = '2.12.0'; /** * Boot the service provider. diff --git a/src/Wrappers/MollieApiWrapper.php b/src/Wrappers/MollieApiWrapper.php index 004bb4b..2956a0f 100644 --- a/src/Wrappers/MollieApiWrapper.php +++ b/src/Wrappers/MollieApiWrapper.php @@ -128,6 +128,14 @@ public function payments() return $this->client->payments; } + /** + * @return \Mollie\Api\Endpoints\PaymentRefundEndpoint + */ + public function paymentRefunds() + { + return $this->client->paymentRefunds; + } + /** * @return \Mollie\Api\Endpoints\MethodEndpoint */ diff --git a/tests/Wrappers/MollieApiWrapperTest.php b/tests/Wrappers/MollieApiWrapperTest.php index e9304f3..61aefce 100644 --- a/tests/Wrappers/MollieApiWrapperTest.php +++ b/tests/Wrappers/MollieApiWrapperTest.php @@ -33,6 +33,7 @@ class MollieApiWrapperTest extends TestCase 'organizations', 'permissions', 'payments', + 'paymentRefunds', 'profiles', 'refunds', 'settlements',