From 9358688dca488ed23d7d4495501ccda0244a59b0 Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Fri, 21 Jun 2024 13:57:03 +0200 Subject: [PATCH 1/6] wip --- phpunit.xml | 8 +++- src/Endpoints/PaymentLinkEndpoint.php | 1 - .../API/Endpoints/PaymentLinkEndpointTest.php | 38 +++++++++++++++++++ 3 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php diff --git a/phpunit.xml b/phpunit.xml index eb7a8f95..f566b1d9 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,5 +1,11 @@ - + src/ diff --git a/src/Endpoints/PaymentLinkEndpoint.php b/src/Endpoints/PaymentLinkEndpoint.php index f27d09dd..6505d94b 100644 --- a/src/Endpoints/PaymentLinkEndpoint.php +++ b/src/Endpoints/PaymentLinkEndpoint.php @@ -4,7 +4,6 @@ use Mollie\Api\Exceptions\ApiException; use Mollie\Api\Resources\LazyCollection; -use Mollie\Api\Resources\Payment; use Mollie\Api\Resources\PaymentLink; use Mollie\Api\Resources\PaymentLinkCollection; diff --git a/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php b/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php new file mode 100644 index 00000000..b7e6cd3c --- /dev/null +++ b/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php @@ -0,0 +1,38 @@ +markTestIncomplete('To be implemented'); + } + + /** @test */ + public function testGetPaymentLink() + { + $this->markTestIncomplete('To be implemented'); + } + + /** @test */ + public function testCreatePaymentLink() + { + $this->markTestIncomplete('To be implemented'); + } + + /** @test */ + public function testUpdatePaymentLink() + { + $this->markTestIncomplete('To be implemented'); + } + + /** @test */ + public function testDeletePaymentLink() + { + $this->markTestIncomplete('To be implemented'); + } +} \ No newline at end of file From a4ae0d853821655853bf18eda4de52a9dac07c45 Mon Sep 17 00:00:00 2001 From: sandervanhooft Date: Fri, 21 Jun 2024 11:57:32 +0000 Subject: [PATCH 2/6] Fix styling --- tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php b/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php index b7e6cd3c..c09b2030 100644 --- a/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php +++ b/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php @@ -35,4 +35,4 @@ public function testDeletePaymentLink() { $this->markTestIncomplete('To be implemented'); } -} \ No newline at end of file +} From ced8cfd4f50235118a2fe8312ca5414c66e000cc Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Fri, 21 Jun 2024 15:17:39 +0200 Subject: [PATCH 3/6] wip --- src/Endpoints/PaymentLinkEndpoint.php | 34 ++ .../API/Endpoints/PaymentLinkEndpointTest.php | 325 +++++++++++++++++- 2 files changed, 354 insertions(+), 5 deletions(-) diff --git a/src/Endpoints/PaymentLinkEndpoint.php b/src/Endpoints/PaymentLinkEndpoint.php index 6505d94b..9a19e0dc 100644 --- a/src/Endpoints/PaymentLinkEndpoint.php +++ b/src/Endpoints/PaymentLinkEndpoint.php @@ -16,6 +16,40 @@ class PaymentLinkEndpoint extends CollectionEndpointAbstract */ public const RESOURCE_ID_PREFIX = 'pl_'; + /** + * Update a Payment Link. + * + * @param string $paymentLinkId + * @param array $data + * @return PaymentLink + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function update(string $paymentLinkId, array $data) + { + if (empty($paymentLinkId) || strpos($paymentLinkId, self::RESOURCE_ID_PREFIX) !== 0) { + throw new ApiException("Invalid payment ID: '{$paymentLinkId}'. A Payment Link ID should start with '" . self::RESOURCE_ID_PREFIX . "'."); + } + + return $this->rest_update($paymentLinkId, $data); + } + + /** + * Delete a Payment Link. + * + * @param string $paymentLinkId + * @param array $data + * @return void + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function delete(string $paymentLinkId, array $data = []) + { + if (empty($paymentLinkId) || strpos($paymentLinkId, self::RESOURCE_ID_PREFIX) !== 0) { + throw new ApiException("Invalid payment ID: '{$paymentLinkId}'. A Payment Link ID should start with '" . self::RESOURCE_ID_PREFIX . "'."); + } + + $this->rest_delete($paymentLinkId, $data); + } + /** * @return PaymentLink */ diff --git a/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php b/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php index c09b2030..7a8daa20 100644 --- a/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php +++ b/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php @@ -4,35 +4,350 @@ namespace Tests\Mollie\API\Endpoints; +use GuzzleHttp\Psr7\Request; +use GuzzleHttp\Psr7\Response; +use Mollie\Api\Resources\PaymentLink; + class PaymentLinkEndpointTest extends BaseEndpointTest { /** @test */ public function testListPaymentLinks() { - $this->markTestIncomplete('To be implemented'); + $this->mockApiCall( + new Request( + "GET", + "/v2/payment-links", + [], + '' + ), + new Response( + 200, + [], + '{ + "count": 1, + "_embedded": { + "payment_links": [ + { + "resource": "payment-link", + "id": "pl_4Y0eZitmBnQ6IDoMqZQKh", + "mode": "live", + "description": "Bicycle tires", + "amount": { + "currency": "EUR", + "value": "24.95" + }, + "archived": false, + "redirectUrl": "https://webshop.example.org/thanks", + "webhookUrl": "https://webshop.example.org/payment-links/webhook", + "profileId": "pfl_QkEhN94Ba", + "createdAt": "2021-03-20T09:29:56+00:00", + "expiresAt": "2023-06-06T11:00:00+00:00", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "paymentLink": { + "href": "https://paymentlink.mollie.com/payment/4Y0eZitmBnQ6IDoMqZQKh", + "type": "text/html" + } + } + } + ] + }, + "_links": { + "self": { + "href": "https://api.mollie.com/v2/payment-links/", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/payment-links?from=pl_ayGNzD4TYuQtUaxNyu8aH&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "https://docs.mollie.com/reference/list-payment-links", + "type": "text/html" + } + } + }' + ) + ); + + $paymentLinks = $this->apiClient->paymentLinks->page(); + $this->assertEquals(1, $paymentLinks->count()); + $this->assertEquals('pl_4Y0eZitmBnQ6IDoMqZQKh', $paymentLinks[0]->id); + // No need to test all attributes as these are mapped dynamically. + } + + /** @test */ + public function testIteratePaymentLinks() + { + $this->mockApiCall( + new Request( + "GET", + "/v2/payment-links", + [], + '' + ), + new Response( + 200, + [], + '{ + "count": 1, + "_embedded": { + "payment_links": [ + { + "resource": "payment-link", + "id": "pl_4Y0eZitmBnQ6IDoMqZQKh", + "mode": "live", + "description": "Bicycle tires", + "amount": { + "currency": "EUR", + "value": "24.95" + }, + "archived": false, + "redirectUrl": "https://webshop.example.org/thanks", + "webhookUrl": "https://webshop.example.org/payment-links/webhook", + "profileId": "pfl_QkEhN94Ba", + "createdAt": "2021-03-20T09:29:56+00:00", + "expiresAt": "2023-06-06T11:00:00+00:00", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "paymentLink": { + "href": "https://paymentlink.mollie.com/payment/4Y0eZitmBnQ6IDoMqZQKh", + "type": "text/html" + } + } + } + ] + }, + "_links": { + "self": { + "href": "https://api.mollie.com/v2/payment-links/", + "type": "application/hal+json" + }, + "previous": null, + "next": null, + "documentation": { + "href": "https://docs.mollie.com/reference/list-payment-links", + "type": "text/html" + } + } + }' + ) + ); + foreach ($this->apiClient->paymentLinks->iterator() as $paymentLink) { + $this->assertInstanceOf(PaymentLink::class, $paymentLink); + $this->assertEquals("payment-link", $paymentLink->resource); + // No need to test all attributes as these are mapped dynamically. + } } /** @test */ public function testGetPaymentLink() { - $this->markTestIncomplete('To be implemented'); + $this->mockApiCall( + new Request( + "GET", + "/v2/payment-links/pl_4Y0eZitmBnQ6IDoMqZQKh?testmode=true", + [], + '' + ), + new Response( + 200, + [], + '{ + "resource": "payment-link", + "id": "pl_4Y0eZitmBnQ6IDoMqZQKh", + "mode": "live", + "description": "Bicycle tires", + "amount": { + "currency": "EUR", + "value": "24.95" + }, + "archived": false, + "redirectUrl": "https://webshop.example.org/thanks", + "webhookUrl": "https://webshop.example.org/payment-links/webhook", + "profileId": "pfl_QkEhN94Ba", + "createdAt": "2021-03-20T09:29:56+00:00", + "expiresAt": "2023-06-06T11:00:00+00:00", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/payment-links/pl_4Y0eZitmBnQ6IDoMqZQKh?testmode=true", + "type": "application/hal+json" + }, + "paymentLink": { + "href": "https://paymentlink.mollie.com/payment/4Y0eZitmBnQ6IDoMqZQKh", + "type": "text/html" + }, + "documentation": { + "href": "https://docs.mollie.com/reference/get-payment-link", + "type": "text/html" + } + } + }' + ) + ); + + $paymentLink = $this->apiClient->paymentLinks->get("pl_4Y0eZitmBnQ6IDoMqZQKh", ["testmode" => true]); + $this->assertInstanceOf(PaymentLink::class, $paymentLink); + $this->assertEquals("payment-link", $paymentLink->resource); + $this->assertEquals("pl_4Y0eZitmBnQ6IDoMqZQKh", $paymentLink->id); + // No need to test all attributes as these are mapped dynamically. } /** @test */ public function testCreatePaymentLink() { - $this->markTestIncomplete('To be implemented'); + $this->mockApiCall( + new Request( + "POST", + "/v2/payment-links", + [], + '{ + "description": "Bicycle tires", + "amount": { + "currency": "EUR", + "value": "24.95" + }, + "webhookUrl": "https://webshop.example.org/payment-links/webhook/", + "redirectUrl": "https://webshop.example.org/thanks", + "expiresAt": "2023-06-06T11:00:00+00:00" + }' + ), + new Response( + 201, + [], + '{ + "resource": "payment-link", + "id": "pl_4Y0eZitmBnQ6IDoMqZQKh", + "mode": "live", + "description": "Bicycle tires", + "amount": { + "currency": "EUR", + "value": "24.95" + }, + "archived": false, + "redirectUrl": "https://webshop.example.org/thanks", + "webhookUrl": "https://webshop.example.org/payment-links/webhook", + "profileId": "pfl_QkEhN94Ba", + "createdAt": "2021-03-20T09:29:56+00:00", + "expiresAt": "2023-06-06T11:00:00+00:00", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/payment-links/pl_4Y0eZitmBnQ6IDoMqZQKh?testmode=true", + "type": "application/hal+json" + }, + "paymentLink": { + "href": "https://paymentlink.mollie.com/payment/4Y0eZitmBnQ6IDoMqZQKh", + "type": "text/html" + }, + "documentation": { + "href": "https://docs.mollie.com/reference/create-payment-link", + "type": "text/html" + } + } + }' + ) + ); + + $paymentLink = $this->apiClient->paymentLinks->create([ + "description" => "Bicycle tires", + "amount" => [ + "currency" => "EUR", + "value" => "24.95", + ], + "webhookUrl" => "https://webshop.example.org/payment-links/webhook/", + "redirectUrl" => "https://webshop.example.org/thanks", + "expiresAt" => "2023-06-06T11:00:00+00:00", + ]); + + $this->assertInstanceOf(PaymentLink::class, $paymentLink); + $this->assertEquals('payment-link', $paymentLink->resource); + $this->assertEquals('pl_4Y0eZitmBnQ6IDoMqZQKh', $paymentLink->id); + // No need to test all attributes as these are mapped dynamically. } /** @test */ public function testUpdatePaymentLink() { - $this->markTestIncomplete('To be implemented'); + $this->mockApiCall( + new Request( + "PATCH", + "/v2/payment-links/pl_4Y0eZitmBnQ6IDoMqZQKh", + [], + '{ + "description":"Bicycle tires", + "archived": true + }' + ), + new Response( + 200, + [], + '{ + "resource": "payment-link", + "id": "pl_4Y0eZitmBnQ6IDoMqZQKh", + "mode": "live", + "description": "Bicycle tires", + "amount": { + "currency": "EUR", + "value": "24.95" + }, + "archived": true, + "redirectUrl": "https://webshop.example.org/thanks", + "webhookUrl": "https://webshop.example.org/payment-links/webhook", + "profileId": "pfl_QkEhN94Ba", + "createdAt": "2021-03-20T09:29:56+00:00", + "expiresAt": "2023-06-06T11:00:00+00:00", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/payment-links/pl_4Y0eZitmBnQ6IDoMqZQKh?testmode=true", + "type": "application/hal+json" + }, + "paymentLink": { + "href": "https://paymentlink.mollie.com/payment/4Y0eZitmBnQ6IDoMqZQKh", + "type": "text/html" + }, + "documentation": { + "href": "https://docs.mollie.com/reference/update-payment-link", + "type": "text/html" + } + } + }' + ) + ); + + $paymentLink = $this->apiClient->paymentLinks->update('pl_4Y0eZitmBnQ6IDoMqZQKh', [ + 'description' => 'Bicycle tires', + 'archived' => true, + ]); + + $this->assertInstanceOf(PaymentLink::class, $paymentLink); + $paymentLink->resource = 'payment-link'; + $paymentLink->id = 'pl_4Y0eZitmBnQ6IDoMqZQKh'; + $paymentLink->archived = true; + // No need to test all attributes as these are mapped dynamically. } /** @test */ public function testDeletePaymentLink() { - $this->markTestIncomplete('To be implemented'); + $this->mockApiCall( + new Request( + "DELETE", + "/v2/payment-links/pl_4Y0eZitmBnQ6IDoMqZQKh" + ), + new Response( + 204, + [], + null + ) + ); + + $this->assertNull($this->apiClient->paymentLinks->delete('pl_4Y0eZitmBnQ6IDoMqZQKh')); } } From 1be69ed3ad59a949062ae761af23cf531f46967c Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Fri, 21 Jun 2024 15:59:54 +0200 Subject: [PATCH 4/6] wip --- src/Resources/PaymentLink.php | 59 +++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/src/Resources/PaymentLink.php b/src/Resources/PaymentLink.php index cd64ed7d..2d65796e 100644 --- a/src/Resources/PaymentLink.php +++ b/src/Resources/PaymentLink.php @@ -124,4 +124,63 @@ public function getCheckoutUrl() return $this->_links->paymentLink->href; } + + /** + * Persist the current local Payment Link state to the Mollie API. + * + * @return mixed|\Mollie\Api\Resources\BaseResource + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function update() + { + $body = $this->withPresetOptions([ + 'description' => $this->description, + 'archived' => $this->archived, + ]); + + $result = $this->client->paymentLinks->update($this->id, $body); + + return ResourceFactory::createFromApiResult($result, new PaymentLink($this->client)); + } + + /** + * Archive this Payment Link. + * + * @return \Mollie\Api\Resources\PaymentLink + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function archive() + { + $data = $this->withPresetOptions([ + 'archived' => true, + ]); + + return $this->client->paymentLinks->update($this->id, $data); + } + + /** + * When accessed by oAuth we want to pass the testmode by default + * + * @return array + */ + private function getPresetOptions() + { + $options = []; + if ($this->client->usesOAuth()) { + $options["testmode"] = $this->mode === "test"; + } + + return $options; + } + + /** + * Apply the preset options. + * + * @param array $options + * @return array + */ + private function withPresetOptions(array $options) + { + return array_merge($this->getPresetOptions(), $options); + } } From b93ad0c57588b789204ce7364bf3f5d482d21ed5 Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Fri, 21 Jun 2024 16:28:39 +0200 Subject: [PATCH 5/6] wip --- tests/Mollie/API/Endpoints/BaseEndpointTest.php | 3 ++- tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Mollie/API/Endpoints/BaseEndpointTest.php b/tests/Mollie/API/Endpoints/BaseEndpointTest.php index 37ce668a..cb8a02e4 100644 --- a/tests/Mollie/API/Endpoints/BaseEndpointTest.php +++ b/tests/Mollie/API/Endpoints/BaseEndpointTest.php @@ -6,8 +6,9 @@ use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; use Mollie\Api\MollieApiClient; +use PHPUnit\Framework\TestCase; -abstract class BaseEndpointTest extends \PHPUnit\Framework\TestCase +abstract class BaseEndpointTest extends TestCase { /** * @var Client|\PHPUnit\Framework\MockObject\MockObject diff --git a/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php b/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php index 7a8daa20..db3c11cd 100644 --- a/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php +++ b/tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Tests\Mollie\API\Endpoints; +namespace Tests\Mollie\Api\Endpoints; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; From 430034f0448e7ad12f177ce81bebd9ed6f3f8ce9 Mon Sep 17 00:00:00 2001 From: Sander van Hooft Date: Fri, 21 Jun 2024 16:35:04 +0200 Subject: [PATCH 6/6] wip --- phpstan-baseline.neon | 268 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 267 insertions(+), 1 deletion(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 56cabd08..ed1a64ae 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -2,4 +2,270 @@ parameters: ignoreErrors: - message: "#^Variable \\$mollie might not be defined\\.$#" - path: examples/* + count: 1 + path: examples/captures/create-capture.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/captures/get-capture.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/captures/list-captures.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/client-links/create-client-link.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/customers/create-customer-first-payment.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/customers/create-customer-payment.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/customers/create-customer-recurring-payment.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/customers/create-customer.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/customers/delete-customer.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/customers/list-customer-payments.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/customers/update-customer.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/invoices/list-invoices.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/mandates/create-mandate.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/mandates/list-mandates.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/mandates/revoke-mandate.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 2 + path: examples/orders/cancel-order-lines.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/orders/cancel-order.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/orders/create-order.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/orders/list-methods.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/orders/list-orders.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/orders/refund-order-completely.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/orders/refund-order-partially.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/orders/update-order-line.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/orders/update-order-lines-multiple.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/orders/update-order.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/orders/webhook.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 2 + path: examples/pagination/backwards.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 2 + path: examples/pagination/basic_usage.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/payment-links/create-payment-link.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/payment-links/list-payment-links.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/payments/create-capturable-payment.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 2 + path: examples/payments/create-ideal-payment.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 2 + path: examples/payments/create-payment-oauth.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/payments/create-payment.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/payments/list-methods.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/payments/list-payments.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/payments/refund-payment.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/payments/return.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/payments/update-payment.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/payments/webhook.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/profiles/create-profile.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/profiles/delete-profile.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/profiles/list-profiles.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/profiles/update-profile.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/settlements/list-settlements.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/shipments/create-shipment-all.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/shipments/create-shipment-partial.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/shipments/get-shipment.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/shipments/list-shipments.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/shipments/update-shipment.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/subscriptions/cancel-subscription.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/subscriptions/create-subscription.php + + - + message: "#^Variable \\$mollie might not be defined\\.$#" + count: 1 + path: examples/subscriptions/update-subscription.php + + - + message: "#^Result of method Mollie\\\\Api\\\\Endpoints\\\\PaymentLinkEndpoint\\:\\:delete\\(\\) \\(void\\) is used\\.$#" + count: 1 + path: tests/Mollie/API/Endpoints/PaymentLinkEndpointTest.php \ No newline at end of file