diff --git a/src/Wrappers/MollieApiWrapper.php b/src/Wrappers/MollieApiWrapper.php index 989a75c..052e4a0 100644 --- a/src/Wrappers/MollieApiWrapper.php +++ b/src/Wrappers/MollieApiWrapper.php @@ -163,6 +163,22 @@ public function mandates() return $this->client->mandates; } + /** + * @return Mollie\Api\Endpoints\OrganizationEndpoint + */ + public function organizations() + { + return $this->client->organizations; + } + + /** + * @return Mollie\Api\Endpoints\PermissionEndpoint + */ + public function permissions() + { + return $this->client->permissions; + } + /** * @return Mollie\Api\Endpoints\CustomerPaymentsEndpoint */ diff --git a/tests/Wrappers/MollieApiWrapperTest.php b/tests/Wrappers/MollieApiWrapperTest.php index 7b30b3e..ad2cf65 100644 --- a/tests/Wrappers/MollieApiWrapperTest.php +++ b/tests/Wrappers/MollieApiWrapperTest.php @@ -86,12 +86,14 @@ public function testSetBadToken() public function testWrappedEndpoints() { $endpoints = [ - 'customerPayments', - 'customers', 'customers', + 'customerPayments', 'invoices', 'mandates', 'methods', + 'mandates', + 'organizations', + 'permissions', 'payments', 'profiles', 'refunds',