Skip to content

Commit

Permalink
Merge pull request #227 from mollie/add-transactions-endpoint
Browse files Browse the repository at this point in the history
Add terminals endpoint
  • Loading branch information
sandervanhooft authored May 9, 2023
2 parents 039eec4 + 0e6aa48 commit c83630e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
],
"require": {
"php": "^8.0",
"mollie/mollie-api-php": "^2.55",
"illuminate/support": "^9.0|^10.0",
"mollie/mollie-api-php": "^2.50",
"ext-json": "*"
},
"require-dev": {
Expand All @@ -70,14 +70,14 @@
}
},
"extra": {
"laravel": {
"providers": [
"Mollie\\Laravel\\MollieServiceProvider"
],
"aliases": {
"Mollie": "Mollie\\Laravel\\Facades\\Mollie"
}
"laravel": {
"providers": [
"Mollie\\Laravel\\MollieServiceProvider"
],
"aliases": {
"Mollie": "Mollie\\Laravel\\Facades\\Mollie"
}
}
},
"scripts": {
"test": "./vendor/bin/phpunit tests",
Expand Down
9 changes: 9 additions & 0 deletions src/Wrappers/MollieApiWrapper.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2016, Mollie B.V.
* All rights reserved.
Expand Down Expand Up @@ -165,6 +166,14 @@ public function paymentLinks()
return $this->client->paymentLinks;
}

/**
* @return \Mollie\Api\Endpoints\TerminalEndpoint
*/
public function terminals()
{
return $this->client->terminals;
}

/**
* @return \Mollie\Api\Endpoints\MethodEndpoint
*/
Expand Down
1 change: 1 addition & 0 deletions tests/Wrappers/MollieApiWrapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class MollieApiWrapperTest extends TestCase
'settlementPayments',
'subscriptions',
'shipments',
'terminals',
'wallets',
'clients',
'organizationPartners',
Expand Down

0 comments on commit c83630e

Please sign in to comment.