Skip to content

Commit

Permalink
Add balances support:
Browse files Browse the repository at this point in the history
  • Loading branch information
sandervanhooft committed Dec 13, 2022
1 parent ce8a587 commit 433b0f0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Wrappers/MollieApiWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
3 changes: 3 additions & 0 deletions tests/Wrappers/MollieApiWrapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ class MollieApiWrapperTest extends TestCase
protected $api;

protected $endpoints = [
'balances',
'balanceReports',
'balanceTransactions',
'chargebacks',
'customers',
'customerPayments',
Expand Down

0 comments on commit 433b0f0

Please sign in to comment.