Skip to content

Commit

Permalink
Added support for organizations and permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
sandervanhooft committed Sep 18, 2018
1 parent c087ed3 commit ed0b60a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
16 changes: 16 additions & 0 deletions src/Wrappers/MollieApiWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
6 changes: 4 additions & 2 deletions tests/Wrappers/MollieApiWrapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,14 @@ public function testSetBadToken()
public function testWrappedEndpoints()
{
$endpoints = [
'customerPayments',
'customers',
'customers',
'customerPayments',
'invoices',
'mandates',
'methods',
'mandates',
'organizations',
'permissions',
'payments',
'profiles',
'refunds',
Expand Down

0 comments on commit ed0b60a

Please sign in to comment.