-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
450 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"require": { | ||
"mollie/mollie-api-php": "^2.37" | ||
"mollie/mollie-api-php": "^2.39" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
// Link to support and pro page from plugins screen | ||
function webtica_mollie_integration_filter_action_links( $links ) { | ||
|
||
$links['support'] = '<a href="https://plugins.webtica.be/support/?ref=plugin-settings-page" target="_blank">Support</a>'; | ||
return $links; | ||
|
||
} | ||
add_filter( 'plugin_action_links_integration-for-elementor-forms-mollie/mollie-elementor-integration.php', 'webtica_mollie_integration_filter_action_links', 10, 3 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
vendor/mollie/mollie-api-php/src/Endpoints/ClientEndpoint.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?php | ||
|
||
namespace Mollie\Api\Endpoints; | ||
|
||
use Mollie\Api\Exceptions\ApiException; | ||
use Mollie\Api\Resources\Client; | ||
use Mollie\Api\Resources\ClientCollection; | ||
|
||
class ClientEndpoint extends CollectionEndpointAbstract | ||
{ | ||
protected $resourcePath = "clients"; | ||
|
||
/** | ||
* @return Client | ||
*/ | ||
protected function getResourceObject() | ||
{ | ||
return new Client($this->client); | ||
} | ||
|
||
/** | ||
* Get the collection object that is used by this API endpoint. Every API endpoint uses one type of collection object. | ||
* | ||
* @param int $count | ||
* @param \stdClass $_links | ||
* | ||
* @return ClientCollection | ||
*/ | ||
protected function getResourceCollectionObject($count, $_links) | ||
{ | ||
return new ClientCollection($this->client, $count, $_links); | ||
} | ||
|
||
/** | ||
* Retrieve a client from Mollie. | ||
* | ||
* Will throw an ApiException if the client id is invalid or the resource cannot be found. | ||
* The client id corresponds to the organization id, for example "org_1337". | ||
* | ||
* @param string $clientId | ||
* @param array $parameters | ||
* | ||
* @return Client | ||
* @throws ApiException | ||
*/ | ||
public function get($clientId, array $parameters = []) | ||
{ | ||
if (empty($clientId)) { | ||
throw new ApiException("Client ID is empty."); | ||
} | ||
|
||
return parent::rest_read($clientId, $parameters); | ||
} | ||
|
||
/** | ||
* Retrieves a page of clients from Mollie. | ||
* | ||
* @param string $from The first client ID you want to include in your list. | ||
* @param int $limit | ||
* @param array $parameters | ||
* | ||
* @return ClientCollection | ||
* @throws ApiException | ||
*/ | ||
public function page($from = null, $limit = null, array $parameters = []) | ||
{ | ||
return $this->rest_list($from, $limit, $parameters); | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
vendor/mollie/mollie-api-php/src/Endpoints/OrganizationPartnerEndpoint.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
|
||
namespace Mollie\Api\Endpoints; | ||
|
||
use Mollie\Api\Exceptions\ApiException; | ||
use Mollie\Api\Resources\BaseResource; | ||
use Mollie\Api\Resources\Partner; | ||
use Mollie\Api\Resources\ResourceFactory; | ||
|
||
class OrganizationPartnerEndpoint extends EndpointAbstract | ||
{ | ||
protected $resourcePath = "organizations/me/partner"; | ||
|
||
protected function getResourceCollectionObject($count, $links) | ||
{ | ||
throw new \BadMethodCallException('not implemented'); | ||
} | ||
|
||
/** | ||
* Get the object that is used by this API endpoint. Every API endpoint uses one type of object. | ||
* | ||
* @return BaseResource | ||
*/ | ||
protected function getResourceObject() | ||
{ | ||
return new Partner($this->client); | ||
} | ||
|
||
/** | ||
* Retrieve details about the partner status of the currently authenticated organization. | ||
* | ||
* Will throw an ApiException if the resource cannot be found. | ||
* | ||
* @return Partner | ||
* @throws ApiException | ||
*/ | ||
public function get() | ||
{ | ||
return $this->rest_read('', []); | ||
} | ||
|
||
/** | ||
* @param string $id | ||
* @param array $filters | ||
* | ||
* @return \Mollie\Api\Resources\BaseResource | ||
* @throws \Mollie\Api\Exceptions\ApiException | ||
*/ | ||
protected function rest_read($id, array $filters) | ||
{ | ||
$result = $this->client->performHttpCall( | ||
self::REST_READ, | ||
$this->getResourcePath() . $this->buildQueryString($filters) | ||
); | ||
|
||
return ResourceFactory::createFromApiResult($result, $this->getResourceObject()); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
vendor/mollie/mollie-api-php/src/Exceptions/HttpAdapterDoesNotSupportDebuggingException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Mollie\Api\Exceptions; | ||
|
||
class HttpAdapterDoesNotSupportDebuggingException extends ApiException | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.