Skip to content

Commit

Permalink
Merge pull request #215 from sandervanhooft/balances
Browse files Browse the repository at this point in the history
Introduce Balance endpoints and drop php7 support
  • Loading branch information
sandervanhooft authored Dec 13, 2022
2 parents 6faa93b + 433b0f0 commit 84733da
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"socialite"
],
"require": {
"php": "^7.3|^8.0",
"php": "^8.0",
"illuminate/support": "^8.0|^9.0",
"mollie/mollie-api-php": "^2.40",
"mollie/mollie-api-php": "^2.49",
"ext-json": "*"
},
"require-dev": {
Expand Down
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 84733da

Please sign in to comment.