commit 2b9e58beee6de74c842437dda62ab40d45f13b63 Author: Piet Nijbacker Date: Sat Oct 10 21:32:00 2026 +0200 Initial commit diff --git a/assets/markus.jpg b/assets/markus.jpg new file mode 100644 index 0000000..fb65bf6 Binary files /dev/null and b/assets/markus.jpg differ diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..95ac401 --- /dev/null +++ b/composer.json @@ -0,0 +1,5 @@ +{ + "require": { + "mollie/mollie-api-php": "^4.0" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..bb709a0 --- /dev/null +++ b/composer.lock @@ -0,0 +1,669 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "db4660674af2476cfd22073c1b0ee9d5", + "packages": [ + { + "name": "composer/ca-bundle", + "version": "1.5.14", + "source": { + "type": "git", + "url": "https://github.com/composer/ca-bundle.git", + "reference": "0c8abba0634f637bd78c4e451981da368d403463" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/0c8abba0634f637bd78c4e451981da368d403463", + "reference": "0c8abba0634f637bd78c4e451981da368d403463", + "shasum": "" + }, + "require": { + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^8 || ^9", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "symfony/process": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\CaBundle\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", + "keywords": [ + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/ca-bundle/issues", + "source": "https://github.com/composer/ca-bundle/tree/1.5.14" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + } + ], + "time": "2026-08-21T14:57:29+00:00" + }, + { + "name": "mollie/mollie-api-php", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/mollie/mollie-api-php.git", + "reference": "265dfcb58339ec4fec726012ca40c672316bf8de" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mollie/mollie-api-php/zipball/265dfcb58339ec4fec726012ca40c672316bf8de", + "reference": "265dfcb58339ec4fec726012ca40c672316bf8de", + "shasum": "" + }, + "require": { + "composer/ca-bundle": "^1.4", + "ext-curl": "*", + "ext-json": "*", + "ext-openssl": "*", + "nyholm/psr7": "^1.8", + "php": "^8.2", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.1", + "psr/http-message": "^1.1|^2.0", + "symfony/var-dumper": "^5.4|^6.4|^7.2|^8.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.6", + "laravel/pint": "1.30.4", + "pestphp/pest": "^3.0", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^11.5" + }, + "suggest": { + "mollie/oauth2-mollie-php": "Use OAuth to authenticate with the Mollie API. This is needed for some endpoints. Visit https://docs.mollie.com/ for more information." + }, + "type": "library", + "autoload": { + "psr-4": { + "Mollie\\Api\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Mollie B.V.", + "email": "info@mollie.com" + } + ], + "description": "Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.", + "homepage": "https://www.mollie.com/en/developers", + "keywords": [ + "Apple Pay", + "CBC", + "Przelewy24", + "api", + "bancontact", + "banktransfer", + "belfius", + "belfius direct net", + "charges", + "creditcard", + "direct debit", + "fashioncheque", + "gateway", + "gift cards", + "ideal", + "inghomepay", + "intersolve", + "kbc", + "klarna", + "mistercash", + "mollie", + "paylater", + "payment", + "payments", + "paypal", + "paysafecard", + "podiumcadeaukaart", + "recurring", + "refunds", + "sepa", + "service", + "sliceit", + "sofort", + "sofortbanking", + "subscriptions" + ], + "support": { + "issues": "https://github.com/mollie/mollie-api-php/issues", + "source": "https://github.com/mollie/mollie-api-php/tree/v4.0.0" + }, + "time": "2026-09-23T13:16:56+00:00" + }, + { + "name": "nyholm/psr7", + "version": "1.8.2", + "source": { + "type": "git", + "url": "https://github.com/Nyholm/psr7.git", + "reference": "a71f2b11690f4b24d099d6b16690a90ae14fc6f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Nyholm/psr7/zipball/a71f2b11690f4b24d099d6b16690a90ae14fc6f3", + "reference": "a71f2b11690f4b24d099d6b16690a90ae14fc6f3", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0" + }, + "provide": { + "php-http/message-factory-implementation": "1.0", + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "http-interop/http-factory-tests": "^0.9", + "php-http/message-factory": "^1.0", + "php-http/psr7-integration-tests": "^1.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.4", + "symfony/error-handler": "^4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.8-dev" + } + }, + "autoload": { + "psr-4": { + "Nyholm\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com" + }, + { + "name": "Martijn van der Ven", + "email": "martijn@vanderven.se" + } + ], + "description": "A fast PHP7 implementation of PSR-7", + "homepage": "https://tnyholm.se", + "keywords": [ + "psr-17", + "psr-7" + ], + "support": { + "issues": "https://github.com/Nyholm/psr7/issues", + "source": "https://github.com/Nyholm/psr7/tree/1.8.2" + }, + "funding": [ + { + "url": "https://github.com/Zegnat", + "type": "github" + }, + { + "url": "https://github.com/nyholm", + "type": "github" + } + ], + "time": "2024-09-09T07:06:30+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "time": "2024-04-15T12:06:14+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "time": "2023-04-04T09:54:51+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.7.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/f3202fa1b5097b0af062dc978b32ecf63404e31d", + "reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.7-dev" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-06-05T06:23:12+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.43.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "4d5d331bf731e0aedbc6b2f5e61135b7b7996a72" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/4d5d331bf731e0aedbc6b2f5e61135b7b7996a72", + "reference": "4d5d331bf731e0aedbc6b2f5e61135b7b7996a72", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "php": ">=7.2" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.43.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-09-24T15:19:04+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v7.4.18", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "e088da50b813f32473a76871616cbb8fa54653a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/e088da50b813f32473a76871616cbb8fa54653a8", + "reference": "e088da50b813f32473a76871616cbb8fa54653a8", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/uid": "^6.4|^7.0|^8.0", + "twig/twig": "^3.12|^4.0" + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v7.4.18" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-08-30T20:10:52+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": false, + "prefer-lowest": false, + "platform": {}, + "platform-dev": {}, + "plugin-api-version": "2.9.0" +} diff --git a/config.php b/config.php new file mode 100644 index 0000000..1229990 --- /dev/null +++ b/config.php @@ -0,0 +1,34 @@ + 10000) $errors[] = 'Aantal moet tussen 1 en 10000 liggen.'; + + if (empty($errors)) { + $totaal = round($aantal * PRIJS_PER_STUK, 2); + + $_SESSION['order'] = [ + 'groep' => $groep, + 'naam_verkoper' => $naam_verkoper, + 'naam_ouder' => $naam_ouder, + 'aantal' => $aantal, + 'totaal' => $totaal, + 'datum' => date('Y-m-d H:i:s'), + ]; + + try { + $mollie = new \Mollie\Api\MollieApiClient(); + $mollie->setApiKey(MOLLIE_API_KEY); + + $payment = $mollie->payments->create([ + 'amount' => [ + 'currency' => 'EUR', + 'value' => number_format($totaal, 2, '.', ''), + ], + 'description' => ACTIE_NAAM . ' — ' . $aantal . 'x ' . PRODUCT_NAAM . ' (' . $naam_verkoper . ')', + 'redirectUrl' => RETURN_URL, + // 'webhookUrl' => WEBHOOK_URL, + 'metadata' => [ + 'groep' => $groep, + 'naam_verkoper' => $naam_verkoper, + 'naam_ouder' => $naam_ouder, + 'aantal' => $aantal, + 'datum' => $_SESSION['order']['datum'], + ], + ]); + + $_SESSION['order']['payment_id'] = $payment->id; + + header('Location: ' . $payment->getCheckoutUrl()); + exit; + + } catch (\Mollie\Api\Exceptions\ApiException $e) { + $errors[] = 'Betaling kon niet worden aangemaakt: ' . htmlspecialchars($e->getMessage()); + } + } +} +?> + + + + + + Bestelling — <?= htmlspecialchars(ACTIE_NAAM) ?> + + + + +
+
+
+
+
+
+ + +
+ <?= htmlspecialchars(ACTIE_NAAM) ?> +
+ + +
+
+
+ +
+ ← Terug +

Bestelling plaatsen

+

+ · + € per stuk +

+
+ + + +
+
⏰
+

De besteltermijn is verlopen

+

+ Bestellingen konden worden geplaatst tot
+ . +

+

+ Heb je vragen? Neem contact op met de leiding. +

+ ← Terug naar de actiepagina +
+ + + + + +
+
    + +
  • + +
+
+ + + +
+ ⏳ Bestel vóór +
+ +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+
+ +
+
+
+
+
+
+ + + + + + + diff --git a/index.php b/index.php new file mode 100644 index 0000000..1675a64 --- /dev/null +++ b/index.php @@ -0,0 +1,108 @@ + + + + + + + <?= htmlspecialchars(ACTIE_NAAM) ?> + + + + +
+ +
+ +
+
+  ·  + € per stuk +
+ Bestelling plaatsen → +
+ + + + + diff --git a/return.php b/return.php new file mode 100644 index 0000000..f8efc22 --- /dev/null +++ b/return.php @@ -0,0 +1,103 @@ +setApiKey(MOLLIE_API_KEY); + $payment = $mollie->payments->get($paymentId); + $status = $payment->status->value; + } catch (\Exception $e) { + $status = 'fout'; + } +} +?> + + + + + + Betaling — <?= htmlspecialchars(ACTIE_NAAM) ?> + + + +
+ +
✅
+

Betaling geslaagd!

+

Bedankt voor je bestelling. De registratie is verwerkt.

+ +

+ Betaald: €amount->value) ?>
+ Referentie: id) ?> +

+ + Nieuwe bestelling + Home + + +
❌
+

Betaling mislukt

+

De betaling is geannuleerd of mislukt. Je kunt het opnieuw proberen.

+ Opnieuw proberen + + +
⏳
+

Betaling in behandeling

+

Je betaling wordt nog verwerkt. Dit kan enkele minuten duren.

+ Terug naar home + + +
❓
+

Status onbekend

+

We konden de betaalstatus niet ophalen. Neem contact op als je vragen hebt.

+ Terug naar home + +
+ + diff --git a/vendor/autoload.php b/vendor/autoload.php new file mode 100644 index 0000000..5281d32 --- /dev/null +++ b/vendor/autoload.php @@ -0,0 +1,22 @@ +realpath = realpath($opened_path) ?: $opened_path; + $opened_path = $this->realpath; + $this->handle = fopen($this->realpath, $mode); + $this->position = 0; + + return (bool) $this->handle; + } + + public function stream_read($count) + { + $data = fread($this->handle, $count); + + if ($this->position === 0) { + $data = preg_replace('{^#!.*\r?\n}', '', $data); + } + + $this->position += strlen($data); + + return $data; + } + + public function stream_cast($castAs) + { + return $this->handle; + } + + public function stream_close() + { + fclose($this->handle); + } + + public function stream_lock($operation) + { + return $operation ? flock($this->handle, $operation) : true; + } + + public function stream_seek($offset, $whence) + { + if (0 === fseek($this->handle, $offset, $whence)) { + $this->position = ftell($this->handle); + return true; + } + + return false; + } + + public function stream_tell() + { + return $this->position; + } + + public function stream_eof() + { + return feof($this->handle); + } + + public function stream_stat() + { + return array(); + } + + public function stream_set_option($option, $arg1, $arg2) + { + return true; + } + + public function url_stat($path, $flags) + { + $path = substr($path, 17); + if (file_exists($path)) { + return stat($path); + } + + return false; + } + } + } + + if ( + (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true)) + || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) + ) { + return include("phpvfscomposer://" . __DIR__ . '/..'.'/symfony/var-dumper/Resources/bin/var-dump-server'); + } +} + +return include __DIR__ . '/..'.'/symfony/var-dumper/Resources/bin/var-dump-server'; diff --git a/vendor/bin/var-dump-server.bat b/vendor/bin/var-dump-server.bat new file mode 100644 index 0000000..94333da --- /dev/null +++ b/vendor/bin/var-dump-server.bat @@ -0,0 +1,5 @@ +@ECHO OFF +setlocal DISABLEDELAYEDEXPANSION +SET BIN_TARGET=%~dp0/var-dump-server +SET COMPOSER_RUNTIME_BIN_DIR=%~dp0 +php "%BIN_TARGET%" %* diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php new file mode 100644 index 0000000..7824d8f --- /dev/null +++ b/vendor/composer/ClassLoader.php @@ -0,0 +1,579 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer\Autoload; + +/** + * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. + * + * $loader = new \Composer\Autoload\ClassLoader(); + * + * // register classes with namespaces + * $loader->add('Symfony\Component', __DIR__.'/component'); + * $loader->add('Symfony', __DIR__.'/framework'); + * + * // activate the autoloader + * $loader->register(); + * + * // to enable searching the include path (eg. for PEAR packages) + * $loader->setUseIncludePath(true); + * + * In this example, if you try to use a class in the Symfony\Component + * namespace or one of its children (Symfony\Component\Console for instance), + * the autoloader will first look for the class under the component/ + * directory, and it will then fallback to the framework/ directory if not + * found before giving up. + * + * This class is loosely based on the Symfony UniversalClassLoader. + * + * @author Fabien Potencier + * @author Jordi Boggiano + * @see https://www.php-fig.org/psr/psr-0/ + * @see https://www.php-fig.org/psr/psr-4/ + */ +class ClassLoader +{ + /** @var \Closure(string):void */ + private static $includeFile; + + /** @var string|null */ + private $vendorDir; + + // PSR-4 + /** + * @var array> + */ + private $prefixLengthsPsr4 = array(); + /** + * @var array> + */ + private $prefixDirsPsr4 = array(); + /** + * @var list + */ + private $fallbackDirsPsr4 = array(); + + // PSR-0 + /** + * List of PSR-0 prefixes + * + * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) + * + * @var array>> + */ + private $prefixesPsr0 = array(); + /** + * @var list + */ + private $fallbackDirsPsr0 = array(); + + /** @var bool */ + private $useIncludePath = false; + + /** + * @var array + */ + private $classMap = array(); + + /** @var bool */ + private $classMapAuthoritative = false; + + /** + * @var array + */ + private $missingClasses = array(); + + /** @var string|null */ + private $apcuPrefix; + + /** + * @var array + */ + private static $registeredLoaders = array(); + + /** + * @param string|null $vendorDir + */ + public function __construct($vendorDir = null) + { + $this->vendorDir = $vendorDir; + self::initializeIncludeClosure(); + } + + /** + * @return array> + */ + public function getPrefixes() + { + if (!empty($this->prefixesPsr0)) { + return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); + } + + return array(); + } + + /** + * @return array> + */ + public function getPrefixesPsr4() + { + return $this->prefixDirsPsr4; + } + + /** + * @return list + */ + public function getFallbackDirs() + { + return $this->fallbackDirsPsr0; + } + + /** + * @return list + */ + public function getFallbackDirsPsr4() + { + return $this->fallbackDirsPsr4; + } + + /** + * @return array Array of classname => path + */ + public function getClassMap() + { + return $this->classMap; + } + + /** + * @param array $classMap Class to filename map + * + * @return void + */ + public function addClassMap(array $classMap) + { + if ($this->classMap) { + $this->classMap = array_merge($this->classMap, $classMap); + } else { + $this->classMap = $classMap; + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, either + * appending or prepending to the ones previously set for this prefix. + * + * @param string $prefix The prefix + * @param list|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories + * + * @return void + */ + public function add($prefix, $paths, $prepend = false) + { + $paths = (array) $paths; + if (!$prefix) { + if ($prepend) { + $this->fallbackDirsPsr0 = array_merge( + $paths, + $this->fallbackDirsPsr0 + ); + } else { + $this->fallbackDirsPsr0 = array_merge( + $this->fallbackDirsPsr0, + $paths + ); + } + + return; + } + + $first = $prefix[0]; + if (!isset($this->prefixesPsr0[$first][$prefix])) { + $this->prefixesPsr0[$first][$prefix] = $paths; + + return; + } + if ($prepend) { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $paths, + $this->prefixesPsr0[$first][$prefix] + ); + } else { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $this->prefixesPsr0[$first][$prefix], + $paths + ); + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, either + * appending or prepending to the ones previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param list|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function addPsr4($prefix, $paths, $prepend = false) + { + $paths = (array) $paths; + if (!$prefix) { + // Register directories for the root namespace. + if ($prepend) { + $this->fallbackDirsPsr4 = array_merge( + $paths, + $this->fallbackDirsPsr4 + ); + } else { + $this->fallbackDirsPsr4 = array_merge( + $this->fallbackDirsPsr4, + $paths + ); + } + } elseif (!isset($this->prefixDirsPsr4[$prefix])) { + // Register directories for a new namespace. + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = $paths; + } elseif ($prepend) { + // Prepend directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $paths, + $this->prefixDirsPsr4[$prefix] + ); + } else { + // Append directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $this->prefixDirsPsr4[$prefix], + $paths + ); + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, + * replacing any others previously set for this prefix. + * + * @param string $prefix The prefix + * @param list|string $paths The PSR-0 base directories + * + * @return void + */ + public function set($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr0 = (array) $paths; + } else { + $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, + * replacing any others previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param list|string $paths The PSR-4 base directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function setPsr4($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr4 = (array) $paths; + } else { + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } + } + + /** + * Turns on searching the include path for class files. + * + * @param bool $useIncludePath + * + * @return void + */ + public function setUseIncludePath($useIncludePath) + { + $this->useIncludePath = $useIncludePath; + } + + /** + * Can be used to check if the autoloader uses the include path to check + * for classes. + * + * @return bool + */ + public function getUseIncludePath() + { + return $this->useIncludePath; + } + + /** + * Turns off searching the prefix and fallback directories for classes + * that have not been registered with the class map. + * + * @param bool $classMapAuthoritative + * + * @return void + */ + public function setClassMapAuthoritative($classMapAuthoritative) + { + $this->classMapAuthoritative = $classMapAuthoritative; + } + + /** + * Should class lookup fail if not found in the current class map? + * + * @return bool + */ + public function isClassMapAuthoritative() + { + return $this->classMapAuthoritative; + } + + /** + * APCu prefix to use to cache found/not-found classes, if the extension is enabled. + * + * @param string|null $apcuPrefix + * + * @return void + */ + public function setApcuPrefix($apcuPrefix) + { + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; + } + + /** + * The APCu prefix in use, or null if APCu caching is not enabled. + * + * @return string|null + */ + public function getApcuPrefix() + { + return $this->apcuPrefix; + } + + /** + * Registers this instance as an autoloader. + * + * @param bool $prepend Whether to prepend the autoloader or not + * + * @return void + */ + public function register($prepend = false) + { + spl_autoload_register(array($this, 'loadClass'), true, $prepend); + + if (null === $this->vendorDir) { + return; + } + + if ($prepend) { + self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; + } else { + unset(self::$registeredLoaders[$this->vendorDir]); + self::$registeredLoaders[$this->vendorDir] = $this; + } + } + + /** + * Unregisters this instance as an autoloader. + * + * @return void + */ + public function unregister() + { + spl_autoload_unregister(array($this, 'loadClass')); + + if (null !== $this->vendorDir) { + unset(self::$registeredLoaders[$this->vendorDir]); + } + } + + /** + * Loads the given class or interface. + * + * @param string $class The name of the class + * @return true|null True if loaded, null otherwise + */ + public function loadClass($class) + { + if ($file = $this->findFile($class)) { + $includeFile = self::$includeFile; + $includeFile($file); + + return true; + } + + return null; + } + + /** + * Finds the path to the file where the class is defined. + * + * @param string $class The name of the class + * + * @return string|false The path if found, false otherwise + */ + public function findFile($class) + { + // class map lookup + if (isset($this->classMap[$class])) { + return $this->classMap[$class]; + } + if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { + return false; + } + if (null !== $this->apcuPrefix) { + $file = apcu_fetch($this->apcuPrefix.$class, $hit); + if ($hit) { + return $file; + } + } + + $file = $this->findFileWithExtension($class, '.php'); + + // Search for Hack files if we are running on HHVM + if (false === $file && defined('HHVM_VERSION')) { + $file = $this->findFileWithExtension($class, '.hh'); + } + + if (null !== $this->apcuPrefix) { + apcu_add($this->apcuPrefix.$class, $file); + } + + if (false === $file) { + // Remember that this class does not exist. + $this->missingClasses[$class] = true; + } + + return $file; + } + + /** + * Returns the currently registered loaders keyed by their corresponding vendor directories. + * + * @return array + */ + public static function getRegisteredLoaders() + { + return self::$registeredLoaders; + } + + /** + * @param string $class + * @param string $ext + * @return string|false + */ + private function findFileWithExtension($class, $ext) + { + // PSR-4 lookup + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; + + $first = $class[0]; + if (isset($this->prefixLengthsPsr4[$first])) { + $subPath = $class; + while (false !== $lastPos = strrpos($subPath, '\\')) { + $subPath = substr($subPath, 0, $lastPos); + $search = $subPath . '\\'; + if (isset($this->prefixDirsPsr4[$search])) { + $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); + foreach ($this->prefixDirsPsr4[$search] as $dir) { + if (file_exists($file = $dir . $pathEnd)) { + return $file; + } + } + } + } + } + + // PSR-4 fallback dirs + foreach ($this->fallbackDirsPsr4 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { + return $file; + } + } + + // PSR-0 lookup + if (false !== $pos = strrpos($class, '\\')) { + // namespaced class name + $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) + . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); + } else { + // PEAR-like class name + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; + } + + if (isset($this->prefixesPsr0[$first])) { + foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { + if (0 === strpos($class, $prefix)) { + foreach ($dirs as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + } + } + } + + // PSR-0 fallback dirs + foreach ($this->fallbackDirsPsr0 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + + // PSR-0 include paths. + if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { + return $file; + } + + return false; + } + + /** + * @return void + */ + private static function initializeIncludeClosure() + { + if (self::$includeFile !== null) { + return; + } + + /** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + * + * @param string $file + * @return void + */ + self::$includeFile = \Closure::bind(static function($file) { + include $file; + }, null, null); + } +} diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php new file mode 100644 index 0000000..2052022 --- /dev/null +++ b/vendor/composer/InstalledVersions.php @@ -0,0 +1,396 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer; + +use Composer\Autoload\ClassLoader; +use Composer\Semver\VersionParser; + +/** + * This class is copied in every Composer installed project and available to all + * + * See also https://getcomposer.org/doc/07-runtime.md#installed-versions + * + * To require its presence, you can require `composer-runtime-api ^2.0` + * + * @final + */ +class InstalledVersions +{ + /** + * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to + * @internal + */ + private static $selfDir = null; + + /** + * @var mixed[]|null + * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}|array{}|null + */ + private static $installed; + + /** + * @var bool + */ + private static $installedIsLocalDir; + + /** + * @var bool|null + */ + private static $canGetVendors; + + /** + * @var array[] + * @psalm-var array}> + */ + private static $installedByVendor = array(); + + /** + * Returns a list of all package names which are present, either by being installed, replaced or provided + * + * @return string[] + * @psalm-return list + */ + public static function getInstalledPackages() + { + $packages = array(); + foreach (self::getInstalled() as $installed) { + $packages[] = array_keys($installed['versions']); + } + + if (1 === \count($packages)) { + return $packages[0]; + } + + return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); + } + + /** + * Returns a list of all package names with a specific type e.g. 'library' + * + * @param string $type + * @return string[] + * @psalm-return list + */ + public static function getInstalledPackagesByType($type) + { + $packagesByType = array(); + + foreach (self::getInstalled() as $installed) { + foreach ($installed['versions'] as $name => $package) { + if (isset($package['type']) && $package['type'] === $type) { + $packagesByType[] = $name; + } + } + } + + return $packagesByType; + } + + /** + * Checks whether the given package is installed + * + * This also returns true if the package name is provided or replaced by another package + * + * @param string $packageName + * @param bool $includeDevRequirements + * @return bool + */ + public static function isInstalled($packageName, $includeDevRequirements = true) + { + foreach (self::getInstalled() as $installed) { + if (isset($installed['versions'][$packageName])) { + return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; + } + } + + return false; + } + + /** + * Checks whether the given package satisfies a version constraint + * + * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call: + * + * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3') + * + * @param VersionParser $parser Install composer/semver to have access to this class and functionality + * @param string $packageName + * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package + * @return bool + */ + public static function satisfies(VersionParser $parser, $packageName, $constraint) + { + $constraint = $parser->parseConstraints((string) $constraint); + $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); + + return $provided->matches($constraint); + } + + /** + * Returns a version constraint representing all the range(s) which are installed for a given package + * + * It is easier to use this via isInstalled() with the $constraint argument if you need to check + * whether a given version of a package is installed, and not just whether it exists + * + * @param string $packageName + * @return string Version constraint usable with composer/semver + */ + public static function getVersionRanges($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + $ranges = array(); + if (isset($installed['versions'][$packageName]['pretty_version'])) { + $ranges[] = $installed['versions'][$packageName]['pretty_version']; + } + if (array_key_exists('aliases', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); + } + if (array_key_exists('replaced', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); + } + if (array_key_exists('provided', $installed['versions'][$packageName])) { + $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); + } + + return implode(' || ', $ranges); + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present + */ + public static function getVersion($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['version'])) { + return null; + } + + return $installed['versions'][$packageName]['version']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present + */ + public static function getPrettyVersion($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['pretty_version'])) { + return null; + } + + return $installed['versions'][$packageName]['pretty_version']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference + */ + public static function getReference($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + if (!isset($installed['versions'][$packageName]['reference'])) { + return null; + } + + return $installed['versions'][$packageName]['reference']; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @param string $packageName + * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path. + */ + public static function getInstallPath($packageName) + { + foreach (self::getInstalled() as $installed) { + if (!isset($installed['versions'][$packageName])) { + continue; + } + + return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; + } + + throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); + } + + /** + * @return array + * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} + */ + public static function getRootPackage() + { + $installed = self::getInstalled(); + + return $installed[0]['root']; + } + + /** + * Returns the raw installed.php data for custom implementations + * + * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. + * @return array[] + * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} + */ + public static function getRawData() + { + @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED); + + if (null === self::$installed) { + // only require the installed.php file if this file is loaded from its dumped location, + // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 + if (substr(__DIR__, -8, 1) !== 'C') { + self::$installed = include __DIR__ . '/installed.php'; + } else { + self::$installed = array(); + } + } + + return self::$installed; + } + + /** + * Returns the raw data of all installed.php which are currently loaded for custom implementations + * + * @return array[] + * @psalm-return list}> + */ + public static function getAllRawData() + { + return self::getInstalled(); + } + + /** + * Lets you reload the static array from another file + * + * This is only useful for complex integrations in which a project needs to use + * this class but then also needs to execute another project's autoloader in process, + * and wants to ensure both projects have access to their version of installed.php. + * + * A typical case would be PHPUnit, where it would need to make sure it reads all + * the data it needs from this class, then call reload() with + * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure + * the project in which it runs can then also use this class safely, without + * interference between PHPUnit's dependencies and the project's dependencies. + * + * @param array[] $data A vendor/composer/installed.php data set + * @return void + * + * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $data + */ + public static function reload($data) + { + self::$installed = $data; + self::$installedByVendor = array(); + + // when using reload, we disable the duplicate protection to ensure that self::$installed data is + // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, + // so we have to assume it does not, and that may result in duplicate data being returned when listing + // all installed packages for example + self::$installedIsLocalDir = false; + } + + /** + * @return string + */ + private static function getSelfDir() + { + if (self::$selfDir === null) { + self::$selfDir = strtr(__DIR__, '\\', '/'); + } + + return self::$selfDir; + } + + /** + * @return array[] + * @psalm-return list}> + */ + private static function getInstalled() + { + if (null === self::$canGetVendors) { + self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); + } + + $installed = array(); + $copiedLocalDir = false; + + if (self::$canGetVendors) { + $selfDir = self::getSelfDir(); + foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { + $vendorDir = strtr($vendorDir, '\\', '/'); + if (isset(self::$installedByVendor[$vendorDir])) { + $installed[] = self::$installedByVendor[$vendorDir]; + } elseif (is_file($vendorDir.'/composer/installed.php')) { + /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ + $required = require $vendorDir.'/composer/installed.php'; + self::$installedByVendor[$vendorDir] = $required; + $installed[] = $required; + if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { + self::$installed = $required; + self::$installedIsLocalDir = true; + } + } + if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { + $copiedLocalDir = true; + } + } + } + + if (null === self::$installed) { + // only require the installed.php file if this file is loaded from its dumped location, + // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 + if (substr(__DIR__, -8, 1) !== 'C') { + /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ + $required = require __DIR__ . '/installed.php'; + self::$installed = $required; + } else { + self::$installed = array(); + } + } + + if (self::$installed !== array() && !$copiedLocalDir) { + $installed[] = self::$installed; + } + + return $installed; + } +} diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE new file mode 100644 index 0000000..f27399a --- /dev/null +++ b/vendor/composer/LICENSE @@ -0,0 +1,21 @@ + +Copyright (c) Nils Adermann, Jordi Boggiano + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php new file mode 100644 index 0000000..0fb0a2c --- /dev/null +++ b/vendor/composer/autoload_classmap.php @@ -0,0 +1,10 @@ + $vendorDir . '/composer/InstalledVersions.php', +); diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php new file mode 100644 index 0000000..7401525 --- /dev/null +++ b/vendor/composer/autoload_files.php @@ -0,0 +1,12 @@ + $vendorDir . '/symfony/deprecation-contracts/function.php', + '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php', + '667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Resources/functions/dump.php', +); diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php new file mode 100644 index 0000000..15a2ff3 --- /dev/null +++ b/vendor/composer/autoload_namespaces.php @@ -0,0 +1,9 @@ + array($vendorDir . '/symfony/polyfill-mbstring'), + 'Symfony\\Component\\VarDumper\\' => array($vendorDir . '/symfony/var-dumper'), + 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'), + 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), + 'Nyholm\\Psr7\\' => array($vendorDir . '/nyholm/psr7/src'), + 'Mollie\\Api\\' => array($vendorDir . '/mollie/mollie-api-php/src'), + 'Composer\\CaBundle\\' => array($vendorDir . '/composer/ca-bundle/src'), +); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php new file mode 100644 index 0000000..8d8a9c0 --- /dev/null +++ b/vendor/composer/autoload_real.php @@ -0,0 +1,50 @@ +register(true); + + $filesToLoad = \Composer\Autoload\ComposerStaticInitb2e8b17b7bf14503f0c9e0dffbd1b062::$files; + $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { + if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { + $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; + + require $file; + } + }, null, null); + foreach ($filesToLoad as $fileIdentifier => $file) { + $requireFile($fileIdentifier, $file); + } + + return $loader; + } +} diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php new file mode 100644 index 0000000..c3b7998 --- /dev/null +++ b/vendor/composer/autoload_static.php @@ -0,0 +1,85 @@ + __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', + '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', + '667aeda72477189d0494fecd327c3641' => __DIR__ . '/..' . '/symfony/var-dumper/Resources/functions/dump.php', + ); + + public static $prefixLengthsPsr4 = array ( + 'S' => + array ( + 'Symfony\\Polyfill\\Mbstring\\' => 26, + 'Symfony\\Component\\VarDumper\\' => 28, + ), + 'P' => + array ( + 'Psr\\Http\\Message\\' => 17, + 'Psr\\Http\\Client\\' => 16, + ), + 'N' => + array ( + 'Nyholm\\Psr7\\' => 12, + ), + 'M' => + array ( + 'Mollie\\Api\\' => 11, + ), + 'C' => + array ( + 'Composer\\CaBundle\\' => 18, + ), + ); + + public static $prefixDirsPsr4 = array ( + 'Symfony\\Polyfill\\Mbstring\\' => + array ( + 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring', + ), + 'Symfony\\Component\\VarDumper\\' => + array ( + 0 => __DIR__ . '/..' . '/symfony/var-dumper', + ), + 'Psr\\Http\\Message\\' => + array ( + 0 => __DIR__ . '/..' . '/psr/http-factory/src', + 1 => __DIR__ . '/..' . '/psr/http-message/src', + ), + 'Psr\\Http\\Client\\' => + array ( + 0 => __DIR__ . '/..' . '/psr/http-client/src', + ), + 'Nyholm\\Psr7\\' => + array ( + 0 => __DIR__ . '/..' . '/nyholm/psr7/src', + ), + 'Mollie\\Api\\' => + array ( + 0 => __DIR__ . '/..' . '/mollie/mollie-api-php/src', + ), + 'Composer\\CaBundle\\' => + array ( + 0 => __DIR__ . '/..' . '/composer/ca-bundle/src', + ), + ); + + public static $classMap = array ( + 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', + ); + + public static function getInitializer(ClassLoader $loader) + { + return \Closure::bind(function () use ($loader) { + $loader->prefixLengthsPsr4 = ComposerStaticInitb2e8b17b7bf14503f0c9e0dffbd1b062::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitb2e8b17b7bf14503f0c9e0dffbd1b062::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitb2e8b17b7bf14503f0c9e0dffbd1b062::$classMap; + + }, null, ClassLoader::class); + } +} diff --git a/vendor/composer/ca-bundle/LICENSE b/vendor/composer/ca-bundle/LICENSE new file mode 100644 index 0000000..c5b5220 --- /dev/null +++ b/vendor/composer/ca-bundle/LICENSE @@ -0,0 +1,19 @@ +Copyright (C) 2016 Composer + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/composer/ca-bundle/README.md b/vendor/composer/ca-bundle/README.md new file mode 100644 index 0000000..d8205ec --- /dev/null +++ b/vendor/composer/ca-bundle/README.md @@ -0,0 +1,85 @@ +composer/ca-bundle +================== + +Small utility library that lets you find a path to the system CA bundle, +and includes a fallback to the Mozilla CA bundle. + +Originally written as part of [composer/composer](https://github.com/composer/composer), +now extracted and made available as a stand-alone library. + + +Installation +------------ + +Install the latest version with: + +```bash +$ composer require composer/ca-bundle +``` + + +Requirements +------------ + +* PHP 5.3.2 is required but using the latest version of PHP is highly recommended. + + +Basic usage +----------- + +### `Composer\CaBundle\CaBundle` + +- `CaBundle::getSystemCaRootBundlePath()`: Returns the system CA bundle path, or a path to the bundled one as fallback +- `CaBundle::getBundledCaBundlePath()`: Returns the path to the bundled CA file +- `CaBundle::validateCaFile($filename)`: Validates a CA file using openssl_x509_parse only if it is safe to use +- `CaBundle::isOpensslParseSafe()`: Test if it is safe to use the PHP function openssl_x509_parse() +- `CaBundle::reset()`: Resets the static caches + + +#### To use with curl + +```php +$curl = curl_init("https://example.org/"); + +$caPathOrFile = \Composer\CaBundle\CaBundle::getSystemCaRootBundlePath(); +if (is_dir($caPathOrFile)) { + curl_setopt($curl, CURLOPT_CAPATH, $caPathOrFile); +} else { + curl_setopt($curl, CURLOPT_CAINFO, $caPathOrFile); +} + +$result = curl_exec($curl); +``` + +#### To use with php streams + +```php +$opts = array( + 'http' => array( + 'method' => "GET" + ) +); + +$caPathOrFile = \Composer\CaBundle\CaBundle::getSystemCaRootBundlePath(); +if (is_dir($caPathOrFile)) { + $opts['ssl']['capath'] = $caPathOrFile; +} else { + $opts['ssl']['cafile'] = $caPathOrFile; +} + +$context = stream_context_create($opts); +$result = file_get_contents('https://example.com', false, $context); +``` + +#### To use with Guzzle + +```php +$client = new \GuzzleHttp\Client([ + \GuzzleHttp\RequestOptions::VERIFY => \Composer\CaBundle\CaBundle::getSystemCaRootBundlePath() +]); +``` + +License +------- + +composer/ca-bundle is licensed under the MIT License, see the LICENSE file for details. diff --git a/vendor/composer/ca-bundle/composer.json b/vendor/composer/ca-bundle/composer.json new file mode 100644 index 0000000..c2ce2bb --- /dev/null +++ b/vendor/composer/ca-bundle/composer.json @@ -0,0 +1,54 @@ +{ + "name": "composer/ca-bundle", + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", + "type": "library", + "license": "MIT", + "keywords": [ + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/ca-bundle/issues" + }, + "require": { + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8 || ^9", + "phpstan/phpstan": "^1.10", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "symfony/process": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "autoload": { + "psr-4": { + "Composer\\CaBundle\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "Composer\\CaBundle\\": "tests" + } + }, + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "scripts": { + "test": "@php phpunit", + "phpstan": "@php phpstan analyse" + } +} diff --git a/vendor/composer/ca-bundle/res/cacert.pem b/vendor/composer/ca-bundle/res/cacert.pem new file mode 100644 index 0000000..d228dae --- /dev/null +++ b/vendor/composer/ca-bundle/res/cacert.pem @@ -0,0 +1,2950 @@ +## +## Bundle of CA Root Certificates +## +## Certificate data from Mozilla as of: Thu Aug 13 03:12:01 2026 GMT +## +## Find updated versions here: https://curl.se/docs/caextract.html +## +## This is a bundle of X.509 certificates of public Certificate Authorities +## (CA). These were automatically extracted from Mozilla's root certificates +## file (certdata.txt). This file can be found in the mozilla source tree: +## https://raw.githubusercontent.com/mozilla-firefox/firefox/refs/heads/release/security/nss/lib/ckfw/builtins/certdata.txt +## +## It contains the certificates in PEM format and therefore +## can be directly used with curl / libcurl / php_curl, or with +## an Apache+mod_ssl webserver for SSL client authentication. +## Configure this file as the SSLCACertificateFile. +## +## Conversion done with mk-ca-bundle.pl version 1.33. +## SHA256: 81b7f2576333a2e360e673f912d7b0b7a765d836c731003e348a46cac5d37198 +## + + +COMODO ECC Certification Authority +================================== +-----BEGIN CERTIFICATE----- +MIICiTCCAg+gAwIBAgIQH0evqmIAcFBUTAGem2OZKjAKBggqhkjOPQQDAzCBhTELMAkGA1UEBhMC +R0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UE +ChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBB +dXRob3JpdHkwHhcNMDgwMzA2MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMCR0Ix +GzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR +Q09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBBdXRo +b3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQDR3svdcmCFYX7deSRFtSrYpn1PlILBs5BAH+X +4QokPB0BBO490o0JlwzgdeT6+3eKKvUDYEs2ixYjFq0JcfRK9ChQtP6IHG4/bC8vCVlbpVsLM5ni +wz2J+Wos77LTBumjQjBAMB0GA1UdDgQWBBR1cacZSBm8nZ3qQUfflMRId5nTeTAOBgNVHQ8BAf8E +BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjEA7wNbeqy3eApyt4jf/7VG +FAkK+qDmfQjGGoe9GKhzvSbKYAydzpmfz1wPMOG+FDHqAjAU9JM8SaczepBGR7NjfRObTrdvGDeA +U/7dIOA1mjbRxwG55tzd8/8dLDoWV9mSOdY= +-----END CERTIFICATE----- + +NetLock Arany (Class Gold) Főtanúsítvány +======================================== +-----BEGIN CERTIFICATE----- +MIIEFTCCAv2gAwIBAgIGSUEs5AAQMA0GCSqGSIb3DQEBCwUAMIGnMQswCQYDVQQGEwJIVTERMA8G +A1UEBwwIQnVkYXBlc3QxFTATBgNVBAoMDE5ldExvY2sgS2Z0LjE3MDUGA1UECwwuVGFuw7pzw610 +dsOhbnlraWFkw7NrIChDZXJ0aWZpY2F0aW9uIFNlcnZpY2VzKTE1MDMGA1UEAwwsTmV0TG9jayBB +cmFueSAoQ2xhc3MgR29sZCkgRsWRdGFuw7pzw610dsOhbnkwHhcNMDgxMjExMTUwODIxWhcNMjgx +MjA2MTUwODIxWjCBpzELM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BgNVHSMEGDAWgBTLD8bfQkPMPcu1SCOhGnqmKrs0aDAbBgNVHREE +FDASgRBpbmZvQGUtc3ppZ25vLmh1MA0GCSqGSIb3DQEBCwUAA4IBAQDJ0Q5eLtXMs3w+y/w9/w0o +lZMEyL/azXm4Q5DwpL7v8u8hmLzU1F0G9u5C7DBsoKqpyvGvivo/C3NqPuouQH4frlRheesuCDfX +I/OMn74dseGkddug4lQUsbocKaQY9hK6ohQU4zE1yED/t+AFdlfBHFny+L/k7SViXITwfn4fs775 +tyERzAMBVnCnEJIeGzSBHq2cGsMEPO0CYdYeBvNfOofyK/FFh+U9rNHHV4S9a67c2Pm2G2JwCz02 +yULyMtd6YebS2z3PyKnJm9zbWETXbzivf3jTo60adbocwTZ8jx5tHMN1Rq41Bab2XD0h7lbwyYIi +LXpUq3DDfSJlgnCW +-----END CERTIFICATE----- + +GlobalSign Root CA - R3 +======================= +-----BEGIN CERTIFICATE----- +MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UECxMXR2xv +YmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2Jh +bFNpZ24wHhcNMDkwMzE4MTAwMDAwWhcNMjkwMzE4MTAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxT +aWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2ln +bjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMwldpB5BngiFvXAg7aEyiie/QV2EcWt +iHL8RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUhhB5uzsTgHeMCOFJ +0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71uL0gRgykmmKPZpO/bLyCiR5Z2KYVc3 +rHQU3HTgOu5yLy6c+9C7v/U9AOEGM+iCK65TpjoWc4zdQQ4gOsC0p6Hpsk+QLjJg6VfLuQSSaGjl +OCZgdbKfd/+RFO+uIEn8rUAVSNECMWEZXriX7613t2Saer9fwRPvm2L7DWzgVGkWqQPabumDk3F2 +xmmFghcCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE +FI/wS3+oLkUkrk1Q+mOai97i3Ru8MA0GCSqGSIb3DQEBCwUAA4IBAQBLQNvAUKr+yAzv95ZURUm7 +lgAJQayzE4aGKAczymvmdLm6AC2upArT9fHxD4q/c2dKg8dEe3jgr25sbwMpjjM5RcOO5LlXbKr8 +EpbsU8Yt5CRsuZRj+9xTaGdWPoO4zzUhw8lo/s7awlOqzJCK6fBdRoyV3XpYKBovHd7NADdBj+1E +bddTKJd+82cEHhXXipa0095MJ6RMG3NzdvQXmcIfeg7jLQitChws/zyrVQ4PkX4268NXSb7hLi18 +YIvDQVETI53O9zJrlAGomecsMx86OyXShkDOOyyGeMlhLxS67ttVb9+E7gUJTb0o2HLO02JQZR7r +kpeDMdmztcpHWD9f +-----END CERTIFICATE----- + +Izenpe.com +========== +-----BEGIN CERTIFICATE----- +MIIF8TCCA9mgAwIBAgIQALC3WhZIX7/hy/WL1xnmfTANBgkqhkiG9w0BAQsFADA4MQswCQYDVQQG +EwJFUzEUMBIGA1UECgwLSVpFTlBFIFMuQS4xEzARBgNVBAMMCkl6ZW5wZS5jb20wHhcNMDcxMjEz +MTMwODI4WhcNMzcxMjEzMDgyNzI1WjA4MQswCQYDVQQGEwJFUzEUMBIGA1UECgwLSVpFTlBFIFMu +QS4xEzARBgNVBAMMCkl6ZW5wZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDJ +03rKDx6sp4boFmVqscIbRTJxldn+EFvMr+eleQGPicPK8lVx93e+d5TzcqQsRNiekpsUOqHnJJAK +ClaOxdgmlOHZSOEtPtoKct2jmRXagaKH9HtuJneJW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Fgba56awmqxinuaElnMIAkejEWOVt+8Rwu3WwJrfIxwYJOubv5vr8q +hT/AQKM6WfxZSzwoJNu0FXWuDYi6LnPAvViH5ULy617uHjAimcs30cQhbIHsvm0m5hzkQiCeR7Cs +g1lwLDXWrzY0tM07+DKo7+N4ifuNRSzanLh+QBxh5z6ikixL8s36mLYp//Pye6kfLqCTVyvehQP5 +aTfLnnhqBbTFMXiJ7HqnheG5ezzevh55hM6fcA5ZwjUukCox2eRFekGkLhObNA5me0mrZJfQRsN5 +nXJQY6aYWwa9SG3YOYNw6DXwBdGqvOPbyALqfP2C2sJbUjWumDqtujWTI6cfSN01RpiyEGjkpTHC +ClguGYEQyVB1/OpaFs4R1+7vUIgtYf8/QnMFlEPVjjxOAToZpR9GTnfQXeWBIiGH/pR9hNiTrdZo +Q0iy2+tzJOeRf1SktoA+naM8THLCV8Sg1Mw4J87VBp6iSNnpn86CcDaTmjvfliHjWbcM2pE38P1Z +WrOZyGlsQyYBNWNgVYkDOnXYukrZVP/u3oDYLdE41V4tC5h9Pmzb/CaIxw== +-----END CERTIFICATE----- + +Go Daddy Root Certificate Authority - G2 +======================================== +-----BEGIN CERTIFICATE----- +MIIDxTCCAq2gAwIBAgIBADANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT +B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAYBgNVBAoTEUdvRGFkZHkuY29tLCBJbmMu +MTEwLwYDVQQDEyhHbyBEYWRkeSBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5 +MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgYMxCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdBcml6 +b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMRowGAYDVQQKExFHb0RhZGR5LmNvbSwgSW5jLjExMC8G +A1UEAxMoR28gRGFkZHkgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZI +hvcNAQEBBQADggEPADCCAQoCggEBAL9xYgjx+lk09xvJGKP3gElY6SKDE6bFIEMBO4Tx5oVJnyfq +9oQbTqC023CYxzIBsQU+B07u9PpPL1kwIuerGVZr4oAH/PMWdYA5UXvl+TW2dE6pjYIT5LY/qQOD ++qK+ihVqf94Lw7YZFAXK6sOoBJQ7RnwyDfMAZiLIjWltNowRGLfTshxgtDj6AozO091GB94KPutd +fMh8+7ArU6SSYmlRJQVhGkSBjCypQ5Yj36w6gZoOKcUcqeldHraenjAKOc7xiID7S13MMuyFYkMl +NAJWJwGRtDtwKj9useiciAF9n9T521NtYJ2/LOdYq7hfRvzOxBsDPAnrSTFcaUaz4EcCAwEAAaNC +MEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFDqahQcQZyi27/a9 +BUFuIMGU2g/eMA0GCSqGSIb3DQEBCwUAA4IBAQCZ21151fmXWWcDYfF+OwYxdS2hII5PZYe096ac +vNjpL9DbWu7PdIxztDhC2gV7+AJ1uP2lsdeu9tfeE8tTEH6KRtGX+rcuKxGrkLAngPnon1rpN5+r +5N9ss4UXnT3ZJE95kTXWXwTrgIOrmgIttRD02JDHBHNA7XIloKmf7J6raBKZV8aPEjoJpL1E/QYV +N8Gb5DKj7Tjo2GTzLH4U/ALqn83/B2gX2yKQOC16jdFU8WnjXzPKej17CuPKf1855eJ1usV2GDPO +LPAvTK33sefOT6jEm0pUBsV/fdUID+Ic/n4XuKxe9tQWskMJDE32p2u0mYRlynqI4uJEvlz36hz1 +-----END CERTIFICATE----- + +Starfield Root Certificate Authority - G2 +========================================= +-----BEGIN CERTIFICATE----- +MIID3TCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBjzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT +B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9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/K +pL/QlwVKvOoYKAKQvVR4CSFx09F9HdkWsKlhPdAKACL8x3vLCWRFCztAgfd9fDL1mMpYjn0q7pBZ +c2T5NnReJaH1ZgUufzkVqSr7UIuOhWn0 +-----END CERTIFICATE----- + +Starfield Services Root Certificate Authority - G2 +================================================== +-----BEGIN CERTIFICATE----- +MIID7zCCAtegAwIBAgIBADANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UEBhMCVVMxEDAOBgNVBAgT +B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9s +b2dpZXMsIEluYy4xOzA5BgNVBAMTMlN0YXJmaWVsZCBTZXJ2aWNlcyBSb290IENlcnRpZmljYXRl +IEF1dGhvcml0eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgZgxCzAJBgNV +BAYTAlVTMRAwDgYDVQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxT +dGFyZmllbGQgVGVjaG5vbG9naWVzLCBJbmMuMTswOQYDVQQDEzJTdGFyZmllbGQgU2VydmljZXMg +Um9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC +AQoCggEBANUMOsQq+U7i9b4Zl1+OiFOxHz/Lz58gE20pOsgPfTz3a3Y4Y9k2YKibXlwAgLIvWX/2 +h/klQ4bnaRtSmpDhcePYLQ1Ob/bISdm28xpWriu2dBTrz/sm4xq6HZYuajtYlIlHVv8loJNwU4Pa +hHQUw2eeBGg6345AWh1KTs9DkTvnVtYAcMtS7nt9rjrnvDH5RfbCYM8TWQIrgMw0R9+53pBlbQLP +LJGmpufehRhJfGZOozptqbXuNC66DQO4M99H67FrjSXZm86B0UVGMpZwh94CDklDhbZsc7tk6mFB +rMnUVN+HL8cisibMn1lUaJ/8viovxFUcdUBgF4UCVTmLfwUCAwEAAaNCMEAwDwYDVR0TAQH/BAUw +AwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFJxfAN+qAdcwKziIorhtSpzyEZGDMA0GCSqG +SIb3DQEBCwUAA4IBAQBLNqaEd2ndOxmfZyMIbw5hyf2E3F/YNoHN2BtBLZ9g3ccaaNnRbobhiCPP +E95Dz+I0swSdHynVv/heyNXBve6SbzJ08pGCL72CQnqtKrcgfU28elUSwhXqvfdqlS5sdJ/PHLTy +xQGjhdByPq1zqwubdQxtRbeOlKyWN7Wg0I8VRw7j6IPdj/3vQQF3zCepYoUz8jcI73HPdwbeyBkd +iEDPfUYd/x7H4c7/I9vG+o1VTqkC50cRRj70/b17KSa7qWFiNyi2LSr2EIZkyXCn0q23KXB56jza +YyWf/Wi3MOxw+3WKt21gZ7IeyLnp2KhvAotnDU0mV3HaIPzBSlCNsSi6 +-----END CERTIFICATE----- + +Certum Trusted Network CA +========================= +-----BEGIN CERTIFICATE----- +MIIDuzCCAqOgAwIBAgIDBETAMA0GCSqGSIb3DQEBBQUAMH4xCzAJBgNVBAYTAlBMMSIwIAYDVQQK +ExlVbml6ZXRvIFRlY2hub2xvZ2llcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlv +biBBdXRob3JpdHkxIjAgBgNVBAMTGUNlcnR1bSBUcnVzdGVkIE5ldHdvcmsgQ0EwHhcNMDgxMDIy +MTIwNzM3WhcNMjkxMjMxMTIwNzM3WjB+MQswCQYDVQQGEwJQTDEiMCAGA1UEChMZVW5pemV0byBU +ZWNobm9sb2dpZXMgUy5BLjEnMCUGA1UECxMeQ2VydHVtIENlcnRpZmljYXRpb24gQXV0aG9yaXR5 +MSIwIAYDVQQDExlDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENBMIIBIjANBgkqhkiG9w0BAQEFAAOC +AQ8AMIIBCgKCAQEA4/t9o3K6wvDJFIf1awFO4W5AB7ptJ11/91sts1rHUV+rpDKmYYe2bg+G0jAC +l/jXaVehGDldamR5xgFZrDwxSjh80gTSSyjoIF87B6LMTXPb865Px1bVWqeWifrzq2jUI4ZZJ88J +J7ysbnKDHDBy3+Ci6dLhdHUZvSqeexVUBBvXQzmtVSjF4hq79MDkrjhJM8x2hZ85RdKknvISjFH4 +fOQtf/WsX+sWn7Et0brMkUJ3TCXJkDhv2/DM+44el1k+1WBO5gUo7Ul5E0u6SNsv+XLTOcr+H9g0 +cvW0QM8xAcPs3hEtF10fuFDRXhmnad4HMyjKUJX5p1TLVIZQRan5SQIDAQABo0IwQDAPBgNVHRMB +Af8EBTADAQH/MB0GA1UdDgQWBBQIds3LB/8k9sXN7buQvOKEN0Z19zAOBgNVHQ8BAf8EBAMCAQYw +DQYJKoZIhvcNAQEFBQADggEBAKaorSLOAT2mo/9i0Eidi15ysHhE49wcrwn9I0j6vSrEuVUEtRCj +jSfeC4Jj0O7eDDd5QVsisrCaQVymcODU0HfLI9MA4GxWL+FpDQ3Zqr8hgVDZBqWo/5U30Kr+4rP1 +mS1FhIrlQgnXdAIv94nYmem8J9RHjboNRhx3zxSkHLmkMcScKHQDNP8zGSal6Q10tz6XxnboJ5aj +Zt3hrvJBW8qYVoNzcOSGGtIxQbovvi0TWnZvTuhOgQ4/WwMioBK+ZlgRSssDxLQqKi2WF+A5VLxI +03YnnZotBqbJ7DnSq9ufmgsnAjUpsUCV5/nonFWIGUbWtzT1fs45mtk48VH3Tyw= +-----END CERTIFICATE----- + +TWCA Root Certification Authority +================================= +-----BEGIN CERTIFICATE----- +MIIDezCCAmOgAwIBAgIBATANBgkqhkiG9w0BAQUFADBfMQswCQYDVQQGEwJUVzESMBAGA1UECgwJ +VEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NBIFJvb3QgQ2VydGlmaWNh +dGlvbiBBdXRob3JpdHkwHhcNMDgwODI4MDcyNDMzWhcNMzAxMjMxMTU1OTU5WjBfMQswCQYDVQQG +EwJUVzESMBAGA1UECgwJVEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NB +IFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK +AoIBAQCwfnK4pAOU5qfeCTiRShFAh6d8WWQUe7UREN3+v9XAu1bihSX0NXIP+FPQQeFEAcK0HMMx +QhZHhTMidrIKbw/lJVBPhYa+v5guEGcevhEFhgWQxFnQfHgQsIBct+HHK3XLfJ+utdGdIzdjp9xC +oi2SBBtQwXu4PhvJVgSLL1KbralW6cH/ralYhzC2gfeXRfwZVzsrb+RH9JlF/h3x+JejiB03HFyP +4HYlmlD4oFT/RJB2I9IyxsOrBr/8+7/zrX2SYgJbKdM1o5OaQ2RgXbL6Mv87BK9NQGr5x+PvI/1r +y+UPizgN7gr8/g+YnzAx3WxSZfmLgb4i4RxYA7qRG4kHAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIB +BjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqOFsmjd6LWvJPelSDGRjjCDWmujANBgkqhkiG +9w0BAQUFAAOCAQEAPNV3PdrfibqHDAhUaiBQkr6wQT25JmSDCi/oQMCXKCeCMErJk/9q56YAf4lC +mtYR5VPOL8zy2gXE/uJQxDqGfczafhAJO5I1KlOy/usrBdlsXebQ79NqZp4VKIV66IIArB6nCWlW +QtNoURi+VJq/REG6Sb4gumlc7rh3zc5sH62Dlhh9DrUUOYTxKOkto557HnpyWoOzeW/vtPzQCqVY +T0bf+215WfKEIlKuD8z7fDvnaspHYcN6+NOSBB+4IIThNlQWx0DeO4pz3N/GCUzf7Nr/1FNCocny +Yh0igzyXxfkZYiesZSLX0zzG5Y6yU8xJzrww/nsOM5D77dIUkR8Hrw== +-----END CERTIFICATE----- + +Security Communication RootCA2 +============================== +-----BEGIN CERTIFICATE----- +MIIDdzCCAl+gAwIBAgIBADANBgkqhkiG9w0BAQsFADBdMQswCQYDVQQGEwJKUDElMCMGA1UECh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0eg29 +mvVXIwAHIRc/SjnRBUkLp7Y3gaVdjKozXoEofKd9J+sAro03 +-----END CERTIFICATE----- + +Actalis Authentication Root CA +============================== +-----BEGIN CERTIFICATE----- +MIIFuzCCA6OgAwIBAgIIVwoRl0LE48wwDQYJKoZIhvcNAQELBQAwazELMAkGA1UEBhMCSVQxDjAM +BgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlzIFMucC5BLi8wMzM1ODUyMDk2NzEnMCUGA1UE +AwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290IENBMB4XDTExMDkyMjExMjIwMloXDTMwMDky +MjExMjIwMlowazELMAkGA1UEBhMCSVQxDjAMBgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlz +IFMucC5BLi8wMzM1ODUyMDk2NzEnMCUGA1UEAwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290 +IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAp8bEpSmkLO/lGMWwUKNvUTufClrJ +wkg4CsIcoBh/kbWHuUA/3R1oHwiD1S0eiKD4j1aPbZkCkpAW1V8IbInX4ay8IMKx4INRimlNAJZa +by/ARH6jDuSRzVju3PvHHkVH3Se5CAGfpiEd9UEtL0z9KK3giq0itFZljoZUj5NDKd45RnijMCO6 +zfB9E1fAXdKDa0hMxKufgFpbOr3JpyI/gCczWw63igxdBzcIy2zSekciRDXFzMwujt0q7bd9Zg1f +YVEiVRvjRuPjPdA1YprbrxTIW6HMiRvhMCb8oJsfgadHHwTrozmSBp+Z07/T6k9QnBn+locePGX2 +oxgkg4YQ51Q+qDp2JE+BIcXjDwL4k5RHILv+1A7TaLndxHqEguNTVHnd25zS8gebLra8Pu2Fbe8l +EfKXGkJh90qX6IuxEAf6ZYGyojnP9zz/GPvG8VqLWeICrHuS0E4UT1lF9gxeKF+w6D9Fz8+vm2/7 +hNN3WpVvrJSEnu68wEqPSpP4RCHiMUVhUE4Q2OM1fEwZtN4Fv6MGn8i1zeQf1xcGDXqVdFUNaBr8 +EBtiZJ1t4JWgw5QHVw0U5r0F+7if5t+L4sbnfpb2U8WANFAoWPASUHEXMLrmeGO89LKtmyuy/uE5 +jF66CyCU3nuDuP/jVo23Eek7jPKxwV2dpAtMK9myGPW1n0sCAwEAAaNjMGEwHQYDVR0OBBYEFFLY +iDrIn3hm7YnzezhwlMkCAjbQMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUUtiIOsifeGbt +ifN7OHCUyQICNtAwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBCwUAA4ICAQALe3KHwGCmSUyI +WOYdiPcUZEim2FgKDk8TNd81HdTtBjHIgT5q1d07GjLukD0R0i70jsNjLiNmsGe+b7bAEzlgqqI0 +JZN1Ut6nna0Oh4lScWoWPBkdg/iaKWW+9D+a2fDzWochcYBNy+A4mz+7+uAwTc+G02UQGRjRlwKx +K3JCaKygvU5a2hi/a5iB0P2avl4VSM0RFbnAKVy06Ij3Pjaut2L9HmLecHgQHEhb2rykOLpn7VU+ +Xlff1ANATIGk0k9jpwlCCRT8AKnCgHNPLsBA2RF7SOp6AsDT6ygBJlh0wcBzIm2Tlf05fbsq4/aC +4yyXX04fkZT6/iyj2HYauE2yOE+b+h1IYHkm4vP9qdCa6HCPSXrW5b0KDtst842/6+OkfcvHlXHo +2qN8xcL4dJIEG4aspCJTQLas/kx2z/uUMsA1n3Y/buWQbqCmJqK4LL7RK4X9p2jIugErsWx0Hbhz +lefut8cl8ABMALJ+tguLHPPAUJ4lueAI3jZm/zel0btUZCzJJ7VLkn5l/9Mt4blOvH+kQSGQQXem +OR/qnuOf0GZvBeyqdn6/axag67XH/JJULysRJyU3eExRarDzzFhdFPFqSBX/wge2sY0PjlxQRrM9 +vwGYT7JZVEc+NHt4bVaTLnPqZih4zR0Uv6CPLy64Lo7yFIrM6bV8+2ydDKXhlg== +-----END CERTIFICATE----- + +Buypass Class 2 Root CA +======================= +-----BEGIN CERTI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A1UdEwEB/wQFMAMBAf8wHQYD +VR0OBBYEFMmAd+BikoL1RpzzuvdMw964o605MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsF +AAOCAgEAU18h9bqwOlI5LJKwbADJ784g7wbylp7ppHR/ehb8t/W2+xUbP6umwHJdELFx7rxP462s +A20ucS6vxOOto70MEae0/0qyexAQH6dXQbLArvQsWdZHEIjzIVEpMMpghq9Gqx3tOluwlN5E40EI +osHsHdb9T7bWR9AUC8rmyrV7d35BH16Dx7aMOZawP5aBQW9gkOLo+fsicdl9sz1Gv7SEr5AcD48S +aq/v7h56rgJKihcrdv6sVIkkLE8/trKnToyokZf7KcZ7XC25y2a2t6hbElGFtQl+Ynhw/qlqYLYd +DnkM/crqJIByw5c/8nerQyIKx+u2DISCLIBrQYoIwOula9+ZEsuK1V6ADJHgJgg2SMX6OBE1/yWD +LfJ6v9r9jv6ly0UsH8SIU653DtmadsWOLB2jutXsMq7Aqqz30XpN69QH4kj3Io6wpJ9qzo6ysmD0 +oyLQI+uUWnpp3Q+/QFesa1lQ2aOZ4W7+jQF5JyMV3pKdewlNWudLSDBaGOYKbeaP4NK75t98biGC +wWg5TbSYWGZizEqQXsP6JwSxeRV0mcy+rSDeJmAc61ZRpqPq5KM/p/9h3PFaTWwyI0PurKju7koS +CTxdccK+efrCh2gdC/1cacwG0Jp9VJkqyTkaGa9LKkPzY11aWOIv4x3kqdbQCtCev9eBCfHJxyYN +rJgWVqA= +-----END CERTIFICATE----- + +Buypass Class 3 Root CA +======================= +-----BEGIN CERTIFICATE----- +MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEdMBsGA1UECgwU +QnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3MgQ2xhc3MgMyBSb290IENBMB4X +DTEwMTAyNjA4Mjg1OFoXDTQwMTAyNjA4Mjg1OFowTjELMAkGA1UEBhMCTk8xHTAbBgNVBAo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SIGrs/CIBKM+G +uIAeqcwRpTzyFrNHnfzSgCHEy9BHcEGhyoMZCCxt8l13nIoUE9Q2HJLw5QY33KbmkJs4j1xrG0aG +Q0JfPgEHU1RdZX33inOhmlRaHylDFCfChQ+1iHsaO5S3HWCntZznKWlXWpuTekMwGwPXYshApqr8 +ZORK15FTAaggiG6cX0S5y2CBNOxv033aSF/rtJC8LakcC6wc1aJoIIAE1vyxjy+7SjENSoYc6+I2 +KSb12tjE8nVhz36udmNKekBlk4f4HoCMhuWG1o8O/FMsYOgWYRqiPkN7zTlgVGr18okmAWiDSKIz +6MkEkbIRNBE+6tBDGR8Dk5AM/1E9V/RBbuHLoL7ryWPNbczk+DaqaJ3tvV2XcEQNtg413OEMXbug +UZTLfhbrES+jkkXITHHZvMmZUldGL1DPvTVp9D0VzgalLA8+9oG6lLvDu79leNKGef9JOxqDDPDe +eOzI8k1MGt6CKfjBWtrt7uYnXuhF0J0cUahoq0Tj0Itq4/g7u9xN12TyUb7mqqta6THuBrxzvxNi +Cp/HuZc= +-----END CERTIFICATE----- + +T-TeleSec GlobalRoot Class 3 +============================ +-----BEGIN CERTIFICATE----- +MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoM +IlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBU +cnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwHhcNMDgx +MDAxMTAyOTU2WhcNMzMxMDAxMjM1OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lz +dGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBD +ZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwggEiMA0GCSqGSIb3 +DQEBAQUAA4IBDwAwggEKAoIBAQC9dZPwYiJvJK7genasfb3ZJNW4t/zN8ELg63iIVl6bmlQdTQyK +9tPPcPRStdiTBONGhnFBSivwKixVA9ZIw+A5OO3yXDw/RLyTPWGrTs0NvvAgJ1gORH8EGoel15YU +NpDQSXuhdfsaa3Ox+M6pCSzyU9XDFES4hqX2iys52qMzVNn6chr3IhUciJFrf2blw2qAsCTz34ZF +iP0Zf3WHHx+xGwpzJFu5ZeAsVMhg02YXP+HMVDNzkQI6pn97djmiH5a2OK61yJN0HZ65tOVgnS9W +0eDrXltMEnAMbEQgqxHY9Bn20pxSN+f6tsIxO0rUFJmtxxr1XV/6B7h8DR/Wgx6zAgMBAAGjQjBA +MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS1A/d2O2GCahKqGFPr +AyGUv/7OyjANBgkqhkiG9w0BAQsFAAOCAQEAVj3vlNW92nOyWL6ukK2YJ5f+AbGwUgC4TeQbIXQb +fsDuXmkqJa9c1h3a0nnJ85cp4IaH3gRZD/FZ1GSFS5mvJQQeyUapl96Cshtwn5z2r3Ex3XsFpSzT +ucpH9sry9uetuUg/vBa3wW306gmv7PO15wWeph6KU1HWk4HMdJP2udqmJQV0eVp+QD6CSyYRMG7h +P0HHRwA11fXT91Q+gT3aSWqas+8QPebrb9HIIkfLzM8BMZLZGOMivgkeGj5asuRrDFR6fUNOuIml +e9eiPZaGzPImNC1qkp2aGtAw4l1OBLBfiyB+d8E9lYLRRpo7PHi4b6HQDWSieB4pTpPDpFQUWw== +-----END CERTIFICATE----- + +D-TRUST Root Class 3 CA 2 2009 +============================== +-----BEGIN CERTIFICATE----- +MIIEMzCCAxugAwIBAgIDCYPzMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNVBAYTAkRFMRUwEwYDVQQK +DAxELVRydXN0IEdtYkgxJzAlBgNVBAMMHkQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgM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SNiH+0LS4F9p0 +o3/U37CYAqxva2ssJSRyoWXuJVrl5jLn8t+rSfrzkGkj2wTZ51xY/GXUl77M/C4KzCUqNQT4YJEV +dT1B/yMfGchs64JTBKbkTCJNjYy6zltz7GRUUG3RnFX7acM2w4y8PIWmawomDeCTmGCufsYkl4ph +X5GOZpIJhzbNi5stPvZR1FDUWSi9g/LMKHtThm3YJohw1+qRzT65ysCQblrGXnRl11z+o+I= +-----END CERTIFICATE----- + +D-TRUST Root Class 3 CA 2 EV 2009 +================================= +-----BEGIN CERTIFICATE----- +MIIEQzCCAyugAwIBAgIDCYP0MA0GCSqGSIb3DQEBCwUAMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQK +DAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAw +OTAeFw0wOTExMDUwODUwNDZaFw0yOTExMDUwODUwNDZaMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQK +DAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAw +OTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJnxhDRwui+3MKCOvXwEz75ivJn9gpfS +egpnljgJ9hBOlSJzmY3aFS3nBfwZcyK3jpgAvDw9rKFs+9Z5JUut8Mxk2og+KbgPCdM03TP1YtHh +zRnp7hhPTFiu4h7WDFsVWtg6uMQYZB7jM7K1iXdODL/ZlGsTl28So/6ZqQTMFexgaDbtCHu39b+T +7WYxg4zGcTSHThfqr4uRjRxWQa4iN1438h3Z0S0NL2lRp75mpoo6Kr3HGrHhFPC+Oh25z1uxav60 +sUYgovseO3Dvk5h9jHOW8sXvhXCtKSb8HgQ+HKDYD8tSg2J87otTlZCpV6LqYQXY+U3EJ/pure35 +11H3a6UCAwEAAaOCASQwggEgMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFNOUikxiEyoZLsyv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CkFbwJrnu+8vyq8W8BQj0FwcYeyTbcEqYSjMq+u7msXi7Kx/mzhkIyIqJdI +zshNy/MGz19qCkKxHh53L46g5pIOBvwFItIm4TFRfTLcDwIDAQABoyMwITAOBgNVHQ8BAf8EBAMC +AQYwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAgEAXzSBdu+WHdXltdkCY4QWwa6g +cFGn90xHNcgL1yg9iXHZqjNB6hQbbCEAwGxCGX6faVsgQt+i0trEfJdLjbDorMjupWkEmQqSpqsn +LhpNgb+E1HAerUf+/UqdM+DyucRFCCEK2mlpc3INvjT+lIutwx4116KD7+U4x6WFH6vPNOw/KP4M +8VeGTslV9xzU2KV9Bnpv1d8Q34FOIWWxtuEXeZVFBs5fzNxGiWNoRI2T9GRwoD2dKAXDOXC4Ynsg +/eTb6QihuJ49CcdP+yz4k3ZB3lLg4VfSnQO8d57+nile98FRYB/e2guyLXW3Q0iT5/Z5xoRdgFlg +lPx4mI88k1HtQJAH32RjJMtOcQWh15QaiDLxInQirqWm2BJpTGCjAu4r7NRjkgtevi92a6O2JryP +A9gK8kxkRr05YuWW6zRjESjMlfGt7+/cgFhI6Uu46mWs6fyAtbXIRfmswZ/ZuepiiI7E8UuDEq3m +i4TWnsLrgxifarsbJGAzcMzs9zLzXNl5fe+epP7JI8Mk7hWSsT2RTyaGvWZzJBPqpK5jwa19hAM8 +EHiGG3njxPPyBJUgriOCxLM6AGK/5jYk4Ve6xx6QddVfP5VhK8E7zeWzaGHQRiapIVJpLesux+t3 +zqY6tQMzT3bR51xUAV3LePTJDL/PEo4XLSNolOer/qmyKwbQBM0= +-----END CERTIFICATE----- + +T-TeleSec GlobalRoot Class 2 +============================ +-----BEGIN CERTIFICATE----- +MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoM +IlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNV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SgxyXSthfbZxbGL0eUQMk1f +iyA6PEkfM4VZDdvLCXVDaXP7a3F98N/ETH3Goy7IlXnLc6KOTk0k+17kBL5yG6YnLUlamXrXXAkg +t3+UuU/xDRxeiEIbEbfnkduebPRq34wGmAOtzCjvpUfzUwIDAQABo0IwQDAPBgNVHRMBAf8EBTAD +AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUo5fW816iEOGrRZ88F2Q87gFwnMwwDQYJKoZI +hvcNAQELBQADggIBABj6W3X8PnrHX3fHyt/PX8MSxEBd1DKquGrX1RUVRpgjpeaQWxiZTOOtQqOC +MTaIzen7xASWSIsBx40Bz1szBpZGZnQdT+3Btrm0DWHMY37XLneMlhwqI2hrhVd2cDMT/uFPpiN3 +GPoajOi9ZcnPP/TJF9zrx7zABC4tRi9pZsMbj/7sPtPKlL92CiUNqXsCHKnQO18LwIE6PWThv6ct +Tr1NxNgpxiIY0MWscgKCP6o6ojoilzHdCGPDdRS5YCgtW2jgFqlmgiNR9etT2DGbe+m3nUvriBbP ++V04ikkwj+3x6xn0dxoxGE1nVGwvb2X52z3sIexe9PSLymBlVNFxZPT5pqOBMzYzcfCkeF9OrYMh +3jRJjehZrJ3ydlo28hP0r+AJx2EqbPfgna67hkooby7utHnNkDPDs3b69fBsnQGQ+p6Q9pxyz0fa +wx/kNSBT8lTR32GDpgLiJTjehTItXnOQUl1CxM49S+H5GYQd1aJQzEH7QRTDvdbJWqNjZgKAvQU6 +O0ec7AAmTPWIUb+oI38YB7AL7YsmoWTTYUrrXJ/es69nA7Mf3W1daWhpq1467HxpvMc7hU6eFbm0 +FU/DlXpY18ls6Wy58yljXrQs8C097Vpl4KlbQMJImYFtnh8GKjwStIsPm6Ik8KaN1nrgS7ZklmOV +hMJKzRwuJIczYOXD +-----END CERTIFICATE----- + +QuoVadis Root CA 2 G3 +===================== +-----BEGIN CERTIFICATE----- +MIIFYDCCA0igAwIBAgIURFc0JFuBiZs18s64KztbpybwdSgwDQYJKoZI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vvMujAWzKNhxnQT5WvvoxXqA/4Ti2Tk08HS6IT7SdEQ +TXlm66r99I0xHnAUrdzeZxNMgRVhvLfZkXdxGYFgu/BYpbWcC/ePIlUnwEsBbTuZDdQdm2NnL9Du +DcpmvJRPpq3t/O5jrFc/ZSXPsoaP0Aj/uHYUbt7lJ+yreLVTubY/6CD50qi+YUbKh4yE8/nxoGib +Ih6BJpsQBJFxwAYf3KDTuVan45gtf4Od34wrnDKOMpTwATwiKp9Dwi7DmDkHOHv8XgBCH/MyJnmD +hPbl8MFREsALHgQjDFSlTC9JxUrRtm5gDWv8a4uFJGS3iQ6rJUdbPM9+Sb3H6QrG2vd+DhcI00iX +0HGS8A85PjRqHH3Y8iKuu2n0M7SmSFXRDw4m6Oy2Cy2nhTXN/VnIn9HNPlopNLk9hM6xZdRZkZFW +dSHBd575euFgndOtBBj0fOtek49TSiIp+EgrPk2GrFt/ywaZWWDYWGWVjUTR939+J399roD1B0y2 +PpxxVJkES/1Y+Zj0 +-----END CERTIFICATE----- + +DigiCert Assured ID Root G2 +=========================== +-----BEGIN CERTIFICATE----- +MIIDljCCAn6gAwIBAgIQC5McOtY5Z+pnI7/Dr5r0SzANBgkqhkiG9w0BAQsFADBlMQswCQYDVQQG +EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQw +IgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIwHhcNMTMwODAxMTIwMDAwWhcNMzgw +MTE1MTIwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQL +ExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIw +ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZ5ygvUj82ckmIkzTz+GoeMVSAn61UQbVH +35ao1K+ALbkKz3X9iaV9JPrjIgwrvJUXCzO/GU1BBpAAvQxNEP4HteccbiJVMWWXvdMX0h5i89vq +bFCMP4QMls+3ywPgym2hFEwbid3tALBSfK+RbLE4E9HpEgjAALAcKxHad3A2m67OeYfcgnDmCXRw +VWmvo2ifv922ebPynXApVfSr/5Vh88lAbx3RvpO704gqu52/clpWcTs/1PPRCv4o76Pu2ZmvA9OP +YLfykqGxvYmJHzDNw6YuYjOuFgJ3RFrngQo8p0Quebg/BLxcoIfhG69Rjs3sLPr4/m3wOnyqi+Rn +lTGNAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBTO +w0q5mVXyuNtgv6l+vVa1lzan1jANBgkqhkiG9w0BAQsFAAOCAQEAyqVVjOPIQW5pJ6d1Ee88hjZv +0p3GeDgdaZaikmkuOGybfQTUiaWxMTeKySHMq2zNixya1r9I0jJmwYrA8y8678Dj1JGG0VDjA9tz +d29KOVPt3ibHtX2vK0LRdWLjSisCx1BL4GnilmwORGYQRI+tBev4eaymG+g3NJ1TyWGqolKvSnAW +hsI6yLETcDbYz+70CjTVW0z9B5yiutkBclzzTcHdDrEcDcRjvq30FPuJ7KJBDkzMyFdA0G4Dqs0M +jomZmWzwPDCvON9vvKO+KSAnq3T/EyJ43pdSVR6DtVQgA+6uwE9W3jfMw3+qBCe703e4YtsXfJwo +IhNzbM8m9Yop5w== +-----END CERTIFICATE----- + +DigiCert Assured ID Root G3 +=========================== +-----BEGIN CERTIFICATE----- +MIICRjCCAc2gAwIBAgIQC6Fa+h3foLVJRK/NJKBs7DAKBggqhkjOPQQDAzBlMQswCQYDVQQGEwJV +UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQwIgYD +VQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1 +MTIwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwdjAQ +BgcqhkjOPQIBBgUrgQQAIgNiAAQZ57ysRGXtzbg/WPuNsVepRC0FFfLvC/8QdJ+1YlJfZn4f5dwb +RXkLzMZTCp2NXQLZqVneAlr2lSoOjThKiknGvMYDOAdfVdp+CW7if17QRSAPWXYQ1qAk8C3eNvJs +KTmjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBTL0L2p4ZgF +UaFNN6KDec6NHSrkhDAKBggqhkjOPQQDAwNnADBkAjAlpIFFAmsSS3V0T8gj43DydXLefInwz5Fy +YZ5eEJJZVrmDxxDnOOlYJjZ91eQ0hjkCMHw2U/Aw5WJjOpnitqM7mzT6HtoQknFekROn3aRukswy +1vUhZscv6pZjamVFkpUBtA== +-----END CERTIFICATE----- + +DigiCert Global Root G2 +======================= +-----BEGIN CERTIFICATE----- +MIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBhMQswCQYDVQQG +EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAw +HgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMjAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUx +MjAwMDBaMGExCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3 +dy5kaWdpY2VydC5jb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEcyMIIBIjANBgkq +hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzfNNNx7a8myaJCtSnX/RrohCgiN9RlUyfuI2/Ou8jqJ +kTx65qsGGmvPrC3oXgkkRLpimn7Wo6h+4FR1IAWsULecYxpsMNzaHxmx1x7e/dfgy5SDN67sH0NO +3Xss0r0upS/kqbitOtSZpLYl6ZtrAGCSYP9PIUkY92eQq2EGnI/yuum06ZIya7XzV+hdG82MHauV +BJVJ8zUtluNJbd134/tJS7SsVQepj5WztCO7TG1F8PapspUwtP1MVYwnSlcUfIKdzXOS0xZKBgyM +UNGPHgm+F6HmIcr9g+UQvIOlCsRnKPZzFBQ9RnbDhxSJITRNrw9FDKZJobq7nMWxM4MphQIDAQAB +o0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUTiJUIBiV5uNu +5g/6+rkS7QYXjzkwDQYJKoZIhvcNAQELBQADggEBAGBnKJRvDkhj6zHd6mcY1Yl9PMWLSn/pvtsr +F9+wX3N3KjITOYFnQoQj8kVnNeyIv/iPsGEMNKSuIEyExtv4NeF22d+mQrvHRAiGfzZ0JFrabA0U +WTW98kndth/Jsw1HKj2ZL7tcu7XUIOGZX1NGFdtom/DzMNU+MeKNhJ7jitralj41E6Vf8PlwUHBH +QRFXGU7Aj64GxJUTFy8bJZ918rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/ +iyK5S9kJRaTepLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl +MrY= +-----END CERTIFICATE----- + +DigiCert Global Root G3 +======================= +-----BEGIN CERTIFICATE----- +MIICPzCCAcWgAwIBAgIQBVVWvPJepDU1w6QP1atFcjAKBggqhkjOPQQDAzBhMQswCQYDVQQGEwJV +UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAwHgYD +VQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMzAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAw +MDBaMGExC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I2FCKeWjzaIgQdfRnGTZ6iah +ixTXTBmyUEFxPT9NcCOGDErcgdLMMpSEDQgJlxxPwO5rIHQw0uA5NBCFIRUBCOhVMt5xSdkoF1BN +5r5N0XWs0Mr7QbhDparTwwVETyw2m+L64kW4I1NsBm9nVX9GtUw/bihaeSbSpKhil9Ie4u1Ki7wb +/UdKDd9nZn6yW0HQO+T0O/QEY+nvwlQAUaCKKsnOeMzV6ocEGLPOr0mIr/OSmbaz5mEP0oUA51Aa +5BuVnRmhuZyxm7EAHu/QD09CbMkKvO5D+jpxpchNJqU1/YldvIViHTLSoCtU7ZpXwdv6EM8Zt4tK +G48BtieVU+i2iW1bvGjUI+iLUaJW+fCmgKDWHrO8Dw9TdSmq6hN35N6MgSGtBxBHEa2HPQfRdbzP +82Z+ +-----END CERTIFICATE----- + +COMODO RSA Certification Authority +================================== +-----BEGIN CERTIFICATE----- +MIIF2DCCA8CgAwIBAgIQTKr5yttjb+Af907YWwOGnTANBgkqhkiG9w0BAQwFADCBhTELMAkGA1UE +BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG +A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlv +biBBdXRob3JpdHkwHhcNMTAwMTE5MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMC +R0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UE +ChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlvbiBB +dXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCR6FSS0gpWsawNJN3Fz0Rn +dJkrN6N9I3AAcbxT38T6KhKPS38QVr2fcHK3YX/JSw8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qHvLI7cawiiFwxv/0Cti76R7CZGYZ4wUAc1oBmpjIXUDgIiKboHGhfKp +pC3n9KUkEEeDys30jXlYsQab5xoq2Z0B15R97QNKyvDb6KkBPvVWmckejkk9u+UJueBPSZI9FoJA +zMxZxuY67RIuaTxslbH9qh17f4a+Hg4yRvv7E491f0yLS0Zj/gA0QHDBw7mh3aZw4gSzQbzpgJHq +ZJx64SIDqZxubw5lT2yHh17zbqD5daWbQOhTsiedSrnAdyGN/4fy3ryM7xfft0kL0fJuMAsaDk52 +7RH89elWsn2/x20Kk4yl0MC2Hb46TpSi125sC8KKfPog88Tk5c0NqMuRkrF8hey1FGlmDoLnzc7I +LaZRfyHBNVOFBkpdn627G190 +-----END CERTIFICATE----- + +USERTrust RSA Certification Authority +===================================== +-----BEGIN CERTIFICATE----- +MIIF3jCCA8agAwIBAgIQAf1tMPyjylGoG7xkDjUDLTANBgkqhkiG9w0BAQwFADCBiDELMAkGA1UE +BhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQK +ExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNh +dGlvbiBBdXRob3JpdHkwHhcNMTAwMjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UE +BhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQK +ExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNh +dGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCAEmUXNg7D2wiz +0KxXDXbtzSfTTK1Qg2HiqiBNCS1kCdzOiZ/MPans9s/B3PHTsdZ7NygRK0faOca8Ohm0X6a9fZ2j +Y0K2dvKpO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M9h4ya7b6NnJSFd5t0dCy5oGzuCr+yDZ4XUmFF0sbmZgIn/f3gZXHlKYC6SQK5MNyosycdi +yA5d9zZbyuAlJQG03RoHnHcAP9Dc1ew91Pq7P8yF1m9/qS3fuQL39ZeatTXaw2ewh0qpKJ4jjv9c +J2vhsE/zB+4ALtRZh8tSQZXq9EfX7mRBVXyNWQKV3WKdwrnuWih0hKWbt5DHDAff9Yk2dDLWKMGw +sAvgnEzDHNb842m1R0aBL6KCq9NjRHDEjf8tM7qtj3u1cIiuPhnPQCjY/MiQu12ZIvVS5ljFH4gx +Q+6IHdfGjjxDah2nGN59PRbxYvnKkKj9 +-----END CERTIFICATE----- + +USERTrust ECC Certification Authority +===================================== +-----BEGIN CERTIFICATE----- +MIICjzCCAhWgAwIBAgIQXIuZxVqUxdJxVt7NiYDMJjAKBggqhkjOPQQDAzCBiDELMAkGA1UEBhMC +VVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU +aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlv +biBBdXRob3JpdHkwHhcNMTAwMjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMC +VVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU +aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlv +biBBdXRob3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQarFRaqfloI+d61SRvU8Za2EurxtW2 +0eZzca7dnNYMYf3boIkDuAUU7FfO7l0/4iGzzvfUinngo4N+LZfQYcTxmdwlkWOrfzCjtHDix6Ez +nPO/LlxTsV+zfTJ/ijTjeXmjQjBAMB0GA1UdDgQWBBQ64QmG1M8ZwpZ2dEl23OA1xmNjmjAOBgNV +HQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjA2Z6EWCNzklwBB +HU6+4WMBzzuqQhFkoJ2UOQIReVx7Hfpkue4WQrO/isIJxOzksU0CMQDpKmFHjFJKS04YcPbWRNZu +9YO6bVi9JNlWSOrvxKJGgYhqOkbRqZtNyWHa0V1Xahg= +-----END CERTIFICATE----- + +GlobalSign ECC Root CA - R5 +=========================== +-----BEGIN CERTIFICATE----- +MIICHjCCAaSgAwIBAgIRYFlJ4CYuu1X5CneKcflK2GwwCgYIKoZIzj0EAwMwUDEkMCIGA1UECxMb +R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD +EwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoXDTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMb +R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD +EwpHbG9iYWxTaWduMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAER0UOlvt9Xb/pOdEh+J8LttV7HpI6 +SFkc8GIxLcB6KP4ap1yztsyX50XUWPrRd21DosCHZTQKH3rd6zwzocWdTaRvQZU4f8kehOvRnkmS +h5SHDDqFSmafnVmTTZdhBoZKo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAd +BgNVHQ4EFgQUPeYpSJvqB8ohREom3m7e0oPQn1kwCgYIKoZIzj0EAwMDaAAwZQIxAOVpEslu28Yx +uglB4Zf4+/2a4n0Sye18ZNPLBSWLVtmg515dTguDnFt2KaAJJiFqYgIwcdK1j1zqO+F4CYWodZI7 +yFz9SO8NdCKoCOJuxUnOxwy8p2Fp8fc74SrL+SvzZpA3 +-----END CERTIFICATE----- + +IdenTrust Commercial Root CA 1 +============================== +-----BEGIN CERTIFICATE----- +MIIFYDCCA0igAwIBAgIQCgFCgAAAAUUjyES1AAAAAjANBgkqhkiG9w0BAQsFADBKMQswCQYDVQQG +EwJVUzESMBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBS +b290IENBIDEwHhcNMTQwMTE2MTgxMjIzWhcNMzQwMTE2MTgxMjIzWjBKMQswCQYDVQQGEwJVUzES +MBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBSb290IENB +IDEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCnUBneP5k91DNG8W9RYYKyqU+PZ4ld +hNlT3Qwo2dfw/66VQ3KZ+bVdfIrBQuExUHTRgQ18zZshq0PirK1ehm7zCYofWjK9ouuU+ehcCuz/ +mNKvcbO0U59Oh++SvL3sTzIwiEsXXlfEU8L2ApeN2WIrvyQfYo3fw7gpS0l4PJNgiCL8mdo2yMKi +1CxUAGc1bnO/AljwpN3lsKImesrgNqUZFvX9t++uP0D1bVoE/c40yiTcdCMbXTMTEl3EASX2MN0C +XZ/g1Ue9tOsbobtJSdifWwLziuQkkORiT0/Br4sOdBeo0XKIanoBScy0RnnGF7HamB4HWfp1IYVl +3ZBWzvurpWCdxJ35UrCLvYf5jysjCiN2O/cz4ckA82n5S6LgTrx+kzmEB/dEcH7+B1rlsazRGMzy +NeVJSQjKVsk9+w8YfYs7wRPCTY/JTw436R+hDmrfYi7LNQZReSzIJTj0+kuniVyc0uMNOYZKdHzV +WYfCP04MXFL0PfdSgvHqo6z9STQaKPNBiDoT7uje/5kdX7rL6B7yuVBgwDHTc+XvvqDtMwt0viAg +xGds8AgDelWAf0ZOlqf0Hj7h9tgJ4TNkK2PXMl6f+cB7D3hvl7yTmvmcEpB4eoCHFddydJxVdHix +uuFucAS6T6C6aMN7/zHwcz09lCqxC0EOoP5NiGVreTO01wIDAQABo0IwQDAOBgNVHQ8BAf8EBAMC +AQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU7UQZwNPwBovupHu+QucmVMiONnYwDQYJKoZI +hvcNAQELBQADggIBAA2ukDL2pkt8RHYZYR4nKM1eVO8lvOMIkPkp165oCOGUAFjvLi5+U1KMtlwH +6oi6mYtQlNeCgN9hCQCTrQ0U5s7B8jeUeLBfnLOic7iPBZM4zY0+sLj7wM+x8uwtLRvM7Kqas6pg +ghstO8OEPVeKlh6cdbjTMM1gCIOQ045U8U1mwF10A0Cj7oV+wh93nAbowacYXVKV7cndJZ5t+qnt +ozo00Fl72u1Q8zW/7esUTTHHYPTa8Yec4kjixsU3+wYQ+nVZZjFHKdp2mhzpgq7vmrlR94gjmmmV +YjzlVYA211QC//G5Xc7UI2/YRYRKW2XviQzdFKcgyxilJbQN+QHwotL0AMh0jqEqSI5l2xPE4iUX +feu+h1sXIFRRk0pTAwvsXcoz7WL9RccvW9xYoIA55vrX/hMUpu09lEpCdNTDd1lzzY9GvlU47/ro +kTLql1gEIt44w8y8bckzOmoKaT+gyOpyj4xjhiO9bTyWnpXgSUyqorkqG5w2gXjtw+hG4iZZRHUe +2XWJUc0QhJ1hYMtd+ZciTY6Y5uN/9lu7rs3KSoFrXgvzUeF0K+l+J6fZmUlO+KWA2yUPHGNiiskz +Z2s8EIPGrd6ozRaOjfAHN3Gf8qv8QfXBi+wAN10J5U6A7/qxXDgGpRtK4dw4LTzcqx+QGtVKnO7R +cGzM7vRX+Bi6hG6H +-----END CERTIFICATE----- + +IdenTrust Public Sector Root CA 1 +================================= +-----BEGIN CERTIFICATE----- +MIIFZjCCA06gAwIBAgIQCgFCgAAAAUUjz0Z8AAAAAjANBgkqhkiG9w0BAQsFADBNMQswCQYDVQQG +EwJVUzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVuVHJ1c3QgUHVibGljIFNlY3Rv +ciBSb290IENBIDEwHhcNMTQwMTE2MTc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5Hgzg0b8zAarb8iXRvTvyUFTeGSGn+ZnzxEk8rUQElsgIfX +BDrDMlI1Dlb4pd19xIsNER9Tyx6yF7Zod1rg1MvIB671Oi6ON7fQAUtDKXeMOZePglr4UeWJoBjn +aH9dCi77o0cOPaYjesYBx4/IXr9tgFa+iiS6M+qf4TIRnvHST4D2G0CvOJ4RUHlzEhLN5mydLIhy +PDCBBpEi6lmt2hkuIsKNuYyH4Ga8cyNfIWRjgEj1oDwYPZTISEEdQLpe/v5WOaHIz16eGWRGENoX +kbcFgKyLmZJ956LYBws2J+dIeWCKw9cTXPhyQN9Ky8+ZAAoACxGV2lZFA4gKn2fQ1XmxqI1AbQ3C +ekD6819kR5LLU7m7Wc5P/dAVUwHY3+vZ5nbv0CO7O6l5s9UCKc2Jo5YPSjXnTkLAdc0Hz+Ys63su +-----END CERTIFICATE----- + +OISTE WISeKey Global Root GB CA +=============================== +-----BEGIN CERTIFICATE----- +MIIDtTCCAp2gAwIBAgIQdrEgUnTwhYdGs/gjGvbCwDANBgkqhkiG9w0BAQsFADBtMQswCQYDVQQG +EwJDSDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNl +ZDEoMCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQiBDQTAeFw0xNDEyMDExNTAw +MzJaFw0zOTEyMDExNTEwMzFaMG0xCzAJBgNVBAYTAkNIMRAwDgYDVQQKEwdXSVNlS2V5MSIwIAYD +VQQLExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5IEds +b2JhbCBSb290IEdCIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Be3HEokKtaX +scriHvt9OO+Y9bI5mE4nuBFde9IllIiCFSZqGzG7qFshISvYD06fWvGxWuR51jIjK+FTzJlFXHtP +rby/h0oLS5daqPZI7H17Dc0hBt+e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TLkEuMRgwFgYD +VQQDDA9TWkFGSVIgUk9PVCBDQTIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3vD5Q +qEvNQLXOYeeWyrSh2gwisPq1e3YAd4wLz32ohswmUeQgPYUM1ljj5/QqGJ3a0a4m7utT3PSQ1hNK +DJA8w/Ta0o4NkjrcsbH/ON7Dui1fgLkCvUqdGw+0w8LBZwPd3BucPbOw3gAeqDRHu5rr/gsUvTaE +2g0gv/pby6kWIK05YO4vdbbnl5z5Pv1+TW9NL++IDWr63fE9biCloBK0TXC5ztdyO4mTp4CEHCdJ +ckm1/zuVnsHMyAHs6A6KCpbns6aH5db5BSsNl0BwPLqsdVqc1U2dAgrSS5tmS0YHF2Wtn2yIANwi +ieDhZNRnvDF5YTy7ykHNXGoAyDw4jlivAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0P +AQH/BAQDAgEGMB0GA1UdDgQWBBQuFqlKGLXLzPVvUPMjX/hd56zwyDANBgkqhkiG9w0BAQsFAAOC +AQEAtXP4A9xZWx126aMqe5Aosk3AM0+qmrHUuOQn/6mWmc5G4G18TKI4pAZw8PRBEew/R40/cof5 +O/2kbytTAOD/OblqBw7rHRz2onKQy4I9EYKL0rufKq8h5mOGnXkZ7/e7DDWQw4rtTw/1zBLZpD67 +oPwglV9PJi8RI4NOdQcPv5vRtB3pEAT+ymCPoky4rc/hkA/NrgrHXXu3UNLUYfrVFdvXn4dRVOul +4+vJhaAlIDf7js4MNIThPIGyd05DpYhfhmehPea0XGG2Ptv+tyjFogeutcrKjSoS75ftwjCkySp6 ++/NNIxuZMzSgLvWpCz/UXeHPhJ/iGcJfitYgHuNztw== +-----END CERTIFICATE----- + +Certum Trusted Network CA 2 +=========================== +-----BEGIN CERTIFICATE----- +MIIF0jCCA7qgAwIBAgIQIdbQSk8lD8kyN/yqXhKN6TANBgkqhkiG9w0BAQ0FADCBgDELMAkGA1UE +BhMCUEwxIjAgBgNVBAoTGV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kfsmUjxpKEV/q2MYo45VU85FrmxY53/twIDAQABo0IwQDAPBgNVHRMBAf8EBTAD +AQH/MB0GA1UdDgQWBBS2oVQ5AsOgP46KvPrU+Bym0ToO/TAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZI +hvcNAQENBQADggIBAHGlDs7k6b8/ONWJWsQCYftMxRQXLYtPU2sQF/xlhMcQSZDe28cmk4gmb3DW +Al45oPePq5a1pRNcgRRtDoGCERuKTsZPpd1iHkTfCVn0W3cLN+mLIMb4Ck4uWBzrM9DPhmDJ2vuA +L55MYIR4PSFk1vtBHxgP58l1cb29XN40hz5BsA72udY/CROWFC/emh1auVbONTqwX3BNXuMp8SMo +clm2q8KMZiYcdywmdjWLKKdpoPk79SPdhRB0yZADVpHnr7pH1BKXESLjokmUbOe3lEu6LaTaM4tM +pkT/WjzGHWTYtTHkpjx6qFcL2+1hGsvxznN3Y6SHb0xRONbkX8eftoEq5IVIeVheO/jbAoJnwTnb +w3RLPTYe+SmTiGhbqEQZIfCn6IENLOiTNrQ3ssqwGyZ6miUfmpqAnksqP/ujmv5zMnHCnsZy4Ypo +J/HkD7TETKVhk/iXEAcqMCWpuchxuO9ozC1+9eB+D4Kob7a6bINDd82Kkhehnlt4Fj1F4jNy3eFm +ypnTycUm/Q1oBEauttmbjL4ZvrHG8hnjXALKLNhvSgfZyTXaQHXyxKcZb55CEJh15pWLYLztxRLX +is7VmFxWlgPF7ncGNf/P5O4/E2Hu29othfDNrp2yGAlFw5Khchf8R7agCyzxxN5DaAhqXzvwdmP7 +zAYspsbiDrW5viSP +-----END CERTIFICATE----- + +Hellenic Academic and Research Institutions RootCA 2015 +======================================================= +-----BEGIN CERTIFICATE----- +MIIGCzCCA/OgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBpjELMAkGA1UEBhMCR1IxDzANBgNVBAcT +BkF0aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0 +aW9ucy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ekax+0VVFqmjZayc +Bw/qa9wfLgZy7IaIEuQt218FL+TwA9MmM+eAws1CoRc0CwIDAQABo0IwQDAPBgNVHRMBAf8EBTAD +AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUcRVnyMjJvXVdctA4GGqd83EkVAswDQYJKoZI +hvcNAQELBQADggIBAHW7bVRLqhBYRjTyYtcWNl0IXtVsyIe9tC5G8jH4fOpCtZMWVdyhDBKg2mF+ +D1hYc2Ryx+hFjtyp8iY/xnmMsVMIM4GwVhO+5lFc2JsKT0ucVlMC6U/2DWDqTUJV6HwbISHTGzrM +d/K4kPFox/la/vot9L/J9UUbzjgQKjeKeaO04wlshYaT/4mWJ3iBj2fjRnRUjtkNaeJK9E10A/+y +d+2VZ5fkscWrv2oj6NSU4kQoYsRL4vDY4ilrGnB+JGGTe08DMiUNRSQrlrRGar9KC/eaj8GsGsVn +82800vpzY4zvFrCopEYq+OsS7HK07/grfoxSwIuEVPkvPuNVqNxmsdnhX9izjFk0WaSrT2y7Hxjb +davYy5LNlDhhDgcGH0tGEPEVvo2FXDtKK4F5D7Rpn0lQl033DlZdwJVqwjbDG2jJ9SrcR5q+ss7F +Jej6A7na+RZukYT1HCjI/CbM1xyQVqdfbzoEvM14iQuODy+jqk+iGxI9FghAD/FGTNeqewjBCvVt +J94Cj8rDtSvK6evIIVM4pcw72Hc3MKJP2W/R8kCtQXoXxdZKNYm3QdV8hn9VTYNKpXMgwDqvkPGa +JI7ZjnHKe7iG2rKPmT4dEw0SEe7Uq/DpFXYC5ODfqiAeW2GFZECpkJcNrVPSWh2HagCXZWK0vm9q +p/UsQu0yrbYhnr68 +-----END CERTIFICATE----- + +Hellenic Academic and Research Institutions ECC RootCA 2015 +=========================================================== +-----BEGIN CERTIFICATE----- +MIICwzCCAkqgAwIBAgIBADAKBggqhkjOPQQDAjCBqjELMAkGA1UEBhMCR1IxDzANBgNVBAcTBkF0 +aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZ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xa7pO6kO8Rf77IzlhEYt8llvhjho6Tc+hj507wTmzl6NLrT +Qfv6MooqtyuGC2mDOL7Nii4LcK2NJpLuHvUBKwrZ1pebbuCoGRw6IYsMHkCtA+fdZn71uSANA+iW ++YJF1DngoABd15jmfZ5nc8OaKveri6E6FO80vFIOiZiaBECEHX5FaZNXzuvO+FB8TxxuBEOb+dY7 +Ixjp6o7RTUaN8Tvkasq6+yO3m/qZASlaWFot4/nUbQ4mrcFuNLwy+AwF+mWj2zs3gyLp1txyM/1d +8iC9djwj2ij3+RvrWWTV3F9yfiD8zYm1kGdNYno/Tq0dwzn+evQoFt9B9kiABdcPUXmsEKvU7ANm +5mqwujGSQkBqvjrTcuFqN1W8rB2Vt2lh8kORdOag0wokRqEIr9baRRmW1FMdW4R58MD3R++Lj8UG +rp1MYp3/RgT408m2ECVAdf4WqslKYIYvuu8wd+RU4riEmViAqhOLUTpPSPaLtrM= +-----END CERTIFICATE----- + +Amazon Root CA 1 +================ +-----BEGIN CERTIFICATE----- +MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsFADA5MQswCQYD +VQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAxMB4XDTE1 +MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpv +bjEZMBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC +ggEBALJ4gHHKeNXjca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgH +FzZM9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qwIFAGbHrQ +gLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6VOujw5H5SNz/0egwLX0t +dHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L93FcXmn/6pUCyziKrlA4b9v7LWIbxcce +VOF34GfID5yHI9Y/QCB/IIDEgEw+OyQmjgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB +/zAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3 +DQEBCwUAA4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDIU5PM +CCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUsN+gDS63pYaACbvXy +8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vvo/ufQJVtMVT8QtPHRh8jrdkPSHCa +2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2 +xJNDd2ZhwLnoQdeXeGADbkpyrqXRfboQnoZsG4q5WTP468SQvvG5 +-----END CERTIFICATE----- + +Amazon Root CA 2 +================ +-----BEGIN CERTIFICATE----- +MIIFQTCCAymgAwIBAgITBmyf0pY1hp8KD+WGePhbJruKNzANBgkqhkiG9w0BAQwFADA5MQswCQYD +VQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAyMB4XDTE1 +MDUyNjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpv +bjEZMBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC +ggIBAK2Wny2cSkxKgXlRmeyKy2tgURO8TW0G/LAIjd0ZEGrHJgw12MBvIITplLGbhQPDW9tK6Mj4 +kHbZW0/jTOgGNk3Mmqw9DJArktQGGWCsN0R5h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pm/HlurR8FLBOybEfdF849lHqm/osohHUqS0nGkWxr7JOcQ3AWEbW +aQbLU8uz/mtBzUF+fUwPfHJ5elnNXkoOrJupmHN5fLT0zLm4BwyydFy4x2+IoZCn9Kr5v2c69BoV +Yh63n749sSmvZ6ES8lgQGVMDMBu4Gon2nL2XA46jCfMdiyHxtN/kHNGfZQIG6lzWE7OE76KlXIx3 +KadowGuuQNKotOrN8I1LOJwZmhsoVLiJkO/KdYE+HvJkJMcYr07/R54H9jVlpNMKVv/1F2Rs76gi +JUmTtt8AF9pYfl3uxRuw0dFfIRDH+fO6AgonB8Xx1sfT4PsJYGw= +-----END CERTIFICATE----- + +Amazon Root CA 3 +================ +-----BEGIN CERTIFICATE----- +MIIBtjCCAVugAwIBAgITBmyf1XSXNmY/Owua2eiedgPySjAKBggqhkjOPQQDAjA5MQswCQYDVQQG +EwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAzMB4XDTE1MDUy +NjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZ +MBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCmXp8ZB +f8ANm+gBG1bG8lKlui2yEujSLtf6ycXYqm0fc4E7O5hrOXwzpcVOho6AF2hiRVd9RFgdszflZwjr +Zt6jQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBSrttvXBp43 +rDCGB5Fwx5zEGbF4wDAKBggqhkjOPQQDAgNJADBGAiEA4IWSoxe3jfkrBqWTrBqYaGFy+uGh0Psc +eGCmQ5nFuMQCIQCcAu/xlJyzlvnrxir4tiz+OpAUFteMYyRIHN8wfdVoOw== +-----END CERTIFICATE----- + +Amazon Root CA 4 +================ +-----BEGIN CERTIFICATE----- +MIIB8jCCAXigAwIBAgITBmyf18G7EEwpQ+Vxe3ssyBrBDjAKBggqhkjOPQQDAzA5MQswCQYDVQQG +EwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSA0MB4XDTE1MDUy +NjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZ +MBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgNDB2MBAGByqGSM49AgEGBSuBBAAiA2IABNKrijdPo1MN +/sGKe0uoe0ZLY7Bi9i0b2whxIdIA6GO9mif78DluXeo9pcmBqqNbIJhFXRbb/egQbeOc4OO9X4Ri +83BkM6DLJC9wuoihKqB1+IGuYgbEgds5bimwHvouXKNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNV +HQ8BAf8EBAMCAYYwHQYDVR0OBBYEFNPsxzplbszh2naaVvuc84ZtV+WBMAoGCCqGSM49BAMDA2gA +MGUCMDqLIfG9fhGt0O9Yli/W651+kI0rz2ZVwyzjKKlwCkcO8DdZEv8tmZQoTipPNU0zWgIxAOp1 +AE47xDqUEpHJWEadIRNyp4iciuRMStuW1KyLa2tJElMzrdfkviT8tQp21KW8EA== +-----END CERTIFICATE----- + +TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1 +============================================= +-----BEGIN CERTIFICATE----- +MIIEYzCCA0ugAwIBAgIBATANBgkqhkiG9w0BAQsFADCB0jELMAkGA1UEBhMCVFIxGDAWBgNVBAcT +D0dlYnplIC0gS29jYWVsaTFCMEAGA1UEChM5VHVya2l5ZSBCaWxpbXNlbCB2ZSBUZWtub2xvamlr +IEFyYXN0aXJtYSBLdXJ1bXUgLSBUVUJJVEFLMS0wKwYDVQQLEyRLYW11IFNlcnRpZmlrYXN5b24g +TWVya2V6aSAtIEthbXUgU00xNjA0BgNVBAMTLVRVQklUQUsgS2FtdSBTTSBTU0wgS29rIFNlcnRp +ZmlrYXNpIC0gU3VydW0gMTAeFw0xMzExMjUwODI1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YyU7c8jEyVupk+eq1nRZmQnLzf9OxMUP8pI4X8W0j +q5Rm+K37DwhuJi1/FwcJsoz7UMCflo3Ptv0AnVoUmr8CRPXBwp8iXqIPoeM= +-----END CERTIFICATE----- + +GDCA TrustAUTH R5 ROOT +====================== +-----BEGIN CERTIFICATE----- +MIIFiDCCA3CgAwIBAgIIfQmX/vBH6nowDQYJKoZIhvcNAQELBQAwYjELMAkGA1UEBhMCQ04xMjAw +BgNVBAoMKUdVQU5HIERPTkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZIENPLixMVEQuMR8wHQYDVQQD +DBZHRENBIFRydXN0QVVUSCBSNSBST09UMB4XDTE0MTEyNjA1MTMxNVoXDTQwMTIzMTE1NTk1OVow +YjELMAkGA1UEBhMCQ04xMjAwBgNVBAoMKUdVQU5HIERPTkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZ +IENPLixMVEQuMR8wHQYDVQQDDBZHRENBIFRydXN0QVVUSCBSNSBST09UMIICIjANBgkqhkiG9w0B +AQEFAAOCAg8AMIICCgKCAgEA2aMW8Mh0dHeb7zMNOwZ+Vfy1YI92hhJCfVZmPoiC7XJjDp6L3TQs +AlFRwxn9WVSEyfFrs0yw6ehGXTjGoqcuEVe6ghWinI9tsJlKCvLriXBjTnnEt1u9ol2x8kECK62p +OqPseQrsXzrj/e+APK00mxqriCZ7VqKChh/rNYmDf1+uKU49tm7srsHwJ5uu4/Ts765/94Y9cnrr +pftZTqfrlYwiOXnhLQiPzLyRuEH3FMEjqcOtmkVEs7LXLM3GKeJQEK5cy4KOFxg2fZfmiJqwTTQJ +9Cy5WmYqsBebnh52nUpmMUHfP/vFBu8btn4aRjb3ZGM74zkYI+dndRTVdVeSN72+ahsmUPI2JgaQ +xXABZG12ZuGR224HwGGALrIuL4xwp9E7PLOR5G62xDtw8mySlwnNR30YwPO7ng/Wi64HtloPzgsM +R6flPri9fcebNaBhlzpBdRfMK5Z3KpIhHtmVdiBnaM8Nvd/WHwlqmuLMc3GkL30SgLdTMEZeS1SZ +D2fJpcjyIMGC7J0R38IC+xo70e0gmu9lZJIQDSri3nDxGGeCjGHeuLzRL5z7D9Ar7Rt2ueQ5Vfj4 +oR24qoAATILnsn8JuLwwoC8N9VKejveSswoAHQBUlwbgsQfZxw9cZX08bVlX5O2ljelAU58VS6Bx +9hoh49pwBiFYFIeFd3mqgnkCAwEAAaNCMEAwHQYDVR0OBBYEFOLJQJ9NzuiaoXzPDj9lxSmIahlR +MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4ICAQDRSVfg +p8xoWLoBDysZzY2wYUWsEe1jUGn4H3++Fo/9nesLqjJHdtJnJO29fDMylyrHBYZmDRd9FBUb1Ov9 +H5r2XpdptxolpAqzkT9fNqyL7FeoPueBihhXOYV0GkLH6VsTX4/5COmSdI31R9KrO9b7eGZONn35 +6ZLpBN79SWP8bfsUcZNnL0dKt7n/HipzcEYwv1ryL3ml4Y0M2fmyYzeMN2WFcGpcWwlyua1jPLHd ++PwyvzeG5LuOmCd+uh8W4XAR8gPfJWIyJyYYMoSf/wA6E7qaTfRPuBRwIrHKK5DOKcFw9C+df/KQ +HtZa37dG/OaG+svgIHZ6uqbL9XzeYqWxi+7egmaKTjowHz+Ay60nugxe19CxVsp3cbK1daFQqUBD +F8Io2c9Si1vIY9RCPqAzekYu9wogRlR+ak8x8YF+QnQ4ZXMn7sZ8uI7XpTrXmKGcjBBV09tL7ECQ +8s1uV9JiDnxXk7Gnbc2dg7sq5+W2O3FYrf3RRbxake5TFW/TRQl1brqQXR4EzzffHqhmsYzmIGrv +/EhOdJhCrylvLmrH+33RZjEizIYAfmaDDEL0vTSSwxrqT8p+ck0LcIymSLumoRT2+1hEmRSuqguT +aaApJUqlyyvdimYHFngVV3Eb7PVHhPOeMTd61X8kreS8/f3MboPoDKi3QWwH3b08hpcv0g== +-----END CERTIFICATE----- + +SSL.com Root Certification Authority RSA +======================================== +-----BEGIN CERTI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UNiSYE/CUapiVpy8JtynziWV+XrOvvLsi8 +1xtZPCvM8hnIk2snYxnP/Okm+Mpxm3+T/jRnhE6Z6/yzeAkzcLpmpnbtG3PrGqUNxCITIJRWCk4s +bE6x/c+cCbqiM+2HAgMBAAGjYzBhMB0GA1UdDgQWBBTdBAkHovV6fVJTEpKV7jiAJQ2mWTAPBgNV +HRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFN0ECQei9Xp9UlMSkpXuOIAlDaZZMA4GA1UdDwEB/wQE +AwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAIBgRlCn7Jp0cHh5wYfGVcpNxJK1ok1iOMq8bs3AD/CUr +dIWQPXhq9LmLpZc7tRiRux6n+UBbkflVma8eEdBcHadm47GUBwwyOabqG7B52B2ccETjit3E+ZUf +ijhDPwGFpUenPUayvOUiaPd7nNgsPgohyC0zrL/FgZkxdMF1ccW+sfAjRfSda/wZY52jvATGGAsl +u1OJD7OAUN5F7kR/q5R4ZJjT9ijdh9hwZXT7DrkT66cPYakylszeu+1jTBi7qUD3oFRuIIhxdRjq +erQ0cuAjJ3dctpDqhiVAq+8zD8ufgr6iIPv2tS0a5sKFsXQP+8hlAqRSAUfdSSLBv9jra6x+3uxj +MxW3IwiPxg+NQVrdjsW5j+VFP3jbutIbQLH+cU0/4IGiul607BXgk90IH37hVZkLId6Tngr75qNJ +vTYw/ud3sqB1l7UtgYgXZSD32pAAn8lSzDLKNXz1PQ/YK9f1JmzJBjSWFupwWRoyeXkLtoh/D1JI +Pb9s2KJELtFOt3JY04kTlf5Eq/jXixtunLwsoFvVagCvXzfh1foQC5ichucmj87w7G6KVwuA406y +wKBjYZC6VWg3dGq2ktufoYYitmUnDuy2n0Jg5GfCtdpBC8TTi2EbvPofkSvXRAdeuims2cXp71NI +WuuA8ShYIc2wBlX7Jz9TkHCpBB5XJ7k= +-----END CERTIFICATE----- + +SSL.com Root Certification Authority ECC +======================================== +-----BEGIN CERTIFICATE----- +MIICjTCCAhSgAwIBAgIIdebfy8FoW6gwCgYIKoZIzj0EAwIwfDELMAkGA1UEBhMCVVMxDjAMBgNV +BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24xMTAv +BgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBFQ0MwHhcNMTYwMjEy +MTgxNDAzWhcNNDEwMjEyMTgxNDAzWjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMxEDAO +BgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NMLmNv +bSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IEVDQzB2MBAGByqGSM49AgEGBSuBBAAiA2IA +BEVuqVDEpiM2nl8ojRfLliJkP9x6jh3MCLOicSS6jkm5BBtHllirLZXI7Z4INcgn64mMU1jrYor+ +8FsPazFSY0E7ic3s7LaNGdM0B9y7xgZ/wkWV7Mt/qCPgCemB+vNH06NjMGEwHQYDVR0OBBYEFILR +hXMw5zUE044CkvvlpNHEIejNMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUgtGFczDnNQTT +jgKS++Wk0cQh6M0wDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2cAMGQCMG/n61kRpGDPYbCW +e+0F+S8Tkdzt5fxQaxFGRrMcIQBiu77D5+jNB5n5DQtdcj7EqgIwH7y6C+IwJPt8bYBVCpk+gA0z +5Wajs6O7pdWLjwkspl1+4vAHCGht0nxpbl/f5Wpl +-----END CERTIFICATE----- + +SSL.com EV Root Certification Authority RSA R2 +============================================== +-----BEGIN CERTIFICATE----- +MIIF6zCCA9OgAwIBAgIIVrYpzTS8ePYwDQYJKoZIhvcNAQELBQAwgYIxCzAJBgNVBAYTAlVTMQ4w +DAYDVQQIDAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjEYMBYG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EwDwYDVR0TAQH/BAUwAwEB/zAfBgNV +HSMEGDAWgBT5YLvU49U09rj1BoAlp3PbRmmonjAdBgNVHQ4EFgQU+WC71OPVNPa49QaAJadz20Zp +qJ4wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4ICAQBWs47LCp1Jjr+kxJG7ZhcFUZh1 +++VQLHqe8RT6q9OKPv+RKY9ji9i0qVQBDb6Thi/5Sm3HXvVX+cpVHBK+Rw82xd9qt9t1wkclf7nx +Y/hoLVUE0fKNsKTPvDxeH3jnpaAgcLAExbf3cqfeIg29MyVGjGSSJuM+LmOW2puMPfgYCdcDzH2G +guDKBAdRUNf/ktUM79qGn5nX67evaOI5JpS6aLe/g9Pqemc9YmeuJeVy6OLk7K4S9ksrPJ/psEDz +OFSz/bdoyNrGj1E8svuR3Bznm53htw1yj+KkxKl4+esUrMZDBcJlOSgYAsOCsp0FvmXtll9ldDz7 +CTUue5wT/RsPXcdtgTpWD8w74a8CLyKsRspGPKAcTNZEtF4uXBVmCeEmKf7GUmG6sXP/wwyc5Wxq +lD8UykAWlYTzWamsX0xhk23RO8yilQwipmdnRC652dKKQbNmC1r7fSOl8hqw/96bg5Qu0T/fkreR +rwU7ZcegbLHNYhLDkBvjJc40vG93drEQw/cFGsDWr3RiSBd3kmmQYRzelYB0VI8YHMPzA9C/pEN1 +hlMYegouCRw2n5H9gooiS9EOUCXdywMMF8mDAAhONU2Ki+3wApRmLER/y5UnlhetCTCstnEXbosX +9hwJ1C07mKVx01QT2WDz9UtmT/rx7iASjbSsV7FFY6GsdqnC+w== +-----END CERTIFICATE----- + +SSL.com EV Root Certification Authority ECC +=========================================== +-----BEGIN CERTIFICATE----- +MIIClDCCAhqgAwIBAgIILCmcWxbtBZUwCgYIKoZIzj0EAwIwfzELMAkGA1UEBhMCVVMxDjAMBgNV +BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24xNDAy +B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d5Mr6155wsTLxDKZmOMNOsIeDjHfrY +BzN2VAAiKrlNIC5waNrlU/yDXNOd8v9EDERm8tLjvUYAGm0CuiVdjaExUd1URhxN25mW7xocBFym +Fe944Hn+Xds+qkxV/ZoVqW/hpvvfcDDpw+5CRu3CkwWJ+n1jez/QcYF8AOiYrg54NMMl+68KnyBr +3TsTjxKM4kEaSHpzoHdpx7Zcf4LIHv5YGygrqGytXm3ABdJ7t+uA/iU3/gKbaKxCXcPu9czc8FB1 +0jZpnOZ7BN9uBmm23goJSFmH63sUYHpkqmlD75HHTOwY3WzvUy2MmeFe8nI+z1TIvWfspA9MRf/T +uTAjB0yPEL+GltmZWrSZVxykzLsViVO6LAUP5MSeGbEYNNVMnbrt9x+vJJUEeKgDu+6B5dpffItK +oZB0JaezPkvILFa9x8jvOOJckvB595yEunQtYQEgfn7R8k8HWV+LLUNS60YMlOH1Zkd5d9VUWx+t +JDfLRVpOoERIyNiwmcUVhAn21klJwGW45hpxbqCo8YLoRT5s1gLXCmeDBVrJpBA= +-----END CERTIFICATE----- + +OISTE WISeKey Global Root GC CA +=============================== +-----BEGIN CERTIFICATE----- +MIICaTCCAe+gAwIBAgIQISpWDK7aDKtARb8roi066jAKBggqhkjOPQQDAzBtMQswCQYDVQQGEwJD +SDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNlZDEo +MCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQyBDQTAeFw0xNzA1MDkwOTQ4MzRa +Fw00MjA1MDkwOTU4MzNaMG0xCzAJBgNVBAYTAkNIMRAwDgYDVQQKEwdXSVNlS2V5MSIwIAYDVQQL +ExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5IEdsb2Jh +bCBSb290IEdDIENBMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAETOlQwMYPchi82PG6s4nieUqjFq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JBJYoaMVLuCaJu9YzL1DV/pqJuhgyklTGW+Cd+V7lDSKb9triyCGyYiGqhkCyLmTTX8jjfhFn +RR8F/uOi77Oos/N9j/gMHyIfLXC0uAE0djAA5SN4p1bXUB+K+wb1whnw0A== +-----END CERTIFICATE----- + +UCA Extended Validation Root +============================ +-----BEGIN CERTIFICATE----- +MIIFWjCCA0KgAwIBAgIQT9Irj/VkyDOeTzRYZiNwYDANBgkqhkiG9w0BAQsFADBHMQswCQYDVQQG +EwJDTjERMA8GA1UECgwIVW5pVHJ1c3QxJTAjBgNVBAMMHFVDQSBFeHRlbmRlZCBWYWxpZGF0aW9u +IFJvb3QwHhcNMTUwMzEzMDAwMDAwWhcNMzgxMjMxMDAwMDAwWjBHMQswCQYDVQQGEwJDTjERMA8G +A1UECgwIVW5pVHJ1c3QxJTAjBgNVBAMMHFVDQSBFeHRlbmRlZCBWYWxpZGF0aW9uIFJvb3QwggIi +MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCpCQcoEwKwmeBkqh5DFnpzsZGgdT6o+uM4AHrs +iWogD4vFsJszA1qGxliG1cGFu0/GnEBNyr7uaZa4rYEwmnySBesFK5pI0Lh2PpbIILvSsPGP2KxF +Rv+qZ2C0d35qHzwaUnoEPQc8hQ2E0B92CvdqFN9y4zR8V05WAT558aopO2z6+I9tTcg1367r3CTu +eUWnhbYFiN6IXSV8l2RnCdm/WhUFhvMJHuxYMjMR83dksHYf5BA1FxvyDrFspCqjc/wJHx4yGVMR +59mzLC52LqGj3n5qiAno8geK+LLNEOfic0CTuwjRP+H8C5SzJe98ptfRr5//lpr1kXuYC3fUfugH +0mK1lTnj8/FtDw5lhIpjVMWAtuCeS31HJqcBCF3RiJ7XwzJE+oJKCmhUfzhTA8ykADNkUVkLo4KR +el7sFsLzKuZi2irbWWIQJUoqgQtHB0MGcIfS+pMRKXpITeuUx3BNr2fVUbGAIAEBtHoIppB/TuDv +B0GHr2qlXov7z1CymlSvw4m6WC31MJixNnI5fk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j1KjL0= +-----END CERTIFICATE----- + +emSign Root CA - G1 +=================== +-----BEGIN CERTIFICATE----- +MIIDlDCCAnygAwIBAgIKMfXkYgxsWO3W2DANBgkqhkiG9w0BAQsFADBnMQswCQYDVQQGEwJJTjET +MBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRl +ZDEcMBoGA1UEAxMTZW1TaWduIFJvb3QgQ0EgLSBHMTAeFw0xODAyMTgxODMwMDBaFw00MzAyMTgx +ODMwMDBaMGcxCzAJBgNVBAYTAklOMRMwEQYDVQQLEwplbVNpZ24gUEtJMSUwIwYDVQQKExxlTXVk +aHJhIFRlY2hub2xvZ2llcyBMaW1pdGVkMRwwGgYDVQQDExNlbVNpZ24gUm9vdCBDQSAtIEcxMIIB +IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAk0u76WaK7p1b1TST0Bsew+eeuGQzf2N4aLTN +LnF115sgxk0pvLZoYIr3IZpWNVrzdr3YzZr/k1ZLpVkGoZM0Kd0WNHVO8oG0x5ZOrRkVUkr+PHB1 +cM2vK6sVmjM8qrOLqs1D/fXqcP/tzxE7lM5OMhbTI0Aqd7OvPAEsbO2ZLIvZTmmYsvePQbAyeGHW +DV/D+qJAkh1cF+ZwPjXnorfCYuKrpDhMtTk1b+oDafo6VGiFbdbyL0NVHpENDtjVaqSW0RM8LHhQ +6DqS0hdW5TUaQBw+jSztOd9C4INBdN+jzcKGYEho42kLVACL5HZpIQ15TjQIXhTCzLG3rdd8cIrH +hQIDAQABo0IwQDAdBgNVHQ4EFgQU++8Nhp6w492pufEhF38+/PB3KxowDgYDVR0PAQH/BAQDAgEG +MA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAFn/8oz1h31xPaOfG1vR2vjTnGs2 +vZupYeveFix0PZ7mddrXuqe8QhfnPZHr5X3dPpzxz5KsbEjMwiI/aTvFthUvozXGaCocV685743Q +NcMYDHsAVhzNixl03r4PEuDQqqE/AjSxcM6dGNYIAwlG7mDgfrbESQRRfXBgvKqy/3lyeqYdPV8q ++Mri/Tm3R7nrft8EI6/6nAYH6ftjk4BAtcZsCjEozgyfz7MjNYBBjWzEN3uBL4ChQEKF6dk4jeih +U80Bv2noWgbyRQuQ+q7hv53yrlc8pa6yVvSLZUDp/TGBLPQ5Cdjua6e0ph0VpZj3AYHYhX3zUVxx +iN66zB+Afko= +-----END CERTIFICATE----- + +emSign ECC Root CA - G3 +======================= +-----BEGIN CERTIFICATE----- +MIICTjCCAdOgAwIBAgIKPPYHqWhwDtqLhDAKBggqhkjOPQQDAzBrMQswCQYDVQQGEwJJTjETMBEG +A1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEg +MB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0gRzMwHhcNMTgwMjE4MTgzMDAwWhcNNDMwMjE4 +MTgzMDAwWjBrMQswCQYDVQQGEwJJTjETMBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11 +ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEgMB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0g +RzMwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQjpQy4LRL1KPOxst3iAhKAnjlfSU2fySU0WXTsuwYc +58Byr+iuL+FBVIcUqEqy6HyC5ltqtdyzdc6LBtCGI79G1Y4PPwT01xySfvalY8L1X44uT6EYGQIr +MgqCZH0Wk9GjQjBAMB0GA1UdDgQWBBR8XQKEE9TMipuBzhccLikenEhjQjAOBgNVHQ8BAf8EBAMC +AQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNpADBmAjEAvvNhzwIQHWSVB7gYboiFBS+D +CBeQyh+KTOgNG3qxrdWBCUfvO6wIBHxcmbHtRwfSAjEAnbpV/KlK6O3t5nYBQnvI+GDZjVGLVTv7 +jHvrZQnD+JbNR6iC8hZVdyR+EhCVBCyj +-----END CERTIFICATE----- + +emSign Root CA - C1 +=================== +-----BEGIN CERTIFICATE----- +MIIDczCCAlugAwIBAgILAK7PALrEzzL4Q7IwDQYJKoZIhvcNAQELBQAwVjELMAkGA1UEBhMCVVMx +EzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMRwwGgYDVQQDExNlbVNp +Z24gUm9vdCBDQSAtIEMxMB4XDTE4MDIxODE4MzAwMFoXDTQzMDIxODE4MzAwMFowVjELMAkGA1UE +BhMCVVMxEzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMRwwGgYDVQQD +ExNlbVNpZ24gUm9vdCBDQSAtIEMxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAz+up +ufGZBczYKCFK83M0UYRWEPWgTywS4/oTmifQz/l5GnRfHXk5/Fv4cI7gklL35CX5VIPZHdPIWoU/ +Xse2B+4+wM6ar6xWQio5JXDWv7V7Nq2s9nPczdcdioOl+yuQFTdrHCZH3DspVpNqs8FqOp099cGX +OFgFixwR4+S0uF2FHYP+eF8LRWgYSKVGczQ7/g/IdrvHGPMF0Ybzhe3nudkyrVWIzqa2kbBPrH4V +I5b2P/AgNBbeCsbEBEV5f6f9vtKppa+cxSMq9zwhbL2vj07FOrLzNBL834AaSaTUqZX3noleooms +lMuoaJuvimUnzYnu3Yy1aylwQ6BpC+S5DwIDAQABo0IwQDAdBgNVHQ4EFgQU/qHgcB4qAzlSWkK+ +XJGFehiqTbUwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQAD +ggEBAMJKVvoVIXsoounlHfv4LcQ5lkFMOycsxGwYFYDGrK9HWS8mC+M2sO87/kOXSTKZEhVb3xEp +/6tT+LvBeA+snFOvV71ojD1pM/CjoCNjO2RnIkSt1XHLVip4kqNPEjE2NuLe/gDEo2APJ62gsIq1 +NnpSob0n9CAnYuhNlCQT5AoE6TyrLshDCUrGYQTlSTR+08TI9Q/Aqum6VF7zYytPT1DU/rl7mYw9 +wC68AivTxEDkigcxHpvOJpkT+xHqmiIMERnHXhuBUDDIlhJu58tBf5E7oke3VIAb3ADMmpDqw8NQ +BmIMMMAVSKeoWXzhriKi4gp6D/piq1JM4fHfyr6DDUI= +-----END CERTIFICATE----- + +emSign ECC Root CA - C3 +======================= +-----BEGIN CERTIFICATE----- +MIICKzCCAbGgAwIBAgIKe3G2gla4EnycqDAKBggqhkjOPQQDAzBaMQswCQYDVQQGEwJVUzETMBEG +A1UECxMKZW1TaWduIFBLSTEUMBIGA1UEChMLZU11ZGhyYSBJbmMxIDAeBgNVBAMTF2VtU2lnbiBF +Q0MgUm9vdCBDQSAtIEMzMB4XDTE4MDIxODE4MzAwMFoXDTQzMDIxODE4MzAwMFowWjELMAkGA1UE +BhMCVVMxEzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMSAwHgYDVQQD +ExdlbVNpZ24gRUNDIFJvb3QgQ0EgLSBDMzB2MBAGByqGSM49AgEGBSuBBAAiA2IABP2lYa57JhAd +6bciMK4G9IGzsUJxlTm801Ljr6/58pc1kjZGDoeVjbk5Wum739D+yAdBPLtVb4OjavtisIGJAnB9 +SMVK4+kiVCJNk7tCDK93nCOmfddhEc5lx/h//vXyqaNCMEAwHQYDVR0OBBYEFPtaSNCAIEDyqOkA +B2kZd6fmw/TPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49BAMDA2gA +MGUCMQC02C8Cif22TGK6Q04ThHK1rt0c3ta13FaPWEBaLd4gTCKDypOofu4SQMfWh0/434UCMBwU +ZOR8loMRnLDRWmFLpg9J0wD8ofzkpf9/rdcw0Md3f76BB1UwUCAU9Vc4CqgxUQ== +-----END CERTIFICATE----- + +Hongkong Post Root CA 3 +======================= +-----BEGIN CERTIFICATE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sG +xVd7GYYKecsAyVKvQv83j+GjHno9UKtjBucVtT+2RTeUN7F+8kjDf8V1/peNRY8apxpyKBpADwID +AQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAfBgNVHSMEGDAWgBQXnc0e +i9Y5K3DTXNSguB+wAPzFYTAdBgNVHQ4EFgQUF53NHovWOStw01zUoLgfsAD8xWEwDQYJKoZIhvcN +AQELBQADggIBAFbVe27mIgHSQpsY1Q7XZiNc4/6gx5LS6ZStS6LG7BJ8dNVI0lkUmcDrudHr9Egw +W62nV3OZqdPlt9EuWSRY3GguLmLYauRwCy0gUCCkMpXRAJi70/33MvJJrsZ64Ee+bs7Lo3I6LWld +y8joRTnU+kLBEUx3XZL7av9YROXrgZ6voJmtvqkBZss4HTzfQx/0TW60uhdG/H39h4F5ag0zD/ov ++BS5gLNdTaqX4fnkGMX41TiMJjz98iji7lpJiCzfeT2OnpA8vUFKOt1b9pq0zj8lMH8yfaIDlNDc +eqFS3m6TjRgm/VWsvY+b0s+v54Ysyx8Jb6NvqYTUc79NoXQbTiNg8swOqn+knEwlqLJmOzj/2ZQw +9nKEvmhVEA/GcywWaZMH/rFF7buiVWqw2rVKAiUnhde3t4ZEFolsgCs+l6mc1X5VTMbeRRAc6uk7 +nwNT7u56AQIWeNTowr5GdogTPyK7SBIdUgC0An4hGh6cJfTzPV4e0hz5sy229zdcxsshTrD3mUcY +hcErulWuBurQB7Lcq9CClnXO0lD+mefPL5/ndtFhKvshuzHQqp9HpLIiyhY6UFfEW0NnxWViA0kB +60PZ2Pierc+xYw5F9KBaLJstxabArahH9CdMOA0uG0k7UvToiIMrVCjU8jVStDKDYmlkDJGcn5fq +dBb9HxEGmpv0 +-----END CERTIFICATE----- + +Microsoft ECC Root Certificate Authority 2017 +============================================= +-----BEGIN CERTIFICATE----- +MIICWTCCAd+gAwIBAgIQZvI9r4fei7FK6gxXMQHC7DAKBggqhkjOPQQDAzBlMQswCQYDVQQGEwJV +UzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYwNAYDVQQDEy1NaWNyb3NvZnQgRUND +IFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcwHhcNMTkxMjE4MjMwNjQ1WhcNNDIwNzE4 +MjMxNjA0WjBlMQswCQYDVQQGEwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYw +NAYDVQQDEy1NaWNyb3NvZnQgRUNDIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcwdjAQ +BgcqhkjOPQIBBgUrgQQAIgNiAATUvD0CQnVBEyPNgASGAlEvaqiBYgtlzPbKnR5vSmZRogPZnZH6 +thaxjG7efM3beaYvzrvOcS/lpaso7GMEZpn4+vKTEAXhgShC48Zo9OYbhGBKia/teQ87zvH2RPUB +eMCjVDBSMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTIy5lycFIM ++Oa+sgRXKSrPQhDtNTAQBgkrBgEEAYI3FQEEAwIBADAKBggqhkjOPQQDAwNoADBlAjBY8k3qDPlf +Xu5gKcs68tvWMoQZP3zVL8KxzJOuULsJMsbG7X7JNpQS5GiFBqIb0C8CMQCZ6Ra0DvpWSNSkMBaR +eNtUjGUBiudQZsIxtzm6uBoiB078a1QWIP8rtedMDE2mT3M= +-----END CERTIFICATE----- + +Microsoft RSA Root Certificate Authority 2017 +============================================= +-----BEGIN CERTIFICATE----- +MIIFqDCCA5CgAwIBAgIQHtOXCV/YtLNHcB6qvn9FszANBgkqhkiG9w0BAQwFADBlMQswCQYDVQQG +EwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYwNAYDVQQDEy1NaWNyb3NvZnQg +UlNBIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcwHhcNMTkxMjE4MjI1MTIyWhcNNDIw +NzE4MjMwMDIzWjBlMQ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UtMjM1ODQ0OTcxHjAcBgNVBAMMFWUtU3pp +Z25vIFJvb3QgQ0EgMjAxNzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJbcPYrYsHtvxie+RJCx +s1YVe45DJH0ahFnuY2iyxl6H0BVIHqiQrb1TotreOpCmYF9oMrWGQd+HWyx7xf58etqjYzBhMA8G +A1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSHERUI0arBeAyxr87GyZDv +vzAEwDAfBgNVHSMEGDAWgBSHERUI0arBeAyxr87GyZDvvzAEwDAKBggqhkjOPQQDAgNJADBGAiEA +tVfd14pVCzbhhkT61NlojbjcI4qKDdQvfepz7L9NbKgCIQDLpbQS+ue16M9+k/zzNY9vTlp8tLxO +svxyqltZ+efcMQ== +-----END CERTIFICATE----- + +certSIGN Root CA G2 +=================== +-----BEGIN CERTIFICATE----- +MIIFRzCCAy+gAwIBAgIJEQA0tk7GNi02MA0GCSqGSIb3DQEBCwUAMEExCzAJBgNVBAYTAlJPMRQw +EgYDVQQKEwtDRVJUU0lHTiBTQTEcMBoGA1UECxMTY2VydFNJR04gUk9PVCBDQSBHMjAeFw0xNzAy +MDYwOTI3MzVaFw00MjAyMDYwOTI3MzVaMEExCzAJBgNVBAYTAlJPMRQwEgYDVQQKEwtDRVJUU0lH +TiBTQTEcMBoGA1UECxMTY2VydFNJR04gUk9PVCBDQSBHMjCCAiIwDQYJKoZIhvcNAQEBBQADggIP +ADCCAgoCggIBAMDFdRmRfUR0dIf+DjuW3NgBFszuY5HnC2/OOwppGnzC46+CjobXXo9X69MhWf05 +N0IwvlDqtg+piNguLWkh59E3GE59kdUWX2tbAMI5Qw02hVK5U2UPHULlj88F0+7cDBrZuIt4Imfk +abBoxTzkbFpG583H+u/E7Eu9aqSs/cwoUe+StCmrqzWaTOTECMYmzPhpn+Sc8CnTXPnGFiWeI8Mg +wT0PPzhAsP6CRDiqWhqKa2NYOLQV07YRaXseVO6MGiKscpc/I1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pXdYaXHmgwo38oZJar55CJD2AhZkPuXaTH4M +NMn5X7azKFGnpyuqSfqNZSlO42sTp5SjLVFteAxEy9/eCG/Oo2Sr05WE1LlSVHJ7liXMvGnjSG4N +0MedJ5qq+BOS3R7fY581qRY27Iy4g/Q9iY/NtBde17MXQRBdJ3NghVdJIgc= +-----END CERTIFICATE----- + +NAVER Global Root Certification Authority +========================================= +-----BEGIN CERTIFICATE----- +MIIFojCCA4qgAwIBAgIUAZQwHqIL3fXFMyqxQ0Rx+NZQTQ0wDQYJKoZIhvcNAQEMBQAwaTELMAkG +A1UEBhMCS1IxJjAkBgNVBAoMHU5BVkVSIEJVU0lORVNTIFBMQVRGT1JNIENvcnAuMTIwMAYDVQQD +DClOQVZFUiBHbG9iYWwgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0xNzA4MTgwODU4 +NDJaFw0zNzA4MTgyMzU5NTlaMGkxCzAJBgNVBAYTAktSMSYwJAYDVQQKDB1OQVZFUiBCVVNJTkVT +UyBQTEFURk9STSBDb3JwLjEyMDAGA1UEAwwpTkFWRVIgR2xvYmFsIFJvb3QgQ2VydGlmaWNhdGlv +biBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC21PGTXLVAiQqrDZBb +UGOukJR0F0Vy1ntlWilLp1agS7gvQnXp2XskWjFlqxcX0TM62RHcQDaH38dq6SZeWYp34+hInDEW ++j6RscrJo+KfziFTowI2MMtSAuXaMl3Dxeb57hHHi8lEHoSTGEq0n+USZGnQJoViAbbJAh2+g1G7 +XNr4rRVqmfeSVPc0W+m/6imBEtRTkZazkVrd/pBzKPswRrXKCAfHcXLJZtM0l/aM9BhK4dA9WkW2 +aacp+yPOiNgSnABIqKYPszuSjXEOdMWLyEz59JuOuDxp7W87UC9Y7cSw0BwbagzivESq2M0UXZR4 +Yb8ObtoqvC8MC3GmsxY/nOb5zJ9TNeIDoKAYv7vxvvTWjIcNQvcGufFt7QSUqP620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bet9r1ke8LJaDmg +kpzNNIaRkPpkUZ3+/uul9XXeifdy +-----END CERTIFICATE----- + +AC RAIZ FNMT-RCM SERVIDORES SEGUROS +=================================== +-----BEGIN CERTIFICATE----- +MIICbjCCAfOgAwIBAgIQYvYybOXE42hcG2LdnC6dlTAKBggqhkjOPQQDAzB4MQswCQYDVQQGEwJF +UzERMA8GA1UECgwIRk5NVC1SQ00xDjAMBgNVBAsMBUNlcmVzMRgwFgYDVQRhDA9WQVRFUy1RMjgy +NjAwNEoxLDAqBgNVBAMMI0FDIFJBSVogRk5NVC1SQ00gU0VSVklET1JFUyBTRUdVUk9TMB4XDTE4 +MTIyMDA5MzczM1oXDTQzMTIyMDA5MzczM1oweDELMAkGA1UEBhMCRVMxETAPBgNVBAoMCEZOTVQt +UkNNMQ4wDAYDVQQLDAVDZXJlczEYMBYGA1UEYQwPVkFURVMtUTI4MjYwMDRKMSwwKgYDVQQDDCNB +QyBSQUlaIEZOTVQtUkNNIFNFUlZJRE9SRVMgU0VHVVJPUzB2MBAGByqGSM49AgEGBSuBBAAiA2IA +BPa6V1PIyqvfNkpSIeSX0oNnnvBlUdBeh8dHsVnyV0ebAAKTRBdp20LHsbI6GA60XYyzZl2hNPk2 +LEnb80b8s0RpRBNm/dfF/a82Tc4DTQdxz69qBdKiQ1oKUm8BA06Oi6NCMEAwDwYDVR0TAQH/BAUw +AwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFAG5L++/EYZg8k/QQW6rcx/n0m5JMAoGCCqG +SM49BAMDA2kAMGYCMQCuSuMrQMN0EfKVrRYj3k4MGuZdpSRea0R7/DjiT8ucRRcRTBQnJlU5dUoD +zBOQn5ICMQD6SmxgiHPz7riYYqnOK8LZiqZwMR2vsJRM60/G49HzYqc8/5MuB1xJAWdpEgJyv+c= +-----END CERTIFICATE----- + +GlobalSign Root R46 +=================== +-----BEGIN CERTIFICATE----- +MIIFWjCCA0KgAwIBAgISEdK7udcjGJ5AXwqdLdDfJWf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24gbnYtc2ExHDAaBgNVBAMTE0dsb2JhbFNpZ24gUm9vdCBFNDYwdjAQBgcq +hkjOPQIBBgUrgQQAIgNiAAScDrHPt+ieUnd1NPqlRqetMhkytAepJ8qUuwzSChDH2omwlwxwEwkB +jtjqR+q+soArzfwoDdusvKSGN+1wCAB16pMLey5SnCNoIwZD7JIvU4Tb+0cUB+hflGddyXqBPCCj +QjBAMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBQxCpCPtsad0kRL +gLWi5h+xEk8blTAKBggqhkjOPQQDAwNoADBlAjEA31SQ7Zvvi5QCkxeCmb6zniz2C5GMn0oUsfZk +vLtoURMMA/cVi4RguYv/Uo7njLwcAjA8+RHUjE7AwWHCFUyqqx0LMV87HOIAl0Qx5v5zli/altP+ +CAezNIm8BZ/3Hobui3A= +-----END CERTIFICATE----- + +ANF Secure Server Root CA +========================= +-----BEGIN CERTIFICATE----- +MIIF7zCCA9egAwIBAgIIDdPjvGz5a7EwDQYJKoZIhvcNAQELBQAwgYQxEjAQBgNVBAUTCUc2MzI4 +NzUxMDELMAkGA1UEBhMCRVMxJzAlBgNVBAoTHkFORiBBdXRvcmlkYWQgZGUgQ2VydGlmaWNhY2lv +bjEUMBIGA1UECxMLQU5GIENBIFJhaXoxIjAgBgNVBAMTGUFORiBTZWN1cmUgU2VydmVyIFJvb3Qg +Q0EwHhcNMTkwOTA0MTAwMDM4WhcNMzkwODMwMTAwMDM4WjCBhDESMBAGA1UEBRMJRzYzMjg3NTEw +MQswCQYDVQQGEwJFUzEnMCUGA1UEChMeQU5GIEF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uMRQw +EgYDVQQLEwtBTkYgQ0EgUmFpejEiMCAGA1UEAxMZQU5GIFNlY3VyZSBTZXJ2ZXIgUm9vdCBDQTCC +AiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANvrayvmZFSVgpCjcqQZAZ2cC4Ffc0m6p6zz +B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9MwFsSBXXiJCZBMXM +5gf0vPSQ7RPi6ovDj6MzD8EpTBNO2hVWcXNyglD2mjN8orGoGjR0ZVzO0eurU+AagNjqOknkJjCb +5RyKqKkVMoaZkgoQI1YS4PbOTOK7vtuNknMBZi9iPrJyJ0U27U1W45eZ/zo1PqVUSlJZS2Db7v54 +EX9K3BR5YLZrZAPbFYPhor72I5dQ8AkzNqdxliXzuUJ92zg/LFis6ELhDtjTO0wugumDLmsx2d1H +hk9tl5EuT+IocTUW0fJz/iUrB0ckYyfI+PbZa/wSMVYIwFNCr5zQM378BvAxRAMU8Vjq8moNqRGy +g77FGr8H6lnco4g175x2MjxNBiLOFeXdntiP2t7SxDnlF4HPOEfrf4htWRvfn0IUrn7PqLBmZdo3 +r5+qPeoott7VMVgWglvquxl1AnMaykgaIZOQCo6ThKd9OyMYkomgjaw= +-----END CERTIFICATE----- + +Certum EC-384 CA +================ +-----BEGIN CERTIFICATE----- +MIICZTCCAeugAwIBAgIQeI8nXIESUiClBNAt3bpz9DAKBggqhkjOPQQDAzB0MQswCQYDVQQGEwJQ +TDEhMB8GA1UEChMYQXNzZWNvIERhdGEgU3lzdGVtcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2Vy +dGlmaWNhdGlvbiBBdXRob3JpdHkxGTAXBgNVBAMTEENlcnR1bSBFQy0zODQgQ0EwHhcNMTgwMzI2 +MDcyNDU0WhcNNDMwMzI2MDcyNDU0WjB0MQswCQYDVQQGEwJQTDEhMB8GA1UEChMYQXNzZWNvIERh +dGEgU3lzdGVtcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkx +GTAXBgNVBAMTEENlcnR1bSBFQy0zODQgQ0EwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAATEKI6rGFtq +vm5kN2PkzeyrOvfMobgOgknXhimfoZTy42B4mIF4Bk3y7JoOV2CDn7TmFy8as10CW4kjPMIRBSqn +iBMY81CE1700LCeJVf/OTOffph8oxPBUw7l8t1Ot68KjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYD +VR0OBBYEFI0GZnQkdjrzife81r1HfS+8EF9LMA4GA1UdDwEB/wQEAwIBBjAKBggqhkjOPQQDAwNo +ADBlAjADVS2m5hjEfO/JUG7BJw+ch69u1RsIGL2SKcHvlJF40jocVYli5RsJHrpka/F2tNQCMQC0 +QoSZ/6vnnvuRlydd3LBbMHHOXjgaatkl5+r3YZJW+OraNsKHZZYuciUvf9/DE8k= +-----END CERTIFICATE----- + +Certum Trusted Root CA +====================== +-----BEGIN CERTIFICATE----- +MIIFwDCCA6igAwIBAgIQHr9ZULjJgDdMBvfrVU+17TANBgkqhkiG9w0BAQ0FADB6MQswCQYDVQQG +EwJQTDEhMB8GA1UEChMYQXNzZWNvIERhdGEgU3lzdGVtcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0g +Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkxHzAdBgNVBAMTFkNlcnR1bSBUcnVzdGVkIFJvb3QgQ0Ew +HhcNMTgwMzE2MTIxMDEzWhcNNDMwMzE2MTIxMDEzWjB6MQswCQYDVQQGEwJQTDEhMB8GA1UEChMY +QXNzZWNvIERhdGEgU3lzdGVtcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlvbiBB +dXRob3JpdHkxHzAdBgNVBAMTFkNlcnR1bSBUcnVzdGVkIFJvb3QgQ0EwggIiMA0GCSqGSIb3DQEB +AQUAA4ICDwAwggIKAoICAQDRLY67tzbqbTeRn06TpwXkKQMlzhyC93yZn0EGze2jusDbCSzBfN8p +fktlL5On1AFrAygYo9idBcEq2EXxkd7fO9CAAozPOA/qp1x4EaTByIVcJdPTsuclzxFUl6s1wB52 +HO8AU5853BSlLCIls3Jy/I2z5T4IHhQqNwuIPMqw9MjCoa68wb4pZ1Xi/K1ZXP69VyywkI3C7Te2 +fJmItdUDmj0VDT06qKhF8JVOJVkdzZhpu9PMMsmN74H+rX2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JyboTT0GFMDcx2V+IthSIVNg3r +AZ3r2OvEhJn7wAzMMujjd9qDRIueVSjAi1jTkD5OGwDxFa2DK5o= +-----END CERTIFICATE----- + +HARICA TLS RSA Root CA 2021 +=========================== +-----BEGIN CERTIFICATE----- +MIIFpDCCA4ygAwIBAgIQOcqTHO9D88aOk8f0ZIk4fjANBgkqhkiG9w0BAQsFADBsMQswCQYDVQQG +EwJHUjE3MDUGA1UECgwuSGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9u +cyBDQTEkMCIGA1UEAwwbSEFSSUNBIFRMUyBSU0EgUm9vdCBDQSAyMDIxMB4XDTIxMDIxOTEwNTUz +OFoXDTQ1MDIxMzEwNTUzN1owbDELMAkGA1UEBhMCR1IxNzA1BgNVBAoMLkhlbGxlbmljIEFjYWRl +bWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ0ExJDAiBgNVBAMMG0hBUklDQSBUTFMgUlNB +IFJvb3QgQ0EgMjAyMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAIvC569lmwVnlskN +JLnQDmT8zuIkGCyEf3dRywQRNrhe7Wlxp57kJQmXZ8FHws+RFjZiPTgE4VGC/6zStGndLuwRo0Xu +a2s7TL+MjaQenRG56Tj5eg4MmOIjHdFOY9TnuEFE+2uva9of08WRiFukiZLRgeaMOVig1mlDqa2Y +Ulhu2wr7a89o+uOkXjpFc5gH6l8Cct4MpbOfrqkdtx2z/IpZ525yZa31MJQjB/OCFks1mJxTuy/K +5FrZx40d/JiZ+yykgmvwKh+OC19xXFyuQnspiYHLA6OZyoieC0AJQTPb5lh6/a6ZcMBaD9YThnEv +dmn8kN3bLW7R8pv1GmuebxWMevBLKKAiOIAkbDakO/IwkfN4E8/BPzWr8R0RI7VDIp4BkrcYAuUR +0YLbFQDMYTfBKnya4dC6s1BG7oKsnTH4+yPiAwBIcKMJJnkVU2DzOFytOOqBAGMUuTNe3QvboEUH +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CA 2021 +=========================== +-----BEGIN CERTIFICATE----- +MIICVDCCAdugAwIBAgIQZ3SdjXfYO2rbIvT/WeK/zjAKBggqhkjOPQQDAzBsMQswCQYDVQQGEwJH +UjE3MDUGA1UECgwuSGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9ucyBD +QTEkMCIGA1UEAwwbSEFSSUNBIFRMUyBFQ0MgUm9vdCBDQSAyMDIxMB4XDTIxMDIxOTExMDExMFoX +DTQ1MDIxMzExMDEwOVowbDELMAkGA1UEBhMCR1IxNzA1BgNVBAoMLkhlbGxlbmljIEFjYWRlbWlj +IGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ0ExJDAiBgNVBAMMG0hBUklDQSBUTFMgRUNDIFJv +b3QgQ0EgMjAyMTB2MBAGByqGSM49AgEGBSuBBAAiA2IABDgI/rGgltJ6rK9JOtDA4MM7KKrxcm1l +AEeIhPyaJmuqS7psBAqIXhfyVYf8MLA04jRYVxqEU+kw2anylnTDUR9YSTHMmE5gEYd103KUkE+b +ECUqqHgtvpBBWJAVcqeht6NCMEAwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUyRtTgRL+BNUW +0aq8mm+3oJUZbsowDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMDA2cAMGQCMBHervjcToiwqfAi +rcJRQO9gcS3ujwLEXQNwSaSS6sUUiHCm0w2wqsosQJz76YJumgIwK0eaB8bRwoF8yguWGEEbo/Qw +CZ61IygNnxS2PFOiTAZpffpskcYqSUXm7LcT4Tps +-----END CERTIFICATE----- + +Autoridad de Certificacion Firmaprofesional CIF A62634068 +========================================================= +-----BEGIN CERTIFICATE----- +MIIGFDCCA/ygAwIBAgIIG3Dp0v+ubHEwDQYJKoZIhvcNAQELBQAwUTELMAkGA1UEBhMCRVMxQjBA +BgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1hcHJvZmVzaW9uYWw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lybWFwcm9mZXNpb25hbC5j +b20vY3BzMFwGCCsGAQUFBwICMFAeTgBQAGEAcwBlAG8AIABkAGUAIABsAGEAIABCAG8AbgBhAG4A +bwB2AGEAIAA0ADcAIABCAGEAcgBjAGUAbABvAG4AYQAgADAAOAAwADEANzAOBgNVHQ8BAf8EBAMC +AQYwDQYJKoZIhvcNAQELBQADggIBAHSHKAIrdx9miWTtj3QuRhy7qPj4Cx2Dtjqn6EWKB7fgPiDL +4QjbEwj4KKE1soCzC1HA01aajTNFSa9J8OA9B3pFE1r/yJfY0xgsfZb43aJlQ3CTkBW6kN/oGbDb +LIpgD7dvlAceHabJhfa9NPhAeGIQcDq+fUs5gakQ1JZBu/hfHAsdCPKxsIl68veg4MSPi3i1O1il +I45PVf42O+AMt8oqMEEgtIDNrvx2ZnOorm7hfNoD6JQg5iKj0B+QXSBTFCZX2lSX3xZEEAEeiGaP +cjiT3SC3NL7X8e5jjkd5KAb881lFJWAiMxujX6i6KtoaPc1A6ozuBRWV1aUsIC+nmCjuRfzxuIgA +LI9C2lHVnOUTaHFFQ4ueCyE8S1wF3BqfmI7avSKecs2tCsvMo2ebKHTEm9caPARYpoKdrcd7b/+A +lun4jWq9GJAd/0kakFI3ky88Al2CdgtR5xbHV/g4+afNmyJU72OwFW1TZQNKXkqgsqeOSQBZONXH +9IBk9W6VULgRfhVwOEqwf9DEMnDAGf/JOC0ULGb0QkTmVXYbgBVX/8Cnp6o5qtjTcNAuuuuUavpf +NIbnYrX9ivAwhZTJryQCL2/W3Wf+47BVTwSYT6RBVuKT0Gro1vP7ZeDOdcQxWQzugsgMYDNKGbqE +ZycPvEJdvSRUDewdcAZfpLz6IHxV +-----END CERTIFICATE----- + +vTrus ECC Root CA +================= +-----BEGIN CERTIFICATE----- +MIICDzCCAZWgAwIBAgIUbmq8WapTvpg5Z6LSa6Q75m0c1towCgYIKoZIzj0EAwMwRzELMAkGA1UE +BhMCQ04xHDAaBgNVBAoTE2lUcnVzQ2hpbmEgQ28uL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2zTlJQNgJXtxmOTAGytfdELSS8VZCAeHvsXDf+eW2eHcKJfWjwXj9ZtOyh1QRwVTsMo554Wg +icEFOwE30z9J4nfrI8iIZjs9OXYhRvHsXyO466JmdXTBQPfYaJqT4i2pLr0cox7IdMakLXogqzu4 +sEb9b91fUlV1YvCXoHzXOP0l382gmxDPi7g4Xl7FtKYCNqEeXxzP4padKar9mK5S4fNBUvupLnKW +nyfjqnN9+BojZns7q2WwMgFLFT49ok8MKzWixtlnEjUwzXYuFrOZnk1PTi07NEPhmg4NpGaXutIc +SkwsKouLgU9xGqndXHt7CMUADTdA43x7VF8vhV929vensBxXVsFy6K2ir40zSbofitzmdHxghm+H +l3s= +-----END CERTIFICATE----- + +ISRG Root X2 +============ +-----BEGIN CERTIFICATE----- +MIICGzCCAaGgAwIBAgIQQdKd0XLq7qeAwSxs6S+HUjAKBggqhkjOPQQDAzBPMQswCQYDVQQGEwJV +UzEpMCcGA1UEChMgSW50ZXJuZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElT +UkcgUm9vdCBYMjAeFw0yMDA5MDQwMDAwMDBaFw00MDA5MTcxNjAwMDBaME8xCzAJBgNVBAYTAlVT +MSkwJwYDVQQKEyBJbnRlcm5ldCBTZWN1cml0eSBSZXNlYXJjaCBHcm91cDEVMBMGA1UEAxMMSVNS +RyBSb290IFgyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEzZvVn4CDCuwJSvMWSj5cz3es3mcFDR0H +ttwW+1qLFNvicWDEukWVEYmO6gbf9yoWHKS5xcUy4APgHoIYOIvXRdgKam7mAHf7AlF9ItgKbppb +d9/w+kHsOdx1ymgHDB/qo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNV +HQ4EFgQUfEKWrt5LSDv6kviejM9ti6lyN5UwCgYIKoZIzj0EAwMDaAAwZQIwe3lORlCEwkSHRhtF +cP9Ymd70/aTSVaYgLXTWNLxBo1Bf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N0/ +Vm+h+fbkEkj9Bn8SV7apI09bA8PgcSojt/ewsTu8mL3WmKgMa/aOEmem8rJY5AIJEzypuxC00jBF +8ez3ABHfZfjcK0NVvxaXxA/VLGGEqnKG/uY6fsI/fe78LxQ+5oXdUG+3Se0CAwEAAaNCMEAwDwYD +VR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU8ncX+l6o/vY9cdVouslGDDjYr7AwDgYDVR0PAQH/BAQD +AgGGMA0GCSqGSIb3DQEBCwUAA4ICAQBQUfB13HAE4/+qddRxosuej6ip0691x1TPOhwEmSKsxBHi +7zNKpiMdDg1H2DfHb680f0+BazVP6XKlMeJ45/dOlBhbQH3PayFUhuaVevvGyuqcSE5XCV0vrPSl +tJczWNWseanMX/mF+lLFjfiRFOs6DRfQUsJ748JzjkZ4Bjgs6FzaZsT0pPBWGTMpWmWSBUdGSquE +wx4noR8RkpkndZMPvDY7l1ePJlsMu5wP1G4wB9TcXzZoZjmDlicmisjEOf6aIW/Vcobpf2Lll07Q +JNBAsNB1CI69aO4I1258EHBGG3zgiLKecoaZAeO/n0kZtCW+VmWuF2PlHt/o/0elv+EmBYTksMCv +5wiZqAxeJoBF1PhoL5aPruJKHJwWDBNvOIf2u8g0X5IDUXlwpt/L9ZlNec1OvFefQ05rLisY+Gpz +jLrFNe85akEez3GoorKGB1s6yeHvP2UEgEcyRHCVTjFnanRbEEV16rCf0OY1/k6fi8wrkkVbbiVg +hUbN0aqwdmaTd5a+g744tiROJgvM7XpWGuDpWsZkrUx6AEhEL7lAuxM+vhV4nYWBSipX3tUZQ9rb +yltHhoMLP7YNdnhzeSJesYAfz77RP1YQmCuVh6EfnWQUYDksswBVLuT1sw5XxJFBAJw/6KXf6vb/ +yPCtbVKoF6ubYfwSUTXkJf2vqmqGOQ== +-----END CERTIFICATE----- + +GlobalSign ECC Root CA - R4 +=========================== +-----BEGIN CERTIFICATE----- +MIIB3DCCAYOgAwIBAgINAgPlfvU/k/2lCSGypjAKBggqhkjOPQQDAjBQMSQwIgYDVQQLExtHbG9i +YWxTaWduIEVDQyBSb290IENBIC0gUjQxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkds +b2JhbFNpZ24wHhcNMTIxMTEzMDAwMDAwWhcNMzgwMTE5MDMxNDA3WjBQMSQwIgYDVQQLExtHbG9i +YWxTaWduIEVDQyBSb290IENBIC0gUjQxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkds +b2JhbFNpZ24wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAS4xnnTj2wlDp8uORkcA6SumuU5BwkW +ymOxuYb4ilfBV85C+nOh92VC/x7BALJucw7/xyHlGKSq2XE/qNS5zowdo0IwQDAOBgNVHQ8BAf8E +BAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUVLB7rUW44kB/+wpu+74zyTyjhNUwCgYI +KoZIzj0EAwIDRwAwRAIgIk90crlgr/HmnKAWBVBfw147bmF0774BxL4YSFlhgjICICadVGNA3jdg +UM/I2O2dgq43mLyjj0xMqTQrbO/7lZsm +-----END CERTIFICATE----- + +GTS Root R1 +=========== +-----BEGIN CERTIFICATE----- +MIIFVzCCAz+gAwIBAgINAgPlk28xsBNJiGuiFzANBgkqhkiG9w0BAQwFADBHMQswCQYDVQQGEwJV +UzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3Qg +UjEwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UE +ChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjEwggIiMA0G +CSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC2EQKLHuOhd5s73L+UPreVp0A8of2C+X0yBoJx9vaM +f/vo27xqLpeXo4xL+Sv2sfnOhB2x+cWX3u+58qPpvBKJXqeqU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0DjyZ+hOXJYKaV +11RZt+cRLInUue4X +-----END CERTIFICATE----- + +GTS Root R4 +=========== +-----BEGIN CERTIFICATE----- +MIICCTCCAY6gAwIBAgINAgPlwGjvYxqccpBQUjAKBggqhkjOPQQDAzBHMQswCQYDVQQGEwJVUzEi +MCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjQw +HhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAwMDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UEChMZ +R29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjQwdjAQBgcqhkjO +PQIBBgUrgQQAIgNiAATzdHOnaItgrkO4NcWBMHtLSZ37wWHO5t5GvWvVYRg1rkDdc/eJkTBa6zzu +hXyiQHY7qca4R9gq55KRanPpsXI5nymfopjTX15YhmUPoYRlBtHci8nHc8iMai/lxKvRHYqjQjBA +MA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSATNbrdP9JNqPV2Py1 +PsVq8JQdjDAKBggqhkjOPQQDAwNpADBmAjEA6ED/g94D9J+uHXqnLrmvT/aDHQ4thQEd0dlq7A/C +r8deVl5c1RxYIigL9zC2L7F8AjEA8GE8p/SgguMh1YQdc4acLa/KNJvxn7kjNuK8YAOdgLOaVsjh +4rsUecrNIdSUtUlD +-----END CERTIFICATE----- + +Telia Root CA v2 +================ +-----BEGIN CERTIFICATE----- +MIIFdDCCA1ygAwIBAgIPAWdfJ9b+euPkrL4JWwWeMA0GCSqGSIb3DQEBCwUAMEQxCzAJBgNVBAYT +AkZJMRowGAYDVQQKDBFUZWxpYSBGaW5sYW5kIE95ajEZMBcGA1UEAwwQVGVsaWEgUm9vdCBDQSB2 +MjAeFw0xODExMjkxMTU1NTRaFw00MzExMjkxMTU1NTRaMEQxCzAJBgNVBAYTAkZJMRowGAYDV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t0nZi0f6X+J8wfBj5 +tFJ3gh1229MdqfDBmgC9bXXYfef6xzijnHDoRnkDry5023X4blMMA8iZGok1GTzTyVR8qPAs5m4H +eW9q4ebqkYJpCh3DflminmtGFZhb069GHWLIzoBSSRE/yQQSwxN8PzuKlts8oB4KtItUsiRnDe+C +y748fdHif64W1lZYudogsYMVoe+KTTJvQS8TUoKU1xrBeKJR3Stwbbca+few4GeXVtt8YVMJAygC +QMez2P2ccGrGKMOF6eLtGpOg3kuYooQ+BXcBlj37tCAPnHICehIv1aO6UXivKitEZU61/Qrowc15 +h2Er3oBXRb9n8ZuRXqWk7FlIEA04x7D6w0RtBPV4UBySllva9bguulvP5fBqnUsvWHMtTy3EHD70 +sz+rFQ47GUGKpMFXEmZxTPpT41frYpUJnlTd0cI8Vzy9OK2YZLe4A5pTVmBds9hCG1xLEooc6+t9 +xnppxyd/pPiL8uSUZodL6ZQHCRJ5irLrdATczvREWeAWysUsWNc8e89ihmpQfTU2Zqf7N+cox9jQ +raVplI/owd8k+BsHMYeB2F326CjYSlKArBPuUBQemMc= +-----END CERTIFICATE----- + +D-TRUST BR Root CA 1 2020 +========================= +-----BEGIN CERTIFICATE----- +MIIC2zCCAmCgAwIBAgIQfMmPK4TX3+oPyWWa00tNljAKBggqhkjOPQQDAzBIMQswCQYDVQQGEwJE +RTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMSIwIAYDVQQDExlELVRSVVNUIEJSIFJvb3QgQ0EgMSAy +MDIwMB4XDTIwMDIxMTA5NDUwMFoXDTM1MDIxMTA5NDQ1OVowSDELMAkGA1UEBhMCREUxFTATBgNV +BAoTDEQtVHJ1c3QgR21iSDEiMCAGA1UEAxMZRC1UUlVTVCBCUiBSb290IENBIDEgMjAyMDB2MBAG +ByqGSM49AgEGBSuBBAAiA2IABMbLxyjR+4T1mu9CFCDhQ2tuda38KwOE1HaTJddZO0Flax7mNCq7 +dPYSzuht56vkPE4/RAiLzRZxy7+SmfSk1zxQVFKQhYN4lGdnoxwJGT11NIXe7WB9xwy0QVK5buXu +QqOCAQ0wggEJMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFHOREKv/VbNafAkl1bK6CKBrqx9t +MA4GA1UdDwEB/wQEAwIBBjCBxgYDVR0fBIG+MIG7MD6gPKA6hjhodHRwOi8vY3JsLmQtdHJ1c3Qu +bmV0L2NybC9kLXRydXN0X2JyX3Jvb3RfY2FfMV8yMDIwLmNybDB5oHegdYZzbGRhcDovL2RpcmVj +dG9yeS5kLXRydXN0Lm5ldC9DTj1ELVRSVVNUJTIwQlIlMjBSb290JTIwQ0ElMjAxJTIwMjAyMCxP +PUQtVHJ1c3QlMjBHbWJILEM9REU/Y2VydGlmaWNhdGVyZXZvY2F0aW9ubGlzdDAKBggqhkjOPQQD +AwNpADBmAjEAlJAtE/rhY/hhY+ithXhUkZy4kzg+GkHaQBZTQgjKL47xPoFWwKrY7RjEsK70Pvom +AjEA8yjixtsrmfu3Ubgko6SUeho/5jbiA1czijDLgsfWFBHVdWNbFJWcHwHP2NVypw87 +-----END CERTIFICATE----- + +D-TRUST EV Root CA 1 2020 +========================= +-----BEGIN CERTIFICATE----- +MIIC2zCCAmCgAwIBAgIQXwJB13qHfEwDo6yWjfv/0DAKBggqhkjOPQQDAzBIMQswCQYDVQQGEwJE +RTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMSIwIAYDVQQDExlELVRSVVNUIEVWIFJvb3QgQ0EgMSAy +MDIwMB4XDTIwMDIxMTEwMDAwMFoXDTM1MDIxMTA5NTk1OVowSDELMAkGA1UEBhMCREUxFTATBgNV +BAoTDEQtVHJ1c3QgR21iSDEiMCAGA1UEAxMZRC1UUlVTVCBFViBSb290IENBIDEgMjAyMDB2MBAG +ByqGSM49AgEGBSuBBAAiA2IABPEL3YZDIBnfl4XoIkqbz52Yv7QFJsnL46bSj8WeeHsxiamJrSc8 +ZRCC/N/DnU7wMyPE0jL1HLDfMxddxfCxivnvubcUyilKwg+pf3VlSSowZ/Rk99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8pQgO4CLp0zVozptj +n4S1mU1YoI71VOeVyaNCMEAwHQYDVR0OBBYEFMFRRVBZqz7nLFr6ICISB4CIfBFqMA4GA1UdDwEB +/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49BAMDA2gAMGUCMQCJao1H5+z8blUD2Wds +Jk6Dxv3J+ysTvLd6jLRl0mlpYxNjOyZQLgGheQaRnUi/wr4CMEfDFXuxoJGZSZOoPHzoRgaLLPIx +AJSdYsiJvRmEFOml+wG4DXZDjC5Ty3zfDBeWUA== +-----END CERTIFICATE----- + +DigiCert TLS RSA4096 Root G5 +============================ +-----BEGIN CERTIFICATE----- +MIIFZjCCA06gAwIBAgIQCPm0eKj6ftpqMzeJ3nzPijANBgkqhkiG9w0BAQwFADBNMQswCQYDVQQG +EwJVUzEXMBUGA1UEChMORGlnaUNlcnQsIEluYy4xJTAjBgNVBAMTHERpZ2lDZXJ0IFRMUyBSU0E0 +MDk2IFJvb3QgRzUwHhcNMjEwMTE1MDAwMDAwWhcNNDYwMTE0MjM1OTU5WjBNMQswCQYDVQQGEwJV +UzEXMBUGA1UEChMORGlnaUNlcnQsIEluYy4xJTAjBgNVBAMTHERpZ2lDZXJ0IFRMUyBSU0E0MDk2 +IFJvb3QgRzUwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCz0PTJeRGd/fxmgefM1eS8 +7IE+ajWOLrfn3q/5B03PMJ3qCQuZvWxX2hhKuHisOjmopkisLnLlvevxGs3npAOpPxG02C+JFvuU +AT27L/gTBaF4HI4o4EXgg/RZG5Wzrn4DReW+wkL+7vI8toUTmDKdFqgpwgscONyfMXdcvyej/Ces +tyu9dJsXLfKB2l2w4SMXPohKEiPQ6s+d3gMXsUJKoBZMpG2T6T867jp8nVid9E6P/DsjyG244gXa +zOvswzH016cpVIDPRFtMbzCe88zdH5RDnU1/cHAN1DrRN/BsnZvAFJNY781BOHW8EwOVfH/jXOnV +DdXifBBiqmvwPXbzP6PosMH976pX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wc/PH72jEpSe31C4SnT8H2TsIonPru4K8H+zMReiFPCyEQtkA6qyI6BJyLm4SGcprS +p6XEtHWRqSsjAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1Ud +DgQWBBTgqj8ljZ9EXME66C6ud0yEPmcM9DANBgkqhkiG9w0BAQsFAAOCAgEAuVevuBLaV4OPaAsz +HQNTVfSVcOQrPbA56/qJYv331hgELyE03fFo8NWWWt7CgKPBjcZq91l3rhVkz1t5BXdm6ozTaw3d +8VkswTOlMIAVRQdFGjEitpIAq5lNOo93r6kiyi9jyhXWx8bwPWz8HA2YEGGeEaIi1wrykXprOQ4v +MMM2SZ/g6Q8CRFA3lFV96p/2O7qUpUzpvD5RtOjKkjZUbVwlKNrdrRT90+7iIgXr0PK3aBLXWopB +GsaSpVo7Y0VPv+E6dyIvXL9G+VoDhRNCX8reU9ditaY1BMJH/5n9hN9czulegChB8n3nHpDYT3Y+ +gjwN/KUD+nsa2UUeYNrEjvn8K8l7lcUq/6qJ34IxD3L/DCfXCh5WAFAeDJDBlrXYFIW7pw0WwfgH +JBu6haEaBQmAupVjyTrsJZ9/nbqkRxWbRHDxakvWOF5D8xh+UG7pWijmZeZ3Gzr9Hb4DJqPb1OG7 +fpYnKx3upPvaJVQTA945xsMfTZDsjxtK0hzthZU4UHlG1sGQUDGpXJpuHfUzVounmdLyyCwzk5Iw +x06MZTMQZBf9JBeW0Y3COmor6xOLRPIh80oat3df1+2IpHLlOR+Vnb5nwXARPbv0+Em34yaXOp/S +X3z7wJl8OSngex2/DaeP0ik0biQVy96QXr8axGbqwua6OV+KmalBWQewLK8= +-----END CERTIFICATE----- + +Certainly Root E1 +================= +-----BEGIN CERTIFICATE----- +MIIB9zCCAX2gAwIBAgIQBiUzsUcDMydc+Y2aub/M+DAKBggqhkjOPQQDAzA9MQswCQYDVQQGEwJV +UzESMBAGA1UEChMJQ2VydGFpbmx5MRowGAYDVQQDExFDZXJ0YWlubHkgUm9vdCBFMTAeFw0yMTA0 +MDEwMDAwMDBaFw00NjA0MDEwMDAwMDBaMD0xCzAJBgNVBAYTAlVTMRIwEAYDVQQKEwlDZXJ0YWlu +bHkxGjAYBgNVBAMTEUNlcnRhaW5seSBSb290IEUxMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE3m/4 +fxzf7flHh4axpMCK+IKXgOqPyEpeKn2IaKcBYhSRJHpcnqMXfYqGITQYUBsQ3tA3SybHGWCA6TS9 +YBk2QNYphwk8kXr2vBMj3VlOBF7PyAIcGFPBMdjaIOlEjeR2o0IwQDAOBgNVHQ8BAf8EBAMCAQYw +DwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU8ygYy2R17ikq6+2uI1g4hevIIgcwCgYIKoZIzj0E +AwMDaAAwZQIxALGOWiDDshliTd6wT99u0nCK8Z9+aozmut6Dacpps6kFtZaSF4fC0urQe87YQVt8 +rgIwRt7qy12a7DLCZRawTDBcMPPaTnOGBtjOiQRINzf43TNRnXCve1XYAS59BWQOhriR +-----END CERTIFICATE----- + +Security Communication ECC RootCA1 +================================== +-----BEGIN CERTIFICATE----- +MIICODCCAb6gAwIBAgIJANZdm7N4gS7rMAoGCCqGSM49BAMDMGExCzAJBgNVBAYTAkpQMSUwIwYD +VQQKExxTRUNPTSBUcnVzdCBTeXN0ZW1zIENPLixMVEQuMSswKQYDVQQDEyJTZWN1cml0eSBDb21t +dW5pY2F0aW9uIEVDQyBSb290Q0ExMB4XDTE2MDYxNjA1MTUyOFoXDTM4MDExODA1MTUyOFowYTEL +MAkGA1UEBhMCSlAxJTAjBgNVBAoTHFNFQ09NIFRydXN0IFN5c3RlbXMgQ08uLExURC4xKzApBgNV +BAMTIlNlY3VyaXR5IENvbW11bmljYXRpb24gRUNDIFJvb3RDQTEwdjAQBgcqhkjOPQIBBgUrgQQA +IgNiAASkpW9gAwPDvTH00xecK4R1rOX9PVdu12O/5gSJko6BnOPpR27KkBLIE+CnnfdldB9sELLo +5O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eze9mCUAyTF6ps +3MKCuwJXNq+YJyo5UOGwifUll35HaBC07HPKs5fRJNz2YqAo07WjuGS3iGJCz51TzZm+ZGiPTx4S +SPfSKcOYKMryMguTjClPPGAyzQWWYezyr/6zcCwupvI= +-----END CERTIFICATE----- + +BJCA Global Root CA2 +==================== +-----BEGIN CERTIFICATE----- +MIICJTCCAaugAwIBAgIQLBcIfWQqwP6FGFkGz7RK6zAKBggqhkjOPQQDAzBUMQswCQYDVQQGEwJD +TjEmMCQGA1UECgwdQkVJSklORyBDRVJUSUZJQ0FURSBBVVRIT1JJVFkxHTAbBgNVBAMMFEJKQ0Eg +R2xvYmFsIFJvb3QgQ0EyMB4XDTE5MTIxOTAzMTgyMVoXDTQ0MTIxMjAzMTgyMVowVDELMAkGA1UE +BhMCQ04xJjAkBgNVBAoMHUJFSUpJTkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZMR0wGwYDVQQDDBRC +SkNBIEdsb2JhbCBSb290IENBMjB2MBAGByqGSM49AgEGBSuBBAAiA2IABJ3LgJGNU2e1uVCxA/jl +SR9BIgmwUVJY1is0j8USRhTFiy8shP8sbqjV8QnjAyEUxEM9fMEsxEtqSs3ph+B99iK++kpRuDCK +/eHeGBIK9ke35xe/J4rUQUyWPGCWwf0VHKNCMEAwHQYDVR0OBBYEFNJKsVF/BvDRgh9Obl+rg/xI +1LCRMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMAoGCCqGSM49BAMDA2gAMGUCMBq8 +W9f+qdJUDkpd0m2xQNz0Q9XSSpkZElaA94M04TVOSG0ED1cxMDAtsaqdAzjbBgIxAMvMh1PLet8g +UXOQwKhbYdDFUDn9hf7B43j4ptZLvZuHjw/l1lOWqzzIQNph91Oj9w== +-----END CERTIFICATE----- + +Sectigo Public Server Authentication Root E46 +============================================= +-----BEGIN CERTIFICATE----- +MIICOjCCAcGgAwIBAgIQQvLM2htpN0RfFf51KBC49DAKBggqhkjOPQQDAzBfMQswCQYDVQQGEwJH +QjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTYwNAYDVQQDEy1TZWN0aWdvIFB1YmxpYyBTZXJ2 +ZXIgQXV0aGVudGljYXRpb24gUm9vdCBFNDYwHhcNMjEwMzIyMDAwMDAwWhcNNDYwMzIxMjM1OTU5 +WjBfMQswCQYDVQQGEwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTYwNAYDVQQDEy1TZWN0 +aWdvIFB1YmxpYyBTZXJ2ZXIgQXV0aGVudGljYXRpb24gUm9vdCBFNDYwdjAQBgcqhkjOPQIBBgUr +gQQAIgNiAAR2+pmpbiDt+dd34wc7qNs9Xzjoq1WmVk/WSOrsfy2qw7LFeeyZYX8QeccCWvkEN/U0 +NSt3zn8gj1KjAIns1aeibVvjS5KToID1AZTc8GgHHs3u/iVStSBDHBv+6xnOQ6OjQjBAMB0GA1Ud +DgQWBBTRItpMWfFLXyY4qp3W7usNw/upYTAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB +/zAKBggqhkjOPQQDAwNnADBkAjAn7qRaqCG76UeXlImldCBteU/IvZNeWBj7LRoAasm4PdCkT0RH +lAFWovgzJQxC36oCMB3q4S6ILuH5px0CMk7yn2xVdOOurvulGu7t0vzCAxHrRVxgED1cf5kDW21U +SAGKcw== +-----END CERTIFICATE----- + +Sectigo Public Server Authentication Root R46 +============================================= +-----BEGIN CERTIFICATE----- +MIIFijCCA3KgAwIBAgIQdY39i658BwD6qSWn4cetFDANBgkqhkiG9w0BAQwFADBfMQswCQYDVQQG +EwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTYwNAYDVQQDEy1TZWN0aWdvIFB1YmxpYyBT +ZXJ2ZXIgQXV0aGVudGljYXRpb24gUm9vdCBSNDYwHhcNMjEwMzIyMDAwMDAwWhcNNDYwMzIxMjM1 +OTU5WjBfMQswCQYDVQQGEwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdG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gDY9hAaLMyZlbcp+nv4fjFg4 +exqDsQ+8FxG75gbMY/qB8oFM2gsQa6H61SilzwZAFv97fRheORKkU55+MkIQpiGRqRxOF3yEvJ+M +0ejf5lG5Nkc/kLnHvALcWxxPDkjBJYOcCj+esQMzEhonrPcibCTRAUH4WAP+JWgiH5paPHxsnnVI +84HxZmduTILA7rpXDhjvLpr3Etiga+kFpaHpaPi8TD8SHkXoUsCjvxInebnMMTzD9joiFgOgyY9m +pFuiTdaBJQbpdqQACj7LzTWb4OE4y2BThihCQRxEV+ioratF4yUQvNs+ZUH7G6aXD+u5dHn5Hrwd +Vw1Hr8Mvn4dGp+smWg9WY7ViYG4A++MnESLn/pmPNPW56MORcr3Ywx65LvKRRFHQV80MNNVIIb/b +E/FmJUNS0nAiNs2fxBx1IK1jcmMGDw4nztJqDby1ORrp0XZ60Vzk50lJLVU3aPAaOpg+VBeHVOmm +J1CJeyAvP/+/oYtKR5j/K3tJPsMpRmAYQqszKbrAKbkTidOIijlBO8n9pu0f9GBj39ItVQGL +-----END CERTIFICATE----- + +SSL.com TLS RSA Root CA 2022 +============================ +-----BEGIN CERTIFICATE----- +MIIFiTCCA3GgAwIBAgIQb77arXO9CEDii02+1PdbkTANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQG +EwJVUzEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMSUwIwYDVQQDDBxTU0wuY29tIFRMUyBSU0Eg +Um9vdCBDQSAyMDIyMB4XDTIyMDgyNTE2MzQyMloXDTQ2MDgxOTE2MzQyMVowTjELMAkGA1UEBhMC +VVMxGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjElMCMGA1UEAwwcU1NMLmNvbSBUTFMgUlNBIFJv +b3QgQ0EgMjAyMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANCkCXJPQIgSYT41I57u +9nTPL3tYPc48DRAokC+X94xI2KDYJbFMsBFMF3NQ0CJKY7uB0ylu1bUJPiYYf7ISf5OYt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Qx1rmMRTqo +ENjwuSfr98t67wVylrXEj5ZzxOhWc5y8aVFjvO9nHEMaX3cZHxj4HCUp+UmZKbaSPaKDN7Egkaib +MOlqbLQjk2UEqxHzDh1TJElTHaE/nUiSEeJ9DU/1172iWD54nR4fK/4huxoTtrEoZP2wAgDHbICi +vRZQIA9ygV/MlP+7mea6kMvq+cYMwq7FGc4zoWtcu358NFcXrfA/rs3qr5nsLFR+jM4uElZI7xc7 +P0peYNLcdDa8pUNjyw9bowJWCZ4kLOGGgYz+qxcs+sjiMho6/4UIyYOf8kpIEFR3N+2ivEC+5BB0 +9+Rbu7nzifmPQdjH5FCQNYA+HLhNkNPU98OwoX6EyneSMSy4kLGCenROmxMmtNVQZlR4rmA= +-----END CERTIFICATE----- + +SSL.com TLS ECC Root CA 2022 +============================ +-----BEGIN CERTIFICATE----- +MIICOjCCAcCgAwIBAgIQFAP1q/s3ixdAW+JDsqXRxDAKBggqhkjOPQQDAzBOMQswCQYDVQQGEwJV +UzEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMSUwIwYDVQQDDBxTU0wuY29tIFRMUyBFQ0MgUm9v +dCBDQSAyMDIyMB4XDTIyMDgyNTE2MzM0OFoXDTQ2MDgxOTE2MzM0N1owTjELMAkGA1UEBhMCVVMx +GDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjElMCMGA1UEAwwcU1NMLmNvbSBUTFMgRUNDIFJvb3Qg +Q0EgMjAyMjB2MBAGByqGSM49AgEGBSuBBAAiA2IABEUpNXP6wrgjzhR9qLFNoFs27iosU8NgCTWy +JGYmacCzldZdkkAZDsalE3D07xJRKF3nzL35PIXBz5SQySvOkkJYWWf9lCcQZIxPBLFNSeR7T5v1 +5wj4A4j3p8OSSxlUgaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBSJjy+j6CugFFR7 +81a4Jl9nOAuc0DAdBgNVHQ4EFgQUiY8vo+groBRUe/NWuCZfZzgLnNAwDgYDVR0PAQH/BAQDAgGG +MAoGCCqGSM49BAMDA2gAMGUCMFXjIlbp15IkWE8elDIPDAI2wv2sdDJO4fscgIijzPvX6yv/N33w +7deedWo1dlJF4AIxAMeNb0Igj762TVntd00pxCAgRWSGOlDGxK0tk/UYfXLtqc/ErFc2KAhl3zx5 +Zn6g6g== +-----END CERTIFICATE----- + +Atos TrustedRoot Root CA ECC TLS 2021 +===================================== +-----BEGIN CERTIFICATE----- +MIICFTCCAZugAwIBAgIQPZg7pmY9kGP3fiZXOATvADAKBggqhkjOPQQDAzBMMS4wLAYDVQQDDCVB +dG9zIFRydXN0ZWRSb290IFJvb3QgQ0EgRUNDIFRMUyAyMDIxMQ0wCwYDVQQKDARBdG9zMQswCQYD +VQQGEwJERTAeFw0yMTA0MjIwOTI2MjNaFw00MTA0MTcwOTI2MjJaMEwxLjAsBgNVBAMMJUF0b3Mg +VHJ1c3RlZFJvb3QgUm9vdCBDQSBFQ0MgVExTIDIwMjExDTALBgNVBAoMBEF0b3MxCzAJBgNVBAYT +AkRFMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEloZYKDcKZ9Cg3iQZGeHkBQcfl+3oZIK59sRxUM6K +DP/XtXa7oWyTbIOiaG6l2b4siJVBzV3dscqDY4PMwL502eCdpO5KTlbgmClBk1IQ1SQ4AjJn8ZQS +b+/Xxd4u/RmAo0IwQDAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBR2KCXWfeBmmnoJsmo7jjPX +NtNPojAOBgNVHQ8BAf8EBAMCAYYwCgYIKoZIzj0EAwMDaAAwZQIwW5kp85wxtolrbNa9d+F851F+ +uDrNozZffPc8dz7kUK2o59JZDCaOMDtuCCrCp1rIAjEAmeMM56PDr9NJLkaCI2ZdyQAUEv049OGY +a3cpetskz2VAv9LcjBHo9H1/IISpQuQo +-----END CERTIFICATE----- + +Atos TrustedRoot Root CA RSA TLS 2021 +===================================== +-----BEGIN CERTIFICATE----- +MIIFZDCCA0ygAwIBAgIQU9XP5hmTC/srBR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EmZ0f+0emhFdcN+tNzMzjkz2ggwDgYDVR0PAQH/BAQDAgGGMA0G +CSqGSIb3DQEBDAUAA4ICAQAjQ1MkYlxt/T7Cz1UAbMVWiLkO3TriJQ2VSpfKgInuKs1l+NsW4AmS +4BjHeJi78+xCUvuppILXTdiK/ORO/auQxDh1MoSf/7OwKwIzNsAQkG8dnK/haZPso0UvFJ/1TCpl +Q3IM98P4lYsU84UgYt1UU90s3BiVaU+DR3BAM1h3Egyi61IxHkzJqM7F78PRreBrAwA0JrRUITWX +AdxfG/F851X6LWh3e9NpzNMOa7pNdkTWwhWaJuywxfW70Xp0wmzNxbVe9kzmWy2B27O3Opee7c9G +slA9hGCZcbUztVdF5kJHdWoOsAgMrr3e97sPWD2PAzHoPYJQyi9eDF20l74gNAf0xBLh7tew2Vkt +afcxBPTy+av5EzH4AXcOPUIjJsyacmdRIXrMPIWo6iFqO9taPKU0nprALN+AnCng33eU0aKAQv9q +TFsR0PXNor6uzFFcw9VUewyu1rkGd4Di7wcaaMxZUa1+XGdrudviB0JbuAEFWDlN5LuYo7Ey7Nmj +1m+UI/87tyll5gfp77YZ6ufCOB0yiJA8EytuzO+rdwY0d4RPcuSBhPm5dDTedk+SKlOxJTnbPP/l +PqYO5Wue/9vsL3SD3460s6neFE3/MaNFcyT6lSnMEpcEoji2jbDwN/zIIX8/syQbPYtuzE2wFg2W +HYMfRsCbvUOZ58SWLs5fyQ== +-----END CERTIFICATE----- + +TrustAsia Global Root CA G3 +=========================== +-----BEGIN CERTIFICATE----- +MIIFpTCCA42gAwIBAgIUZPYOZXdhaqs7tOqFhLuxibhxkw8wDQYJKoZIhvcNAQEMBQAwWjELMAkG +A1UEBhMCQ04xJTAjBgNVBAoMHFRydXN0QXNpYSBUZWNobm9sb2dpZXMsIEluYy4xJDAiBgNVBAMM +G1RydXN0QXNpYSBHbG9iYWwgUm9vdCBDQSBHMzAeFw0yMTA1MjAwMjEwMTlaFw00NjA1MTkwMjEw +MTlaMFoxCzAJBgNV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1 +D/GUE3d3NZ4tVlFEbuHGLige/9rsR82XRBf34EzC4Xx8MnpmyFq2XFNFV1pF1AWZLy4jVe5jaN/T +G3inEpQGAHUNcoTpLrxaatXeL1nHo+zSh2bbt1S1JKv0Q3jbSwTEb93mPmY+KfJLaHEih6D4sTNj +duMNhXJEIlU/HHzp/LgV6FL6qj6jITk1dImmasI5+njPtqzn59ZW/yOSLlALqbUHM/Q4X6RJpstl +cHboCoWASzY9M/eVVHUl2qzEc4Jl6VL1XP04lQJqaTDFHApXB64ipCz5xUG3uOyfT0gA+QEEVcys ++TIxxHWVBqB/0Y0n3bOppHKH/lmLmnp0Ft0WpWIp6zqW3IunaFnT63eROfjXy9mPX1onAX1daBli +2MjN9LdyR75bl87yraKZk62Uy5P2EgmVtqvXO9A/EcswFi55gORngS1d7XB4tmBZrOFdRWOPyN9y +aFvqHbgB8X7754qz41SgOAngPN5C8sLtLpvzHzW2NtjjgKGLzZlkD8Kqq7HK9W+eQ42EVJmzbsAS +ZthwEPEGNTNDqJwuuhQxzhB/HIbjj9LV+Hfsm6vxL2PZQl/gZ4FkkfGXL/xuJvYz+NO1+MRiqzFR +JQJ6+N1rZdVtTTDIZbpoFGWsJwt0ivKH +-----END CERTIFICATE----- + +TrustAsia Global Root CA G4 +=========================== +-----BEGIN CERTIFICATE----- +MIICVTCCAdygAwIBAgIUTyNkuI6XY57GU4HBdk7LKnQV1tcwCgYIKoZIzj0EAwMwWjELMAkGA1UE +BhMCQ04xJTAjBgNVBAoMHFRydXN0QXNpYSBUZWNobm9sb2dpZXMsIEluYy4xJDAiBgNVBAMMG1Ry +dXN0QXNpYSBHbG9iYWwgUm9vdCBDQSBHNDAeFw0yMTA1MjAwMjEwMjJaFw00NjA1MTkwMjEwMjJa +MFoxCzAJBgNVBAYTAkNOMSUwIwYDVQQKDBxUcnVzdEFzaWEgVGVjaG5vbG9naWVzLCBJbmMuMSQw +IgYDVQQDDBtUcnVzdEFzaWEgR2xvYmFsIFJvb3QgQ0EgRzQwdjAQBgcqhkjOPQIBBgUrgQQAIgNi +AATxs8045CVD5d4ZCbuBeaIVXxVjAd7Cq92zphtnS4CDr5nLrBfbK5bKfFJV4hrhPVbwLxYI+hW8 +m7tH5j/uqOFMjPXTNvk4XatwmkcN4oFBButJ+bAp3TPsUKV/eSm4IJijYzBhMA8GA1UdEwEB/wQF +MAMBAf8wHwYDVR0jBBgwFoAUpbtKl86zK3+kMd6Xg1mDpm9xy94wHQYDVR0OBBYEFKW7SpfOsyt/ +pDHel4NZg6ZvccveMA4GA1UdDwEB/wQEAwIBBjAKBggqhkjOPQQDAwNnADBkAjBe8usGzEkxn0AA +bbd+NvBNEU/zy4k6LHiRUKNbwMp1JvK/kF0LgoxgKJ/GcJpo5PECMFxYDlZ2z1jD1xCMuo6u47xk +dUfFVZDj/bpV6wfEU6s3qe4hsiFbYI89MvHVI5TWWA== +-----END CERTIFICATE----- + +Telekom Security TLS ECC Root 2020 +================================== +-----BEGIN CERTIFICATE----- +MIICQjCCAcmgAwIBAgIQNjqWjMlcsljN0AFdxeVXADAKBggqhkjOPQQDAzBjMQswCQYDVQQGEwJE +RTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0eSBHbWJIMSswKQYDVQQDDCJUZWxl +a29tIFNlY3VyaXR5IFRMUyBFQ0MgUm9vdCAyMDIwMB4XDTIwMDgyNTA3NDgyMFoXDTQ1MDgyNTIz +NTk1OVowYzELMAkGA1UEBhMCREUxJzAlBgNVBAoMHkRldXRzY2hlIFRlbGVrb20gU2VjdXJpdHkg +R21iSDErMCkGA1UEAwwiVGVsZWtvbSBTZWN1cml0eSBUTFMgRUNDIFJvb3QgMjAyMDB2MBAGByqG +SM49AgEGBSuBBAAiA2IABM6//leov9Wq9xCazbzREaK9Z0LMkOsVGJDZos0MKiXrPk/OtdKPD/M1 +2kOLAoC+b1EkHQ9rK8qfwm9QMuU3ILYg/4gND21Ju9sGpIeQkpT0CdDPf8iAC8GXs7s1J8nCG6NC +MEAwHQYDVR0OBBYEFONyzG6VmUex5rNhTNHLq+O6zd6fMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0P +AQH/BAQDAgEGMAoGCCqGSM49BAMDA2cAMGQCMHVSi7ekEE+uShCLsoRbQuHmKjYC2qBuGT8lv9pZ +Mo7k+5Dck2TOrbRBR2Diz6fLHgIwN0GMZt9Ba9aDAEH9L1r3ULRn0SyocddDypwnJJGDSA3PzfdU +ga/sf+Rn27iQ7t0l +-----END CERTIFICATE----- + +Telekom Security TLS RSA Root 2023 +================================== +-----BEGIN CERTIFICATE----- +MIIFszCCA5ugAwIBAgIQIZxULej27HF3+k7ow3BXlzANBgkqhkiG9w0BAQwFADBjMQswCQYDVQQG +EwJERTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0eSBHbWJIMSswKQYDVQQDDCJU +ZWxla29tIFNlY3VyaXR5IFRMUyBSU0EgUm9vdCAyMDIzMB4XDTIzMDMyODEyMTY0NVoXDTQ4MDMy +NzIzNTk1OVowYzELMAkGA1UEBhMCREUxJzAlBgNVBAoMHkRldXRzY2hlIFRlbGVrb20gU2VjdXJp +dHkgR21iSDErMCkGA1UEAwwiVGVsZWtvbSBTZWN1cml0eSBUTFMgUlNBIFJvb3QgMjAyMzCCAiIw +DQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAO01oYGA88tKaVvC+1GDrib94W7zgRJ9cUD/h3VC +KSHtgVIs3xLBGYSJwb3FKNXVS2xE1kzbB5ZKVXrKNoIENqil/Cf2SfHVcp6R+SPWcHu79ZvB7JPP +GeplfohwoHP89v+1VmLhc2o0mD6CuKyVU/QBoCcHcqMAU6DksquDOFczJZSfvkgdmOGjup5czQRx +UX11eKvzWarE4GC+j4NSuHUaQTXtvPM6Y+mpFEXX5lLRbtLevOP1Czvm4MS9Q2QTps70mDdsipWo +l8hHD/BeEIvnHRz+sTugBTNoBUGCwQMrAcjnj02r6LX2zWtEtefdi+zqJbQAIldNsLGyMcEWzv/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M3z7gLfEdxquVeE +HVlNjM7IDiPCtyaaEBRx/pOyiriA8A4QntOoUAw3gi/q4Iqd4Sw5/7W0cwDk90imc6y/st53BIe0 +o82bNSQ3+pCTE4FCxpgmdTdmQRCsu/WU48IxK63nI1bMNSWSs1A= +-----END CERTIFICATE----- + +TWCA CYBER Root CA +================== +-----BEGIN CERTIFICATE----- +MIIFjTCCA3WgAwIBAgIQQAE0jMIAAAAAAAAAATzyxjANBgkqhkiG9w0BAQwFADBQMQswCQYDVQQG +EwJUVzESMBAGA1UEChMJVEFJV0FOLUNBMRAwDgYDVQQLEwdSb290IENBMRswGQYDVQQDExJUV0NB +IENZQkVSIFJvb3QgQ0EwHhcNMjIxMTIyMDY1NDI5WhcNNDcxMTIyMTU1OTU5WjBQMQswCQYDVQQG +EwJUVzESMBAGA1UEChMJVEFJV0FOLUNBMRAwDgYDVQQLEwdSb290IENBMRswGQYDVQQDExJUV0NB +IENZQkVSIFJvb3QgQ0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDG+Moe2Qkgfh1s +Ts6P40czRJzHyWmqOlt47nDSkvgEs1JSHWdyKKHfi12VCv7qze33Kc7wb3+szT3vsxxFavcokPFh +V8UMxKNQXd7UtcsZyoC5dc4pztKFIuwCY8xEMCDa6pFbVuYdHNWdZsc/34bKS1PE2Y2yHer43CdT +o0fhYcx9tbD47nORxc5zb87uEB8aBs/pJ2DFTxnk684iJkXXYJndzk834H/nY62wuFm40AZoNWDT +Nq5xQwTxaWV4fPMf88oon1oglWa0zbfuj3ikRRjpJi+NmykosaS3Om251Bw4ckVYsV7r8Cibt4LK +/c/WMw+f+5eesRycnupfXtuq3VTpMCEobY5583WSjCb+3MX2w7DfRFlDo7YDKPYIMKoNM+HvnKkH +IuNZW0CP2oi3aQiotyMuRAlZN1vH4xfyIutuOVLF3lSnmMlLIJXcRolftBL5hSmO68gnFSDAS9TM +fAxsNAwmmyYxpjyn9tnQS6Jk/zuZQXLB4HCX8SS7K8R0IrGsayIyJNN4KsDAoS/xUgXJP+92ZuJF +2A09rZXIx4kmyA+upwMu+8Ff+iDhcK2wZSA3M2Cw1a/XDBzCkHDXShi8fgGwsOsVHkQGzaRP6AzR +wyAQ4VRlnrZR0Bp2a0JaWHY06rc3Ga4udfmW5cFZ95RXKSWNOkyrTZpB0F8mAwIDAQABo2MwYTAO +BgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBSdhWEUfMFib5do5E83 +QOGt4A1WNzAdBgNVHQ4EFgQUnYVhFHzBYm+XaORPN0DhreANVjcwDQYJKoZIhvcNAQEMBQADggIB +AGSPesRiDrWIzLjHhg6hShbNcAu3p4ULs3a2D6f/CIsLJc+o1IN1KriWiLb73y0ttGlTITVX1olN +c79pj3CjYcya2x6a4CD4bLubIp1dhDGaLIrdaqHXKGnK/nZVekZn68xDiBaiA9a5F/gZbG0jAn/x +X9AKKSM70aoK7akXJlQKTcKlTfjF/biBzysseKNnTKkHmvPfXvt89YnNdJdhEGoHK4Fa0o635yDR +IG4kqIQnoVesqlVYL9zZyvpoBJ7tRCT5dEA7IzOrg1oYJkK2bVS1FmAwbLGg+LhBoF1JSdJlBTrq +/p1hvIbZv97Tujqxf36SNI7JAG7cmL3c7IAFrQI932XtCwP39xaEBDG6k5TY8hL4iuO/Qq+n1M0R +FxbIQh0UqEL20kCGoE8jypZFVmAGzbdVAaYBlGX+bgUJurSkquLvWL69J1bY73NxW0Qz8ppy6rBe +Pm6pUlvscG21h483XjyMnM7k8M4MZ0HMzvaAq07MTFb1wWFZk7Q+ptq4NxKfKjLji7gh7MMrZQzv +It6IKTtM1/r+t+FHvpw+PoP7UV31aPcuIYXcv/Fa4nzXxeSDwWrruoBa3lwtcHb4yOWHh8qgnaHl +IhInD0Q9HWzq1MKLL295q39QpsQZp6F6t5b5wR9iWqJDB0BeJsas7a5wFsWqynKKTbDPAYsDP27X +-----END CERTIFICATE----- + +SecureSign Root CA14 +==================== +-----B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9TC7XyvDf4Fg/LS8EmjijAQIDAQAB +o0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUBpOjCl4oaTeq +YR3r6/wtbyPk86AwDQYJKoZIhvcNAQEMBQADggIBAJaAcgkGfpzMkwQWu6A6jZJOtxEaCnFxEM0E +rX+lRVAQZk5KQaID2RFPeje5S+LGjzJmdSX7684/AykmjbgWHfYfM25I5uj4V7Ibed87hwriZLoA +ymzvftAj63iP/2SbNDefNWWipAA9EiOWWF3KY4fGoweITedpdopTzfFP7ELyk+OZpDc8h7hi2/Ds +Hzc/N19DzFGdtfCXwreFamgLRB7lUe6TzktuhsHSDCRZNhqfLJGP4xjblJUK7ZGqDpncllPjYYPG +FrojutzdfhrGe0K22VoF3Jpf1d+42kd92jjbrDnVHmtsKheMYc2xbXIBw8MgAGJoFjHVdqqGuw6q +nsb58Nn4DSEC5MUoFlkRudlpcyqSeLiSV5sI8jrlL5WwWLdrIBRtFO8KvH7YVdiI2i/6GaX7i+B/ +OfVyK4XELKzvGUWSTLNhB9xNH27SgRNcmvMSZ4PPmz+Ln52kuaiWA3rF7iDeM9ovnhp6dB7h7sxa +OgTdsxoEqBRjrLdHEoOabPXm6RUVkRqEGQ6UROcSjiVbgGcZ3GOTEAtlLor6CZpO2oYofaphNdgO +pygau1LgePhsumywbrmHXumZNTfxPWQrqaA0k89jL9WB365jJ6UeTo3cKXhZ+PmhIIynJkBugnLN +eLLIjzwec+fBH7/PzqUqm9tEZDKgu39cJRNItX+S +-----END CERTIFICATE----- + +SecureSign Root CA15 +==================== +-----BEGIN CERTIFICATE----- +MIICIzCCAamgAwIBAgIUFhXHw9hJp75pDIqI7fBw+d23PocwCgYIKoZIzj0EAwMwUTELMAkGA1UE +BhMCSlAxIzAhBgNVBAoTGkN5YmVydHJ1c3QgSmFwYW4gQ28uLCBMdGQuMR0wGwYDVQQDExRTZWN1 +cmVTaWduIFJvb3QgQ0ExNTAeFw0yMDA0MDgwODMyNTZaFw00NTA0MDgwODMyNTZaMFExCzAJBgNV +BAYTAkpQMSMwIQYDVQQKExpDeWJlcnRydXN0IEphcGFuIENvLiwgTHRkLjEdMBsGA1UEAxMUU2Vj +dXJlU2lnbiBSb290IENBMTUwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQLUHSNZDKZmbPSYAi4Io5G +dCx4wCtELW1fHcmuS1Iggz24FG1Th2CeX2yF2wYUleDHKP+dX+Sq8bOLbe1PL0vJSpSRZHX+AezB +2Ot6lHhWGENfa4HL9rzatAy2KZMIaY+jQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQD +AgEGMB0GA1UdDgQWBBTrQciu/NWeUUj1vYv0hyCTQSvT9DAKBggqhkjOPQQDAwNoADBlAjEA2S6J +fl5OpBEHvVnCB96rMjhTKkZEBhd6zlHp4P9mLQlO4E/0BdGF9jVg3PVys0Z9AjBEmEYagoUeYWmJ +SwdLZrWeqrqgHkHZAXQ6bkU6iYAZezKYVWOr62Nuk22rGwlgMU4= +-----END CERTIFICATE----- + +D-TRUST BR Root CA 2 2023 +========================= +-----BEGIN CERTIFICATE----- +MIIFqTCCA5GgAwIBAgIQczswBEhb2U14LnNLyaHcZjANBgkqhkiG9w0BAQ0FADBIMQswCQYDVQQG +EwJERTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMSIwIAYDVQQDExlELVRSVVNUIEJSIFJvb3QgQ0Eg +MiAyMDIzMB4XDTIzMDUwOTA4NTYzMVoXDTM4MDUwOTA4NTYzMFowSDELMAkGA1UEBhMCREUxFTAT +BgNVBAoTDEQtVHJ1c3QgR21iSDEiMCAGA1UEAxMZRC1UUlVTVCBCUiBSb290IENBIDIgMjAyMzCC +AiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK7/CVmRgApKaOYkP7in5Mg6CjoWzckjYaCT +cfKri3OPoGdlYNJUa2NRb0kz4HIHE304zQaSBylSa053bATTlfrdTIzZXcFhfUvnKL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swrPMhfiHocaFpVIbVrg0M8JkiZmkdij +YQ6qgYF/6FKC0ULn4B0Y+qSFNueG4A3rvNTJ1jxD8V1Jbn6Bm2m1iWKPiFLY1/4nwSPFyysCu7Ff +/vtDhQNGvl3GyiEm/9cCnnRK3PgTFbGBVzbLZVzRHTF36SXDw7IyN9XxmAnkbWOACKsGkoHU6XCP +pz+y7YaMgmo1yEJagtFSGkUPFaUA8JR7ZSdXOUPPfH/mvTWze/EZTN46ls/pdu4D58JDUjxqgejB +WoC9EV2Ta/vH5mQ/u2kc6d0li690yVRAysuTEwrt+2aSEcr1wPrYg1UDfNPFIkZ1cGt5SAYqgpq/ +5usWDiJFAbzdNpQ0qTUmiteXue4Icr80knCDgKs4qllo3UCkGJCy89UDyibK79XH4I9TjvAA46jt +n/mtd+ArY0+ew+43u3gJhJ65bvspmZDogNOfJA== +-----END CERTIFICATE----- + +TrustAsia TLS ECC Root CA +========================= +-----BEGIN CERTIFICATE----- +MIICMTCCAbegAwIBAgIUNnThTXxlE8msg1UloD5Sfi9QaMcwCgYIKoZIzj0EAwMwWDELMAkGA1UE +BhMCQ04xJTAjBgNVBAoTHFRydXN0QXNpYSBUZWNobm9sb2dpZXMsIEluYy4xIjAgBgNVBAMTGVRy +dXN0QXNpYSBUTFMgRUNDIFJvb3QgQ0EwHhcNMjQwNTE1MDU0MTU2WhcNNDQwNTE1MDU0MTU1WjBY +MQswCQYDVQQGEwJDTjElMCMGA1UEChMcVHJ1c3RBc2lhIFRlY2hub2xvZ2llcywgSW5jLjEiMCAG +A1UEAxMZVHJ1c3RBc2lhIFRMUyBFQ0MgUm9vdCBDQTB2MBAGByqGSM49AgEGBSuBBAAiA2IABLh/ +pVs/AT598IhtrimY4ZtcU5nb9wj/1WrgjstEpvDBjL1P1M7UiFPoXlfXTr4sP/MSpwDpguMqWzJ8 +S5sUKZ74LYO1644xST0mYekdcouJtgq7nDM1D9rs3qlKH8kzsaNCMEAwDwYDVR0TAQH/BAUwAwEB +/zAdBgNVHQ4EFgQULIVTu7FDzTLqnqOH/qKYqKaT6RAwDgYDVR0PAQH/BAQDAgEGMAoGCCqGSM49 +BAMDA2gAMGUCMFRH18MtYYZI9HlaVQ01L18N9mdsd0AaRuf4aFtOJx24mH1/k78ITcTaRTChD15K +eAIxAKORh/IRM4PDwYqROkwrULG9IpRdNYlzg8WbGf60oenUoWa2AaU2+dhoYSi3dOGiMQ== +-----END CERTIFICATE----- + +TrustAsia TLS RSA Root CA +========================= +-----BEGIN CERTIFICATE----- +MIIFgDCCA2igAwIBAgIUHBjYz+VTPyI1RlNUJDxsR9FcSpwwDQYJKoZIhvcNAQEMBQAwWDELMAkG +A1UEBhMCQ04xJTAjBgNVBAoTHFRydXN0QXNpYSBUZWNobm9sb2dpZXMsIEluYy4xIjAgBgNVBAMT +GVRydXN0QXNpYSBUTFMgUlNBIFJvb3QgQ0EwHhcNMjQwNTE1MDU0MTU3WhcNNDQwNTE1MDU0MTU2 +WjBYMQswCQYDVQQGEwJDTjElMCMGA1UEChMcVHJ1c3RBc2lhIFRlY2hub2xvZ2llcywgSW5jLjEi +MCAGA1UEAxMZVHJ1c3RBc2lhIFRMUyBSU0EgUm9vdCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIP +ADCCAgoCggIBAMMWuBtqpERz5dZO9LnPWwvB0ZqB9WOwj0PBuwhaGnrhB3YmH49pVr7+NmDQDIPN +lOrnxS1cLwUWAp4KqC/lYCZUlviYQB2srp10Zy9U+5RjmOMmSoPGlbYJQ1DNDX3eRA5gEk9bNb2/ +mThtfWza4mhzH/kxpRkQcwUqwzIZheo0qt1CHjCNP561HmHVb70AcnKtEj+qpklz8oYVlQwQX1Fk +zv93uMltrOXVmPGZLmzjyUT5tUMnCE32ft5EebuyjBza00tsLtbDeLdM1aTk2tyKjg7/D8OmYCYo +zza/+lcK7Fs/6TAWe8TbxNRkoDD75f0dcZLdKY9BWN4ArTr9PXwaqLEX8E40eFgl1oUh63kd0Nyr +z2I8sMeXi9bQn9P+P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a8G5z9nODmxfKuU4CkUpijy323imttUQ/hHWKNddBWcwauwxzQ= +-----END CERTIFICATE----- + +D-TRUST EV Root CA 2 2023 +========================= +-----BEGIN CERTIFICATE----- +MIIFqTCCA5GgAwIBAgIQaSYJfoBLTKCnjHhiU19abzANBgkqhkiG9w0BAQ0FADBIMQswCQYDVQQG +EwJERTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMSIwIAYDVQQDExlELVRSVVNUIEVWIFJvb3QgQ0Eg +MiAyMDIzMB4XDTIzMDUwOTA5MTAzM1oXDTM4MDUwOTA5MTAzMlowSDELMAkGA1UEBhMCREUxFTAT +BgNVBAoTDEQtVHJ1c3QgR21iSDEiMCAGA1UEAxMZRC1UUlVTVCBFViBSb290IENBIDIgMjAyMzCC +AiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANiOo4mAC7JXUtypU0w3uX9jFxPvp1sjW2l1 +sJkKF8GLxNuo4MwxusLyzV3pt/gdr2rElYfXR8mV2IIEUD2BCP/kPbOx1sWy/YgJ25yE7CUXFId/ +MHibaljJtnMoPDT3mfd/06b4HEV8rSyMlD/YZxBTfiLNTiVR8CUkNRFeEMbsh2aJgWi6zCudR3Mf +vc2RpHJqnKIbGKBv7FD0fUDCqDDPvXPIEysQEx6Lmqg6lHPTGGkKSv/BAQP/eX+1SH977ugpbzZM +lWGG2Pmic4ruri+W7mjNPU0oQvlFKzIbRlUWaqZLKfm7lVa/Rh3sHZMdwGWyH6FDrlaeoLGPaxK3 +YG14C8qKXO0elg6DpkiVjTujIcSuWMYAsoS0I6SWhjW42J7YrDRJmGOVxcttSEfi8i4YHtAxq910 +7PncjLgcjmgjutDzUNzPZY9zOjLHfP7KgiJPvo5iR2blzYfi6NUPGJ/lBHJLRjwQ8kTCZFZxTnXo +nMkmdMV9WdEKWw9t/p51HBjGGjp82A0EzM23RWV6sY+4roRIPrN6TagD4uJ+ARZZaBhDM7DS3LAa +QzXupdqpRlyuhoFBAUp0JuyfBr/CBTdkdXgpaP3F9ev+R/nkhbDhezGdpn9yo7nELC7MmVcOIQxF +AZRl62UJxmMiCzNJkkg8/M3OsD6Onov4/knFNXJHAgMBAAGjgY4wgYswDwYDVR0TAQH/BAUwAwEB +/zAdBgNVHQ4EFgQUqvyREBuHkV8Wub9PS5FeAByxMoAwDgYDVR0PAQH/BAQDAgEGMEkGA1UdHwRC +MEAwPqA8oDqGOGh0dHA6Ly9jcmwuZC10cnVzdC5uZXQvY3JsL2QtdHJ1c3RfZXZfcm9vdF9jYV8y +XzIwMjMuY3JsMA0GCSqGSIb3DQEBDQUAA4ICAQCTy6UfmRHsmg1fLBWTxj++EI14QvBukEdHjqOS +Mo1wj/Zbjb6JzkcBahsgIIlbyIIQbODnmaprxiqgYzWRaoUlrRc4pZt+UPJ26oUFKidBK7GB0aL2 +QHWpDsvxVUjY7NHss+jOFKE17MJeNRqrphYBBo7q3C+jisosketSjl8MmxfPy3MHGcRqwnNU73xD +UmPBEcrCRbH0O1P1aa4846XerOhUt7KR/aypH/KH5BfGSah82ApB9PI+53c0BFLd6IHyTS9URZ0V +4U/M5d40VxDJI3IXcI1QcB9WbMy5/zpaT2N6w25lBx2Eof+pDGOJbbJAiDnXH3dotfyc1dZnaVuo +dNv8ifYbMvekJKZ2t0dT741Jj6m2g1qllpBFYfXeA08mD6iL8AOWsKwV0HFaanuU5nCT2vFp4LJi +TZ6P/4mdm13NRemUAiKN4DV/6PEEeXFsVIP4M7kFMhtYVRFP0OUnR3Hs7dpn1mKmS00PaaLJvOwi +S5THaJQXfuKOKD62xur1NGyfN4gHONuGcfrNlUhDbqNPgofXNJhuS5N5YHVpD/Aa1VP6IQzCP+k/ +HxiMkl14p3ZnGbuy6n/pcAlWVqOwDAstNl7F6cTVg8uGF5csbBNvh1qvSaYd2804BC5f4ko1Di1L ++KIkBI3Y4WNeApI02phhXBxvWHZks/wCuPWdCg== +-----END CERTIFICATE----- + +SwissSign RSA TLS Root CA 2022 - 1 +================================== +-----BEGIN CERTIFICATE-----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IDAQAB +o2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAfBgNVHSMEGDAWgBRvjmKLk0Ow +4UD2p8P98Q+4DxU4pTAdBgNVHQ4EFgQUb45ii5NDsOFA9qfD/fEPuA8VOKUwDQYJKoZIhvcNAQEL +BQADggIBAKwsKUF9+lz1GpUYvyypiqkkVHX1uECry6gkUSsYP2OprphWKwVDIqO310aewCoSPY6W +lkDfDDOLazeROpW7OSltwAJsipQLBwJNGD77+3v1dj2b9l4wBlgzHqp41eZUBDqyggmNzhYzWUUo +8aWjlw5DI/0LIICQ/+Mmz7hkkeUFjxOgdg3XNwwQiJb0Pr6VvfHDffCjw3lHC1ySFWPtUnWK50Zp +y1FVCypM9fJkT6lc/2cyjlUtMoIcgC9qkfjLvH4YoiaoLqNTKIftV+Vlek4ASltOU8liNr3Cjlvr +zG4ngRhZi0Rjn9UMZfQpZX+RLOV/fuiJz48gy20HQhFRJjKKLjpHE7iNvUcNCfAWpO2Whi4Z2L6M +OuhFLhG6rlrnub+xzI/goP+4s9GFe3lmozm1O2bYQL7Pt2eLSMkZJVX8vY3PXtpOpvJpzv1/THfQ +wUY1mFwjmwJFQ5Ra3bxHrSL+ul4vkSkphnsh3m5kt8sNjzdbowhq6/TdAo9QAwKxuDdollDruF/U +KIqlIgyKhPBZLtU30WHlQnNYKoH3dtvi4k0NX/a3vgW0rk4N3hY9A4GzJl5LuEsAz/+MF7psYC0n +hzck5npgL7XTgwSqT0N1osGDsieYK7EOgLrAhV5Cud+xYJHT6xh+cHiudoO+cVrQkOPKwRYlZ0rw +tnu64ZzZ +-----END CERTIFICATE----- + +OISTE Server Root ECC G1 +======================== +-----BEGIN CERTIFICATE----- +MIICNTCCAbqgAwIBAgIQI/nD1jWvjyhLH/BU6n6XnTAKBggqhkjOPQQDAzBLMQswCQYDVQQGEwJD +SDEZMBcGA1UECgwQT0lTVEUgRm91bmRhdGlvbjEhMB8GA1UEAwwYT0lTVEUgU2VydmVyIFJvb3Qg +RUNDIEcxMB4XDTIzMDUzMTE0NDIyOFoXDTQ4MDUyNDE0NDIyN1owSzELMAkGA1UEBhMCQ0gxGTAX +BgNVBAoMEE9JU1RFIEZvdW5kYXRpb24xITAfBgNVBAMMGE9JU1RFIFNlcnZlciBSb290IEVDQyBH +MTB2MBAGByqGSM49AgEGBSuBBAAiA2IABBcv+hK8rBjzCvRE1nZCnrPoH7d5qVi2+GXROiFPqOuj +vqQycvO2Ackr/XeFblPdreqqLiWStukhEaivtUwL85Zgmjvn6hp4LrQ95SjeHIC6XG4N2xml4z+c +KrhAS93mT6NjMGEwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBQ3TYhlz/w9itWj8UnATgwQ +b0K0nDAdBgNVHQ4EFgQUN02IZc/8PYrVo/FJwE4MEG9CtJwwDgYDVR0PAQH/BAQDAgGGMAoGCCqG +SM49BAMDA2kAMGYCMQCpKjAd0MKfkFFRQD6VVCHNFmb3U2wIFjnQEnx/Yxvf4zgAOdktUyBFCxxg +ZzFDJe0CMQCSia7pXGKDYmH5LVerVrkR3SW+ak5KGoJr3M/TvEqzPNcum9v4KGm8ay3sMaE641c= +-----END CERTIFICATE----- + +OISTE Server Root RSA G1 +======================== +-----BEGIN CERTIFICATE----- +MIIFgzCCA2ugAwIBAgIQVaXZZ5Qoxu0M+ifdWwFNGDANBgkqhkiG9w0BAQwFADBLMQswCQYDVQQG +EwJDSDEZMBcGA1UECgwQT0lTVEUgRm91bmRhdGlvbjEhMB8GA1UEAwwYT0lTVEUgU2VydmVyIFJv +b3QgUlNBIEcxMB4XDTIzMDUzMTE0MzcxNloXDTQ4MDUyNDE0MzcxNVowSzELMAkGA1UEBhMCQ0gx +GTAXBgNVBAoMEE9JU1RFIEZvdW5kYXRpb24xITAfBgNVBAMMGE9JU1RFIFNlcnZlciBSb290IFJT +QSBHMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAKqu9KuCz/vlNwvn1ZatkOhLK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3n31r8Xbk5l +8PjaV8GUgeV6Vg27Rn9vkf195hfkgSe7BYhW3SCl95gtkRlpMV+bMPKZrXJAlszYd2abtNUOshD+ +FKrDgHGdPY3ofRRsYWSGRqbXVMW215AWRqWFyp464+YTFrYVI8ypKVL9AMb2kI5Wj4kI3Zaq5tNq +qYY19tVFeEJKRvwDyF7YZvZFZSS0vod7VSCd9521Kvy5YhnLbDuv0204bKt7ph6N/Ome/msVuduC +msuY33OhkKCgxeDoAaijFJzIwZqsFVAzje18KotzlUBDJvyBpCpfOZC3J8tRd/iWkx7P8nd9H0aT +olkelUTFLXVksNb54Dxp6gS1HAviRkRNQzuXSXERvSS2wq1yVAb+axj5d9spLFKebXd7Yv0PTY6Y +MjAwcRLWJTXjn/hvnLXrahut6hDTlhZyBiElxky8j3C7DOReIoMt0r7+hVu05L0= +-----END CERTIFICATE----- + +e-Szigno TLS Root CA 2023 +========================= +-----BEGIN CERTIFICATE----- +MIICzzCCAjGgAwIBAgINAOhvGHvWOWuYSkmYCjAKBggqhkjOPQQDBDB1MQswCQYDVQQGEwJIVTER +MA8GA1UEBwwIQnVkYXBlc3QxFjAUBgNVBAoMDU1pY3Jvc2VjIEx0ZC4xFzAVBgNVBGEMDlZBVEhV +LTIzNTg0NDk3MSIwIAYDVQQDDBllLVN6aWdubyBUTFMgUm9vdCBDQSAyMDIzMB4XDTIzMDcxNzE0 +MDAwMFoXDTM4MDcxNzE0MDAwMFowdTELMAkGA1UEBhMCSFUxETAPBgNVBAcMCEJ1ZGFwZXN0MRYw +FAYDVQQKDA1NaWNyb3NlYyBMdGQuMRcwFQYDVQRhDA5WQVRIVS0yMzU4NDQ5NzEiMCAGA1UEAwwZ +ZS1Temlnbm8gVExTIFJvb3QgQ0EgMjAyMzCBmzAQBgcqhkjOPQIBBgUrgQQAIwOBhgAEAGgP36J8 +PKp0iGEKjcJMpQEiFNT3YHdCnAo4YKGMZz6zY+n6kbCLS+Y53wLCMAFSAL/fjO1ZrTJlqwlZULUZ +w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B18FTQN2/zPHYmvBEoLuyUgZ09VNLJo5YA0kXItVYkLjMe2SixzK4sc +UHv81IK99I91DWx7FwMVKw2xgFp+ZLYB2dnpQQrqwlW64glHUcK2N9BDsnjLSxeZ+UPECh9RxH4W +AcKiZW+cqaKMmhP2WBfR4IcR7NOL32ml11ds87hhV1CZWWFCJAcCidYZz6CZa8exzHojP9SB5RH0 +/v1KdHAisqhSjtJl/UIAHIQ48elOn8wrTdFap4Yb5aHglmMeNx+fAIhDluWVfxTO7H4dTPU+SFVR +MLAh+wwKZfqb94nMeQ== +-----END CERTIFICATE----- + +SECOM TLS ECC Root CA 2024 +========================== +-----BEGIN CERTIFICATE----- +MIICTDCCAdGgAwIBAgIJAIF6LO+PI3pEMAoGCCqGSM49BAMDMFoxCzAJBgNVBAYTAkpQMSYwJAYD +VQQKEx1TRUNPTSBUcnVzdCBTeXN0ZW1zIENvLiwgTHRkLjEjMCEGA1UEAxMaU0VDT00gVExTIEVD +QyBSb290IENBIDIwMjQwHhcNMjQwMTMxMDU1MjM0WhcNNDkwMTE0MDU1MjM0WjBaMQswCQYDVQQG +EwJKUDEmMCQGA1UEChMdU0VDT00gVHJ1c3QgU3lzdGVtcyBDby4sIEx0ZC4xIzAhBgNVBAMTGlNF +Q09NIFRMUyBFQ0MgUm9vdCBDQSAyMDI0MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE7NzFMtu9dzQX +SNC12fabk0+GlC5finB3R7XaZonRUd20aFiWObtuNBCLUZSfk6QXAE55BjEXsXQ/NG8yUqicXjsu +9ksDK3JZBgCwLOVh6+nwJXTvso/dEj/GUYH5mBdoo2MwYTAdBgNVHQ4EFgQUO3YReyl04k4GTFaC +QNAhL3qzydUwHwYDVR0jBBgwFoAUO3YReyl04k4GTFaCQNAhL3qzydUwDgYDVR0PAQH/BAQDAgEG +MA8GA1UdEwEB/wQFMAMBAf8wCgYIKoZIzj0EAwMDaQAwZgIxAN3ib8fi1pMYtAPjMilB5e5/H+t5 +CL0xPL+cZ5oTTZuSCjpAn1v7F/VAr8bFxQXAowIxAKsBVO1ACFp7skwzPvdv1EUY5a897WGLT4lb ++bjxFAWyl8wDcZJdwGZ/pAHxt1AJ1g== +-----END CERTIFICATE----- + +Telia EC TLS Root CA v3 +======================= +-----BEGIN CERTIFICATE----- +MIICMjCCAbegAwIBAgIPAYvSIlRjTQSLbOVHH9K1MAoGCCqGSM49BAMDMEoxCzAJBgNVBAYTAlNF +MRkwFwYDVQQKDBBUZWxpYSBDb21wYW55IEFCMSAwHgYDVQQDDBdUZWxpYSBFQyBUTFMgUm9vdCBD +QSB2MzAeFw0yMzExMTUwODU1MjZaFw00ODA1MjMxMTAwMDBaMEoxCzAJBgNVBAYTAlNFMRkwFwYD +VQQKDBBUZWxpYSBDb21wYW55IEFCMSAwHgYDVQQDDBdUZWxpYSBFQyBUTFMgUm9vdCBDQSB2MzB2 +MBAGByqGSM49AgEGBSuBBAAiA2IABMHIlhVDLbmFKUpW0iK4dpryT6emYOeS31JPwWnWPmkWRrAk +TbPX40sQfHI9mpR7Rbktu3ngg6W+BBSXSechtMCnBmWXj/EaVlmV5cY1jD2HoTfhBQ3AacpCNMLJ +K4NpZaNjMGEwHwYDVR0jBBgwFoAU1GToQ4g6cy/QGnGCNgtehd7H3kMwHQYDVR0OBBYEFNRk6EOI +OnMv0BpxgjYLXoXex95DMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49 +BAMDA2kAMGYCMQCXAUdS/9bbJ8A1JYaGf/bWt/s7Ta0ot5Ulno8OjSNYRWQIlS4tVWldvTAVA7he +OFgCMQCvKr8+Z2Rn+OBr5UHzlgBObpad1LuwNTRcdNgUJxIWadcki+UBLEi1/AURKV5md2M= +-----END CERTIFICATE----- + +Telia RSA TLS Root CA v3 +======================== +-----BEGIN CERTIFICATE----- +MIIFgjCCA2qgAwIBAgIPAYvSUKtCVSxHWr2h3BrFMA0GCSqGSIb3DQEBDAUAMEsxCzAJBgNVBAY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ud +DwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBDAUAA4ICAQBdYzFsNGDRk7bR +/AgRKq+5637YuOW+w6uhpoS0VnKMUpyHCwku86hEvqivakPtfmlm4bFwt++sb/8OXsWBqtfbXMaB +NDTZl8XRMJuLWOW2JrbKkRzgG0eBUcvsadG1rrhbmZqYvFXaAZO7o4TdOZzxhBB5GOAWWXB3Iera +NP4J63zyo9n8Gqw3sJBG44em5hoYjBffP+npibyslnslRi4L6xHsCYj/Pab+OlqbMCB6v+sTCLeE +IukRVzoR9aQ45pEK7Z1QBnSsbAKQtss0JKD9d/mX143H1xePjPhTXlv5JCkhrcj+SShz0P9+EHoW +e6m9lyUEOIVn0rp+yVJWNbmyDv3VkwFxHC1ApSQsgSimjGQ4wtr6cSmordYxkV+Ro8lOIIhRksXP +yDk27gW6IjUXCkZKpxFjkL3jiBSc8SkxnwCWtXg8xwNwdFVNBGLCCuJnsneYXjJNqzRqUcoGwzsv +F3Qi/ZnHUNvISdevlgIAXL4Wvrxaqvoa01wB+GCfs57RTGE4TvAGhKNKus8K3hRT1BSpigzMIRzS +xtAOrqPN6j//QSmW9f8Jcncri4j2ihSpVrFU0NdNkMhZeAKidTFPsxCVFuW4Aniz7jqiw5sWtjbQ +rlW035izIEU4sYwQoC1Nx0Svy+mMTRai50LqFQ+A1/Hq6xHHDNx7CI83d23Erw== +-----END CERTIFICATE----- diff --git a/vendor/composer/ca-bundle/src/CaBundle.php b/vendor/composer/ca-bundle/src/CaBundle.php new file mode 100644 index 0000000..6cf3b84 --- /dev/null +++ b/vendor/composer/ca-bundle/src/CaBundle.php @@ -0,0 +1,322 @@ + + * + * For the full copyright and license information, please view + * the LICENSE file that was distributed with this source code. + */ + +namespace Composer\CaBundle; + +use Psr\Log\LoggerInterface; +use Symfony\Component\Process\PhpProcess; + +/** + * @author Chris Smith + * @author Jordi Boggiano + */ +class CaBundle +{ + /** @var string|null */ + private static $caPath; + /** @var array */ + private static $caFileValidity = array(); + + /** + * Returns the system CA bundle path, or a path to the bundled one + * + * This method was adapted from Sslurp. + * https://github.com/EvanDotPro/Sslurp + * + * (c) Evan Coury + * + * For the full copyright and license information, please see below: + * + * Copyright (c) 2013, Evan Coury + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * @param LoggerInterface $logger optional logger for information about which CA files were loaded + * @return string path to a CA bundle file or directory + */ + public static function getSystemCaRootBundlePath(?LoggerInterface $logger = null) + { + if (self::$caPath !== null) { + return self::$caPath; + } + $caBundlePaths = array(); + + // If SSL_CERT_FILE env variable points to a valid certificate/bundle, use that. + // This mimics how OpenSSL uses the SSL_CERT_FILE env variable. + $caBundlePaths[] = self::getEnvVariable('SSL_CERT_FILE'); + + // If SSL_CERT_DIR env variable points to a valid certificate/bundle, use that. + // This mimics how OpenSSL uses the SSL_CERT_FILE env variable. + $caBundlePaths[] = self::getEnvVariable('SSL_CERT_DIR'); + + $caBundlePaths[] = ini_get('openssl.cafile'); + $caBundlePaths[] = ini_get('openssl.capath'); + + $otherLocations = array( + '/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem', // Fedora, RHEL, CentOS (ca-certificates package) - NEW + '/etc/pki/tls/certs/ca-bundle.crt', // Fedora, RHEL, CentOS (ca-certificates package) - Deprecated + '/etc/ssl/certs/ca-certificates.crt', // Debian, Ubuntu, Gentoo, Arch Linux (ca-certificates package) + '/etc/ssl/ca-bundle.pem', // SUSE, openSUSE (ca-certificates package) + '/usr/ssl/certs/ca-bundle.crt', // Cygwin + '/opt/local/share/curl/curl-ca-bundle.crt', // OS X macports, curl-ca-bundle package + '/usr/local/share/curl/curl-ca-bundle.crt', // Default cURL CA bunde path (without --with-ca-bundle option) + '/usr/share/ssl/certs/ca-bundle.crt', // Really old RedHat? + '/etc/ssl/cert.pem', // OpenBSD + '/usr/local/etc/openssl/cert.pem', // OS X homebrew, openssl package + '/usr/local/etc/openssl@1.1/cert.pem', // OS X homebrew, openssl@1.1 package + '/opt/homebrew/etc/openssl@3/cert.pem', // macOS silicon homebrew, openssl@3 package + '/opt/homebrew/etc/openssl@1.1/cert.pem', // macOS silicon homebrew, openssl@1.1 package + '/etc/pki/tls/certs', + '/etc/ssl/certs', // FreeBSD + ); + + $caBundlePaths = array_merge($caBundlePaths, $otherLocations); + + foreach ($caBundlePaths as $caBundle) { + if ($caBundle && self::caFileUsable($caBundle, $logger)) { + return self::$caPath = $caBundle; + } + + if ($caBundle && self::caDirUsable($caBundle, $logger)) { + return self::$caPath = $caBundle; + } + } + + return self::$caPath = static::getBundledCaBundlePath(); // Bundled CA file, last resort + } + + /** + * Returns the path to the bundled CA file + * + * In case you don't want to trust the user or the system, you can use this directly + * + * @return string path to a CA bundle file + */ + public static function getBundledCaBundlePath() + { + $caBundleFile = __DIR__.'/../res/cacert.pem'; + + // cURL does not understand 'phar://' paths + // see https://github.com/composer/ca-bundle/issues/10 + if (0 === strpos($caBundleFile, 'phar://')) { + $tempCaBundleFile = tempnam(sys_get_temp_dir(), 'openssl-ca-bundle-'); + if (false === $tempCaBundleFile) { + throw new \RuntimeException('Could not create a temporary file to store the bundled CA file'); + } + + file_put_contents( + $tempCaBundleFile, + file_get_contents($caBundleFile) + ); + + register_shutdown_function(function() use ($tempCaBundleFile) { + @unlink($tempCaBundleFile); + }); + + $caBundleFile = $tempCaBundleFile; + } + + return $caBundleFile; + } + + /** + * Validates a CA file using opensl_x509_parse only if it is safe to use + * + * @param string $filename + * @param LoggerInterface $logger optional logger for information about which CA files were loaded + * + * @return bool + */ + public static function validateCaFile($filename, ?LoggerInterface $logger = null) + { + static $warned = false; + + if (isset(self::$caFileValidity[$filename])) { + return self::$caFileValidity[$filename]; + } + + $contents = file_get_contents($filename); + + if (is_string($contents) && strlen($contents) > 0) { + $contents = preg_replace("/^(\\-+(?:BEGIN|END))\\s+TRUSTED\\s+(CERTIFICATE\\-+)\$/m", '$1 $2', $contents); + if (null === $contents) { + // regex extraction failed + $isValid = false; + } else { + $isValid = (bool) openssl_x509_parse($contents); + } + } else { + $isValid = false; + } + + if ($logger) { + $logger->debug('Checked CA file '.realpath($filename).': '.($isValid ? 'valid' : 'invalid')); + } + + return self::$caFileValidity[$filename] = $isValid; + } + + /** + * Test if it is safe to use the PHP function openssl_x509_parse(). + * + * This checks if OpenSSL extensions is vulnerable to remote code execution + * via the exploit documented as CVE-2013-6420. + * + * @return bool + */ + public static function isOpensslParseSafe() + { + return true; + } + + /** + * Resets the static caches + * @return void + */ + public static function reset() + { + self::$caFileValidity = array(); + self::$caPath = null; + } + + /** + * @param string $name + * @return string|false + */ + private static function getEnvVariable($name) + { + if (isset($_SERVER[$name])) { + return (string) $_SERVER[$name]; + } + + if (PHP_SAPI === 'cli' && ($value = getenv($name)) !== false && $value !== null) { + return (string) $value; + } + + return false; + } + + /** + * @param string|false $certFile + * @param LoggerInterface|null $logger + * @return bool + */ + private static function caFileUsable($certFile, ?LoggerInterface $logger = null) + { + return $certFile + && self::isFile($certFile, $logger) + && self::isReadable($certFile, $logger) + && self::validateCaFile($certFile, $logger); + } + + /** + * @param string|false $certDir + * @param LoggerInterface|null $logger + * @return bool + */ + private static function caDirUsable($certDir, ?LoggerInterface $logger = null) + { + return $certDir + && self::isDir($certDir, $logger) + && self::isReadable($certDir, $logger) + && self::glob($certDir . '/*', $logger); + } + + /** + * @param string $certFile + * @param LoggerInterface|null $logger + * @return bool + */ + private static function isFile($certFile, ?LoggerInterface $logger = null) + { + $isFile = @is_file($certFile); + if (!$isFile && $logger) { + $logger->debug(sprintf('Checked CA file %s does not exist or it is not a file.', $certFile)); + } + + return $isFile; + } + + /** + * @param string $certDir + * @param LoggerInterface|null $logger + * @return bool + */ + private static function isDir($certDir, ?LoggerInterface $logger = null) + { + $isDir = @is_dir($certDir); + if (!$isDir && $logger) { + $logger->debug(sprintf('Checked directory %s does not exist or it is not a directory.', $certDir)); + } + + return $isDir; + } + + /** + * @param string $certFileOrDir + * @param LoggerInterface|null $logger + * @return bool + */ + private static function isReadable($certFileOrDir, ?LoggerInterface $logger = null) + { + $isReadable = @is_readable($certFileOrDir); + if (!$isReadable && $logger) { + $logger->debug(sprintf('Checked file or directory %s is not readable.', $certFileOrDir)); + } + + return $isReadable; + } + + /** + * @param string $pattern + * @param LoggerInterface|null $logger + * @return bool + */ + private static function glob($pattern, ?LoggerInterface $logger = null) + { + $certs = glob($pattern); + if ($certs === false) { + if ($logger) { + $logger->debug(sprintf("An error occurred while trying to find certificates for pattern: %s", $pattern)); + } + return false; + } + + if (count($certs) === 0) { + if ($logger) { + $logger->debug(sprintf("No CA files found for pattern: %s", $pattern)); + } + return false; + } + + return true; + } +} diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json new file mode 100644 index 0000000..d245711 --- /dev/null +++ b/vendor/composer/installed.json @@ -0,0 +1,683 @@ +{ + "packages": [ + { + "name": "composer/ca-bundle", + "version": "1.5.14", + "version_normalized": "1.5.14.0", + "source": { + "type": "git", + "url": "https://github.com/composer/ca-bundle.git", + "reference": "0c8abba0634f637bd78c4e451981da368d403463" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/0c8abba0634f637bd78c4e451981da368d403463", + "reference": "0c8abba0634f637bd78c4e451981da368d403463", + "shasum": "" + }, + "require": { + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^8 || ^9", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "symfony/process": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "time": "2026-08-21T14:57:29+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Composer\\CaBundle\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", + "keywords": [ + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/ca-bundle/issues", + "source": "https://github.com/composer/ca-bundle/tree/1.5.14" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + } + ], + "install-path": "./ca-bundle" + }, + { + "name": "mollie/mollie-api-php", + "version": "v4.0.0", + "version_normalized": "4.0.0.0", + "source": { + "type": "git", + "url": "https://github.com/mollie/mollie-api-php.git", + "reference": "265dfcb58339ec4fec726012ca40c672316bf8de" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mollie/mollie-api-php/zipball/265dfcb58339ec4fec726012ca40c672316bf8de", + "reference": "265dfcb58339ec4fec726012ca40c672316bf8de", + "shasum": "" + }, + "require": { + "composer/ca-bundle": "^1.4", + "ext-curl": "*", + "ext-json": "*", + "ext-openssl": "*", + "nyholm/psr7": "^1.8", + "php": "^8.2", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.1", + "psr/http-message": "^1.1|^2.0", + "symfony/var-dumper": "^5.4|^6.4|^7.2|^8.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.6", + "laravel/pint": "1.30.4", + "pestphp/pest": "^3.0", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^11.5" + }, + "suggest": { + "mollie/oauth2-mollie-php": "Use OAuth to authenticate with the Mollie API. This is needed for some endpoints. Visit https://docs.mollie.com/ for more information." + }, + "time": "2026-09-23T13:16:56+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "Mollie\\Api\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Mollie B.V.", + "email": "info@mollie.com" + } + ], + "description": "Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.", + "homepage": "https://www.mollie.com/en/developers", + "keywords": [ + "Apple Pay", + "CBC", + "Przelewy24", + "api", + "bancontact", + "banktransfer", + "belfius", + "belfius direct net", + "charges", + "creditcard", + "direct debit", + "fashioncheque", + "gateway", + "gift cards", + "ideal", + "inghomepay", + "intersolve", + "kbc", + "klarna", + "mistercash", + "mollie", + "paylater", + "payment", + "payments", + "paypal", + "paysafecard", + "podiumcadeaukaart", + "recurring", + "refunds", + "sepa", + "service", + "sliceit", + "sofort", + "sofortbanking", + "subscriptions" + ], + "support": { + "issues": "https://github.com/mollie/mollie-api-php/issues", + "source": "https://github.com/mollie/mollie-api-php/tree/v4.0.0" + }, + "install-path": "../mollie/mollie-api-php" + }, + { + "name": "nyholm/psr7", + "version": "1.8.2", + "version_normalized": "1.8.2.0", + "source": { + "type": "git", + "url": "https://github.com/Nyholm/psr7.git", + "reference": "a71f2b11690f4b24d099d6b16690a90ae14fc6f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Nyholm/psr7/zipball/a71f2b11690f4b24d099d6b16690a90ae14fc6f3", + "reference": "a71f2b11690f4b24d099d6b16690a90ae14fc6f3", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0" + }, + "provide": { + "php-http/message-factory-implementation": "1.0", + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "http-interop/http-factory-tests": "^0.9", + "php-http/message-factory": "^1.0", + "php-http/psr7-integration-tests": "^1.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.4", + "symfony/error-handler": "^4.4" + }, + "time": "2024-09-09T07:06:30+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.8-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Nyholm\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com" + }, + { + "name": "Martijn van der Ven", + "email": "martijn@vanderven.se" + } + ], + "description": "A fast PHP7 implementation of PSR-7", + "homepage": "https://tnyholm.se", + "keywords": [ + "psr-17", + "psr-7" + ], + "support": { + "issues": "https://github.com/Nyholm/psr7/issues", + "source": "https://github.com/Nyholm/psr7/tree/1.8.2" + }, + "funding": [ + { + "url": "https://github.com/Zegnat", + "type": "github" + }, + { + "url": "https://github.com/nyholm", + "type": "github" + } + ], + "install-path": "../nyholm/psr7" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "version_normalized": "1.0.3.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "time": "2023-09-23T14:17:50+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "install-path": "../psr/http-client" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "version_normalized": "1.1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "time": "2024-04-15T12:06:14+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "install-path": "../psr/http-factory" + }, + { + "name": "psr/http-message", + "version": "2.0", + "version_normalized": "2.0.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "time": "2023-04-04T09:54:51+00:00", + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "install-path": "../psr/http-message" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.7.1", + "version_normalized": "3.7.1.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/f3202fa1b5097b0af062dc978b32ecf63404e31d", + "reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "time": "2026-06-05T06:23:12+00:00", + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.7-dev" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "install-path": "../symfony/deprecation-contracts" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.43.0", + "version_normalized": "1.43.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "4d5d331bf731e0aedbc6b2f5e61135b7b7996a72" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/4d5d331bf731e0aedbc6b2f5e61135b7b7996a72", + "reference": "4d5d331bf731e0aedbc6b2f5e61135b7b7996a72", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "php": ">=7.2" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "time": "2026-09-24T15:19:04+00:00", + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "installation-source": "dist", + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.43.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "install-path": "../symfony/polyfill-mbstring" + }, + { + "name": "symfony/var-dumper", + "version": "v7.4.18", + "version_normalized": "7.4.18.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "e088da50b813f32473a76871616cbb8fa54653a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/e088da50b813f32473a76871616cbb8fa54653a8", + "reference": "e088da50b813f32473a76871616cbb8fa54653a8", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/uid": "^6.4|^7.0|^8.0", + "twig/twig": "^3.12|^4.0" + }, + "time": "2026-08-30T20:10:52+00:00", + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "installation-source": "dist", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v7.4.18" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "install-path": "../symfony/var-dumper" + } + ], + "dev": true, + "dev-package-names": [] +} diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php new file mode 100644 index 0000000..c3adb25 --- /dev/null +++ b/vendor/composer/installed.php @@ -0,0 +1,122 @@ + array( + 'name' => '__root__', + 'pretty_version' => '1.0.0+no-version-set', + 'version' => '1.0.0.0', + 'reference' => null, + 'type' => 'library', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev' => true, + ), + 'versions' => array( + '__root__' => array( + 'pretty_version' => '1.0.0+no-version-set', + 'version' => '1.0.0.0', + 'reference' => null, + 'type' => 'library', + 'install_path' => __DIR__ . '/../../', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'composer/ca-bundle' => array( + 'pretty_version' => '1.5.14', + 'version' => '1.5.14.0', + 'reference' => '0c8abba0634f637bd78c4e451981da368d403463', + 'type' => 'library', + 'install_path' => __DIR__ . '/./ca-bundle', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'mollie/mollie-api-php' => array( + 'pretty_version' => 'v4.0.0', + 'version' => '4.0.0.0', + 'reference' => '265dfcb58339ec4fec726012ca40c672316bf8de', + 'type' => 'library', + 'install_path' => __DIR__ . '/../mollie/mollie-api-php', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'nyholm/psr7' => array( + 'pretty_version' => '1.8.2', + 'version' => '1.8.2.0', + 'reference' => 'a71f2b11690f4b24d099d6b16690a90ae14fc6f3', + 'type' => 'library', + 'install_path' => __DIR__ . '/../nyholm/psr7', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'php-http/message-factory-implementation' => array( + 'dev_requirement' => false, + 'provided' => array( + 0 => '1.0', + ), + ), + 'psr/http-client' => array( + 'pretty_version' => '1.0.3', + 'version' => '1.0.3.0', + 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/http-client', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-factory' => array( + 'pretty_version' => '1.1.0', + 'version' => '1.1.0.0', + 'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/http-factory', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-factory-implementation' => array( + 'dev_requirement' => false, + 'provided' => array( + 0 => '1.0', + ), + ), + 'psr/http-message' => array( + 'pretty_version' => '2.0', + 'version' => '2.0.0.0', + 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', + 'type' => 'library', + 'install_path' => __DIR__ . '/../psr/http-message', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'psr/http-message-implementation' => array( + 'dev_requirement' => false, + 'provided' => array( + 0 => '1.0', + ), + ), + 'symfony/deprecation-contracts' => array( + 'pretty_version' => 'v3.7.1', + 'version' => '3.7.1.0', + 'reference' => 'f3202fa1b5097b0af062dc978b32ecf63404e31d', + 'type' => 'library', + 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'symfony/polyfill-mbstring' => array( + 'pretty_version' => 'v1.43.0', + 'version' => '1.43.0.0', + 'reference' => '4d5d331bf731e0aedbc6b2f5e61135b7b7996a72', + 'type' => 'library', + 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', + 'aliases' => array(), + 'dev_requirement' => false, + ), + 'symfony/var-dumper' => array( + 'pretty_version' => 'v7.4.18', + 'version' => '7.4.18.0', + 'reference' => 'e088da50b813f32473a76871616cbb8fa54653a8', + 'type' => 'library', + 'install_path' => __DIR__ . '/../symfony/var-dumper', + 'aliases' => array(), + 'dev_requirement' => false, + ), + ), +); diff --git a/vendor/composer/platform_check.php b/vendor/composer/platform_check.php new file mode 100644 index 0000000..14bf88d --- /dev/null +++ b/vendor/composer/platform_check.php @@ -0,0 +1,25 @@ += 80200)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 8.2.0". You are running ' . PHP_VERSION . '.'; +} + +if ($issues) { + if (!headers_sent()) { + header('HTTP/1.1 500 Internal Server Error'); + } + if (!ini_get('display_errors')) { + if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { + fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); + } elseif (!headers_sent()) { + echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; + } + } + throw new \RuntimeException( + 'Composer detected issues in your platform: ' . implode(' ', $issues) + ); +} diff --git a/vendor/mollie/mollie-api-php/CHANGELOG.md b/vendor/mollie/mollie-api-php/CHANGELOG.md new file mode 100644 index 0000000..8d321cf --- /dev/null +++ b/vendor/mollie/mollie-api-php/CHANGELOG.md @@ -0,0 +1,543 @@ +# Changelog + +Starting with v3, all notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased](https://github.com/mollie/mollie-api-php/compare/v4.0.0...HEAD) + +## [v4.0.0](https://github.com/mollie/mollie-api-php/compare/v4.0.0-beta.3...v4.0.0) - 2026-09-23 + +The first stable v4 release requires PHP 8.2 or newer. See [UPGRADING.md](UPGRADING.md) for the v3 migration guide and the beta entries below for detailed changes. + +### Added + +- `PaymentMethod::Wero` brings the v3.14.0 payment method addition to v4. The enum remains SDK vocabulary, not an allow-list; unknown methods still arrive as strings. + +### Included from the v4 betas + +- String-backed enums, typed resources, readonly value objects, and inferred `MollieApiClient::send()` return types. +- `Money::of()` builders, exponential retries with `Retry-After` handling, improved validation errors, and typed fake responses. +- Profile webhook events, webhook snapshot hydration, and the v3 endpoint additions through v3.13.2. +- Request serialization preserves `0`, `"0"`, and `0.0`; the latest v3 fix is already present in v4. See the beta.2 notes for related request factory behavior. + +## [v3.14.0](https://github.com/mollie/mollie-api-php/compare/v3.13.2...v3.14.0) - 2026-09-07 + +### What's Changed + +* fix: support applicationFee on payment link creation by @Naoray in https://github.com/mollie/mollie-api-php/pull/895 +* Update signature-verification.md by @fjbender in https://github.com/mollie/mollie-api-php/pull/902 +* Do not drop request fields whose value is 0, "0" or 0.0 by @winklemad in https://github.com/mollie/mollie-api-php/pull/907 +* fix: repair release changelog automation by @Naoray in https://github.com/mollie/mollie-api-php/pull/909 +* Reconcile main with the published v3 releases by @Naoray in https://github.com/mollie/mollie-api-php/pull/912 +* Add wero as supported payment method by @robindirksen1 in https://github.com/mollie/mollie-api-php/pull/924 + +### New Contributors + +* @winklemad made their first contribution in https://github.com/mollie/mollie-api-php/pull/907 +* @robindirksen1 made their first contribution in https://github.com/mollie/mollie-api-php/pull/924 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.13.0...v3.14.0 + +## [v4.0.0-beta.3](https://github.com/mollie/mollie-api-php/compare/v4.0.0-beta.2...v4.0.0-beta.3) - 2026-08-26 + +### Added + +- `PaymentStatusReason` value object (`code`, `message`); `Payment::$statusReason` is now `?PaymentStatusReason` instead of an untyped `stdClass`. `->code`/`->message` reads and `json_encode()` keep working; update `instanceof stdClass` checks, any mutation (the object is readonly), and array-only consumers by calling `toArray()`. +- `PaymentMethod` cases `Billink`, `Bizum`, `Mobilepay`, `Vipps`, and `Voucher`. Existing cases are unchanged; the enum documents known SDK vocabulary, not an allow-list. +- `CapabilityStatus::Unrequested` and `Capability::isUnrequested()`. +- `Balance::$pendingAmount` (`?Money`), the amount field the Balance API returns. +- `ResourceHydratableRequest::hydrateInto()` and `::wrapInto()`. Both carry `@phpstan-self-out` and `@psalm-this-out` annotations that PHPStan honors so `send()` infers the re-targeted class or wrapper. `setHydratableResource()` is unchanged but cannot narrow the type. + +### Changed + +- **`PaymentMethodStatus` and `TerminalPairingCodeStatus` are string-backed enums.** Their `SCREAMING_SNAKE` constants are gone, the same migration the other value sets took in beta.1. `PaymentMethodStatus::NOT_REQUESTED` has no case: `Method::$status` is `null` for a method that was never requested. `TerminalPairingCode::$status` is typed `TerminalPairingCodeStatus|string`. +- `Method::$status` no longer has a `null` default. The API marks the field required (nullable), so an omitted field now stays uninitialized instead of reading as "not requested"; an explicit `null` still means the method was never requested. + +### Fixed + +- **Nullable enum unions now hydrate to enum cases.** `Enum|string|null` properties resolved as `mixed` and kept the raw API string. Affected: `Payment::$method`, `Payment::$sequenceType`, `Refund::$status`, `Mandate::$status`, `Settlement::$status`, `Profile::$status`, `CurrentProfile::$status`, `Invoice::$status`, `Subscription::$status`, and, after its enum migration, `Method::$status`. Code written against beta.2 that compares these to raw strings must compare with the case or `->value`, or use `Utility::equals()`, which accepts the case or raw value on either side. `MandateCollection::whereStatus()` accepts a `MandateStatus` case or raw string. Unknown values still arrive as strings; `null` is unchanged. `Profile::$categoryCode` (`int|string|null`) keeps the delivered scalar type. +- `Organization::$address`, `$registrationNumber`, and `$vatNumber` are nullable with a `null` default, matching the API contract. Beta.2 threw `TypeError` on `null` and `Error` on an omitted field. `Organization::$locale` stays a required, non-null `string`. +- `Capability::$statusReason` accepts `null`; `Capability::$organizationId` is nullable with a `null` default because the field is not part of the Capability response. +- `Balance` no longer fails on a conformant response: `$incomingAmount` and `$outgoingAmount` (both deprecated because they are not part of the Balance response), `$transferFrequency`, and `$transferThreshold` are nullable with a `null` default. +- Fields the API contract marks nullable or optional no longer throw `TypeError` on `null` or `Error` when omitted: `Terminal::$brand`, `$model`, `$serialNumber` (`?string`); `Terminal::$timezone`, `$locale` (`?string = null`); `Capture::$amount` (`?Money`); `PaymentLink::$profileId` (`?string`); `Webhook::$profileId` (`?string`); `Partner::$partnerType` (`?string`); `Partner::$partnerContractUpdateAvailable` (`?bool = null`); `BalanceTransaction::$deductions` (`?Money = null`); `BalanceTransaction::$mode` (`?string = null`); `Route::$releaseDate` (`?string = null`); `ConnectBalanceTransfer::$category` (`?string = null`); `SalesInvoice::$paymentTerm`, `$currency`, `$webhookUrl` (`?string = null`); and `SalesInvoice::$lines` (`?array = null`). Other `SalesInvoice` fields are unchanged pending further contract review. +- UPGRADING.md no longer prints a Types class count and now documents enum reflection, rebuilding readonly value objects, uninitialized typed properties, wrapped-request inference, and caller-side `strict_types` behavior. + +### For contributors + +- A test asserts every file under `src/Types/` is a backed enum except the query helpers and `Types\Method`. +- A PHPStan fixture under `tests/` asserts the inferred `send()` types on every analysis run. + +## [v4.0.0-beta.2](https://github.com/mollie/mollie-api-php/compare/v4.0.0-beta.1...v4.0.0-beta.2) - 2026-08-25 + +### Added + +- `RateLimit` value object and `Response::rateLimit()` accessor for `RateLimit` and `RateLimit-Policy` response headers. +- `middleware()->onResolved()`, a post-hydration middleware phase for transforms that need the hydrated resource or collection rather than the raw response. +- `Mollie\Api\Utils\Utility::isTrue()`, the shared boolean coercion used for API-facing scalar values such as `testmode` arriving from a query string or payload. + +### Changed + +- `ExponentialRetryStrategy` skips 429 retries when `Retry-After` exceeds `maxDelayMs` and adds bounded, additive jitter when honoring the header. +- `ExponentialRetryStrategy` applies the `maxDelayMs` cap before exponential full jitter, avoiding a probability spike at the cap. +- **`onResponse()` callbacks now always receive the raw `Response`**, regardless of priority. Move transforms that expect a hydrated resource or collection to `onResolved()`. See [UPGRADING.md](UPGRADING.md) section 3.7. +- **Custom endpoint maps are declared with a class constant.** Subclasses that mutated the protected static `$endpoints` property must override the protected `ENDPOINTS` constant instead. See [UPGRADING.md](UPGRADING.md) section 3.6. +- The one-shot idempotency key is now transferred to the request while it is assembled and cleared from the connector immediately, so a failed or exhausted retry can no longer leak it into a later request. Retries reuse the key already on the assembled request. +- Test mode is resolved once per request, with API-key precedence, so the value observed on the request cannot drift from the value sent to Mollie. +- Balance transaction listing propagates one effective test mode across every list, page and iterator route. +- Request factories resolve values by key presence rather than truthiness, so explicitly supplied falsy values such as `0`, `"0"` and `0.0` are no longer dropped. +- `ResourceRegistry` keeps its class and type indexes consistent, and paginated query factories build their query from one authoritative input map. + +### Removed + +- `Mollie\Api\Http\Middleware\ResetIdempotencyKey`. It cleared the connector key from the response phase, which never runs when a request throws. Clearing now happens during request assembly, so no replacement is needed. `setIdempotencyKey()` and `resetIdempotencyKey()` are unchanged. + +### For contributors + +- Formatting moved from PHP-CS-Fixer to [Laravel Pint](https://laravel.com/docs/pint). Run `composer format` to apply and `composer check:format` to verify. The rule set is unchanged, so no reformatting is required on in-flight branches. +- The code style workflow reports violations instead of committing fixes back to the branch, and CI validation reads the repository's real PHPStan and PHPUnit configuration. +- `bin/release` publishes only from an already-merged remote state and honors the operator's tag signing configuration. +- The changelog workflow derives its identity from the release event and triggers on `published`, so pre-releases are no longer skipped. + +## [v3.13.2](https://github.com/mollie/mollie-api-php/compare/v3.13.1...v3.13.2) - 2026-08-24 + +### What's Changed + +* Update signature-verification.md by @fjbender in https://github.com/mollie/mollie-api-php/pull/902 +* Do not drop request fields whose value is 0, "0" or 0.0 by @winklemad in https://github.com/mollie/mollie-api-php/pull/907 + +### New Contributors + +* @winklemad made their first contribution in https://github.com/mollie/mollie-api-php/pull/907 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.13.1...v3.13.2 + +## [v4.0.0-beta.1](https://github.com/mollie/mollie-api-php/compare/v3.13.0...v4.0.0-beta.1) - 2026-08-12 + +PHP 8.2+ modernization. See [UPGRADING.md](UPGRADING.md) for the full guide. + +### Breaking changes + +- **PHP 8.2+ required.** PHP 7.4, 8.0, 8.1 dropped. CI matrix is 8.2, 8.3, 8.4. +- **Type constants → string-backed enums.** The API value-set classes under `src/Types/` are now `enum ... : string` with `PascalCase` cases (`PaymentStatus::Paid`). `PaymentMethodStatus` and `TerminalPairingCodeStatus` followed after v4.0.0-beta.2; query helpers and `Types\Method` stay classes. Resource `$status`-style properties are typed `EnumName|string`. The `Mollie\Api\Traits\GetAllConstants` trait is removed with this migration — call `cases()` on the enum instead; `BusinessCategory`, `ConnectBalanceTransferCategory`, and `SubscriptionStatus` keep a static `all()` returning the raw values. +- **Resource properties typed.** Fields previously typed `\stdClass` are now concrete value objects. Property names are unchanged — `$payment->amount->value` and `->currency` still work. +- **Value objects are `readonly class`.** `Money`, `Address`, `OrderLine` etc. cannot be subclassed by non-readonly children. Prefer the new `Macroable` extension point. +- **Constructor signatures via promotion.** Named arguments unchanged; positional callers may need to reorder. +- **Typed signatures throughout.** Coercion of your arguments depends on `strict_types` in *your* files, not the SDK's; see UPGRADING.md section 3.3. +- **`Macroable` on `Money`** — undefined methods now throw `BadMethodCallException` instead of PHP's default fatal error. +- **PHPUnit + Paratest → Pest v3** in `require-dev` (consumer impact only if running SDK tests). + +### Added + +- Generic `@template` return type on `MollieApiClient::send()` — return type inferred from the request class. Resolves [#875](https://github.com/mollie/mollie-api-php/issues/875). +- `Money::of(string $currency)` fluent builder with `minorUnits(int $amount)` and `fromString(string $value)`. Resolves [#876](https://github.com/mollie/mollie-api-php/issues/876). +- `ExponentialRetryStrategy` with optional jitter and HTTP 429 (`Retry-After`) support. +- Typed `MockResponse` factories: `payment(...)`, `customer(...)`, `subscription(...)`, `mandate(...)`, `refund(...)`, `chargeback(...)`, `method(...)`, `paymentLink(...)`, `invoice(...)`, `capture(...)`. +- `Macroable` trait for `Money` (and other value objects) for custom factories without subclassing. +- `ValidationException` exposes per-field errors; `TooManyRequestsException` exposes `retryAfterSeconds`; `Response` exposes header access. +- 4 profile webhook event classes (`ProfileCreated`, `ProfileVerified`, `ProfileBlocked`, `ProfileDeleted`) for constants-to-class parity. + +### Changed + +- `ResourceHydrator` rewritten reflection-based so it can populate the new typed resource properties (value objects, enums, nested collections). Origin routing (HTTP vs. webhook snapshot) behaves exactly as in v3.13. +- Constructor promotion applied across Request and Exception classes. + +### Removed + +- PHP 7.4 / 8.0 / 8.1 support. +- Paratest dev dependency (Pest has `--parallel` built in). +- `Mollie\Api\Traits\GetAllConstants` trait — superseded by the enum migration. Use the enum's native `cases()`; `BusinessCategory`, `ConnectBalanceTransferCategory`, and `SubscriptionStatus` keep a static `all()` returning the raw string values. + +### Fixed + +- Exception messages no longer include invalid authentication tokens or request body contents, while structured exception accessors remain available. +- `docs/webhooks.md` previously stated that `$event->entity()` returns null for simple payloads. It actually throws. Updated to correctly describe reading the nullable `$event->entity` property or fetching the resource via `$event->entityId`. + +## [v3.13.1](https://github.com/mollie/mollie-api-php/compare/v3.13.0...v3.13.1) - 2026-06-08 + +## What's Changed + +* fix: support applicationFee on payment link creation by @Naoray in https://github.com/mollie/mollie-api-php/pull/895 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.13.0...v3.13.1 + +## [v3.13.0](https://github.com/mollie/mollie-api-php/compare/v3.12.0...v3.13.0) - 2026-06-01 + +## What's Changed + +* feat: add terminal pairing code endpoints by @gabrielciobanu-mollie in https://github.com/mollie/mollie-api-php/pull/894 +* feat: re-add payouts endpoints (restored after revert) by @Naoray in https://github.com/mollie/mollie-api-php/pull/893 + +## New Contributors + +* @gabrielciobanu-mollie made their first contribution in https://github.com/mollie/mollie-api-php/pull/894 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.12.0...v3.13.0 + +## [v3.12.0](https://github.com/mollie/mollie-api-php/compare/v3.11.0...v3.12.0) - 2026-05-19 + +## What's Changed + +* fix: add scopes query parameter to list customer mandates by @Naoray in https://github.com/mollie/mollie-api-php/pull/887 +* feat: add Google Pay direct integration support by @Naoray in https://github.com/mollie/mollie-api-php/pull/888 +* fix: pass settlement pagination filters by @Naoray in https://github.com/mollie/mollie-api-php/pull/889 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.11.0...v3.12.0 + +## [v3.11.0](https://github.com/mollie/mollie-api-php/compare/v3.10.0...v3.11.0) - 2026-05-06 + +### Added + +- `Mollie\Api\Contracts\ResourceOrigin` marker interface describing where + a hydrated resource came from. `Http\Response` now implements it. +- `BaseResource::getOrigin()` / `setOrigin()` accessors on every hydrated + resource and collection. HTTP-hydrated resources set origin to the + `Response` automatically; no migration needed for existing user code. +- `Mollie\Api\Webhooks\WebhookSnapshotOrigin` exposes the event id, + signature, and received-at timestamp of the webhook that produced a + hydrated resource. Accessible via `$resource->getOrigin()`. +- `Mollie\Api\Webhooks\SnapshotHydrator` feeds a webhook snapshot through + the main `ResourceHydrator` after a one-line `json_decode(json_encode())` + normalization so nested values arrive as stdClass (matching the HTTP + path byte-for-byte). +- `BaseEvent::asResource(Connector)` hydrates the embedded entity into a + fully-typed SDK resource and automatically threads the rich origin + (event id, signature, received-at). +- `WebhookEventMapper::processPayload()` gains an optional `?string $signature` parameter that is threaded through to the resulting event + and carried onto hydrated resources via `WebhookSnapshotOrigin`. +- `ResourceCollection::withOrigin()` factory as the origin-aware sibling + of `withResponse()`. + +### Changed + +- **BC-implied:** `IsResponseAware::getResponse()` return type narrowed + from `Response` to `?Response`. HTTP-hydrated resources continue to + return a non-null `Response`, matching pre-refactor behavior. + Webhook-hydrated resources return `null`. User code that chains + `$resource->getResponse()->successful()` or similar without a null + check will NPE on webhook-origin resources — audit your webhook + handlers before upgrading. HTTP-only consumers see no change. +- **BC-implied:** `HasResponse::getPendingRequest()` return type + narrowed from `PendingRequest` to `?PendingRequest`. Same rationale. +- `WebhookEntity::asResource()` gains an optional + `?WebhookSnapshotOrigin` second parameter. Callers using the + single-arg form (`$event->entity()->asResource($mollie)`) continue to + work and receive a fallback origin with null signature. Mapper-driven + flow (`$event->asResource($mollie)`) passes the rich origin + automatically. +- Hydrating a webhook payload no longer requires a valid API key on the + connector. Signed snapshots are self-sufficient, so a signing-secret-only + webhook worker can read the snapshot without any key. **Follow-up calls** + (`$payment->refunds()`, `$subscription->payments()`, etc.) still + require an authenticator — they fire real HTTP requests. +- Follow-up methods on hydrated resources (`Payment::refunds/captures/chargebacks`, + `Profile::chargebacks/methods/payments/refunds`, `Subscription::payments`) + now fall back to their endpoint collection when the embedded webhook + snapshot does not carry the corresponding `_links.{name}.href`. + Previously these methods returned an empty collection in that case, + which was a silent behavioural difference between HTTP-origin and + webhook-origin resources. With this change the SDK routes through + the connector using the resource's id (same pattern + `PaymentLink::payments()` already used), so you get a live child + collection on both origins. Relative `_links.{name}.href` values in + webhook payloads are resolved against the client's base URL via + `Url::join`, no special handling required on the caller's side. + +### For contributors + +- `WebhookEventMapper::createWebhookEntityFromPayload()` switched from + `array_pop($_embedded)` to key-agnostic iteration that picks the first + candidate carrying `id` and `resource` fields. Mollie keys the + embedded entity under `_embedded.entity`; the new iteration resolves + that correctly and is resilient to any future schema tweak (additional + `_embedded` sub-blocks, renamed key) without silently breaking webhook + handling. + +### Removed + +- `WebhookEntity::buildSyntheticResponse()` and its dependencies on + `PendingRequest`, `DynamicGetRequest`, `Nyholm\Psr7\Request`, and + `Nyholm\Psr7\Response`. Webhook hydration goes through + `SnapshotHydrator`. +- `protected Response $response` property on the `HasResponse` trait. + Storage is now `?ResourceOrigin $origin`; the `getResponse()` accessor + narrows back to `?Response` for callers. Third-party subclasses that + read `$this->response` directly must migrate to `$this->getResponse()` + or `$this->getOrigin()`. + +### Fixed + +- `docs/webhooks.md` previously stated that `$event->entity()` returns + null for simple payloads. It actually throws. Updated to correctly + describe reading the nullable `$event->entity` property or fetching + the resource via `$event->entityId`. + +## What's Changed + +* refactor(webhooks): decouple hydrated resources from the HTTP domain by @Naoray in https://github.com/mollie/mollie-api-php/pull/880 +* fix(webhooks): hydrate entity locally from signed snapshot by @Naoray in https://github.com/mollie/mollie-api-php/pull/879 +* fix: change customer email property type to a nullable string by @edwinvdpol in https://github.com/mollie/mollie-api-php/pull/882 +* fix: make all UpdateSalesInvoiceRequest params optional by @Naoray in https://github.com/mollie/mollie-api-php/pull/885 +* fix: make all UpdateSalesInvoiceRequest params optional by @fjbender in https://github.com/mollie/mollie-api-php/pull/884 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.10.0...v3.11.0 + +## [v3.10.0](https://github.com/mollie/mollie-api-php/compare/v3.9.0...v3.10.0) - 2026-04-15 + +## What's Changed + +* Update documentation link for methods API by @sandervanhooft in https://github.com/mollie/mollie-api-php/pull/866 +* docs: add full OAuth permission scopes list and link to official reference by @Naoray in https://github.com/mollie/mollie-api-php/pull/867 +* docs: fix documentation reference url by @dionnijssen in https://github.com/mollie/mollie-api-php/pull/871 +* Fix: Add missing `googlepay` type to wallet constants by @NormanAlbert91 in https://github.com/mollie/mollie-api-php/pull/869 +* feat: Add BACS mandate method for UK direct debit support by @sandervanhooft in https://github.com/mollie/mollie-api-php/pull/870 +* Fix PHPStan CI: replace ramsey/composer-install with plain composer install by @Naoray in https://github.com/mollie/mollie-api-php/pull/873 +* Fix PHP 8+ deprecation warning in CreatePaymentRefundRequest by @Naoray in https://github.com/mollie/mollie-api-php/pull/872 +* Fix onFatal callback bug + strict comparison consistency by @Naoray in https://github.com/mollie/mollie-api-php/pull/874 +* feat: add lines, addresses and minimumAmount to Payment Links API by @Naoray in https://github.com/mollie/mollie-api-php/pull/877 +* feat(sessions): align session endpoint with API specification by @Naoray in https://github.com/mollie/mollie-api-php/pull/858 + +## New Contributors + +* @dionnijssen made their first contribution in https://github.com/mollie/mollie-api-php/pull/871 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.9.0...v3.10.0 + +## [v3.9.0](https://github.com/mollie/mollie-api-php/compare/v3.8.0...v3.9.0) - 2026-02-09 + +## What's Changed + +* Fix: Don't call deprecated `setAccessible()` by @derrabus in https://github.com/mollie/mollie-api-php/pull/852 +* Fix documented `Capability::$requirements` structure by @derrabus in https://github.com/mollie/mollie-api-php/pull/853 +* feat(auth): add setToken helper for api keys by @Naoray in https://github.com/mollie/mollie-api-php/pull/859 +* Chore/enhance sdk with docs and convenience methods by @Naoray in https://github.com/mollie/mollie-api-php/pull/855 +* Fix/wrong payment details attribute by @Naoray in https://github.com/mollie/mollie-api-php/pull/854 +* Remove incorrect null return type from ClientLink::getRedirectUrl() by @Naoray in https://github.com/mollie/mollie-api-php/pull/865 +* Remove incorrect null return type from ClientLink::getRedirectUrl() by @NormanAlbert91 in https://github.com/mollie/mollie-api-php/pull/862 + +## New Contributors + +* @derrabus made their first contribution in https://github.com/mollie/mollie-api-php/pull/852 +* @NormanAlbert91 made their first contribution in https://github.com/mollie/mollie-api-php/pull/862 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.8.0...v3.9.0 + +## [v3.8.0](https://github.com/mollie/mollie-api-php/compare/v3.7.0...v3.8.0) - 2026-01-06 + +### What's Changed + +* feat: add metadata to connect balance transfer by @Naoray in https://github.com/mollie/mollie-api-php/pull/848 +* Fix cURL deprecation notice for PHP 8.5 and higher by @RobinvanderVliet in https://github.com/mollie/mollie-api-php/pull/847 +* fix: make TransferParty data accessible for debugging by @Naoray in https://github.com/mollie/mollie-api-php/pull/849 +* Sandervanhooft fix/inclusion qr mismatch by @Naoray in https://github.com/mollie/mollie-api-php/pull/851 + +### New Contributors + +* @RobinvanderVliet made their first contribution in https://github.com/mollie/mollie-api-php/pull/847 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.7.0...v3.8.0 + +## [v3.7.0](https://github.com/mollie/mollie-api-php/compare/v3.6.0...v3.7.0) - 2025-12-01 + +### What's Changed + +* Add GOOGLEPAY and SWISH payment methods by @samdejongobc in https://github.com/mollie/mollie-api-php/pull/844 +* Add fromArray to Money by @Naoray in https://github.com/mollie/mollie-api-php/pull/846 + +### New Contributors + +* @samdejongobc made their first contribution in https://github.com/mollie/mollie-api-php/pull/844 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.6.0...v3.7.0 + +## [v3.6.0](https://github.com/mollie/mollie-api-php/compare/v3.5.0...v3.6.0) - 2025-11-05 + +### What's Changed + +* Feat/add balance transfer webhook events by @sandervanhooft in https://github.com/mollie/mollie-api-php/pull/842 +* Fixed webhook docs typo and explained next-gen webhook focus by @sandervanhooft in https://github.com/mollie/mollie-api-php/pull/841 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.5.0...v3.6.0 + +## [v3.5.0](https://github.com/mollie/mollie-api-php/compare/v3.4.0...v3.5.0) - 2025-10-28 + +### Added + +* Feat/add retry logic by @Naoray in https://github.com/mollie/mollie-api-php/pull/826 +* Feat/add fake retain requests option by @Naoray in https://github.com/mollie/mollie-api-php/pull/830 +* feat: add isEInvoice param and add support for testmode in all sales-… by @Naoray in https://github.com/mollie/mollie-api-php/pull/832 +* feat: add customerId and mandateId to create sales invoice request by @Naoray in https://github.com/mollie/mollie-api-php/pull/834 +* Feat/add balance transfer endpoint by @Naoray in https://github.com/mollie/mollie-api-php/pull/831 +* Feat/add webhook mapping and events by @Naoray in https://github.com/mollie/mollie-api-php/pull/829 + - global Config that serves as a lookup map to easily map resources to their respective collection keys + - `MockEvent` to easily test event handling + - `Str` utility class + - `classBasename` to `Utility` + - `WebhookEntity` to serve as Container for Resource data received through webhooks (-> can be transformed into BaseResource) + - Webhook Events that are instanced via the `WebhookEventMapper` + + +### Changed + +- Feat/make sequence mock responses consume callables by @Naoray in https://github.com/mollie/mollie-api-php/pull/833 + +### Fixed + +* Change include to embed just like in GetPaginatedChargebacksRequest.php #837 by @Naoray in https://github.com/mollie/mollie-api-php/pull/838 +* Allow description on CreatePaymentRefundRequest to be empty by @Naoray in https://github.com/mollie/mollie-api-php/pull/839 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.4.0...v3.5.0 + +## [v3.4.0](https://github.com/mollie/mollie-api-php/compare/v3.3.3...v3.4.0) - 2025-08-13 + +### What's Changed + +* Feat/add new payment route endpoints by @Naoray in https://github.com/mollie/mollie-api-php/pull/825 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.3.3...v3.4.0 + +## [v3.3.3](https://github.com/mollie/mollie-api-php/compare/v3.3.2...v3.3.3) - 2025-08-12 + +## What's Changed + +* Fix/823 inconsistencies on payment link request by @Naoray in https://github.com/mollie/mollie-api-php/pull/824 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.3.2...v3.3.3 + +## [v3.3.2](https://github.com/mollie/mollie-api-php/compare/v3.3.1...v3.3.2) - 2025-07-25 + +## What's Changed + +* Fix/819 signature date invalid by @Naoray in https://github.com/mollie/mollie-api-php/pull/820 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.3.1...v3.3.2 + +## [v3.3.1](https://github.com/mollie/mollie-api-php/compare/v3.3.0...v3.3.1) - 2025-07-25 + +### What's Changed + +* fix: signature validator handling null signatures by @Naoray in https://github.com/mollie/mollie-api-php/pull/822 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.3.0...v3.3.1 + +## [v3.3.0](https://github.com/mollie/mollie-api-php/compare/v3.2.0...v3.3.0) - 2025-07-25 + +## What's Changed + +* Feat/expose webhook signature header by @Naoray in https://github.com/mollie/mollie-api-php/pull/821 +* Feat/expose webhook signature creation by @Naoray + +## [v3.2.0](https://github.com/mollie/mollie-api-php/compare/v3.1.5...v3.2.0) - 2025-07-23 + +### What's Changed + +* Feat/add create webhook endpoint by @Naoray in https://github.com/mollie/mollie-api-php/pull/812 +* Feat/webhook signature verification by @Naoray in https://github.com/mollie/mollie-api-php/pull/813 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.1.5...v3.2.0 + +## [v3.1.5](https://github.com/mollie/mollie-api-php/compare/v3.1.4...v3.1.5) - 2025-07-10 + +### What's Changed + +* Fix: allow array of payment methods when creating a payment by @jockri in https://github.com/mollie/mollie-api-php/pull/811 +* Sandervanhooft fix/recipe classes by @Naoray in https://github.com/mollie/mollie-api-php/pull/815 +* Fix class references on recipes by @sandervanhooft in https://github.com/mollie/mollie-api-php/pull/814 +* Fix payment links expiresAt by @sandervanhooft in https://github.com/mollie/mollie-api-php/pull/817 +* Change "include" into "embed" on GetPaginatedChargebacksRequest by @sandervanhooft in https://github.com/mollie/mollie-api-php/pull/818 + +### New Contributors + +* @jockri made their first contribution in https://github.com/mollie/mollie-api-php/pull/811 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.1.4...v3.1.5 + +## [v3.1.4](https://github.com/mollie/mollie-api-php/compare/v3.1.3...v3.1.4) - 2025-06-11 + +## What's Changed + +* Fix 400 Bad Request on DELETE when store array is empty by @cswiers in https://github.com/mollie/mollie-api-php/pull/810 + +## New Contributors + +* @cswiers made their first contribution in https://github.com/mollie/mollie-api-php/pull/810 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.1.3...v3.1.4 + +## [v3.1.3](https://github.com/mollie/mollie-api-php/compare/v3.1.2...v3.1.3) - 2025-06-11 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.1.3...v3.1.3 + +## [v3.1.2](https://github.com/mollie/mollie-api-php/compare/v3.1.1...v3.1.2) - 2025-06-10 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.1.1...v3.1.2 + +## [v3.1.1](https://github.com/mollie/mollie-api-php/compare/v3.1.0...v3.1.1) - 2025-06-10 + +## What's Changed + +* Fix/include resources by @Naoray in https://github.com/mollie/mollie-api-php/pull/808 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.1.0...v3.1.1 + +## [v3.1.0](https://github.com/mollie/mollie-api-php/compare/v3.0.6...v3.1.0) - 2025-06-05 + +### What's Changed + +* Main by @Naoray in https://github.com/mollie/mollie-api-php/pull/804 +* feat: add status reason to payment resource by @Naoray in https://github.com/mollie/mollie-api-php/pull/806 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.0.6...v3.1.0 + +## [v3.0.6](https://github.com/mollie/mollie-api-php/compare/v1.0.0-test...v3.0.6) - 2025-06-02 + +### What's Changed + +* Amend capturable recipe by @fjbender in https://github.com/mollie/mollie-api-php/pull/796 +* fix: exchange wrong request name by @Naoray in https://github.com/mollie/mollie-api-php/pull/797 +* Removes nullability from delete() method, as it cannot return null by @Sjustein in https://github.com/mollie/mollie-api-php/pull/802 +* fix: use payload instead of query params for testmode by @Naoray in https://github.com/mollie/mollie-api-php/pull/803 + +### New Contributors + +* @Sjustein made their first contribution in https://github.com/mollie/mollie-api-php/pull/802 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.0.5...v3.0.6 + +## [v3.0.5](https://github.com/mollie/mollie-api-php/compare/v3.0.4...v3.0.5) - 2025-04-27 + +### What's Changed + +* Fix/791 data types may mess up property order by @Naoray in https://github.com/mollie/mollie-api-php/pull/794 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.0.4...v3.0.5 + +## [v3.0.4](https://github.com/mollie/mollie-api-php/compare/v3.0.3...v3.0.4) - 2025-04-25 + +### What's Changed + +* Chore/allow psr message v1 by @Naoray in https://github.com/mollie/mollie-api-php/pull/793 +* Fix/789 remove overhault to resource calls by @Naoray in https://github.com/mollie/mollie-api-php/pull/792 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.0.3...v3.0.4 + +## [v3.0.3](https://github.com/mollie/mollie-api-php/compare/v3.0.2...v3.0.3) - 2025-04-23 + +### What's Changed + +* Fixed docs links by @sandervanhooft in https://github.com/mollie/mollie-api-php/pull/787 +* Feat/small improvements by @Naoray in https://github.com/mollie/mollie-api-php/pull/788 + * make `MockResponse` serializable + * add changed `$metadata` handling to upgrade guide + + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.0.2...v3.0.3 + +## [v3.0.2](https://github.com/mollie/mollie-api-php/compare/v3.0.0...v3.0.2) - 2025-04-17 + +### What's Changed + +* handle nullable 422 exception field by @sandervanhooft in https://github.com/mollie/mollie-api-php/pull/786 + +**Full Changelog**: https://github.com/mollie/mollie-api-php/compare/v3.0.1...v3.0.2 diff --git a/vendor/mollie/mollie-api-php/CLAUDE.md b/vendor/mollie/mollie-api-php/CLAUDE.md new file mode 100644 index 0000000..ee1e9f3 --- /dev/null +++ b/vendor/mollie/mollie-api-php/CLAUDE.md @@ -0,0 +1,104 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Project Overview + +PHP SDK for the Mollie API (https://docs.mollie.com/reference/overview). Supports PHP ^8.2. Namespace: `Mollie\Api`. + +## Commands + +```bash +# Run all tests (parallel) +composer test # runs: vendor/bin/pest --parallel + +# Run a single test file +vendor/bin/pest tests/Path/To/TestFile.php + +# Run a single test method +vendor/bin/pest --filter testMethodName tests/Path/To/TestFile.php + +# Static analysis (level 5) +vendor/bin/phpstan + +# Install dependencies +composer install +``` + +## Architecture + +This SDK has two interaction layers: + +### 1. Modern Request Layer (preferred for new code) +Send typed request objects directly via `$client->send()`. Inspired by SaloonPHP. + +``` +src/Http/Requests/ → Typed request classes (CreatePaymentRequest, GetPaymentRequest, etc.) +src/Http/Request.php → Abstract base class (ResourceHydratableRequest, CollectionHydratableRequest) +src/Http/PendingRequest → Orchestrates the request pipeline +src/Http/Middleware/ → Request/response middleware (auth, hydration, error handling, idempotency) +src/Http/Adapter/ → HTTP client adapters (Guzzle, cURL, PSR-18) +``` + +### 2. Legacy EndpointCollection Layer +Fluent interface via magic properties on the client (`$client->payments->create(...)`). Delegates to the modern request layer via Factories. + +``` +src/EndpointCollection/ → Fluent endpoint classes (PaymentEndpointCollection, etc.) +src/Factories/ → Convert unstructured array data → typed Request objects +``` + +The `HasEndpoints` trait provides `__get()` magic to lazy-load endpoint collections. + +### Supporting Code + +``` +src/MollieApiClient.php → Main entry point, composed via traits +src/Resources/ → Response models (Payment, Customer, etc.) with convenience methods +src/Contracts/ → Interfaces for extensibility (Connector, HttpAdapterContract, etc.) +src/Traits/ → Shared behavior (HandlesAuthentication, SendsRequests, HasMiddleware, etc.) +src/Types/ → Constants and enums (PaymentStatus, PaymentMethod, etc.) +src/Exceptions/ → Custom exception hierarchy (ApiException → specific subtypes) +src/Http/Data/ → Value objects (Money, Address, OrderLine, etc.) +src/Fake/ → Testing utilities (MockMollieClient, MockResponse) +``` + +### Request Execution Flow + +``` +MollieApiClient::send(Request) + → PendingRequest applies handlers (user-agent, headers, auth, testmode) + → Middleware pipeline (onRequest) + → HttpAdapter sends HTTP request + → Middleware pipeline (onResponse: error conversion, hydration) + → Returns hydrated Resource object +``` + +### Adding a New Endpoint + +1. Create Request class in `src/Http/Requests/` (extend `ResourceHydratableRequest` or `CollectionHydratableRequest`) +2. Create Factory class in `src/Factories/` to bridge array input → typed request +3. Add method to the appropriate `EndpointCollection` in `src/EndpointCollection/` +4. Add Resource class in `src/Resources/` if it's a new resource type + +### Testing Pattern + +Use the built-in mock client — no real HTTP calls needed: + +```php +$client = MollieApiClient::fake([ + GetPaymentRequest::class => MockResponse::ok(['resource' => 'payment', ...]), +]); + +$payment = $client->send(new GetPaymentRequest('tr_xxx')); + +$client->assertSent(GetPaymentRequest::class); +``` + +Test fixtures live in `tests/Fixtures/`. Documentation and code examples are in `docs/`. + +## CI + +- **Tests**: Pest v3 across PHP 8.2, 8.3, 8.4 +- **Static analysis**: PHPStan level 5 (with baseline) +- **Code style**: Laravel Pint diff --git a/vendor/mollie/mollie-api-php/LICENSE b/vendor/mollie/mollie-api-php/LICENSE new file mode 100644 index 0000000..12c9d8d --- /dev/null +++ b/vendor/mollie/mollie-api-php/LICENSE @@ -0,0 +1,8 @@ +Copyright (c) 2013-2016, Mollie B.V. +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/mollie/mollie-api-php/README.md b/vendor/mollie/mollie-api-php/README.md new file mode 100644 index 0000000..69c8107 --- /dev/null +++ b/vendor/mollie/mollie-api-php/README.md @@ -0,0 +1,155 @@ +

+ +

+ +

Mollie API client for PHP

+ +
+ +[![Build Status](https://github.com/mollie/mollie-api-php/workflows/tests/badge.svg)](https://github.com/mollie/mollie-api-php/actions) +[![Latest Stable Version](https://poser.pugx.org/mollie/mollie-api-php/v/stable)](https://packagist.org/packages/mollie/mollie-api-php) +[![Total Downloads](https://poser.pugx.org/mollie/mollie-api-php/downloads)](https://packagist.org/packages/mollie/mollie-api-php) +[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/mollie/mollie-api-php/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/mollie/mollie-api-php/actions?query=workflow%3A"Fix+Code+Style"+branch%3Amain) + +
+ +Accepting [iDEAL](https://www.mollie.com/payments/ideal/), [Apple Pay](https://www.mollie.com/payments/apple-pay), [Google Pay](https://www.mollie.com/payments/googlepay), [Creditcard](https://www.mollie.com/payments/credit-card/), [Bancontact](https://www.mollie.com/payments/bancontact/), [SOFORT Banking](https://www.mollie.com/payments/sofort/), [SEPA Bank transfer](https://www.mollie.com/payments/bank-transfer/), [SEPA Direct debit](https://www.mollie.com/payments/direct-debit/), [PayPal](https://www.mollie.com/payments/paypal/), [Belfius Direct Net](https://www.mollie.com/payments/belfius/), [KBC/CBC](https://www.mollie.com/payments/kbc-cbc/), [paysafecard](https://www.mollie.com/payments/paysafecard/), [ING Home'Pay](https://www.mollie.com/payments/ing-homepay/), [Giropay](https://www.mollie.com/payments/giropay/), [EPS](https://www.mollie.com/payments/eps/), [Przelewy24](https://www.mollie.com/payments/przelewy24/), [Postepay](https://www.mollie.com/en/payments/postepay), [In3](https://www.mollie.com/payments/in3/), [Klarna](https://www.mollie.com/payments/klarna-pay-later/) ([Pay now](https://www.mollie.com/payments/klarna-pay-now/), [Pay later](https://www.mollie.com/payments/klarna-pay-later/), [Slice it](https://www.mollie.com/payments/klarna-slice-it/), [Pay in 3](https://www.mollie.com/payments/klarna-pay-in-3/)), [Giftcard](https://www.mollie.com/payments/gift-cards/) and [Voucher](https://www.mollie.com/en/payments/meal-eco-gift-vouchers) online payments without fixed monthly costs or any punishing registration procedures. Just use the Mollie API to receive payments directly on your website or easily refund transactions to your customers. + +## Requirements ## +To use the Mollie API client, the following things are required: + ++ Get yourself a free [Mollie account](https://www.mollie.com/signup). No sign up costs. ++ Now you're ready to use the Mollie API client in test mode. ++ Follow [a few steps](https://www.mollie.com/dashboard/?modal=onboarding) to enable payment methods in live mode, and let us handle the rest. ++ PHP >= 8.2 ++ cUrl >= 7.19.4 ++ Up-to-date OpenSSL (or other SSL/TLS toolkit) + +For leveraging [Mollie Connect](https://docs.mollie.com/oauth/overview) (advanced use cases only), we recommend also installing our [OAuth2 client](https://github.com/mollie/oauth2-mollie-php). + +## Installation ## +### Using Composer ### + +The easiest way to install the Mollie API client is by using [Composer](http://getcomposer.org/doc/00-intro.md). You can require it with the following command: + +```bash +composer require mollie/mollie-api-php +``` + +## Usage ## + +Initializing the Mollie API client, and setting your API key. + +```php +$mollie = new \Mollie\Api\MollieApiClient(); +$mollie->setToken("test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM"); +``` + +The `setToken` method automatically detects whether you're using an API key (`test_`/`live_`) or an OAuth access token (`access_`). You can also use `setApiKey()` or `setAccessToken()` directly if you prefer to be explicit. + +Find our full documentation online on [docs.mollie.com](https://docs.mollie.com). + +#### Example usage #### +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\CreatePaymentRequest; +use Mollie\Api\Types\PaymentStatus; + +$payment = $mollie->send(new CreatePaymentRequest( + description: 'My first API payment', + amount: new Money(currency: 'EUR', value: '10.00'), + redirectUrl: 'https://webshop.example.org/order/12345/', + webhookUrl: 'https://webshop.example.org/mollie-webhook/' +)); + +if ($payment->status === PaymentStatus::Paid) { + echo "Paid {$payment->amount->value} {$payment->amount->currency}"; +} +``` + +## Documentation +For an in-depth understanding of our API, please explore the [Mollie Developer Portal](https://www.mollie.com/developers). Our API documentation is available in English. + +For detailed documentation about using this PHP client, see the following guides: + +- [Endpoint Collections](docs/endpoint-collections.md) - Learn how to interact with all available API endpoints. +- [HTTP Adapters](docs/http-adapters.md) - Information on customizing HTTP communication. +- [Idempotency](docs/idempotency.md) - Best practices and setup for idempotent requests. +- [Payments](docs/payments.md) - Comprehensive guide on handling payments. +- [Requests](docs/requests.md) - Overview and usage of request objects in the API client. +- [Responses](docs/responses.md) - Handling and understanding responses from the API. +- [Testing](docs/testing.md) - Guidelines for testing with the Mollie API client. +- [Debugging](docs/debugging.md) - How to debug API requests and responses safely. +- [Webhooks](docs/webhooks.md) - How to process Webhook requests + +These guides provide in-depth explanations and examples for advanced usage of the client. + +## Recipes + +The Mollie API client comes with a variety of recipes to help you understand how to implement various API features. These recipes are a great resource for learning how to integrate Mollie payments into your application. + +Here are some of the key recipes included: + +- **Payments**: Demonstrates how to handle various payment scenarios. + - [Create a payment](docs/recipes/payments/create-payment.md) + - [Create a capturable payment](docs/recipes/payments/create-capturable-payment.md) + - [Handle webhooks](docs/recipes/payments/handle-webhook.md) + - [Refund payments](docs/recipes/payments/refund-payment.md) + +- **Customers**: Shows how to manage customers and their payments. + - [Manage customers](docs/recipes/customers/manage-customers.md) + - [Customer payments](docs/recipes/customers/customer-payments.md) + +- **Subscriptions and Recurring Payments**: + - [Manage mandates](docs/recipes/mandates/manage-mandates.md) + - [Manage subscriptions](docs/recipes/subscriptions/manage-subscriptions.md) + +For a full list of recipes, please refer to the [recipes directory](docs/recipes/). + +These recipes are designed to help you integrate Mollie into your application. Make sure to use your test API keys when testing the integration. + +## Upgrading + +Please see [UPGRADING](UPGRADING.md) for details. + +## Testing + +The SDK ships a `MollieApiClient::fake()` helper so you don't need real HTTP calls. The test suite runs on Pest v3: + +```bash +vendor/bin/pest --parallel +``` + +Use the typed `MockResponse` factories for terse, refactor-safe fixtures: + +```php +use Mollie\Api\Fake\MockResponse; +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\GetPaymentRequest; +use Mollie\Api\MollieApiClient; +use Mollie\Api\Types\PaymentStatus; + +$client = MollieApiClient::fake([ + GetPaymentRequest::class => MockResponse::payment( + id: 'tr_xxx', + status: PaymentStatus::Paid, + amount: new Money(currency: 'EUR', value: '10.00'), + ), +]); + +$payment = $client->send(new GetPaymentRequest('tr_xxx')); + +$client->assertSent(GetPaymentRequest::class); +``` + +See [docs/testing.md](docs/testing.md) for the full reference. + +## Contributing to Our API Client ## +Would you like to contribute to improving our API client? We welcome [pull requests](https://github.com/mollie/mollie-api-php/pulls?utf8=%E2%9C%93&q=is%3Apr). But, if you're interested in contributing to a technology-focused organization, Mollie is actively recruiting developers and system engineers. Discover our current [job openings](https://jobs.mollie.com/) or [reach out](mailto:personeel@mollie.com). + +## License ## +[BSD (Berkeley Software Distribution) License](https://opensource.org/licenses/bsd-license.php). +Copyright (c) 2013-2018, Mollie B.V. + +## Support ## +Contact: [www.mollie.com](https://www.mollie.com) — info@mollie.com — +31 20 820 20 70 diff --git a/vendor/mollie/mollie-api-php/UPGRADING.md b/vendor/mollie/mollie-api-php/UPGRADING.md new file mode 100644 index 0000000..0b32fac --- /dev/null +++ b/vendor/mollie/mollie-api-php/UPGRADING.md @@ -0,0 +1,487 @@ +# Upgrading + +- [Upgrading from v3 to v4](#upgrading-from-v3-to-v4) +- [Upgrading from v2 to v3](#upgrading-from-v2-to-v3) + +# Upgrading from v3 to v4 + +Use this guide to upgrade an application from v3 to v4. The public surface is largely the same, but PHP language-level changes require a few manual updates in consuming applications. Work through the sections below before deploying v4. + +## 1. Set the minimum PHP version + +Set your application's PHP requirement to **8.2 or newer**. Remove support for PHP 7.4, 8.0, and 8.1; v4's CI matrix covers PHP 8.2, 8.3, and 8.4. + +`composer.json`: + +```json +"require": { + "php": "^8.2" +} +``` + +## 2. High-impact changes + +### 2.1 Type constants → enum cases + +Every API value set under `src/Types/` is now a PHP **string-backed enum**. Only the query helpers (`ClientQuery`, `MandateQuery`, `MethodQuery`, `PaymentIncludesQuery`, `PaymentQuery`, `TerminalPairingCodeQuery`) and `Mollie\Api\Types\Method` (HTTP verbs) remain constant classes. Change each `SCREAMING_SNAKE` constant reference to its `PascalCase` case: + +```php +// v3 +if ($payment->status === PaymentStatus::PAID) { /* ... */ } + +// v4 +use Mollie\Api\Types\PaymentStatus; + +if ($payment->status === PaymentStatus::Paid) { /* ... */ } +``` + +When you read a resource property that holds an API status or type, handle it as `EnumName|string`. The `string` fallback keeps unknown API values from breaking your integration: + +```php +public PaymentStatus|string $status; +``` + +Remove imports and uses of the `Mollie\Api\Traits\GetAllConstants` trait. Use the enum cases directly: + +```php +// v3 +BusinessCategory::all(); + +// v4 — generic enum approach +array_column(PaymentStatus::cases(), 'value'); +``` + +Keep calling `::all()` on `BusinessCategory`, `ConnectBalanceTransferCategory`, and `SubscriptionStatus`; these enums retain compatibility methods that return their raw string values. If your own classes imported `GetAllConstants`, replace the trait with a local helper or migrate those classes to enums. + +If you enumerated constants through reflection, replace that too. On an enum, `ReflectionClass::getConstants()` returns the **case objects**, not their string values, and `defined()` / `constant()` on the old `SCREAMING_SNAKE` names now fail: + +```php +// v3 +(new ReflectionClass(PaymentMethod::class))->getConstants(); // ['IDEAL' => 'ideal', ...] + +// v4 — the same call returns ['Ideal' => PaymentMethod::Ideal, ...] with no error +array_column(PaymentMethod::cases(), 'value'); // ['ideal', ...] — the replacement +``` + +`cases()` is the vocabulary this SDK release knows, not an allow-list. Mollie can return a value that is not a case yet; it reaches you as a raw string through the `EnumName|string` property types. `CreatePaymentRequest` accepts a raw string for `method`; `Payment::$method` preserves unknown response values as raw strings. Use the Methods API to learn which methods are enabled on a profile. + +`PaymentMethodStatus` and `TerminalPairingCodeStatus` became enums after v4.0.0-beta.2. `PaymentMethodStatus::NOT_REQUESTED` has no case: a method that was never requested has `$method->status === null`. `Method::$status` is required but nullable and has no default. `GetEnabledMethodsRequest` reads it while filtering, so a conformant response must include `status`, using an explicit `null` when the method was not requested; an omitted field is malformed and remains visibly uninitialized. + +### 2.2 Resource properties typed (no more `\stdClass`) + +Update code that assumes a resource field is an untyped `\stdClass`. **Property names are unchanged** — `$payment->amount->value` and `$payment->amount->currency` still work — but the runtime value is a typed value object. + +```php +// v3 +$payment->amount; // \stdClass { value: "10.00", currency: "EUR" } +$payment->amount->value; // "10.00" + +// v4 +$payment->amount; // Mollie\Api\Http\Data\Money +$payment->amount->value; // "10.00" (still works) +$payment->amount->currency; // "EUR" (still works) +``` + +If your code checks `$amount instanceof \stdClass` or requires an array, update that path and call `$payment->amount->toArray()` where needed. `json_encode($payment->amount)` continues to work because the value object's properties are public. + +### 2.3 Value objects are `readonly`: rebuild instead of mutating + +`Money`, `Address`, `OrderLine`, and the other classes under `src/Http/Data/` are `readonly class`. Any code that assigned to one of their properties fails with `Cannot modify readonly property`. The place most integrations hit this is `onRequest()` middleware, which runs before the SDK serializes the payload and therefore sees the live value objects. Rebuild the object instead: + +```php +use Mollie\Api\Http\Data\Address; + +// v3 — worked +$address->email = $this->punycodeEmailDomain($address->email); + +// v4 — Cannot modify readonly property; rebuild through fromArray() +$address = Address::fromArray([ + ...$address->toArray(), + 'email' => $this->punycodeEmailDomain($address->email), +]); +``` + +Subclassing is the second, rarer break: + +If you extend `Money`, `Address`, `OrderLine`, or another value object under `src/Http/Data/`, declare the child as `readonly class`; PHP 8.2 does not allow a non-readonly child. Prefer the `Macroable` extension point when you only need to add factory methods. + +```php +// v3 +class TaxedMoney extends Money { public string $tax; } + +// v4 — must also be readonly, or you'll get a fatal error +final readonly class TaxedMoney extends Money { + public function __construct(string $currency, string $value, public string $tax) { + parent::__construct($currency, $value); + } +} +``` + +Use the **`Macroable`** extension point instead of subclassing when you need to add factory methods: + +```php +use Mollie\Api\Http\Data\Money; + +Money::macro('platinum', fn (string $value) => new Money('XAU', $value)); + +$gold = Money::platinum('1.00'); +``` + +See the [custom-money-factory recipe](docs/recipes/money/custom-factory.md). + +### 2.4 Typed properties can be uninitialized + +Resource properties are typed in v4. When a response omits a field that has no default, reading it no longer returns `null` as in v3; it throws `Error: Typed property Mollie\Api\Resources\... must not be accessed before initialization`. This is the most common runtime break after upgrading and it is invisible at the call site. + +Read fields that a partial or malformed response may omit through `isset()` or `??` at the boundary. Both treat an uninitialized typed property as unset instead of throwing: + +```php +// v3 +$description = $payment->description; // null when the response omitted it + +// v4 +$description = $payment->description ?? null; // same result, no Error +``` + +Two caveats. A guard only helps when *your* variable may be null: guarding a value you then pass to a non-nullable parameter moves the failure one line down. The SDK deliberately does **not** default fields the API marks as required (`Payment::$id`, `Organization::$name`, and others): an uninitialized required field means the response was malformed, and hiding it behind `null` would turn a visible failure into wrong data. Where a field has been verified against the API contract, an optional field carries `?T` with a `null` default and a required-but-nullable field carries `?T` without one. + +## 3. Medium-impact changes + +### 3.1 Generic `send()` return type + +Remove manual return-type workarounds around `MollieApiClient::send()`. Its `@template`-based generics let PHPStan infer the concrete return type from the request class. + +```php +// v3 — manual cast / @var was needed +/** @var Payment $payment */ +$payment = $client->send(new GetPaymentRequest('tr_xxx')); + +// v4 — inferred automatically +$payment = $client->send(new GetPaymentRequest('tr_xxx')); +// $payment is Mollie\Api\Resources\Payment +``` + +Delete the `@var` annotations and manual casts around `send()` calls that only existed to help static analysis. + +This holds for wrapped requests too, as long as you use the named methods added after v4.0.0-beta.2. `setHydratableResource(new WrapperResource(...))` returns the request unchanged for static analysis, so `send()` cannot infer the wrapper; `wrapInto()` (and `hydrateInto()` for re-targeting) can: + +```php +// inferred: PaymentWrapper +$wrapper = $client->send( + (new GetPaymentRequest('tr_xxx'))->wrapInto(PaymentWrapper::class) +); + +// inferred: RefundsWrapper +$wrapped = $client->send( + (new DynamicGetRequest($href)) + ->hydrateInto(RefundCollection::class) + ->wrapInto(RefundsWrapper::class) +); +``` + +Call request-specific setters first, then `hydrateInto()`, then `wrapInto()` last. Reversing the two named helpers makes static analysis report the hydration target while runtime still returns the wrapper. PHPStan currently honors both the `@phpstan-self-out` and `@psalm-this-out` annotations, and the committed fixture guards their combined inference contract. This repository does not run Psalm, so Psalm behavior is not verified here. PhpStorm does not infer the narrowed type. See [`docs/responses.md`](docs/responses.md#resource-wrappers). + +### 3.2 Constructor signatures use property promotion + +Review calls to request, exception, and value object constructors. These constructors use PHP 8 property promotion in v4. **Named arguments are unchanged** and continue to work. Reorder positional arguments when a constructor uses a different parameter order. + +```php +// v4 — recommended (named args) +new CreatePaymentRequest( + description: 'Order #1', + amount: new Money(currency: 'EUR', value: '10.00'), +); +``` + +Search for positional constructor calls and verify their argument order before upgrading. + +### 3.3 Typed signatures: coercion depends on *your* `strict_types` + +v4 signatures are fully typed, but `declare(strict_types=1)` is a property of the **calling** file, not of the SDK. A strict declaration in an SDK file does not make calls from your weak-mode file strict. + +```php +// consumer file WITHOUT declare(strict_types=1) — the default in most frameworks +new Money('EUR', 10); // no error; value is coerced to '10' (not '10.00' — Mollie rejects it) + +// consumer file WITH declare(strict_types=1) +new Money('EUR', 10); // TypeError: value must be of type string, int given + +// correct in both +new Money(currency: 'EUR', value: '10.00'); +``` + +Audit every SDK boundary for scalar coercions: in weak-mode files they are silent and can produce values the API rejects; in strict-mode files they throw. Do not rely on a `TypeError` to catch bad input unless your own file is strict. + +### 3.4 `Macroable` on `Money` changes undefined-method behavior + +`Money` (and other value objects using `Macroable`) intercept calls to undefined methods. Instead of PHP's default fatal error, you'll get a `BadMethodCallException` with a clear message. This matters only for code that catches `Error` rather than `Exception` around Money calls. + +### 3.5 Custom retry strategies must decide retryable exceptions + +Update custom implementations of `RetryStrategyContract` with `shouldRetry(Throwable $exception): bool`. Pass the triggering exception to `delayBeforeAttemptMs()` when you need exception-specific backoff: + +```php +use Mollie\Api\Exceptions\RetryableNetworkRequestException; +use Throwable; + +public function shouldRetry(Throwable $exception): bool +{ + return $exception instanceof RetryableNetworkRequestException; +} + +public function delayBeforeAttemptMs(int $attempt, ?Throwable $exception = null): int +{ + return $attempt * 1000; +} +``` + +If you provide your own retry strategy, add this method before upgrading. Keep `LinearRetryStrategy` to preserve the v3 default behavior for retryable network failures, or switch to `ExponentialRetryStrategy` if you also want to retry HTTP 429 responses. + +### 3.6 Custom endpoint maps use a class constant + +If an undocumented `MollieApiClient` subclass directly mutated the protected static `$endpoints` property, replace that mutation with a protected `ENDPOINTS` constant override: + +```php +class CustomMollieApiClient extends MollieApiClient +{ + protected const ENDPOINTS = [ + ...parent::ENDPOINTS, + 'customPayments' => CustomPaymentEndpointCollection::class, + ]; +} +``` + +### 3.7 Response middleware runs in two phases + +`onResponse()` callbacks now always receive the raw SDK `Response`, regardless of priority. Move transforms that need a hydrated resource or collection to `onResolved()`. + +Before: + +```php +$client->middleware()->onResponse(function ($result) { + return $result instanceof MethodCollection + ? $result->filter(fn (Method $method) => $method->status !== null) + : $result; +}, MiddlewarePriority::LOW); +``` + +After: + +```php +$client->middleware()->onResolved(function ($result) { + return $result instanceof MethodCollection + ? $result->filter(fn (Method $method) => $method->status !== null) + : $result; +}, MiddlewarePriority::LOW); + +$client->middleware()->onResponse(function (Response $response): void { + // Inspect the raw HTTP response. +}); +``` + +Returning `null` or returning without a value preserves the current value in both phases. An `onResponse()` callback may otherwise return only `Mollie\Api\Http\Response`; another return type throws `UnexpectedValueException` immediately. Priorities control order only within their own raw or resolved phase. + +# Upgrading from v2 to v3 + +Use this guide to move your application from v2 to v3. Complete the breaking-change updates before switching the dependency to v3. + +After the migration, you can use the v3 APIs for modern PHP practices, stronger type safety, and a more predictable developer experience. + +## Breaking Changes + +### Deprecations + +#### MethodEndpointCollection.allActive() + +The method `MethodEndpointCollection.allActive()` has been removed. Use `MethodEndpointCollection.allEnabled()` instead. + +#### Order endpoint + +Replace Order and Shipment endpoint calls with Payment endpoint calls. Mollie removed the Order and Shipment endpoints from `mollie-api-php`, and the Payment endpoint provides the replacement functionality. + + - All `/orders/*` endpoints and related classes (`Order*Endpoint`) + - Removed `MollieApiClient` properties: + ```php + $client->orderPayments; // Removed + $client->orderRefunds; // Removed + $client->orderLines; // Removed + $client->shipments; // Removed + ``` + +#### Integration code examples + +Move any code you copied from `/examples` to the markdown recipes in `/docs/recipes`; v3 uses those recipes as the maintained integration examples. + +### Metadata Type Restriction + +Change every v2 request that sends metadata as a string or object. Pass metadata as an array in v3 request payloads. + +```php +// Before (v2) - Using legacy array approach +$client->payments->create([ + "amount" => [ + "currency" => "EUR", + "value" => "10.00" + ], + "metadata" => "some string" // Worked in v2 +]); + +// After (v3) - Using legacy array approach +$client->payments->create([ + "amount" => [ + "currency" => "EUR", + "value" => "10.00" + ], + "metadata" => ["key" => "value"] // Only arrays are accepted in v3 +]); + +// After (v3) - Using request class +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\CreatePaymentRequest; + +$request = new CreatePaymentRequest( + description: "My payment", + amount: new Money("EUR", "10.00"), + metadata: ["key" => "value"] // Only arrays are accepted +); +$payment = $client->send($request); +``` + +### Class & Method Renames + +#### Endpoint Class Changes +| Old Class | New Class | Method Changes | +|------------------------------|----------------------------------------|------------------------------------------------------------| +| `MethodEndpoint` | `MethodEndpointCollection` | `allAvailable()` → `all()`
`all()` → `allEnabled()` | +| `BalanceTransactionEndpoint` | `BalanceTransactionEndpointCollection` | `listFor()` → `pageFor()`
`listForId()` → `pageForId()` | +| `CustomerPaymentsEndpoint` | `CustomerPaymentsEndpointCollection` | `listFor()` → `pageFor()`
`listForId()` → `pageForId()` | +| `MandateEndpoint` | `MandateEndpointCollection` | `listFor()` → `pageFor()`
`listForId()` → `pageForId()` | +| `PaymentRefundEndpoint` | `PaymentRefundEndpointCollection` | `listFor()` → `pageFor()`
`listForId()` → `pageForId()` | +| `OnboardingEndpoint` | `OnboardingEndpointCollection` | `get()` → `status()` | +| `SubscriptionEndpoint` | `SubscriptionEndpointCollection` | `page()` → `allFor()` | + +#### Signature Changes +Use named parameters to make request calls easier to read and maintain: + +```php +// Before (v2) +$mandates = $client->mandates->listFor($customer, 0, 10); + +// After (v3) +$mandates = $client->mandates->pageForCustomer( + $customer, + from: null, + limit: 10, + testmode: false +); +``` + +### Constant & Collection Changes + +- **Streamlined constants** - Remove redundant prefixes and use the shorter constant names: + ```php + // Before + Payment::STATUS_PAID; + + // After + Payment::PAID; + ``` + +- **Simplified SequenceType constants** - Use the shorter enum cases: + ```php + // Before + SequenceType::SEQUENCETYPE_FIRST; + + // After + SequenceType::FIRST; + ``` + +- **Cleaner collection initialization** - Pass the items array directly: + ```php + // Before + new PaymentCollection(10, $payments); + + // After + new PaymentCollection($payments); + ``` + +### Test Mode Handling + +- **Automatic detection** with API keys +- **Explicit parameter** for organization credentials: + ```php + // Get payment link in test mode + $link = $client->paymentLinks->get('pl_123', testmode: true); + ``` + +Read the full testing documentation [here](docs/testing.md). + +### Removed Collections + +- `OrganizationCollection` +- `RouteCollection` + +## New Features + +### Modern HTTP Handling + +#### PSR-18 Support +Configure any PSR-18-compatible HTTP client with the SDK: + +```php +use Mollie\Api\HttpAdapter\PSR18MollieHttpAdapter; + +$adapter = new PSR18MollieHttpAdapter( + new GuzzleClient(), + new Psr17Factory(), + new Psr17Factory() +); + +$client = new MollieApiClient($adapter); +``` + +### Enhanced Request Handling + +#### Typed Request Objects +Replace array-based payloads with type-safe request objects: + +```php +use Mollie\Api\Http\Requests\CreatePaymentRequest; + +$request = new CreatePaymentRequest( + amount: new Money('EUR', '10.00'), + description: 'Order 123', + redirectUrl: 'https://example.com/redirect' +); + +$payment = $client->send($request); +``` + +Read the full request documentation [here](docs/requests.md). + +### Collection Improvements + +Use the collection methods below to write more expressive queries: + +```php +// New methods +$activePayments = $payments->filter(fn($p) => $p->isActive()); +$hasRefunds = $payments->contains(fn($p) => $p->hasRefunds()); +``` + +### Method Issuer Contracts + +Manage method issuers by passing optional contract IDs: + +```php +$client->methodIssuers->enable( + profileId: 'pfl_123', + methodId: 'voucher', + issuerId: 'iss_456', + contractId: 'contract_789' // Optional +); +``` + +## Further reading + +Usage guides for the PHP client can be found in the [docs](docs). For more information on the Mollie API, check out [the official Mollie docs](https://docs.mollie.com). diff --git a/vendor/mollie/mollie-api-php/bin/release b/vendor/mollie/mollie-api-php/bin/release new file mode 100644 index 0000000..8360888 --- /dev/null +++ b/vendor/mollie/mollie-api-php/bin/release @@ -0,0 +1,285 @@ +#!/bin/bash + +set -u -o pipefail + +TAG_PUSH_ATTEMPTED=0 + +die() { + echo "❌ Error: $*" >&2 + + if [ "$TAG_PUSH_ATTEMPTED" -eq 1 ]; then + echo " The tag may now exist remotely. Rerun this command to use the supported tag-only recovery path; no overwrite or cleanup was attempted." >&2 + else + echo " No further publication was attempted." >&2 + fi + + exit 1 +} + +if [ "$#" -ne 1 ] || [ -z "$1" ]; then + echo "❌ Error: Version number is required" >&2 + echo "Usage: ./bin/release " >&2 + echo "Example: ./bin/release 1.0.0" >&2 + exit 1 +fi + +VERSION=$1 +TAG="v$VERSION" +TAG_REF="refs/tags/$TAG" +MOLLIE_CLIENT_FILE="src/MollieApiClient.php" + +command -v git >/dev/null 2>&1 || die "git is not installed or is not available on PATH." +command -v gh >/dev/null 2>&1 || die "GitHub CLI (gh) is not installed or is not available on PATH." + +git rev-parse --is-inside-work-tree >/dev/null 2>&1 || die "Run this command from the Mollie API PHP Git worktree." +[ -f "$MOLLIE_CLIENT_FILE" ] || die "MollieApiClient.php was not found at $MOLLIE_CLIENT_FILE." +git check-ref-format "$TAG_REF" >/dev/null 2>&1 || die "Version '$VERSION' does not form a valid tag ref." + +repo_details=$(gh repo view --json nameWithOwner,defaultBranchRef --jq '[.nameWithOwner, .defaultBranchRef.name] | @tsv') || die "The exact GitHub repository/default-branch lookup failed. Check authentication and repository access." + +case "$repo_details" in + *$'\n'*) die "The GitHub repository/default-branch lookup returned multiple rows." ;; +esac + +IFS=$'\t' read -r REPOSITORY DEFAULT_BRANCH extra <<< "$repo_details" +[ -n "${REPOSITORY:-}" ] && [ -n "${DEFAULT_BRANCH:-}" ] && [ -z "${extra:-}" ] || die "The GitHub repository/default-branch lookup returned malformed data." + +OWNER=${REPOSITORY%%/*} +REPOSITORY_NAME=${REPOSITORY#*/} +[ -n "$OWNER" ] && [ -n "$REPOSITORY_NAME" ] && [ "$OWNER" != "$REPOSITORY" ] && [[ "$REPOSITORY_NAME" != */* ]] || die "The GitHub repository identity '$REPOSITORY' is malformed." +git check-ref-format --branch "$DEFAULT_BRANCH" >/dev/null 2>&1 || die "The GitHub default branch '$DEFAULT_BRANCH' is not a valid branch name." + +is_oid() { + [[ "$1" =~ ^[0-9a-fA-F]{40}$ || "$1" =~ ^[0-9a-fA-F]{64}$ ]] +} + +read_client_version() { + local line + local pattern + local -a matches=() + + pattern="^[[:space:]]+public const CLIENT_VERSION = '([^']*)';[[:space:]]*$" + + while IFS= read -r line || [ -n "$line" ]; do + if [[ "$line" =~ $pattern ]]; then + matches+=("${BASH_REMATCH[1]}") + fi + done < "$MOLLIE_CLIENT_FILE" || die "CLIENT_VERSION could not be read from $MOLLIE_CLIENT_FILE." + + [ "${#matches[@]}" -eq 1 ] || die "Expected exactly one syntactically exact CLIENT_VERSION declaration; found ${#matches[@]}." + CLIENT_VERSION=${matches[0]} +} + +assert_base_state() { + local branch + local status_output + local current_head + local remote_head + + branch=$(git symbolic-ref --quiet --short HEAD) || die "HEAD is detached; the symbolic default branch '$DEFAULT_BRANCH' must be checked out." + [ "$branch" = "$DEFAULT_BRANCH" ] || die "Checked-out branch '$branch' is not the GitHub default branch '$DEFAULT_BRANCH'." + + status_output=$(git status --porcelain=v1 --untracked-files=all) || die "The complete worktree status check failed." + [ -z "$status_output" ] || die "The worktree is not completely clean, including untracked files." + + git fetch --no-tags origin "refs/heads/$DEFAULT_BRANCH:refs/remotes/origin/$DEFAULT_BRANCH" || die "Fetching the exact default branch from origin failed." + + current_head=$(git rev-parse --verify 'HEAD^{commit}') || die "HEAD could not be resolved to a commit." + remote_head=$(git rev-parse --verify "refs/remotes/origin/$DEFAULT_BRANCH^{commit}") || die "origin/$DEFAULT_BRANCH could not be resolved to a commit." + if ! is_oid "$current_head" || ! is_oid "$remote_head"; then + die "A local or remote commit ID was malformed." + fi + [ "$current_head" = "$remote_head" ] || die "HEAD does not equal the fetched origin/$DEFAULT_BRANCH commit." + + if [ -n "${SNAPSHOT_HEAD:-}" ]; then + [ "$current_head" = "$SNAPSHOT_HEAD" ] || die "HEAD changed after release validation began." + fi + + read_client_version + [ "$CLIENT_VERSION" = "$VERSION" ] || die "CLIENT_VERSION '$CLIENT_VERSION' does not exactly match requested version '$VERSION'." + + ASSERTED_HEAD=$current_head +} + +classify_remote_tag() { + local output + local oid + local ref + local extra + local base_count=0 + local peeled_count=0 + local base_oid='' + local peeled_oid='' + + output=$(git ls-remote --tags origin "$TAG_REF" "$TAG_REF^{}") || die "The exact remote tag query failed." + + while IFS=$'\t' read -r oid ref extra; do + [ -n "$oid" ] || continue + is_oid "$oid" && [ -n "$ref" ] && [ -z "${extra:-}" ] || die "The exact remote tag query returned malformed data." + + if [ "$ref" = "$TAG_REF" ]; then + base_count=$((base_count + 1)) + base_oid=$oid + elif [ "$ref" = "$TAG_REF^{}" ]; then + peeled_count=$((peeled_count + 1)) + peeled_oid=$oid + else + die "The exact remote tag query returned an unexpected ref." + fi + done <<< "$output" + + if [ "$base_count" -eq 0 ] && [ "$peeled_count" -eq 0 ]; then + REMOTE_TAG_STATE=absent + elif [ "$base_count" -eq 1 ] && [ "$peeled_count" -eq 0 ]; then + REMOTE_TAG_STATE=lightweight + elif [ "$base_count" -eq 1 ] && [ "$peeled_count" -eq 1 ]; then + [ -n "$base_oid" ] || die "The remote annotated tag object ID was empty." + if [ "$peeled_oid" = "$SNAPSHOT_HEAD" ]; then + REMOTE_TAG_STATE=annotated + else + REMOTE_TAG_STATE=mismatch + fi + else + die "The exact remote tag query returned a peeled-only, duplicate, or contradictory state." + fi +} + +classify_release() { + local output + local graphql_query + + graphql_query="query(\$owner:String!,\$name:String!,\$tag:String!){repository(owner:\$owner,name:\$name){release(tagName:\$tag){tagName}}}" + output=$(gh api graphql \ + -f "query=$graphql_query" \ + -f "owner=$OWNER" \ + -f "name=$REPOSITORY_NAME" \ + -f "tag=$TAG" \ + --jq 'if (.data | type) != "object" then "invalid" elif (.data.repository | type) != "object" then "invalid" elif (.data.repository | has("release") | not) then "invalid" elif .data.repository.release == null then "absent" elif (.data.repository.release | type) != "object" then "invalid" elif (.data.repository.release.tagName | type) == "string" then "present\t" + .data.repository.release.tagName else "invalid" end') || die "The exact GitHub release query failed." + + case "$output" in + absent) + RELEASE_STATE=absent + ;; + $'present\t'*) + [ "${output#*$'\t'}" = "$TAG" ] || die "The GitHub release query returned a contradictory tag name." + RELEASE_STATE=present + ;; + *) + die "The GitHub release query returned malformed data." + ;; + esac +} + +classify_remote_state() { + classify_remote_tag + classify_release +} + +require_valid_or_absent_state() { + case "$REMOTE_TAG_STATE:$RELEASE_STATE" in + annotated:present|annotated:absent|absent:absent) ;; + lightweight:*) die "Remote tag '$TAG' is lightweight; annotated tags are required." ;; + mismatch:*) die "Remote tag '$TAG' does not peel to the validated HEAD." ;; + absent:present) die "GitHub release '$TAG' exists without a valid matching annotated tag." ;; + *) die "Remote tag/release state is contradictory." ;; + esac +} + +classify_local_tag() { + local ref_type + local peeled + + if git show-ref --verify --quiet "$TAG_REF"; then + ref_type=$(git cat-file -t "$TAG_REF") || die "Local tag '$TAG' could not be inspected." + [ "$ref_type" = tag ] || die "Local tag '$TAG' is lightweight; refusing to replace it." + peeled=$(git rev-parse --verify "$TAG_REF^{}") || die "Local tag '$TAG' could not be peeled." + is_oid "$peeled" || die "Local tag '$TAG' peeled to a malformed object ID." + [ "$peeled" = "$SNAPSHOT_HEAD" ] || die "Local tag '$TAG' does not peel to the validated HEAD; refusing to replace it." + LOCAL_TAG_STATE=annotated + else + local show_ref_status=$? + [ "$show_ref_status" -eq 1 ] || die "Local tag '$TAG' could not be queried." + LOCAL_TAG_STATE=absent + fi +} + +publish_release() { + assert_base_state + classify_remote_state + require_valid_or_absent_state + + if [ "$REMOTE_TAG_STATE" = annotated ] && [ "$RELEASE_STATE" = present ]; then + echo "✅ Release $TAG already exists with the valid annotated tag at $SNAPSHOT_HEAD." + return 0 + fi + + [ "$REMOTE_TAG_STATE" = annotated ] && [ "$RELEASE_STATE" = absent ] || die "Release publication requires the valid annotated remote tag and no existing release." + + if ! gh release create "$TAG" --verify-tag --target "$SNAPSHOT_HEAD" --latest --generate-notes; then + die "GitHub release creation failed." + fi + + classify_remote_state + [ "$REMOTE_TAG_STATE" = annotated ] && [ "$RELEASE_STATE" = present ] || die "Post-publication verification did not find the valid final tag/release state." + echo "✅ Release $TAG created successfully at $SNAPSHOT_HEAD." +} + +SNAPSHOT_HEAD='' +ASSERTED_HEAD='' +CLIENT_VERSION='' +assert_base_state +SNAPSHOT_HEAD=$ASSERTED_HEAD + +echo "📌 Repository: $REPOSITORY" +echo "📌 Default branch and HEAD: $DEFAULT_BRANCH at $SNAPSHOT_HEAD" + +classify_remote_state +require_valid_or_absent_state + +case "$REMOTE_TAG_STATE:$RELEASE_STATE" in + annotated:present) + echo "✅ Release $TAG already exists with the valid annotated tag at $SNAPSHOT_HEAD." + exit 0 + ;; + annotated:absent) + publish_release + exit 0 + ;; + absent:absent) + classify_local_tag + assert_base_state + classify_remote_state + require_valid_or_absent_state + + if [ "$REMOTE_TAG_STATE" = annotated ]; then + publish_release + exit 0 + fi + + [ "$REMOTE_TAG_STATE" = absent ] && [ "$RELEASE_STATE" = absent ] || die "Remote state changed before local tag preparation." + + if [ "$LOCAL_TAG_STATE" = absent ]; then + git tag --annotate "$TAG" "$SNAPSHOT_HEAD" --message "Release $VERSION" || die "Creating the local annotated tag failed." + fi + classify_local_tag + + assert_base_state + classify_remote_state + require_valid_or_absent_state + + if [ "$REMOTE_TAG_STATE" = absent ] && [ "$RELEASE_STATE" = absent ]; then + TAG_PUSH_ATTEMPTED=1 + git push --atomic origin "$TAG_REF:$TAG_REF" || die "The explicit non-force tag-only push failed." + elif [ "$REMOTE_TAG_STATE" != annotated ] || [ "$RELEASE_STATE" != absent ]; then + die "Remote state changed before the tag push." + fi + + classify_remote_state + [ "$REMOTE_TAG_STATE" = annotated ] && [ "$RELEASE_STATE" = absent ] || die "The pushed tag did not verify as an annotated tag at the validated HEAD." + + publish_release + exit 0 + ;; +esac + +die "Unhandled remote tag/release state." diff --git a/vendor/mollie/mollie-api-php/composer.json b/vendor/mollie/mollie-api-php/composer.json new file mode 100644 index 0000000..0108b17 --- /dev/null +++ b/vendor/mollie/mollie-api-php/composer.json @@ -0,0 +1,106 @@ +{ + "name": "mollie/mollie-api-php", + "description": "Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.", + "keywords": [ + "mollie", + "payment", + "service", + "ideal", + "creditcard", + "apple pay", + "mistercash", + "bancontact", + "sofort", + "sofortbanking", + "sepa", + "paypal", + "paysafecard", + "podiumcadeaukaart", + "przelewy24", + "banktransfer", + "direct debit", + "belfius", + "belfius direct net", + "refunds", + "api", + "payments", + "gateway", + "subscriptions", + "recurring", + "charges", + "kbc", + "cbc", + "gift cards", + "intersolve", + "fashioncheque", + "inghomepay", + "klarna", + "paylater", + "sliceit" + ], + "homepage": "https://www.mollie.com/en/developers", + "license": "BSD-2-Clause", + "authors": [ + { + "name": "Mollie B.V.", + "email": "info@mollie.com" + } + ], + "require": { + "php": "^8.2", + "ext-curl": "*", + "ext-json": "*", + "ext-openssl": "*", + "composer/ca-bundle": "^1.4", + "nyholm/psr7": "^1.8", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.1", + "psr/http-message": "^1.1|^2.0", + "symfony/var-dumper": "^5.4|^6.4|^7.2|^8.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.6", + "laravel/pint": "1.30.4", + "pestphp/pest": "^3.0", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^11.5" + }, + "suggest": { + "mollie/oauth2-mollie-php": "Use OAuth to authenticate with the Mollie API. This is needed for some endpoints. Visit https://docs.mollie.com/ for more information." + }, + "config": { + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true + } + }, + "autoload": { + "psr-4": { + "Mollie\\Api\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/", + "Tests\\Mollie\\Api\\": "tests/Mollie/API/" + } + }, + "scripts": { + "test": "./vendor/bin/pest --parallel", + "format": "pint", + "check:format": "pint --test", + "generate:currency-trait": "@php tools/generate-currency-trait.php", + "check:currency-trait": [ + "@php tools/generate-currency-trait.php", + "git diff --exit-code src/Traits/HasCurrencyConvenienceMethods.php" + ] + }, + "repositories": [{ + "name": "mollie-local", + "type": "path", + "url": "../mollie-api-php", + "options": { + "symlink": true + } + }] +} diff --git a/vendor/mollie/mollie-api-php/docs/debugging.md b/vendor/mollie/mollie-api-php/docs/debugging.md new file mode 100644 index 0000000..368eaaf --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/debugging.md @@ -0,0 +1,102 @@ +# Debugging with Mollie API Client + +## Overview + +The Mollie API client provides debugging callbacks to help you inspect and troubleshoot API requests and responses. The built-in Symfony VarDumper debugger prints request and response details for local development. Exception handling sanitizes sensitive request data before it is attached to thrown exceptions, but default debug output itself is not a production-safe logging surface. + +## Basic Usage + +### Enable All Debugging + +To enable both request and response debugging: + +```php +$mollie = new \Mollie\Api\MollieApiClient(); +$mollie->debug(); // Enables both request and response debugging +``` + +The default debugger requires `symfony/var-dumper`. If that package is not installed, calling the default debugger throws an actionable runtime exception. Pass custom callbacks to `debugRequest()` or `debugResponse()` if you want to avoid that optional dependency. + +### Enable on Request + +To enable debugging for a specific request: + +```php +$request = new CreatePaymentRequest(...); + +// enable output for request and response +$mollie->send($request->debug()); + +// only debug request +$mollie->send($request->debugRequest(die: true)); + +// only debug response +$mollie->send($request->debugResponse(die: true)); +``` + +### Debug Specific Parts + +You can choose to debug only requests or only responses: + +```php +// Debug only requests +$mollie->debugRequest(); + +// Debug only responses +$mollie->debugResponse(); +``` + +## Custom Debuggers + +You can provide your own debugging functions to customize how debugging information is displayed: + +```php +// Custom request debugger +$mollie->debugRequest(function($pendingRequest, $psrRequest) { + // Your custom debugging logic here +}); + +// Custom response debugger +$mollie->debugResponse(function($response, $psrResponse) { + // Your custom debugging logic here +}); +``` + +## Security Features + +### Automatic Sanitization + +When an exception is thrown while debugging is enabled, the client sanitizes the request data attached to the exception. The default request/response debug callbacks are for local inspection and may print headers and request bodies. Treat their output as sensitive. + +### Die After Debug + +For development purposes, you can halt execution after debugging output: + +```php +$mollie->debug(die: true); // Will stop execution after debugging output +``` + +## Best Practices + +1. **Development Only**: Never enable debugging in production environments +2. **Custom Debuggers**: When implementing custom debuggers, redact credentials and personal data before writing to logs +3. **Exception Handling**: Debug mode works with exceptions, and exception request data is sanitized before being exposed + +## Example Usage + +```php +try { + $mollie = new \Mollie\Api\MollieApiClient(); + $mollie->setApiKey("test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM"); + + // Enable debugging for development + $mollie->debug(); + + // Your API calls here + $payment = $mollie->payments->create([...]); + +} catch (\Mollie\Api\Exceptions\ApiException $e) { + // Exception will include sanitized debug information + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` diff --git a/vendor/mollie/mollie-api-php/docs/endpoint-collections.md b/vendor/mollie/mollie-api-php/docs/endpoint-collections.md new file mode 100644 index 0000000..8808a78 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/endpoint-collections.md @@ -0,0 +1,765 @@ +# Introduction +Endpoint collections provide a fluent interface for interacting with Mollie's API. Each collection manages specific resource types like payments, customers, and subscriptions, offering methods to create, retrieve, update, and delete these resources. + +## Setup + +1. **Initialize the Mollie Client:** + +```php +$mollie = new \Mollie\Api\MollieApiClient(); +$mollie->setApiKey("test_*************************"); +``` + +2. **Access Endpoints via the Client:** +```php +// Payments endpoint +$mollie->payments->... + +// Customers endpoint +$mollie->customers->... + +// Other endpoints +$mollie->balances->... +$mollie->orders->... +``` + +3. **Call methods** + +**Simple: Using arrays** +This approach is direct but provides less type safety: +```php +$payment = $mollie->payments->create([ + 'amount' => [ + 'currency' => 'EUR', + 'value' => '10.00' + ], + 'description' => 'My first API payment' +]); +``` + +**Advanced: Using typed array params** +You can use dedicated `Data` objects to add partial type safety to your parameters. + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Data\CreatePaymentPayload; + +$payment = $mollie->payments->create([ + 'description' => 'My first API payment', + 'amount' => new Money(currency: 'EUR', value: '10.00') +]); +``` + +If you're starting with an array and need to convert it into a structured request, you can use a specific factory designed for this purpose. + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Factories\CreatePaymentRequestFactory; + +// Fully untyped data +$createPaymentRequest = CreatePaymentRequestFactory::new([ + 'amount' => [ + 'currency' => 'EUR', + 'value' => '10.00' + ], + 'description' => 'My first API payment' +]); + +// Partially untyped +$createPaymentRequest = CreatePaymentRequestFactory::new([ + 'amount' => new Money(currency: 'EUR', value: '10.00'), + 'description' => 'My first API payment' +]); +``` + +This method lets you effortlessly transform arrays into typed objects, thereby enhancing IDE support and increasing type safety while handling your data. + +# Available Endpoints + +## Balances + +[Official Documentation](https://docs.mollie.com/reference/v2/balances-api/get-balance) + +### Balance Information + +```php +// Get primary balance +$balance = $mollie->balances->primary(); + +// Get specific balance +$balance = $mollie->balances->get('bal_12345'); + +// List balances +$balances = $mollie->balances->page(); +``` + +## Balance Reports + +[Official Documentation](https://docs.mollie.com/reference/v2/balance-reports-api/get-balance-report) + +### Balance Report Details + +```php +// Get report for specific balance +$report = $mollie->balanceReports->getForId('bal_12345', [ + 'from' => '2024-01-01', + 'until' => '2024-01-31', + 'grouping' => 'transaction-categories' +]); +``` + +## Balance Transactions + +[Official Documentation](https://docs.mollie.com/reference/v2/balance-transactions-api/list-balance-transactions) + +### Balance Transaction Management + +```php +// Get transactions for a balance +$transactions = $mollie->balanceTransactions->pageFor($balance); + +// Use iterator for all transactions +foreach ($mollie->balanceTransactions->iteratorFor($balance) as $transaction) { + echo $transaction->id; +} +``` + +## Chargebacks + +[Official Documentation](https://docs.mollie.com/reference/v2/chargebacks-api/get-chargeback) + +### Chargeback Management + +```php +// Get all chargebacks +$chargebacks = $mollie->chargebacks->page(); + +// Use iterator for all chargebacks +foreach ($mollie->chargebacks->iterator() as $chargeback) { + echo $chargeback->id; +} +``` + +## Clients + +[Official Documentation](https://docs.mollie.com/reference/v2/clients-api/get-client) + +### Client Management + +```php +// Get a specific client +$client = $mollie->clients->get('org_12345678', [ + 'testmode' => true +]); + +// List all clients +$clients = $mollie->clients->page( + from: 'org_12345678', + limit: 50 +); +``` + +## Customers + +[Official Documentation](https://docs.mollie.com/reference/v2/customers-api/create-customer) + +### Customer Management + +```php +// Create a customer +$customer = $mollie->customers->create([ + 'name' => 'John Doe', + 'email' => 'john@example.org', +]); + +// Get a customer +$customer = $mollie->customers->get('cst_8wmqcHMN4U'); + +// Update a customer +$customer = $mollie->customers->update('cst_8wmqcHMN4U', [ + 'name' => 'Updated Name' +]); + +// Delete a customer +$mollie->customers->delete('cst_8wmqcHMN4U'); + +// List customers +$customers = $mollie->customers->page(); +``` + +## Invoices + +[Official Documentation](https://docs.mollie.com/reference/v2/invoices-api/get-invoice) + +### Invoice Management + +```php +// Get a specific invoice +$invoice = $mollie->invoices->get('inv_xBEbP9rvAq'); + +// List all invoices +$invoices = $mollie->invoices->page( + from: 'inv_xBEbP9rvAq', + limit: 50 +); +``` + +## Mandates + +[Official Documentation](https://docs.mollie.com/reference/v2/mandates-api/create-mandate) + +### Mandate Management + +```php +// Create a mandate for a customer +$mandate = $mollie->mandates->createFor($customer, [ + 'method' => \Mollie\Api\Types\PaymentMethod::Directdebit, + 'consumerName' => 'John Doe', + 'consumerAccount' => 'NL55INGB0000000000', + 'consumerBic' => 'INGBNL2A', + 'signatureDate' => '2024-01-01', + 'mandateReference' => 'YOUR-COMPANY-MD13804' +]); + +// Get a mandate +$mandate = $mollie->mandates->getFor($customer, 'mdt_h3gAaD5zP'); + +// Revoke a mandate +$mollie->mandates->revokeFor($customer, 'mdt_h3gAaD5zP'); + +// List mandates +$mandates = $mollie->mandates->pageFor($customer); +``` + +## Methods + +[Official Documentation](https://docs.mollie.com/reference/v2/methods-api/get-method) + +### Payment Methods + +```php +// Get a method +$method = $mollie->methods->get(\Mollie\Api\Types\PaymentMethod::Ideal); + +// List all methods +$methods = $mollie->methods->all(); + +// List enabled methods +$methods = $mollie->methods->allEnabled([ + 'amount' => [ + 'currency' => 'EUR', + 'value' => '100.00' + ] +]); +``` + +### Method Issuers + +```php +// Enable an issuer +$issuer = $mollie->methodIssuers->enable( + 'pfl_v9hTwCvYqw', + \Mollie\Api\Types\PaymentMethod::Ideal, + 'ideal_INGBNL2A' +); + +// Disable an issuer +$mollie->methodIssuers->disable( + 'pfl_v9hTwCvYqw', + \Mollie\Api\Types\PaymentMethod::Ideal, + 'ideal_INGBNL2A' +); +``` + +## Onboarding + +[Official Documentation](https://docs.mollie.com/reference/v2/onboarding-api/get-onboarding-status) + +### Onboarding Management + +```php +// Get onboarding status +$onboarding = $mollie->onboarding->status(); +``` + +## Organizations + +[Official Documentation](https://docs.mollie.com/reference/v2/organizations-api/get-organization) + +### Organization Management + +```php +// Get an organization +$organization = $mollie->organizations->get('org_12345678'); + +// Get current organization +$organization = $mollie->organizations->current(); + +// Get partner status +$partner = $mollie->organizations->partnerStatus(); +``` + +## Permissions + +[API Reference](https://docs.mollie.com/reference/v2/permissions-api/get-permission) · [Full list of permission scopes](https://docs.mollie.com/docs/permissions) + +### Permission Management + +```php +// Get a permission +$permission = $mollie->permissions->get('payments.read'); + +// List all permissions +$permissions = $mollie->permissions->list(); +``` + +## Payments + +[Official Documentation](https://docs.mollie.com/reference/v2/payments-api/create-payment) + +### Payment Management + +```php +// Create a payment +$payment = $mollie->payments->create([ + 'description' => 'Order #12345', + 'amount' => [ + 'currency' => 'EUR', + 'value' => '10.00' + ], + 'redirectUrl' => 'https://webshop.example.org/order/12345/', + 'webhookUrl' => 'https://webshop.example.org/mollie-webhook/' +]); + +// Get a payment +$payment = $mollie->payments->get('tr_7UhSN1zuXS'); + +// Update a payment +$payment = $mollie->payments->update('tr_7UhSN1zuXS', [ + 'description' => 'Updated description' +]); + +// Cancel a payment +$mollie->payments->cancel('tr_7UhSN1zuXS'); + +// List payments +$payments = $mollie->payments->page(); +``` + +### Payment Links + +[Official Documentation](https://docs.mollie.com/reference/v2/payment-links-api/create-payment-link) + +### Payment Captures + +[Official Documentation](https://docs.mollie.com/reference/v2/captures-api/get-capture) + +### Payment Chargebacks + +```php +// Get a chargeback +$chargeback = $mollie->paymentChargebacks->getFor($payment, 'chb_n9z0tp'); + +// List chargebacks for payment +$chargebacks = $mollie->paymentChargebacks->pageFor($payment); +``` + +### Payment Routes + +```php +// Create a delayed route +$route = $mollie->paymentRoutes->createFor( + $payment, + ['value' => '10.00', 'currency' => 'EUR'], + ['type' => 'organization', 'organizationId' => 'org_12345'], + '2025-01-01' // optional release date +); + +// List payment routes +$routes = $mollie->paymentRoutes->listFor($payment); + +// Update release date for a route +$route = $mollie->paymentRoutes->updateReleaseDateFor( + $payment, + 'rt_abc123', + '2024-01-01' +); +``` + +## Profiles + +[Official Documentation](https://docs.mollie.com/reference/v2/profiles-api/create-profile) + +### Profile Management + +```php +// Create a profile +$profile = $mollie->profiles->create([ + 'name' => 'My Test Profile', + 'website' => 'https://example.org', + 'email' => 'info@example.org', + 'phone' => '+31612345678', + 'mode' => 'test' +]); + +// Get a profile +$profile = $mollie->profiles->get('pfl_v9hTwCvYqw'); + +// Get current profile +$profile = $mollie->profiles->getCurrent(); + +// Update a profile +$profile = $mollie->profiles->update('pfl_v9hTwCvYqw', [ + 'name' => 'Updated Profile Name' +]); + +// Delete a profile +$mollie->profiles->delete('pfl_v9hTwCvYqw'); + +// List profiles +$profiles = $mollie->profiles->page(); +``` + +### Profile Methods + +```php +// Enable a method +$method = $mollie->profileMethods->enable( + 'pfl_v9hTwCvYqw', + \Mollie\Api\Types\PaymentMethod::Ideal +); + +// Disable a method +$mollie->profileMethods->disable( + 'pfl_v9hTwCvYqw', + \Mollie\Api\Types\PaymentMethod::Ideal +); +``` + +## Refunds + +[Official Documentation](https://docs.mollie.com/reference/v2/refunds-api/create-refund) + +### Refund Management + +```php +// Create a refund for a payment +$refund = $mollie->refunds->createForPayment($paymentId, [ + 'amount' => [ + 'currency' => 'EUR', + 'value' => '15.00' + ], + 'description' => 'Refund for returned item' +]); + +// List refunds +$refunds = $mollie->refunds->page(); +``` + +## Sales Invoices + +[Official Documentation TBA] + +### Sales Invoice Management + +```php +use Mollie\Api\Types\VatMode; +use Mollie\Api\Types\VatScheme; +use Mollie\Api\Types\PaymentTerm; +use Mollie\Api\Types\RecipientType; +use Mollie\Api\Types\SalesInvoiceStatus; + +// Create a sales invoice +$salesInvoice = $mollie->salesInvoices->create([ + 'currency' => 'EUR', + 'status' => SalesInvoiceStatus::Draft, + 'vatScheme' => VatScheme::Standard, + 'vatMode' => VatMode::Inclusive, + 'paymentTerm' => PaymentTerm::Days30, + 'recipientIdentifier' => 'XXXXX', + 'recipient' => [ + 'type' => RecipientType::Consumer, + 'email' => 'darth@vader.deathstar', + 'streetAndNumber' => 'Sample Street 12b', + 'postalCode' => '2000 AA', + 'city' => 'Amsterdam', + 'country' => 'NL', + 'locale' => 'nl_NL' + ], + 'lines' => [ + [ + 'description' => 'Monthly subscription fee', + 'quantity' => 1, + 'vatRate' => '21', + 'unitPrice' => [ + 'currency' => 'EUR', + 'value' => '10,00' + ] + ] + ] +]); + +// Get a sales invoice +$salesInvoice = $mollie->salesInvoices->get('invoice_12345'); + +// Update a sales invoice +$salesInvoice = $mollie->salesInvoices->update('invoice_12345', [ + 'description' => 'Updated description' +]); + +// Delete a sales invoice +$mollie->salesInvoices->delete('invoice_12345'); + +// List sales invoices +$salesInvoices = $mollie->salesInvoices->page(); +``` + +## Sessions + +[Official Documentation](https://docs.mollie.com/reference/v2/sessions-api/create-session) + +### Session Management + +```php +// Create a session +$session = $mollie->sessions->create([ + 'amount' => [ + 'currency' => 'EUR', + 'value' => '100.00' + ], + 'description' => 'Session for service' +]); + +// Get a session +$session = $mollie->sessions->get('sessionId'); +``` + +## Settlements + +[Official Documentation](https://docs.mollie.com/reference/v2/settlements-api/get-settlement) + +### Settlement Management + +```php +// Get a settlement +$settlement = $mollie->settlements->get('settlementId'); + +// List settlements +$settlements = $mollie->settlements->page(); +``` + +### Settlement Captures + +```php +// Get captures for a settlement +$captures = $mollie->settlementCaptures->pageFor($settlement); + +// Use iterator +foreach ($mollie->settlementCaptures->iteratorFor($settlement) as $capture) { + echo $capture->id; +} +``` + +### Settlement Chargebacks + +```php +// List chargebacks for a settlement +$chargebacks = $mollie->settlementChargebacks->pageFor($settlement); + +// Use iterator +foreach ($mollie->settlementChargebacks->iteratorFor($settlement) as $chargeback) { + echo $chargeback->id; +} +``` + +### Settlement Payments + +```php +// List payments in a settlement +$payments = $mollie->settlementPayments->pageFor($settlement); + +// Use iterator +foreach ($mollie->settlementPayments->iteratorFor($settlement) as $payment) { + echo $payment->id; +} +``` + +## Subscriptions + +[Official Documentation](https://docs.mollie.com/reference/v2/subscriptions-api/create-subscription) + +### Subscription Management + +```php +// Create a subscription +$subscription = $mollie->subscriptions->createForCustomer('customerId', [ + 'amount' => [ + 'currency' => 'EUR', + 'value' => '25.00' + ], + 'interval' => '1 month', + 'description' => 'Monthly subscription' +]); + +// List subscriptions +$subscriptions = $mollie->subscriptions->pageForCustomer('customerId'); +``` + +## Terminals + +[Official Documentation](https://docs.mollie.com/reference/v2/terminals-api/get-terminal) + +### Terminal Management + +```php +// Get a terminal +$terminal = $mollie->terminals->get('terminalId'); + +// List terminals +$terminals = $mollie->terminals->page(); +``` + +## Terminal Pairing Codes + +Official Documentation: +[Request pairing code](https://docs.mollie.com/reference/terminals-request-pairing-code), +[Get pairing code](https://docs.mollie.com/reference/terminals-get-pairing-code), +[List pairing codes](https://docs.mollie.com/reference/terminals-list-pairing-codes), +[Revoke pairing code](https://docs.mollie.com/reference/terminals-revoke-pairing-code) + +### Terminal Pairing Code Management + +```php +// Request a pairing code, including QR code details +$pairingCode = $mollie->terminalPairingCodes->request('profileId', includeQrCode: true); + +// Get a pairing code, including QR code details +$pairingCode = $mollie->terminalPairingCodes->get('pairingCodeId', includeQrCode: true); + +// List pairing codes +$pairingCodes = $mollie->terminalPairingCodes->page(limit: 50, profileId: 'profileId'); + +// Use iterator +foreach ($mollie->terminalPairingCodes->iterator(profileId: 'profileId') as $pairingCode) { + echo $pairingCode->id; +} + +// Revoke a pairing code +$pairingCode = $mollie->terminalPairingCodes->revoke('pairingCodeId'); + +// Check pairing code status using helper methods +if ($pairingCode->isActive()) { + echo "Pairing code is active\n"; +} elseif ($pairingCode->isRevoked()) { + echo "Pairing code was revoked at: {$pairingCode->revokedAt}\n"; +} +``` + +## Wallets + +[Official Documentation](https://docs.mollie.com/reference/v2/wallets-api/request-apple-pay-payment-session) + +### Wallet Management + +```php +// Request an Apple Pay payment session +$session = $mollie->wallets->requestApplePayPaymentSession([ + 'domainName' => 'example.com', + 'validationUrl' => 'https://apple-pay-gateway.apple.com/paymentservices/startSession' +]); +``` + +## Webhooks + +[Official Documentation](https://docs.mollie.com/reference/v2/webhooks-api/create-webhook) + +### Webhook Management + +```php +use Mollie\Api\Types\WebhookEventType; + +// Create a webhook +$webhook = $mollie->webhooks->create([ + 'url' => 'https://example.com/webhook', + 'description' => 'Payment notifications', + 'events' => [ + WebhookEventType::PAYMENT_LINK_PAID, + WebhookEventType::PROFILE_VERIFIED + ], + 'secret' => 'my-secret-key-123' +]); + +// Get a webhook +$webhook = $mollie->webhooks->get('wh_4KgGJJSZpH'); + +// Update a webhook +$webhook = $mollie->webhooks->update('wh_4KgGJJSZpH', [ + 'url' => 'https://updated-example.com/webhook', + 'description' => 'Updated description' +]); + +// Delete a webhook +$mollie->webhooks->delete('wh_4KgGJJSZpH'); + +// Test a webhook +$mollie->webhooks->test('wh_4KgGJJSZpH'); + +// List webhooks +$webhooks = $mollie->webhooks->page(); + +// Using convenience methods on webhook resource +$webhook = $mollie->webhooks->get('wh_4KgGJJSZpH'); +$webhook->update(['description' => 'New description']); +$webhook->delete(); +$webhook->test(); +``` + +### Webhook Events + +```php +// Get a webhook event +$webhookEvent = $mollie->webhookEvents->get('whev_abc123'); + +// Check event status using helper methods +if ($webhookEvent->wasDelivered()) { + echo "Webhook was successfully delivered\n"; +} elseif ($webhookEvent->failed()) { + echo "Webhook delivery failed: {$webhookEvent->error}\n"; +} elseif ($webhookEvent->hasRetryPending()) { + echo "Retry pending at: {$webhookEvent->nextRetryAt}\n"; +} +``` + +## Common Patterns + +### Pagination + +Most list methods support pagination: + +```php +// Get first page +$payments = $mollie->payments->page(); + +// Get specific page +$payments = $mollie->payments->page( + from: 'tr_7UhSN1zuXS', // Start from this ID + limit: 50 // Items per page +); + +// Get all items using iterator +foreach ($mollie->payments->iterator() as $payment) { + echo $payment->id; +} +``` + +### Error Handling + +Handle errors using `ApiException`: + +```php +try { + $payment = $mollie->payments->get('tr_xxx'); +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: {$e->getMessage()}"; +} +``` diff --git a/vendor/mollie/mollie-api-php/docs/exceptions.md b/vendor/mollie/mollie-api-php/docs/exceptions.md new file mode 100644 index 0000000..fefc0d9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/exceptions.md @@ -0,0 +1,137 @@ +# Exceptions + +This document describes the exceptions that can be thrown by the Mollie API PHP client. + +## Exception Hierarchy + +### `MollieException` + +The abstract base class for **all** exceptions in the Mollie API PHP client. + +### `RequestException` + +The `RequestException` serves as the base for all request-related exceptions. + +### `ApiException` + +Extends `RequestException` and serves as the base for all API-related exceptions. This is the parent class for all specific HTTP status code exceptions. This exception is also thrown when the Mollie API returns an error response that doesn't match any of the more specific exceptions below. + +Properties and methods: +- `getDocumentationUrl()`: Returns the URL to the documentation for this error, if available +- `getDashboardUrl()`: Returns the URL to the dashboard for this error, if available +- `getRaisedAt()`: Returns the timestamp when the exception was raised +- `getPlainMessage()`: Returns the plain exception message without timestamp and metadata + +## HTTP Status Code Exceptions + +The following exceptions all extend `ApiException` and are thrown based on specific HTTP status codes returned by the API: + +### `UnauthorizedException` (401) + +Thrown when authentication fails. This typically happens when using an invalid API key. + +### `ForbiddenException` (403) + +Thrown when the request is understood but refused due to permission issues. + +### `NotFoundException` (404) + +Thrown when the requested resource does not exist. + +### `MethodNotAllowedException` (405) + +Thrown when the HTTP method used is not allowed for the requested endpoint. + +### `RequestTimeoutException` (408) + +Thrown when the request times out. + +### `ValidationException` (422) + +Thrown when the request data fails validation. This typically happens when required fields are missing or have invalid values. + +### `TooManyRequestsException` (429) + +Thrown when rate limiting is applied because too many requests were made in a short period. + +### `ServiceUnavailableException` (503) + +Thrown when the Mollie API service is temporarily unavailable. + +## Network Exceptions + +### `NetworkRequestException` + +Thrown when a network error occurs during the request. + +### `RetryableNetworkRequestException` + +Thrown when a network error occurs that might be resolved by retrying the request. + +## Other Exceptions + +### `ClientException` + +Base exception for client-related errors. + +### `EmbeddedResourcesNotParseableException` + +Thrown when embedded resources cannot be parsed. + +### `IncompatiblePlatformException` + +Thrown when the platform is incompatible with the Mollie API client. + +### `InvalidAuthenticationException` + +Thrown when the authentication method is invalid. + +### `JsonParseException` + +Thrown when JSON parsing fails. + +### `LogicException` + +Thrown when there is a logical error in the client code. + +### `MissingAuthenticationException` + +Thrown when no authentication method is provided. + +### `ServerException` + +Thrown when a server error occurs. + +### `UnrecognizedClientException` + +Thrown when the client is not recognized by the Mollie API. + +## Handling Exceptions + +Here's an example of how to handle exceptions: + +```php +try { + $payment = $mollie->payments->get("tr_xxx"); +} catch (Mollie\Api\Exceptions\UnauthorizedException $e) { + // Invalid API key + echo "Invalid API key: " . $e->getMessage(); +} catch (Mollie\Api\Exceptions\NotFoundException $e) { + // Payment not found + echo "Payment not found: " . $e->getMessage(); +} catch (Mollie\Api\Exceptions\MollieException $e) { + // Other Mollie error + echo "Mollie error: " . $e->getMessage(); +} +``` + +You can also catch all Mollie exceptions at once: + +```php +try { + $payment = $mollie->payments->get("tr_xxx"); +} catch (Mollie\Api\Exceptions\MollieException $e) { + // Any Mollie error + echo "Mollie error: " . $e->getMessage(); +} +``` diff --git a/vendor/mollie/mollie-api-php/docs/http-adapters.md b/vendor/mollie/mollie-api-php/docs/http-adapters.md new file mode 100644 index 0000000..9c65e6b --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/http-adapters.md @@ -0,0 +1,46 @@ +# HTTP Adapters + +## Overview + +An HTTP adapter is a component that manages the communication between your application and an API. It abstracts the details of making HTTP requests and handling responses, allowing you to use different HTTP clients (like Guzzle, cURL, or custom clients) interchangeably without changing the way you interact with the API. + +## MollieHttpAdapterPicker + +The `MollieHttpAdapterPicker` is responsible for selecting the appropriate HTTP adapter based on the environment or the provided HTTP client. If no client is specified in the `MollieApiClient` constructor, it picks a default adapter. + +### How It Works + +1. **No Client Specified**: If no client is provided, it checks if Guzzle is available and picks the appropriate version of the Guzzle adapter. +2. **Custom Client Provided**: If a custom client is provided and it implements the `HttpAdapterContract`, it is used directly. If it's a Guzzle client, it is wrapped in a `GuzzleMollieHttpAdapter`. +3. **Unrecognized Client**: Throws an `UnrecognizedClientException` if the client is not recognized. + +## Creating a Custom Adapter + +To create a custom HTTP adapter: +1. Implement HttpAdapterContract. +2. Use HasDefaultFactories Trait to simplify adapter implementation. + +```php +use Mollie\Api\Contracts\HttpAdapterContract; +use Mollie\Api\Traits\HasDefaultFactories; + +class MyCustomHttpAdapter implements HttpAdapterContract { + use HasDefaultFactories; + + public function sendRequest(PendingRequest $pendingRequest): Response { + // Implementation for sending HTTP request + } + + public function version(): ?string { + return 'my-custom-adapter/1.0'; + } +} +``` + +## Available Adapters + +Out of the box, the Mollie API client provides several adapters: + +- **GuzzleMollieHttpAdapter**: Wraps a Guzzle HTTP client for sending requests. +- **CurlMollieHttpAdapter**: Uses cURL for sending HTTP requests. This is the default if Guzzle is not available. +- **PSR18MollieHttpAdapter**: [PSR-18](https://www.php-fig.org/psr/psr-18/) compatible HTTP adapter diff --git a/vendor/mollie/mollie-api-php/docs/idempotency.md b/vendor/mollie/mollie-api-php/docs/idempotency.md new file mode 100644 index 0000000..fb03c6a --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/idempotency.md @@ -0,0 +1,60 @@ +# Idempotency + +## Overview + +Idempotency ensures that multiple identical requests to an API result in the same outcome without creating duplicate resources or effects. This is crucial for operations that involve financial transactions to prevent unintended charges or state changes. + +Mollie API supports idempotent requests for critical operations such as creating payments or refunds. This is automatically managed by the API client using the `ApplyIdempotencyKey` middleware. + +For more detailed information, refer to the [Mollie API Idempotency Documentation](https://docs.mollie.com/reference/api-idempotency). + +> [!Note] +> This package automatically handles idempotency for you. The information below allows you to override the default idempotency behavior. + +## Automatic Idempotency Key Handling + +The Mollie API client automatically handles idempotency for mutating requests (POST, PATCH, DELETE) through the `ApplyIdempotencyKey` middleware. This middleware checks if the request is a mutating type and applies an idempotency key if one is not already provided. + +### How It Works + +1. **Check Request Type**: The middleware checks if the request method is POST, PATCH, or DELETE. +2. **Apply Idempotency Key**: If the request is mutating, the middleware will: + - Use a custom idempotency key if provided. + - Otherwise, generate a key using the configured `IdempotencyKeyGenerator` if available. + - If no generator is set and no key is provided, no idempotency key is applied. + +### Customizing Idempotency Key + +You can customize how idempotency keys are generated or applied in several ways: + +- **Provide a Custom Key**: Manually set an idempotency key for a specific request. +- **Use a Custom Generator**: Implement the `IdempotencyKeyGeneratorContract` to provide a custom method of generating idempotency keys. + +#### Example: Setting a Custom Key + +```php +$mollie->setIdempotencyKey('your_custom_key_here'); +``` + +#### Example: Using a Custom Key Generator + +Implement your key generator: + +```php +class MyCustomKeyGenerator implements IdempotencyKeyGeneratorContract { + public function generate(): string { + return 'custom_' . bin2hex(random_bytes(10)); + } +} + +$mollie->setIdempotencyKeyGenerator(new MyCustomKeyGenerator()); +``` + +## Best Practices + +- **Unique Keys**: Ensure that each idempotency key is unique to each operation. Typically, UUIDs are used for this purpose. +- **Handling Errors**: Handle errors gracefully, especially when an API call with an idempotency key fails. Check the error message to understand whether you should retry the request with the same key or a new key. + +## Conclusionz + +Using idempotency keys in your API requests to Mollie can significantly enhance the reliability of your payment processing system, ensuring that payments are not unintentionally duplicated and that your application behaves predictably even in the face of network and service interruptions. diff --git a/vendor/mollie/mollie-api-php/docs/payments.md b/vendor/mollie/mollie-api-php/docs/payments.md new file mode 100644 index 0000000..bb06170 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/payments.md @@ -0,0 +1,94 @@ +##### Multicurrency ##### +Since API v2.0 it is now possible to create non-EUR payments for your customers. +A full list of available currencies can be found [in our documentation](https://docs.mollie.com/docs/multicurrency). + +```php +$payment = $mollie->payments->create([ + "amount" => [ + "currency" => "USD", + "value" => "10.00" + ], + //... +]); +``` +_After creation, the `settlementAmount` will contain the EUR amount that will be settled on your account._ + +##### Create fully integrated iDEAL payments ##### +To fully integrate iDEAL payments on your website, follow these additional steps: + +1. Retrieve the list of issuers (banks) that support iDEAL. + +```php +$method = $mollie->methods->get(\Mollie\Api\Types\PaymentMethod::Ideal, ["include" => "issuers"]); +``` + +Use the `$method->issuers` list to let the customer pick their preferred issuer. + +_`$method->issuers` will be a list of objects. Use the property `$id` of this object in the + API call, and the property `$name` for displaying the issuer to your customer._ + +2. Create a payment with the selected issuer: + +```php +$payment = $mollie->payments->create([ + "amount" => [ + "currency" => "EUR", + "value" => "10.00" + ], + "description" => "My first API payment", + "redirectUrl" => "https://webshop.example.org/order/12345/", + "webhookUrl" => "https://webshop.example.org/mollie-webhook/", + "method" => \Mollie\Api\Types\PaymentMethod::Ideal, + "issuer" => $selectedIssuerId, // e.g. "ideal_INGBNL2A" +]); +``` + +_The `_links` property of the `$payment` object will contain an object `checkout` with a `href` property, which is a URL that points directly to the online banking environment of the selected issuer. +A short way of retrieving this URL can be achieved by using the `$payment->getCheckoutUrl()`._ + +For a more in-depth example, see [Example - iDEAL payment](./recipes/payments/create-ideal-payment.md). + +#### Retrieving Payments #### +**[Retrieve Payment Documentation](https://docs.mollie.com/reference/v2/payments-api/get-payment)** + +We can use the `$payment->id` to retrieve a payment and check if the payment `isPaid`. + +```php +$payment = $mollie->payments->get($payment->id); + +if ($payment->isPaid()) +{ + echo "Payment received."; +} +``` + +Or retrieve a collection of payments. + +```php +$payments = $mollie->payments->page(); +``` + +For an extensive example of listing payments with the details and status, see [Example - List Payments](./recipes/payments/list-payments.md). + +#### Refunding payments #### +**[Refund Payment Documentation](https://docs.mollie.com/reference/v2/refunds-api/create-payment-refund)** + +Our API provides support for refunding payments. It's important to note that there is no confirmation step, and all refunds are immediate and final. Refunds are available for all payment methods except for paysafecard and gift cards. + +```php +$payment = $mollie->payments->get($payment->id); + +// Refund € 2 of this payment +$refund = $payment->refund([ + "amount" => [ + "currency" => "EUR", + "value" => "2.00" + ] +]); +``` + +#### Payment webhook #### +When the payment status changes, the `webhookUrl` you specified during payment creation will be called. You can use the `id` from the POST parameters to check the status and take appropriate actions. +For more details, refer to [Example - Webhook](./recipes/payments/handle-webhook.md). + +For a working example, see [Example - Refund payment](./recipes/payments/refund-payment.md). diff --git a/vendor/mollie/mollie-api-php/docs/recipes/README.md b/vendor/mollie/mollie-api-php/docs/recipes/README.md new file mode 100644 index 0000000..d28e4af --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/README.md @@ -0,0 +1,33 @@ +# Mollie API PHP Recipes + +This directory contains recipes for common use cases with the Mollie API PHP client. Each recipe provides a practical example of how to use the API client for a specific task. + +## Structure + +The recipes are organized by resource type: +- `payments/` - Payment-related operations (create, update, refund, etc.) +- `customers/` - Customer management +- `mandates/` - Mandate operations +- `subscriptions/` - Subscription handling +- `captures/` - Payment capture operations +- `chargebacks/` - Chargeback handling +- `refunds/` - Refund operations +- `connect-balance-transfers/` - Connect balance transfer operations +- `webhooks/` - Webhook management and events +- `money/` - `Money` value object recipes (custom factories via Macroable) + +Each recipe includes: +- Complete code example +- Example response fields +- Additional notes and considerations + +## Getting Started + +Before using any recipe, make sure you have properly initialized the API client: + +```php +use Mollie\Api\MollieApiClient; + +$mollie = new MollieApiClient; +$mollie->setApiKey('test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM'); +``` diff --git a/vendor/mollie/mollie-api-php/docs/recipes/capabilities/list-capabilities.md b/vendor/mollie/mollie-api-php/docs/recipes/capabilities/list-capabilities.md new file mode 100644 index 0000000..4deee3c --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/capabilities/list-capabilities.md @@ -0,0 +1,82 @@ +# List Account Capabilities + +How to retrieve the capabilities of a Mollie account using OAuth. + +## The Code + +```php +use Mollie\Api\Http\Requests\ListCapabilitiesRequest; +use Mollie\Api\Http\Requests\GetCapabilityRequest; +use Mollie\Api\Types\CapabilityStatus; + +try { + // Initialize the Mollie client with your OAuth access token + $mollie = new \Mollie\Api\MollieApiClient(); + $mollie->setAccessToken('access_xxx'); + + // List all capabilities + $capabilities = $mollie->send( + new ListCapabilitiesRequest() + ); + + foreach ($capabilities as $capability) { + $status = $capability->status instanceof CapabilityStatus + ? $capability->status->value + : $capability->status; + + echo "Capability: {$capability->name}\n"; + echo "- Status: {$status}\n"; + + if ($capability->statusReason !== null) { + echo "- Status reason: {$capability->statusReason}\n"; + } + + echo "\n"; + } + + // Get a specific capability + $capability = $mollie->send( + new GetCapabilityRequest( + name: 'payments' + ) + ); + + $status = $capability->status instanceof CapabilityStatus + ? $capability->status->value + : $capability->status; + + echo "Payment capability status: {$status}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$capability->name; // "payments" +$capability->requirements; // Requirements that still need attention +$capability->status; // CapabilityStatus case, or an unknown raw string +$capability->statusReason; // Status reason, or null when no reason applies +``` + +## Available Capabilities + +- `payments` - Accept payments from your customers +- `refunds` - Refund payments to your customers +- `settlements` - Receive settlements in your bank account +- `chargebacks` - Handle chargebacks from your customers +- `onboarding` - Complete onboarding to activate your account +- `organizations` - Create and manage organizations + +## Additional Notes + +- You need an OAuth access token to access capabilities +- The status indicates whether a capability is available for use: + - `unrequested`: The capability has not been requested + - `enabled`: The capability is enabled and ready to use + - `pending`: The capability is being reviewed or requires additional information + - `disabled`: The capability is disabled or not available +- Some capabilities may require additional verification or documentation +- Capabilities vary by country and account type +- Check capabilities before using certain features to ensure they are available diff --git a/vendor/mollie/mollie-api-php/docs/recipes/connect-balance-transfers/create-balance-transfer.md b/vendor/mollie/mollie-api-php/docs/recipes/connect-balance-transfers/create-balance-transfer.md new file mode 100644 index 0000000..cb76581 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/connect-balance-transfers/create-balance-transfer.md @@ -0,0 +1,151 @@ +# Create a Connect Balance Transfer + +How to create a balance transfer between two connected Mollie balances using the API. + +## The Code + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Data\TransferParty; +use Mollie\Api\Http\Requests\CreateConnectBalanceTransferRequest; +use Mollie\Api\Types\ConnectBalanceTransferCategory; + +try { + // Initialize the Mollie client with your OAuth access token + $mollie = new \Mollie\Api\MollieApiClient(); + $mollie->setAccessToken('access_xxx'); + + // Create a balance transfer + $balanceTransfer = $mollie->send( + new CreateConnectBalanceTransferRequest( + amount: new Money( + currency: 'EUR', + value: '100.00' + ), + description: 'Transfer from balance A to balance B', + source: new TransferParty( + id: 'org_12345678', + description: 'Payment from Organization A' + ), + destination: new TransferParty( + id: 'org_87654321', + description: 'Payment to Organization B' + ), + category: ConnectBalanceTransferCategory::ManualCorrection + ) + ); + + echo "Balance transfer created: {$balanceTransfer->id}\n"; + echo "Amount: {$balanceTransfer->amount->currency} {$balanceTransfer->amount->value}\n"; + echo "Status: Transfer initiated\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Using Endpoint Collections (Legacy Style) + +```php +try { + // Create a balance transfer using endpoint collections + $balanceTransfer = $mollie->connectBalanceTransfers->create([ + 'amount' => [ + 'currency' => 'EUR', + 'value' => '100.00' + ], + 'description' => 'Transfer from balance A to balance B', + 'source' => [ + 'type' => 'organization', + 'id' => 'org_12345678', + 'description' => 'Payment from Organization A' + ], + 'destination' => [ + 'type' => 'organization', + 'id' => 'org_87654321', + 'description' => 'Payment to Organization B' + ], + 'category' => 'manual_correction' + ]); + + echo "Balance transfer created: {$balanceTransfer->id}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$balanceTransfer->id; // "cbt_4KgGJJSZpH" +$balanceTransfer->resource; // "connect-balance-transfer" +$balanceTransfer->amount->currency; // "EUR" +$balanceTransfer->amount->value; // "100.00" +$balanceTransfer->description; // "Transfer from balance A to balance B" +$balanceTransfer->status; // "created", "failed", "succeeded" +$balanceTransfer->statusReason; // Object with status reason (if applicable) +$balanceTransfer->category; // "manual_correction", "purchase", "refund", etc. +$balanceTransfer->source->type; // "organization" +$balanceTransfer->source->id; // "org_12345678" +$balanceTransfer->source->description; // "Payment from Organization A" +$balanceTransfer->destination->type; // "organization" +$balanceTransfer->destination->id; // "org_87654321" +$balanceTransfer->destination->description; // "Payment to Organization B" +$balanceTransfer->executedAt; // "2023-12-25T10:31:00+00:00" (null if not executed) +$balanceTransfer->mode; // "live" or "test" +$balanceTransfer->createdAt; // "2023-12-25T10:30:54+00:00" +``` + +## Transfer Status + +The transfer status indicates the current state of the transfer: + +```php +// Check transfer status +if ($balanceTransfer->status === 'succeeded') { + echo "Transfer completed successfully\n"; + echo "Executed at: {$balanceTransfer->executedAt}\n"; +} elseif ($balanceTransfer->status === 'failed') { + echo "Transfer failed\n"; + if ($balanceTransfer->statusReason) { + echo "Reason: " . json_encode($balanceTransfer->statusReason) . "\n"; + } +} +``` + +## Transfer Categories + +Different transfer categories may have different fees: + +- `invoice_collection` - Collecting invoice payments +- `purchase` - Purchase-related transfers +- `chargeback` - Chargeback transfers +- `refund` - Refund transfers +- `service_penalty` - Service penalty fees +- `discount_compensation` - Discount compensations +- `manual_correction` - Manual corrections +- `other_fee` - Other fees + +## Additional Notes + +- **OAuth Required**: You need an OAuth access token to create balance transfers. API keys are not supported for this endpoint. +- **Sub-merchant consent**: You must have a documented consent from your sub-merchants authorizing balance movements. +- **Balance Ownership**: You can only transfer funds between balances that belong to organizations connected through your OAuth app. +- **Transfer Speed**: Balance transfers are processed immediately. The funds are moved instantly between the balances. +- **Status Tracking**: Monitor the `status` field to track transfer completion. Check `executedAt` for the exact completion time. +- **Currency Requirements**: + - Both balances must use the same currency + - The transfer amount must match the balance currency +- **Balance Validation**: + - The source balance must have sufficient available funds + - Both balances must be active and operational +- **Use Cases**: + - Moving funds between merchant balances in a marketplace + - Redistributing funds across different connected accounts + - Managing liquidity between multiple balances +- **Permissions**: Your OAuth app must have the appropriate scopes to access and transfer between the balances +- **Idempotency**: Consider using idempotency keys when creating transfers to prevent duplicate transfers in case of network issues + +## Related Resources + +- [List Connect Balance Transfers](list-balance-transfers.md) +- [Get Connect Balance Transfer](get-balance-transfer.md) diff --git a/vendor/mollie/mollie-api-php/docs/recipes/connect-balance-transfers/get-balance-transfer.md b/vendor/mollie/mollie-api-php/docs/recipes/connect-balance-transfers/get-balance-transfer.md new file mode 100644 index 0000000..4930c73 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/connect-balance-transfers/get-balance-transfer.md @@ -0,0 +1,105 @@ +# Get a Connect Balance Transfer + +How to retrieve details of a specific connect balance transfer using the Mollie API. + +## The Code + +```php +use Mollie\Api\Http\Requests\GetConnectBalanceTransferRequest; + +try { + // Initialize the Mollie client with your OAuth access token + $mollie = new \Mollie\Api\MollieApiClient(); + $mollie->setAccessToken('access_xxx'); + + // Get a specific balance transfer + $balanceTransfer = $mollie->send( + new GetConnectBalanceTransferRequest( + id: 'cbt_4KgGJJSZpH' + ) + ); + + echo "Balance Transfer {$balanceTransfer->id}:\n"; + echo "- Amount: {$balanceTransfer->amount->currency} {$balanceTransfer->amount->value}\n"; + echo "- Description: {$balanceTransfer->description}\n"; + echo "- From: {$balanceTransfer->source->balanceId}\n"; + echo "- To: {$balanceTransfer->destination->balanceId}\n"; + echo "- Created: {$balanceTransfer->createdAt}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Using Endpoint Collections (Legacy Style) + +```php +try { + // Get a balance transfer using endpoint collections + $balanceTransfer = $mollie->connectBalanceTransfers->get('cbt_4KgGJJSZpH'); + + echo "Transfer amount: {$balanceTransfer->amount->value}\n"; + echo "Transfer description: {$balanceTransfer->description}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$balanceTransfer->id; // "cbt_4KgGJJSZpH" +$balanceTransfer->resource; // "connect-balance-transfer" +$balanceTransfer->amount->currency; // "EUR" +$balanceTransfer->amount->value; // "100.00" +$balanceTransfer->description; // "Transfer from balance A to balance B" +$balanceTransfer->status; // "created", "failed", "succeeded" +$balanceTransfer->statusReason; // Object with status reason (if applicable) +$balanceTransfer->category; // "manual_correction", "purchase", "refund", etc. +$balanceTransfer->source->type; // "organization" +$balanceTransfer->source->id; // "org_12345678" +$balanceTransfer->source->description; // "Payment from Organization A" +$balanceTransfer->destination->type; // "organization" +$balanceTransfer->destination->id; // "org_87654321" +$balanceTransfer->destination->description; // "Payment to Organization B" +$balanceTransfer->executedAt; // "2023-12-25T10:31:00+00:00" (null if not executed) +$balanceTransfer->mode; // "live" or "test" +$balanceTransfer->createdAt; // "2023-12-25T10:30:54+00:00" +$balanceTransfer->_links; // Object containing relevant URLs +``` + +## Transfer Party Details + +Access the transfer party information: + +```php +// Source party details +echo "Source Organization:\n"; +echo "- Type: {$balanceTransfer->source->type}\n"; // "organization" +echo "- ID: {$balanceTransfer->source->id}\n"; // Organization token +echo "- Description: {$balanceTransfer->source->description}\n"; + +// Destination party details +echo "Destination Organization:\n"; +echo "- Type: {$balanceTransfer->destination->type}\n"; +echo "- ID: {$balanceTransfer->destination->id}\n"; +echo "- Description: {$balanceTransfer->destination->description}\n"; +``` + +## Additional Notes + +- **OAuth Required**: You need an OAuth access token to retrieve balance transfer details +- **Access Control**: You can only retrieve transfers involving balances accessible through your OAuth app +- **Transfer Tracking**: Use the transfer ID to track and audit balance movements +- **Embedded Data**: The response may include embedded balance details for both source and destination balances +- **Links**: The `_links` object contains URLs to related resources: + - `self`: Link to this balance transfer + - `documentation`: Link to API documentation +- **Audit Trail**: Store transfer IDs in your system for reconciliation and reporting purposes +- **Error Handling**: + - Returns 404 if the transfer ID doesn't exist + - Returns 403 if you don't have permission to access this transfer + +## Related Resources + +- [Create Connect Balance Transfer](create-balance-transfer.md) +- [List Connect Balance Transfers](list-balance-transfers.md) diff --git a/vendor/mollie/mollie-api-php/docs/recipes/connect-balance-transfers/list-balance-transfers.md b/vendor/mollie/mollie-api-php/docs/recipes/connect-balance-transfers/list-balance-transfers.md new file mode 100644 index 0000000..fd5af00 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/connect-balance-transfers/list-balance-transfers.md @@ -0,0 +1,177 @@ +# List Connect Balance Transfers + +How to retrieve a list of all connect balance transfers using the Mollie API. + +## The Code + +```php +use Mollie\Api\Http\Requests\ListConnectBalanceTransfersRequest; + +try { + // Initialize the Mollie client with your OAuth access token + $mollie = new \Mollie\Api\MollieApiClient(); + $mollie->setAccessToken('access_xxx'); + + // List all balance transfers + $balanceTransfers = $mollie->send( + new ListConnectBalanceTransfersRequest() + ); + + foreach ($balanceTransfers as $transfer) { + echo "Transfer {$transfer->id}:\n"; + echo "- Amount: {$transfer->amount->currency} {$transfer->amount->value}\n"; + echo "- Description: {$transfer->description}\n"; + echo "- From: {$transfer->source->balanceId}\n"; + echo "- To: {$transfer->destination->balanceId}\n"; + echo "- Created: {$transfer->createdAt}\n\n"; + } + + // Get the next page if available + if ($balanceTransfers->hasNext()) { + $nextPage = $balanceTransfers->next(); + // Process next page... + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## With Pagination Parameters + +```php +use Mollie\Api\Http\Requests\ListConnectBalanceTransfersRequest; + +try { + // List balance transfers with pagination + $balanceTransfers = $mollie->send( + new ListConnectBalanceTransfersRequest( + from: 'cbt_8KhHNOSdpL', // Start from this ID + limit: 50, // Limit to 50 results + sort: 'createdAt' // Sort by creation date + ) + ); + + foreach ($balanceTransfers as $transfer) { + // Process each transfer... + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Using Iterator for All Transfers + +```php +use Mollie\Api\Http\Requests\ListConnectBalanceTransfersRequest; + +try { + // Use iterator to automatically handle pagination + $request = new ListConnectBalanceTransfersRequest(); + + $allTransfers = $mollie->send($request->useIterator()); + + foreach ($allTransfers as $transfer) { + echo "Transfer {$transfer->id}: "; + echo "{$transfer->amount->currency} {$transfer->amount->value}\n"; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Using Endpoint Collections (Legacy Style) + +```php +try { + // List balance transfers using endpoint collections + $balanceTransfers = $mollie->connectBalanceTransfers->page(); + + foreach ($balanceTransfers as $transfer) { + echo "Transfer: {$transfer->description}\n"; + echo "Amount: {$transfer->amount->value}\n\n"; + } + + // Use iterator for automatic pagination + foreach ($mollie->connectBalanceTransfers->iterator() as $transfer) { + // Process each transfer across all pages... + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +// Collection properties +$balanceTransfers->count; // Number of transfers in current page +$balanceTransfers->_links; // Pagination links + +// Individual transfer properties +$transfer->id; // "cbt_4KgGJJSZpH" +$transfer->resource; // "connect-balance-transfer" +$transfer->amount->currency; // "EUR" +$transfer->amount->value; // "100.00" +$transfer->description; // "Transfer from balance A to balance B" +$transfer->status; // "created", "failed", "succeeded" +$transfer->category; // "manual_correction", "purchase", "refund", etc. +$transfer->source->type; // "organization" +$transfer->source->id; // "org_12345678" +$transfer->source->description; // "Payment from Organization A" +$transfer->destination->type; // "organization" +$transfer->destination->id; // "org_87654321" +$transfer->destination->description; // "Payment to Organization B" +$transfer->executedAt; // "2023-12-25T10:31:00+00:00" (null if not executed) +$transfer->mode; // "live" or "test" +$transfer->createdAt; // "2023-12-25T10:30:54+00:00" +``` + +## Pagination Methods + +```php +// Check if there's a next page +if ($balanceTransfers->hasNext()) { + $nextPage = $balanceTransfers->next(); +} + +// Check if there's a previous page +if ($balanceTransfers->hasPrevious()) { + $previousPage = $balanceTransfers->previous(); +} + +// Get auto-iterator for all transfers +$iterator = $balanceTransfers->getAutoIterator(); +foreach ($iterator as $transfer) { + // Processes all transfers across all pages automatically +} +``` + +## Additional Notes + +- **OAuth Required**: You need an OAuth access token to list balance transfers +- **Access Scope**: The list includes only transfers involving balances accessible through your OAuth app +- **Pagination**: + - Results are paginated with a default limit + - Use `from` parameter to start from a specific transfer ID + - Use `limit` to control the number of results per page (max 250) +- **Sorting**: + - Transfers are returned in descending order by creation date (newest first) + - Use the `sort` parameter to customize ordering +- **Filtering**: Currently, there are no filter parameters available. All accessible transfers are returned. +- **Performance**: + - Use the iterator for processing large numbers of transfers + - The iterator automatically handles pagination + - Set appropriate limits to balance between API calls and memory usage +- **Iteration Direction**: + - By default, iteration goes forward (newest to oldest) + - Set `iterateBackwards: true` to reverse the direction +- **Use Cases**: + - Financial reporting and reconciliation + - Audit trails for balance movements + - Analyzing transfer patterns + - Monitoring platform activity + +## Related Resources + +- [Create Connect Balance Transfer](create-balance-transfer.md) +- [Get Connect Balance Transfer](get-balance-transfer.md) diff --git a/vendor/mollie/mollie-api-php/docs/recipes/customers/customer-payments.md b/vendor/mollie/mollie-api-php/docs/recipes/customers/customer-payments.md new file mode 100644 index 0000000..043fc7a --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/customers/customer-payments.md @@ -0,0 +1,142 @@ +# Customer Payments + +How to create and manage payments for customers using the Mollie API. + +## First Payment (For Recurring) + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\CreateCustomerPaymentRequest; +use Mollie\Api\Types\PaymentStatus; +use Mollie\Api\Types\SequenceType; + +try { + // Create the first payment for a customer + $payment = $mollie->send( + new CreateCustomerPaymentRequest( + customerId: 'cst_8wmqcHMN4U', + description: 'First payment - Order #12345', + amount: Money::euro('29.95'), // Using convenience method + redirectUrl: 'https://example.com/payments/return?order_id=12345', + webhookUrl: 'https://example.com/payments/webhook', + metadata: [ + 'order_id' => '12345' + ], + sequenceType: SequenceType::First->value // This creates a mandate for future payments + ) + ); + + // Redirect the customer to complete the payment + header('Location: ' . $payment->getCheckoutUrl(), true, 303); +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Recurring Payment + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\CreateCustomerPaymentRequest; +use Mollie\Api\Types\SequenceType; + +try { + // Create a recurring payment using the mandate + $payment = $mollie->send( + new CreateCustomerPaymentRequest( + customerId: 'cst_8wmqcHMN4U', + description: 'Recurring payment - Order #12346', + amount: Money::euro('29.95'), // Using convenience method + webhookUrl: 'https://example.com/payments/webhook', + metadata: [ + 'order_id' => '12346' + ], + sequenceType: SequenceType::Recurring->value // This uses the mandate created by the first payment + ) + ); + + // The payment will be either pending or paid immediately + $status = $payment->status instanceof PaymentStatus + ? $payment->status->value + : $payment->status; + + echo "Payment status: {$status}\n"; + echo "Used mandate: " . ($payment->mandateId ?? 'not assigned') . "\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## List Customer Payments + +```php +use Mollie\Api\Http\Requests\GetPaginatedCustomerPaymentsRequest; +use Mollie\Api\Resources\PaymentCollection; +use Mollie\Api\Types\PaymentStatus; + +try { + // Get all payments for a customer + /** @var PaymentCollection */ + $payments = $mollie->send( + new GetPaginatedCustomerPaymentsRequest( + customerId: 'cst_8wmqcHMN4U' + ) + ); + + foreach ($payments as $payment) { + $status = $payment->status instanceof PaymentStatus + ? $payment->status->value + : $payment->status; + + echo "Payment {$payment->id}:\n"; + echo "- Description: {$payment->description}\n"; + echo "- Amount: {$payment->amount->currency} {$payment->amount->value}\n"; + echo "- Status: {$status}\n"; + + if ($payment->hasRefunds()) { + echo "- Has been (partially) refunded\n"; + } + + if ($payment->hasChargebacks()) { + echo "- Has been charged back\n"; + } + + echo "\n"; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Payment Response + +```php +$payment->id; // "tr_7UhSN1zuXS" +$payment->customerId; // "cst_8wmqcHMN4U" +$payment->mode; // "live" or "test" +$payment->description; // "Order #12345" +$payment->metadata; // Object containing custom metadata +$payment->status; // PaymentStatus case, or an unknown raw string +$payment->isCancelable; // Whether the payment can be canceled, or null +$payment->sequenceType; // SequenceType case, unknown raw string, or null +$payment->redirectUrl; // URL to redirect the customer to +$payment->webhookUrl; // URL for webhook notifications +$payment->createdAt; // "2024-02-24T12:13:14+00:00" +``` + +## Additional Notes + +- First create a customer before creating customer payments +- The first payment creates a mandate for future recurring payments +- Sequence types: + - `first`: Creates a mandate for future payments + - `recurring`: Uses an existing mandate +- Recurring payments: + - Don't need a `redirectUrl` as they use the stored mandate + - Will be executed immediately without customer interaction + - May still be pending depending on the payment method +- The mandate status determines if recurring payments can be created +- Store the payment ID and status in your database +- Always implement proper webhook handling +- Available payment methods may differ for first and recurring payments +- Some payment methods don't support recurring payments diff --git a/vendor/mollie/mollie-api-php/docs/recipes/customers/manage-customers.md b/vendor/mollie/mollie-api-php/docs/recipes/customers/manage-customers.md new file mode 100644 index 0000000..59b9654 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/customers/manage-customers.md @@ -0,0 +1,125 @@ +# Manage Customers + +How to create, update, and delete customers using the Mollie API. + +## Create a Customer + +```php +use Mollie\Api\Http\Requests\CreateCustomerRequest; + +try { + // Create a new customer + $customer = $mollie->send( + new CreateCustomerRequest( + name: 'Luke Skywalker', + email: 'luke@example.com', + locale: 'en_US', + metadata: [ + 'isJedi' => true + ] + ) + ); + + echo "New customer created: {$customer->id}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Update a Customer + +```php +use Mollie\Api\Http\Requests\GetCustomerRequest; +use Mollie\Api\Http\Requests\UpdateCustomerRequest; + +try { + // First retrieve the customer you want to update + $customer = $mollie->send( + new GetCustomerRequest( + id: 'cst_8wmqcHMN4U' + ) + ); + + // Update specific customer fields + $customer = $mollie->send( + new UpdateCustomerRequest( + id: $customer->id, + name: 'Luke Sky', + email: 'luke@example.com', + locale: 'en_US', + metadata: [ + 'isJedi' => true + ] + // Fields we don't specify will keep their current values + ) + ); + + echo "Customer updated: {$customer->name}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Delete a Customer + +```php +use Mollie\Api\Http\Requests\DeleteCustomerRequest; + +try { + // Delete a customer + $mollie->send( + new DeleteCustomerRequest( + id: 'cst_8wmqcHMN4U' + ) + ); + + echo "Customer deleted\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$customer->id; // "cst_8wmqcHMN4U" +$customer->name; // "Luke Skywalker" +$customer->email; // "luke@example.com" +$customer->locale; // "en_US" +$customer->metadata; // Object containing custom metadata +$customer->mode; // "live" or "test" +$customer->createdAt; // "2024-02-24T12:13:14+00:00" +``` + +## Additional Notes + +- Customers are used to store recurring payment details +- Each customer can have multiple mandates for different payment methods +- The customer ID is required for: + - Creating recurring payments + - Creating subscriptions + - Retrieving payment history +- Customer data should be kept in sync with your own database +- Available locales: + - `en_US` English (US) + - `en_GB` English (UK) + - `nl_NL` Dutch (Netherlands) + - `nl_BE` Dutch (Belgium) + - `fr_FR` French (France) + - `fr_BE` French (Belgium) + - `de_DE` German (Germany) + - `de_AT` German (Austria) + - `de_CH` German (Switzerland) + - `es_ES` Spanish (Spain) + - `ca_ES` Catalan (Spain) + - `pt_PT` Portuguese (Portugal) + - `it_IT` Italian (Italy) + - `nb_NO` Norwegian (Norway) + - `sv_SE` Swedish (Sweden) + - `fi_FI` Finnish (Finland) + - `da_DK` Danish (Denmark) + - `is_IS` Icelandic (Iceland) + - `hu_HU` Hungarian (Hungary) + - `pl_PL` Polish (Poland) + - `lv_LV` Latvian (Latvia) + - `lt_LT` Lithuanian (Lithuania) diff --git a/vendor/mollie/mollie-api-php/docs/recipes/invoices/list-invoices.md b/vendor/mollie/mollie-api-php/docs/recipes/invoices/list-invoices.md new file mode 100644 index 0000000..c25cf9a --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/invoices/list-invoices.md @@ -0,0 +1,102 @@ +# List Mollie Invoices + +How to retrieve your Mollie invoices using the API. + +## The Code + +```php +use Mollie\Api\Http\Requests\GetPaginatedInvoiceRequest; +use Mollie\Api\Types\InvoiceStatus; + +try { + // Initialize with OAuth (required for invoices) + $mollie = new \Mollie\Api\MollieApiClient(); + $mollie->setAccessToken('access_xxx'); + + // Get all invoices + $response = $mollie->send( + new GetPaginatedInvoiceRequest() + ); + + foreach ($response as $invoice) { + $status = $invoice->status instanceof InvoiceStatus + ? $invoice->status->value + : ($invoice->status ?? 'not available'); + + echo "Invoice {$invoice->reference}:\n"; + echo "- Status: {$status}\n"; + echo "- Issued: " . ($invoice->issuedAt ?? 'not issued') . "\n"; + echo "- Paid: " . ($invoice->paidAt ?? 'not paid') . "\n"; + echo "- Due: " . ($invoice->dueAt ?? 'not available') . "\n\n"; + + echo "Lines:\n"; + if ($invoice->lines !== null) { + foreach ($invoice->lines as $line) { + echo "- {$line->description}\n"; + echo " Period: {$line->period}\n"; + echo " Count: {$line->count}\n"; + echo " VAT: {$line->vatPercentage}%\n"; + echo " Amount: {$line->amount->currency} {$line->amount->value}\n\n"; + } + } + + echo "Totals:\n"; + foreach ([ + 'Net' => $invoice->netAmount, + 'VAT' => $invoice->vatAmount, + 'Gross' => $invoice->grossAmount, + ] as $label => $amount) { + if ($amount !== null) { + echo "- {$label}: {$amount->currency} {$amount->value}\n"; + } + } + echo "\n"; + + if (isset($invoice->_links->pdf->href)) { + echo "PDF: {$invoice->_links->pdf->href}\n"; + } + + echo "\n"; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$invoice->id; // "inv_xBEbP9rvAq" +$invoice->reference; // "2024.10000" +$invoice->vatNumber; // "NL123456789B01" +$invoice->status; // InvoiceStatus case, unknown raw string, or null +$invoice->issuedAt; // Issue date, or null when omitted +$invoice->paidAt; // Payment date, or null when unpaid +$invoice->dueAt; // Due date, or null when omitted +$invoice->netAmount; // Money object excluding VAT, or null +$invoice->vatAmount; // VAT Money object, or null +$invoice->grossAmount; // Money object including VAT, or null +$invoice->lines; // Array of invoice lines, or null +$invoice->_links->pdf->href; // URL to download PDF invoice +``` + +## Invoice Line Details + +```php +$line->period; // "2024-01" +$line->description; // "iDEAL transaction fees" +$line->count; // 1337 +$line->vatPercentage; // "21.00" +$line->amount; // Object containing line amount +``` + +## Additional Notes + +- OAuth access token is required to access invoices +- Invoices are generated monthly for your Mollie account +- Each invoice line represents a different type of fee: + - Transaction fees per payment method + - Refund fees + - Chargeback fees + - Other service fees +- The PDF invoice is available through the `_links.pdf.href` URL diff --git a/vendor/mollie/mollie-api-php/docs/recipes/mandates/manage-mandates.md b/vendor/mollie/mollie-api-php/docs/recipes/mandates/manage-mandates.md new file mode 100644 index 0000000..3f3c1ce --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/mandates/manage-mandates.md @@ -0,0 +1,115 @@ +# Manage Customer Mandates + +How to create, list, and revoke mandates for recurring payments using the Mollie API. + +## Create a Mandate + +```php +use Mollie\Api\Http\Requests\CreateMandateRequest; +use Mollie\Api\Types\MandateMethod; + +try { + // Create a SEPA Direct Debit mandate + $mandate = $mollie->send( + new CreateMandateRequest( + customerId: 'cst_8wmqcHMN4U', + method: MandateMethod::Directdebit->value, + consumerName: 'B. A. Example', + consumerAccount: 'NL34ABNA0243341423' + ) + ); + + echo "New mandate created: {$mandate->id}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## List Mandates + +```php +use Mollie\Api\Http\Requests\GetPaginatedMandateRequest; +use Mollie\Api\Types\MandateQuery; +use Mollie\Api\Types\MandateStatus; + +try { + // List all mandates for a customer + $response = $mollie->send( + new GetPaginatedMandateRequest( + customerId: 'cst_8wmqcHMN4U', + scopes: [MandateQuery::SCOPE_CUSTOMER_NOT_PRESENT] + ) + ); + + foreach ($response as $mandate) { + $status = $mandate->status instanceof MandateStatus + ? $mandate->status->value + : ($mandate->status ?? 'not available'); + + echo "Mandate {$mandate->id}:\n"; + echo "- Method: " . ($mandate->method ?? 'not available') . "\n"; + echo "- Status: {$status}\n"; + + if (isset($mandate->details->consumerName)) { + echo "- Consumer: {$mandate->details->consumerName}\n"; + } + + if (isset($mandate->details->consumerAccount)) { + echo "- Account: {$mandate->details->consumerAccount}\n"; + } + + echo "\n"; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Revoke a Mandate + +```php +use Mollie\Api\Http\Requests\RevokeMandateRequest; + +try { + // Revoke a specific mandate + $mollie->send( + new RevokeMandateRequest( + customerId: 'cst_8wmqcHMN4U', + mandateId: 'mdt_h3gAaD5zP' + ) + ); + + echo "Mandate revoked\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$mandate->id; // "mdt_h3gAaD5zP" +$mandate->status; // MandateStatus case, unknown raw string, or null +$mandate->method; // Payment method string, or null +$mandate->details; // Mandate details object, or null +$mandate->customerId; // "cst_8wmqcHMN4U" +$mandate->createdAt; // "2024-02-24T12:13:14+00:00" +$mandate->signatureDate; // "2024-02-24" (optional) +$mandate->mandateReference; // "YOUR-COMPANY-MD13804" (optional) +``` + +## Additional Notes + +- Mandates are used for recurring payments +- A customer can have multiple mandates +- Only valid mandates can be used for payments +- Available mandate methods: + - `directdebit`: SEPA Direct Debit + - `creditcard`: Credit card +- Mandate status: + - `valid`: The mandate is valid and can be used for payments + - `pending`: The mandate is pending and cannot be used yet + - `invalid`: The mandate is invalid and cannot be used +- Mandates can be filtered by scope when listing: + - `MandateQuery::SCOPE_CUSTOMER_PRESENT` + - `MandateQuery::SCOPE_CUSTOMER_NOT_PRESENT` diff --git a/vendor/mollie/mollie-api-php/docs/recipes/money/custom-factory.md b/vendor/mollie/mollie-api-php/docs/recipes/money/custom-factory.md new file mode 100644 index 0000000..d802e22 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/money/custom-factory.md @@ -0,0 +1,42 @@ +# Custom Money factory via Macroable + +How to add your own factory methods to `Money` without subclassing. + +## Why + +`Money` is a `readonly class` in v4, which means you can no longer subclass it with a non-readonly child. Instead, register a **macro** — a closure invoked as a static (or instance) method on `Money`. + +This is how loyalty points, internal credits, or domain-specific shortcuts can live next to the SDK without inheritance. + +## The Code + +```php +use Mollie\Api\Http\Data\Money; + +// Register once during application bootstrap +Money::macro('loyaltyPoints', static function (int $points): Money { + // 100 points = €1.00 + return Money::of('EUR')->minorUnits($points); +}); + +Money::macro('xau', static function (string $value): Money { + return new Money(currency: 'XAU', value: $value); +}); + +// Use anywhere +$amount = Money::loyaltyPoints(2500); // €25.00 +$gold = Money::xau('1.00000'); // 1 troy ounce +``` + +## Constraints + +- `Money` is `readonly` — macros must **return new instances**, never mutate state. +- Calling an undefined static or instance method on `Money` throws `BadMethodCallException` with a clear message (instead of PHP's default fatal error). Catch `Exception`, not `Error`. +- Use `Money::hasMacro('loyaltyPoints')` to check before registering twice in tests. +- `Money::flushMacros()` clears every registered macro for the class — useful in `tearDown`. + +## Why not subclass? + +In v3 you could `class TaxedMoney extends Money { public string $tax; }`. In v4 the parent is `readonly class`, so the child must also be declared `readonly`, and constructor promotion means the child has to repeat all parent fields. Macros are simpler for the common case of "just add another factory." + +If you need genuinely new state (extra properties), declare your own `readonly final class` rather than extending `Money`. diff --git a/vendor/mollie/mollie-api-php/docs/recipes/onboarding/create-client-link.md b/vendor/mollie/mollie-api-php/docs/recipes/onboarding/create-client-link.md new file mode 100644 index 0000000..d7057b7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/onboarding/create-client-link.md @@ -0,0 +1,120 @@ +# Create a Client Link + +How to create a client link to onboard new merchants to Mollie through your app. + +## The Code + +```php +use Mollie\Api\Http\Data\Owner; +use Mollie\Api\Resources\ClientLink; +use Mollie\Api\Http\Data\OwnerAddress; +use Mollie\Api\Http\Requests\CreateClientLinkRequest; +use Mollie\Api\Types\ApprovalPrompt; + +try { + // Create a client link for a new merchant + /** @var ClientLink $clientLink */ + $clientLink = $mollie->send( + new CreateClientLinkRequest( + owner: new Owner( + email: 'merchant@example.com', + givenName: 'John', + familyName: 'Doe', + locale: 'en_US' + ), + name: 'Example Store', + address: new OwnerAddress( + country: 'NL', + streetAndNumber: 'Keizersgracht 313', + postalCode: '1016 EE', + city: 'Amsterdam' + ), + registrationNumber: '30204462', + vatNumber: 'NL123456789B01' + ) + ); + + // Generate the redirect URL for the merchant + $redirectUrl = $clientLink->getRedirectUrl( + client_id: 'app_j9Pakf56Ajta6Y65AkdTtAv', + state: bin2hex(random_bytes(8)), // Random state to prevent CSRF + scopes: [ + 'onboarding.read', + 'onboarding.write' + ], + approval_prompt: ApprovalPrompt::Force->value // Always show login screen + ); + + // Redirect the merchant to complete their onboarding + header('Location: ' . $redirectUrl, true, 303); +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$clientLink->id; // "csr_wJPGBj7sFr" +$clientLink->resource; // "client-link" +$clientLink->_links; // \stdClass with the clientLink href +``` + +`ClientLink` declares only `id` and `_links` (plus `resource` from the base +resource). There is no `status`, `createdAt` or `expiresAt` on this resource; +build the onboarding URL with `getRedirectUrl()` and track onboarding state +through the Onboarding API. + +## Additional Notes + +- Client links are used to onboard new merchants to Mollie through your app +- The link expires after 24 hours, though the resource does not expose an expiry field +- `getRedirectUrl()` takes `client_id`, `state`, `scopes` and `approval_prompt`; `approval_prompt` accepts only `auto` or `force` and throws otherwise +- Required merchant information: + - Owner details (name, email, locale) + - Organization details (name, address) + - Registration number (Chamber of Commerce number) + - VAT number (if applicable) +- The `state` parameter should be: + - Random and unique + - Stored in your session + - Verified when the merchant returns to prevent CSRF attacks +- Available scopes (see [Permissions](https://docs.mollie.com/docs/permissions)): + - `balances.read`: View the merchant's balances information + - `balance-transfers.read`: View the merchant's balance transfers + - `balance-transfers.write`: Create balance transfers for the merchant + - `customers.read`: View the merchant's customers + - `customers.write`: Manage the merchant's customers + - `external-accounts.read`: View the merchant's external accounts + - `external-accounts.write`: Manage the merchant's external accounts + - `invoices.read`: View the merchant's invoices + - `mandates.read`: View the merchant's mandates + - `mandates.write`: Manage the merchant's mandates + - `onboarding.read`: View the merchant's onboarding status + - `onboarding.write`: Submit onboarding data for the merchant + - `orders.read`: View the merchant's orders + - `orders.write`: Manage the merchant's orders + - `organizations.read`: View the merchant's organizational details + - `organizations.write`: Change the merchant's organizational details + - `payment-links.read`: View the merchant's payment links + - `payment-links.write`: Create payment links for the merchant + - `payments.read`: View the merchant's payments, chargebacks and payment methods + - `payments.write`: Create payments for the merchant (added to the merchant's balance) + - `persons.read`: View the merchant's persons and stakeholders + - `persons.write`: Manage the merchant's persons and stakeholders + - `profiles.read`: View the merchant's website profiles + - `profiles.write`: Manage the merchant's website profiles + - `refunds.read`: View the merchant's refunds + - `refunds.write`: Create or cancel refunds + - `settlements.read`: View the merchant's settlements + - `shipments.read`: View the merchant's order shipments + - `shipments.write`: Manage the merchant's order shipments + - `subscriptions.read`: View the merchant's subscriptions + - `subscriptions.write`: Manage the merchant's subscriptions + - `terminals.read`: View the merchant's point-of-sale terminals + - `terminals.write`: Manage the merchant's point-of-sale terminals +- The merchant will need to: + 1. Create a Mollie account or log in + 2. Connect their account to your app + 3. Complete the onboarding process +- You can track the onboarding status through the OAuth APIs diff --git a/vendor/mollie/mollie-api-php/docs/recipes/payment-links/manage-payment-links.md b/vendor/mollie/mollie-api-php/docs/recipes/payment-links/manage-payment-links.md new file mode 100644 index 0000000..877d7c6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/payment-links/manage-payment-links.md @@ -0,0 +1,86 @@ +# Manage Payment Links + +How to create and list payment links using the Mollie API. + +## Create a Payment Link + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\CreatePaymentLinkRequest; + +try { + // Create a payment link. The request takes typed arguments, not an array. + $paymentLink = $mollie->send( + new CreatePaymentLinkRequest( + description: 'Bicycle tires', + amount: Money::euro('10.00'), + webhookUrl: 'https://example.com/webhook', // optional + expiresAt: '2026-01-01T12:00:00' // optional + ) + ); + + // getCheckoutUrl() reads $_links->paymentLink and returns null when that + // link is absent, so check before redirecting. + $checkoutUrl = $paymentLink->getCheckoutUrl(); + + if ($checkoutUrl === null) { + throw new \RuntimeException("Payment link {$paymentLink->id} has no checkout URL."); + } + + header('Location: ' . $checkoutUrl, true, 303); +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## List Payment Links + +```php +use Mollie\Api\Http\Requests\GetPaginatedPaymentLinksRequest; + +try { + // List all payment links + $response = $mollie->send(new GetPaginatedPaymentLinksRequest); + + foreach ($response as $paymentLink) { + // PaymentLink has no status field. Derive the state from paidAt, + // expiresAt and archived instead. + $amount = $paymentLink->amount; + + echo "Payment Link {$paymentLink->id}:\n"; + echo "- Description: {$paymentLink->description}\n"; + echo '- Amount: '.($amount === null ? 'open amount' : "{$amount->currency} {$amount->value}")."\n"; + echo '- Paid: '.($paymentLink->isPaid() ? 'yes' : 'no')."\n"; + echo '- Archived: '.($paymentLink->archived ? 'yes' : 'no')."\n"; + echo '- Created: '.($paymentLink->createdAt ?? 'unknown')."\n"; + echo '- URL: '.($paymentLink->getCheckoutUrl() ?? 'not available')."\n\n"; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$paymentLink->id; // "pl_4Y0eZitmBnQ6IDoMqZQKh" +$paymentLink->description; // "Bicycle tires" +$paymentLink->amount; // Mollie\Api\Http\Data\Money (null for an open amount) +$paymentLink->archived; // false +$paymentLink->createdAt; // "2024-02-24T12:13:14.0Z" (or null) +$paymentLink->paidAt; // "2024-02-24T12:15:16.0Z" (or null) +$paymentLink->expiresAt; // "2026-01-01T00:00:00.0Z" (or null) +$paymentLink->webhookUrl; // "https://example.com/webhook" (or null) +$paymentLink->isPaid(); // true once paidAt is set +``` + +There is no `$paymentLink->status`. Use `isPaid()`, `expiresAt` and `archived` +to determine the state of a payment link. + +## Additional Notes + +- Payment links are shareable URLs to accept payments +- Omit `amount` to create an open-amount link; `amount` is then `null` on the response +- They never expire unless you specify an `expiresAt` date +- The webhook will be called when the payment status changes +- Payment links can be shared via email, chat, or QR code diff --git a/vendor/mollie/mollie-api-php/docs/recipes/payments/create-capturable-payment.md b/vendor/mollie/mollie-api-php/docs/recipes/payments/create-capturable-payment.md new file mode 100644 index 0000000..0c84f99 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/payments/create-capturable-payment.md @@ -0,0 +1,69 @@ +# Create a Capturable Payment + +How to create a payment that can be captured manually with the Mollie API. + +## The Code + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\CreatePaymentRequest; +use Mollie\Api\Types\PaymentMethod; +use Mollie\Api\Types\PaymentStatus; + +try { + // Generate a unique order ID + $orderId = time(); + + // Create the payment + $payment = $mollie->send( + new CreatePaymentRequest( + description: "Order #{$orderId}", + amount: Money::euro('10.00'), // Using convenience method + redirectUrl: "https://example.com/return.php?order_id={$orderId}", + cancelUrl: "https://example.com/cancel.php", + webhookUrl: "https://example.com/webhook.php", + metadata: ['order_id' => $orderId], + method: PaymentMethod::Creditcard, + captureMode: 'manual' + ) + ); + + // PaymentStatus case for known values, raw string for anything newer. + // Store the string: an enum case cannot be written to the database and + // interpolating one throws. + $status = $payment->status instanceof PaymentStatus + ? $payment->status->value + : $payment->status; + + // Store the order in the database + database_write($orderId, $status); + + // Redirect to checkout + header('Location: ' . $payment->getCheckoutUrl(), true, 303); +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo 'API call failed: ' . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$payment->id; // "tr_7UhSN1zuXS" +$payment->status; // PaymentStatus::Open, or the raw string for an unknown value +$payment->amount->currency; // "EUR" +$payment->amount->value; // "10.00" +$payment->description; // "Order #1234" +$payment->metadata->order_id; // "1234" +$payment->method; // PaymentMethod::Creditcard, a raw string, or null +$payment->captureMode; // "manual" (or null) +$payment->getCheckoutUrl(); // "https://www.mollie.com/checkout/select-method/7UhSN1zuXS" +``` + +## Additional Notes + +- `status` is `PaymentStatus|string` and `method` is `PaymentMethod|string|null`; the string side keeps values a newer API returns from breaking your integration +- Manual capturing is currently only supported for credit card payments, Billie, Riverty, and Klarna +- For Klarna payments, submitting more data like order lines and addresses is required +- After the payment is authorized, you'll need to capture it manually to actually charge the customer +- The payment will remain in the 'authorized' status until you either capture or cancel it +- Make sure to implement the webhook handler to process payment status updates diff --git a/vendor/mollie/mollie-api-php/docs/recipes/payments/create-capture.md b/vendor/mollie/mollie-api-php/docs/recipes/payments/create-capture.md new file mode 100644 index 0000000..aeda7ff --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/payments/create-capture.md @@ -0,0 +1,54 @@ +# Create a Payment Capture + +How to capture a payment that was created with manual capture using the Mollie API. + +## The Code + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Resources\Capture; +use Mollie\Api\Http\Requests\CreatePaymentCaptureRequest; + +try { + // Create a capture for the payment + /** @var Capture */ + $capture = $mollie->send( + new CreatePaymentCaptureRequest( + paymentId: 'tr_WDqYK6vllg', + description: 'Order #12345', + amount: Money::euro('5.00') + ) + ); + + echo "New capture created: {$capture->id}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$capture->id; // "cpt_4qqhO89gsT" +$capture->paymentId; // "tr_WDqYK6vllg" +$capture->amount; // Money, or null when the API omits it +$capture->amount?->currency; // "EUR" +$capture->amount?->value; // "5.00" +$capture->description; // "Order #12345" (or null) +$capture->status; // "pending", "succeeded", "failed" (or null) +$capture->createdAt; // "2024-02-24T12:13:14+00:00" (or null) +``` + +`Capture::$amount` is nullable per the API contract, so guard it (or use `?->`) +before reading `currency` or `value`. `status` is a plain nullable string here, +not a backed enum. + +## Additional Notes + +- The payment must have been created with `captureMode: 'manual'` +- The capture amount can be equal to or lower than the payment amount +- You can create multiple partial captures for a single payment +- The capture will be processed asynchronously +- The payment status will change to `paid` once the capture is successful +- Make sure to handle the webhook to process capture status updates +- Captures are only available for certain payment methods (e.g., credit cards) diff --git a/vendor/mollie/mollie-api-php/docs/recipes/payments/create-ideal-payment.md b/vendor/mollie/mollie-api-php/docs/recipes/payments/create-ideal-payment.md new file mode 100644 index 0000000..12ef2af --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/payments/create-ideal-payment.md @@ -0,0 +1,65 @@ +# Create an iDEAL Payment + +How to prepare a new iDEAL payment with the Mollie API. + +## The Code + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\CreatePaymentRequest; +use Mollie\Api\Types\PaymentMethod; +use Mollie\Api\Types\PaymentStatus; + +try { + // Generate a unique order ID + $orderId = time(); + + // Create the payment + $payment = $mollie->send( + new CreatePaymentRequest( + description: "Order #{$orderId}", + amount: Money::euro('27.50'), // Using convenience method + redirectUrl: "https://example.com/return.php?order_id={$orderId}", + cancelUrl: "https://example.com/cancel.php", + webhookUrl: "https://example.com/webhook.php", + metadata: ['order_id' => $orderId], + method: PaymentMethod::Ideal + ) + ); + + // PaymentStatus case for known values, raw string for anything newer. + // Store the string: an enum case cannot be written to the database and + // interpolating one throws. + $status = $payment->status instanceof PaymentStatus + ? $payment->status->value + : $payment->status; + + // Store the order in the database + database_write($orderId, $status); + + // Redirect to checkout + header('Location: ' . $payment->getCheckoutUrl(), true, 303); +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo 'API call failed: ' . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$payment->id; // "tr_7UhSN1zuXS" +$payment->status; // PaymentStatus::Open, or the raw string for an unknown value +$payment->amount->currency; // "EUR" +$payment->amount->value; // "27.50" +$payment->description; // "Order #1234" +$payment->metadata->order_id; // "1234" +$payment->method; // PaymentMethod::Ideal, a raw string, or null +$payment->getCheckoutUrl(); // "https://www.mollie.com/checkout/select-method/7UhSN1zuXS" +``` + +## Additional Notes + +- `status` is `PaymentStatus|string` and `method` is `PaymentMethod|string|null`; normalise with an `instanceof` check before printing or persisting +- The iDEAL payment method is only available for payments in EUR +- The bank selection is now handled by iDEAL +- The webhook will be called when the payment status changes, so make sure to implement the webhook handler to process status updates diff --git a/vendor/mollie/mollie-api-php/docs/recipes/payments/create-payment-oauth.md b/vendor/mollie/mollie-api-php/docs/recipes/payments/create-payment-oauth.md new file mode 100644 index 0000000..d96b6d5 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/payments/create-payment-oauth.md @@ -0,0 +1,74 @@ +# Create a Payment with OAuth + +How to create a payment using OAuth authentication with the Mollie API. + +## The Code + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\CreatePaymentRequest; +use Mollie\Api\Http\Requests\GetPaginatedProfilesRequest; + +try { + // Initialize the Mollie client with your OAuth access token + $mollie = new \Mollie\Api\MollieApiClient(); + $mollie->setAccessToken('access_xxx'); + + // Get the first available profile since OAuth tokens don't belong to a specific profile + $profiles = $mollie->send(new GetPaginatedProfilesRequest); + + $profile = $profiles[0]; // Select the correct profile for this merchant + + // Generate a unique order ID + $orderId = time(); + + // Create the payment + $payment = $mollie->send( + new CreatePaymentRequest( + profileId: $profile->id, // Required when using OAuth + description: "Order #{$orderId}", + amount: new Money(currency: 'EUR', value: '10.00'), + redirectUrl: 'https://example.com/return.php?order_id=' . $orderId, + cancelUrl: 'https://example.com/cancel.php', + webhookUrl: 'https://example.com/webhook.php', + metadata: ['order_id' => $orderId] + ) + ); + + // Redirect the customer to complete the payment + header('Location: ' . $payment->getCheckoutUrl(), true, 303); +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$payment->id; // "tr_7UhSN1zuXS" +$payment->status; // PaymentStatus::Open, or the raw string for an unknown value +$payment->amount->currency; // "EUR" +$payment->amount->value; // "10.00" +$payment->description; // "Order #1234" +$payment->metadata; // Object containing order_id +$payment->profileId; // "pfl_v9hTwCvYqw" +$payment->createdAt; // "2024-02-24T12:13:14+00:00" (or null) +``` + +`status` is `PaymentStatus|string`, so normalise it before printing or storing it: + +```php +use Mollie\Api\Types\PaymentStatus; + +$status = $payment->status instanceof PaymentStatus + ? $payment->status->value + : $payment->status; +``` + +## Additional Notes + +- OAuth access tokens don't belong to a specific profile, so you need to specify the `profileId` parameter +- Get the profile ID by listing the available profiles with `GetPaginatedProfilesRequest` +- OAuth tokens are required for certain features like routing payments +- Make sure to handle the webhook to process payment status updates +- Store your OAuth tokens securely and refresh them when needed diff --git a/vendor/mollie/mollie-api-php/docs/recipes/payments/create-payment.md b/vendor/mollie/mollie-api-php/docs/recipes/payments/create-payment.md new file mode 100644 index 0000000..c248477 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/payments/create-payment.md @@ -0,0 +1,63 @@ +# Create a Payment + +How to prepare a new payment with the Mollie API. + +## The Code + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\CreatePaymentRequest; + +try { + // Return type is Payment, inferred via send()'s @template — no @var needed + $payment = $mollie->send( + new CreatePaymentRequest( + description: "Order #{$orderId}", + amount: Money::euro('10.00'), + // or: amount: Money::of('EUR')->minorUnits(1000), + redirectUrl: 'https://example.org/return', + cancelUrl: 'https://example.org/cancel', + webhookUrl: 'https://example.org/webhook', + metadata: ['order_id' => $orderId] + ) + ); + + // Get the checkout URL to redirect the customer to + $checkoutUrl = $payment->getCheckoutUrl(); +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$payment->id; // "tr_7UhSN1zuXS" +$payment->status; // PaymentStatus::Open (enum) | "open" string fallback for unknown values +$payment->amount; // Mollie\Api\Http\Data\Money (readonly value object) +$payment->amount->currency; // "EUR" +$payment->amount->value; // "10.00" +$payment->description; // "Order #1234" +$payment->metadata->order_id; // "1234" +$payment->getCheckoutUrl(); // "https://www.mollie.com/checkout/select-method/7UhSN1zuXS" +``` + +Compare statuses against the enum cases (recommended) or string values: + +```php +use Mollie\Api\Types\PaymentStatus; + +if ($payment->status === PaymentStatus::Paid) { + // ... +} +``` + +## Additional Notes + +- Always use strings for the amount value to ensure correct decimal precision +- The payment `status` will be `open` when initially created +- Store the payment `id` in your database for reference +- Use `webhookUrl` to get notified of payment status changes +- The `redirectUrl` is where your customer will be redirected after the payment +- You can store any custom data in the `metadata` object +- The checkout URL from `getCheckoutUrl()` is where you should redirect your customer to complete the payment diff --git a/vendor/mollie/mollie-api-php/docs/recipes/payments/create-routed-payment.md b/vendor/mollie/mollie-api-php/docs/recipes/payments/create-routed-payment.md new file mode 100644 index 0000000..983ae0b --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/payments/create-routed-payment.md @@ -0,0 +1,101 @@ +# Create a Routed Payment + +How to create a payment with routing rules using the Mollie API. Routed payments allow you to split payments between connected accounts. + +## The Code + +```php +use Mollie\Api\Http\Data\DataCollection; +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Data\PaymentRoute; +use Mollie\Api\Http\Requests\CreatePaymentRequest; +use Mollie\Api\Types\PaymentStatus; + +try { + // Initialize the Mollie client with your OAuth access token + $mollie = new \Mollie\Api\MollieApiClient(); + $mollie->setAccessToken('access_xxx'); + + // Generate a unique order ID + $orderId = time(); + + // Create the payment with routing rules + $payment = $mollie->send( + new CreatePaymentRequest( + profileId: 'pfl_v9hTwCvYqw', + description: "Order #{$orderId}", + amount: new Money(currency: 'EUR', value: '10.00'), + redirectUrl: 'https://example.com/return.php?order_id=' . $orderId, + cancelUrl: 'https://example.com/cancel.php', + webhookUrl: 'https://example.com/webhook.php', + routing: DataCollection::collect([ + new PaymentRoute( + amount: new Money(currency: 'EUR', value: '7.50'), + organizationId: 'org_23456' + ), + ]) + ) + ); + + // Redirect the customer to complete the payment + header('Location: ' . $payment->getCheckoutUrl(), true, 303); +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +### With a Future Release Date + +You can also specify when the routed funds should become available on the connected account's balance. `delayUntil` takes a `Date` or any `DateTimeInterface`, not a raw string: + +```php +use Mollie\Api\Http\Data\Date; + +$payment = $mollie->send( + new CreatePaymentRequest( + profileId: 'pfl_v9hTwCvYqw', + description: "Order #{$orderId}", + amount: new Money(currency: 'EUR', value: '10.00'), + redirectUrl: 'https://example.com/return.php?order_id=' . $orderId, + cancelUrl: 'https://example.com/cancel.php', + webhookUrl: 'https://example.com/webhook.php', + routing: DataCollection::collect([ + new PaymentRoute( + amount: new Money(currency: 'EUR', value: '7.50'), + organizationId: 'org_23456', + delayUntil: new Date('2025-01-01') + ), + ]) + ) +); +``` + +## The Response + +```php +$payment->id; // "tr_7UhSN1zuXS" +$payment->status; // PaymentStatus::Open, or the raw string for an unknown value +$payment->amount->currency; // "EUR" +$payment->amount->value; // "10.00" +$payment->description; // "Order #1234" +$payment->routing; // array of routing rules (or null) +$payment->createdAt; // "2024-02-24T12:13:14+00:00" +``` + +`status` is `PaymentStatus|string`, so normalise it before printing or storing it: + +```php +$status = $payment->status instanceof PaymentStatus + ? $payment->status->value + : $payment->status; +``` + +## Additional Notes + +- Pass routes as a `DataCollection` of `Mollie\Api\Http\Data\PaymentRoute` objects; each route names the destination organization through `organizationId` +- Split payments (routing) must be enabled on your account first. Contact Mollie support to enable this feature +- You need an OAuth access token to create routed payments +- The sum of routed amounts cannot exceed the payment amount +- `delayUntil` must be in the future; pass a `Date` (which formats as 'YYYY-MM-DD') or a `DateTimeInterface` +- Routing rules are only available for certain payment methods +- Make sure to handle the webhook to process payment status updates diff --git a/vendor/mollie/mollie-api-php/docs/recipes/payments/handle-webhook.md b/vendor/mollie/mollie-api-php/docs/recipes/payments/handle-webhook.md new file mode 100644 index 0000000..db98ea2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/payments/handle-webhook.md @@ -0,0 +1,97 @@ +# Handle Payment Webhooks + +How to handle payment status updates via webhooks from the Mollie API. + +## The Code + +```php +use Mollie\Api\Http\Requests\GetPaymentRequest; + +try { + // Retrieve the payment's current state + $payment = $mollie->send( + new GetPaymentRequest( + id: $_POST['id'] + ) + ); + $orderId = $payment->metadata->order_id; + + + + // First handle status changes + if ($payment->status !== $previousPaymentStatus) { + // Update your order administration with the new status + updateOrder($orderId, $payment->status); + + // Handle the status change + if ($payment->isPaid()) { + // The payment is paid + // Start the process of delivering the product to the customer + startDeliveryProcess($orderId); + } elseif ($payment->isFailed()) { + // The payment has failed + // Notify the customer + notifyCustomerOfFailure($orderId); + } elseif ($payment->isExpired()) { + // The payment is expired + // Notify the customer + notifyCustomerOfExpiration($orderId); + } elseif ($payment->isCanceled()) { + // The payment is canceled + // Notify the customer + notifyCustomerOfCancellation($orderId); + } + } + + // Then handle refunds and chargebacks (these don't change the payment status) + if ($payment->hasRefunds()) { + // The payment has possibly been (partially) refunded + // Note: the payment status remains "paid" + processPotentialRefund($orderId); + } + + if ($payment->hasChargebacks()) { + // The payment has possibly been (partially) charged back + // Note: the payment status remains "paid" + processPotentialChargeback($orderId); + } + + // Always return 200 OK to Mollie + http_response_code(200); +} catch (\Mollie\Api\Exceptions\ApiException $e) { + // Handle the error + logError($e->getMessage()); + http_response_code(500); +} +``` + +## The Response + +```php +$payment->id; // "tr_7UhSN1zuXS" +$payment->status; // PaymentStatus::Paid +$payment->amount->currency; // "EUR" +$payment->amount->value; // "10.00" +$payment->description; // "Order #1234" +$payment->metadata; // Object containing order_id +$payment->createdAt; // "2024-02-24T12:13:14+00:00" +$payment->paidAt; // "2024-02-24T12:15:00+00:00" +``` + +## Additional Notes + +- Handle webhooks in the correct order: + 1. First check for payment status changes + 2. Then handle refunds and chargebacks (these don't change the payment status). +- When completing a payment, the webhook may be called _after_ the customer has already been redirected to the payment's `redirectUrl`. +- A payment can have multiple partial refunds and multiple partial chargebacks. +- Always respond with a 200 OK status code, even when the payment status is not successful +- Process the webhook quickly (within 2 seconds) to avoid timeouts +- Use the payment status helper methods (`$payment->isPaid()`, `$payment->isFailed()`, etc.) for reliable status checks +- Store the payment status in your database to track the order status +- The webhook may be called multiple times for the same payment as Mollie will retry the webhook call. +- Webhooks are sent asynchronously, so there might be a delay +- Test your webhook implementation thoroughly with different payment scenarios, including: + - Status changes (paid, failed, expired, etc.) + - Refunds (full and partial) + - Chargebacks diff --git a/vendor/mollie/mollie-api-php/docs/recipes/payments/list-methods.md b/vendor/mollie/mollie-api-php/docs/recipes/payments/list-methods.md new file mode 100644 index 0000000..ca78ac6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/payments/list-methods.md @@ -0,0 +1,67 @@ +# List Payment Methods + +How to retrieve all available payment methods with the Mollie API. + +## The Code + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\GetAllMethodsRequest; + +try { + $methods = $mollie->send( + new GetAllMethodsRequest( + includeIssuers: false, + includePricing: false, + locale: 'nl_NL', + amount: new Money(currency: 'EUR', value: '100.00') + ) + ); + + foreach ($methods as $method) { + // Method::$image is ?stdClass — guard it before reading the sizes. + $image = $method->image; + + echo '
'; + + if ($image !== null) { + echo ' '; + } + + echo htmlspecialchars($method->description) . ' (' . htmlspecialchars($method->id) . ')'; + echo '
'; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$method->id; // "ideal" +$method->description; // "iDEAL" +$method->image; // stdClass with size1x/size2x/svg, or null +$method->minimumAmount; // Mollie\Api\Http\Data\Money, or null +$method->maximumAmount; // Mollie\Api\Http\Data\Money, or null +``` + +`image`, `minimumAmount` and `maximumAmount` are all nullable, so read them +through a local variable rather than chaining off the property: + +```php +$minimum = $method->minimumAmount; +$maximum = $method->maximumAmount; + +echo 'Minimum: '.($minimum === null ? 'no minimum' : "{$minimum->currency} {$minimum->value}")."\n"; +echo 'Maximum: '.($maximum === null ? 'no maximum' : "{$maximum->currency} {$maximum->value}")."\n"; +``` + +## Additional Notes + +- Use `sequenceType` to filter methods available for recurring payments +- The `locale` parameter affects translations of method names and descriptions +- The `amount` parameter filters methods available for that specific amount +- The `billingCountry` parameter filters methods available in that country +- Most methods include image URLs for regular (1x) and retina (2x) displays, but `image` can be `null` +- Methods may have minimum and maximum amount constraints; both are `null` when unconstrained diff --git a/vendor/mollie/mollie-api-php/docs/recipes/payments/list-payments.md b/vendor/mollie/mollie-api-php/docs/recipes/payments/list-payments.md new file mode 100644 index 0000000..f7b02d3 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/payments/list-payments.md @@ -0,0 +1,65 @@ +# List Payments + +How to retrieve a list of payments from the Mollie API. + +## The Code + +```php +use Mollie\Api\Http\Requests\GetPaginatedPaymentsRequest; +use Mollie\Api\Types\PaymentStatus; + +try { + // Use the lazy iterator to walk every page transparently — no manual next() loop + foreach ($mollie->payments->iterator() as $payment) { + // ->value alone breaks the moment Mollie returns a status this + // release has no case for, because the property is then a raw string. + $status = $payment->status instanceof PaymentStatus + ? $payment->status->value + : $payment->status; + + echo "Payment {$payment->id}:\n"; + echo "- Description: {$payment->description}\n"; + echo "- Amount: {$payment->amount->currency} {$payment->amount->value}\n"; + echo "- Status: {$status}\n"; + + if ($payment->hasRefunds()) { + echo "- Has been (partially) refunded\n"; + } + + if ($payment->hasChargebacks()) { + echo "- Has been charged back\n"; + } + + if ($payment->canBeRefunded() && $payment->amountRemaining->currency === 'EUR' && floatval($payment->amountRemaining->value) >= 2.00) { + echo "- Can be refunded\n"; + } + + echo "\n"; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$payment->id; // "tr_7UhSN1zuXS" +$payment->status; // PaymentStatus::Paid, or the raw string for an unknown value +$payment->amount->currency; // "EUR" +$payment->amount->value; // "10.00" +$payment->description; // "Order #1234" +$payment->metadata; // Object containing any custom metadata +$payment->createdAt; // "2024-02-24T12:13:14+00:00" (or null) +$payment->paidAt; // "2024-02-24T12:15:00+00:00" (or null) +$payment->method; // PaymentMethod::Ideal, a raw string, or null +``` + +## Additional Notes + +- Payments are returned in descending order by creation date (newest first) +- `iterator()` lazily fetches each page on demand — only one page is held in memory at a time +- For manual page control, send a `GetPaginatedPaymentsRequest` and call `->next()` on the returned cursor collection +- `status` is `PaymentStatus|string`. Check it with helpers like `isPaid()` and `isCanceled()`, or with `Utility::equals($payment->status, PaymentStatus::Paid)`; reading `->value` unconditionally fails on a forward-compatible string +- Use `hasRefunds()` and `hasChargebacks()` to check if a payment has been refunded or charged back +- Use `canBeRefunded()` to check if a payment can still be refunded diff --git a/vendor/mollie/mollie-api-php/docs/recipes/payments/refund-payment.md b/vendor/mollie/mollie-api-php/docs/recipes/payments/refund-payment.md new file mode 100644 index 0000000..aa3a4bd --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/payments/refund-payment.md @@ -0,0 +1,77 @@ +# Refund a Payment + +How to refund a payment using the Mollie API. + +## The Code + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\GetPaymentRequest; +use Mollie\Api\Http\Requests\CreatePaymentRefundRequest; +use Mollie\Api\Types\RefundStatus; + +try { + // Retrieve the payment you want to refund + $payment = $mollie->send( + new GetPaymentRequest( + id: 'tr_WDqYK6vllg' + ) + ); + + // Check if the payment can be refunded + if ($payment->canBeRefunded() && $payment->amountRemaining->currency === 'EUR' && floatval($payment->amountRemaining->value) >= 2.00) { + // Refund € 2,00 of the payment + // Note: Using named parameters to avoid PHP 8+ deprecation warnings + // Alternative: Use factory method CreatePaymentRefundRequest::for($paymentId, Money::euro('2.00'), 'Description') + $refund = $mollie->send( + new CreatePaymentRefundRequest( + paymentId: $payment->id, + amount: Money::euro('2.00'), + description: 'Order cancelled by customer' + ) + ); + + echo "{$refund->amount->currency} {$refund->amount->value} of payment {$payment->id} refunded.\n"; + } else { + echo "Payment {$payment->id} cannot be refunded.\n"; + } + + // List all refunds for this payment + foreach ($payment->refunds() as $refund) { + // status is RefundStatus|string|null: an enum case when this release + // knows the value, the raw string when Mollie ships a new one. + // Interpolating the property directly throws on an enum case. + $status = $refund->status instanceof RefundStatus + ? $refund->status->value + : $refund->status ?? 'unknown'; + + echo "Refund {$refund->id}:\n"; + echo '- Description: '.($refund->description ?? 'no description')."\n"; + echo "- Amount: {$refund->amount->currency} {$refund->amount->value}\n"; + echo "- Status: {$status}\n\n"; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$refund->id; // "re_4qqhO89gsT" +$refund->amount->currency; // "EUR" +$refund->amount->value; // "2.00" +$refund->status; // RefundStatus case, raw string, or null +$refund->description; // "Order cancelled by customer" (or null) +$refund->createdAt; // "2024-02-24T12:13:14+00:00" +$refund->paymentId; // "tr_WDqYK6vllg" +``` + +## Additional Notes + +- Not all payments can be refunded. Use `canBeRefunded()` to check if a payment can be refunded +- You can do partial refunds by specifying a lower amount than the payment amount +- Refunds are not instant. Check the refund status to see if it was successful +- The payment must be in the `paid` status to be refundable +- Some payment methods may have additional requirements or limitations for refunds +- `RefundStatus` covers `Queued`, `Pending`, `Processing`, `Refunded`, `Failed` and `Canceled`. Compare with `isPending()`, `isProcessing()`, `isFailed()` or `Utility::equals()` so an unrecognised string from a newer API version still behaves predictably diff --git a/vendor/mollie/mollie-api-php/docs/recipes/payments/retrieve-captures.md b/vendor/mollie/mollie-api-php/docs/recipes/payments/retrieve-captures.md new file mode 100644 index 0000000..f8cf059 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/payments/retrieve-captures.md @@ -0,0 +1,86 @@ +# Retrieve Payment Captures + +How to retrieve and list captures for a payment using the Mollie API. + +## Get a Single Capture + +```php +use Mollie\Api\Resources\Capture; +use Mollie\Api\Http\Requests\GetPaymentCaptureRequest; + +try { + // Retrieve a specific capture + /** @var Capture $capture */ + $capture = $mollie->send( + new GetPaymentCaptureRequest( + paymentId: 'tr_WDqYK6vllg', + captureId: 'cpt_4qqhO89gsT' + ) + ); + + // Capture::$amount is nullable per the API contract, so guard the deref. + $amount = $capture->amount; + + echo $amount === null + ? "Capture {$capture->id} has no amount\n" + : "Captured {$amount->currency} {$amount->value}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## List All Captures + +```php +use Mollie\Api\Resources\Capture; +use Mollie\Api\Resources\LazyCollection; +use Mollie\Api\Http\Requests\GetPaginatedPaymentCapturesRequest; + +try { + // List all captures for a payment + /** @var LazyCollection $captures */ + $captures = $mollie->send( + (new GetPaginatedPaymentCapturesRequest( + paymentId: 'tr_WDqYK6vllg' + ))->useIterator() + ); + + /** @var Capture $capture */ + foreach ($captures as $capture) { + $amount = $capture->amount; + + echo "Capture {$capture->id}:\n"; + echo '- Amount: '.($amount === null ? 'not available' : "{$amount->currency} {$amount->value}")."\n"; + echo '- Status: '.($capture->status ?? 'unknown')."\n"; + echo '- Created: '.($capture->createdAt ?? 'unknown')."\n\n"; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$capture->id; // "cpt_4qqhO89gsT" +$capture->paymentId; // "tr_WDqYK6vllg" +$capture->amount; // Money, or null when the API omits it +$capture->amount?->currency; // "EUR" +$capture->amount?->value; // "5.00" +$capture->description; // "Order #12345" (or null) +$capture->status; // "pending", "succeeded", "failed" (or null) +$capture->createdAt; // "2024-02-24T12:13:14+00:00" (or null) +``` + +`Capture::$amount` is nullable per the API contract, so guard it (or use `?->`) +before reading `currency` or `value`. `status` is a plain nullable string here, +not a backed enum. + +## Additional Notes + +- You can only retrieve captures for payments created with `captureMode: 'manual'` +- A payment can have multiple captures if partial captures were used +- The captures list is paginated, use `next()` to get the next page +- The capture status indicates whether the capture was successful +- The payment status will change to `paid` once all captures are successful +- Make sure to handle the webhook to process capture status updates diff --git a/vendor/mollie/mollie-api-php/docs/recipes/payments/update-payment.md b/vendor/mollie/mollie-api-php/docs/recipes/payments/update-payment.md new file mode 100644 index 0000000..088d090 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/payments/update-payment.md @@ -0,0 +1,74 @@ +# Update a Payment + +How to update an existing payment using the Mollie API. + +## The Code + +```php +use Mollie\Api\Http\Requests\GetPaymentRequest; +use Mollie\Api\Http\Requests\UpdatePaymentRequest; + +try { + // First retrieve the payment you want to update + $payment = $mollie->send( + new GetPaymentRequest( + id: 'tr_7UhSN1zuXS' + ) + ); + + // Update specific payment fields + $newOrderId = 98765; + $payment = $mollie->send( + new UpdatePaymentRequest( + id: $payment->id, + description: "Order #{$newOrderId}", + redirectUrl: 'https://example.com/return.php?order_id=' . $newOrderId, + metadata: ['order_id' => $newOrderId] + // Fields we don't specify will keep their current values: + // - webhookUrl + // - cancelUrl + // - etc. + ) + ); + + // Redirect the customer to complete the payment + header('Location: ' . $payment->getCheckoutUrl(), true, 303); +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$payment->id; // "tr_7UhSN1zuXS" +$payment->status; // PaymentStatus::Open, or the raw string for an unknown value +$payment->description; // "Order #98765" +$payment->redirectUrl; // "https://example.com/return.php?order_id=98765" (or null) +$payment->webhookUrl; // "https://example.com/webhook.php" (or null) +$payment->metadata; // Object containing order_id +$payment->createdAt; // "2024-02-24T12:13:14+00:00" (or null) +``` + +`status` is `PaymentStatus|string`, so normalise it before printing or storing it: + +```php +use Mollie\Api\Types\PaymentStatus; + +$status = $payment->status instanceof PaymentStatus + ? $payment->status->value + : $payment->status; +``` + +## Additional Notes + +- Only certain fields can be updated, including: + - description + - redirectUrl + - cancelUrl + - webhookUrl + - metadata +- You cannot update the amount or currency of a payment +- The payment must be in a state that allows updates (e.g., you cannot update a completed payment) +- Make sure to handle the webhook to process payment status updates +- `Payment` has no `updatedAt` property; the response returns the updated resource, so re-read the fields you changed diff --git a/vendor/mollie/mollie-api-php/docs/recipes/profiles/manage-profiles.md b/vendor/mollie/mollie-api-php/docs/recipes/profiles/manage-profiles.md new file mode 100644 index 0000000..997bc70 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/profiles/manage-profiles.md @@ -0,0 +1,116 @@ +# Manage Profiles + +How to create, update, list, and delete profiles using the Mollie API. + +## Create a Profile + +```php +use Mollie\Api\Http\Requests\CreateProfileRequest; + +try { + // Create a new profile + $profile = $mollie->send( + new CreateProfileRequest( + name: 'My Website Name', + website: 'https://www.mywebsite.com', + email: 'info@mywebsite.com', + phone: '+31208202070', + businessCategory: 'MARKETPLACES' + ) + ); + + echo "Profile created: {$profile->name}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## List Profiles + +```php +use Mollie\Api\Http\Requests\GetPaginatedProfilesRequest; +use Mollie\Api\Types\ProfileStatus; + +try { + // List all profiles + $response = $mollie->send(new GetPaginatedProfilesRequest); + + foreach ($response as $profile) { + $status = $profile->status instanceof ProfileStatus + ? $profile->status->value + : ($profile->status ?? 'not available'); + + echo "Profile {$profile->id}:\n"; + echo "- Name: {$profile->name}\n"; + echo "- Website: " . ($profile->website ?? 'not set') . "\n"; + echo "- Mode: {$profile->mode}\n"; + echo "- Status: {$status}\n\n"; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Update a Profile + +```php +use Mollie\Api\Http\Requests\UpdateProfileRequest; + +try { + // Update an existing profile + $profile = $mollie->send( + new UpdateProfileRequest( + id: 'pfl_v9hTwCvYqw', + name: 'Updated Website Name', + website: 'https://www.updated-website.com', + email: 'info@updated-website.com', + phone: '+31208202071', + businessCategory: 'MARKETPLACES' + ) + ); + + echo "Profile updated: {$profile->name}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Delete a Profile + +```php +use Mollie\Api\Http\Requests\DeleteProfileRequest; + +try { + // Delete a profile + $mollie->send( + new DeleteProfileRequest( + id: 'pfl_v9hTwCvYqw' + ) + ); + + echo "Profile deleted\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$profile->id; // "pfl_v9hTwCvYqw" +$profile->mode; // "live" or "test" +$profile->name; // "My Website Name" +$profile->website; // "https://www.mywebsite.com" +$profile->email; // "info@mywebsite.com" +$profile->phone; // "+31208202070" +$profile->businessCategory; // "MARKETPLACES" +$profile->status; // ProfileStatus case, unknown raw string, or null +$profile->review; // Review object, or null when omitted +$profile->createdAt; // Creation date, or null when omitted +``` + +## Additional Notes + +- OAuth access token is required to manage profiles +- A profile represents your business or website +- Business categories define the type of products/services you offer diff --git a/vendor/mollie/mollie-api-php/docs/recipes/sales-invoices/manage-sales-invoices.md b/vendor/mollie/mollie-api-php/docs/recipes/sales-invoices/manage-sales-invoices.md new file mode 100644 index 0000000..e0f6ab5 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/sales-invoices/manage-sales-invoices.md @@ -0,0 +1,57 @@ +# Manage Sales Invoices + +How to list and manage sales invoices using the Mollie API. + +## List Sales Invoices + +```php +use Mollie\Api\Http\Requests\GetPaginatedSalesInvoicesRequest; +use Mollie\Api\Types\SalesInvoiceStatus; + +try { + // List all sales invoices + $response = $mollie->send(new GetPaginatedSalesInvoicesRequest); + + foreach ($response as $invoice) { + $status = $invoice->status instanceof SalesInvoiceStatus + ? $invoice->status->value + : $invoice->status; + + echo "Invoice {$invoice->id}:\n"; + echo "- Number: " . ($invoice->invoiceNumber ?? 'draft') . "\n"; + echo "- Status: {$status}\n"; + echo "- Issued: " . ($invoice->issuedAt ?? 'not issued') . "\n"; + echo "- Amount due: {$invoice->amountDue->currency} {$invoice->amountDue->value}\n"; + if (isset($invoice->_links->pdfLink->href)) { + echo "- PDF: {$invoice->_links->pdfLink->href}\n"; + } + + echo "\n"; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$invoice->id; // "invoice_4Y0eZitmBnQ6IDoMqZQKh" +$invoice->invoiceNumber; // Invoice number, or null while still a draft +$invoice->status; // SalesInvoiceStatus case, or an unknown raw string +$invoice->issuedAt; // Issue date, or null when not issued yet +$invoice->dueAt; // Due date, or null when not due yet +$invoice->amountDue; // Money object containing the outstanding amount +$invoice->subtotalAmount; // Money object containing the subtotal +$invoice->totalVatAmount; // Money object containing the VAT total +$invoice->totalAmount; // Money object containing the invoice total +$invoice->lines; // Array of invoice lines, or null when omitted +$invoice->_links->pdfLink->href; // URL to download the PDF invoice +``` + +## Additional Notes + +- OAuth access token is required to access sales invoices +- Sales invoices are generated for your Mollie account +- Each invoice line represents a different type of fee +- The PDF invoice is available through the `_links.pdfLink.href` URL diff --git a/vendor/mollie/mollie-api-php/docs/recipes/sessions/manage-sessions.md b/vendor/mollie/mollie-api-php/docs/recipes/sessions/manage-sessions.md new file mode 100644 index 0000000..0e55e18 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/sessions/manage-sessions.md @@ -0,0 +1,87 @@ +# Manage Sessions + +How to create and manage sessions using the Mollie API. + +## Create a Session + +```php +use Mollie\Api\Http\Data\DataCollection; +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Data\OrderLine; +use Mollie\Api\Http\Requests\CreateSessionRequest; + +try { + // Create a new session. The request takes typed arguments, not an array. + $session = $mollie->send( + new CreateSessionRequest( + amount: Money::euro('10.00'), + description: 'Order #12345', + redirectUrl: 'https://example.com/shipping', + lines: DataCollection::collect([ + new OrderLine( + description: 'Bicycle tire', + quantity: 1, + unitPrice: Money::euro('10.00'), + totalAmount: Money::euro('10.00') + ), + ]), + cancelUrl: 'https://example.com/cancel', + paymentWebhook: 'https://example.com/webhook' + ) + ); + + // getRedirectUrl() reads $_links->redirect and returns null when the API + // did not send that link, so check before redirecting. + $redirectUrl = $session->getRedirectUrl(); + + if ($redirectUrl === null) { + throw new \RuntimeException("Session {$session->id} has no redirect link."); + } + + header('Location: ' . $redirectUrl, true, 303); +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$session->id; // "ses_abc123" +$session->status; // SessionStatus case or raw string +$session->amount; // Mollie\Api\Http\Data\Money +$session->description; // "Order #12345" +$session->redirectUrl; // "https://example.com/shipping" +$session->cancelUrl; // "https://example.com/cancel" (or null) +$session->clientAccessToken; // token for the client-side checkout +$session->lines; // array of order lines (or null) +$session->metadata; // your own data (or null) +$session->payment; // \stdClass with payment settings, e.g. webhookUrl (or null) +$session->_links; // \stdClass with HAL links, e.g. redirect +``` + +`status` is a `SessionStatus` case (`Open`, `Expired`, `Completed`) when the SDK +recognises the value and the raw string otherwise. Read it through the helpers +rather than interpolating it: + +```php +use Mollie\Api\Types\SessionStatus; + +if ($session->isOpen()) { + // still awaiting the customer +} + +$status = $session->status instanceof SessionStatus + ? $session->status->value + : $session->status; + +echo "Session status: {$status}\n"; +``` + +## Additional Notes + +- Sessions are used for payment methods that require additional steps +- `amount`, `description`, `redirectUrl` and `lines` are required; `lines` takes a `DataCollection` of `OrderLine` objects +- Pass `paymentWebhook` to receive status updates; the SDK nests it as `payment.webhookUrl` +- `getRedirectUrl()` is nullable, so guard it before issuing a redirect +- Use `isOpen()`, `isExpired()` and `isCompleted()` to branch on the session status diff --git a/vendor/mollie/mollie-api-php/docs/recipes/settlements/list-settlements.md b/vendor/mollie/mollie-api-php/docs/recipes/settlements/list-settlements.md new file mode 100644 index 0000000..f28aed8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/settlements/list-settlements.md @@ -0,0 +1,84 @@ +# List Settlements + +How to list settlements using the Mollie API. + +## List Settlements + +```php +use Mollie\Api\Http\Requests\GetPaginatedSettlementsRequest; +use Mollie\Api\Types\SettlementStatus; + +try { + // List all settlements + $response = $mollie->send(new GetPaginatedSettlementsRequest); + + foreach ($response as $settlement) { + $status = $settlement->status instanceof SettlementStatus + ? $settlement->status->value + : ($settlement->status ?? 'not available'); + + echo "Settlement {$settlement->reference}:\n"; + echo "- Created: " . ($settlement->createdAt ?? 'not available') . "\n"; + echo "- Status: {$status}\n"; + + if ($settlement->amount !== null) { + echo "- Amount: {$settlement->amount->currency} {$settlement->amount->value}\n"; + } + + echo "\n"; + + if ($settlement->periods === null) { + continue; + } + + // Show settlement periods + foreach ($settlement->periods as $year => $months) { + foreach ($months as $month => $data) { + echo "Period {$year}-{$month}:\n"; + + // Show revenue + foreach ($data->revenue as $revenue) { + echo "Revenue: {$revenue->description}\n"; + echo "- Count: {$revenue->count}\n"; + echo "- Net: {$revenue->amountNet->currency} {$revenue->amountNet->value}\n"; + if (($vat = $revenue->amountVat ?? null) !== null) { + echo "- VAT: {$vat->currency} {$vat->value}\n"; + } + echo "- Gross: {$revenue->amountGross->currency} {$revenue->amountGross->value}\n\n"; + } + + // Show costs + foreach ($data->costs as $cost) { + echo "Cost: {$cost->description}\n"; + echo "- Count: {$cost->count}\n"; + echo "- Net: {$cost->amountNet->currency} {$cost->amountNet->value}\n"; + if (($vat = $cost->amountVat ?? null) !== null) { + echo "- VAT: {$vat->currency} {$vat->value}\n"; + } + echo "- Gross: {$cost->amountGross->currency} {$cost->amountGross->value}\n\n"; + } + } + } + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$settlement->id; // "stl_abc123" +$settlement->reference; // "1234567.1804.03" +$settlement->createdAt; // Creation date, or null when omitted +$settlement->settledAt; // Settlement date, or null while unsettled +$settlement->status; // SettlementStatus case, unknown raw string, or null +$settlement->amount; // Money object, or null when omitted +$settlement->periods; // Settlement periods object, or null when omitted +``` + +## Additional Notes + +- OAuth access token is required to access settlements +- Settlements contain revenue and costs grouped by period +- Each period shows transaction fees, refunds, and chargebacks diff --git a/vendor/mollie/mollie-api-php/docs/recipes/subscriptions/manage-subscriptions.md b/vendor/mollie/mollie-api-php/docs/recipes/subscriptions/manage-subscriptions.md new file mode 100644 index 0000000..d2e6bfb --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/subscriptions/manage-subscriptions.md @@ -0,0 +1,119 @@ +# Manage Subscriptions + +How to create and manage subscriptions using the Mollie API. + +## Create a Subscription + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\CreateSubscriptionRequest; +use Mollie\Api\Types\SubscriptionStatus; + +try { + // Create a subscription for a customer + $subscription = $mollie->send( + new CreateSubscriptionRequest( + customerId: 'cst_8wmqcHMN4U', + amount: Money::euro('10.00'), + interval: '1 month', + description: 'Monthly subscription', + webhookUrl: 'https://example.com/webhook', + metadata: ['subscription_id' => time()] + ) + ); + + // A SubscriptionStatus case for values this release knows, the raw string + // for anything Mollie adds later. Never interpolate the property itself: + // a backed enum has no string conversion and throws. + $status = $subscription->status instanceof SubscriptionStatus + ? $subscription->status->value + : $subscription->status ?? 'unknown'; + + echo "Subscription status: {$status}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## List Subscriptions + +```php +use Mollie\Api\Http\Requests\GetPaginatedSubscriptionsRequest; +use Mollie\Api\Types\SubscriptionStatus; + +try { + // List all subscriptions for a customer + $response = $mollie->send( + new GetPaginatedSubscriptionsRequest( + customerId: 'cst_8wmqcHMN4U' + ) + ); + + foreach ($response as $subscription) { + $status = $subscription->status instanceof SubscriptionStatus + ? $subscription->status->value + : $subscription->status ?? 'unknown'; + + echo "Subscription {$subscription->id}:\n"; + echo "- Status: {$status}\n"; + echo "- Amount: {$subscription->amount->currency} {$subscription->amount->value}\n"; + echo '- Times: '.($subscription->times ?? 'unlimited')."\n"; + echo "- Interval: {$subscription->interval}\n"; + echo '- Next payment: '.($subscription->nextPaymentDate ?? 'not scheduled')."\n\n"; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Cancel a Subscription + +```php +use Mollie\Api\Http\Requests\CancelSubscriptionRequest; + +try { + // Cancel a subscription + $mollie->send( + new CancelSubscriptionRequest( + customerId: 'cst_8wmqcHMN4U', + subscriptionId: 'sub_rVKGtNd6s3' + ) + ); + + echo "Subscription canceled\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$subscription->id; // "sub_rVKGtNd6s3" +$subscription->customerId; // "cst_8wmqcHMN4U" +$subscription->mode; // "live" or "test" +$subscription->createdAt; // "2024-02-24T12:13:14+00:00" +$subscription->status; // SubscriptionStatus case, raw string, or null +$subscription->amount; // Mollie\Api\Http\Data\Money +$subscription->times; // 12 (or null when the subscription is unlimited) +$subscription->timesRemaining; // 4 (or null when the subscription is unlimited) +$subscription->interval; // "1 month" +$subscription->startDate; // "2024-02-24" (or null) +$subscription->nextPaymentDate; // "2024-03-24" (null once the subscription ended) +$subscription->description; // "Monthly subscription" +$subscription->method; // null or payment method +$subscription->webhookUrl; // "https://example.com/webhook" +$subscription->metadata; // Object containing custom metadata +``` + +## Additional Notes + +- The customer must have a valid mandate for recurring payments +- Subscriptions can be created with various intervals (e.g., "1 month", "3 months") +- The webhook is called for every subscription payment +- `status` is a `SubscriptionStatus` case when the SDK recognises the value and the raw string otherwise, so compare with `isActive()`, `isPending()`, `isCanceled()`, `isSuspended()`, `isCompleted()` or `Utility::equals()` instead of `===`: + - `SubscriptionStatus::Pending`: Waiting for a valid mandate + - `SubscriptionStatus::Active`: The subscription is active + - `SubscriptionStatus::Canceled`: The subscription is canceled + - `SubscriptionStatus::Suspended`: The subscription is suspended + - `SubscriptionStatus::Completed`: The subscription has ended diff --git a/vendor/mollie/mollie-api-php/docs/recipes/webhooks/create-webhook.md b/vendor/mollie/mollie-api-php/docs/recipes/webhooks/create-webhook.md new file mode 100644 index 0000000..23e9fcd --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/webhooks/create-webhook.md @@ -0,0 +1,107 @@ +# Create a Webhook + +How to create webhooks to receive notifications about events using the Mollie API. + +## The Code + +```php +use Mollie\Api\Http\Requests\CreateWebhookRequest; +use Mollie\Api\Types\WebhookStatus; +use Mollie\Api\Webhooks\WebhookEventType; + +try { + // Create a webhook using the direct request (new style) + $webhook = $mollie->send( + new CreateWebhookRequest( + url: 'https://example.com/webhook', + name: 'Payment notifications', + eventTypes: WebhookEventType::PAYMENT_LINK_PAID + ) + ); + + $status = $webhook->status instanceof WebhookStatus + ? $webhook->status->value + : $webhook->status; + + echo "Webhook created: {$webhook->id}\n"; + echo "URL: {$webhook->url}\n"; + echo "Name: {$webhook->name}\n"; + echo "Event Types: " . implode(', ', $webhook->eventTypes) . "\n"; + echo "Status: {$status}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Using Endpoint Collections (Legacy Style) + +```php +use Mollie\Api\Webhooks\WebhookEventType; + +try { + // Create a webhook using endpoint collections + $webhook = $mollie->webhooks->create([ + 'url' => 'https://example.com/webhook', + 'name' => 'Payment notifications', + 'eventTypes' => WebhookEventType::PAYMENT_LINK_PAID + ]); + + echo "Webhook created: {$webhook->id}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$webhook->resource; // "webhook" +$webhook->id; // "wh_4KgGJJSZpH" +$webhook->url; // "https://example.com/webhook" +$webhook->profileId; // Profile ID, or null when no profile applies +$webhook->createdAt; // "2023-12-25T10:30:54+00:00" +$webhook->name; // "Payment notifications" +$webhook->eventTypes; // Array of subscribed event type strings +$webhook->status; // WebhookStatus case, or an unknown raw string +$webhook->_links; // Object containing webhook links +``` + +## Available Event Types + +Use the `WebhookEventType` constants for the event types supported by your integration. Check the Mollie documentation for the latest availability. + +```php +use Mollie\Api\Webhooks\WebhookEventType; + +WebhookEventType::PAYMENT_LINK_PAID; // "payment-link.paid" +WebhookEventType::SALES_INVOICE_PAID; // "sales-invoice.paid" +WebhookEventType::PROFILE_VERIFIED; // "profile.verified" + +// Get all available event types +$allEventTypes = WebhookEventType::getAll(); +// Returns their raw string values +``` + +## Additional Notes + +- **Webhook URL Requirements**: + - There are no security requirements for test mode. However, in order to receive live mode events, the URL needs to be secured with an up-to-date HTTPS connection. + - Must respond with HTTP 200 status code + - Cannot be `localhost` URLs (use ngrok for local testing) + +- **Event Types**: + - Check out [the Mollie documentation](https://docs.mollie.com/reference/webhooks-new#event-types) to see what events are supported. + - Additional event types will be added in future updates + - Subscribe only to events you need to reduce noise + +- **Webhook URL Best Practices**: + - Use HTTPS for security + - Implement proper authentication/authorization + - Handle webhooks idempotently (same webhook may be sent multiple times) + - Log webhook payloads for debugging + - Return 200 OK as quickly as possible + +- **Testing**: + - Use ngrok or similar tools for local development + - Test webhook handling with the webhook test endpoint + - Verify signature validation works correctly diff --git a/vendor/mollie/mollie-api-php/docs/recipes/webhooks/manage-webhooks.md b/vendor/mollie/mollie-api-php/docs/recipes/webhooks/manage-webhooks.md new file mode 100644 index 0000000..a16cd3b --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/webhooks/manage-webhooks.md @@ -0,0 +1,215 @@ +# Manage Webhooks + +How to retrieve, update, delete, test, and list webhooks using the Mollie API. + +## Get a Webhook + +```php +use Mollie\Api\Http\Requests\GetWebhookRequest; +use Mollie\Api\Types\WebhookStatus; + +try { + // Get a specific webhook using direct request + $webhook = $mollie->send( + new GetWebhookRequest( + id: 'wh_4KgGJJSZpH' + ) + ); + + $status = $webhook->status instanceof WebhookStatus + ? $webhook->status->value + : $webhook->status; + + echo "Webhook {$webhook->id}:\n"; + echo "- URL: {$webhook->url}\n"; + echo "- Name: {$webhook->name}\n"; + echo "- Event Types: " . implode(', ', $webhook->eventTypes) . "\n"; + echo "- Status: {$status}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Update a Webhook + +```php +use Mollie\Api\Http\Requests\UpdateWebhookRequest; +use Mollie\Api\Webhooks\WebhookEventType; + +try { + // Update webhook properties + $webhook = $mollie->send( + new UpdateWebhookRequest( + id: 'wh_4KgGJJSZpH', + url: 'https://updated-example.com/webhook', + name: 'Updated webhook name', + eventTypes: WebhookEventType::PAYMENT_LINK_PAID + ) + ); + + echo "Webhook updated successfully\n"; + echo "New URL: {$webhook->url}\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Delete a Webhook + +```php +use Mollie\Api\Http\Requests\DeleteWebhookRequest; + +try { + // Delete a webhook + $mollie->send( + new DeleteWebhookRequest( + id: 'wh_4KgGJJSZpH' + ) + ); + + echo "Webhook deleted successfully\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Test a Webhook + +```php +use Mollie\Api\Http\Requests\TestWebhookRequest; + +try { + // Test webhook delivery + $result = $mollie->send( + new TestWebhookRequest( + id: 'wh_4KgGJJSZpH' + ) + ); + + echo "Webhook test initiated\n"; + echo "Test status: Success\n"; +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "Webhook test failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## List All Webhooks + +```php +use Mollie\Api\Http\Requests\GetPaginatedWebhooksRequest; +use Mollie\Api\Types\WebhookStatus; + +try { + // List all webhooks with pagination + $webhooks = $mollie->send( + new GetPaginatedWebhooksRequest() + ); + + foreach ($webhooks as $webhook) { + $status = $webhook->status instanceof WebhookStatus + ? $webhook->status->value + : $webhook->status; + + echo "Webhook {$webhook->id}:\n"; + echo "- URL: {$webhook->url}\n"; + echo "- Name: {$webhook->name}\n"; + echo "- Event Types: " . implode(', ', $webhook->eventTypes) . "\n"; + echo "- Status: {$status}\n"; + echo "- Created: {$webhook->createdAt}\n\n"; + } + + // Handle pagination if needed + if ($webhooks->hasNext()) { + $nextPage = $webhooks->next(); + // Process next page... + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Using Endpoint Collections (Legacy Style) + +```php +try { + // Get a webhook + $webhook = $mollie->webhooks->get('wh_4KgGJJSZpH'); + + // Update a webhook + $webhook = $mollie->webhooks->update('wh_4KgGJJSZpH', [ + 'url' => 'https://updated-example.com/webhook', + 'name' => 'Updated name' + ]); + + // Delete a webhook + $mollie->webhooks->delete('wh_4KgGJJSZpH'); + + // Test a webhook + $mollie->webhooks->test('wh_4KgGJJSZpH'); + + // List webhooks + $webhooks = $mollie->webhooks->page(); + + // Use convenience methods on webhook resource + $webhook = $mollie->webhooks->get('wh_4KgGJJSZpH'); + + // Update using convenience method + $webhook->update([ + 'name' => 'New name' + ]); + + // Delete using convenience method + $webhook->delete(); + + // Test using convenience method + $webhook->test(); +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$webhook->resource; // "webhook" +$webhook->id; // "wh_4KgGJJSZpH" +$webhook->url; // "https://example.com/webhook" +$webhook->profileId; // Profile ID, or null when no profile applies +$webhook->createdAt; // "2023-12-25T10:30:54+00:00" +$webhook->name; // "Payment notifications" +$webhook->eventTypes; // Array of subscribed event type strings +$webhook->status; // WebhookStatus case, or an unknown raw string +$webhook->_links; // Object containing webhook links +``` + +## Additional Notes + +- **Webhook Updates**: + - All parameters are optional when updating + - Only specify fields you want to change + +- **Webhook Testing**: + - Tests webhook delivery by sending a test payload + - Useful for verifying webhook URL accessibility + - Check your webhook endpoint logs to confirm receipt + - Test payloads may differ from actual event payloads + +- **Webhook Deletion**: + - Permanently removes the webhook + - Cannot be undone + - Stop receiving notifications for deleted webhooks immediately + +- **Listing Webhooks**: + - Returns all webhooks in your account + - Results are paginated + - Use `hasNext()` and `next()` for pagination + +- **Convenience Methods**: + - Webhook resources include convenience methods (`update()`, `delete()`, `test()`) + - These methods operate on the current webhook instance + - Simplify common operations without needing to specify the webhook ID again + +- **Error Handling**: + - Webhook operations may fail due to network issues + - Handle `ApiException` to catch and respond to errors appropriately + - Common errors include webhook not found (404) or validation errors (422) diff --git a/vendor/mollie/mollie-api-php/docs/recipes/webhooks/signature-verification.md b/vendor/mollie/mollie-api-php/docs/recipes/webhooks/signature-verification.md new file mode 100644 index 0000000..5d18dd4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/webhooks/signature-verification.md @@ -0,0 +1,92 @@ +# Webhook Signature Verification + +This recipe shows you how to verify Mollie webhook signatures in your application using the `SignatureValidator` class. + +## Basic Example + +```php +use Mollie\Api\Webhooks\SignatureValidator; +use Mollie\Api\Exceptions\InvalidSignatureException; + +$signingSecret = "foobar"; + +$request = \GuzzleHttp\Psr7\ServerRequest::fromGlobals(); +$requestBody = (string)$request->getBody(); +$signature = $request->getHeader("X-Mollie-Signature"); + +try { + $validator = new SignatureValidator($signingSecret); + $isValid = $validator->validatePayload($requestBody, $signature); + + if ($isValid) { + // Process the verified webhook event + } else { + // Legacy webhook without signature + } + + return new \GuzzleHttp\Psr7\Response(200); +} catch (InvalidSignatureException $e) { + return new \GuzzleHttp\Psr7\Response(400); +} +``` + +For more information about webhooks and signature verification, see the [Webhooks Guide](../webhooks.md). + +## Advanced Usage + +### Multiple Signing Secrets + +During key rotation or migration periods, you can verify signatures against multiple secrets: + +```php +use Mollie\Api\Webhooks\SignatureValidator; +use Mollie\Api\Exceptions\InvalidSignatureException; + +$signingSecrets = [ + "current_secret", + "previous_secret" +]; + +try { + $validator = new SignatureValidator($signingSecrets); + $isValid = $validator->validatePayload($requestBody, $signature); + + if ($isValid) { + processWebhook($webhookData); + } else { + // Handle legacy webhook + // Make sure to validate the actual contents of $webhookData before processing + processLegacyWebhook($webhookData); + } + +} catch (InvalidSignatureException $e) { + http_response_code(400); + echo 'Invalid signature'; +} +``` + +### PSR-7 Request Validation + +If you're using PSR-7 compatible requests: + +```php +use Mollie\Api\Webhooks\SignatureValidator; +use Psr\Http\Message\ServerRequestInterface; + +$signingSecret = "your_webhook_signing_secret"; +$validator = new SignatureValidator($signingSecret); + +try { + $isValid = $validator->validateRequest($request); + + if ($isValid) { + // Signature is valid + } else { + // Legacy webhook (no signature) + } + + return new Response(200, [], 'OK'); +} catch (InvalidSignatureException $e) { + return new Response(400, [], 'Invalid signature'); +} +``` diff --git a/vendor/mollie/mollie-api-php/docs/recipes/webhooks/webhook-events.md b/vendor/mollie/mollie-api-php/docs/recipes/webhooks/webhook-events.md new file mode 100644 index 0000000..15b3314 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/recipes/webhooks/webhook-events.md @@ -0,0 +1,184 @@ +# Webhook Events + +How to retrieve and manage webhook events using the Mollie API. + +## Get a Webhook Event + +```php +use Mollie\Api\Http\Requests\GetWebhookEventRequest; + +try { + // Get a specific webhook event + $webhookEvent = $mollie->send( + new GetWebhookEventRequest( + id: 'whev_abc123' + ) + ); + + echo "Webhook Event {$webhookEvent->id}:\n"; + echo "- Resource: {$webhookEvent->resource}\n"; + echo "- Event Type: {$webhookEvent->type}\n"; + echo "- Entity ID: {$webhookEvent->entityId}\n"; + echo "- Created: {$webhookEvent->createdAt}\n"; + + // getEntity() returns ?stdClass — null when the event carries no snapshot + $entity = $webhookEvent->getEntity(); + + if ($entity !== null) { + echo "- Entity Data Available: Yes\n"; + // The embedded entity is a raw stdClass, so get_class() would always + // report "stdClass". Read its own `resource` field instead. + echo "- Entity Type: {$entity->resource}\n"; + } else { + echo "- Entity Data Available: No\n"; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## Using Endpoint Collections (Legacy Style) + +```php +try { + // Get a webhook event using endpoint collections + $webhookEvent = $mollie->webhookEvents->get('whev_abc123'); + + echo "Event Type: {$webhookEvent->type}\n"; + echo "Entity ID: {$webhookEvent->entityId}\n"; + + // Access the embedded entity data + if ($webhookEvent->hasEntity()) { + $entity = $webhookEvent->getEntity(); + echo "Entity data is available\n"; + } +} catch (\Mollie\Api\Exceptions\ApiException $e) { + echo "API call failed: " . htmlspecialchars($e->getMessage()); +} +``` + +## The Response + +```php +$webhookEvent->resource; // "event" +$webhookEvent->id; // "whev_abc123" +$webhookEvent->type; // "payment-link.paid" +$webhookEvent->entityId; // "pl_4Y0eZitmBnQ5jsBYZIBw" (the payment link ID) +$webhookEvent->createdAt; // "2023-12-25T10:30:54+00:00" +$webhookEvent->_embedded; // stdClass holding the embedded entity, or null +$webhookEvent->_links; // Object containing relevant URLs +``` + +## Working with Embedded Entity Data + +The webhook event contains the full payload of the triggered event in the `_embedded` property: + +```php +// Get the embedded entity — null when the event carries no snapshot +$entity = $webhookEvent->getEntity(); + +if ($entity !== null) { + // For payment-link.paid events this is the raw payment link payload. It is + // a plain stdClass: no typed resource, no isPaid() helper, and no `status` + // field — payment links do not have one. `amount` is absent on an + // open-amount link, so read it defensively. + $amount = $entity->amount ?? null; + + echo "Payment Link ID: {$entity->id}\n"; + echo 'Amount: '.($amount === null ? 'open amount' : "{$amount->value} {$amount->currency}")."\n"; + echo 'Paid: '.(! empty($entity->paidAt) ? 'yes' : 'no')."\n"; +} + +// Direct access to _embedded structure +$embedded = $webhookEvent->_embedded; +if (! empty($embedded->entity)) { + $entity = $embedded->entity; + echo "Entity ID: {$entity->id}\n"; +} +``` + +## Helper Methods + +The `WebhookEvent` resource includes convenient methods for working with entity data: + +```php +// Check if entity data is available +if ($webhookEvent->hasEntity()) { + echo "Entity data is embedded in this event\n"; +} + +// Get the entity data — getEntity() returns ?stdClass, so guard for null +$entity = $webhookEvent->getEntity(); +if ($entity !== null) { + echo "Entity ID: {$entity->id}\n"; + echo "Entity Resource: {$entity->resource}\n"; +} +``` + +## Event Types and Their Payloads + +Currently, only payment link events are supported: + +### Payment Link Events +```php +// payment-link.paid +if ($webhookEvent->type === 'payment-link.paid') { + $paymentLink = $webhookEvent->getEntity(); + + if ($paymentLink === null) { + throw new \RuntimeException('Payment-link event has no embedded entity.'); + } + + $amount = $paymentLink->amount ?? null; + + echo "Payment Link: {$paymentLink->id}\n"; + echo 'Amount: '.($amount === null ? 'open amount' : "{$amount->value} {$amount->currency}")."\n"; + echo 'Paid: '.(! empty($paymentLink->paidAt) ? 'yes' : 'no')."\n"; +} +``` + +The embedded entity is the raw JSON payload as `stdClass`, not a `PaymentLink` +resource: there is no `isPaid()` helper, `amount` is a plain object rather than +a `Money`, and there is no `status` field. For a fully typed `PaymentLink` — +with `isPaid()` and a typed `Money` amount — process the delivery through +`WebhookEventMapper` and call `asResource()`; see [Webhooks](../../webhooks.md). + +## Additional Notes + +- **Event Structure**: + - All webhook events have the `resource` property set to "event" + - The `type` property indicates what kind of event occurred + - The `entityId` references the ID of the object that triggered the event + - The `_embedded.entity` contains the full object data at the time of the event + +- **Entity Data**: + - The embedded entity contains the complete state of the object when the event occurred + - This is useful for getting the full context without making additional API calls + - Entity data may be null for some event types + - Payment links have no `status` field; derive the state from `paidAt`, `expiresAt` and `archived` + - `amount` is absent on an open-amount payment link + +- **Event Identification**: + - Use the `id` property to uniquely identify webhook events + - The `entityId` property tells you which object triggered the event + - The `type` property tells you what kind of event occurred + +- **Event Ordering**: + - Webhook events are not guaranteed to be delivered in order + - Use the `createdAt` timestamp to determine the actual order of events + - Handle events idempotently in case duplicates are received + +- **Processing Events**: + - Always check if entity data is available using `hasEntity()` + - `getEntity()` returns `null` when no entity is embedded, so guard the result + - The entity data reflects the state at the time the event was created + +- **Security**: + - Always verify webhook signatures when processing events + - The webhook event data shows what was sent, but verify authenticity + - Consider webhook events as notifications, not the primary source of truth + +- **Debugging**: + - Use the webhook event ID to track specific events + - The embedded entity data helps understand what triggered the event + - Check the `_links` property for related URLs and actions diff --git a/vendor/mollie/mollie-api-php/docs/request-reference.md b/vendor/mollie/mollie-api-php/docs/request-reference.md new file mode 100644 index 0000000..270c6d2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/request-reference.md @@ -0,0 +1,185 @@ +# Request Reference + +This document provides a quick reference index of all available request classes in the Mollie PHP SDK. For detailed parameter information, see the PHPDoc comments in each request class. Request classes provide a type-safe way to interact with the Mollie API directly, offering better IDE support and type checking compared to using endpoint collections with arrays. + +## Payments + +- **CreatePaymentRequest** - Create a new payment +- **GetPaymentRequest** - Retrieve a payment by ID +- **UpdatePaymentRequest** - Update an existing payment +- **CancelPaymentRequest** - Cancel a payment +- **CreatePaymentRefundRequest** - Create a refund for a payment +- **GetPaymentRefundRequest** - Retrieve a payment refund +- **CancelPaymentRefundRequest** - Cancel a payment refund +- **GetPaginatedPaymentsRequest** - List payments with pagination +- **ReleasePaymentAuthorizationRequest** - Release payment authorization + +## Customers + +- **CreateCustomerRequest** - Create a new customer +- **GetCustomerRequest** - Retrieve a customer by ID +- **UpdateCustomerRequest** - Update an existing customer +- **DeleteCustomerRequest** - Delete a customer +- **GetPaginatedCustomerRequest** - List customers with pagination +- **CreateCustomerPaymentRequest** - Create a payment for a customer +- **GetPaginatedCustomerPaymentsRequest** - List customer payments with pagination + +## Subscriptions + +- **CreateSubscriptionRequest** - Create a subscription for a customer +- **GetSubscriptionRequest** - Retrieve a subscription +- **UpdateSubscriptionRequest** - Update a subscription +- **CancelSubscriptionRequest** - Cancel a subscription +- **GetPaginatedSubscriptionsRequest** - List subscriptions with pagination +- **GetAllPaginatedSubscriptionsRequest** - List all subscriptions (across all customers) +- **GetPaginatedSubscriptionPaymentsRequest** - List subscription payments with pagination + +## Mandates + +- **CreateMandateRequest** - Create a mandate for a customer +- **GetMandateRequest** - Retrieve a mandate +- **RevokeMandateRequest** - Revoke a mandate +- **GetPaginatedMandateRequest** - List mandates with pagination + +## Refunds + +- **GetPaginatedRefundsRequest** - List refunds with pagination + +## Webhooks + +- **CreateWebhookRequest** - Create a webhook +- **GetWebhookRequest** - Retrieve a webhook +- **UpdateWebhookRequest** - Update a webhook +- **DeleteWebhookRequest** - Delete a webhook +- **TestWebhookRequest** - Test a webhook +- **GetPaginatedWebhooksRequest** - List webhooks with pagination +- **GetWebhookEventRequest** - Retrieve a webhook event + +## Profiles + +- **CreateProfileRequest** - Create a profile +- **GetProfileRequest** - Retrieve a profile +- **GetCurrentProfileRequest** - Retrieve the current profile +- **UpdateProfileRequest** - Update a profile +- **DeleteProfileRequest** - Delete a profile +- **GetPaginatedProfilesRequest** - List profiles with pagination + +## Methods + +- **GetMethodRequest** - Retrieve a payment method +- **GetAllMethodsRequest** - Retrieve all payment methods +- **GetEnabledMethodsRequest** - Retrieve all enabled payment methods +- **EnableMethodRequest** - Enable a payment method +- **DisableMethodRequest** - Disable a payment method +- **EnableMethodIssuerRequest** - Enable a method issuer +- **DisableMethodIssuerRequest** - Disable a method issuer + +## Balances + +- **GetBalanceRequest** - Retrieve a balance +- **GetPaginatedBalanceRequest** - List balances with pagination +- **GetBalanceReportRequest** - Retrieve a balance report +- **GetPaginatedBalanceTransactionRequest** - List balance transactions with pagination + +## Settlements + +- **GetSettlementRequest** - Retrieve a settlement +- **GetPaginatedSettlementsRequest** - List settlements with pagination +- **GetPaginatedSettlementPaymentsRequest** - List settlement payments with pagination +- **GetPaginatedSettlementRefundsRequest** - List settlement refunds with pagination +- **GetPaginatedSettlementCapturesRequest** - List settlement captures with pagination +- **GetPaginatedSettlementChargebacksRequest** - List settlement chargebacks with pagination + +## Payment Links + +- **CreatePaymentLinkRequest** - Create a payment link +- **GetPaymentLinkRequest** - Retrieve a payment link +- **UpdatePaymentLinkRequest** - Update a payment link +- **DeletePaymentLinkRequest** - Delete a payment link +- **GetPaginatedPaymentLinksRequest** - List payment links with pagination +- **GetPaginatedPaymentLinkPaymentsRequest** - List payment link payments with pagination + +## Sessions + +- **CreateSessionRequest** - Create a checkout session +- **GetSessionRequest** - Retrieve a session +- **UpdateSessionRequest** - Update a session +- **CancelSessionRequest** - Cancel a session +- **GetPaginatedSessionsRequest** - List sessions with pagination + +## Invoices + +- **GetInvoiceRequest** - Retrieve an invoice +- **GetPaginatedInvoiceRequest** - List invoices with pagination + +## Sales Invoices + +- **CreateSalesInvoiceRequest** - Create a sales invoice +- **GetSalesInvoiceRequest** - Retrieve a sales invoice +- **UpdateSalesInvoiceRequest** - Update a sales invoice +- **DeleteSalesInvoiceRequest** - Delete a sales invoice +- **GetPaginatedSalesInvoicesRequest** - List sales invoices with pagination + +## Payment Routes + +- **CreateDelayedPaymentRouteRequest** - Create a delayed payment route +- **ListPaymentRoutesRequest** - List payment routes +- **UpdatePaymentRouteRequest** - Update a payment route + +## Payment Captures + +- **CreatePaymentCaptureRequest** - Create a payment capture +- **GetPaymentCaptureRequest** - Retrieve a payment capture +- **GetPaginatedPaymentCapturesRequest** - List payment captures with pagination + +## Payment Chargebacks + +- **GetPaymentChargebackRequest** - Retrieve a payment chargeback +- **GetPaginatedPaymentChargebacksRequest** - List payment chargebacks with pagination +- **GetPaginatedChargebacksRequest** - List all chargebacks with pagination + +## Other Resources + +- **GetClientRequest** - Retrieve a client +- **GetPaginatedClientRequest** - List clients with pagination +- **CreateClientLinkRequest** - Create a client link +- **GetCapabilityRequest** - Retrieve a capability +- **ListCapabilitiesRequest** - List capabilities +- **GetPermissionRequest** - Retrieve a permission +- **ListPermissionsRequest** - List permissions +- **GetTerminalRequest** - Retrieve a terminal +- **GetPaginatedTerminalsRequest** - List terminals with pagination +- **GetOrganizationRequest** - Retrieve an organization +- **GetOnboardingStatusRequest** - Get onboarding status +- **GetOrganizationPartnerStatusRequest** - Get organization partner status +- **CreateConnectBalanceTransferRequest** - Create a Connect balance transfer +- **GetConnectBalanceTransferRequest** - Retrieve a Connect balance transfer +- **ListConnectBalanceTransfersRequest** - List Connect balance transfers +- **ApplePayPaymentSessionRequest** - Request Apple Pay payment session + +## Using Request Classes + +All request classes are located in the `Mollie\Api\Http\Requests` namespace. + +**Example:** +```php +use Mollie\Api\Http\Requests\CreatePaymentRequest; +use Mollie\Api\Http\Data\Money; + +$request = new CreatePaymentRequest( + description: 'Order #12345', + amount: Money::euro('10.00'), + redirectUrl: 'https://example.com/redirect', + webhookUrl: 'https://example.com/webhook' +); + +$payment = $mollie->send($request); +``` + +For detailed parameter information, use your IDE's autocomplete features, or refer to the [Official API documentation](https://docs.mollie.com/reference/overview). + +## See Also + +- [Requests Documentation](requests.md) - General information about using requests +- [Endpoint Collections](endpoint-collections.md) - Alternative way to interact with the API +- [Mollie API Reference](https://docs.mollie.com/reference/overview) - Official API documentation diff --git a/vendor/mollie/mollie-api-php/docs/requests.md b/vendor/mollie/mollie-api-php/docs/requests.md new file mode 100644 index 0000000..20d902a --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/requests.md @@ -0,0 +1,90 @@ +# Requests + +## Overview + +The Mollie API client uses request classes to communicate with the Mollie API. Each request class handles specific API endpoints and operations. The response is casted into a dedicated `Mollie\Api\Resources\*` class. + +For a complete list of available request classes, see the [Request Reference](request-reference.md). + +## Sending a Request + +To send a request using the Mollie API client, you typically need to: + +1. **Create an instance of the client**: + ```php + use Mollie\Api\MollieApiClient; + + $mollie = new MollieApiClient(); + $mollie->setApiKey('test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM'); + ``` + +2. **Create and configure the request**: + Depending on the operation, you might need to create an instance of a specific request class and configure it with necessary parameters. + +3. **Send the request**: + Use the client to send the request and handle the response. + +## Best Practices: Using Named Parameters (PHP 8.0+) + +**Recommended**: Use named parameters for cleaner, more readable code. This approach makes it clear what each parameter represents and avoids issues with optional parameters: + +```php +use Mollie\Api\MollieApiClient; +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\CreatePaymentRequest; + +$mollie = new MollieApiClient(); +$mollie->setApiKey('test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); + +// Recommended: Use named parameters (PHP 8.0+) +$createPaymentRequest = new CreatePaymentRequest( + description: 'Test payment', + amount: Money::euro('10.00'), // Using convenience method + redirectUrl: 'https://example.org/redirect', + webhookUrl: 'https://example.org/webhook', + locale: 'en_US', + metadata: ['order_id' => '123'] +); + +// In v4 the return type is inferred from the request class — no @var needed +$payment = $mollie->send($createPaymentRequest); +// $payment is Mollie\Api\Resources\Payment +``` + +## Adding unsupported properties +If the SDK is not up to date with the API, you can manually add a property to a request via the `query()` or `payload()` methods. + +```php +$someRequestUsingPayload = new SomePayloadRequest(...); +$someRequestUsingPayload->payload()->add('foo', 'bar'); + +$someRequestUsingQueryParams = new SomeQueryRequest(...); +$someRequestUsingQueryParams->query()->add('foo', 'bar'); +``` + +## Parameter Ordering Notes + +For legacy reasons, some request classes have optional parameters before required parameters in their constructors. This can trigger PHP 8+ deprecation warnings when using positional arguments. To avoid this: + +1. **Use named parameters** (recommended for PHP 8.0+): + ```php + use Mollie\Api\Http\Requests\CreatePaymentRefundRequest; + use Mollie\Api\Http\Data\Money; + + // Using named parameters avoids deprecation warnings + $request = new CreatePaymentRefundRequest( + paymentId: $paymentId, + amount: Money::euro('10.00'), + description: 'Refund description' + ); + ``` + +2. **Use factory methods** where available: + ```php + // CreatePaymentRefundRequest has a factory method with correct parameter order + $request = CreatePaymentRefundRequest::for( + $paymentId, + Money::euro('10.00'), + 'Refund description' + ); + ``` diff --git a/vendor/mollie/mollie-api-php/docs/responses.md b/vendor/mollie/mollie-api-php/docs/responses.md new file mode 100644 index 0000000..146852a --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/responses.md @@ -0,0 +1,119 @@ +# Responses + +Whether you interact with the endpoints using the traditional method (`$mollie->payments->...`) or the new `Request` classes, you can always inspect the raw `Response`. + +## Resource Hydration +By default, all responses from are automatically hydrated into the corresponding `Resource` or `ResourceCollection` objects. You can still access the raw response using the `->getResponse()` method. + +For example, when retrieving a payment you'll receive a Payment resource object, on which you can still access the raw Response class. + +```php +/** + * Legacy approach + * + * @var Mollie\Api\Resources\Payment $payment + */ +$payment = $mollie->payments->get('tr_*********'); + +/** + * New approach + * + * @var Mollie\Api\Resources\Payment $payment + */ +$payment = $mollie->send(new GetPaymentRequest('tr_*********')); + +$response = $payment->getResponse(); +``` + +`getResponse()` returns `?Response`. Resources produced by an API call always +carry a non-null `Response`. Resources hydrated from a signed webhook snapshot +return `null` (there was no HTTP call). Null-check before chaining, or use +`getOrigin()` for origin-agnostic metadata — see [`docs/webhooks.md`](webhooks.md). + +## Resource Wrappers +Sometimes it's useful to hydrate a class of your own with the information returned by the API. A wrapper can expose a subset of the resource's properties or cast them into your own objects, while retaining access to the underlying `Resource` it wraps. + +### Define a Wrapper + +```php +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Resources\Payment; +use Mollie\Api\Resources\ResourceWrapper; + +class PaymentWrapper extends ResourceWrapper +{ + public function __construct( + public Money $amount, + public ?\DateTimeImmutable $createdAt, + ) { + } + + public static function fromResource($resource): self + { + /** @var Payment $resource */ + return (new self( + amount: $resource->amount, + createdAt: $resource->createdAt === null + ? null + : new \DateTimeImmutable($resource->createdAt), + ))->setWrapped($resource); + } +} +``` + +### Usage + +Call `wrapInto()` on the request. `send()` then returns your wrapper, and PHPStan infers its type without a `@var` annotation: + +```php +use Mollie\Api\Http\Requests\GetPaymentRequest; + +$paymentWrapper = $mollie->send( + (new GetPaymentRequest('tr_*********'))->wrapInto(PaymentWrapper::class) +); +// $paymentWrapper is PaymentWrapper +``` + +PHPStan currently honors both the `@phpstan-self-out` and `@psalm-this-out` annotations, and the committed fixture guards their combined inference contract. This repository does not run Psalm, so Psalm behavior is not verified here. PhpStorm does not infer the narrowed type. + +To hydrate into a different SDK resource class first, call `hydrateInto()` before `wrapInto()`: + +```php +use Mollie\Api\Http\Requests\DynamicGetRequest; +use Mollie\Api\Http\Requests\GetPaginatedPaymentRefundsRequest; +use Mollie\Api\Resources\RefundCollection; + +// Payment::$_links is ?stdClass, and a payment only carries a `refunds` link +// when the API includes one — a payment with no refunds has neither. Guard +// both hops in one isset(), the same way Payment::refunds() does internally. +if (! isset($payment->_links->refunds->href)) { + // Fall back to the paginated endpoint, which routes by payment id. Keep + // the same hydrateInto()/wrapInto() chain as the linked branch so both + // branches hand back a RefundsWrapper, not a bare RefundCollection. + $refunds = $mollie->send( + (new GetPaginatedPaymentRefundsRequest(paymentId: $payment->id)) + ->hydrateInto(RefundCollection::class) + ->wrapInto(RefundsWrapper::class) + ); +} else { + $refunds = $mollie->send( + (new DynamicGetRequest($payment->_links->refunds->href)) + ->hydrateInto(RefundCollection::class) + ->wrapInto(RefundsWrapper::class) + ); +} +``` + +`RefundsWrapper` is an application wrapper implementing `IsWrapper`, for example by extending `ResourceWrapper` as above. Call request-specific setters first, then `hydrateInto()`, then `wrapInto()` last. Reversing the two named helpers makes static analysis report the hydration target while runtime still returns the wrapper. + +`setHydratableResource(new WrapperResource(PaymentWrapper::class))` still works, but it keeps the request's original generic type, so `send()` cannot infer the wrapper. + +The original `Payment` resource properties and methods can be accessed through the wrapper class. + +```php +// access property +$paymentWrapper->status; + +// access method +$paymentWrapper->isPaid(); +``` diff --git a/vendor/mollie/mollie-api-php/docs/retries.md b/vendor/mollie/mollie-api-php/docs/retries.md new file mode 100644 index 0000000..1e18545 --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/retries.md @@ -0,0 +1,137 @@ +# Retry strategies + +The Mollie PHP client automatically retries requests that fail with retryable network errors. You can customize how many retries are performed and how long to wait between attempts by providing a retry strategy. + +## Default behavior + +- Strategy: `LinearRetryStrategy` +- Default max retries: `5` (in addition to the initial attempt) +- Default delay: linear backoff with a 1000ms increase per attempt + - Attempt 1 (first retry): 1000ms + - Attempt 2: 2000ms + - Attempt 3: 3000ms + - … up to the configured maximum + +If all retries are exhausted, the last `Mollie\Api\Exceptions\RetryableNetworkRequestException` is thrown. Fatal middleware hooks, if configured, run once after retries are exhausted. + +## Changing the defaults + +To change the retry behavior, provide your own strategy instance to the client: + +```php +use Mollie\Api\MollieApiClient; +use Mollie\Api\Http\Retry\LinearRetryStrategy; + +$client = new MollieApiClient(); + +// Example: 2 retries with no delay (useful in tests) +$client->setRetryStrategy(new LinearRetryStrategy(2, 0)); + +// Example: 3 retries with 500ms linear increase (0.5s, 1.0s, 1.5s) +$client->setRetryStrategy(new LinearRetryStrategy(3, 500)); +``` + +To effectively disable retries, set the max retries to `0`: + +```php +$client->setRetryStrategy(new LinearRetryStrategy(0, 0)); +``` + +## Exponential backoff with 429 / Retry-After + +`ExponentialRetryStrategy` does exponential backoff with optional jitter, and additionally retries `TooManyRequestsException` (HTTP 429). A numeric `Retry-After` is honoured when it fits within `maxDelayMs`. With jitter enabled, the strategy adds up to 10% (capped at 1000ms) so throttled clients do not retry simultaneously. It never retries early: if `Retry-After` exceeds `maxDelayMs`, the exception is thrown immediately. + +```php +use Mollie\Api\Http\ExponentialRetryStrategy; + +$client->setRetryStrategy(new ExponentialRetryStrategy( + maxRetries: 5, + baseDelayMs: 500, + multiplier: 2.0, + maxDelayMs: 30_000, + jitter: true, +)); +``` + +Use this strategy when you want graceful handling of 429 rate limits — the linear strategy only retries network errors. + +### Inspecting rate-limit headers + +Every response exposes Mollie's `RateLimit` and `RateLimit-Policy` values: + +```php +$rateLimit = $response->rateLimit(); + +$rateLimit?->policy; +$rateLimit?->remaining; +$rateLimit?->restoreSeconds; +$rateLimit?->burst; +$rateLimit?->quota; +$rateLimit?->windowSeconds; +``` + +Missing headers or parameters produce `null` values. API exceptions retain their response, so the same data is available on a 429 through `$exception->getResponse()->rateLimit()`. + +## Creating your own strategy + +Custom strategies implement the `Mollie\Api\Contracts\RetryStrategyContract` interface: + +```php +namespace Mollie\Api\Contracts; + +use Throwable; + +interface RetryStrategyContract +{ + // Maximum number of retries after the initial attempt + public function maxRetries(): int; + + // Whether this exception should be retried + public function shouldRetry(Throwable $exception): bool; + + // Delay in milliseconds before performing the given retry attempt + // $attempt starts at 1 for the first retry + public function delayBeforeAttemptMs(int $attempt, ?Throwable $exception = null): int; +} +``` + +### Example: Fixed delay strategy + +```php +use Mollie\Api\Contracts\RetryStrategyContract; +use Mollie\Api\Exceptions\RetryableNetworkRequestException; +use Throwable; + +class FixedDelayRetryStrategy implements RetryStrategyContract +{ + public function __construct( + private int $maxRetries = 3, + private int $delayMs = 1000, + ) {} + + public function maxRetries(): int + { + return max(0, $this->maxRetries); + } + + public function shouldRetry(Throwable $exception): bool + { + return $exception instanceof RetryableNetworkRequestException; + } + + public function delayBeforeAttemptMs(int $attempt, ?Throwable $exception = null): int + { + // Same delay for every retry + return max(0, $this->delayMs); + } +} + +// Usage +$client->setRetryStrategy(new FixedDelayRetryStrategy(3, 250)); +``` + +You can implement any retry timing and retryability rules you prefer (e.g., exponential backoff with jitter, capped delays, retrying 429 responses, etc.) as long as you adhere to the contract. + +## When retries happen + +Retries are performed only when the configured retry strategy returns `true` from `shouldRetry()`. The default `LinearRetryStrategy` retries `Mollie\Api\Exceptions\RetryableNetworkRequestException` only, matching the v3 default behavior. `ExponentialRetryStrategy` also retries `TooManyRequestsException` for HTTP 429 responses when `Retry-After` is absent or fits within `maxDelayMs`. diff --git a/vendor/mollie/mollie-api-php/docs/testing.md b/vendor/mollie/mollie-api-php/docs/testing.md new file mode 100644 index 0000000..7d9927a --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/testing.md @@ -0,0 +1,267 @@ +# Testing with Mollie API Client + +## Test Mode Configuration + +### Key Concepts +- Test mode is automatically determined by API key prefix (`test_` or `live_`) +- Explicit `testmode` parameter available for OAuth scenarios +- Configure at global client level or per individual request + +### Global Configuration +```php +use Mollie\Api\MollieApiClient; + +$mollie = new MollieApiClient(); +$mollie->setApiKey("test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM"); +$mollie->test(true); // Applies to all subsequent requests +``` + +### Per-Request Configuration +```php +// Payment request with test mode +$createPaymentRequest = new CreatePaymentRequest(/* ... */); +$mollie->send($createPaymentRequest->test(true)); + +// Endpoint collection example +$customer = $mollie->customers->get('cust_12345678', testmode: true); +``` + +## API Mocking + +### Typed Mock Responses + +The fastest path is the typed `MockResponse` factories — they merge a fixture base with the typed overrides you pass: + +```php +use Mollie\Api\Fake\MockResponse; +use Mollie\Api\Http\Data\Money; +use Mollie\Api\Http\Requests\GetPaymentRequest; +use Mollie\Api\MollieApiClient; +use Mollie\Api\Types\PaymentStatus; + +$client = MollieApiClient::fake([ + GetPaymentRequest::class => MockResponse::payment( + id: 'tr_xxxxxxxxxxxx', + status: PaymentStatus::Paid, + amount: new Money(currency: 'EUR', value: '20.00'), + description: 'Test', + ), +]); + +$payment = $client->send(new GetPaymentRequest('tr_xxxxxxxxxxxx')); + +$client->assertSent(GetPaymentRequest::class); +``` + +Available typed factories: `payment`, `customer`, `subscription`, `mandate`, `refund`, `chargeback`, `method`, `paymentLink`, `invoice`, `capture`. Each accepts a `$overrides` array for fields not covered by named arguments. + +### Basic Usage +API responses can be simulated without network calls by using the `MollieApiClient::fake()` method. Each Request/Response pair passed to the fake method is consumed after a matching request. + +> [!NOTE] +> To keep pairs available for reuse after they've been matched, use the `retainRequests` parameter: `MollieApiClient::fake([...], retainRequests: true)` + +```php +use Mollie\Api\MollieApiClient; +use Mollie\Api\Fake\MockResponse; +use Mollie\Api\Http\Requests\GetPaymentRequest; + +$client = MollieApiClient::fake([ + GetPaymentRequest::class => new MockResponse( + body: [ + 'resource' => 'payment', + 'id' => 'tr_xxxxxxxxxxxx', + 'mode' => 'test', + 'amount' => [ + 'value' => '20.00', + 'currency' => 'EUR' + ], + 'description' => 'Test', + 'status' => 'open', + // ... + ], + status: 200 + ) +]); + +$payment = $client->send(new GetPaymentRequest('tr_xxxxxxxxxxxx')); +``` + +### Sequence Mock Responses +To return different responses for the same request type, use `SequenceMockResponse` and pass `MockResponse` or `Closure` (which return `MockResponse` instances) in the order they should occur. + +```php +$client = MollieApiClient::fake([ + DynamicGetRequest::class => new SequenceMockResponse( + MockResponse::ok(['first' => 'response']), + MockResponse::ok(['second' => 'response']), + function (PendingRequest $pendingRequest) { + //... + + return MockResponse::ok(['third' => 'response']); + } + ) +]); +``` + +To verify that a request was sent, use `assertSent` or `assertSentCount`. + +```php +$client->send(new GetPaymentRequest('tr_xxxxxxxxxxxx', embedRefunds: true)); + +$client->assertSent(GetPaymentRequest::class); +$client->assertSent(function (PendingRequest $pendingRequest, Response $response) { + return $pendingRequest->query()->get('embed') === 'refunds'; +}); + +$client->assertSentCount(1); +``` + +### MockResponse Options +Configure responses using: +- **Arrays**: Direct data structure +- **Strings**: JSON payloads or predefined fixture names +- **Callables**: Dynamic response generation *or* intercepting assertions + +```php +// Array response +MockResponse::created([ + 'id' => 'tr_xxxxxxxxxxxx', + 'amount' => ['value' => '20.00', 'currency' => 'EUR'] +]); + +// Fixture response +MockResponse::created('payment'); + +// Dynamic response +MockResponse::created(function (PendingRequest $request) { + return ['amount' => $request->hasParameter('amount') ? 10 : 20]; +}); + +// Intercepting assertions +function (PendingRequest $request) use ($idempotencyKey) { + $this->assertEquals($idempotencyKey, $request->headers()->get('Idempotency-Key')); + + return MockResponse::created('payment'); +}; +``` + +### Working with Collections +Create paginated list responses: + +```php +use Mollie\Api\Resources\PaymentCollection; + +$client = MollieApiClient::fake([ + GetPaginatedPaymentsRequest::class => MockResponse::list(PaymentCollection::class) + ->add([ + 'resource' => 'payment', + 'id' => 'tr_xxxxxxxxxxxx', + 'mode' => 'test', + 'amount' => [ + 'value' => '20.00', + 'currency' => 'EUR' + ], + 'description' => 'Test', + 'status' => 'open', + // ... + ]) + ->create() +]); +``` + +### Handling Embedded Resources +Simulate HAL+JSON embedded resources using the `_embedded` property: + +**Key Concepts** +- Use `MockResponse::resource()` to start building a resource response +- Chain `embed()` calls to add related collections +- Maintain resource relationships with a fluent interface + +```php +use Mollie\Api\Resources\Payment; +use Mollie\Api\Resources\RefundCollection; +use Mollie\Api\Resources\ChargebackCollection; + +$client = MollieApiClient::fake([ + GetPaymentRequest::class => MockResponse::resource(Payment::class) + ->with([ // Main resource properties + 'resource' => 'payment', + 'id' => 'tr_xxxxxxxxxxxx', + 'amount' => [ + 'value' => '20.00', + 'currency' => 'EUR' + ] + ]) + ->embed(RefundCollection::class) // First embedded collection + ->add([ + 'resource' => 'refund', + 'id' => 're_12345', + 'amount' => [ + 'value' => '10.00', + 'currency' => 'EUR' + ] + ]) + ->embed(ChargebackCollection::class) // Second embedded collection + ->add([ + 'resource' => 'chargeback', + 'id' => 'chb_12345', + 'amount' => [ + 'value' => '20.00', + 'currency' => 'EUR' + ] + ]) + ->create() +]); + +// Resulting response will contain: +// - Payment details in main body +// - Refunds in _embedded.refunds +// - Chargebacks in _embedded.chargebacks +``` + +### Error Response Mocking +Simulate API error responses using dedicated helper methods or the generic error builder: + +**Common Error Shortcuts** +```php +use Mollie\Api\Fake\MockResponse; + +// 404 Not Found +$client = MollieApiClient::fake([ + GetPaymentRequest::class => MockResponse::notFound('No payment exists with token tr_xxxxxxxxxxx') +]); + +// 422 Validation Error (with optional field reference) +$client = MollieApiClient::fake([ + CreatePaymentRequest::class => MockResponse::unprocessableEntity( + detail: 'Amount must be at least €1.00', + field: 'amount' + ) +]); +``` + +**Generic Error Builder** +```php +// Custom status code example +$response = MockResponse::error( + status: 403, + title: 'Forbidden', + detail: 'Insufficient permissions to access this resource' +); + +// Special characters handling +$detail = 'Invalid parameter "recurringType" - did you mean "sequenceType"?'; +$response = MockResponse::unprocessableEntity($detail, 'field'); +``` + +**Error Response Structure** +All errors follow Mollie's standardized format: +```json +{ + "status": 404, + "title": "Not Found", + "detail": "No payment exists with token tr_xxxxxxxxxxx", + "field": "amount" // Only present for validation errors +} +``` diff --git a/vendor/mollie/mollie-api-php/docs/webhooks.md b/vendor/mollie/mollie-api-php/docs/webhooks.md new file mode 100644 index 0000000..983f08e --- /dev/null +++ b/vendor/mollie/mollie-api-php/docs/webhooks.md @@ -0,0 +1,257 @@ +# Webhooks + +Mollie uses webhooks to notify your application about events that occur in your Mollie account. This guide explains how to work with Mollie webhooks in your application securely and efficiently. Mollie currently supports two types of webhooks: the (soon to be labeled) "legacy webhooks" and "next-gen webhooks". This guide is about the next-gen webhooks. + +## Overview + +Webhooks are HTTP POST requests that Mollie sends to your application when specific events occur, such as when a payment is completed, failed, or refunded. This allows your application to respond to these events in real-time without constantly polling the Mollie API. + +## Security + +### Signature Verification + +**Important**: Always verify webhook signatures to ensure requests come from Mollie and haven't been tampered with. + +Mollie signs all webhook requests with an HMAC-SHA256 signature sent in the `X-Mollie-Signature` header. The SDK provides built-in signature verification: + +```php +use Mollie\Api\Webhooks\SignatureValidator; +use Mollie\Api\Exceptions\InvalidSignatureException; + +$signingSecret = "your_webhook_signing_secret_from_dashboard"; + +try { + $validator = new SignatureValidator($signingSecret); + + /** + * Validate the webhook signature + * + * This method will throw an InvalidSignatureException if: + * - A signature header is present but doesn't contain a valid signature + * - The payload has been tampered with + * + * For PSR-7 requests, you can also use validateRequest($psr7Request) + */ + $isValid = $validator->validatePayload($requestBody, $signature); + + if (!$isValid) { + // Handle invalid signature + http_response_code(400); + exit('Invalid signature'); + } + + // Signature is valid - proceed with webhook processing + +} catch (InvalidSignatureException $e) { + // Log the invalid signature attempt for security monitoring + error_log("Invalid webhook signature: " . $e->getMessage()); + http_response_code(400); + exit('Invalid signature'); +} +``` + +#### Key Rotation + +During key rotation or migration periods, you can verify signatures against multiple secrets: + +```php +$signingSecrets = [ + "current_secret", + "previous_secret" // Keep old secret during transition period +]; + +$validator = new SignatureValidator($signingSecrets); +$isValid = $validator->validatePayload($requestBody, $signature); +``` + +### Processing Webhook Payloads + +Once you've verified the webhook signature, you can safely process the payload: + +```php +use Mollie\Api\Webhooks\Events\BalanceTransactionCreated; +use Mollie\Api\Webhooks\Events\PaymentLinkPaid; +use Mollie\Api\Webhooks\WebhookEventMapper; + +// Process the webhook payload into an event object. Pass the signature +// (when available) so the resulting resource carries webhook provenance +// — see "Inspecting webhook provenance" below. +$event = (new WebhookEventMapper())->processPayload( + $request->getParsedBody(), + $signature, +); + +// Extract the entity ID (e.g., payment ID, customer ID, etc.) +$entityId = $event->entityData('id'); + +// Hydrate the embedded entity snapshot into a fully typed SDK resource. +// No HTTP call is made — the signed webhook payload is the source of truth. +// If you subscribe to "simple" payloads (entityId only), the $event->entity +// property is null and calling $event->entity() throws. Check the property +// first, or fetch the resource yourself via its Get request using +// $event->entityId. +$resource = $event->asResource($mollie); + +// Handle different event types +match (true) { + $event instanceof PaymentLinkPaid => $this->handlePaymentLinkPaid(), + $event instanceof BalanceTransactionCreated => $this->handleBalanceTransactionCreated(), + // ... handle other event types +}; +``` + +#### Using custom webhook Events +If the API is ahead of this SDK's implementation of new Events, you can create your own Events as temporary workaround and pass it into the `WebhookEventMapper` + +```php +// Event class +use Mollie\Api\Webhooks\Events\BaseEvent; + +class SomeEventHappened extends BaseEvent +{ + public static function type(): string + { + return 'some.event_happened'; // needs to match the eventType from the documentation + } +} + +// passing into event mapper and processing payload +$event = (new WebhookEventMapper([ + 'some.event_happened' => SomeEventHappened::class +]))->processPayload($request->getParsedBody()); +``` + +### Inspecting webhook provenance + +Resources hydrated from a webhook carry a `WebhookSnapshotOrigin` instead +of an HTTP `Response`. You can inspect the event metadata without hitting +the API: + +```php +$resource = $event->asResource($mollie); + +$resource->getResponse(); // null — there was no HTTP call +$resource->getOrigin(); // WebhookSnapshotOrigin +$resource->getOrigin()->getEventId(); // 'event_GvJ8WHrp5isUdRub9CJyH' +$resource->getOrigin()->getSignature(); // the X-Mollie-Signature header, or null +$resource->getOrigin()->getReceivedAt(); // DateTimeImmutable +``` + +Resources fetched via the API (for example via `$mollie->send(new +GetPaymentRequest(...))`) still return a `Response` from `getResponse()` +as before. + +Follow-up methods like `$payment->refunds()`, `$profile->methods()`, and +`$subscription->payments()` work the same on webhook-origin resources +as they do on HTTP-origin resources. When the embedded snapshot carries +the link URL, the SDK follows it; when it does not, the SDK routes the +request through the connector using the resource's id. Either way, the +call fires real HTTP to Mollie, which means a valid API key must be +configured on the client. A webhook handler running without an API key +is limited to reading the signed snapshot itself — there is no path +that lets the SDK reach Mollie without credentials. + +### Reading from the snapshot vs. fetching fresh data + +A complete handler usually combines both. The signed snapshot is enough +to make decisions. When you need data the snapshot doesn't carry +(related resources, the very latest server state), fall back to the +API. The API fallback requires a valid key on the client — the snapshot +path does not. + +```php +use Mollie\Api\Exceptions\InvalidSignatureException; +use Mollie\Api\MollieApiClient; +use Mollie\Api\Webhooks\Events\PaymentLinkPaid; +use Mollie\Api\Webhooks\SignatureValidator; +use Mollie\Api\Webhooks\WebhookEventMapper; + +$mollie = new MollieApiClient; +$mollie->setApiKey(getenv('MOLLIE_API_KEY')); // only needed for the fetch path + +$signingSecret = getenv('MOLLIE_WEBHOOK_SIGNING_SECRET'); +$requestBody = (string) $request->getBody(); +$signature = $request->getHeaderLine('X-Mollie-Signature'); + +try { + if (! (new SignatureValidator($signingSecret))->validatePayload($requestBody, $signature)) { + http_response_code(400); + exit('Invalid signature'); + } +} catch (InvalidSignatureException $e) { + error_log("Invalid webhook signature: " . $e->getMessage()); + http_response_code(400); + exit('Invalid signature'); +} + +$event = (new WebhookEventMapper)->processPayload( + json_decode($requestBody, true), + $signature, +); + +if (! $event instanceof PaymentLinkPaid) { + // Not the event we care about — ack and return. + http_response_code(200); + return; +} + +// 1. Snapshot path: no HTTP, no API key required. +// asResource() is typed as BaseResource, so narrow it for static analysis. +/** @var \Mollie\Api\Resources\PaymentLink $paymentLink */ +$paymentLink = $event->asResource($mollie); + +// PaymentLink::$amount is ?Money. An open-amount link never carried a fixed +// amount, so there is nothing on the link itself to record — the amount that +// was actually charged only exists on the payment that settled it (step 2). +$amount = $paymentLink->amount; + +if ($amount === null) { + markOpenAmountOrderPaid( + orderId: $paymentLink->id, + paidAt: $event->createdAt, + ); +} else { + markOrderPaid( + orderId: $paymentLink->id, + amount: $amount->value, + paidAt: $event->createdAt, + ); +} + +// 2. Fetch path: fires HTTP, needs the API key configured above. +// $paymentLink->payments() follows the link from the snapshot when +// present, otherwise routes through $mollie->paymentLinkPayments. +foreach ($paymentLink->payments() as $payment) { + reconcilePaymentLine($paymentLink->id, $payment); +} + +http_response_code(200); +``` + +If your webhook handler runs without an API key (signing-secret-only +deployment), remove the `setApiKey()` call and skip step 2 — you can +still do everything in step 1 from the signed payload alone. + +### Testing Webhooks + +Testing webhooks is crucial to ensure your application handles all event types correctly. The SDK provides several tools to help you test webhook scenarios. + +Use `MockEvent` to create realistic webhook payloads for testing: + +```php +use Mollie\Api\Fake\MockEvent; +use Mollie\Api\Webhooks\Events\PaymentLinkPaid; +use Mollie\Api\Webhooks\Events\BalanceTransactionCreated; + +// Create a mock PaymentLinkPaid event +$paymentLinkEventPayload = MockEvent::for(PaymentLinkPaid::class) + ->entityId('pl_1234567890') + ->snapshot() // Include full resource data + ->create(); + +// Create a mock BalanceTransactionCreated event +$balanceEventPayload = MockEvent::for(BalanceTransactionCreated::class) + ->entityId('bt_9876543210') + ->simple() // Webhook request without any resource data besides entityId + ->create(); +``` diff --git a/vendor/mollie/mollie-api-php/src/CompatibilityChecker.php b/vendor/mollie/mollie-api-php/src/CompatibilityChecker.php new file mode 100644 index 0000000..5a752a5 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/CompatibilityChecker.php @@ -0,0 +1,69 @@ +satisfiesPhpVersion()) { + throw new IncompatiblePlatformException( + 'The client requires PHP version >= '.self::MIN_PHP_VERSION.', you have '.PHP_VERSION.'.', + IncompatiblePlatformException::INCOMPATIBLE_PHP_VERSION + ); + } + + if (! $this->satisfiesJsonExtension()) { + throw new IncompatiblePlatformException( + "PHP extension json is not enabled. Please make sure to enable 'json' in your PHP configuration.", + IncompatiblePlatformException::INCOMPATIBLE_JSON_EXTENSION + ); + } + } + + /** + * @return bool + * + * @codeCoverageIgnore + */ + public function satisfiesPhpVersion() + { + return (bool) version_compare(PHP_VERSION, self::MIN_PHP_VERSION, '>='); + } + + /** + * @return bool + * + * @codeCoverageIgnore + */ + public function satisfiesJsonExtension() + { + // Check by extension_loaded + if (function_exists('extension_loaded') && extension_loaded('json')) { + return true; + } elseif (function_exists('json_encode')) { + return true; + } + + return false; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Config.php b/vendor/mollie/mollie-api-php/src/Config.php new file mode 100644 index 0000000..4b9c7e7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Config.php @@ -0,0 +1,47 @@ +getOrigin()` to inspect provenance across both cases. + */ + public function getResponse(): ?Response; + + /** + * @return $this + */ + public function setResponse(Response $response); +} diff --git a/vendor/mollie/mollie-api-php/src/Contracts/IsWrapper.php b/vendor/mollie/mollie-api-php/src/Contracts/IsWrapper.php new file mode 100644 index 0000000..f7258af --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Contracts/IsWrapper.php @@ -0,0 +1,18 @@ +send((new GetBalanceRequest($id))->test($testmode)); + } + + /** + * Retrieve the primary balance from Mollie. + * + * Will throw an ApiException if the balance id is invalid or the resource cannot be found. + * + * @param bool|array $testmode + * + * @throws RequestException + */ + public function primary($testmode = false): Balance + { + /** @var Balance */ + return $this->get('primary', $testmode); + } + + /** + * Get the balance endpoint. + */ + public function page(?string $from = null, ?int $limit = null, array $filters = []): BalanceCollection + { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $query = SortablePaginatedQueryFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send((new GetPaginatedBalanceRequest( + $query->from, + $query->limit, + $query->sort, + ))->test($testmode)); + } + + /** + * Create an iterator for iterating over balances retrieved from Mollie. + * + * @param string $from The first Balance ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iterator(?string $from = null, ?int $limit = null, array $filters = [], bool $iterateBackwards = false): LazyCollection + { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $query = SortablePaginatedQueryFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + (new GetPaginatedBalanceRequest( + $query->from, + $query->limit, + $query->sort, + )) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/BalanceReportEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/BalanceReportEndpointCollection.php new file mode 100644 index 0000000..9604349 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/BalanceReportEndpointCollection.php @@ -0,0 +1,51 @@ +withQuery($query) + ->create(); + + /** @var BalanceReport */ + return $this->send($request->test($testmode)); + } + + /** + * Retrieve the primary balance. + * This is the balance of your account’s primary currency, where all payments are settled to by default. + * + * @throws \Mollie\Api\Exceptions\RequestException + */ + public function getForPrimary(array $query = []): ?BalanceReport + { + return $this->getForId('primary', $query); + } + + /** + * Retrieve a balance report for the provided balance resource and parameters. + * + * @throws \Mollie\Api\Exceptions\RequestException + */ + public function getFor(Balance $balance, array $query = []): ?BalanceReport + { + return $this->getForId($balance->id, $query); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/BalanceTransactionEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/BalanceTransactionEndpointCollection.php new file mode 100644 index 0000000..13900fa --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/BalanceTransactionEndpointCollection.php @@ -0,0 +1,106 @@ +pageForId($balance->id, $query, $testmode); + } + + /** + * List the transactions for the primary Balance. + * + * @throws RequestException + */ + public function pageForPrimary(array $query = [], bool $testmode = false): BalanceTransactionCollection + { + /** @var BalanceTransactionCollection */ + return $this->pageForId('primary', $query, $testmode); + } + + /** + * List the transactions for a specific Balance ID. + * + * @throws RequestException + */ + public function pageForId(string $balanceId, array $query = [], bool $testmode = false): BalanceTransactionCollection + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + + $query = PaginatedQueryFactory::new() + ->withQuery($query) + ->create(); + + /** @var BalanceTransactionCollection */ + return $this->send((new GetPaginatedBalanceTransactionRequest( + $balanceId, + $query->from, + $query->limit, + ))->test($testmode)); + } + + /** + * Create an iterator for iterating over balance transactions for the given balance retrieved from Mollie. + * + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorFor(Balance $balance, array $query = [], bool $iterateBackwards = false, bool $testmode = false): LazyCollection + { + return $this->iteratorForId($balance->id, $query, $iterateBackwards, $testmode); + } + + /** + * Create an iterator for iterating over transactions for the primary balance retrieved from Mollie. + * + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + * @param bool|null $testmode Passing null is deprecated; null is treated as false. + */ + public function iteratorForPrimary(array $query = [], bool $iterateBackwards = false, ?bool $testmode = null): LazyCollection + { + $testmode ??= false; + + return $this->iteratorForId('primary', $query, $iterateBackwards, $testmode); + } + + /** + * Create an iterator for iterating over balance transactions for the given balance id retrieved from Mollie. + * + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorForId(string $balanceId, array $query = [], bool $iterateBackwards = false, bool $testmode = false): LazyCollection + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + + $query = PaginatedQueryFactory::new() + ->withQuery($query) + ->create(); + + return $this->send( + (new GetPaginatedBalanceTransactionRequest( + $balanceId, + $query->from, + $query->limit, + )) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/CapabilityEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/CapabilityEndpointCollection.php new file mode 100644 index 0000000..81cf944 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/CapabilityEndpointCollection.php @@ -0,0 +1,38 @@ +send((new GetCapabilityRequest($name))); + } + + /** + * Retrieve all capabilities from Mollie. + * + * @throws RequestException + */ + public function list(): CapabilityCollection + { + /** @var CapabilityCollection */ + return $this->send(new ListCapabilitiesRequest); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/ChargebackEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/ChargebackEndpointCollection.php new file mode 100644 index 0000000..524b6bb --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/ChargebackEndpointCollection.php @@ -0,0 +1,64 @@ +withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + /** @var ChargebackCollection */ + return $this->send($request->test($testmode)); + } + + /** + * Create an iterator for iterating over chargeback retrieved from Mollie. + * + * @param string $from The first chargevback ID you want to include in your list. + * @param array $filters + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iterator(?string $from = null, ?int $limit = null, $filters = [], bool $iterateBackwards = false): LazyCollection + { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $request = GetPaginatedChargebacksRequestFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/ClientEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/ClientEndpointCollection.php new file mode 100644 index 0000000..439a397 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/ClientEndpointCollection.php @@ -0,0 +1,79 @@ +withQuery($query) + ->create(); + + /** @var Client */ + return $this->send($request); + } + + /** + * Retrieves a page of clients from Mollie. + * + * @param string $from The first client ID you want to include in your list. + * + * @throws RequestException + */ + public function page(?string $from = null, ?int $limit = null, array $filters = []): ClientCollection + { + $request = GetPaginatedClientRequestFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + /** @var ClientCollection */ + return $this->send($request); + } + + /** + * Create an iterator for iterating over clients retrieved from Mollie. + * + * @param string $from The first client ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iterator(?string $from = null, ?int $limit = null, array $filters = [], bool $iterateBackwards = false): LazyCollection + { + $request = GetPaginatedClientRequestFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/ClientLinkEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/ClientLinkEndpointCollection.php new file mode 100644 index 0000000..b184983 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/ClientLinkEndpointCollection.php @@ -0,0 +1,29 @@ +withPayload($payload) + ->create(); + + /** @var ClientLink */ + return $this->send($request); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/ConnectBalanceTransferEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/ConnectBalanceTransferEndpointCollection.php new file mode 100644 index 0000000..a320974 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/ConnectBalanceTransferEndpointCollection.php @@ -0,0 +1,93 @@ +withPayload($payload) + ->create(); + + /** @var ConnectBalanceTransfer */ + return $this->send($request->test($test)); + } + + /** + * Retrieve a Connect balance transfer from Mollie. + * + * Will throw an ApiException if the balance transfer id is invalid or the resource cannot be found. + * + * @throws RequestException + */ + public function get(string $id, bool $test = false): ConnectBalanceTransfer + { + /** @var ConnectBalanceTransfer */ + return $this->send((new GetConnectBalanceTransferRequest($id))->test($test)); + } + + /** + * Retrieves a collection of Connect balance transfers from Mollie. + * + * @throws RequestException + */ + public function page( + ?string $from = null, + ?int $limit = null, + ?string $sort = null + ): ConnectBalanceTransferCollection { + $request = new ListConnectBalanceTransfersRequest( + $from, + $limit, + $sort + ); + + /** @var ConnectBalanceTransferCollection */ + return $this->send($request); + } + + /** + * Create an iterator for iterating over Connect balance transfers retrieved from Mollie. + * + * @param string|null $from The first balance transfer ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iterator( + ?string $from = null, + ?int $limit = null, + ?string $sort = null, + bool $iterateBackwards = false, + bool $test = false + ): LazyCollection { + $request = new ListConnectBalanceTransfersRequest( + $from, + $limit, + $sort + ); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($test) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/CustomerEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/CustomerEndpointCollection.php new file mode 100644 index 0000000..55a266b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/CustomerEndpointCollection.php @@ -0,0 +1,124 @@ +withPayload($data) + ->create(); + + /** @var Customer */ + return $this->send($request->test($testmode)); + } + + /** + * Retrieve a single customer from Mollie. + * + * Will throw a ApiException if the customer id is invalid or the resource cannot be found. + * + * @param bool|array $testmode + * + * @throws RequestException + */ + public function get(string $id, $testmode = false): Customer + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + /** @var Customer */ + return $this->send((new GetCustomerRequest($id))->test($testmode)); + } + + /** + * Update a specific Customer resource. + * + * Will throw an ApiException if the customer id is invalid or the resource cannot be found. + * + * @throws RequestException + */ + public function update(string $id, array $data = []): ?Customer + { + $request = UpdateCustomerRequestFactory::new($id) + ->withPayload($data) + ->create(); + + /** @var null|Customer */ + return $this->send($request); + } + + /** + * Deletes the given Customer. + * + * Will throw a ApiException if the customer id is invalid or the resource cannot be found. + * Returns with HTTP status No Content (204) if successful. + * + * @param bool|array $testmode + * + * @throws RequestException + */ + public function delete(string $id, $testmode = false): void + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + $this->send((new DeleteCustomerRequest($id))->test($testmode)); + } + + /** + * Retrieves a collection of Customers from Mollie. + * + * @param string $from The first customer ID you want to include in your list. + * @param bool|array $testmode + * + * @throws RequestException + */ + public function page(?string $from = null, ?int $limit = null, $testmode = false): CustomerCollection + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + /** @var CustomerCollection */ + return $this->send((new GetPaginatedCustomerRequest($from, $limit))->test($testmode)); + } + + /** + * Create an iterator for iterating over customers retrieved from Mollie. + * + * @param string $from The first customer ID you want to include in your list. + * @param bool|array $testmode + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iterator(?string $from = null, ?int $limit = null, $testmode = false, bool $iterateBackwards = false): LazyCollection + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + return $this->send( + (new GetPaginatedCustomerRequest($from, $limit)) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/CustomerPaymentsEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/CustomerPaymentsEndpointCollection.php new file mode 100644 index 0000000..2108ce6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/CustomerPaymentsEndpointCollection.php @@ -0,0 +1,121 @@ +createForId($customer->id, $payload, $query, $testmode); + } + + /** + * Create a subscription for a Customer ID + * + * @throws RequestException + */ + public function createForId(string $customerId, array $payload = [], array $query = [], bool $testmode = false): Payment + { + $testmode = Utility::extractBool($payload, 'testmode', $testmode); + + $request = CreateCustomerPaymentRequestFactory::new($customerId) + ->withPayload($payload) + ->withQuery($query) + ->create(); + + /** @var Payment */ + return $this->send($request->test($testmode)); + } + + /** + * @param string $from The first resource ID you want to include in your list. + * + * @throws RequestException + */ + public function pageFor(Customer $customer, ?string $from = null, ?int $limit = null, array $filters = []): PaymentCollection + { + return $this->pageForId($customer->id, $from, $limit, $filters); + } + + /** + * @param string $from The first resource ID you want to include in your list. + * + * @throws RequestException + */ + public function pageForId(string $customerId, ?string $from = null, ?int $limit = null, array $filters = []): PaymentCollection + { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $request = GetPaginatedCustomerPaymentsRequestFactory::new($customerId) + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send($request->test($testmode)); + } + + /** + * Create an iterator for iterating over payments for the given customer, retrieved from Mollie. + * + * @param string $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorFor( + Customer $customer, + ?string $from = null, + ?int $limit = null, + array $parameters = [], + bool $iterateBackwards = false + ): LazyCollection { + return $this->iteratorForId($customer->id, $from, $limit, $parameters, $iterateBackwards); + } + + /** + * Create an iterator for iterating over payments for the given customer id, retrieved from Mollie. + * + * @param string $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorForId( + string $customerId, + ?string $from = null, + ?int $limit = null, + array $filters = [], + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($filters, 'testmode', false); + $request = GetPaginatedCustomerPaymentsRequestFactory::new($customerId) + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/EndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/EndpointCollection.php new file mode 100644 index 0000000..236e9f2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/EndpointCollection.php @@ -0,0 +1,26 @@ +connector = $connector; + } + + /** + * @return mixed + */ + protected function send(Request $request) + { + return $this->connector->send($request); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/InvoiceEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/InvoiceEndpointCollection.php new file mode 100644 index 0000000..ca1d63e --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/InvoiceEndpointCollection.php @@ -0,0 +1,72 @@ +send(new GetInvoiceRequest($invoiceId)); + } + + /** + * Retrieves a collection of Invoices from Mollie. + * + * @param string|null $from The first invoice ID you want to include in your list. + * + * @throws RequestException + */ + public function page(?string $from = null, ?int $limit = null, array $filters = []): InvoiceCollection + { + $request = GetPaginatedInvoiceRequestFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + /** @var InvoiceCollection */ + return $this->send($request); + } + + /** + * Create an iterator for iterating over invoices retrieved from Mollie. + * + * @param string|null $from The first invoice ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iterator(?string $from = null, ?int $limit = null, array $filters = [], bool $iterateBackwards = false): LazyCollection + { + $request = GetPaginatedInvoiceRequestFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/MandateEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/MandateEndpointCollection.php new file mode 100644 index 0000000..9ba0693 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/MandateEndpointCollection.php @@ -0,0 +1,177 @@ +createForId($customer->id, $payload, $testmode); + } + + /** + * Creates a mandate for a specific customer ID. + * + * + * @throws RequestException + */ + public function createForId(string $customerId, array $payload = [], bool $testmode = false): Mandate + { + $testmode = Utility::extractBool($payload, 'testmode', $testmode); + + $request = CreateMandateRequestFactory::new($customerId) + ->withPayload($payload) + ->create(); + + /** @var Mandate */ + return $this->send($request->test($testmode)); + } + + /** + * Retrieve a specific mandate for a customer. + * + * + * @throws RequestException + */ + public function getFor(Customer $customer, string $mandateId, array $parameters = []): Mandate + { + return $this->getForId($customer->id, $mandateId, $parameters); + } + + /** + * Retrieve a specific mandate for a customer ID. + * + * @param bool|array $testmode + * + * @throws RequestException + */ + public function getForId(string $customerId, string $mandateId, $testmode = false): Mandate + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + /** @var Mandate */ + return $this->send((new GetMandateRequest($customerId, $mandateId))->test($testmode)); + } + + /** + * Revoke a mandate for a specific customer. + * + * + * @throws RequestException + */ + public function revokeFor(Customer $customer, string $mandateId, $data = []): void + { + $this->revokeForId($customer->id, $mandateId, $data); + } + + /** + * Revoke a mandate for a specific customer ID. + * + * @param bool|array $testmode + * + * @throws RequestException + */ + public function revokeForId(string $customerId, string $mandateId, $testmode = false): void + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + $this->send((new RevokeMandateRequest($customerId, $mandateId))->test($testmode)); + } + + /** + * Retrieves a collection of mandates for the given customer. + * + * @param string $from The first mandate ID you want to include in your list. + * @param bool|array $testmode + * @param string[]|null $scopes Filter mandates by their scope. See \Mollie\Api\Types\MandateQuery. + * + * @throws RequestException + */ + public function pageFor(Customer $customer, ?string $from = null, ?int $limit = null, $testmode = false, ?array $scopes = null): MandateCollection + { + return $this->pageForId($customer->id, $from, $limit, $testmode, $scopes); + } + + /** + * Retrieves a collection of mandates for the given customer ID. + * + * @param string $from The first mandate ID you want to include in your list. + * @param bool|array $testmode + * @param string[]|null $scopes Filter mandates by their scope. See \Mollie\Api\Types\MandateQuery. + * + * @throws RequestException + */ + public function pageForId(string $customerId, ?string $from = null, ?int $limit = null, $testmode = false, ?array $scopes = null): MandateCollection + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + /** @var MandateCollection */ + return $this->send( + (new GetPaginatedMandateRequest($customerId, $from, $limit, $scopes))->test($testmode) + ); + } + + /** + * Create an iterator for iterating over mandates for the given customer. + * + * @param string $from The first mandate ID you want to include in your list. + * @param bool|array $testmode + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + * @param string[]|null $scopes Filter mandates by their scope. See \Mollie\Api\Types\MandateQuery. + */ + public function iteratorFor( + Customer $customer, + ?string $from = null, + ?int $limit = null, + $testmode = false, + bool $iterateBackwards = false, + ?array $scopes = null + ): LazyCollection { + return $this->iteratorForId($customer->id, $from, $limit, $testmode, $iterateBackwards, $scopes); + } + + /** + * Create an iterator for iterating over mandates for the given customer ID. + * + * @param string $from The first mandate ID you want to include in your list. + * @param bool|array $testmode + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + * @param string[]|null $scopes Filter mandates by their scope. See \Mollie\Api\Types\MandateQuery. + */ + public function iteratorForId( + string $customerId, + ?string $from = null, + ?int $limit = null, + $testmode = false, + bool $iterateBackwards = false, + ?array $scopes = null + ): LazyCollection { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + return $this->send( + (new GetPaginatedMandateRequest($customerId, $from, $limit, $scopes)) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/MethodEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/MethodEndpointCollection.php new file mode 100644 index 0000000..d304c11 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/MethodEndpointCollection.php @@ -0,0 +1,82 @@ +withQuery($query) + ->create(); + + /** @var MethodCollection */ + return $this->send($request); + } + + /** + * Retrieve all enabled methods for the organization. + * In test mode, this includes pending methods. + * The results are not paginated. + * + * @throws RequestException + */ + public function allEnabled(array $query = [], bool $testmode = false): MethodCollection + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + + $request = GetEnabledMethodsRequestFactory::new() + ->withQuery($query) + ->create(); + + /** @var MethodCollection */ + return $this->send($request->test($testmode)); + } + + /** + * @deprecated Use allEnabled() instead + * + * @throws RequestException + */ + public function allActive($query = [], bool $testmode = false): MethodCollection + { + return $this->allEnabled($query, $testmode); + } + + /** + * Retrieve a payment method from Mollie. + * + * Will throw an ApiException if the method id is invalid or the resource cannot be found. + * + * @throws RequestException + */ + public function get(string $methodId, $query = [], bool $testmode = false): Method + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + + $request = GetMethodRequestFactory::new($methodId) + ->withQuery($query) + ->create(); + + /** @var Method */ + return $this->send($request->test($testmode)); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/MethodIssuerEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/MethodIssuerEndpointCollection.php new file mode 100644 index 0000000..fd1b472 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/MethodIssuerEndpointCollection.php @@ -0,0 +1,33 @@ +send(new EnableMethodIssuerRequest($profileId, $methodId, $issuerId, $contractId)); + } + + /** + * Disable an issuer for a specific payment method. + * + * @throws RequestException + */ + public function disable(string $profileId, string $methodId, string $issuerId): void + { + $this->send(new DisableMethodIssuerRequest($profileId, $methodId, $issuerId)); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/OnboardingEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/OnboardingEndpointCollection.php new file mode 100644 index 0000000..e5e2edb --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/OnboardingEndpointCollection.php @@ -0,0 +1,16 @@ +send(new GetOnboardingStatusRequest); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/OrganizationEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/OrganizationEndpointCollection.php new file mode 100644 index 0000000..aa01a50 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/OrganizationEndpointCollection.php @@ -0,0 +1,55 @@ +send((new GetOrganizationRequest($id))->test($testmode)); + } + + /** + * Retrieve the current organization from Mollie. + * + * @param bool|array $testmode + * + * @throws RequestException + */ + public function current($testmode = false): Organization + { + /** @var Organization */ + return $this->get('me', $testmode); + } + + /** + * Retrieve the partner status of the current organization. + * + * @throws RequestException + */ + public function partnerStatus(): Partner + { + return $this->send(new GetOrganizationPartnerStatusRequest); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/OrganizationPartnerEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/OrganizationPartnerEndpointCollection.php new file mode 100644 index 0000000..09407d1 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/OrganizationPartnerEndpointCollection.php @@ -0,0 +1,19 @@ +send(new GetOrganizationPartnerStatusRequest); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentCaptureEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentCaptureEndpointCollection.php new file mode 100644 index 0000000..7450ac2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentCaptureEndpointCollection.php @@ -0,0 +1,138 @@ +createForId($payment->id, $payload, $testmode); + } + + /** + * Creates a payment capture in Mollie. + * + * @throws RequestException + */ + public function createForId(string $paymentId, array $payload = [], bool $testmode = false): Capture + { + $testmode = Utility::extractBool($payload, 'testmode', $testmode); + + $request = CreatePaymentCaptureRequestFactory::new($paymentId) + ->withPayload($payload) + ->create(); + + /** @var Capture */ + return $this->send($request->test($testmode)); + } + + /** + * @throws RequestException + */ + public function getFor(Payment $payment, string $captureId, array $query = [], bool $testmode = false): Capture + { + return $this->getForId($payment->id, $captureId, $query, $testmode); + } + + /** + * @throws RequestException + */ + public function getForId(string $paymentId, string $captureId, array $query = [], bool $testmode = false): Capture + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + + $request = GetPaymentCaptureRequestFactory::new($paymentId, $captureId) + ->withQuery($query) + ->create(); + + /** @var Capture */ + return $this->send($request->test($testmode)); + } + + /** + * @throws RequestException + */ + public function pageFor(Payment $payment, array $query = [], bool $testmode = false): CaptureCollection + { + return $this->pageForId($payment->id, $query, $testmode); + } + + /** + * @throws RequestException + */ + public function pageForId(string $paymentId, array $query = [], bool $testmode = false): CaptureCollection + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + + $request = GetPaginatedPaymentCapturesRequestFactory::new($paymentId) + ->withQuery($query) + ->create(); + + /** @var CaptureCollection */ + return $this->send($request->test($testmode)); + } + + /** + * Create an iterator for iterating over captures for the given payment, retrieved from Mollie. + * + * @param string $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorFor( + Payment $payment, + ?string $from = null, + ?int $limit = null, + array $parameters = [], + bool $iterateBackwards = false + ): LazyCollection { + return $this->iteratorForId($payment->id, $from, $limit, $parameters, $iterateBackwards); + } + + /** + * Create an iterator for iterating over captures for the given payment id, retrieved from Mollie. + * + * @param string $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorForId( + string $paymentId, + ?string $from = null, + ?int $limit = null, + array $filters = [], + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $request = GetPaginatedPaymentCapturesRequestFactory::new($paymentId) + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentChargebackEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentChargebackEndpointCollection.php new file mode 100644 index 0000000..4fd0bea --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentChargebackEndpointCollection.php @@ -0,0 +1,110 @@ +getForId($payment->id, $chargebackId, $query, $testmode); + } + + /** + * @throws RequestException + */ + public function getForId(string $paymentId, string $chargebackId, array $query = [], bool $testmode = false): Chargeback + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + + $request = GetPaymentChargebackRequestFactory::new($paymentId, $chargebackId) + ->withQuery($query) + ->create(); + + /** @var Chargeback */ + return $this->send($request->test($testmode)); + } + + /** + * @throws RequestException + */ + public function pageFor(Payment $payment, array $query = []): ChargebackCollection + { + return $this->pageForId($payment->id, $query); + } + + /** + * @throws RequestException + */ + public function pageForId(string $paymentId, array $query = [], bool $testmode = false): ChargebackCollection + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + + $request = GetPaginatedPaymentChargebacksRequestFactory::new($paymentId) + ->withQuery($query) + ->create(); + + /** @var ChargebackCollection */ + return $this->send($request->test($testmode)); + } + + /** + * Create an iterator for iterating over chargebacks for the given payment, retrieved from Mollie. + * + * @param string $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorFor( + Payment $payment, + ?string $from = null, + ?int $limit = null, + array $parameters = [], + bool $iterateBackwards = false + ): LazyCollection { + return $this->iteratorForId($payment->id, $from, $limit, $parameters, $iterateBackwards); + } + + /** + * Create an iterator for iterating over chargebacks for the given payment id, retrieved from Mollie. + * + * @param string $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorForId( + string $paymentId, + ?string $from = null, + ?int $limit = null, + array $filters = [], + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $request = GetPaginatedPaymentChargebacksRequestFactory::new($paymentId) + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentEndpointCollection.php new file mode 100644 index 0000000..c6fbdaf --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentEndpointCollection.php @@ -0,0 +1,201 @@ +withQuery($query) + ->create(); + + return $this->send($request->test($testmode)); + } + + /** + * Creates a payment in Mollie. + * + * @param array $payload An array containing details on the payment. + * @param array $query An array of strings or a single string containing the details to include. + * + * @throws RequestException + */ + public function create(array $payload = [], array $query = [], bool $testmode = false): Payment + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + + $request = CreatePaymentRequestFactory::new() + ->withPayload($payload) + ->withQuery($query) + ->create(); + + /** @var Payment */ + return $this->send($request->test($testmode)); + } + + /** + * Update the given Payment. + * + * Will throw a ApiException if the payment id is invalid or the resource cannot be found. + * + * @throws RequestException + */ + public function update(string $id, array $data = [], bool $testmode = false): ?Payment + { + $testmode = Utility::extractBool($data, 'testmode', $testmode); + + $request = UpdatePaymentRequestFactory::new($id) + ->withPayload($data) + ->create(); + + /** @var null|Payment */ + return $this->send($request->test($testmode)); + } + + /** + * Deletes the given Payment. + * + * Will throw a ApiException if the payment id is invalid or the resource cannot be found. + * Returns with HTTP status No Content (204) if successful. + * + * @throws RequestException + */ + public function delete(string $id, $data = []): Payment + { + return $this->cancel($id, $data); + } + + /** + * Cancel the given Payment. This is just an alias of the 'delete' method. + * + * Will throw a ApiException if the payment id is invalid or the resource cannot be found. + * Returns with HTTP status No Content (204) if successful. + * + * @param array|bool $testmode + * + * @throws RequestException + */ + public function cancel(string $id, $testmode = false): Payment + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + /** @var Payment */ + return $this->send((new CancelPaymentRequest($id))->test($testmode)); + } + + /** + * Issue a refund for the given payment. + * + * The $data parameter may either be an array of endpoint + * parameters, or an instance of CreateRefundPaymentData. + * + * + * @throws RequestException + */ + public function refund(Payment $payment, array $payload = [], bool $testmode = false): Refund + { + $testmode = Utility::extractBool($payload, 'testmode', $testmode); + + $request = CreatePaymentRefundRequestFactory::new($payment->id) + ->withPayload($payload) + ->create(); + + return $this->send($request->test($testmode)); + } + + /** + * Release the authorization for the given payment. + * + * @param Payment|string $paymentId + * @return AnyResource|Response + * + * @throws RequestException + */ + public function releaseAuthorization($paymentId) + { + $paymentId = $paymentId instanceof Payment ? $paymentId->id : $paymentId; + + return $this->send(new ReleasePaymentAuthorizationRequest($paymentId)); + } + + /** + * Get the balance endpoint. + */ + public function page(?string $from = null, ?int $limit = null, array $filters = []): PaymentCollection + { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $query = SortablePaginatedQueryFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send((new GetPaginatedPaymentsRequest( + $query->from, + $query->limit, + $query->sort, + ))->test($testmode)); + } + + /** + * Create an iterator for iterating over payments retrieved from Mollie. + * + * @param string $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iterator(?string $from = null, ?int $limit = null, array $filters = [], bool $iterateBackwards = false): LazyCollection + { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $query = SortablePaginatedQueryFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + (new GetPaginatedPaymentsRequest( + $query->from, + $query->limit, + $query->sort, + )) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentLinkEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentLinkEndpointCollection.php new file mode 100644 index 0000000..83c3576 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentLinkEndpointCollection.php @@ -0,0 +1,117 @@ +withPayload($payload) + ->create(); + + /** @var PaymentLink */ + return $this->send($request->test($testmode)); + } + + /** + * Retrieve a payment link from Mollie. + * + * Will throw an ApiException if the payment link id is invalid or the resource cannot be found. + * + * @param bool|array $testmode + * + * @throws RequestException + */ + public function get(string $paymentLinkId, $testmode = false): PaymentLink + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + /** @var PaymentLink */ + return $this->send((new GetPaymentLinkRequest($paymentLinkId))->test($testmode)); + } + + /** + * Update a Payment Link. + * + * @throws RequestException + */ + public function update(string $paymentLinkId, array $payload = [], bool $testmode = false): PaymentLink + { + $request = UpdatePaymentLinkRequestFactory::new($paymentLinkId) + ->withPayload($payload) + ->create(); + + /** @var PaymentLink */ + return $this->send($request->test($testmode)); + } + + /** + * Delete a Payment Link. + * + * @throws RequestException + */ + public function delete(string $paymentLinkId, bool $testmode = false): void + { + $this->send((new DeletePaymentLinkRequest($paymentLinkId))->test($testmode)); + } + + /** + * Retrieves a collection of Payment Links from Mollie. + * + * @param string|null $from The first payment link ID you want to include in your list. + * @param bool|array $testmode + * + * @throws RequestException + */ + public function page(?string $from = null, ?int $limit = null, $testmode = false): PaymentLinkCollection + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + /** @var PaymentLinkCollection */ + return $this->send( + (new GetPaginatedPaymentLinksRequest($from, $limit)) + ->test($testmode) + ); + } + + /** + * Create an iterator for iterating over payment links retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iterator( + ?string $from = null, + ?int $limit = null, + bool $testmode = false, + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + return $this->send( + (new GetPaginatedPaymentLinksRequest($from, $limit)) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentLinkPaymentEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentLinkPaymentEndpointCollection.php new file mode 100644 index 0000000..e208de8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentLinkPaymentEndpointCollection.php @@ -0,0 +1,103 @@ +pageForId($paymentLink->id, $from, $limit, $filters); + } + + /** + * Retrieves a collection of Payments from Mollie for the given Payment Link ID. + * + * @param string|null $from The first payment ID you want to include in your list. + * + * @throws RequestException + */ + public function pageForId(string $paymentLinkId, ?string $from = null, ?int $limit = null, array $filters = []): PaymentCollection + { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $query = SortablePaginatedQueryFactory::new([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ])->create(); + + /** @var PaymentCollection */ + return $this->send( + (new GetPaginatedPaymentLinkPaymentsRequest($paymentLinkId, $query->from, $query->limit, $query->sort)) + ->test($testmode) + ); + } + + /** + * Create an iterator for iterating over payments associated with the provided Payment Link object, retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorFor( + PaymentLink $paymentLink, + ?string $from = null, + ?int $limit = null, + array $filters = [], + bool $iterateBackwards = false + ): LazyCollection { + return $this->iteratorForId( + $paymentLink->id, + $from, + $limit, + $filters, + $iterateBackwards + ); + } + + /** + * Create an iterator for iterating over payments associated with the provided Payment Link id, retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorForId( + string $paymentLinkId, + ?string $from = null, + ?int $limit = null, + array $filters = [], + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $query = SortablePaginatedQueryFactory::new([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ])->create(); + + return $this->send( + (new GetPaginatedPaymentLinkPaymentsRequest($paymentLinkId, $query->from, $query->limit, $query->sort)) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentRefundEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentRefundEndpointCollection.php new file mode 100644 index 0000000..492f8ae --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentRefundEndpointCollection.php @@ -0,0 +1,169 @@ +createForId($payment->id, $data, $testmode); + } + + /** + * Creates a refund for a specific payment. + * + * @param bool|array $testmode + * + * @throws \Mollie\Api\Exceptions\RequestException + */ + public function createForId(string $paymentId, array $payload = [], $testmode = false): Refund + { + $testmode = Utility::extractBool($payload, 'testmode', false) ?: + Utility::extractBool($testmode, 'testmode', false); + + $request = CreatePaymentRefundRequestFactory::new($paymentId) + ->withPayload($payload) + ->create(); + + return $this->send($request->test($testmode)); + } + + /** + * @throws \Mollie\Api\Exceptions\RequestException + */ + public function getFor(Payment $payment, string $refundId, array $parameters = [], bool $testmode = false): Refund + { + return $this->getForId($payment->id, $refundId, $parameters, $testmode); + } + + /** + * @throws \Mollie\Api\Exceptions\RequestException + */ + public function getForId(string $paymentId, string $refundId, array $query = [], bool $testmode = false): Refund + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + + $request = GetPaymentRefundRequestFactory::new($paymentId, $refundId) + ->withQuery($query) + ->create(); + + /** @var Refund */ + return $this->send($request->test($testmode)); + } + + /** + * @param array|bool $testmode + * @return null + * + * @throws \Mollie\Api\Exceptions\RequestException + */ + public function cancelForPayment(Payment $payment, string $refundId, $testmode = false) + { + return $this->cancelForId($payment->id, $refundId, $testmode); + } + + /** + * @param array|bool $testmode + * @return null + * + * @throws \Mollie\Api\Exceptions\RequestException + */ + public function cancelForId(string $paymentId, string $refundId, $testmode = false) + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + return $this->send((new CancelPaymentRefundRequest($paymentId, $refundId))->test($testmode)); + } + + /** + * @throws \Mollie\Api\Exceptions\RequestException + */ + public function pageForId(string $paymentId, ?string $from = null, ?int $limit = null, array $filters = []): RefundCollection + { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $request = GetPaginatedPaymentRefundsRequestFactory::new($paymentId) + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send($request->test($testmode)); + } + + /** + * @throws \Mollie\Api\Exceptions\RequestException + */ + public function pageFor(Payment $payment, ?string $from = null, ?int $limit = null, array $filters = []): RefundCollection + { + return $this->pageForId($payment->id, $from, $limit, $filters); + } + + /** + * Create an iterator for iterating over refunds for the given payment, retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorFor( + Payment $payment, + ?string $from = null, + ?int $limit = null, + array $parameters = [], + bool $iterateBackwards = false + ): LazyCollection { + return $this->iteratorForId($payment->id, $from, $limit, $parameters, $iterateBackwards); + } + + /** + * Create an iterator for iterating over refunds for the given payment id, retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorForId( + string $paymentId, + ?string $from = null, + ?int $limit = null, + array $filters = [], + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $request = GetPaginatedPaymentRefundsRequestFactory::new($paymentId) + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentRouteEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentRouteEndpointCollection.php new file mode 100644 index 0000000..4c2d367 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/PaymentRouteEndpointCollection.php @@ -0,0 +1,100 @@ +createForId($payment->id, $amount, $destination, $releaseDate, $testmode); + } + + /** + * Create a delayed route for a payment using payment ID. + * + * @throws RequestException + */ + public function createForId(string $paymentId, array $amount, array $destination, ?string $releaseDate = null, bool $testmode = false): Route + { + $payload = [ + 'amount' => $amount, + 'destination' => $destination, + ]; + + $request = CreateDelayedPaymentRouteRequestFactory::new($paymentId) + ->withPayload($payload) + ->create(); + + /** @var Route */ + return $this->send($request->test($testmode)); + } + + /** + * List payment routes for a payment. + * + * @throws RequestException + */ + public function listFor(Payment $payment, bool $testmode = false): RouteCollection + { + return $this->listForId($payment->id, $testmode); + } + + /** + * List payment routes for a payment using payment ID. + * + * @throws RequestException + */ + public function listForId(string $paymentId, bool $testmode = false): RouteCollection + { + $request = new ListPaymentRoutesRequest($paymentId); + + /** @var RouteCollection */ + return $this->send($request->test($testmode)); + } + + /** + * Update the release date for a payment route. + * + * @param string $releaseDate UTC datetime in ISO-8601 format when the funds will become available + * + * @throws RequestException + */ + public function updateReleaseDateFor(Payment $payment, string $routeId, string $releaseDate, bool $testmode = false): Route + { + return $this->updateReleaseDateForId($payment->id, $routeId, $releaseDate, $testmode); + } + + /** + * Update the release date for a payment route using payment ID. + * + * @param string $releaseDate UTC datetime when the funds will become available + * + * @throws RequestException + */ + public function updateReleaseDateForId(string $paymentId, string $routeId, string $releaseDate, bool $testmode = false): Route + { + $request = UpdatePaymentRouteRequestFactory::new($paymentId, $routeId) + ->withPayload([ + 'releaseDate' => $releaseDate, + ]) + ->create(); + + /** @var Route */ + return $this->send($request->test($testmode)); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/PayoutEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/PayoutEndpointCollection.php new file mode 100644 index 0000000..a3d78b1 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/PayoutEndpointCollection.php @@ -0,0 +1,138 @@ +withPayload($payload) + ->create(); + + /** @var Payout */ + return $this->send($request->test($testmode)); + } + + /** + * Retrieve a payout from Mollie. + * + * Will throw an ApiException if the payout id is invalid or the resource cannot be found. + * + * @param string $id The payout ID. + * @param bool $testmode Set to true to retrieve the payout in test mode. + * + * @throws RequestException + */ + public function get(string $id, bool $testmode = false): Payout + { + /** @var Payout */ + return $this->send((new GetPayoutRequest($id))->test($testmode)); + } + + /** + * Cancel the given payout. + * + * Will throw an ApiException if the payout id is invalid, the resource cannot be found, or the payout can no longer be canceled. + * + * @param string $id The payout ID. + * @param bool $testmode Set to true to cancel the payout in test mode. + * + * @throws RequestException + */ + public function cancel(string $id, bool $testmode = false): Payout + { + /** @var Payout */ + return $this->send((new CancelPayoutRequest($id))->test($testmode)); + } + + /** + * Retrieves a collection of payouts from Mollie. + * + * @param string|null $from The first payout ID you want to include in your list. + * @param int|null $limit The maximum number of payouts to return. + * @param array $filters An array of filters, such as "balanceId", "sort", and "testmode". + * + * @throws RequestException + */ + public function page(?string $from = null, ?int $limit = null, array $filters = []): PayoutCollection + { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $query = SortablePaginatedQueryFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + $request = new GetPaginatedPayoutsRequest( + $query->from, + $query->limit, + $query->sort, + $filters['balanceId'] ?? null + ); + + /** @var PayoutCollection */ + return $this->send($request->test($testmode)); + } + + /** + * Create an iterator for iterating over payouts retrieved from Mollie. + * + * @param string|null $from The first payout ID you want to include in your list. + * @param int|null $limit The maximum number of payouts to return per page. + * @param array $filters An array of filters, such as "balanceId", "sort", and "testmode". + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + * + * @throws RequestException + */ + public function iterator(?string $from = null, ?int $limit = null, array $filters = [], bool $iterateBackwards = false): LazyCollection + { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $query = SortablePaginatedQueryFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + $request = new GetPaginatedPayoutsRequest( + $query->from, + $query->limit, + $query->sort, + $filters['balanceId'] ?? null + ); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/PermissionEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/PermissionEndpointCollection.php new file mode 100644 index 0000000..b8364d3 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/PermissionEndpointCollection.php @@ -0,0 +1,43 @@ +send((new GetPermissionRequest($permissionId))->test($testmode)); + } + + /** + * Retrieve all permissions from Mollie. + * + * @throws RequestException + */ + public function list(): PermissionCollection + { + /** @var PermissionCollection */ + return $this->send(new ListPermissionsRequest); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/ProfileEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/ProfileEndpointCollection.php new file mode 100644 index 0000000..bcc3954 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/ProfileEndpointCollection.php @@ -0,0 +1,128 @@ +withPayload($payload) + ->create(); + + /** @var Profile */ + return $this->send($request); + } + + /** + * Retrieve a Profile from Mollie. + * + * Will throw an ApiException if the profile id is invalid or the resource cannot be found. + * + * @param bool|array $testmode + * @return Profile|CurrentProfile + * + * @throws RequestException + */ + public function get(string $profileId, $testmode = false): Profile + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + /** @var Profile */ + return $this->send((new GetProfileRequest($profileId))->test($testmode)); + } + + /** + * Retrieve the current Profile from Mollie. + * + * @param bool|array $testmode + * + * @throws RequestException + */ + public function getCurrent($testmode = false): CurrentProfile + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + /** @var CurrentProfile */ + return $this->send((new GetCurrentProfileRequest)->test($testmode)); + } + + /** + * Update a specific Profile resource. + * + * @throws RequestException + */ + public function update(string $profileId, array $payload = []): ?Profile + { + $request = UpdateProfileRequestFactory::new($profileId) + ->withPayload($payload) + ->create(); + + /** @var Profile|null */ + return $this->send($request); + } + + /** + * Delete a Profile from Mollie. + * + * Will throw a ApiException if the profile id is invalid or the resource cannot be found. + * Returns with HTTP status No Content (204) if successful. + * + * @throws RequestException + */ + public function delete(string $profileId): void + { + $this->send(new DeleteProfileRequest($profileId)); + } + + /** + * Retrieves a collection of Profiles from Mollie. + * + * @param string|null $from The first profile ID you want to include in your list. + * + * @throws RequestException + */ + public function page(?string $from = null, ?int $limit = null): ProfileCollection + { + /** @var ProfileCollection */ + return $this->send(new GetPaginatedProfilesRequest($from, $limit)); + } + + /** + * Create an iterator for iterating over profiles retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iterator( + ?string $from = null, + ?int $limit = null, + bool $iterateBackwards = false + ): LazyCollection { + return $this->send( + (new GetPaginatedProfilesRequest($from, $limit)) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/ProfileMethodEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/ProfileMethodEndpointCollection.php new file mode 100644 index 0000000..7e040d1 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/ProfileMethodEndpointCollection.php @@ -0,0 +1,155 @@ +enableForId($profileId, $id); + } + + /** + * Enable a method for the provided Profile object. + * Alias of enableFor for backwards compatibility. + * + * @throws RequestException + */ + public function createFor(Profile $profile, string $id): Method + { + return $this->enableFor($profile, $id); + } + + /** + * Enable a method for the current profile. + * Alias of enable for backwards compatibility. + * + * @throws RequestException + */ + public function createForCurrentProfile(string $id): Method + { + return $this->enable($id); + } + + /** + * Enable a payment method for a specific profile. + * + * @param string $profileId The profile's ID or 'me' for the current profile + * @param string $id The payment method ID + * + * @throws RequestException + */ + public function enableForId(string $profileId, string $id): Method + { + /** @var Method */ + return $this->send(new EnableMethodRequest($profileId, $id)); + } + + /** + * Enable a payment method for the provided Profile object. + * + * @param string $id The payment method ID + * + * @throws RequestException + */ + public function enableFor(Profile $profile, string $id): Method + { + return $this->enableForId($profile->id, $id); + } + + /** + * Enable a payment method for the current profile. + * + * @param string $id The payment method ID + * + * @throws RequestException + */ + public function enable(string $id): Method + { + return $this->enableForId('me', $id); + } + + /** + * Disable a method for the provided Profile ID. + * Alias of disableForId for backwards compatibility. + * + * @throws RequestException + */ + public function deleteForId(string $profileId, string $id): void + { + $this->disableForId($profileId, $id); + } + + /** + * Disable a method for the provided Profile object. + * Alias of disableFor for backwards compatibility. + * + * @throws RequestException + */ + public function deleteFor(Profile $profile, string $id): void + { + $this->disableFor($profile, $id); + } + + /** + * Disable a method for the current profile. + * Alias of disable for backwards compatibility. + * + * @throws RequestException + */ + public function deleteForCurrentProfile(string $id): void + { + $this->disable($id); + } + + /** + * Disable a payment method for a specific profile. + * + * @param string $profileId The profile's ID or 'me' for the current profile + * @param string $id The payment method ID + * + * @throws RequestException + */ + public function disableForId(string $profileId, string $id): void + { + $this->send(new DisableMethodRequest($profileId, $id)); + } + + /** + * Disable a payment method for the provided Profile object. + * + * @param string $id The payment method ID + * + * @throws RequestException + */ + public function disableFor(Profile $profile, string $id): void + { + $this->disableForId($profile->id, $id); + } + + /** + * Disable a payment method for the current profile. + * + * @param string $id The payment method ID + * + * @throws RequestException + */ + public function disable(string $id): void + { + $this->disableForId('me', $id); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/RefundEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/RefundEndpointCollection.php new file mode 100644 index 0000000..bb95357 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/RefundEndpointCollection.php @@ -0,0 +1,67 @@ +withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + /** @var RefundCollection */ + return $this->send($request->test($testmode)); + } + + /** + * Create an iterator for iterating over refunds retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iterator( + ?string $from = null, + ?int $limit = null, + array $filters = [], + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $request = GetPaginatedRefundsRequestFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/SalesInvoiceEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/SalesInvoiceEndpointCollection.php new file mode 100644 index 0000000..e90bf37 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/SalesInvoiceEndpointCollection.php @@ -0,0 +1,94 @@ +send(new GetSalesInvoiceRequest($id)); + } + + /** + * Creates a SalesInvoice in Mollie. + * + * @throws RequestException + */ + public function create(array $payload = []): SalesInvoice + { + $request = CreateSalesInvoiceRequestFactory::new() + ->withPayload($payload) + ->create(); + + return $this->send($request); + } + + /** + * Update a specific SalesInvoice resource. + * + * @throws RequestException + */ + public function update(string $id, array $payload = []): ?SalesInvoice + { + $request = UpdateSalesInvoiceRequestFactory::new($id) + ->withPayload($payload) + ->create(); + + return $this->send($request); + } + + /** + * Delete a SalesInvoice from Mollie. + * + * @throws RequestException + */ + public function delete(string $id): void + { + $this->send(new DeleteSalesInvoiceRequest($id)); + } + + /** + * Retrieves a collection of SalesInvoices from Mollie. + * + * @throws RequestException + */ + public function page(?string $from = null, ?int $limit = null): SalesInvoiceCollection + { + return $this->send(new GetPaginatedSalesInvoicesRequest($from, $limit)); + } + + /** + * Create an iterator for iterating over sales invoices retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iterator( + ?string $from = null, + ?int $limit = null, + bool $iterateBackwards = false + ): LazyCollection { + return $this->send( + (new GetPaginatedSalesInvoicesRequest($from, $limit)) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/SessionEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/SessionEndpointCollection.php new file mode 100644 index 0000000..fce627c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/SessionEndpointCollection.php @@ -0,0 +1,39 @@ +send(new GetSessionRequest($sessionId)); + } + + /** + * Creates a session in Mollie. + * + * @throws RequestException + */ + public function create(array $payload = []): Session + { + $request = CreateSessionRequestFactory::new() + ->withPayload($payload) + ->create(); + + /** @var Session */ + return $this->send($request); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementCaptureEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementCaptureEndpointCollection.php new file mode 100644 index 0000000..05f41e3 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementCaptureEndpointCollection.php @@ -0,0 +1,89 @@ +pageForId($settlement->id, $query, $testmode); + } + + /** + * Retrieves a collection of Settlement Captures from Mollie. + * + * @throws RequestException + */ + public function pageForId(string $settlementId, array $query = [], bool $testmode = false): CaptureCollection + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + + $request = GetPaginatedSettlementCapturesRequestFactory::new($settlementId) + ->withQuery($query) + ->create(); + + /** @var CaptureCollection */ + return $this->send($request->test($testmode)); + } + + /** + * Create an iterator for iterating over captures for the given settlement, retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorFor( + Settlement $settlement, + ?string $from = null, + ?int $limit = null, + array $parameters = [], + bool $iterateBackwards = false + ): LazyCollection { + return $this->iteratorForId($settlement->id, $from, $limit, $parameters, $iterateBackwards); + } + + /** + * Create an iterator for iterating over captures for the given settlement id, retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorForId( + string $settlementId, + ?string $from = null, + ?int $limit = null, + array $filters = [], + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $request = GetPaginatedSettlementCapturesRequestFactory::new($settlementId) + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementChargebackEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementChargebackEndpointCollection.php new file mode 100644 index 0000000..632bfb0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementChargebackEndpointCollection.php @@ -0,0 +1,89 @@ +pageForId($settlement->id, $query, $testmode); + } + + /** + * Retrieves a collection of Settlement Chargebacks from Mollie. + * + * @throws RequestException + */ + public function pageForId(string $settlementId, array $query = [], bool $testmode = false): ChargebackCollection + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + + $request = GetPaginatedSettlementChargebacksRequestFactory::new($settlementId) + ->withQuery($query) + ->create(); + + /** @var ChargebackCollection */ + return $this->send($request->test($testmode)); + } + + /** + * Create an iterator for iterating over chargebacks for the given settlement, retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorFor( + Settlement $settlement, + ?string $from = null, + ?int $limit = null, + array $parameters = [], + bool $iterateBackwards = false + ): LazyCollection { + return $this->iteratorForId($settlement->id, $from, $limit, $parameters, $iterateBackwards); + } + + /** + * Create an iterator for iterating over chargebacks for the given settlement id, retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iteratorForId( + string $settlementId, + ?string $from = null, + ?int $limit = null, + array $filters = [], + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $request = GetPaginatedSettlementChargebacksRequestFactory::new($settlementId) + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementEndpointCollection.php new file mode 100644 index 0000000..7da6e10 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementEndpointCollection.php @@ -0,0 +1,85 @@ +send(new GetSettlementRequest($settlementId)); + } + + /** + * Retrieve the details of the current settlement that has not yet been paid out. + * + * @throws RequestException + */ + public function next(): Settlement + { + return $this->send(new GetSettlementRequest('next')); + } + + /** + * Retrieve the details of the open balance of the organization. + * + * @throws RequestException + */ + public function open(): Settlement + { + return $this->send(new GetSettlementRequest('open')); + } + + /** + * Retrieves a collection of Settlements from Mollie. + * + * @throws RequestException + */ + public function page(?string $from = null, ?int $limit = null, array $filters = []): SettlementCollection + { + $request = GetPaginatedSettlementsRequestFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send($request); + } + + /** + * Create an iterator for iterating over settlements retrieved from Mollie. + */ + public function iterator(?string $from = null, ?int $limit = null, array $filters = [], bool $iterateBackwards = false): LazyCollection + { + $request = GetPaginatedSettlementsRequestFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementPaymentEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementPaymentEndpointCollection.php new file mode 100644 index 0000000..5138ca0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementPaymentEndpointCollection.php @@ -0,0 +1,87 @@ +pageForId($settlement->id, $query, $testmode); + } + + /** + * Retrieves a collection of Settlement Payments from Mollie. + * + * @throws RequestException + */ + public function pageForId(string $settlementId, array $query = [], bool $testmode = false): PaymentCollection + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + $query = SortablePaginatedQueryFactory::new($query)->create(); + + return $this->send( + (new GetPaginatedSettlementPaymentsRequest( + $settlementId, + $query->from, + $query->limit, + $query->sort + )) + ->test($testmode) + ); + } + + /** + * Create an iterator for iterating over payments for the given settlement, retrieved from Mollie. + */ + public function iteratorFor( + Settlement $settlement, + ?string $from = null, + ?int $limit = null, + array $parameters = [], + bool $iterateBackwards = false + ): LazyCollection { + return $this->iteratorForId($settlement->id, $from, $limit, $parameters, $iterateBackwards); + } + + public function iteratorForId( + string $settlementId, + ?string $from = null, + ?int $limit = null, + array $parameters = [], + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($parameters, 'testmode', false); + $query = SortablePaginatedQueryFactory::new([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $parameters, + ])->create(); + + return $this->send( + (new GetPaginatedSettlementPaymentsRequest( + $settlementId, + $query->from, + $query->limit, + $query->sort + )) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementRefundEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementRefundEndpointCollection.php new file mode 100644 index 0000000..fdb7937 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/SettlementRefundEndpointCollection.php @@ -0,0 +1,82 @@ +pageForId($settlement->id, $query, $testmode); + } + + /** + * Retrieves a collection of Settlement Refunds from Mollie. + * + * @throws RequestException + */ + public function pageForId(string $settlementId, array $query = [], bool $testmode = false): RefundCollection + { + $testmode = Utility::extractBool($query, 'testmode', $testmode); + + $request = GetPaginatedSettlementRefundsQueryFactory::new($settlementId) + ->withQuery($query) + ->create(); + + return $this->send($request->test($testmode)); + } + + /** + * Create an iterator for iterating over refunds for the given settlement, retrieved from Mollie. + */ + public function iteratorFor( + Settlement $settlement, + ?string $from = null, + ?int $limit = null, + array $parameters = [], + bool $iterateBackwards = false + ): LazyCollection { + return $this->iteratorForId($settlement->id, $from, $limit, $parameters, $iterateBackwards); + } + + /** + * Create an iterator for iterating over refunds for the given settlement id, retrieved from Mollie. + */ + public function iteratorForId( + string $settlementId, + ?string $from = null, + ?int $limit = null, + array $filters = [], + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $request = GetPaginatedSettlementRefundsQueryFactory::new($settlementId) + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/SubscriptionEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/SubscriptionEndpointCollection.php new file mode 100644 index 0000000..2a0718e --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/SubscriptionEndpointCollection.php @@ -0,0 +1,211 @@ +getForId($customer->id, $subscriptionId, $testmode); + } + + /** + * Retrieve a single subscription from Mollie. + * + * @param bool|array $testmode + * + * @throws RequestException + */ + public function getForId(string $customerId, string $subscriptionId, $testmode = false): Subscription + { + $testmode = Utility::extractBool($testmode, 'testmode'); + + return $this->send((new GetSubscriptionRequest($customerId, $subscriptionId))->test($testmode)); + } + + /** + * Creates a subscription for a Customer in Mollie. + * + * @throws RequestException + */ + public function createFor(Customer $customer, array $payload = [], bool $testmode = false): Subscription + { + return $this->createForId($customer->id, $payload, $testmode); + } + + /** + * Creates a subscription for a Customer in Mollie. + * + * @throws RequestException + */ + public function createForId(string $customerId, array $payload = [], bool $testmode = false): Subscription + { + $testmode = Utility::extractBool($payload, 'testmode', $testmode); + + $request = CreateSubscriptionRequestFactory::new($customerId) + ->withPayload($payload) + ->create(); + + return $this->send($request->test($testmode)); + } + + /** + * Update the given Subscription. + * + * @throws RequestException + */ + public function update(string $customerId, string $subscriptionId, array $payload = [], bool $testmode = false): ?Subscription + { + $testmode = Utility::extractBool($payload, 'testmode', $testmode); + + $request = UpdateSubscriptionRequestFactory::new($customerId, $subscriptionId) + ->withPayload($payload) + ->create(); + + return $this->send($request->test($testmode)); + } + + /** + * Cancel the given Subscription. + * + * @throws RequestException + */ + public function cancelFor(Customer $customer, string $subscriptionId, bool $testmode = false): Subscription + { + return $this->cancelForId($customer->id, $subscriptionId, $testmode); + } + + /** + * Cancel the given Subscription. + * + * @throws RequestException + */ + public function cancelForId(string $customerId, string $subscriptionId, bool $testmode = false): Subscription + { + return $this->send((new CancelSubscriptionRequest($customerId, $subscriptionId))->test($testmode)); + } + + /** + * Retrieve a page of subscriptions from Mollie. + * + * @throws RequestException + */ + public function pageFor(Customer $customer, ?string $from = null, ?int $limit = null, array $filters = []): SubscriptionCollection + { + return $this->pageForId($customer->id, $from, $limit, $filters); + } + + /** + * Retrieve a page of subscriptions from Mollie. + * + * @throws RequestException + */ + public function pageForId(string $customerId, ?string $from = null, ?int $limit = null, array $filters = []): SubscriptionCollection + { + $testmode = Utility::extractBool($filters, 'testmode', false); + + return $this->send((new GetPaginatedSubscriptionsRequest($customerId, $from, $limit))->test($testmode)); + } + + /** + * Create an iterator for iterating over subscriptions for the given customer, retrieved from Mollie. + */ + public function iteratorFor( + Customer $customer, + ?string $from = null, + ?int $limit = null, + array $filters = [], + bool $iterateBackwards = false + ): LazyCollection { + return $this->iteratorForId($customer->id, $from, $limit, $filters, $iterateBackwards); + } + + /** + * Create an iterator for iterating over subscriptions for the given customer id, retrieved from Mollie. + */ + public function iteratorForId( + string $customerId, + ?string $from = null, + ?int $limit = null, + array $filters = [], + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($filters, 'testmode', false); + + return $this->send( + (new GetPaginatedSubscriptionsRequest($customerId, $from, $limit)) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } + + public function allFor(?string $from = null, ?int $limit = null, array $filters = []): SubscriptionCollection + { + return $this->allForId($from, $limit, $filters); + } + + public function allForId( + ?string $from = null, + ?int $limit = null, + array $filters = [] + ): SubscriptionCollection { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $request = GetAllPaginatedSubscriptionsRequestFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send($request->test($testmode)); + } + + public function iteratorForAll( + ?string $from = null, + ?int $limit = null, + array $filters = [], + bool $iterateBackwards = true + ): LazyCollection { + $testmode = Utility::extractBool($filters, 'testmode', false); + + $request = GetAllPaginatedSubscriptionsRequestFactory::new() + ->withQuery([ + 'from' => $from, + 'limit' => $limit, + 'filters' => $filters, + ]) + ->create(); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/SubscriptionPaymentEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/SubscriptionPaymentEndpointCollection.php new file mode 100644 index 0000000..31a9ba8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/SubscriptionPaymentEndpointCollection.php @@ -0,0 +1,91 @@ +pageForIds($subscription->customerId, $subscription->id, $from, $limit, $testmode); + } + + /** + * Retrieves a paginated collection of Subscription Payments from Mollie. + * + * @param string|null $from The first payment ID you want to include in your list. + * @param int|null $limit The maximum amount of results you want to retrieve per page. + * @param bool|array $testmode + * + * @throws RequestException + */ + public function pageForIds( + string $customerId, + string $subscriptionId, + ?string $from = null, + ?int $limit = null, + $testmode = false + ): PaymentCollection { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + return $this->send( + (new GetPaginatedSubscriptionPaymentsRequest($customerId, $subscriptionId, $from, $limit)) + ->test($testmode) + ); + } + + /** + * Create an iterator for iterating over payments for the given subscription, retrieved from Mollie. + * + * @param bool|array $testmode + */ + public function iteratorFor( + Subscription $subscription, + ?string $from = null, + ?int $limit = null, + $testmode = false, + bool $iterateBackwards = false + ): LazyCollection { + return $this->iteratorForIds($subscription->customerId, $subscription->id, $from, $limit, $testmode, $iterateBackwards); + } + + /** + * Create an iterator for iterating over payments for the given subscription ID, retrieved from Mollie. + * + * @param bool|array $testmode + */ + public function iteratorForIds( + string $customerId, + string $subscriptionId, + ?string $from = null, + ?int $limit = null, + $testmode = false, + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + return $this->send( + (new GetPaginatedSubscriptionPaymentsRequest($customerId, $subscriptionId, $from, $limit)) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/TerminalEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/TerminalEndpointCollection.php new file mode 100644 index 0000000..e287f4b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/TerminalEndpointCollection.php @@ -0,0 +1,72 @@ +send((new GetTerminalRequest($id))->test($testmode)); + } + + /** + * Retrieves a collection of Terminals from Mollie for the current organization / profile, ordered from newest to oldest. + * + * @param string|null $from The first terminal ID you want to include in your list. + * @param bool|array $testmode + * + * @throws RequestException + */ + public function page(?string $from = null, ?int $limit = null, $testmode = false): TerminalCollection + { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + /** @var TerminalCollection */ + return $this->send((new GetPaginatedTerminalsRequest($from, $limit))->test($testmode)); + } + + /** + * Create an iterator for iterating over terminals retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + * @param bool|array $testmode + */ + public function iterator( + ?string $from = null, + ?int $limit = null, + $testmode = false, + bool $iterateBackwards = false + ): LazyCollection { + $testmode = Utility::extractBool($testmode, 'testmode', false); + + return $this->send( + (new GetPaginatedTerminalsRequest($from, $limit)) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($testmode) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/TerminalPairingCodeEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/TerminalPairingCodeEndpointCollection.php new file mode 100644 index 0000000..4216c60 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/TerminalPairingCodeEndpointCollection.php @@ -0,0 +1,91 @@ +send(new RequestTerminalPairingCodeRequest($profileId, $includeQrCode)); + } + + /** + * Retrieve a terminal pairing code from Mollie. + * + * Will throw an ApiException if the pairing code ID is invalid or the resource cannot be found. + * + * @throws RequestException + */ + public function get(string $id, bool $includeQrCode = false): TerminalPairingCode + { + /** @var TerminalPairingCode */ + return $this->send(new GetTerminalPairingCodeRequest($id, $includeQrCode)); + } + + /** + * Retrieve a collection of terminal pairing codes from Mollie, ordered from newest to oldest. + * + * @param string|null $from The first pairing code ID you want to include in your list. + * + * @throws RequestException + */ + public function page( + ?string $from = null, + ?int $limit = null, + ?string $sort = null, + ?string $profileId = null + ): TerminalPairingCodeCollection { + /** @var TerminalPairingCodeCollection */ + return $this->send(new GetPaginatedTerminalPairingCodesRequest($from, $limit, $sort, $profileId)); + } + + /** + * Revoke a terminal pairing code, preventing onboarding of new terminals. + * + * Terminals that have already paired with this code are not affected. + * + * Will throw an ApiException if the pairing code ID is invalid or the resource cannot be found. + * + * @throws RequestException + */ + public function revoke(string $id): TerminalPairingCode + { + /** @var TerminalPairingCode */ + return $this->send(new RevokeTerminalPairingCodeRequest($id)); + } + + /** + * Create an iterator for iterating over terminal pairing codes retrieved from Mollie. + * + * @param string|null $from The first resource ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iterator( + ?string $from = null, + ?int $limit = null, + ?string $sort = null, + ?string $profileId = null, + bool $iterateBackwards = false + ): LazyCollection { + return $this->send( + (new GetPaginatedTerminalPairingCodesRequest($from, $limit, $sort, $profileId)) + ->useIterator() + ->setIterationDirection($iterateBackwards) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/WalletEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/WalletEndpointCollection.php new file mode 100644 index 0000000..22632e1 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/WalletEndpointCollection.php @@ -0,0 +1,32 @@ +withPayload(array_merge([ + 'domain' => $domain, + 'validationUrl' => $validationUrl, + ], $parameters)) + ->create(); + + return $this->send($request); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/WebhookEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/WebhookEndpointCollection.php new file mode 100644 index 0000000..ec651ca --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/WebhookEndpointCollection.php @@ -0,0 +1,137 @@ +withPayload($payload) + ->create(); + + /** @var Webhook */ + return $this->send($request->test($test)); + } + + /** + * Retrieve a webhook from Mollie. + * + * Will throw an ApiException if the webhook id is invalid or the resource cannot be found. + * + * @throws RequestException + */ + public function get(string $id, bool $test = false): Webhook + { + /** @var Webhook */ + return $this->send((new GetWebhookRequest($id))->test($test)); + } + + /** + * Update a webhook. + * + * @throws RequestException + */ + public function update(string $id, array $payload = [], bool $test = false): Webhook + { + $request = UpdateWebhookRequestFactory::new($id) + ->withPayload($payload) + ->create(); + + /** @var Webhook */ + return $this->send($request->test($test)); + } + + /** + * Delete a webhook from Mollie. + * + * @throws RequestException + */ + public function delete(string $id, bool $test = false): void + { + $this->send((new DeleteWebhookRequest($id))->test($test)); + } + + /** + * Test a webhook by sending a test event. + * + * @throws RequestException + */ + public function test(string $id, bool $test = false): AnyResource + { + /** @var AnyResource */ + return $this->send((new TestWebhookRequest($id))->test($test)); + } + + /** + * Retrieves a collection of webhooks from Mollie. + * + * @throws RequestException + */ + public function page( + ?string $from = null, + ?int $limit = null, + ?string $sort = null, + ?string $eventTypes = null + ): WebhookCollection { + $request = new GetPaginatedWebhooksRequest( + $from, + $limit, + $sort, + $eventTypes + ); + + /** @var WebhookCollection */ + return $this->send($request); + } + + /** + * Create an iterator for iterating over webhooks retrieved from Mollie. + * + * @param string|null $from The first webhook ID you want to include in your list. + * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). + */ + public function iterator( + ?string $from = null, + ?int $limit = null, + ?string $sort = null, + ?string $eventTypes = null, + bool $iterateBackwards = false, + bool $test = false + ): LazyCollection { + $request = new GetPaginatedWebhooksRequest( + $from, + $limit, + $sort, + $eventTypes + ); + + return $this->send( + $request + ->useIterator() + ->setIterationDirection($iterateBackwards) + ->test($test) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/EndpointCollection/WebhookEventEndpointCollection.php b/vendor/mollie/mollie-api-php/src/EndpointCollection/WebhookEventEndpointCollection.php new file mode 100644 index 0000000..d12e6c7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/EndpointCollection/WebhookEventEndpointCollection.php @@ -0,0 +1,25 @@ +send(new GetWebhookEventRequest($id)); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Exceptions/ApiException.php b/vendor/mollie/mollie-api-php/src/Exceptions/ApiException.php new file mode 100644 index 0000000..f9234d0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Exceptions/ApiException.php @@ -0,0 +1,129 @@ + */ + public readonly array $links; + + /** + * @param Response $response The response that caused this exception + * @param string $message The error message + * @param int $code The error code + * @param Throwable|null $previous Previous exception if any + * + * @throws ApiException + */ + public function __construct( + Response $response, + string $message, + int $code, + ?Throwable $previous = null + ) { + $this->plainMessage = $message; + $this->raisedAt = new DateTimeImmutable; + + $formattedRaisedAt = $this->raisedAt->format(DateTimeImmutable::ATOM); + $message = "[{$formattedRaisedAt}] ".$message; + + $links = []; + $object = $response->json(); + if (isset($object->_links)) { + foreach ($object->_links as $key => $value) { + $links[$key] = $value; + } + } + $this->links = $links; + + if ($this->hasLink('documentation')) { + $message .= ". Documentation: {$this->getDocumentationUrl()}"; + } + + parent::__construct($response, $message, $code, $previous); + } + + public static function fromResponse(Response $response): self + { + $body = $response->json(); + $status = $response->status(); + + return new self( + $response, + sprintf( + 'Error executing API call (%d: %s): %s', + $status, + $body->title ?? 'Unknown', + $body->detail ?? 'Unknown' + ), + $status, + null + ); + } + + public function getDocumentationUrl(): ?string + { + return $this->getUrl('documentation'); + } + + public function getDashboardUrl(): ?string + { + return $this->getUrl('dashboard'); + } + + public function hasLink(string $key): bool + { + return array_key_exists($key, $this->links); + } + + public function getLink(string $key): \stdClass + { + if ($this->hasLink($key)) { + return $this->links[$key]; + } + + throw new \RuntimeException("Link '{$key}' not found"); + } + + public function getUrl(string $key): ?string + { + if (! $this->hasLink($key)) { + return null; + } + + $link = $this->getLink($key); + + return $link->href; + } + + /** + * Get the ISO8601 representation of the moment this exception was thrown + */ + public function getRaisedAt(): DateTimeImmutable + { + return $this->raisedAt; + } + + /** + * Retrieve the plain exception message without timestamp and metadata. + */ + public function getPlainMessage(): string + { + return $this->plainMessage; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Exceptions/ClientException.php b/vendor/mollie/mollie-api-php/src/Exceptions/ClientException.php new file mode 100644 index 0000000..d4ccf8d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Exceptions/ClientException.php @@ -0,0 +1,9 @@ +json(); + + return new self( + $response, + 'Your request was understood but not allowed. '. + sprintf('Error executing API call (%d: %s): %s', ResponseStatusCode::HTTP_FORBIDDEN, $body->title, $body->detail), + ResponseStatusCode::HTTP_FORBIDDEN + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Exceptions/IncompatiblePlatformException.php b/vendor/mollie/mollie-api-php/src/Exceptions/IncompatiblePlatformException.php new file mode 100644 index 0000000..1955945 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Exceptions/IncompatiblePlatformException.php @@ -0,0 +1,18 @@ +resolveMessage($token, $message)); + } + + public function getToken(): string + { + return $this->token; + } + + private function resolveMessage(string $token, string $message): string + { + if ($message === '') { + return 'Invalid authentication token.'; + } + + return $token === '' ? $message : str_replace($token, '[redacted]', $message); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Exceptions/InvalidSignatureException.php b/vendor/mollie/mollie-api-php/src/Exceptions/InvalidSignatureException.php new file mode 100644 index 0000000..1a426a2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Exceptions/InvalidSignatureException.php @@ -0,0 +1,9 @@ +rawResponse; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Exceptions/LogicException.php b/vendor/mollie/mollie-api-php/src/Exceptions/LogicException.php new file mode 100644 index 0000000..0597e9e --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Exceptions/LogicException.php @@ -0,0 +1,9 @@ +json(); + + return new self( + $response, + 'The HTTP method is not supported. '. + sprintf('Error executing API call (%d: %s): %s', ResponseStatusCode::HTTP_METHOD_NOT_ALLOWED, $body->title, $body->detail), + ResponseStatusCode::HTTP_METHOD_NOT_ALLOWED + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Exceptions/MissingAuthenticationException.php b/vendor/mollie/mollie-api-php/src/Exceptions/MissingAuthenticationException.php new file mode 100644 index 0000000..0dfd598 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Exceptions/MissingAuthenticationException.php @@ -0,0 +1,13 @@ +plainMessage = $message ?? 'The request failed due to network issues.'; + + parent::__construct($this->plainMessage, $code, $previous); + } + + public function getPendingRequest(): PendingRequest + { + return $this->pendingRequest; + } + + public function getPlainMessage(): string + { + return $this->plainMessage; + } + + public function getRequest(): RequestInterface + { + return $this->pendingRequest->createPsrRequest(); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Exceptions/NotFoundException.php b/vendor/mollie/mollie-api-php/src/Exceptions/NotFoundException.php new file mode 100644 index 0000000..8b24280 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Exceptions/NotFoundException.php @@ -0,0 +1,23 @@ +json(); + + return new self( + $response, + 'The object referenced by your API request does not exist. '. + sprintf('Error executing API call (%d: %s): %s', ResponseStatusCode::HTTP_NOT_FOUND, $body->title, $body->detail), + ResponseStatusCode::HTTP_NOT_FOUND + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Exceptions/RequestException.php b/vendor/mollie/mollie-api-php/src/Exceptions/RequestException.php new file mode 100644 index 0000000..2fd5cf1 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Exceptions/RequestException.php @@ -0,0 +1,43 @@ +response->getPsrRequest(); + } + + public function getResponse(): Response + { + return $this->response; + } + + public function getPendingRequest(): PendingRequest + { + return $this->response->getPendingRequest(); + } + + public function getStatusCode(): int + { + return $this->response->status(); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Exceptions/RequestTimeoutException.php b/vendor/mollie/mollie-api-php/src/Exceptions/RequestTimeoutException.php new file mode 100644 index 0000000..4c27d4c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Exceptions/RequestTimeoutException.php @@ -0,0 +1,25 @@ +json(); + + return new self( + $response->getPendingRequest(), + null, + 'The request took too long to complete. '. + sprintf('Error executing API call (%d: %s): %s', 408, $body->title, $body->detail) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Exceptions/RetryableNetworkRequestException.php b/vendor/mollie/mollie-api-php/src/Exceptions/RetryableNetworkRequestException.php new file mode 100644 index 0000000..b948c97 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Exceptions/RetryableNetworkRequestException.php @@ -0,0 +1,29 @@ +body(); + + if (! $response->isEmpty()) { + $message .= sprintf(' Server response: %s', $body); + } + + return new self( + $response, + $message, + ResponseStatusCode::HTTP_SERVICE_UNAVAILABLE + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Exceptions/TooManyRequestsException.php b/vendor/mollie/mollie-api-php/src/Exceptions/TooManyRequestsException.php new file mode 100644 index 0000000..6bb77e7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Exceptions/TooManyRequestsException.php @@ -0,0 +1,81 @@ +json(); + + return new self( + $response, + 'Your request exceeded the rate limit. '. + sprintf('Error executing API call (%d: %s): %s', ResponseStatusCode::HTTP_TOO_MANY_REQUESTS, $body->title, $body->detail), + ResponseStatusCode::HTTP_TOO_MANY_REQUESTS, + self::parseRetryAfter($response->header('Retry-After')) + ); + } + + /** + * Get the value of the Retry-After header converted to seconds from now, + * or null if the header is missing or unparseable. + */ + public function getRetryAfterSeconds(): ?int + { + return $this->retryAfterSeconds; + } + + /** + * Parse a Retry-After header value. + * + * Supports: + * - Integer seconds (RFC 7231), e.g. "120" + * - HTTP-date, e.g. "Wed, 21 Oct 2015 07:28:00 GMT" + * + * Returns null when the header is absent or cannot be parsed. + */ + private static function parseRetryAfter(?string $value): ?int + { + if ($value === null) { + return null; + } + + $value = trim($value); + + if ($value === '') { + return null; + } + + if (ctype_digit($value)) { + return (int) $value; + } + + try { + $retryAt = new DateTimeImmutable($value); + } catch (\Exception $e) { + return null; + } + + $seconds = $retryAt->getTimestamp() - (new DateTimeImmutable)->getTimestamp(); + + return max(0, $seconds); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Exceptions/UnauthorizedException.php b/vendor/mollie/mollie-api-php/src/Exceptions/UnauthorizedException.php new file mode 100644 index 0000000..7459551 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Exceptions/UnauthorizedException.php @@ -0,0 +1,23 @@ +json(); + + return new self( + $response, + 'Your request wasn\'t executed due to failed authentication. Check your API key. '. + sprintf('Error executing API call (%d: %s): %s', ResponseStatusCode::HTTP_UNAUTHORIZED, $body->title, $body->detail), + ResponseStatusCode::HTTP_UNAUTHORIZED + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Exceptions/UnrecognizedClientException.php b/vendor/mollie/mollie-api-php/src/Exceptions/UnrecognizedClientException.php new file mode 100644 index 0000000..a025250 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Exceptions/UnrecognizedClientException.php @@ -0,0 +1,9 @@ + $errors Map of field name to error message. + * @param int $code + * @param Throwable|null $previous + */ + public function __construct( + Response $response, + public readonly string $field, + string $message, + public readonly array $errors = [], + int $code = ResponseStatusCode::HTTP_UNPROCESSABLE_ENTITY, + ?Throwable $previous = null + ) { + parent::__construct($response, $message, $code, $previous); + } + + public function getField(): string + { + return $this->field; + } + + /** + * Get the full field -> message map. + * + * @return array + */ + public function getErrors(): array + { + return $this->errors; + } + + public function hasError(string $field): bool + { + return array_key_exists($field, $this->errors); + } + + public function getError(string $field): ?string + { + return $this->errors[$field] ?? null; + } + + public static function fromResponse(Response $response): self + { + $body = $response->json(); + $field = $body->field ?? ''; + $detail = $body->detail ?? ''; + + return new self( + $response, + $field, + 'We could not process your request due to validation errors. '. + sprintf('Error executing API call (%d: %s): %s', 422, $body->title ?? 'Unknown', $detail), + self::extractErrors($body, $field, $detail), + ResponseStatusCode::HTTP_UNPROCESSABLE_ENTITY + ); + } + + /** + * Build a field => message map from the Mollie error body. + * + * Mollie's standard 422 body has a single top-level `field` plus `detail`. + * Some error responses additionally expose per-field errors under `details`, + * `errors`, or `extra.errors` (shape: field -> message, or a list of + * { field, message } objects). We accept all those forms. + * + * @return array + */ + private static function extractErrors(stdClass $body, string $field, string $detail): array + { + $errors = array_merge(...array_map( + self::normalizeErrorBag(...), + self::errorBags($body) + )); + + if ($field !== '' && ! array_key_exists($field, $errors)) { + $errors[$field] = $detail; + } + + return $errors; + } + + /** + * @return array + */ + private static function errorBags(stdClass $body): array + { + $bags = []; + + foreach (['details', 'errors'] as $key) { + if (isset($body->{$key})) { + $bags[] = $body->{$key}; + } + } + + if (isset($body->extra, $body->extra->errors)) { + $bags[] = $body->extra->errors; + } + + return $bags; + } + + /** + * Normalize an error bag into a field => message map. + * + * Accepts: + * - stdClass { field: message } + * - array + * - list of stdClass { field, message|detail } + * + * @param mixed $bag + * @return array + */ + private static function normalizeErrorBag($bag): array + { + if ($bag instanceof stdClass) { + return self::normalizeErrorEntries((array) $bag); + } + + return is_array($bag) + ? self::normalizeErrorEntries($bag) + : []; + } + + /** + * @param array $entries + * @return array + */ + private static function normalizeErrorEntries(array $entries): array + { + $errors = []; + + foreach ($entries as $key => $value) { + $error = self::normalizeErrorEntry($key, $value); + + if ($error !== null) { + [$field, $message] = $error; + $errors[$field] = $message; + } + } + + return $errors; + } + + /** + * @param array-key $key + * @param mixed $value + * @return array{0: string, 1: string}|null + */ + private static function normalizeErrorEntry($key, mixed $value): ?array + { + if (is_string($key) && is_string($value)) { + return [$key, $value]; + } + + if (! $value instanceof stdClass) { + return null; + } + + $field = $value->field ?? null; + $message = $value->message ?? $value->detail ?? null; + + return is_string($field) && is_string($message) + ? [$field, $message] + : null; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/ApplePayPaymentSessionRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/ApplePayPaymentSessionRequestFactory.php new file mode 100644 index 0000000..7801c2a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/ApplePayPaymentSessionRequestFactory.php @@ -0,0 +1,19 @@ +payload('domain'), + $this->payload('validationUrl'), + $this->payload('profileId'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/ApplicationFeeFactory.php b/vendor/mollie/mollie-api-php/src/Factories/ApplicationFeeFactory.php new file mode 100644 index 0000000..cb92d73 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/ApplicationFeeFactory.php @@ -0,0 +1,18 @@ +get('amount'))->create(), + $this->get('description'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreateClientLinkRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreateClientLinkRequestFactory.php new file mode 100644 index 0000000..5418595 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreateClientLinkRequestFactory.php @@ -0,0 +1,23 @@ +payload('owner')), + $this->payload('name'), + OwnerAddress::fromArray($this->payload('address')), + $this->payload('registrationNumber'), + $this->payload('vatNumber') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreateConnectBalanceTransferRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreateConnectBalanceTransferRequestFactory.php new file mode 100644 index 0000000..64dd81f --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreateConnectBalanceTransferRequestFactory.php @@ -0,0 +1,23 @@ +transformFromPayload('amount', fn ($item) => MoneyFactory::new($item)->create()), + $this->payload('description'), + $this->transformFromPayload('source', fn ($item) => TransferParty::fromArray($item)), + $this->transformFromPayload('destination', fn ($item) => TransferParty::fromArray($item)), + $this->payload('category'), + $this->payload('metadata') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreateCustomerPaymentRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreateCustomerPaymentRequestFactory.php new file mode 100644 index 0000000..f32a1e0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreateCustomerPaymentRequestFactory.php @@ -0,0 +1,61 @@ +customerId = $customerId; + } + + public function create(): CreateCustomerPaymentRequest + { + $includeQrCode = $this->queryIncludes('include', PaymentQuery::INCLUDE_QR_CODE); + + return new CreateCustomerPaymentRequest( + $this->customerId, + $this->payload('description'), + MoneyFactory::new($this->payload('amount'))->create(), + $this->payload('redirectUrl'), + $this->payload('cancelUrl'), + $this->payload('webhookUrl'), + $this + ->transformFromPayload( + 'lines', + fn ($items) => OrderLineCollectionFactory::new($items)->create() + ), + $this->transformFromPayload('billingAddress', fn ($item) => Address::fromArray($item)), + $this->transformFromPayload('shippingAddress', fn ($item) => Address::fromArray($item)), + $this->payload('locale'), + $this->payload('method'), + $this->payload('issuer'), + $this->payload('restrictPaymentMethodsToCountry'), + $this->payload('metadata'), + $this->payload('captureMode'), + $this->payload('captureDelay'), + $this->transformFromPayload( + 'applicationFee', + fn ($item) => ApplicationFeeFactory::new($item)->create() + ), + $this->transformFromPayload( + 'routing', + fn ($items) => PaymentRouteCollectionFactory::new($items)->create() + ), + $this->payload('sequenceType'), + $this->payload('mandateId'), + $this->payload('profileId'), + $this->payload('additional') ?: Utility::filterByProperties(CreateCustomerPaymentRequest::class, $this->payload()) ?: [], + $this->query('includeQrCode', $includeQrCode), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreateCustomerRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreateCustomerRequestFactory.php new file mode 100644 index 0000000..3a78e06 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreateCustomerRequestFactory.php @@ -0,0 +1,20 @@ +payload('name'), + $this->payload('email'), + $this->payload('locale'), + $this->payload('metadata'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreateDelayedPaymentRouteRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreateDelayedPaymentRouteRequestFactory.php new file mode 100644 index 0000000..ee4c887 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreateDelayedPaymentRouteRequestFactory.php @@ -0,0 +1,35 @@ +paymentId = $paymentId; + } + + public function create(): CreateDelayedPaymentRouteRequest + { + if (! $this->payloadHas('amount')) { + throw new LogicException('Amount is required'); + } + + if (! $destination = $this->payload('destination')) { + throw new LogicException('Destination is required'); + } + + return new CreateDelayedPaymentRouteRequest( + $this->paymentId, + $this->transformFromPayload('amount', fn ($item) => MoneyFactory::new($item)->create()), + $destination, + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreateMandateRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreateMandateRequestFactory.php new file mode 100644 index 0000000..8bae379 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreateMandateRequestFactory.php @@ -0,0 +1,38 @@ +customerId = $customerId; + } + + public function create(): CreateMandateRequest + { + if (! $this->payloadHas(['method', 'consumerName'])) { + throw new LogicException('Method and consumerName are required for creating a mandate'); + } + + return new CreateMandateRequest( + $this->customerId, + $this->payload('method'), + $this->payload('consumerName'), + $this->payload('consumerAccount'), + $this->payload('consumerBic'), + $this->payload('consumerEmail'), + $this->transformFromPayload('signatureDate', fn ($date) => new Date($date), Date::class), + $this->payload('mandateReference'), + $this->payload('paypalBillingAgreementId'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreatePaymentCaptureRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreatePaymentCaptureRequestFactory.php new file mode 100644 index 0000000..6b8e638 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreatePaymentCaptureRequestFactory.php @@ -0,0 +1,27 @@ +paymentId = $paymentId; + } + + public function create(): CreatePaymentCaptureRequest + { + return new CreatePaymentCaptureRequest( + $this->paymentId, + $this->payload('description'), + $this->transformFromPayload('amount', fn ($item) => MoneyFactory::new($item)->create()), + $this->payload('metadata') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreatePaymentLinkRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreatePaymentLinkRequestFactory.php new file mode 100644 index 0000000..9933eab --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreatePaymentLinkRequestFactory.php @@ -0,0 +1,65 @@ +payload('description'), + $this->transformFromPayload('amount', fn ($amount) => MoneyFactory::new($amount)->create()), + $this->payload('redirectUrl'), + $this->payload('webhookUrl'), + $this->payload('profileId'), + $this->payload('reusable'), + $this->transformFromPayload('expiresAt', fn ($date) => $this->getExpiresAt($date), DateTime::class), + $this->payload('allowedMethods'), + $this->payload('sequenceType'), + $this->payload('customerId'), + $this->transformFromPayload('lines', fn ($items) => ! empty($items) ? OrderLineCollectionFactory::new($items)->create() : null), + $this->transformFromPayload('billingAddress', fn ($item) => Address::fromArray($item)), + $this->transformFromPayload('shippingAddress', fn ($item) => Address::fromArray($item)), + $this->transformFromPayload('minimumAmount', fn ($amount) => MoneyFactory::new($amount)->create()), + $this->transformFromPayload('applicationFee', fn ($item) => ApplicationFeeFactory::new($item)->create()), + ); + } + + /** + * This is a backwards compatibility fix. + * On launch the expiresAt field was accepting a Y-m-d date string, while it should have only accepted Y-m-d\TH:i:sP. + * We now need to support both formats. + * + * @param null|string|DateTimeInterface $date + */ + protected function getExpiresAt($date): ?DateTime + { + if (is_null($date)) { + return null; + } + + if ($date instanceof DateTimeInterface) { + return new DateTime($date); + } + + // If the date string doesn't contain time information, add it + /** @var string $date */ + if (strpos($date, 'T') === false) { + $date .= 'T00:00:00'; + } + + // If the date string doesn't contain timezone information, add UTC + if (! preg_match('/[+-][0-9]{2}:?[0-9]{2}$/', $date)) { + $date .= '+00:00'; + } + + return new DateTime($date); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreatePaymentRefundRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreatePaymentRefundRequestFactory.php new file mode 100644 index 0000000..daad277 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreatePaymentRefundRequestFactory.php @@ -0,0 +1,33 @@ +paymentId = $paymentId; + } + + public function create(): CreatePaymentRefundRequest + { + return new CreatePaymentRefundRequest( + $this->paymentId, + $this->payload('description', ''), + MoneyFactory::new($this->payload('amount'))->create(), + $this->payload('metadata'), + $this->payload('reverseRouting'), + $this + ->transformFromPayload( + 'routingReversals', + fn ($items) => RefundRouteCollectionFactory::new($items)->create() + ), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreatePaymentRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreatePaymentRequestFactory.php new file mode 100644 index 0000000..9f1655d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreatePaymentRequestFactory.php @@ -0,0 +1,54 @@ +queryIncludes('include', PaymentQuery::INCLUDE_QR_CODE); + + return new CreatePaymentRequest( + $this->payload('description'), + MoneyFactory::new($this->payload('amount'))->create(), + $this->payload('redirectUrl'), + $this->payload('cancelUrl'), + $this->payload('webhookUrl'), + $this + ->transformFromPayload( + 'lines', + fn ($items) => OrderLineCollectionFactory::new($items)->create() + ), + $this->transformFromPayload('billingAddress', fn ($item) => Address::fromArray($item)), + $this->transformFromPayload('shippingAddress', fn ($item) => Address::fromArray($item)), + $this->payload('locale'), + $this->payload('method'), + $this->payload('issuer'), + $this->payload('restrictPaymentMethodsToCountry'), + $this->payload('metadata'), + $this->payload('captureMode'), + $this->payload('captureDelay'), + $this->transformFromPayload( + 'applicationFee', + fn ($item) => ApplicationFeeFactory::new($item)->create() + ), + $this->transformFromPayload( + 'routing', + fn ($items) => PaymentRouteCollectionFactory::new($items)->create() + ), + $this->payload('sequenceType'), + $this->payload('mandateId'), + $this->payload('customerId'), + $this->payload('profileId'), + $this->payload('additional') ?: Utility::filterByProperties(CreatePaymentRequest::class, $this->payload()) ?: [], + $this->query('includeQrCode', $includeQrCode), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreatePayoutRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreatePayoutRequestFactory.php new file mode 100644 index 0000000..70fded3 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreatePayoutRequestFactory.php @@ -0,0 +1,17 @@ +payload('balanceId'), + $this->transformFromPayload('amount', fn ($item) => MoneyFactory::new($item)->create()), + $this->payload('description') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreateProfileRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreateProfileRequestFactory.php new file mode 100644 index 0000000..6bc9f10 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreateProfileRequestFactory.php @@ -0,0 +1,23 @@ +payload('name'), + $this->payload('website'), + $this->payload('email'), + $this->payload('phone'), + $this->payload('description'), + $this->payload('countriesOfActivity'), + $this->payload('businessCategory') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreateSalesInvoiceRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreateSalesInvoiceRequestFactory.php new file mode 100644 index 0000000..8d7af9a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreateSalesInvoiceRequestFactory.php @@ -0,0 +1,43 @@ +payload('currency'), + $this->payload('status'), + $this->payload('vatScheme'), + $this->payload('vatMode'), + $this->payload('paymentTerm'), + $this->payload('recipientIdentifier'), + RecipientFactory::new($this->payload('recipient'))->create(), + $this + ->transformFromPayload( + 'lines', + fn ($items) => InvoiceLineCollectionFactory::new($items)->create() + ), + $this->payload('profileId'), + $this->payload('memo'), + $this->transformFromPayload('paymentDetails', fn ($data) => PaymentDetails::fromArray($data)), + $this->transformFromPayload('emailDetails', fn ($data) => EmailDetails::fromArray($data)), + $this->payload('webhookUrl'), + $this->transformFromPayload('discount', fn ($data) => Discount::fromArray($data)), + $this->payload('customerId'), + $this->payload('mandateId'), + $this->payload('isEInvoice') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreateSessionRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreateSessionRequestFactory.php new file mode 100644 index 0000000..e1dd7d9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreateSessionRequestFactory.php @@ -0,0 +1,32 @@ +payload('amount'))->create(), + $this->payload('description'), + $this->payload('redirectUrl'), + $this->transformFromPayload( + 'lines', + fn ($items) => OrderLineCollectionFactory::new($items)->create() + ), + $this->payload('cancelUrl'), + $this->transformFromPayload('billingAddress', fn ($item) => Address::fromArray($item)), + $this->transformFromPayload('shippingAddress', fn ($item) => Address::fromArray($item)), + $this->payload('customerId'), + $this->payload('sequenceType'), + $this->payload('metadata'), + $this->payload('webhookUrl', null, 'payment.'), + $this->payload('profileId') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreateSubscriptionRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreateSubscriptionRequestFactory.php new file mode 100644 index 0000000..6c3de09 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreateSubscriptionRequestFactory.php @@ -0,0 +1,37 @@ +customerId = $customerId; + } + + public function create(): CreateSubscriptionRequest + { + return new CreateSubscriptionRequest( + $this->customerId, + MoneyFactory::new($this->payload('amount'))->create(), + $this->payload('interval'), + $this->payload('description'), + $this->payload('status'), + $this->payload('times'), + $this->transformFromPayload('startDate', fn (string $date) => new Date($date), Date::class), + $this->payload('method'), + $this->transformFromPayload('applicationFee', fn ($fee) => ApplicationFeeFactory::new($fee)->create()), + $this->payload('metadata'), + $this->payload('webhookUrl'), + $this->payload('mandateId'), + $this->payload('profileId'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/CreateWebhookRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/CreateWebhookRequestFactory.php new file mode 100644 index 0000000..ff9bfa8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/CreateWebhookRequestFactory.php @@ -0,0 +1,19 @@ +payload('url'), + $this->payload('name'), + $this->payload('eventTypes') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/Factory.php b/vendor/mollie/mollie-api-php/src/Factories/Factory.php new file mode 100644 index 0000000..485bd1a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/Factory.php @@ -0,0 +1,87 @@ +data = $data->toArray(); + } else { + $this->data = $data ?: []; + } + } + + /** + * @return static + */ + public static function new(...$args) + { + return new static(...$args); + } + + /** + * Get a value from the data array or the backup key. + * + * @param string|array $key + * @param mixed $default + */ + protected function get($key = null, $default = null, $data = null, $backupKey = 'filters.') + { + $data = $data ?? $this->data; + + $keys = (array) $key; + + if (empty($keys)) { + return $data; + } + + if ($backupKey !== null) { + $keys[] = $backupKey.$key; + } + + foreach ($keys as $key) { + if (Arr::has($data, $key)) { + return Arr::get($data, $key); + } + } + + return $default; + } + + protected function has($keys, $data = null): bool + { + return Arr::has($data ?? $this->data, $keys); + } + + /** + * @param string|array $key + * @param mixed $value + */ + protected function includes($key, $value, $data = null, $backupKey = 'filters.'): bool + { + return Arr::includes($data ?? $this->data, [$backupKey.$key, $key], $value); + } + + /** + * Map a value to a new form if it is not null. + * + * @param string|array $key The key to retrieve the value from the data array. + * @param callable|string $resolver A callable function to transform the value, or the name of a class to instantiate. + * @param string $composableClass The class to instantiate if the resolver is a string. + * @return mixed The transformed value, a new class instance, or null if the value is null. + */ + protected function transformIfNotNull($key, $resolver, $composableClass = null) + { + return Utility::transform($this->get($key), $resolver, $composableClass); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetAllPaginatedSubscriptionsRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetAllPaginatedSubscriptionsRequestFactory.php new file mode 100644 index 0000000..7877371 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetAllPaginatedSubscriptionsRequestFactory.php @@ -0,0 +1,19 @@ +query('from'), + limit: $this->query('limit'), + profileId: $this->query('profileId'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetAllPaymentMethodsRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetAllPaymentMethodsRequestFactory.php new file mode 100644 index 0000000..0d29114 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetAllPaymentMethodsRequestFactory.php @@ -0,0 +1,25 @@ +queryIncludes('include', MethodQuery::INCLUDE_ISSUERS); + $includePricing = $this->queryIncludes('include', MethodQuery::INCLUDE_PRICING); + + return new GetAllMethodsRequest( + $this->query('includeIssuers', $includeIssuers), + $this->query('includePricing', $includePricing), + $this->query('locale'), + $this->transformFromQuery('amount', fn ($item) => MoneyFactory::new($item)->create()), + $this->query('profileId') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetBalanceReportRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetBalanceReportRequestFactory.php new file mode 100644 index 0000000..fd796a2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetBalanceReportRequestFactory.php @@ -0,0 +1,38 @@ +balanceId = $balanceId; + } + + public function create(): GetBalanceReportRequest + { + if (! $this->queryHas(['from', 'until'])) { + throw new \LogicException('The "from" and "until" fields are required.'); + } + + /** @var DateTimeImmutable $from */ + $from = DateTimeImmutable::createFromFormat('Y-m-d', $this->query('from')); + + /** @var DateTimeImmutable $until */ + $until = DateTimeImmutable::createFromFormat('Y-m-d', $this->query('until')); + + return new GetBalanceReportRequest( + $this->balanceId, + $from, + $until, + $this->query('grouping'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetClientRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetClientRequestFactory.php new file mode 100644 index 0000000..8efa3f0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetClientRequestFactory.php @@ -0,0 +1,30 @@ +id = $id; + } + + public function create(): GetClientRequest + { + $embedOrganization = $this->queryIncludes('embed', ClientQuery::EMBED_ORGANIZATION); + $embedOnboarding = $this->queryIncludes('embed', ClientQuery::EMBED_ONBOARDING); + + return new GetClientRequest( + $this->id, + $this->query('embedOrganization', $embedOrganization), + $this->query('embedOnboarding', $embedOnboarding), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetEnabledMethodsRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetEnabledMethodsRequestFactory.php new file mode 100644 index 0000000..05173fe --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetEnabledMethodsRequestFactory.php @@ -0,0 +1,29 @@ +queryIncludes('include', MethodQuery::INCLUDE_ISSUERS); + + return new GetEnabledMethodsRequest( + $this->query('sequenceType', SequenceType::Oneoff->value), + $this->query('resource', MethodQuery::RESOURCE_PAYMENTS), + $this->query('locale'), + $this->transformFromQuery('amount', fn ($item) => MoneyFactory::new($item)->create()), + $this->query('billingCountry'), + $this->query('includeWallets'), + $this->query('orderLineCategories', []), + $this->query('profileId'), + $this->query('includeIssuers', $includeIssuers), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetMethodRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetMethodRequestFactory.php new file mode 100644 index 0000000..0a470f4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetMethodRequestFactory.php @@ -0,0 +1,31 @@ +id = $id; + } + + public function create(): GetMethodRequest + { + $includeIssuers = $this->queryIncludes('include', MethodQuery::INCLUDE_ISSUERS); + + return new GetMethodRequest( + $this->id, + $this->query('locale'), + $this->query('currency'), + $this->query('profileId'), + $this->query('includeIssuers', $includeIssuers), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedChargebacksRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedChargebacksRequestFactory.php new file mode 100644 index 0000000..dbc9b47 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedChargebacksRequestFactory.php @@ -0,0 +1,23 @@ +queryIncludes('include', PaymentIncludesQuery::PAYMENT); + + return new GetPaginatedChargebacksRequest( + $this->query('from'), + $this->query('limit'), + $this->query('includePayment', $includePayment), + $this->query('profileId') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedClientRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedClientRequestFactory.php new file mode 100644 index 0000000..891e8bd --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedClientRequestFactory.php @@ -0,0 +1,24 @@ +queryIncludes('embed', ClientQuery::EMBED_ORGANIZATION); + $embedOnboarding = $this->queryIncludes('embed', ClientQuery::EMBED_ONBOARDING); + + return new GetPaginatedClientRequest( + $this->query('from'), + $this->query('limit'), + $this->query('embedOrganization', $embedOrganization), + $this->query('embedOnboarding', $embedOnboarding), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedCustomerPaymentsRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedCustomerPaymentsRequestFactory.php new file mode 100644 index 0000000..407ac3f --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedCustomerPaymentsRequestFactory.php @@ -0,0 +1,28 @@ +customerId = $customerId; + } + + public function create(): GetPaginatedCustomerPaymentsRequest + { + return new GetPaginatedCustomerPaymentsRequest( + $this->customerId, + $this->query('from'), + $this->query('limit'), + $this->query('sort'), + $this->query('profileId') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedInvoiceRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedInvoiceRequestFactory.php new file mode 100644 index 0000000..411c252 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedInvoiceRequestFactory.php @@ -0,0 +1,20 @@ +query('from'), + $this->query('limit'), + $this->query('reference'), + $this->query('year') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedPaymentCapturesRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedPaymentCapturesRequestFactory.php new file mode 100644 index 0000000..c3ca095 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedPaymentCapturesRequestFactory.php @@ -0,0 +1,30 @@ +paymentId = $paymentId; + } + + public function create(): GetPaginatedPaymentCapturesRequest + { + $includePayments = $this->queryIncludes('include', PaymentIncludesQuery::PAYMENT); + + return new GetPaginatedPaymentCapturesRequest( + $this->paymentId, + $this->query('from'), + $this->query('limit'), + $this->query('includePayments', $includePayments), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedPaymentChargebacksRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedPaymentChargebacksRequestFactory.php new file mode 100644 index 0000000..90db43d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedPaymentChargebacksRequestFactory.php @@ -0,0 +1,30 @@ +paymentId = $paymentId; + } + + public function create(): GetPaginatedPaymentChargebacksRequest + { + $includePayment = $this->queryIncludes('include', PaymentIncludesQuery::PAYMENT); + + return new GetPaginatedPaymentChargebacksRequest( + $this->paymentId, + $this->query('from'), + $this->query('limit'), + $this->query('includePayment', $includePayment), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedPaymentRefundsRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedPaymentRefundsRequestFactory.php new file mode 100644 index 0000000..78a21d2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedPaymentRefundsRequestFactory.php @@ -0,0 +1,30 @@ +paymentId = $paymentId; + } + + public function create(): GetPaginatedPaymentRefundsRequest + { + $includePayment = $this->queryIncludes('include', PaymentIncludesQuery::PAYMENT); + + return new GetPaginatedPaymentRefundsRequest( + $this->paymentId, + $this->query('from'), + $this->query('limit'), + $this->query('includePayment', $includePayment), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedRefundsRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedRefundsRequestFactory.php new file mode 100644 index 0000000..ae5437e --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedRefundsRequestFactory.php @@ -0,0 +1,23 @@ +queryIncludes('embed', PaymentIncludesQuery::PAYMENT); + + return new GetPaginatedRefundsRequest( + $this->query('from'), + $this->query('limit'), + $this->query('embedPayment', $embedPayment), + $this->query('profileId') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedSettlementCapturesRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedSettlementCapturesRequestFactory.php new file mode 100644 index 0000000..ede160f --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedSettlementCapturesRequestFactory.php @@ -0,0 +1,31 @@ +settlementId = $settlementId; + } + + public function create(): GetPaginatedSettlementCapturesRequest + { + $includePayment = $this->queryIncludes('include', PaymentIncludesQuery::PAYMENT) + || $this->queryIncludes('embed', PaymentIncludesQuery::PAYMENT); + + return new GetPaginatedSettlementCapturesRequest( + $this->settlementId, + $this->query('from'), + $this->query('limit'), + $this->query('includePayment', $includePayment), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedSettlementChargebacksRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedSettlementChargebacksRequestFactory.php new file mode 100644 index 0000000..7f31404 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedSettlementChargebacksRequestFactory.php @@ -0,0 +1,31 @@ +settlementId = $settlementId; + } + + public function create(): GetPaginatedSettlementChargebacksRequest + { + $includePayment = $this->queryIncludes('include', PaymentIncludesQuery::PAYMENT); + + return new GetPaginatedSettlementChargebacksRequest( + $this->settlementId, + $this->query('from'), + $this->query('limit'), + $this->query('includePayment', $includePayment), + $this->query('profileId'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedSettlementRefundsQueryFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedSettlementRefundsQueryFactory.php new file mode 100644 index 0000000..099d507 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedSettlementRefundsQueryFactory.php @@ -0,0 +1,30 @@ +settlementId = $settlementId; + } + + public function create(): GetPaginatedSettlementRefundsRequest + { + $includePayment = $this->queryIncludes('embed', PaymentIncludesQuery::PAYMENT); + + return new GetPaginatedSettlementRefundsRequest( + $this->settlementId, + $this->query('from'), + $this->query('limit'), + $this->query('includePayment', $includePayment), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedSettlementsRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedSettlementsRequestFactory.php new file mode 100644 index 0000000..2bbf28e --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaginatedSettlementsRequestFactory.php @@ -0,0 +1,22 @@ +query('from'), + $this->query('limit'), + $this->query('balanceId'), + $this->query('year'), + $this->query('month'), + $this->query('currencies'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaymentCaptureRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaymentCaptureRequestFactory.php new file mode 100644 index 0000000..8d103d3 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaymentCaptureRequestFactory.php @@ -0,0 +1,32 @@ +paymentId = $paymentId; + $this->captureId = $captureId; + } + + public function create(): GetPaymentCaptureRequest + { + $embedPayment = $this->queryIncludes('embed', PaymentIncludesQuery::PAYMENT); + + return new GetPaymentCaptureRequest( + $this->paymentId, + $this->captureId, + $this->query('includePayment', $embedPayment), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaymentChargebackRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaymentChargebackRequestFactory.php new file mode 100644 index 0000000..59fe0d4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaymentChargebackRequestFactory.php @@ -0,0 +1,32 @@ +paymentId = $paymentId; + $this->chargebackId = $chargebackId; + } + + public function create(): GetPaymentChargebackRequest + { + $includePayment = $this->queryIncludes('include', PaymentIncludesQuery::PAYMENT); + + return new GetPaymentChargebackRequest( + $this->paymentId, + $this->chargebackId, + $this->query('includePayment', $includePayment), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaymentRefundRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaymentRefundRequestFactory.php new file mode 100644 index 0000000..4f0016f --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaymentRefundRequestFactory.php @@ -0,0 +1,32 @@ +paymentId = $paymentId; + $this->refundId = $refundId; + } + + public function create(): GetPaymentRefundRequest + { + $includePayment = $this->queryIncludes('include', PaymentIncludesQuery::PAYMENT); + + return new GetPaymentRefundRequest( + $this->paymentId, + $this->refundId, + $this->query('includePayment', $includePayment), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/GetPaymentRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/GetPaymentRequestFactory.php new file mode 100644 index 0000000..f4b36cc --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/GetPaymentRequestFactory.php @@ -0,0 +1,36 @@ +id = $id; + } + + public function create(): GetPaymentRequest + { + $embedCaptures = $this->queryIncludes('embed', PaymentQuery::EMBED_CAPTURES); + $embedRefunds = $this->queryIncludes('embed', PaymentQuery::EMBED_REFUNDS); + $embedChargebacks = $this->queryIncludes('embed', PaymentQuery::EMBED_CHARGEBACKS); + $includeQrCode = $this->queryIncludes('include', PaymentQuery::INCLUDE_QR_CODE); + $includeRemainderDetails = $this->queryIncludes('include', PaymentQuery::INCLUDE_REMAINDER_DETAILS); + + return new GetPaymentRequest( + $this->id, + $this->query('embedCaptures', $embedCaptures), + $this->query('embedRefunds', $embedRefunds), + $this->query('embedChargebacks', $embedChargebacks), + $this->query('includeQrCode', $includeQrCode), + $this->query('includeRemainderDetails', $includeRemainderDetails), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/InvoiceLineCollectionFactory.php b/vendor/mollie/mollie-api-php/src/Factories/InvoiceLineCollectionFactory.php new file mode 100644 index 0000000..aeacac4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/InvoiceLineCollectionFactory.php @@ -0,0 +1,18 @@ + InvoiceLineFactory::new($item)->create(), + $this->get() + )); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/InvoiceLineFactory.php b/vendor/mollie/mollie-api-php/src/Factories/InvoiceLineFactory.php new file mode 100644 index 0000000..687e879 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/InvoiceLineFactory.php @@ -0,0 +1,22 @@ +get('description'), + $this->get('quantity'), + $this->get('vatRate'), + MoneyFactory::new($this->get('unitPrice'))->create(), + $this->transformIfNotNull('discount', fn (array $data) => Discount::fromArray($data)) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/MoneyFactory.php b/vendor/mollie/mollie-api-php/src/Factories/MoneyFactory.php new file mode 100644 index 0000000..94abfda --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/MoneyFactory.php @@ -0,0 +1,22 @@ +has(['currency', 'value'])) { + throw new \InvalidArgumentException('Invalid Money data provided'); + } + + return new Money( + $this->get('currency'), + $this->get('value') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/OrderLineCollectionFactory.php b/vendor/mollie/mollie-api-php/src/Factories/OrderLineCollectionFactory.php new file mode 100644 index 0000000..5ae95fe --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/OrderLineCollectionFactory.php @@ -0,0 +1,18 @@ + OrderLineFactory::new($item)->create(), + $this->get() + )); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/OrderLineFactory.php b/vendor/mollie/mollie-api-php/src/Factories/OrderLineFactory.php new file mode 100644 index 0000000..48df6c6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/OrderLineFactory.php @@ -0,0 +1,29 @@ +get('description'), + $this->get('quantity'), + MoneyFactory::new($this->get('unitPrice'))->create(), + MoneyFactory::new($this->get('totalAmount'))->create(), + $this->get('type'), + $this->get('quantityUnit'), + $this->transformIfNotNull('discountAmount', fn (array $item) => MoneyFactory::new($item)->create()), + $this->transformIfNotNull('recurring', fn (array $item) => RecurringBillingCycleFactory::new($item)->create()), + $this->get('vatRate'), + $this->transformIfNotNull('vatAmount', fn (array $item) => MoneyFactory::new($item)->create()), + $this->get('sku'), + $this->get('imageUrl'), + $this->get('productUrl'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/PaginatedQueryFactory.php b/vendor/mollie/mollie-api-php/src/Factories/PaginatedQueryFactory.php new file mode 100644 index 0000000..3324be1 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/PaginatedQueryFactory.php @@ -0,0 +1,31 @@ +|Arrayable|null $data + */ + public function __construct($data = null) + { + parent::__construct($data); + + $this->withQuery($this->get()); + } + + public function create(): PaginatedQuery + { + return new PaginatedQuery( + $this->query('from'), + $this->query('limit'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/PaymentRouteCollectionFactory.php b/vendor/mollie/mollie-api-php/src/Factories/PaymentRouteCollectionFactory.php new file mode 100644 index 0000000..7535fe4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/PaymentRouteCollectionFactory.php @@ -0,0 +1,40 @@ +has(['amount', 'destination.organizationId'], $item)) { + throw new LogicException('Invalid PaymentRoute data provided'); + } + + return new PaymentRoute( + MoneyFactory::new(Arr::get($item, 'amount'))->create(), + Arr::get($item, 'destination.organizationId'), + Utility::transform( + Arr::get($item, 'delayUntil'), + fn ($value) => new Date($value), + Date::class + ) + ); + }, $this->get()); + + return new DataCollection($paymentRoutes); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/RecipientFactory.php b/vendor/mollie/mollie-api-php/src/Factories/RecipientFactory.php new file mode 100644 index 0000000..e9a1ec1 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/RecipientFactory.php @@ -0,0 +1,32 @@ +get('type'), + $this->get('email'), + $this->get('streetAndNumber'), + $this->get('postalCode'), + $this->get('city'), + $this->get('country'), + $this->get('locale'), + $this->get('title'), + $this->get('givenName'), + $this->get('familyName'), + $this->get('organizationName'), + $this->get('organizationNumber'), + $this->get('vatNumber'), + $this->get('phone'), + $this->get('streetAdditional'), + $this->get('region'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/RecurringBillingCycleFactory.php b/vendor/mollie/mollie-api-php/src/Factories/RecurringBillingCycleFactory.php new file mode 100644 index 0000000..7ebb0d9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/RecurringBillingCycleFactory.php @@ -0,0 +1,22 @@ +get('interval'), + $this->get('descriptipn'), + $this->transformIfNotNull('amount', fn (array $item) => MoneyFactory::new($item)->create()), + $this->get('times'), + $this->transformIfNotNull('startDate', fn (string $item) => DateTimeImmutable::createFromFormat('Y-m-d', $item)), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/RefundRouteCollectionFactory.php b/vendor/mollie/mollie-api-php/src/Factories/RefundRouteCollectionFactory.php new file mode 100644 index 0000000..2731e3d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/RefundRouteCollectionFactory.php @@ -0,0 +1,33 @@ +has(['amount', 'source.organizationId'], $item)) { + throw new LogicException('Invalid RefundRoute data provided'); + } + + return new RefundRoute( + MoneyFactory::new(Arr::get($item, 'amount'))->create(), + Arr::get($item, 'source.organizationId') + ); + }, $this->get()); + + return new DataCollection($refundRoutes); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/RequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/RequestFactory.php new file mode 100644 index 0000000..b2f8085 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/RequestFactory.php @@ -0,0 +1,85 @@ +payload = $payload; + + return $this; + } + + /** + * @return static + */ + public function withQuery(array $query) + { + $this->query = $query; + + return $this; + } + + protected function payload(?string $key = null, $default = null, $backupKey = 'payment.') + { + return $this->get($key, $default, $this->payload, $backupKey); + } + + protected function query(?string $key = null, $default = null, $backupKey = 'filters.') + { + return $this->get($key, $default, $this->query, $backupKey); + } + + protected function payloadIncludes(string $key, $value) + { + return $this->includes($key, $value, $this->payload); + } + + protected function queryIncludes(string $key, $value) + { + return $this->includes($key, $value, $this->query); + } + + protected function payloadHas($key): bool + { + return $this->has($key, $this->payload); + } + + /** + * @param string|array $key + */ + protected function queryHas($key): bool + { + return $this->has($key, $this->query); + } + + protected function transformFromPayload($key, $resolver, $composableClass = null) + { + return $this->transformFromResolved($this->payload($key), $resolver, $composableClass); + } + + protected function transformFromQuery($key, $resolver, $composableClass = null) + { + return $this->transformFromResolved($this->query($key), $resolver, $composableClass); + } + + /** + * Map a value to a new form if it is not null. + */ + protected function transformFromResolved($resolvedValue, $composable, $resolver = null) + { + return Utility::transform($resolvedValue, $composable, $resolver); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/SortablePaginatedQueryFactory.php b/vendor/mollie/mollie-api-php/src/Factories/SortablePaginatedQueryFactory.php new file mode 100644 index 0000000..810e6de --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/SortablePaginatedQueryFactory.php @@ -0,0 +1,32 @@ +|Arrayable|null $data + */ + public function __construct($data = null) + { + parent::__construct($data); + + $this->withQuery($this->get()); + } + + public function create(): SortablePaginatedQuery + { + return new SortablePaginatedQuery( + $this->query('from'), + $this->query('limit'), + $this->query('sort'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/UpdateCustomerRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/UpdateCustomerRequestFactory.php new file mode 100644 index 0000000..6599355 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/UpdateCustomerRequestFactory.php @@ -0,0 +1,28 @@ +id = $id; + } + + public function create(): UpdateCustomerRequest + { + return new UpdateCustomerRequest( + $this->id, + $this->payload('name'), + $this->payload('email'), + $this->payload('locale'), + $this->payload('metadata'), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/UpdatePaymentLinkRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/UpdatePaymentLinkRequestFactory.php new file mode 100644 index 0000000..6f608da --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/UpdatePaymentLinkRequestFactory.php @@ -0,0 +1,32 @@ +paymentLinkId = $paymentLinkId; + } + + public function create(): UpdatePaymentLinkRequest + { + return new UpdatePaymentLinkRequest( + $this->paymentLinkId, + $this->payload('description'), + $this->payload('archived', false), + $this->payload('allowedMethods'), + $this->transformFromPayload('lines', fn ($items) => ! empty($items) ? OrderLineCollectionFactory::new($items)->create() : null), + $this->transformFromPayload('billingAddress', fn ($item) => Address::fromArray($item)), + $this->transformFromPayload('shippingAddress', fn ($item) => Address::fromArray($item)), + $this->transformFromPayload('minimumAmount', fn ($amount) => MoneyFactory::new($amount)->create()), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/UpdatePaymentRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/UpdatePaymentRequestFactory.php new file mode 100644 index 0000000..f0431bb --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/UpdatePaymentRequestFactory.php @@ -0,0 +1,34 @@ +id = $id; + } + + public function create(): UpdatePaymentRequest + { + return new UpdatePaymentRequest( + $this->id, + $this->payload('description'), + $this->payload('redirectUrl'), + $this->payload('cancelUrl'), + $this->payload('webhookUrl'), + $this->payload('metadata'), + $this->payload('method'), + $this->payload('locale'), + $this->payload('restrictPaymentMethodsToCountry'), + $this->payload('additional') ?? Utility::filterByProperties(UpdatePaymentRequest::class, $this->payload()), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/UpdatePaymentRouteRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/UpdatePaymentRouteRequestFactory.php new file mode 100644 index 0000000..9774677 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/UpdatePaymentRouteRequestFactory.php @@ -0,0 +1,35 @@ +paymentId = $paymentId; + $this->routeId = $routeId; + } + + public function create(): UpdatePaymentRouteRequest + { + if (! $this->payloadHas('releaseDate')) { + throw new LogicException('Release date is required'); + } + + return new UpdatePaymentRouteRequest( + $this->paymentId, + $this->routeId, + $this->transformFromPayload('releaseDate', fn ($date) => new Date($date), Date::class), + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/UpdateProfileRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/UpdateProfileRequestFactory.php new file mode 100644 index 0000000..9fddd74 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/UpdateProfileRequestFactory.php @@ -0,0 +1,32 @@ +id = $id; + } + + public function create(): UpdateProfileRequest + { + return new UpdateProfileRequest( + $this->id, + $this->payload('name'), + $this->payload('website'), + $this->payload('email'), + $this->payload('phone'), + $this->payload('description'), + $this->payload('countriesOfActivity'), + $this->payload('businessCategory'), + $this->payload('mode') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/UpdateSalesInvoiceRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/UpdateSalesInvoiceRequestFactory.php new file mode 100644 index 0000000..cde51b0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/UpdateSalesInvoiceRequestFactory.php @@ -0,0 +1,42 @@ +id = $id; + } + + public function create(): UpdateSalesInvoiceRequest + { + return new UpdateSalesInvoiceRequest( + $this->id, + $this->payload('status'), + $this->payload('recipientIdentifier'), + $this->payload('memo'), + $this->payload('paymentTerm'), + $this->transformFromPayload('paymentDetails', fn ($data) => PaymentDetails::fromArray($data)), + $this->transformFromPayload('emailDetails', fn ($data) => EmailDetails::fromArray($data)), + $this->transformFromPayload('recipient', fn ($data) => RecipientFactory::new($data)->create()), + $this + ->transformFromPayload( + 'lines', + fn (array $items) => InvoiceLineCollectionFactory::new($items)->create() + ), + $this->payload('webhookUrl'), + $this->transformFromPayload('discount', fn ($data) => Discount::fromArray($data)), + $this->payload('isEInvoice') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/UpdateSubscriptionRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/UpdateSubscriptionRequestFactory.php new file mode 100644 index 0000000..f3f3898 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/UpdateSubscriptionRequestFactory.php @@ -0,0 +1,37 @@ +customerId = $customerId; + $this->subscriptionId = $subscriptionId; + } + + public function create(): UpdateSubscriptionRequest + { + return new UpdateSubscriptionRequest( + $this->customerId, + $this->subscriptionId, + $this->transformFromPayload('amount', fn ($amount) => MoneyFactory::new($amount)->create()), + $this->payload('description'), + $this->payload('interval'), + $this->transformFromPayload('startDate', fn (string $date) => new Date($date), Date::class), + $this->payload('times'), + $this->payload('metadata'), + $this->payload('webhookUrl'), + $this->payload('mandateId') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Factories/UpdateWebhookRequestFactory.php b/vendor/mollie/mollie-api-php/src/Factories/UpdateWebhookRequestFactory.php new file mode 100644 index 0000000..8ea0d84 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Factories/UpdateWebhookRequestFactory.php @@ -0,0 +1,27 @@ +id = $id; + } + + public function create(): UpdateWebhookRequest + { + return new UpdateWebhookRequest( + $this->id, + $this->payload('url'), + $this->payload('name'), + $this->payload('eventTypes') + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Concerns/CreatesResourceResponses.php b/vendor/mollie/mollie-api-php/src/Fake/Concerns/CreatesResourceResponses.php new file mode 100644 index 0000000..0ccf794 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Concerns/CreatesResourceResponses.php @@ -0,0 +1,279 @@ + $overrides + */ + public static function payment( + ?string $id = null, + $status = null, + ?Money $amount = null, + ?string $description = null, + ?string $method = null, + array $overrides = [], + ): self { + return self::fromFixture('payment', self::mergeOverrides([ + 'id' => $id ?? self::generateId('tr_'), + 'status' => self::enumValue($status), + 'amount' => self::moneyToArray($amount), + 'description' => $description, + 'method' => $method, + ], $overrides)); + } + + public static function customer( + ?string $id = null, + ?string $name = null, + ?string $email = null, + ?string $locale = null, + array $overrides = [], + ): self { + return self::fromFixture('customer', self::mergeOverrides([ + 'id' => $id ?? self::generateId('cst_'), + 'name' => $name, + 'email' => $email, + 'locale' => $locale, + ], $overrides)); + } + + /** + * @param string|null $id + * @param BackedEnum|string|null $status + * @param Money|null $amount + * @param string|null $description + * @param string|null $customerId + * @param array $overrides + */ + public static function subscription( + ?string $id = null, + $status = null, + ?Money $amount = null, + ?string $description = null, + ?string $customerId = null, + array $overrides = [], + ): self { + return self::fromFixture('subscription', self::mergeOverrides([ + 'id' => $id ?? self::generateId('sub_'), + 'status' => self::enumValue($status), + 'amount' => self::moneyToArray($amount), + 'description' => $description, + 'customerId' => $customerId, + ], $overrides)); + } + + /** + * @param string|null $id + * @param BackedEnum|string|null $status + * @param string|null $method + * @param string|null $customerId + * @param array $overrides + */ + public static function mandate( + ?string $id = null, + $status = null, + ?string $method = null, + ?string $customerId = null, + array $overrides = [], + ): self { + return self::fromFixture('mandate', self::mergeOverrides([ + 'id' => $id ?? self::generateId('mdt_'), + 'status' => self::enumValue($status), + 'method' => $method, + 'customerId' => $customerId, + ], $overrides)); + } + + /** + * @param string|null $id + * @param BackedEnum|string|null $status + * @param Money|null $amount + * @param string|null $description + * @param string|null $paymentId + * @param array $overrides + */ + public static function refund( + ?string $id = null, + $status = null, + ?Money $amount = null, + ?string $description = null, + ?string $paymentId = null, + array $overrides = [], + ): self { + return self::fromFixture('refund', self::mergeOverrides([ + 'id' => $id ?? self::generateId('re_'), + 'status' => self::enumValue($status), + 'amount' => self::moneyToArray($amount), + 'description' => $description, + 'paymentId' => $paymentId, + ], $overrides)); + } + + public static function chargeback( + ?string $id = null, + ?Money $amount = null, + ?string $paymentId = null, + array $overrides = [], + ): self { + return self::fromFixture('chargeback', self::mergeOverrides([ + 'id' => $id ?? self::generateId('chb_'), + 'amount' => self::moneyToArray($amount), + 'paymentId' => $paymentId, + ], $overrides)); + } + + /** + * @param string|null $id + * @param string|null $description + * @param BackedEnum|string|null $status + * @param array $overrides + */ + public static function method( + ?string $id = null, + ?string $description = null, + $status = null, + array $overrides = [], + ): self { + return self::fromFixture('method', self::mergeOverrides([ + 'id' => $id, + 'description' => $description, + 'status' => self::enumValue($status), + ], $overrides)); + } + + /** + * @param string|null $id + * @param string|null $description + * @param Money|null $amount + * @param BackedEnum|string|null $status + * @param array $overrides + */ + public static function paymentLink( + ?string $id = null, + ?string $description = null, + ?Money $amount = null, + $status = null, + array $overrides = [], + ): self { + return self::fromFixture('payment-link', self::mergeOverrides([ + 'id' => $id ?? self::generateId('pl_'), + 'description' => $description, + 'amount' => self::moneyToArray($amount), + 'status' => self::enumValue($status), + ], $overrides)); + } + + /** + * @param string|null $id + * @param string|null $reference + * @param BackedEnum|string|null $status + * @param Money|null $grossAmount + * @param array $overrides + */ + public static function invoice( + ?string $id = null, + ?string $reference = null, + $status = null, + ?Money $grossAmount = null, + array $overrides = [], + ): self { + return self::fromFixture('invoice', self::mergeOverrides([ + 'id' => $id ?? self::generateId('inv_'), + 'reference' => $reference, + 'status' => self::enumValue($status), + 'grossAmount' => self::moneyToArray($grossAmount), + ], $overrides)); + } + + public static function capture( + ?string $id = null, + ?Money $amount = null, + ?string $description = null, + ?string $paymentId = null, + array $overrides = [], + ): self { + return self::fromFixture('capture', self::mergeOverrides([ + 'id' => $id ?? self::generateId('cpt_'), + 'amount' => self::moneyToArray($amount), + 'description' => $description, + 'paymentId' => $paymentId, + ], $overrides)); + } + + /** + * Build a MockResponse by loading the given fixture, replacing the + * `{{ RESOURCE_ID }}` placeholder, and overlaying the given overrides. + * + * @param string $fixtureKey + * @param array $overrides + */ + private static function fromFixture(string $fixtureKey, array $overrides): self + { + /** @var array $base */ + $base = json_decode(FakeResponseLoader::load($fixtureKey), true); + + $id = isset($overrides['id']) && is_string($overrides['id']) + ? $overrides['id'] + : ''; + + if ($id !== '' && isset($base['id']) && $base['id'] === '{{ RESOURCE_ID }}') { + $base['id'] = $id; + } + + return new self(array_replace($base, $overrides), 200, $id); + } + + /** + * @param array $typed + * @param array $extra + * @return array + */ + private static function mergeOverrides(array $typed, array $extra): array + { + return array_replace( + array_filter($typed, static fn ($value): bool => $value !== null), + $extra + ); + } + + /** + * @param BackedEnum|string|null $value + */ + private static function enumValue($value): ?string + { + if ($value instanceof BackedEnum) { + return (string) $value->value; + } + + return is_string($value) ? $value : null; + } + + /** + * @return array|null + */ + private static function moneyToArray(?Money $money): ?array + { + return $money?->toArray(); + } + + private static function generateId(string $prefix): string + { + return $prefix.bin2hex(random_bytes(5)); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/ErrorResponseBuilder.php b/vendor/mollie/mollie-api-php/src/Fake/ErrorResponseBuilder.php new file mode 100644 index 0000000..af0736c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/ErrorResponseBuilder.php @@ -0,0 +1,43 @@ +status = $status; + $this->title = $title; + $this->detail = $detail; + $this->field = $field; + } + + public function create(): MockResponse + { + $contents = json_decode(FakeResponseLoader::load('error'), true, flags: JSON_THROW_ON_ERROR); + $contents['status'] = $this->status; + $contents['title'] = $this->title; + $contents['detail'] = $this->detail; + $contents['field'] = $this->field; + + if (empty($this->field)) { + unset($contents['field']); + } + + return new MockResponse($contents, $this->status); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Events/blueprint.json b/vendor/mollie/mollie-api-php/src/Fake/Events/blueprint.json new file mode 100644 index 0000000..89811a7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Events/blueprint.json @@ -0,0 +1,17 @@ +{ + "resource": "event", + "id": "event_GvJ8WHrp5isUdRub9CJyH", + "type": "{{ TYPE }}", + "entityId": "{{ RESOURCE_ID }}", + "createdAt": "2024-12-16T15:59:04.0Z", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/events/event_GvJ8WHrp5isUdRub9CJyH", + "type": "application/hal+json" + }, + "documentation": { + "href": "https://docs.mollie.com/guides/webhooks", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/FakeResponseLoader.php b/vendor/mollie/mollie-api-php/src/Fake/FakeResponseLoader.php new file mode 100644 index 0000000..4c6be60 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/FakeResponseLoader.php @@ -0,0 +1,37 @@ +collectionClass = $collectionClass; + } + + public function add(array $item): self + { + $this->items[] = $item; + + return $this; + } + + public function addMany(array $items): self + { + foreach ($items as $item) { + $this->add($item); + } + + return $this; + } + + public function create(): MockResponse + { + $contents = FakeResponseLoader::load('empty-list'); + + $collectionKey = $this->collectionClass::getCollectionResourceName(); + $contents = str_replace('{{ RESOURCE_ID }}', $collectionKey, $contents); + + $data = json_decode($contents, true); + + $data['count'] = count($this->items); + $data['_embedded'][$collectionKey] = $this->items; + + return new MockResponse($data); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/MockEvent.php b/vendor/mollie/mollie-api-php/src/Fake/MockEvent.php new file mode 100644 index 0000000..f72943c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/MockEvent.php @@ -0,0 +1,88 @@ +eventClass = $eventClass; + $this->entityId = $entityId; + } + + public static function for(string $eventClass, string $entityId = ''): self + { + return new self($eventClass, $entityId); + } + + public function entityId(string $entityId): self + { + $this->entityId = $entityId; + + return $this; + } + + public function snapshot(): self + { + $this->isSnapshot = true; + + return $this; + } + + public function simple(): self + { + $this->isSnapshot = false; + + return $this; + } + + public function create(): array + { + $eventBlueprintData = $this->loadEventBlueprintData(); + + if (! $this->isSnapshot) { + return $eventBlueprintData; + } + + $resourceKey = Str::before($this->eventClass::type(), '.'); + + $resourceData = MockResponse::ok($resourceKey, $this->entityId) + ->json(); + + $eventBlueprintData['_embedded']['entity'] = $resourceData; + + return $eventBlueprintData; + } + + private function loadEventBlueprintData(): array + { + $eventBlueprint = json_decode( + FakeResponseLoader::loadEventBlueprint(), + true, + flags: JSON_THROW_ON_ERROR + ); + $eventBlueprint['type'] = $this->eventClass::type(); + + if ($this->entityId !== '') { + $eventBlueprint['entityId'] = $this->entityId; + } + + return $eventBlueprint; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/MockMollieClient.php b/vendor/mollie/mollie-api-php/src/Fake/MockMollieClient.php new file mode 100644 index 0000000..320bd24 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/MockMollieClient.php @@ -0,0 +1,35 @@ +httpClient = new MockMollieHttpAdapter($expectedResponses, $retainRequests); + + $this->setAccessToken('access_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); + } + + /** + * @param string|callable $callback + */ + public function assertSent($callback): void + { + $this->httpClient->assertSent($callback); + } + + public function assertSentCount(int $count): void + { + $this->httpClient->assertSentCount($count); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/MockMollieHttpAdapter.php b/vendor/mollie/mollie-api-php/src/Fake/MockMollieHttpAdapter.php new file mode 100644 index 0000000..6206ade --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/MockMollieHttpAdapter.php @@ -0,0 +1,151 @@ + + */ + private array $expected; + + private bool $retainRequests; + + private array $recorded = []; + + public function __construct(array $expectedResponses = [], bool $retainRequests = false) + { + $this->expected = $expectedResponses; + $this->retainRequests = $retainRequests; + } + + /** + * {@inheritDoc} + */ + public function sendRequest(PendingRequest $pendingRequest): Response + { + $requestClass = get_class($pendingRequest->getRequest()); + + $this->guardAgainstStrayRequests($requestClass); + + try { + $mockedResponse = $this->getResponse($requestClass, $pendingRequest); + } catch (NetworkExceptionInterface $e) { + throw new RetryableNetworkRequestException($pendingRequest, $e->getMessage()); + } catch (RequestExceptionInterface $e) { + throw new RetryableNetworkRequestException($pendingRequest, $e->getMessage()); + } + + $response = new Response( + $mockedResponse->createPsrResponse(), + $pendingRequest->createPsrRequest(), + $pendingRequest, + ); + + $this->recorded[] = [$pendingRequest, $response]; + + return $response; + } + + private function guardAgainstStrayRequests(string $requestClass): void + { + if (! Arr::has($this->expected, $requestClass)) { + throw new \RuntimeException('The request class '.$requestClass.' is not expected.'); + } + } + + /** + * Get the mocked response and remove it from the expected responses. + */ + private function getResponse(string $requestClass, PendingRequest $pendingRequest): MockResponse + { + $mockedResponse = Arr::get($this->expected, $requestClass); + + if ($mockedResponse instanceof Closure) { + $this->forgetRequest($requestClass); + + return $mockedResponse($pendingRequest); + } + + if (! ($mockedResponse instanceof SequenceMockResponse)) { + $this->forgetRequest($requestClass); + + return $mockedResponse; + } + + $response = $mockedResponse->shift(); + + if ($mockedResponse->isEmpty()) { + $this->forgetRequest($requestClass); + } + + if ($response instanceof Closure) { + $response = $response($pendingRequest); + } + + return $response; + } + + public function recorded(?callable $callback = null): array + { + if ($callback === null) { + return $this->recorded; + } + + return array_filter($this->recorded, fn ($recorded) => call_user_func_array($callback, $recorded)); + } + + private function forgetRequest(string $requestClass): void + { + if (! $this->retainRequests) { + Arr::forget($this->expected, $requestClass); + } + } + + /** + * @param string|callable $callback + */ + public function assertSent($callback): void + { + if (is_string($callback)) { + $callback = fn (PendingRequest $request) => get_class($request->getRequest()) === $callback; + } + + PHPUnit::assertTrue( + count($this->recorded($callback)) > 0, + 'No requests were sent.' + ); + } + + public function assertSentCount(int $count): void + { + PHPUnit::assertEquals( + $count, + count($this->recorded), + 'The expected number of requests was not sent.' + ); + } + + /** + * {@inheritDoc} + */ + public function version(): string + { + return 'mock-client/2.0'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/MockResponse.php b/vendor/mollie/mollie-api-php/src/Fake/MockResponse.php new file mode 100644 index 0000000..6aaeb62 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/MockResponse.php @@ -0,0 +1,219 @@ +body = $this->convertToJson($body); + $this->status = $status; + $this->resourceKey = $resourceKey; + } + + /** + * @param string|array|callable $body + */ + private function convertToJson($body): string + { + if (is_array($body) && empty($body)) { + return '{}'; + } + + return is_array($body) + ? json_encode($body) + : $body; + } + + /** + * @param string|array $body + * @param string $resourceKey + */ + public static function ok($body = [], string $resourceKey = ''): self + { + return new self($body, 200, $resourceKey); + } + + /** + * @param string|array $body + * @param string $resourceKey + */ + public static function created($body = [], string $resourceKey = ''): self + { + return new self($body, 201, $resourceKey); + } + + public static function noContent(string $resourceKey = ''): self + { + return new self('', 204, $resourceKey); + } + + public static function notFound(string $description = 'No resource found'): self + { + return static::error(404, 'Not Found', $description); + } + + public static function unprocessableEntity(string $description = 'The request cannot be processed.', string $field = 'test'): self + { + return static::error(422, 'Unprocessable Entity', $description, $field); + } + + public static function error(int $status, string $title, string $detail, ?string $field = null): self + { + return (new ErrorResponseBuilder($status, $title, $detail, $field))->create(); + } + + public static function list(string $resourceKey): ListResponseBuilder + { + return new ListResponseBuilder($resourceKey); + } + + public static function resource(string $resourceKey): ResourceResponseBuilder + { + return new ResourceResponseBuilder($resourceKey); + } + + public function createPsrResponse(): ResponseInterface + { + $psrResponse = $this + ->factories() + ->responseFactory + ->createResponse($this->status); + + $body = $this + ->factories() + ->streamFactory + ->createStream($this->body()); + + return $psrResponse->withBody($body); + } + + public function body(): string + { + if (empty($body = $this->body)) { + return ''; + } + + if ($this->isJson($body)) { + return $body; + } + + $contents = json_decode( + FakeResponseLoader::load($body), + flags: JSON_THROW_ON_ERROR + ); + + if ($this->resourceKey !== '') { + $contents = $this->replaceResourceId($contents, $this->resourceKey); + } + + return json_encode($contents, JSON_THROW_ON_ERROR); + } + + public function json(): array + { + return json_decode($this->body(), true); + } + + private function isJson($string): bool + { + json_decode($string); + + return json_last_error() == JSON_ERROR_NONE; + } + + private function replaceResourceId(mixed $value, string $resourceId): mixed + { + if (is_string($value)) { + return str_replace('{{ RESOURCE_ID }}', $resourceId, $value); + } + + if (is_object($value)) { + $replaced = new \stdClass; + + foreach (get_object_vars($value) as $key => $item) { + $key = str_replace('{{ RESOURCE_ID }}', $resourceId, (string) $key); + $replaced->{$key} = $this->replaceResourceId($item, $resourceId); + } + + return $replaced; + } + + if (! is_array($value)) { + return $value; + } + + $replaced = []; + + foreach ($value as $key => $item) { + $key = is_string($key) + ? str_replace('{{ RESOURCE_ID }}', $resourceId, $key) + : $key; + + $replaced[$key] = $this->replaceResourceId($item, $resourceId); + } + + return $replaced; + } + + public function __serialize(): array + { + return [ + 'version' => self::SERIALIZATION_VERSION, + 'body' => $this->body, + 'status' => $this->status, + 'resourceKey' => $this->resourceKey, + ]; + } + + public function __unserialize(array $data): void + { + $keys = ['body', 'status', 'resourceKey']; + + if (array_key_exists('version', $data)) { + if ($data['version'] !== self::SERIALIZATION_VERSION) { + throw new UnexpectedValueException('Unsupported MockResponse serialization version.'); + } + + $keys = ['version', ...$keys]; + } + + if (count($data) !== count($keys) || array_diff($keys, array_keys($data)) !== []) { + throw new UnexpectedValueException('Invalid MockResponse serialized data shape.'); + } + + if (! is_string($data['body']) || ! is_int($data['status']) || ! is_string($data['resourceKey'])) { + throw new UnexpectedValueException('Invalid MockResponse serialized data types.'); + } + + $this->body = $data['body']; + $this->status = $data['status']; + $this->resourceKey = $data['resourceKey']; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/ResourceResponseBuilder.php b/vendor/mollie/mollie-api-php/src/Fake/ResourceResponseBuilder.php new file mode 100644 index 0000000..f3cc588 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/ResourceResponseBuilder.php @@ -0,0 +1,104 @@ + */ + private array $embeddedBuilders = []; + + private ?string $currentEmbedKey = null; + + public function __construct(string $resourceClass) + { + if (! is_subclass_of($resourceClass, BaseResource::class)) { + throw new LogicException('Resource class must be a subclass of '.BaseResource::class); + } + + $this->resourceClass = $resourceClass; + } + + /** + * Set the resource data. + */ + public function with(array $data): self + { + $this->data = $data; + + return $this; + } + + /** + * Create the mock response with the resource data and any embedded collections. + */ + public function create(): MockResponse + { + $baseName = Str::snake(Utility::classBasename($this->resourceClass), '-'); + + $sampleContents = json_decode(FakeResponseLoader::load($baseName), true); + + $data = array_merge( + ['_embedded' => []], + ['_links' => $sampleContents['_links']], + $this->data + ); + + foreach ($this->embeddedBuilders as $key => $builder) { + $embeddedResponse = $builder->create(); + $embeddedData = $embeddedResponse->json(); + + $data['_embedded'] = array_merge($data['_embedded'], $embeddedData['_embedded']); + } + + // reorder the data for dev's convenience + $data = array_merge( + $this->data, + [ + '_embedded' => $data['_embedded'], + '_links' => $data['_links'], + ] + ); + + if (empty($data['_embedded'])) { + unset($data['_embedded']); + } + + return new MockResponse($data); + } + + public function __call($method, $parameters) + { + if ($method === 'embed') { + /** @var string $collectionClass */ + $collectionClass = $parameters[0]; + + if (! isset($this->embeddedBuilders[$collectionClass])) { + $this->embeddedBuilders[$collectionClass] = new ListResponseBuilder($collectionClass); + } + + $this->currentEmbedKey = $collectionClass; + + return $this; + } + + if ($this->currentEmbedKey && isset($this->embeddedBuilders[$this->currentEmbedKey]) && method_exists($this->embeddedBuilders[$this->currentEmbedKey], $method)) { + return $this->forwardDecoratedCallTo($this->embeddedBuilders[$this->currentEmbedKey], $method, $parameters); + } + + throw new \BadMethodCallException("Method {$method} does not exist."); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/apple-pay-session.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/apple-pay-session.json new file mode 100644 index 0000000..3729047 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/apple-pay-session.json @@ -0,0 +1,10 @@ +{ + "epochTimestamp": 1555507053169, + "expiresAt": 1555510653169, + "merchantSessionIdentifier": "SSH2EAF8AFAEAA94DEEA898162A5DAFD36E_916523AAED1343F5BC5815E12BEE9250AFFDC1A17C46B0DE5A9", + "nonce": "0206b8db", + "merchantIdentifier": "BD62FEB196874511C22DB28A9E14A89E3534C93194F73EA417EC566368D391EB", + "domainName": "pay.example.org", + "displayName": "Chuck Norris's Store", + "signature": "308006092a864886f7...8cc030ad3000000000000" +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/balance-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/balance-list.json new file mode 100644 index 0000000..167cfd7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/balance-list.json @@ -0,0 +1,106 @@ +{ + "count": 2, + "_embedded": { + "balances": [ + { + "resource": "balance", + "id": "bal_gVMhHKqSSRYJyPsuoPNFH", + "mode": "live", + "createdAt": "2019-01-10T12:06:28+00:00", + "currency": "EUR", + "status": "active", + "availableAmount": { + "value": "0.00", + "currency": "EUR" + }, + "pendingAmount": { + "value": "0.00", + "currency": "EUR" + }, + "incomingAmount": { + "value": "0.00", + "currency": "EUR" + }, + "outgoingAmount": { + "value": "0.00", + "currency": "EUR" + }, + "transferFrequency": "daily", + "transferThreshold": { + "value": "40.00", + "currency": "EUR" + }, + "transferReference": "Mollie payout", + "transferDestination": { + "type": "bank-account", + "beneficiaryName": "Jack Bauer", + "bankAccount": "NL53INGB0654422370", + "bankAccountId": "bnk_jrty3f" + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + } + } + }, + { + "resource": "balance", + "id": "bal_gVMhHKqSSRYJyPsuoPABC", + "mode": "live", + "createdAt": "2019-01-10T10:23:41+00:00", + "status": "active", + "currency": "EUR", + "availableAmount": { + "value": "0.00", + "currency": "EUR" + }, + "pendingAmount": { + "value": "0.00", + "currency": "EUR" + }, + "incomingAmount": { + "value": "0.00", + "currency": "EUR" + }, + "outgoingAmount": { + "value": "0.00", + "currency": "EUR" + }, + "transferFrequency": "twice-a-month", + "transferThreshold": { + "value": "5.00", + "currency": "EUR" + }, + "transferReference": "Mollie payout", + "transferDestination": { + "type": "bank-account", + "beneficiaryName": "Jack Bauer", + "bankAccount": "NL97MOLL6351480700", + "bankAccountId": "bnk_jrty3e" + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + } + } + } + ] + }, + "_links": { + "documentation": { + "href": "...", + "type": "text/html" + }, + "self": { + "href": "https://api.mollie.com/v2/balances?limit=5", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "...", + "type": "application/hal+json" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/balance-report.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/balance-report.json new file mode 100644 index 0000000..cd217ff --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/balance-report.json @@ -0,0 +1,149 @@ +{ + "resource": "balance-report", + "balanceId": "{{ RESOURCE_ID }}", + "timeZone": "Europe/Amsterdam", + "from": "2024-01-01", + "until": "2024-01-31", + "grouping": "transaction-categories", + "totals": { + "open": { + "available": { + "amount": { + "currency": "EUR", + "value": "0.00" + } + }, + "pending": { + "amount": { + "currency": "EUR", + "value": "0.00" + } + } + }, + "payments": { + "immediatelyAvailable": { + "amount": { + "currency": "EUR", + "value": "0.00" + } + }, + "pending": { + "amount": { + "currency": "EUR", + "value": "4.98" + }, + "subtotals": [ + { + "transactionType": "payment", + "count": 1, + "amount": { + "currency": "EUR", + "value": "4.98" + }, + "subtotals": [ + { + "method": "ideal", + "count": 1, + "amount": { + "currency": "EUR", + "value": "4.98" + } + } + ] + } + ] + }, + "movedToAvailable": { + "amount": { + "currency": "EUR", + "value": "0.00" + } + } + }, + "refunds": {}, + "capital": {}, + "chargebacks": {}, + "transfers": {}, + "fee-prepayments": { + "immediatelyAvailable": { + "amount": { + "currency": "EUR", + "value": "0.00" + } + }, + "movedToAvailable": { + "amount": { + "currency": "EUR", + "value": "-0.36" + }, + "subtotals": [ + { + "prepaymentPartType": "fee", + "count": 1, + "amount": { + "currency": "EUR", + "value": "-0.29" + }, + "subtotals": [ + { + "feeType": "payment-fee", + "method": "ideal", + "count": 1, + "amount": { + "currency": "EUR", + "value": "-0.29" + } + } + ] + }, + { + "prepaymentPartType": "fee-vat", + "amount": { + "currency": "EUR", + "value": "-0.0609" + } + }, + { + "prepaymentPartType": "fee-rounding-compensation", + "amount": { + "currency": "EUR", + "value": "-0.0091" + } + } + ] + }, + "pending": { + "amount": { + "currency": "EUR", + "value": "-0.36" + }, + "subtotals": [] + } + }, + "corrections": {}, + "close": { + "available": { + "amount": { + "currency": "EUR", + "value": "0.00" + } + }, + "pending": { + "amount": { + "currency": "EUR", + "value": "4.32" + } + } + } + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/balance-transaction-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/balance-transaction-list.json new file mode 100644 index 0000000..a7966c9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/balance-transaction-list.json @@ -0,0 +1,63 @@ +{ + "count": 5, + "_embedded": { + "balance_transactions": [ + { + "resource": "balance_transaction", + "id": "baltr_*", + "type": "refund", + "resultAmount": { + "currency": "EUR", + "value": "-10.25" + }, + "initialAmount": { + "currency": "EUR", + "value": "-10.00" + }, + "deductions": { + "currency": "EUR", + "value": "-0.25" + }, + "context": { + "paymentId": "tr_7UhSN1zuXS", + "refundId": "re_4qqhO89gsT" + } + }, + { + "resource": "balance_transaction", + "id": "baltr_WhmDwNYR87FPDbiwBhUXCh", + "type": "payment", + "resultAmount": { + "currency": "EUR", + "value": "9.71" + }, + "initialAmount": { + "currency": "EUR", + "value": "10.00" + }, + "deductions": { + "currency": "EUR", + "value": "-0.29" + }, + "context": { + "paymentId": "tr_7UhSN1zuXS" + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/balances/bal_gVMhHKqSSRYJyPsuoPNFH/transactions?from=baltr_*&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/balance-transaction.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/balance-transaction.json new file mode 100644 index 0000000..b8b372d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/balance-transaction.json @@ -0,0 +1,31 @@ +{ + "resource": "balance_transaction", + "id": "baltr_*", + "type": "refund", + "resultAmount": { + "currency": "EUR", + "value": "-10.25" + }, + "initialAmount": { + "currency": "EUR", + "value": "-10.00" + }, + "deductions": { + "currency": "EUR", + "value": "-0.25" + }, + "context": { + "paymentId": "tr_7UhSN1zuXS", + "refundId": "re_4qqhO89gsT" + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/balance.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/balance.json new file mode 100644 index 0000000..6c0de3a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/balance.json @@ -0,0 +1,46 @@ +{ + "resource": "balance", + "id": "bal_gVMhHKqSSRYJyPsuoPNFH", + "mode": "live", + "createdAt": "2019-01-10T10:23:41+00:00", + "currency": "EUR", + "status": "active", + "availableAmount": { + "value": "0.00", + "currency": "EUR" + }, + "pendingAmount": { + "value": "0.00", + "currency": "EUR" + }, + "incomingAmount": { + "value": "0.00", + "currency": "EUR" + }, + "outgoingAmount": { + "value": "0.00", + "currency": "EUR" + }, + "transferFrequency": "twice-a-month", + "transferThreshold": { + "value": "5.00", + "currency": "EUR" + }, + "transferReference": "Mollie payout", + "transferDestination": { + "type": "bank-account", + "beneficiaryName": "Jack Bauer", + "bankAccount": "NL53INGB0654422370", + "bankAccountId": "bnk_jrty3f" + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/business-account-transfer.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/business-account-transfer.json new file mode 100644 index 0000000..31164f4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/business-account-transfer.json @@ -0,0 +1,21 @@ +{ + "resource": "business-account-transfer", + "id": "{{ RESOURCE_ID }}", + "amount": { + "currency": "EUR", + "value": "100.00" + }, + "status": "processed", + "description": "Business account transfer", + "createdAt": "2023-12-25T10:30:54+00:00", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/capability-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/capability-list.json new file mode 100644 index 0000000..1f57918 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/capability-list.json @@ -0,0 +1,70 @@ +{ + "count": 2, + "_embedded": { + "capabilities": [ + { + "resource": "capability", + "name": "payments", + "requirements": [ + { + "id": "legal-representatives", + "dueDate": null, + "status": "requested" + }, + { + "id": "bank-account", + "dueDate": null, + "status": "requested" + } + ], + "status": "pending", + "statusReason": "onboarding-information-needed", + "organizationId": "org_12345678", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "dashboard": { + "href": "https://my.mollie.com/dashboard/...", + "type": "text/html" + } + } + }, + { + "resource": "capability", + "name": "capital", + "requirements": [ + { + "id": "legal-representatives", + "dueDate": "2024-05-14T01:29:09.0Z", + "status": "past-due" + } + ], + "status": "disabled", + "statusReason": "requirement-past-due", + "organizationId": "org_12345678", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "dashboard": { + "href": "https://my.mollie.com/dashboard/...", + "type": "text/html" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/capability.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/capability.json new file mode 100644 index 0000000..e288d62 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/capability.json @@ -0,0 +1,28 @@ +{ + "resource": "capability", + "name": "{{ RESOURCE_ID }}", + "requirements": [ + { + "id": "legal-representatives", + "dueDate": null, + "status": "requested" + } + ], + "status": "pending", + "statusReason": "onboarding-information-needed", + "organizationId": "org_12345678", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "dashboard": { + "href": "https://my.mollie.com/dashboard/...", + "type": "text/html" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/capture-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/capture-list.json new file mode 100644 index 0000000..aa9a865 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/capture-list.json @@ -0,0 +1,45 @@ +{ + "count": 1, + "_embedded": { + "captures": [ + { + "resource": "capture", + "id": "cpt_mNepDkEtco6ah3QNPUGYH", + "mode": "live", + "description": "Capture for cart #12345", + "amount": { + "currency": "EUR", + "value": "35.95" + }, + "metadata": "{\"bookkeeping_id\":12345}", + "paymentId": "tr_7UhSN1zuXS", + "createdAt": "2023-08-02T09:29:56.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "payment": { + "href": "https://api.mollie.com/v2/payments/tr_7UhSN1zuXS", + "type": "application/hal+json" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/payments/tr_7UhSN1zuXS/captures?from=cpt_Sy3NzD2TYuQtUaxNyu8aH&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/capture.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/capture.json new file mode 100644 index 0000000..5690775 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/capture.json @@ -0,0 +1,27 @@ +{ + "resource": "capture", + "id": "{{ RESOURCE_ID }}", + "mode": "live", + "description": "Capture for cart #12345", + "amount": { + "currency": "EUR", + "value": "35.95" + }, + "metadata": "{\"bookkeeping_id\":12345}", + "paymentId": "tr_7UhSN1zuXS", + "createdAt": "2023-08-02T09:29:56.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "payment": { + "href": "https://api.mollie.com/v2/payments/tr_7UhSN1zuXS", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/chargeback-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/chargeback-list.json new file mode 100644 index 0000000..91e36fd --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/chargeback-list.json @@ -0,0 +1,210 @@ +{ + "count": 2, + "_embedded": { + "chargebacks": [ + { + "resource": "chargeback", + "id": "chb_xg7414", + "amount": { + "value": "10.00", + "currency": "EUR" + }, + "createdAt": "2022-01-03T13:28:13+00:00", + "paymentId": "tr_HdQrGb6N3r", + "settlementAmount": { + "value": "-10.00", + "currency": "EUR" + }, + "_embedded": { + "payment": { + "resource": "payment", + "id": "tr_HdQrGb6N3r", + "mode": "test", + "createdAt": "2022-01-03T13:27:35+00:00", + "amount": { + "value": "10.00", + "currency": "EUR" + }, + "description": "This is the description of the payment", + "method": "creditcard", + "metadata": { + "someProperty": "someValue", + "anotherProperty": "anotherValue" + }, + "status": "paid", + "paidAt": "2022-01-03T13:28:10+00:00", + "amountRefunded": { + "value": "0.00", + "currency": "EUR" + }, + "amountRemaining": { + "value": "10.00", + "currency": "EUR" + }, + "amountChargedBack": { + "value": "10.00", + "currency": "EUR" + }, + "locale": "en_US", + "restrictPaymentMethodsToCountry": "NL", + "countryCode": "NL", + "profileId": "pfl_85dxyKqNHa", + "sequenceType": "oneoff", + "redirectUrl": "https://example.com/landing_page", + "webhookUrl": "https://example.com/redirect", + "settlementAmount": { + "value": "10.00", + "currency": "EUR" + }, + "details": { + "cardNumber": "6787", + "cardHolder": "T. TEST", + "cardAudience": "consumer", + "cardLabel": "Mastercard", + "cardCountryCode": "NL", + "cardSecurity": "normal", + "feeRegion": "other" + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "dashboard": { + "href": "https://www.mollie.com/dashboard/org_13514547/payments/tr_HdQrGb6N3r", + "type": "text/html" + }, + "changePaymentState": { + "href": "https://www.mollie.com/checkout/test-mode?method=creditcard&token=3.lxnsca", + "type": "text/html" + }, + "chargebacks": { + "href": "https://api.mollie.com/v2/payments/tr_HdQrGb6N3r/chargebacks", + "type": "application/hal+json" + } + } + } + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "payment": { + "href": "https://api.mollie.com/v2/payments/tr_HdQrGb6N3r", + "type": "application/hal+json" + } + } + }, + { + "resource": "chargeback", + "id": "chb_ls7ahg", + "amount": { + "value": "10.00", + "currency": "EUR" + }, + "createdAt": "2022-01-03T13:20:37+00:00", + "paymentId": "tr_8bVBhk2qs4", + "settlementAmount": { + "value": "-10.00", + "currency": "EUR" + }, + "_embedded": { + "payment": { + "resource": "payment", + "id": "tr_8bVBhk2qs4", + "mode": "test", + "createdAt": "2022-01-03T13:11:20+00:00", + "amount": { + "value": "10.00", + "currency": "EUR" + }, + "description": "This is the description of the payment", + "method": "creditcard", + "metadata": { + "someProperty": "someValue", + "anotherProperty": "anotherValue" + }, + "status": "paid", + "paidAt": "2022-01-03T13:18:39+00:00", + "amountRefunded": { + "value": "0.00", + "currency": "EUR" + }, + "amountRemaining": { + "value": "10.00", + "currency": "EUR" + }, + "amountChargedBack": { + "value": "10.00", + "currency": "EUR" + }, + "locale": "en_US", + "restrictPaymentMethodsToCountry": "NL", + "countryCode": "NL", + "profileId": "pfl_85dxyKqNHa", + "sequenceType": "oneoff", + "redirectUrl": "https://example.com/landing_page", + "webhookUrl": "https://example.com/redirect", + "settlementAmount": { + "value": "10.00", + "currency": "EUR" + }, + "details": { + "cardNumber": "6787", + "cardHolder": "T. TEST", + "cardAudience": "consumer", + "cardLabel": "Mastercard", + "cardCountryCode": "NL", + "cardSecurity": "normal", + "feeRegion": "other" + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "dashboard": { + "href": "https://www.mollie.com/dashboard/org_13514547/payments/tr_8bVBhk2qs4", + "type": "text/html" + }, + "changePaymentState": { + "href": "https://www.mollie.com/checkout/test-mode?method=creditcard&token=3.11roh2", + "type": "text/html" + }, + "chargebacks": { + "href": "https://api.mollie.com/v2/payments/tr_8bVBhk2qs4/chargebacks", + "type": "application/hal+json" + } + } + } + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "payment": { + "href": "https://api.mollie.com/v2/payments/tr_8bVBhk2qs4", + "type": "application/hal+json" + } + } + } + ] + }, + "_links": { + "documentation": { + "href": "...", + "type": "text/html" + }, + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "...", + "type": "application/hal+json" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/chargeback.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/chargeback.json new file mode 100644 index 0000000..2792646 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/chargeback.json @@ -0,0 +1,33 @@ +{ + "resource": "chargeback", + "id": "{{ RESOURCE_ID }}", + "amount": { + "currency": "USD", + "value": "43.38" + }, + "settlementAmount": { + "currency": "EUR", + "value": "-35.07" + }, + "reason": { + "code": "AC01", + "description": "Account identifier incorrect (i.e. invalid IBAN)" + }, + "paymentId": "tr_7UhSN1zuXS", + "createdAt": "2023-03-14T17:09:02.0Z", + "reversedAt": null, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "payment": { + "href": "https://api.mollie.com/v2/payments/tr_7UhSN1zuXS", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/client-link.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/client-link.json new file mode 100644 index 0000000..5e2314c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/client-link.json @@ -0,0 +1,14 @@ +{ + "id": "csr_ayCz46QLwCbxpTaSYQQZH", + "resource": "client-link", + "_links": { + "clientLink": { + "href": "https://my.mollie.com/dashboard/client-link/csr_ayCz46QLwCbxpTaSYQQZH", + "type": "text/html" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/client-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/client-list.json new file mode 100644 index 0000000..384c85f --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/client-list.json @@ -0,0 +1,33 @@ +{ + "count": 2, + "_embedded": { + "clients": [ + { + "resource": "client", + "id": "org_12345678", + "organizationCreatedAt": "2023-04-06 13:10:19+00:00", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/clients?from=org_63916732&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/client.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/client.json new file mode 100644 index 0000000..525e9a5 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/client.json @@ -0,0 +1,52 @@ +{ + "resource": "client", + "id": "org_7049691", + "organizationCreatedAt": "2019-12-06T10:09:32+00:00", + "_embedded": { + "organization": { + "resource": "organization", + "id": "org_7049691", + "name": "Hugo's eenzame zaak", + "email": "[[redacted]]", + "locale": "en_US", + "address": { + "streetAndNumber": "[[redacted]]", + "postalCode": "[[redacted]]", + "city": "[[redacted]]", + "country": "[[redacted]]" + }, + "registrationNumber": "[[redacted]]", + "vatNumber": "", + "vatRegulation": "dutch", + "verifiedAt": "2020-10-19T11:45:36+00:00", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/organization/org_7049691", + "type": "application/hal+json" + }, + "dashboard": { + "href": "https://www.mollie.com/dashboard/org_7049691/", + "type": "text/html" + } + } + } + }, + "_links": { + "self": { + "href": "https://api.mollie.com/v2/clients/org_7049691", + "type": "application/hal+json" + }, + "onboarding": { + "href": "https://api.mollie.com/v2/onboarding/org_7049691", + "type": "application/hal+json" + }, + "organization": { + "href": "https://api.mollie.com/v2/organization/org_7049691", + "type": "application/hal+json" + }, + "documentation": { + "href": "https://docs.mollie.com/reference/v2/partners-api/get-client", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/connect-balance-transfer-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/connect-balance-transfer-list.json new file mode 100644 index 0000000..194cf30 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/connect-balance-transfer-list.json @@ -0,0 +1,82 @@ +{ + "_embedded": { + "connect_balance_transfers": [ + { + "resource": "connect-balance-transfer", + "id": "cbt_4KgGJJSZpH", + "amount": { + "currency": "EUR", + "value": "100.00" + }, + "source": { + "type": "organization", + "id": "org_12345678", + "description": "Payment from Organization A" + }, + "destination": { + "type": "organization", + "id": "org_87654321", + "description": "Payment to Organization B" + }, + "description": "Transfer from balance A to balance B", + "status": "succeeded", + "category": "manual_correction", + "executedAt": "2023-12-25T10:31:00+00:00", + "mode": "live", + "createdAt": "2023-12-25T10:30:54+00:00", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/connect/balance-transfers/cbt_4KgGJJSZpH", + "type": "application/hal+json" + } + } + }, + { + "resource": "connect-balance-transfer", + "id": "cbt_8KhHNOSdpL", + "amount": { + "currency": "EUR", + "value": "250.00" + }, + "source": { + "type": "organization", + "id": "org_12345678", + "description": "Monthly transfer from Org A" + }, + "destination": { + "type": "organization", + "id": "org_99887766", + "description": "Monthly transfer to Org C" + }, + "description": "Monthly balance transfer", + "status": "succeeded", + "category": "purchase", + "executedAt": "2023-12-26T10:31:15+00:00", + "mode": "live", + "createdAt": "2023-12-26T10:30:54+00:00", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/connect/balance-transfers/cbt_8KhHNOSdpL", + "type": "application/hal+json" + } + } + } + ] + }, + "count": 2, + "_links": { + "documentation": { + "href": "https://docs.mollie.com/reference/v2/connect-api/list-connect-balance-transfers", + "type": "text/html" + }, + "self": { + "href": "https://api.mollie.com/v2/connect/balance-transfers?limit=50", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/connect/balance-transfers?from=cbt_8KhHNOSdpL&limit=50", + "type": "application/hal+json" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/connect-balance-transfer.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/connect-balance-transfer.json new file mode 100644 index 0000000..783de72 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/connect-balance-transfer.json @@ -0,0 +1,24 @@ +{ + "resource": "connect-balance-transfer", + "id": "cbt_4KgGJJSZpH", + "amount": { + "currency": "EUR", + "value": "100.00" + }, + "source": { + "type": "organization", + "id": "org_12345678", + "description": "Payment from Organization A" + }, + "destination": { + "type": "organization", + "id": "org_87654321", + "description": "Payment to Organization B" + }, + "description": "Transfer from balance A to balance B", + "status": "succeeded", + "category": "manual_correction", + "executedAt": "2023-12-25T10:31:00+00:00", + "mode": "live", + "createdAt": "2023-12-25T10:30:54+00:00" +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/current-profile.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/current-profile.json new file mode 100644 index 0000000..bf5047c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/current-profile.json @@ -0,0 +1,47 @@ +{ + "resource": "profile", + "id": "{{ RESOURCE_ID }}", + "mode": "live", + "name": "Jonas Test BV", + "website": "https://example.com", + "email": "test@mollie.com", + "phone": "+31612345678", + "categoryCode": 6012, + "businessCategory": "MONEY_SERVICES", + "status": "verified", + "createdAt": "2021-12-08T15:42:58+00:00", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "dashboard": { + "href": "https://www.mollie.com/dashboard/org_13514547/settings/profiles/pfl_85dxyKqNHa", + "type": "text/html" + }, + "chargebacks": { + "href": "https://api.mollie.com/v2/chargebacks", + "type": "application/hal+json" + }, + "methods": { + "href": "https://api.mollie.com/v2/methods", + "type": "application/hal+json" + }, + "payments": { + "href": "https://api.mollie.com/v2/payments", + "type": "application/hal+json" + }, + "refunds": { + "href": "https://api.mollie.com/v2/refunds", + "type": "application/hal+json" + }, + "checkoutPreviewUrl": { + "href": "https://www.mollie.com/checkout/preview/{{ RESOURCE_ID }}", + "type": "text/html" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/cursor-collection-next.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/cursor-collection-next.json new file mode 100644 index 0000000..30d922d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/cursor-collection-next.json @@ -0,0 +1,18 @@ +{ + "count": 1, + "_links": { + "self": { + "href": "https:\/\/api.mollie.com\/v2\/payments?from={{ RESOURCE_ID }}" + }, + "next": { + "href": "https:\/\/api.mollie.com\/v2\/payments?from={{ RESOURCE_ID }}" + } + }, + "_embedded": { + "payments": [ + { + "id": "{{ RESOURCE_ID }}" + } + ] + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/cursor-collection.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/cursor-collection.json new file mode 100644 index 0000000..36a035a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/cursor-collection.json @@ -0,0 +1,15 @@ +{ + "count": 1, + "_links": { + "self": { + "href": "https:\/\/api.mollie.com\/v2\/payments?from={{ RESOURCE_ID }}" + } + }, + "_embedded": { + "payments": [ + { + "id": "{{ RESOURCE_ID }}" + } + ] + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/customer-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/customer-list.json new file mode 100644 index 0000000..1b73d95 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/customer-list.json @@ -0,0 +1,36 @@ +{ + "count": 5, + "_embedded": { + "customers": [ + { + "resource": "customer", + "id": "cst_8wmqcHMN4U", + "mode": "live", + "name": "John Doe", + "email": "customer@example.org", + "createdAt": "2023-04-06T13:10:19.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/customers?from=cst_stTC2WHAuS&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/customer.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/customer.json new file mode 100644 index 0000000..e1e9171 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/customer.json @@ -0,0 +1,27 @@ +{ + "resource": "customer", + "id": "{{ RESOURCE_ID }}", + "mode": "test", + "name": "Jane Doe", + "email": "test@mollie.com", + "locale": "en_US", + "metadata": { + "someProperty": "someValue", + "anotherProperty": "anotherValue" + }, + "createdAt": "2022-01-03T13:42:04+00:00", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "dashboard": { + "href": "https://www.mollie.com/dashboard/org_13514547/customers/cst_tKt44u85MM", + "type": "text/html" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/dispute.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/dispute.json new file mode 100644 index 0000000..f77927f --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/dispute.json @@ -0,0 +1,16 @@ +{ + "resource": "dispute", + "id": "{{ RESOURCE_ID }}", + "status": "open", + "createdAt": "2023-12-25T10:30:54+00:00", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/empty-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/empty-list.json new file mode 100644 index 0000000..e928366 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/empty-list.json @@ -0,0 +1,18 @@ +{ + "count": 0, + "_embedded": { + "{{ RESOURCE_ID }}": [] + }, + "_links": { + "documentation": { + "href": "...", + "type": "text/html" + }, + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": null + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/error.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/error.json new file mode 100644 index 0000000..672dfbb --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/error.json @@ -0,0 +1,12 @@ +{ + "status": "{{ CODE }}", + "title": "{{ TITLE }}", + "detail": "{{ DETAIL }}", + "field": "{{ FIELD }}", + "_links": { + "documentation": { + "href": "https://docs.mollie.com/overview/handling-errors", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/file.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/file.json new file mode 100644 index 0000000..c81ae2a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/file.json @@ -0,0 +1,16 @@ +{ + "resource": "file", + "id": "{{ RESOURCE_ID }}", + "status": "accepted", + "createdAt": "2023-12-25T10:30:54+00:00", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/invoice-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/invoice-list.json new file mode 100644 index 0000000..b4a6046 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/invoice-list.json @@ -0,0 +1,61 @@ +{ + "count": 1, + "_embedded": { + "invoices": [ + { + "resource": "invoice", + "id": "inv_xBEbP9rvAq", + "reference": "2023.10000", + "vatNumber": "NL001234567B01", + "status": "open", + "netAmount": { + "currency": "EUR", + "value": "45.00" + }, + "vatAmount": { + "currency": "EUR", + "value": "9.45" + }, + "grossAmount": { + "currency": "EUR", + "value": "54.45" + }, + "lines": [ + { + "period": "2023-09", + "description": "iDEAL payment fees", + "count": 100, + "vatPercentage": 21, + "amount": { + "currency": "EUR", + "value": "45.00" + } + } + ], + "issuedAt": "2023-09-01", + "dueAt": "2023-09-14", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/invoices?from=inv_TUhzbAFMrt&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/invoice.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/invoice.json new file mode 100644 index 0000000..1b5157f --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/invoice.json @@ -0,0 +1,47 @@ +{ + "resource": "invoice", + "id": "{{ RESOURCE_ID }}", + "reference": "2023.10000", + "vatNumber": "NL001234567B01", + "status": "open", + "netAmount": { + "currency": "EUR", + "value": "45.00" + }, + "vatAmount": { + "currency": "EUR", + "value": "9.45" + }, + "grossAmount": { + "currency": "EUR", + "value": "54.45" + }, + "lines": [ + { + "period": "2023-09", + "description": "iDEAL payment fees", + "count": 100, + "vatPercentage": 21, + "amount": { + "currency": "EUR", + "value": "45.00" + } + } + ], + "issuedAt": "2023-09-01", + "dueAt": "2023-09-14", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "pdf": { + "href": "https://www.mollie.com/merchant/download/invoice/xBEbP9rvAq/2ab44d60b35b1d06090bba955fa2c602", + "type": "application/pdf" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/issuer.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/issuer.json new file mode 100644 index 0000000..fbfca9f --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/issuer.json @@ -0,0 +1,16 @@ +{ + "resource": "issuer", + "id": "festivalcadeau", + "description": "FestivalCadeau Giftcard", + "status": "pending-issuer", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/mandate-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/mandate-list.json new file mode 100644 index 0000000..9fb0487 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/mandate-list.json @@ -0,0 +1,44 @@ +{ + "count": 1, + "_embedded": { + "mandates": [ + { + "resource": "mandate", + "id": "mdt_h3gAaD5zP", + "mode": "live", + "status": "valid", + "method": "directdebit", + "details": {}, + "mandateReference": "EXAMPLE-CORP-MD13804", + "signatureDate": "2023-05-07", + "customerId": "cst_4qqhO89gsT", + "createdAt": "2023-05-07T10:49:08.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "customer": { + "href": "https://api.mollie.com/v2/customers/cst_4qqhO89gsT", + "type": "application/hal+json" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/mandates?from=mdt_pWUnw6pkBN&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/mandate.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/mandate.json new file mode 100644 index 0000000..c961c0d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/mandate.json @@ -0,0 +1,30 @@ +{ + "resource": "mandate", + "id": "{{ RESOURCE_ID }}", + "mode": "live", + "status": "valid", + "method": "directdebit", + "details": { + "consumerName": "John Doe", + "consumerAccount": "NL55INGB0000000000", + "consumerBic": "INGBNL2A" + }, + "mandateReference": "EXAMPLE-CORP-MD13804", + "signatureDate": "2023-05-07", + "customerId": "cst_4qqhO89gsT", + "createdAt": "2023-05-07T10:49:08.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "customer": { + "href": "https://api.mollie.com/v2/customers/cst_4qqhO89gsT", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/method-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/method-list.json new file mode 100644 index 0000000..b45f379 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/method-list.json @@ -0,0 +1,55 @@ +{ + "count": 2, + "_embedded": { + "methods": [ + { + "resource": "method", + "id": "ideal", + "description": "iDEAL", + "minimumAmount": { + "value": "0.01", + "currency": "EUR" + }, + "maximumAmount": { + "value": "50000.00", + "currency": "EUR" + }, + "image": { + "size1x": "https://mollie.com/external/icons/payment-methods/ideal.png", + "size2x": "https://mollie.com/external/icons/payment-methods/ideal%402x.png", + "svg": "https://mollie.com/external/icons/payment-methods/ideal.svg" + }, + "status": "activated" + }, + { + "resource": "method", + "id": "creditcard", + "description": "Credit card", + "minimumAmount": { + "value": "0.01", + "currency": "EUR" + }, + "maximumAmount": { + "value": "2000.00", + "currency": "EUR" + }, + "image": { + "size1x": "https://mollie.com/external/icons/payment-methods/creditcard.png", + "size2x": "https://mollie.com/external/icons/payment-methods/creditcard%402x.png", + "svg": "https://mollie.com/external/icons/payment-methods/creditcard.svg" + }, + "status": "activated" + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/method.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/method.json new file mode 100644 index 0000000..a40be50 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/method.json @@ -0,0 +1,29 @@ +{ + "resource": "method", + "id": "{{ RESOURCE_ID }}", + "description": "iDEAL", + "minimumAmount": { + "value": "0.01", + "currency": "EUR" + }, + "maximumAmount": { + "value": "50000.00", + "currency": "EUR" + }, + "image": { + "size1x": "https://mollie.com/external/icons/payment-methods/ideal.png", + "size2x": "https://mollie.com/external/icons/payment-methods/ideal%402x.png", + "svg": "https://mollie.com/external/icons/payment-methods/ideal.svg" + }, + "status": "activated", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/onboarding.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/onboarding.json new file mode 100644 index 0000000..174aef9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/onboarding.json @@ -0,0 +1,26 @@ +{ + "resource": "onboarding", + "name": "Mollie B.V.", + "status": "completed", + "canReceivePayments": true, + "canReceiveSettlements": true, + "signedUpAt": "2023-12-20T10:49:08.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "dashboard": { + "href": "https://www.mollie.com/dashboard/onboarding", + "type": "text/html" + }, + "organization": { + "href": "https://api.mollie.com/v2/organizations/org_12345678", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/organization.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/organization.json new file mode 100644 index 0000000..2c2125d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/organization.json @@ -0,0 +1,29 @@ +{ + "resource": "organization", + "id": "{{ RESOURCE_ID }}", + "name": "Mollie B.V.", + "email": "info@mollie.com", + "locale": "nl_NL", + "address": { + "streetAndNumber": "Keizersgracht 126", + "postalCode": "1015 CW", + "city": "Amsterdam", + "country": "NL" + }, + "registrationNumber": "30204462", + "vatNumber": "NL815839091B01", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "dashboard": { + "href": "https://mollie.com/dashboard/{{ RESOURCE_ID }}", + "type": "text/html" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/partner-status.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/partner-status.json new file mode 100644 index 0000000..e847dfa --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/partner-status.json @@ -0,0 +1,19 @@ +{ + "resource": "partner", + "partnerType": "signuplink", + "partnerContractSignedAt": "2023-03-20T13:59:02.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "signuplink": { + "href": "https://www.mollie.com/dashboard/signup/exampleCode", + "type": "text/html" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/payment-link-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/payment-link-list.json new file mode 100644 index 0000000..334e7fe --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/payment-link-list.json @@ -0,0 +1,49 @@ +{ + "count": 5, + "_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.0Z", + "expiresAt": "2023-06-06T11:00:00.0Z", + "reusable": false, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "paymentLink": { + "href": "https://payment-links.mollie.com/payment/4Y0eZitmBnQ6IDoMqZQKh", + "type": "text/html" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "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": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/payment-link.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/payment-link.json new file mode 100644 index 0000000..b7260d2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/payment-link.json @@ -0,0 +1,72 @@ +{ + "resource": "payment-link", + "id": "{{ RESOURCE_ID }}", + "mode": "live", + "description": "Bicycle tires", + "amount": { + "currency": "EUR", + "value": "24.95" + }, + "minimumAmount": { + "currency": "EUR", + "value": "10.00" + }, + "lines": [ + { + "description": "Bicycle tire", + "quantity": 2, + "unitPrice": { + "currency": "EUR", + "value": "12.48" + }, + "totalAmount": { + "currency": "EUR", + "value": "24.95" + }, + "vatRate": "21.00", + "vatAmount": { + "currency": "EUR", + "value": "4.34" + } + } + ], + "billingAddress": { + "givenName": "John", + "familyName": "Doe", + "email": "john.doe@example.org", + "streetAndNumber": "Keizersgracht 126", + "postalCode": "1015 CW", + "city": "Amsterdam", + "country": "NL" + }, + "shippingAddress": { + "givenName": "Jane", + "familyName": "Doe", + "email": "jane.doe@example.org", + "streetAndNumber": "Herengracht 182", + "postalCode": "1016 BS", + "city": "Amsterdam", + "country": "NL" + }, + "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.0Z", + "expiresAt": "2023-06-06T11:00:00.0Z", + "reusable": false, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "paymentLink": { + "href": "https://payment-links.mollie.com/payment/4Y0eZitmBnQ6IDoMqZQKh", + "type": "text/html" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/payment-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/payment-list.json new file mode 100644 index 0000000..816e143 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/payment-list.json @@ -0,0 +1,57 @@ +{ + "count": 1, + "_embedded": { + "payments": [ + { + "resource": "payment", + "id": "tr_7UhSN1zuXS", + "mode": "live", + "status": "open", + "isCancelable": false, + "amount": { + "value": "75.00", + "currency": "GBP" + }, + "description": "Order #12345", + "method": "ideal", + "metadata": { + "order_id": "12345" + }, + "details": null, + "profileId": "pfl_QkEhN94Ba", + "redirectUrl": "https://webshop.example.org/order/12345/", + "createdAt": "2024-02-12T11:58:35.0Z", + "expiresAt": "2024-02-12T12:13:35.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "checkout": { + "href": "https://www.mollie.com/checkout/issuer/select/ideal/7UhSN1zuXS", + "type": "text/html" + }, + "dashboard": { + "href": "https://www.mollie.com/dashboard/org_12345678/payments/tr_7UhSN1zuXS", + "type": "text/html" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/payments?from=tr_SDkzMggpvx&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/payment-route.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/payment-route.json new file mode 100644 index 0000000..db073f5 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/payment-route.json @@ -0,0 +1,13 @@ +{ + "resource": "route", + "id": "rt_9dk4al1n", + "amount": { + "value": "7.50", + "currency": "EUR" + }, + "destination": { + "type": "organization", + "organizationId": "org_23456" + }, + "releaseDate": "2026-01-01" +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/payment.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/payment.json new file mode 100644 index 0000000..79408d2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/payment.json @@ -0,0 +1,37 @@ +{ + "resource": "payment", + "id": "{{ RESOURCE_ID }}", + "mode": "test", + "createdAt": "2018-03-13T14:02:29+00:00", + "amount": { + "value": "20.00", + "currency": "EUR" + }, + "description": "My first API payment", + "method": "ideal", + "metadata": { + "order_id": "1234" + }, + "status": "open", + "isCancelable": false, + "expiresAt": "2018-03-13T14:17:29+00:00", + "details": null, + "profileId": "pfl_2A1gacu42V", + "sequenceType": "oneoff", + "redirectUrl": "https://example.org/redirect", + "webhookUrl": "https://example.org/webhook", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "checkout": { + "href": "...", + "type": "text/html" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/payout-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/payout-list.json new file mode 100644 index 0000000..8427337 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/payout-list.json @@ -0,0 +1,53 @@ +{ + "count": 1, + "_embedded": { + "payouts": [ + { + "resource": "payout", + "id": "po_4KgGJJSZpH", + "mode": "live", + "testmode": false, + "createdAt": "2026-05-19T10:30:54+00:00", + "balanceId": "bal_gVMhHKqSSRYJyPsuoPNFH", + "amount": { + "currency": "EUR", + "value": "100.00" + }, + "description": "Scheduled payout", + "status": "requested", + "statusReason": { + "code": "requested", + "message": "The payout has been requested and will be executed on the next scheduled date." + }, + "initiatedAt": null, + "completedAt": null, + "canceledAt": null, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } + } + ] + }, + "_links": { + "documentation": { + "href": "...", + "type": "text/html" + }, + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/payouts?from=po_4KgGJJSZpH&limit=5", + "type": "application/hal+json" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/payout.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/payout.json new file mode 100644 index 0000000..7b66c1d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/payout.json @@ -0,0 +1,30 @@ +{ + "resource": "payout", + "id": "{{ RESOURCE_ID }}", + "mode": "live", + "balanceId": "bal_gVMhHKqSSRYJyPsuoPNFH", + "amount": { + "currency": "EUR", + "value": "100.00" + }, + "description": "Scheduled payout", + "status": "requested", + "statusReason": { + "code": "requested", + "message": "The payout has been requested and will be executed on the next scheduled date." + }, + "initiatedAt": null, + "completedAt": null, + "canceledAt": null, + "createdAt": "2023-12-25T10:30:54+00:00", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/permission-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/permission-list.json new file mode 100644 index 0000000..a062454 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/permission-list.json @@ -0,0 +1,41 @@ +{ + "count": 2, + "_embedded": { + "permissions": [ + { + "resource": "permission", + "id": "payments.read", + "description": "View your payments", + "granted": true, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + } + } + }, + { + "resource": "permission", + "id": "payments.write", + "description": "Create new payments", + "granted": false, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/permission.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/permission.json new file mode 100644 index 0000000..efa881d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/permission.json @@ -0,0 +1,16 @@ +{ + "resource": "permission", + "id": "{{ RESOURCE_ID }}", + "description": "View your payments", + "granted": true, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/profile-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/profile-list.json new file mode 100644 index 0000000..a5d609b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/profile-list.json @@ -0,0 +1,43 @@ +{ + "count": 1, + "_embedded": { + "profiles": [ + { + "resource": "profile", + "id": "pfl_QkEhN94Ba", + "mode": "live", + "name": "My website name", + "website": "https://shop.example.org", + "email": "info@example.org", + "phone": "+31208202070", + "businessCategory": "OTHER_MERCHANDISE", + "status": "verified", + "review": { + "status": "pending" + }, + "createdAt": "2023-03-20T09:28:37.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/profiles?from=pfl_v9hTwCvYqw&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/profile.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/profile.json new file mode 100644 index 0000000..1ab7019 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/profile.json @@ -0,0 +1,29 @@ +{ + "resource": "profile", + "id": "{{ RESOURCE_ID }}", + "mode": "live", + "name": "My website name", + "website": "https://shop.example.org", + "email": "info@example.org", + "phone": "+31208202070", + "businessCategory": "OTHER_MERCHANDISE", + "status": "verified", + "review": { + "status": "pending" + }, + "createdAt": "2023-03-20T09:28:37.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "dashboard": { + "href": "https://www.mollie.com/dashboard/org_123456789/settings/profiles/pfl_QkEhN94Ba", + "type": "text/html" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/refund-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/refund-list.json new file mode 100644 index 0000000..3ee516b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/refund-list.json @@ -0,0 +1,48 @@ +{ + "count": 1, + "_embedded": { + "refunds": [ + { + "resource": "refund", + "id": "re_4qqhO89gsT", + "mode": "live", + "description": "Order", + "amount": { + "currency": "EUR", + "value": "5.95" + }, + "status": "pending", + "metadata": { + "bookkeeping_id": 12345 + }, + "paymentId": "tr_7UhSN1zuXS", + "createdAt": "2023-03-14T17:09:02.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "payment": { + "href": "https://api.mollie.com/v2/payments/tr_7UhSN1zuXS", + "type": "application/hal+json" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/payments/tr_7UhSN1zuXS/refunds?from=re_APBiGPH2vV&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/refund.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/refund.json new file mode 100644 index 0000000..c7c5dfc --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/refund.json @@ -0,0 +1,28 @@ +{ + "resource": "refund", + "id": "{{ RESOURCE_ID }}", + "mode": "live", + "description": "Order", + "amount": { + "currency": "EUR", + "value": "5.95" + }, + "status": "pending", + "metadata": "{\"bookkeeping_id\":12345}", + "paymentId": "tr_7UhSN1zuXS", + "createdAt": "2023-03-14T17:09:02.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "payment": { + "href": "https://api.mollie.com/v2/payments/tr_7UhSN1zuXS", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/route-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/route-list.json new file mode 100644 index 0000000..ecbe5d5 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/route-list.json @@ -0,0 +1,67 @@ +{ + "count": 2, + "_embedded": { + "routes": [ + { + "resource": "route", + "id": "crt_kSq9CDTa6FzW7c6gpYq3J", + "paymentId": "tr_sva3o24VKn", + "createdAt": "2024-05-22T15:11:19+02:00", + "description": "Payment for Order #12345", + "amount": { + "value": "1.00", + "currency": "EUR" + }, + "destination": { + "type": "organization", + "organizationId": "org_123" + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } + }, + { + "resource": "route", + "id": "crt_kSq9CDTa6FzW7c6gpYq3K", + "paymentId": "tr_sva3o24VKv", + "createdAt": "2024-05-22T15:11:19+02:00", + "description": "Payment for Order #67890", + "amount": { + "value": "4.00", + "currency": "EUR" + }, + "destination": { + "type": "organization", + "organizationId": "org_56789" + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/route.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/route.json new file mode 100644 index 0000000..1be2ba4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/route.json @@ -0,0 +1,13 @@ +{ + "resource": "route", + "id": "{{ RESOURCE_ID }}", + "amount": { + "value": "7.50", + "currency": "EUR" + }, + "destination": { + "type": "organization", + "organizationId": "org_23456" + }, + "releaseDate": "2026-01-01" +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/sales-invoice-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/sales-invoice-list.json new file mode 100644 index 0000000..fdd397d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/sales-invoice-list.json @@ -0,0 +1,83 @@ +{ + "count": 1, + "_embedded": { + "sales_invoices": [ + { + "resource": "sales-invoice", + "id": "invoice_4Y0eZitmBnQ6IDoMqZQKh", + "profileId": "pfl_QkEhN94Ba", + "invoiceNumber": null, + "currency": "EUR", + "status": "draft", + "vatScheme": "standard", + "paymentTerm": "30 days", + "recipientIdentifier": "123532354", + "recipient": { + "title": null, + "givenName": "Given", + "familyName": "Family", + "email": "given.family@mollie.com", + "phone": null, + "streetAndNumber": "Street 1", + "streetAdditional": null, + "postalCode": "1000 AA", + "city": "Amsterdam", + "region": null, + "country": "NL" + }, + "lines": [ + { + "description": "LEGO 4440 Forest Police Station", + "quantity": 1, + "vatRate": "21", + "unitPrice": { + "value": "89.00", + "currency": "EUR" + }, + "discount": null + } + ], + "discount": null, + "amountDue": { + "value": "107.69", + "currency": "EUR" + }, + "subtotalAmount": { + "value": "89.00", + "currency": "EUR" + }, + "totalAmount": { + "value": "107.69", + "currency": "EUR" + }, + "totalVatAmount": { + "value": "18.69", + "currency": "EUR" + }, + "discountedSubtotalAmount": { + "value": "89.00", + "currency": "EUR" + }, + "createdAt": "2024-10-03T10:47:38.457381+00:00", + "issuedAt": null, + "dueAt": null, + "memo": null + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/sales/invoices?from=invoice_4yUfQpbKnd2DUTouUdUwH&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/sales-invoice.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/sales-invoice.json new file mode 100644 index 0000000..bda9bba --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/sales-invoice.json @@ -0,0 +1,81 @@ +{ + "resource": "sales-invoice", + "id": "invoice_4Y0eZitmBnQ6IDoMqZQKh", + "profileId": "pfl_QkEhN94Ba", + "invoiceNumber": null, + "currency": "EUR", + "status": "draft", + "vatScheme": "standard", + "paymentTerm": "30 days", + "recipientIdentifier": "123532354", + "recipient": { + "type": "consumer", + "title": null, + "givenName": "Given", + "familyName": "Family", + "email": "given.family@mollie.com", + "phone": null, + "streetAndNumber": "Street 1", + "streetAdditional": null, + "postalCode": "1000 AA", + "city": "Amsterdam", + "region": null, + "country": "NL", + "locale": "nl_NL" + }, + "lines": [ + { + "description": "LEGO 4440 Forest Police Station", + "quantity": 1, + "vatRate": "21", + "unitPrice": { + "value": "89.00", + "currency": "EUR" + }, + "discount": null + } + ], + "discount": null, + "amountDue": { + "value": "107.69", + "currency": "EUR" + }, + "subtotalAmount": { + "value": "89.00", + "currency": "EUR" + }, + "totalAmount": { + "value": "107.69", + "currency": "EUR" + }, + "totalVatAmount": { + "value": "18.69", + "currency": "EUR" + }, + "discountedSubtotalAmount": { + "value": "89.00", + "currency": "EUR" + }, + "createdAt": "2024-10-03T10:47:38.457381+00:00", + "issuedAt": null, + "dueAt": null, + "memo": null, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "invoicePayment": { + "href": "...", + "type": "application/hal+json" + }, + "pdfLink": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/session-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/session-list.json new file mode 100644 index 0000000..3ffdaa8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/session-list.json @@ -0,0 +1,53 @@ +{ + "count": 1, + "_embedded": { + "sessions": [ + { + "resource": "session", + "id": "ses_*", + "mode": "live", + "status": "created", + "amount": { + "value": "10.00", + "currency": "EUR" + }, + "description": "Order #12345", + "method": "paypal", + "methodDetails": { + "checkoutFlow": "express" + }, + "nextAction": "redirect", + "createdAt": "2024-01-10T12:06:28+00:00", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/sessions/ses_*", + "type": "application/hal+json" + }, + "redirect": { + "href": "https://paypalc.com/order/dghjfidf;gj", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/sessions?from=ses_*&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/session.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/session.json new file mode 100644 index 0000000..68f1cf8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/session.json @@ -0,0 +1,40 @@ +{ + "resource": "session", + "id": "{{ RESOURCE_ID }}", + "clientAccessToken": "dddiweodh23973yo23d2h...", + "status": "open", + "mode": "live", + "amount": { + "currency": "EUR", + "value": "10.00" + }, + "description": "Order #12345", + "redirectUrl": "https://example.com/redirect", + "cancelUrl": "https://example.com/cancel", + "metadata": { + "orderId": "12345" + }, + "payment": { + "webhookUrl": "https://webshop.example.org/payments/webhook" + }, + "lines": [ + { + "description": "Product A", + "quantity": 1, + "unitPrice": { + "currency": "EUR", + "value": "10.00" + }, + "totalAmount": { + "currency": "EUR", + "value": "10.00" + } + } + ], + "_links": { + "self": { + "href": "https://api.mollie.com/v2/sessions/{{ RESOURCE_ID }}", + "type": "application/hal+json" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/settlement-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/settlement-list.json new file mode 100644 index 0000000..e971f99 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/settlement-list.json @@ -0,0 +1,41 @@ +{ + "count": 1, + "_embedded": { + "settlements": [ + { + "resource": "settlement", + "id": "stl_jDk30akdN", + "reference": "1234567.2404.03", + "status": "paidout", + "amount": { + "currency": "EUR", + "value": "39.75" + }, + "balanceId": "bal_3kUf4yU2nT", + "periods": {}, + "settledAt": "2024-04-06T09:41:44.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/settlements?from=cst_stTC2WHAuS&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/settlement.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/settlement.json new file mode 100644 index 0000000..523b4d0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/settlement.json @@ -0,0 +1,125 @@ +{ + "resource": "settlement", + "id": "{{ RESOURCE_ID }}", + "reference": "1234567.2404.03", + "status": "paidout", + "amount": { + "currency": "EUR", + "value": "39.75" + }, + "balanceId": "bal_3kUf4yU2nT", + "periods": { + "2024": { + "04": { + "revenue": [ + { + "description": "iDEAL", + "method": "ideal", + "count": 6, + "amountNet": { + "currency": "EUR", + "value": "86.1000" + }, + "amountVat": null, + "amountGross": { + "currency": "EUR", + "value": "86.1000" + } + }, + { + "description": "Refunds iDEAL", + "method": "refund", + "count": 2, + "amountNet": { + "currency": "EUR", + "value": "-43.2000" + }, + "amountVat": null, + "amountGross": { + "currency": "EUR", + "value": "-43.2000" + } + } + ], + "costs": [ + { + "description": "iDEAL", + "method": "ideal", + "count": 6, + "rate": { + "fixed": { + "currency": "EUR", + "value": "0.3500" + }, + "percentage": null + }, + "amountNet": { + "currency": "EUR", + "value": "2.1000" + }, + "amountVat": { + "currency": "EUR", + "value": "0.4410" + }, + "amountGross": { + "currency": "EUR", + "value": "2.5410" + } + }, + { + "description": "Refunds iDEAL", + "method": "refund", + "count": 2, + "rate": { + "fixed": { + "currency": "EUR", + "value": "0.2500" + }, + "percentage": null + }, + "amountNet": { + "currency": "EUR", + "value": "0.5000" + }, + "amountVat": { + "currency": "EUR", + "value": "0.1050" + }, + "amountGross": { + "currency": "EUR", + "value": "0.6050" + } + } + ], + "invoiceId": "inv_FrvewDA3Pr" + } + } + }, + "settledAt": "2024-04-06T09:41:44.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "payments": { + "href": "https://api.mollie.com/v2/settlements/{{ RESOURCE_ID }}/payments", + "type": "application/hal+json" + }, + "refunds": { + "href": "https://api.mollie.com/v2/settlements/{{ RESOURCE_ID }}/refunds", + "type": "application/hal+json" + }, + "chargebacks": { + "href": "https://api.mollie.com/v2/settlements/{{ RESOURCE_ID }}/chargebacks", + "type": "application/hal+json" + }, + "captures": { + "href": "https://api.mollie.com/v2/settlements/{{ RESOURCE_ID }}/captures", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/subscription-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/subscription-list.json new file mode 100644 index 0000000..c0a47b7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/subscription-list.json @@ -0,0 +1,53 @@ +{ + "count": 1, + "_embedded": { + "subscriptions": [ + { + "resource": "subscription", + "id": "sub_rVKGtNd6s3", + "mode": "live", + "amount": { + "currency": "EUR", + "value": "25.00" + }, + "times": 4, + "timesRemaining": 4, + "interval": "3 months", + "startDate": "2023-06-01", + "nextPaymentDate": "2023-09-01", + "description": "Quarterly payment", + "method": null, + "status": "active", + "webhookUrl": "https://webshop.example.org/payments/webhook", + "customerId": "cst_stTC2WHAuS", + "mandateId": "mdt_38HS4fsS", + "createdAt": "2023-04-06T13:10:19.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "customer": { + "href": "https://api.mollie.com/v2/customers/cst_stTC2WHAuS", + "type": "application/hal+json" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/subscriptions?from=sub_mnXbwhMfvo&limit=5", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/subscription.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/subscription.json new file mode 100644 index 0000000..7ff63ff --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/subscription.json @@ -0,0 +1,35 @@ +{ + "resource": "subscription", + "id": "{{ RESOURCE_ID }}", + "mode": "live", + "amount": { + "currency": "EUR", + "value": "25.00" + }, + "times": 4, + "timesRemaining": 4, + "interval": "3 months", + "startDate": "2023-06-01", + "nextPaymentDate": "2023-09-01", + "description": "Quarterly payment", + "method": null, + "status": "active", + "webhookUrl": "https://webshop.example.org/payments/webhook", + "customerId": "cst_stTC2WHAuS", + "mandateId": "mdt_38HS4fsS", + "createdAt": "2023-04-06T13:10:19.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "customer": { + "href": "https://api.mollie.com/v2/customers/cst_stTC2WHAuS", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-list.json new file mode 100644 index 0000000..bf081f8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-list.json @@ -0,0 +1,41 @@ +{ + "count": 1, + "_embedded": { + "terminals": [ + { + "resource": "terminal", + "id": "term_7MgL4wea46qkRcoTZjWEH", + "mode": "live", + "status": "active", + "brand": "PAX", + "model": "A920", + "serialNumber": "1234567890", + "currency": "EUR", + "description": "Terminal #12345", + "profileId": "pfl_QkEhN94Ba", + "createdAt": "2022-02-12T11:58:35.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + } + } + } + ] + }, + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-pairing-code-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-pairing-code-list.json new file mode 100644 index 0000000..fd45850 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-pairing-code-list.json @@ -0,0 +1,69 @@ +{ + "count": 2, + "_embedded": { + "terminal-pairing-codes": [ + { + "resource": "terminal-pairing-code", + "id": "termpc_R7gX5Ea9bC4DkFj3G", + "mode": "live", + "code": "20eb5ca1f78b48ae9e2b", + "profileId": "pfl_jA9bC4DkFj3G", + "status": "active", + "expiresAt": "2026-03-10T10:00:00+00:00", + "revokedAt": null, + "createdAt": "2025-12-10T10:00:00+00:00", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/terminals/pairing-codes/termpc_R7gX5Ea9bC4DkFj3G", + "type": "application/hal+json" + }, + "profile": { + "href": "https://api.mollie.com/v2/profiles/pfl_jA9bC4DkFj3G", + "type": "application/hal+json" + }, + "documentation": { + "href": "https://docs.mollie.com/reference/terminals-get-pairing-code", + "type": "text/html" + } + } + }, + { + "resource": "terminal-pairing-code", + "id": "termpc_H5nR2Lp8qM6vBcXe", + "mode": "live", + "code": "3d7e1a4f8b2c905f6a4c", + "profileId": "pfl_jA9bC4DkFj3G", + "status": "revoked", + "expiresAt": "2026-01-08T10:00:00+00:00", + "revokedAt": "2025-11-15T08:30:00+00:00", + "createdAt": "2025-10-10T10:00:00+00:00", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/terminals/pairing-codes/termpc_H5nR2Lp8qM6vBcXe", + "type": "application/hal+json" + }, + "profile": { + "href": "https://api.mollie.com/v2/profiles/pfl_jA9bC4DkFj3G", + "type": "application/hal+json" + }, + "documentation": { + "href": "https://docs.mollie.com/reference/terminals-get-pairing-code", + "type": "text/html" + } + } + } + ] + }, + "_links": { + "self": { + "href": "https://api.mollie.com/v2/terminals/pairing-codes", + "type": "application/hal+json" + }, + "previous": null, + "next": null, + "documentation": { + "href": "https://docs.mollie.com/reference/terminals-list-pairing-codes", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-pairing-code-revoked.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-pairing-code-revoked.json new file mode 100644 index 0000000..3653933 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-pairing-code-revoked.json @@ -0,0 +1,25 @@ +{ + "resource": "terminal-pairing-code", + "id": "termpc_R7gX5Ea9bC4DkFj3G", + "mode": "live", + "code": "20eb5ca1f78b48ae9e2b", + "profileId": "pfl_jA9bC4DkFj3G", + "status": "revoked", + "expiresAt": "2026-03-10T10:00:00+00:00", + "revokedAt": "2026-01-15T09:30:00+00:00", + "createdAt": "2025-12-10T10:00:00+00:00", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/terminals/pairing-codes/termpc_R7gX5Ea9bC4DkFj3G", + "type": "application/hal+json" + }, + "profile": { + "href": "https://api.mollie.com/v2/profiles/pfl_jA9bC4DkFj3G", + "type": "application/hal+json" + }, + "documentation": { + "href": "https://docs.mollie.com/reference/terminals-get-pairing-code", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-pairing-code-with-qr.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-pairing-code-with-qr.json new file mode 100644 index 0000000..adcb159 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-pairing-code-with-qr.json @@ -0,0 +1,32 @@ +{ + "resource": "terminal-pairing-code", + "id": "termpc_R7gX5Ea9bC4DkFj3G", + "mode": "live", + "code": "20eb5ca1f78b48ae9e2b", + "profileId": "pfl_jA9bC4DkFj3G", + "status": "active", + "expiresAt": "2026-03-10T10:00:00+00:00", + "revokedAt": null, + "createdAt": "2025-12-10T10:00:00+00:00", + "details": { + "qrCode": { + "height": 180, + "width": 180, + "src": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODAiIGhlaWdodD0iMTgwIj48L3N2Zz4=" + } + }, + "_links": { + "self": { + "href": "https://api.mollie.com/v2/terminals/pairing-codes/termpc_R7gX5Ea9bC4DkFj3G", + "type": "application/hal+json" + }, + "profile": { + "href": "https://api.mollie.com/v2/profiles/pfl_jA9bC4DkFj3G", + "type": "application/hal+json" + }, + "documentation": { + "href": "https://docs.mollie.com/reference/terminals-get-pairing-code", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-pairing-code.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-pairing-code.json new file mode 100644 index 0000000..38b069a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal-pairing-code.json @@ -0,0 +1,25 @@ +{ + "resource": "terminal-pairing-code", + "id": "termpc_R7gX5Ea9bC4DkFj3G", + "mode": "live", + "code": "20eb5ca1f78b48ae9e2b", + "profileId": "pfl_jA9bC4DkFj3G", + "status": "active", + "expiresAt": "2026-03-10T10:00:00+00:00", + "revokedAt": null, + "createdAt": "2025-12-10T10:00:00+00:00", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/terminals/pairing-codes/termpc_R7gX5Ea9bC4DkFj3G", + "type": "application/hal+json" + }, + "profile": { + "href": "https://api.mollie.com/v2/profiles/pfl_jA9bC4DkFj3G", + "type": "application/hal+json" + }, + "documentation": { + "href": "https://docs.mollie.com/reference/terminals-get-pairing-code", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal.json new file mode 100644 index 0000000..42f91bc --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/terminal.json @@ -0,0 +1,23 @@ +{ + "resource": "terminal", + "id": "{{ RESOURCE_ID }}", + "mode": "live", + "status": "active", + "brand": "PAX", + "model": "A920", + "serialNumber": "1234567890", + "currency": "EUR", + "description": "Terminal #12345", + "profileId": "pfl_QkEhN94Ba", + "createdAt": "2022-02-12T11:58:35.0Z", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/unmatched-credit-transfer.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/unmatched-credit-transfer.json new file mode 100644 index 0000000..ecba28d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/unmatched-credit-transfer.json @@ -0,0 +1,16 @@ +{ + "resource": "unmatched-credit-transfer", + "id": "{{ RESOURCE_ID }}", + "status": "received", + "createdAt": "2023-12-25T10:30:54+00:00", + "_links": { + "self": { + "href": "...", + "type": "application/hal+json" + }, + "documentation": { + "href": "...", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/unprocessable-entity.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/unprocessable-entity.json new file mode 100644 index 0000000..1a1617c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/unprocessable-entity.json @@ -0,0 +1,5 @@ +{ + "status": 422, + "title": "Unprocessable Entity", + "detail": "Non-existent parameter \"recurringType\" for this API call. Did you mean: \"sequenceType\"?" +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/webhook-event.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/webhook-event.json new file mode 100644 index 0000000..8d80d78 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/webhook-event.json @@ -0,0 +1,30 @@ +{ + "resource": "event", + "id": "whe_gQMMaGqAVA", + "type": "payment-link.paid", + "entityId": "pl_4Y0eZitmBnQ5jsBYZIBw", + "createdAt": "2023-12-25T10:30:54+00:00", + "_embedded": { + "entity": { + "id": "pl_4Y0eZitmBnQ5jsBYZIBw", + "resource": "payment-link", + "status": "paid", + "amount": { + "value": "10.00", + "currency": "EUR" + }, + "description": "Test payment link", + "createdAt": "2023-12-25T09:30:54+00:00" + } + }, + "_links": { + "self": { + "href": "https://api.mollie.com/v2/webhook-events/whe_gQMMaGqAVA", + "type": "application/hal+json" + }, + "documentation": { + "href": "https://docs.mollie.com/reference/v2/webhook-events-api/get-webhook-event", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/webhook-list.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/webhook-list.json new file mode 100644 index 0000000..754fcd8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/webhook-list.json @@ -0,0 +1,54 @@ +{ + "_embedded": { + "webhooks": [ + { + "resource": "webhook", + "id": "wh_4KgGJJSZpH", + "url": "https://example.com/webhook", + "profileId": "pfl_v9hTwCvYqw", + "createdAt": "2023-12-25T10:30:54+00:00", + "name": "My webhook", + "eventTypes": ["payment-link.paid"], + "status": "enabled", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/webhooks/wh_4KgGJJSZpH", + "type": "application/hal+json" + } + } + }, + { + "resource": "webhook", + "id": "wh_8KhHNOSdpL", + "url": "https://example.com/webhook2", + "profileId": "pfl_v9hTwCvYqw", + "createdAt": "2023-12-26T10:30:54+00:00", + "name": "My second webhook", + "eventTypes": ["profile.verified"], + "status": "enabled", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/webhooks/wh_8KhHNOSdpL", + "type": "application/hal+json" + } + } + } + ] + }, + "count": 2, + "_links": { + "documentation": { + "href": "https://docs.mollie.com/reference/v2/webhooks-api/list-webhooks", + "type": "text/html" + }, + "self": { + "href": "https://api.mollie.com/v2/webhooks?limit=50", + "type": "application/hal+json" + }, + "previous": null, + "next": { + "href": "https://api.mollie.com/v2/webhooks?from=wh_8KhHNOSdpL&limit=5", + "type": "application/hal+json" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/webhook-test.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/webhook-test.json new file mode 100644 index 0000000..8e94288 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/webhook-test.json @@ -0,0 +1,6 @@ +{ + "success": true, + "message": "Webhook test event sent successfully", + "eventId": "whe_gQMMaGqAVA", + "timestamp": "2023-12-25T10:30:54+00:00" +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/Responses/webhook.json b/vendor/mollie/mollie-api-php/src/Fake/Responses/webhook.json new file mode 100644 index 0000000..03898f8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/Responses/webhook.json @@ -0,0 +1,20 @@ +{ + "resource": "webhook", + "id": "wh_4KgGJJSZpH", + "url": "https://example.com/webhook", + "profileId": "pfl_v9hTwCvYqw", + "createdAt": "2023-12-25T10:30:54+00:00", + "name": "My webhook", + "eventTypes": ["payment-link.paid"], + "status": "enabled", + "_links": { + "self": { + "href": "https://api.mollie.com/v2/webhooks/wh_4KgGJJSZpH", + "type": "application/hal+json" + }, + "documentation": { + "href": "https://docs.mollie.com/reference/v2/webhooks-api/get-webhook", + "type": "text/html" + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Fake/SequenceMockResponse.php b/vendor/mollie/mollie-api-php/src/Fake/SequenceMockResponse.php new file mode 100644 index 0000000..89d05b4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Fake/SequenceMockResponse.php @@ -0,0 +1,48 @@ + + */ + private array $responses; + + public function __construct(...$responses) + { + $this->responses = $responses; + } + + /** + * @return Closure|MockResponse + */ + public function shift() + { + if (empty($this->responses)) { + throw new \RuntimeException('No more responses available.'); + } + + $response = array_shift($this->responses); + + return $response; + } + + /** + * @deprecated use shift instead + * @return Closure|MockResponse + */ + public function pop() + { + return $this->shift(); + } + + public function isEmpty(): bool + { + return empty($this->responses); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Adapter/CurlErrorMapper.php b/vendor/mollie/mollie-api-php/src/Http/Adapter/CurlErrorMapper.php new file mode 100644 index 0000000..9dbd23d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Adapter/CurlErrorMapper.php @@ -0,0 +1,74 @@ + + */ + private const ERROR_CATEGORIES = [ + // DNS and host resolution issues + CURLE_COULDNT_RESOLVE_HOST => 'DNS resolution failed', + CURLE_COULDNT_RESOLVE_PROXY => 'Proxy resolution failed', + + // Connection issues + CURLE_COULDNT_CONNECT => 'Connection failed', + CURLE_OPERATION_TIMEOUTED => 'Connection timed out', + CURLE_GOT_NOTHING => 'Empty response', + CURLE_RECV_ERROR => 'Network data transfer failed', + + // SSL/TLS issues + CURLE_SSL_CONNECT_ERROR => 'SSL connection failed', + CURLE_SSL_CERTPROBLEM => 'SSL certificate invalid', + CURLE_SSL_CIPHER => 'SSL cipher error', + CURLE_SSL_CACERT => 'SSL CA certificate invalid', + + // Request issues + CURLE_UNSUPPORTED_PROTOCOL => 'Invalid protocol', + CURLE_URL_MALFORMAT => 'Invalid URL', + CURLE_BAD_CONTENT_ENCODING => 'Invalid content encoding', + + // System issues + CURLE_OUT_OF_MEMORY => 'Out of memory', + ]; + + /** + * Errors that are likely temporary and should be retried. + * + * @var array + */ + private const RETRYABLE_ERRORS = [ + CURLE_OPERATION_TIMEOUTED, // Connection or transfer timeout + CURLE_COULDNT_RESOLVE_HOST, // Temporary DNS issues + CURLE_COULDNT_CONNECT, // Server temporarily unreachable + CURLE_GOT_NOTHING, // Server dropped connection + CURLE_RECV_ERROR, // Failure receiving network data + ]; + + public static function toException(int $curlErrorNumber, string $curlErrorMessage, PendingRequest $pendingRequest): NetworkRequestException + { + $category = self::ERROR_CATEGORIES[$curlErrorNumber] ?? 'Unknown error'; + $message = "{$category}: {$curlErrorMessage}"; + + return self::isRetryableError($curlErrorNumber) + ? new RetryableNetworkRequestException($pendingRequest, $message) + : new NetworkRequestException($pendingRequest, null, $message); + } + + /** + * Determines if a CURL error is retryable. + */ + public static function isRetryableError(int $curlErrorNumber): bool + { + return in_array($curlErrorNumber, self::RETRYABLE_ERRORS, true); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Adapter/CurlFactory.php b/vendor/mollie/mollie-api-php/src/Http/Adapter/CurlFactory.php new file mode 100644 index 0000000..c8ff346 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Adapter/CurlFactory.php @@ -0,0 +1,128 @@ + + */ + // Read by CurlFactoryTest through reflection. + // @phpstan-ignore property.onlyWritten + private array $options = []; + + private function __construct($handle, PendingRequest $pendingRequest) + { + $this->handle = $handle; + $this->pendingRequest = $pendingRequest; + $this->setDefaultOptions(); + } + + public static function new(string $url, PendingRequest $pendingRequest): self + { + $handle = curl_init($url); + if ($handle === false) { + throw new CurlInitializationException($pendingRequest, 'Failed to initialize CURL'); + } + + return new self($handle, $pendingRequest); + } + + private function setDefaultOptions(): self + { + $this->setOption(CURLOPT_RETURNTRANSFER, true); + $this->setOption(CURLOPT_HEADER, true); + $this->setOption(CURLOPT_CONNECTTIMEOUT, self::DEFAULT_CONNECT_TIMEOUT); + $this->setOption(CURLOPT_TIMEOUT, self::DEFAULT_TIMEOUT); + $this->setOption(CURLOPT_SSL_VERIFYPEER, true); + $this->setOption(CURLOPT_SSL_VERIFYHOST, 2); + $this->setOption(CURLOPT_CAINFO, CaBundle::getBundledCaBundlePath()); + + return $this; + } + + public function withHeaders(array $headers): self + { + $headers['Content-Type'] = 'application/json'; + $this->setOption(CURLOPT_HTTPHEADER, $this->parseHeaders($headers)); + + return $this; + } + + public function withMethod(string $method, ?string $body): self + { + switch ($method) { + case Method::POST: + $this->setOption(CURLOPT_POST, true); + $this->setOption(CURLOPT_POSTFIELDS, $body); + + break; + + case Method::PATCH: + $this->setOption(CURLOPT_CUSTOMREQUEST, Method::PATCH); + $this->setOption(CURLOPT_POSTFIELDS, $body); + + break; + + case Method::DELETE: + $this->setOption(CURLOPT_CUSTOMREQUEST, Method::DELETE); + $this->setOption(CURLOPT_POSTFIELDS, $body); + + break; + + case Method::GET: + default: + if ($method !== Method::GET) { + throw new \InvalidArgumentException('Invalid HTTP method: '.$method); + } + + break; + } + + return $this; + } + + public function create() + { + return $this->handle; + } + + /** + * @param mixed $value + */ + private function setOption(int $option, $value): void + { + if (curl_setopt($this->handle, $option, $value) === false) { + throw new CurlInitializationException( + $this->pendingRequest, + sprintf('Failed to set CURL option %d', $option) + ); + } + + $this->options[$option] = $value; + } + + private function parseHeaders(array $headers): array + { + $result = []; + foreach ($headers as $key => $value) { + $result[] = $key.': '.$value; + } + + return $result; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Adapter/CurlInitializationException.php b/vendor/mollie/mollie-api-php/src/Http/Adapter/CurlInitializationException.php new file mode 100644 index 0000000..1ed0ca1 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Adapter/CurlInitializationException.php @@ -0,0 +1,41 @@ +pendingRequest = $pendingRequest; + $this->plainMessage = $message; + + parent::__construct($message, 0, $previous); + } + + public function getPendingRequest(): PendingRequest + { + return $this->pendingRequest; + } + + public function getPlainMessage(): string + { + return $this->plainMessage; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Adapter/CurlMollieHttpAdapter.php b/vendor/mollie/mollie-api-php/src/Http/Adapter/CurlMollieHttpAdapter.php new file mode 100644 index 0000000..44de136 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Adapter/CurlMollieHttpAdapter.php @@ -0,0 +1,145 @@ +send($pendingRequest); + + return $this->createResponse($pendingRequest, $statusCode, $headers, $body); + } + + /** + * @return array{0: array, 1: string, 2: int} + * + * @throws NetworkRequestException + */ + protected function send(PendingRequest $pendingRequest): array + { + $curl = null; + $request = $pendingRequest->createPsrRequest(); + + try { + $curl = CurlFactory::new((string) $request->getUri(), $pendingRequest) + ->withHeaders($pendingRequest->headers()->all()) + ->withMethod($pendingRequest->method(), (string) $request->getBody()) + ->create(); + + $response = curl_exec($curl); + + if ($response === false) { + $curlErrorNumber = curl_errno($curl); + $curlErrorMessage = 'Curl error: '.curl_error($curl); + + throw CurlErrorMapper::toException($curlErrorNumber, $curlErrorMessage, $pendingRequest); + } + + return $this->extractResponseDetails($curl, $response); + } finally { + // PHP 8+ auto-closes CurlHandle on GC; explicit curl_close() is a no-op. + } + } + + protected function createResponse(PendingRequest $pendingRequest, int $statusCode, $headers = [], $body = null, ?Throwable $error = null): Response + { + $factoryCollection = $pendingRequest->getFactoryCollection(); + $responseFactory = $factoryCollection->responseFactory; + + $response = $responseFactory->createResponse($statusCode) + ->withBody($factoryCollection->streamFactory->createStream($body)); + + foreach ($headers as $key => $value) { + $response = $response->withHeader($key, $value); + } + + return new Response( + $response, + $pendingRequest->createPsrRequest(), + $pendingRequest, + $error + ); + } + + /** + * @return array{0: array, 1: string, 2: int} + */ + private function extractResponseDetails($curl, string $response): array + { + $headerSize = curl_getinfo($curl, CURLINFO_HEADER_SIZE); + $statusCode = curl_getinfo($curl, CURLINFO_RESPONSE_CODE); + + return self::parseResponseDetails($response, $headerSize, $statusCode); + } + + /** + * @return array{0: array, 1: string, 2: int} + */ + private static function parseResponseDetails(string $response, int $headerSize, int $statusCode): array + { + $headerValues = substr($response, 0, $headerSize); + $content = substr($response, $headerSize); + + return [self::parseHeaders($headerValues), $content, $statusCode]; + } + + /** + * @return array + */ + private static function parseHeaders(string $headerValues): array + { + $headers = []; + $headerBlocks = preg_split("/\r\n\r\n|\n\n|\r\r/", trim($headerValues)) ?: []; + $lastHeaderBlock = end($headerBlocks) ?: ''; + $headerLines = preg_split("/\r\n|\n|\r/", $lastHeaderBlock) ?: []; + $lastHeader = null; + + foreach ($headerLines as $headerLine) { + if ($lastHeader !== null && preg_match('/^\s+/', $headerLine) === 1) { + $headers[$lastHeader] .= ' '.trim($headerLine); + + continue; + } + + if (strpos($headerLine, ':') === false) { + continue; + } + + [$key, $value] = explode(':', $headerLine, 2); + $key = trim($key); + if ($key === '') { + continue; + } + + $headers[$key] = trim($value); + $lastHeader = $key; + } + + return $headers; + } + + /** + * The version number for the underlying http client, if available. + * + * @example Guzzle/6.3 + */ + public function version(): string + { + return 'Curl/*'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Adapter/GuzzleMollieHttpAdapter.php b/vendor/mollie/mollie-api-php/src/Http/Adapter/GuzzleMollieHttpAdapter.php new file mode 100644 index 0000000..987d543 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Adapter/GuzzleMollieHttpAdapter.php @@ -0,0 +1,114 @@ +httpClient = $httpClient; + } + + public function factories(): Factories + { + $factory = new HttpFactory; + + return new Factories( + $factory, + $factory, + $factory, + $factory, + ); + } + + /** + * Create a preconfigured Guzzle adapter. + */ + public static function createClient(): self + { + $handlerStack = HandlerStack::create(); + + $client = new Client([ + RequestOptions::VERIFY => CaBundle::getBundledCaBundlePath(), + RequestOptions::TIMEOUT => self::DEFAULT_TIMEOUT, + RequestOptions::CONNECT_TIMEOUT => self::DEFAULT_CONNECT_TIMEOUT, + RequestOptions::HTTP_ERRORS => false, + 'handler' => $handlerStack, + ]); + + return new GuzzleMollieHttpAdapter($client); + } + + /** + * @throws NetworkRequestException + * @throws RetryableNetworkRequestException + */ + public function sendRequest(PendingRequest $pendingRequest): Response + { + $request = $pendingRequest->createPsrRequest(); + + try { + $response = $this->httpClient->send($request); + + return $this->createResponse($response, $request, $pendingRequest); + } catch (ConnectException $e) { + throw new RetryableNetworkRequestException($pendingRequest, $e->getMessage()); + } catch (TooManyRedirectsException $e) { + throw new NetworkRequestException($pendingRequest, $e, $e->getMessage()); + } catch (RequestException $e) { + if ($response = $e->getResponse()) { + return $this->createResponse($response, $request, $pendingRequest, $e); + } + + throw new RetryableNetworkRequestException($pendingRequest, $e->getMessage()); + } + } + + protected function createResponse( + ResponseInterface $psrResponse, + RequestInterface $psrRequest, + PendingRequest $pendingRequest, + ?Throwable $exception = null + ): Response { + return new Response($psrResponse, $psrRequest, $pendingRequest, $exception); + } + + public function version(): string + { + return 'Guzzle/'.ClientInterface::MAJOR_VERSION; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Adapter/MollieHttpAdapterPicker.php b/vendor/mollie/mollie-api-php/src/Http/Adapter/MollieHttpAdapterPicker.php new file mode 100644 index 0000000..54fc0f9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Adapter/MollieHttpAdapterPicker.php @@ -0,0 +1,48 @@ +createDefaultAdapter(); + } + + if ($httpClient instanceof HttpAdapterContract) { + return $httpClient; + } + + if ($httpClient instanceof \GuzzleHttp\ClientInterface) { + return new GuzzleMollieHttpAdapter($httpClient); + } + + throw new UnrecognizedClientException('The provided http client or adapter was not recognized.'); + } + + private function createDefaultAdapter(): HttpAdapterContract + { + if ($this->guzzleIsDetected()) { + return GuzzleMollieHttpAdapter::createClient(); + } + + return new CurlMollieHttpAdapter; + } + + private function guzzleIsDetected(): bool + { + return interface_exists('\\'.\GuzzleHttp\ClientInterface::class); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Adapter/PSR18MollieHttpAdapter.php b/vendor/mollie/mollie-api-php/src/Http/Adapter/PSR18MollieHttpAdapter.php new file mode 100644 index 0000000..f5686b4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Adapter/PSR18MollieHttpAdapter.php @@ -0,0 +1,121 @@ +httpClient = $httpClient; + $this->requestFactory = $requestFactory; + $this->responseFactory = $responseFactory; + $this->streamFactory = $streamFactory; + $this->uriFactory = $uriFactory; + } + + public function factories(): Factories + { + return $this->factories ??= new Factories( + $this->requestFactory, + $this->responseFactory, + $this->streamFactory, + $this->uriFactory, + ); + } + + /** + * Send a request using a PSR-18 compatible HTTP client. + * + * @throws NetworkRequestException When a network error occurs + * @throws RetryableNetworkRequestException When a temporary network error occurs + * @throws RequestException When the request fails with a response + */ + public function sendRequest(PendingRequest $pendingRequest): Response + { + $request = $pendingRequest->createPsrRequest(); + + try { + $response = $this->httpClient->sendRequest($request); + + return $this->createResponse($response, $request, $pendingRequest); + } catch (NetworkExceptionInterface $e) { + // PSR-18 NetworkExceptionInterface indicates network errors, which are retryable + throw new RetryableNetworkRequestException( + $pendingRequest, + 'Network error: '.$e->getMessage() + ); + } catch (RequestExceptionInterface $e) { + if (method_exists($e, 'getResponse') && $response = $e->getResponse()) { + return $this->createResponse($response, $request, $pendingRequest, $e); + } + + throw new RetryableNetworkRequestException( + $pendingRequest, + 'Network error: '.$e->getMessage() + ); + } + } + + protected function createResponse( + ResponseInterface $psrResponse, + RequestInterface $psrRequest, + PendingRequest $pendingRequest, + ?Throwable $exception = null + ): Response { + return new Response( + $psrResponse, + $psrRequest, + $pendingRequest, + $exception + ); + } + + /** + * Get the version string for the HTTP client implementation. + * This is used in the User-Agent header. + */ + public function version(): string + { + $clientClass = get_class($this->httpClient); + $clientName = substr($clientClass, strrpos($clientClass, '\\') + 1); + + return 'PSR18/'.$clientName; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Auth/AccessTokenAuthenticator.php b/vendor/mollie/mollie-api-php/src/Http/Auth/AccessTokenAuthenticator.php new file mode 100644 index 0000000..6b7076b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Auth/AccessTokenAuthenticator.php @@ -0,0 +1,20 @@ +isTestToken = strpos($token, 'test_') === 0; + + parent::__construct($token); + } + + public function isTestToken(): bool + { + return $this->isTestToken; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Auth/BearerTokenAuthenticator.php b/vendor/mollie/mollie-api-php/src/Http/Auth/BearerTokenAuthenticator.php new file mode 100644 index 0000000..72a0cf1 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Auth/BearerTokenAuthenticator.php @@ -0,0 +1,24 @@ +token = trim($token); + } + + public function authenticate(PendingRequest $pendingRequest): void + { + $pendingRequest->headers()->add('Authorization', "Bearer {$this->token}"); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Auth/TokenValidator.php b/vendor/mollie/mollie-api-php/src/Http/Auth/TokenValidator.php new file mode 100644 index 0000000..7797dc2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Auth/TokenValidator.php @@ -0,0 +1,21 @@ + $this->title, + 'givenName' => $this->givenName, + 'familyName' => $this->familyName, + 'organizationName' => $this->organizationName, + 'streetAndNumber' => $this->streetAndNumber, + 'streetAdditional' => $this->streetAdditional, + 'postalCode' => $this->postalCode, + 'email' => $this->email, + 'phone' => $this->phone, + 'city' => $this->city, + 'region' => $this->region, + 'country' => $this->country, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/ApplicationFee.php b/vendor/mollie/mollie-api-php/src/Http/Data/ApplicationFee.php new file mode 100644 index 0000000..d036d11 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/ApplicationFee.php @@ -0,0 +1,24 @@ + $this->amount, + 'description' => $this->description, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/Concerns/MacroRegistry.php b/vendor/mollie/mollie-api-php/src/Http/Data/Concerns/MacroRegistry.php new file mode 100644 index 0000000..cc5b74c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/Concerns/MacroRegistry.php @@ -0,0 +1,40 @@ +> + */ + private static array $macros = []; + + public static function set(string $class, string $name, callable $macro): void + { + self::$macros[$class][$name] = $macro; + } + + public static function has(string $class, string $name): bool + { + return isset(self::$macros[$class][$name]); + } + + public static function get(string $class, string $name): callable + { + return self::$macros[$class][$name]; + } + + public static function flush(string $class): void + { + unset(self::$macros[$class]); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/Concerns/Macroable.php b/vendor/mollie/mollie-api-php/src/Http/Data/Concerns/Macroable.php new file mode 100644 index 0000000..5cd0891 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/Concerns/Macroable.php @@ -0,0 +1,84 @@ + $parameters + * @return mixed + */ + public static function __callStatic(string $method, array $parameters) + { + if (! MacroRegistry::has(static::class, $method)) { + throw new BadMethodCallException(sprintf( + 'Method %s::%s does not exist.', + static::class, + $method + )); + } + + $macro = MacroRegistry::get(static::class, $method); + + if ($macro instanceof Closure) { + $macro = Closure::bind($macro, null, static::class); + } + + return $macro(...$parameters); + } + + /** + * @param array $parameters + * @return mixed + */ + public function __call(string $method, array $parameters) + { + if (! MacroRegistry::has(static::class, $method)) { + throw new BadMethodCallException(sprintf( + 'Method %s::%s does not exist.', + static::class, + $method + )); + } + + $macro = MacroRegistry::get(static::class, $method); + + if ($macro instanceof Closure) { + $macro = Closure::bind($macro, $this, static::class); + } + + return $macro(...$parameters); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/CurrencyMinorUnits.php b/vendor/mollie/mollie-api-php/src/Http/Data/CurrencyMinorUnits.php new file mode 100644 index 0000000..2e417e7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/CurrencyMinorUnits.php @@ -0,0 +1,67 @@ + + */ + private const EXPONENTS = [ + 'AED' => 2, + 'AUD' => 2, + 'BGN' => 2, + 'BHD' => 3, + 'BRL' => 2, + 'CAD' => 2, + 'CHF' => 2, + 'CZK' => 2, + 'DKK' => 2, + 'EUR' => 2, + 'GBP' => 2, + 'HKD' => 2, + 'HUF' => 2, + 'ILS' => 2, + 'ISK' => 0, + 'JPY' => 0, + 'MXN' => 2, + 'MYR' => 2, + 'NOK' => 2, + 'NZD' => 2, + 'PHP' => 2, + 'PLN' => 2, + 'RON' => 2, + 'RUB' => 2, + 'SEK' => 2, + 'SGD' => 2, + 'THB' => 2, + 'TWD' => 2, + 'USD' => 2, + 'ZAR' => 2, + ]; + + public static function exponent(string $currency): int + { + $code = strtoupper($currency); + + if (! isset(self::EXPONENTS[$code])) { + throw new InvalidArgumentException(sprintf( + 'Unsupported currency "%s"; no minor-unit exponent defined.', + $currency, + )); + } + + return self::EXPONENTS[$code]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/DataCollection.php b/vendor/mollie/mollie-api-php/src/Http/Data/DataCollection.php new file mode 100644 index 0000000..b05e8c3 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/DataCollection.php @@ -0,0 +1,134 @@ + + */ + public array $items; + + /** + * @param array $items + */ + public function __construct(array $items) + { + $this->items = $items; + } + + public function getIterator(): Traversable + { + return new ArrayIterator($this->items); + } + + public static function collect(array $items): self + { + return new static($items); + } + + public function count(): int + { + return count($this->items); + } + + /** + * @param mixed $subject + */ + public static function wrap($subject): self + { + if ($subject instanceof static) { + return $subject; + } + + if ($subject instanceof Arrayable) { + return new static($subject->toArray()); + } + + return new static(Arr::wrap($subject)); + } + + public function values(): self + { + return new static(array_values($this->items)); + } + + public function toArray(): array + { + return $this->items; + } + + /** + * @return mixed + */ + public function pipe(callable $callback) + { + return $callback($this); + } + + public function each(callable $callback): self + { + foreach ($this as $key => $item) { + if ($callback($item, $key) === false) { + break; + } + } + + return $this; + } + + public function map(callable $callback): self + { + return new static(Arr::map($this->items, $callback)); + } + + public function filter($callback = null): self + { + /** + * PHP 7.4 and below does not support nullable callbacks. + */ + if ($callback === null) { + return new static(array_filter($this->items)); + } + + return new static(array_filter($this->items, $callback)); + } + + public function isEmpty(): bool + { + return empty($this->items); + } + + /** + * Determine if the collection contains a given item. + * + * @param mixed $value + */ + public function contains($value): bool + { + if ($value instanceof \Closure) { + foreach ($this->items as $item) { + if ($value($item)) { + return true; + } + } + + return false; + } + + return in_array($value, $this->items, true); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/Date.php b/vendor/mollie/mollie-api-php/src/Http/Data/Date.php new file mode 100644 index 0000000..c7e1a56 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/Date.php @@ -0,0 +1,15 @@ + $this->type, + 'value' => $this->value, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/EmailDetails.php b/vendor/mollie/mollie-api-php/src/Http/Data/EmailDetails.php new file mode 100644 index 0000000..54c64c1 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/EmailDetails.php @@ -0,0 +1,27 @@ + $this->subject, + 'body' => $this->body, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/InvoiceLine.php b/vendor/mollie/mollie-api-php/src/Http/Data/InvoiceLine.php new file mode 100644 index 0000000..147fed3 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/InvoiceLine.php @@ -0,0 +1,30 @@ + $this->description, + 'quantity' => $this->quantity, + 'vatRate' => $this->vatRate, + 'unitPrice' => $this->unitPrice, + 'discount' => $this->discount, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/Money.php b/vendor/mollie/mollie-api-php/src/Http/Data/Money.php new file mode 100644 index 0000000..f2176ff --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/Money.php @@ -0,0 +1,63 @@ + $this->currency, + 'value' => $this->value, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/MoneyBuilder.php b/vendor/mollie/mollie-api-php/src/Http/Data/MoneyBuilder.php new file mode 100644 index 0000000..46277be --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/MoneyBuilder.php @@ -0,0 +1,23 @@ +currency, $amount); + } + + public function fromString(string $value): Money + { + return new Money($this->currency, $value); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/OrderLine.php b/vendor/mollie/mollie-api-php/src/Http/Data/OrderLine.php new file mode 100644 index 0000000..34cc939 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/OrderLine.php @@ -0,0 +1,46 @@ + $this->description, + 'quantity' => $this->quantity, + 'unitPrice' => $this->unitPrice, + 'totalAmount' => $this->totalAmount, + 'type' => $this->type, + 'quantityUnit' => $this->quantityUnit, + 'discountAmount' => $this->discountAmount, + 'recurring' => $this->recurring, + 'vatRate' => $this->vatRate, + 'vatAmount' => $this->vatAmount, + 'sku' => $this->sku, + 'imageUrl' => $this->imageUrl, + 'productUrl' => $this->productUrl, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/Owner.php b/vendor/mollie/mollie-api-php/src/Http/Data/Owner.php new file mode 100644 index 0000000..f248895 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/Owner.php @@ -0,0 +1,31 @@ + $this->email, + 'givenName' => $this->givenName, + 'familyName' => $this->familyName, + 'locale' => $this->locale, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/OwnerAddress.php b/vendor/mollie/mollie-api-php/src/Http/Data/OwnerAddress.php new file mode 100644 index 0000000..9850f8c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/OwnerAddress.php @@ -0,0 +1,33 @@ + $this->country, + 'streetAndNumber' => $this->streetAndNumber, + 'postalCode' => $this->postalCode, + 'city' => $this->city, + 'region' => $this->region, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/PaginatedQuery.php b/vendor/mollie/mollie-api-php/src/Http/Data/PaginatedQuery.php new file mode 100644 index 0000000..ec4f615 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/PaginatedQuery.php @@ -0,0 +1,24 @@ + $this->from, + 'limit' => $this->limit, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/PaymentDetails.php b/vendor/mollie/mollie-api-php/src/Http/Data/PaymentDetails.php new file mode 100644 index 0000000..3e7ad77 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/PaymentDetails.php @@ -0,0 +1,32 @@ +sourceReference = $sourceDescription ?? $sourceReference; + } + + public function toArray(): array + { + return [ + 'source' => $this->source, + 'sourceReference' => $this->sourceReference, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/PaymentRoute.php b/vendor/mollie/mollie-api-php/src/Http/Data/PaymentRoute.php new file mode 100644 index 0000000..1f01ab0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/PaymentRoute.php @@ -0,0 +1,33 @@ + $this->amount, + 'destination' => [ + 'type' => 'organization', + 'organizationId' => $this->organizationId, + ], + 'delayUntil' => $this->delayUntil, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/PaymentStatusReason.php b/vendor/mollie/mollie-api-php/src/Http/Data/PaymentStatusReason.php new file mode 100644 index 0000000..378fbce --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/PaymentStatusReason.php @@ -0,0 +1,33 @@ + $this->code, + 'message' => $this->message, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/RateLimit.php b/vendor/mollie/mollie-api-php/src/Http/Data/RateLimit.php new file mode 100644 index 0000000..866ce28 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/RateLimit.php @@ -0,0 +1,200 @@ +}> + */ + private static function parseHeader(?string $header): array + { + if ($header === null) { + return []; + } + + $policies = []; + + foreach (self::splitListMembers($header) as $member) { + $policy = self::parsePolicy($member); + + if ($policy !== null) { + $policies[] = $policy; + } + } + + return $policies; + } + + /** + * @return array{name: string, parameters: array}|null + */ + private static function parsePolicy(string $member): ?array + { + $segments = array_map('trim', explode(';', $member)); + $name = array_shift($segments); + + if ($name === null || ! preg_match('/^"([^"]+)"$/', $name, $matches)) { + return null; + } + + $parameters = []; + + foreach ($segments as $segment) { + if (! preg_match('/^([A-Za-z][A-Za-z0-9-]*)\s*=\s*(.*)$/', $segment, $parameter)) { + return null; + } + + $parameterName = strtolower($parameter[1]); + + if (! in_array($parameterName, self::INTEGER_PARAMETERS, true)) { + continue; + } + + if (! preg_match('/^\d+$/', $parameter[2])) { + return null; + } + + $value = self::parseInteger($parameter[2]); + + if ($value === null) { + return null; + } + + $parameters[$parameterName] = $value; + } + + return [ + 'name' => $matches[1], + 'parameters' => $parameters, + ]; + } + + private static function parseInteger(string $digits): ?int + { + $digits = ltrim($digits, '0'); + $digits = $digits === '' ? '0' : $digits; + $value = filter_var($digits, FILTER_VALIDATE_INT); + + return $value === false ? null : $value; + } + + /** + * @return list + */ + private static function splitListMembers(string $header): array + { + $members = []; + $memberStart = 0; + $insideQuotedString = false; + $length = strlen($header); + + for ($offset = 0; $offset < $length; $offset++) { + if ($header[$offset] === '"' && ! self::isEscapedQuote($header, $offset)) { + $insideQuotedString = ! $insideQuotedString; + } + + if ($header[$offset] !== ',' || $insideQuotedString) { + continue; + } + + $members[] = trim(substr($header, $memberStart, $offset - $memberStart)); + $memberStart = $offset + 1; + } + + $members[] = trim(substr($header, $memberStart)); + + return $members; + } + + private static function isEscapedQuote(string $header, int $offset): bool + { + $precedingBackslashes = 0; + + for ($index = $offset - 1; $index >= 0 && $header[$index] === '\\'; $index--) { + $precedingBackslashes++; + } + + return $precedingBackslashes % 2 === 1; + } + + /** + * @param list}> $states + * @param list}> $policies + * @return array{array{name: string, parameters: array}|null, array{name: string, parameters: array}|null} + */ + private static function matchingPolicies(array $states, array $policies): array + { + if ($states === []) { + return [null, $policies[0] ?? null]; + } + + if ($policies === []) { + return [$states[0], null]; + } + + foreach ($states as $state) { + foreach ($policies as $policy) { + if ($state['name'] === $policy['name']) { + return [$state, $policy]; + } + } + } + + return [null, null]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/Recipient.php b/vendor/mollie/mollie-api-php/src/Http/Data/Recipient.php new file mode 100644 index 0000000..76c3736 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/Recipient.php @@ -0,0 +1,52 @@ + $this->type, + 'title' => $this->title, + 'givenName' => $this->givenName, + 'familyName' => $this->familyName, + 'organizationName' => $this->organizationName, + 'organizationNumber' => $this->organizationNumber, + 'vatNumber' => $this->vatNumber, + 'email' => $this->email, + 'phone' => $this->phone, + 'streetAndNumber' => $this->streetAndNumber, + 'streetAdditional' => $this->streetAdditional, + 'postalCode' => $this->postalCode, + 'city' => $this->city, + 'region' => $this->region, + 'country' => $this->country, + 'locale' => $this->locale, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/RecurringBillingCycle.php b/vendor/mollie/mollie-api-php/src/Http/Data/RecurringBillingCycle.php new file mode 100644 index 0000000..c0b142e --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/RecurringBillingCycle.php @@ -0,0 +1,36 @@ + $this->interval, + 'description' => $this->description, + 'amount' => $this->amount, + 'times' => $this->times, + 'startDate' => $this->startDate, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/RefundRoute.php b/vendor/mollie/mollie-api-php/src/Http/Data/RefundRoute.php new file mode 100644 index 0000000..a6ebfb8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/RefundRoute.php @@ -0,0 +1,27 @@ + $this->amount, + 'source' => [ + 'type' => 'organization', + 'organizationId' => $this->organizationId, + ], + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/SortablePaginatedQuery.php b/vendor/mollie/mollie-api-php/src/Http/Data/SortablePaginatedQuery.php new file mode 100644 index 0000000..9c5a9a2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/SortablePaginatedQuery.php @@ -0,0 +1,26 @@ + $this->sort, + ] + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/Temporal.php b/vendor/mollie/mollie-api-php/src/Http/Data/Temporal.php new file mode 100644 index 0000000..70efe33 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/Temporal.php @@ -0,0 +1,40 @@ +date = $date; + } + + abstract protected function getFormat(): string; + + public function __toString(): string + { + return $this->date->format($this->getFormat()); + } + + public function getRaw(): DateTimeInterface + { + return $this->date; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Data/TransferParty.php b/vendor/mollie/mollie-api-php/src/Http/Data/TransferParty.php new file mode 100644 index 0000000..7eda1b6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Data/TransferParty.php @@ -0,0 +1,29 @@ + $this->type, + 'id' => $this->id, + 'description' => $this->description, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/ExponentialRetryStrategy.php b/vendor/mollie/mollie-api-php/src/Http/ExponentialRetryStrategy.php new file mode 100644 index 0000000..1b8b90f --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/ExponentialRetryStrategy.php @@ -0,0 +1,131 @@ +maxRetries = max(0, $maxRetries); + $this->baseDelayMs = max(0, $baseDelayMs); + $this->multiplier = max(1.0, $multiplier); + $this->maxDelayMs = max(0, $maxDelayMs); + $this->jitter = $jitter; + } + + public function maxRetries(): int + { + return $this->maxRetries; + } + + public function shouldRetry(Throwable $exception): bool + { + if (! $exception instanceof TooManyRequestsException) { + return $exception instanceof RetryableNetworkRequestException; + } + + return $exception->retryAfterSeconds === null + || $this->retryAfterDelayMs($exception) !== null; + } + + public function delayBeforeAttemptMs(int $attempt, ?Throwable $exception = null): int + { + if ($exception instanceof TooManyRequestsException) { + $delay = $this->retryAfterDelayMs($exception); + + if ($delay !== null) { + return $this->addRetryAfterJitter($delay); + } + } + + $delay = $this->exponentialDelayMs($attempt); + + if ($this->jitter && $delay > 0) { + // Full jitter — random value in [0, delay]. + return random_int(0, $delay); + } + + return $delay; + } + + private function retryAfterDelayMs(TooManyRequestsException $exception): ?int + { + if ($exception->retryAfterSeconds === null) { + return null; + } + + $retryAfterSeconds = max(0, $exception->retryAfterSeconds); + + if ($retryAfterSeconds > intdiv(PHP_INT_MAX, 1000)) { + return null; + } + + $delayMs = $retryAfterSeconds * 1000; + + return $delayMs <= $this->maxDelayMs ? $delayMs : null; + } + + private function addRetryAfterJitter(int $delayMs): int + { + if (! $this->jitter || $delayMs === 0) { + return $delayMs; + } + + $maxJitter = min(intdiv($delayMs, 10), 1000, PHP_INT_MAX - $delayMs); + + return $delayMs + random_int(0, $maxJitter); + } + + private function exponentialDelayMs(int $attempt): int + { + if ($this->baseDelayMs === 0 || $this->maxDelayMs === 0) { + return 0; + } + + $attempt = max(1, $attempt); + $delay = $this->baseDelayMs * ($this->multiplier ** ($attempt - 1)); + + if (! is_finite($delay) || $delay >= $this->maxDelayMs) { + return $this->maxDelayMs; + } + + return (int) round($delay); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/LinearRetryStrategy.php b/vendor/mollie/mollie-api-php/src/Http/LinearRetryStrategy.php new file mode 100644 index 0000000..d2b2718 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/LinearRetryStrategy.php @@ -0,0 +1,47 @@ +maxRetries = max(0, $maxRetries); + $this->delayIncreaseMs = max(0, $delayIncreaseMs); + } + + public function maxRetries(): int + { + return $this->maxRetries; + } + + public function shouldRetry(Throwable $exception): bool + { + return $exception instanceof RetryableNetworkRequestException; + } + + public function delayBeforeAttemptMs(int $attempt, ?Throwable $exception = null): int + { + // $attempt starts at 1 for the first retry + return max(0, $attempt) * $this->delayIncreaseMs; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Middleware.php b/vendor/mollie/mollie-api-php/src/Http/Middleware.php new file mode 100644 index 0000000..2ff3f3d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Middleware.php @@ -0,0 +1,146 @@ +onRequest = new Handlers; + $this->onResponse = new Handlers; + $this->onResolved = new Handlers; + $this->onFatal = new Handlers; + } + + public function onRequest(callable $callback, ?string $name = null, string $priority = MiddlewarePriority::MEDIUM): self + { + $this->onRequest->add(static function (PendingRequest $pendingRequest) use ($callback): PendingRequest { + $result = $callback($pendingRequest); + + if ($result instanceof PendingRequest) { + return $result; + } + + return $pendingRequest; + }, $name, $priority); + + return $this; + } + + public function onResponse(callable $callback, ?string $name = null, string $priority = MiddlewarePriority::MEDIUM): self + { + $this->onResponse->add(static function (Response $response) use ($callback): Response { + $result = $callback($response); + + if ($result === null) { + return $response; + } + + if (! $result instanceof Response) { + throw new \UnexpectedValueException( + 'Response middleware must return '.Response::class.' or void; '.get_debug_type($result).' returned.' + ); + } + + return $result; + }, $name, $priority); + + return $this; + } + + public function onResolved(callable $callback, ?string $name = null, string $priority = MiddlewarePriority::MEDIUM): self + { + $this->onResolved->add(static function ($result) use ($callback) { + return $callback($result) ?? $result; + }, $name, $priority); + + return $this; + } + + public function onFatal(callable $callback, ?string $name = null, string $priority = MiddlewarePriority::MEDIUM): self + { + $this->onFatal->add(static function (MollieException $exception) use ($callback) { + $result = $callback($exception); + + return $result instanceof MollieException ? $result : $exception; + }, $name, $priority); + + return $this; + } + + public function executeOnRequest(PendingRequest $pendingRequest): PendingRequest + { + return $this->onRequest->execute($pendingRequest); + } + + public function executeOnResponse(Response $response): Response + { + return $this->onResponse->execute($response); + } + + /** + * @param mixed $result + * @return mixed + */ + public function executeOnResolved($result) + { + return $this->onResolved->execute($result); + } + + public function executeOnFatal(MollieException $exception): MollieException + { + return $this->onFatal->execute($exception); + } + + /** + * @param array ...$handlersCollection + */ + public function merge(...$handlersCollection): self + { + /** @var Middleware $handlers */ + foreach ($handlersCollection as $handlers) { + $onRequestHandlers = array_merge( + $this->onRequest->getHandlers(), + $handlers->onRequest->getHandlers() + ); + + $this->onRequest->setHandlers($onRequestHandlers); + + $onResponseHandlers = array_merge( + $this->onResponse->getHandlers(), + $handlers->onResponse->getHandlers() + ); + + $this->onResponse->setHandlers($onResponseHandlers); + + $onResolvedHandlers = array_merge( + $this->onResolved->getHandlers(), + $handlers->onResolved->getHandlers() + ); + + $this->onResolved->setHandlers($onResolvedHandlers); + + $onFatalHandlers = array_merge( + $this->onFatal->getHandlers(), + $handlers->onFatal->getHandlers() + ); + $this->onFatal->setHandlers($onFatalHandlers); + } + + return $this; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Middleware/ApplyIdempotencyKey.php b/vendor/mollie/mollie-api-php/src/Http/Middleware/ApplyIdempotencyKey.php new file mode 100644 index 0000000..d18e5ce --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Middleware/ApplyIdempotencyKey.php @@ -0,0 +1,48 @@ +getConnector(); + $idempotencyKey = $connector->getIdempotencyKey(); + + $connector->resetIdempotencyKey(); + + if (! $this->isMutatingRequest($pendingRequest)) { + $pendingRequest->headers()->remove(self::IDEMPOTENCY_KEY_HEADER); + + return $pendingRequest; + } + + $idempotencyKeyGenerator = $connector->getIdempotencyKeyGenerator(); + + if ($idempotencyKey === null && $idempotencyKeyGenerator === null) { + return $pendingRequest; + } + + /** @var IdempotencyKeyGeneratorContract $idempotencyKeyGenerator */ + $pendingRequest->headers()->add( + self::IDEMPOTENCY_KEY_HEADER, + $idempotencyKey ?? $idempotencyKeyGenerator->generate() + ); + + return $pendingRequest; + } + + private function isMutatingRequest(PendingRequest $pendingRequest): bool + { + return in_array($pendingRequest->method(), [Method::POST, Method::PATCH, Method::DELETE]); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Middleware/ConvertResponseToException.php b/vendor/mollie/mollie-api-php/src/Http/Middleware/ConvertResponseToException.php new file mode 100644 index 0000000..d95daad --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Middleware/ConvertResponseToException.php @@ -0,0 +1,51 @@ +successful()) { + return; + } + + $status = $response->status(); + + switch ($status) { + case ResponseStatusCode::HTTP_UNAUTHORIZED: + throw UnauthorizedException::fromResponse($response); + case ResponseStatusCode::HTTP_FORBIDDEN: + throw ForbiddenException::fromResponse($response); + case ResponseStatusCode::HTTP_NOT_FOUND: + throw NotFoundException::fromResponse($response); + case ResponseStatusCode::HTTP_METHOD_NOT_ALLOWED: + throw MethodNotAllowedException::fromResponse($response); + case ResponseStatusCode::HTTP_REQUEST_TIMEOUT: + throw RequestTimeoutException::fromResponse($response); + case ResponseStatusCode::HTTP_UNPROCESSABLE_ENTITY: + throw ValidationException::fromResponse($response); + case ResponseStatusCode::HTTP_TOO_MANY_REQUESTS: + throw TooManyRequestsException::fromResponse($response); + case ResponseStatusCode::HTTP_SERVICE_UNAVAILABLE: + throw ServiceUnavailableException::fromResponse($response); + default: + throw ApiException::fromResponse($response); + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Middleware/Handler.php b/vendor/mollie/mollie-api-php/src/Http/Middleware/Handler.php new file mode 100644 index 0000000..b5e2433 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Middleware/Handler.php @@ -0,0 +1,38 @@ +callback = $callback; + $this->name = $name; + $this->priority = $priority; + } + + public function callback(): callable + { + return $this->callback; + } + + public function name(): ?string + { + return $this->name; + } + + public function priority(): string + { + return $this->priority; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Middleware/Handlers.php b/vendor/mollie/mollie-api-php/src/Http/Middleware/Handlers.php new file mode 100644 index 0000000..49957d6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Middleware/Handlers.php @@ -0,0 +1,83 @@ + + */ + protected array $handlers = []; + + public function add(callable $handler, ?string $name = null, string $priority = MiddlewarePriority::MEDIUM): void + { + if (in_array($name, [MiddlewarePriority::HIGH, MiddlewarePriority::MEDIUM, MiddlewarePriority::LOW])) { + $priority = $name; + $name = null; + } + + if (is_string($name) && $this->handlerExists($name)) { + throw new \InvalidArgumentException("Handler with name '{$name}' already exists."); + } + + $this->handlers[] = new Handler($handler, $name, $priority); + } + + public function setHandlers(array $handlers): void + { + $this->handlers = $handlers; + } + + public function getHandlers(): array + { + return $this->handlers; + } + + /** + * Execute the handlers + * + * @param mixed $payload + * @return mixed + */ + public function execute($payload) + { + /** @var Handler $handler */ + foreach ($this->sortHandlers() as $handler) { + $payload = call_user_func($handler->callback(), $payload); + } + + return $payload; + } + + protected function sortHandlers(): array + { + $highPriority = []; + $mediumPriority = []; + $lowPriority = []; + + $priorityMap = [ + MiddlewarePriority::HIGH => &$highPriority, + MiddlewarePriority::MEDIUM => &$mediumPriority, + MiddlewarePriority::LOW => &$lowPriority, + ]; + + foreach ($this->handlers as $handler) { + $priorityMap[$handler->priority()][] = $handler; + } + + return array_merge($highPriority, $mediumPriority, $lowPriority); + } + + private function handlerExists(string $name): bool + { + foreach ($this->handlers as $handler) { + if ($handler->name() === $name) { + return true; + } + } + + return false; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Middleware/Hydrate.php b/vendor/mollie/mollie-api-php/src/Http/Middleware/Hydrate.php new file mode 100644 index 0000000..9127f5d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Middleware/Hydrate.php @@ -0,0 +1,24 @@ +getRequest(); + + if (! $response->isEmpty() && $request instanceof ResourceHydratableRequest && $request->isHydratable()) { + return (new ResourceResolver(new ResourceHydrator))->resolve($request, $response); + } + + return $response; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Middleware/MiddlewarePriority.php b/vendor/mollie/mollie-api-php/src/Http/Middleware/MiddlewarePriority.php new file mode 100644 index 0000000..90d4f84 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Middleware/MiddlewarePriority.php @@ -0,0 +1,14 @@ +factoryCollection = $connector->getHttpClient()->factories(); + + $this->connector = $connector; + $this->request = $request; + + $this->method = $request->getMethod(); + $this->url = Url::join($connector->resolveBaseUrl(), $request->resolveResourcePath()); + + $this + ->tap(new SetUserAgent) + ->tap(new MergeRequestProperties) + ->tap(new MergeBody) + ->tap(new AuthenticateRequest) + ->tap(new HandleTestmode); + + $this + ->middleware() + + /** On request */ + ->onRequest(new ApplyIdempotencyKey, 'idempotency') + + /** On response */ + ->onResponse(new ConvertResponseToException, MiddlewarePriority::HIGH) + + /** Merge the middleware */ + ->merge($connector->middleware(), $request->middleware()); + } + + /** + * Determine the effective mode used for this request. + * + * API keys select the mode themselves. Other authentication methods use + * the mode carried by the request flags or its final transport inputs. + */ + public function getTestmode(): bool + { + if ($this->testmode !== null) { + return $this->testmode; + } + + $authenticator = $this->connector->getAuthenticator(); + + if ($authenticator instanceof ApiKeyAuthenticator) { + return $this->testmode = $authenticator->isTestToken(); + } + + $query = Url::parseQuery($this->getUri()->getQuery()); + + return $this->testmode = $this->connector->getTestmode() + || $this->request->getTestmode() + || Utility::isTrue($query['testmode'] ?? null) + || Utility::isTrue($this->payload?->get('testmode')); + } + + public function setPayload(PayloadRepository $bodyRepository): self + { + $this->payload = $bodyRepository; + + return $this; + } + + public function payload(): ?PayloadRepository + { + return $this->payload; + } + + public function url(): string + { + return $this->url; + } + + public function method(): string + { + return $this->method; + } + + public function getConnector(): Connector + { + return $this->connector; + } + + public function getRequest(): Request + { + return $this->request; + } + + public function executeRequestHandlers(): self + { + return $this->middleware()->executeOnRequest($this); + } + + /** @return mixed */ + public function executeResponseHandlers(Response $response) + { + $response = $this->middleware()->executeOnResponse($response); + $result = (new Hydrate)($response); + + return $this->middleware()->executeOnResolved($result); + } + + public function executeFatalHandlers(MollieException $exception): MollieException + { + return $this->middleware()->executeOnFatal($exception); + } + + protected function tap(callable $callable): self + { + $callable($this); + + return $this; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/PendingRequest/AuthenticateRequest.php b/vendor/mollie/mollie-api-php/src/Http/PendingRequest/AuthenticateRequest.php new file mode 100644 index 0000000..23032cf --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/PendingRequest/AuthenticateRequest.php @@ -0,0 +1,24 @@ +getConnector()->getAuthenticator(); + + if (! $authenticator) { + throw new MissingAuthenticationException; + } + + $authenticator->authenticate($pendingRequest); + + return $pendingRequest; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/PendingRequest/HandleTestmode.php b/vendor/mollie/mollie-api-php/src/Http/PendingRequest/HandleTestmode.php new file mode 100644 index 0000000..ea72a37 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/PendingRequest/HandleTestmode.php @@ -0,0 +1,67 @@ +getConnector(); + $authenticator = $connector->getAuthenticator(); + $testmode = $pendingRequest->getTestmode(); + + if ($authenticator instanceof ApiKeyAuthenticator) { + $this->removeTestmode($pendingRequest); + } elseif ($testmode) { + $this->applyTestmode($pendingRequest); + } + + return $pendingRequest; + } + + private function applyTestmode(PendingRequest $pendingRequest): void + { + $request = $pendingRequest->getRequest(); + + if (! $request instanceof SupportsTestmode) { + return; + } + + if ($request instanceof SupportsTestmodeInQuery) { + $pendingRequest->query()->add('testmode', true); + } elseif ($request instanceof SupportsTestmodeInPayload) { + /** @var PayloadRepository $payload */ + $payload = $pendingRequest->payload(); + + $payload->add('testmode', true); + } + } + + private function removeTestmode(PendingRequest $pendingRequest): void + { + if ($pendingRequest->getRequest() instanceof SupportsTestmodeInQuery) { + $pendingRequest->query()->remove('testmode'); + } + + if (! $pendingRequest->getRequest() instanceof SupportsTestmodeInPayload) { + return; + } + + $payload = $pendingRequest->payload(); + + if ($payload === null) { + return; + } + + $payload->remove('testmode'); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/PendingRequest/MergeBody.php b/vendor/mollie/mollie-api-php/src/Http/PendingRequest/MergeBody.php new file mode 100644 index 0000000..ad0d2ee --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/PendingRequest/MergeBody.php @@ -0,0 +1,30 @@ +getRequest(); + + if (! $request instanceof HasPayload) { + return $pendingRequest; + } + + $body = $request->payload(); + + $pendingRequest->setPayload($body); + + if (! $pendingRequest->headers()->get('Content-Type')) { + $pendingRequest->headers()->add('Content-Type', 'application/json'); + } + + return $pendingRequest; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/PendingRequest/MergeRequestProperties.php b/vendor/mollie/mollie-api-php/src/Http/PendingRequest/MergeRequestProperties.php new file mode 100644 index 0000000..38bcdfe --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/PendingRequest/MergeRequestProperties.php @@ -0,0 +1,32 @@ +getConnector(); + $request = $pendingRequest->getRequest(); + + $pendingRequest + ->headers() + ->merge( + $client->headers()->all(), + $request->headers()->all() + ); + + $pendingRequest + ->query() + ->merge( + $client->query()->all(), + $request->query()->all() + ); + + return $pendingRequest; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/PendingRequest/SetUserAgent.php b/vendor/mollie/mollie-api-php/src/Http/PendingRequest/SetUserAgent.php new file mode 100644 index 0000000..668851e --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/PendingRequest/SetUserAgent.php @@ -0,0 +1,27 @@ +getConnector()->getVersionStrings(), ' '); + + $authenticator = $pendingRequest->getConnector()->getAuthenticator(); + + if ($authenticator instanceof AccessTokenAuthenticator) { + $userAgent .= ' Auth/Token'; + } + + $pendingRequest->headers()->add('User-Agent', $userAgent); + + return $pendingRequest; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Request.php b/vendor/mollie/mollie-api-php/src/Http/Request.php new file mode 100644 index 0000000..bb9fa22 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Request.php @@ -0,0 +1,41 @@ +getResponse(); + $pendingRequest = $response->getPendingRequest(); + $request = $response->getPsrRequest(); + + // Clear any sensitive payload data + $pendingRequest->setPayload(new JsonPayloadRepository); + + // Remove sensitive headers and create a new sanitized request + foreach ($this->sensitiveHeaders as $header) { + if ($request->hasHeader($header)) { + $request = $request->withoutHeader($header); + } + } + + // Update the PSR request in the response using reflection since it's protected + $reflectionResponse = new ReflectionProperty($response, 'psrRequest'); + $reflectionResponse->setValue($response, $request); + + return $exception; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/ApplePayPaymentSessionRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/ApplePayPaymentSessionRequest.php new file mode 100644 index 0000000..e523757 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/ApplePayPaymentSessionRequest.php @@ -0,0 +1,43 @@ + + */ +class ApplePayPaymentSessionRequest extends ResourceHydratableRequest implements HasPayload +{ + use HasJsonPayload; + + protected static string $method = Method::POST; + + protected ?string $hydratableResource = AnyResource::class; + + public function __construct( + private string $domain, + private string $validationUrl, + private ?string $profileId = null, + ) { + } + + public function defaultPayload(): array + { + return [ + 'domain' => $this->domain, + 'validationUrl' => $this->validationUrl, + 'profileId' => $this->profileId, + ]; + } + + public function resolveResourcePath(): string + { + return 'wallets/applepay/sessions'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CancelPaymentRefundRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CancelPaymentRefundRequest.php new file mode 100644 index 0000000..b7c677c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CancelPaymentRefundRequest.php @@ -0,0 +1,31 @@ +paymentId}/refunds/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CancelPaymentRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CancelPaymentRequest.php new file mode 100644 index 0000000..01af35c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CancelPaymentRequest.php @@ -0,0 +1,34 @@ + + */ +class CancelPaymentRequest extends ResourceHydratableRequest implements SupportsTestmodeInPayload +{ + use HasJsonPayload; + + protected static string $method = Method::DELETE; + + protected ?string $hydratableResource = Payment::class; + + public function __construct( + private string $id, + ) { + } + + public function resolveResourcePath(): string + { + return "payments/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CancelPayoutRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CancelPayoutRequest.php new file mode 100644 index 0000000..9e02b10 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CancelPayoutRequest.php @@ -0,0 +1,38 @@ + + */ +class CancelPayoutRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::DELETE; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Payout::class; + + private string $id; + + public function __construct(string $id) + { + $this->id = $id; + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "payouts/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CancelSubscriptionRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CancelSubscriptionRequest.php new file mode 100644 index 0000000..ff26bec --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CancelSubscriptionRequest.php @@ -0,0 +1,44 @@ + + */ +class CancelSubscriptionRequest extends ResourceHydratableRequest implements SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::DELETE; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Subscription::class; + + public function __construct( + private string $customerId, + private string $subscriptionId, + ) { + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "customers/{$this->customerId}/subscriptions/{$this->subscriptionId}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreateClientLinkRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateClientLinkRequest.php new file mode 100644 index 0000000..d3e849b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateClientLinkRequest.php @@ -0,0 +1,55 @@ + + */ +class CreateClientLinkRequest extends ResourceHydratableRequest implements HasPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = ClientLink::class; + + public function __construct( + private Owner $owner, + private string $name, + private OwnerAddress $address, + private ?string $registrationNumber = null, + private ?string $vatNumber = null, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'owner' => $this->owner, + 'name' => $this->name, + 'address' => $this->address, + 'registrationNumber' => $this->registrationNumber, + 'vatNumber' => $this->vatNumber, + ]; + } + + public function resolveResourcePath(): string + { + return 'client-links'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreateConnectBalanceTransferRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateConnectBalanceTransferRequest.php new file mode 100644 index 0000000..8af4edd --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateConnectBalanceTransferRequest.php @@ -0,0 +1,61 @@ + + */ +class CreateConnectBalanceTransferRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = ConnectBalanceTransfer::class; + + public function __construct( + private Money $amount, + private string $description, + private TransferParty $source, + private TransferParty $destination, + private string $category, + private ?array $metadata = null, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'amount' => $this->amount, + 'description' => $this->description, + 'source' => $this->source, + 'destination' => $this->destination, + 'category' => $this->category, + 'metadata' => $this->metadata, + ]; + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return 'connect/balance-transfers'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreateCustomerPaymentRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateCustomerPaymentRequest.php new file mode 100644 index 0000000..6625a2f --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateCustomerPaymentRequest.php @@ -0,0 +1,72 @@ +customerId}/payments"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreateCustomerRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateCustomerRequest.php new file mode 100644 index 0000000..7d4ab71 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateCustomerRequest.php @@ -0,0 +1,48 @@ + + */ +class CreateCustomerRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + protected static string $method = Method::POST; + + protected ?string $hydratableResource = Customer::class; + + public function __construct( + private ?string $name = null, + private ?string $email = null, + private ?string $locale = null, + private ?array $metadata = null, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'name' => $this->name, + 'email' => $this->email, + 'locale' => $this->locale, + 'metadata' => $this->metadata, + ]; + } + + public function resolveResourcePath(): string + { + return 'customers'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreateDelayedPaymentRouteRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateDelayedPaymentRouteRequest.php new file mode 100644 index 0000000..0484320 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateDelayedPaymentRouteRequest.php @@ -0,0 +1,50 @@ + + */ +class CreateDelayedPaymentRouteRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * The HTTP method. + */ + protected static string $method = Method::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Route::class; + + public function __construct( + private string $paymentId, + private Money $amount, + private array $destination, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'amount' => $this->amount, + 'destination' => $this->destination, + ]; + } + + public function resolveResourcePath(): string + { + return "payments/{$this->paymentId}/routes"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreateMandateRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateMandateRequest.php new file mode 100644 index 0000000..5a0045a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateMandateRequest.php @@ -0,0 +1,68 @@ + + */ +class CreateMandateRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Mandate::class; + + private string $paymentMethod; + + public function __construct( + private string $customerId, + string $method, + private string $consumerName, + private ?string $consumerAccount = null, + private ?string $consumerBic = null, + private ?string $consumerEmail = null, + private Date|DateTimeInterface|null $signatureDate = null, + private ?string $mandateReference = null, + private ?string $paypalBillingAgreementId = null, + ) { + $this->paymentMethod = $method; + } + + protected function defaultPayload(): array + { + return [ + 'method' => $this->paymentMethod, + 'consumerName' => $this->consumerName, + 'consumerAccount' => $this->consumerAccount, + 'consumerBic' => $this->consumerBic, + 'consumerEmail' => $this->consumerEmail, + 'signatureDate' => $this->signatureDate, + 'mandateReference' => $this->mandateReference, + 'paypalBillingAgreementId' => $this->paypalBillingAgreementId, + ]; + } + + public function resolveResourcePath(): string + { + return "customers/{$this->customerId}/mandates"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePaymentCaptureRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePaymentCaptureRequest.php new file mode 100644 index 0000000..397c36a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePaymentCaptureRequest.php @@ -0,0 +1,54 @@ + + */ +class CreatePaymentCaptureRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Capture::class; + + public function __construct( + private string $paymentId, + private string $description, + private ?Money $amount = null, + private ?array $metadata = null, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'description' => $this->description, + 'amount' => $this->amount, + 'metadata' => $this->metadata, + ]; + } + + public function resolveResourcePath(): string + { + return "payments/{$this->paymentId}/captures"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePaymentLinkRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePaymentLinkRequest.php new file mode 100644 index 0000000..95cdd46 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePaymentLinkRequest.php @@ -0,0 +1,83 @@ + + */ +class CreatePaymentLinkRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = PaymentLink::class; + + public function __construct( + private string $description, + private ?Money $amount = null, + private ?string $redirectUrl = null, + private ?string $webhookUrl = null, + private ?string $profileId = null, + private ?bool $reusable = null, + private $expiresAt = null, + private ?array $allowedMethods = null, + private ?string $sequenceType = null, + private ?string $customerId = null, + private ?DataCollection $lines = null, + private ?Address $billingAddress = null, + private ?Address $shippingAddress = null, + private ?Money $minimumAmount = null, + private ?ApplicationFee $applicationFee = null, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'description' => $this->description, + 'amount' => $this->amount, + 'minimumAmount' => $this->minimumAmount, + 'redirectUrl' => $this->redirectUrl, + 'webhookUrl' => $this->webhookUrl, + 'profileId' => $this->profileId, + 'reusable' => $this->reusable, + 'expiresAt' => $this->expiresAt, + 'allowedMethods' => $this->allowedMethods, + 'sequenceType' => $this->sequenceType, + 'customerId' => $this->customerId, + 'lines' => $this->lines, + 'billingAddress' => $this->billingAddress, + 'shippingAddress' => $this->shippingAddress, + 'applicationFee' => $this->applicationFee, + ]; + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return 'payment-links'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePaymentRefundRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePaymentRefundRequest.php new file mode 100644 index 0000000..c9e7c85 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePaymentRefundRequest.php @@ -0,0 +1,96 @@ + + */ +class CreatePaymentRefundRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Refund::class; + + private Money $amount; + + public function __construct( + private string $paymentId, + private string $description = '', + ?Money $amount = null, + private ?array $metadata = null, + private ?bool $reverseRouting = null, + private ?DataCollection $routingReversals = null, + ) { + if ($amount === null) { + throw new \InvalidArgumentException('The amount parameter is required.'); + } + + $this->amount = $amount; + } + + /** + * Create a refund request with correct parameter ordering. + * This factory method avoids PHP 8+ deprecation warnings when using positional arguments. + * + * @param string $paymentId The payment ID to refund + * @param Money $amount The amount to refund + * @param string $description Optional description for the refund + * @param array|null $metadata Optional metadata + * @param bool|null $reverseRouting Optional reverse routing flag + * @param DataCollection|null $routingReversals Optional routing reversals + * @return self + */ + public static function for( + string $paymentId, + Money $amount, + string $description = '', + ?array $metadata = null, + ?bool $reverseRouting = null, + ?DataCollection $routingReversals = null + ): self { + return new self( + $paymentId, + $description, + $amount, + $metadata, + $reverseRouting, + $routingReversals + ); + } + + protected function defaultPayload(): array + { + return [ + 'description' => $this->description, + 'amount' => $this->amount, + 'metadata' => $this->metadata, + 'reverseRouting' => $this->reverseRouting, + 'routingReversals' => $this->routingReversals, + ]; + } + + public function resolveResourcePath(): string + { + return "payments/{$this->paymentId}/refunds"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePaymentRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePaymentRequest.php new file mode 100644 index 0000000..843bc09 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePaymentRequest.php @@ -0,0 +1,109 @@ + + */ +class CreatePaymentRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Payment::class; + + private PaymentMethod|string|array|null $paymentMethod; + + public function __construct( + private string $description, + private Money $amount, + private ?string $redirectUrl = null, + private ?string $cancelUrl = null, + private ?string $webhookUrl = null, + private ?DataCollection $lines = null, + private ?Address $billingAddress = null, + private ?Address $shippingAddress = null, + private ?string $locale = null, + PaymentMethod|string|array|null $method = null, + private ?string $issuer = null, + private ?string $restrictPaymentMethodsToCountry = null, + private ?array $metadata = null, + private ?string $captureMode = null, + private ?string $captureDelay = null, + private ?ApplicationFee $applicationFee = null, + private ?DataCollection $routing = null, + private ?string $sequenceType = null, + private ?string $mandateId = null, + private ?string $customerId = null, + private ?string $profileId = null, + private array $additional = [], + private bool $includeQrCode = false, + ) { + $this->paymentMethod = $method; + } + + protected function defaultPayload(): array + { + return array_merge([ + 'description' => $this->description, + 'amount' => $this->amount, + 'redirectUrl' => $this->redirectUrl, + 'cancelUrl' => $this->cancelUrl, + 'webhookUrl' => $this->webhookUrl, + 'lines' => $this->lines, + 'billingAddress' => $this->billingAddress, + 'shippingAddress' => $this->shippingAddress, + 'locale' => $this->locale, + 'method' => $this->paymentMethod, + 'issuer' => $this->issuer, + 'restrictPaymentMethodsToCountry' => $this->restrictPaymentMethodsToCountry, + 'metadata' => $this->metadata, + 'captureMode' => $this->captureMode, + 'captureDelay' => $this->captureDelay, + 'applicationFee' => $this->applicationFee, + 'routing' => $this->routing, + 'sequenceType' => $this->sequenceType, + 'mandateId' => $this->mandateId, + 'customerId' => $this->customerId, + 'profileId' => $this->profileId, + ], $this->additional); + } + + protected function defaultQuery(): array + { + return [ + 'include' => $this->includeQrCode ? PaymentQuery::INCLUDE_QR_CODE : null, + ]; + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return 'payments'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePayoutRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePayoutRequest.php new file mode 100644 index 0000000..a14fab5 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreatePayoutRequest.php @@ -0,0 +1,61 @@ + + */ +class CreatePayoutRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Payout::class; + + private string $balanceId; + + private ?Money $amount; + + private ?string $description; + + public function __construct( + string $balanceId, + ?Money $amount = null, + ?string $description = null + ) { + $this->balanceId = $balanceId; + $this->amount = $amount; + $this->description = $description; + } + + protected function defaultPayload(): array + { + return [ + 'balanceId' => $this->balanceId, + 'amount' => $this->amount, + 'description' => $this->description, + ]; + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return 'payouts'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreateProfileRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateProfileRequest.php new file mode 100644 index 0000000..facfc53 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateProfileRequest.php @@ -0,0 +1,62 @@ + + */ +class CreateProfileRequest extends ResourceHydratableRequest implements HasPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Profile::class; + + public function __construct( + private string $name, + private string $website, + private string $email, + private string $phone, + private ?string $description = null, + private ?array $countriesOfActivity = null, + private ?string $businessCategory = null, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'name' => $this->name, + 'website' => $this->website, + 'email' => $this->email, + 'phone' => $this->phone, + 'description' => $this->description, + 'countriesOfActivity' => $this->countriesOfActivity, + 'businessCategory' => $this->businessCategory, + ]; + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return 'profiles'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreateSalesInvoiceRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateSalesInvoiceRequest.php new file mode 100644 index 0000000..79b20d0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateSalesInvoiceRequest.php @@ -0,0 +1,79 @@ + + */ +class CreateSalesInvoiceRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + protected static string $method = Method::POST; + + protected ?string $hydratableResource = SalesInvoice::class; + + public function __construct( + private string $currency, + private string $status, + private string $vatScheme, + private string $vatMode, + private string $paymentTerm, + private string $recipientIdentifier, + private Recipient $recipient, + private DataCollection $lines, + private ?string $profileId = null, + private ?string $memo = null, + private ?PaymentDetails $paymentDetails = null, + private ?EmailDetails $emailDetails = null, + private ?string $webhookUrl = null, + private ?Discount $discount = null, + private ?string $customerId = null, + private ?string $mandateId = null, + private ?bool $isEInvoice = null, + ) { + } + + public function defaultPayload(): array + { + return [ + 'currency' => $this->currency, + 'status' => $this->status, + 'vatScheme' => $this->vatScheme, + 'vatMode' => $this->vatMode, + 'paymentTerm' => $this->paymentTerm, + 'recipientIdentifier' => $this->recipientIdentifier, + 'recipient' => $this->recipient, + 'lines' => $this->lines, + 'profileId' => $this->profileId, + 'memo' => $this->memo, + 'paymentDetails' => $this->paymentDetails, + 'emailDetails' => $this->emailDetails, + 'webhookUrl' => $this->webhookUrl, + 'discount' => $this->discount, + 'customerId' => $this->customerId, + 'mandateId' => $this->mandateId, + 'isEInvoice' => $this->isEInvoice, + ]; + } + + public function resolveResourcePath(): string + { + return 'sales-invoices'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreateSessionRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateSessionRequest.php new file mode 100644 index 0000000..0bdf53b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateSessionRequest.php @@ -0,0 +1,71 @@ + + */ +class CreateSessionRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + protected static string $method = Method::POST; + + protected ?string $hydratableResource = Session::class; + + /** + * @param DataCollection $lines + */ + public function __construct( + private Money $amount, + private string $description, + private string $redirectUrl, + private DataCollection $lines, + private ?string $cancelUrl = null, + private ?Address $billingAddress = null, + private ?Address $shippingAddress = null, + private ?string $customerId = null, + private ?string $sequenceType = null, + private ?array $metadata = null, + private ?string $paymentWebhook = null, + private ?string $profileId = null, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'amount' => $this->amount, + 'description' => $this->description, + 'redirectUrl' => $this->redirectUrl, + 'lines' => $this->lines, + 'cancelUrl' => $this->cancelUrl, + 'billingAddress' => $this->billingAddress, + 'shippingAddress' => $this->shippingAddress, + 'customerId' => $this->customerId, + 'sequenceType' => $this->sequenceType, + 'metadata' => $this->metadata, + 'profileId' => $this->profileId, + 'payment' => $this->paymentWebhook !== null ? [ + 'webhookUrl' => $this->paymentWebhook, + ] : null, + ]; + } + + public function resolveResourcePath(): string + { + return 'sessions'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreateSubscriptionRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateSubscriptionRequest.php new file mode 100644 index 0000000..7d25eb2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateSubscriptionRequest.php @@ -0,0 +1,81 @@ + + */ +class CreateSubscriptionRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Subscription::class; + + private ?string $paymentMethod; + + public function __construct( + private string $customerId, + private Money $amount, + private string $interval, + private string $description, + private ?string $status = null, + private ?int $times = null, + private Date|DateTimeInterface|null $startDate = null, + ?string $method = null, + private ?ApplicationFee $applicationFee = null, + private ?array $metadata = null, + private ?string $webhookUrl = null, + private ?string $mandateId = null, + private ?string $profileId = null, + ) { + $this->paymentMethod = $method; + } + + protected function defaultPayload(): array + { + return [ + 'amount' => $this->amount, + 'interval' => $this->interval, + 'description' => $this->description, + 'status' => $this->status, + 'times' => $this->times, + 'startDate' => $this->startDate, + 'method' => $this->paymentMethod, + 'applicationFee' => $this->applicationFee, + 'metadata' => $this->metadata, + 'webhookUrl' => $this->webhookUrl, + 'mandateId' => $this->mandateId, + 'profileId' => $this->profileId, + ]; + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "customers/{$this->customerId}/subscriptions"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/CreateWebhookRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateWebhookRequest.php new file mode 100644 index 0000000..40348af --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/CreateWebhookRequest.php @@ -0,0 +1,56 @@ + + */ +class CreateWebhookRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Webhook::class; + + public function __construct( + private string $url, + private string $name, + private $eventTypes, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'url' => $this->url, + 'name' => $this->name, + 'eventTypes' => is_string($this->eventTypes) ? $this->eventTypes : Arr::join($this->eventTypes), + ]; + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return 'webhooks'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/DeleteCustomerRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/DeleteCustomerRequest.php new file mode 100644 index 0000000..cc85d22 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/DeleteCustomerRequest.php @@ -0,0 +1,30 @@ +id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/DeletePaymentLinkRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/DeletePaymentLinkRequest.php new file mode 100644 index 0000000..66c006c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/DeletePaymentLinkRequest.php @@ -0,0 +1,30 @@ +id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/DeleteProfileRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/DeleteProfileRequest.php new file mode 100644 index 0000000..77868eb --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/DeleteProfileRequest.php @@ -0,0 +1,29 @@ +id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/DeleteSalesInvoiceRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/DeleteSalesInvoiceRequest.php new file mode 100644 index 0000000..d0c0aaa --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/DeleteSalesInvoiceRequest.php @@ -0,0 +1,27 @@ +id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/DeleteWebhookRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/DeleteWebhookRequest.php new file mode 100644 index 0000000..d3ca15e --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/DeleteWebhookRequest.php @@ -0,0 +1,37 @@ + + */ +class DeleteWebhookRequest extends ResourceHydratableRequest implements SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::DELETE; + + public function __construct( + private string $id, + ) { + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "webhooks/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/DisableMethodIssuerRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/DisableMethodIssuerRequest.php new file mode 100644 index 0000000..f7b0e84 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/DisableMethodIssuerRequest.php @@ -0,0 +1,31 @@ +profileId}/methods/{$this->methodId}/issuers/{$this->issuerId}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/DisableMethodRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/DisableMethodRequest.php new file mode 100644 index 0000000..31a8de1 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/DisableMethodRequest.php @@ -0,0 +1,30 @@ +profileId}/methods/{$this->methodId}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicDeleteRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicDeleteRequest.php new file mode 100644 index 0000000..85a21d3 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicDeleteRequest.php @@ -0,0 +1,28 @@ +query()->merge($query); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicGetRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicGetRequest.php new file mode 100644 index 0000000..161f42b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicGetRequest.php @@ -0,0 +1,25 @@ +query()->merge($query); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicPaginatedRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicPaginatedRequest.php new file mode 100644 index 0000000..1196ab8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicPaginatedRequest.php @@ -0,0 +1,14 @@ +payload()->merge($payload); + $this->query()->merge($query); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicPutRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicPutRequest.php new file mode 100644 index 0000000..620288c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicPutRequest.php @@ -0,0 +1,31 @@ +payload()->merge($payload); + $this->query()->merge($query); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicRequest.php new file mode 100644 index 0000000..1f138de --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/DynamicRequest.php @@ -0,0 +1,25 @@ + + */ +abstract class DynamicRequest extends ResourceHydratableRequest +{ + protected ?string $hydratableResource = AnyResource::class; + + public function __construct( + private string $url, + ) { + } + + public function resolveResourcePath(): string + { + return $this->url; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/EnableMethodIssuerRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/EnableMethodIssuerRequest.php new file mode 100644 index 0000000..1a53965 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/EnableMethodIssuerRequest.php @@ -0,0 +1,50 @@ + + */ +class EnableMethodIssuerRequest extends ResourceHydratableRequest implements HasPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = HttpMethod::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Issuer::class; + + public function __construct( + private string $profileId, + private string $methodId, + private string $issuerId, + private ?string $contractId = null, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'contractId' => $this->contractId, + ]; + } + + public function resolveResourcePath(): string + { + return "profiles/{$this->profileId}/methods/{$this->methodId}/issuers/{$this->issuerId}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/EnableMethodRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/EnableMethodRequest.php new file mode 100644 index 0000000..4ef57fa --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/EnableMethodRequest.php @@ -0,0 +1,37 @@ + + */ +class EnableMethodRequest extends ResourceHydratableRequest +{ + /** + * Define the HTTP method. + */ + protected static string $method = HttpMethod::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Method::class; + + public function __construct( + private string $profileId, + private string $methodId, + ) { + } + + public function resolveResourcePath(): string + { + return "profiles/{$this->profileId}/methods/{$this->methodId}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetAllMethodsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetAllMethodsRequest.php new file mode 100644 index 0000000..c774487 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetAllMethodsRequest.php @@ -0,0 +1,56 @@ + + */ +class GetAllMethodsRequest extends ResourceHydratableRequest +{ + /** + * Define the HTTP method. + */ + protected static string $method = HttpMethod::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = MethodCollection::class; + + public function __construct( + private bool $includeIssuers = false, + private bool $includePricing = false, + private ?string $locale = null, + private ?Money $amount = null, + private ?string $profileId = null, + ) { + } + + protected function defaultQuery(): array + { + return [ + 'include' => Arr::join([ + $this->includeIssuers ? MethodQuery::INCLUDE_ISSUERS : null, + $this->includePricing ? MethodQuery::INCLUDE_PRICING : null, + ]), + 'locale' => $this->locale, + 'amount' => $this->amount, + 'profileId' => $this->profileId, + ]; + } + + public function resolveResourcePath(): string + { + return 'methods/all'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetAllPaginatedSubscriptionsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetAllPaginatedSubscriptionsRequest.php new file mode 100644 index 0000000..4a963c7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetAllPaginatedSubscriptionsRequest.php @@ -0,0 +1,50 @@ + + */ +class GetAllPaginatedSubscriptionsRequest extends ResourceHydratableRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = SubscriptionCollection::class; + + public function __construct( + private ?string $from = null, + private ?int $limit = null, + private ?string $profileId = null, + ) { + } + + public function defaultQuery(): array + { + return [ + 'from' => $this->from, + 'limit' => $this->limit, + 'profileId' => $this->profileId, + ]; + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return 'subscriptions'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetBalanceReportRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetBalanceReportRequest.php new file mode 100644 index 0000000..1656399 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetBalanceReportRequest.php @@ -0,0 +1,51 @@ + + */ +class GetBalanceReportRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = BalanceReport::class; + + public function __construct( + private string $balanceId, + private DateTimeInterface $from, + private DateTimeInterface $until, + private ?string $grouping = null, + ) { + } + + protected function defaultQuery(): array + { + return [ + 'from' => $this->from, + 'until' => $this->until, + 'grouping' => $this->grouping, + ]; + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return "balances/{$this->balanceId}/report"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetBalanceRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetBalanceRequest.php new file mode 100644 index 0000000..96913c9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetBalanceRequest.php @@ -0,0 +1,34 @@ + + */ +class GetBalanceRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + protected static string $method = Method::GET; + + protected ?string $hydratableResource = Balance::class; + + public function __construct( + private string $id, + ) { + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return "balances/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetCapabilityRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetCapabilityRequest.php new file mode 100644 index 0000000..9bca2c7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetCapabilityRequest.php @@ -0,0 +1,31 @@ + + */ +class GetCapabilityRequest extends ResourceHydratableRequest +{ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Capability::class; + + public function __construct( + private string $name, + ) { + } + + public function resolveResourcePath(): string + { + return "capabilities/{$this->name}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetClientRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetClientRequest.php new file mode 100644 index 0000000..2fa81d9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetClientRequest.php @@ -0,0 +1,50 @@ + + */ +class GetClientRequest extends ResourceHydratableRequest +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Client::class; + + public function __construct( + private string $id, + private ?bool $embedOrganization = null, + private ?bool $embedOnboarding = null, + ) { + } + + protected function defaultQuery(): array + { + return [ + 'embed' => Arr::join([ + $this->embedOrganization ? ClientQuery::EMBED_ORGANIZATION : null, + $this->embedOnboarding ? ClientQuery::EMBED_ONBOARDING : null, + ]), + ]; + } + + public function resolveResourcePath(): string + { + return "clients/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetConnectBalanceTransferRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetConnectBalanceTransferRequest.php new file mode 100644 index 0000000..c48d9c8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetConnectBalanceTransferRequest.php @@ -0,0 +1,38 @@ + + */ +class GetConnectBalanceTransferRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = ConnectBalanceTransfer::class; + + public function __construct( + private string $id, + ) { + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "connect/balance-transfers/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetCurrentProfileRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetCurrentProfileRequest.php new file mode 100644 index 0000000..1b702d6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetCurrentProfileRequest.php @@ -0,0 +1,29 @@ + + */ +class GetCurrentProfileRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = CurrentProfile::class; + + public function resolveResourcePath(): string + { + return 'profiles/me'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetCustomerRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetCustomerRequest.php new file mode 100644 index 0000000..8bc0870 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetCustomerRequest.php @@ -0,0 +1,34 @@ + + */ +class GetCustomerRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + protected static string $method = Method::GET; + + protected ?string $hydratableResource = Customer::class; + + public function __construct( + private string $id, + ) { + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return "customers/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetEnabledMethodsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetEnabledMethodsRequest.php new file mode 100644 index 0000000..6d6a0e7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetEnabledMethodsRequest.php @@ -0,0 +1,87 @@ + + */ +class GetEnabledMethodsRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + protected static string $method = HttpMethod::GET; + + protected ?string $hydratableResource = MethodCollection::class; + + /** + * Whether to filter out methods with a status of null. + */ + private bool $filtersNullStatus = true; + + public function __construct( + private string $sequenceType = SequenceType::Oneoff->value, + private string $resource = MethodQuery::RESOURCE_PAYMENTS, + private ?string $locale = null, + private ?Money $amount = null, + private ?string $billingCountry = null, + private ?array $includeWallets = null, + private ?array $orderLineCategories = null, + private ?string $profileId = null, + private ?bool $includeIssuers = null, + ) { + $this->middleware()->onResolved(function ($result) { + if ($this->filtersNullStatus && $result instanceof MethodCollection) { + return $result + ->filter(fn (Method $method) => $method->status !== null); + } + + return $result; + }, 'filter_null_status', MiddlewarePriority::LOW); + } + + public function withoutNullStatus(): self + { + $this->filtersNullStatus = true; + + return $this; + } + + public function withNullStatus(): self + { + $this->filtersNullStatus = false; + + return $this; + } + + protected function defaultQuery(): array + { + return [ + 'sequenceType' => $this->sequenceType, + 'resource' => $this->resource, + 'locale' => $this->locale, + 'amount' => $this->amount, + 'billingCountry' => $this->billingCountry, + 'includeWallets' => Arr::join($this->includeWallets ?? []), + 'orderLineCategories' => Arr::join($this->orderLineCategories ?? []), + 'profileId' => $this->profileId, + 'include' => $this->includeIssuers ? MethodQuery::INCLUDE_ISSUERS : null, + ]; + } + + public function resolveResourcePath(): string + { + return 'methods'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetInvoiceRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetInvoiceRequest.php new file mode 100644 index 0000000..8ad6327 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetInvoiceRequest.php @@ -0,0 +1,33 @@ + + */ +class GetInvoiceRequest extends ResourceHydratableRequest +{ + protected static string $method = Method::GET; + + protected ?string $hydratableResource = Invoice::class; + + public function __construct( + private string $id, + ) { + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return "invoices/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetMandateRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetMandateRequest.php new file mode 100644 index 0000000..d7f045c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetMandateRequest.php @@ -0,0 +1,38 @@ + + */ +class GetMandateRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Mandate::class; + + public function __construct( + private string $customerId, + private string $mandateId, + ) { + } + + public function resolveResourcePath(): string + { + return "customers/{$this->customerId}/mandates/{$this->mandateId}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetMethodRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetMethodRequest.php new file mode 100644 index 0000000..d517f3a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetMethodRequest.php @@ -0,0 +1,46 @@ + + */ +class GetMethodRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + protected static string $method = HttpMethod::GET; + + protected ?string $hydratableResource = Method::class; + + public function __construct( + private string $methodId, + private ?string $locale = null, + private ?string $currency = null, + private ?string $profileId = null, + private ?bool $includeIssuers = null, + ) { + } + + protected function defaultQuery(): array + { + return [ + 'locale' => $this->locale, + 'currency' => $this->currency, + 'profileId' => $this->profileId, + 'include' => $this->includeIssuers ? MethodQuery::INCLUDE_ISSUERS : null, + ]; + } + + public function resolveResourcePath(): string + { + return "methods/{$this->methodId}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetOnboardingStatusRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetOnboardingStatusRequest.php new file mode 100644 index 0000000..7a7e20f --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetOnboardingStatusRequest.php @@ -0,0 +1,23 @@ + + */ +class GetOnboardingStatusRequest extends ResourceHydratableRequest +{ + protected static string $method = Method::GET; + + protected ?string $hydratableResource = Onboarding::class; + + public function resolveResourcePath(): string + { + return 'onboarding/me'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetOrganizationPartnerStatusRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetOrganizationPartnerStatusRequest.php new file mode 100644 index 0000000..ac729d0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetOrganizationPartnerStatusRequest.php @@ -0,0 +1,23 @@ + + */ +class GetOrganizationPartnerStatusRequest extends ResourceHydratableRequest +{ + protected static string $method = Method::GET; + + protected ?string $hydratableResource = Partner::class; + + public function resolveResourcePath(): string + { + return 'organizations/me/partner'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetOrganizationRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetOrganizationRequest.php new file mode 100644 index 0000000..a8bd248 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetOrganizationRequest.php @@ -0,0 +1,31 @@ + + */ +class GetOrganizationRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + protected static string $method = Method::GET; + + protected ?string $hydratableResource = Organization::class; + + public function __construct( + private string $id, + ) { + } + + public function resolveResourcePath(): string + { + return "organizations/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedBalanceRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedBalanceRequest.php new file mode 100644 index 0000000..e436e36 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedBalanceRequest.php @@ -0,0 +1,25 @@ + + */ +class GetPaginatedBalanceRequest extends SortablePaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + protected ?string $hydratableResource = BalanceCollection::class; + + public function resolveResourcePath(): string + { + return 'balances'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedBalanceTransactionRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedBalanceTransactionRequest.php new file mode 100644 index 0000000..e6fb876 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedBalanceTransactionRequest.php @@ -0,0 +1,40 @@ + + */ +class GetPaginatedBalanceTransactionRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = BalanceTransactionCollection::class; + + private string $balanceId; + + public function __construct( + string $balanceId, + ?string $from = null, + ?int $limit = null + ) { + $this->balanceId = $balanceId; + + parent::__construct($from, $limit); + } + + public function resolveResourcePath(): string + { + return "balances/{$this->balanceId}/transactions"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedChargebacksRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedChargebacksRequest.php new file mode 100644 index 0000000..f162819 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedChargebacksRequest.php @@ -0,0 +1,42 @@ + + */ +class GetPaginatedChargebacksRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = ChargebackCollection::class; + + public function __construct( + ?string $from = null, + ?int $limit = null, + ?bool $includePayment = null, + ?string $profileId = null + ) { + parent::__construct($from, $limit); + + $this->query() + ->add('embed', $includePayment ? PaymentIncludesQuery::PAYMENT : null) + ->add('profileId', $profileId); + } + + public function resolveResourcePath(): string + { + return 'chargebacks'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedClientRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedClientRequest.php new file mode 100644 index 0000000..01c277d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedClientRequest.php @@ -0,0 +1,44 @@ + + */ +class GetPaginatedClientRequest extends PaginatedRequest implements IsIteratable +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = ClientCollection::class; + + public function __construct( + ?string $from = null, + ?int $limit = null, + ?bool $embedOrganization = null, + ?bool $embedOnboarding = null + ) { + parent::__construct($from, $limit); + + $this->query() + ->add('embed', Arr::join([ + $embedOrganization ? ClientQuery::EMBED_ORGANIZATION : null, + $embedOnboarding ? ClientQuery::EMBED_ONBOARDING : null, + ])); + } + + public function resolveResourcePath(): string + { + return 'clients'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedCustomerPaymentsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedCustomerPaymentsRequest.php new file mode 100644 index 0000000..449a698 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedCustomerPaymentsRequest.php @@ -0,0 +1,45 @@ + + */ +class GetPaginatedCustomerPaymentsRequest extends SortablePaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = PaymentCollection::class; + + private string $customerId; + + public function __construct( + string $customerId, + ?string $from = null, + ?int $limit = null, + ?string $sort = null, + ?string $profileId = null + ) { + $this->customerId = $customerId; + + parent::__construct($from, $limit, $sort); + + $this->query() + ->add('profileId', $profileId); + } + + public function resolveResourcePath(): string + { + return "customers/{$this->customerId}/payments"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedCustomerRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedCustomerRequest.php new file mode 100644 index 0000000..24d48f9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedCustomerRequest.php @@ -0,0 +1,25 @@ + + */ +class GetPaginatedCustomerRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + protected ?string $hydratableResource = CustomerCollection::class; + + public function resolveResourcePath(): string + { + return 'customers'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedInvoiceRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedInvoiceRequest.php new file mode 100644 index 0000000..dbd15fd --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedInvoiceRequest.php @@ -0,0 +1,40 @@ + + */ +class GetPaginatedInvoiceRequest extends PaginatedRequest implements IsIteratable +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = InvoiceCollection::class; + + public function __construct( + ?string $from = null, + ?int $limit = null, + ?string $reference = null, + ?string $year = null + ) { + parent::__construct($from, $limit); + + $this->query() + ->add('reference', $reference) + ->add('year', $year); + } + + public function resolveResourcePath(): string + { + return 'invoices'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedMandateRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedMandateRequest.php new file mode 100644 index 0000000..42adaed --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedMandateRequest.php @@ -0,0 +1,42 @@ + + */ +class GetPaginatedMandateRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = MandateCollection::class; + + private string $customerId; + + /** + * @param string[]|null $scopes Filter mandates by their scope. See \Mollie\Api\Types\MandateQuery. + */ + public function __construct(string $customerId, ?string $from = null, ?int $limit = null, ?array $scopes = null) + { + $this->customerId = $customerId; + + parent::__construct($from, $limit); + + $this->query()->add('scopes', $scopes); + } + + public function resolveResourcePath(): string + { + return "customers/{$this->customerId}/mandates"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentCapturesRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentCapturesRequest.php new file mode 100644 index 0000000..0adc901 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentCapturesRequest.php @@ -0,0 +1,45 @@ + + */ +class GetPaginatedPaymentCapturesRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = CaptureCollection::class; + + private string $paymentId; + + public function __construct(string $paymentId, ?string $from = null, ?int $limit = null, bool $includePayment = false) + { + $this->paymentId = $paymentId; + + parent::__construct($from, $limit); + + $this->query() + ->add('include', Arr::join($includePayment ? [PaymentIncludesQuery::PAYMENT] : [])); + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return "payments/{$this->paymentId}/captures"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentChargebacksRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentChargebacksRequest.php new file mode 100644 index 0000000..84b9e89 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentChargebacksRequest.php @@ -0,0 +1,41 @@ + + */ +class GetPaginatedPaymentChargebacksRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = ChargebackCollection::class; + + private string $paymentId; + + public function __construct(string $paymentId, ?string $from = null, ?int $limit = null, bool $includePayment = false) + { + $this->paymentId = $paymentId; + + parent::__construct($from, $limit); + + $this->query() + ->add('include', $includePayment ? PaymentIncludesQuery::PAYMENT : null); + } + + public function resolveResourcePath(): string + { + return "payments/{$this->paymentId}/chargebacks"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentLinkPaymentsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentLinkPaymentsRequest.php new file mode 100644 index 0000000..6441f44 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentLinkPaymentsRequest.php @@ -0,0 +1,40 @@ + + */ +class GetPaginatedPaymentLinkPaymentsRequest extends SortablePaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = PaymentCollection::class; + + private string $paymentLinkId; + + public function __construct(string $paymentLinkId, ?string $from = null, ?int $limit = null, ?string $sort = null) + { + $this->paymentLinkId = $paymentLinkId; + + parent::__construct($from, $limit, $sort); + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return "payment-links/{$this->paymentLinkId}/payments"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentLinksRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentLinksRequest.php new file mode 100644 index 0000000..1ea3886 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentLinksRequest.php @@ -0,0 +1,28 @@ + + */ +class GetPaginatedPaymentLinksRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = PaymentLinkCollection::class; + + public function resolveResourcePath(): string + { + return 'payment-links'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentRefundsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentRefundsRequest.php new file mode 100644 index 0000000..6d42a82 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentRefundsRequest.php @@ -0,0 +1,45 @@ + + */ +class GetPaginatedPaymentRefundsRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = RefundCollection::class; + + private string $paymentId; + + public function __construct( + string $paymentId, + ?string $from = null, + ?int $limit = null, + bool $includePayment = false + ) { + $this->paymentId = $paymentId; + + parent::__construct($from, $limit); + + $this->query() + ->add('include', $includePayment ? PaymentIncludesQuery::PAYMENT : null); + } + + public function resolveResourcePath(): string + { + return "payments/{$this->paymentId}/refunds"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentsRequest.php new file mode 100644 index 0000000..0fa50bb --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPaymentsRequest.php @@ -0,0 +1,31 @@ + + */ +class GetPaginatedPaymentsRequest extends SortablePaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = PaymentCollection::class; + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return 'payments'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPayoutsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPayoutsRequest.php new file mode 100644 index 0000000..3e5b722 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedPayoutsRequest.php @@ -0,0 +1,37 @@ +query()->add('balanceId', $balanceId); + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return 'payouts'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedProfilesRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedProfilesRequest.php new file mode 100644 index 0000000..79e8b4f --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedProfilesRequest.php @@ -0,0 +1,30 @@ + + */ +class GetPaginatedProfilesRequest extends PaginatedRequest implements IsIteratable +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = ProfileCollection::class; + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return 'profiles'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedRefundsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedRefundsRequest.php new file mode 100644 index 0000000..88a9cb8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedRefundsRequest.php @@ -0,0 +1,42 @@ + + */ +class GetPaginatedRefundsRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = RefundCollection::class; + + public function __construct( + ?string $from = null, + ?int $limit = null, + bool $embedPayment = false, + ?string $profileId = null + ) { + parent::__construct($from, $limit); + + $this->query() + ->add('embed', $embedPayment ? PaymentIncludesQuery::PAYMENT : null) + ->add('profileId', $profileId); + } + + public function resolveResourcePath(): string + { + return 'refunds'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSalesInvoicesRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSalesInvoicesRequest.php new file mode 100644 index 0000000..1709d6a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSalesInvoicesRequest.php @@ -0,0 +1,25 @@ + + */ +class GetPaginatedSalesInvoicesRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + protected ?string $hydratableResource = SalesInvoiceCollection::class; + + public function resolveResourcePath(): string + { + return 'sales-invoices'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementCapturesRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementCapturesRequest.php new file mode 100644 index 0000000..13feea7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementCapturesRequest.php @@ -0,0 +1,49 @@ + + */ +class GetPaginatedSettlementCapturesRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = CaptureCollection::class; + + private string $settlementId; + + public function __construct( + string $settlementId, + ?string $from = null, + ?int $limit = null, + bool $includePayment = false + ) { + $this->settlementId = $settlementId; + + parent::__construct($from, $limit); + + $this->query() + ->add('embed', Arr::join($includePayment ? [PaymentIncludesQuery::PAYMENT] : [])); + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return "settlements/{$this->settlementId}/captures"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementChargebacksRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementChargebacksRequest.php new file mode 100644 index 0000000..2cac9e0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementChargebacksRequest.php @@ -0,0 +1,33 @@ +settlementId = $settlementId; + + parent::__construct($from, $limit, $includePayment, $profileId); + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return "settlements/{$this->settlementId}/chargebacks"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementPaymentsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementPaymentsRequest.php new file mode 100644 index 0000000..9cc64ba --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementPaymentsRequest.php @@ -0,0 +1,40 @@ + + */ +class GetPaginatedSettlementPaymentsRequest extends SortablePaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = PaymentCollection::class; + + private string $settlementId; + + public function __construct(string $settlementId, ?string $from = null, ?int $limit = null, ?string $sort = null) + { + $this->settlementId = $settlementId; + + parent::__construct($from, $limit, $sort); + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return "settlements/{$this->settlementId}/payments"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementRefundsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementRefundsRequest.php new file mode 100644 index 0000000..aa090fa --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementRefundsRequest.php @@ -0,0 +1,48 @@ + + */ +class GetPaginatedSettlementRefundsRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = RefundCollection::class; + + private string $settlementId; + + public function __construct( + string $settlementId, + ?string $from = null, + ?int $limit = null, + bool $includePayment = false + ) { + $this->settlementId = $settlementId; + + parent::__construct($from, $limit); + + $this->query() + ->add('embed', $includePayment ? PaymentIncludesQuery::PAYMENT : null); + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return "settlements/{$this->settlementId}/refunds"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementsRequest.php new file mode 100644 index 0000000..540ac6a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSettlementsRequest.php @@ -0,0 +1,47 @@ + + */ +class GetPaginatedSettlementsRequest extends PaginatedRequest implements IsIteratable +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = SettlementCollection::class; + + public function __construct( + ?string $from = null, + ?int $limit = null, + ?string $balanceId = null, + ?string $year = null, + ?string $month = null, + ?string $currencies = null + ) { + parent::__construct($from, $limit); + + $this->query() + ->add('balanceId', $balanceId) + ->add('year', $year) + ->add('month', $month) + ->add('currencies', $currencies); + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return 'settlements'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSubscriptionPaymentsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSubscriptionPaymentsRequest.php new file mode 100644 index 0000000..fc03427 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSubscriptionPaymentsRequest.php @@ -0,0 +1,43 @@ + + */ +class GetPaginatedSubscriptionPaymentsRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = PaymentCollection::class; + + private string $customerId; + + private string $subscriptionId; + + public function __construct(string $customerId, string $subscriptionId, ?string $from = null, ?int $limit = null) + { + $this->customerId = $customerId; + $this->subscriptionId = $subscriptionId; + + parent::__construct($from, $limit); + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "customers/{$this->customerId}/subscriptions/{$this->subscriptionId}/payments"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSubscriptionsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSubscriptionsRequest.php new file mode 100644 index 0000000..b301391 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedSubscriptionsRequest.php @@ -0,0 +1,40 @@ + + */ +class GetPaginatedSubscriptionsRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = SubscriptionCollection::class; + + private string $customerId; + + public function __construct(string $customerId, ?string $from = null, ?int $limit = null) + { + $this->customerId = $customerId; + + parent::__construct($from, $limit); + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "customers/{$this->customerId}/subscriptions"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedTerminalPairingCodesRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedTerminalPairingCodesRequest.php new file mode 100644 index 0000000..253b313 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedTerminalPairingCodesRequest.php @@ -0,0 +1,37 @@ +profileId = $profileId; + + $this->query()->add('profileId', $this->profileId); + } + + public function resolveResourcePath(): string + { + return 'terminals/pairing-codes'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedTerminalsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedTerminalsRequest.php new file mode 100644 index 0000000..7bd5307 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedTerminalsRequest.php @@ -0,0 +1,28 @@ + + */ +class GetPaginatedTerminalsRequest extends PaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = TerminalCollection::class; + + public function resolveResourcePath(): string + { + return 'terminals'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedWebhooksRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedWebhooksRequest.php new file mode 100644 index 0000000..d445577 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaginatedWebhooksRequest.php @@ -0,0 +1,53 @@ + + */ +class GetPaginatedWebhooksRequest extends SortablePaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = WebhookCollection::class; + + /** + * @param string|array|null $eventTypes + */ + public function __construct( + ?string $from = null, + ?int $limit = null, + ?string $sort = null, + $eventTypes = null + ) { + parent::__construct($from, $limit, $sort); + + $this + ->query() + ->add( + 'eventTypes', + is_string($eventTypes) + ? $eventTypes + : Arr::join($eventTypes ?? []) + ); + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return 'webhooks'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentCaptureRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentCaptureRequest.php new file mode 100644 index 0000000..10309ae --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentCaptureRequest.php @@ -0,0 +1,48 @@ + + */ +class GetPaymentCaptureRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Capture::class; + + public function __construct( + private string $paymentId, + private string $captureId, + private bool $embedPayment = false, + ) { + } + + protected function defaultQuery(): array + { + return [ + 'embed' => Arr::join($this->embedPayment ? [PaymentIncludesQuery::PAYMENT] : []), + ]; + } + + public function resolveResourcePath(): string + { + return "payments/{$this->paymentId}/captures/{$this->captureId}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentChargebackRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentChargebackRequest.php new file mode 100644 index 0000000..e784ce6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentChargebackRequest.php @@ -0,0 +1,47 @@ + + */ +class GetPaymentChargebackRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Chargeback::class; + + public function __construct( + private string $paymentId, + private string $chargebackId, + private bool $includePayment = false, + ) { + } + + protected function defaultQuery(): array + { + return [ + 'include' => $this->includePayment ? PaymentIncludesQuery::PAYMENT : null, + ]; + } + + public function resolveResourcePath(): string + { + return "payments/{$this->paymentId}/chargebacks/{$this->chargebackId}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentLinkRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentLinkRequest.php new file mode 100644 index 0000000..f077dc2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentLinkRequest.php @@ -0,0 +1,40 @@ + + */ +class GetPaymentLinkRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = PaymentLink::class; + + public function __construct( + private string $id, + ) { + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return "payment-links/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentRefundRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentRefundRequest.php new file mode 100644 index 0000000..ab12733 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentRefundRequest.php @@ -0,0 +1,50 @@ + + */ +class GetPaymentRefundRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Refund::class; + + public function __construct( + private string $paymentId, + private string $refundId, + private bool $includePayment = false, + ) { + } + + protected function defaultQuery(): array + { + return [ + 'include' => $this->includePayment ? PaymentIncludesQuery::PAYMENT : null, + ]; + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return "payments/{$this->paymentId}/refunds/{$this->refundId}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentRequest.php new file mode 100644 index 0000000..f09622b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPaymentRequest.php @@ -0,0 +1,62 @@ + + */ +class GetPaymentRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Payment::class; + + public function __construct( + private string $id, + private bool $embedCaptures = false, + private bool $embedRefunds = false, + private bool $embedChargebacks = false, + private bool $includeQrCode = false, + private bool $includeRemainderDetails = false, + ) { + } + + protected function defaultQuery(): array + { + return [ + 'embed' => Arr::join([ + $this->embedCaptures ? PaymentQuery::EMBED_CAPTURES : null, + $this->embedRefunds ? PaymentQuery::EMBED_REFUNDS : null, + $this->embedChargebacks ? PaymentQuery::EMBED_CHARGEBACKS : null, + ]), + 'include' => Arr::join([ + $this->includeQrCode ? PaymentQuery::INCLUDE_QR_CODE : null, + $this->includeRemainderDetails ? PaymentQuery::INCLUDE_REMAINDER_DETAILS : null, + ]), + ]; + } + + /** + * Resolve the resource path. + */ + public function resolveResourcePath(): string + { + return "payments/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPayoutRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPayoutRequest.php new file mode 100644 index 0000000..d9439f9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPayoutRequest.php @@ -0,0 +1,38 @@ + + */ +class GetPayoutRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Payout::class; + + private string $id; + + public function __construct(string $id) + { + $this->id = $id; + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "payouts/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetPermissionRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPermissionRequest.php new file mode 100644 index 0000000..1a7c26e --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetPermissionRequest.php @@ -0,0 +1,34 @@ + + */ +class GetPermissionRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Permission::class; + + public function __construct( + private string $id, + ) { + } + + public function resolveResourcePath(): string + { + return "permissions/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetProfileRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetProfileRequest.php new file mode 100644 index 0000000..a16fd80 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetProfileRequest.php @@ -0,0 +1,34 @@ + + */ +class GetProfileRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Profile::class; + + public function __construct( + private string $id, + ) { + } + + public function resolveResourcePath(): string + { + return "profiles/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetSalesInvoiceRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetSalesInvoiceRequest.php new file mode 100644 index 0000000..d0627ac --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetSalesInvoiceRequest.php @@ -0,0 +1,37 @@ + + */ +class GetSalesInvoiceRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = SalesInvoice::class; + + public function __construct( + private string $id, + ) { + } + + public function resolveResourcePath(): string + { + return "sales-invoices/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetSessionRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetSessionRequest.php new file mode 100644 index 0000000..9c899bd --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetSessionRequest.php @@ -0,0 +1,28 @@ + + */ +class GetSessionRequest extends ResourceHydratableRequest +{ + protected static string $method = Method::GET; + + protected ?string $hydratableResource = Session::class; + + public function __construct( + private string $id, + ) { + } + + public function resolveResourcePath(): string + { + return 'sessions/'.$this->id; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetSettlementRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetSettlementRequest.php new file mode 100644 index 0000000..59494b7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetSettlementRequest.php @@ -0,0 +1,30 @@ + + */ +class GetSettlementRequest extends ResourceHydratableRequest +{ + protected static string $method = Method::GET; + + protected ?string $hydratableResource = Settlement::class; + + public function __construct( + private string $id, + ) { + } + + public function resolveResourcePath(): string + { + return "settlements/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetSubscriptionRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetSubscriptionRequest.php new file mode 100644 index 0000000..4d72a0a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetSubscriptionRequest.php @@ -0,0 +1,38 @@ + + */ +class GetSubscriptionRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Subscription::class; + + public function __construct( + private string $customerId, + private string $id, + ) { + } + + public function resolveResourcePath(): string + { + return "customers/{$this->customerId}/subscriptions/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetTerminalPairingCodeRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetTerminalPairingCodeRequest.php new file mode 100644 index 0000000..84950e6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetTerminalPairingCodeRequest.php @@ -0,0 +1,41 @@ + + */ +class GetTerminalPairingCodeRequest extends ResourceHydratableRequest +{ + protected static string $method = Method::GET; + + protected ?string $hydratableResource = TerminalPairingCode::class; + + private string $id; + + private bool $includeQrCode; + + public function __construct(string $id, bool $includeQrCode = false) + { + $this->id = $id; + $this->includeQrCode = $includeQrCode; + } + + protected function defaultQuery(): array + { + return [ + 'include' => $this->includeQrCode ? TerminalPairingCodeQuery::INCLUDE_QR_CODE : null, + ]; + } + + public function resolveResourcePath(): string + { + return "terminals/pairing-codes/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetTerminalRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetTerminalRequest.php new file mode 100644 index 0000000..aa51be0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetTerminalRequest.php @@ -0,0 +1,37 @@ + + */ +class GetTerminalRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Terminal::class; + + public function __construct( + private string $id, + ) { + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "terminals/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetWebhookEventRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetWebhookEventRequest.php new file mode 100644 index 0000000..93d0f58 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetWebhookEventRequest.php @@ -0,0 +1,39 @@ + + */ +class GetWebhookEventRequest extends ResourceHydratableRequest +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = WebhookEvent::class; + + public function __construct( + private string $id, + ) { + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "events/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/GetWebhookRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/GetWebhookRequest.php new file mode 100644 index 0000000..d11c038 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/GetWebhookRequest.php @@ -0,0 +1,40 @@ + + */ +class GetWebhookRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Webhook::class; + + public function __construct( + private string $id, + ) { + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "webhooks/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/ListCapabilitiesRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/ListCapabilitiesRequest.php new file mode 100644 index 0000000..3954567 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/ListCapabilitiesRequest.php @@ -0,0 +1,28 @@ + + */ +class ListCapabilitiesRequest extends ResourceHydratableRequest +{ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = CapabilityCollection::class; + + public function resolveResourcePath(): string + { + return 'capabilities'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/ListConnectBalanceTransfersRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/ListConnectBalanceTransfersRequest.php new file mode 100644 index 0000000..87f8994 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/ListConnectBalanceTransfersRequest.php @@ -0,0 +1,31 @@ + + */ +class ListConnectBalanceTransfersRequest extends SortablePaginatedRequest implements IsIteratable, SupportsTestmodeInQuery +{ + use IsIteratableRequest; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = ConnectBalanceTransferCollection::class; + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return 'connect/balance-transfers'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/ListPaymentRoutesRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/ListPaymentRoutesRequest.php new file mode 100644 index 0000000..cdea47c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/ListPaymentRoutesRequest.php @@ -0,0 +1,32 @@ + + */ +class ListPaymentRoutesRequest extends ResourceHydratableRequest implements SupportsTestmodeInQuery +{ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = RouteCollection::class; + + public function __construct( + private string $paymentId, + ) { + } + + public function resolveResourcePath(): string + { + return "payments/{$this->paymentId}/routes"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/ListPermissionsRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/ListPermissionsRequest.php new file mode 100644 index 0000000..fce7dc6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/ListPermissionsRequest.php @@ -0,0 +1,28 @@ + + */ +class ListPermissionsRequest extends ResourceHydratableRequest +{ + protected static string $method = Method::GET; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = PermissionCollection::class; + + public function resolveResourcePath(): string + { + return 'permissions'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/PaginatedRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/PaginatedRequest.php new file mode 100644 index 0000000..ba199cb --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/PaginatedRequest.php @@ -0,0 +1,34 @@ + + */ +abstract class PaginatedRequest extends ResourceHydratableRequest +{ + /** + * Define the HTTP method. + */ + protected static string $method = Method::GET; + + public function __construct( + private ?string $from = null, + private ?int $limit = null, + ) { + } + + protected function defaultQuery(): array + { + return [ + 'from' => $this->from, + 'limit' => $this->limit, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/ReleasePaymentAuthorizationRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/ReleasePaymentAuthorizationRequest.php new file mode 100644 index 0000000..6e3b05a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/ReleasePaymentAuthorizationRequest.php @@ -0,0 +1,26 @@ +paymentId.'/release-authorization'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/RequestTerminalPairingCodeRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/RequestTerminalPairingCodeRequest.php new file mode 100644 index 0000000..0a9e17a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/RequestTerminalPairingCodeRequest.php @@ -0,0 +1,52 @@ + + */ +class RequestTerminalPairingCodeRequest extends ResourceHydratableRequest implements HasPayload +{ + use HasJsonPayload; + + protected static string $method = Method::POST; + + protected ?string $hydratableResource = TerminalPairingCode::class; + + private string $profileId; + + private bool $includeQrCode; + + public function __construct(string $profileId, bool $includeQrCode = false) + { + $this->profileId = $profileId; + $this->includeQrCode = $includeQrCode; + } + + protected function defaultQuery(): array + { + return [ + 'include' => $this->includeQrCode ? TerminalPairingCodeQuery::INCLUDE_QR_CODE : null, + ]; + } + + protected function defaultPayload(): array + { + return [ + 'profileId' => $this->profileId, + ]; + } + + public function resolveResourcePath(): string + { + return 'terminals/pairing-codes'; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/ResourceHydratableRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/ResourceHydratableRequest.php new file mode 100644 index 0000000..32ad52d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/ResourceHydratableRequest.php @@ -0,0 +1,153 @@ +|null + */ + protected ?string $hydratableResource = null; + + protected ?WrapperResource $resourceWrapper = null; + + /** + * Determine if the request is hydratable. + */ + public function isHydratable(): bool + { + return $this->hydratableResource !== null || $this->resourceWrapper !== null; + } + + /** + * @return string|WrapperResource + */ + public function getHydratableResource() + { + if (! $this->isHydratable()) { + throw new \RuntimeException('Resource class is not set.'); + } + + return $this->resourceWrapper ?? $this->hydratableResource; + } + + /** + * String targets are validated before becoming the canonical target. + * + * Prefer {@see hydrateInto()} and {@see wrapInto()}: this overload keeps the + * request's original `TResource`, so static analysis cannot see a wrapper + * or re-targeted class through {@see \Mollie\Api\MollieApiClient::send()}. + */ + public function setHydratableResource(string|WrapperResource $hydratableResource): self + { + if ($hydratableResource instanceof WrapperResource) { + $this->resourceWrapper = $hydratableResource; + + return $this; + } + + self::ensureValidHydrationTarget($hydratableResource); + $this->hydratableResource = $hydratableResource; + + return $this; + } + + /** + * Hydrate into a different canonical resource or collection class. + * + * Call request-specific fluent setters before this method: after it, static + * analysers see the request as `ResourceHydratableRequest`. + * Call this before {@see wrapInto()}: calling it on an already-wrapped request + * re-targets the static generic while runtime preserves the wrapper. + * + * @template THydrated of BaseResource|ResourceCollection + * + * @param class-string $target + * + * @phpstan-self-out ResourceHydratableRequest + * @psalm-this-out ResourceHydratableRequest + * + * @return $this + */ + public function hydrateInto(string $target): static + { + self::ensureValidHydrationTarget($target); + $this->hydratableResource = $target; + + return $this; + } + + /** + * Decorate the resolved result with a wrapper class implementing {@see IsWrapper}. + * + * The wrapper is what `send()` returns, so call this last in a fluent chain. + * + * @template TWrapper of IsWrapper + * + * @param class-string $wrapper + * + * @phpstan-self-out ResourceHydratableRequest + * @psalm-this-out ResourceHydratableRequest + * + * @return $this + */ + public function wrapInto(string $wrapper): static + { + $this->resourceWrapper = new WrapperResource($wrapper); + + return $this; + } + + /** + * @internal Used by the resource resolver during response hydration. + * + * @return class-string|null + */ + public function getHydratableResourceTarget(): ?string + { + return $this->hydratableResource; + } + + /** + * @internal Used by the resource resolver during response hydration. + */ + public function getHydratableResourceWrapper(): ?WrapperResource + { + return $this->resourceWrapper; + } + + /** + * @deprecated This compatibility alias clears only wrapper decoration. + */ + public function resetHydratableResource(): self + { + $this->resourceWrapper = null; + + return $this; + } + + /** + * @phpstan-assert class-string $target + */ + private static function ensureValidHydrationTarget(string $target): void + { + if (! is_subclass_of($target, BaseResource::class) && ! is_subclass_of($target, ResourceCollection::class)) { + throw new \InvalidArgumentException( + "Hydratable resource class '{$target}' must extend ".BaseResource::class.' or '.ResourceCollection::class.'.' + ); + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/RevokeMandateRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/RevokeMandateRequest.php new file mode 100644 index 0000000..85e670e --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/RevokeMandateRequest.php @@ -0,0 +1,34 @@ +customerId}/mandates/{$this->mandateId}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/RevokeTerminalPairingCodeRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/RevokeTerminalPairingCodeRequest.php new file mode 100644 index 0000000..9de22c0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/RevokeTerminalPairingCodeRequest.php @@ -0,0 +1,30 @@ + + */ +class RevokeTerminalPairingCodeRequest extends ResourceHydratableRequest +{ + protected static string $method = Method::DELETE; + + protected ?string $hydratableResource = TerminalPairingCode::class; + + private string $id; + + public function __construct(string $id) + { + $this->id = $id; + } + + public function resolveResourcePath(): string + { + return "terminals/pairing-codes/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/SortablePaginatedRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/SortablePaginatedRequest.php new file mode 100644 index 0000000..c95968b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/SortablePaginatedRequest.php @@ -0,0 +1,23 @@ + + */ +abstract class SortablePaginatedRequest extends PaginatedRequest +{ + public function __construct( + ?string $from = null, + ?int $limit = null, + ?string $sort = null + ) { + parent::__construct($from, $limit); + + $this->query()->add('sort', $sort); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/TestWebhookRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/TestWebhookRequest.php new file mode 100644 index 0000000..1f43fe6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/TestWebhookRequest.php @@ -0,0 +1,43 @@ + + */ +class TestWebhookRequest extends ResourceHydratableRequest implements SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::POST; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = AnyResource::class; + + public function __construct( + private string $id, + ) { + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "webhooks/{$this->id}/ping"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateCustomerRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateCustomerRequest.php new file mode 100644 index 0000000..5b27724 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateCustomerRequest.php @@ -0,0 +1,51 @@ + + */ +class UpdateCustomerRequest extends ResourceHydratableRequest implements HasPayload +{ + use HasJsonPayload; + + protected static string $method = Method::PATCH; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Customer::class; + + public function __construct( + private string $id, + private ?string $name = null, + private ?string $email = null, + private ?string $locale = null, + private ?array $metadata = null, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'name' => $this->name, + 'email' => $this->email, + 'locale' => $this->locale, + 'metadata' => $this->metadata, + ]; + } + + public function resolveResourcePath(): string + { + return "customers/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/UpdatePaymentLinkRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdatePaymentLinkRequest.php new file mode 100644 index 0000000..a4f0c7b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdatePaymentLinkRequest.php @@ -0,0 +1,61 @@ + + */ +class UpdatePaymentLinkRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + protected static string $method = Method::PATCH; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = PaymentLink::class; + + public function __construct( + private string $id, + private string $description, + private bool $archived = false, + private ?array $allowedMethods = null, + private ?DataCollection $lines = null, + private ?Address $billingAddress = null, + private ?Address $shippingAddress = null, + private ?Money $minimumAmount = null, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'description' => $this->description, + 'archived' => $this->archived, + 'allowedMethods' => $this->allowedMethods, + 'minimumAmount' => $this->minimumAmount, + 'lines' => $this->lines, + 'billingAddress' => $this->billingAddress, + 'shippingAddress' => $this->shippingAddress, + ]; + } + + public function resolveResourcePath(): string + { + return "payment-links/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/UpdatePaymentRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdatePaymentRequest.php new file mode 100644 index 0000000..b8e0d19 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdatePaymentRequest.php @@ -0,0 +1,64 @@ + + */ +class UpdatePaymentRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + protected static string $method = Method::PATCH; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Payment::class; + + private ?string $paymentMethod; + + public function __construct( + private string $id, + private ?string $description = null, + private ?string $redirectUrl = null, + private ?string $cancelUrl = null, + private ?string $webhookUrl = null, + private ?array $metadata = null, + ?string $method = null, + private ?string $locale = null, + private ?string $restrictPaymentMethodsToCountry = null, + private array $additional = [], + ) { + $this->paymentMethod = $method; + } + + protected function defaultPayload(): array + { + return array_merge([ + 'description' => $this->description, + 'redirectUrl' => $this->redirectUrl, + 'cancelUrl' => $this->cancelUrl, + 'webhookUrl' => $this->webhookUrl, + 'metadata' => $this->metadata, + 'method' => $this->paymentMethod, + 'locale' => $this->locale, + 'restrictPaymentMethodsToCountry' => $this->restrictPaymentMethodsToCountry, + ], $this->additional); + } + + public function resolveResourcePath(): string + { + return "payments/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/UpdatePaymentRouteRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdatePaymentRouteRequest.php new file mode 100644 index 0000000..d58e5c2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdatePaymentRouteRequest.php @@ -0,0 +1,53 @@ + + */ +class UpdatePaymentRouteRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * The HTTP method. + */ + protected static string $method = Method::PATCH; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Route::class; + + /** + * @param DateTimeInterface|Date $releaseDate + */ + public function __construct( + private string $paymentId, + private string $routeId, + private $releaseDate, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'releaseDate' => $this->releaseDate, + ]; + } + + public function resolveResourcePath(): string + { + return "payments/{$this->paymentId}/routes/{$this->routeId}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateProfileRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateProfileRequest.php new file mode 100644 index 0000000..dd29777 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateProfileRequest.php @@ -0,0 +1,59 @@ + + */ +class UpdateProfileRequest extends ResourceHydratableRequest implements HasPayload +{ + use HasJsonPayload; + + protected static string $method = Method::PATCH; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Profile::class; + + public function __construct( + private string $id, + private ?string $name = null, + private ?string $website = null, + private ?string $email = null, + private ?string $phone = null, + private ?string $description = null, + private ?array $countriesOfActivity = null, + private ?string $businessCategory = null, + private ?string $mode = null, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'name' => $this->name, + 'website' => $this->website, + 'email' => $this->email, + 'phone' => $this->phone, + 'description' => $this->description, + 'countriesOfActivity' => $this->countriesOfActivity, + 'businessCategory' => $this->businessCategory, + 'mode' => $this->mode, + ]; + } + + public function resolveResourcePath(): string + { + return "profiles/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateSalesInvoiceRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateSalesInvoiceRequest.php new file mode 100644 index 0000000..3c96c4d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateSalesInvoiceRequest.php @@ -0,0 +1,66 @@ + + */ +class UpdateSalesInvoiceRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + protected static string $method = Method::PATCH; + + protected ?string $hydratableResource = SalesInvoice::class; + + public function __construct( + private string $id, + private ?string $status = null, + private ?string $recipientIdentifier = null, + private ?string $memo = null, + private ?string $paymentTerm = null, + private ?PaymentDetails $paymentDetails = null, + private ?EmailDetails $emailDetails = null, + private ?Recipient $recipient = null, + private ?DataCollection $lines = null, + private ?string $webhookUrl = null, + private ?Discount $discount = null, + private ?bool $isEInvoice = null, + ) { + } + + public function defaultPayload(): array + { + return [ + 'status' => $this->status, + 'recipientIdentifier' => $this->recipientIdentifier, + 'memo' => $this->memo, + 'paymentTerm' => $this->paymentTerm, + 'paymentDetails' => $this->paymentDetails, + 'emailDetails' => $this->emailDetails, + 'recipient' => $this->recipient, + 'lines' => $this->lines, + 'webhookUrl' => $this->webhookUrl, + 'discount' => $this->discount, + 'isEInvoice' => $this->isEInvoice, + ]; + } + + public function resolveResourcePath(): string + { + return "sales-invoices/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateSubscriptionRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateSubscriptionRequest.php new file mode 100644 index 0000000..0e03daf --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateSubscriptionRequest.php @@ -0,0 +1,73 @@ + + */ +class UpdateSubscriptionRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::PATCH; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Subscription::class; + + /** + * @param Date|DateTimeInterface|null $startDate + */ + public function __construct( + private string $customerId, + private string $subscriptionId, + private ?Money $amount = null, + private ?string $description = null, + private ?string $interval = null, + private $startDate = null, + private ?int $times = null, + private ?array $metadata = null, + private ?string $webhookUrl = null, + private ?string $mandateId = null, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'amount' => $this->amount, + 'description' => $this->description, + 'interval' => $this->interval, + 'startDate' => $this->startDate, + 'times' => $this->times, + 'metadata' => $this->metadata, + 'webhookUrl' => $this->webhookUrl, + 'mandateId' => $this->mandateId, + ]; + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "customers/{$this->customerId}/subscriptions/{$this->subscriptionId}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateWebhookRequest.php b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateWebhookRequest.php new file mode 100644 index 0000000..4ba2b56 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Requests/UpdateWebhookRequest.php @@ -0,0 +1,61 @@ + + */ +class UpdateWebhookRequest extends ResourceHydratableRequest implements HasPayload, SupportsTestmodeInPayload +{ + use HasJsonPayload; + + /** + * Define the HTTP method. + */ + protected static string $method = Method::PATCH; + + /** + * The resource class the request should be casted to. + */ + protected ?string $hydratableResource = Webhook::class; + + public function __construct( + private string $id, + private $url, + private $name, + private $eventTypes, + ) { + } + + protected function defaultPayload(): array + { + return [ + 'url' => $this->url, + 'name' => $this->name, + 'eventTypes' => Utility::transform( + $this->eventTypes, + fn ($eventTypes) => is_string($eventTypes) ? $eventTypes : Arr::join($eventTypes), + ), + ]; + } + + /** + * The resource path. + */ + public function resolveResourcePath(): string + { + return "webhooks/{$this->id}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/Response.php b/vendor/mollie/mollie-api-php/src/Http/Response.php new file mode 100644 index 0000000..831a863 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/Response.php @@ -0,0 +1,184 @@ +psrResponse = $psrResponse; + $this->psrRequest = $psrRequest; + $this->pendingRequest = $pendingRequest; + $this->senderException = $senderException; + } + + /** + * Get the JSON decoded body of the response as an array or scalar value. + */ + public function json(): stdClass + { + if (! $this->decoded) { + $this->decoded = $this->decodeJson(); + } + + return $this->decoded; + } + + private function decodeJson(): stdClass + { + $decoded = json_decode($body = $this->body() ?: '{}'); + + if (json_last_error() !== JSON_ERROR_NONE) { + throw new JsonParseException("Invalid JSON response from Mollie: '{$body}'.", $body); + } + + return $decoded; + } + + public function getConnector(): Connector + { + return $this->pendingRequest->getConnector(); + } + + public function getPendingRequest(): PendingRequest + { + return $this->pendingRequest; + } + + public function getRequest(): Request + { + return $this->pendingRequest->getRequest(); + } + + public function getPsrRequest(): RequestInterface + { + return $this->psrRequest; + } + + public function getPsrResponse(): ResponseInterface + { + return $this->psrResponse; + } + + public function getSenderException(): ?Throwable + { + return $this->senderException; + } + + /** + * Get the body of the response as string. + */ + public function body(): string + { + $stream = $this->stream(); + + $contents = $stream->getContents(); + + if ($stream->isSeekable()) { + $stream->rewind(); + } + + return $contents; + } + + /** + * Get the body as a stream. + */ + public function stream(): StreamInterface + { + $stream = $this->psrResponse->getBody(); + + if ($stream->isSeekable()) { + $stream->rewind(); + } + + return $stream; + } + + public function status(): int + { + return $this->psrResponse->getStatusCode(); + } + + /** + * Get the first value for a response header, or null if missing. + */ + public function header(string $name): ?string + { + if (! $this->psrResponse->hasHeader($name)) { + return null; + } + + $value = $this->psrResponse->getHeaderLine($name); + + return $value === '' ? null : $value; + } + + /** + * Parse rate-limit state from this response. + * + * API exceptions retain their response, so 429 details are also available via + * $exception->getResponse()->rateLimit(). + */ + public function rateLimit(): ?RateLimit + { + return RateLimit::fromHeaders( + $this->header('RateLimit'), + $this->header('RateLimit-Policy'), + ); + } + + /** + * Get all response headers as a map of name => list of values. + * + * @return array> + */ + public function headers(): array + { + return $this->psrResponse->getHeaders(); + } + + public function successful(): bool + { + return $this->status() >= 200 && $this->status() < 300; + } + + public function isUnprocessable(): bool + { + return $this->status() === ResponseStatusCode::HTTP_UNPROCESSABLE_ENTITY; + } + + public function isEmpty(): bool + { + return empty($this->body()); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Http/ResponseStatusCode.php b/vendor/mollie/mollie-api-php/src/Http/ResponseStatusCode.php new file mode 100644 index 0000000..078ec90 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Http/ResponseStatusCode.php @@ -0,0 +1,134 @@ +length = $length; + } + + /** + * @throws \Mollie\Api\Exceptions\IncompatiblePlatformException + */ + public function generate(): string + { + $length = $this->length; + + $string = ''; + + while (($len = strlen($string)) < $length) { + $size = $length - $len; + + try { + $bytes = random_bytes($size); + } catch (\Exception $e) { + throw new IncompatiblePlatformException( + 'PHP function random_bytes missing. Consider overriding the DefaultIdempotencyKeyGenerator with your own.', + IncompatiblePlatformException::INCOMPATIBLE_RANDOM_BYTES_FUNCTION + ); + } + + $string .= substr(str_replace(['/', '+', '='], '', base64_encode($bytes)), 0, $size); + } + + return $string; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Idempotency/FakeIdempotencyKeyGenerator.php b/vendor/mollie/mollie-api-php/src/Idempotency/FakeIdempotencyKeyGenerator.php new file mode 100644 index 0000000..fa9a458 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Idempotency/FakeIdempotencyKeyGenerator.php @@ -0,0 +1,22 @@ +fakeKey = $fakeKey; + } + + public function generate(): string + { + return $this->fakeKey; + } +} diff --git a/vendor/mollie/mollie-api-php/src/MollieApiClient.php b/vendor/mollie/mollie-api-php/src/MollieApiClient.php new file mode 100644 index 0000000..59bb562 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/MollieApiClient.php @@ -0,0 +1,216 @@ +payments->get('tr_xxx') + * @example $client->customers->create(['name' => 'John Doe']) + * + * @property BalanceEndpointCollection $balances + * @property BalanceReportEndpointCollection $balanceReports + * @property BalanceTransactionEndpointCollection $balanceTransactions + * @property ChargebackEndpointCollection $chargebacks + * @property CapabilityEndpointCollection $capabilities + * @property ClientEndpointCollection $clients + * @property ClientLinkEndpointCollection $clientLinks + * @property ConnectBalanceTransferEndpointCollection $connectBalanceTransfers + * @property CustomerPaymentsEndpointCollection $customerPayments + * @property CustomerEndpointCollection $customers + * @property InvoiceEndpointCollection $invoices + * @property MandateEndpointCollection $mandates + * @property MethodEndpointCollection $methods + * @property MethodIssuerEndpointCollection $methodIssuers + * @property OnboardingEndpointCollection $onboarding + * @property OrganizationEndpointCollection $organizations + * @property OrganizationPartnerEndpointCollection $organizationPartners + * @property PaymentEndpointCollection $payments + * @property PaymentCaptureEndpointCollection $paymentCaptures + * @property PaymentChargebackEndpointCollection $paymentChargebacks + * @property PaymentLinkEndpointCollection $paymentLinks + * @property PaymentLinkPaymentEndpointCollection $paymentLinkPayments + * @property PaymentRefundEndpointCollection $paymentRefunds + * @property PaymentRouteEndpointCollection $paymentRoutes + * @property PermissionEndpointCollection $permissions + * @property PayoutEndpointCollection $payouts + * @property ProfileEndpointCollection $profiles + * @property ProfileMethodEndpointCollection $profileMethods + * @property RefundEndpointCollection $refunds + * @property SalesInvoiceEndpointCollection $salesInvoices + * @property SessionEndpointCollection $sessions + * @property SettlementCaptureEndpointCollection $settlementCaptures + * @property SettlementChargebackEndpointCollection $settlementChargebacks + * @property SettlementEndpointCollection $settlements + * @property SettlementPaymentEndpointCollection $settlementPayments + * @property SettlementRefundEndpointCollection $settlementRefunds + * @property SubscriptionEndpointCollection $subscriptions + * @property SubscriptionPaymentEndpointCollection $subscriptionPayments + * @property TerminalEndpointCollection $terminals + * @property TerminalPairingCodeEndpointCollection $terminalPairingCodes + * @property WalletEndpointCollection $wallets + * @property WebhookEndpointCollection $webhooks + * @property WebhookEventEndpointCollection $webhookEvents + * @property HttpAdapterContract $httpClient + */ +class MollieApiClient implements Connector +{ + use HandlesAuthentication; + use HandlesDebugging; + use HandlesIdempotency; + use HandlesTestmode; + use HandlesVersions; + use HasEndpoints; + use HasMiddleware; + use HasRequestProperties; + use Initializable; + use SendsRequests; + + /** + * Version of our client. + */ + public const CLIENT_VERSION = '4.0.0'; + + /** + * Endpoint of the remote API. + */ + public const API_ENDPOINT = 'https://api.mollie.com'; + + /** + * Version of the remote API. + */ + public const API_VERSION = 'v2'; + + /** + * Http client used to perform requests. + */ + protected HttpAdapterContract $httpClient; + + /** + * @param \GuzzleHttp\ClientInterface|\Mollie\Api\Contracts\HttpAdapterContract|null $client + * + * @throws \Mollie\Api\Exceptions\IncompatiblePlatformException|\Mollie\Api\Exceptions\UnrecognizedClientException + */ + public function __construct( + $client = null, + ?MollieHttpAdapterPickerContract $adapterPicker = null, + ?IdempotencyKeyGeneratorContract $idempotencyKeyGenerator = null + ) { + $adapterPicker = $adapterPicker ?: new MollieHttpAdapterPicker; + $this->httpClient = $adapterPicker->pickHttpAdapter($client); + + CompatibilityChecker::make()->checkCompatibility(); + + $this->idempotencyKeyGenerator = $idempotencyKeyGenerator ?? new DefaultIdempotencyKeyGenerator; + + $this->initializeTraits(); + } + + protected function defaultHeaders(): array + { + return [ + 'X-Mollie-Client-Info' => php_uname(), + 'Accept' => 'application/json', + ]; + } + + public function getHttpClient(): HttpAdapterContract + { + return $this->httpClient; + } + + public function resolveBaseUrl(): string + { + return Url::join($this->apiEndpoint, self::API_VERSION); + } + + public static function fake(array $expectedResponses = [], bool $retainRequests = false): MockMollieClient + { + return new MockMollieClient($expectedResponses, $retainRequests); + } + + public function __serialize(): array + { + return [ + 'apiEndpoint' => $this->apiEndpoint, + 'httpClient' => $this->httpClient, + 'idempotencyKeyGenerator' => $this->idempotencyKeyGenerator, + 'testmode' => $this->testmode, + 'versionStrings' => $this->versionStrings, + ]; + } + + public function __unserialize(array $data): void + { + $this->apiEndpoint = $data['apiEndpoint']; + $this->httpClient = $data['httpClient']; + $this->idempotencyKeyGenerator = $data['idempotencyKeyGenerator']; + $this->testmode = $data['testmode']; + $this->versionStrings = $data['versionStrings']; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Repositories/ArrayStore.php b/vendor/mollie/mollie-api-php/src/Repositories/ArrayStore.php new file mode 100644 index 0000000..d9b3cf4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Repositories/ArrayStore.php @@ -0,0 +1,75 @@ +set($data); + } + + public function set($data): self + { + $this->store = $data; + + return $this; + } + + /** + * @param mixed $default + * @return mixed + */ + public function get(string $key, $default = null) + { + return Arr::get($this->store, $key, $default); + } + + public function add(string $key, $value): self + { + $this->store[$key] = $value; + + return $this; + } + + public function has(string $key): bool + { + return Arr::has($this->store, $key); + } + + public function merge(array ...$data): self + { + $this->store = array_merge($this->store, ...$data); + + return $this; + } + + public function remove(string $key): self + { + Arr::forget($this->store, $key); + + return $this; + } + + public function all(): array + { + return $this->store; + } + + public function isEmpty(): bool + { + return empty($this->store); + } + + public function isNotEmpty(): bool + { + return ! empty($this->store); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Repositories/JsonPayloadRepository.php b/vendor/mollie/mollie-api-php/src/Repositories/JsonPayloadRepository.php new file mode 100644 index 0000000..3b3d5a7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Repositories/JsonPayloadRepository.php @@ -0,0 +1,23 @@ +store) ? @json_encode($this->store) : ''; + } + + public function toStream(StreamFactoryInterface $streamFactory): StreamInterface + { + return $streamFactory->createStream((string) $this); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/AnyResource.php b/vendor/mollie/mollie-api-php/src/Resources/AnyResource.php new file mode 100644 index 0000000..ca791f5 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/AnyResource.php @@ -0,0 +1,38 @@ +attributes, $name); + } + + /** + * @param array|stdClass $attributes + */ + public function fill($attributes): void + { + $this->attributes = $attributes instanceof stdClass ? (array) $attributes : $attributes; + } + + public function toArray(): array + { + return $this->attributes; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Balance.php b/vendor/mollie/mollie-api-php/src/Resources/Balance.php new file mode 100644 index 0000000..5dacc26 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Balance.php @@ -0,0 +1,61 @@ + + */ +class BalanceCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'balances'; + + /** + * Resource class name. + */ + public static string $resource = Balance::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/BalanceReport.php b/vendor/mollie/mollie-api-php/src/Resources/BalanceReport.php new file mode 100644 index 0000000..4f3c259 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/BalanceReport.php @@ -0,0 +1,32 @@ + + */ +class BalanceTransactionCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'balance_transactions'; + + /** + * Resource class name. + */ + public static string $resource = BalanceTransaction::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/BaseCollection.php b/vendor/mollie/mollie-api-php/src/Resources/BaseCollection.php new file mode 100644 index 0000000..fd771c8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/BaseCollection.php @@ -0,0 +1,110 @@ + + */ +abstract class BaseCollection extends ArrayObject implements IsResponseAware +{ + use HasResponse; + + protected Connector $connector; + + /** + * The name of the collection resource in Mollie's API. + * + * @deprecated Use ResourceRegistry to resolve plural names instead. + */ + public static string $collectionName = ''; + + public ?\stdClass $_links = null; + + /** + * @param array|object $items + */ + public function __construct(Connector $connector, $items = [], ?\stdClass $_links = null) + { + parent::__construct($items); + + $this->_links = $_links; + $this->connector = $connector; + } + + public function contains(callable $callback): bool + { + foreach ($this as $item) { + if ($callback($item)) { + return true; + } + } + + return false; + } + + public function filter(callable $callback) + { + $filteredItems = array_filter($this->getArrayCopy(), $callback); + + /** @phpstan-ignore-next-line */ + return (new static($this->connector, $filteredItems, $this->_links))->setOrigin($this->getOrigin()); + } + + public function first() + { + return array_values($this->getArrayCopy())[0]; + } + + /** + * @param string|callable $key + * @param mixed $value + * @return mixed + */ + public function firstWhere($key, $value = true) + { + if (! is_string($key) && is_callable($key)) { + return $this->filter($key)->first(); + } + + return $this->filter(function ($item) use ($key, $value) { + if (is_array($item)) { + return Arr::get($item, $key) === $value; + } + + return $item->{$key} === $value; + })->first(); + } + + public static function getCollectionResourceName(): string + { + // Preferred: resolve via registry using the declared resource class on the collection + if (method_exists(static::class, 'getResourceClass')) { + /** @var class-string $resourceClass */ + $resourceClass = static::getResourceClass(); + + $registry = Config::resourceRegistry(); + + if ($registry->isRegistered($resourceClass)) { + return $registry->pluralOf($resourceClass); + } + } + + // Deprecated fallback: read static::$collectionName if set + if (! empty(static::$collectionName)) { + return static::$collectionName; + } + + throw new \RuntimeException('Collection name not set'); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/BaseResource.php b/vendor/mollie/mollie-api-php/src/Resources/BaseResource.php new file mode 100644 index 0000000..8775f68 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/BaseResource.php @@ -0,0 +1,55 @@ +connector = $connector; + } + + public function getConnector(): Connector + { + return $this->connector; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Capability.php b/vendor/mollie/mollie-api-php/src/Resources/Capability.php new file mode 100644 index 0000000..f323b06 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Capability.php @@ -0,0 +1,54 @@ + */ + public array $requirements; + + public CapabilityStatus|string $status; + + /** + * Required by the API but null once no reason applies. + */ + public ?string $statusReason; + + /** + * Not part of the Capability API response; hydrated only when a payload carries it. + */ + public ?string $organizationId = null; + + /** + * @var \stdClass + */ + public $_links; + + public function isUnrequested(): bool + { + return Utility::equals($this->status, CapabilityStatus::Unrequested); + } + + public function isEnabled(): bool + { + return Utility::equals($this->status, CapabilityStatus::Enabled); + } + + public function isPending(): bool + { + return Utility::equals($this->status, CapabilityStatus::Pending); + } + + public function isDisabled(): bool + { + return Utility::equals($this->status, CapabilityStatus::Disabled); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/CapabilityCollection.php b/vendor/mollie/mollie-api-php/src/Resources/CapabilityCollection.php new file mode 100644 index 0000000..f4dedae --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/CapabilityCollection.php @@ -0,0 +1,21 @@ + + */ +class CapabilityCollection extends ResourceCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'capabilities'; + + /** + * Resource class name. + */ + public static string $resource = Capability::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Capture.php b/vendor/mollie/mollie-api-php/src/Resources/Capture.php new file mode 100644 index 0000000..b7a3f42 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Capture.php @@ -0,0 +1,72 @@ + + */ +class CaptureCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'captures'; + + /** + * Resource class name. + */ + public static string $resource = Capture::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Chargeback.php b/vendor/mollie/mollie-api-php/src/Resources/Chargeback.php new file mode 100644 index 0000000..67cbe4c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Chargeback.php @@ -0,0 +1,61 @@ + + */ +class ChargebackCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'chargebacks'; + + /** + * Resource class name. + */ + public static string $resource = Chargeback::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Client.php b/vendor/mollie/mollie-api-php/src/Resources/Client.php new file mode 100644 index 0000000..5531df7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Client.php @@ -0,0 +1,40 @@ + Organization::class, + 'onboarding' => Onboarding::class, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/ClientCollection.php b/vendor/mollie/mollie-api-php/src/Resources/ClientCollection.php new file mode 100644 index 0000000..b660ce6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/ClientCollection.php @@ -0,0 +1,21 @@ + + */ +class ClientCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'clients'; + + /** + * Resource class name. + */ + public static string $resource = Client::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/ClientLink.php b/vendor/mollie/mollie-api-php/src/Resources/ClientLink.php new file mode 100644 index 0000000..70c948e --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/ClientLink.php @@ -0,0 +1,37 @@ +value): string + { + if (! in_array($approval_prompt, [ApprovalPrompt::Auto->value, ApprovalPrompt::Force->value])) { + throw new \Exception('Invalid approval_prompt. Please use "auto" or "force".'); + } + + $query = http_build_query([ + 'client_id' => $client_id, + 'state' => $state, + 'approval_prompt' => $approval_prompt, + 'scope' => implode(' ', $scopes), + ], '', '&', PHP_QUERY_RFC3986); + + return "{$this->_links->clientLink->href}?{$query}"; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/ConnectBalanceTransfer.php b/vendor/mollie/mollie-api-php/src/Resources/ConnectBalanceTransfer.php new file mode 100644 index 0000000..299e2c3 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/ConnectBalanceTransfer.php @@ -0,0 +1,51 @@ + + */ +class ConnectBalanceTransferCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'connect_balance_transfers'; + + /** + * Resource class name. + */ + public static string $resource = ConnectBalanceTransfer::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/CurrentProfile.php b/vendor/mollie/mollie-api-php/src/Resources/CurrentProfile.php new file mode 100644 index 0000000..c713403 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/CurrentProfile.php @@ -0,0 +1,32 @@ +connector->profileMethods->createForCurrentProfile($methodId); + } + + /** + * Disable a payment method for this profile. + * + * + * @throws ApiException + */ + public function disableMethod(string $methodId): void + { + $this->connector->profileMethods->deleteForCurrentProfile($methodId); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/CursorCollection.php b/vendor/mollie/mollie-api-php/src/Resources/CursorCollection.php new file mode 100644 index 0000000..1a3133c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/CursorCollection.php @@ -0,0 +1,99 @@ + + */ +abstract class CursorCollection extends ResourceCollection +{ + /** + * Return the next set of resources when available + * + * @return null|CursorCollection|Response + * + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function next() + { + if (! $this->hasNext()) { + return null; + } + + return $this->fetchCollection($this->_links->next->href); + } + + /** + * Return the previous set of resources when available + * + * @return null|CursorCollection|Response + * + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function previous() + { + if (! $this->hasPrevious()) { + return null; + } + + return $this->fetchCollection($this->_links->previous->href); + } + + /** + * @return CursorCollection|Response + */ + private function fetchCollection(string $url) + { + return $this + ->connector + ->send((new DynamicGetRequest($url))->setHydratableResource(static::class)); + } + + /** + * Determine whether the collection has a next page available. + */ + public function hasNext(): bool + { + return isset($this->_links->next->href); + } + + /** + * Determine whether the collection has a previous page available. + */ + public function hasPrevious(): bool + { + return isset($this->_links->previous->href); + } + + /** + * Iterate over a CursorCollection and yield its elements. + */ + public function getAutoIterator(bool $iterateBackwards = false): LazyCollection + { + $page = $this; + $hasMorePages = $iterateBackwards ? 'hasPrevious' : 'hasNext'; + $fetchPage = $iterateBackwards ? 'previous' : 'next'; + + return (new LazyCollection(function () use ($page, $hasMorePages, $fetchPage): Generator { + while (true) { + foreach ($page as $item) { + yield $item; + } + + if (! $page->{$hasMorePages}()) { + break; + } + + $page = $page->{$fetchPage}(); + } + }))->setOrigin($this->getOrigin()); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Customer.php b/vendor/mollie/mollie-api-php/src/Resources/Customer.php new file mode 100644 index 0000000..d63b030 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Customer.php @@ -0,0 +1,205 @@ + $this->name, + 'email' => $this->email, + 'locale' => $this->locale, + 'metadata' => $this->metadata, + ]; + + /** @var null|Customer */ + return $this->connector->customers->update($this->id, $body); + } + + /** + * @return Payment + * + * @throws ApiException + */ + public function createPayment(array $options = [], array $filters = []) + { + return $this->connector->customerPayments->createFor( + $this, + $options, + $filters, + $this->isInTestmode() + ); + } + + /** + * Get all payments for this customer + * + * This method performs an API request. Prefer embedded payments when they + * are already present to avoid one request per customer in loops. + * + * @return PaymentCollection + * + * @throws ApiException + */ + public function payments() + { + return $this->connector->customerPayments->pageFor($this, null, null, $this->withMode()); + } + + /** + * @return Subscription + * + * @throws ApiException + */ + public function createSubscription(array $options = [], array $filters = []) + { + return $this->connector->subscriptions->createFor($this, $options, $this->isInTestmode()); + } + + /** + * @param string $subscriptionId + * @return Subscription + * + * @throws ApiException + */ + public function getSubscription($subscriptionId) + { + return $this->connector->subscriptions->getFor($this, $subscriptionId, $this->isInTestmode()); + } + + /** + * @param string $subscriptionId + * @return \Mollie\Api\Resources\Subscription + * + * @throws ApiException + */ + public function cancelSubscription($subscriptionId) + { + return $this->connector->subscriptions->cancelFor($this, $subscriptionId, $this->isInTestmode()); + } + + /** + * Get all subscriptions for this customer + * + * This method performs an API request. Prefer embedded subscriptions when + * they are already present to avoid one request per customer in loops. + * + * @return SubscriptionCollection + * + * @throws ApiException + */ + public function subscriptions() + { + return $this->connector->subscriptions->pageFor($this, null, null, $this->withMode()); + } + + /** + * @return Mandate + * + * @throws ApiException + */ + public function createMandate(array $options = []) + { + return $this->connector->mandates->createFor($this, $options, $this->isInTestmode()); + } + + /** + * @param string $mandateId + * @return Mandate + * + * @throws ApiException + */ + public function getMandate($mandateId, array $parameters = []) + { + return $this->connector->mandates->getFor($this, $mandateId, $this->withMode($parameters)); + } + + /** + * @param string $mandateId + * + * @throws ApiException + */ + public function revokeMandate($mandateId): void + { + $this->connector->mandates->revokeFor($this, $mandateId, $this->withMode()); + } + + /** + * Get all mandates for this customer + * + * This method performs an API request. Prefer embedded mandates when they + * are already present to avoid one request per customer in loops. + * + * @return MandateCollection + * + * @throws ApiException + */ + public function mandates() + { + return $this->connector->mandates->pageFor($this, null, null, $this->withMode()); + } + + /** + * Helper function to check for mandate with status valid + * + * @return bool + */ + public function hasValidMandate() + { + return $this->mandates() + ->contains(fn (Mandate $mandate) => $mandate->isValid()); + } + + /** + * Helper function to check for specific payment method mandate with status valid + */ + public function hasValidMandateForMethod($method): bool + { + return $this->mandates() + ->contains(fn (Mandate $mandate) => $mandate->isValid() && $mandate->method === $method); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/CustomerCollection.php b/vendor/mollie/mollie-api-php/src/Resources/CustomerCollection.php new file mode 100644 index 0000000..8c5036b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/CustomerCollection.php @@ -0,0 +1,21 @@ + + */ +class CustomerCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'customers'; + + /** + * Resource class name. + */ + public static string $resource = Customer::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Invoice.php b/vendor/mollie/mollie-api-php/src/Resources/Invoice.php new file mode 100644 index 0000000..b026bfd --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Invoice.php @@ -0,0 +1,82 @@ +status, InvoiceStatus::Paid); + } + + public function isOpen(): bool + { + return Utility::equals($this->status, InvoiceStatus::Open); + } + + public function isOverdue(): bool + { + return Utility::equals($this->status, InvoiceStatus::Overdue); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/InvoiceCollection.php b/vendor/mollie/mollie-api-php/src/Resources/InvoiceCollection.php new file mode 100644 index 0000000..82c62d9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/InvoiceCollection.php @@ -0,0 +1,21 @@ + + */ +class InvoiceCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'invoices'; + + /** + * Resource class name. + */ + public static string $resource = Invoice::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Issuer.php b/vendor/mollie/mollie-api-php/src/Resources/Issuer.php new file mode 100644 index 0000000..da6d49f --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Issuer.php @@ -0,0 +1,22 @@ + + */ +class IssuerCollection extends ResourceCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'issuers'; + + /** + * Resource class name. + */ + public static string $resource = Issuer::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/LazyCollection.php b/vendor/mollie/mollie-api-php/src/Resources/LazyCollection.php new file mode 100644 index 0000000..ad6c86a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/LazyCollection.php @@ -0,0 +1,197 @@ + + */ +class LazyCollection implements IsResponseAware, IteratorAggregate +{ + use HasResponse; + + /** + * @var callable + */ + private $source; + + /** + * @param callable $source + */ + public function __construct($source) + { + $this->source = $source; + } + + /** + * Get all items in the collection. + */ + public function all(): array + { + return iterator_to_array($this->getIterator()); + } + + /** + * Get an item from the collection by key. + * + * @param TKey $key + * @return TValue|null + */ + public function get($key) + { + foreach ($this as $outerKey => $outerValue) { + if ($outerKey === $key) { + return $outerValue; + } + } + + return null; + } + + /** + * Run a filter over each of the items. + * + * @param (callable(TValue, TKey): bool) $callback + */ + public function filter(callable $callback): self + { + return (new self(function () use ($callback) { + foreach ($this as $key => $value) { + if ($callback($value, $key)) { + yield $key => $value; + } + } + }))->setOrigin($this->getOrigin()); + } + + /** + * Get the first item from the collection passing the given truth test. + * + * @param (callable(TValue, TKey): bool)|null $callback + * @return TValue|null + */ + public function first(?callable $callback = null) + { + $iterator = $this->getIterator(); + + if (is_null($callback)) { + if (! $iterator->valid()) { + return null; + } + + return $iterator->current(); + } + + foreach ($iterator as $key => $value) { + if ($callback($value, $key)) { + return $value; + } + } + + return null; + } + + /** + * Run a map over each of the items. + * + * @template TMapValue + * + * @param callable(TValue, TKey): TMapValue $callback + * @return static + */ + public function map(callable $callback): self + { + return (new self(function () use ($callback) { + foreach ($this as $key => $value) { + yield $key => $callback($value, $key); + } + }))->setOrigin($this->getOrigin()); + } + + /** + * Take the first {$limit} items. + * + * @return static + */ + public function take(int $limit): self + { + return (new self(function () use ($limit) { + $iterator = $this->getIterator(); + + while ($limit--) { + if (! $iterator->valid()) { + break; + } + + yield $iterator->key() => $iterator->current(); + + if ($limit) { + $iterator->next(); + } + } + }))->setOrigin($this->getOrigin()); + } + + /** + * Determine if all items pass the given truth test. + * + * @param (callable(TValue, TKey): bool) $callback + */ + public function every(callable $callback): bool + { + $iterator = $this->getIterator(); + + foreach ($iterator as $key => $value) { + if (! $callback($value, $key)) { + return false; + } + } + + return true; + } + + /** + * Count the number of items in the collection. + */ + public function count(): int + { + return iterator_count($this->getIterator()); + } + + /** + * Get an iterator for the items. + * + * @return Iterator + */ + public function getIterator(): Iterator + { + return $this->makeIterator($this->source); + } + + /** + * Get an iterator for the given value. + * + * @template TIteratorKey of array-key + * @template TIteratorValue + * + * @param IteratorAggregate|(callable(): \Generator) $source + * @return Iterator + */ + protected function makeIterator($source): Iterator + { + if ($source instanceof IteratorAggregate) { + return $source->getIterator(); + } + + return $source(); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Mandate.php b/vendor/mollie/mollie-api-php/src/Resources/Mandate.php new file mode 100644 index 0000000..986d9b3 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Mandate.php @@ -0,0 +1,80 @@ +status, MandateStatus::Valid); + } + + public function isPending(): bool + { + return Utility::equals($this->status, MandateStatus::Pending); + } + + public function isInvalid(): bool + { + return Utility::equals($this->status, MandateStatus::Invalid); + } + + /** + * Revoke the mandate. + */ + public function revoke(): void + { + if (! isset($this->customerId)) { + return; + } + + $this + ->connector + ->mandates + ->revokeForId( + $this->customerId, + $this->id, + $this->isInTestmode() + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/MandateCollection.php b/vendor/mollie/mollie-api-php/src/Resources/MandateCollection.php new file mode 100644 index 0000000..57f1ff0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/MandateCollection.php @@ -0,0 +1,29 @@ + + */ +class MandateCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'mandates'; + + /** + * Resource class name. + */ + public static string $resource = Mandate::class; + + public function whereStatus(MandateStatus|string $status): self + { + return $this->filter(fn (Mandate $mandate) => Utility::equals($mandate->status, $status)); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Method.php b/vendor/mollie/mollie-api-php/src/Resources/Method.php new file mode 100644 index 0000000..322c3a9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Method.php @@ -0,0 +1,110 @@ +size1x and $image->size2x to display the payment method logo. + * + * @var \stdClass|null + */ + public $image; + + /** + * The issuers available for this payment method. Only for the methods iDEAL, KBC/CBC and gift cards. + * Will only be filled when explicitly requested using the query string `include` parameter. + * + * @var array|null + */ + public ?array $issuers = null; + + /** + * The pricing for this payment method. Will only be filled when explicitly requested using the query string + * `include` parameter. + * + * @var array|null + */ + public ?array $pricing = null; + + /** + * The activation status the method is in. Enum case if recognised, raw string for + * forward-compat, null when the method was never requested. The API marks the field + * required (nullable), so there is no default: an omitted field stays uninitialized. + */ + public PaymentMethodStatus|string|null $status; + + /** + * @var \stdClass|null + */ + public $_links; + + public function issuers(): IssuerCollection + { + /** @var IssuerCollection $collection */ + $collection = ResourceFactory::createCollection( + $this->connector, + IssuerCollection::class + ); + + if ($this->issuers === null) { + return $collection; + } + + /** @var IssuerCollection $collection */ + $collection = (new ResourceHydrator)->hydrateCollection( + $collection, + (array) $this->issuers, + $this->getOrigin() + ); + + return $collection; + } + + public function pricing(): MethodPriceCollection + { + /** @var MethodPriceCollection $collection */ + $collection = ResourceFactory::createCollection( + $this->connector, + MethodPriceCollection::class + ); + + if ($this->pricing === null) { + return $collection; + } + + /** @var MethodPriceCollection $collection */ + $collection = (new ResourceHydrator)->hydrateCollection( + $collection, + (array) $this->pricing, + $this->getOrigin() + ); + + return $collection; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/MethodCollection.php b/vendor/mollie/mollie-api-php/src/Resources/MethodCollection.php new file mode 100644 index 0000000..c1f2cf5 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/MethodCollection.php @@ -0,0 +1,18 @@ + + */ +class MethodCollection extends ResourceCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'methods'; + + public static string $resource = Method::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/MethodPrice.php b/vendor/mollie/mollie-api-php/src/Resources/MethodPrice.php new file mode 100644 index 0000000..8db38a4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/MethodPrice.php @@ -0,0 +1,19 @@ + + */ +class MethodPriceCollection extends ResourceCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'prices'; + + /** + * Resource class name. + */ + public static string $resource = MethodPrice::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Onboarding.php b/vendor/mollie/mollie-api-php/src/Resources/Onboarding.php new file mode 100644 index 0000000..f6d14c4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Onboarding.php @@ -0,0 +1,44 @@ +status, OnboardingStatus::NeedsData); + } + + public function inReview(): bool + { + return Utility::equals($this->status, OnboardingStatus::InReview); + } + + public function isCompleted(): bool + { + return Utility::equals($this->status, OnboardingStatus::Completed); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Organization.php b/vendor/mollie/mollie-api-php/src/Resources/Organization.php new file mode 100644 index 0000000..2095ca3 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Organization.php @@ -0,0 +1,41 @@ +|null */ + public ?array $userAgentTokens = null; + + public ?string $partnerContractSignedAt = null; + + public ?bool $partnerContractUpdateAvailable = null; + + public ?string $partnerContractExpiresAt = null; + + /** + * @var \stdClass + */ + public $_links; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Payment.php b/vendor/mollie/mollie-api-php/src/Resources/Payment.php new file mode 100644 index 0000000..25f5829 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Payment.php @@ -0,0 +1,471 @@ + CaptureCollection::class, + 'refunds' => RefundCollection::class, + 'chargebacks' => ChargebackCollection::class, + ]; + } + + public function isCanceled(): bool + { + return Utility::equals($this->status, PaymentStatus::Canceled); + } + + public function isExpired(): bool + { + return Utility::equals($this->status, PaymentStatus::Expired); + } + + public function isOpen(): bool + { + return Utility::equals($this->status, PaymentStatus::Open); + } + + public function isPending(): bool + { + return Utility::equals($this->status, PaymentStatus::Pending); + } + + public function isAuthorized(): bool + { + return Utility::equals($this->status, PaymentStatus::Authorized); + } + + public function isPaid(): bool + { + return ! empty($this->paidAt); + } + + public function hasRefunds(): bool + { + return ! empty($this->_links->refunds); + } + + public function hasChargebacks(): bool + { + return ! empty($this->_links->chargebacks); + } + + public function isFailed(): bool + { + return Utility::equals($this->status, PaymentStatus::Failed); + } + + public function hasSequenceTypeFirst(): bool + { + return Utility::equals($this->sequenceType, SequenceType::First); + } + + public function hasSequenceTypeRecurring(): bool + { + return Utility::equals($this->sequenceType, SequenceType::Recurring); + } + + public function getCheckoutUrl(): ?string + { + if (empty($this->_links->checkout)) { + return null; + } + + return $this->_links->checkout->href; + } + + public function getMobileAppCheckoutUrl(): ?string + { + if (empty($this->_links->mobileAppCheckout)) { + return null; + } + + return $this->_links->mobileAppCheckout->href; + } + + public function canBeRefunded(): bool + { + return $this->amountRemaining !== null; + } + + public function canBePartiallyRefunded(): bool + { + return $this->canBeRefunded(); + } + + public function getAmountRefunded(): float + { + if ($this->amountRefunded) { + return (float) $this->amountRefunded->value; + } + + return 0.0; + } + + public function getAmountRemaining(): float + { + if ($this->amountRemaining) { + return (float) $this->amountRemaining->value; + } + + return 0.0; + } + + public function getAmountChargedBack(): float + { + if ($this->amountChargedBack) { + return (float) $this->amountChargedBack->value; + } + + return 0.0; + } + + public function hasSplitPayments(): bool + { + return ! empty($this->routing); + } + + /** + * Retrieve refunds for this payment. + * + * This method performs an API request. Prefer embedded refunds when they + * are already present to avoid one request per payment in loops. + * + * @throws ApiException + */ + public function refunds(): RefundCollection + { + if (! isset($this->_links->refunds->href)) { + return $this->listRefunds(); + } + + return $this + ->connector + ->send((new DynamicGetRequest($this->_links->refunds->href))->setHydratableResource(RefundCollection::class)); + } + + /** + * Retrieve captures for this payment. + * + * This method performs an API request. Prefer embedded captures when they + * are already present to avoid one request per payment in loops. + * + * @throws ApiException + */ + public function getRefund(string $refundId, array $parameters = []): Refund + { + return $this->connector->paymentRefunds->getFor($this, $refundId, $parameters, $this->isInTestmode()); + } + + /** + * Retrieve chargebacks for this payment. + * + * This method performs an API request. Prefer embedded chargebacks when + * they are already present to avoid one request per payment in loops. + * + * @throws ApiException + */ + public function listRefunds(array $parameters = []): RefundCollection + { + return $this + ->connector + ->paymentRefunds + ->pageFor( + $this, + null, + null, + $this->withMode($parameters), + ); + } + + /** + * @throws ApiException + */ + public function captures(): CaptureCollection + { + if (! isset($this->_links->captures->href)) { + return $this->connector->paymentCaptures->pageFor($this, [], $this->isInTestmode()); + } + + return $this + ->connector + ->send((new DynamicGetRequest($this->_links->captures->href))->setHydratableResource(CaptureCollection::class)); + } + + /** + * @throws ApiException + */ + public function getCapture(string $captureId, array $parameters = []): Capture + { + return $this->connector->paymentCaptures->getFor( + $this, + $captureId, + $parameters, + $this->isInTestmode() + ); + } + + /** + * @throws ApiException + */ + public function chargebacks(): ChargebackCollection + { + if (! isset($this->_links->chargebacks->href)) { + return $this->connector->paymentChargebacks->pageFor($this, $this->withMode()); + } + + return $this + ->connector + ->send((new DynamicGetRequest($this->_links->chargebacks->href))->setHydratableResource(ChargebackCollection::class)); + } + + /** + * @throws ApiException + */ + public function getChargeback(string $chargebackId, array $parameters = []): Chargeback + { + return $this->connector->paymentChargebacks->getFor( + $this, + $chargebackId, + $parameters, + $this->isInTestmode() + ); + } + + /** + * @throws ApiException + */ + public function refund(array $data): Refund + { + return $this->connector->paymentRefunds->createFor($this, $data); + } + + /** + * @throws ApiException + */ + public function update(): Payment + { + $additional = []; + if ($this->method === PaymentMethod::Banktransfer || $this->method === PaymentMethod::Banktransfer->value) { + $additional['dueDate'] = $this->dueDate; + } + + $method = $this->method instanceof PaymentMethod ? $this->method->value : $this->method; + + $updateRequest = (new UpdatePaymentRequest( + $this->id, + $this->description, + $this->redirectUrl, + $this->cancelUrl, + $this->webhookUrl, + (array) $this->metadata, + $method, + $this->locale, + $this->restrictPaymentMethodsToCountry, + $additional + ))->test($this->isInTestmode()); + + /** @var Payment */ + return $this + ->connector + ->send($updateRequest); + } + + public function getAmountCaptured(): float + { + if ($this->amountCaptured) { + return (float) $this->amountCaptured->value; + } + + return 0.0; + } + + public function getSettlementAmount(): float + { + if ($this->settlementAmount) { + return (float) $this->settlementAmount->value; + } + + return 0.0; + } + + public function getApplicationFeeAmount(): float + { + if ($this->applicationFee) { + return (float) $this->applicationFee->amount->value; + } + + return 0.0; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/PaymentCollection.php b/vendor/mollie/mollie-api-php/src/Resources/PaymentCollection.php new file mode 100644 index 0000000..1b04b31 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/PaymentCollection.php @@ -0,0 +1,21 @@ + + */ +class PaymentCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'payments'; + + /** + * Resource class name. + */ + public static string $resource = Payment::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/PaymentLink.php b/vendor/mollie/mollie-api-php/src/Resources/PaymentLink.php new file mode 100644 index 0000000..b42a5c4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/PaymentLink.php @@ -0,0 +1,136 @@ +paidAt); + } + + /** + * Get the checkout URL where the customer can complete the payment. + */ + public function getCheckoutUrl(): ?string + { + if (empty($this->_links->paymentLink)) { + return null; + } + + return $this->_links->paymentLink->href; + } + + /** + * Persist the current local Payment Link state to the Mollie API. + * + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function update(): ?PaymentLink + { + return $this->connector->paymentLinks->update($this->id, $this->withMode([ + 'description' => $this->description, + 'archived' => $this->archived, + ])); + } + + /** + * Archive this Payment Link. + * + * @return \Mollie\Api\Resources\PaymentLink + * + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function archive() + { + return $this->connector->paymentLinks->update($this->id, $this->withMode([ + 'archived' => true, + ])); + } + + /** + * Retrieve a paginated list of payments associated with this payment link. + * + * This method performs an API request. Avoid calling it once per payment + * link in loops unless that extra request per item is intentional. + * + * @return mixed|\Mollie\Api\Resources\BaseCollection + */ + public function payments(?string $from = null, ?int $limit = null, array $filters = []) + { + return $this->connector->paymentLinkPayments->pageFor( + $this, + $from, + $limit, + $this->withMode($filters) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/PaymentLinkCollection.php b/vendor/mollie/mollie-api-php/src/Resources/PaymentLinkCollection.php new file mode 100644 index 0000000..f467323 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/PaymentLinkCollection.php @@ -0,0 +1,21 @@ + + */ +class PaymentLinkCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'payment_links'; + + /** + * Resource class name. + */ + public static string $resource = PaymentLink::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Payout.php b/vendor/mollie/mollie-api-php/src/Resources/Payout.php new file mode 100644 index 0000000..d738e19 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Payout.php @@ -0,0 +1,111 @@ + + */ +class PermissionCollection extends ResourceCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'permissions'; + + public static string $resource = Permission::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Profile.php b/vendor/mollie/mollie-api-php/src/Resources/Profile.php new file mode 100644 index 0000000..e9f2773 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Profile.php @@ -0,0 +1,185 @@ +status, ProfileStatus::Unverified); + } + + public function isVerified(): bool + { + return Utility::equals($this->status, ProfileStatus::Verified); + } + + public function isBlocked(): bool + { + return Utility::equals($this->status, ProfileStatus::Blocked); + } + + /** + * @throws ApiException + */ + public function update(): ?Profile + { + $body = [ + 'name' => $this->name, + 'website' => $this->website, + 'email' => $this->email, + 'phone' => $this->phone, + 'businessCategory' => $this->businessCategory, + 'mode' => $this->mode, + ]; + + return $this->connector->profiles->update($this->id, $body); + } + + /** + * Retrieves all chargebacks associated with this profile + * + * This method performs an API request. Avoid calling it once per profile in + * loops unless that extra request per item is intentional. + * + * @throws ApiException + */ + public function chargebacks(): ChargebackCollection + { + $href = $this->_links->chargebacks->href ?? "profiles/{$this->id}/chargebacks"; + $query = isset($this->_links->chargebacks->href) ? [] : ['testmode' => $this->mode === 'test']; + + return $this + ->connector + ->send((new DynamicGetRequest($href, $query))->setHydratableResource(ChargebackCollection::class)); + } + + /** + * Retrieves all methods activated on this profile + * + * This method performs an API request. Avoid calling it once per profile in + * loops unless that extra request per item is intentional. + * + * @throws ApiException + */ + public function methods(): MethodCollection + { + $href = $this->_links->methods->href ?? "profiles/{$this->id}/methods"; + $query = isset($this->_links->methods->href) ? [] : ['testmode' => $this->mode === 'test']; + + return $this + ->connector + ->send((new DynamicGetRequest($href, $query))->setHydratableResource(MethodCollection::class)); + } + + /** + * Enable a payment method for this profile. + * + * + * @throws ApiException + */ + public function enableMethod(string $methodId): Method + { + return $this->connector->profileMethods->createFor($this, $methodId); + } + + /** + * Disable a payment method for this profile. + * + * + * @throws ApiException + */ + public function disableMethod(string $methodId): void + { + $this->connector->profileMethods->deleteFor($this, $methodId); + } + + /** + * Retrieves all payments associated with this profile + * + * This method performs an API request. Avoid calling it once per profile in + * loops unless that extra request per item is intentional. + * + * @throws ApiException + */ + public function payments(): PaymentCollection + { + $href = $this->_links->payments->href ?? "profiles/{$this->id}/payments"; + $query = isset($this->_links->payments->href) ? [] : ['testmode' => $this->mode === 'test']; + + return $this + ->connector + ->send((new DynamicGetRequest($href, $query))->setHydratableResource(PaymentCollection::class)); + } + + /** + * Retrieves all refunds associated with this profile + * + * This method performs an API request. Avoid calling it once per profile in + * loops unless that extra request per item is intentional. + * + * @throws ApiException + */ + public function refunds(): RefundCollection + { + $href = $this->_links->refunds->href ?? "profiles/{$this->id}/refunds"; + $query = isset($this->_links->refunds->href) ? [] : ['testmode' => $this->mode === 'test']; + + return $this + ->connector + ->send((new DynamicGetRequest($href, $query))->setHydratableResource(RefundCollection::class)); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/ProfileCollection.php b/vendor/mollie/mollie-api-php/src/Resources/ProfileCollection.php new file mode 100644 index 0000000..e16d119 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/ProfileCollection.php @@ -0,0 +1,21 @@ + + */ +class ProfileCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'profiles'; + + /** + * Resource class name. + */ + public static string $resource = Profile::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Refund.php b/vendor/mollie/mollie-api-php/src/Resources/Refund.php new file mode 100644 index 0000000..6992140 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Refund.php @@ -0,0 +1,157 @@ +isQueued() || $this->isPending(); + } + + /** + * Is this refund queued? + */ + public function isQueued(): bool + { + return Utility::equals($this->status, RefundStatus::Queued); + } + + /** + * Is this refund pending? + */ + public function isPending(): bool + { + return Utility::equals($this->status, RefundStatus::Pending); + } + + /** + * Is this refund processing? + */ + public function isProcessing(): bool + { + return Utility::equals($this->status, RefundStatus::Processing); + } + + /** + * Is this refund transferred to consumer? + */ + public function isTransferred(): bool + { + return Utility::equals($this->status, RefundStatus::Refunded); + } + + /** + * Is this refund failed? + */ + public function isFailed(): bool + { + return Utility::equals($this->status, RefundStatus::Failed); + } + + /** + * Is this refund canceled? + */ + public function isCanceled(): bool + { + return Utility::equals($this->status, RefundStatus::Canceled); + } + + /** + * Cancel the refund. + * + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function cancel(): void + { + $this + ->connector + ->send((new CancelPaymentRefundRequest( + $this->paymentId, + $this->id + ))->test($this->isInTestmode())); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/RefundCollection.php b/vendor/mollie/mollie-api-php/src/Resources/RefundCollection.php new file mode 100644 index 0000000..cfeb6f3 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/RefundCollection.php @@ -0,0 +1,21 @@ + + */ +class RefundCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'refunds'; + + /** + * Resource class name. + */ + public static string $resource = Refund::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/ResourceCollection.php b/vendor/mollie/mollie-api-php/src/Resources/ResourceCollection.php new file mode 100644 index 0000000..e4567e0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/ResourceCollection.php @@ -0,0 +1,63 @@ + + */ +abstract class ResourceCollection extends BaseCollection +{ + /** + * Resource class name. + */ + public static string $resource = ''; + + public static function getResourceClass(): string + { + if (empty(static::$resource)) { + throw new \RuntimeException('Resource name not set'); + } + + return static::$resource; + } + + public function setItems(array $items): self + { + $this->exchangeArray($items); + + return $this; + } + + /** + * @return static + */ + public static function withResponse(Response $response, Connector $connector, $items = [], ?\stdClass $_links = null): self + { + $collection = new static($connector, $items, $_links); + + return $collection->setResponse($response); + } + + /** + * Origin-aware sibling of {@see self::withResponse()}. Used by + * resource methods that propagate a non-HTTP origin (e.g. a + * webhook snapshot) to a child collection without forcing the + * caller to construct a synthetic HTTP response. + * + * @return static + */ + public static function withOrigin(ResourceOrigin $origin, Connector $connector, $items = [], ?\stdClass $_links = null): self + { + $collection = new static($connector, $items, $_links); + + return $collection->setOrigin($origin); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/ResourceFactory.php b/vendor/mollie/mollie-api-php/src/Resources/ResourceFactory.php new file mode 100644 index 0000000..8876ca0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/ResourceFactory.php @@ -0,0 +1,49 @@ +fill($data); + } else { + $typeMap = $this->propertyTypes()->typesFor($resource); + + foreach ($data as $property => $value) { + $property = (string) $property; + + if ($this->holdsEmbeddedResources($resource, $property, $value)) { + $resource->{$property} = $this->parseEmbeddedResources( + $resource->getConnector(), + $resource, + $value, + $origin + ); + + continue; + } + + if (isset($typeMap[$property])) { + $resource->{$property} = $this->propertyTypes()->cast($typeMap[$property], $value); + + continue; + } + + $resource->{$property} = $value; + } + } + + $resource->setOrigin($origin); + + return $resource; + } + + /** + * Hydrate a collection with data. + * + * @param ResourceCollection $collection + * @param array|object $items + * @param ResourceOrigin $origin + * @param object|null $_links + */ + public function hydrateCollection( + ResourceCollection $collection, + $items, + ResourceOrigin $origin, + $_links = null + ): ResourceCollection { + if (is_object($items)) { + $items = (array) $items; + } + + $hydratedItems = array_map( + fn ($item) => $this->hydrate( + ResourceFactory::create($origin->getConnector(), $collection::getResourceClass()), + $item, + $origin + ), + $items + ); + + if ($_links !== null) { + $collection->_links = $_links; + } + + return $collection + ->setItems($hydratedItems) + ->setOrigin($origin); + } + + private function propertyTypes(): ResourcePropertyTypeResolver + { + return $this->propertyTypes ??= new ResourcePropertyTypeResolver; + } + + private function holdsEmbeddedResources(object $resource, string $key, $value): bool + { + return $key === '_embedded' + && ! is_null($value) + && $resource instanceof EmbeddedResourcesContract; + } + + private function parseEmbeddedResources( + Connector $connector, + object $resource, + object $embedded, + ResourceOrigin $origin + ): object { + $result = new \stdClass; + + foreach ($embedded as $resourceKey => $resourceData) { + $collectionOrResourceClass = $resource->getEmbeddedResourcesMap()[$resourceKey] ?? null; + + if (is_null($collectionOrResourceClass)) { + $result->{$resourceKey} = $this->hydrate( + ResourceFactory::create($connector, AnyResource::class), + $resourceData, + $origin + ); + + continue; + } + + $result->{$resourceKey} = is_subclass_of($collectionOrResourceClass, BaseResource::class) + ? $this->hydrate( + ResourceFactory::create($connector, $collectionOrResourceClass), + $resourceData, + $origin + ) + : $this->hydrateCollection( + ResourceFactory::createCollection($connector, $collectionOrResourceClass), + $resourceData, + $origin + ); + } + + return $result; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/ResourcePropertyTypeResolver.php b/vendor/mollie/mollie-api-php/src/Resources/ResourcePropertyTypeResolver.php new file mode 100644 index 0000000..4c3e5fa --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/ResourcePropertyTypeResolver.php @@ -0,0 +1,286 @@ + 'scalar'|'enum'|'valueObject'|'mixed'|'unsupported', + * 'scalar' => 'string'|'int'|'bool'|'float'|null (set only when exactly one scalar type is declared), + * 'enums' => class-string[] (for enum|string union), + * 'valueObject'=> class-string|null (class with fromArray()), + * 'allowsString' => bool (for enum unions - keep raw string fallback), + * 'nullable' => bool, + * ] + * An explicit `null` union member only sets 'nullable'; it never changes 'kind'. + * + * @var array>> + */ + private static array $propertyTypeCache = []; + + /** + * Reflect (and cache) the typed properties of a resource class. + * + * @return array> + */ + public function typesFor(BaseResource $resource): array + { + $class = get_class($resource); + + if (isset(self::$propertyTypeCache[$class])) { + return self::$propertyTypeCache[$class]; + } + + $map = []; + + foreach ((new \ReflectionClass($class))->getProperties(ReflectionProperty::IS_PUBLIC) as $prop) { + if ($prop->isStatic()) { + continue; + } + if (! $prop->hasType()) { + continue; + } + + $descriptor = $this->describeType($prop); + if ($descriptor !== null) { + $map[$prop->getName()] = $descriptor; + } + } + + return self::$propertyTypeCache[$class] = $map; + } + + /** + * Coerce a JSON value to match a declared property type descriptor. + * + * @param array $descriptor + * @param mixed $value + * @return mixed + */ + public function cast(array $descriptor, $value) + { + if ($value === null) { + return $descriptor['nullable'] ? null : $value; + } + + switch ($descriptor['kind']) { + case 'scalar': + return $this->coerceScalar($descriptor['scalar'], $value); + + case 'enum': + foreach ($descriptor['enums'] as $enumClass) { + if (is_string($value) || is_int($value)) { + /** @var class-string $enumClass */ + $case = $enumClass::tryFrom($value); + if ($case !== null) { + return $case; + } + } + } + + return $descriptor['allowsString'] ? (is_scalar($value) ? (string) $value : $value) : $value; + + case 'valueObject': + /** @var class-string $class */ + $class = $descriptor['valueObject']; + + if ($value instanceof $class) { + return $value; + } + + if (is_object($value)) { + $value = (array) $value; + } + + if (! is_array($value)) { + return $value; + } + + return $class::fromArray($value); + + case 'mixed': + default: + return $value; + } + } + + /** + * @return array|null + */ + private function describeType(ReflectionProperty $prop): ?array + { + $type = $prop->getType(); + + if ($type === null) { + return null; + } + + $nullable = $type->allowsNull(); + $named = []; + + if ($type instanceof ReflectionNamedType) { + $named[] = $type; + } elseif ($type instanceof ReflectionUnionType) { + foreach ($type->getTypes() as $sub) { + if ($sub instanceof ReflectionNamedType) { + $named[] = $sub; + } + } + } else { + return null; + } + + $scalars = []; + $enums = []; + $valueObject = null; + + foreach ($named as $n) { + $name = $n->getName(); + + if ($n->isBuiltin()) { + if ($name === 'null') { + // Nullability is already captured by allowsNull() above. An explicit + // null member must not discard the enum or scalar members seen so far. + continue; + } + + if (in_array($name, ['string', 'int', 'bool', 'float'], true)) { + $scalars[$name] = true; + + continue; + } + + return ['kind' => 'mixed', 'nullable' => $nullable]; + } + + if (is_subclass_of($name, BackedEnum::class)) { + $enums[] = $name; + } elseif (class_exists($name) && $this->hasFromArray($name)) { + $valueObject = $valueObject ?? $name; + } else { + return ['kind' => 'mixed', 'nullable' => $nullable]; + } + } + + $allowsString = isset($scalars['string']); + + // Coercing is only safe when exactly one scalar type remains. int|string + // (Profile::$categoryCode) must keep whatever JSON delivered. + $scalar = count($scalars) === 1 ? array_key_first($scalars) : null; + + if ($enums !== []) { + return [ + 'kind' => 'enum', + 'enums' => $enums, + 'allowsString' => $allowsString, + 'nullable' => $nullable, + ]; + } + + if ($valueObject !== null) { + return [ + 'kind' => 'valueObject', + 'valueObject' => $valueObject, + 'nullable' => $nullable, + ]; + } + + if ($scalar !== null) { + return [ + 'kind' => 'scalar', + 'scalar' => $scalar, + 'nullable' => $nullable, + ]; + } + + return ['kind' => 'mixed', 'nullable' => $nullable]; + } + + private function hasFromArray(string $class): bool + { + if (! class_exists($class)) { + return false; + } + + if (method_exists($class, 'fromArray')) { + return true; + } + + return in_array(ComposableFromArray::class, Utility::classUsesRecursive($class), true); + } + + /** + * Coerce a JSON-decoded scalar to the declared PHP scalar type. + * + * @param string $target + * @param mixed $value + * @return mixed + */ + private function coerceScalar(string $target, $value) + { + if ($target === 'string') { + if (is_string($value)) { + return $value; + } + if (is_int($value) || is_float($value)) { + return (string) $value; + } + if (is_bool($value)) { + return $value ? 'true' : 'false'; + } + + return $value; + } + + if ($target === 'int') { + if (is_int($value)) { + return $value; + } + if (is_string($value) && is_numeric($value)) { + return (int) $value; + } + if (is_float($value)) { + return (int) $value; + } + + return $value; + } + + if ($target === 'float') { + if (is_float($value)) { + return $value; + } + if (is_int($value)) { + return (float) $value; + } + if (is_string($value) && is_numeric($value)) { + return (float) $value; + } + + return $value; + } + + if ($target === 'bool') { + if (is_bool($value)) { + return $value; + } + + return (bool) $value; + } + + return $value; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/ResourceRegistry.php b/vendor/mollie/mollie-api-php/src/Resources/ResourceRegistry.php new file mode 100644 index 0000000..8a01f9e --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/ResourceRegistry.php @@ -0,0 +1,206 @@ +, array{singular: string, plural: string}> */ + private array $byClass = []; + + /** @var array> */ + private array $byType = []; + + /** + * Default singleton instance for lookups where dependency injection is not wired. + */ + private static ?self $default = null; + + /** + * Optionally allow pre-registration of classes, though defaults cover common resources. + * + * @param array, string> $resources + */ + public function __construct(array $resources = []) + { + $this->setup($resources); + } + + /** + * Get a default singleton instance preloaded with known resources. + */ + public static function default(): self + { + if (! self::$default) { + self::$default = new self; + } + + return self::$default; + } + + /** + * Resolve a resource class for the given type string (singular/plural/alias). + */ + public function for(string $type): ?string + { + $key = Str::kebab($type); + + return $this->byType[$key] ?? null; + } + + /** + * Register or override the mapping for a resource class. + */ + public function register(string $resourceClass, string $plural, ?string $singular = null): void + { + $names = $this->deriveNames($resourceClass, $plural, $singular); + + foreach (array_unique($names) as $name) { + $owner = $this->byType[$name] ?? null; + + if ($owner !== null && $owner !== $resourceClass) { + throw new \InvalidArgumentException("Resource type '{$name}' is already registered to {$owner}."); + } + } + + foreach (array_unique($this->byClass[$resourceClass] ?? []) as $name) { + if (($this->byType[$name] ?? null) === $resourceClass) { + unset($this->byType[$name]); + } + } + + $this->byClass[$resourceClass] = $names; + $this->byType[$names[self::SINGULAR_KEY]] = $resourceClass; + $this->byType[$names[self::PLURAL_KEY]] = $resourceClass; + } + + /** + * Get the names for a class (singular and plural). + * + * @return array{singular: string, plural: string}|null + */ + public function namesOf(string $resourceClass): ?array + { + return Arr::get($this->byClass, $resourceClass); + } + + public function singularOf(string $resourceClass): string + { + if (! $this->isRegistered($resourceClass)) { + $this->throwInvalidArgumentException($resourceClass); + } + + return Arr::get($this->byClass, $resourceClass.'.'.self::SINGULAR_KEY); + } + + /** + * Get the plural (kebab-case) for a resource class. + */ + public function pluralOf(string $resourceClass): string + { + if (! $this->isRegistered($resourceClass)) { + $this->throwInvalidArgumentException($resourceClass); + } + + return Arr::get($this->byClass, $resourceClass.'.'.self::PLURAL_KEY); + } + + public function isRegistered(string $resourceClass): bool + { + return Arr::exists($this->byClass, $resourceClass); + } + + private function setup(array $resources): void + { + $resources = array_merge($this->defaultResources(), $resources); + + foreach ($resources as $resourceClass => $plural) { + $this->register($resourceClass, $plural); + } + } + + /** + * Explicit collection keys for resources that either do not have a collection + * class or where we want to avoid runtime collection key logic. + * Values are canonical kebab-case. + * + * @return array, string> + */ + private function defaultResources(): array + { + return [ + Balance::class => 'balances', + BalanceReport::class => 'balance-reports', + BalanceTransaction::class => 'balance-transactions', + Capability::class => 'capabilities', + Capture::class => 'captures', + Chargeback::class => 'chargebacks', + Client::class => 'clients', + ClientLink::class => 'client-links', + ConnectBalanceTransfer::class => 'connect-balance-transfers', + Customer::class => 'customers', + Invoice::class => 'invoices', + Issuer::class => 'issuers', + Mandate::class => 'mandates', + Method::class => 'methods', + MethodPrice::class => 'method-prices', + Onboarding::class => 'onboardings', + Organization::class => 'organizations', + Partner::class => 'partners', + Payment::class => 'payments', + PaymentLink::class => 'payment-links', + Permission::class => 'permissions', + Payout::class => 'payouts', + Profile::class => 'profiles', + Refund::class => 'refunds', + Route::class => 'routes', + SalesInvoice::class => 'sales-invoices', + Session::class => 'sessions', + Settlement::class => 'settlements', + Subscription::class => 'subscriptions', + Terminal::class => 'terminals', + TerminalPairingCode::class => 'terminal-pairing-codes', + Webhook::class => 'webhooks', + WebhookEvent::class => 'webhook-events', + ]; + } + + /** + * Build derived names for a resource class. + * + * @return array{singular: string, plural: string} + */ + private function deriveNames(string $resourceClass, string $plural, ?string $singular): array + { + $singular = Str::kebab($singular ?? Utility::classBasename($resourceClass)); + + if (empty($plural)) { + $this->throwInvalidArgumentException($resourceClass); + } + + $plural = Str::kebab($plural); + + return [ + self::SINGULAR_KEY => $singular, + self::PLURAL_KEY => $plural, + ]; + } + + private function throwInvalidArgumentException(string $resourceClass): void + { + throw new \InvalidArgumentException($resourceClass.' is not registered'); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/ResourceResolver.php b/vendor/mollie/mollie-api-php/src/Resources/ResourceResolver.php new file mode 100644 index 0000000..01ce7ff --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/ResourceResolver.php @@ -0,0 +1,127 @@ +hydrator = $hydrator; + } + + /** + * Resolve a response into the appropriate resource type. + * + * @return Response|BaseResource|ResourceCollection|LazyCollection|IsWrapper + */ + public function resolve(ResourceHydratableRequest $request, Response $response) + { + $targetResourceClass = $request->getHydratableResourceTarget(); + $wrapper = $request->getHydratableResourceWrapper(); + + if ($targetResourceClass !== null) { + $this->ensureValidTarget($targetResourceClass); + } + + $resolved = $this->resolveTarget($request, $response, $targetResourceClass); + + return $wrapper === null + ? $resolved + : ResourceFactory::createDecoratedResource($resolved, $wrapper->getWrapper()); + } + + /** + * @param class-string|null $targetResourceClass + * @return Response|BaseResource|ResourceCollection|LazyCollection + */ + private function resolveTarget(ResourceHydratableRequest $request, Response $response, ?string $targetResourceClass) + { + if ($targetResourceClass === null) { + return $response; + } + + if ($this->isCollectionTarget($targetResourceClass)) { + $collection = $this->resolveCollection($response, $targetResourceClass); + + return $this->unwrapIterator($request, $collection); + } + + if ($this->isResourceTarget($targetResourceClass)) { + $resource = ResourceFactory::create($response->getConnector(), $targetResourceClass); + + return $this->hydrator->hydrate($resource, $response->json(), $response); + } + + return $response; + } + + private function ensureValidTarget(string $targetResourceClass): void + { + if (! $this->isCollectionTarget($targetResourceClass) && ! $this->isResourceTarget($targetResourceClass)) { + throw new \InvalidArgumentException( + "Hydratable resource class '{$targetResourceClass}' must extend ".BaseResource::class.' or '.ResourceCollection::class.'.' + ); + } + } + + /** + * @param class-string $targetCollectionClass + */ + private function resolveCollection(Response $response, string $targetCollectionClass): ResourceCollection + { + $result = $response->json(); + + $collection = ResourceFactory::createCollection( + $response->getConnector(), + $targetCollectionClass + ); + + $kebabCollectionKey = Config::resourceRegistry()->pluralOf($targetCollectionClass::getResourceClass()); + + $data = isset($result->_embedded->{$kebabCollectionKey}) + ? $result->_embedded->{$kebabCollectionKey} + : $result->_embedded->{Str::snake($kebabCollectionKey)}; + + return $this->hydrator->hydrateCollection( + $collection, + $data, + $response, + $result->_links + ); + } + + private function unwrapIterator(Request $request, ResourceCollection $collection) + { + if ($request instanceof IsIteratable && $request->iteratorEnabled()) { + /** @var CursorCollection $collection */ + return $collection->getAutoIterator($request->iteratesBackwards()); + } + + return $collection; + } + + /** + * @phpstan-assert-if-true class-string $targetResourceClass + */ + private function isCollectionTarget(string $targetResourceClass): bool + { + return is_subclass_of($targetResourceClass, ResourceCollection::class); + } + + private function isResourceTarget(string $targetResourceClass): bool + { + return is_subclass_of($targetResourceClass, BaseResource::class); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/ResourceWrapper.php b/vendor/mollie/mollie-api-php/src/Resources/ResourceWrapper.php new file mode 100644 index 0000000..ff31157 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/ResourceWrapper.php @@ -0,0 +1,53 @@ +wrapped = $wrapped; + + return $this; + } + + /** + * @param mixed $resource + * @return static + */ + public function wrap($resource) + { + return $this->setWrapped($resource); + } + + /** + * @return mixed + */ + public function getWrapped() + { + return $this->wrapped; + } + + public function __get($name) + { + return $this->wrapped->{$name}; + } + + public function __call($name, $arguments) + { + return $this->forwardDecoratedCallTo($this->wrapped, $name, $arguments); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Route.php b/vendor/mollie/mollie-api-php/src/Resources/Route.php new file mode 100644 index 0000000..5e8dfdd --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Route.php @@ -0,0 +1,26 @@ + + */ +class RouteCollection extends ResourceCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'routes'; + + /** + * Resource class name. + */ + public static string $resource = Route::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/SalesInvoice.php b/vendor/mollie/mollie-api-php/src/Resources/SalesInvoice.php new file mode 100644 index 0000000..b81113b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/SalesInvoice.php @@ -0,0 +1,96 @@ +|null */ + public ?array $lines = null; + + public ?string $webhookUrl = null; + + /** + * @var \stdClass|null + */ + public $discount; + + public bool $isEInvoice; + + public Money $amountDue; + + public Money $subtotalAmount; + + public Money $totalAmount; + + public Money $totalVatAmount; + + public Money $discountedSubtotalAmount; + + public string $createdAt; + + public ?string $issuedAt = null; + + public ?string $dueAt = null; + + /** + * @var \stdClass + */ + public $_links; + + public function isDraft(): bool + { + return Utility::equals($this->status, SalesInvoiceStatus::Draft); + } + + public function isIssued(): bool + { + return Utility::equals($this->status, SalesInvoiceStatus::Issued); + } + + public function isPaid(): bool + { + return Utility::equals($this->status, SalesInvoiceStatus::Paid); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/SalesInvoiceCollection.php b/vendor/mollie/mollie-api-php/src/Resources/SalesInvoiceCollection.php new file mode 100644 index 0000000..d282889 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/SalesInvoiceCollection.php @@ -0,0 +1,21 @@ + + */ +class SalesInvoiceCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'sales_invoices'; + + /** + * Resource class name. + */ + public static string $resource = SalesInvoice::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Session.php b/vendor/mollie/mollie-api-php/src/Resources/Session.php new file mode 100644 index 0000000..cce4e3c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Session.php @@ -0,0 +1,85 @@ +status, SessionStatus::Open); + } + + public function isExpired(): bool + { + return Utility::equals($this->status, SessionStatus::Expired); + } + + public function isCompleted(): bool + { + return Utility::equals($this->status, SessionStatus::Completed); + } + + public function getRedirectUrl(): ?string + { + if (empty($this->_links->redirect)) { + return null; + } + + return $this->_links->redirect->href; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Settlement.php b/vendor/mollie/mollie-api-php/src/Resources/Settlement.php new file mode 100644 index 0000000..267ae2d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Settlement.php @@ -0,0 +1,141 @@ +status, SettlementStatus::Open); + } + + public function isPending(): bool + { + return Utility::equals($this->status, SettlementStatus::Pending); + } + + public function isPaidout(): bool + { + return Utility::equals($this->status, SettlementStatus::Paidout); + } + + public function isFailed(): bool + { + return Utility::equals($this->status, SettlementStatus::Failed); + } + + /** + * Retrieve the first page of payments associated with this settlement. + * + * This method performs an API request. Avoid calling it once per settlement + * in loops unless that extra request per item is intentional. + * + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function payments(?int $limit = null, array $parameters = []): PaymentCollection + { + return $this->connector->settlementPayments->pageForId( + $this->id, + array_merge($parameters, ['limit' => $limit]) + ); + } + + /** + * Retrieve the first page of refunds associated with this settlement. + * + * This method performs an API request. Avoid calling it once per settlement + * in loops unless that extra request per item is intentional. + * + * @throws ApiException + */ + public function refunds(?int $limit = null, array $parameters = []): RefundCollection + { + return $this->connector->settlementRefunds->pageForId( + $this->id, + array_merge($parameters, ['limit' => $limit]) + ); + } + + /** + * Retrieve the first page of chargebacks associated with this settlement. + * + * This method performs an API request. Avoid calling it once per settlement + * in loops unless that extra request per item is intentional. + * + * @throws ApiException + */ + public function chargebacks(?int $limit = null, array $parameters = []): ChargebackCollection + { + return $this->connector->settlementChargebacks->pageForId( + $this->id, + array_merge($parameters, ['limit' => $limit]) + ); + } + + /** + * Retrieve the first page of cap associated with this settlement. + * + * This method performs an API request. Avoid calling it once per settlement + * in loops unless that extra request per item is intentional. + * + * @throws ApiException + */ + public function captures(?int $limit = null, array $parameters = []): CaptureCollection + { + return $this->connector->settlementCaptures->pageForId( + $this->id, + array_merge($parameters, ['limit' => $limit]) + ); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/SettlementCollection.php b/vendor/mollie/mollie-api-php/src/Resources/SettlementCollection.php new file mode 100644 index 0000000..938d451 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/SettlementCollection.php @@ -0,0 +1,21 @@ + + */ +class SettlementCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'settlements'; + + /** + * Resource class name. + */ + public static string $resource = Settlement::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Subscription.php b/vendor/mollie/mollie-api-php/src/Resources/Subscription.php new file mode 100644 index 0000000..e5e2fcc --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Subscription.php @@ -0,0 +1,159 @@ + $this->amount, + 'times' => $this->times, + 'startDate' => $this->startDate, + 'webhookUrl' => $this->webhookUrl, + 'description' => $this->description, + 'mandateId' => $this->mandateId, + 'metadata' => $this->metadata, + 'interval' => $this->interval, + ]; + + return $this->connector->subscriptions->update($this->customerId, $this->id, $body); + } + + public function isActive(): bool + { + return Utility::equals($this->status, SubscriptionStatus::Active); + } + + public function isPending(): bool + { + return Utility::equals($this->status, SubscriptionStatus::Pending); + } + + public function isCanceled(): bool + { + return Utility::equals($this->status, SubscriptionStatus::Canceled); + } + + public function isSuspended(): bool + { + return Utility::equals($this->status, SubscriptionStatus::Suspended); + } + + public function isCompleted(): bool + { + return Utility::equals($this->status, SubscriptionStatus::Completed); + } + + /** + * Cancels this subscription. + * + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function cancel(): ?Subscription + { + if (! isset($this->_links->self->href)) { + return $this; + } + + return $this + ->connector + ->send((new CancelSubscriptionRequest( + $this->customerId, + $this->id + ))->test($this->mode === 'test')); + } + + /** + * Get subscription payments. + * + * This method performs an API request. Prefer embedded payments when they + * are already present to avoid one request per subscription in loops. + * + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function payments(): PaymentCollection + { + if (! isset($this->_links->payments->href)) { + return $this->connector->subscriptionPayments->pageFor($this, null, null, ['testmode' => $this->mode === 'test']); + } + + return $this + ->connector + ->send((new DynamicGetRequest($this->_links->payments->href))->setHydratableResource(PaymentCollection::class)); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/SubscriptionCollection.php b/vendor/mollie/mollie-api-php/src/Resources/SubscriptionCollection.php new file mode 100644 index 0000000..fac5e7b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/SubscriptionCollection.php @@ -0,0 +1,21 @@ + + */ +class SubscriptionCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'subscriptions'; + + /** + * Resource class name. + */ + public static string $resource = Subscription::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/Terminal.php b/vendor/mollie/mollie-api-php/src/Resources/Terminal.php new file mode 100644 index 0000000..2aa4f5d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/Terminal.php @@ -0,0 +1,69 @@ +status, TerminalStatus::Pending); + } + + public function isActive(): bool + { + return Utility::equals($this->status, TerminalStatus::Active); + } + + public function isInactive(): bool + { + return Utility::equals($this->status, TerminalStatus::Inactive); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/TerminalCollection.php b/vendor/mollie/mollie-api-php/src/Resources/TerminalCollection.php new file mode 100644 index 0000000..822171c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/TerminalCollection.php @@ -0,0 +1,21 @@ + + */ +class TerminalCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'terminals'; + + /** + * Resource class name. + */ + public static string $resource = Terminal::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/TerminalPairingCode.php b/vendor/mollie/mollie-api-php/src/Resources/TerminalPairingCode.php new file mode 100644 index 0000000..55d35f6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/TerminalPairingCode.php @@ -0,0 +1,110 @@ +status, TerminalPairingCodeStatus::Active); + } + + public function isExpired(): bool + { + return Utility::equals($this->status, TerminalPairingCodeStatus::Expired); + } + + public function isRevoked(): bool + { + return Utility::equals($this->status, TerminalPairingCodeStatus::Revoked); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/TerminalPairingCodeCollection.php b/vendor/mollie/mollie-api-php/src/Resources/TerminalPairingCodeCollection.php new file mode 100644 index 0000000..2190a64 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/TerminalPairingCodeCollection.php @@ -0,0 +1,16 @@ + */ + public array $eventTypes; + + public WebhookStatus|string $status; + + /** Only available once after creation. */ + public ?string $webhookSecret = null; + + public string $mode = 'live'; + + /** + * @var \stdClass + */ + public $_links; + + public function enabled(): bool + { + return Utility::equals($this->status, WebhookStatus::Enabled); + } + + public function disabled(): bool + { + return Utility::equals($this->status, WebhookStatus::Disabled); + } + + public function blocked(): bool + { + return Utility::equals($this->status, WebhookStatus::Blocked); + } + + public function deleted(): bool + { + return Utility::equals($this->status, WebhookStatus::Deleted); + } + + /** + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function update(array $data = []): Webhook + { + $request = UpdateWebhookRequestFactory::new($this->id) + ->withPayload($data) + ->create(); + + /** @var Webhook */ + return $this->connector->send($request->test($this->isInTestmode())); + } + + /** + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function delete(): void + { + $this->connector->send((new DeleteWebhookRequest($this->id))->test($this->isInTestmode())); + } + + /** + * @throws \Mollie\Api\Exceptions\ApiException + */ + public function test(): AnyResource + { + /** @var AnyResource */ + return $this->connector->send((new TestWebhookRequest($this->id))->test($this->isInTestmode())); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/WebhookCollection.php b/vendor/mollie/mollie-api-php/src/Resources/WebhookCollection.php new file mode 100644 index 0000000..823c9d1 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/WebhookCollection.php @@ -0,0 +1,21 @@ + + */ +class WebhookCollection extends CursorCollection +{ + /** + * The name of the collection resource in Mollie's API. + */ + public static string $collectionName = 'webhooks'; + + /** + * Resource class name. + */ + public static string $resource = Webhook::class; +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/WebhookEvent.php b/vendor/mollie/mollie-api-php/src/Resources/WebhookEvent.php new file mode 100644 index 0000000..a66fef9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/WebhookEvent.php @@ -0,0 +1,40 @@ +_embedded->entity ?? null; + } + + public function hasEntity(): bool + { + return ! empty($this->_embedded->entity); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Resources/WrapperResource.php b/vendor/mollie/mollie-api-php/src/Resources/WrapperResource.php new file mode 100644 index 0000000..cb80514 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Resources/WrapperResource.php @@ -0,0 +1,26 @@ +wrapper = $wrapper; + } + + public function getWrapper(): string + { + return $this->wrapper; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/ComposableFromArray.php b/vendor/mollie/mollie-api-php/src/Traits/ComposableFromArray.php new file mode 100644 index 0000000..c7f9fe7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/ComposableFromArray.php @@ -0,0 +1,38 @@ +toArray() : $data; + + $reflection = new ReflectionClass(static::class); + $constructor = $reflection->getConstructor(); + $parameters = $constructor ? $constructor->getParameters() : []; + + return DataCollection::wrap($parameters) + ->map(function (ReflectionParameter $parameter) use ($data) { + $name = $parameter->getName(); + + if (array_key_exists($name, $data)) { + return $data[$name]; + } + + if ($parameter->isDefaultValueAvailable()) { + return $parameter->getDefaultValue(); + } + + return null; + }) + ->pipe(fn (DataCollection $data) => $reflection->newInstanceArgs($data->toArray())); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/ForwardsCalls.php b/vendor/mollie/mollie-api-php/src/Traits/ForwardsCalls.php new file mode 100644 index 0000000..11d865b --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/ForwardsCalls.php @@ -0,0 +1,46 @@ +{$method}(...$parameters); + } + + /** + * Forward a method call to the given object, returning $this if the forwarded call returned itself. + * + * @param mixed $object + * @param string $method + * @param array $parameters + * @return mixed + * + * @throws \BadMethodCallException + */ + protected function forwardDecoratedCallTo($object, $method, $parameters) + { + $result = $this->forwardCallTo($object, $method, $parameters); + + return $result === $object ? $this : $result; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/HandlesAuthentication.php b/vendor/mollie/mollie-api-php/src/Traits/HandlesAuthentication.php new file mode 100644 index 0000000..43e61f2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/HandlesAuthentication.php @@ -0,0 +1,59 @@ +authenticator = new ApiKeyAuthenticator($apiKey); + + return $this; + } + + /** + * @param string $accessToken OAuth access token, starting with 'access_' + * + * @throws ApiException + */ + public function setAccessToken(string $accessToken): self + { + $this->authenticator = new AccessTokenAuthenticator($accessToken); + + return $this; + } + + /** + * @param string $token API key (test_/live_) or OAuth access token (access_) + * + * @throws ApiException + */ + public function setToken(string $token): self + { + if (TokenValidator::isAccessToken($token)) { + return $this->setAccessToken($token); + } + + return $this->setApiKey($token); + } + + public function getAuthenticator(): ?Authenticator + { + return $this->authenticator; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/HandlesDebugging.php b/vendor/mollie/mollie-api-php/src/Traits/HandlesDebugging.php new file mode 100644 index 0000000..10f1731 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/HandlesDebugging.php @@ -0,0 +1,111 @@ +removeSensitiveData(); + + $debugger ??= fn (...$args) => Debugger::symfonyRequestDebugger(...$args); + + $this->middleware()->onRequest(function (PendingRequest $pendingRequest) use ($debugger, $die): PendingRequest { + $debugger($pendingRequest, $pendingRequest->createPsrRequest()); + + if ($die) { + Debugger::die(); + } + + return $pendingRequest; + }, MiddlewarePriority::LOW); + + return $this; + } + + /** + * Enable response debugging with an optional custom debugger. + * + * @param callable|null $debugger Custom response debugger function + * @param bool $die Whether to die after dumping + * @return $this + */ + public function debugResponse(?callable $debugger = null, bool $die = false): self + { + $this->removeSensitiveData(); + + $debugger ??= fn (...$args) => Debugger::symfonyResponseDebugger(...$args); + + $this->middleware()->onResponse(function (Response $response) use ($debugger, $die): Response { + $debugger($response, $response->getPsrResponse()); + + if ($die) { + Debugger::die(); + } + + return $response; + }, MiddlewarePriority::HIGH); + + return $this; + } + + /** + * Remove sensitive data from the request and response. + * + * @return $this + */ + protected function removeSensitiveData(): self + { + if ($this->hasSanitizerMiddleware) { + return $this; + } + + $this->hasSanitizerMiddleware = true; + $sanitizer = new RequestSanitizer; + + $this->middleware()->onFatal(function (MollieException $exception) use ($sanitizer) { + if ($exception instanceof RequestException) { + return $sanitizer->sanitize($exception); + } + + return $exception; + }, MiddlewarePriority::LOW); + + return $this; + } + + /** + * Enable both request and response debugging. + * + * @param bool $die Whether to die after dumping + * @return $this + */ + public function debug(bool $die = false): self + { + return $this + ->debugRequest() + ->debugResponse(null, $die); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/HandlesIdempotency.php b/vendor/mollie/mollie-api-php/src/Traits/HandlesIdempotency.php new file mode 100644 index 0000000..cd98f0a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/HandlesIdempotency.php @@ -0,0 +1,81 @@ +idempotencyKey = $key; + + return $this; + } + + /** + * Retrieve the idempotency key. The idempotency key is a unique string ensuring a request to a + * mutating Mollie endpoint is processed only once. The key is null after the next request is assembled. + */ + public function getIdempotencyKey(): ?string + { + return $this->idempotencyKey; + } + + public function getIdempotencyKeyGenerator(): ?IdempotencyKeyGeneratorContract + { + return $this->idempotencyKeyGenerator; + } + + /** + * Reset the idempotency key. The key is also consumed automatically when the next request is assembled. + * + * @return $this + */ + public function resetIdempotencyKey(): self + { + $this->idempotencyKey = null; + + return $this; + } + + /** + * @return $this + */ + public function setIdempotencyKeyGenerator(IdempotencyKeyGeneratorContract $generator): self + { + $this->idempotencyKeyGenerator = $generator; + + return $this; + } + + /** + * @return $this + */ + public function clearIdempotencyKeyGenerator(): self + { + $this->idempotencyKeyGenerator = null; + + return $this; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/HandlesTestmode.php b/vendor/mollie/mollie-api-php/src/Traits/HandlesTestmode.php new file mode 100644 index 0000000..2a1d917 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/HandlesTestmode.php @@ -0,0 +1,22 @@ +testmode = $testmode; + + return $this; + } + + public function getTestmode(): ?bool + { + return $this->testmode; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/HandlesVersions.php b/vendor/mollie/mollie-api-php/src/Traits/HandlesVersions.php new file mode 100644 index 0000000..383830c --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/HandlesVersions.php @@ -0,0 +1,40 @@ +addVersionString('Mollie/'.MollieApiClient::CLIENT_VERSION); + $this->addVersionString('PHP/'.phpversion()); + + if ($clientVersion = $this->httpClient->version()) { + $this->addVersionString($clientVersion); + } + } + + /** + * @param string $versionString + */ + public function addVersionString($versionString): self + { + $this->versionStrings[] = str_replace([' ', "\t", "\n", "\r"], '-', $versionString); + + return $this; + } + + public function getVersionStrings(): array + { + return $this->versionStrings; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/HasCurrencyConvenienceMethods.php b/vendor/mollie/mollie-api-php/src/Traits/HasCurrencyConvenienceMethods.php new file mode 100644 index 0000000..705e706 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/HasCurrencyConvenienceMethods.php @@ -0,0 +1,329 @@ + BalanceEndpointCollection::class, + 'balanceReports' => BalanceReportEndpointCollection::class, + 'balanceTransactions' => BalanceTransactionEndpointCollection::class, + 'capabilities' => CapabilityEndpointCollection::class, + 'chargebacks' => ChargebackEndpointCollection::class, + 'clients' => ClientEndpointCollection::class, + 'clientLinks' => ClientLinkEndpointCollection::class, + 'connectBalanceTransfers' => ConnectBalanceTransferEndpointCollection::class, + 'customerPayments' => CustomerPaymentsEndpointCollection::class, + 'customers' => CustomerEndpointCollection::class, + 'invoices' => InvoiceEndpointCollection::class, + 'mandates' => MandateEndpointCollection::class, + 'methods' => MethodEndpointCollection::class, + 'methodIssuers' => MethodIssuerEndpointCollection::class, + 'onboarding' => OnboardingEndpointCollection::class, + 'organizationPartners' => OrganizationPartnerEndpointCollection::class, + 'organizations' => OrganizationEndpointCollection::class, + 'payments' => PaymentEndpointCollection::class, + 'paymentRefunds' => PaymentRefundEndpointCollection::class, + 'paymentCaptures' => PaymentCaptureEndpointCollection::class, + 'paymentChargebacks' => PaymentChargebackEndpointCollection::class, + 'paymentLinks' => PaymentLinkEndpointCollection::class, + 'paymentLinkPayments' => PaymentLinkPaymentEndpointCollection::class, + 'paymentRoutes' => PaymentRouteEndpointCollection::class, + 'permissions' => PermissionEndpointCollection::class, + 'payouts' => PayoutEndpointCollection::class, + 'profiles' => ProfileEndpointCollection::class, + 'profileMethods' => ProfileMethodEndpointCollection::class, + 'refunds' => RefundEndpointCollection::class, + 'salesInvoices' => SalesInvoiceEndpointCollection::class, + 'sessions' => SessionEndpointCollection::class, + 'settlementCaptures' => SettlementCaptureEndpointCollection::class, + 'settlementChargebacks' => SettlementChargebackEndpointCollection::class, + 'settlementPayments' => SettlementPaymentEndpointCollection::class, + 'settlementRefunds' => SettlementRefundEndpointCollection::class, + 'settlements' => SettlementEndpointCollection::class, + 'subscriptions' => SubscriptionEndpointCollection::class, + 'subscriptionPayments' => SubscriptionPaymentEndpointCollection::class, + 'terminals' => TerminalEndpointCollection::class, + 'terminalPairingCodes' => TerminalPairingCodeEndpointCollection::class, + 'wallets' => WalletEndpointCollection::class, + 'webhooks' => WebhookEndpointCollection::class, + 'webhookEvents' => WebhookEventEndpointCollection::class, + ]; + + /** + * @param string $url + */ + public function setApiEndpoint($url): self + { + $this->apiEndpoint = rtrim(trim($url), '/'); + + return $this; + } + + public function getApiEndpoint(): string + { + return $this->apiEndpoint; + } + + /** + * Magic getter to access the endpoints. + * + * + * @return mixed + * + * @throws \Exception + */ + public function __get(string $name) + { + if (isset(static::ENDPOINTS[$name])) { + $endpointClass = static::ENDPOINTS[$name]; + + return new $endpointClass($this); + } + + throw new \Exception("Undefined endpoint: $name"); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/HasHeaders.php b/vendor/mollie/mollie-api-php/src/Traits/HasHeaders.php new file mode 100644 index 0000000..9562ec1 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/HasHeaders.php @@ -0,0 +1,23 @@ +headers ??= new ArrayStore($this->defaultHeaders()); + } + + protected function defaultHeaders(): array + { + return []; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/HasJsonPayload.php b/vendor/mollie/mollie-api-php/src/Traits/HasJsonPayload.php new file mode 100644 index 0000000..d40960a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/HasJsonPayload.php @@ -0,0 +1,22 @@ +body ??= new JsonPayloadRepository($this->defaultPayload()); + } + + protected function defaultPayload(): array + { + return []; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/HasMiddleware.php b/vendor/mollie/mollie-api-php/src/Traits/HasMiddleware.php new file mode 100644 index 0000000..ff855b4 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/HasMiddleware.php @@ -0,0 +1,17 @@ +middleware ??= new Middleware; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/HasMode.php b/vendor/mollie/mollie-api-php/src/Traits/HasMode.php new file mode 100644 index 0000000..49237b0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/HasMode.php @@ -0,0 +1,21 @@ +mode === 'test'; + } + + public function withMode(array $options = []): array + { + return array_merge($options, ['testmode' => $this->isInTestmode()]); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/HasQuery.php b/vendor/mollie/mollie-api-php/src/Traits/HasQuery.php new file mode 100644 index 0000000..9f16627 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/HasQuery.php @@ -0,0 +1,23 @@ +queryStore ??= new ArrayStore($this->defaultQuery()); + } + + protected function defaultQuery(): array + { + return []; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/HasRequestProperties.php b/vendor/mollie/mollie-api-php/src/Traits/HasRequestProperties.php new file mode 100644 index 0000000..eb07954 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/HasRequestProperties.php @@ -0,0 +1,11 @@ +origin instanceof Response ? $this->origin : null; + } + + /** + * @return $this + */ + public function setResponse(Response $response) + { + return $this->setOrigin($response); + } + + public function getOrigin(): ?ResourceOrigin + { + return $this->origin; + } + + /** + * @return $this + */ + public function setOrigin(?ResourceOrigin $origin) + { + $this->origin = $origin; + + return $this; + } + + public function getPendingRequest(): ?PendingRequest + { + return $this->origin instanceof Response + ? $this->origin->getPendingRequest() + : null; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/Initializable.php b/vendor/mollie/mollie-api-php/src/Traits/Initializable.php new file mode 100644 index 0000000..ed8a310 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/Initializable.php @@ -0,0 +1,24 @@ +getShortName(); + + if (method_exists($this, $method)) { + $this->{$method}(); + } + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/IsIteratableRequest.php b/vendor/mollie/mollie-api-php/src/Traits/IsIteratableRequest.php new file mode 100644 index 0000000..8d9dec2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/IsIteratableRequest.php @@ -0,0 +1,41 @@ +iteratorEnabled; + } + + public function iteratesBackwards(): bool + { + return $this->iterateBackwards; + } + + public function useIterator(): self + { + $this->iteratorEnabled = true; + + return $this; + } + + public function setIterationDirection(bool $iterateBackwards = false): self + { + $this->iterateBackwards = $iterateBackwards; + + return $this; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/ManagesPsrRequests.php b/vendor/mollie/mollie-api-php/src/Traits/ManagesPsrRequests.php new file mode 100644 index 0000000..fcea118 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/ManagesPsrRequests.php @@ -0,0 +1,63 @@ +factoryCollection; + + $request = $factories->requestFactory->createRequest( + $this->method(), + $this->getUri(), + ); + + foreach ($this->headers()->all() as $headerName => $headerValue) { + $request = $request->withHeader($headerName, $headerValue); + } + + $payload = $this->payload(); + if ($payload instanceof PayloadRepository) { + $request = $request->withBody($payload->toStream($factories->streamFactory)); + } + + return $request; + } + + public function getUri(): UriInterface + { + $uri = $this + ->factoryCollection + ->uriFactory + ->createUri($this->url()); + + $existingQuery = Url::parseQuery($uri->getQuery()); + + return $uri->withQuery( + http_build_query(array_merge($existingQuery, $this->query()->all())) + ); + } + + /** + * Get the factory collection + */ + public function getFactoryCollection(): Factories + { + return $this->factoryCollection; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Traits/SendsRequests.php b/vendor/mollie/mollie-api-php/src/Traits/SendsRequests.php new file mode 100644 index 0000000..f7876e0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Traits/SendsRequests.php @@ -0,0 +1,98 @@ +retryStrategy = $this->retryStrategy ?? new LinearRetryStrategy(); + } + + /** + * Set a custom retry strategy implementation. + */ + public function setRetryStrategy(RetryStrategyContract $strategy): self + { + $this->retryStrategy = $strategy; + + return $this; + } + + /** + * Send a request and return the hydrated resource (for {@see ResourceHydratableRequest}) + * or the raw response payload for other requests. + * + * Static analysers infer the concrete resource type via the `TResource` + * template bound on each concrete request class (see + * `@extends ResourceHydratableRequest` on `GetPaymentRequest` + * for example). Requests that are not hydratable return `null`. + * + * @template TResource of object + * + * @param ResourceHydratableRequest|Request $request + * @return ($request is ResourceHydratableRequest ? TResource : mixed) + */ + public function send(Request $request) + { + $pendingRequest = new PendingRequest($this, $request); + $pendingRequest = $pendingRequest->executeRequestHandlers(); + + $pendingRequest = (new DataTransformer)->transform($pendingRequest); + + $lastException = null; + + for ($attempt = 0; $attempt <= $this->retryStrategy->maxRetries(); $attempt++) { + if ($attempt > 0) { + $delayMs = $this->retryStrategy->delayBeforeAttemptMs($attempt, $lastException); + + usleep($delayMs * 1000); + } + + try { + $response = $this->httpClient->sendRequest($pendingRequest); + + return $pendingRequest->executeResponseHandlers($response); + } catch (MollieException $exception) { + if ($this->retryStrategy->shouldRetry($exception)) { + $lastException = $exception; + + continue; + } + + $exception = $pendingRequest->executeFatalHandlers($exception); + + throw $exception; + } + } + + if ($lastException instanceof MollieException) { + $lastException = $pendingRequest->executeFatalHandlers($lastException); + + throw $lastException; + } + + // This should be unreachable, but keep a safe fallback for static analysis + throw new LogicException('Request failed after retries without a final exception.'); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Types/ApprovalPrompt.php b/vendor/mollie/mollie-api-php/src/Types/ApprovalPrompt.php new file mode 100644 index 0000000..ce33bd2 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Types/ApprovalPrompt.php @@ -0,0 +1,16 @@ + + */ + public static function all(): array + { + return array_map(fn (self $case) => $case->value, self::cases()); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Types/CapabilityStatus.php b/vendor/mollie/mollie-api-php/src/Types/CapabilityStatus.php new file mode 100644 index 0000000..7685ff6 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Types/CapabilityStatus.php @@ -0,0 +1,13 @@ + + */ + public static function all(): array + { + return array_map(fn (self $case) => $case->value, self::cases()); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Types/InvoiceStatus.php b/vendor/mollie/mollie-api-php/src/Types/InvoiceStatus.php new file mode 100644 index 0000000..72ae958 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Types/InvoiceStatus.php @@ -0,0 +1,23 @@ +value) { + return self::Paypal->value; + } + + if ($firstPaymentMethod === PaymentMethod::Bacs->value) { + return self::Bacs->value; + } + + if (in_array($firstPaymentMethod, [ + PaymentMethod::Applepay->value, + PaymentMethod::Creditcard->value, + ], true)) { + return self::Creditcard->value; + } + + return self::Directdebit->value; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Types/MandateQuery.php b/vendor/mollie/mollie-api-php/src/Types/MandateQuery.php new file mode 100644 index 0000000..402ed5a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Types/MandateQuery.php @@ -0,0 +1,20 @@ + + */ + public static function all(): array + { + return array_map(fn (self $case) => $case->value, self::cases()); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Types/TerminalPairingCodeQuery.php b/vendor/mollie/mollie-api-php/src/Types/TerminalPairingCodeQuery.php new file mode 100644 index 0000000..812668e --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Types/TerminalPairingCodeQuery.php @@ -0,0 +1,11 @@ + $key + * @param mixed $value + * + * @example includes(['includes' => ['payment']], 'includes', 'payment') => true + * @example includes(['includes' => ['refund']], 'includes', 'payment') => false + * @example includes(['includes' => ['payment' => 'foo']], 'includes.payment', 'foo') => true + */ + public static function includes(array $array, $key, $value): bool + { + $keys = (array) $key; + + foreach ($keys as $k) { + if (Arr::has($array, $k) && in_array($value, Arr::wrap(Arr::get($array, $k, [])))) { + return true; + } + } + + return false; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Utils/DataTransformer.php b/vendor/mollie/mollie-api-php/src/Utils/DataTransformer.php new file mode 100644 index 0000000..66597e0 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Utils/DataTransformer.php @@ -0,0 +1,129 @@ +query()->isNotEmpty()) { + $transformedQuery = $this->resolveQuery($pendingRequest->query()->all()); + + $pendingRequest->query()->set($transformedQuery); + } + + if (! $pendingRequest->getRequest() instanceof HasPayload) { + return $pendingRequest; + } + + $this->setBackwardsFixFlag($pendingRequest); + + /** @var PayloadRepository $payload */ + $payload = $pendingRequest->payload(); + + if ($payload->isNotEmpty()) { + $transformedPayload = $this->resolve($payload->all()); + + $payload->set($transformedPayload); + } + + return $pendingRequest; + } + + private function resolveQuery(array $query): array + { + return $this->resolve($query, function ($value) { + return $this->transformBooleans($value); + }); + } + + private function resolve(array $values, $mapResolver = null): array + { + return DataCollection::wrap($values) + ->map(function ($value) use ($mapResolver) { + $value = is_callable($mapResolver) ? $mapResolver($value) : $value; + + if ($value instanceof Resolvable) { + return $this->resolve($value->toArray()); + } + + if ($value instanceof Arrayable) { + return array_filter($value->toArray(), fn ($value) => $this->filterEmptyValues($value)); + } + + if ($value instanceof Stringable) { + return (string) $value; + } + + if ($value instanceof BackedEnum) { + return $value->value; + } + + /** + * Backwards compatibility for before Date|DateTime got introduced. + */ + if ($value instanceof DateTimeInterface) { + $format = $this->isCreatePaymentLinkRequest + ? DateTimeInterface::ATOM + : Date::FORMAT; + + return $value->format($format); + } + + return $value; + }) + ->filter(fn ($value) => $this->filterEmptyValues($value)) + ->toArray(); + } + + private function filterEmptyValues($value) + { + // Only null, empty strings and empty arrays should be stripped from the + // request. empty() would also discard the legitimate scalar values 0, + // "0" and 0.0, so we check for the truly-empty cases explicitly. + return $value !== null && $value !== '' && $value !== []; + } + + private function transformBooleans($value) + { + if (is_array($value)) { + return Arr::map($value, function ($value) { + return $this->transformBooleans($value); + }); + } + + if ($value === true) { + return 'true'; + } + + if ($value === false) { + return 'false'; + } + + return $value; + } + + private function setBackwardsFixFlag(PendingRequest $pendingRequest): void + { + $this->isCreatePaymentLinkRequest = $pendingRequest->getRequest() instanceof CreatePaymentLinkRequest; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Utils/Debugger.php b/vendor/mollie/mollie-api-php/src/Utils/Debugger.php new file mode 100644 index 0000000..254aa93 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Utils/Debugger.php @@ -0,0 +1,94 @@ +getHeaders() as $headerName => $value) { + $headers[$headerName] = implode(';', $value); + } + + \Symfony\Component\VarDumper\VarDumper::dump([ + 'request' => get_class($pendingRequest->getRequest()), + 'method' => $psrRequest->getMethod(), + 'uri' => (string) $psrRequest->getUri(), + 'headers' => $headers, + 'body' => (string) $psrRequest->getBody(), + ]); + } + + /** + * Debug a response with Symfony Var Dumper + */ + public static function symfonyResponseDebugger(Response $response, ResponseInterface $psrResponse): void + { + self::ensureSymfonyVarDumperIsAvailable(); + + $headers = []; + + foreach ($psrResponse->getHeaders() as $headerName => $value) { + $headers[$headerName] = implode(';', $value); + } + + \Symfony\Component\VarDumper\VarDumper::dump([ + 'status' => $response->status(), + 'headers' => $headers, + 'body' => json_decode((string) $psrResponse->getBody(), true), + ]); + } + + private static function ensureSymfonyVarDumperIsAvailable(): void + { + self::$symfonyVarDumperExists ??= class_exists(\Symfony\Component\VarDumper\VarDumper::class); + + if (self::$symfonyVarDumperExists) { + return; + } + + throw new RuntimeException( + 'Debugging with the default Symfony debugger requires symfony/var-dumper. Install symfony/var-dumper with Composer or pass a custom debug callback.' + ); + } + + /** + * Kill the application + */ + public static function die(): void + { + $handler = self::$dieHandler ?? static function (): int { + exit(1); + }; + + $handler(); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Utils/Factories.php b/vendor/mollie/mollie-api-php/src/Utils/Factories.php new file mode 100644 index 0000000..a9525d8 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Utils/Factories.php @@ -0,0 +1,33 @@ +requestFactory = $requestFactory; + $this->responseFactory = $responseFactory; + $this->streamFactory = $streamFactory; + $this->uriFactory = $uriFactory; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Utils/Str.php b/vendor/mollie/mollie-api-php/src/Utils/Str.php new file mode 100644 index 0000000..e4d836a --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Utils/Str.php @@ -0,0 +1,65 @@ +|false Returns matches array if pattern matches, false otherwise + */ + public static function match(string $subject, string $pattern) + { + preg_match($pattern, $subject, $matches); + + return empty($matches) ? false : $matches; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Utils/Url.php b/vendor/mollie/mollie-api-php/src/Utils/Url.php new file mode 100644 index 0000000..d55bf82 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Utils/Url.php @@ -0,0 +1,99 @@ + self::encodePathSegment($segment), + explode('/', $path) + )).$suffix; + } + + private static function encodePathSegment(string $segment): string + { + if ($segment === '.') { + return '%2E'; + } + + if ($segment === '..') { + return '%2E%2E'; + } + + return rawurlencode($segment); + } + + /** + * @return array{0: string, 1: string} + */ + private static function splitPathSuffix(string $path): array + { + $queryPosition = strpos($path, '?'); + $fragmentPosition = strpos($path, '#'); + $positions = array_filter( + [$queryPosition, $fragmentPosition], + static fn ($position): bool => $position !== false + ); + + if ($positions === []) { + return [$path, '']; + } + + $suffixPosition = min($positions); + + return [substr($path, 0, $suffixPosition), substr($path, $suffixPosition)]; + } + + /** + * Parses query string into an array + * + * @return array + */ + public static function parseQuery(string $query): array + { + if ($query === '') { + return []; + } + + $parameters = []; + + foreach (explode('&', $query) as $parameter) { + $name = urldecode((string) strtok($parameter, '=')); + $value = urldecode((string) strtok('=')); + + if (! $name || str_starts_with($parameter, '=')) { + continue; + } + + $parameters[$name] = $value; + } + + return $parameters; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Utils/Utility.php b/vendor/mollie/mollie-api-php/src/Utils/Utility.php new file mode 100644 index 0000000..b595bad --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Utils/Utility.php @@ -0,0 +1,169 @@ +value : $value; + $expectedValue = $expected instanceof BackedEnum ? $expected->value : $expected; + + return $value === $expectedValue; + } + + /** + * Get the class basename from an object or class string. + * + * @param object|class-string $class + */ + public static function classBasename($class): string + { + $class = is_object($class) ? get_class($class) : $class; + + return basename(str_replace('\\', '/', $class)); + } + + /** + * Returns all traits used by a class, its parent classes and trait of their traits. + * + * @param object|class-string $class + * @return array + */ + public static function classUsesRecursive($class): array + { + if (is_object($class)) { + $class = get_class($class); + } + + $results = []; + + foreach (array_reverse(class_parents($class)) + [$class => $class] as $class) { + $results += static::traitUsesRecursive($class); + } + + return array_unique($results); + } + + /** + * Returns all traits used by a trait and its traits. + * + * @param class-string $trait + * @return array + */ + public static function traitUsesRecursive(string $trait): array + { + /** @var array $traits */ + $traits = class_uses($trait) ?: []; + + foreach ($traits as $trait) { + $traits += static::traitUsesRecursive($trait); + } + + return $traits; + } + + /** + * Get the properties of a class. + * + * @param string|class-string $class + * @param int $flag + * @return ReflectionProperty[] + */ + public static function getProperties($class, $flag = ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PRIVATE): array + { + $reflection = new ReflectionClass($class); + + return $reflection->getProperties($flag); + } + + /** + * Filter out the properties that are not part of the given class. + * + * @param string|class-string $class + */ + public static function filterByProperties($class, array $array): array + { + $properties = array_map( + fn (ReflectionProperty $prop) => $prop->getName(), + static::getProperties($class) + ); + + return array_filter( + $array, + fn ($key) => ! in_array($key, $properties, true), + ARRAY_FILTER_USE_KEY + ); + } + + /** + * Compose a value to a new form if it is truthy. + * + * @param mixed $value + * @param string|callable $resolver + * @param string|null $composableClass + * @param mixed $default + * @return mixed + */ + public static function transform($value, $resolver, $composableClass = null, $default = null) + { + /** + * If the third argument is a string and the class does not exist, + * it is assumed that the third argument is the default value. + */ + if (func_num_args() === 3 && is_string($composableClass) && ! class_exists($composableClass)) { + $default = $composableClass; + $composableClass = null; + } + + if (is_string($resolver)) { + $composableClass = $resolver; + $resolver = fn ($value) => new $resolver($value); + } + + // If the value is an instance of the target class, return it. + if (is_object($value) && $composableClass && $value instanceof $composableClass) { + return $value; + } + + return (bool) $value ? $resolver($value) : $default; + } + + /** + * Extract a boolean value if not already a boolean. + * + * @param mixed $value + */ + public static function extractBool($value, string $key, bool $default = false): bool + { + return is_bool($value) + ? $value + : Arr::get($value, $key, $default); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Webhooks/Events/BalanceTransactionCreated.php b/vendor/mollie/mollie-api-php/src/Webhooks/Events/BalanceTransactionCreated.php new file mode 100644 index 0000000..deafe45 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Webhooks/Events/BalanceTransactionCreated.php @@ -0,0 +1,15 @@ +id = $id; + $this->entityId = $entityId; + $this->createdAt = $createdAt; + $this->links = $links; + $this->entity = $entity; + $this->signature = $signature; + $this->receivedAt = $receivedAt ?? new DateTimeImmutable; + } + + abstract public static function type(): string; + + public function entity(): WebhookEntity + { + return $this->getEntitySafely(); + } + + public function entityData(?string $key = null): mixed + { + return $this->getEntitySafely()->getData($key); + } + + /** + * Hydrate the embedded entity into a fully-typed SDK resource, + * propagating the rich webhook origin (event id, signature, + * received-at). Throws if the webhook delivery was "simple" and + * carried no embedded entity. + */ + public function asResource(Connector $connector): BaseResource + { + return $this->entity()->asResource( + $connector, + new WebhookSnapshotOrigin( + $connector, + $this->id, + $this->signature, + $this->receivedAt + ) + ); + } + + private function getEntitySafely(): WebhookEntity + { + $this->guardAgainstMissingEntity(); + + /** @var WebhookEntity $entity */ + $entity = $this->entity; + + return $entity; + } + + private function guardAgainstMissingEntity() + { + if (! $this->entity) { + throw new \Exception('Event entity not found. Make sure to subscribe to full event payloads.'); + } + } +} diff --git a/vendor/mollie/mollie-api-php/src/Webhooks/Events/BusinessAccountTransferBlocked.php b/vendor/mollie/mollie-api-php/src/Webhooks/Events/BusinessAccountTransferBlocked.php new file mode 100644 index 0000000..6852e4d --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Webhooks/Events/BusinessAccountTransferBlocked.php @@ -0,0 +1,15 @@ +signingSecrets = Arr::wrap($signingSecrets); + } + + /** + * Static method for simpler usage. + * + * @param RequestInterface|string $input PSR-7 request or raw payload + * @param string|string[] $signingSecrets One or more signing secrets + * @param string|string[]|null $signatures Required if $input is a string payload + * @return bool True if valid signature or legacy webhook + * + * @throws InvalidSignatureException If all signatures are invalid + */ + public static function validate($input, $signingSecrets, $signatures = null): bool + { + $verifier = new self($signingSecrets); + + if ($input instanceof RequestInterface) { + return $verifier->validateRequest($input); + } + + if (is_string($input) && ($signatures !== null)) { + return $verifier->validatePayload($input, $signatures); + } + + throw new InvalidSignatureException('Unsupported input type'); + } + + /** + * Verify a PSR-7 compatible request. + * + * @param RequestInterface $request The PSR-7 request + * @return bool True if valid, false if legacy webhook (no signature) + * + * @throws InvalidSignatureException If signature validation fails + */ + public function validateRequest(RequestInterface $request): bool + { + $body = (string) $request->getBody(); + $signatures = $request->getHeader(self::SIGNATURE_HEADER); + + if (empty($signatures)) { + // No signatures found - treat as legacy webhook + return false; + } + + return $this->validateSignatures($body, $signatures); + } + + /** + * Verify webhook payload with provided signature(s). + * + * @param string $payload Raw request body + * @param string|string[]|null $signatures One or more signatures to validate + * @return bool True if any signature is valid + * + * @throws InvalidSignatureException If all signatures are invalid + */ + public function validatePayload(string $payload, $signatures): bool + { + $signatures = is_array($signatures) ? $signatures : array_filter([$signatures]); + + if (empty($signatures)) { + // No signatures found - treat as legacy webhook + return false; + } + + return $this->validateSignatures($payload, $signatures); + } + + /** + * Verify signatures against all configured signing secrets. + * + * @param string $payload The raw request payload + * @param array $signatures The signatures to verify + * @return bool True if any signature matches any secret + * + * @throws InvalidSignatureException If all signatures are invalid + */ + private function validateSignatures(string $payload, array $signatures): bool + { + $validSignatureFound = DataCollection::collect($signatures) + ->contains(fn ($signatureHeader) => $this->isValidSignature( + $this->extractSignature($signatureHeader), + $payload + )); + + if (! $validSignatureFound && ! empty($signatures)) { + throw new InvalidSignatureException('Invalid webhook signature'); + } + + return $validSignatureFound; + } + + /** + * Extract the raw signature from a signature header. + */ + private function extractSignature(string $signatureHeader): string + { + return strpos($signatureHeader, self::SIGNATURE_PREFIX) === 0 + ? substr($signatureHeader, strlen(self::SIGNATURE_PREFIX)) + : $signatureHeader; + } + + /** + * Check if a signature is valid against any of our signing secrets. + */ + private function isValidSignature(string $providedSignature, string $payload): bool + { + return DataCollection::collect($this->signingSecrets) + ->contains(function ($secret) use ($payload, $providedSignature) { + $expectedSignature = self::createSignature($payload, $secret); + + return hash_equals($expectedSignature, $providedSignature); + }); + } + + /** + * Create a signature for a given payload and secret. + */ + public static function createSignature(string $payload, string $secret): string + { + return hash_hmac('sha256', $payload, $secret); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Webhooks/SnapshotHydrator.php b/vendor/mollie/mollie-api-php/src/Webhooks/SnapshotHydrator.php new file mode 100644 index 0000000..7ea4946 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Webhooks/SnapshotHydrator.php @@ -0,0 +1,37 @@ +amount->value` (object notation, used + * throughout the docs and recipes) work identically across origins. + */ +final class SnapshotHydrator +{ + private ResourceHydrator $inner; + + public function __construct(?ResourceHydrator $inner = null) + { + $this->inner = $inner ?? new ResourceHydrator; + } + + /** + * @param array $snapshot + */ + public function hydrate( + BaseResource $resource, + array $snapshot, + WebhookSnapshotOrigin $origin + ): BaseResource { + $tree = json_decode(json_encode($snapshot)); + + return $this->inner->hydrate($resource, $tree, $origin); + } +} diff --git a/vendor/mollie/mollie-api-php/src/Webhooks/WebhookEntity.php b/vendor/mollie/mollie-api-php/src/Webhooks/WebhookEntity.php new file mode 100644 index 0000000..108e8b9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Webhooks/WebhookEntity.php @@ -0,0 +1,102 @@ +resourceType = $resourceType; + $this->id = $id; + $this->data = $data; + } + + public function isInTestmode(): bool + { + return $this->getData('mode') === 'test'; + } + + /** + * Create an entity representation from webhook embedded entity data. + * + * @param array|object $entityData + */ + public static function create($entityData): WebhookEntity + { + $data = Utility::transform($entityData, fn ($data) => is_object($data) ? (array) $data : $data, null, []); + + $resourceType = Arr::get($data, 'resource'); + $id = Arr::get($data, 'id'); + + return new WebhookEntity($resourceType, $id, $data); + } + + public function getResourceType(): string + { + return $this->resourceType; + } + + public function getId(): string + { + return $this->id; + } + + /** + * @return mixed + */ + public function getData(?string $key = null) + { + if ($key) { + return Arr::get($this->data, $key); + } + + return $this->data; + } + + /** + * Hydrate this entity into a fully-typed SDK resource using the embedded + * snapshot. No HTTP call is made — the signed webhook payload already + * contains the full resource state at event time. + * + * The caller may supply a pre-built {@see WebhookSnapshotOrigin} to + * record real event metadata (id, signature, received-at). When omitted + * a null-signature fallback origin is constructed so ad-hoc or test + * usages outside the {@see WebhookEventMapper} flow keep working. + */ + public function asResource(Connector $connector, ?WebhookSnapshotOrigin $origin = null): BaseResource + { + $targetClass = $this->resolveTargetResourceClass(); + $resource = ResourceFactory::create($connector, $targetClass); + + $origin = $origin ?? new WebhookSnapshotOrigin( + $connector, + 'unknown', + null, + new DateTimeImmutable + ); + + return (new SnapshotHydrator)->hydrate($resource, $this->data, $origin); + } + + private function resolveTargetResourceClass(): string + { + return Config::resourceRegistry()->for($this->resourceType) ?? AnyResource::class; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Webhooks/WebhookEventMapper.php b/vendor/mollie/mollie-api-php/src/Webhooks/WebhookEventMapper.php new file mode 100644 index 0000000..5a189e7 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Webhooks/WebhookEventMapper.php @@ -0,0 +1,214 @@ +> */ + private array $map; + + public function __construct(array $map = []) + { + $this->setup($map); + } + + /** + * Process incoming webhook payload and create the appropriate event handler. + * + * @param array|string $payload The raw webhook payload from POST request + * @param string|null $signature Optional X-Mollie-Signature header value, + * threaded through to the resulting event so downstream code can + * inspect webhook provenance without re-validating. + * @return BaseEvent The specific event handler + * @throws \InvalidArgumentException If payload is invalid + */ + public function processPayload($payload, ?string $signature = null): BaseEvent + { + if (is_string($payload)) { + $payload = json_decode($payload, true); + } + + $this->validatePayload($payload); + + return $this->resolveEvent( + Arr::get($payload, 'id'), + Arr::get($payload, 'type'), + Arr::get($payload, 'entityId'), + Utility::transform(Arr::get($payload, 'createdAt'), fn (string $timestamp) => new DateTime($timestamp), DateTime::class), + (object) (Arr::get($payload, '_links') ?? []), + $this->createWebhookEntityFromPayload($payload), + $signature, + new DateTimeImmutable + ); + } + + /** + * Register or override a mapping for a given type string. + */ + public function register(string $type, string $handlerClass): void + { + $this->map[$type] = $handlerClass; + } + + /** + * Resolve the concrete event handler for a webhook event. + * + * @return BaseEvent + */ + public function resolveEvent( + string $id, + string $type, + string $entityId, + DateTime $createdAt, + object $links, + ?WebhookEntity $entity = null, + ?string $signature = null, + ?DateTimeImmutable $receivedAt = null + ): BaseEvent { + if (! Arr::exists($this->map, $type)) { + throw new \InvalidArgumentException("Unsupported event type: {$type}"); + } + + /** @var class-string $class */ + $class = Arr::get($this->map, $type); + + return new $class( + $id, + $entityId, + $createdAt, + $links, + $entity, + $signature, + $receivedAt ?? new DateTimeImmutable + ); + } + + private function setup(array $map): void + { + $this->map = array_merge([ + PaymentLinkPaid::type() => PaymentLinkPaid::class, + BalanceTransactionCreated::type() => BalanceTransactionCreated::class, + PayoutInitiated::type() => PayoutInitiated::class, + PayoutProcessingAtBank::type() => PayoutProcessingAtBank::class, + PayoutCompleted::type() => PayoutCompleted::class, + PayoutCanceled::type() => PayoutCanceled::class, + PayoutFailed::type() => PayoutFailed::class, + ConnectBalanceTransferFailed::type() => ConnectBalanceTransferFailed::class, + ConnectBalanceTransferSucceeded::type() => ConnectBalanceTransferSucceeded::class, + DisputeCreated::type() => DisputeCreated::class, + DisputeResolved::type() => DisputeResolved::class, + DisputeUpdated::type() => DisputeUpdated::class, + FileAccepted::type() => FileAccepted::class, + FileRejected::type() => FileRejected::class, + FileFailed::type() => FileFailed::class, + UnmatchedCreditTransferReceived::type() => UnmatchedCreditTransferReceived::class, + UnmatchedCreditTransferMatched::type() => UnmatchedCreditTransferMatched::class, + UnmatchedCreditTransferReturned::type() => UnmatchedCreditTransferReturned::class, + UnmatchedCreditTransferExpired::type() => UnmatchedCreditTransferExpired::class, + BusinessAccountTransferRequested::type() => BusinessAccountTransferRequested::class, + BusinessAccountTransferInitiated::type() => BusinessAccountTransferInitiated::class, + BusinessAccountTransferPendingReview::type() => BusinessAccountTransferPendingReview::class, + BusinessAccountTransferProcessed::type() => BusinessAccountTransferProcessed::class, + BusinessAccountTransferFailed::type() => BusinessAccountTransferFailed::class, + BusinessAccountTransferBlocked::type() => BusinessAccountTransferBlocked::class, + BusinessAccountTransferReturned::type() => BusinessAccountTransferReturned::class, + SalesInvoiceCreated::type() => SalesInvoiceCreated::class, + SalesInvoiceIssued::type() => SalesInvoiceIssued::class, + SalesInvoiceCanceled::type() => SalesInvoiceCanceled::class, + SalesInvoicePaid::type() => SalesInvoicePaid::class, + ProfileCreated::type() => ProfileCreated::class, + ProfileVerified::type() => ProfileVerified::class, + ProfileBlocked::type() => ProfileBlocked::class, + ProfileDeleted::type() => ProfileDeleted::class, + ], $map); + } + + /** + * Validate that the payload contains required fields. + * + * @param array $payload + * @throws \InvalidArgumentException + */ + private function validatePayload(array $payload): void + { + $requiredFields = ['id', 'type', 'entityId', 'createdAt']; + + foreach ($requiredFields as $field) { + if (! Arr::exists($payload, $field) || empty(Arr::get($payload, $field))) { + throw new \InvalidArgumentException("Missing or empty required field: {$field}"); + } + } + } + + /** + * Create a webhook entity from the embedded data in the payload. + * + * Mollie keys the embedded resource under `_embedded.entity`. + * Iteration is key-agnostic so any future schema tweak (additional + * `_embedded` sub-blocks, renamed key) cannot silently break + * webhook handling; only candidates carrying `id` and `resource` + * are eligible. + * + * @param array $payload + * @return WebhookEntity|null + */ + private function createWebhookEntityFromPayload(array $payload): ?WebhookEntity + { + $embedded = Arr::get($payload, '_embedded', []); + + if (! is_array($embedded)) { + return null; + } + + foreach ($embedded as $candidate) { + if (is_array($candidate) && isset($candidate['id'], $candidate['resource'])) { + return WebhookEntity::create($candidate); + } + } + + return null; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Webhooks/WebhookEventType.php b/vendor/mollie/mollie-api-php/src/Webhooks/WebhookEventType.php new file mode 100644 index 0000000..ca5eea9 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Webhooks/WebhookEventType.php @@ -0,0 +1,134 @@ + + */ + public static function getAll(): array + { + return [ + self::PAYMENT_LINK_PAID, + self::BALANCE_TRANSACTION_CREATED, + self::PAYOUT_INITIATED, + self::PAYOUT_PROCESSING_AT_BANK, + self::PAYOUT_COMPLETED, + self::PAYOUT_CANCELED, + self::PAYOUT_FAILED, + self::CONNECT_BALANCE_TRANSFER_FAILED, + self::CONNECT_BALANCE_TRANSFER_SUCCEEDED, + self::DISPUTE_CREATED, + self::DISPUTE_RESOLVED, + self::DISPUTE_UPDATED, + self::FILE_ACCEPTED, + self::FILE_REJECTED, + self::FILE_FAILED, + self::UNMATCHED_CREDIT_TRANSFER_RECEIVED, + self::UNMATCHED_CREDIT_TRANSFER_MATCHED, + self::UNMATCHED_CREDIT_TRANSFER_RETURNED, + self::UNMATCHED_CREDIT_TRANSFER_EXPIRED, + self::BUSINESS_ACCOUNT_TRANSFER_REQUESTED, + self::BUSINESS_ACCOUNT_TRANSFER_INITIATED, + self::BUSINESS_ACCOUNT_TRANSFER_PENDING_REVIEW, + self::BUSINESS_ACCOUNT_TRANSFER_PROCESSED, + self::BUSINESS_ACCOUNT_TRANSFER_FAILED, + self::BUSINESS_ACCOUNT_TRANSFER_BLOCKED, + self::BUSINESS_ACCOUNT_TRANSFER_RETURNED, + self::SALES_INVOICE_CREATED, + self::SALES_INVOICE_ISSUED, + self::SALES_INVOICE_CANCELED, + self::SALES_INVOICE_PAID, + self::PROFILE_CREATED, + self::PROFILE_VERIFIED, + self::PROFILE_BLOCKED, + self::PROFILE_DELETED, + self::ALL, + ]; + } +} diff --git a/vendor/mollie/mollie-api-php/src/Webhooks/WebhookSnapshotOrigin.php b/vendor/mollie/mollie-api-php/src/Webhooks/WebhookSnapshotOrigin.php new file mode 100644 index 0000000..76db813 --- /dev/null +++ b/vendor/mollie/mollie-api-php/src/Webhooks/WebhookSnapshotOrigin.php @@ -0,0 +1,56 @@ +connector = $connector; + $this->eventId = $eventId; + $this->signature = $signature; + $this->receivedAt = $receivedAt; + } + + public function getConnector(): Connector + { + return $this->connector; + } + + public function getEventId(): string + { + return $this->eventId; + } + + public function getSignature(): ?string + { + return $this->signature; + } + + public function getReceivedAt(): DateTimeImmutable + { + return $this->receivedAt; + } +} diff --git a/vendor/mollie/mollie-api-php/tools/generate-currency-trait.php b/vendor/mollie/mollie-api-php/tools/generate-currency-trait.php new file mode 100644 index 0000000..3f0029e --- /dev/null +++ b/vendor/mollie/mollie-api-php/tools/generate-currency-trait.php @@ -0,0 +1,89 @@ + factory method name. + * + * Keep the list in sync with the Mollie supported-currency list. Method names + * default to the lowercase ISO code; EUR is special-cased to `euro` for + * historical readability. + */ +$currencies = [ + 'AED' => 'aed', + 'AUD' => 'aud', + 'BGN' => 'bgn', + 'BRL' => 'brl', + 'CAD' => 'cad', + 'CHF' => 'chf', + 'CZK' => 'czk', + 'DKK' => 'dkk', + 'EUR' => 'euro', + 'GBP' => 'gbp', + 'HKD' => 'hkd', + 'HUF' => 'huf', + 'ILS' => 'ils', + 'ISK' => 'isk', + 'JPY' => 'jpy', + 'MXN' => 'mxn', + 'MYR' => 'myr', + 'NOK' => 'nok', + 'NZD' => 'nzd', + 'PHP' => 'php', + 'PLN' => 'pln', + 'RON' => 'ron', + 'RUB' => 'rub', + 'SEK' => 'sek', + 'SGD' => 'sgd', + 'THB' => 'thb', + 'TWD' => 'twd', + 'USD' => 'usd', + 'ZAR' => 'zar', +]; + +$methods = []; +foreach ($currencies as $code => $method) { + $methods[] = <<createRequest('GET', 'http://tnyholm.se'); +$stream = $psr17Factory->createStream('foobar'); +``` + +### Sending a request + +With [HTTPlug](http://httplug.io/) or any other PSR-18 (HTTP client) you may send +requests like: + +```bash +composer require kriswallsmith/buzz +``` + +```php +$psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory(); +$psr18Client = new \Buzz\Client\Curl($psr17Factory); + +$request = $psr17Factory->createRequest('GET', 'http://tnyholm.se'); +$response = $psr18Client->sendRequest($request); +``` + +### Create server requests + +The [`nyholm/psr7-server`](https://github.com/Nyholm/psr7-server) package can be used +to create server requests from PHP superglobals. + +```bash +composer require nyholm/psr7-server +``` + +```php +$psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory(); + +$creator = new \Nyholm\Psr7Server\ServerRequestCreator( + $psr17Factory, // ServerRequestFactory + $psr17Factory, // UriFactory + $psr17Factory, // UploadedFileFactory + $psr17Factory // StreamFactory +); + +$serverRequest = $creator->fromGlobals(); +``` + +### Emitting a response + +```bash +composer require laminas/laminas-httphandlerrunner +``` + +```php +$psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory(); + +$responseBody = $psr17Factory->createStream('Hello world'); +$response = $psr17Factory->createResponse(200)->withBody($responseBody); +(new \Laminas\HttpHandlerRunner\Emitter\SapiEmitter())->emit($response); +``` + +## Our goal + +This package is currently maintained by [Tobias Nyholm](http://nyholm.se) and +[Martijn van der Ven](https://vanderven.se/martijn/). They have decided that the +goal of this library should be to provide a super strict implementation of +[PSR-7](https://www.php-fig.org/psr/psr-7/) that is blazing fast. + +The package will never include any extra features nor helper methods. All our classes +and functions exist because they are required to fulfill the PSR-7 specification. diff --git a/vendor/nyholm/psr7/composer.json b/vendor/nyholm/psr7/composer.json new file mode 100644 index 0000000..c607615 --- /dev/null +++ b/vendor/nyholm/psr7/composer.json @@ -0,0 +1,49 @@ +{ + "name": "nyholm/psr7", + "description": "A fast PHP7 implementation of PSR-7", + "license": "MIT", + "keywords": ["psr-7", "psr-17"], + "homepage": "https://tnyholm.se", + "authors": [ + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com" + }, + { + "name": "Martijn van der Ven", + "email": "martijn@vanderven.se" + } + ], + "require": { + "php": ">=7.2", + "psr/http-message": "^1.1 || ^2.0", + "psr/http-factory": "^1.0" + }, + "require-dev": { + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.4", + "php-http/message-factory": "^1.0", + "php-http/psr7-integration-tests": "^1.0", + "http-interop/http-factory-tests": "^0.9", + "symfony/error-handler": "^4.4" + }, + "provide": { + "php-http/message-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0", + "psr/http-factory-implementation": "1.0" + }, + "autoload": { + "psr-4": { + "Nyholm\\Psr7\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\Nyholm\\Psr7\\": "tests/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.8-dev" + } + } +} diff --git a/vendor/nyholm/psr7/src/Factory/HttplugFactory.php b/vendor/nyholm/psr7/src/Factory/HttplugFactory.php new file mode 100644 index 0000000..cc9285d --- /dev/null +++ b/vendor/nyholm/psr7/src/Factory/HttplugFactory.php @@ -0,0 +1,53 @@ + + * @author Martijn van der Ven + * + * @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md + * + * @deprecated since version 1.8, use Psr17Factory instead + */ +class HttplugFactory implements MessageFactory, StreamFactory, UriFactory +{ + public function createRequest($method, $uri, array $headers = [], $body = null, $protocolVersion = '1.1'): RequestInterface + { + return new Request($method, $uri, $headers, $body, $protocolVersion); + } + + public function createResponse($statusCode = 200, $reasonPhrase = null, array $headers = [], $body = null, $version = '1.1'): ResponseInterface + { + return new Response((int) $statusCode, $headers, $body, $version, $reasonPhrase); + } + + public function createStream($body = null): StreamInterface + { + return Stream::create($body ?? ''); + } + + public function createUri($uri = ''): UriInterface + { + if ($uri instanceof UriInterface) { + return $uri; + } + + return new Uri($uri); + } +} diff --git a/vendor/nyholm/psr7/src/Factory/Psr17Factory.php b/vendor/nyholm/psr7/src/Factory/Psr17Factory.php new file mode 100644 index 0000000..2fa98be --- /dev/null +++ b/vendor/nyholm/psr7/src/Factory/Psr17Factory.php @@ -0,0 +1,78 @@ + + * @author Martijn van der Ven + * + * @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md + */ +class Psr17Factory implements RequestFactoryInterface, ResponseFactoryInterface, ServerRequestFactoryInterface, StreamFactoryInterface, UploadedFileFactoryInterface, UriFactoryInterface +{ + public function createRequest(string $method, $uri): RequestInterface + { + return new Request($method, $uri); + } + + public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface + { + if (2 > \func_num_args()) { + // This will make the Response class to use a custom reasonPhrase + $reasonPhrase = null; + } + + return new Response($code, [], null, '1.1', $reasonPhrase); + } + + public function createStream(string $content = ''): StreamInterface + { + return Stream::create($content); + } + + public function createStreamFromFile(string $filename, string $mode = 'r'): StreamInterface + { + if ('' === $filename) { + throw new \RuntimeException('Path cannot be empty'); + } + + if (false === $resource = @\fopen($filename, $mode)) { + if ('' === $mode || false === \in_array($mode[0], ['r', 'w', 'a', 'x', 'c'], true)) { + throw new \InvalidArgumentException(\sprintf('The mode "%s" is invalid.', $mode)); + } + + throw new \RuntimeException(\sprintf('The file "%s" cannot be opened: %s', $filename, \error_get_last()['message'] ?? '')); + } + + return Stream::create($resource); + } + + public function createStreamFromResource($resource): StreamInterface + { + return Stream::create($resource); + } + + public function createUploadedFile(StreamInterface $stream, ?int $size = null, int $error = \UPLOAD_ERR_OK, ?string $clientFilename = null, ?string $clientMediaType = null): UploadedFileInterface + { + if (null === $size) { + $size = $stream->getSize(); + } + + return new UploadedFile($stream, $size, $error, $clientFilename, $clientMediaType); + } + + public function createUri(string $uri = ''): UriInterface + { + return new Uri($uri); + } + + public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface + { + return new ServerRequest($method, $uri, [], null, '1.1', $serverParams); + } +} diff --git a/vendor/nyholm/psr7/src/MessageTrait.php b/vendor/nyholm/psr7/src/MessageTrait.php new file mode 100644 index 0000000..7d02383 --- /dev/null +++ b/vendor/nyholm/psr7/src/MessageTrait.php @@ -0,0 +1,235 @@ + + * @author Martijn van der Ven + * + * @internal should not be used outside of Nyholm/Psr7 as it does not fall under our BC promise + */ +trait MessageTrait +{ + /** @var array Map of all registered headers, as original name => array of values */ + private $headers = []; + + /** @var array Map of lowercase header name => original name at registration */ + private $headerNames = []; + + /** @var string */ + private $protocol = '1.1'; + + /** @var StreamInterface|null */ + private $stream; + + public function getProtocolVersion(): string + { + return $this->protocol; + } + + /** + * @return static + */ + public function withProtocolVersion($version): MessageInterface + { + if (!\is_scalar($version)) { + throw new \InvalidArgumentException('Protocol version must be a string'); + } + + if ($this->protocol === $version) { + return $this; + } + + $new = clone $this; + $new->protocol = (string) $version; + + return $new; + } + + public function getHeaders(): array + { + return $this->headers; + } + + public function hasHeader($header): bool + { + return isset($this->headerNames[\strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')]); + } + + public function getHeader($header): array + { + if (!\is_string($header)) { + throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string'); + } + + $header = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); + if (!isset($this->headerNames[$header])) { + return []; + } + + $header = $this->headerNames[$header]; + + return $this->headers[$header]; + } + + public function getHeaderLine($header): string + { + return \implode(', ', $this->getHeader($header)); + } + + /** + * @return static + */ + public function withHeader($header, $value): MessageInterface + { + $value = $this->validateAndTrimHeader($header, $value); + $normalized = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); + + $new = clone $this; + if (isset($new->headerNames[$normalized])) { + unset($new->headers[$new->headerNames[$normalized]]); + } + $new->headerNames[$normalized] = $header; + $new->headers[$header] = $value; + + return $new; + } + + /** + * @return static + */ + public function withAddedHeader($header, $value): MessageInterface + { + if (!\is_string($header) || '' === $header) { + throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string'); + } + + $new = clone $this; + $new->setHeaders([$header => $value]); + + return $new; + } + + /** + * @return static + */ + public function withoutHeader($header): MessageInterface + { + if (!\is_string($header)) { + throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string'); + } + + $normalized = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); + if (!isset($this->headerNames[$normalized])) { + return $this; + } + + $header = $this->headerNames[$normalized]; + $new = clone $this; + unset($new->headers[$header], $new->headerNames[$normalized]); + + return $new; + } + + public function getBody(): StreamInterface + { + if (null === $this->stream) { + $this->stream = Stream::create(''); + } + + return $this->stream; + } + + /** + * @return static + */ + public function withBody(StreamInterface $body): MessageInterface + { + if ($body === $this->stream) { + return $this; + } + + $new = clone $this; + $new->stream = $body; + + return $new; + } + + private function setHeaders(array $headers): void + { + foreach ($headers as $header => $value) { + if (\is_int($header)) { + // If a header name was set to a numeric string, PHP will cast the key to an int. + // We must cast it back to a string in order to comply with validation. + $header = (string) $header; + } + $value = $this->validateAndTrimHeader($header, $value); + $normalized = \strtr($header, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); + if (isset($this->headerNames[$normalized])) { + $header = $this->headerNames[$normalized]; + $this->headers[$header] = \array_merge($this->headers[$header], $value); + } else { + $this->headerNames[$normalized] = $header; + $this->headers[$header] = $value; + } + } + } + + /** + * Make sure the header complies with RFC 7230. + * + * Header names must be a non-empty string consisting of token characters. + * + * Header values must be strings consisting of visible characters with all optional + * leading and trailing whitespace stripped. This method will always strip such + * optional whitespace. Note that the method does not allow folding whitespace within + * the values as this was deprecated for almost all instances by the RFC. + * + * header-field = field-name ":" OWS field-value OWS + * field-name = 1*( "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." / "^" + * / "_" / "`" / "|" / "~" / %x30-39 / ( %x41-5A / %x61-7A ) ) + * OWS = *( SP / HTAB ) + * field-value = *( ( %x21-7E / %x80-FF ) [ 1*( SP / HTAB ) ( %x21-7E / %x80-FF ) ] ) + * + * @see https://tools.ietf.org/html/rfc7230#section-3.2.4 + */ + private function validateAndTrimHeader($header, $values): array + { + if (!\is_string($header) || 1 !== \preg_match("@^[!#$%&'*+.^_`|~0-9A-Za-z-]+$@D", $header)) { + throw new \InvalidArgumentException('Header name must be an RFC 7230 compatible string'); + } + + if (!\is_array($values)) { + // This is simple, just one value. + if ((!\is_numeric($values) && !\is_string($values)) || 1 !== \preg_match("@^[ \t\x21-\x7E\x80-\xFF]*$@", (string) $values)) { + throw new \InvalidArgumentException('Header values must be RFC 7230 compatible strings'); + } + + return [\trim((string) $values, " \t")]; + } + + if (empty($values)) { + throw new \InvalidArgumentException('Header values must be a string or an array of strings, empty array given'); + } + + // Assert Non empty array + $returnValues = []; + foreach ($values as $v) { + if ((!\is_numeric($v) && !\is_string($v)) || 1 !== \preg_match("@^[ \t\x21-\x7E\x80-\xFF]*$@D", (string) $v)) { + throw new \InvalidArgumentException('Header values must be RFC 7230 compatible strings'); + } + + $returnValues[] = \trim((string) $v, " \t"); + } + + return $returnValues; + } +} diff --git a/vendor/nyholm/psr7/src/Request.php b/vendor/nyholm/psr7/src/Request.php new file mode 100644 index 0000000..d50744e --- /dev/null +++ b/vendor/nyholm/psr7/src/Request.php @@ -0,0 +1,47 @@ + + * @author Martijn van der Ven + * + * @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md + */ +class Request implements RequestInterface +{ + use MessageTrait; + use RequestTrait; + + /** + * @param string $method HTTP method + * @param string|UriInterface $uri URI + * @param array $headers Request headers + * @param string|resource|StreamInterface|null $body Request body + * @param string $version Protocol version + */ + public function __construct(string $method, $uri, array $headers = [], $body = null, string $version = '1.1') + { + if (!($uri instanceof UriInterface)) { + $uri = new Uri($uri); + } + + $this->method = $method; + $this->uri = $uri; + $this->setHeaders($headers); + $this->protocol = $version; + + if (!$this->hasHeader('Host')) { + $this->updateHostFromUri(); + } + + // If we got no body, defer initialization of the stream until Request::getBody() + if ('' !== $body && null !== $body) { + $this->stream = Stream::create($body); + } + } +} diff --git a/vendor/nyholm/psr7/src/RequestTrait.php b/vendor/nyholm/psr7/src/RequestTrait.php new file mode 100644 index 0000000..2dbb3ab --- /dev/null +++ b/vendor/nyholm/psr7/src/RequestTrait.php @@ -0,0 +1,127 @@ + + * @author Martijn van der Ven + * + * @internal should not be used outside of Nyholm/Psr7 as it does not fall under our BC promise + */ +trait RequestTrait +{ + /** @var string */ + private $method; + + /** @var string|null */ + private $requestTarget; + + /** @var UriInterface|null */ + private $uri; + + public function getRequestTarget(): string + { + if (null !== $this->requestTarget) { + return $this->requestTarget; + } + + if ('' === $target = $this->uri->getPath()) { + $target = '/'; + } + if ('' !== $this->uri->getQuery()) { + $target .= '?' . $this->uri->getQuery(); + } + + return $target; + } + + /** + * @return static + */ + public function withRequestTarget($requestTarget): RequestInterface + { + if (!\is_string($requestTarget)) { + throw new \InvalidArgumentException('Request target must be a string'); + } + + if (\preg_match('#\s#', $requestTarget)) { + throw new \InvalidArgumentException('Invalid request target provided; cannot contain whitespace'); + } + + $new = clone $this; + $new->requestTarget = $requestTarget; + + return $new; + } + + public function getMethod(): string + { + return $this->method; + } + + /** + * @return static + */ + public function withMethod($method): RequestInterface + { + if (!\is_string($method)) { + throw new \InvalidArgumentException('Method must be a string'); + } + + $new = clone $this; + $new->method = $method; + + return $new; + } + + public function getUri(): UriInterface + { + return $this->uri; + } + + /** + * @return static + */ + public function withUri(UriInterface $uri, $preserveHost = false): RequestInterface + { + if ($uri === $this->uri) { + return $this; + } + + $new = clone $this; + $new->uri = $uri; + + if (!$preserveHost || !$this->hasHeader('Host')) { + $new->updateHostFromUri(); + } + + return $new; + } + + private function updateHostFromUri(): void + { + if ('' === $host = $this->uri->getHost()) { + return; + } + + if (null !== ($port = $this->uri->getPort())) { + $host .= ':' . $port; + } + + if (isset($this->headerNames['host'])) { + $header = $this->headerNames['host']; + } else { + $this->headerNames['host'] = $header = 'Host'; + } + + // Ensure Host is the first header. + // See: http://tools.ietf.org/html/rfc7230#section-5.4 + $this->headers = [$header => [$host]] + $this->headers; + } +} diff --git a/vendor/nyholm/psr7/src/Response.php b/vendor/nyholm/psr7/src/Response.php new file mode 100644 index 0000000..71eb2fa --- /dev/null +++ b/vendor/nyholm/psr7/src/Response.php @@ -0,0 +1,93 @@ + + * @author Martijn van der Ven + * + * @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md + */ +class Response implements ResponseInterface +{ + use MessageTrait; + + /** @var array Map of standard HTTP status code/reason phrases */ + private const PHRASES = [ + 100 => 'Continue', 101 => 'Switching Protocols', 102 => 'Processing', + 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 207 => 'Multi-status', 208 => 'Already Reported', + 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Found', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 306 => 'Switch Proxy', 307 => 'Temporary Redirect', + 400 => 'Bad Request', 401 => 'Unauthorized', 402 => 'Payment Required', 403 => 'Forbidden', 404 => 'Not Found', 405 => 'Method Not Allowed', 406 => 'Not Acceptable', 407 => 'Proxy Authentication Required', 408 => 'Request Time-out', 409 => 'Conflict', 410 => 'Gone', 411 => 'Length Required', 412 => 'Precondition Failed', 413 => 'Request Entity Too Large', 414 => 'Request-URI Too Large', 415 => 'Unsupported Media Type', 416 => 'Requested range not satisfiable', 417 => 'Expectation Failed', 418 => 'I\'m a teapot', 422 => 'Unprocessable Entity', 423 => 'Locked', 424 => 'Failed Dependency', 425 => 'Unordered Collection', 426 => 'Upgrade Required', 428 => 'Precondition Required', 429 => 'Too Many Requests', 431 => 'Request Header Fields Too Large', 451 => 'Unavailable For Legal Reasons', + 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Time-out', 505 => 'HTTP Version not supported', 506 => 'Variant Also Negotiates', 507 => 'Insufficient Storage', 508 => 'Loop Detected', 511 => 'Network Authentication Required', + ]; + + /** @var string */ + private $reasonPhrase = ''; + + /** @var int */ + private $statusCode; + + /** + * @param int $status Status code + * @param array $headers Response headers + * @param string|resource|StreamInterface|null $body Response body + * @param string $version Protocol version + * @param string|null $reason Reason phrase (when empty a default will be used based on the status code) + */ + public function __construct(int $status = 200, array $headers = [], $body = null, string $version = '1.1', ?string $reason = null) + { + // If we got no body, defer initialization of the stream until Response::getBody() + if ('' !== $body && null !== $body) { + $this->stream = Stream::create($body); + } + + $this->statusCode = $status; + $this->setHeaders($headers); + if (null === $reason && isset(self::PHRASES[$this->statusCode])) { + $this->reasonPhrase = self::PHRASES[$status]; + } else { + $this->reasonPhrase = $reason ?? ''; + } + + $this->protocol = $version; + } + + public function getStatusCode(): int + { + return $this->statusCode; + } + + public function getReasonPhrase(): string + { + return $this->reasonPhrase; + } + + /** + * @return static + */ + public function withStatus($code, $reasonPhrase = ''): ResponseInterface + { + if (!\is_int($code) && !\is_string($code)) { + throw new \InvalidArgumentException('Status code has to be an integer'); + } + + $code = (int) $code; + if ($code < 100 || $code > 599) { + throw new \InvalidArgumentException(\sprintf('Status code has to be an integer between 100 and 599. A status code of %d was given', $code)); + } + + $new = clone $this; + $new->statusCode = $code; + if ((null === $reasonPhrase || '' === $reasonPhrase) && isset(self::PHRASES[$new->statusCode])) { + $reasonPhrase = self::PHRASES[$new->statusCode]; + } + $new->reasonPhrase = $reasonPhrase; + + return $new; + } +} diff --git a/vendor/nyholm/psr7/src/ServerRequest.php b/vendor/nyholm/psr7/src/ServerRequest.php new file mode 100644 index 0000000..a3c5ba9 --- /dev/null +++ b/vendor/nyholm/psr7/src/ServerRequest.php @@ -0,0 +1,201 @@ + + * @author Martijn van der Ven + * + * @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md + */ +class ServerRequest implements ServerRequestInterface +{ + use MessageTrait; + use RequestTrait; + + /** @var array */ + private $attributes = []; + + /** @var array */ + private $cookieParams = []; + + /** @var array|object|null */ + private $parsedBody; + + /** @var array */ + private $queryParams = []; + + /** @var array */ + private $serverParams; + + /** @var UploadedFileInterface[] */ + private $uploadedFiles = []; + + /** + * @param string $method HTTP method + * @param string|UriInterface $uri URI + * @param array $headers Request headers + * @param string|resource|StreamInterface|null $body Request body + * @param string $version Protocol version + * @param array $serverParams Typically the $_SERVER superglobal + */ + public function __construct(string $method, $uri, array $headers = [], $body = null, string $version = '1.1', array $serverParams = []) + { + $this->serverParams = $serverParams; + + if (!($uri instanceof UriInterface)) { + $uri = new Uri($uri); + } + + $this->method = $method; + $this->uri = $uri; + $this->setHeaders($headers); + $this->protocol = $version; + \parse_str($uri->getQuery(), $this->queryParams); + + if (!$this->hasHeader('Host')) { + $this->updateHostFromUri(); + } + + // If we got no body, defer initialization of the stream until ServerRequest::getBody() + if ('' !== $body && null !== $body) { + $this->stream = Stream::create($body); + } + } + + public function getServerParams(): array + { + return $this->serverParams; + } + + public function getUploadedFiles(): array + { + return $this->uploadedFiles; + } + + /** + * @return static + */ + public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface + { + $new = clone $this; + $new->uploadedFiles = $uploadedFiles; + + return $new; + } + + public function getCookieParams(): array + { + return $this->cookieParams; + } + + /** + * @return static + */ + public function withCookieParams(array $cookies): ServerRequestInterface + { + $new = clone $this; + $new->cookieParams = $cookies; + + return $new; + } + + public function getQueryParams(): array + { + return $this->queryParams; + } + + /** + * @return static + */ + public function withQueryParams(array $query): ServerRequestInterface + { + $new = clone $this; + $new->queryParams = $query; + + return $new; + } + + /** + * @return array|object|null + */ + public function getParsedBody() + { + return $this->parsedBody; + } + + /** + * @return static + */ + public function withParsedBody($data): ServerRequestInterface + { + if (!\is_array($data) && !\is_object($data) && null !== $data) { + throw new \InvalidArgumentException('First parameter to withParsedBody MUST be object, array or null'); + } + + $new = clone $this; + $new->parsedBody = $data; + + return $new; + } + + public function getAttributes(): array + { + return $this->attributes; + } + + /** + * @return mixed + */ + public function getAttribute($attribute, $default = null) + { + if (!\is_string($attribute)) { + throw new \InvalidArgumentException('Attribute name must be a string'); + } + + if (false === \array_key_exists($attribute, $this->attributes)) { + return $default; + } + + return $this->attributes[$attribute]; + } + + /** + * @return static + */ + public function withAttribute($attribute, $value): ServerRequestInterface + { + if (!\is_string($attribute)) { + throw new \InvalidArgumentException('Attribute name must be a string'); + } + + $new = clone $this; + $new->attributes[$attribute] = $value; + + return $new; + } + + /** + * @return static + */ + public function withoutAttribute($attribute): ServerRequestInterface + { + if (!\is_string($attribute)) { + throw new \InvalidArgumentException('Attribute name must be a string'); + } + + if (false === \array_key_exists($attribute, $this->attributes)) { + return $this; + } + + $new = clone $this; + unset($new->attributes[$attribute]); + + return $new; + } +} diff --git a/vendor/nyholm/psr7/src/Stream.php b/vendor/nyholm/psr7/src/Stream.php new file mode 100644 index 0000000..63b7d6d --- /dev/null +++ b/vendor/nyholm/psr7/src/Stream.php @@ -0,0 +1,399 @@ + + * @author Martijn van der Ven + * + * @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md + */ +class Stream implements StreamInterface +{ + use StreamTrait; + + /** @var resource|null A resource reference */ + private $stream; + + /** @var bool */ + private $seekable; + + /** @var bool */ + private $readable; + + /** @var bool */ + private $writable; + + /** @var array|mixed|void|bool|null */ + private $uri; + + /** @var int|null */ + private $size; + + /** @var array Hash of readable and writable stream types */ + private const READ_WRITE_HASH = [ + 'read' => [ + 'r' => true, 'w+' => true, 'r+' => true, 'x+' => true, 'c+' => true, + 'rb' => true, 'w+b' => true, 'r+b' => true, 'x+b' => true, + 'c+b' => true, 'rt' => true, 'w+t' => true, 'r+t' => true, + 'x+t' => true, 'c+t' => true, 'a+' => true, + ], + 'write' => [ + 'w' => true, 'w+' => true, 'rw' => true, 'r+' => true, 'x+' => true, + 'c+' => true, 'wb' => true, 'w+b' => true, 'r+b' => true, + 'x+b' => true, 'c+b' => true, 'w+t' => true, 'r+t' => true, + 'x+t' => true, 'c+t' => true, 'a' => true, 'a+' => true, + ], + ]; + + /** + * @param resource $body + */ + public function __construct($body) + { + if (!\is_resource($body)) { + throw new \InvalidArgumentException('First argument to Stream::__construct() must be resource'); + } + + $this->stream = $body; + $meta = \stream_get_meta_data($this->stream); + $this->seekable = $meta['seekable'] && 0 === \fseek($this->stream, 0, \SEEK_CUR); + $this->readable = isset(self::READ_WRITE_HASH['read'][$meta['mode']]); + $this->writable = isset(self::READ_WRITE_HASH['write'][$meta['mode']]); + } + + /** + * Creates a new PSR-7 stream. + * + * @param string|resource|StreamInterface $body + * + * @throws \InvalidArgumentException + */ + public static function create($body = ''): StreamInterface + { + if ($body instanceof StreamInterface) { + return $body; + } + + if (\is_string($body)) { + if (200000 <= \strlen($body)) { + $body = self::openZvalStream($body); + } else { + $resource = \fopen('php://memory', 'r+'); + \fwrite($resource, $body); + \fseek($resource, 0); + $body = $resource; + } + } + + if (!\is_resource($body)) { + throw new \InvalidArgumentException('First argument to Stream::create() must be a string, resource or StreamInterface'); + } + + return new self($body); + } + + /** + * Closes the stream when the destructed. + */ + public function __destruct() + { + $this->close(); + } + + public function close(): void + { + if (isset($this->stream)) { + if (\is_resource($this->stream)) { + \fclose($this->stream); + } + $this->detach(); + } + } + + public function detach() + { + if (!isset($this->stream)) { + return null; + } + + $result = $this->stream; + unset($this->stream); + $this->size = $this->uri = null; + $this->readable = $this->writable = $this->seekable = false; + + return $result; + } + + private function getUri() + { + if (false !== $this->uri) { + $this->uri = $this->getMetadata('uri') ?? false; + } + + return $this->uri; + } + + public function getSize(): ?int + { + if (null !== $this->size) { + return $this->size; + } + + if (!isset($this->stream)) { + return null; + } + + // Clear the stat cache if the stream has a URI + if ($uri = $this->getUri()) { + \clearstatcache(true, $uri); + } + + $stats = \fstat($this->stream); + if (isset($stats['size'])) { + $this->size = $stats['size']; + + return $this->size; + } + + return null; + } + + public function tell(): int + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + if (false === $result = @\ftell($this->stream)) { + throw new \RuntimeException('Unable to determine stream position: ' . (\error_get_last()['message'] ?? '')); + } + + return $result; + } + + public function eof(): bool + { + return !isset($this->stream) || \feof($this->stream); + } + + public function isSeekable(): bool + { + return $this->seekable; + } + + public function seek($offset, $whence = \SEEK_SET): void + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + if (!$this->seekable) { + throw new \RuntimeException('Stream is not seekable'); + } + + if (-1 === \fseek($this->stream, $offset, $whence)) { + throw new \RuntimeException('Unable to seek to stream position "' . $offset . '" with whence ' . \var_export($whence, true)); + } + } + + public function rewind(): void + { + $this->seek(0); + } + + public function isWritable(): bool + { + return $this->writable; + } + + public function write($string): int + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + if (!$this->writable) { + throw new \RuntimeException('Cannot write to a non-writable stream'); + } + + // We can't know the size after writing anything + $this->size = null; + + if (false === $result = @\fwrite($this->stream, $string)) { + throw new \RuntimeException('Unable to write to stream: ' . (\error_get_last()['message'] ?? '')); + } + + return $result; + } + + public function isReadable(): bool + { + return $this->readable; + } + + public function read($length): string + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + if (!$this->readable) { + throw new \RuntimeException('Cannot read from non-readable stream'); + } + + if (false === $result = @\fread($this->stream, $length)) { + throw new \RuntimeException('Unable to read from stream: ' . (\error_get_last()['message'] ?? '')); + } + + return $result; + } + + public function getContents(): string + { + if (!isset($this->stream)) { + throw new \RuntimeException('Stream is detached'); + } + + $exception = null; + + \set_error_handler(static function ($type, $message) use (&$exception) { + throw $exception = new \RuntimeException('Unable to read stream contents: ' . $message); + }); + + try { + return \stream_get_contents($this->stream); + } catch (\Throwable $e) { + throw $e === $exception ? $e : new \RuntimeException('Unable to read stream contents: ' . $e->getMessage(), 0, $e); + } finally { + \restore_error_handler(); + } + } + + /** + * @return mixed + */ + public function getMetadata($key = null) + { + if (null !== $key && !\is_string($key)) { + throw new \InvalidArgumentException('Metadata key must be a string'); + } + + if (!isset($this->stream)) { + return $key ? null : []; + } + + $meta = \stream_get_meta_data($this->stream); + + if (null === $key) { + return $meta; + } + + return $meta[$key] ?? null; + } + + private static function openZvalStream(string $body) + { + static $wrapper; + + $wrapper ?? \stream_wrapper_register('Nyholm-Psr7-Zval', $wrapper = \get_class(new class() { + public $context; + + private $data; + private $position = 0; + + public function stream_open(): bool + { + $this->data = \stream_context_get_options($this->context)['Nyholm-Psr7-Zval']['data']; + \stream_context_set_option($this->context, 'Nyholm-Psr7-Zval', 'data', null); + + return true; + } + + public function stream_read(int $count): string + { + $result = \substr($this->data, $this->position, $count); + $this->position += \strlen($result); + + return $result; + } + + public function stream_write(string $data): int + { + $this->data = \substr_replace($this->data, $data, $this->position, \strlen($data)); + $this->position += \strlen($data); + + return \strlen($data); + } + + public function stream_tell(): int + { + return $this->position; + } + + public function stream_eof(): bool + { + return \strlen($this->data) <= $this->position; + } + + public function stream_stat(): array + { + return [ + 'mode' => 33206, // POSIX_S_IFREG | 0666 + 'nlink' => 1, + 'rdev' => -1, + 'size' => \strlen($this->data), + 'blksize' => -1, + 'blocks' => -1, + ]; + } + + public function stream_seek(int $offset, int $whence): bool + { + if (\SEEK_SET === $whence && (0 <= $offset && \strlen($this->data) >= $offset)) { + $this->position = $offset; + } elseif (\SEEK_CUR === $whence && 0 <= $offset) { + $this->position += $offset; + } elseif (\SEEK_END === $whence && (0 > $offset && 0 <= $offset = \strlen($this->data) + $offset)) { + $this->position = $offset; + } else { + return false; + } + + return true; + } + + public function stream_set_option(): bool + { + return true; + } + + public function stream_truncate(int $new_size): bool + { + if ($new_size) { + $this->data = \substr($this->data, 0, $new_size); + $this->position = \min($this->position, $new_size); + } else { + $this->data = ''; + $this->position = 0; + } + + return true; + } + })); + + $context = \stream_context_create(['Nyholm-Psr7-Zval' => ['data' => $body]]); + + if (!$stream = @\fopen('Nyholm-Psr7-Zval://', 'r+', false, $context)) { + \stream_wrapper_register('Nyholm-Psr7-Zval', $wrapper); + $stream = \fopen('Nyholm-Psr7-Zval://', 'r+', false, $context); + } + + return $stream; + } +} diff --git a/vendor/nyholm/psr7/src/StreamTrait.php b/vendor/nyholm/psr7/src/StreamTrait.php new file mode 100644 index 0000000..41a3f9d --- /dev/null +++ b/vendor/nyholm/psr7/src/StreamTrait.php @@ -0,0 +1,57 @@ += 70400 || (new \ReflectionMethod(StreamInterface::class, '__toString'))->hasReturnType()) { + /** + * @internal + */ + trait StreamTrait + { + public function __toString(): string + { + if ($this->isSeekable()) { + $this->seek(0); + } + + return $this->getContents(); + } + } +} else { + /** + * @internal + */ + trait StreamTrait + { + /** + * @return string + */ + public function __toString() + { + try { + if ($this->isSeekable()) { + $this->seek(0); + } + + return $this->getContents(); + } catch (\Throwable $e) { + if (\is_array($errorHandler = \set_error_handler('var_dump'))) { + $errorHandler = $errorHandler[0] ?? null; + } + \restore_error_handler(); + + if ($e instanceof \Error || $errorHandler instanceof SymfonyErrorHandler || $errorHandler instanceof SymfonyLegacyErrorHandler) { + return \trigger_error((string) $e, \E_USER_ERROR); + } + + return ''; + } + } + } +} diff --git a/vendor/nyholm/psr7/src/UploadedFile.php b/vendor/nyholm/psr7/src/UploadedFile.php new file mode 100644 index 0000000..c77dca4 --- /dev/null +++ b/vendor/nyholm/psr7/src/UploadedFile.php @@ -0,0 +1,179 @@ + + * @author Martijn van der Ven + * + * @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md + */ +class UploadedFile implements UploadedFileInterface +{ + /** @var array */ + private const ERRORS = [ + \UPLOAD_ERR_OK => 1, + \UPLOAD_ERR_INI_SIZE => 1, + \UPLOAD_ERR_FORM_SIZE => 1, + \UPLOAD_ERR_PARTIAL => 1, + \UPLOAD_ERR_NO_FILE => 1, + \UPLOAD_ERR_NO_TMP_DIR => 1, + \UPLOAD_ERR_CANT_WRITE => 1, + \UPLOAD_ERR_EXTENSION => 1, + ]; + + /** @var string */ + private $clientFilename; + + /** @var string */ + private $clientMediaType; + + /** @var int */ + private $error; + + /** @var string|null */ + private $file; + + /** @var bool */ + private $moved = false; + + /** @var int */ + private $size; + + /** @var StreamInterface|null */ + private $stream; + + /** + * @param StreamInterface|string|resource $streamOrFile + * @param int $size + * @param int $errorStatus + * @param string|null $clientFilename + * @param string|null $clientMediaType + */ + public function __construct($streamOrFile, $size, $errorStatus, $clientFilename = null, $clientMediaType = null) + { + if (false === \is_int($errorStatus) || !isset(self::ERRORS[$errorStatus])) { + throw new \InvalidArgumentException('Upload file error status must be an integer value and one of the "UPLOAD_ERR_*" constants'); + } + + if (false === \is_int($size)) { + throw new \InvalidArgumentException('Upload file size must be an integer'); + } + + if (null !== $clientFilename && !\is_string($clientFilename)) { + throw new \InvalidArgumentException('Upload file client filename must be a string or null'); + } + + if (null !== $clientMediaType && !\is_string($clientMediaType)) { + throw new \InvalidArgumentException('Upload file client media type must be a string or null'); + } + + $this->error = $errorStatus; + $this->size = $size; + $this->clientFilename = $clientFilename; + $this->clientMediaType = $clientMediaType; + + if (\UPLOAD_ERR_OK === $this->error) { + // Depending on the value set file or stream variable. + if (\is_string($streamOrFile) && '' !== $streamOrFile) { + $this->file = $streamOrFile; + } elseif (\is_resource($streamOrFile)) { + $this->stream = Stream::create($streamOrFile); + } elseif ($streamOrFile instanceof StreamInterface) { + $this->stream = $streamOrFile; + } else { + throw new \InvalidArgumentException('Invalid stream or file provided for UploadedFile'); + } + } + } + + /** + * @throws \RuntimeException if is moved or not ok + */ + private function validateActive(): void + { + if (\UPLOAD_ERR_OK !== $this->error) { + throw new \RuntimeException('Cannot retrieve stream due to upload error'); + } + + if ($this->moved) { + throw new \RuntimeException('Cannot retrieve stream after it has already been moved'); + } + } + + public function getStream(): StreamInterface + { + $this->validateActive(); + + if ($this->stream instanceof StreamInterface) { + return $this->stream; + } + + if (false === $resource = @\fopen($this->file, 'r')) { + throw new \RuntimeException(\sprintf('The file "%s" cannot be opened: %s', $this->file, \error_get_last()['message'] ?? '')); + } + + return Stream::create($resource); + } + + public function moveTo($targetPath): void + { + $this->validateActive(); + + if (!\is_string($targetPath) || '' === $targetPath) { + throw new \InvalidArgumentException('Invalid path provided for move operation; must be a non-empty string'); + } + + if (null !== $this->file) { + $this->moved = 'cli' === \PHP_SAPI ? @\rename($this->file, $targetPath) : @\move_uploaded_file($this->file, $targetPath); + + if (false === $this->moved) { + throw new \RuntimeException(\sprintf('Uploaded file could not be moved to "%s": %s', $targetPath, \error_get_last()['message'] ?? '')); + } + } else { + $stream = $this->getStream(); + if ($stream->isSeekable()) { + $stream->rewind(); + } + + if (false === $resource = @\fopen($targetPath, 'w')) { + throw new \RuntimeException(\sprintf('The file "%s" cannot be opened: %s', $targetPath, \error_get_last()['message'] ?? '')); + } + + $dest = Stream::create($resource); + + while (!$stream->eof()) { + if (!$dest->write($stream->read(1048576))) { + break; + } + } + + $this->moved = true; + } + } + + public function getSize(): int + { + return $this->size; + } + + public function getError(): int + { + return $this->error; + } + + public function getClientFilename(): ?string + { + return $this->clientFilename; + } + + public function getClientMediaType(): ?string + { + return $this->clientMediaType; + } +} diff --git a/vendor/nyholm/psr7/src/Uri.php b/vendor/nyholm/psr7/src/Uri.php new file mode 100644 index 0000000..621e2e7 --- /dev/null +++ b/vendor/nyholm/psr7/src/Uri.php @@ -0,0 +1,356 @@ + + * @author Martijn van der Ven + * + * @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md + */ +class Uri implements UriInterface +{ + private const SCHEMES = ['http' => 80, 'https' => 443]; + + private const CHAR_UNRESERVED = 'a-zA-Z0-9_\-\.~'; + + private const CHAR_SUB_DELIMS = '!\$&\'\(\)\*\+,;='; + + private const CHAR_GEN_DELIMS = ':\/\?#\[\]@'; + + /** @var string Uri scheme. */ + private $scheme = ''; + + /** @var string Uri user info. */ + private $userInfo = ''; + + /** @var string Uri host. */ + private $host = ''; + + /** @var int|null Uri port. */ + private $port; + + /** @var string Uri path. */ + private $path = ''; + + /** @var string Uri query string. */ + private $query = ''; + + /** @var string Uri fragment. */ + private $fragment = ''; + + public function __construct(string $uri = '') + { + if ('' !== $uri) { + if (false === $parts = \parse_url($uri)) { + throw new \InvalidArgumentException(\sprintf('Unable to parse URI: "%s"', $uri)); + } + + // Apply parse_url parts to a URI. + $this->scheme = isset($parts['scheme']) ? \strtr($parts['scheme'], 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') : ''; + $this->userInfo = $parts['user'] ?? ''; + $this->host = isset($parts['host']) ? \strtr($parts['host'], 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') : ''; + $this->port = isset($parts['port']) ? $this->filterPort($parts['port']) : null; + $this->path = isset($parts['path']) ? $this->filterPath($parts['path']) : ''; + $this->query = isset($parts['query']) ? $this->filterQueryAndFragment($parts['query']) : ''; + $this->fragment = isset($parts['fragment']) ? $this->filterQueryAndFragment($parts['fragment']) : ''; + if (isset($parts['pass'])) { + $this->userInfo .= ':' . $parts['pass']; + } + } + } + + public function __toString(): string + { + return self::createUriString($this->scheme, $this->getAuthority(), $this->path, $this->query, $this->fragment); + } + + public function getScheme(): string + { + return $this->scheme; + } + + public function getAuthority(): string + { + if ('' === $this->host) { + return ''; + } + + $authority = $this->host; + if ('' !== $this->userInfo) { + $authority = $this->userInfo . '@' . $authority; + } + + if (null !== $this->port) { + $authority .= ':' . $this->port; + } + + return $authority; + } + + public function getUserInfo(): string + { + return $this->userInfo; + } + + public function getHost(): string + { + return $this->host; + } + + public function getPort(): ?int + { + return $this->port; + } + + public function getPath(): string + { + $path = $this->path; + + if ('' !== $path && '/' !== $path[0]) { + if ('' !== $this->host) { + // If the path is rootless and an authority is present, the path MUST be prefixed by "/" + $path = '/' . $path; + } + } elseif (isset($path[1]) && '/' === $path[1]) { + // If the path is starting with more than one "/", the + // starting slashes MUST be reduced to one. + $path = '/' . \ltrim($path, '/'); + } + + return $path; + } + + public function getQuery(): string + { + return $this->query; + } + + public function getFragment(): string + { + return $this->fragment; + } + + /** + * @return static + */ + public function withScheme($scheme): UriInterface + { + if (!\is_string($scheme)) { + throw new \InvalidArgumentException('Scheme must be a string'); + } + + if ($this->scheme === $scheme = \strtr($scheme, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')) { + return $this; + } + + $new = clone $this; + $new->scheme = $scheme; + $new->port = $new->filterPort($new->port); + + return $new; + } + + /** + * @return static + */ + public function withUserInfo($user, $password = null): UriInterface + { + if (!\is_string($user)) { + throw new \InvalidArgumentException('User must be a string'); + } + + $info = \preg_replace_callback('/[' . self::CHAR_GEN_DELIMS . self::CHAR_SUB_DELIMS . ']++/', [__CLASS__, 'rawurlencodeMatchZero'], $user); + if (null !== $password && '' !== $password) { + if (!\is_string($password)) { + throw new \InvalidArgumentException('Password must be a string'); + } + + $info .= ':' . \preg_replace_callback('/[' . self::CHAR_GEN_DELIMS . self::CHAR_SUB_DELIMS . ']++/', [__CLASS__, 'rawurlencodeMatchZero'], $password); + } + + if ($this->userInfo === $info) { + return $this; + } + + $new = clone $this; + $new->userInfo = $info; + + return $new; + } + + /** + * @return static + */ + public function withHost($host): UriInterface + { + if (!\is_string($host)) { + throw new \InvalidArgumentException('Host must be a string'); + } + + if ($this->host === $host = \strtr($host, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')) { + return $this; + } + + $new = clone $this; + $new->host = $host; + + return $new; + } + + /** + * @return static + */ + public function withPort($port): UriInterface + { + if ($this->port === $port = $this->filterPort($port)) { + return $this; + } + + $new = clone $this; + $new->port = $port; + + return $new; + } + + /** + * @return static + */ + public function withPath($path): UriInterface + { + if ($this->path === $path = $this->filterPath($path)) { + return $this; + } + + $new = clone $this; + $new->path = $path; + + return $new; + } + + /** + * @return static + */ + public function withQuery($query): UriInterface + { + if ($this->query === $query = $this->filterQueryAndFragment($query)) { + return $this; + } + + $new = clone $this; + $new->query = $query; + + return $new; + } + + /** + * @return static + */ + public function withFragment($fragment): UriInterface + { + if ($this->fragment === $fragment = $this->filterQueryAndFragment($fragment)) { + return $this; + } + + $new = clone $this; + $new->fragment = $fragment; + + return $new; + } + + /** + * Create a URI string from its various parts. + */ + private static function createUriString(string $scheme, string $authority, string $path, string $query, string $fragment): string + { + $uri = ''; + if ('' !== $scheme) { + $uri .= $scheme . ':'; + } + + if ('' !== $authority) { + $uri .= '//' . $authority; + } + + if ('' !== $path) { + if ('/' !== $path[0]) { + if ('' !== $authority) { + // If the path is rootless and an authority is present, the path MUST be prefixed by "/" + $path = '/' . $path; + } + } elseif (isset($path[1]) && '/' === $path[1]) { + if ('' === $authority) { + // If the path is starting with more than one "/" and no authority is present, the + // starting slashes MUST be reduced to one. + $path = '/' . \ltrim($path, '/'); + } + } + + $uri .= $path; + } + + if ('' !== $query) { + $uri .= '?' . $query; + } + + if ('' !== $fragment) { + $uri .= '#' . $fragment; + } + + return $uri; + } + + /** + * Is a given port non-standard for the current scheme? + */ + private static function isNonStandardPort(string $scheme, int $port): bool + { + return !isset(self::SCHEMES[$scheme]) || $port !== self::SCHEMES[$scheme]; + } + + private function filterPort($port): ?int + { + if (null === $port) { + return null; + } + + $port = (int) $port; + if (0 > $port || 0xFFFF < $port) { + throw new \InvalidArgumentException(\sprintf('Invalid port: %d. Must be between 0 and 65535', $port)); + } + + return self::isNonStandardPort($this->scheme, $port) ? $port : null; + } + + private function filterPath($path): string + { + if (!\is_string($path)) { + throw new \InvalidArgumentException('Path must be a string'); + } + + return \preg_replace_callback('/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\/]++|%(?![A-Fa-f0-9]{2}))/', [__CLASS__, 'rawurlencodeMatchZero'], $path); + } + + private function filterQueryAndFragment($str): string + { + if (!\is_string($str)) { + throw new \InvalidArgumentException('Query and fragment must be a string'); + } + + return \preg_replace_callback('/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\/\?]++|%(?![A-Fa-f0-9]{2}))/', [__CLASS__, 'rawurlencodeMatchZero'], $str); + } + + private static function rawurlencodeMatchZero(array $match): string + { + return \rawurlencode($match[0]); + } +} diff --git a/vendor/psr/http-client/CHANGELOG.md b/vendor/psr/http-client/CHANGELOG.md new file mode 100644 index 0000000..babba7c --- /dev/null +++ b/vendor/psr/http-client/CHANGELOG.md @@ -0,0 +1,31 @@ +# Changelog + +All notable changes to this project will be documented in this file, in reverse chronological order by release. + +## 1.0.3 + +Add `source` link in composer.json. No code changes. + +## 1.0.2 + +Allow PSR-7 (psr/http-message) 2.0. No code changes. + +## 1.0.1 + +Allow installation with PHP 8. No code changes. + +## 1.0.0 + +First stable release. No changes since 0.3.0. + +## 0.3.0 + +Added Interface suffix on exceptions + +## 0.2.0 + +All exceptions are in `Psr\Http\Client` namespace + +## 0.1.0 + +First release diff --git a/vendor/psr/http-client/LICENSE b/vendor/psr/http-client/LICENSE new file mode 100644 index 0000000..cd5e002 --- /dev/null +++ b/vendor/psr/http-client/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2017 PHP Framework Interoperability Group + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/psr/http-client/README.md b/vendor/psr/http-client/README.md new file mode 100644 index 0000000..84af5c5 --- /dev/null +++ b/vendor/psr/http-client/README.md @@ -0,0 +1,12 @@ +HTTP Client +=========== + +This repository holds all the common code related to [PSR-18 (HTTP Client)][psr-url]. + +Note that this is not a HTTP Client implementation of its own. It is merely abstractions that describe the components of a HTTP Client. + +The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist. + +[psr-url]: https://www.php-fig.org/psr/psr-18 +[package-url]: https://packagist.org/packages/psr/http-client +[implementation-url]: https://packagist.org/providers/psr/http-client-implementation diff --git a/vendor/psr/http-client/composer.json b/vendor/psr/http-client/composer.json new file mode 100644 index 0000000..6fed350 --- /dev/null +++ b/vendor/psr/http-client/composer.json @@ -0,0 +1,30 @@ +{ + "name": "psr/http-client", + "description": "Common interface for HTTP clients", + "keywords": ["psr", "psr-18", "http", "http-client"], + "homepage": "https://github.com/php-fig/http-client", + "license": "MIT", + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + } +} diff --git a/vendor/psr/http-client/src/ClientExceptionInterface.php b/vendor/psr/http-client/src/ClientExceptionInterface.php new file mode 100644 index 0000000..aa0b9cf --- /dev/null +++ b/vendor/psr/http-client/src/ClientExceptionInterface.php @@ -0,0 +1,10 @@ +=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + } +} diff --git a/vendor/psr/http-factory/src/RequestFactoryInterface.php b/vendor/psr/http-factory/src/RequestFactoryInterface.php new file mode 100644 index 0000000..cb39a08 --- /dev/null +++ b/vendor/psr/http-factory/src/RequestFactoryInterface.php @@ -0,0 +1,18 @@ + `RequestInterface`, `ServerRequestInterface`, `ResponseInterface` extend `MessageInterface` because the `Request` and the `Response` are `HTTP Messages`. +> When using `ServerRequestInterface`, both `RequestInterface` and `Psr\Http\Message\MessageInterface` methods are considered. + diff --git a/vendor/psr/http-message/docs/PSR7-Usage.md b/vendor/psr/http-message/docs/PSR7-Usage.md new file mode 100644 index 0000000..b6d048a --- /dev/null +++ b/vendor/psr/http-message/docs/PSR7-Usage.md @@ -0,0 +1,159 @@ +### PSR-7 Usage + +All PSR-7 applications comply with these interfaces +They were created to establish a standard between middleware implementations. + +> `RequestInterface`, `ServerRequestInterface`, `ResponseInterface` extend `MessageInterface` because the `Request` and the `Response` are `HTTP Messages`. +> When using `ServerRequestInterface`, both `RequestInterface` and `Psr\Http\Message\MessageInterface` methods are considered. + + +The following examples will illustrate how basic operations are done in PSR-7. + +##### Examples + + +For this examples to work (at least) a PSR-7 implementation package is required. (eg: zendframework/zend-diactoros, guzzlehttp/psr7, slim/slim, etc) +All PSR-7 implementations should have the same behaviour. + +The following will be assumed: +`$request` is an object of `Psr\Http\Message\RequestInterface` and + +`$response` is an object implementing `Psr\Http\Message\RequestInterface` + + +### Working with HTTP Headers + +#### Adding headers to response: + +```php +$response->withHeader('My-Custom-Header', 'My Custom Message'); +``` + +#### Appending values to headers + +```php +$response->withAddedHeader('My-Custom-Header', 'The second message'); +``` + +#### Checking if header exists: + +```php +$request->hasHeader('My-Custom-Header'); // will return false +$response->hasHeader('My-Custom-Header'); // will return true +``` + +> Note: My-Custom-Header was only added in the Response + +#### Getting comma-separated values from a header (also applies to request) + +```php +// getting value from request headers +$request->getHeaderLine('Content-Type'); // will return: "text/html; charset=UTF-8" +// getting value from response headers +$response->getHeaderLine('My-Custom-Header'); // will return: "My Custom Message; The second message" +``` + +#### Getting array of value from a header (also applies to request) +```php +// getting value from request headers +$request->getHeader('Content-Type'); // will return: ["text/html", "charset=UTF-8"] +// getting value from response headers +$response->getHeader('My-Custom-Header'); // will return: ["My Custom Message", "The second message"] +``` + +#### Removing headers from HTTP Messages +```php +// removing a header from Request, removing deprecated "Content-MD5" header +$request->withoutHeader('Content-MD5'); + +// removing a header from Response +// effect: the browser won't know the size of the stream +// the browser will download the stream till it ends +$response->withoutHeader('Content-Length'); +``` + +### Working with HTTP Message Body + +When working with the PSR-7 there are two methods of implementation: +#### 1. Getting the body separately + +> This method makes the body handling easier to understand and is useful when repeatedly calling body methods. (You only call `getBody()` once). Using this method mistakes like `$response->write()` are also prevented. + +```php +$body = $response->getBody(); +// operations on body, eg. read, write, seek +// ... +// replacing the old body +$response->withBody($body); +// this last statement is optional as we working with objects +// in this case the "new" body is same with the "old" one +// the $body variable has the same value as the one in $request, only the reference is passed +``` + +#### 2. Working directly on response + +> This method is useful when only performing few operations as the `$request->getBody()` statement fragment is required + +```php +$response->getBody()->write('hello'); +``` + +### Getting the body contents + +The following snippet gets the contents of a stream contents. +> Note: Streams must be rewinded, if content was written into streams, it will be ignored when calling `getContents()` because the stream pointer is set to the last character, which is `\0` - meaning end of stream. +```php +$body = $response->getBody(); +$body->rewind(); // or $body->seek(0); +$bodyText = $body->getContents(); +``` +> Note: If `$body->seek(1)` is called before `$body->getContents()`, the first character will be ommited as the starting pointer is set to `1`, not `0`. This is why using `$body->rewind()` is recommended. + +### Append to body + +```php +$response->getBody()->write('Hello'); // writing directly +$body = $request->getBody(); // which is a `StreamInterface` +$body->write('xxxxx'); +``` + +### Prepend to body +Prepending is different when it comes to streams. The content must be copied before writing the content to be prepended. +The following example will explain the behaviour of streams. + +```php +// assuming our response is initially empty +$body = $repsonse->getBody(); +// writing the string "abcd" +$body->write('abcd'); + +// seeking to start of stream +$body->seek(0); +// writing 'ef' +$body->write('ef'); // at this point the stream contains "efcd" +``` + +#### Prepending by rewriting separately + +```php +// assuming our response body stream only contains: "abcd" +$body = $response->getBody(); +$body->rewind(); +$contents = $body->getContents(); // abcd +// seeking the stream to beginning +$body->rewind(); +$body->write('ef'); // stream contains "efcd" +$body->write($contents); // stream contains "efabcd" +``` + +> Note: `getContents()` seeks the stream while reading it, therefore if the second `rewind()` method call was not present the stream would have resulted in `abcdefabcd` because the `write()` method appends to stream if not preceeded by `rewind()` or `seek(0)`. + +#### Prepending by using contents as a string +```php +$body = $response->getBody(); +$body->rewind(); +$contents = $body->getContents(); // efabcd +$contents = 'ef'.$contents; +$body->rewind(); +$body->write($contents); +``` diff --git a/vendor/psr/http-message/src/MessageInterface.php b/vendor/psr/http-message/src/MessageInterface.php new file mode 100644 index 0000000..a83c985 --- /dev/null +++ b/vendor/psr/http-message/src/MessageInterface.php @@ -0,0 +1,187 @@ +getHeaders() as $name => $values) { + * echo $name . ": " . implode(", ", $values); + * } + * + * // Emit headers iteratively: + * foreach ($message->getHeaders() as $name => $values) { + * foreach ($values as $value) { + * header(sprintf('%s: %s', $name, $value), false); + * } + * } + * + * While header names are not case-sensitive, getHeaders() will preserve the + * exact case in which headers were originally specified. + * + * @return string[][] Returns an associative array of the message's headers. Each + * key MUST be a header name, and each value MUST be an array of strings + * for that header. + */ + public function getHeaders(): array; + + /** + * Checks if a header exists by the given case-insensitive name. + * + * @param string $name Case-insensitive header field name. + * @return bool Returns true if any header names match the given header + * name using a case-insensitive string comparison. Returns false if + * no matching header name is found in the message. + */ + public function hasHeader(string $name): bool; + + /** + * Retrieves a message header value by the given case-insensitive name. + * + * This method returns an array of all the header values of the given + * case-insensitive header name. + * + * If the header does not appear in the message, this method MUST return an + * empty array. + * + * @param string $name Case-insensitive header field name. + * @return string[] An array of string values as provided for the given + * header. If the header does not appear in the message, this method MUST + * return an empty array. + */ + public function getHeader(string $name): array; + + /** + * Retrieves a comma-separated string of the values for a single header. + * + * This method returns all of the header values of the given + * case-insensitive header name as a string concatenated together using + * a comma. + * + * NOTE: Not all header values may be appropriately represented using + * comma concatenation. For such headers, use getHeader() instead + * and supply your own delimiter when concatenating. + * + * If the header does not appear in the message, this method MUST return + * an empty string. + * + * @param string $name Case-insensitive header field name. + * @return string A string of values as provided for the given header + * concatenated together using a comma. If the header does not appear in + * the message, this method MUST return an empty string. + */ + public function getHeaderLine(string $name): string; + + /** + * Return an instance with the provided value replacing the specified header. + * + * While header names are case-insensitive, the casing of the header will + * be preserved by this function, and returned from getHeaders(). + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * new and/or updated header and value. + * + * @param string $name Case-insensitive header field name. + * @param string|string[] $value Header value(s). + * @return static + * @throws \InvalidArgumentException for invalid header names or values. + */ + public function withHeader(string $name, $value): MessageInterface; + + /** + * Return an instance with the specified header appended with the given value. + * + * Existing values for the specified header will be maintained. The new + * value(s) will be appended to the existing list. If the header did not + * exist previously, it will be added. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * new header and/or value. + * + * @param string $name Case-insensitive header field name to add. + * @param string|string[] $value Header value(s). + * @return static + * @throws \InvalidArgumentException for invalid header names or values. + */ + public function withAddedHeader(string $name, $value): MessageInterface; + + /** + * Return an instance without the specified header. + * + * Header resolution MUST be done without case-sensitivity. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that removes + * the named header. + * + * @param string $name Case-insensitive header field name to remove. + * @return static + */ + public function withoutHeader(string $name): MessageInterface; + + /** + * Gets the body of the message. + * + * @return StreamInterface Returns the body as a stream. + */ + public function getBody(): StreamInterface; + + /** + * Return an instance with the specified message body. + * + * The body MUST be a StreamInterface object. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return a new instance that has the + * new body stream. + * + * @param StreamInterface $body Body. + * @return static + * @throws \InvalidArgumentException When the body is not valid. + */ + public function withBody(StreamInterface $body): MessageInterface; +} diff --git a/vendor/psr/http-message/src/RequestInterface.php b/vendor/psr/http-message/src/RequestInterface.php new file mode 100644 index 0000000..33f85e5 --- /dev/null +++ b/vendor/psr/http-message/src/RequestInterface.php @@ -0,0 +1,130 @@ +getQuery()` + * or from the `QUERY_STRING` server param. + * + * @return array + */ + public function getQueryParams(): array; + + /** + * Return an instance with the specified query string arguments. + * + * These values SHOULD remain immutable over the course of the incoming + * request. They MAY be injected during instantiation, such as from PHP's + * $_GET superglobal, or MAY be derived from some other value such as the + * URI. In cases where the arguments are parsed from the URI, the data + * MUST be compatible with what PHP's parse_str() would return for + * purposes of how duplicate query parameters are handled, and how nested + * sets are handled. + * + * Setting query string arguments MUST NOT change the URI stored by the + * request, nor the values in the server params. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * updated query string arguments. + * + * @param array $query Array of query string arguments, typically from + * $_GET. + * @return static + */ + public function withQueryParams(array $query): ServerRequestInterface; + + /** + * Retrieve normalized file upload data. + * + * This method returns upload metadata in a normalized tree, with each leaf + * an instance of Psr\Http\Message\UploadedFileInterface. + * + * These values MAY be prepared from $_FILES or the message body during + * instantiation, or MAY be injected via withUploadedFiles(). + * + * @return array An array tree of UploadedFileInterface instances; an empty + * array MUST be returned if no data is present. + */ + public function getUploadedFiles(): array; + + /** + * Create a new instance with the specified uploaded files. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * updated body parameters. + * + * @param array $uploadedFiles An array tree of UploadedFileInterface instances. + * @return static + * @throws \InvalidArgumentException if an invalid structure is provided. + */ + public function withUploadedFiles(array $uploadedFiles): ServerRequestInterface; + + /** + * Retrieve any parameters provided in the request body. + * + * If the request Content-Type is either application/x-www-form-urlencoded + * or multipart/form-data, and the request method is POST, this method MUST + * return the contents of $_POST. + * + * Otherwise, this method may return any results of deserializing + * the request body content; as parsing returns structured content, the + * potential types MUST be arrays or objects only. A null value indicates + * the absence of body content. + * + * @return null|array|object The deserialized body parameters, if any. + * These will typically be an array or object. + */ + public function getParsedBody(); + + /** + * Return an instance with the specified body parameters. + * + * These MAY be injected during instantiation. + * + * If the request Content-Type is either application/x-www-form-urlencoded + * or multipart/form-data, and the request method is POST, use this method + * ONLY to inject the contents of $_POST. + * + * The data IS NOT REQUIRED to come from $_POST, but MUST be the results of + * deserializing the request body content. Deserialization/parsing returns + * structured data, and, as such, this method ONLY accepts arrays or objects, + * or a null value if nothing was available to parse. + * + * As an example, if content negotiation determines that the request data + * is a JSON payload, this method could be used to create a request + * instance with the deserialized parameters. + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * updated body parameters. + * + * @param null|array|object $data The deserialized body data. This will + * typically be in an array or object. + * @return static + * @throws \InvalidArgumentException if an unsupported argument type is + * provided. + */ + public function withParsedBody($data): ServerRequestInterface; + + /** + * Retrieve attributes derived from the request. + * + * The request "attributes" may be used to allow injection of any + * parameters derived from the request: e.g., the results of path + * match operations; the results of decrypting cookies; the results of + * deserializing non-form-encoded message bodies; etc. Attributes + * will be application and request specific, and CAN be mutable. + * + * @return array Attributes derived from the request. + */ + public function getAttributes(): array; + + /** + * Retrieve a single derived request attribute. + * + * Retrieves a single derived request attribute as described in + * getAttributes(). If the attribute has not been previously set, returns + * the default value as provided. + * + * This method obviates the need for a hasAttribute() method, as it allows + * specifying a default value to return if the attribute is not found. + * + * @see getAttributes() + * @param string $name The attribute name. + * @param mixed $default Default value to return if the attribute does not exist. + * @return mixed + */ + public function getAttribute(string $name, $default = null); + + /** + * Return an instance with the specified derived request attribute. + * + * This method allows setting a single derived request attribute as + * described in getAttributes(). + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that has the + * updated attribute. + * + * @see getAttributes() + * @param string $name The attribute name. + * @param mixed $value The value of the attribute. + * @return static + */ + public function withAttribute(string $name, $value): ServerRequestInterface; + + /** + * Return an instance that removes the specified derived request attribute. + * + * This method allows removing a single derived request attribute as + * described in getAttributes(). + * + * This method MUST be implemented in such a way as to retain the + * immutability of the message, and MUST return an instance that removes + * the attribute. + * + * @see getAttributes() + * @param string $name The attribute name. + * @return static + */ + public function withoutAttribute(string $name): ServerRequestInterface; +} diff --git a/vendor/psr/http-message/src/StreamInterface.php b/vendor/psr/http-message/src/StreamInterface.php new file mode 100644 index 0000000..a62aabb --- /dev/null +++ b/vendor/psr/http-message/src/StreamInterface.php @@ -0,0 +1,158 @@ + + * [user-info@]host[:port] + * + * + * If the port component is not set or is the standard port for the current + * scheme, it SHOULD NOT be included. + * + * @see https://tools.ietf.org/html/rfc3986#section-3.2 + * @return string The URI authority, in "[user-info@]host[:port]" format. + */ + public function getAuthority(): string; + + /** + * Retrieve the user information component of the URI. + * + * If no user information is present, this method MUST return an empty + * string. + * + * If a user is present in the URI, this will return that value; + * additionally, if the password is also present, it will be appended to the + * user value, with a colon (":") separating the values. + * + * The trailing "@" character is not part of the user information and MUST + * NOT be added. + * + * @return string The URI user information, in "username[:password]" format. + */ + public function getUserInfo(): string; + + /** + * Retrieve the host component of the URI. + * + * If no host is present, this method MUST return an empty string. + * + * The value returned MUST be normalized to lowercase, per RFC 3986 + * Section 3.2.2. + * + * @see http://tools.ietf.org/html/rfc3986#section-3.2.2 + * @return string The URI host. + */ + public function getHost(): string; + + /** + * Retrieve the port component of the URI. + * + * If a port is present, and it is non-standard for the current scheme, + * this method MUST return it as an integer. If the port is the standard port + * used with the current scheme, this method SHOULD return null. + * + * If no port is present, and no scheme is present, this method MUST return + * a null value. + * + * If no port is present, but a scheme is present, this method MAY return + * the standard port for that scheme, but SHOULD return null. + * + * @return null|int The URI port. + */ + public function getPort(): ?int; + + /** + * Retrieve the path component of the URI. + * + * The path can either be empty or absolute (starting with a slash) or + * rootless (not starting with a slash). Implementations MUST support all + * three syntaxes. + * + * Normally, the empty path "" and absolute path "/" are considered equal as + * defined in RFC 7230 Section 2.7.3. But this method MUST NOT automatically + * do this normalization because in contexts with a trimmed base path, e.g. + * the front controller, this difference becomes significant. It's the task + * of the user to handle both "" and "/". + * + * The value returned MUST be percent-encoded, but MUST NOT double-encode + * any characters. To determine what characters to encode, please refer to + * RFC 3986, Sections 2 and 3.3. + * + * As an example, if the value should include a slash ("/") not intended as + * delimiter between path segments, that value MUST be passed in encoded + * form (e.g., "%2F") to the instance. + * + * @see https://tools.ietf.org/html/rfc3986#section-2 + * @see https://tools.ietf.org/html/rfc3986#section-3.3 + * @return string The URI path. + */ + public function getPath(): string; + + /** + * Retrieve the query string of the URI. + * + * If no query string is present, this method MUST return an empty string. + * + * The leading "?" character is not part of the query and MUST NOT be + * added. + * + * The value returned MUST be percent-encoded, but MUST NOT double-encode + * any characters. To determine what characters to encode, please refer to + * RFC 3986, Sections 2 and 3.4. + * + * As an example, if a value in a key/value pair of the query string should + * include an ampersand ("&") not intended as a delimiter between values, + * that value MUST be passed in encoded form (e.g., "%26") to the instance. + * + * @see https://tools.ietf.org/html/rfc3986#section-2 + * @see https://tools.ietf.org/html/rfc3986#section-3.4 + * @return string The URI query string. + */ + public function getQuery(): string; + + /** + * Retrieve the fragment component of the URI. + * + * If no fragment is present, this method MUST return an empty string. + * + * The leading "#" character is not part of the fragment and MUST NOT be + * added. + * + * The value returned MUST be percent-encoded, but MUST NOT double-encode + * any characters. To determine what characters to encode, please refer to + * RFC 3986, Sections 2 and 3.5. + * + * @see https://tools.ietf.org/html/rfc3986#section-2 + * @see https://tools.ietf.org/html/rfc3986#section-3.5 + * @return string The URI fragment. + */ + public function getFragment(): string; + + /** + * Return an instance with the specified scheme. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified scheme. + * + * Implementations MUST support the schemes "http" and "https" case + * insensitively, and MAY accommodate other schemes if required. + * + * An empty scheme is equivalent to removing the scheme. + * + * @param string $scheme The scheme to use with the new instance. + * @return static A new instance with the specified scheme. + * @throws \InvalidArgumentException for invalid or unsupported schemes. + */ + public function withScheme(string $scheme): UriInterface; + + /** + * Return an instance with the specified user information. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified user information. + * + * Password is optional, but the user information MUST include the + * user; an empty string for the user is equivalent to removing user + * information. + * + * @param string $user The user name to use for authority. + * @param null|string $password The password associated with $user. + * @return static A new instance with the specified user information. + */ + public function withUserInfo(string $user, ?string $password = null): UriInterface; + + /** + * Return an instance with the specified host. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified host. + * + * An empty host value is equivalent to removing the host. + * + * @param string $host The hostname to use with the new instance. + * @return static A new instance with the specified host. + * @throws \InvalidArgumentException for invalid hostnames. + */ + public function withHost(string $host): UriInterface; + + /** + * Return an instance with the specified port. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified port. + * + * Implementations MUST raise an exception for ports outside the + * established TCP and UDP port ranges. + * + * A null value provided for the port is equivalent to removing the port + * information. + * + * @param null|int $port The port to use with the new instance; a null value + * removes the port information. + * @return static A new instance with the specified port. + * @throws \InvalidArgumentException for invalid ports. + */ + public function withPort(?int $port): UriInterface; + + /** + * Return an instance with the specified path. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified path. + * + * The path can either be empty or absolute (starting with a slash) or + * rootless (not starting with a slash). Implementations MUST support all + * three syntaxes. + * + * If the path is intended to be domain-relative rather than path relative then + * it must begin with a slash ("/"). Paths not starting with a slash ("/") + * are assumed to be relative to some base path known to the application or + * consumer. + * + * Users can provide both encoded and decoded path characters. + * Implementations ensure the correct encoding as outlined in getPath(). + * + * @param string $path The path to use with the new instance. + * @return static A new instance with the specified path. + * @throws \InvalidArgumentException for invalid paths. + */ + public function withPath(string $path): UriInterface; + + /** + * Return an instance with the specified query string. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified query string. + * + * Users can provide both encoded and decoded query characters. + * Implementations ensure the correct encoding as outlined in getQuery(). + * + * An empty query string value is equivalent to removing the query string. + * + * @param string $query The query string to use with the new instance. + * @return static A new instance with the specified query string. + * @throws \InvalidArgumentException for invalid query strings. + */ + public function withQuery(string $query): UriInterface; + + /** + * Return an instance with the specified URI fragment. + * + * This method MUST retain the state of the current instance, and return + * an instance that contains the specified URI fragment. + * + * Users can provide both encoded and decoded fragment characters. + * Implementations ensure the correct encoding as outlined in getFragment(). + * + * An empty fragment value is equivalent to removing the fragment. + * + * @param string $fragment The fragment to use with the new instance. + * @return static A new instance with the specified fragment. + */ + public function withFragment(string $fragment): UriInterface; + + /** + * Return the string representation as a URI reference. + * + * Depending on which components of the URI are present, the resulting + * string is either a full URI or relative reference according to RFC 3986, + * Section 4.1. The method concatenates the various components of the URI, + * using the appropriate delimiters: + * + * - If a scheme is present, it MUST be suffixed by ":". + * - If an authority is present, it MUST be prefixed by "//". + * - The path can be concatenated without delimiters. But there are two + * cases where the path has to be adjusted to make the URI reference + * valid as PHP does not allow to throw an exception in __toString(): + * - If the path is rootless and an authority is present, the path MUST + * be prefixed by "/". + * - If the path is starting with more than one "/" and no authority is + * present, the starting slashes MUST be reduced to one. + * - If a query is present, it MUST be prefixed by "?". + * - If a fragment is present, it MUST be prefixed by "#". + * + * @see http://tools.ietf.org/html/rfc3986#section-4.1 + * @return string + */ + public function __toString(): string; +} diff --git a/vendor/symfony/deprecation-contracts/CHANGELOG.md b/vendor/symfony/deprecation-contracts/CHANGELOG.md new file mode 100644 index 0000000..7932e26 --- /dev/null +++ b/vendor/symfony/deprecation-contracts/CHANGELOG.md @@ -0,0 +1,5 @@ +CHANGELOG +========= + +The changelog is maintained for all Symfony contracts at the following URL: +https://github.com/symfony/contracts/blob/main/CHANGELOG.md diff --git a/vendor/symfony/deprecation-contracts/LICENSE b/vendor/symfony/deprecation-contracts/LICENSE new file mode 100644 index 0000000..0ed3a24 --- /dev/null +++ b/vendor/symfony/deprecation-contracts/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2020-present Fabien Potencier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/symfony/deprecation-contracts/README.md b/vendor/symfony/deprecation-contracts/README.md new file mode 100644 index 0000000..9814864 --- /dev/null +++ b/vendor/symfony/deprecation-contracts/README.md @@ -0,0 +1,26 @@ +Symfony Deprecation Contracts +============================= + +A generic function and convention to trigger deprecation notices. + +This package provides a single global function named `trigger_deprecation()` that triggers silenced deprecation notices. + +By using a custom PHP error handler such as the one provided by the Symfony ErrorHandler component, +the triggered deprecations can be caught and logged for later discovery, both on dev and prod environments. + +The function requires at least 3 arguments: + - the name of the Composer package that is triggering the deprecation + - the version of the package that introduced the deprecation + - the message of the deprecation + - more arguments can be provided: they will be inserted in the message using `printf()` formatting + +Example: +```php +trigger_deprecation('symfony/blockchain', '8.9', 'Using "%s" is deprecated, use "%s" instead.', 'bitcoin', 'fabcoin'); +``` + +This will generate the following message: +`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.` + +While not recommended, the deprecation notices can be completely ignored by declaring an empty +`function trigger_deprecation() {}` in your application. diff --git a/vendor/symfony/deprecation-contracts/composer.json b/vendor/symfony/deprecation-contracts/composer.json new file mode 100644 index 0000000..9279eb1 --- /dev/null +++ b/vendor/symfony/deprecation-contracts/composer.json @@ -0,0 +1,35 @@ +{ + "name": "symfony/deprecation-contracts", + "type": "library", + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "license": "MIT", + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "require": { + "php": ">=8.1" + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "minimum-stability": "dev", + "extra": { + "branch-alias": { + "dev-main": "3.7-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + } +} diff --git a/vendor/symfony/deprecation-contracts/function.php b/vendor/symfony/deprecation-contracts/function.php new file mode 100644 index 0000000..2d56512 --- /dev/null +++ b/vendor/symfony/deprecation-contracts/function.php @@ -0,0 +1,27 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +if (!function_exists('trigger_deprecation')) { + /** + * Triggers a silenced deprecation notice. + * + * @param string $package The name of the Composer package that is triggering the deprecation + * @param string $version The version of the package that introduced the deprecation + * @param string $message The message of the deprecation + * @param mixed ...$args Values to insert in the message using printf() formatting + * + * @author Nicolas Grekas + */ + function trigger_deprecation(string $package, string $version, string $message, mixed ...$args): void + { + @trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED); + } +} diff --git a/vendor/symfony/polyfill-mbstring/LICENSE b/vendor/symfony/polyfill-mbstring/LICENSE new file mode 100644 index 0000000..6e3afce --- /dev/null +++ b/vendor/symfony/polyfill-mbstring/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2015-present Fabien Potencier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/symfony/polyfill-mbstring/Mbstring.php b/vendor/symfony/polyfill-mbstring/Mbstring.php new file mode 100644 index 0000000..bc9e6ac --- /dev/null +++ b/vendor/symfony/polyfill-mbstring/Mbstring.php @@ -0,0 +1,1650 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Polyfill\Mbstring; + +/** + * Partial mbstring implementation in PHP, iconv based, UTF-8 centric. + * + * Implemented: + * - mb_chr - Returns a specific character from its Unicode code point + * - mb_convert_encoding - Convert character encoding + * - mb_convert_variables - Convert character code in variable(s) + * - mb_decode_mimeheader - Decode string in MIME header field + * - mb_encode_mimeheader - Encode string for MIME header XXX NATIVE IMPLEMENTATION IS REALLY BUGGED + * - mb_decode_numericentity - Decode HTML numeric string reference to character + * - mb_encode_numericentity - Encode character to HTML numeric string reference + * - mb_convert_case - Perform case folding on a string + * - mb_detect_encoding - Detect character encoding + * - mb_get_info - Get internal settings of mbstring + * - mb_http_input - Detect HTTP input character encoding + * - mb_http_output - Set/Get HTTP output character encoding + * - mb_internal_encoding - Set/Get internal character encoding + * - mb_list_encodings - Returns an array of all supported encodings + * - mb_ord - Returns the Unicode code point of a character + * - mb_output_handler - Callback function converts character encoding in output buffer + * - mb_scrub - Replaces ill-formed byte sequences with substitute characters + * - mb_strlen - Get string length + * - mb_strpos - Find position of first occurrence of string in a string + * - mb_strrpos - Find position of last occurrence of a string in a string + * - mb_str_split - Convert a string to an array + * - mb_strtolower - Make a string lowercase + * - mb_strtoupper - Make a string uppercase + * - mb_substitute_character - Set/Get substitution character + * - mb_substr - Get part of string + * - mb_stripos - Finds position of first occurrence of a string within another, case insensitive + * - mb_stristr - Finds first occurrence of a string within another, case insensitive + * - mb_strrchr - Finds the last occurrence of a character in a string within another + * - mb_strrichr - Finds the last occurrence of a character in a string within another, case insensitive + * - mb_strripos - Finds position of last occurrence of a string within another, case insensitive + * - mb_strstr - Finds first occurrence of a string within another + * - mb_strwidth - Return width of string + * - mb_substr_count - Count the number of substring occurrences + * - mb_ucfirst - Make a string's first character uppercase + * - mb_lcfirst - Make a string's first character lowercase + * - mb_trim - Strip whitespace (or other characters) from the beginning and end of a string + * - mb_ltrim - Strip whitespace (or other characters) from the beginning of a string + * - mb_rtrim - Strip whitespace (or other characters) from the end of a string + * + * Not implemented: + * - mb_convert_kana - Convert "kana" one from another ("zen-kaku", "han-kaku" and more) + * - mb_ereg_* - Regular expression with multibyte support + * - mb_parse_str - Parse GET/POST/COOKIE data and set global variable + * - mb_preferred_mime_name - Get MIME charset string + * - mb_regex_encoding - Returns current encoding for multibyte regex as string + * - mb_regex_set_options - Set/Get the default options for mbregex functions + * - mb_send_mail - Send encoded mail + * - mb_split - Split multibyte string using regular expression + * - mb_strcut - Get part of string + * - mb_strimwidth - Get truncated string with specified width + * + * @author Nicolas Grekas + * + * @internal + */ +final class Mbstring +{ + public const MB_CASE_FOLD = \PHP_INT_MAX; + + private const SIMPLE_CASE_FOLD = [ + ['µ', 'ſ', "\xCD\x85", 'ς', "\xCF\x90", "\xCF\x91", "\xCF\x95", "\xCF\x96", "\xCF\xB0", "\xCF\xB1", "\xCF\xB5", "\xE1\xBA\x9B", "\xE1\xBE\xBE"], + ['μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "\xE1\xB9\xA1", 'ι'], + ]; + + // Encodings rejected by mb_ord() and mb_chr(), with their aliases + private const UNSUPPORTED_CODEPOINT_ENCODINGS = [ + 'BASE64' => 'BASE64', + 'UUENCODE' => 'UUENCODE', + 'X-UUENCODE' => 'UUENCODE', + 'HTML-ENTITIES' => 'HTML-ENTITIES', + 'HTML' => 'HTML-ENTITIES', + 'QUOTED-PRINTABLE' => 'Quoted-Printable', + 'QPRINT' => 'Quoted-Printable', + 'UTF-7' => 'UTF-7', + 'UTF7' => 'UTF-7', + 'UTF7-IMAP' => 'UTF7-IMAP', + 'MUTF-7' => 'UTF7-IMAP', + 'JIS' => 'JIS', + 'ISO-2022-JP' => 'ISO-2022-JP', + 'ISO-2022-JP-2004' => 'ISO-2022-JP-2004', + 'ISO-2022-JP-MOBILE#KDDI' => 'ISO-2022-JP-MOBILE#KDDI', + 'ISO-2022-JP-KDDI' => 'ISO-2022-JP-MOBILE#KDDI', + 'ISO-2022-JP-MS' => 'ISO-2022-JP-MS', + 'ISO2022JPMS' => 'ISO-2022-JP-MS', + 'CP50220' => 'CP50220', + 'CP50220RAW' => 'CP50220', + 'CP50220-RAW' => 'CP50220', + 'JIS-MS' => 'CP50220', + 'CP50221' => 'CP50221', + 'CP50222' => 'CP50222', + ]; + + // Well-formed characters in group 1, then the maximal subparts of ill-formed sequences + private const UTF8_CHAR_REGEX = '/([\x00-\x7F]|[\xC2-\xDF][\x80-\xBF]|\xE0[\xA0-\xBF][\x80-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}|\xED[\x80-\x9F][\x80-\xBF]|\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2})|\xE0[\xA0-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]|\xED[\x80-\x9F]|\xF0[\x90-\xBF][\x80-\xBF]?|[\xF1-\xF3][\x80-\xBF]{1,2}|\xF4[\x80-\x8F][\x80-\xBF]?|[\x80-\xFF]/'; + + private static $encodingList = ['ASCII', 'UTF-8']; + private static $language = 'neutral'; + private static $internalEncoding = 'UTF-8'; + private static $iconvSupportsIgnore; + private static $convertibleEncodings = ['UTF-8' => true]; + + public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null) + { + if (\is_string($fromEncoding) && 2 < \strlen($fromEncoding) && '"' === $fromEncoding[0] && '"' === $fromEncoding[-1]) { + $fromEncoding = substr($fromEncoding, 1, -1); + } + + if (80000 <= \PHP_VERSION_ID + && (!isset(self::$convertibleEncodings[$toEncoding]) || (null !== $fromEncoding && !(\is_string($fromEncoding) && isset(self::$convertibleEncodings[$fromEncoding])))) + && null !== $error = self::getConversionError('mb_convert_encoding', 2, $toEncoding, $fromEncoding) + ) { + throw new \ValueError($error); + } + + if (\is_array($s)) { + return self::convertArray($s, $toEncoding, $fromEncoding); + } + + if (\is_array($fromEncoding) || (null !== $fromEncoding && false !== strpos($fromEncoding, ','))) { + $fromEncoding = self::mb_detect_encoding($s, $fromEncoding); + } else { + $fromEncoding = self::getEncoding($fromEncoding); + } + + $toEncoding = self::getEncoding($toEncoding); + + if ('BASE64' === $fromEncoding) { + $s = base64_decode($s); + $fromEncoding = $toEncoding; + } + + if ('BASE64' === $toEncoding) { + return base64_encode($s); + } + + if ('HTML-ENTITIES' === $toEncoding || 'HTML' === $toEncoding) { + if ('HTML-ENTITIES' === $fromEncoding || 'HTML' === $fromEncoding) { + $fromEncoding = 'Windows-1252'; + } + if ('UTF-8' !== $fromEncoding) { + $s = self::iconv($fromEncoding, 'UTF-8', $s); + } elseif (!preg_match('//u', $s)) { + $s = self::scrubUtf8($s); + } + + return preg_replace_callback('/[\x80-\xFF]+/', [__CLASS__, 'html_encoding_callback'], $s); + } + + if ('HTML-ENTITIES' === $fromEncoding) { + $decodeControlChars = static function ($m) { + $code = '' !== ($m[2] ?? '') ? hexdec($m[2]) : (int) $m[1]; + + if ($code < 32 || 127 === $code) { + return \chr($code); + } + if (128 <= $code && $code <= 159) { + return "\xC2".\chr(0x80 | ($code & 0x3F)); + } + + return $m[0]; + }; + + if (\PHP_VERSION_ID >= 70400) { + $s = html_entity_decode($s, \ENT_QUOTES, 'UTF-8'); + // html_entity_decode() leaves numeric entities for C0/C1 control + // characters as-is (HTML spec), but mb_convert_encoding() decodes + // them. Catch what html_entity_decode() missed. + if (false !== strpos($s, '&#')) { + $s = preg_replace_callback('/&#(?:0*([0-9]++)|[xX]0*([0-9a-fA-F]++));/', $decodeControlChars, $s); + } + } else { + // PHP < 7.4: html_entity_decode() truncates strings at NUL bytes, + // so decode the control character entities first then call + // html_entity_decode() on each NUL-delimited chunk independently. + $s = preg_replace_callback('/&#(?:0*([0-9]++)|[xX]0*([0-9a-fA-F]++));/', $decodeControlChars, $s); + $s = implode("\0", array_map(static function ($chunk) { + return html_entity_decode($chunk, \ENT_QUOTES, 'UTF-8'); + }, explode("\0", $s))); + } + $fromEncoding = 'UTF-8'; + } + + if ('UTF-8' === $fromEncoding && !preg_match('//u', $s)) { + $s = self::scrubUtf8($s); + } + + return self::iconv($fromEncoding, $toEncoding, $s); + } + + public static function mb_convert_variables($toEncoding, $fromEncoding, &...$vars) + { + if (\is_string($fromEncoding) && 2 < \strlen($fromEncoding) && '"' === $fromEncoding[0] && '"' === $fromEncoding[-1]) { + $fromEncoding = substr($fromEncoding, 1, -1); + } + + if (80000 <= \PHP_VERSION_ID && null !== $error = self::getConversionError('mb_convert_variables', 1, $toEncoding, $fromEncoding)) { + throw new \ValueError($error); + } + + $ok = true; + foreach ($vars as $i => &$var) { + $convert = static function (&$v) use (&$ok, $toEncoding, $fromEncoding, $i) { + if (\is_string($v)) { + if (false === $v = self::mb_convert_encoding($v, $toEncoding, $fromEncoding)) { + $ok = false; + } + } elseif (80600 <= \PHP_VERSION_ID && !\is_object($v)) { + trigger_error(\sprintf('mb_convert_variables(): Argument #%d must be of type string|array|object or only contain entries of type string|array|object, %s given', 3 + $i, strtok(get_debug_type($v), ' ')), \E_USER_WARNING); + } + }; + + if (\is_array($var)) { + array_walk_recursive($var, $convert); + } else { + $convert($var); + } + } + unset($var); + + return $ok ? $fromEncoding : false; + } + + public static function mb_decode_mimeheader($s) + { + return iconv_mime_decode($s, 2, self::$internalEncoding); + } + + public static function mb_encode_mimeheader($s, $charset = null, $transferEncoding = null, $linefeed = null, $indent = null) + { + trigger_error('mb_encode_mimeheader() is bugged. Please use iconv_mime_encode() instead', \E_USER_WARNING); + } + + public static function mb_decode_numericentity($s, $convmap, $encoding = null) + { + if (null !== $s && !\is_scalar($s) && !(\is_object($s) && method_exists($s, '__toString'))) { + trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', \E_USER_WARNING); + + return null; + } + + if (!\is_array($convmap) || (80000 > \PHP_VERSION_ID && !$convmap)) { + return false; + } + + if (null !== $encoding && !\is_scalar($encoding)) { + trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', \E_USER_WARNING); + + return ''; // Instead of null (cf. mb_encode_numericentity). + } + + $s = (string) $s; + if ('' === $s) { + return ''; + } + + $encoding = self::getEncoding($encoding); + + if ('UTF-8' === $encoding) { + $encoding = null; + if (!preg_match('//u', $s)) { + $s = self::scrubUtf8($s); + } + } else { + $s = self::iconv($encoding, 'UTF-8', $s); + } + + $cnt = floor(\count($convmap) / 4) * 4; + + for ($i = 0; $i < $cnt; $i += 4) { + // collector_decode_htmlnumericentity ignores $convmap[$i + 3] + $convmap[$i] += $convmap[$i + 2]; + $convmap[$i + 1] += $convmap[$i + 2]; + } + + $s = preg_replace_callback('/&#(?:0*([0-9]+)|x0*([0-9a-fA-F]+))'.(\PHP_VERSION_ID >= 80200 ? '' : '(?!&)').';?/', static function (array $m) use ($cnt, $convmap) { + $c = isset($m[2]) ? (int) hexdec($m[2]) : $m[1]; + for ($i = 0; $i < $cnt; $i += 4) { + if ($c >= $convmap[$i] && $c <= $convmap[$i + 1]) { + return self::mb_chr($c - $convmap[$i + 2]); + } + } + + return $m[0]; + }, $s); + + if (null === $encoding) { + return $s; + } + + return self::iconv('UTF-8', $encoding, $s); + } + + public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false) + { + if (null !== $s && !\is_scalar($s) && !(\is_object($s) && method_exists($s, '__toString'))) { + trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', \E_USER_WARNING); + + return null; + } + + if (!\is_array($convmap) || (80000 > \PHP_VERSION_ID && !$convmap)) { + return false; + } + + if (null !== $encoding && !\is_scalar($encoding)) { + trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', \E_USER_WARNING); + + return null; // Instead of '' (cf. mb_decode_numericentity). + } + + if (null !== $is_hex && !\is_scalar($is_hex)) { + trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.\gettype($s).' given', \E_USER_WARNING); + + return null; + } + + $s = (string) $s; + if ('' === $s) { + return ''; + } + + $encoding = self::getEncoding($encoding); + + if ('UTF-8' === $encoding) { + $encoding = null; + if (!preg_match('//u', $s)) { + $s = self::scrubUtf8($s); + } + } else { + $s = self::iconv($encoding, 'UTF-8', $s); + } + + static $ulenMask = ["\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4]; + + $cnt = floor(\count($convmap) / 4) * 4; + $i = 0; + $len = \strlen($s); + $result = ''; + + while ($i < $len) { + $ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"] ?? 1; + $uchr = substr($s, $i, $ulen); + $i += $ulen; + + // code points above U+10FFFF are outside any convmap, but mb_ord() rejects them + if (false === $c = self::mb_ord($uchr)) { + $result .= $uchr; + continue; + } + + for ($j = 0; $j < $cnt; $j += 4) { + if ($c >= $convmap[$j] && $c <= $convmap[$j + 1]) { + $cOffset = ($c + $convmap[$j + 2]) & $convmap[$j + 3]; + $result .= $is_hex ? \sprintf('&#x%X;', $cOffset) : '&#'.$cOffset.';'; + continue 2; + } + } + $result .= $uchr; + } + + if (null === $encoding) { + return $result; + } + + return self::iconv('UTF-8', $encoding, $result); + } + + public static function mb_convert_case($s, $mode, $encoding = null) + { + $s = (string) $s; + if ('' === $s) { + return ''; + } + + $encoding = self::getEncoding($encoding); + + if ('UTF-8' === $encoding) { + $encoding = null; + if (!preg_match('//u', $s)) { + $s = self::scrubUtf8($s); + } + } else { + $s = self::iconv($encoding, 'UTF-8', $s); + } + + if (\MB_CASE_TITLE == $mode) { + static $titleRegexp = null; + if (null === $titleRegexp) { + $titleRegexp = self::getData('titleCaseRegexp'); + } + $s = preg_replace_callback($titleRegexp, [__CLASS__, 'title_case'], $s); + } else { + if (\MB_CASE_UPPER == $mode) { + static $upper = null; + if (null === $upper) { + $upper = self::getData('upperCase'); + } + $map = $upper; + } else { + if (self::MB_CASE_FOLD === $mode) { + static $caseFolding = null; + if (null === $caseFolding) { + $caseFolding = self::getData('caseFolding'); + } + $s = strtr($s, $caseFolding); + } + + static $lower = null; + if (null === $lower) { + $lower = self::getData('lowerCase'); + } + $map = $lower; + } + + static $ulenMask = ["\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4]; + + $i = 0; + $len = \strlen($s); + + while ($i < $len) { + $ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"] ?? 1; + $uchr = substr($s, $i, $ulen); + $i += $ulen; + + if (isset($map[$uchr])) { + $uchr = $map[$uchr]; + $nlen = \strlen($uchr); + + if ($nlen == $ulen) { + $nlen = $i; + do { + $s[--$nlen] = $uchr[--$ulen]; + } while ($ulen); + } else { + $s = substr_replace($s, $uchr, $i - $ulen, $ulen); + $len += $nlen - $ulen; + $i += $nlen - $ulen; + } + } + } + } + + if (null === $encoding) { + return $s; + } + + return self::iconv('UTF-8', $encoding, $s); + } + + public static function mb_internal_encoding($encoding = null) + { + if (null === $encoding) { + return self::$internalEncoding; + } + + $normalizedEncoding = self::getEncoding($encoding); + + if ('UTF-8' === $normalizedEncoding || false !== @iconv($normalizedEncoding, $normalizedEncoding, ' ')) { + self::$internalEncoding = $normalizedEncoding; + + return true; + } + + if (80000 > \PHP_VERSION_ID) { + return false; + } + + throw new \ValueError(\sprintf('Argument #1 ($encoding) must be a valid encoding, "%s" given', $encoding)); + } + + public static function mb_language($lang = null) + { + if (null === $lang) { + return self::$language; + } + + switch ($normalizedLang = strtolower($lang)) { + case 'uni': + case 'neutral': + self::$language = $normalizedLang; + + return true; + } + + if (80000 > \PHP_VERSION_ID) { + return false; + } + + throw new \ValueError(\sprintf('Argument #1 ($language) must be a valid language, "%s" given', $lang)); + } + + public static function mb_list_encodings() + { + return ['UTF-8']; + } + + public static function mb_encoding_aliases($encoding) + { + switch (strtoupper($encoding)) { + case 'UTF8': + case 'UTF-8': + return ['utf8']; + } + + return false; + } + + public static function mb_check_encoding($var = null, $encoding = null) + { + if (null === $encoding) { + if (null === $var) { + return false; + } + $encoding = self::$internalEncoding; + } + + if (!\is_array($var)) { + if ('UTF-8' === self::getEncoding($encoding)) { + return (bool) preg_match('//u', $var); + } + + return self::mb_detect_encoding($var, [$encoding]) || false !== @iconv($encoding, $encoding, $var); + } + + foreach ($var as $key => $value) { + if (!self::mb_check_encoding($key, $encoding)) { + return false; + } + if (!self::mb_check_encoding($value, $encoding)) { + return false; + } + } + + return true; + } + + public static function mb_detect_encoding($str, $encodingList = null, $strict = false) + { + if (null === $encodingList) { + $encodingList = self::$encodingList; + } else { + if (!\is_array($encodingList)) { + $encodingList = array_map('trim', explode(',', $encodingList)); + } + $encodingList = array_map('strtoupper', $encodingList); + } + + foreach ($encodingList as $enc) { + switch ($enc) { + case 'ASCII': + if (!preg_match('/[\x80-\xFF]/', $str)) { + return $enc; + } + break; + + case 'UTF8': + case 'UTF-8': + if (preg_match('//u', $str)) { + return 'UTF-8'; + } + break; + + default: + if (0 === strncmp($enc, 'ISO-8859-', 9)) { + return $enc; + } + } + } + + return false; + } + + public static function mb_detect_order($encodingList = null) + { + if (null === $encodingList) { + return self::$encodingList; + } + + if (!\is_array($encodingList)) { + $encodingList = array_map('trim', explode(',', $encodingList)); + } + $encodingList = array_map('strtoupper', $encodingList); + + foreach ($encodingList as $enc) { + switch ($enc) { + default: + if (strncmp($enc, 'ISO-8859-', 9)) { + return false; + } + // no break + case 'ASCII': + case 'UTF8': + case 'UTF-8': + } + } + + self::$encodingList = $encodingList; + + return true; + } + + public static function mb_strlen($s, $encoding = null) + { + $encoding = self::getEncoding($encoding); + if ('CP850' === $encoding || 'ASCII' === $encoding) { + return \strlen($s); + } + + if (false !== $len = @iconv_strlen($s, $encoding)) { + return $len; + } + + if ('UTF-8' !== $encoding) { + return $len; + } + + return preg_match_all('/[\x00-\x7F]|[\xC0-\xDF][\x80-\xBF]?|[\xE0-\xEF][\x80-\xBF]{0,2}|[\xF0-\xF7][\x80-\xBF]{0,3}|[\xF8-\xFB][\x80-\xBF]{0,4}|[\xFC-\xFD][\x80-\xBF]{0,5}|[\x80-\xBF\xFE\xFF]/s', $s); + } + + public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) + { + return self::find(__FUNCTION__, $haystack, $needle, $offset, $encoding, false, false); + } + + public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) + { + if ($offset != (int) $offset) { + $offset = 0; + } + + return self::find(__FUNCTION__, $haystack, $needle, $offset, $encoding, true, false); + } + + public static function mb_str_split($string, $split_length = 1, $encoding = null) + { + if (null !== $string && !\is_scalar($string) && !(\is_object($string) && method_exists($string, '__toString'))) { + trigger_error('mb_str_split() expects parameter 1 to be string, '.\gettype($string).' given', \E_USER_WARNING); + + return null; + } + + if (1 > $split_length = (int) $split_length) { + if (80000 > \PHP_VERSION_ID) { + trigger_error('The length of each segment must be greater than zero', \E_USER_WARNING); + + return false; + } + + throw new \ValueError('Argument #2 ($length) must be greater than 0'); + } + + if (80300 <= \PHP_VERSION_ID && 0x3FFFFFFF < $split_length) { + throw new \ValueError('Argument #2 ($length) is too large'); + } + + if (null === $encoding) { + $encoding = mb_internal_encoding(); + } + + if ('UTF-8' === $encoding = self::getEncoding($encoding)) { + $string = (string) $string; + + if (\strlen($string) <= $split_length) { + return '' === $string ? [] : [$string]; + } + + $rx = '/('; + while (65535 < $split_length) { + $rx .= '.{65535}'; + $split_length -= 65535; + } + $rx .= '.{'.$split_length.'})/Aus'; + + return preg_split($rx, $string, -1, \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY); + } + + $result = []; + $length = mb_strlen($string, $encoding); + + for ($i = 0; $i < $length; $i += $split_length) { + $result[] = mb_substr($string, $i, $split_length, $encoding); + } + + return $result; + } + + public static function mb_strtolower($s, $encoding = null) + { + return self::mb_convert_case($s, \MB_CASE_LOWER, $encoding); + } + + public static function mb_strtoupper($s, $encoding = null) + { + return self::mb_convert_case($s, \MB_CASE_UPPER, $encoding); + } + + public static function mb_substitute_character($c = null) + { + if (null === $c) { + return 'none'; + } + if (0 === strcasecmp($c, 'none')) { + return true; + } + if (80000 > \PHP_VERSION_ID) { + return false; + } + if (\is_int($c) || 'long' === $c || 'entity' === $c) { + return false; + } + + throw new \ValueError('Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint'); + } + + public static function mb_substr($s, $start, $length = null, $encoding = null) + { + $encoding = self::getEncoding($encoding); + if ('CP850' === $encoding || 'ASCII' === $encoding) { + return (string) substr($s, $start, null === $length ? 2147483647 : $length); + } + + if ($start < 0) { + $start = iconv_strlen($s, $encoding) + $start; + if ($start < 0) { + $start = 0; + } + } + + if (null === $length) { + $length = 2147483647; + } elseif ($length < 0) { + $length = iconv_strlen($s, $encoding) + $length - $start; + if ($length < 0) { + return ''; + } + } + + return (string) iconv_substr($s, $start, $length, $encoding); + } + + public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) + { + return self::find(__FUNCTION__, $haystack, $needle, $offset, $encoding, false, true); + } + + public static function mb_stristr($haystack, $needle, $part = false, $encoding = null) + { + return self::findPart(__FUNCTION__, $haystack, $needle, $part, $encoding, false, true); + } + + public static function mb_strrchr($haystack, $needle, $part = false, $encoding = null) + { + return self::findPart(__FUNCTION__, $haystack, $needle, $part, $encoding, true, false); + } + + public static function mb_strrichr($haystack, $needle, $part = false, $encoding = null) + { + return self::findPart(__FUNCTION__, $haystack, $needle, $part, $encoding, true, true); + } + + public static function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) + { + return self::find(__FUNCTION__, $haystack, $needle, $offset, $encoding, true, true); + } + + public static function mb_strstr($haystack, $needle, $part = false, $encoding = null) + { + return self::findPart(__FUNCTION__, $haystack, $needle, $part, $encoding, false, false); + } + + public static function mb_get_info($type = 'all') + { + $info = [ + 'internal_encoding' => self::$internalEncoding, + 'http_output' => 'pass', + 'http_output_conv_mimetypes' => '^(text/|application/xhtml\+xml)', + 'func_overload' => 0, + 'func_overload_list' => 'no overload', + 'mail_charset' => 'UTF-8', + 'mail_header_encoding' => 'BASE64', + 'mail_body_encoding' => 'BASE64', + 'illegal_chars' => 0, + 'encoding_translation' => 'Off', + 'language' => self::$language, + 'detect_order' => self::$encodingList, + 'substitute_character' => 'none', + 'strict_detection' => 'Off', + ]; + + if ('all' === $type) { + return $info; + } + if (isset($info[$type])) { + return $info[$type]; + } + + return false; + } + + public static function mb_http_input($type = '') + { + return false; + } + + public static function mb_http_output($encoding = null) + { + return null !== $encoding ? 'pass' === $encoding : 'pass'; + } + + public static function mb_strwidth($s, $encoding = null) + { + $encoding = self::getEncoding($encoding); + $wideChars = '/[\x{1100}-\x{115F}\x{2329}\x{232A}\x{2E80}-\x{303E}\x{3040}-\x{A4CF}\x{AC00}-\x{D7A3}\x{F900}-\x{FAFF}\x{FE10}-\x{FE19}\x{FE30}-\x{FE6F}\x{FF00}-\x{FF60}\x{FFE0}-\x{FFE6}\x{20000}-\x{2FFFD}\x{30000}-\x{3FFFD}]/u'; + + if ('UTF-8' !== $encoding) { + $s = self::iconv($encoding, 'UTF-8', $s); + } elseif (!preg_match('//u', $s)) { + // Each maximal subpart of an ill-formed sequence is one column wide + return preg_match_all(self::UTF8_CHAR_REGEX, $s) + preg_match_all($wideChars, self::scrubUtf8($s)); + } + + $s = preg_replace($wideChars, '', $s, -1, $wide); + + return ($wide << 1) + iconv_strlen($s, 'UTF-8'); + } + + public static function mb_substr_count($haystack, $needle, $encoding = null) + { + if ('' === $needle = (string) $needle) { + if (80000 > \PHP_VERSION_ID) { + trigger_error('mb_substr_count(): Empty substring', \E_USER_WARNING); + + return false; + } + + throw new \ValueError('mb_substr_count(): Argument #2 ($needle) must not be empty'); + } + + if (!$search = self::prepareSearch((string) $haystack, $needle, self::getEncoding($encoding), false, true)) { + return 0; + } + + return substr_count($search[0], $search[1]); + } + + public static function mb_output_handler($contents, $status) + { + return $contents; + } + + public static function mb_chr($code, $encoding = null) + { + if (null !== $encoding && !self::assertCodepointEncoding($encoding, 'mb_chr')) { + return false; + } + + if (0x80 > $code %= 0x200000) { + $s = \chr($code); + } elseif (0x800 > $code) { + $s = \chr(0xC0 | $code >> 6).\chr(0x80 | $code & 0x3F); + } elseif (0x10000 > $code) { + $s = \chr(0xE0 | $code >> 12).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F); + } else { + $s = \chr(0xF0 | $code >> 18).\chr(0x80 | $code >> 12 & 0x3F).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F); + } + + if ('UTF-8' !== $encoding = self::getEncoding($encoding)) { + $s = mb_convert_encoding($s, $encoding, 'UTF-8'); + } + + return $s; + } + + public static function mb_ord($s, $encoding = null) + { + if ('' === (string) $s) { + if (80000 > \PHP_VERSION_ID) { + trigger_error('mb_ord(): Empty string', \E_USER_WARNING); + + return false; + } + + throw new \ValueError('mb_ord(): Argument #1 ($string) must not be empty'); + } + + if (null !== $encoding && !self::assertCodepointEncoding($encoding, 'mb_ord')) { + return false; + } + + if ('UTF-8' !== $encoding = self::getEncoding($encoding)) { + $s = mb_convert_encoding($s, 'UTF-8', $encoding); + } + + $s = unpack('C*', substr($s, 0, 4)); + $code = $s[1] ?? 0; + if (0x80 > $code) { + return $code; + } + + if (0xC2 > $code || 0xF4 < $code) { + return false; + } + + $c2 = $s[2] ?? 0; + if (0x80 !== ($c2 & 0xC0)) { + return false; + } + + if (0xE0 > $code) { + return (($code & 0x1F) << 6) | ($c2 & 0x3F); + } + + $c3 = $s[3] ?? 0; + if (0x80 !== ($c3 & 0xC0) + || 0xE0 === $code && 0xA0 > $c2 + || 0xED === $code && 0xA0 <= $c2 + ) { + return false; + } + + if (0xF0 > $code) { + return (($code & 0x0F) << 12) | (($c2 & 0x3F) << 6) | ($c3 & 0x3F); + } + + $c4 = $s[4] ?? 0; + if (0x80 !== ($c4 & 0xC0) + || 0xF0 === $code && 0x90 > $c2 + || 0xF4 === $code && 0x90 <= $c2 + ) { + return false; + } + + return (($code & 0x07) << 18) | (($c2 & 0x3F) << 12) | (($c3 & 0x3F) << 6) | ($c4 & 0x3F); + } + + /** @return string|false */ + public static function mb_scrub(?string $string, ?string $encoding = null): string + { + if (null === $encoding) { + $encoding = self::mb_internal_encoding(); + } elseif (!self::assertEncoding($encoding, 'mb_scrub(): Argument #2 ($encoding) must be a valid encoding, "%s" given')) { + return false; + } + + return self::mb_convert_encoding((string) $string, $encoding, $encoding); + } + + /** @return string|false */ + public static function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = \STR_PAD_RIGHT, ?string $encoding = null) + { + if (null === $encoding) { + $encoding = self::mb_internal_encoding(); + } elseif (!self::assertEncoding($encoding, 'mb_str_pad(): Argument #5 ($encoding) must be a valid encoding, "%s" given')) { + return false; + } + + if (0 >= $padStringLength = self::mb_strlen($pad_string, $encoding)) { + if (\PHP_VERSION_ID < 80000) { + trigger_error('mb_str_pad(): Argument #3 ($pad_string) must be a non-empty string', \E_USER_WARNING); + + return false; + } + + throw new \ValueError('mb_str_pad(): Argument #3 ($pad_string) must be a non-empty string'); + } + + if (!\in_array($pad_type, [\STR_PAD_RIGHT, \STR_PAD_LEFT, \STR_PAD_BOTH], true)) { + if (\PHP_VERSION_ID < 80000) { + trigger_error('mb_str_pad(): Argument #4 ($pad_type) must be STR_PAD_LEFT, STR_PAD_RIGHT, or STR_PAD_BOTH', \E_USER_WARNING); + + return false; + } + + throw new \ValueError('mb_str_pad(): Argument #4 ($pad_type) must be STR_PAD_LEFT, STR_PAD_RIGHT, or STR_PAD_BOTH'); + } + + $paddingRequired = $length - self::mb_strlen($string, $encoding); + + if ($paddingRequired < 1) { + return $string; + } + + switch ($pad_type) { + case \STR_PAD_LEFT: + $leftPaddingLength = $paddingRequired; + break; + case \STR_PAD_RIGHT: + $leftPaddingLength = 0; + break; + default: + $leftPaddingLength = intdiv($paddingRequired, 2); + } + + $rightPaddingLength = $paddingRequired - $leftPaddingLength; + + return str_repeat($pad_string, intdiv($leftPaddingLength, $padStringLength)).self::mb_substr($pad_string, 0, $leftPaddingLength % $padStringLength, $encoding) + .$string + .str_repeat($pad_string, intdiv($rightPaddingLength, $padStringLength)).self::mb_substr($pad_string, 0, $rightPaddingLength % $padStringLength, $encoding); + } + + /** @return string|false */ + public static function mb_ucfirst(string $string, ?string $encoding = null) + { + if (null === $encoding) { + $encoding = self::mb_internal_encoding(); + } elseif (!self::assertEncoding($encoding, 'mb_ucfirst(): Argument #2 ($encoding) must be a valid encoding, "%s" given')) { + return false; + } + + $firstChar = mb_substr($string, 0, 1, $encoding); + $firstChar = mb_convert_case($firstChar, \MB_CASE_TITLE, $encoding); + + return $firstChar.mb_substr($string, 1, null, $encoding); + } + + /** @return string|false */ + public static function mb_lcfirst(string $string, ?string $encoding = null) + { + if (null === $encoding) { + $encoding = self::mb_internal_encoding(); + } elseif (!self::assertEncoding($encoding, 'mb_lcfirst(): Argument #2 ($encoding) must be a valid encoding, "%s" given')) { + return false; + } + + $firstChar = mb_substr($string, 0, 1, $encoding); + $firstChar = mb_convert_case($firstChar, \MB_CASE_LOWER, $encoding); + + return $firstChar.mb_substr($string, 1, null, $encoding); + } + + /** @return string|false */ + public static function mb_trim(string $string, ?string $characters = null, ?string $encoding = null) + { + return self::mb_internal_trim('{^[%s]+|[%1$s]+$}Du', $string, $characters, $encoding, __FUNCTION__); + } + + /** @return string|false */ + public static function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null) + { + return self::mb_internal_trim('{^[%s]+}Du', $string, $characters, $encoding, __FUNCTION__); + } + + /** @return string|false */ + public static function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null) + { + return self::mb_internal_trim('{[%s]+$}Du', $string, $characters, $encoding, __FUNCTION__); + } + + /** + * Finds the position of $needle in $haystack like native mbstring. + * + * @return int|false + */ + private static function find(string $function, $haystack, $needle, $offset, $encoding, bool $reverse, bool $fold) + { + $needle = (string) $needle; + + if (80000 > \PHP_VERSION_ID && '' === $needle && 'mb_stripos' === $function) { + trigger_error($function.'(): Empty delimiter', \E_USER_WARNING); + + return false; + } + + if (!$search = self::prepareSearch((string) $haystack, $needle, self::searchEncoding($encoding, $fold), $fold, $fold)) { + return false; + } + + [$haystack, $needle, $bytes, $dropped] = $search; + + if (80000 > \PHP_VERSION_ID && $fold && ('' === $haystack || '' === $needle)) { + return false; + } + + if (false === $start = self::utf8Offset($haystack, $offset = (int) $offset, $bytes)) { + // Native mbstring counts the ill-formed sequences that iconv() dropped: the offset could be in range + if ($dropped && abs($offset) <= self::utf8Length($haystack) + $dropped) { + return false; + } + + if (80000 > \PHP_VERSION_ID) { + trigger_error($function.'(): '.($reverse ? 'Offset is greater than the length of haystack string' : 'Offset not contained in string'), \E_USER_WARNING); + + return false; + } + + throw new \ValueError($function.'(): Argument #3 ($offset) must be contained in argument #1 ($haystack)'); + } + + if (80000 > \PHP_VERSION_ID && '' === $needle) { + if ('mb_strpos' === $function) { + trigger_error($function.'(): Empty delimiter', \E_USER_WARNING); + } + + return false; + } + + if (!$reverse) { + $pos = strpos($haystack, $needle, $start); + } else { + $pos = strrpos($haystack, $needle, 0 > $offset ? $start - \strlen($haystack) : $start); + } + + return false === $pos || $bytes ? $pos : self::utf8Length(substr($haystack, 0, $pos)); + } + + /** + * Returns the part of $haystack before or from $needle like native mbstring. + * + * @return string|false + */ + private static function findPart(string $function, $haystack, $needle, $part, $encoding, bool $reverse, bool $fold) + { + $needle = (string) $needle; + + if (80000 > \PHP_VERSION_ID && '' === $needle) { + if (!$reverse) { + trigger_error($function.'(): Empty delimiter', \E_USER_WARNING); + } + + return false; + } + + $haystack = (string) $haystack; + + if (!$search = self::prepareSearch($haystack, $needle, $encoding = self::searchEncoding($encoding, $fold), $fold, $fold)) { + return false; + } + + [$h, $n, $bytes] = $search; + + if (false === $pos = $reverse ? strrpos($h, $n) : strpos($h, $n)) { + return false; + } + + if ($bytes) { + return (string) ($part ? substr($haystack, 0, $pos) : substr($haystack, $pos)); + } + + if ($fold || ('UTF-8' === $encoding && (!preg_match('//u', $haystack) || !preg_match('//u', $needle)))) { + // Cut after as many characters as native mbstring counts before the match + $pos = self::utf8Length(substr($h, 0, $pos)); + $h = 'UTF-8' === $encoding ? self::markIllFormedUtf8($haystack) : self::utf8($haystack, $encoding); + $pos = self::utf8Offset($h, $pos, false); + } + + $h = (string) ($part ? substr($h, 0, $pos) : substr($h, $pos)); + + if (false !== strpos($h, "\xFF")) { + $h = str_replace("\xFF", 'none' === mb_substitute_character() ? '' : '?', $h); + } + + return 'UTF-8' === $encoding ? $h : (string) @self::iconv('UTF-8', $encoding, $h); + } + + /** + * @return array{string, string, bool, int}|null The haystack and the needle to search, whether offsets in them count bytes rather than UTF-8 characters, and how many bytes of ill-formed sequences iconv() dropped from the haystack + */ + private static function prepareSearch(string $haystack, string $needle, string $encoding, bool $fold, bool $markIllFormed) + { + if ('ASCII' === $encoding || ('CP850' === $encoding && !$fold)) { + if ('ASCII' === $encoding) { + // Native mbstring turns every byte above 0x7F into the same error marker + $haystack = preg_replace('/[\x80-\xFF]/', "\xFF", $haystack); + $needle = preg_replace('/[\x80-\xFF]/', "\xFF", $needle); + } + + if ($fold) { + $haystack = strtr($haystack, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); + $needle = strtr($needle, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); + } + + return [$haystack, $needle, true, 0]; + } + + $dropped = 0; + + if ('UTF-8' !== $encoding) { + if (false === ($haystack = self::utf8($haystack, $encoding, $dropped)) || false === $needle = self::utf8($needle, $encoding)) { + return null; + } + } elseif ($markIllFormed) { + $haystack = self::markIllFormedUtf8($haystack); + $needle = self::markIllFormedUtf8($needle); + } + + return $fold ? [self::foldCase($haystack), self::foldCase($needle), false, $dropped] : [$haystack, $needle, false, $dropped]; + } + + private static function searchEncoding($encoding, bool $fold): string + { + $normalizedEncoding = self::getEncoding($encoding); + + // Native mbstring folds the case of 8bit strings as Latin-1 + return $fold && 'CP850' === $normalizedEncoding && null !== $encoding && 'CP850' !== strtoupper($encoding) ? 'ISO-8859-1' : $normalizedEncoding; + } + + /** + * Converts $s to UTF-8 to search it, ending with "\xFF", a byte that is invalid in UTF-8, when its last sequence is truncated, like native mbstring. + * + * @param int $dropped Set to the number of bytes of the ill-formed sequences that iconv() dropped elsewhere + * + * @return string|false False when the encoding is unknown + */ + private static function utf8(string $s, string $encoding, &$dropped = 0) + { + if ('UTF-8' === $encoding || '' === $s) { + return $s; + } + + if (false !== $u = @iconv($encoding, 'UTF-8', $s)) { + return $u; + } + + // Let iconv() warn about an unknown encoding + if (false === iconv($encoding, 'UTF-8', '')) { + return false; + } + + // iconv() drops the ill-formed sequences, but fails on a truncated one at the end + for ($i = 0; $i < 4; ++$i) { + if (false !== $u = @self::iconv($encoding, 'UTF-8', $i ? substr($s, 0, -$i) : $s)) { + $dropped = \strlen($s) - $i - \strlen((string) @iconv('UTF-8', $encoding, $u)); + + return $i || '' === $u ? $u."\xFF" : $u; + } + } + + $dropped = \strlen($s); + + return "\xFF"; + } + + /** + * Replaces each maximal subpart of ill-formed UTF-8 sequences with "\xFF", like native mbstring before searching case-insensitively. + */ + private static function markIllFormedUtf8(string $s): string + { + if (preg_match('//u', $s)) { + return $s; + } + + return preg_replace('/\G(?:[\x00-\x7F]|[\xC2-\xDF][\x80-\xBF]|\xE0[\xA0-\xBF][\x80-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}|\xED[\x80-\x9F][\x80-\xBF]|\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2})*+\K(?:\xE0[\xA0-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]|\xED[\x80-\x9F]|\xF0[\x90-\xBF][\x80-\xBF]?|[\xF1-\xF3][\x80-\xBF]{1,2}|\xF4[\x80-\x8F][\x80-\xBF]?|[\x80-\xFF])/', "\xFF", $s); + } + + /** + * Folds the case of UTF-8 $s like the simple case folding of native mbstring. + */ + private static function foldCase(string $s): string + { + static $map = null; + + if (null === $map) { + $map = array_combine(self::SIMPLE_CASE_FOLD[0], self::SIMPLE_CASE_FOLD[1]) + self::getData('lowerCase'); + unset($map["\xC4\xB0"]); // U+0130 has no simple case folding + } + + return strtr($s, $map); + } + + /** + * Counts the characters of UTF-8 $s like native mbstring, even when ill-formed: one per byte that is not a continuation byte. + */ + private static function utf8Length(string $s): int + { + return \strlen($s) - array_sum(\array_slice(count_chars($s), 0x80, 0x40)); + } + + /** + * @return int|false The offset in bytes of the character at $offset, false when it is out of range, like native mbstring + */ + private static function utf8Offset(string $s, int $offset, bool $bytes) + { + if (0 === $offset) { + return 0; + } + + if ($bytes || preg_match('//u', $u = str_replace("\xFF", '?', $s))) { + $length = $bytes ? \strlen($s) : self::utf8Length($s); + + if (0 > $offset) { + $offset += $length; + } + + if (0 > $offset || $offset > $length) { + return false; + } + + if ($bytes) { + return $offset; + } + + for ($rx = ''; 65535 < $offset; $offset -= 65535) { + $rx .= '.{65535}'; + } + preg_match('/^'.$rx.'.{'.$offset.'}\K/su', $u, $m, \PREG_OFFSET_CAPTURE); + + return $m[0][1]; + } + + // Walk ill-formed UTF-8 like native mbstring: backward over the bytes that are not continuation bytes, forward by the lengths that lead bytes announce + $length = \strlen($s); + + if (0 > $offset) { + $i = $length; + + while (0 > $offset) { + if (0 === $i) { + return false; + } + + if (0x80 !== (\ord($s[--$i]) & 0xC0)) { + ++$offset; + } + } + + return $i; + } + + $i = 0; + + while (0 < $offset--) { + if ($i >= $length) { + return false; + } + + $c = \ord($s[$i]); + $i += $c < 0xC2 ? 1 : ($c < 0xE0 ? 2 : ($c < 0xF0 ? 3 : ($c < 0xF5 ? 4 : 1))); + } + + return min($i, $length); + } + + private static function html_encoding_callback(array $m) + { + $i = 1; + $entities = ''; + $m = unpack('C*', htmlentities($m[0], \ENT_COMPAT, 'UTF-8')); + + while (isset($m[$i])) { + if (0x80 > $m[$i]) { + $entities .= \chr($m[$i++]); + continue; + } + if (0xF0 <= $m[$i]) { + $c = (($m[$i++] - 0xF0) << 18) + (($m[$i++] - 0x80) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80; + } elseif (0xE0 <= $m[$i]) { + $c = (($m[$i++] - 0xE0) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80; + } else { + $c = (($m[$i++] - 0xC0) << 6) + $m[$i++] - 0x80; + } + + $entities .= '&#'.$c.';'; + } + + return $entities; + } + + private static function title_case(array $s) + { + return self::mb_convert_case($s[1], \MB_CASE_UPPER, 'UTF-8').self::mb_convert_case($s[2], \MB_CASE_LOWER, 'UTF-8'); + } + + private static function getData($file) + { + if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.php')) { + return require $file; + } + + return false; + } + + private static function getEncoding($encoding) + { + if (null === $encoding) { + return self::$internalEncoding; + } + + if ('UTF-8' === $encoding) { + return 'UTF-8'; + } + + $encoding = strtoupper($encoding); + + if ('8BIT' === $encoding || 'BINARY' === $encoding) { + return 'CP850'; + } + + if ('UTF8' === $encoding) { + return 'UTF-8'; + } + + if ('UTF-32' === $encoding) { + return 'UTF-32BE'; + } + + if ('UTF-16' === $encoding) { + return 'UTF-16BE'; + } + + return $encoding; + } + + private static function iconv($fromEncoding, $toEncoding, $s) + { + if (null === self::$iconvSupportsIgnore) { + self::$iconvSupportsIgnore = false !== @iconv('UTF-8', 'UTF-8//IGNORE', ''); + } + + return self::$iconvSupportsIgnore + ? iconv($fromEncoding, $toEncoding.'//IGNORE', $s) + : iconv($fromEncoding, $toEncoding, $s); + } + + /** @return string|false */ + private static function mb_internal_trim(string $regex, string $string, ?string $characters, ?string $encoding, string $function) + { + if (null === $encoding) { + $encoding = self::mb_internal_encoding(); + } elseif (!self::assertEncoding($encoding, $function.'(): Argument #3 ($encoding) must be a valid encoding, "%s" given')) { + return false; + } + + if ('' === $characters) { + return $string; + } + + if ('UTF-8' === self::getEncoding($encoding)) { + $encoding = null; + if (!preg_match('//u', $string) || (null !== $characters && !preg_match('//u', $characters))) { + return self::mb_trim_invalid_utf8($string, $characters, $function); + } + } else { + $string = self::iconv($encoding, 'UTF-8', $string); + + if (null !== $characters) { + $characters = self::iconv($encoding, 'UTF-8', $characters); + } + } + + if (null === $characters) { + $characters = "\\0 \f\n\r\t\v\u{00A0}\u{1680}\u{2000}\u{2001}\u{2002}\u{2003}\u{2004}\u{2005}\u{2006}\u{2007}\u{2008}\u{2009}\u{200A}\u{2028}\u{2029}\u{202F}\u{205F}\u{3000}\u{0085}\u{180E}"; + } else { + $characters = preg_quote($characters); + } + + $string = preg_replace(\sprintf($regex, $characters), '', $string); + + if (null === $encoding) { + return $string; + } + + return self::iconv('UTF-8', $encoding, $string); + } + + /** + * Trims ill-formed UTF-8 like mbstring: each maximal subpart of an ill-formed + * sequence counts as one character, and the string is returned as is when + * nothing is trimmed, else re-encoded with the substitute character. + */ + private static function mb_trim_invalid_utf8(string $string, ?string $characters, string $function): string + { + $regex = self::UTF8_CHAR_REGEX; + + // Ill-formed sequences leave group 1 empty: they are trimmed when $characters has one too + preg_match_all($regex, $characters ?? "\0 \f\n\r\t\v\u{00A0}\u{1680}\u{2000}\u{2001}\u{2002}\u{2003}\u{2004}\u{2005}\u{2006}\u{2007}\u{2008}\u{2009}\u{200A}\u{2028}\u{2029}\u{202F}\u{205F}\u{3000}\u{0085}\u{180E}", $m); + $trimmed = array_flip($m[1]); + + $start = 0; + $end = \strlen($string); + + while ('mb_rtrim' !== $function && $start < $end && preg_match($regex, $string, $m, 0, $start) && isset($trimmed[$m[1] ?? ''])) { + $start += \strlen($m[0]); + } + + while ('mb_ltrim' !== $function && $start < $end) { + // Characters are at most 4 bytes long, and only continuation bytes don't start one + for ($i = $end - 1; $i > $start && $i > $end - 4 && 0x80 === (\ord($string[$i]) & 0xC0); --$i) { + } + + preg_match_all($regex, substr($string, $i, $end - $i), $m); + + if (!isset($trimmed[end($m[1])])) { + break; + } + + $end -= \strlen(end($m[0])); + } + + if (0 === $start && \strlen($string) === $end) { + return $string; + } + + $string = substr($string, $start, $end - $start); + + return 'none' === mb_substitute_character() ? self::scrubUtf8($string) : mb_convert_encoding($string, 'UTF-8', 'UTF-8'); + } + + private static function scrubUtf8(string $s): string + { + return preg_replace(self::UTF8_CHAR_REGEX, '$1', $s); + } + + /** + * @param true[] $referenceIds The ids of the references followed to reach $array + */ + private static function convertArray(array $array, $toEncoding, $fromEncoding, array $referenceIds = []): array + { + $r = []; + + foreach ($array as $key => $v) { + if (null !== $v && !\is_scalar($v) && !\is_array($v)) { + trigger_error('mb_convert_encoding(): Object is not supported', \E_USER_WARNING); + continue; + } + + $k = \is_string($key) ? self::mb_convert_encoding($key, $toEncoding, $fromEncoding) : $key; + + if (\is_string($v)) { + $v = self::mb_convert_encoding($v, $toEncoding, $fromEncoding); + } elseif (\is_array($v)) { + // Only a reference can close a cycle: following the same one twice means one was found + $id = 70400 <= \PHP_VERSION_ID && ($reference = \ReflectionReference::fromArrayElement($array, $key)) ? $reference->getId() : null; + + if (null !== $id && isset($referenceIds[$id])) { + trigger_error('mb_convert_encoding(): Cannot convert recursively referenced values', \E_USER_WARNING); + $v = []; + } else { + $v = self::convertArray($v, $toEncoding, $fromEncoding, null === $id ? $referenceIds : $referenceIds + [$id => true]); + } + } + + // Keys that collide once converted keep their first value + $r += [$k => $v]; + } + + return $r; + } + + /** + * Returns the error native mbstring throws for these encoding arguments, if any. + */ + private static function getConversionError(string $function, int $argument, $toEncoding, $fromEncoding): ?string + { + if (!self::isConvertibleEncoding((string) $toEncoding)) { + return \sprintf('%s(): Argument #%d ($to_encoding) must be a valid encoding, "%s" given', $function, $argument, $toEncoding); + } + + if (null === $fromEncoding) { + return null; + } + + if (!$list = \is_array($fromEncoding) ? $fromEncoding : ('' === $fromEncoding ? [] : explode(',', $fromEncoding))) { + return \sprintf('%s(): Argument #%d ($from_encoding) must specify at least one encoding', $function, 1 + $argument); + } + + foreach ($list as $encoding) { + $encoding = \is_array($fromEncoding) ? (string) $encoding : trim($encoding, " \t"); + + // PHP 8.4 takes an empty entry of a comma-separated list for "auto" + if ('' === $encoding && !\is_array($fromEncoding) && 80400 <= \PHP_VERSION_ID) { + continue; + } + + if (0 !== strcasecmp($encoding, 'auto') && !self::isConvertibleEncoding($encoding)) { + return \sprintf('%s(): Argument #%d ($from_encoding) contains invalid encoding "%s"', $function, 1 + $argument, $encoding); + } + } + + return null; + } + + private static function isConvertibleEncoding(string $encoding): bool + { + if (isset(self::$convertibleEncodings[$encoding])) { + return true; + } + + $normalizedEncoding = self::getEncoding($encoding); + + // Native encoding names use no other characters, while iconv() also accepts suffixes like //TRANSLIT + if ('' === $normalizedEncoding || preg_match('/[^\w#\-.:]/', $encoding) || (null === (self::UNSUPPORTED_CODEPOINT_ENCODINGS[$normalizedEncoding] ?? null) && false === @iconv($normalizedEncoding, $normalizedEncoding, ''))) { + return false; + } + + return self::$convertibleEncodings[$encoding] = true; + } + + private static function assertEncoding(string $encoding, string $errorFormat): bool + { + try { + $validEncoding = @self::mb_check_encoding('', $encoding); + } catch (\ValueError $e) { + throw new \ValueError(\sprintf($errorFormat, $encoding)); + } + + if (!$validEncoding) { + if (80000 > \PHP_VERSION_ID) { + trigger_error(\sprintf($errorFormat, $encoding), \E_USER_WARNING); + } else { + throw new \ValueError(\sprintf($errorFormat, $encoding)); + } + } + + return $validEncoding; + } + + private static function assertCodepointEncoding(string $encoding, string $function): bool + { + if (null !== $name = self::UNSUPPORTED_CODEPOINT_ENCODINGS[strtoupper($encoding)] ?? null) { + if (80000 > \PHP_VERSION_ID) { + trigger_error(\sprintf('%s(): Unsupported encoding "%s"', $function, $name), \E_USER_WARNING); + + return false; + } + + throw new \ValueError(\sprintf('%s() does not support the "%s" encoding', $function, $name)); + } + + $normalizedEncoding = self::getEncoding($encoding); + + if ('UTF-8' === $normalizedEncoding || false !== @iconv($normalizedEncoding, $normalizedEncoding, '')) { + return true; + } + + if (80000 > \PHP_VERSION_ID) { + trigger_error(\sprintf('%s(): Unknown encoding "%s"', $function, $encoding), \E_USER_WARNING); + + return false; + } + + throw new \ValueError(\sprintf('%s(): Argument #2 ($encoding) must be a valid encoding, "%s" given', $function, $encoding)); + } +} diff --git a/vendor/symfony/polyfill-mbstring/README.md b/vendor/symfony/polyfill-mbstring/README.md new file mode 100644 index 0000000..478b40d --- /dev/null +++ b/vendor/symfony/polyfill-mbstring/README.md @@ -0,0 +1,13 @@ +Symfony Polyfill / Mbstring +=========================== + +This component provides a partial, native PHP implementation for the +[Mbstring](https://php.net/mbstring) extension. + +More information can be found in the +[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md). + +License +======= + +This library is released under the [MIT license](LICENSE). diff --git a/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php b/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php new file mode 100644 index 0000000..512bba0 --- /dev/null +++ b/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php @@ -0,0 +1,119 @@ + 'i̇', + 'µ' => 'μ', + 'ſ' => 's', + 'ͅ' => 'ι', + 'ς' => 'σ', + 'ϐ' => 'β', + 'ϑ' => 'θ', + 'ϕ' => 'φ', + 'ϖ' => 'π', + 'ϰ' => 'κ', + 'ϱ' => 'ρ', + 'ϵ' => 'ε', + 'ẛ' => 'ṡ', + 'ι' => 'ι', + 'ß' => 'ss', + 'ʼn' => 'ʼn', + 'ǰ' => 'ǰ', + 'ΐ' => 'ΐ', + 'ΰ' => 'ΰ', + 'և' => 'եւ', + 'ẖ' => 'ẖ', + 'ẗ' => 'ẗ', + 'ẘ' => 'ẘ', + 'ẙ' => 'ẙ', + 'ẚ' => 'aʾ', + 'ẞ' => 'ss', + 'ὐ' => 'ὐ', + 'ὒ' => 'ὒ', + 'ὔ' => 'ὔ', + 'ὖ' => 'ὖ', + 'ᾀ' => 'ἀι', + 'ᾁ' => 'ἁι', + 'ᾂ' => 'ἂι', + 'ᾃ' => 'ἃι', + 'ᾄ' => 'ἄι', + 'ᾅ' => 'ἅι', + 'ᾆ' => 'ἆι', + 'ᾇ' => 'ἇι', + 'ᾈ' => 'ἀι', + 'ᾉ' => 'ἁι', + 'ᾊ' => 'ἂι', + 'ᾋ' => 'ἃι', + 'ᾌ' => 'ἄι', + 'ᾍ' => 'ἅι', + 'ᾎ' => 'ἆι', + 'ᾏ' => 'ἇι', + 'ᾐ' => 'ἠι', + 'ᾑ' => 'ἡι', + 'ᾒ' => 'ἢι', + 'ᾓ' => 'ἣι', + 'ᾔ' => 'ἤι', + 'ᾕ' => 'ἥι', + 'ᾖ' => 'ἦι', + 'ᾗ' => 'ἧι', + 'ᾘ' => 'ἠι', + 'ᾙ' => 'ἡι', + 'ᾚ' => 'ἢι', + 'ᾛ' => 'ἣι', + 'ᾜ' => 'ἤι', + 'ᾝ' => 'ἥι', + 'ᾞ' => 'ἦι', + 'ᾟ' => 'ἧι', + 'ᾠ' => 'ὠι', + 'ᾡ' => 'ὡι', + 'ᾢ' => 'ὢι', + 'ᾣ' => 'ὣι', + 'ᾤ' => 'ὤι', + 'ᾥ' => 'ὥι', + 'ᾦ' => 'ὦι', + 'ᾧ' => 'ὧι', + 'ᾨ' => 'ὠι', + 'ᾩ' => 'ὡι', + 'ᾪ' => 'ὢι', + 'ᾫ' => 'ὣι', + 'ᾬ' => 'ὤι', + 'ᾭ' => 'ὥι', + 'ᾮ' => 'ὦι', + 'ᾯ' => 'ὧι', + 'ᾲ' => 'ὰι', + 'ᾳ' => 'αι', + 'ᾴ' => 'άι', + 'ᾶ' => 'ᾶ', + 'ᾷ' => 'ᾶι', + 'ᾼ' => 'αι', + 'ῂ' => 'ὴι', + 'ῃ' => 'ηι', + 'ῄ' => 'ήι', + 'ῆ' => 'ῆ', + 'ῇ' => 'ῆι', + 'ῌ' => 'ηι', + 'ῒ' => 'ῒ', + 'ῖ' => 'ῖ', + 'ῗ' => 'ῗ', + 'ῢ' => 'ῢ', + 'ῤ' => 'ῤ', + 'ῦ' => 'ῦ', + 'ῧ' => 'ῧ', + 'ῲ' => 'ὼι', + 'ῳ' => 'ωι', + 'ῴ' => 'ώι', + 'ῶ' => 'ῶ', + 'ῷ' => 'ῶι', + 'ῼ' => 'ωι', + 'ff' => 'ff', + 'fi' => 'fi', + 'fl' => 'fl', + 'ffi' => 'ffi', + 'ffl' => 'ffl', + 'ſt' => 'st', + 'st' => 'st', + 'ﬓ' => 'մն', + 'ﬔ' => 'մե', + 'ﬕ' => 'մի', + 'ﬖ' => 'վն', + 'ﬗ' => 'մխ', +]; diff --git a/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php b/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php new file mode 100644 index 0000000..fac60b0 --- /dev/null +++ b/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php @@ -0,0 +1,1397 @@ + 'a', + 'B' => 'b', + 'C' => 'c', + 'D' => 'd', + 'E' => 'e', + 'F' => 'f', + 'G' => 'g', + 'H' => 'h', + 'I' => 'i', + 'J' => 'j', + 'K' => 'k', + 'L' => 'l', + 'M' => 'm', + 'N' => 'n', + 'O' => 'o', + 'P' => 'p', + 'Q' => 'q', + 'R' => 'r', + 'S' => 's', + 'T' => 't', + 'U' => 'u', + 'V' => 'v', + 'W' => 'w', + 'X' => 'x', + 'Y' => 'y', + 'Z' => 'z', + 'À' => 'à', + 'Á' => 'á', + 'Â' => 'â', + 'Ã' => 'ã', + 'Ä' => 'ä', + 'Å' => 'å', + 'Æ' => 'æ', + 'Ç' => 'ç', + 'È' => 'è', + 'É' => 'é', + 'Ê' => 'ê', + 'Ë' => 'ë', + 'Ì' => 'ì', + 'Í' => 'í', + 'Î' => 'î', + 'Ï' => 'ï', + 'Ð' => 'ð', + 'Ñ' => 'ñ', + 'Ò' => 'ò', + 'Ó' => 'ó', + 'Ô' => 'ô', + 'Õ' => 'õ', + 'Ö' => 'ö', + 'Ø' => 'ø', + 'Ù' => 'ù', + 'Ú' => 'ú', + 'Û' => 'û', + 'Ü' => 'ü', + 'Ý' => 'ý', + 'Þ' => 'þ', + 'Ā' => 'ā', + 'Ă' => 'ă', + 'Ą' => 'ą', + 'Ć' => 'ć', + 'Ĉ' => 'ĉ', + 'Ċ' => 'ċ', + 'Č' => 'č', + 'Ď' => 'ď', + 'Đ' => 'đ', + 'Ē' => 'ē', + 'Ĕ' => 'ĕ', + 'Ė' => 'ė', + 'Ę' => 'ę', + 'Ě' => 'ě', + 'Ĝ' => 'ĝ', + 'Ğ' => 'ğ', + 'Ġ' => 'ġ', + 'Ģ' => 'ģ', + 'Ĥ' => 'ĥ', + 'Ħ' => 'ħ', + 'Ĩ' => 'ĩ', + 'Ī' => 'ī', + 'Ĭ' => 'ĭ', + 'Į' => 'į', + 'İ' => 'i̇', + 'IJ' => 'ij', + 'Ĵ' => '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' => 'ϲ', + 'Ϻ' => 'ϻ', + 'Ͻ' => 'ͻ', + 'Ͼ' => 'ͼ', + 'Ͽ' => 'ͽ', + 'Ѐ' => 'ѐ', + 'Ё' => 'ё', + 'Ђ' => 'ђ', + 'Ѓ' => 'ѓ', + 'Є' => 'є', + 'Ѕ' => 'ѕ', + 'І' => 'і', + 'Ї' => 'ї', + 'Ј' => 'ј', + 'Љ' => 'љ', + 'Њ' => 'њ', + 'Ћ' => 'ћ', + 'Ќ' => 'ќ', + 'Ѝ' => 'ѝ', + 'Ў' => 'ў', + 'Џ' => 'џ', + 'А' => 'а', + 'Б' => 'б', + 'В' => 'в', + 'Г' => 'г', + 'Д' => 'д', + 'Е' => 'е', + 'Ж' => 'ж', + 'З' => 'з', + 'И' => 'и', + 'Й' => 'й', + 'К' => 'к', + 'Л' => 'л', + 'М' => 'м', + 'Н' => 'н', + 'О' => 'о', + 'П' => 'п', + 'Р' => 'р', + 'С' => 'с', + 'Т' => 'т', + 'У' => 'у', + 'Ф' => 'ф', + 'Х' => 'х', + 'Ц' => 'ц', + 'Ч' => 'ч', + 'Ш' => 'ш', + 'Щ' => 'щ', + 'Ъ' => 'ъ', + 'Ы' => 'ы', + 'Ь' => 'ь', + 'Э' => 'э', + 'Ю' => 'ю', + 'Я' => 'я', + 'Ѡ' => 'ѡ', + 'Ѣ' => 'ѣ', + 'Ѥ' => 'ѥ', + 'Ѧ' => 'ѧ', + 'Ѩ' => 'ѩ', + 'Ѫ' => 'ѫ', + 'Ѭ' => 'ѭ', + 'Ѯ' => 'ѯ', + 'Ѱ' => 'ѱ', + 'Ѳ' => 'ѳ', + 'Ѵ' => 'ѵ', + 'Ѷ' => 'ѷ', + 'Ѹ' => 'ѹ', + 'Ѻ' => 'ѻ', + 'Ѽ' => 'ѽ', + 'Ѿ' => 'ѿ', + 'Ҁ' => 'ҁ', + 'Ҋ' => 'ҋ', + 'Ҍ' => 'ҍ', + 'Ҏ' => 'ҏ', + 'Ґ' => 'ґ', + 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', + 'Ⴌ' => 'ⴌ', + 'Ⴍ' => 'ⴍ', + 'Ⴎ' => 'ⴎ', + 'Ⴏ' => 'ⴏ', + 'Ⴐ' => 'ⴐ', + 'Ⴑ' => 'ⴑ', + 'Ⴒ' => 'ⴒ', + 'Ⴓ' => 'ⴓ', + 'Ⴔ' => 'ⴔ', + 'Ⴕ' => 'ⴕ', + 'Ⴖ' => 'ⴖ', + 'Ⴗ' => 'ⴗ', + 'Ⴘ' => 'ⴘ', + 'Ⴙ' => 'ⴙ', + 'Ⴚ' => 'ⴚ', + 'Ⴛ' => 'ⴛ', + 'Ⴜ' => 'ⴜ', + 'Ⴝ' => 'ⴝ', + 'Ⴞ' => 'ⴞ', + 'Ⴟ' => 'ⴟ', + 'Ⴠ' => 'ⴠ', + 'Ⴡ' => 'ⴡ', + 'Ⴢ' => 'ⴢ', + 'Ⴣ' => 'ⴣ', + 'Ⴤ' => 'ⴤ', + 'Ⴥ' => 'ⴥ', + 'Ⴧ' => 'ⴧ', + 'Ⴭ' => 'ⴭ', + 'Ꭰ' => 'ꭰ', + 'Ꭱ' => 'ꭱ', + 'Ꭲ' => 'ꭲ', + 'Ꭳ' => 'ꭳ', + 'Ꭴ' => 'ꭴ', + 'Ꭵ' => 'ꭵ', + 'Ꭶ' => 'ꭶ', + 'Ꭷ' => 'ꭷ', + 'Ꭸ' => 'ꭸ', + 'Ꭹ' => 'ꭹ', + 'Ꭺ' => 'ꭺ', + 'Ꭻ' => 'ꭻ', + 'Ꭼ' => 'ꭼ', + 'Ꭽ' => 'ꭽ', + 'Ꭾ' => 'ꭾ', + 'Ꭿ' => 'ꭿ', + 'Ꮀ' => 'ꮀ', + 'Ꮁ' => 'ꮁ', + 'Ꮂ' => 'ꮂ', + 'Ꮃ' => 'ꮃ', + 'Ꮄ' => 'ꮄ', + 'Ꮅ' => 'ꮅ', + 'Ꮆ' => 'ꮆ', + 'Ꮇ' => 'ꮇ', + 'Ꮈ' => 'ꮈ', + 'Ꮉ' => 'ꮉ', + 'Ꮊ' => 'ꮊ', + 'Ꮋ' => 'ꮋ', + 'Ꮌ' => 'ꮌ', + 'Ꮍ' => 'ꮍ', + 'Ꮎ' => 'ꮎ', + 'Ꮏ' => 'ꮏ', + 'Ꮐ' => 'ꮐ', + 'Ꮑ' => 'ꮑ', + 'Ꮒ' => 'ꮒ', + 'Ꮓ' => 'ꮓ', + 'Ꮔ' => 'ꮔ', + 'Ꮕ' => 'ꮕ', + 'Ꮖ' => 'ꮖ', + 'Ꮗ' => 'ꮗ', + 'Ꮘ' => 'ꮘ', + 'Ꮙ' => 'ꮙ', + 'Ꮚ' => 'ꮚ', + 'Ꮛ' => 'ꮛ', + 'Ꮜ' => 'ꮜ', + 'Ꮝ' => 'ꮝ', + 'Ꮞ' => 'ꮞ', + 'Ꮟ' => 'ꮟ', + 'Ꮠ' => 'ꮠ', + 'Ꮡ' => 'ꮡ', + 'Ꮢ' => 'ꮢ', + 'Ꮣ' => 'ꮣ', + 'Ꮤ' => 'ꮤ', + 'Ꮥ' => 'ꮥ', + 'Ꮦ' => 'ꮦ', + 'Ꮧ' => 'ꮧ', + 'Ꮨ' => 'ꮨ', + 'Ꮩ' => 'ꮩ', + 'Ꮪ' => 'ꮪ', + 'Ꮫ' => 'ꮫ', + 'Ꮬ' => 'ꮬ', + 'Ꮭ' => 'ꮭ', + 'Ꮮ' => 'ꮮ', + 'Ꮯ' => 'ꮯ', + 'Ꮰ' => 'ꮰ', + 'Ꮱ' => 'ꮱ', + 'Ꮲ' => 'ꮲ', + 'Ꮳ' => 'ꮳ', + 'Ꮴ' => 'ꮴ', + 'Ꮵ' => 'ꮵ', + 'Ꮶ' => 'ꮶ', + 'Ꮷ' => 'ꮷ', + 'Ꮸ' => 'ꮸ', + 'Ꮹ' => 'ꮹ', + 'Ꮺ' => 'ꮺ', + 'Ꮻ' => 'ꮻ', + 'Ꮼ' => 'ꮼ', + 'Ꮽ' => 'ꮽ', + 'Ꮾ' => 'ꮾ', + 'Ꮿ' => 'ꮿ', + 'Ᏸ' => 'ᏸ', + 'Ᏹ' => 'ᏹ', + 'Ᏺ' => 'ᏺ', + 'Ᏻ' => 'ᏻ', + 'Ᏼ' => 'ᏼ', + 'Ᏽ' => 'ᏽ', + 'Ა' => 'ა', + 'Ბ' => 'ბ', + 'Გ' => 'გ', + 'Დ' => 'დ', + 'Ე' => 'ე', + 'Ვ' => 'ვ', + 'Ზ' => 'ზ', + 'Თ' => 'თ', + 'Ი' => 'ი', + 'Კ' => 'კ', + 'Ლ' => 'ლ', + 'Მ' => 'მ', + 'Ნ' => 'ნ', + 'Ო' => 'ო', + 'Პ' => 'პ', + 'Ჟ' => 'ჟ', + 'Რ' => 'რ', + 'Ს' => 'ს', + 'Ტ' => 'ტ', + 'Უ' => 'უ', + 'Ფ' => 'ფ', + 'Ქ' => 'ქ', + 'Ღ' => 'ღ', + 'Ყ' => 'ყ', + 'Შ' => 'შ', + 'Ჩ' => 'ჩ', + 'Ც' => 'ც', + 'Ძ' => 'ძ', + 'Წ' => 'წ', + 'Ჭ' => 'ჭ', + 'Ხ' => 'ხ', + 'Ჯ' => 'ჯ', + 'Ჰ' => 'ჰ', + 'Ჱ' => 'ჱ', + 'Ჲ' => 'ჲ', + 'Ჳ' => 'ჳ', + 'Ჴ' => 'ჴ', + 'Ჵ' => 'ჵ', + 'Ჶ' => 'ჶ', + 'Ჷ' => 'ჷ', + 'Ჸ' => 'ჸ', + 'Ჹ' => 'ჹ', + 'Ჺ' => 'ჺ', + 'Ჽ' => 'ჽ', + 'Ჾ' => 'ჾ', + 'Ჿ' => 'ჿ', + 'Ḁ' => 'ḁ', + 'Ḃ' => 'ḃ', + 'Ḅ' => 'ḅ', + 'Ḇ' => 'ḇ', + 'Ḉ' => 'ḉ', + 'Ḋ' => 'ḋ', + 'Ḍ' => 'ḍ', + 'Ḏ' => 'ḏ', + 'Ḑ' => 'ḑ', + 'Ḓ' => 'ḓ', + 'Ḕ' => 'ḕ', + 'Ḗ' => 'ḗ', + 'Ḙ' => 'ḙ', + 'Ḛ' => 'ḛ', + 'Ḝ' => 'ḝ', + 'Ḟ' => 'ḟ', + 'Ḡ' => 'ḡ', + 'Ḣ' => 'ḣ', + 'Ḥ' => 'ḥ', + 'Ḧ' => 'ḧ', + 'Ḩ' => 'ḩ', + 'Ḫ' => 'ḫ', + 'Ḭ' => 'ḭ', + 'Ḯ' => 'ḯ', + 'Ḱ' => 'ḱ', + 'Ḳ' => 'ḳ', + 'Ḵ' => 'ḵ', + 'Ḷ' => 'ḷ', + 'Ḹ' => 'ḹ', + 'Ḻ' => 'ḻ', + 'Ḽ' => 'ḽ', + 'Ḿ' => 'ḿ', + 'Ṁ' => 'ṁ', + 'Ṃ' => 'ṃ', + 'Ṅ' => 'ṅ', + 'Ṇ' => 'ṇ', + 'Ṉ' => 'ṉ', + 'Ṋ' => 'ṋ', + 'Ṍ' => 'ṍ', + 'Ṏ' => 'ṏ', + 'Ṑ' => 'ṑ', + 'Ṓ' => 'ṓ', + 'Ṕ' => 'ṕ', + 'Ṗ' => 'ṗ', + 'Ṙ' => 'ṙ', + 'Ṛ' => 'ṛ', + 'Ṝ' => 'ṝ', + 'Ṟ' => 'ṟ', + 'Ṡ' => 'ṡ', + 'Ṣ' => 'ṣ', + 'Ṥ' => 'ṥ', + 'Ṧ' => 'ṧ', + 'Ṩ' => 'ṩ', + 'Ṫ' => 'ṫ', + 'Ṭ' => 'ṭ', + 'Ṯ' => 'ṯ', + 'Ṱ' => 'ṱ', + 'Ṳ' => 'ṳ', + 'Ṵ' => 'ṵ', + 'Ṷ' => 'ṷ', + 'Ṹ' => 'ṹ', + 'Ṻ' => 'ṻ', + 'Ṽ' => 'ṽ', + 'Ṿ' => 'ṿ', + 'Ẁ' => 'ẁ', + 'Ẃ' => 'ẃ', + 'Ẅ' => 'ẅ', + 'Ẇ' => 'ẇ', + 'Ẉ' => 'ẉ', + 'Ẋ' => 'ẋ', + 'Ẍ' => 'ẍ', + 'Ẏ' => 'ẏ', + 'Ẑ' => 'ẑ', + 'Ẓ' => 'ẓ', + 'Ẕ' => 'ẕ', + 'ẞ' => 'ß', + 'Ạ' => 'ạ', + 'Ả' => 'ả', + 'Ấ' => 'ấ', + 'Ầ' => 'ầ', + 'Ẩ' => 'ẩ', + 'Ẫ' => 'ẫ', + 'Ậ' => 'ậ', + 'Ắ' => 'ắ', + 'Ằ' => 'ằ', + 'Ẳ' => 'ẳ', + 'Ẵ' => 'ẵ', + 'Ặ' => 'ặ', + 'Ẹ' => 'ẹ', + 'Ẻ' => 'ẻ', + 'Ẽ' => 'ẽ', + 'Ế' => 'ế', + 'Ề' => 'ề', + 'Ể' => 'ể', + 'Ễ' => 'ễ', + 'Ệ' => 'ệ', + 'Ỉ' => 'ỉ', + 'Ị' => 'ị', + 'Ọ' => 'ọ', + 'Ỏ' => 'ỏ', + 'Ố' => 'ố', + 'Ồ' => 'ồ', + 'Ổ' => 'ổ', + 'Ỗ' => 'ỗ', + 'Ộ' => 'ộ', + 'Ớ' => 'ớ', + 'Ờ' => 'ờ', + 'Ở' => 'ở', + 'Ỡ' => 'ỡ', + 'Ợ' => 'ợ', + 'Ụ' => 'ụ', + 'Ủ' => 'ủ', + 'Ứ' => 'ứ', + 'Ừ' => 'ừ', + 'Ử' => 'ử', + 'Ữ' => 'ữ', + 'Ự' => 'ự', + 'Ỳ' => 'ỳ', + 'Ỵ' => 'ỵ', + 'Ỷ' => 'ỷ', + 'Ỹ' => 'ỹ', + 'Ỻ' => 'ỻ', + 'Ỽ' => 'ỽ', + 'Ỿ' => 'ỿ', + 'Ἀ' => 'ἀ', + 'Ἁ' => 'ἁ', + 'Ἂ' => 'ἂ', + 'Ἃ' => 'ἃ', + 'Ἄ' => 'ἄ', + 'Ἅ' => 'ἅ', + 'Ἆ' => 'ἆ', + 'Ἇ' => 'ἇ', + 'Ἐ' => 'ἐ', + 'Ἑ' => 'ἑ', + 'Ἒ' => 'ἒ', + 'Ἓ' => 'ἓ', + 'Ἔ' => 'ἔ', + 'Ἕ' => 'ἕ', + 'Ἠ' => 'ἠ', + 'Ἡ' => 'ἡ', + 'Ἢ' => 'ἢ', + 'Ἣ' => 'ἣ', + 'Ἤ' => 'ἤ', + 'Ἥ' => 'ἥ', + 'Ἦ' => 'ἦ', + 'Ἧ' => 'ἧ', + 'Ἰ' => 'ἰ', + 'Ἱ' => 'ἱ', + 'Ἲ' => 'ἲ', + 'Ἳ' => 'ἳ', + 'Ἴ' => 'ἴ', + 'Ἵ' => 'ἵ', + 'Ἶ' => 'ἶ', + 'Ἷ' => 'ἷ', + 'Ὀ' => 'ὀ', + 'Ὁ' => 'ὁ', + 'Ὂ' => 'ὂ', + 'Ὃ' => 'ὃ', + 'Ὄ' => 'ὄ', + 'Ὅ' => 'ὅ', + 'Ὑ' => 'ὑ', + 'Ὓ' => 'ὓ', + 'Ὕ' => 'ὕ', + 'Ὗ' => 'ὗ', + 'Ὠ' => 'ὠ', + 'Ὡ' => 'ὡ', + 'Ὢ' => 'ὢ', + 'Ὣ' => 'ὣ', + 'Ὤ' => 'ὤ', + 'Ὥ' => 'ὥ', + 'Ὦ' => 'ὦ', + 'Ὧ' => 'ὧ', + 'ᾈ' => 'ᾀ', + 'ᾉ' => 'ᾁ', + 'ᾊ' => 'ᾂ', + 'ᾋ' => 'ᾃ', + 'ᾌ' => 'ᾄ', + 'ᾍ' => 'ᾅ', + 'ᾎ' => 'ᾆ', + 'ᾏ' => 'ᾇ', + 'ᾘ' => 'ᾐ', + 'ᾙ' => 'ᾑ', + 'ᾚ' => 'ᾒ', + 'ᾛ' => 'ᾓ', + 'ᾜ' => 'ᾔ', + 'ᾝ' => 'ᾕ', + 'ᾞ' => 'ᾖ', + 'ᾟ' => 'ᾗ', + 'ᾨ' => 'ᾠ', + 'ᾩ' => 'ᾡ', + 'ᾪ' => 'ᾢ', + 'ᾫ' => 'ᾣ', + 'ᾬ' => 'ᾤ', + 'ᾭ' => 'ᾥ', + 'ᾮ' => 'ᾦ', + 'ᾯ' => 'ᾧ', + 'Ᾰ' => 'ᾰ', + 'Ᾱ' => 'ᾱ', + 'Ὰ' => 'ὰ', + 'Ά' => 'ά', + 'ᾼ' => 'ᾳ', + 'Ὲ' => 'ὲ', + 'Έ' => 'έ', + 'Ὴ' => 'ὴ', + 'Ή' => 'ή', + 'ῌ' => 'ῃ', + 'Ῐ' => 'ῐ', + 'Ῑ' => 'ῑ', + 'Ὶ' => 'ὶ', + 'Ί' => 'ί', + 'Ῠ' => 'ῠ', + 'Ῡ' => 'ῡ', + 'Ὺ' => 'ὺ', + 'Ύ' => 'ύ', + 'Ῥ' => 'ῥ', + 'Ὸ' => 'ὸ', + 'Ό' => 'ό', + 'Ὼ' => 'ὼ', + 'Ώ' => 'ώ', + 'ῼ' => 'ῳ', + 'Ω' => 'ω', + 'K' => 'k', + 'Å' => 'å', + 'Ⅎ' => 'ⅎ', + 'Ⅰ' => 'ⅰ', + 'Ⅱ' => 'ⅱ', + 'Ⅲ' => 'ⅲ', + 'Ⅳ' => 'ⅳ', + 'Ⅴ' => 'ⅴ', + 'Ⅵ' => 'ⅵ', + 'Ⅶ' => 'ⅶ', + 'Ⅷ' => 'ⅷ', + 'Ⅸ' => 'ⅸ', + 'Ⅹ' => 'ⅹ', + 'Ⅺ' => 'ⅺ', + 'Ⅻ' => 'ⅻ', + 'Ⅼ' => 'ⅼ', + 'Ⅽ' => 'ⅽ', + 'Ⅾ' => 'ⅾ', + 'Ⅿ' => 'ⅿ', + 'Ↄ' => 'ↄ', + 'Ⓐ' => 'ⓐ', + 'Ⓑ' => 'ⓑ', + 'Ⓒ' => 'ⓒ', + 'Ⓓ' => 'ⓓ', + 'Ⓔ' => 'ⓔ', + 'Ⓕ' => 'ⓕ', + 'Ⓖ' => 'ⓖ', + 'Ⓗ' => 'ⓗ', + 'Ⓘ' => 'ⓘ', + 'Ⓙ' => 'ⓙ', + 'Ⓚ' => 'ⓚ', + 'Ⓛ' => 'ⓛ', + 'Ⓜ' => 'ⓜ', + 'Ⓝ' => 'ⓝ', + 'Ⓞ' => 'ⓞ', + 'Ⓟ' => 'ⓟ', + 'Ⓠ' => 'ⓠ', + 'Ⓡ' => 'ⓡ', + 'Ⓢ' => 'ⓢ', + 'Ⓣ' => 'ⓣ', + 'Ⓤ' => 'ⓤ', + 'Ⓥ' => 'ⓥ', + 'Ⓦ' => 'ⓦ', + 'Ⓧ' => 'ⓧ', + 'Ⓨ' => 'ⓨ', + 'Ⓩ' => 'ⓩ', + 'Ⰰ' => 'ⰰ', + 'Ⰱ' => 'ⰱ', + 'Ⰲ' => 'ⰲ', + 'Ⰳ' => 'ⰳ', + 'Ⰴ' => 'ⰴ', + 'Ⰵ' => 'ⰵ', + 'Ⰶ' => 'ⰶ', + 'Ⰷ' => 'ⰷ', + 'Ⰸ' => 'ⰸ', + 'Ⰹ' => 'ⰹ', + 'Ⰺ' => 'ⰺ', + 'Ⰻ' => 'ⰻ', + 'Ⰼ' => 'ⰼ', + 'Ⰽ' => 'ⰽ', + 'Ⰾ' => 'ⰾ', + 'Ⰿ' => 'ⰿ', + 'Ⱀ' => 'ⱀ', + 'Ⱁ' => 'ⱁ', + 'Ⱂ' => 'ⱂ', + 'Ⱃ' => 'ⱃ', + 'Ⱄ' => 'ⱄ', + 'Ⱅ' => 'ⱅ', + 'Ⱆ' => 'ⱆ', + 'Ⱇ' => 'ⱇ', + 'Ⱈ' => 'ⱈ', + 'Ⱉ' => 'ⱉ', + 'Ⱊ' => 'ⱊ', + 'Ⱋ' => 'ⱋ', + 'Ⱌ' => 'ⱌ', + 'Ⱍ' => 'ⱍ', + 'Ⱎ' => 'ⱎ', + 'Ⱏ' => 'ⱏ', + 'Ⱐ' => 'ⱐ', + 'Ⱑ' => 'ⱑ', + 'Ⱒ' => 'ⱒ', + 'Ⱓ' => 'ⱓ', + 'Ⱔ' => 'ⱔ', + 'Ⱕ' => 'ⱕ', + 'Ⱖ' => 'ⱖ', + 'Ⱗ' => 'ⱗ', + 'Ⱘ' => 'ⱘ', + 'Ⱙ' => 'ⱙ', + 'Ⱚ' => 'ⱚ', + 'Ⱛ' => 'ⱛ', + 'Ⱜ' => 'ⱜ', + 'Ⱝ' => 'ⱝ', + 'Ⱞ' => 'ⱞ', + 'Ⱡ' => 'ⱡ', + 'Ɫ' => 'ɫ', + 'Ᵽ' => 'ᵽ', + 'Ɽ' => 'ɽ', + 'Ⱨ' => 'ⱨ', + 'Ⱪ' => 'ⱪ', + 'Ⱬ' => 'ⱬ', + 'Ɑ' => 'ɑ', + 'Ɱ' => 'ɱ', + 'Ɐ' => 'ɐ', + 'Ɒ' => 'ɒ', + 'Ⱳ' => 'ⱳ', + 'Ⱶ' => 'ⱶ', + 'Ȿ' => 'ȿ', + 'Ɀ' => 'ɀ', + 'Ⲁ' => 'ⲁ', + 'Ⲃ' => 'ⲃ', + 'Ⲅ' => 'ⲅ', + 'Ⲇ' => 'ⲇ', + 'Ⲉ' => 'ⲉ', + 'Ⲋ' => 'ⲋ', + 'Ⲍ' => 'ⲍ', + 'Ⲏ' => 'ⲏ', + 'Ⲑ' => 'ⲑ', + 'Ⲓ' => 'ⲓ', + 'Ⲕ' => 'ⲕ', + 'Ⲗ' => 'ⲗ', + 'Ⲙ' => 'ⲙ', + 'Ⲛ' => 'ⲛ', + 'Ⲝ' => 'ⲝ', + 'Ⲟ' => 'ⲟ', + 'Ⲡ' => 'ⲡ', + 'Ⲣ' => 'ⲣ', + 'Ⲥ' => 'ⲥ', + 'Ⲧ' => 'ⲧ', + 'Ⲩ' => 'ⲩ', + 'Ⲫ' => 'ⲫ', + 'Ⲭ' => 'ⲭ', + 'Ⲯ' => 'ⲯ', + 'Ⲱ' => 'ⲱ', + 'Ⲳ' => 'ⲳ', + 'Ⲵ' => 'ⲵ', + 'Ⲷ' => 'ⲷ', + 'Ⲹ' => 'ⲹ', + 'Ⲻ' => 'ⲻ', + 'Ⲽ' => 'ⲽ', + 'Ⲿ' => 'ⲿ', + 'Ⳁ' => 'ⳁ', + 'Ⳃ' => 'ⳃ', + 'Ⳅ' => 'ⳅ', + 'Ⳇ' => 'ⳇ', + 'Ⳉ' => 'ⳉ', + 'Ⳋ' => 'ⳋ', + 'Ⳍ' => 'ⳍ', + 'Ⳏ' => 'ⳏ', + 'Ⳑ' => 'ⳑ', + 'Ⳓ' => 'ⳓ', + 'Ⳕ' => 'ⳕ', + 'Ⳗ' => 'ⳗ', + 'Ⳙ' => 'ⳙ', + 'Ⳛ' => 'ⳛ', + 'Ⳝ' => 'ⳝ', + 'Ⳟ' => 'ⳟ', + 'Ⳡ' => 'ⳡ', + 'Ⳣ' => 'ⳣ', + 'Ⳬ' => 'ⳬ', + 'Ⳮ' => 'ⳮ', + 'Ⳳ' => 'ⳳ', + 'Ꙁ' => 'ꙁ', + 'Ꙃ' => 'ꙃ', + 'Ꙅ' => 'ꙅ', + 'Ꙇ' => 'ꙇ', + 'Ꙉ' => 'ꙉ', + 'Ꙋ' => 'ꙋ', + 'Ꙍ' => 'ꙍ', + 'Ꙏ' => 'ꙏ', + 'Ꙑ' => 'ꙑ', + 'Ꙓ' => 'ꙓ', + 'Ꙕ' => 'ꙕ', + 'Ꙗ' => 'ꙗ', + 'Ꙙ' => 'ꙙ', + 'Ꙛ' => 'ꙛ', + 'Ꙝ' => 'ꙝ', + 'Ꙟ' => 'ꙟ', + 'Ꙡ' => 'ꙡ', + 'Ꙣ' => 'ꙣ', + 'Ꙥ' => 'ꙥ', + 'Ꙧ' => 'ꙧ', + 'Ꙩ' => 'ꙩ', + 'Ꙫ' => 'ꙫ', + 'Ꙭ' => 'ꙭ', + 'Ꚁ' => 'ꚁ', + 'Ꚃ' => 'ꚃ', + 'Ꚅ' => 'ꚅ', + 'Ꚇ' => 'ꚇ', + 'Ꚉ' => 'ꚉ', + 'Ꚋ' => 'ꚋ', + 'Ꚍ' => 'ꚍ', + 'Ꚏ' => 'ꚏ', + 'Ꚑ' => 'ꚑ', + 'Ꚓ' => 'ꚓ', + 'Ꚕ' => 'ꚕ', + 'Ꚗ' => 'ꚗ', + 'Ꚙ' => 'ꚙ', + 'Ꚛ' => 'ꚛ', + 'Ꜣ' => 'ꜣ', + 'Ꜥ' => 'ꜥ', + 'Ꜧ' => 'ꜧ', + 'Ꜩ' => 'ꜩ', + 'Ꜫ' => 'ꜫ', + 'Ꜭ' => 'ꜭ', + 'Ꜯ' => 'ꜯ', + 'Ꜳ' => 'ꜳ', + 'Ꜵ' => 'ꜵ', + 'Ꜷ' => 'ꜷ', + 'Ꜹ' => 'ꜹ', + 'Ꜻ' => 'ꜻ', + 'Ꜽ' => 'ꜽ', + 'Ꜿ' => 'ꜿ', + 'Ꝁ' => 'ꝁ', + 'Ꝃ' => 'ꝃ', + 'Ꝅ' => 'ꝅ', + 'Ꝇ' => 'ꝇ', + 'Ꝉ' => 'ꝉ', + 'Ꝋ' => 'ꝋ', + 'Ꝍ' => 'ꝍ', + 'Ꝏ' => 'ꝏ', + 'Ꝑ' => 'ꝑ', + 'Ꝓ' => 'ꝓ', + 'Ꝕ' => 'ꝕ', + 'Ꝗ' => 'ꝗ', + 'Ꝙ' => 'ꝙ', + 'Ꝛ' => 'ꝛ', + 'Ꝝ' => 'ꝝ', + 'Ꝟ' => 'ꝟ', + 'Ꝡ' => 'ꝡ', + 'Ꝣ' => 'ꝣ', + 'Ꝥ' => 'ꝥ', + 'Ꝧ' => 'ꝧ', + 'Ꝩ' => 'ꝩ', + 'Ꝫ' => 'ꝫ', + 'Ꝭ' => 'ꝭ', + 'Ꝯ' => 'ꝯ', + 'Ꝺ' => 'ꝺ', + 'Ꝼ' => 'ꝼ', + 'Ᵹ' => 'ᵹ', + 'Ꝿ' => 'ꝿ', + 'Ꞁ' => 'ꞁ', + 'Ꞃ' => 'ꞃ', + 'Ꞅ' => 'ꞅ', + 'Ꞇ' => 'ꞇ', + 'Ꞌ' => 'ꞌ', + 'Ɥ' => 'ɥ', + 'Ꞑ' => 'ꞑ', + 'Ꞓ' => 'ꞓ', + 'Ꞗ' => 'ꞗ', + 'Ꞙ' => 'ꞙ', + 'Ꞛ' => 'ꞛ', + 'Ꞝ' => 'ꞝ', + 'Ꞟ' => 'ꞟ', + 'Ꞡ' => 'ꞡ', + 'Ꞣ' => 'ꞣ', + 'Ꞥ' => 'ꞥ', + 'Ꞧ' => 'ꞧ', + 'Ꞩ' => 'ꞩ', + 'Ɦ' => 'ɦ', + 'Ɜ' => 'ɜ', + 'Ɡ' => 'ɡ', + 'Ɬ' => 'ɬ', + 'Ɪ' => 'ɪ', + 'Ʞ' => 'ʞ', + 'Ʇ' => 'ʇ', + 'Ʝ' => 'ʝ', + 'Ꭓ' => 'ꭓ', + 'Ꞵ' => 'ꞵ', + 'Ꞷ' => 'ꞷ', + 'Ꞹ' => 'ꞹ', + 'Ꞻ' => 'ꞻ', + 'Ꞽ' => 'ꞽ', + 'Ꞿ' => 'ꞿ', + 'Ꟃ' => 'ꟃ', + 'Ꞔ' => 'ꞔ', + 'Ʂ' => 'ʂ', + 'Ᶎ' => 'ᶎ', + 'Ꟈ' => 'ꟈ', + 'Ꟊ' => 'ꟊ', + 'Ꟶ' => 'ꟶ', + 'A' => 'a', + 'B' => 'b', + 'C' => 'c', + 'D' => 'd', + 'E' => 'e', + 'F' => 'f', + 'G' => 'g', + 'H' => 'h', + 'I' => 'i', + 'J' => 'j', + 'K' => 'k', + 'L' => 'l', + 'M' => 'm', + 'N' => 'n', + 'O' => 'o', + 'P' => 'p', + 'Q' => 'q', + 'R' => 'r', + 'S' => 's', + 'T' => 't', + 'U' => 'u', + 'V' => 'v', + 'W' => 'w', + 'X' => 'x', + 'Y' => 'y', + 'Z' => 'z', + '𐐀' => '𐐨', + '𐐁' => '𐐩', + '𐐂' => '𐐪', + '𐐃' => '𐐫', + '𐐄' => '𐐬', + '𐐅' => '𐐭', + '𐐆' => '𐐮', + '𐐇' => '𐐯', + '𐐈' => '𐐰', + '𐐉' => '𐐱', + '𐐊' => '𐐲', + '𐐋' => '𐐳', + '𐐌' => '𐐴', + '𐐍' => '𐐵', + '𐐎' => '𐐶', + '𐐏' => '𐐷', + '𐐐' => '𐐸', + '𐐑' => '𐐹', + '𐐒' => '𐐺', + '𐐓' => '𐐻', + '𐐔' => '𐐼', + '𐐕' => '𐐽', + '𐐖' => '𐐾', + '𐐗' => '𐐿', + '𐐘' => '𐑀', + '𐐙' => '𐑁', + '𐐚' => '𐑂', + '𐐛' => '𐑃', + '𐐜' => '𐑄', + '𐐝' => '𐑅', + '𐐞' => '𐑆', + '𐐟' => '𐑇', + '𐐠' => '𐑈', + '𐐡' => '𐑉', + '𐐢' => '𐑊', + '𐐣' => '𐑋', + '𐐤' => '𐑌', + '𐐥' => '𐑍', + '𐐦' => '𐑎', + '𐐧' => '𐑏', + '𐒰' => '𐓘', + '𐒱' => '𐓙', + '𐒲' => '𐓚', + '𐒳' => '𐓛', + '𐒴' => '𐓜', + '𐒵' => '𐓝', + '𐒶' => '𐓞', + '𐒷' => '𐓟', + '𐒸' => '𐓠', + '𐒹' => '𐓡', + '𐒺' => '𐓢', + '𐒻' => '𐓣', + '𐒼' => '𐓤', + '𐒽' => '𐓥', + '𐒾' => '𐓦', + '𐒿' => '𐓧', + '𐓀' => '𐓨', + '𐓁' => '𐓩', + '𐓂' => '𐓪', + '𐓃' => '𐓫', + '𐓄' => '𐓬', + '𐓅' => '𐓭', + '𐓆' => '𐓮', + '𐓇' => '𐓯', + '𐓈' => '𐓰', + '𐓉' => '𐓱', + '𐓊' => '𐓲', + '𐓋' => '𐓳', + '𐓌' => '𐓴', + '𐓍' => '𐓵', + '𐓎' => '𐓶', + '𐓏' => '𐓷', + '𐓐' => '𐓸', + '𐓑' => '𐓹', + '𐓒' => '𐓺', + '𐓓' => '𐓻', + '𐲀' => '𐳀', + '𐲁' => '𐳁', + '𐲂' => '𐳂', + '𐲃' => '𐳃', + '𐲄' => '𐳄', + '𐲅' => '𐳅', + '𐲆' => '𐳆', + '𐲇' => '𐳇', + '𐲈' => '𐳈', + '𐲉' => '𐳉', + '𐲊' => '𐳊', + '𐲋' => '𐳋', + '𐲌' => '𐳌', + '𐲍' => '𐳍', + '𐲎' => '𐳎', + '𐲏' => '𐳏', + '𐲐' => '𐳐', + '𐲑' => '𐳑', + '𐲒' => '𐳒', + '𐲓' => '𐳓', + '𐲔' => '𐳔', + '𐲕' => '𐳕', + '𐲖' => '𐳖', + '𐲗' => '𐳗', + '𐲘' => '𐳘', + '𐲙' => '𐳙', + '𐲚' => '𐳚', + '𐲛' => '𐳛', + '𐲜' => '𐳜', + '𐲝' => '𐳝', + '𐲞' => '𐳞', + '𐲟' => '𐳟', + '𐲠' => '𐳠', + '𐲡' => '𐳡', + '𐲢' => '𐳢', + '𐲣' => '𐳣', + '𐲤' => '𐳤', + '𐲥' => '𐳥', + '𐲦' => '𐳦', + '𐲧' => '𐳧', + '𐲨' => '𐳨', + '𐲩' => '𐳩', + '𐲪' => '𐳪', + '𐲫' => '𐳫', + '𐲬' => '𐳬', + '𐲭' => '𐳭', + '𐲮' => '𐳮', + '𐲯' => '𐳯', + '𐲰' => '𐳰', + '𐲱' => '𐳱', + '𐲲' => '𐳲', + '𑢠' => '𑣀', + '𑢡' => '𑣁', + '𑢢' => '𑣂', + '𑢣' => '𑣃', + '𑢤' => '𑣄', + '𑢥' => '𑣅', + '𑢦' => '𑣆', + '𑢧' => '𑣇', + '𑢨' => '𑣈', + '𑢩' => '𑣉', + '𑢪' => '𑣊', + '𑢫' => '𑣋', + '𑢬' => '𑣌', + '𑢭' => '𑣍', + '𑢮' => '𑣎', + '𑢯' => '𑣏', + '𑢰' => '𑣐', + '𑢱' => '𑣑', + '𑢲' => '𑣒', + '𑢳' => '𑣓', + '𑢴' => '𑣔', + '𑢵' => '𑣕', + '𑢶' => '𑣖', + '𑢷' => '𑣗', + '𑢸' => '𑣘', + '𑢹' => '𑣙', + '𑢺' => '𑣚', + '𑢻' => '𑣛', + '𑢼' => '𑣜', + '𑢽' => '𑣝', + '𑢾' => '𑣞', + '𑢿' => '𑣟', + '𖹀' => '𖹠', + '𖹁' => '𖹡', + '𖹂' => '𖹢', + '𖹃' => '𖹣', + '𖹄' => '𖹤', + '𖹅' => '𖹥', + '𖹆' => '𖹦', + '𖹇' => '𖹧', + '𖹈' => '𖹨', + '𖹉' => '𖹩', + '𖹊' => '𖹪', + '𖹋' => '𖹫', + '𖹌' => '𖹬', + '𖹍' => '𖹭', + '𖹎' => '𖹮', + '𖹏' => '𖹯', + '𖹐' => '𖹰', + '𖹑' => '𖹱', + '𖹒' => '𖹲', + '𖹓' => '𖹳', + '𖹔' => '𖹴', + '𖹕' => '𖹵', + '𖹖' => '𖹶', + '𖹗' => '𖹷', + '𖹘' => '𖹸', + '𖹙' => '𖹹', + '𖹚' => '𖹺', + '𖹛' => '𖹻', + '𖹜' => '𖹼', + '𖹝' => '𖹽', + '𖹞' => '𖹾', + '𖹟' => '𖹿', + '𞤀' => '𞤢', + '𞤁' => '𞤣', + '𞤂' => '𞤤', + '𞤃' => '𞤥', + '𞤄' => '𞤦', + '𞤅' => '𞤧', + '𞤆' => '𞤨', + '𞤇' => '𞤩', + '𞤈' => '𞤪', + '𞤉' => '𞤫', + '𞤊' => '𞤬', + '𞤋' => '𞤭', + '𞤌' => '𞤮', + '𞤍' => '𞤯', + '𞤎' => '𞤰', + '𞤏' => '𞤱', + '𞤐' => '𞤲', + '𞤑' => '𞤳', + '𞤒' => '𞤴', + '𞤓' => '𞤵', + '𞤔' => '𞤶', + '𞤕' => '𞤷', + '𞤖' => '𞤸', + '𞤗' => '𞤹', + '𞤘' => '𞤺', + '𞤙' => '𞤻', + '𞤚' => '𞤼', + '𞤛' => '𞤽', + '𞤜' => '𞤾', + '𞤝' => '𞤿', + '𞤞' => '𞥀', + '𞤟' => '𞥁', + '𞤠' => '𞥂', + '𞤡' => '𞥃', +); diff --git a/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php b/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php new file mode 100644 index 0000000..2a8f6e7 --- /dev/null +++ b/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php @@ -0,0 +1,5 @@ + 'A', + 'b' => 'B', + 'c' => 'C', + 'd' => 'D', + 'e' => 'E', + 'f' => 'F', + 'g' => 'G', + 'h' => 'H', + 'i' => 'I', + 'j' => 'J', + 'k' => 'K', + 'l' => 'L', + 'm' => 'M', + 'n' => 'N', + 'o' => 'O', + 'p' => 'P', + 'q' => 'Q', + 'r' => 'R', + 's' => 'S', + 't' => 'T', + 'u' => 'U', + 'v' => 'V', + 'w' => 'W', + 'x' => 'X', + 'y' => 'Y', + 'z' => 'Z', + 'µ' => 'Μ', + 'à' => 'À', + 'á' => 'Á', + 'â' => 'Â', + 'ã' => 'Ã', + 'ä' => 'Ä', + 'å' => 'Å', + 'æ' => 'Æ', + 'ç' => 'Ç', + 'è' => 'È', + 'é' => 'É', + 'ê' => 'Ê', + 'ë' => 'Ë', + 'ì' => 'Ì', + 'í' => 'Í', + 'î' => 'Î', + 'ï' => 'Ï', + 'ð' => 'Ð', + 'ñ' => 'Ñ', + 'ò' => 'Ò', + 'ó' => 'Ó', + 'ô' => 'Ô', + 'õ' => 'Õ', + 'ö' => 'Ö', + 'ø' => 'Ø', + 'ù' => 'Ù', + 'ú' => 'Ú', + 'û' => 'Û', + 'ü' => 'Ü', + 'ý' => 'Ý', + 'þ' => 'Þ', + 'ÿ' => 'Ÿ', + 'ā' => 'Ā', + 'ă' => 'Ă', + 'ą' => 'Ą', + 'ć' => 'Ć', + 'ĉ' => 'Ĉ', + 'ċ' => 'Ċ', + 'č' => 'Č', + 'ď' => 'Ď', + 'đ' => 'Đ', + 'ē' => 'Ē', + 'ĕ' => 'Ĕ', + 'ė' => 'Ė', + 'ę' => 'Ę', + 'ě' => 'Ě', + 'ĝ' => 'Ĝ', + 'ğ' => 'Ğ', + 'ġ' => 'Ġ', + 'ģ' => 'Ģ', + 'ĥ' => 'Ĥ', + 'ħ' => 'Ħ', + 'ĩ' => 'Ĩ', + 'ī' => 'Ī', + 'ĭ' => 'Ĭ', + 'į' => 'Į', + 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', + 'ψ' => 'Ψ', + 'ω' => 'Ω', + 'ϊ' => 'Ϊ', + 'ϋ' => 'Ϋ', + 'ό' => 'Ό', + 'ύ' => 'Ύ', + 'ώ' => 'Ώ', + 'ϐ' => 'Β', + 'ϑ' => 'Θ', + 'ϕ' => 'Φ', + 'ϖ' => 'Π', + 'ϗ' => 'Ϗ', + 'ϙ' => 'Ϙ', + 'ϛ' => 'Ϛ', + 'ϝ' => 'Ϝ', + 'ϟ' => 'Ϟ', + 'ϡ' => 'Ϡ', + 'ϣ' => 'Ϣ', + 'ϥ' => 'Ϥ', + 'ϧ' => 'Ϧ', + 'ϩ' => 'Ϩ', + 'ϫ' => 'Ϫ', + 'ϭ' => 'Ϭ', + 'ϯ' => 'Ϯ', + 'ϰ' => 'Κ', + 'ϱ' => 'Ρ', + 'ϲ' => 'Ϲ', + 'ϳ' => 'Ϳ', + 'ϵ' => 'Ε', + 'ϸ' => 'Ϸ', + 'ϻ' => 'Ϻ', + 'а' => 'А', + 'б' => 'Б', + 'в' => 'В', + 'г' => 'Г', + 'д' => 'Д', + 'е' => 'Е', + 'ж' => 'Ж', + 'з' => 'З', + 'и' => 'И', + 'й' => 'Й', + 'к' => 'К', + 'л' => 'Л', + 'м' => 'М', + 'н' => 'Н', + 'о' => 'О', + 'п' => 'П', + 'р' => 'Р', + 'с' => 'С', + 'т' => 'Т', + 'у' => 'У', + 'ф' => 'Ф', + 'х' => 'Х', + 'ц' => 'Ц', + 'ч' => 'Ч', + 'ш' => 'Ш', + 'щ' => 'Щ', + 'ъ' => 'Ъ', + 'ы' => 'Ы', + 'ь' => 'Ь', + 'э' => 'Э', + 'ю' => 'Ю', + 'я' => 'Я', + 'ѐ' => 'Ѐ', + 'ё' => 'Ё', + 'ђ' => 'Ђ', + 'ѓ' => 'Ѓ', + 'є' => 'Є', + 'ѕ' => 'Ѕ', + 'і' => 'І', + 'ї' => 'Ї', + 'ј' => 'Ј', + 'љ' => 'Љ', + 'њ' => 'Њ', + 'ћ' => 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ո', + 'չ' => 'Չ', + 'պ' => 'Պ', + 'ջ' => 'Ջ', + 'ռ' => 'Ռ', + 'ս' => 'Ս', + 'վ' => 'Վ', + 'տ' => 'Տ', + 'ր' => 'Ր', + 'ց' => 'Ց', + 'ւ' => 'Ւ', + 'փ' => 'Փ', + 'ք' => 'Ք', + 'օ' => 'Օ', + 'ֆ' => 'Ֆ', + 'ა' => 'Ა', + 'ბ' => 'Ბ', + 'გ' => 'Გ', + 'დ' => 'Დ', + 'ე' => 'Ე', + 'ვ' => 'Ვ', + 'ზ' => 'Ზ', + 'თ' => 'Თ', + 'ი' => 'Ი', + 'კ' => 'Კ', + 'ლ' => 'Ლ', + 'მ' => 'Მ', + 'ნ' => 'Ნ', + 'ო' => 'Ო', + 'პ' => 'Პ', + 'ჟ' => 'Ჟ', + 'რ' => 'Რ', + 'ს' => 'Ს', + 'ტ' => 'Ტ', + 'უ' => 'Უ', + 'ფ' => 'Ფ', + 'ქ' => 'Ქ', + 'ღ' => 'Ღ', + 'ყ' => 'Ყ', + 'შ' => 'Შ', + 'ჩ' => 'Ჩ', + 'ც' => 'Ც', + 'ძ' => 'Ძ', + 'წ' => 'Წ', + 'ჭ' => 'Ჭ', + 'ხ' => 'Ხ', + 'ჯ' => 'Ჯ', + 'ჰ' => 'Ჰ', + 'ჱ' => 'Ჱ', + 'ჲ' => 'Ჲ', + 'ჳ' => 'Ჳ', + 'ჴ' => 'Ჴ', + 'ჵ' => 'Ჵ', + 'ჶ' => 'Ჶ', + 'ჷ' => 'Ჷ', + 'ჸ' => 'Ჸ', + 'ჹ' => 'Ჹ', + 'ჺ' => 'Ჺ', + 'ჽ' => 'Ჽ', + 'ჾ' => 'Ჾ', + 'ჿ' => 'Ჿ', + 'ᏸ' => 'Ᏸ', + 'ᏹ' => 'Ᏹ', + 'ᏺ' => 'Ᏺ', + 'ᏻ' => 'Ᏻ', + 'ᏼ' => 'Ᏼ', + 'ᏽ' => 'Ᏽ', + 'ᲀ' => 'В', + 'ᲁ' => 'Д', + 'ᲂ' => 'О', + 'ᲃ' => 'С', + 'ᲄ' => 'Т', + 'ᲅ' => 'Т', + 'ᲆ' => 'Ъ', + 'ᲇ' => 'Ѣ', + 'ᲈ' => 'Ꙋ', + 'ᵹ' => 'Ᵹ', + 'ᵽ' => 'Ᵽ', + 'ᶎ' => 'Ᶎ', + 'ḁ' => 'Ḁ', + 'ḃ' => 'Ḃ', + 'ḅ' => 'Ḅ', + 'ḇ' => 'Ḇ', + 'ḉ' => 'Ḉ', + 'ḋ' => 'Ḋ', + 'ḍ' => 'Ḍ', + 'ḏ' => 'Ḏ', + 'ḑ' => 'Ḑ', + 'ḓ' => 'Ḓ', + 'ḕ' => 'Ḕ', + 'ḗ' => 'Ḗ', + 'ḙ' => 'Ḙ', + 'ḛ' => 'Ḛ', + 'ḝ' => 'Ḝ', + 'ḟ' => 'Ḟ', + 'ḡ' => 'Ḡ', + 'ḣ' => 'Ḣ', + 'ḥ' => 'Ḥ', + 'ḧ' => 'Ḧ', + 'ḩ' => 'Ḩ', + 'ḫ' => 'Ḫ', + 'ḭ' => 'Ḭ', + 'ḯ' => 'Ḯ', + 'ḱ' => 'Ḱ', + 'ḳ' => 'Ḳ', + 'ḵ' => 'Ḵ', + 'ḷ' => 'Ḷ', + 'ḹ' => 'Ḹ', + 'ḻ' => 'Ḻ', + 'ḽ' => 'Ḽ', + 'ḿ' => 'Ḿ', + 'ṁ' => 'Ṁ', + 'ṃ' => 'Ṃ', + 'ṅ' => 'Ṅ', + 'ṇ' => 'Ṇ', + 'ṉ' => 'Ṉ', + 'ṋ' => 'Ṋ', + 'ṍ' => 'Ṍ', + 'ṏ' => 'Ṏ', + 'ṑ' => 'Ṑ', + 'ṓ' => 'Ṓ', + 'ṕ' => 'Ṕ', + 'ṗ' => 'Ṗ', + 'ṙ' => 'Ṙ', + 'ṛ' => 'Ṛ', + 'ṝ' => 'Ṝ', + 'ṟ' => 'Ṟ', + 'ṡ' => 'Ṡ', + 'ṣ' => 'Ṣ', + 'ṥ' => 'Ṥ', + 'ṧ' => 'Ṧ', + 'ṩ' => 'Ṩ', + 'ṫ' => 'Ṫ', + 'ṭ' => 'Ṭ', + 'ṯ' => 'Ṯ', + 'ṱ' => 'Ṱ', + 'ṳ' => 'Ṳ', + 'ṵ' => 'Ṵ', + 'ṷ' => 'Ṷ', + 'ṹ' => 'Ṹ', + 'ṻ' => 'Ṻ', + 'ṽ' => 'Ṽ', + 'ṿ' => 'Ṿ', + 'ẁ' => 'Ẁ', + 'ẃ' => 'Ẃ', + 'ẅ' => 'Ẅ', + 'ẇ' => 'Ẇ', + 'ẉ' => 'Ẉ', + 'ẋ' => 'Ẋ', + 'ẍ' => 'Ẍ', + 'ẏ' => 'Ẏ', + 'ẑ' => 'Ẑ', + 'ẓ' => 'Ẓ', + 'ẕ' => 'Ẕ', + 'ẛ' => 'Ṡ', + 'ạ' => 'Ạ', + 'ả' => 'Ả', + 'ấ' => 'Ấ', + 'ầ' => 'Ầ', + 'ẩ' => 'Ẩ', + 'ẫ' => 'Ẫ', + 'ậ' => 'Ậ', + 'ắ' => 'Ắ', + 'ằ' => 'Ằ', + 'ẳ' => 'Ẳ', + 'ẵ' => 'Ẵ', + 'ặ' => 'Ặ', + 'ẹ' => 'Ẹ', + 'ẻ' => 'Ẻ', + 'ẽ' => 'Ẽ', + 'ế' => 'Ế', + 'ề' => 'Ề', + 'ể' => 'Ể', + 'ễ' => 'Ễ', + 'ệ' => 'Ệ', + 'ỉ' => 'Ỉ', + 'ị' => 'Ị', + 'ọ' => 'Ọ', + 'ỏ' => 'Ỏ', + 'ố' => 'Ố', + 'ồ' => 'Ồ', + 'ổ' => 'Ổ', + 'ỗ' => 'Ỗ', + 'ộ' => 'Ộ', + 'ớ' => 'Ớ', + 'ờ' => 'Ờ', + 'ở' => 'Ở', + 'ỡ' => 'Ỡ', + 'ợ' => 'Ợ', + 'ụ' => 'Ụ', + 'ủ' => 'Ủ', + 'ứ' => 'Ứ', + 'ừ' => 'Ừ', + 'ử' => 'Ử', + 'ữ' => 'Ữ', + 'ự' => 'Ự', + 'ỳ' => 'Ỳ', + 'ỵ' => 'Ỵ', + 'ỷ' => 'Ỷ', + 'ỹ' => 'Ỹ', + 'ỻ' => 'Ỻ', + 'ỽ' => 'Ỽ', + 'ỿ' => 'Ỿ', + 'ἀ' => 'Ἀ', + 'ἁ' => 'Ἁ', + 'ἂ' => 'Ἂ', + 'ἃ' => 'Ἃ', + 'ἄ' => 'Ἄ', + 'ἅ' => 'Ἅ', + 'ἆ' => 'Ἆ', + 'ἇ' => 'Ἇ', + 'ἐ' => 'Ἐ', + 'ἑ' => 'Ἑ', + 'ἒ' => 'Ἒ', + 'ἓ' => 'Ἓ', + 'ἔ' => 'Ἔ', + 'ἕ' => 'Ἕ', + 'ἠ' => 'Ἠ', + 'ἡ' => 'Ἡ', + 'ἢ' => 'Ἢ', + 'ἣ' => 'Ἣ', + 'ἤ' => 'Ἤ', + 'ἥ' => 'Ἥ', + 'ἦ' => 'Ἦ', + 'ἧ' => 'Ἧ', + 'ἰ' => 'Ἰ', + 'ἱ' => 'Ἱ', + 'ἲ' => 'Ἲ', + 'ἳ' => 'Ἳ', + 'ἴ' => 'Ἴ', + 'ἵ' => 'Ἵ', + 'ἶ' => 'Ἶ', + 'ἷ' => 'Ἷ', + 'ὀ' => 'Ὀ', + 'ὁ' => 'Ὁ', + 'ὂ' => 'Ὂ', + 'ὃ' => 'Ὃ', + 'ὄ' => 'Ὄ', + 'ὅ' => 'Ὅ', + 'ὑ' => 'Ὑ', + 'ὓ' => 'Ὓ', + 'ὕ' => 'Ὕ', + 'ὗ' => 'Ὗ', + 'ὠ' => 'Ὠ', + 'ὡ' => 'Ὡ', + 'ὢ' => 'Ὢ', + 'ὣ' => 'Ὣ', + 'ὤ' => 'Ὤ', + 'ὥ' => 'Ὥ', + 'ὦ' => 'Ὦ', + 'ὧ' => 'Ὧ', + 'ὰ' => 'Ὰ', + 'ά' => 'Ά', + 'ὲ' => 'Ὲ', + 'έ' => 'Έ', + 'ὴ' => 'Ὴ', + 'ή' => 'Ή', + 'ὶ' => 'Ὶ', + 'ί' => 'Ί', + 'ὸ' => 'Ὸ', + 'ό' => 'Ό', + 'ὺ' => 'Ὺ', + 'ύ' => 'Ύ', + 'ὼ' => 'Ὼ', + 'ώ' => 'Ώ', + 'ᾀ' => 'ἈΙ', + 'ᾁ' => 'ἉΙ', + 'ᾂ' => 'ἊΙ', + 'ᾃ' => 'ἋΙ', + 'ᾄ' => 'ἌΙ', + 'ᾅ' => 'ἍΙ', + 'ᾆ' => 'ἎΙ', + 'ᾇ' => 'ἏΙ', + 'ᾐ' => 'ἨΙ', + 'ᾑ' => 'ἩΙ', + 'ᾒ' => 'ἪΙ', + 'ᾓ' => 'ἫΙ', + 'ᾔ' => 'ἬΙ', + 'ᾕ' => 'ἭΙ', + 'ᾖ' => 'ἮΙ', + 'ᾗ' => 'ἯΙ', + 'ᾠ' => 'ὨΙ', + 'ᾡ' => 'ὩΙ', + 'ᾢ' => 'ὪΙ', + 'ᾣ' => 'ὫΙ', + 'ᾤ' => 'ὬΙ', + 'ᾥ' => 'ὭΙ', + 'ᾦ' => 'ὮΙ', + 'ᾧ' => 'ὯΙ', + 'ᾰ' => 'Ᾰ', + 'ᾱ' => 'Ᾱ', + 'ᾳ' => 'ΑΙ', + 'ι' => 'Ι', + 'ῃ' => 'ΗΙ', + 'ῐ' => 'Ῐ', + 'ῑ' => 'Ῑ', + 'ῠ' => 'Ῠ', + 'ῡ' => 'Ῡ', + 'ῥ' => 'Ῥ', + 'ῳ' => 'ΩΙ', + 'ⅎ' => 'Ⅎ', + 'ⅰ' => 'Ⅰ', + 'ⅱ' => 'Ⅱ', + 'ⅲ' => 'Ⅲ', + 'ⅳ' => 'Ⅳ', + 'ⅴ' => 'Ⅴ', + 'ⅵ' => 'Ⅵ', + 'ⅶ' => 'Ⅶ', + 'ⅷ' => 'Ⅷ', + 'ⅸ' => 'Ⅸ', + 'ⅹ' => 'Ⅹ', + 'ⅺ' => 'Ⅺ', + 'ⅻ' => 'Ⅻ', + 'ⅼ' => 'Ⅼ', + 'ⅽ' => 'Ⅽ', + 'ⅾ' => 'Ⅾ', + 'ⅿ' => 'Ⅿ', + 'ↄ' => 'Ↄ', + 'ⓐ' => 'Ⓐ', + 'ⓑ' => 'Ⓑ', + 'ⓒ' => 'Ⓒ', + 'ⓓ' => 'Ⓓ', + 'ⓔ' => 'Ⓔ', + 'ⓕ' => 'Ⓕ', + 'ⓖ' => 'Ⓖ', + 'ⓗ' => 'Ⓗ', + 'ⓘ' => 'Ⓘ', + 'ⓙ' => 'Ⓙ', + 'ⓚ' => 'Ⓚ', + 'ⓛ' => 'Ⓛ', + 'ⓜ' => 'Ⓜ', + 'ⓝ' => 'Ⓝ', + 'ⓞ' => 'Ⓞ', + 'ⓟ' => 'Ⓟ', + 'ⓠ' => 'Ⓠ', + 'ⓡ' => 'Ⓡ', + 'ⓢ' => 'Ⓢ', + 'ⓣ' => 'Ⓣ', + 'ⓤ' => 'Ⓤ', + 'ⓥ' => 'Ⓥ', + 'ⓦ' => 'Ⓦ', + 'ⓧ' => 'Ⓧ', + 'ⓨ' => 'Ⓨ', + 'ⓩ' => 'Ⓩ', + 'ⰰ' => 'Ⰰ', + 'ⰱ' => 'Ⰱ', + 'ⰲ' => 'Ⰲ', + 'ⰳ' => 'Ⰳ', + 'ⰴ' => 'Ⰴ', + 'ⰵ' => 'Ⰵ', + 'ⰶ' => 'Ⰶ', + 'ⰷ' => 'Ⰷ', + 'ⰸ' => 'Ⰸ', + 'ⰹ' => 'Ⰹ', + 'ⰺ' => 'Ⰺ', + 'ⰻ' => 'Ⰻ', + 'ⰼ' => 'Ⰼ', + 'ⰽ' => 'Ⰽ', + 'ⰾ' => 'Ⰾ', + 'ⰿ' => 'Ⰿ', + 'ⱀ' => 'Ⱀ', + 'ⱁ' => 'Ⱁ', + 'ⱂ' => 'Ⱂ', + 'ⱃ' => 'Ⱃ', + 'ⱄ' => 'Ⱄ', + 'ⱅ' => 'Ⱅ', + 'ⱆ' => 'Ⱆ', + 'ⱇ' => 'Ⱇ', + 'ⱈ' => 'Ⱈ', + 'ⱉ' => 'Ⱉ', + 'ⱊ' => 'Ⱊ', + 'ⱋ' => 'Ⱋ', + 'ⱌ' => 'Ⱌ', + 'ⱍ' => 'Ⱍ', + 'ⱎ' => 'Ⱎ', + 'ⱏ' => 'Ⱏ', + 'ⱐ' => 'Ⱐ', + 'ⱑ' => 'Ⱑ', + 'ⱒ' => 'Ⱒ', + 'ⱓ' => 'Ⱓ', + 'ⱔ' => 'Ⱔ', + 'ⱕ' => 'Ⱕ', + 'ⱖ' => 'Ⱖ', + 'ⱗ' => 'Ⱗ', + 'ⱘ' => 'Ⱘ', + 'ⱙ' => 'Ⱙ', + 'ⱚ' => 'Ⱚ', + 'ⱛ' => 'Ⱛ', + 'ⱜ' => 'Ⱜ', + 'ⱝ' => 'Ⱝ', + 'ⱞ' => 'Ⱞ', + 'ⱡ' => 'Ⱡ', + 'ⱥ' => 'Ⱥ', + 'ⱦ' => 'Ⱦ', + 'ⱨ' => 'Ⱨ', + 'ⱪ' => 'Ⱪ', + 'ⱬ' => 'Ⱬ', + 'ⱳ' => 'Ⱳ', + 'ⱶ' => 'Ⱶ', + 'ⲁ' => 'Ⲁ', + 'ⲃ' => 'Ⲃ', + 'ⲅ' => 'Ⲅ', + 'ⲇ' => 'Ⲇ', + 'ⲉ' => 'Ⲉ', + 'ⲋ' => 'Ⲋ', + 'ⲍ' => 'Ⲍ', + 'ⲏ' => 'Ⲏ', + 'ⲑ' => 'Ⲑ', + 'ⲓ' => 'Ⲓ', + 'ⲕ' => 'Ⲕ', + 'ⲗ' => 'Ⲗ', + 'ⲙ' => 'Ⲙ', + 'ⲛ' => 'Ⲛ', + 'ⲝ' => 'Ⲝ', + 'ⲟ' => 'Ⲟ', + 'ⲡ' => 'Ⲡ', + 'ⲣ' => 'Ⲣ', + 'ⲥ' => 'Ⲥ', + 'ⲧ' => 'Ⲧ', + 'ⲩ' => 'Ⲩ', + 'ⲫ' => 'Ⲫ', + 'ⲭ' => 'Ⲭ', + 'ⲯ' => 'Ⲯ', + 'ⲱ' => 'Ⲱ', + 'ⲳ' => 'Ⲳ', + 'ⲵ' => 'Ⲵ', + 'ⲷ' => 'Ⲷ', + 'ⲹ' => 'Ⲹ', + 'ⲻ' => 'Ⲻ', + 'ⲽ' => 'Ⲽ', + 'ⲿ' => 'Ⲿ', + 'ⳁ' => 'Ⳁ', + 'ⳃ' => 'Ⳃ', + 'ⳅ' => 'Ⳅ', + 'ⳇ' => 'Ⳇ', + 'ⳉ' => 'Ⳉ', + 'ⳋ' => 'Ⳋ', + 'ⳍ' => 'Ⳍ', + 'ⳏ' => 'Ⳏ', + 'ⳑ' => 'Ⳑ', + 'ⳓ' => 'Ⳓ', + 'ⳕ' => 'Ⳕ', + 'ⳗ' => 'Ⳗ', + 'ⳙ' => 'Ⳙ', + 'ⳛ' => 'Ⳛ', + 'ⳝ' => 'Ⳝ', + 'ⳟ' => 'Ⳟ', + 'ⳡ' => 'Ⳡ', + 'ⳣ' => 'Ⳣ', + 'ⳬ' => 'Ⳬ', + 'ⳮ' => 'Ⳮ', + 'ⳳ' => 'Ⳳ', + 'ⴀ' => 'Ⴀ', + 'ⴁ' => 'Ⴁ', + 'ⴂ' => 'Ⴂ', + 'ⴃ' => 'Ⴃ', + 'ⴄ' => 'Ⴄ', + 'ⴅ' => 'Ⴅ', + 'ⴆ' => 'Ⴆ', + 'ⴇ' => 'Ⴇ', + 'ⴈ' => 'Ⴈ', + 'ⴉ' => 'Ⴉ', + 'ⴊ' => 'Ⴊ', + 'ⴋ' => 'Ⴋ', + 'ⴌ' => 'Ⴌ', + 'ⴍ' => 'Ⴍ', + 'ⴎ' => 'Ⴎ', + 'ⴏ' => 'Ⴏ', + 'ⴐ' => 'Ⴐ', + 'ⴑ' => 'Ⴑ', + 'ⴒ' => 'Ⴒ', + 'ⴓ' => 'Ⴓ', + 'ⴔ' => 'Ⴔ', + 'ⴕ' => 'Ⴕ', + 'ⴖ' => 'Ⴖ', + 'ⴗ' => 'Ⴗ', + 'ⴘ' => 'Ⴘ', + 'ⴙ' => 'Ⴙ', + 'ⴚ' => 'Ⴚ', + 'ⴛ' => 'Ⴛ', + 'ⴜ' => 'Ⴜ', + 'ⴝ' => 'Ⴝ', + 'ⴞ' => 'Ⴞ', + 'ⴟ' => 'Ⴟ', + 'ⴠ' => 'Ⴠ', + 'ⴡ' => 'Ⴡ', + 'ⴢ' => 'Ⴢ', + 'ⴣ' => 'Ⴣ', + 'ⴤ' => 'Ⴤ', + 'ⴥ' => 'Ⴥ', + 'ⴧ' => 'Ⴧ', + 'ⴭ' => 'Ⴭ', + 'ꙁ' => 'Ꙁ', + 'ꙃ' => 'Ꙃ', + 'ꙅ' => 'Ꙅ', + 'ꙇ' => 'Ꙇ', + 'ꙉ' => 'Ꙉ', + 'ꙋ' => 'Ꙋ', + 'ꙍ' => 'Ꙍ', + 'ꙏ' => 'Ꙏ', + 'ꙑ' => 'Ꙑ', + 'ꙓ' => 'Ꙓ', + 'ꙕ' => 'Ꙕ', + 'ꙗ' => 'Ꙗ', + 'ꙙ' => 'Ꙙ', + 'ꙛ' => 'Ꙛ', + 'ꙝ' => 'Ꙝ', + 'ꙟ' => 'Ꙟ', + 'ꙡ' => 'Ꙡ', + 'ꙣ' => 'Ꙣ', + 'ꙥ' => 'Ꙥ', + 'ꙧ' => 'Ꙧ', + 'ꙩ' => 'Ꙩ', + 'ꙫ' => 'Ꙫ', + 'ꙭ' => 'Ꙭ', + 'ꚁ' => 'Ꚁ', + 'ꚃ' => 'Ꚃ', + 'ꚅ' => 'Ꚅ', + 'ꚇ' => 'Ꚇ', + 'ꚉ' => 'Ꚉ', + 'ꚋ' => 'Ꚋ', + 'ꚍ' => 'Ꚍ', + 'ꚏ' => 'Ꚏ', + 'ꚑ' => 'Ꚑ', + 'ꚓ' => 'Ꚓ', + 'ꚕ' => 'Ꚕ', + 'ꚗ' => 'Ꚗ', + 'ꚙ' => 'Ꚙ', + 'ꚛ' => 'Ꚛ', + 'ꜣ' => 'Ꜣ', + 'ꜥ' => 'Ꜥ', + 'ꜧ' => 'Ꜧ', + 'ꜩ' => 'Ꜩ', + 'ꜫ' => 'Ꜫ', + 'ꜭ' => 'Ꜭ', + 'ꜯ' => 'Ꜯ', + 'ꜳ' => 'Ꜳ', + 'ꜵ' => 'Ꜵ', + 'ꜷ' => 'Ꜷ', + 'ꜹ' => 'Ꜹ', + 'ꜻ' => 'Ꜻ', + 'ꜽ' => 'Ꜽ', + 'ꜿ' => 'Ꜿ', + 'ꝁ' => 'Ꝁ', + 'ꝃ' => 'Ꝃ', + 'ꝅ' => 'Ꝅ', + 'ꝇ' => 'Ꝇ', + 'ꝉ' => 'Ꝉ', + 'ꝋ' => 'Ꝋ', + 'ꝍ' => 'Ꝍ', + 'ꝏ' => 'Ꝏ', + 'ꝑ' => 'Ꝑ', + 'ꝓ' => 'Ꝓ', + 'ꝕ' => 'Ꝕ', + 'ꝗ' => 'Ꝗ', + 'ꝙ' => 'Ꝙ', + 'ꝛ' => 'Ꝛ', + 'ꝝ' => 'Ꝝ', + 'ꝟ' => 'Ꝟ', + 'ꝡ' => 'Ꝡ', + 'ꝣ' => 'Ꝣ', + 'ꝥ' => 'Ꝥ', + 'ꝧ' => 'Ꝧ', + 'ꝩ' => 'Ꝩ', + 'ꝫ' => 'Ꝫ', + 'ꝭ' => 'Ꝭ', + 'ꝯ' => 'Ꝯ', + 'ꝺ' => 'Ꝺ', + 'ꝼ' => 'Ꝼ', + 'ꝿ' => 'Ꝿ', + 'ꞁ' => 'Ꞁ', + 'ꞃ' => 'Ꞃ', + 'ꞅ' => 'Ꞅ', + 'ꞇ' => 'Ꞇ', + 'ꞌ' => 'Ꞌ', + 'ꞑ' => 'Ꞑ', + 'ꞓ' => 'Ꞓ', + 'ꞔ' => 'Ꞔ', + 'ꞗ' => 'Ꞗ', + 'ꞙ' => 'Ꞙ', + 'ꞛ' => 'Ꞛ', + 'ꞝ' => 'Ꞝ', + 'ꞟ' => 'Ꞟ', + 'ꞡ' => 'Ꞡ', + 'ꞣ' => 'Ꞣ', + 'ꞥ' => 'Ꞥ', + 'ꞧ' => 'Ꞧ', + 'ꞩ' => 'Ꞩ', + 'ꞵ' => 'Ꞵ', + 'ꞷ' => 'Ꞷ', + 'ꞹ' => 'Ꞹ', + 'ꞻ' => 'Ꞻ', + 'ꞽ' => 'Ꞽ', + 'ꞿ' => 'Ꞿ', + 'ꟃ' => 'Ꟃ', + 'ꟈ' => 'Ꟈ', + 'ꟊ' => 'Ꟊ', + 'ꟶ' => 'Ꟶ', + 'ꭓ' => 'Ꭓ', + 'ꭰ' => 'Ꭰ', + 'ꭱ' => 'Ꭱ', + 'ꭲ' => 'Ꭲ', + 'ꭳ' => 'Ꭳ', + 'ꭴ' => 'Ꭴ', + 'ꭵ' => 'Ꭵ', + 'ꭶ' => 'Ꭶ', + 'ꭷ' => 'Ꭷ', + 'ꭸ' => 'Ꭸ', + 'ꭹ' => 'Ꭹ', + 'ꭺ' => 'Ꭺ', + 'ꭻ' => 'Ꭻ', + 'ꭼ' => 'Ꭼ', + 'ꭽ' => 'Ꭽ', + 'ꭾ' => 'Ꭾ', + 'ꭿ' => 'Ꭿ', + 'ꮀ' => 'Ꮀ', + 'ꮁ' => 'Ꮁ', + 'ꮂ' => 'Ꮂ', + 'ꮃ' => 'Ꮃ', + 'ꮄ' => 'Ꮄ', + 'ꮅ' => 'Ꮅ', + 'ꮆ' => 'Ꮆ', + 'ꮇ' => 'Ꮇ', + 'ꮈ' => 'Ꮈ', + 'ꮉ' => 'Ꮉ', + 'ꮊ' => 'Ꮊ', + 'ꮋ' => 'Ꮋ', + 'ꮌ' => 'Ꮌ', + 'ꮍ' => 'Ꮍ', + 'ꮎ' => 'Ꮎ', + 'ꮏ' => 'Ꮏ', + 'ꮐ' => 'Ꮐ', + 'ꮑ' => 'Ꮑ', + 'ꮒ' => 'Ꮒ', + 'ꮓ' => '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 's' => 'S', + 't' => 'T', + 'u' => 'U', + 'v' => 'V', + 'w' => 'W', + 'x' => 'X', + 'y' => 'Y', + 'z' => 'Z', + '𐐨' => '𐐀', + '𐐩' => '𐐁', + '𐐪' => '𐐂', + '𐐫' => '𐐃', + '𐐬' => '𐐄', + '𐐭' => '𐐅', + '𐐮' => '𐐆', + '𐐯' => '𐐇', + '𐐰' => '𐐈', + '𐐱' => '𐐉', + '𐐲' => '𐐊', + '𐐳' => '𐐋', + '𐐴' => '𐐌', + '𐐵' => '𐐍', + '𐐶' => '𐐎', + '𐐷' => '𐐏', + '𐐸' => '𐐐', + '𐐹' => '𐐑', + '𐐺' => '𐐒', + '𐐻' => '𐐓', + '𐐼' => '𐐔', + '𐐽' => '𐐕', + '𐐾' => '𐐖', + '𐐿' => '𐐗', + '𐑀' => '𐐘', + '𐑁' => '𐐙', + '𐑂' => '𐐚', + '𐑃' => '𐐛', + '𐑄' => '𐐜', + '𐑅' => '𐐝', + '𐑆' => '𐐞', + '𐑇' => '𐐟', + '𐑈' => '𐐠', + '𐑉' => '𐐡', + '𐑊' => '𐐢', + '𐑋' => '𐐣', + '𐑌' => '𐐤', + '𐑍' => '𐐥', + '𐑎' => '𐐦', + '𐑏' => '𐐧', + '𐓘' => '𐒰', + '𐓙' => '𐒱', + '𐓚' => '𐒲', + '𐓛' => '𐒳', + '𐓜' => '𐒴', + '𐓝' => '𐒵', + '𐓞' => '𐒶', + '𐓟' => '𐒷', + '𐓠' => '𐒸', + '𐓡' => '𐒹', + '𐓢' => '𐒺', + '𐓣' => '𐒻', + '𐓤' => '𐒼', + '𐓥' => '𐒽', + '𐓦' => '𐒾', + '𐓧' => '𐒿', + '𐓨' => '𐓀', + '𐓩' => '𐓁', + '𐓪' => '𐓂', + '𐓫' => '𐓃', + '𐓬' => '𐓄', + '𐓭' => '𐓅', + '𐓮' => '𐓆', + '𐓯' => '𐓇', + '𐓰' => '𐓈', + '𐓱' => '𐓉', + '𐓲' => '𐓊', + '𐓳' => '𐓋', + '𐓴' => '𐓌', + '𐓵' => '𐓍', + '𐓶' => '𐓎', + '𐓷' => '𐓏', + '𐓸' => '𐓐', + '𐓹' => '𐓑', + '𐓺' => '𐓒', + '𐓻' => '𐓓', + '𐳀' => '𐲀', + '𐳁' => '𐲁', + '𐳂' => '𐲂', + '𐳃' => '𐲃', + '𐳄' => '𐲄', + '𐳅' => '𐲅', + '𐳆' => '𐲆', + '𐳇' => '𐲇', + '𐳈' => '𐲈', + '𐳉' => '𐲉', + '𐳊' => '𐲊', + '𐳋' => '𐲋', + '𐳌' => '𐲌', + '𐳍' => '𐲍', + '𐳎' => '𐲎', + '𐳏' => '𐲏', + '𐳐' => '𐲐', + '𐳑' => '𐲑', + '𐳒' => '𐲒', + '𐳓' => '𐲓', + '𐳔' => '𐲔', + '𐳕' => '𐲕', + '𐳖' => '𐲖', + '𐳗' => '𐲗', + '𐳘' => '𐲘', + '𐳙' => '𐲙', + '𐳚' => '𐲚', + '𐳛' => '𐲛', + '𐳜' => '𐲜', + '𐳝' => '𐲝', + '𐳞' => '𐲞', + '𐳟' => '𐲟', + '𐳠' => '𐲠', + '𐳡' => '𐲡', + '𐳢' => '𐲢', + '𐳣' => '𐲣', + '𐳤' => '𐲤', + '𐳥' => '𐲥', + '𐳦' => '𐲦', + '𐳧' => '𐲧', + '𐳨' => '𐲨', + '𐳩' => '𐲩', + '𐳪' => '𐲪', + '𐳫' => '𐲫', + '𐳬' => '𐲬', + '𐳭' => '𐲭', + '𐳮' => '𐲮', + '𐳯' => '𐲯', + '𐳰' => '𐲰', + '𐳱' => '𐲱', + '𐳲' => '𐲲', + '𑣀' => '𑢠', + '𑣁' => '𑢡', + '𑣂' => '𑢢', + '𑣃' => '𑢣', + '𑣄' => '𑢤', + '𑣅' => '𑢥', + '𑣆' => '𑢦', + '𑣇' => '𑢧', + '𑣈' => '𑢨', + '𑣉' => '𑢩', + '𑣊' => '𑢪', + '𑣋' => '𑢫', + '𑣌' => '𑢬', + '𑣍' => '𑢭', + '𑣎' => '𑢮', + '𑣏' => '𑢯', + '𑣐' => '𑢰', + '𑣑' => '𑢱', + '𑣒' => '𑢲', + '𑣓' => '𑢳', + '𑣔' => '𑢴', + '𑣕' => '𑢵', + '𑣖' => '𑢶', + '𑣗' => '𑢷', + '𑣘' => '𑢸', + '𑣙' => '𑢹', + '𑣚' => '𑢺', + '𑣛' => '𑢻', + '𑣜' => '𑢼', + '𑣝' => '𑢽', + '𑣞' => '𑢾', + '𑣟' => '𑢿', + '𖹠' => '𖹀', + '𖹡' => '𖹁', + '𖹢' => '𖹂', + '𖹣' => '𖹃', + '𖹤' => '𖹄', + '𖹥' => '𖹅', + '𖹦' => '𖹆', + '𖹧' => '𖹇', + '𖹨' => '𖹈', + '𖹩' => '𖹉', + '𖹪' => '𖹊', + '𖹫' => '𖹋', + '𖹬' => '𖹌', + '𖹭' => '𖹍', + '𖹮' => '𖹎', + '𖹯' => '𖹏', + '𖹰' => '𖹐', + '𖹱' => '𖹑', + '𖹲' => '𖹒', + '𖹳' => '𖹓', + '𖹴' => '𖹔', + '𖹵' => '𖹕', + '𖹶' => '𖹖', + '𖹷' => '𖹗', + '𖹸' => '𖹘', + '𖹹' => '𖹙', + '𖹺' => '𖹚', + '𖹻' => '𖹛', + '𖹼' => '𖹜', + '𖹽' => '𖹝', + '𖹾' => '𖹞', + '𖹿' => '𖹟', + '𞤢' => '𞤀', + '𞤣' => '𞤁', + '𞤤' => '𞤂', + '𞤥' => '𞤃', + '𞤦' => '𞤄', + '𞤧' => '𞤅', + '𞤨' => '𞤆', + '𞤩' => '𞤇', + '𞤪' => '𞤈', + '𞤫' => '𞤉', + '𞤬' => '𞤊', + '𞤭' => '𞤋', + '𞤮' => '𞤌', + '𞤯' => '𞤍', + '𞤰' => '𞤎', + '𞤱' => '𞤏', + '𞤲' => '𞤐', + '𞤳' => '𞤑', + '𞤴' => '𞤒', + '𞤵' => '𞤓', + '𞤶' => '𞤔', + '𞤷' => '𞤕', + '𞤸' => '𞤖', + '𞤹' => '𞤗', + '𞤺' => '𞤘', + '𞤻' => '𞤙', + '𞤼' => '𞤚', + '𞤽' => '𞤛', + '𞤾' => '𞤜', + '𞤿' => '𞤝', + '𞥀' => '𞤞', + '𞥁' => '𞤟', + '𞥂' => '𞤠', + '𞥃' => '𞤡', + 'ß' => 'SS', + 'ff' => 'FF', + 'fi' => 'FI', + 'fl' => 'FL', + 'ffi' => 'FFI', + 'ffl' => 'FFL', + 'ſt' => 'ST', + 'st' => 'ST', + 'և' => 'ԵՒ', + 'ﬓ' => 'ՄՆ', + 'ﬔ' => 'ՄԵ', + 'ﬕ' => 'ՄԻ', + 'ﬖ' => 'ՎՆ', + 'ﬗ' => 'ՄԽ', + 'ʼn' => 'ʼN', + 'ΐ' => 'Ϊ́', + 'ΰ' => 'Ϋ́', + 'ǰ' => 'J̌', + 'ẖ' => 'H̱', + 'ẗ' => 'T̈', + 'ẘ' => 'W̊', + 'ẙ' => 'Y̊', + 'ẚ' => 'Aʾ', + 'ὐ' => 'Υ̓', + 'ὒ' => 'Υ̓̀', + 'ὔ' => 'Υ̓́', + 'ὖ' => 'Υ̓͂', + 'ᾶ' => 'Α͂', + 'ῆ' => 'Η͂', + 'ῒ' => 'Ϊ̀', + 'ΐ' => 'Ϊ́', + 'ῖ' => 'Ι͂', + 'ῗ' => 'Ϊ͂', + 'ῢ' => 'Ϋ̀', + 'ΰ' => 'Ϋ́', + 'ῤ' => 'Ρ̓', + 'ῦ' => 'Υ͂', + 'ῧ' => 'Ϋ͂', + 'ῶ' => 'Ω͂', + 'ᾈ' => 'ἈΙ', + 'ᾉ' => 'ἉΙ', + 'ᾊ' => 'ἊΙ', + 'ᾋ' => 'ἋΙ', + 'ᾌ' => 'ἌΙ', + 'ᾍ' => 'ἍΙ', + 'ᾎ' => 'ἎΙ', + 'ᾏ' => 'ἏΙ', + 'ᾘ' => 'ἨΙ', + 'ᾙ' => 'ἩΙ', + 'ᾚ' => 'ἪΙ', + 'ᾛ' => 'ἫΙ', + 'ᾜ' => 'ἬΙ', + 'ᾝ' => 'ἭΙ', + 'ᾞ' => 'ἮΙ', + 'ᾟ' => 'ἯΙ', + 'ᾨ' => 'ὨΙ', + 'ᾩ' => 'ὩΙ', + 'ᾪ' => 'ὪΙ', + 'ᾫ' => 'ὫΙ', + 'ᾬ' => 'ὬΙ', + 'ᾭ' => 'ὭΙ', + 'ᾮ' => 'ὮΙ', + 'ᾯ' => 'ὯΙ', + 'ᾼ' => 'ΑΙ', + 'ῌ' => 'ΗΙ', + 'ῼ' => 'ΩΙ', + 'ᾲ' => 'ᾺΙ', + 'ᾴ' => 'ΆΙ', + 'ῂ' => 'ῊΙ', + 'ῄ' => 'ΉΙ', + 'ῲ' => 'ῺΙ', + 'ῴ' => 'ΏΙ', + 'ᾷ' => 'Α͂Ι', + 'ῇ' => 'Η͂Ι', + 'ῷ' => 'Ω͂Ι', +); diff --git a/vendor/symfony/polyfill-mbstring/bootstrap.php b/vendor/symfony/polyfill-mbstring/bootstrap.php new file mode 100644 index 0000000..0e934d7 --- /dev/null +++ b/vendor/symfony/polyfill-mbstring/bootstrap.php @@ -0,0 +1,16 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +if (\PHP_VERSION_ID >= 80000) { + return require __DIR__.'/bootstrap80.php'; +} + +return require __DIR__.'/bootstrap72.php'; diff --git a/vendor/symfony/polyfill-mbstring/bootstrap72.php b/vendor/symfony/polyfill-mbstring/bootstrap72.php new file mode 100644 index 0000000..2e3a06d --- /dev/null +++ b/vendor/symfony/polyfill-mbstring/bootstrap72.php @@ -0,0 +1,173 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Polyfill\Mbstring as p; + +if (!function_exists('mb_convert_encoding')) { + function mb_convert_encoding($string, $to_encoding, $from_encoding = null) { return p\Mbstring::mb_convert_encoding($string, $to_encoding, $from_encoding); } +} +if (!function_exists('mb_decode_mimeheader')) { + function mb_decode_mimeheader($string) { return p\Mbstring::mb_decode_mimeheader($string); } +} +if (!function_exists('mb_encode_mimeheader')) { + function mb_encode_mimeheader($string, $charset = null, $transfer_encoding = null, $newline = "\r\n", $indent = 0) { return p\Mbstring::mb_encode_mimeheader($string, $charset, $transfer_encoding, $newline, $indent); } +} +if (!function_exists('mb_decode_numericentity')) { + function mb_decode_numericentity($string, $map, $encoding = null) { return p\Mbstring::mb_decode_numericentity($string, $map, $encoding); } +} +if (!function_exists('mb_encode_numericentity')) { + function mb_encode_numericentity($string, $map, $encoding = null, $hex = false) { return p\Mbstring::mb_encode_numericentity($string, $map, $encoding, $hex); } +} +if (!function_exists('mb_convert_case')) { + function mb_convert_case($string, $mode, $encoding = null) { return p\Mbstring::mb_convert_case($string, $mode, $encoding); } +} +if (!function_exists('mb_internal_encoding')) { + function mb_internal_encoding($encoding = null) { return p\Mbstring::mb_internal_encoding($encoding); } +} +if (!function_exists('mb_language')) { + function mb_language($language = null) { return p\Mbstring::mb_language($language); } +} +if (!function_exists('mb_list_encodings')) { + function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); } +} +if (!function_exists('mb_encoding_aliases')) { + function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); } +} +if (!function_exists('mb_check_encoding')) { + function mb_check_encoding($value = null, $encoding = null) { return p\Mbstring::mb_check_encoding($value, $encoding); } +} +if (!function_exists('mb_detect_encoding')) { + function mb_detect_encoding($string, $encodings = null, $strict = false) { return p\Mbstring::mb_detect_encoding($string, $encodings, $strict); } +} +if (!function_exists('mb_detect_order')) { + function mb_detect_order($encoding = null) { return p\Mbstring::mb_detect_order($encoding); } +} +if (!function_exists('mb_parse_str')) { + function mb_parse_str($string, &$result = []) { parse_str($string, $result); return (bool) $result; } +} +if (!function_exists('mb_strlen')) { + function mb_strlen($string, $encoding = null) { return p\Mbstring::mb_strlen($string, $encoding); } +} +if (!function_exists('mb_strpos')) { + function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strpos($haystack, $needle, $offset, $encoding); } +} +if (!function_exists('mb_strtolower')) { + function mb_strtolower($string, $encoding = null) { return p\Mbstring::mb_strtolower($string, $encoding); } +} +if (!function_exists('mb_strtoupper')) { + function mb_strtoupper($string, $encoding = null) { return p\Mbstring::mb_strtoupper($string, $encoding); } +} +if (!function_exists('mb_substitute_character')) { + function mb_substitute_character($substitute_character = null) { return p\Mbstring::mb_substitute_character($substitute_character); } +} +if (!function_exists('mb_substr')) { + function mb_substr($string, $start, $length = 2147483647, $encoding = null) { return p\Mbstring::mb_substr($string, $start, $length, $encoding); } +} +if (!function_exists('mb_stripos')) { + function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_stripos($haystack, $needle, $offset, $encoding); } +} +if (!function_exists('mb_stristr')) { + function mb_stristr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_stristr($haystack, $needle, $before_needle, $encoding); } +} +if (!function_exists('mb_strrchr')) { + function mb_strrchr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrchr($haystack, $needle, $before_needle, $encoding); } +} +if (!function_exists('mb_strrichr')) { + function mb_strrichr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrichr($haystack, $needle, $before_needle, $encoding); } +} +if (!function_exists('mb_strripos')) { + function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strripos($haystack, $needle, $offset, $encoding); } +} +if (!function_exists('mb_strrpos')) { + function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strrpos($haystack, $needle, $offset, $encoding); } +} +if (!function_exists('mb_strstr')) { + function mb_strstr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strstr($haystack, $needle, $before_needle, $encoding); } +} +if (!function_exists('mb_get_info')) { + function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); } +} +if (!function_exists('mb_http_output')) { + function mb_http_output($encoding = null) { return p\Mbstring::mb_http_output($encoding); } +} +if (!function_exists('mb_strwidth')) { + function mb_strwidth($string, $encoding = null) { return p\Mbstring::mb_strwidth($string, $encoding); } +} +if (!function_exists('mb_substr_count')) { + function mb_substr_count($haystack, $needle, $encoding = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $encoding); } +} +if (!function_exists('mb_output_handler')) { + function mb_output_handler($string, $status) { return p\Mbstring::mb_output_handler($string, $status); } +} +if (!function_exists('mb_http_input')) { + function mb_http_input($type = null) { return p\Mbstring::mb_http_input($type); } +} + +if (!function_exists('mb_convert_variables')) { + function mb_convert_variables($to_encoding, $from_encoding, &...$vars) { return p\Mbstring::mb_convert_variables($to_encoding, $from_encoding, ...$vars); } +} + +if (!function_exists('mb_ord')) { + function mb_ord($string, $encoding = null) { return p\Mbstring::mb_ord($string, $encoding); } +} +if (!function_exists('mb_chr')) { + function mb_chr($codepoint, $encoding = null) { return p\Mbstring::mb_chr($codepoint, $encoding); } +} +if (!function_exists('mb_scrub')) { + function mb_scrub($string, $encoding = null) { return p\Mbstring::mb_scrub($string, $encoding); } +} +if (!function_exists('mb_str_split')) { + function mb_str_split($string, $length = 1, $encoding = null) { return p\Mbstring::mb_str_split($string, $length, $encoding); } +} + +if (!function_exists('mb_str_pad')) { + /** @return string|false */ + function mb_str_pad(?string $string, ?int $length, ?string $pad_string = ' ', ?int $pad_type = STR_PAD_RIGHT, ?string $encoding = null) { return p\Mbstring::mb_str_pad((string) $string, (int) $length, (string) $pad_string, (int) $pad_type, $encoding); } +} + +if (!function_exists('mb_ucfirst')) { + /** @return string|false */ + function mb_ucfirst(?string $string, ?string $encoding = null) { return p\Mbstring::mb_ucfirst((string) $string, $encoding); } +} + +if (!function_exists('mb_lcfirst')) { + /** @return string|false */ + function mb_lcfirst(?string $string, ?string $encoding = null) { return p\Mbstring::mb_lcfirst((string) $string, $encoding); } +} + +if (!function_exists('mb_trim')) { + /** @return string|false */ + function mb_trim(?string $string, ?string $characters = null, ?string $encoding = null) { return p\Mbstring::mb_trim((string) $string, $characters, $encoding); } +} + +if (!function_exists('mb_ltrim')) { + /** @return string|false */ + function mb_ltrim(?string $string, ?string $characters = null, ?string $encoding = null) { return p\Mbstring::mb_ltrim((string) $string, $characters, $encoding); } +} + +if (!function_exists('mb_rtrim')) { + /** @return string|false */ + function mb_rtrim(?string $string, ?string $characters = null, ?string $encoding = null) { return p\Mbstring::mb_rtrim((string) $string, $characters, $encoding); } +} + +if (extension_loaded('mbstring')) { + return; +} + +if (!defined('MB_CASE_UPPER')) { + define('MB_CASE_UPPER', 0); +} +if (!defined('MB_CASE_LOWER')) { + define('MB_CASE_LOWER', 1); +} +if (!defined('MB_CASE_TITLE')) { + define('MB_CASE_TITLE', 2); +} diff --git a/vendor/symfony/polyfill-mbstring/bootstrap80.php b/vendor/symfony/polyfill-mbstring/bootstrap80.php new file mode 100644 index 0000000..5fde10e --- /dev/null +++ b/vendor/symfony/polyfill-mbstring/bootstrap80.php @@ -0,0 +1,167 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Polyfill\Mbstring as p; + +if (!function_exists('mb_convert_encoding')) { + function mb_convert_encoding(array|string|null $string, ?string $to_encoding, array|string|null $from_encoding = null): array|string|false { return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding); } +} +if (!function_exists('mb_decode_mimeheader')) { + function mb_decode_mimeheader(?string $string): string { return p\Mbstring::mb_decode_mimeheader((string) $string); } +} +if (!function_exists('mb_encode_mimeheader')) { + function mb_encode_mimeheader(?string $string, ?string $charset = null, ?string $transfer_encoding = null, ?string $newline = "\r\n", ?int $indent = 0): string { return p\Mbstring::mb_encode_mimeheader((string) $string, $charset, $transfer_encoding, (string) $newline, (int) $indent); } +} +if (!function_exists('mb_decode_numericentity')) { + function mb_decode_numericentity(?string $string, array $map, ?string $encoding = null): string { return p\Mbstring::mb_decode_numericentity((string) $string, $map, $encoding); } +} +if (!function_exists('mb_encode_numericentity')) { + function mb_encode_numericentity(?string $string, array $map, ?string $encoding = null, ?bool $hex = false): string { return p\Mbstring::mb_encode_numericentity((string) $string, $map, $encoding, (bool) $hex); } +} +if (!function_exists('mb_convert_case')) { + function mb_convert_case(?string $string, ?int $mode, ?string $encoding = null): string { return p\Mbstring::mb_convert_case((string) $string, (int) $mode, $encoding); } +} +if (!function_exists('mb_internal_encoding')) { + function mb_internal_encoding(?string $encoding = null): string|bool { return p\Mbstring::mb_internal_encoding($encoding); } +} +if (!function_exists('mb_language')) { + function mb_language(?string $language = null): string|bool { return p\Mbstring::mb_language($language); } +} +if (!function_exists('mb_list_encodings')) { + function mb_list_encodings(): array { return p\Mbstring::mb_list_encodings(); } +} +if (!function_exists('mb_encoding_aliases')) { + function mb_encoding_aliases(?string $encoding): array { return p\Mbstring::mb_encoding_aliases((string) $encoding); } +} +if (!function_exists('mb_check_encoding')) { + function mb_check_encoding(array|string|null $value = null, ?string $encoding = null): bool { return p\Mbstring::mb_check_encoding($value, $encoding); } +} +if (!function_exists('mb_detect_encoding')) { + function mb_detect_encoding(?string $string, array|string|null $encodings = null, ?bool $strict = false): string|false { return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict); } +} +if (!function_exists('mb_detect_order')) { + function mb_detect_order(array|string|null $encoding = null): array|bool { return p\Mbstring::mb_detect_order($encoding); } +} +if (!function_exists('mb_parse_str')) { + function mb_parse_str(?string $string, &$result = []): bool { parse_str((string) $string, $result); return (bool) $result; } +} +if (!function_exists('mb_strlen')) { + function mb_strlen(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strlen((string) $string, $encoding); } +} +if (!function_exists('mb_strpos')) { + function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding); } +} +if (!function_exists('mb_strtolower')) { + function mb_strtolower(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtolower((string) $string, $encoding); } +} +if (!function_exists('mb_strtoupper')) { + function mb_strtoupper(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtoupper((string) $string, $encoding); } +} +if (!function_exists('mb_substitute_character')) { + function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool { return p\Mbstring::mb_substitute_character($substitute_character); } +} +if (!function_exists('mb_substr')) { + function mb_substr(?string $string, ?int $start, ?int $length = null, ?string $encoding = null): string { return p\Mbstring::mb_substr((string) $string, (int) $start, $length, $encoding); } +} +if (!function_exists('mb_stripos')) { + function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding); } +} +if (!function_exists('mb_stristr')) { + function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); } +} +if (!function_exists('mb_strrchr')) { + function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); } +} +if (!function_exists('mb_strrichr')) { + function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); } +} +if (!function_exists('mb_strripos')) { + function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding); } +} +if (!function_exists('mb_strrpos')) { + function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding); } +} +if (!function_exists('mb_strstr')) { + function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); } +} +if (!function_exists('mb_get_info')) { + function mb_get_info(?string $type = 'all'): array|string|int|false|null { return p\Mbstring::mb_get_info((string) $type); } +} +if (!function_exists('mb_http_output')) { + function mb_http_output(?string $encoding = null): string|bool { return p\Mbstring::mb_http_output($encoding); } +} +if (!function_exists('mb_strwidth')) { + function mb_strwidth(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strwidth((string) $string, $encoding); } +} +if (!function_exists('mb_substr_count')) { + function mb_substr_count(?string $haystack, ?string $needle, ?string $encoding = null): int { return p\Mbstring::mb_substr_count((string) $haystack, (string) $needle, $encoding); } +} +if (!function_exists('mb_output_handler')) { + function mb_output_handler(?string $string, ?int $status): string { return p\Mbstring::mb_output_handler((string) $string, (int) $status); } +} +if (!function_exists('mb_http_input')) { + function mb_http_input(?string $type = null): array|string|false { return p\Mbstring::mb_http_input($type); } +} + +if (!function_exists('mb_convert_variables')) { + function mb_convert_variables(?string $to_encoding, array|string|null $from_encoding, mixed &$var, mixed &...$vars): string|false { return p\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars); } +} + +if (!function_exists('mb_ord')) { + function mb_ord(?string $string, ?string $encoding = null): int|false { return p\Mbstring::mb_ord((string) $string, $encoding); } +} +if (!function_exists('mb_chr')) { + function mb_chr(?int $codepoint, ?string $encoding = null): string|false { return p\Mbstring::mb_chr((int) $codepoint, $encoding); } +} +if (!function_exists('mb_scrub')) { + function mb_scrub(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_scrub($string, $encoding); } +} +if (!function_exists('mb_str_split')) { + function mb_str_split(?string $string, ?int $length = 1, ?string $encoding = null): array { return p\Mbstring::mb_str_split((string) $string, (int) $length, $encoding); } +} + +if (!function_exists('mb_str_pad')) { + function mb_str_pad(?string $string, ?int $length, ?string $pad_string = ' ', ?int $pad_type = STR_PAD_RIGHT, ?string $encoding = null): string { return p\Mbstring::mb_str_pad((string) $string, (int) $length, (string) $pad_string, (int) $pad_type, $encoding); } +} + +if (!function_exists('mb_ucfirst')) { + function mb_ucfirst(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_ucfirst((string) $string, $encoding); } +} + +if (!function_exists('mb_lcfirst')) { + function mb_lcfirst(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_lcfirst((string) $string, $encoding); } +} + +if (!function_exists('mb_trim')) { + function mb_trim(?string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_trim((string) $string, $characters, $encoding); } +} + +if (!function_exists('mb_ltrim')) { + function mb_ltrim(?string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_ltrim((string) $string, $characters, $encoding); } +} + +if (!function_exists('mb_rtrim')) { + function mb_rtrim(?string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_rtrim((string) $string, $characters, $encoding); } +} + +if (extension_loaded('mbstring')) { + return; +} + +if (!defined('MB_CASE_UPPER')) { + define('MB_CASE_UPPER', 0); +} +if (!defined('MB_CASE_LOWER')) { + define('MB_CASE_LOWER', 1); +} +if (!defined('MB_CASE_TITLE')) { + define('MB_CASE_TITLE', 2); +} diff --git a/vendor/symfony/polyfill-mbstring/composer.json b/vendor/symfony/polyfill-mbstring/composer.json new file mode 100644 index 0000000..daa07f8 --- /dev/null +++ b/vendor/symfony/polyfill-mbstring/composer.json @@ -0,0 +1,39 @@ +{ + "name": "symfony/polyfill-mbstring", + "type": "library", + "description": "Symfony polyfill for the Mbstring extension", + "keywords": ["polyfill", "shim", "compatibility", "portable", "mbstring"], + "homepage": "https://symfony.com", + "license": "MIT", + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "require": { + "php": ">=7.2", + "ext-iconv": "*" + }, + "provide": { + "ext-mbstring": "*" + }, + "autoload": { + "psr-4": { "Symfony\\Polyfill\\Mbstring\\": "" }, + "files": [ "bootstrap.php" ] + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "minimum-stability": "dev", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + } +} diff --git a/vendor/symfony/var-dumper/CHANGELOG.md b/vendor/symfony/var-dumper/CHANGELOG.md new file mode 100644 index 0000000..209bd96 --- /dev/null +++ b/vendor/symfony/var-dumper/CHANGELOG.md @@ -0,0 +1,122 @@ +CHANGELOG +========= + +7.4 +--- + + * Add support for adding more default casters to `AbstractCloner::addDefaultCasters()` + * Select HtmlDumper only if `Accept` header contains "html" + +7.3 +--- + + * Add casters for `Dba\Connection`, `SQLite3Result`, `OpenSSLAsymmetricKey` and `OpenSSLCertificateSigningRequest` + * Deprecate `ResourceCaster::castCurl()`, `ResourceCaster::castGd()` and `ResourceCaster::castOpensslX509()` + * Mark all casters as `@internal` + +7.2 +--- + + * Add support for `FORCE_COLOR` environment variable + * Add support for virtual properties + +7.1 +--- + + * Add support for new DOM extension classes in `DOMCaster` + +7.0 +--- + + * Add argument `$label` to `VarDumper::dump()` + * Require explicit argument when calling `VarDumper::setHandler()` + * Remove display of backtrace in `Twig_Template`, only `Twig\Template` is supported + +6.4 +--- + + * Dump uninitialized properties + +6.3 +--- + + * Add caster for `WeakMap` + * Add support of named arguments to `dd()` and `dump()` to display the argument name + * Add support for `Relay\Relay` + * Add display of invisible characters + +6.2 +--- + + * Add support for `FFI\CData` and `FFI\CType` + * Deprecate calling `VarDumper::setHandler()` without arguments + +5.4 +--- + + * Add ability to style integer and double values independently + * Add casters for Symfony's UUIDs and ULIDs + * Add support for `Fiber` + +5.2.0 +----- + + * added support for PHPUnit `--colors` option + * added `VAR_DUMPER_FORMAT=server` env var value support + * prevent replacing the handler when the `VAR_DUMPER_FORMAT` env var is set + +5.1.0 +----- + + * added `RdKafka` support + +4.4.0 +----- + + * added `VarDumperTestTrait::setUpVarDumper()` and `VarDumperTestTrait::tearDownVarDumper()` + to configure casters & flags to use in tests + * added `ImagineCaster` and infrastructure to dump images + * added the stamps of a message after it is dispatched in `TraceableMessageBus` and `MessengerDataCollector` collected data + * added `UuidCaster` + * made all casters final + * added support for the `NO_COLOR` env var (https://no-color.org/) + +4.3.0 +----- + + * added `DsCaster` to support dumping the contents of data structures from the Ds extension + +4.2.0 +----- + + * support selecting the format to use by setting the environment variable `VAR_DUMPER_FORMAT` to `html` or `cli` + +4.1.0 +----- + + * added a `ServerDumper` to send serialized Data clones to a server + * added a `ServerDumpCommand` and `DumpServer` to run a server collecting + and displaying dumps on a single place with multiple formats support + * added `CliDescriptor` and `HtmlDescriptor` descriptors for `server:dump` CLI and HTML formats support + +4.0.0 +----- + + * support for passing `\ReflectionClass` instances to the `Caster::castObject()` + method has been dropped, pass class names as strings instead + * the `Data::getRawData()` method has been removed + * the `VarDumperTestTrait::assertDumpEquals()` method expects a 3rd `$filter = 0` + argument and moves `$message = ''` argument at 4th position. + * the `VarDumperTestTrait::assertDumpMatchesFormat()` method expects a 3rd `$filter = 0` + argument and moves `$message = ''` argument at 4th position. + +3.4.0 +----- + + * added `AbstractCloner::setMinDepth()` function to ensure minimum tree depth + * deprecated `MongoCaster` + +2.7.0 +----- + + * deprecated `Cloner\Data::getLimitedClone()`. Use `withMaxDepth`, `withMaxItemsPerDepth` or `withRefHandles` instead. diff --git a/vendor/symfony/var-dumper/Caster/AddressInfoCaster.php b/vendor/symfony/var-dumper/Caster/AddressInfoCaster.php new file mode 100644 index 0000000..f341c68 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/AddressInfoCaster.php @@ -0,0 +1,82 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Nicolas Grekas + * + * @internal since Symfony 7.3 + */ +final class AddressInfoCaster +{ + private const MAPS = [ + 'ai_flags' => [ + 1 => 'AI_PASSIVE', + 2 => 'AI_CANONNAME', + 4 => 'AI_NUMERICHOST', + 8 => 'AI_V4MAPPED', + 16 => 'AI_ALL', + 32 => 'AI_ADDRCONFIG', + 64 => 'AI_IDN', + 128 => 'AI_CANONIDN', + 1024 => 'AI_NUMERICSERV', + ], + 'ai_family' => [ + 1 => 'AF_UNIX', + 2 => 'AF_INET', + 10 => 'AF_INET6', + 44 => 'AF_DIVERT', + ], + 'ai_socktype' => [ + 1 => 'SOCK_STREAM', + 2 => 'SOCK_DGRAM', + 3 => 'SOCK_RAW', + 4 => 'SOCK_RDM', + 5 => 'SOCK_SEQPACKET', + ], + 'ai_protocol' => [ + 1 => 'SOL_SOCKET', + 6 => 'SOL_TCP', + 17 => 'SOL_UDP', + 136 => 'SOL_UDPLITE', + ], + ]; + + public static function castAddressInfo(\AddressInfo $h, array $a, Stub $stub, bool $isNested): array + { + static $resolvedMaps; + + if (!$resolvedMaps) { + foreach (self::MAPS as $k => $map) { + foreach ($map as $v => $name) { + if (\defined($name)) { + $resolvedMaps[$k][\constant($name)] = $name; + } elseif (!isset($resolvedMaps[$k][$v])) { + $resolvedMaps[$k][$v] = $name; + } + } + } + } + + foreach (socket_addrinfo_explain($h) as $k => $v) { + $a[Caster::PREFIX_VIRTUAL.$k] = match (true) { + 'ai_flags' === $k => ConstStub::fromBitfield($v, $resolvedMaps[$k]), + isset($resolvedMaps[$k][$v]) => new ConstStub($resolvedMaps[$k][$v], $v), + default => $v, + }; + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/AmqpCaster.php b/vendor/symfony/var-dumper/Caster/AmqpCaster.php new file mode 100644 index 0000000..ff56288 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/AmqpCaster.php @@ -0,0 +1,214 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts Amqp related classes to array representation. + * + * @author Grégoire Pineau + * + * @final + * + * @internal since Symfony 7.3 + */ +class AmqpCaster +{ + private const FLAGS = [ + \AMQP_DURABLE => 'AMQP_DURABLE', + \AMQP_PASSIVE => 'AMQP_PASSIVE', + \AMQP_EXCLUSIVE => 'AMQP_EXCLUSIVE', + \AMQP_AUTODELETE => 'AMQP_AUTODELETE', + \AMQP_INTERNAL => 'AMQP_INTERNAL', + \AMQP_NOLOCAL => 'AMQP_NOLOCAL', + \AMQP_AUTOACK => 'AMQP_AUTOACK', + \AMQP_IFEMPTY => 'AMQP_IFEMPTY', + \AMQP_IFUNUSED => 'AMQP_IFUNUSED', + \AMQP_MANDATORY => 'AMQP_MANDATORY', + \AMQP_IMMEDIATE => 'AMQP_IMMEDIATE', + \AMQP_MULTIPLE => 'AMQP_MULTIPLE', + \AMQP_NOWAIT => 'AMQP_NOWAIT', + \AMQP_REQUEUE => 'AMQP_REQUEUE', + ]; + + private const EXCHANGE_TYPES = [ + \AMQP_EX_TYPE_DIRECT => 'AMQP_EX_TYPE_DIRECT', + \AMQP_EX_TYPE_FANOUT => 'AMQP_EX_TYPE_FANOUT', + \AMQP_EX_TYPE_TOPIC => 'AMQP_EX_TYPE_TOPIC', + \AMQP_EX_TYPE_HEADERS => 'AMQP_EX_TYPE_HEADERS', + ]; + + public static function castConnection(\AMQPConnection $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + $a += [ + $prefix.'is_connected' => $c->isConnected(), + ]; + + // Recent version of the extension already expose private properties + if (isset($a["\x00AMQPConnection\x00login"])) { + return $a; + } + + // BC layer in the amqp lib + if (method_exists($c, 'getReadTimeout')) { + $timeout = $c->getReadTimeout(); + } else { + $timeout = $c->getTimeout(); + } + + $a += [ + $prefix.'is_connected' => $c->isConnected(), + $prefix.'login' => $c->getLogin(), + $prefix.'password' => $c->getPassword(), + $prefix.'host' => $c->getHost(), + $prefix.'vhost' => $c->getVhost(), + $prefix.'port' => $c->getPort(), + $prefix.'read_timeout' => $timeout, + ]; + + return $a; + } + + public static function castChannel(\AMQPChannel $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + $a += [ + $prefix.'is_connected' => $c->isConnected(), + $prefix.'channel_id' => $c->getChannelId(), + ]; + + // Recent version of the extension already expose private properties + if (isset($a["\x00AMQPChannel\x00connection"])) { + return $a; + } + + $a += [ + $prefix.'connection' => $c->getConnection(), + $prefix.'prefetch_size' => $c->getPrefetchSize(), + $prefix.'prefetch_count' => $c->getPrefetchCount(), + ]; + + return $a; + } + + public static function castQueue(\AMQPQueue $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + $a += [ + $prefix.'flags' => self::extractFlags($c->getFlags()), + ]; + + // Recent version of the extension already expose private properties + if (isset($a["\x00AMQPQueue\x00name"])) { + return $a; + } + + $a += [ + $prefix.'connection' => $c->getConnection(), + $prefix.'channel' => $c->getChannel(), + $prefix.'name' => $c->getName(), + $prefix.'arguments' => $c->getArguments(), + ]; + + return $a; + } + + public static function castExchange(\AMQPExchange $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + $a += [ + $prefix.'flags' => self::extractFlags($c->getFlags()), + ]; + + $type = isset(self::EXCHANGE_TYPES[$c->getType()]) ? new ConstStub(self::EXCHANGE_TYPES[$c->getType()], $c->getType()) : $c->getType(); + + // Recent version of the extension already expose private properties + if (isset($a["\x00AMQPExchange\x00name"])) { + $a["\x00AMQPExchange\x00type"] = $type; + + return $a; + } + + $a += [ + $prefix.'connection' => $c->getConnection(), + $prefix.'channel' => $c->getChannel(), + $prefix.'name' => $c->getName(), + $prefix.'type' => $type, + $prefix.'arguments' => $c->getArguments(), + ]; + + return $a; + } + + public static function castEnvelope(\AMQPEnvelope $c, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + $deliveryMode = new ConstStub($c->getDeliveryMode().(2 === $c->getDeliveryMode() ? ' (persistent)' : ' (non-persistent)'), $c->getDeliveryMode()); + + // Recent version of the extension already expose private properties + if (isset($a["\x00AMQPEnvelope\x00body"])) { + $a["\0AMQPEnvelope\0delivery_mode"] = $deliveryMode; + + return $a; + } + + if (!($filter & Caster::EXCLUDE_VERBOSE)) { + $a += [$prefix.'body' => $c->getBody()]; + } + + $a += [ + $prefix.'delivery_tag' => $c->getDeliveryTag(), + $prefix.'is_redelivery' => $c->isRedelivery(), + $prefix.'exchange_name' => $c->getExchangeName(), + $prefix.'routing_key' => $c->getRoutingKey(), + $prefix.'content_type' => $c->getContentType(), + $prefix.'content_encoding' => $c->getContentEncoding(), + $prefix.'headers' => $c->getHeaders(), + $prefix.'delivery_mode' => $deliveryMode, + $prefix.'priority' => $c->getPriority(), + $prefix.'correlation_id' => $c->getCorrelationId(), + $prefix.'reply_to' => $c->getReplyTo(), + $prefix.'expiration' => $c->getExpiration(), + $prefix.'message_id' => $c->getMessageId(), + $prefix.'timestamp' => $c->getTimeStamp(), + $prefix.'type' => $c->getType(), + $prefix.'user_id' => $c->getUserId(), + $prefix.'app_id' => $c->getAppId(), + ]; + + return $a; + } + + private static function extractFlags(int $flags): ConstStub + { + $flagsArray = []; + + foreach (self::FLAGS as $value => $name) { + if ($flags & $value) { + $flagsArray[] = $name; + } + } + + if (!$flagsArray) { + $flagsArray = ['AMQP_NOPARAM']; + } + + return new ConstStub(implode('|', $flagsArray), $flags); + } +} diff --git a/vendor/symfony/var-dumper/Caster/ArgsStub.php b/vendor/symfony/var-dumper/Caster/ArgsStub.php new file mode 100644 index 0000000..aadd033 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/ArgsStub.php @@ -0,0 +1,79 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Represents a list of function arguments. + * + * @author Nicolas Grekas + */ +class ArgsStub extends EnumStub +{ + private static array $parameters = []; + + public function __construct(array $args, string $function, ?string $class) + { + [$variadic, $params] = self::getParameters($function, $class); + + $values = []; + foreach ($args as $k => $v) { + $values[$k] = !\is_scalar($v) && !$v instanceof Stub ? new CutStub($v) : $v; + } + if (null === $params) { + parent::__construct($values, false); + + return; + } + if (\count($values) < \count($params)) { + $params = \array_slice($params, 0, \count($values)); + } elseif (\count($values) > \count($params)) { + $values[] = new EnumStub(array_splice($values, \count($params)), false); + $params[] = $variadic; + } + if (['...'] === $params) { + parent::__construct($values[0]->value, false); + } else { + parent::__construct(array_combine($params, $values)); + } + } + + private static function getParameters(string $function, ?string $class): array + { + if (isset(self::$parameters[$k = $class.'::'.$function])) { + return self::$parameters[$k]; + } + + try { + $r = null !== $class ? new \ReflectionMethod($class, $function) : new \ReflectionFunction($function); + } catch (\ReflectionException) { + return [null, null]; + } + + $variadic = '...'; + $params = []; + foreach ($r->getParameters() as $v) { + $k = '$'.$v->name; + if ($v->isPassedByReference()) { + $k = '&'.$k; + } + if ($v->isVariadic()) { + $variadic .= $k; + } else { + $params[] = $k; + } + } + + return self::$parameters[$k] = [$variadic, $params]; + } +} diff --git a/vendor/symfony/var-dumper/Caster/Caster.php b/vendor/symfony/var-dumper/Caster/Caster.php new file mode 100644 index 0000000..c3bc54e --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/Caster.php @@ -0,0 +1,203 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Helper for filtering out properties in casters. + * + * @author Nicolas Grekas + * + * @final + */ +class Caster +{ + public const EXCLUDE_VERBOSE = 1; + public const EXCLUDE_VIRTUAL = 2; + public const EXCLUDE_DYNAMIC = 4; + public const EXCLUDE_PUBLIC = 8; + public const EXCLUDE_PROTECTED = 16; + public const EXCLUDE_PRIVATE = 32; + public const EXCLUDE_NULL = 64; + public const EXCLUDE_EMPTY = 128; + public const EXCLUDE_NOT_IMPORTANT = 256; + public const EXCLUDE_STRICT = 512; + public const EXCLUDE_UNINITIALIZED = 1024; + + public const PREFIX_VIRTUAL = "\0~\0"; + public const PREFIX_DYNAMIC = "\0+\0"; + public const PREFIX_PROTECTED = "\0*\0"; + // usage: sprintf(Caster::PATTERN_PRIVATE, $class, $property) + public const PATTERN_PRIVATE = "\0%s\0%s"; + + private static array $classProperties = []; + + /** + * Casts objects to arrays and adds the dynamic property prefix. + * + * @param bool $hasDebugInfo Whether the __debugInfo method exists on $obj or not + * + * @internal since Symfony 7.3 + */ + public static function castObject(object $obj, string $class, bool $hasDebugInfo = false, ?string $debugClass = null): array + { + if ($hasDebugInfo) { + try { + $debugInfo = $obj->__debugInfo(); + } catch (\Throwable) { + // ignore failing __debugInfo() + $hasDebugInfo = false; + } + } + + $a = $obj instanceof \Closure ? [] : (array) $obj; + + if ($obj instanceof \__PHP_Incomplete_Class) { + return $a; + } + + $classProperties = self::$classProperties[$class] ??= self::getClassProperties(new \ReflectionClass($class)); + $a = array_replace($classProperties, $a); + + if ($a) { + $debugClass ??= get_debug_type($obj); + + $i = 0; + $prefixedKeys = []; + foreach ($a as $k => $v) { + if ("\0" !== ($k[0] ?? '')) { + if (!isset($classProperties[$k])) { + $prefixedKeys[$i] = self::PREFIX_DYNAMIC.$k; + } + } elseif ($debugClass !== $class && 1 === strpos($k, $class)) { + $prefixedKeys[$i] = "\0".$debugClass.strrchr($k, "\0"); + } + ++$i; + } + if ($prefixedKeys) { + $keys = array_keys($a); + foreach ($prefixedKeys as $i => $k) { + $keys[$i] = $k; + } + $a = array_combine($keys, $a); + } + } + + if ($hasDebugInfo && \is_array($debugInfo)) { + foreach ($debugInfo as $k => $v) { + if (!isset($k[0]) || "\0" !== $k[0]) { + if (\array_key_exists(self::PREFIX_DYNAMIC.$k, $a)) { + continue; + } + $k = self::PREFIX_VIRTUAL.$k; + } + + unset($a[$k]); + $a[$k] = $v; + } + } + + return $a; + } + + /** + * Filters out the specified properties. + * + * By default, a single match in the $filter bit field filters properties out, following an "or" logic. + * When EXCLUDE_STRICT is set, an "and" logic is applied: all bits must match for a property to be removed. + * + * @param array $a The array containing the properties to filter + * @param int $filter A bit field of Caster::EXCLUDE_* constants specifying which properties to filter out + * @param string[] $listedProperties List of properties to exclude when Caster::EXCLUDE_VERBOSE is set, and to preserve when Caster::EXCLUDE_NOT_IMPORTANT is set + * @param int|null &$count Set to the number of removed properties + */ + public static function filter(array $a, int $filter, array $listedProperties = [], ?int &$count = 0): array + { + $count = 0; + + foreach ($a as $k => $v) { + $type = self::EXCLUDE_STRICT & $filter; + + if (null === $v) { + $type |= self::EXCLUDE_NULL & $filter; + $type |= self::EXCLUDE_EMPTY & $filter; + } elseif (false === $v || '' === $v || '0' === $v || 0 === $v || 0.0 === $v || [] === $v) { + $type |= self::EXCLUDE_EMPTY & $filter; + } elseif ($v instanceof UninitializedStub) { + $type |= self::EXCLUDE_UNINITIALIZED & $filter; + } + if ((self::EXCLUDE_NOT_IMPORTANT & $filter) && !\in_array($k, $listedProperties, true)) { + $type |= self::EXCLUDE_NOT_IMPORTANT; + } + if ((self::EXCLUDE_VERBOSE & $filter) && \in_array($k, $listedProperties, true)) { + $type |= self::EXCLUDE_VERBOSE; + } + + if (!isset($k[1]) || "\0" !== $k[0]) { + $type |= self::EXCLUDE_PUBLIC & $filter; + } elseif ('~' === $k[1]) { + $type |= self::EXCLUDE_VIRTUAL & $filter; + } elseif ('+' === $k[1]) { + $type |= self::EXCLUDE_DYNAMIC & $filter; + } elseif ('*' === $k[1]) { + $type |= self::EXCLUDE_PROTECTED & $filter; + } else { + $type |= self::EXCLUDE_PRIVATE & $filter; + } + + if ((self::EXCLUDE_STRICT & $filter) ? $type === $filter : $type) { + unset($a[$k]); + ++$count; + } + } + + return $a; + } + + /** + * @internal since Symfony 7.3 + */ + public static function castPhpIncompleteClass(\__PHP_Incomplete_Class $c, array $a, Stub $stub, bool $isNested): array + { + if (isset($a['__PHP_Incomplete_Class_Name'])) { + $stub->class .= '('.$a['__PHP_Incomplete_Class_Name'].')'; + unset($a['__PHP_Incomplete_Class_Name']); + } + + return $a; + } + + private static function getClassProperties(\ReflectionClass $class): array + { + $classProperties = []; + $className = $class->name; + + if ($parent = $class->getParentClass()) { + $classProperties += self::$classProperties[$parent->name] ??= self::getClassProperties($parent); + } + + foreach ($class->getProperties() as $p) { + if ($p->isStatic()) { + continue; + } + + $classProperties[match (true) { + $p->isPublic() => $p->name, + $p->isProtected() => self::PREFIX_PROTECTED.$p->name, + default => "\0".$className."\0".$p->name, + }] = \PHP_VERSION_ID >= 80400 && $p->isVirtual() ? new VirtualStub($p) : new UninitializedStub($p); + } + + return $classProperties; + } +} diff --git a/vendor/symfony/var-dumper/Caster/ClassStub.php b/vendor/symfony/var-dumper/Caster/ClassStub.php new file mode 100644 index 0000000..46dd27e --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/ClassStub.php @@ -0,0 +1,104 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Represents a PHP class identifier. + * + * @author Nicolas Grekas + */ +class ClassStub extends ConstStub +{ + /** + * @param string $identifier A PHP identifier, e.g. a class, method, interface, etc. name + * @param callable $callable The callable targeted by the identifier when it is ambiguous or not a real PHP identifier + */ + public function __construct(string $identifier, callable|array|string|null $callable = null) + { + $this->value = $identifier; + + try { + if (null !== $callable) { + if ($callable instanceof \Closure) { + $r = new \ReflectionFunction($callable); + } elseif (\is_object($callable)) { + $r = [$callable, '__invoke']; + } elseif (\is_array($callable)) { + $r = $callable; + } elseif (false !== $i = strpos($callable, '::')) { + $r = [substr($callable, 0, $i), substr($callable, 2 + $i)]; + } else { + $r = new \ReflectionFunction($callable); + } + } elseif (0 < $i = strpos($identifier, '::') ?: strpos($identifier, '->')) { + $r = [substr($identifier, 0, $i), substr($identifier, 2 + $i)]; + } else { + $r = new \ReflectionClass($identifier); + } + + if (\is_array($r)) { + try { + $r = new \ReflectionMethod($r[0], $r[1]); + } catch (\ReflectionException) { + $r = new \ReflectionClass($r[0]); + } + } + + if (str_contains($identifier, "@anonymous\0")) { + $this->value = $identifier = preg_replace_callback('/[a-zA-Z_\x7f-\xff][\\\\a-zA-Z0-9_\x7f-\xff]*+@anonymous\x00.*?\.php(?:0x?|:[0-9]++\$)?[0-9a-fA-F]++/', static fn ($m) => class_exists($m[0], false) ? (get_parent_class($m[0]) ?: key(class_implements($m[0])) ?: 'class').'@anonymous' : $m[0], $identifier); + } + + if (null !== $callable && $r instanceof \ReflectionFunctionAbstract) { + $s = ReflectionCaster::castFunctionAbstract($r, [], new Stub(), true, Caster::EXCLUDE_VERBOSE); + $s = ReflectionCaster::getSignature($s); + + if (str_ends_with($identifier, '()')) { + $this->value = substr_replace($identifier, $s, -2); + } else { + $this->value .= $s; + } + } + } catch (\ReflectionException) { + return; + } finally { + if (0 < $i = strrpos($this->value, '\\')) { + $this->attr['ellipsis'] = \strlen($this->value) - $i; + $this->attr['ellipsis-type'] = 'class'; + $this->attr['ellipsis-tail'] = 1; + } + } + + if ($f = $r->getFileName()) { + $this->attr['file'] = $f; + $this->attr['line'] = $r->getStartLine(); + } + } + + public static function wrapCallable(mixed $callable): mixed + { + if (\is_object($callable) || !\is_callable($callable)) { + return $callable; + } + + if (!\is_array($callable)) { + $callable = new static($callable, $callable); + } elseif (\is_string($callable[0])) { + $callable[0] = new static($callable[0], $callable); + } else { + $callable[1] = new static($callable[1], $callable); + } + + return $callable; + } +} diff --git a/vendor/symfony/var-dumper/Caster/ConstStub.php b/vendor/symfony/var-dumper/Caster/ConstStub.php new file mode 100644 index 0000000..adea786 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/ConstStub.php @@ -0,0 +1,52 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Represents a PHP constant and its value. + * + * @author Nicolas Grekas + */ +class ConstStub extends Stub +{ + public function __construct(string $name, string|int|float|null $value = null) + { + $this->class = $name; + $this->value = 1 < \func_num_args() ? $value : $name; + } + + public function __toString(): string + { + return (string) $this->value; + } + + /** + * @param array $values + */ + public static function fromBitfield(int $value, array $values): self + { + $names = []; + foreach ($values as $v => $name) { + if ($value & $v) { + $names[] = $name; + } + } + + if (!$names) { + $names[] = $values[0] ?? 0; + } + + return new self(implode(' | ', $names), $value); + } +} diff --git a/vendor/symfony/var-dumper/Caster/CurlCaster.php b/vendor/symfony/var-dumper/Caster/CurlCaster.php new file mode 100644 index 0000000..fe4ec52 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/CurlCaster.php @@ -0,0 +1,31 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Nicolas Grekas + * + * @internal + */ +final class CurlCaster +{ + public static function castCurl(\CurlHandle $h, array $a, Stub $stub, bool $isNested): array + { + foreach (curl_getinfo($h) as $key => $val) { + $a[Caster::PREFIX_VIRTUAL.$key] = $val; + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/CutArrayStub.php b/vendor/symfony/var-dumper/Caster/CutArrayStub.php new file mode 100644 index 0000000..5912e13 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/CutArrayStub.php @@ -0,0 +1,30 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +/** + * Represents a cut array. + * + * @author Nicolas Grekas + */ +class CutArrayStub extends CutStub +{ + public array $preservedSubset; + + public function __construct(array $value, array $preservedKeys) + { + parent::__construct($value); + + $this->preservedSubset = array_intersect_key($value, array_flip($preservedKeys)); + $this->cut -= \count($this->preservedSubset); + } +} diff --git a/vendor/symfony/var-dumper/Caster/CutStub.php b/vendor/symfony/var-dumper/Caster/CutStub.php new file mode 100644 index 0000000..6870a9c --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/CutStub.php @@ -0,0 +1,64 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Represents the main properties of a PHP variable, pre-casted by a caster. + * + * @author Nicolas Grekas + */ +class CutStub extends Stub +{ + public function __construct(mixed $value) + { + $this->value = $value; + + switch (\gettype($value)) { + case 'object': + $this->type = self::TYPE_OBJECT; + $this->class = get_debug_type($value); + + if ($value instanceof \Closure) { + ReflectionCaster::castClosure($value, [], $this, true, Caster::EXCLUDE_VERBOSE); + } + + $this->cut = -1; + break; + + case 'array': + $this->type = self::TYPE_ARRAY; + $this->class = self::ARRAY_ASSOC; + $this->cut = $this->value = \count($value); + break; + + case 'resource': + case 'unknown type': + case 'resource (closed)': + $this->type = self::TYPE_RESOURCE; + $this->handle = (int) $value; + if ('Unknown' === $this->class = @get_resource_type($value)) { + $this->class = 'Closed'; + } + $this->cut = -1; + break; + + case 'string': + $this->type = self::TYPE_STRING; + $this->class = preg_match('//u', $value) ? self::STRING_UTF8 : self::STRING_BINARY; + $this->cut = self::STRING_BINARY === $this->class ? \strlen($value) : mb_strlen($value, 'UTF-8'); + $this->value = ''; + break; + } + } +} diff --git a/vendor/symfony/var-dumper/Caster/DOMCaster.php b/vendor/symfony/var-dumper/Caster/DOMCaster.php new file mode 100644 index 0000000..10fefed --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/DOMCaster.php @@ -0,0 +1,209 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts DOM related classes to array representation. + * + * @author Nicolas Grekas + * + * @final + * + * @internal since Symfony 7.3 + */ +class DOMCaster +{ + private const ERROR_CODES = [ + 0 => 'DOM_PHP_ERR', + \DOM_INDEX_SIZE_ERR => 'DOM_INDEX_SIZE_ERR', + \DOMSTRING_SIZE_ERR => 'DOMSTRING_SIZE_ERR', + \DOM_HIERARCHY_REQUEST_ERR => 'DOM_HIERARCHY_REQUEST_ERR', + \DOM_WRONG_DOCUMENT_ERR => 'DOM_WRONG_DOCUMENT_ERR', + \DOM_INVALID_CHARACTER_ERR => 'DOM_INVALID_CHARACTER_ERR', + \DOM_NO_DATA_ALLOWED_ERR => 'DOM_NO_DATA_ALLOWED_ERR', + \DOM_NO_MODIFICATION_ALLOWED_ERR => 'DOM_NO_MODIFICATION_ALLOWED_ERR', + \DOM_NOT_FOUND_ERR => 'DOM_NOT_FOUND_ERR', + \DOM_NOT_SUPPORTED_ERR => 'DOM_NOT_SUPPORTED_ERR', + \DOM_INUSE_ATTRIBUTE_ERR => 'DOM_INUSE_ATTRIBUTE_ERR', + \DOM_INVALID_STATE_ERR => 'DOM_INVALID_STATE_ERR', + \DOM_SYNTAX_ERR => 'DOM_SYNTAX_ERR', + \DOM_INVALID_MODIFICATION_ERR => 'DOM_INVALID_MODIFICATION_ERR', + \DOM_NAMESPACE_ERR => 'DOM_NAMESPACE_ERR', + \DOM_INVALID_ACCESS_ERR => 'DOM_INVALID_ACCESS_ERR', + \DOM_VALIDATION_ERR => 'DOM_VALIDATION_ERR', + ]; + + private const NODE_TYPES = [ + \XML_ELEMENT_NODE => 'XML_ELEMENT_NODE', + \XML_ATTRIBUTE_NODE => 'XML_ATTRIBUTE_NODE', + \XML_TEXT_NODE => 'XML_TEXT_NODE', + \XML_CDATA_SECTION_NODE => 'XML_CDATA_SECTION_NODE', + \XML_ENTITY_REF_NODE => 'XML_ENTITY_REF_NODE', + \XML_ENTITY_NODE => 'XML_ENTITY_NODE', + \XML_PI_NODE => 'XML_PI_NODE', + \XML_COMMENT_NODE => 'XML_COMMENT_NODE', + \XML_DOCUMENT_NODE => 'XML_DOCUMENT_NODE', + \XML_DOCUMENT_TYPE_NODE => 'XML_DOCUMENT_TYPE_NODE', + \XML_DOCUMENT_FRAG_NODE => 'XML_DOCUMENT_FRAG_NODE', + \XML_NOTATION_NODE => 'XML_NOTATION_NODE', + \XML_HTML_DOCUMENT_NODE => 'XML_HTML_DOCUMENT_NODE', + \XML_DTD_NODE => 'XML_DTD_NODE', + \XML_ELEMENT_DECL_NODE => 'XML_ELEMENT_DECL_NODE', + \XML_ATTRIBUTE_DECL_NODE => 'XML_ATTRIBUTE_DECL_NODE', + \XML_ENTITY_DECL_NODE => 'XML_ENTITY_DECL_NODE', + \XML_NAMESPACE_DECL_NODE => 'XML_NAMESPACE_DECL_NODE', + ]; + + public static function castException(\DOMException|\Dom\Exception $e, array $a, Stub $stub, bool $isNested): array + { + $k = Caster::PREFIX_PROTECTED.'code'; + if (isset($a[$k], self::ERROR_CODES[$a[$k]])) { + $a[$k] = new ConstStub(self::ERROR_CODES[$a[$k]], $a[$k]); + } + + return $a; + } + + public static function castLength($dom, array $a, Stub $stub, bool $isNested): array + { + return $a; + } + + public static function castImplementation(\DOMImplementation|\Dom\Implementation $dom, array $a, Stub $stub, bool $isNested): array + { + $a += [ + Caster::PREFIX_VIRTUAL.'Core' => '1.0', + Caster::PREFIX_VIRTUAL.'XML' => '2.0', + ]; + + return $a; + } + + public static function castNode(\DOMNode|\Dom\Node $dom, array $a, Stub $stub, bool $isNested): array + { + return self::castDom($dom, $a, $stub, $isNested); + } + + public static function castNameSpaceNode(\DOMNameSpaceNode $dom, array $a, Stub $stub, bool $isNested): array + { + return self::castDom($dom, $a, $stub, $isNested); + } + + public static function castDocument(\DOMDocument $dom, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + if (!($filter & Caster::EXCLUDE_VERBOSE)) { + $formatOutput = $dom->formatOutput; + $dom->formatOutput = true; + $a += [Caster::PREFIX_VIRTUAL.'xml' => $dom->saveXML()]; + $dom->formatOutput = $formatOutput; + } + + return $a; + } + + public static function castXMLDocument(\Dom\XMLDocument $dom, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + if (!($filter & Caster::EXCLUDE_VERBOSE)) { + $formatOutput = $dom->formatOutput; + $dom->formatOutput = true; + $a += [Caster::PREFIX_VIRTUAL.'xml' => $dom->saveXML()]; + $dom->formatOutput = $formatOutput; + } + + return $a; + } + + public static function castHTMLDocument(\Dom\HTMLDocument $dom, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + if (!($filter & Caster::EXCLUDE_VERBOSE)) { + $a += [Caster::PREFIX_VIRTUAL.'html' => $dom->saveHTML()]; + } + + return $a; + } + + public static function castCharacterData(\DOMCharacterData|\Dom\CharacterData $dom, array $a, Stub $stub, bool $isNested): array + { + return $a; + } + + public static function castAttr(\DOMAttr|\Dom\Attr $dom, array $a, Stub $stub, bool $isNested): array + { + return $a; + } + + public static function castElement(\DOMElement|\Dom\Element $dom, array $a, Stub $stub, bool $isNested): array + { + return $a; + } + + public static function castText(\DOMText|\Dom\Text $dom, array $a, Stub $stub, bool $isNested): array + { + return $a; + } + + public static function castDocumentType(\DOMDocumentType|\Dom\DocumentType $dom, array $a, Stub $stub, bool $isNested): array + { + return $a; + } + + public static function castNotation(\DOMNotation|\Dom\Notation $dom, array $a, Stub $stub, bool $isNested): array + { + return $a; + } + + public static function castEntity(\DOMEntity|\Dom\Entity $dom, array $a, Stub $stub, bool $isNested): array + { + return $a; + } + + public static function castProcessingInstruction(\DOMProcessingInstruction|\Dom\ProcessingInstruction $dom, array $a, Stub $stub, bool $isNested): array + { + return $a; + } + + public static function castXPath(\DOMXPath|\Dom\XPath $dom, array $a, Stub $stub, bool $isNested): array + { + return self::castDom($dom, $a, $stub, $isNested); + } + + public static function castDom($dom, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + foreach ($a as $k => $v) { + if ('encoding' === $k && $dom instanceof \DOMEntity + || \in_array($k, ['actualEncoding', 'config', 'standalone', 'version'], true) + ) { + continue; // deprecated properties + } + + $v = $dom->$k; + + $a[$k] = match (true) { + $v instanceof \DOMNode || $v instanceof \Dom\Node => new CutStub($v), + 'nodeType' === $k => new ConstStub(self::NODE_TYPES[$v], $v), + 'baseURI' === $k && $v, + 'documentURI' === $k && $v => new LinkStub($v), + default => $v, + }; + } + + if ($dom instanceof \IteratorAggregate) { + foreach ($dom as $k => $v) { + $a[Caster::PREFIX_VIRTUAL.$k] = $v; + } + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/DateCaster.php b/vendor/symfony/var-dumper/Caster/DateCaster.php new file mode 100644 index 0000000..4dcdd07 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/DateCaster.php @@ -0,0 +1,136 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts DateTimeInterface related classes to array representation. + * + * @author Dany Maillard + * + * @final + * + * @internal since Symfony 7.3 + */ +class DateCaster +{ + private const PERIOD_LIMIT = 3; + + public static function castDateTime(\DateTimeInterface $d, array $a, Stub $stub, bool $isNested, int $filter): array + { + $prefix = Caster::PREFIX_VIRTUAL; + $location = $d->getTimezone() ? $d->getTimezone()->getLocation() : null; + $fromNow = (new \DateTimeImmutable())->diff($d); + + $title = $d->format('l, F j, Y') + ."\n".self::formatInterval($fromNow).' from now' + .($location ? ($d->format('I') ? "\nDST On" : "\nDST Off") : '') + ; + + unset( + $a[Caster::PREFIX_DYNAMIC.'date'], + $a[Caster::PREFIX_DYNAMIC.'timezone'], + $a[Caster::PREFIX_DYNAMIC.'timezone_type'] + ); + $a[$prefix.'date'] = new ConstStub(self::formatDateTime($d, $location ? ' e (P)' : ' P'), $title); + + $stub->class .= $d->format(' @U'); + + return $a; + } + + public static function castInterval(\DateInterval $interval, array $a, Stub $stub, bool $isNested, int $filter): array + { + $now = new \DateTimeImmutable('@0', new \DateTimeZone('UTC')); + $numberOfSeconds = $now->add($interval)->getTimestamp() - $now->getTimestamp(); + $title = number_format($numberOfSeconds, 0, '.', ' ').'s'; + + $i = [Caster::PREFIX_VIRTUAL.'interval' => new ConstStub(self::formatInterval($interval), $title)]; + + return $filter & Caster::EXCLUDE_VERBOSE ? $i : $i + $a; + } + + private static function formatInterval(\DateInterval $i): string + { + $format = '%R '; + + if (0 === $i->y && 0 === $i->m && ($i->h >= 24 || $i->i >= 60 || $i->s >= 60)) { + $d = new \DateTimeImmutable('@0', new \DateTimeZone('UTC')); + $i = $d->diff($d->add($i)); // recalculate carry over points + $format .= 0 < $i->days ? '%ad ' : ''; + } else { + $format .= ($i->y ? '%yy ' : '').($i->m ? '%mm ' : '').($i->d ? '%dd ' : ''); + } + + $format .= $i->h || $i->i || $i->s || $i->f ? '%H:%I:'.self::formatSeconds($i->s, substr($i->f, 2)) : ''; + $format = '%R ' === $format ? '0s' : $format; + + return $i->format(rtrim($format)); + } + + public static function castTimeZone(\DateTimeZone $timeZone, array $a, Stub $stub, bool $isNested, int $filter): array + { + $location = $timeZone->getLocation(); + $formatted = (new \DateTimeImmutable('now', $timeZone))->format($location ? 'e (P)' : 'P'); + $title = $location && \extension_loaded('intl') ? \Locale::getDisplayRegion('-'.$location['country_code']) : ''; + + $z = [Caster::PREFIX_VIRTUAL.'timezone' => new ConstStub($formatted, $title)]; + + return $filter & Caster::EXCLUDE_VERBOSE ? $z : $z + $a; + } + + public static function castPeriod(\DatePeriod $p, array $a, Stub $stub, bool $isNested, int $filter): array + { + $dates = []; + foreach (clone $p as $i => $d) { + if (self::PERIOD_LIMIT === $i) { + if (!$end = $p->getEndDate()) { + $dates[] = \sprintf('%s more', $p->recurrences - $i); + break; + } + + $now = new \DateTimeImmutable('now', new \DateTimeZone('UTC')); + $numberOfSeconds = (float) $now->add($p->getDateInterval())->format('U.u') - (float) $now->format('U.u'); + + if (0 < $numberOfSeconds) { + $dates[] = \sprintf('%s more', ceil(($end->format('U.u') - $d->format('U.u')) / $numberOfSeconds)); + } + + break; + } + $dates[] = \sprintf('%s) %s', $i + 1, self::formatDateTime($d)); + } + + $period = \sprintf( + 'every %s, from %s%s %s', + self::formatInterval($p->getDateInterval()), + $p->include_start_date ? '[' : ']', + self::formatDateTime($p->getStartDate()), + ($end = $p->getEndDate()) ? 'to '.self::formatDateTime($end).($p->include_end_date ? ']' : '[') : 'recurring '.$p->recurrences.' time/s' + ); + + $p = [Caster::PREFIX_VIRTUAL.'period' => new ConstStub($period, implode("\n", $dates))]; + + return $filter & Caster::EXCLUDE_VERBOSE ? $p : $p + $a; + } + + private static function formatDateTime(\DateTimeInterface $d, string $extra = ''): string + { + return $d->format('Y-m-d H:i:'.self::formatSeconds($d->format('s'), $d->format('u')).$extra); + } + + private static function formatSeconds(string $s, string $us): string + { + return \sprintf('%02d.%s', $s, 0 === ($len = \strlen($t = rtrim($us, '0'))) ? '0' : ($len <= 3 ? str_pad($t, 3, '0') : $us)); + } +} diff --git a/vendor/symfony/var-dumper/Caster/DoctrineCaster.php b/vendor/symfony/var-dumper/Caster/DoctrineCaster.php new file mode 100644 index 0000000..b963112 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/DoctrineCaster.php @@ -0,0 +1,64 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Doctrine\Common\Proxy\Proxy as CommonProxy; +use Doctrine\ORM\PersistentCollection; +use Doctrine\ORM\Proxy\Proxy as OrmProxy; +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts Doctrine related classes to array representation. + * + * @author Nicolas Grekas + * + * @final + * + * @internal since Symfony 7.3 + */ +class DoctrineCaster +{ + public static function castCommonProxy(CommonProxy $proxy, array $a, Stub $stub, bool $isNested): array + { + foreach (['__cloner__', '__initializer__'] as $k) { + if (\array_key_exists($k, $a)) { + unset($a[$k]); + ++$stub->cut; + } + } + + return $a; + } + + public static function castOrmProxy(OrmProxy $proxy, array $a, Stub $stub, bool $isNested): array + { + foreach (['_entityPersister', '_identifier'] as $k) { + if (\array_key_exists($k = "\0Doctrine\\ORM\\Proxy\\Proxy\0".$k, $a)) { + unset($a[$k]); + ++$stub->cut; + } + } + + return $a; + } + + public static function castPersistentCollection(PersistentCollection $coll, array $a, Stub $stub, bool $isNested): array + { + foreach (['snapshot', 'association', 'typeClass'] as $k) { + if (\array_key_exists($k = "\0Doctrine\\ORM\\PersistentCollection\0".$k, $a)) { + $a[$k] = new CutStub($a[$k]); + } + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/DsCaster.php b/vendor/symfony/var-dumper/Caster/DsCaster.php new file mode 100644 index 0000000..b34b670 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/DsCaster.php @@ -0,0 +1,70 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Ds\Collection; +use Ds\Map; +use Ds\Pair; +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts Ds extension classes to array representation. + * + * @author Jáchym Toušek + * + * @final + */ +class DsCaster +{ + public static function castCollection(Collection $c, array $a, Stub $stub, bool $isNested): array + { + $a[Caster::PREFIX_VIRTUAL.'count'] = $c->count(); + $a[Caster::PREFIX_VIRTUAL.'capacity'] = $c->capacity(); + + if (!$c instanceof Map) { + $a += $c->toArray(); + } + + return $a; + } + + public static function castMap(Map $c, array $a, Stub $stub, bool $isNested): array + { + foreach ($c as $k => $v) { + $a[] = new DsPairStub($k, $v); + } + + return $a; + } + + public static function castPair(Pair $c, array $a, Stub $stub, bool $isNested): array + { + foreach ($c->toArray() as $k => $v) { + $a[Caster::PREFIX_VIRTUAL.$k] = $v; + } + + return $a; + } + + public static function castPairStub(DsPairStub $c, array $a, Stub $stub, bool $isNested): array + { + if ($isNested) { + $stub->class = Pair::class; + $stub->value = null; + $stub->handle = 0; + + $a = $c->value; + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/DsPairStub.php b/vendor/symfony/var-dumper/Caster/DsPairStub.php new file mode 100644 index 0000000..afa2727 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/DsPairStub.php @@ -0,0 +1,28 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Nicolas Grekas + */ +class DsPairStub extends Stub +{ + public function __construct(mixed $key, mixed $value) + { + $this->value = [ + Caster::PREFIX_VIRTUAL.'key' => $key, + Caster::PREFIX_VIRTUAL.'value' => $value, + ]; + } +} diff --git a/vendor/symfony/var-dumper/Caster/EnumStub.php b/vendor/symfony/var-dumper/Caster/EnumStub.php new file mode 100644 index 0000000..11e0cd9 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/EnumStub.php @@ -0,0 +1,29 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Represents an enumeration of values. + * + * @author Nicolas Grekas + */ +class EnumStub extends Stub +{ + public function __construct( + array $values, + public bool $dumpKeys = true, + ) { + $this->value = $values; + } +} diff --git a/vendor/symfony/var-dumper/Caster/ExceptionCaster.php b/vendor/symfony/var-dumper/Caster/ExceptionCaster.php new file mode 100644 index 0000000..30b1a99 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/ExceptionCaster.php @@ -0,0 +1,397 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\ErrorHandler\Exception\FlattenException; +use Symfony\Component\ErrorHandler\Exception\SilencedErrorContext; +use Symfony\Component\VarDumper\Cloner\Stub; +use Symfony\Component\VarDumper\Exception\ThrowingCasterException; + +/** + * Casts common Exception classes to array representation. + * + * @author Nicolas Grekas + * + * @final + * + * @internal since Symfony 7.3 + */ +class ExceptionCaster +{ + public static int $srcContext = 1; + public static bool $traceArgs = true; + public static array $errorTypes = [ + \E_DEPRECATED => 'E_DEPRECATED', + \E_USER_DEPRECATED => 'E_USER_DEPRECATED', + \E_RECOVERABLE_ERROR => 'E_RECOVERABLE_ERROR', + \E_ERROR => 'E_ERROR', + \E_WARNING => 'E_WARNING', + \E_PARSE => 'E_PARSE', + \E_NOTICE => 'E_NOTICE', + \E_CORE_ERROR => 'E_CORE_ERROR', + \E_CORE_WARNING => 'E_CORE_WARNING', + \E_COMPILE_ERROR => 'E_COMPILE_ERROR', + \E_COMPILE_WARNING => 'E_COMPILE_WARNING', + \E_USER_ERROR => 'E_USER_ERROR', + \E_USER_WARNING => 'E_USER_WARNING', + \E_USER_NOTICE => 'E_USER_NOTICE', + 2048 => 'E_STRICT', + ]; + + private static array $framesCache = []; + + public static function castError(\Error $e, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + return self::filterExceptionArray($stub->class, $a, "\0Error\0", $filter); + } + + public static function castException(\Exception $e, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + return self::filterExceptionArray($stub->class, $a, "\0Exception\0", $filter); + } + + public static function castErrorException(\ErrorException $e, array $a, Stub $stub, bool $isNested): array + { + if (isset($a[$s = Caster::PREFIX_PROTECTED.'severity'], self::$errorTypes[$a[$s]])) { + $a[$s] = new ConstStub(self::$errorTypes[$a[$s]], $a[$s]); + } + + return $a; + } + + public static function castThrowingCasterException(ThrowingCasterException $e, array $a, Stub $stub, bool $isNested): array + { + $trace = Caster::PREFIX_VIRTUAL.'trace'; + $prefix = Caster::PREFIX_PROTECTED; + $xPrefix = "\0Exception\0"; + + if (isset($a[$xPrefix.'previous'], $a[$trace]) && $a[$xPrefix.'previous'] instanceof \Exception) { + $b = (array) $a[$xPrefix.'previous']; + $class = get_debug_type($a[$xPrefix.'previous']); + self::traceUnshift($b[$xPrefix.'trace'], $class, $b[$prefix.'file'], $b[$prefix.'line']); + $a[$trace] = new TraceStub($b[$xPrefix.'trace'], false, 0, -\count($a[$trace]->value)); + } + + unset($a[$xPrefix.'previous'], $a[$prefix.'code'], $a[$prefix.'file'], $a[$prefix.'line']); + + return $a; + } + + public static function castSilencedErrorContext(SilencedErrorContext $e, array $a, Stub $stub, bool $isNested): array + { + $sPrefix = "\0".SilencedErrorContext::class."\0"; + + if (!isset($a[$s = $sPrefix.'severity'])) { + return $a; + } + + if (isset(self::$errorTypes[$a[$s]])) { + $a[$s] = new ConstStub(self::$errorTypes[$a[$s]], $a[$s]); + } + + $trace = [[ + 'file' => $a[$sPrefix.'file'], + 'line' => $a[$sPrefix.'line'], + ]]; + + if (isset($a[$sPrefix.'trace'])) { + $trace = array_merge($trace, $a[$sPrefix.'trace']); + } + + unset($a[$sPrefix.'file'], $a[$sPrefix.'line'], $a[$sPrefix.'trace']); + $a[Caster::PREFIX_VIRTUAL.'trace'] = new TraceStub($trace, self::$traceArgs); + + return $a; + } + + public static function castTraceStub(TraceStub $trace, array $a, Stub $stub, bool $isNested): array + { + if (!$isNested) { + return $a; + } + $stub->class = ''; + $stub->handle = 0; + $frames = $trace->value; + $prefix = Caster::PREFIX_VIRTUAL; + + $a = []; + $j = \count($frames); + if (0 > $i = $trace->sliceOffset) { + $i = max(0, $j + $i); + } + if (!isset($trace->value[$i])) { + return []; + } + $lastCall = isset($frames[$i]['function']) ? (isset($frames[$i]['class']) ? $frames[0]['class'].$frames[$i]['type'] : '').$frames[$i]['function'].'()' : ''; + $frames[] = ['function' => '']; + $collapse = false; + + for ($j += $trace->numberingOffset - $i++; isset($frames[$i]); ++$i, --$j) { + $f = $frames[$i]; + $call = isset($f['function']) ? (isset($f['class']) ? $f['class'].$f['type'] : '').$f['function'] : '???'; + + $frame = new FrameStub( + [ + 'object' => $f['object'] ?? null, + 'class' => $f['class'] ?? null, + 'type' => $f['type'] ?? null, + 'function' => $f['function'] ?? null, + ] + $frames[$i - 1], + false, + true + ); + $f = self::castFrameStub($frame, [], $frame, true); + if (isset($f[$prefix.'src'])) { + foreach ($f[$prefix.'src']->value as $label => $frame) { + if (str_starts_with($label, "\0~collapse=0")) { + if ($collapse) { + $label = substr_replace($label, '1', 11, 1); + } else { + $collapse = true; + } + } + $label = substr_replace($label, "title=Stack level $j.&", 2, 0); + } + $f = $frames[$i - 1]; + if ($trace->keepArgs && !empty($f['args']) && $frame instanceof EnumStub) { + $frame->value['arguments'] = new ArgsStub($f['args'], $f['function'] ?? null, $f['class'] ?? null); + } + } elseif ('???' !== $lastCall) { + $label = new ClassStub($lastCall); + if (isset($label->attr['ellipsis'])) { + $label->attr['ellipsis'] += 2; + $label = substr_replace($prefix, "ellipsis-type=class&ellipsis={$label->attr['ellipsis']}&ellipsis-tail=1&title=Stack level $j.", 2, 0).$label->value.'()'; + } else { + $label = substr_replace($prefix, "title=Stack level $j.", 2, 0).$label->value.'()'; + } + } else { + $label = substr_replace($prefix, "title=Stack level $j.", 2, 0).$lastCall; + } + $a[substr_replace($label, \sprintf('separator=%s&', $frame instanceof EnumStub ? ' ' : ':'), 2, 0)] = $frame; + + $lastCall = $call; + } + if (null !== $trace->sliceLength) { + $a = \array_slice($a, 0, $trace->sliceLength, true); + } + + return $a; + } + + public static function castFrameStub(FrameStub $frame, array $a, Stub $stub, bool $isNested): array + { + if (!$isNested) { + return $a; + } + $f = $frame->value; + $prefix = Caster::PREFIX_VIRTUAL; + + if (isset($f['file'], $f['line'])) { + $cacheKey = $f; + unset($cacheKey['object'], $cacheKey['args']); + $cacheKey[] = self::$srcContext; + $cacheKey = implode('-', $cacheKey); + + if (isset(self::$framesCache[$cacheKey])) { + $a[$prefix.'src'] = self::$framesCache[$cacheKey]; + } else { + if (preg_match('/\((\d+)\)(?:\([\da-f]{32}\))? : (?:eval\(\)\'d code|runtime-created function)$/', $f['file'], $match)) { + $f['file'] = substr($f['file'], 0, -\strlen($match[0])); + $f['line'] = (int) $match[1]; + } + $src = $f['line']; + $srcKey = $f['file']; + $ellipsis = new LinkStub($srcKey, 0); + $srcAttr = 'collapse='.(int) $ellipsis->inVendor; + $ellipsisTail = $ellipsis->attr['ellipsis-tail'] ?? 0; + $ellipsis = $ellipsis->attr['ellipsis'] ?? 0; + + if (is_file($f['file']) && 0 <= self::$srcContext) { + if (!empty($f['class']) && is_subclass_of($f['class'], 'Twig\Template')) { + $template = null; + if (isset($f['object'])) { + $template = $f['object']; + } elseif ((new \ReflectionClass($f['class']))->isInstantiable()) { + $template = unserialize(\sprintf('O:%d:"%s":0:{}', \strlen($f['class']), $f['class']), ['allowed_classes' => true]); + } + if (null !== $template) { + $ellipsis = 0; + $templateSrc = method_exists($template, 'getSourceContext') ? $template->getSourceContext()->getCode() : (method_exists($template, 'getSource') ? $template->getSource() : ''); + $templateInfo = $template->getDebugInfo(); + if (isset($templateInfo[$f['line']])) { + if (!method_exists($template, 'getSourceContext') || !is_file($templatePath = $template->getSourceContext()->getPath())) { + $templatePath = null; + } + if ($templateSrc) { + $src = self::extractSource($templateSrc, $templateInfo[$f['line']], self::$srcContext, 'twig', $templatePath, $f); + $srcKey = ($templatePath ?: $template->getTemplateName()).':'.$templateInfo[$f['line']]; + } + } + } + } + if ($srcKey == $f['file']) { + $src = self::extractSource(file_get_contents($f['file']), $f['line'], self::$srcContext, 'php', $f['file'], $f); + $srcKey .= ':'.$f['line']; + if ($ellipsis) { + $ellipsis += 1 + \strlen($f['line']); + } + } + $srcAttr .= \sprintf('&separator= &file=%s&line=%d', rawurlencode($f['file']), $f['line']); + } else { + $srcAttr .= '&separator=:'; + } + $srcAttr .= $ellipsis ? '&ellipsis-type=path&ellipsis='.$ellipsis.'&ellipsis-tail='.$ellipsisTail : ''; + self::$framesCache[$cacheKey] = $a[$prefix.'src'] = new EnumStub(["\0~$srcAttr\0$srcKey" => $src]); + } + } + + unset($a[$prefix.'args'], $a[$prefix.'line'], $a[$prefix.'file']); + if ($frame->inTraceStub) { + unset($a[$prefix.'class'], $a[$prefix.'type'], $a[$prefix.'function']); + } + foreach ($a as $k => $v) { + if (!$v) { + unset($a[$k]); + } + } + if ($frame->keepArgs && !empty($f['args'])) { + $a[$prefix.'arguments'] = new ArgsStub($f['args'], $f['function'], $f['class']); + } + + return $a; + } + + public static function castFlattenException(FlattenException $e, array $a, Stub $stub, bool $isNested): array + { + if ($isNested) { + $k = \sprintf(Caster::PATTERN_PRIVATE, FlattenException::class, 'traceAsString'); + $a[$k] = new CutStub($a[$k]); + } + + return $a; + } + + private static function filterExceptionArray(string $xClass, array $a, string $xPrefix, int $filter): array + { + if (isset($a[$xPrefix.'trace'])) { + $trace = $a[$xPrefix.'trace']; + unset($a[$xPrefix.'trace']); // Ensures the trace is always last + } else { + $trace = []; + } + + if (!($filter & Caster::EXCLUDE_VERBOSE) && $trace) { + if (isset($a[Caster::PREFIX_PROTECTED.'file'], $a[Caster::PREFIX_PROTECTED.'line'])) { + self::traceUnshift($trace, $xClass, $a[Caster::PREFIX_PROTECTED.'file'], $a[Caster::PREFIX_PROTECTED.'line']); + } + $a[Caster::PREFIX_VIRTUAL.'trace'] = new TraceStub($trace, self::$traceArgs); + } + if (empty($a[$xPrefix.'previous'])) { + unset($a[$xPrefix.'previous']); + } + unset($a[$xPrefix.'string'], $a[Caster::PREFIX_DYNAMIC.'xdebug_message']); + + if (isset($a[Caster::PREFIX_PROTECTED.'message']) && str_contains($a[Caster::PREFIX_PROTECTED.'message'], "@anonymous\0")) { + $a[Caster::PREFIX_PROTECTED.'message'] = preg_replace_callback('/[a-zA-Z_\x7f-\xff][\\\\a-zA-Z0-9_\x7f-\xff]*+@anonymous\x00.*?\.php(?:0x?|:[0-9]++\$)?[0-9a-fA-F]++/', static fn ($m) => class_exists($m[0], false) ? (get_parent_class($m[0]) ?: key(class_implements($m[0])) ?: 'class').'@anonymous' : $m[0], $a[Caster::PREFIX_PROTECTED.'message']); + } + + if (isset($a[Caster::PREFIX_PROTECTED.'file'], $a[Caster::PREFIX_PROTECTED.'line'])) { + $a[Caster::PREFIX_PROTECTED.'file'] = new LinkStub($a[Caster::PREFIX_PROTECTED.'file'], $a[Caster::PREFIX_PROTECTED.'line']); + } + + return $a; + } + + private static function traceUnshift(array &$trace, ?string $class, string $file, int $line): void + { + if (isset($trace[0]['file'], $trace[0]['line']) && $trace[0]['file'] === $file && $trace[0]['line'] === $line) { + return; + } + array_unshift($trace, [ + 'function' => $class ? 'new '.$class : null, + 'file' => $file, + 'line' => $line, + ]); + } + + private static function extractSource(string $srcLines, int $line, int $srcContext, string $lang, ?string $file, array $frame): EnumStub + { + $srcLines = explode("\n", $srcLines); + $src = []; + + for ($i = $line - 1 - $srcContext; $i <= $line - 1 + $srcContext; ++$i) { + $src[] = ($srcLines[$i] ?? '')."\n"; + } + + if ($frame['function'] ?? false) { + $stub = new CutStub(new \stdClass()); + $stub->class = (isset($frame['class']) ? $frame['class'].$frame['type'] : '').$frame['function']; + $stub->type = Stub::TYPE_OBJECT; + $stub->attr['cut_hash'] = true; + $stub->attr['file'] = $frame['file']; + $stub->attr['line'] = $frame['line']; + + try { + $caller = isset($frame['class']) ? new \ReflectionMethod($frame['class'], $frame['function']) : new \ReflectionFunction($frame['function']); + $stub->class .= ReflectionCaster::getSignature(ReflectionCaster::castFunctionAbstract($caller, [], $stub, true, Caster::EXCLUDE_VERBOSE)); + + if ($f = $caller->getFileName()) { + $stub->attr['file'] = $f; + $stub->attr['line'] = $caller->getStartLine(); + } + } catch (\ReflectionException) { + // ignore fake class/function + } + + $srcLines = ["\0~separator=\0" => $stub]; + } else { + $stub = null; + $srcLines = []; + } + + $ltrim = 0; + do { + $pad = null; + for ($i = $srcContext << 1; $i >= 0; --$i) { + if (isset($src[$i][$ltrim]) && "\r" !== ($c = $src[$i][$ltrim]) && "\n" !== $c) { + $pad ??= $c; + if ((' ' !== $c && "\t" !== $c) || $pad !== $c) { + break; + } + } + } + ++$ltrim; + } while (0 > $i && null !== $pad); + + --$ltrim; + + foreach ($src as $i => $c) { + if ($ltrim) { + $c = isset($c[$ltrim]) && "\r" !== $c[$ltrim] ? substr($c, $ltrim) : ltrim($c, " \t"); + } + $c = substr($c, 0, -1); + if ($i !== $srcContext) { + $c = new ConstStub('default', $c); + } else { + $c = new ConstStub($c, $stub ? 'in '.$stub->class : ''); + if (null !== $file) { + $c->attr['file'] = $file; + $c->attr['line'] = $line; + } + } + $c->attr['lang'] = $lang; + $srcLines[\sprintf("\0~separator=› &%d\0", $i + $line - $srcContext)] = $c; + } + + return new EnumStub($srcLines); + } +} diff --git a/vendor/symfony/var-dumper/Caster/FFICaster.php b/vendor/symfony/var-dumper/Caster/FFICaster.php new file mode 100644 index 0000000..165d0cf --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/FFICaster.php @@ -0,0 +1,171 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use FFI\CData; +use FFI\CType; +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts FFI extension classes to array representation. + * + * @author Nesmeyanov Kirill + */ +final class FFICaster +{ + /** + * In case of "char*" contains a string, the length of which depends on + * some other parameter, then during the generation of the string it is + * possible to go beyond the allowable memory area. + * + * This restriction serves to ensure that processing does not take + * up the entire allowable PHP memory limit. + */ + private const MAX_STRING_LENGTH = 255; + + public static function castCTypeOrCData(CData|CType $data, array $args, Stub $stub): array + { + if ($data instanceof CType) { + $type = $data; + $data = null; + } else { + $type = \FFI::typeof($data); + } + + $stub->class = \sprintf('%s<%s> size %d align %d', ($data ?? $type)::class, $type->getName(), $type->getSize(), $type->getAlignment()); + + return match ($type->getKind()) { + CType::TYPE_FLOAT, + CType::TYPE_DOUBLE, + \defined('\FFI\CType::TYPE_LONGDOUBLE') ? CType::TYPE_LONGDOUBLE : -1, + CType::TYPE_UINT8, + CType::TYPE_SINT8, + CType::TYPE_UINT16, + CType::TYPE_SINT16, + CType::TYPE_UINT32, + CType::TYPE_SINT32, + CType::TYPE_UINT64, + CType::TYPE_SINT64, + CType::TYPE_BOOL, + CType::TYPE_CHAR, + CType::TYPE_ENUM => null !== $data ? [Caster::PREFIX_VIRTUAL.'cdata' => $data->cdata] : [], + CType::TYPE_POINTER => self::castFFIPointer($stub, $type, $data), + CType::TYPE_STRUCT => self::castFFIStructLike($type, $data), + CType::TYPE_FUNC => self::castFFIFunction($stub, $type), + default => $args, + }; + } + + private static function castFFIFunction(Stub $stub, CType $type): array + { + $arguments = []; + + for ($i = 0, $count = $type->getFuncParameterCount(); $i < $count; ++$i) { + $param = $type->getFuncParameterType($i); + + $arguments[] = $param->getName(); + } + + $abi = match ($type->getFuncABI()) { + CType::ABI_DEFAULT, + CType::ABI_CDECL => '[cdecl]', + CType::ABI_FASTCALL => '[fastcall]', + CType::ABI_THISCALL => '[thiscall]', + CType::ABI_STDCALL => '[stdcall]', + CType::ABI_PASCAL => '[pascal]', + CType::ABI_REGISTER => '[register]', + CType::ABI_MS => '[ms]', + CType::ABI_SYSV => '[sysv]', + CType::ABI_VECTORCALL => '[vectorcall]', + default => '[unknown abi]', + }; + + $returnType = $type->getFuncReturnType(); + + $stub->class = $abi.' callable('.implode(', ', $arguments).'): ' + .$returnType->getName(); + + return [Caster::PREFIX_VIRTUAL.'returnType' => $returnType]; + } + + private static function castFFIPointer(Stub $stub, CType $type, ?CData $data = null): array + { + $ptr = $type->getPointerType(); + + if (null === $data) { + return [Caster::PREFIX_VIRTUAL.'0' => $ptr]; + } + + return match ($ptr->getKind()) { + CType::TYPE_CHAR => [Caster::PREFIX_VIRTUAL.'cdata' => self::castFFIStringValue($data)], + CType::TYPE_FUNC => self::castFFIFunction($stub, $ptr), + default => [Caster::PREFIX_VIRTUAL.'cdata' => $data[0]], + }; + } + + private static function castFFIStringValue(CData $data): string|CutStub + { + $result = []; + $ffi = \FFI::cdef(<<zend_get_page_size(); + + // get cdata address + $start = $ffi->cast('uintptr_t', $ffi->cast('char*', $data))->cdata; + // accessing memory in the same page as $start is safe + $max = min(self::MAX_STRING_LENGTH, ($start | ($pageSize - 1)) - $start); + + for ($i = 0; $i < $max; ++$i) { + $result[$i] = $data[$i]; + + if ("\0" === $data[$i]) { + return implode('', $result); + } + } + + $string = implode('', $result); + $stub = new CutStub($string); + $stub->cut = -1; + $stub->value = $string; + + return $stub; + } + + private static function castFFIStructLike(CType $type, ?CData $data = null): array + { + $isUnion = ($type->getAttributes() & CType::ATTR_UNION) === CType::ATTR_UNION; + + $result = []; + + foreach ($type->getStructFieldNames() as $name) { + $field = $type->getStructFieldType($name); + + // Retrieving the value of a field from a union containing + // a pointer is not a safe operation, because may contain + // incorrect data. + $isUnsafe = $isUnion && CType::TYPE_POINTER === $field->getKind(); + + if ($isUnsafe) { + $result[Caster::PREFIX_VIRTUAL.$name.'?'] = $field; + } elseif (null === $data) { + $result[Caster::PREFIX_VIRTUAL.$name] = $field; + } else { + $fieldName = $data->{$name} instanceof CData ? '' : $field->getName().' '; + $result[Caster::PREFIX_VIRTUAL.$fieldName.$name] = $data->{$name}; + } + } + + return $result; + } +} diff --git a/vendor/symfony/var-dumper/Caster/FiberCaster.php b/vendor/symfony/var-dumper/Caster/FiberCaster.php new file mode 100644 index 0000000..c9df708 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/FiberCaster.php @@ -0,0 +1,43 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts Fiber related classes to array representation. + * + * @author Grégoire Pineau + */ +final class FiberCaster +{ + public static function castFiber(\Fiber $fiber, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + if ($fiber->isTerminated()) { + $status = 'terminated'; + } elseif ($fiber->isRunning()) { + $status = 'running'; + } elseif ($fiber->isSuspended()) { + $status = 'suspended'; + } elseif ($fiber->isStarted()) { + $status = 'started'; + } else { + $status = 'not started'; + } + + $a[$prefix.'status'] = $status; + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/FrameStub.php b/vendor/symfony/var-dumper/Caster/FrameStub.php new file mode 100644 index 0000000..e57aa46 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/FrameStub.php @@ -0,0 +1,28 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +/** + * Represents a single backtrace frame as returned by debug_backtrace() or Exception->getTrace(). + * + * @author Nicolas Grekas + */ +class FrameStub extends EnumStub +{ + public function __construct( + array $frame, + public bool $keepArgs = true, + public bool $inTraceStub = false, + ) { + parent::__construct($frame); + } +} diff --git a/vendor/symfony/var-dumper/Caster/GdCaster.php b/vendor/symfony/var-dumper/Caster/GdCaster.php new file mode 100644 index 0000000..db87653 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/GdCaster.php @@ -0,0 +1,30 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Nicolas Grekas + * + * @internal + */ +final class GdCaster +{ + public static function castGd(\GdImage $gd, array $a, Stub $stub, bool $isNested): array + { + $a[Caster::PREFIX_VIRTUAL.'size'] = imagesx($gd).'x'.imagesy($gd); + $a[Caster::PREFIX_VIRTUAL.'trueColor'] = imageistruecolor($gd); + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/GmpCaster.php b/vendor/symfony/var-dumper/Caster/GmpCaster.php new file mode 100644 index 0000000..325d2e9 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/GmpCaster.php @@ -0,0 +1,34 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts GMP objects to array representation. + * + * @author Hamza Amrouche + * @author Nicolas Grekas + * + * @final + * + * @internal since Symfony 7.3 + */ +class GmpCaster +{ + public static function castGmp(\GMP $gmp, array $a, Stub $stub, bool $isNested, int $filter): array + { + $a[Caster::PREFIX_VIRTUAL.'value'] = new ConstStub(gmp_strval($gmp), gmp_strval($gmp)); + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/ImagineCaster.php b/vendor/symfony/var-dumper/Caster/ImagineCaster.php new file mode 100644 index 0000000..0fb2a90 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/ImagineCaster.php @@ -0,0 +1,39 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Imagine\Image\ImageInterface; +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Grégoire Pineau + * + * @internal since Symfony 7.3 + */ +final class ImagineCaster +{ + public static function castImage(ImageInterface $c, array $a, Stub $stub, bool $isNested): array + { + $imgData = $c->get('png'); + if (\strlen($imgData) > 1 * 1000 * 1000) { + $a += [ + Caster::PREFIX_VIRTUAL.'image' => new ConstStub($c->getSize()), + ]; + } else { + $a += [ + Caster::PREFIX_VIRTUAL.'image' => new ImgStub($imgData, 'image/png', $c->getSize()), + ]; + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/ImgStub.php b/vendor/symfony/var-dumper/Caster/ImgStub.php new file mode 100644 index 0000000..a16681f --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/ImgStub.php @@ -0,0 +1,26 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +/** + * @author Grégoire Pineau + */ +class ImgStub extends ConstStub +{ + public function __construct(string $data, string $contentType, string $size = '') + { + $this->value = ''; + $this->attr['img-data'] = $data; + $this->attr['img-size'] = $size; + $this->attr['content-type'] = $contentType; + } +} diff --git a/vendor/symfony/var-dumper/Caster/IntlCaster.php b/vendor/symfony/var-dumper/Caster/IntlCaster.php new file mode 100644 index 0000000..529c8f7 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/IntlCaster.php @@ -0,0 +1,174 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Nicolas Grekas + * @author Jan Schädlich + * + * @final + * + * @internal since Symfony 7.3 + */ +class IntlCaster +{ + public static function castMessageFormatter(\MessageFormatter $c, array $a, Stub $stub, bool $isNested): array + { + $a += [ + Caster::PREFIX_VIRTUAL.'locale' => $c->getLocale(), + Caster::PREFIX_VIRTUAL.'pattern' => $c->getPattern(), + ]; + + return self::castError($c, $a); + } + + public static function castNumberFormatter(\NumberFormatter $c, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + $a += [ + Caster::PREFIX_VIRTUAL.'locale' => $c->getLocale(), + Caster::PREFIX_VIRTUAL.'pattern' => $c->getPattern(), + ]; + + if ($filter & Caster::EXCLUDE_VERBOSE) { + $stub->cut += 3; + + return self::castError($c, $a); + } + + $a += [ + Caster::PREFIX_VIRTUAL.'attributes' => new EnumStub( + [ + 'PARSE_INT_ONLY' => $c->getAttribute(\NumberFormatter::PARSE_INT_ONLY), + 'GROUPING_USED' => $c->getAttribute(\NumberFormatter::GROUPING_USED), + 'DECIMAL_ALWAYS_SHOWN' => $c->getAttribute(\NumberFormatter::DECIMAL_ALWAYS_SHOWN), + 'MAX_INTEGER_DIGITS' => $c->getAttribute(\NumberFormatter::MAX_INTEGER_DIGITS), + 'MIN_INTEGER_DIGITS' => $c->getAttribute(\NumberFormatter::MIN_INTEGER_DIGITS), + 'INTEGER_DIGITS' => $c->getAttribute(\NumberFormatter::INTEGER_DIGITS), + 'MAX_FRACTION_DIGITS' => $c->getAttribute(\NumberFormatter::MAX_FRACTION_DIGITS), + 'MIN_FRACTION_DIGITS' => $c->getAttribute(\NumberFormatter::MIN_FRACTION_DIGITS), + 'FRACTION_DIGITS' => $c->getAttribute(\NumberFormatter::FRACTION_DIGITS), + 'MULTIPLIER' => $c->getAttribute(\NumberFormatter::MULTIPLIER), + 'GROUPING_SIZE' => $c->getAttribute(\NumberFormatter::GROUPING_SIZE), + 'ROUNDING_MODE' => $c->getAttribute(\NumberFormatter::ROUNDING_MODE), + 'ROUNDING_INCREMENT' => $c->getAttribute(\NumberFormatter::ROUNDING_INCREMENT), + 'FORMAT_WIDTH' => $c->getAttribute(\NumberFormatter::FORMAT_WIDTH), + 'PADDING_POSITION' => $c->getAttribute(\NumberFormatter::PADDING_POSITION), + 'SECONDARY_GROUPING_SIZE' => $c->getAttribute(\NumberFormatter::SECONDARY_GROUPING_SIZE), + 'SIGNIFICANT_DIGITS_USED' => $c->getAttribute(\NumberFormatter::SIGNIFICANT_DIGITS_USED), + 'MIN_SIGNIFICANT_DIGITS' => $c->getAttribute(\NumberFormatter::MIN_SIGNIFICANT_DIGITS), + 'MAX_SIGNIFICANT_DIGITS' => $c->getAttribute(\NumberFormatter::MAX_SIGNIFICANT_DIGITS), + 'LENIENT_PARSE' => $c->getAttribute(\NumberFormatter::LENIENT_PARSE), + ] + ), + Caster::PREFIX_VIRTUAL.'text_attributes' => new EnumStub( + [ + 'POSITIVE_PREFIX' => $c->getTextAttribute(\NumberFormatter::POSITIVE_PREFIX), + 'POSITIVE_SUFFIX' => $c->getTextAttribute(\NumberFormatter::POSITIVE_SUFFIX), + 'NEGATIVE_PREFIX' => $c->getTextAttribute(\NumberFormatter::NEGATIVE_PREFIX), + 'NEGATIVE_SUFFIX' => $c->getTextAttribute(\NumberFormatter::NEGATIVE_SUFFIX), + 'PADDING_CHARACTER' => $c->getTextAttribute(\NumberFormatter::PADDING_CHARACTER), + 'CURRENCY_CODE' => $c->getTextAttribute(\NumberFormatter::CURRENCY_CODE), + 'DEFAULT_RULESET' => $c->getTextAttribute(\NumberFormatter::DEFAULT_RULESET), + 'PUBLIC_RULESETS' => $c->getTextAttribute(\NumberFormatter::PUBLIC_RULESETS), + ] + ), + Caster::PREFIX_VIRTUAL.'symbols' => new EnumStub( + [ + 'DECIMAL_SEPARATOR_SYMBOL' => $c->getSymbol(\NumberFormatter::DECIMAL_SEPARATOR_SYMBOL), + 'GROUPING_SEPARATOR_SYMBOL' => $c->getSymbol(\NumberFormatter::GROUPING_SEPARATOR_SYMBOL), + 'PATTERN_SEPARATOR_SYMBOL' => $c->getSymbol(\NumberFormatter::PATTERN_SEPARATOR_SYMBOL), + 'PERCENT_SYMBOL' => $c->getSymbol(\NumberFormatter::PERCENT_SYMBOL), + 'ZERO_DIGIT_SYMBOL' => $c->getSymbol(\NumberFormatter::ZERO_DIGIT_SYMBOL), + 'DIGIT_SYMBOL' => $c->getSymbol(\NumberFormatter::DIGIT_SYMBOL), + 'MINUS_SIGN_SYMBOL' => $c->getSymbol(\NumberFormatter::MINUS_SIGN_SYMBOL), + 'PLUS_SIGN_SYMBOL' => $c->getSymbol(\NumberFormatter::PLUS_SIGN_SYMBOL), + 'CURRENCY_SYMBOL' => $c->getSymbol(\NumberFormatter::CURRENCY_SYMBOL), + 'INTL_CURRENCY_SYMBOL' => $c->getSymbol(\NumberFormatter::INTL_CURRENCY_SYMBOL), + 'MONETARY_SEPARATOR_SYMBOL' => $c->getSymbol(\NumberFormatter::MONETARY_SEPARATOR_SYMBOL), + 'EXPONENTIAL_SYMBOL' => $c->getSymbol(\NumberFormatter::EXPONENTIAL_SYMBOL), + 'PERMILL_SYMBOL' => $c->getSymbol(\NumberFormatter::PERMILL_SYMBOL), + 'PAD_ESCAPE_SYMBOL' => $c->getSymbol(\NumberFormatter::PAD_ESCAPE_SYMBOL), + 'INFINITY_SYMBOL' => $c->getSymbol(\NumberFormatter::INFINITY_SYMBOL), + 'NAN_SYMBOL' => $c->getSymbol(\NumberFormatter::NAN_SYMBOL), + 'SIGNIFICANT_DIGIT_SYMBOL' => $c->getSymbol(\NumberFormatter::SIGNIFICANT_DIGIT_SYMBOL), + 'MONETARY_GROUPING_SEPARATOR_SYMBOL' => $c->getSymbol(\NumberFormatter::MONETARY_GROUPING_SEPARATOR_SYMBOL), + ] + ), + ]; + + return self::castError($c, $a); + } + + public static function castIntlTimeZone(\IntlTimeZone $c, array $a, Stub $stub, bool $isNested): array + { + $a += [ + Caster::PREFIX_VIRTUAL.'display_name' => $c->getDisplayName(), + Caster::PREFIX_VIRTUAL.'id' => $c->getID(), + Caster::PREFIX_VIRTUAL.'raw_offset' => $c->getRawOffset(), + ]; + + if ($c->useDaylightTime()) { + $a += [ + Caster::PREFIX_VIRTUAL.'dst_savings' => $c->getDSTSavings(), + ]; + } + + return self::castError($c, $a); + } + + public static function castIntlCalendar(\IntlCalendar $c, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + $a += [ + Caster::PREFIX_VIRTUAL.'type' => $c->getType(), + Caster::PREFIX_VIRTUAL.'first_day_of_week' => $c->getFirstDayOfWeek(), + Caster::PREFIX_VIRTUAL.'minimal_days_in_first_week' => $c->getMinimalDaysInFirstWeek(), + Caster::PREFIX_VIRTUAL.'repeated_wall_time_option' => $c->getRepeatedWallTimeOption(), + Caster::PREFIX_VIRTUAL.'skipped_wall_time_option' => $c->getSkippedWallTimeOption(), + Caster::PREFIX_VIRTUAL.'time' => $c->getTime(), + Caster::PREFIX_VIRTUAL.'in_daylight_time' => $c->inDaylightTime(), + Caster::PREFIX_VIRTUAL.'is_lenient' => $c->isLenient(), + Caster::PREFIX_VIRTUAL.'time_zone' => ($filter & Caster::EXCLUDE_VERBOSE) ? new CutStub($c->getTimeZone()) : $c->getTimeZone(), + ]; + + return self::castError($c, $a); + } + + public static function castIntlDateFormatter(\IntlDateFormatter $c, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + $a += [ + Caster::PREFIX_VIRTUAL.'locale' => $c->getLocale(), + Caster::PREFIX_VIRTUAL.'pattern' => $c->getPattern(), + Caster::PREFIX_VIRTUAL.'calendar' => $c->getCalendar(), + Caster::PREFIX_VIRTUAL.'time_zone_id' => $c->getTimeZoneId(), + Caster::PREFIX_VIRTUAL.'time_type' => $c->getTimeType(), + Caster::PREFIX_VIRTUAL.'date_type' => $c->getDateType(), + Caster::PREFIX_VIRTUAL.'calendar_object' => ($filter & Caster::EXCLUDE_VERBOSE) ? new CutStub($c->getCalendarObject()) : $c->getCalendarObject(), + Caster::PREFIX_VIRTUAL.'time_zone' => ($filter & Caster::EXCLUDE_VERBOSE) ? new CutStub($c->getTimeZone()) : $c->getTimeZone(), + ]; + + return self::castError($c, $a); + } + + private static function castError(object $c, array $a): array + { + if ($errorCode = $c->getErrorCode()) { + $a += [ + Caster::PREFIX_VIRTUAL.'error_code' => $errorCode, + Caster::PREFIX_VIRTUAL.'error_message' => $c->getErrorMessage(), + ]; + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/LinkStub.php b/vendor/symfony/var-dumper/Caster/LinkStub.php new file mode 100644 index 0000000..3acd4fd --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/LinkStub.php @@ -0,0 +1,105 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +/** + * Represents a file or a URL. + * + * @author Nicolas Grekas + */ +class LinkStub extends ConstStub +{ + public bool $inVendor = false; + + private static array $vendorRoots; + private static array $composerRoots = []; + + public function __construct(string $label, int $line = 0, ?string $href = null) + { + $this->value = $label; + + if (!\is_string($href ??= $label)) { + return; + } + if (str_starts_with($href, 'file://')) { + if ($href === $label) { + $label = substr($label, 7); + } + $href = substr($href, 7); + } elseif (str_contains($href, '://')) { + $this->attr['href'] = $href; + + return; + } + if (!is_file($href)) { + return; + } + if ($line) { + $this->attr['line'] = $line; + } + if ($label !== $this->attr['file'] = realpath($href) ?: $href) { + return; + } + if ($composerRoot = $this->getComposerRoot($href, $this->inVendor)) { + $this->attr['ellipsis'] = \strlen($href) - \strlen($composerRoot) + 1; + $this->attr['ellipsis-type'] = 'path'; + $this->attr['ellipsis-tail'] = 1 + ($this->inVendor ? 2 + \strlen(implode('', \array_slice(explode(\DIRECTORY_SEPARATOR, substr($href, 1 - $this->attr['ellipsis'])), 0, 2))) : 0); + } elseif (3 < \count($ellipsis = explode(\DIRECTORY_SEPARATOR, $href))) { + $this->attr['ellipsis'] = 2 + \strlen(implode('', \array_slice($ellipsis, -2))); + $this->attr['ellipsis-type'] = 'path'; + $this->attr['ellipsis-tail'] = 1; + } + } + + private function getComposerRoot(string $file, bool &$inVendor): string|false + { + if (!isset(self::$vendorRoots)) { + self::$vendorRoots = []; + + foreach (get_declared_classes() as $class) { + if ('C' === $class[0] && str_starts_with($class, 'ComposerAutoloaderInit')) { + $r = new \ReflectionClass($class); + $v = \dirname($r->getFileName(), 2); + if (is_file($v.'/composer/installed.json')) { + self::$vendorRoots[] = $v.\DIRECTORY_SEPARATOR; + } + } + } + } + $inVendor = false; + + if (isset(self::$composerRoots[$dir = \dirname($file)])) { + return self::$composerRoots[$dir]; + } + + foreach (self::$vendorRoots as $root) { + if ($inVendor = str_starts_with($file, $root)) { + return $root; + } + } + + $parent = $dir; + while (!@is_file($parent.'/composer.json')) { + if (!@file_exists($parent)) { + // open_basedir restriction in effect + break; + } + if ($parent === \dirname($parent)) { + return self::$composerRoots[$dir] = false; + } + + $parent = \dirname($parent); + } + + return self::$composerRoots[$dir] = $parent.\DIRECTORY_SEPARATOR; + } +} diff --git a/vendor/symfony/var-dumper/Caster/MemcachedCaster.php b/vendor/symfony/var-dumper/Caster/MemcachedCaster.php new file mode 100644 index 0000000..4e4f611 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/MemcachedCaster.php @@ -0,0 +1,83 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Jan Schädlich + * + * @final + * + * @internal since Symfony 7.3 + */ +class MemcachedCaster +{ + private static array $optionConstants; + private static array $defaultOptions; + + public static function castMemcached(\Memcached $c, array $a, Stub $stub, bool $isNested): array + { + $a += [ + Caster::PREFIX_VIRTUAL.'servers' => $c->getServerList(), + Caster::PREFIX_VIRTUAL.'options' => new EnumStub( + self::getNonDefaultOptions($c) + ), + ]; + + return $a; + } + + private static function getNonDefaultOptions(\Memcached $c): array + { + self::$defaultOptions ??= self::discoverDefaultOptions(); + self::$optionConstants ??= self::getOptionConstants(); + + $nonDefaultOptions = []; + foreach (self::$optionConstants as $constantKey => $value) { + if (self::$defaultOptions[$constantKey] !== $option = $c->getOption($value)) { + $nonDefaultOptions[$constantKey] = $option; + } + } + + return $nonDefaultOptions; + } + + private static function discoverDefaultOptions(): array + { + $defaultMemcached = new \Memcached(); + $defaultMemcached->addServer('127.0.0.1', 11211); + + $defaultOptions = []; + self::$optionConstants ??= self::getOptionConstants(); + + foreach (self::$optionConstants as $constantKey => $value) { + $defaultOptions[$constantKey] = $defaultMemcached->getOption($value); + } + + return $defaultOptions; + } + + private static function getOptionConstants(): array + { + $reflectedMemcached = new \ReflectionClass(\Memcached::class); + + $optionConstants = []; + foreach ($reflectedMemcached->getConstants() as $constantKey => $value) { + if (str_starts_with($constantKey, 'OPT_')) { + $optionConstants[$constantKey] = $value; + } + } + + return $optionConstants; + } +} diff --git a/vendor/symfony/var-dumper/Caster/MysqliCaster.php b/vendor/symfony/var-dumper/Caster/MysqliCaster.php new file mode 100644 index 0000000..bfe6f08 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/MysqliCaster.php @@ -0,0 +1,33 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Nicolas Grekas + * + * @internal + */ +final class MysqliCaster +{ + public static function castMysqliDriver(\mysqli_driver $c, array $a, Stub $stub, bool $isNested): array + { + foreach ($a as $k => $v) { + if (isset($c->$k)) { + $a[$k] = $c->$k; + } + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/OpenSSLCaster.php b/vendor/symfony/var-dumper/Caster/OpenSSLCaster.php new file mode 100644 index 0000000..4c311ac --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/OpenSSLCaster.php @@ -0,0 +1,69 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Nicolas Grekas + * @author Alexandre Daubois + * + * @internal + */ +final class OpenSSLCaster +{ + public static function castOpensslX509(\OpenSSLCertificate $h, array $a, Stub $stub, bool $isNested): array + { + $stub->cut = -1; + $info = openssl_x509_parse($h, false); + + $pin = openssl_pkey_get_public($h); + $pin = openssl_pkey_get_details($pin)['key']; + $pin = \array_slice(explode("\n", $pin), 1, -2); + $pin = base64_decode(implode('', $pin)); + $pin = base64_encode(hash('sha256', $pin, true)); + + $a += [ + Caster::PREFIX_VIRTUAL.'subject' => new EnumStub(array_intersect_key($info['subject'], ['organizationName' => true, 'commonName' => true])), + Caster::PREFIX_VIRTUAL.'issuer' => new EnumStub(array_intersect_key($info['issuer'], ['organizationName' => true, 'commonName' => true])), + Caster::PREFIX_VIRTUAL.'expiry' => new ConstStub(date(\DateTimeInterface::ISO8601, $info['validTo_time_t']), $info['validTo_time_t']), + Caster::PREFIX_VIRTUAL.'fingerprint' => new EnumStub([ + 'md5' => new ConstStub(wordwrap(strtoupper(openssl_x509_fingerprint($h, 'md5')), 2, ':', true)), + 'sha1' => new ConstStub(wordwrap(strtoupper(openssl_x509_fingerprint($h, 'sha1')), 2, ':', true)), + 'sha256' => new ConstStub(wordwrap(strtoupper(openssl_x509_fingerprint($h, 'sha256')), 2, ':', true)), + 'pin-sha256' => new ConstStub($pin), + ]), + ]; + + return $a; + } + + public static function castOpensslAsymmetricKey(\OpenSSLAsymmetricKey $key, array $a, Stub $stub, bool $isNested): array + { + foreach (openssl_pkey_get_details($key) as $k => $v) { + $a[Caster::PREFIX_VIRTUAL.$k] = $v; + } + + unset($a[Caster::PREFIX_VIRTUAL.'rsa']); // binary data + + return $a; + } + + public static function castOpensslCsr(\OpenSSLCertificateSigningRequest $csr, array $a, Stub $stub, bool $isNested): array + { + foreach (openssl_csr_get_subject($csr, false) as $k => $v) { + $a[Caster::PREFIX_VIRTUAL.$k] = $v; + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/PdoCaster.php b/vendor/symfony/var-dumper/Caster/PdoCaster.php new file mode 100644 index 0000000..697e412 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/PdoCaster.php @@ -0,0 +1,124 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts PDO related classes to array representation. + * + * @author Nicolas Grekas + * + * @final + * + * @internal since Symfony 7.3 + */ +class PdoCaster +{ + private const PDO_ATTRIBUTES = [ + 'CASE' => [ + \PDO::CASE_LOWER => 'LOWER', + \PDO::CASE_NATURAL => 'NATURAL', + \PDO::CASE_UPPER => 'UPPER', + ], + 'ERRMODE' => [ + \PDO::ERRMODE_SILENT => 'SILENT', + \PDO::ERRMODE_WARNING => 'WARNING', + \PDO::ERRMODE_EXCEPTION => 'EXCEPTION', + ], + 'TIMEOUT', + 'PREFETCH', + 'AUTOCOMMIT', + 'PERSISTENT', + 'DRIVER_NAME', + 'SERVER_INFO', + 'ORACLE_NULLS' => [ + \PDO::NULL_NATURAL => 'NATURAL', + \PDO::NULL_EMPTY_STRING => 'EMPTY_STRING', + \PDO::NULL_TO_STRING => 'TO_STRING', + ], + 'CLIENT_VERSION', + 'SERVER_VERSION', + 'STATEMENT_CLASS', + 'EMULATE_PREPARES', + 'CONNECTION_STATUS', + 'STRINGIFY_FETCHES', + 'DEFAULT_FETCH_MODE' => [ + \PDO::FETCH_ASSOC => 'ASSOC', + \PDO::FETCH_BOTH => 'BOTH', + \PDO::FETCH_LAZY => 'LAZY', + \PDO::FETCH_NUM => 'NUM', + \PDO::FETCH_OBJ => 'OBJ', + ], + ]; + + public static function castPdo(\PDO $c, array $a, Stub $stub, bool $isNested): array + { + $attr = []; + $errmode = $c->getAttribute(\PDO::ATTR_ERRMODE); + $c->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); + + foreach (self::PDO_ATTRIBUTES as $k => $v) { + if (!isset($k[0])) { + $k = $v; + $v = []; + } + + try { + $attr[$k] = 'ERRMODE' === $k ? $errmode : $c->getAttribute(\constant('PDO::ATTR_'.$k)); + if ($v && isset($v[$attr[$k]])) { + $attr[$k] = new ConstStub($v[$attr[$k]], $attr[$k]); + } + } catch (\Exception) { + } + } + if (isset($attr[$k = 'STATEMENT_CLASS'][1])) { + if ($attr[$k][1]) { + $attr[$k][1] = new ArgsStub($attr[$k][1], '__construct', $attr[$k][0]); + } + $attr[$k][0] = new ClassStub($attr[$k][0]); + } + + $prefix = Caster::PREFIX_VIRTUAL; + $a += [ + $prefix.'inTransaction' => method_exists($c, 'inTransaction'), + $prefix.'errorInfo' => $c->errorInfo(), + $prefix.'attributes' => new EnumStub($attr), + ]; + + if ($a[$prefix.'inTransaction']) { + $a[$prefix.'inTransaction'] = $c->inTransaction(); + } else { + unset($a[$prefix.'inTransaction']); + } + + if (!isset($a[$prefix.'errorInfo'][1], $a[$prefix.'errorInfo'][2])) { + unset($a[$prefix.'errorInfo']); + } + + $c->setAttribute(\PDO::ATTR_ERRMODE, $errmode); + + return $a; + } + + public static function castPdoStatement(\PDOStatement $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + $a[$prefix.'errorInfo'] = $c->errorInfo(); + + if (!isset($a[$prefix.'errorInfo'][1], $a[$prefix.'errorInfo'][2])) { + unset($a[$prefix.'errorInfo']); + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/PgSqlCaster.php b/vendor/symfony/var-dumper/Caster/PgSqlCaster.php new file mode 100644 index 0000000..3d6cb7d --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/PgSqlCaster.php @@ -0,0 +1,158 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts pgsql resources to array representation. + * + * @author Nicolas Grekas + * + * @final + * + * @internal since Symfony 7.3 + */ +class PgSqlCaster +{ + private const PARAM_CODES = [ + 'server_encoding', + 'client_encoding', + 'is_superuser', + 'session_authorization', + 'DateStyle', + 'TimeZone', + 'IntervalStyle', + 'integer_datetimes', + 'application_name', + 'standard_conforming_strings', + ]; + + private const TRANSACTION_STATUS = [ + \PGSQL_TRANSACTION_IDLE => 'PGSQL_TRANSACTION_IDLE', + \PGSQL_TRANSACTION_ACTIVE => 'PGSQL_TRANSACTION_ACTIVE', + \PGSQL_TRANSACTION_INTRANS => 'PGSQL_TRANSACTION_INTRANS', + \PGSQL_TRANSACTION_INERROR => 'PGSQL_TRANSACTION_INERROR', + \PGSQL_TRANSACTION_UNKNOWN => 'PGSQL_TRANSACTION_UNKNOWN', + ]; + + private const RESULT_STATUS = [ + \PGSQL_EMPTY_QUERY => 'PGSQL_EMPTY_QUERY', + \PGSQL_COMMAND_OK => 'PGSQL_COMMAND_OK', + \PGSQL_TUPLES_OK => 'PGSQL_TUPLES_OK', + \PGSQL_COPY_OUT => 'PGSQL_COPY_OUT', + \PGSQL_COPY_IN => 'PGSQL_COPY_IN', + \PGSQL_BAD_RESPONSE => 'PGSQL_BAD_RESPONSE', + \PGSQL_NONFATAL_ERROR => 'PGSQL_NONFATAL_ERROR', + \PGSQL_FATAL_ERROR => 'PGSQL_FATAL_ERROR', + ]; + + private const DIAG_CODES = [ + 'severity' => \PGSQL_DIAG_SEVERITY, + 'sqlstate' => \PGSQL_DIAG_SQLSTATE, + 'message' => \PGSQL_DIAG_MESSAGE_PRIMARY, + 'detail' => \PGSQL_DIAG_MESSAGE_DETAIL, + 'hint' => \PGSQL_DIAG_MESSAGE_HINT, + 'statement position' => \PGSQL_DIAG_STATEMENT_POSITION, + 'internal position' => \PGSQL_DIAG_INTERNAL_POSITION, + 'internal query' => \PGSQL_DIAG_INTERNAL_QUERY, + 'context' => \PGSQL_DIAG_CONTEXT, + 'file' => \PGSQL_DIAG_SOURCE_FILE, + 'line' => \PGSQL_DIAG_SOURCE_LINE, + 'function' => \PGSQL_DIAG_SOURCE_FUNCTION, + ]; + + public static function castLargeObject($lo, array $a, Stub $stub, bool $isNested): array + { + $a['seek position'] = pg_lo_tell($lo); + + return $a; + } + + public static function castLink($link, array $a, Stub $stub, bool $isNested): array + { + $a['status'] = pg_connection_status($link); + $a['status'] = new ConstStub(\PGSQL_CONNECTION_OK === $a['status'] ? 'PGSQL_CONNECTION_OK' : 'PGSQL_CONNECTION_BAD', $a['status']); + $a['busy'] = pg_connection_busy($link); + + $a['transaction'] = pg_transaction_status($link); + if (isset(self::TRANSACTION_STATUS[$a['transaction']])) { + $a['transaction'] = new ConstStub(self::TRANSACTION_STATUS[$a['transaction']], $a['transaction']); + } + + $a['pid'] = pg_get_pid($link); + $a['last error'] = pg_last_error($link); + $a['last notice'] = pg_last_notice($link); + $a['host'] = pg_host($link); + $a['port'] = pg_port($link); + $a['dbname'] = pg_dbname($link); + $a['options'] = pg_options($link); + $a['version'] = pg_version($link); + + foreach (self::PARAM_CODES as $v) { + if (false !== $s = pg_parameter_status($link, $v)) { + $a['param'][$v] = $s; + } + } + + $a['param']['client_encoding'] = pg_client_encoding($link); + $a['param'] = new EnumStub($a['param']); + + return $a; + } + + public static function castResult($result, array $a, Stub $stub, bool $isNested): array + { + $a['num rows'] = pg_num_rows($result); + $a['status'] = pg_result_status($result); + if (isset(self::RESULT_STATUS[$a['status']])) { + $a['status'] = new ConstStub(self::RESULT_STATUS[$a['status']], $a['status']); + } + $a['command-completion tag'] = pg_result_status($result, \PGSQL_STATUS_STRING); + + if (-1 === $a['num rows']) { + foreach (self::DIAG_CODES as $k => $v) { + $a['error'][$k] = pg_result_error_field($result, $v); + } + } + + $a['affected rows'] = pg_affected_rows($result); + $a['last OID'] = pg_last_oid($result); + + $fields = pg_num_fields($result); + + for ($i = 0; $i < $fields; ++$i) { + $field = [ + 'name' => pg_field_name($result, $i), + 'table' => \sprintf('%s (OID: %s)', pg_field_table($result, $i), pg_field_table($result, $i, true)), + 'type' => \sprintf('%s (OID: %s)', pg_field_type($result, $i), pg_field_type_oid($result, $i)), + 'nullable' => (bool) (\PHP_VERSION_ID >= 80300 ? pg_field_is_null($result, null, $i) : pg_field_is_null($result, $i)), + 'storage' => pg_field_size($result, $i).' bytes', + 'display' => (\PHP_VERSION_ID >= 80300 ? pg_field_prtlen($result, null, $i) : pg_field_prtlen($result, $i)).' chars', + ]; + if (' (OID: )' === $field['table']) { + $field['table'] = null; + } + if ('-1 bytes' === $field['storage']) { + $field['storage'] = 'variable size'; + } elseif ('1 bytes' === $field['storage']) { + $field['storage'] = '1 byte'; + } + if ('1 chars' === $field['display']) { + $field['display'] = '1 char'; + } + $a['fields'][] = new EnumStub($field); + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/ProxyManagerCaster.php b/vendor/symfony/var-dumper/Caster/ProxyManagerCaster.php new file mode 100644 index 0000000..0d954f4 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/ProxyManagerCaster.php @@ -0,0 +1,35 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use ProxyManager\Proxy\ProxyInterface; +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Nicolas Grekas + * + * @final + * + * @internal since Symfony 7.3 + */ +class ProxyManagerCaster +{ + public static function castProxy(ProxyInterface $c, array $a, Stub $stub, bool $isNested): array + { + if ($parent = get_parent_class($c)) { + $stub->class .= ' - '.$parent; + } + $stub->class .= '@proxy'; + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/RdKafkaCaster.php b/vendor/symfony/var-dumper/Caster/RdKafkaCaster.php new file mode 100644 index 0000000..bfadef2 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/RdKafkaCaster.php @@ -0,0 +1,188 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use RdKafka\Conf; +use RdKafka\Exception as RdKafkaException; +use RdKafka\KafkaConsumer; +use RdKafka\Message; +use RdKafka\Metadata\Broker as BrokerMetadata; +use RdKafka\Metadata\Collection as CollectionMetadata; +use RdKafka\Metadata\Partition as PartitionMetadata; +use RdKafka\Metadata\Topic as TopicMetadata; +use RdKafka\Topic; +use RdKafka\TopicConf; +use RdKafka\TopicPartition; +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts RdKafka related classes to array representation. + * + * @author Romain Neutron + * + * @internal since Symfony 7.3 + */ +class RdKafkaCaster +{ + public static function castKafkaConsumer(KafkaConsumer $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + try { + $assignment = $c->getAssignment(); + } catch (RdKafkaException) { + $assignment = []; + } + + $a += [ + $prefix.'subscription' => $c->getSubscription(), + $prefix.'assignment' => $assignment, + ]; + + $a += self::extractMetadata($c); + + return $a; + } + + public static function castTopic(Topic $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + $a += [ + $prefix.'name' => $c->getName(), + ]; + + return $a; + } + + public static function castTopicPartition(TopicPartition $c, array $a): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + $a += [ + $prefix.'offset' => $c->getOffset(), + $prefix.'partition' => $c->getPartition(), + $prefix.'topic' => $c->getTopic(), + ]; + + return $a; + } + + public static function castMessage(Message $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + $a += [ + $prefix.'errstr' => $c->errstr(), + ]; + + return $a; + } + + public static function castConf(Conf $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + foreach ($c->dump() as $key => $value) { + $a[$prefix.$key] = $value; + } + + return $a; + } + + public static function castTopicConf(TopicConf $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + foreach ($c->dump() as $key => $value) { + $a[$prefix.$key] = $value; + } + + return $a; + } + + public static function castRdKafka(\RdKafka $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + $a += [ + $prefix.'out_q_len' => $c->getOutQLen(), + ]; + + $a += self::extractMetadata($c); + + return $a; + } + + public static function castCollectionMetadata(CollectionMetadata $c, array $a, Stub $stub, bool $isNested): array + { + $a += iterator_to_array($c); + + return $a; + } + + public static function castTopicMetadata(TopicMetadata $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + $a += [ + $prefix.'name' => $c->getTopic(), + $prefix.'partitions' => $c->getPartitions(), + ]; + + return $a; + } + + public static function castPartitionMetadata(PartitionMetadata $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + $a += [ + $prefix.'id' => $c->getId(), + $prefix.'err' => $c->getErr(), + $prefix.'leader' => $c->getLeader(), + ]; + + return $a; + } + + public static function castBrokerMetadata(BrokerMetadata $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + $a += [ + $prefix.'id' => $c->getId(), + $prefix.'host' => $c->getHost(), + $prefix.'port' => $c->getPort(), + ]; + + return $a; + } + + private static function extractMetadata(KafkaConsumer|\RdKafka $c): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + try { + $m = $c->getMetadata(true, null, 500); + } catch (RdKafkaException) { + return []; + } + + return [ + $prefix.'orig_broker_id' => $m->getOrigBrokerId(), + $prefix.'orig_broker_name' => $m->getOrigBrokerName(), + $prefix.'brokers' => $m->getBrokers(), + $prefix.'topics' => $m->getTopics(), + ]; + } +} diff --git a/vendor/symfony/var-dumper/Caster/RedisCaster.php b/vendor/symfony/var-dumper/Caster/RedisCaster.php new file mode 100644 index 0000000..a1ed95d --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/RedisCaster.php @@ -0,0 +1,152 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Relay\Relay; +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts Redis class from ext-redis to array representation. + * + * @author Nicolas Grekas + * + * @final + * + * @internal since Symfony 7.3 + */ +class RedisCaster +{ + private const SERIALIZERS = [ + 0 => 'NONE', // Redis::SERIALIZER_NONE + 1 => 'PHP', // Redis::SERIALIZER_PHP + 2 => 'IGBINARY', // Optional Redis::SERIALIZER_IGBINARY + ]; + + private const MODES = [ + 0 => 'ATOMIC', // Redis::ATOMIC + 1 => 'MULTI', // Redis::MULTI + 2 => 'PIPELINE', // Redis::PIPELINE + ]; + + private const COMPRESSION_MODES = [ + 0 => 'NONE', // Redis::COMPRESSION_NONE + 1 => 'LZF', // Redis::COMPRESSION_LZF + ]; + + private const FAILOVER_OPTIONS = [ + \RedisCluster::FAILOVER_NONE => 'NONE', + \RedisCluster::FAILOVER_ERROR => 'ERROR', + \RedisCluster::FAILOVER_DISTRIBUTE => 'DISTRIBUTE', + \RedisCluster::FAILOVER_DISTRIBUTE_SLAVES => 'DISTRIBUTE_SLAVES', + ]; + + public static function castRedis(\Redis|Relay $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + if (!$connected = $c->isConnected()) { + return $a + [ + $prefix.'isConnected' => $connected, + ]; + } + + $mode = $c->getMode(); + + return $a + [ + $prefix.'isConnected' => $connected, + $prefix.'host' => $c->getHost(), + $prefix.'port' => $c->getPort(), + $prefix.'auth' => $c->getAuth(), + $prefix.'mode' => isset(self::MODES[$mode]) ? new ConstStub(self::MODES[$mode], $mode) : $mode, + $prefix.'dbNum' => $c->getDbNum(), + $prefix.'timeout' => $c->getTimeout(), + $prefix.'lastError' => $c->getLastError(), + $prefix.'persistentId' => $c->getPersistentID(), + $prefix.'options' => self::getRedisOptions($c), + ]; + } + + public static function castRedisArray(\RedisArray $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + return $a + [ + $prefix.'hosts' => $c->_hosts(), + $prefix.'function' => ClassStub::wrapCallable($c->_function()), + $prefix.'lastError' => $c->getLastError(), + $prefix.'options' => self::getRedisOptions($c), + ]; + } + + public static function castRedisCluster(\RedisCluster $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + $failover = $c->getOption(\RedisCluster::OPT_SLAVE_FAILOVER); + + $a += [ + $prefix.'_masters' => $c->_masters(), + $prefix.'_redir' => $c->_redir(), + $prefix.'mode' => new ConstStub($c->getMode() ? 'MULTI' : 'ATOMIC', $c->getMode()), + $prefix.'lastError' => $c->getLastError(), + $prefix.'options' => self::getRedisOptions($c, [ + 'SLAVE_FAILOVER' => isset(self::FAILOVER_OPTIONS[$failover]) ? new ConstStub(self::FAILOVER_OPTIONS[$failover], $failover) : $failover, + ]), + ]; + + return $a; + } + + private static function getRedisOptions(\Redis|Relay|\RedisArray|\RedisCluster $redis, array $options = []): EnumStub + { + $serializer = $redis->getOption(\defined('Redis::OPT_SERIALIZER') ? \Redis::OPT_SERIALIZER : 1); + if (\is_array($serializer)) { + foreach ($serializer as &$v) { + if (isset(self::SERIALIZERS[$v])) { + $v = new ConstStub(self::SERIALIZERS[$v], $v); + } + } + } elseif (isset(self::SERIALIZERS[$serializer])) { + $serializer = new ConstStub(self::SERIALIZERS[$serializer], $serializer); + } + + $compression = \defined('Redis::OPT_COMPRESSION') ? $redis->getOption(\Redis::OPT_COMPRESSION) : 0; + if (\is_array($compression)) { + foreach ($compression as &$v) { + if (isset(self::COMPRESSION_MODES[$v])) { + $v = new ConstStub(self::COMPRESSION_MODES[$v], $v); + } + } + } elseif (isset(self::COMPRESSION_MODES[$compression])) { + $compression = new ConstStub(self::COMPRESSION_MODES[$compression], $compression); + } + + $retry = \defined('Redis::OPT_SCAN') ? $redis->getOption(\Redis::OPT_SCAN) : 0; + if (\is_array($retry)) { + foreach ($retry as &$v) { + $v = new ConstStub($v ? 'RETRY' : 'NORETRY', $v); + } + } else { + $retry = new ConstStub($retry ? 'RETRY' : 'NORETRY', $retry); + } + + $options += [ + 'TCP_KEEPALIVE' => \defined('Redis::OPT_TCP_KEEPALIVE') ? $redis->getOption(\Redis::OPT_TCP_KEEPALIVE) : Relay::OPT_TCP_KEEPALIVE, + 'READ_TIMEOUT' => $redis->getOption(\defined('Redis::OPT_READ_TIMEOUT') ? \Redis::OPT_READ_TIMEOUT : Relay::OPT_READ_TIMEOUT), + 'COMPRESSION' => $compression, + 'SERIALIZER' => $serializer, + 'PREFIX' => $redis->getOption(\defined('Redis::OPT_PREFIX') ? \Redis::OPT_PREFIX : Relay::OPT_PREFIX), + 'SCAN' => $retry, + ]; + + return new EnumStub($options); + } +} diff --git a/vendor/symfony/var-dumper/Caster/ReflectionCaster.php b/vendor/symfony/var-dumper/Caster/ReflectionCaster.php new file mode 100644 index 0000000..e7310f4 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/ReflectionCaster.php @@ -0,0 +1,448 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts Reflector related classes to array representation. + * + * @author Nicolas Grekas + * + * @final + * + * @internal since Symfony 7.3 + */ +class ReflectionCaster +{ + public const UNSET_CLOSURE_FILE_INFO = ['Closure' => __CLASS__.'::unsetClosureFileInfo']; + + private const EXTRA_MAP = [ + 'docComment' => 'getDocComment', + 'extension' => 'getExtensionName', + 'isDisabled' => 'isDisabled', + 'isDeprecated' => 'isDeprecated', + 'isInternal' => 'isInternal', + 'isUserDefined' => 'isUserDefined', + 'isGenerator' => 'isGenerator', + 'isVariadic' => 'isVariadic', + ]; + + public static function castClosure(\Closure $c, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + $prefix = Caster::PREFIX_VIRTUAL; + $c = new \ReflectionFunction($c); + + $a = static::castFunctionAbstract($c, $a, $stub, $isNested, $filter); + + if (!$c->isAnonymous()) { + $stub->class = isset($a[$prefix.'class']) ? $a[$prefix.'class']->value.'::'.$c->name : $c->name; + unset($a[$prefix.'class']); + } + unset($a[$prefix.'extra']); + + $stub->class .= self::getSignature($a); + + if ($f = $c->getFileName()) { + $stub->attr['file'] = $f; + $stub->attr['line'] = $c->getStartLine(); + } + + unset($a[$prefix.'parameters']); + + if ($filter & Caster::EXCLUDE_VERBOSE) { + $stub->cut += ($c->getFileName() ? 2 : 0) + \count($a); + + return []; + } + + if ($f) { + $a[$prefix.'file'] = new LinkStub($f, $c->getStartLine()); + $a[$prefix.'line'] = $c->getStartLine().' to '.$c->getEndLine(); + } + + return $a; + } + + public static function unsetClosureFileInfo(\Closure $c, array $a): array + { + unset($a[Caster::PREFIX_VIRTUAL.'file'], $a[Caster::PREFIX_VIRTUAL.'line']); + + return $a; + } + + public static function castGenerator(\Generator $c, array $a, Stub $stub, bool $isNested): array + { + // Cannot create ReflectionGenerator based on a terminated Generator + try { + $reflectionGenerator = new \ReflectionGenerator($c); + + return self::castReflectionGenerator($reflectionGenerator, $a, $stub, $isNested); + } catch (\Exception) { + $a[Caster::PREFIX_VIRTUAL.'closed'] = true; + + return $a; + } + } + + public static function castType(\ReflectionType $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + if ($c instanceof \ReflectionNamedType) { + $a += [ + $prefix.'name' => $c->getName(), + $prefix.'allowsNull' => $c->allowsNull(), + $prefix.'isBuiltin' => $c->isBuiltin(), + ]; + } elseif ($c instanceof \ReflectionUnionType || $c instanceof \ReflectionIntersectionType) { + $a[$prefix.'allowsNull'] = $c->allowsNull(); + self::addMap($a, $c, [ + 'types' => 'getTypes', + ]); + } else { + $a[$prefix.'allowsNull'] = $c->allowsNull(); + } + + return $a; + } + + public static function castAttribute(\ReflectionAttribute $c, array $a, Stub $stub, bool $isNested): array + { + $map = [ + 'name' => 'getName', + 'arguments' => 'getArguments', + ]; + + if (\PHP_VERSION_ID >= 80400) { + unset($map['name']); + } + + self::addMap($a, $c, $map); + + return $a; + } + + public static function castReflectionGenerator(\ReflectionGenerator $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + if ($c->getThis()) { + $a[$prefix.'this'] = new CutStub($c->getThis()); + } + $function = $c->getFunction(); + $frame = [ + 'class' => $function->class ?? null, + 'type' => isset($function->class) ? ($function->isStatic() ? '::' : '->') : null, + 'function' => $function->name, + 'file' => $c->getExecutingFile(), + 'line' => $c->getExecutingLine(), + ]; + if ($trace = $c->getTrace(\DEBUG_BACKTRACE_IGNORE_ARGS)) { + $function = new \ReflectionGenerator($c->getExecutingGenerator()); + array_unshift($trace, [ + 'function' => 'yield', + 'file' => $function->getExecutingFile(), + 'line' => $function->getExecutingLine(), + ]); + $trace[] = $frame; + $a[$prefix.'trace'] = new TraceStub($trace, false, 0, -1, -1); + } else { + $function = new FrameStub($frame, false, true); + $function = ExceptionCaster::castFrameStub($function, [], $function, true); + $a[$prefix.'executing'] = $function[$prefix.'src']; + } + + $a[Caster::PREFIX_VIRTUAL.'closed'] = false; + + return $a; + } + + public static function castClass(\ReflectionClass $c, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + if ($n = \Reflection::getModifierNames($c->getModifiers())) { + $a[$prefix.'modifiers'] = implode(' ', $n); + } + + self::addMap($a, $c, [ + 'extends' => 'getParentClass', + 'implements' => 'getInterfaceNames', + 'constants' => 'getReflectionConstants', + ]); + + foreach ($c->getProperties() as $n) { + $a[$prefix.'properties'][$n->name] = $n; + } + + foreach ($c->getMethods() as $n) { + $a[$prefix.'methods'][$n->name] = $n; + } + + self::addAttributes($a, $c, $prefix); + + if (!($filter & Caster::EXCLUDE_VERBOSE) && !$isNested) { + self::addExtra($a, $c); + } + + return $a; + } + + public static function castFunctionAbstract(\ReflectionFunctionAbstract $c, array $a, Stub $stub, bool $isNested, int $filter = 0): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + self::addMap($a, $c, [ + 'returnsReference' => 'returnsReference', + 'returnType' => 'getReturnType', + 'class' => 'getClosureCalledClass', + 'this' => 'getClosureThis', + ]); + + if (isset($a[$prefix.'returnType'])) { + $v = $a[$prefix.'returnType']; + $v = $v instanceof \ReflectionNamedType ? $v->getName() : (string) $v; + $a[$prefix.'returnType'] = new ClassStub($a[$prefix.'returnType'] instanceof \ReflectionNamedType && $a[$prefix.'returnType']->allowsNull() && !\in_array($v, ['mixed', 'null'], true) ? '?'.$v : $v, [class_exists($v, false) || interface_exists($v, false) || trait_exists($v, false) ? $v : '', '']); + } + if (isset($a[$prefix.'class'])) { + $a[$prefix.'class'] = new ClassStub($a[$prefix.'class']); + } + if (isset($a[$prefix.'this'])) { + $a[$prefix.'this'] = new CutStub($a[$prefix.'this']); + } + + foreach ($c->getParameters() as $v) { + $k = '$'.$v->name; + if ($v->isVariadic()) { + $k = '...'.$k; + } + if ($v->isPassedByReference()) { + $k = '&'.$k; + } + $a[$prefix.'parameters'][$k] = $v; + } + if (isset($a[$prefix.'parameters'])) { + $a[$prefix.'parameters'] = new EnumStub($a[$prefix.'parameters']); + } + + self::addAttributes($a, $c, $prefix); + + if (!($filter & Caster::EXCLUDE_VERBOSE) && $v = $c->getStaticVariables()) { + foreach ($v as $k => &$v) { + if (\is_object($v)) { + $a[$prefix.'use']['$'.$k] = new CutStub($v); + } else { + $a[$prefix.'use']['$'.$k] = &$v; + } + } + unset($v); + $a[$prefix.'use'] = new EnumStub($a[$prefix.'use']); + } + + if (!($filter & Caster::EXCLUDE_VERBOSE) && !$isNested) { + self::addExtra($a, $c); + } + + return $a; + } + + public static function castClassConstant(\ReflectionClassConstant $c, array $a, Stub $stub, bool $isNested): array + { + $a[Caster::PREFIX_VIRTUAL.'modifiers'] = implode(' ', \Reflection::getModifierNames($c->getModifiers())); + $a[Caster::PREFIX_VIRTUAL.'value'] = $c->getValue(); + + self::addAttributes($a, $c); + + return $a; + } + + public static function castMethod(\ReflectionMethod $c, array $a, Stub $stub, bool $isNested): array + { + $a[Caster::PREFIX_VIRTUAL.'modifiers'] = implode(' ', \Reflection::getModifierNames($c->getModifiers())); + + return $a; + } + + public static function castParameter(\ReflectionParameter $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + + self::addMap($a, $c, [ + 'position' => 'getPosition', + 'isVariadic' => 'isVariadic', + 'byReference' => 'isPassedByReference', + 'allowsNull' => 'allowsNull', + ]); + + self::addAttributes($a, $c, $prefix); + + if ($v = $c->getType()) { + $a[$prefix.'typeHint'] = $v instanceof \ReflectionNamedType ? $v->getName() : (string) $v; + } + + if (isset($a[$prefix.'typeHint'])) { + $v = $a[$prefix.'typeHint']; + $a[$prefix.'typeHint'] = new ClassStub($v, [class_exists($v, false) || interface_exists($v, false) || trait_exists($v, false) ? $v : '', '']); + } else { + unset($a[$prefix.'allowsNull']); + } + + if ($c->isOptional()) { + try { + $a[$prefix.'default'] = $v = $c->getDefaultValue(); + if ($c->isDefaultValueConstant() && !\is_object($v)) { + $a[$prefix.'default'] = new ConstStub($c->getDefaultValueConstantName(), $v); + } + if (null === $v) { + unset($a[$prefix.'allowsNull']); + } + } catch (\ReflectionException) { + } + } + + return $a; + } + + public static function castProperty(\ReflectionProperty $c, array $a, Stub $stub, bool $isNested): array + { + $a[Caster::PREFIX_VIRTUAL.'modifiers'] = implode(' ', \Reflection::getModifierNames($c->getModifiers())); + + self::addAttributes($a, $c); + self::addExtra($a, $c); + + return $a; + } + + public static function castReference(\ReflectionReference $c, array $a, Stub $stub, bool $isNested): array + { + $a[Caster::PREFIX_VIRTUAL.'id'] = $c->getId(); + + return $a; + } + + public static function castExtension(\ReflectionExtension $c, array $a, Stub $stub, bool $isNested): array + { + self::addMap($a, $c, [ + 'version' => 'getVersion', + 'dependencies' => 'getDependencies', + 'iniEntries' => 'getIniEntries', + 'isPersistent' => 'isPersistent', + 'isTemporary' => 'isTemporary', + 'constants' => 'getConstants', + 'functions' => 'getFunctions', + 'classes' => 'getClasses', + ]); + + return $a; + } + + public static function castZendExtension(\ReflectionZendExtension $c, array $a, Stub $stub, bool $isNested): array + { + self::addMap($a, $c, [ + 'version' => 'getVersion', + 'author' => 'getAuthor', + 'copyright' => 'getCopyright', + 'url' => 'getURL', + ]); + + return $a; + } + + public static function getSignature(array $a): string + { + $prefix = Caster::PREFIX_VIRTUAL; + $signature = ''; + + if (isset($a[$prefix.'parameters'])) { + foreach ($a[$prefix.'parameters']->value as $k => $param) { + $signature .= ', '; + if ($type = $param->getType()) { + if (!$type instanceof \ReflectionNamedType) { + $signature .= $type.' '; + } else { + if ($param->allowsNull() && !\in_array($type->getName(), ['mixed', 'null'], true)) { + $signature .= '?'; + } + $signature .= substr(strrchr('\\'.$type->getName(), '\\'), 1).' '; + } + } + $signature .= $k; + + if (!$param->isDefaultValueAvailable()) { + continue; + } + $v = $param->getDefaultValue(); + $signature .= ' = '; + + if ($param->isDefaultValueConstant()) { + $signature .= substr(strrchr('\\'.$param->getDefaultValueConstantName(), '\\'), 1); + } elseif (null === $v) { + $signature .= 'null'; + } elseif (\is_array($v)) { + $signature .= $v ? '[…'.\count($v).']' : '[]'; + } elseif (\is_string($v)) { + $signature .= 10 > \strlen($v) && !str_contains($v, '\\') ? "'{$v}'" : "'…".\strlen($v)."'"; + } elseif (\is_bool($v)) { + $signature .= $v ? 'true' : 'false'; + } elseif (\is_object($v)) { + $signature .= 'new '.substr(strrchr('\\'.get_debug_type($v), '\\'), 1); + } else { + $signature .= $v; + } + } + } + $signature = (empty($a[$prefix.'returnsReference']) ? '' : '&').'('.substr($signature, 2).')'; + + if (isset($a[$prefix.'returnType'])) { + $signature .= ': '.substr(strrchr('\\'.$a[$prefix.'returnType'], '\\'), 1); + } + + return $signature; + } + + private static function addExtra(array &$a, \Reflector $c): void + { + $x = isset($a[Caster::PREFIX_VIRTUAL.'extra']) ? $a[Caster::PREFIX_VIRTUAL.'extra']->value : []; + + if (method_exists($c, 'getFileName') && $m = $c->getFileName()) { + $x['file'] = new LinkStub($m, $c->getStartLine()); + $x['line'] = $c->getStartLine().' to '.$c->getEndLine(); + } + + self::addMap($x, $c, self::EXTRA_MAP, ''); + + if ($x) { + $a[Caster::PREFIX_VIRTUAL.'extra'] = new EnumStub($x); + } + } + + private static function addMap(array &$a, object $c, array $map, string $prefix = Caster::PREFIX_VIRTUAL): void + { + foreach ($map as $k => $m) { + if ('isDisabled' === $k) { + continue; + } + + if (method_exists($c, $m) && false !== ($m = $c->$m()) && null !== $m) { + $a[$prefix.$k] = $m instanceof \Reflector ? $m->name : $m; + } + } + } + + private static function addAttributes(array &$a, \Reflector $c, string $prefix = Caster::PREFIX_VIRTUAL): void + { + foreach ($c->getAttributes() as $n) { + $a[$prefix.'attributes'][] = $n; + } + } +} diff --git a/vendor/symfony/var-dumper/Caster/ResourceCaster.php b/vendor/symfony/var-dumper/Caster/ResourceCaster.php new file mode 100644 index 0000000..47c2efc --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/ResourceCaster.php @@ -0,0 +1,92 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts common resource types to array representation. + * + * @author Nicolas Grekas + * + * @final + * + * @internal since Symfony 7.3 + */ +class ResourceCaster +{ + /** + * @deprecated since Symfony 7.3 + */ + public static function castCurl(\CurlHandle $h, array $a, Stub $stub, bool $isNested): array + { + trigger_deprecation('symfony/var-dumper', '7.3', 'The "%s()" method is deprecated without replacement.', __METHOD__); + + return CurlCaster::castCurl($h, $a, $stub, $isNested); + } + + /** + * @param resource|\Dba\Connection $dba + */ + public static function castDba(mixed $dba, array $a, Stub $stub, bool $isNested): array + { + if (\PHP_VERSION_ID < 80402 && !\is_resource($dba)) { + // @see https://github.com/php/php-src/issues/16990 + return $a; + } + + $list = dba_list(); + $a['file'] = $list[(int) $dba]; + + return $a; + } + + public static function castProcess($process, array $a, Stub $stub, bool $isNested): array + { + return proc_get_status($process); + } + + public static function castStream($stream, array $a, Stub $stub, bool $isNested): array + { + $a = stream_get_meta_data($stream) + static::castStreamContext($stream, $a, $stub, $isNested); + if ($a['uri'] ?? false) { + $a['uri'] = new LinkStub($a['uri']); + } + + return $a; + } + + public static function castStreamContext($stream, array $a, Stub $stub, bool $isNested): array + { + return @stream_context_get_params($stream) ?: $a; + } + + /** + * @deprecated since Symfony 7.3 + */ + public static function castGd(\GdImage $gd, array $a, Stub $stub, bool $isNested): array + { + trigger_deprecation('symfony/var-dumper', '7.3', 'The "%s()" method is deprecated without replacement.', __METHOD__); + + return GdCaster::castGd($gd, $a, $stub, $isNested); + } + + /** + * @deprecated since Symfony 7.3 + */ + public static function castOpensslX509(\OpenSSLCertificate $h, array $a, Stub $stub, bool $isNested): array + { + trigger_deprecation('symfony/var-dumper', '7.3', 'The "%s()" method is deprecated without replacement.', __METHOD__); + + return OpenSSLCaster::castOpensslX509($h, $a, $stub, $isNested); + } +} diff --git a/vendor/symfony/var-dumper/Caster/ScalarStub.php b/vendor/symfony/var-dumper/Caster/ScalarStub.php new file mode 100644 index 0000000..3bb1935 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/ScalarStub.php @@ -0,0 +1,27 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Represents any arbitrary value. + * + * @author Alexandre Daubois + */ +class ScalarStub extends Stub +{ + public function __construct(mixed $value) + { + $this->value = $value; + } +} diff --git a/vendor/symfony/var-dumper/Caster/SocketCaster.php b/vendor/symfony/var-dumper/Caster/SocketCaster.php new file mode 100644 index 0000000..6b95cd1 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/SocketCaster.php @@ -0,0 +1,64 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Nicolas Grekas + * @author Alexandre Daubois + * + * @internal + */ +final class SocketCaster +{ + public static function castSocket(\Socket $socket, array $a, Stub $stub, bool $isNested): array + { + socket_getsockname($socket, $addr, $port); + $info = stream_get_meta_data(socket_export_stream($socket)); + + if (\PHP_VERSION_ID >= 80300) { + $uri = ($info['uri'] ?? '//'); + if (str_starts_with($uri, 'unix://')) { + $uri .= $addr; + } else { + $uri .= \sprintf(str_contains($addr, ':') ? '[%s]:%s' : '%s:%s', $addr, $port); + } + + $a[Caster::PREFIX_VIRTUAL.'uri'] = $uri; + + if (@socket_atmark($socket)) { + $a[Caster::PREFIX_VIRTUAL.'atmark'] = true; + } + } + + $a += [ + Caster::PREFIX_VIRTUAL.'timed_out' => $info['timed_out'], + Caster::PREFIX_VIRTUAL.'blocked' => $info['blocked'], + ]; + + if (!$lastError = socket_last_error($socket)) { + return $a; + } + + static $errors; + + if (!$errors) { + $errors = get_defined_constants(true)['sockets'] ?? []; + $errors = array_flip(array_filter($errors, static fn ($k) => str_starts_with($k, 'SOCKET_E'), \ARRAY_FILTER_USE_KEY)); + } + + $a[Caster::PREFIX_VIRTUAL.'last_error'] = new ConstStub($errors[$lastError], socket_strerror($lastError)); + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/SplCaster.php b/vendor/symfony/var-dumper/Caster/SplCaster.php new file mode 100644 index 0000000..26a58cb --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/SplCaster.php @@ -0,0 +1,278 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts SPL related classes to array representation. + * + * @author Nicolas Grekas + * + * @final + * + * @internal since Symfony 7.3 + */ +class SplCaster +{ + private const SPL_FILE_OBJECT_FLAGS = [ + \SplFileObject::DROP_NEW_LINE => 'DROP_NEW_LINE', + \SplFileObject::READ_AHEAD => 'READ_AHEAD', + \SplFileObject::SKIP_EMPTY => 'SKIP_EMPTY', + \SplFileObject::READ_CSV => 'READ_CSV', + ]; + + public static function castArrayObject(\ArrayObject $c, array $a, Stub $stub, bool $isNested): array + { + return self::castSplArray($c, $a, $stub, $isNested); + } + + public static function castArrayIterator(\ArrayIterator $c, array $a, Stub $stub, bool $isNested): array + { + return self::castSplArray($c, $a, $stub, $isNested); + } + + public static function castHeap(\Iterator $c, array $a, Stub $stub, bool $isNested): array + { + $a += [ + Caster::PREFIX_VIRTUAL.'heap' => iterator_to_array(clone $c), + ]; + + return $a; + } + + public static function castDoublyLinkedList(\SplDoublyLinkedList $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + $mode = $c->getIteratorMode(); + $c->setIteratorMode(\SplDoublyLinkedList::IT_MODE_KEEP | $mode & ~\SplDoublyLinkedList::IT_MODE_DELETE); + + $a += [ + $prefix.'mode' => new ConstStub((($mode & \SplDoublyLinkedList::IT_MODE_LIFO) ? 'IT_MODE_LIFO' : 'IT_MODE_FIFO').' | '.(($mode & \SplDoublyLinkedList::IT_MODE_DELETE) ? 'IT_MODE_DELETE' : 'IT_MODE_KEEP'), $mode), + $prefix.'dllist' => iterator_to_array($c), + ]; + $c->setIteratorMode($mode); + + return $a; + } + + public static function castFileInfo(\SplFileInfo $c, array $a, Stub $stub, bool $isNested): array + { + static $map = [ + 'path' => 'getPath', + 'filename' => 'getFilename', + 'basename' => 'getBasename', + 'pathname' => 'getPathname', + 'extension' => 'getExtension', + 'realPath' => 'getRealPath', + 'aTime' => 'getATime', + 'mTime' => 'getMTime', + 'cTime' => 'getCTime', + 'inode' => 'getInode', + 'size' => 'getSize', + 'perms' => 'getPerms', + 'owner' => 'getOwner', + 'group' => 'getGroup', + 'type' => 'getType', + 'writable' => 'isWritable', + 'readable' => 'isReadable', + 'executable' => 'isExecutable', + 'file' => 'isFile', + 'dir' => 'isDir', + 'link' => 'isLink', + 'linkTarget' => 'getLinkTarget', + ]; + + $prefix = Caster::PREFIX_VIRTUAL; + unset($a["\0SplFileInfo\0fileName"]); + unset($a["\0SplFileInfo\0pathName"]); + + try { + $c->isReadable(); + } catch (\RuntimeException $e) { + if ('Object not initialized' !== $e->getMessage()) { + throw $e; + } + + $a[$prefix.'⚠'] = 'The parent constructor was not called: the object is in an invalid state'; + + return $a; + } catch (\Error $e) { + if ('Object not initialized' !== $e->getMessage()) { + throw $e; + } + + $a[$prefix.'⚠'] = 'The parent constructor was not called: the object is in an invalid state'; + + return $a; + } + + foreach ($map as $key => $accessor) { + try { + $a[$prefix.$key] = $c->$accessor(); + } catch (\Exception) { + } + } + + if ($a[$prefix.'realPath'] ?? false) { + $a[$prefix.'realPath'] = new LinkStub($a[$prefix.'realPath']); + } + + if (isset($a[$prefix.'perms'])) { + $a[$prefix.'perms'] = new ConstStub(\sprintf('0%o', $a[$prefix.'perms']), $a[$prefix.'perms']); + } + + static $mapDate = ['aTime', 'mTime', 'cTime']; + foreach ($mapDate as $key) { + if (isset($a[$prefix.$key])) { + $a[$prefix.$key] = new ConstStub(date('Y-m-d H:i:s', $a[$prefix.$key]), $a[$prefix.$key]); + } + } + + return $a; + } + + public static function castFileObject(\SplFileObject $c, array $a, Stub $stub, bool $isNested): array + { + static $map = [ + 'flags' => 'getFlags', + 'maxLineLen' => 'getMaxLineLen', + 'fstat' => 'fstat', + 'eof' => 'eof', + 'key' => 'key', + ]; + + $prefix = Caster::PREFIX_VIRTUAL; + + if (\PHP_VERSION_ID < 90000) { + set_error_handler(static fn () => true, \E_DEPRECATED); + try { + $a[$prefix.'csvControl'] = $c->getCsvControl(); + } catch (\Exception) { + } finally { + restore_error_handler(); + } + } + + foreach ($map as $key => $accessor) { + try { + $a[$prefix.$key] = $c->$accessor(); + } catch (\Exception) { + } + } + + if (isset($a[$prefix.'flags'])) { + $flagsArray = []; + foreach (self::SPL_FILE_OBJECT_FLAGS as $value => $name) { + if ($a[$prefix.'flags'] & $value) { + $flagsArray[] = $name; + } + } + $a[$prefix.'flags'] = new ConstStub(implode('|', $flagsArray), $a[$prefix.'flags']); + } + + if (isset($a[$prefix.'fstat'])) { + $a[$prefix.'fstat'] = new CutArrayStub($a[$prefix.'fstat'], ['dev', 'ino', 'nlink', 'rdev', 'blksize', 'blocks']); + } + + return $a; + } + + public static function castObjectStorage(\SplObjectStorage $c, array $a, Stub $stub, bool $isNested): array + { + $storage = []; + unset($a[Caster::PREFIX_DYNAMIC."\0gcdata"]); // Don't hit https://bugs.php.net/65967 + unset($a["\0SplObjectStorage\0storage"]); + + $clone = clone $c; + foreach ($clone as $obj) { + $storage[] = new EnumStub([ + 'object' => $obj, + 'info' => $clone->getInfo(), + ]); + } + + $a += [ + Caster::PREFIX_VIRTUAL.'storage' => $storage, + ]; + + return $a; + } + + public static function castOuterIterator(\OuterIterator $c, array $a, Stub $stub, bool $isNested): array + { + $a[Caster::PREFIX_VIRTUAL.'innerIterator'] = $c->getInnerIterator(); + + return $a; + } + + public static function castWeakReference(\WeakReference $c, array $a, Stub $stub, bool $isNested): array + { + $a[Caster::PREFIX_VIRTUAL.'object'] = $c->get(); + + return $a; + } + + public static function castWeakMap(\WeakMap $c, array $a, Stub $stub, bool $isNested): array + { + $map = []; + + foreach (clone $c as $obj => $data) { + $map[] = new EnumStub([ + 'object' => $obj, + 'data' => $data, + ]); + } + + $a += [ + Caster::PREFIX_VIRTUAL.'map' => $map, + ]; + + return $a; + } + + private static function castSplArray(\ArrayObject|\ArrayIterator $c, array $a, Stub $stub, bool $isNested): array + { + $prefix = Caster::PREFIX_VIRTUAL; + $hasDebugInfo = method_exists($c, '__debugInfo'); + + if ($c instanceof \ArrayObject) { + $flags = $c->getFlags(); + + if (!($flags & \ArrayObject::STD_PROP_LIST)) { + $c->setFlags(\ArrayObject::STD_PROP_LIST); + $a = Caster::castObject($c, $c::class, $hasDebugInfo, $stub->class); + $c->setFlags($flags); + } + } else { + // ArrayIterator::getFlags() and ArrayIterator::setFlags() are deprecated as of PHP 8.6 + [$flags, , $properties] = $c->__serialize(); + + if (!($flags & \ArrayObject::STD_PROP_LIST)) { + $a = $properties; + } + } + + unset($a["\0ArrayObject\0storage"], $a["\0ArrayIterator\0storage"]); + + $a += [ + $prefix.'storage' => $c->getArrayCopy(), + $prefix.'flag::STD_PROP_LIST' => (bool) ($flags & \ArrayObject::STD_PROP_LIST), + $prefix.'flag::ARRAY_AS_PROPS' => (bool) ($flags & \ArrayObject::ARRAY_AS_PROPS), + ]; + if ($c instanceof \ArrayObject) { + $a[$prefix.'iteratorClass'] = new ClassStub($c->getIteratorClass()); + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/SqliteCaster.php b/vendor/symfony/var-dumper/Caster/SqliteCaster.php new file mode 100644 index 0000000..25d47ac --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/SqliteCaster.php @@ -0,0 +1,32 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Alexandre Daubois + * + * @internal + */ +final class SqliteCaster +{ + public static function castSqlite3Result(\SQLite3Result $result, array $a, Stub $stub, bool $isNested): array + { + $numColumns = $result->numColumns(); + for ($i = 0; $i < $numColumns; ++$i) { + $a[Caster::PREFIX_VIRTUAL.'columnNames'][$i] = $result->columnName($i); + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/StubCaster.php b/vendor/symfony/var-dumper/Caster/StubCaster.php new file mode 100644 index 0000000..85cf997 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/StubCaster.php @@ -0,0 +1,94 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts a caster's Stub. + * + * @author Nicolas Grekas + * + * @final + * + * @internal since Symfony 7.3 + */ +class StubCaster +{ + public static function castStub(Stub $c, array $a, Stub $stub, bool $isNested): array + { + if ($isNested) { + $stub->type = $c->type; + $stub->class = $c->class; + $stub->value = $c->value; + $stub->handle = $c->handle; + $stub->cut = $c->cut; + $stub->attr = $c->attr; + + if (Stub::TYPE_REF === $c->type && !$c->class && \is_string($c->value) && !preg_match('//u', $c->value)) { + $stub->type = Stub::TYPE_STRING; + $stub->class = Stub::STRING_BINARY; + } + + $a = []; + } + + return $a; + } + + public static function castCutArray(CutArrayStub $c, array $a, Stub $stub, bool $isNested): array + { + return $isNested ? $c->preservedSubset : $a; + } + + public static function cutInternals($obj, array $a, Stub $stub, bool $isNested): array + { + if ($isNested) { + $stub->cut += \count($a); + + return []; + } + + return $a; + } + + public static function castEnum(EnumStub $c, array $a, Stub $stub, bool $isNested): array + { + if ($isNested) { + $stub->class = $c->dumpKeys ? '' : null; + $stub->handle = 0; + $stub->value = null; + $stub->cut = $c->cut; + $stub->attr = $c->attr; + + $a = []; + + if ($c->value) { + foreach (array_keys($c->value) as $k) { + $keys[] = !isset($k[0]) || "\0" !== $k[0] ? Caster::PREFIX_VIRTUAL.$k : $k; + } + // Preserve references with array_combine() + $a = array_combine($keys, $c->value); + } + } + + return $a; + } + + public static function castScalar(ScalarStub $scalarStub, array $a, Stub $stub): array + { + $stub->type = Stub::TYPE_SCALAR; + $stub->attr['value'] = $scalarStub->value; + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/SymfonyCaster.php b/vendor/symfony/var-dumper/Caster/SymfonyCaster.php new file mode 100644 index 0000000..a81d399 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/SymfonyCaster.php @@ -0,0 +1,125 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\Uid\Ulid; +use Symfony\Component\Uid\Uuid; +use Symfony\Component\VarDumper\Cloner\Stub; +use Symfony\Component\VarExporter\Internal\LazyObjectState; + +/** + * @final + * + * @internal since Symfony 7.3 + */ +class SymfonyCaster +{ + private const REQUEST_GETTERS = [ + 'pathInfo' => 'getPathInfo', + 'requestUri' => 'getRequestUri', + 'baseUrl' => 'getBaseUrl', + 'basePath' => 'getBasePath', + 'method' => 'getMethod', + 'format' => 'getRequestFormat', + ]; + + public static function castRequest(Request $request, array $a, Stub $stub, bool $isNested): array + { + $clone = null; + + foreach (self::REQUEST_GETTERS as $prop => $getter) { + $key = Caster::PREFIX_PROTECTED.$prop; + if (\array_key_exists($key, $a) && null === $a[$key]) { + $clone ??= clone $request; + $a[Caster::PREFIX_VIRTUAL.$prop] = $clone->{$getter}(); + } + } + + return $a; + } + + public static function castHttpClient($client, array $a, Stub $stub, bool $isNested): array + { + $multiKey = \sprintf("\0%s\0multi", $client::class); + if (isset($a[$multiKey]) && !$a[$multiKey] instanceof Stub) { + $a[$multiKey] = new CutStub($a[$multiKey]); + } + + return $a; + } + + public static function castHttpClientResponse($response, array $a, Stub $stub, bool $isNested): array + { + $stub->cut += \count($a); + $a = []; + + foreach ($response->getInfo() as $k => $v) { + $a[Caster::PREFIX_VIRTUAL.$k] = $v; + } + + return $a; + } + + public static function castLazyObjectState($state, array $a, Stub $stub, bool $isNested): array + { + if (!$isNested) { + return $a; + } + + $stub->cut += \count($a) - 1; + + $instance = $a['realInstance'] ?? null; + + if (isset($a['status'])) { // forward-compat with Symfony 8 + $a = ['status' => new ConstStub(match ($a['status']) { + LazyObjectState::STATUS_INITIALIZED_FULL => 'INITIALIZED_FULL', + LazyObjectState::STATUS_INITIALIZED_PARTIAL => 'INITIALIZED_PARTIAL', + LazyObjectState::STATUS_UNINITIALIZED_FULL => 'UNINITIALIZED_FULL', + LazyObjectState::STATUS_UNINITIALIZED_PARTIAL => 'UNINITIALIZED_PARTIAL', + }, $a['status'])]; + } + + if ($instance) { + $a['realInstance'] = $instance; + --$stub->cut; + } + + return $a; + } + + public static function castUuid(Uuid $uuid, array $a, Stub $stub, bool $isNested): array + { + $a[Caster::PREFIX_VIRTUAL.'toBase58'] = $uuid->toBase58(); + $a[Caster::PREFIX_VIRTUAL.'toBase32'] = $uuid->toBase32(); + + // symfony/uid >= 5.3 + if (method_exists($uuid, 'getDateTime')) { + $a[Caster::PREFIX_VIRTUAL.'time'] = $uuid->getDateTime()->format('Y-m-d H:i:s.u \U\T\C'); + } + + return $a; + } + + public static function castUlid(Ulid $ulid, array $a, Stub $stub, bool $isNested): array + { + $a[Caster::PREFIX_VIRTUAL.'toBase58'] = $ulid->toBase58(); + $a[Caster::PREFIX_VIRTUAL.'toRfc4122'] = $ulid->toRfc4122(); + + // symfony/uid >= 5.3 + if (method_exists($ulid, 'getDateTime')) { + $a[Caster::PREFIX_VIRTUAL.'time'] = $ulid->getDateTime()->format('Y-m-d H:i:s.v \U\T\C'); + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/TraceStub.php b/vendor/symfony/var-dumper/Caster/TraceStub.php new file mode 100644 index 0000000..b732eb2 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/TraceStub.php @@ -0,0 +1,32 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Represents a backtrace as returned by debug_backtrace() or Exception->getTrace(). + * + * @author Nicolas Grekas + */ +class TraceStub extends Stub +{ + public function __construct( + array $trace, + public bool $keepArgs = true, + public int $sliceOffset = 0, + public ?int $sliceLength = null, + public int $numberingOffset = 0, + ) { + $this->value = $trace; + } +} diff --git a/vendor/symfony/var-dumper/Caster/UninitializedStub.php b/vendor/symfony/var-dumper/Caster/UninitializedStub.php new file mode 100644 index 0000000..a9bdd9b --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/UninitializedStub.php @@ -0,0 +1,25 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +/** + * Represents an uninitialized property. + * + * @author Nicolas Grekas + */ +class UninitializedStub extends ConstStub +{ + public function __construct(\ReflectionProperty $property) + { + parent::__construct('?'.($property->hasType() ? ' '.$property->getType() : ''), 'Uninitialized property'); + } +} diff --git a/vendor/symfony/var-dumper/Caster/UuidCaster.php b/vendor/symfony/var-dumper/Caster/UuidCaster.php new file mode 100644 index 0000000..732ad7c --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/UuidCaster.php @@ -0,0 +1,32 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Ramsey\Uuid\UuidInterface; +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Grégoire Pineau + * + * @internal since Symfony 7.3 + */ +final class UuidCaster +{ + public static function castRamseyUuid(UuidInterface $c, array $a, Stub $stub, bool $isNested): array + { + $a += [ + Caster::PREFIX_VIRTUAL.'uuid' => (string) $c, + ]; + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/VirtualStub.php b/vendor/symfony/var-dumper/Caster/VirtualStub.php new file mode 100644 index 0000000..60b58fa --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/VirtualStub.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +class VirtualStub extends ConstStub +{ + public function __construct(\ReflectionProperty $property) + { + parent::__construct('~'.($property->hasType() ? ' '.$property->getType() : ''), 'Virtual property'); + $this->attr['virtual'] = true; + } +} diff --git a/vendor/symfony/var-dumper/Caster/XmlReaderCaster.php b/vendor/symfony/var-dumper/Caster/XmlReaderCaster.php new file mode 100644 index 0000000..00420c7 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/XmlReaderCaster.php @@ -0,0 +1,94 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts XmlReader class to array representation. + * + * @author Baptiste Clavié + * + * @final + * + * @internal since Symfony 7.3 + */ +class XmlReaderCaster +{ + private const NODE_TYPES = [ + \XMLReader::NONE => 'NONE', + \XMLReader::ELEMENT => 'ELEMENT', + \XMLReader::ATTRIBUTE => 'ATTRIBUTE', + \XMLReader::TEXT => 'TEXT', + \XMLReader::CDATA => 'CDATA', + \XMLReader::ENTITY_REF => 'ENTITY_REF', + \XMLReader::ENTITY => 'ENTITY', + \XMLReader::PI => 'PI (Processing Instruction)', + \XMLReader::COMMENT => 'COMMENT', + \XMLReader::DOC => 'DOC', + \XMLReader::DOC_TYPE => 'DOC_TYPE', + \XMLReader::DOC_FRAGMENT => 'DOC_FRAGMENT', + \XMLReader::NOTATION => 'NOTATION', + \XMLReader::WHITESPACE => 'WHITESPACE', + \XMLReader::SIGNIFICANT_WHITESPACE => 'SIGNIFICANT_WHITESPACE', + \XMLReader::END_ELEMENT => 'END_ELEMENT', + \XMLReader::END_ENTITY => 'END_ENTITY', + \XMLReader::XML_DECLARATION => 'XML_DECLARATION', + ]; + + public static function castXmlReader(\XMLReader $reader, array $a, Stub $stub, bool $isNested): array + { + try { + $properties = [ + 'LOADDTD' => @$reader->getParserProperty(\XMLReader::LOADDTD), + 'DEFAULTATTRS' => @$reader->getParserProperty(\XMLReader::DEFAULTATTRS), + 'VALIDATE' => @$reader->getParserProperty(\XMLReader::VALIDATE), + 'SUBST_ENTITIES' => @$reader->getParserProperty(\XMLReader::SUBST_ENTITIES), + ]; + } catch (\Error) { + $properties = [ + 'LOADDTD' => false, + 'DEFAULTATTRS' => false, + 'VALIDATE' => false, + 'SUBST_ENTITIES' => false, + ]; + } + + $props = Caster::PREFIX_VIRTUAL.'parserProperties'; + $info = [ + 'localName' => $reader->localName, + 'prefix' => $reader->prefix, + 'nodeType' => new ConstStub(self::NODE_TYPES[$reader->nodeType], $reader->nodeType), + 'depth' => $reader->depth, + 'isDefault' => $reader->isDefault, + 'isEmptyElement' => \XMLReader::NONE === $reader->nodeType ? null : $reader->isEmptyElement, + 'xmlLang' => $reader->xmlLang, + 'attributeCount' => $reader->attributeCount, + 'value' => $reader->value, + 'namespaceURI' => $reader->namespaceURI, + 'baseURI' => $reader->baseURI ? new LinkStub($reader->baseURI) : $reader->baseURI, + $props => $properties, + ]; + + if ($info[$props] = Caster::filter($info[$props], Caster::EXCLUDE_EMPTY, [], $count)) { + $info[$props] = new EnumStub($info[$props]); + $info[$props]->cut = $count; + } + + $a = Caster::filter($a, Caster::EXCLUDE_UNINITIALIZED, [], $count); + $info = Caster::filter($info, Caster::EXCLUDE_EMPTY, [], $count); + // +2 because hasValue and hasAttributes are always filtered + $stub->cut += $count + 2; + + return $a + $info; + } +} diff --git a/vendor/symfony/var-dumper/Caster/XmlResourceCaster.php b/vendor/symfony/var-dumper/Caster/XmlResourceCaster.php new file mode 100644 index 0000000..f6b0896 --- /dev/null +++ b/vendor/symfony/var-dumper/Caster/XmlResourceCaster.php @@ -0,0 +1,65 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * Casts XML resources to array representation. + * + * @author Nicolas Grekas + * + * @final + * + * @internal since Symfony 7.3 + */ +class XmlResourceCaster +{ + private const XML_ERRORS = [ + \XML_ERROR_NONE => 'XML_ERROR_NONE', + \XML_ERROR_NO_MEMORY => 'XML_ERROR_NO_MEMORY', + \XML_ERROR_SYNTAX => 'XML_ERROR_SYNTAX', + \XML_ERROR_NO_ELEMENTS => 'XML_ERROR_NO_ELEMENTS', + \XML_ERROR_INVALID_TOKEN => 'XML_ERROR_INVALID_TOKEN', + \XML_ERROR_UNCLOSED_TOKEN => 'XML_ERROR_UNCLOSED_TOKEN', + \XML_ERROR_PARTIAL_CHAR => 'XML_ERROR_PARTIAL_CHAR', + \XML_ERROR_TAG_MISMATCH => 'XML_ERROR_TAG_MISMATCH', + \XML_ERROR_DUPLICATE_ATTRIBUTE => 'XML_ERROR_DUPLICATE_ATTRIBUTE', + \XML_ERROR_JUNK_AFTER_DOC_ELEMENT => 'XML_ERROR_JUNK_AFTER_DOC_ELEMENT', + \XML_ERROR_PARAM_ENTITY_REF => 'XML_ERROR_PARAM_ENTITY_REF', + \XML_ERROR_UNDEFINED_ENTITY => 'XML_ERROR_UNDEFINED_ENTITY', + \XML_ERROR_RECURSIVE_ENTITY_REF => 'XML_ERROR_RECURSIVE_ENTITY_REF', + \XML_ERROR_ASYNC_ENTITY => 'XML_ERROR_ASYNC_ENTITY', + \XML_ERROR_BAD_CHAR_REF => 'XML_ERROR_BAD_CHAR_REF', + \XML_ERROR_BINARY_ENTITY_REF => 'XML_ERROR_BINARY_ENTITY_REF', + \XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF => 'XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF', + \XML_ERROR_MISPLACED_XML_PI => 'XML_ERROR_MISPLACED_XML_PI', + \XML_ERROR_UNKNOWN_ENCODING => 'XML_ERROR_UNKNOWN_ENCODING', + \XML_ERROR_INCORRECT_ENCODING => 'XML_ERROR_INCORRECT_ENCODING', + \XML_ERROR_UNCLOSED_CDATA_SECTION => 'XML_ERROR_UNCLOSED_CDATA_SECTION', + \XML_ERROR_EXTERNAL_ENTITY_HANDLING => 'XML_ERROR_EXTERNAL_ENTITY_HANDLING', + ]; + + public static function castXml($h, array $a, Stub $stub, bool $isNested): array + { + $a['current_byte_index'] = xml_get_current_byte_index($h); + $a['current_column_number'] = xml_get_current_column_number($h); + $a['current_line_number'] = xml_get_current_line_number($h); + $a['error_code'] = xml_get_error_code($h); + + if (isset(self::XML_ERRORS[$a['error_code']])) { + $a['error_code'] = new ConstStub(self::XML_ERRORS[$a['error_code']], $a['error_code']); + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Cloner/AbstractCloner.php b/vendor/symfony/var-dumper/Cloner/AbstractCloner.php new file mode 100644 index 0000000..2f7d940 --- /dev/null +++ b/vendor/symfony/var-dumper/Cloner/AbstractCloner.php @@ -0,0 +1,413 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Cloner; + +use Symfony\Component\VarDumper\Caster\Caster; +use Symfony\Component\VarDumper\Exception\ThrowingCasterException; + +/** + * AbstractCloner implements a generic caster mechanism for objects and resources. + * + * @author Nicolas Grekas + */ +abstract class AbstractCloner implements ClonerInterface +{ + public static array $defaultCasters = [ + '__PHP_Incomplete_Class' => ['Symfony\Component\VarDumper\Caster\Caster', 'castPhpIncompleteClass'], + + 'AddressInfo' => ['Symfony\Component\VarDumper\Caster\AddressInfoCaster', 'castAddressInfo'], + 'Socket' => ['Symfony\Component\VarDumper\Caster\SocketCaster', 'castSocket'], + + 'Symfony\Component\VarDumper\Caster\CutStub' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'castStub'], + 'Symfony\Component\VarDumper\Caster\CutArrayStub' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'castCutArray'], + 'Symfony\Component\VarDumper\Caster\ConstStub' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'castStub'], + 'Symfony\Component\VarDumper\Caster\EnumStub' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'castEnum'], + 'Symfony\Component\VarDumper\Caster\ScalarStub' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'castScalar'], + + 'Fiber' => ['Symfony\Component\VarDumper\Caster\FiberCaster', 'castFiber'], + + 'Closure' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castClosure'], + 'Generator' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castGenerator'], + 'ReflectionType' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castType'], + 'ReflectionAttribute' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castAttribute'], + 'ReflectionGenerator' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castReflectionGenerator'], + 'ReflectionClass' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castClass'], + 'ReflectionClassConstant' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castClassConstant'], + 'ReflectionFunctionAbstract' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castFunctionAbstract'], + 'ReflectionMethod' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castMethod'], + 'ReflectionParameter' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castParameter'], + 'ReflectionProperty' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castProperty'], + 'ReflectionReference' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castReference'], + 'ReflectionExtension' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castExtension'], + 'ReflectionZendExtension' => ['Symfony\Component\VarDumper\Caster\ReflectionCaster', 'castZendExtension'], + + 'Doctrine\Common\Persistence\ObjectManager' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'], + 'Doctrine\Common\Proxy\Proxy' => ['Symfony\Component\VarDumper\Caster\DoctrineCaster', 'castCommonProxy'], + 'Doctrine\ORM\Proxy\Proxy' => ['Symfony\Component\VarDumper\Caster\DoctrineCaster', 'castOrmProxy'], + 'Doctrine\ORM\PersistentCollection' => ['Symfony\Component\VarDumper\Caster\DoctrineCaster', 'castPersistentCollection'], + 'Doctrine\Persistence\ObjectManager' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'], + + 'DOMException' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castException'], + 'Dom\Exception' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castException'], + 'DOMStringList' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + 'DOMNameList' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + 'DOMImplementation' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castImplementation'], + 'Dom\Implementation' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castImplementation'], + 'DOMImplementationList' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + 'DOMNode' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + 'Dom\Node' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + 'DOMNameSpaceNode' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + 'DOMDocument' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDocument'], + 'Dom\XMLDocument' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castXMLDocument'], + 'Dom\HTMLDocument' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castHTMLDocument'], + 'DOMNodeList' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + 'Dom\NodeList' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + 'DOMNamedNodeMap' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + 'Dom\DTDNamedNodeMap' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + 'DOMXPath' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + 'Dom\XPath' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + 'Dom\HTMLCollection' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + 'Dom\TokenList' => ['Symfony\Component\VarDumper\Caster\DOMCaster', 'castDom'], + + 'XMLReader' => ['Symfony\Component\VarDumper\Caster\XmlReaderCaster', 'castXmlReader'], + + 'ErrorException' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castErrorException'], + 'Exception' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castException'], + 'Error' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castError'], + 'Symfony\Bridge\Monolog\Logger' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'], + 'Symfony\Component\DependencyInjection\ContainerInterface' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'], + 'Symfony\Component\EventDispatcher\EventDispatcherInterface' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'], + 'Symfony\Component\HttpClient\AmpHttpClient' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castHttpClient'], + 'Symfony\Component\HttpClient\CurlHttpClient' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castHttpClient'], + 'Symfony\Component\HttpClient\NativeHttpClient' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castHttpClient'], + 'Symfony\Component\HttpClient\Response\AmpResponse' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castHttpClientResponse'], + 'Symfony\Component\HttpClient\Response\AmpResponseV4' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castHttpClientResponse'], + 'Symfony\Component\HttpClient\Response\AmpResponseV5' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castHttpClientResponse'], + 'Symfony\Component\HttpClient\Response\CurlResponse' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castHttpClientResponse'], + 'Symfony\Component\HttpClient\Response\NativeResponse' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castHttpClientResponse'], + 'Symfony\Component\HttpFoundation\Request' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castRequest'], + 'Symfony\Component\Uid\Ulid' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castUlid'], + 'Symfony\Component\Uid\Uuid' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castUuid'], + 'Symfony\Component\VarExporter\Internal\LazyObjectState' => ['Symfony\Component\VarDumper\Caster\SymfonyCaster', 'castLazyObjectState'], + 'Symfony\Component\VarDumper\Exception\ThrowingCasterException' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castThrowingCasterException'], + 'Symfony\Component\VarDumper\Caster\TraceStub' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castTraceStub'], + 'Symfony\Component\VarDumper\Caster\FrameStub' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castFrameStub'], + 'Symfony\Component\VarDumper\Cloner\AbstractCloner' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'], + 'Symfony\Component\ErrorHandler\Exception\FlattenException' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castFlattenException'], + 'Symfony\Component\ErrorHandler\Exception\SilencedErrorContext' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castSilencedErrorContext'], + + 'Imagine\Image\ImageInterface' => ['Symfony\Component\VarDumper\Caster\ImagineCaster', 'castImage'], + + 'Ramsey\Uuid\UuidInterface' => ['Symfony\Component\VarDumper\Caster\UuidCaster', 'castRamseyUuid'], + + 'ProxyManager\Proxy\ProxyInterface' => ['Symfony\Component\VarDumper\Caster\ProxyManagerCaster', 'castProxy'], + 'PHPUnit_Framework_MockObject_MockObject' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'], + 'PHPUnit\Framework\MockObject\MockObject' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'], + 'PHPUnit\Framework\MockObject\Stub' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'], + 'Prophecy\Prophecy\ProphecySubjectInterface' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'], + 'Mockery\MockInterface' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'], + + 'PDO' => ['Symfony\Component\VarDumper\Caster\PdoCaster', 'castPdo'], + 'PDOStatement' => ['Symfony\Component\VarDumper\Caster\PdoCaster', 'castPdoStatement'], + + 'AMQPConnection' => ['Symfony\Component\VarDumper\Caster\AmqpCaster', 'castConnection'], + 'AMQPChannel' => ['Symfony\Component\VarDumper\Caster\AmqpCaster', 'castChannel'], + 'AMQPQueue' => ['Symfony\Component\VarDumper\Caster\AmqpCaster', 'castQueue'], + 'AMQPExchange' => ['Symfony\Component\VarDumper\Caster\AmqpCaster', 'castExchange'], + 'AMQPEnvelope' => ['Symfony\Component\VarDumper\Caster\AmqpCaster', 'castEnvelope'], + + 'ArrayObject' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castArrayObject'], + 'ArrayIterator' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castArrayIterator'], + 'SplDoublyLinkedList' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castDoublyLinkedList'], + 'SplFileInfo' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castFileInfo'], + 'SplFileObject' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castFileObject'], + 'SplHeap' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castHeap'], + 'SplObjectStorage' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castObjectStorage'], + 'SplPriorityQueue' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castHeap'], + 'OuterIterator' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castOuterIterator'], + 'WeakMap' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castWeakMap'], + 'WeakReference' => ['Symfony\Component\VarDumper\Caster\SplCaster', 'castWeakReference'], + + 'Redis' => ['Symfony\Component\VarDumper\Caster\RedisCaster', 'castRedis'], + 'Relay\Relay' => ['Symfony\Component\VarDumper\Caster\RedisCaster', 'castRedis'], + 'RedisArray' => ['Symfony\Component\VarDumper\Caster\RedisCaster', 'castRedisArray'], + 'RedisCluster' => ['Symfony\Component\VarDumper\Caster\RedisCaster', 'castRedisCluster'], + + 'DateTimeInterface' => ['Symfony\Component\VarDumper\Caster\DateCaster', 'castDateTime'], + 'DateInterval' => ['Symfony\Component\VarDumper\Caster\DateCaster', 'castInterval'], + 'DateTimeZone' => ['Symfony\Component\VarDumper\Caster\DateCaster', 'castTimeZone'], + 'DatePeriod' => ['Symfony\Component\VarDumper\Caster\DateCaster', 'castPeriod'], + + 'GMP' => ['Symfony\Component\VarDumper\Caster\GmpCaster', 'castGmp'], + + 'MessageFormatter' => ['Symfony\Component\VarDumper\Caster\IntlCaster', 'castMessageFormatter'], + 'NumberFormatter' => ['Symfony\Component\VarDumper\Caster\IntlCaster', 'castNumberFormatter'], + 'IntlTimeZone' => ['Symfony\Component\VarDumper\Caster\IntlCaster', 'castIntlTimeZone'], + 'IntlCalendar' => ['Symfony\Component\VarDumper\Caster\IntlCaster', 'castIntlCalendar'], + 'IntlDateFormatter' => ['Symfony\Component\VarDumper\Caster\IntlCaster', 'castIntlDateFormatter'], + + 'Memcached' => ['Symfony\Component\VarDumper\Caster\MemcachedCaster', 'castMemcached'], + + 'Ds\Collection' => ['Symfony\Component\VarDumper\Caster\DsCaster', 'castCollection'], + 'Ds\Map' => ['Symfony\Component\VarDumper\Caster\DsCaster', 'castMap'], + 'Ds\Pair' => ['Symfony\Component\VarDumper\Caster\DsCaster', 'castPair'], + 'Symfony\Component\VarDumper\Caster\DsPairStub' => ['Symfony\Component\VarDumper\Caster\DsCaster', 'castPairStub'], + + 'mysqli_driver' => ['Symfony\Component\VarDumper\Caster\MysqliCaster', 'castMysqliDriver'], + + 'CurlHandle' => ['Symfony\Component\VarDumper\Caster\CurlCaster', 'castCurl'], + + 'Dba\Connection' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castDba'], + ':dba' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castDba'], + ':dba persistent' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castDba'], + + 'GdImage' => ['Symfony\Component\VarDumper\Caster\GdCaster', 'castGd'], + + 'SQLite3Result' => ['Symfony\Component\VarDumper\Caster\SqliteCaster', 'castSqlite3Result'], + + 'PgSql\Lob' => ['Symfony\Component\VarDumper\Caster\PgSqlCaster', 'castLargeObject'], + 'PgSql\Connection' => ['Symfony\Component\VarDumper\Caster\PgSqlCaster', 'castLink'], + 'PgSql\Result' => ['Symfony\Component\VarDumper\Caster\PgSqlCaster', 'castResult'], + + ':process' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castProcess'], + ':stream' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castStream'], + + 'OpenSSLAsymmetricKey' => ['Symfony\Component\VarDumper\Caster\OpenSSLCaster', 'castOpensslAsymmetricKey'], + 'OpenSSLCertificateSigningRequest' => ['Symfony\Component\VarDumper\Caster\OpenSSLCaster', 'castOpensslCsr'], + 'OpenSSLCertificate' => ['Symfony\Component\VarDumper\Caster\OpenSSLCaster', 'castOpensslX509'], + + ':persistent stream' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castStream'], + ':stream-context' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castStreamContext'], + + 'XmlParser' => ['Symfony\Component\VarDumper\Caster\XmlResourceCaster', 'castXml'], + + 'RdKafka' => ['Symfony\Component\VarDumper\Caster\RdKafkaCaster', 'castRdKafka'], + 'RdKafka\Conf' => ['Symfony\Component\VarDumper\Caster\RdKafkaCaster', 'castConf'], + 'RdKafka\KafkaConsumer' => ['Symfony\Component\VarDumper\Caster\RdKafkaCaster', 'castKafkaConsumer'], + 'RdKafka\Metadata\Broker' => ['Symfony\Component\VarDumper\Caster\RdKafkaCaster', 'castBrokerMetadata'], + 'RdKafka\Metadata\Collection' => ['Symfony\Component\VarDumper\Caster\RdKafkaCaster', 'castCollectionMetadata'], + 'RdKafka\Metadata\Partition' => ['Symfony\Component\VarDumper\Caster\RdKafkaCaster', 'castPartitionMetadata'], + 'RdKafka\Metadata\Topic' => ['Symfony\Component\VarDumper\Caster\RdKafkaCaster', 'castTopicMetadata'], + 'RdKafka\Message' => ['Symfony\Component\VarDumper\Caster\RdKafkaCaster', 'castMessage'], + 'RdKafka\Topic' => ['Symfony\Component\VarDumper\Caster\RdKafkaCaster', 'castTopic'], + 'RdKafka\TopicPartition' => ['Symfony\Component\VarDumper\Caster\RdKafkaCaster', 'castTopicPartition'], + 'RdKafka\TopicConf' => ['Symfony\Component\VarDumper\Caster\RdKafkaCaster', 'castTopicConf'], + + 'FFI\CData' => ['Symfony\Component\VarDumper\Caster\FFICaster', 'castCTypeOrCData'], + 'FFI\CType' => ['Symfony\Component\VarDumper\Caster\FFICaster', 'castCTypeOrCData'], + ]; + + protected int $maxItems = 2500; + protected int $maxString = -1; + protected int $minDepth = 1; + + /** + * @var array> + */ + private array $casters = []; + + /** + * @var callable|null + */ + private $prevErrorHandler; + + private array $classInfo = []; + private int $filter = 0; + + /** + * @param callable[]|null $casters A map of casters + * + * @see addCasters + */ + public function __construct(?array $casters = null) + { + $this->addCasters($casters ?? static::$defaultCasters); + } + + /** + * Adds casters for resources and objects. + * + * Maps resources or object types to a callback. + * Use types as keys and callable casters as values. + * Prefix types with `::`, + * see e.g. self::$defaultCasters. + * + * @param array $casters A map of casters + */ + public function addCasters(array $casters): void + { + foreach ($casters as $type => $callback) { + $this->casters[$type][] = $callback; + } + } + + /** + * Adds default casters for resources and objects. + * + * Maps resources or object types to a callback. + * Use types as keys and callable casters as values. + * Prefix types with `::`, + * see e.g. self::$defaultCasters. + * + * @param array $casters A map of casters + */ + public static function addDefaultCasters(array $casters): void + { + self::$defaultCasters = [...self::$defaultCasters, ...$casters]; + } + + /** + * Sets the maximum number of items to clone past the minimum depth in nested structures. + */ + public function setMaxItems(int $maxItems): void + { + $this->maxItems = $maxItems; + } + + /** + * Sets the maximum cloned length for strings. + */ + public function setMaxString(int $maxString): void + { + $this->maxString = $maxString; + } + + /** + * Sets the minimum tree depth where we are guaranteed to clone all the items. After this + * depth is reached, only setMaxItems items will be cloned. + */ + public function setMinDepth(int $minDepth): void + { + $this->minDepth = $minDepth; + } + + /** + * Clones a PHP variable. + * + * @param int $filter A bit field of Caster::EXCLUDE_* constants + */ + public function cloneVar(mixed $var, int $filter = 0): Data + { + $this->prevErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = []) { + if (\E_RECOVERABLE_ERROR === $type || \E_USER_ERROR === $type) { + // Cloner never dies + throw new \ErrorException($msg, 0, $type, $file, $line); + } + + if ($this->prevErrorHandler) { + return ($this->prevErrorHandler)($type, $msg, $file, $line, $context); + } + + return false; + }); + $this->filter = $filter; + + if ($gc = gc_enabled()) { + gc_disable(); + } + try { + return new Data($this->doClone($var)); + } finally { + if ($gc) { + gc_enable(); + } + restore_error_handler(); + $this->prevErrorHandler = null; + } + } + + /** + * Effectively clones the PHP variable. + */ + abstract protected function doClone(mixed $var): array; + + /** + * Casts an object to an array representation. + * + * @param bool $isNested True if the object is nested in the dumped structure + */ + protected function castObject(Stub $stub, bool $isNested): array + { + $obj = $stub->value; + $class = $stub->class; + + if (str_contains($class, "@anonymous\0")) { + $stub->class = get_debug_type($obj); + } + if (isset($this->classInfo[$class])) { + [$i, $parents, $hasDebugInfo, $fileInfo] = $this->classInfo[$class]; + } else { + $i = 2; + $parents = [$class]; + $hasDebugInfo = method_exists($class, '__debugInfo'); + + foreach (class_parents($class) as $p) { + $parents[] = $p; + ++$i; + } + foreach (class_implements($class) as $p) { + $parents[] = $p; + ++$i; + } + $parents[] = '*'; + + $r = new \ReflectionClass($class); + $fileInfo = $r->isInternal() || $r->isSubclassOf(Stub::class) ? [] : [ + 'file' => $r->getFileName(), + 'line' => $r->getStartLine(), + ]; + + $this->classInfo[$class] = [$i, $parents, $hasDebugInfo, $fileInfo]; + } + + $stub->attr += $fileInfo; + $a = Caster::castObject($obj, $class, $hasDebugInfo, $stub->class); + + try { + while ($i--) { + if (!empty($this->casters[$p = $parents[$i]])) { + foreach ($this->casters[$p] as $callback) { + $a = $callback($obj, $a, $stub, $isNested, $this->filter); + } + } + } + } catch (\Exception $e) { + $a = [(Stub::TYPE_OBJECT === $stub->type ? Caster::PREFIX_VIRTUAL : '').'⚠' => new ThrowingCasterException($e)] + $a; + } + + return $a; + } + + /** + * Casts a resource to an array representation. + * + * @param bool $isNested True if the object is nested in the dumped structure + */ + protected function castResource(Stub $stub, bool $isNested): array + { + $a = []; + $res = $stub->value; + $type = $stub->class; + + try { + if (!empty($this->casters[':'.$type])) { + foreach ($this->casters[':'.$type] as $callback) { + $a = $callback($res, $a, $stub, $isNested, $this->filter); + } + } + } catch (\Exception $e) { + $a = [(Stub::TYPE_OBJECT === $stub->type ? Caster::PREFIX_VIRTUAL : '').'⚠' => new ThrowingCasterException($e)] + $a; + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Cloner/ClonerInterface.php b/vendor/symfony/var-dumper/Cloner/ClonerInterface.php new file mode 100644 index 0000000..5a8e2e4 --- /dev/null +++ b/vendor/symfony/var-dumper/Cloner/ClonerInterface.php @@ -0,0 +1,23 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Cloner; + +/** + * @author Nicolas Grekas + */ +interface ClonerInterface +{ + /** + * Clones a PHP variable. + */ + public function cloneVar(mixed $var): Data; +} diff --git a/vendor/symfony/var-dumper/Cloner/Cursor.php b/vendor/symfony/var-dumper/Cloner/Cursor.php new file mode 100644 index 0000000..8923007 --- /dev/null +++ b/vendor/symfony/var-dumper/Cloner/Cursor.php @@ -0,0 +1,43 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Cloner; + +/** + * Represents the current state of a dumper while dumping. + * + * @author Nicolas Grekas + */ +class Cursor +{ + public const HASH_INDEXED = Stub::ARRAY_INDEXED; + public const HASH_ASSOC = Stub::ARRAY_ASSOC; + public const HASH_OBJECT = Stub::TYPE_OBJECT; + public const HASH_RESOURCE = Stub::TYPE_RESOURCE; + + public int $depth = 0; + public int $refIndex = 0; + public int $softRefTo = 0; + public int $softRefCount = 0; + public int $softRefHandle = 0; + public int $hardRefTo = 0; + public int $hardRefCount = 0; + public int $hardRefHandle = 0; + public int $hashType; + public string|int|null $hashKey = null; + public bool $hashKeyIsBinary; + public int $hashIndex = 0; + public int $hashLength = 0; + public int $hashCut = 0; + public bool $stop = false; + public array $attr = []; + public bool $skipChildren = false; +} diff --git a/vendor/symfony/var-dumper/Cloner/Data.php b/vendor/symfony/var-dumper/Cloner/Data.php new file mode 100644 index 0000000..21727f9 --- /dev/null +++ b/vendor/symfony/var-dumper/Cloner/Data.php @@ -0,0 +1,429 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Cloner; + +use Symfony\Component\VarDumper\Caster\Caster; +use Symfony\Component\VarDumper\Dumper\ContextProvider\SourceContextProvider; + +/** + * @author Nicolas Grekas + */ +class Data implements \ArrayAccess, \Countable, \IteratorAggregate, \Stringable +{ + private array $data; + private int $position = 0; + private int|string $key = 0; + private int $maxDepth = 20; + private int $maxItemsPerDepth = -1; + private int $useRefHandles = -1; + private array $context = []; + + /** + * @param array $data An array as returned by ClonerInterface::cloneVar() + */ + public function __construct(array $data) + { + $this->data = $data; + } + + public function getType(): ?string + { + $item = $this->data[$this->position][$this->key]; + + if ($item instanceof Stub && Stub::TYPE_REF === $item->type && !$item->position) { + $item = $item->value; + } + if (!$item instanceof Stub) { + return \gettype($item); + } + if (Stub::TYPE_STRING === $item->type) { + return 'string'; + } + if (Stub::TYPE_ARRAY === $item->type) { + return 'array'; + } + if (Stub::TYPE_OBJECT === $item->type) { + return $item->class; + } + if (Stub::TYPE_RESOURCE === $item->type) { + return $item->class.' resource'; + } + + return null; + } + + /** + * Returns a native representation of the original value. + * + * @param array|bool $recursive Whether values should be resolved recursively or not + * + * @return string|int|float|bool|array|Data[]|null + */ + public function getValue(array|bool $recursive = false): string|int|float|bool|array|null + { + $item = $this->data[$this->position][$this->key]; + + if ($item instanceof Stub && Stub::TYPE_REF === $item->type && !$item->position) { + $item = $item->value; + } + if (!($item = $this->getStub($item)) instanceof Stub) { + return $item; + } + if (Stub::TYPE_STRING === $item->type) { + return $item->value; + } + + $children = $item->position ? $this->data[$item->position] : []; + + foreach ($children as $k => $v) { + if ($recursive && !($v = $this->getStub($v)) instanceof Stub) { + continue; + } + $children[$k] = clone $this; + $children[$k]->key = $k; + $children[$k]->position = $item->position; + + if ($recursive) { + if (Stub::TYPE_REF === $v->type && ($v = $this->getStub($v->value)) instanceof Stub) { + $recursive = (array) $recursive; + if (isset($recursive[$v->position])) { + continue; + } + $recursive[$v->position] = true; + } + $children[$k] = $children[$k]->getValue($recursive); + } + } + + return $children; + } + + public function count(): int + { + return \count($this->getValue()); + } + + public function getIterator(): \Traversable + { + if (!\is_array($value = $this->getValue())) { + throw new \LogicException(\sprintf('"%s" object holds non-iterable type "%s".', self::class, get_debug_type($value))); + } + + yield from $value; + } + + public function __get(string $key): mixed + { + if (null !== $data = $this->seek($key)) { + $item = $this->getStub($data->data[$data->position][$data->key]); + + return $item instanceof Stub || [] === $item ? $data : $item; + } + + return null; + } + + public function __isset(string $key): bool + { + return null !== $this->seek($key); + } + + public function offsetExists(mixed $key): bool + { + return $this->__isset($key); + } + + public function offsetGet(mixed $key): mixed + { + return $this->__get($key); + } + + public function offsetSet(mixed $key, mixed $value): void + { + throw new \BadMethodCallException(self::class.' objects are immutable.'); + } + + public function offsetUnset(mixed $key): void + { + throw new \BadMethodCallException(self::class.' objects are immutable.'); + } + + public function __toString(): string + { + $value = $this->getValue(); + + if (!\is_array($value)) { + return (string) $value; + } + + return \sprintf('%s (count=%d)', $this->getType(), \count($value)); + } + + /** + * Returns a depth limited clone of $this. + */ + public function withMaxDepth(int $maxDepth): static + { + $data = clone $this; + $data->maxDepth = $maxDepth; + + return $data; + } + + /** + * Limits the number of elements per depth level. + */ + public function withMaxItemsPerDepth(int $maxItemsPerDepth): static + { + $data = clone $this; + $data->maxItemsPerDepth = $maxItemsPerDepth; + + return $data; + } + + /** + * Enables/disables objects' identifiers tracking. + * + * @param bool $useRefHandles False to hide global ref. handles + */ + public function withRefHandles(bool $useRefHandles): static + { + $data = clone $this; + $data->useRefHandles = $useRefHandles ? -1 : 0; + + return $data; + } + + public function withContext(array $context): static + { + $data = clone $this; + $data->context = $context; + + return $data; + } + + public function getContext(): array + { + return $this->context; + } + + /** + * Seeks to a specific key in nested data structures. + */ + public function seek(string|int $key): ?static + { + $item = $this->data[$this->position][$this->key]; + + if ($item instanceof Stub && Stub::TYPE_REF === $item->type && !$item->position) { + $item = $item->value; + } + if (!($item = $this->getStub($item)) instanceof Stub || !$item->position) { + return null; + } + $keys = [$key]; + + switch ($item->type) { + case Stub::TYPE_OBJECT: + $keys[] = Caster::PREFIX_DYNAMIC.$key; + $keys[] = Caster::PREFIX_PROTECTED.$key; + $keys[] = Caster::PREFIX_VIRTUAL.$key; + $keys[] = "\0$item->class\0$key"; + // no break + case Stub::TYPE_ARRAY: + case Stub::TYPE_RESOURCE: + break; + default: + return null; + } + + $data = null; + $children = $this->data[$item->position]; + + foreach ($keys as $key) { + if (isset($children[$key]) || \array_key_exists($key, $children)) { + $data = clone $this; + $data->key = $key; + $data->position = $item->position; + break; + } + } + + return $data; + } + + /** + * Dumps data with a DumperInterface dumper. + */ + public function dump(DumperInterface $dumper): void + { + $refs = [0]; + $cursor = new Cursor(); + $cursor->hashType = -1; + $cursor->attr = $this->context[SourceContextProvider::class] ?? []; + $label = $this->context['label'] ?? ''; + + if ($cursor->attr || '' !== $label) { + $dumper->dumpScalar($cursor, 'label', $label); + } + $cursor->hashType = 0; + $this->dumpItem($dumper, $cursor, $refs, $this->data[$this->position][$this->key]); + } + + /** + * Depth-first dumping of items. + * + * @param mixed $item A Stub object or the original value being dumped + */ + private function dumpItem(DumperInterface $dumper, Cursor $cursor, array &$refs, mixed $item): void + { + $cursor->refIndex = 0; + $cursor->softRefTo = $cursor->softRefHandle = $cursor->softRefCount = 0; + $cursor->hardRefTo = $cursor->hardRefHandle = $cursor->hardRefCount = 0; + $firstSeen = true; + + if (!$item instanceof Stub) { + $cursor->attr = []; + $type = \gettype($item); + if ('array' === $type && $item) { + $item = $this->getStub($item); + } + } elseif (Stub::TYPE_REF === $item->type) { + if ($item->handle) { + if (!isset($refs[$r = $item->handle - (\PHP_INT_MAX >> 1)])) { + $cursor->refIndex = $refs[$r] = $cursor->refIndex ?: ++$refs[0]; + } else { + $firstSeen = false; + } + $cursor->hardRefTo = $refs[$r]; + $cursor->hardRefHandle = $this->useRefHandles & $item->handle; + $cursor->hardRefCount = 0 < $item->handle ? $item->refCount : 0; + } + $cursor->attr = $item->attr; + $type = $item->class ?: \gettype($item->value); + $item = $this->getStub($item->value); + } + if ($item instanceof Stub) { + if ($item->refCount) { + if (!isset($refs[$r = $item->handle])) { + $cursor->refIndex = $refs[$r] = $cursor->refIndex ?: ++$refs[0]; + } else { + $firstSeen = false; + } + $cursor->softRefTo = $refs[$r]; + } + $cursor->softRefHandle = $this->useRefHandles & $item->handle; + $cursor->softRefCount = $item->refCount; + $cursor->attr = $item->attr; + $cut = $item->cut; + + if ($item->position && $firstSeen) { + $children = $this->data[$item->position]; + + if ($cursor->stop) { + if ($cut >= 0) { + $cut += \count($children); + } + $children = []; + } + } else { + $children = []; + } + switch ($item->type) { + case Stub::TYPE_STRING: + $dumper->dumpString($cursor, $item->value, Stub::STRING_BINARY === $item->class, $cut); + break; + + case Stub::TYPE_ARRAY: + $item = clone $item; + $item->type = $item->class; + $item->class = $item->value; + // no break + case Stub::TYPE_OBJECT: + case Stub::TYPE_RESOURCE: + $withChildren = $children && $cursor->depth !== $this->maxDepth && $this->maxItemsPerDepth; + $dumper->enterHash($cursor, $item->type, $item->class, $withChildren); + if ($withChildren) { + if ($cursor->skipChildren) { + $withChildren = false; + $cut = -1; + } else { + $cut = $this->dumpChildren($dumper, $cursor, $refs, $children, $cut, $item->type, null !== $item->class); + } + } elseif ($children && 0 <= $cut) { + $cut += \count($children); + } + $cursor->skipChildren = false; + $dumper->leaveHash($cursor, $item->type, $item->class, $withChildren, $cut); + break; + + case Stub::TYPE_SCALAR: + $dumper->dumpScalar($cursor, 'default', $item->attr['value']); + break; + + default: + throw new \RuntimeException(\sprintf('Unexpected Stub type: "%s".', $item->type)); + } + } elseif ('array' === $type) { + $dumper->enterHash($cursor, Cursor::HASH_INDEXED, 0, false); + $dumper->leaveHash($cursor, Cursor::HASH_INDEXED, 0, false, 0); + } elseif ('string' === $type) { + $dumper->dumpString($cursor, $item, false, 0); + } else { + $dumper->dumpScalar($cursor, $type, $item); + } + } + + /** + * Dumps children of hash structures. + * + * @return int The final number of removed items + */ + private function dumpChildren(DumperInterface $dumper, Cursor $parentCursor, array &$refs, array $children, int $hashCut, int $hashType, bool $dumpKeys): int + { + $cursor = clone $parentCursor; + ++$cursor->depth; + $cursor->hashType = $hashType; + $cursor->hashIndex = 0; + $cursor->hashLength = \count($children); + $cursor->hashCut = $hashCut; + foreach ($children as $key => $child) { + $cursor->hashKeyIsBinary = isset($key[0]) && !preg_match('//u', $key); + $cursor->hashKey = $dumpKeys ? $key : null; + $this->dumpItem($dumper, $cursor, $refs, $child); + if (++$cursor->hashIndex === $this->maxItemsPerDepth || $cursor->stop) { + $parentCursor->stop = true; + + return $hashCut >= 0 ? $hashCut + $cursor->hashLength - $cursor->hashIndex : $hashCut; + } + } + + return $hashCut; + } + + private function getStub(mixed $item): mixed + { + if (!$item || !\is_array($item)) { + return $item; + } + + $stub = new Stub(); + $stub->type = Stub::TYPE_ARRAY; + foreach ($item as $stub->class => $stub->position) { + } + if (isset($item[0])) { + $stub->cut = $item[0]; + } + $stub->value = $stub->cut + ($stub->position ? \count($this->data[$stub->position]) : 0); + + return $stub; + } +} diff --git a/vendor/symfony/var-dumper/Cloner/DumperInterface.php b/vendor/symfony/var-dumper/Cloner/DumperInterface.php new file mode 100644 index 0000000..10f2da0 --- /dev/null +++ b/vendor/symfony/var-dumper/Cloner/DumperInterface.php @@ -0,0 +1,53 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Cloner; + +/** + * DumperInterface used by Data objects. + * + * @author Nicolas Grekas + */ +interface DumperInterface +{ + /** + * Dumps a scalar value. + */ + public function dumpScalar(Cursor $cursor, string $type, string|int|float|bool|null $value): void; + + /** + * Dumps a string. + * + * @param string $str The string being dumped + * @param bool $bin Whether $str is UTF-8 or binary encoded + * @param int $cut The number of characters $str has been cut by + */ + public function dumpString(Cursor $cursor, string $str, bool $bin, int $cut): void; + + /** + * Dumps while entering an hash. + * + * @param int $type A Cursor::HASH_* const for the type of hash + * @param string|int|null $class The object class, resource type or array count + * @param bool $hasChild When the dump of the hash has child item + */ + public function enterHash(Cursor $cursor, int $type, string|int|null $class, bool $hasChild): void; + + /** + * Dumps while leaving an hash. + * + * @param int $type A Cursor::HASH_* const for the type of hash + * @param string|int|null $class The object class, resource type or array count + * @param bool $hasChild When the dump of the hash has child item + * @param int $cut The number of items the hash has been cut by + */ + public function leaveHash(Cursor $cursor, int $type, string|int|null $class, bool $hasChild, int $cut): void; +} diff --git a/vendor/symfony/var-dumper/Cloner/Stub.php b/vendor/symfony/var-dumper/Cloner/Stub.php new file mode 100644 index 0000000..18577f4 --- /dev/null +++ b/vendor/symfony/var-dumper/Cloner/Stub.php @@ -0,0 +1,76 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Cloner; + +/** + * Represents the main properties of a PHP variable. + * + * @author Nicolas Grekas + */ +class Stub +{ + public const TYPE_REF = 1; + public const TYPE_STRING = 2; + public const TYPE_ARRAY = 3; + public const TYPE_OBJECT = 4; + public const TYPE_RESOURCE = 5; + public const TYPE_SCALAR = 6; + + public const STRING_BINARY = 1; + public const STRING_UTF8 = 2; + + public const ARRAY_ASSOC = 1; + public const ARRAY_INDEXED = 2; + + public int $type = self::TYPE_REF; + public string|int|null $class = ''; + public mixed $value = null; + public int $cut = 0; + public int $handle = 0; + public int $refCount = 0; + public int $position = 0; + public array $attr = []; + + /** + * @internal + */ + protected static array $propertyDefaults = []; + + public function __serialize(): array + { + static $noDefault = new \stdClass(); + + if (self::class === static::class) { + $data = []; + foreach ($this as $k => $v) { + $default = self::$propertyDefaults[$this::class][$k] ??= ($p = new \ReflectionProperty($this, $k))->hasDefaultValue() ? $p->getDefaultValue() : ($p->hasType() ? $noDefault : null); + if ($noDefault === $default || $default !== $v) { + $data[$k] = $v; + } + } + + return $data; + } + + return \Closure::bind(function () use ($noDefault) { + $data = []; + foreach ($this as $k => $v) { + $default = self::$propertyDefaults[$this::class][$k] ??= ($p = new \ReflectionProperty($this, $k))->hasDefaultValue() ? $p->getDefaultValue() : ($p->hasType() ? $noDefault : null); + if ($noDefault === $default || $default !== $v) { + $data[$k] = $v; + } + } + + return $data; + }, $this, $this::class)(); + } +} diff --git a/vendor/symfony/var-dumper/Cloner/VarCloner.php b/vendor/symfony/var-dumper/Cloner/VarCloner.php new file mode 100644 index 0000000..6a7ec28 --- /dev/null +++ b/vendor/symfony/var-dumper/Cloner/VarCloner.php @@ -0,0 +1,218 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Cloner; + +/** + * @author Nicolas Grekas + */ +class VarCloner extends AbstractCloner +{ + private static array $arrayCache = []; + + protected function doClone(mixed $var): array + { + $len = 1; // Length of $queue + $pos = 0; // Number of cloned items past the minimum depth + $refsCounter = 0; // Hard references counter + $queue = [[$var]]; // This breadth-first queue is the return value + $hardRefs = []; // Map of original zval ids to stub objects + $objRefs = []; // Map of original object handles to their stub object counterpart + $objects = []; // Keep a ref to objects to ensure their handle cannot be reused while cloning + $resRefs = []; // Map of original resource handles to their stub object counterpart + $maxItems = $this->maxItems; + $maxString = $this->maxString; + $minDepth = $this->minDepth; + $currentDepth = 0; // Current tree depth + $currentDepthFinalIndex = 0; // Final $queue index for current tree depth + $minimumDepthReached = 0 === $minDepth; // Becomes true when minimum tree depth has been reached + $a = null; // Array cast for nested structures + $stub = null; // Stub capturing the main properties of an original item value + // or null if the original value is used directly + + $arrayStub = new Stub(); + $arrayStub->type = Stub::TYPE_ARRAY; + + for ($i = 0; $i < $len; ++$i) { + // Detect when we move on to the next tree depth + if ($i > $currentDepthFinalIndex) { + ++$currentDepth; + $currentDepthFinalIndex = $len - 1; + if ($currentDepth >= $minDepth) { + $minimumDepthReached = true; + } + } + + $vals = $queue[$i]; + foreach ($vals as $k => $v) { + // $v is the original value or a stub object in case of hard references + + $zvalRef = ($r = \ReflectionReference::fromArrayElement($vals, $k)) ? $r->getId() : null; + + if ($zvalRef) { + $vals[$k] = &$stub; // Break hard references to make $queue completely + unset($stub); // independent from the original structure + if (null !== $vals[$k] = $hardRefs[$zvalRef] ?? null) { + $v = $vals[$k]; + if ($v->value instanceof Stub && (Stub::TYPE_OBJECT === $v->value->type || Stub::TYPE_RESOURCE === $v->value->type)) { + ++$v->value->refCount; + } + ++$v->refCount; + continue; + } + $vals[$k] = new Stub(); + $vals[$k]->value = $v; + $vals[$k]->handle = ++$refsCounter; + $hardRefs[$zvalRef] = $vals[$k]; + } + // Create $stub when the original value $v cannot be used directly + // If $v is a nested structure, put that structure in array $a + switch (true) { + case null === $v: + case \is_bool($v): + case \is_int($v): + case \is_float($v): + continue 2; + case \is_string($v): + if ('' === $v) { + continue 2; + } + if (!preg_match('//u', $v)) { + $stub = new Stub(); + $stub->type = Stub::TYPE_STRING; + $stub->class = Stub::STRING_BINARY; + if (0 <= $maxString && 0 < $cut = \strlen($v) - $maxString) { + $stub->cut = $cut; + $stub->value = substr($v, 0, -$cut); + } else { + $stub->value = $v; + } + } elseif (0 <= $maxString && isset($v[1 + ($maxString >> 2)]) && 0 < $cut = mb_strlen($v, 'UTF-8') - $maxString) { + $stub = new Stub(); + $stub->type = Stub::TYPE_STRING; + $stub->class = Stub::STRING_UTF8; + $stub->cut = $cut; + $stub->value = mb_substr($v, 0, $maxString, 'UTF-8'); + } else { + continue 2; + } + $a = null; + break; + + case \is_array($v): + if (!$v) { + continue 2; + } + $stub = $arrayStub; + + $stub->class = array_is_list($v) ? Stub::ARRAY_INDEXED : Stub::ARRAY_ASSOC; + $a = $v; + break; + + case \is_object($v): + if (empty($objRefs[$h = spl_object_id($v)])) { + $stub = new Stub(); + $stub->type = Stub::TYPE_OBJECT; + $stub->class = $v::class; + $stub->value = $v; + $stub->handle = $h; + $a = $this->castObject($stub, 0 < $i); + if ($v !== $stub->value) { + if (Stub::TYPE_OBJECT !== $stub->type || null === $stub->value) { + break; + } + $stub->handle = $h = spl_object_id($stub->value); + } + $stub->value = null; + if (0 <= $maxItems && $maxItems <= $pos && $minimumDepthReached) { + $stub->cut = \count($a); + $a = null; + } + } + if (empty($objRefs[$h])) { + $objRefs[$h] = $stub; + $objects[] = $v; + } else { + $stub = $objRefs[$h]; + ++$stub->refCount; + $a = null; + } + break; + + default: // resource + if (empty($resRefs[$h = (int) $v])) { + $stub = new Stub(); + $stub->type = Stub::TYPE_RESOURCE; + if ('Unknown' === $stub->class = @get_resource_type($v)) { + $stub->class = 'Closed'; + } + $stub->value = $v; + $stub->handle = $h; + $a = $this->castResource($stub, 0 < $i); + $stub->value = null; + if (0 <= $maxItems && $maxItems <= $pos && $minimumDepthReached) { + $stub->cut = \count($a); + $a = null; + } + } + if (empty($resRefs[$h])) { + $resRefs[$h] = $stub; + } else { + $stub = $resRefs[$h]; + ++$stub->refCount; + $a = null; + } + break; + } + + if ($a) { + if (!$minimumDepthReached || 0 > $maxItems) { + $queue[$len] = $a; + $stub->position = $len++; + } elseif ($pos < $maxItems) { + if ($maxItems < $pos += \count($a)) { + $a = \array_slice($a, 0, $maxItems - $pos, true); + if ($stub->cut >= 0) { + $stub->cut += $pos - $maxItems; + } + } + $queue[$len] = $a; + $stub->position = $len++; + } elseif ($stub->cut >= 0) { + $stub->cut += \count($a); + $stub->position = 0; + } + } + + if ($arrayStub === $stub) { + if ($arrayStub->cut) { + $stub = [$arrayStub->cut, $arrayStub->class => $arrayStub->position]; + $arrayStub->cut = 0; + } elseif (isset(self::$arrayCache[$arrayStub->class][$arrayStub->position])) { + $stub = self::$arrayCache[$arrayStub->class][$arrayStub->position]; + } else { + self::$arrayCache[$arrayStub->class][$arrayStub->position] = $stub = [$arrayStub->class => $arrayStub->position]; + } + } + + if (!$zvalRef) { + $vals[$k] = $stub; + } else { + $hardRefs[$zvalRef]->value = $stub; + } + } + + $queue[$i] = $vals; + } + + return $queue; + } +} diff --git a/vendor/symfony/var-dumper/Command/Descriptor/CliDescriptor.php b/vendor/symfony/var-dumper/Command/Descriptor/CliDescriptor.php new file mode 100644 index 0000000..8ea85d5 --- /dev/null +++ b/vendor/symfony/var-dumper/Command/Descriptor/CliDescriptor.php @@ -0,0 +1,84 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Command\Descriptor; + +use Symfony\Component\Console\Formatter\OutputFormatter; +use Symfony\Component\Console\Input\ArrayInput; +use Symfony\Component\Console\Output\OutputInterface; +use Symfony\Component\Console\Style\SymfonyStyle; +use Symfony\Component\VarDumper\Cloner\Data; +use Symfony\Component\VarDumper\Dumper\CliDumper; + +/** + * Describe collected data clones for cli output. + * + * @author Maxime Steinhausser + * + * @final + */ +class CliDescriptor implements DumpDescriptorInterface +{ + private mixed $lastIdentifier = null; + + public function __construct( + private CliDumper $dumper, + ) { + } + + public function describe(OutputInterface $output, Data $data, array $context, int $clientId): void + { + $io = $output instanceof SymfonyStyle ? $output : new SymfonyStyle(new ArrayInput([]), $output); + $this->dumper->setColors($output->isDecorated()); + + $rows = [['date', date('r', (int) $context['timestamp'])]]; + $lastIdentifier = $this->lastIdentifier; + $this->lastIdentifier = $clientId; + + $section = "Received from client #$clientId"; + if (isset($context['request'])) { + $request = $context['request']; + $this->lastIdentifier = $request['identifier']; + $section = \sprintf('%s %s', self::escape($request['method']), self::escape($request['uri'])); + if ($controller = $request['controller']) { + $rows[] = ['controller', OutputFormatter::escape(rtrim($this->dumper->dump($controller, true), "\n"))]; + } + } elseif (isset($context['cli'])) { + $this->lastIdentifier = $context['cli']['identifier']; + $section = '$ '.self::escape($context['cli']['command_line']); + } + + if ($this->lastIdentifier !== $lastIdentifier) { + $io->section($section); + } + + if (isset($context['source'])) { + $source = $context['source']; + $sourceInfo = \sprintf('%s on line %d', self::escape($source['name']), $source['line']); + if ($fileLink = $source['file_link'] ?? null) { + $sourceInfo = \sprintf('%s', self::escape($fileLink), $sourceInfo); + } + $rows[] = ['source', $sourceInfo]; + $file = $source['file_relative'] ?? $source['file']; + $rows[] = ['file', self::escape($file)]; + } + + $io->table([], $rows); + + $this->dumper->dump($data); + $io->newLine(); + } + + private static function escape(string $value): string + { + return OutputFormatter::escape(preg_replace('/[\x00-\x08\x0B-\x1F\x7F]|\xC2[\x80-\x9F]/', '', $value)); + } +} diff --git a/vendor/symfony/var-dumper/Command/Descriptor/DumpDescriptorInterface.php b/vendor/symfony/var-dumper/Command/Descriptor/DumpDescriptorInterface.php new file mode 100644 index 0000000..267d27b --- /dev/null +++ b/vendor/symfony/var-dumper/Command/Descriptor/DumpDescriptorInterface.php @@ -0,0 +1,23 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Command\Descriptor; + +use Symfony\Component\Console\Output\OutputInterface; +use Symfony\Component\VarDumper\Cloner\Data; + +/** + * @author Maxime Steinhausser + */ +interface DumpDescriptorInterface +{ + public function describe(OutputInterface $output, Data $data, array $context, int $clientId): void; +} diff --git a/vendor/symfony/var-dumper/Command/Descriptor/HtmlDescriptor.php b/vendor/symfony/var-dumper/Command/Descriptor/HtmlDescriptor.php new file mode 100644 index 0000000..e602b59 --- /dev/null +++ b/vendor/symfony/var-dumper/Command/Descriptor/HtmlDescriptor.php @@ -0,0 +1,123 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Command\Descriptor; + +use Symfony\Component\Console\Output\OutputInterface; +use Symfony\Component\VarDumper\Cloner\Data; +use Symfony\Component\VarDumper\Dumper\HtmlDumper; + +/** + * Describe collected data clones for html output. + * + * @author Maxime Steinhausser + * + * @final + */ +class HtmlDescriptor implements DumpDescriptorInterface +{ + private bool $initialized = false; + + public function __construct( + private HtmlDumper $dumper, + ) { + } + + public function describe(OutputInterface $output, Data $data, array $context, int $clientId): void + { + if (!$this->initialized) { + $styles = file_get_contents(__DIR__.'/../../Resources/css/htmlDescriptor.css'); + $scripts = file_get_contents(__DIR__.'/../../Resources/js/htmlDescriptor.js'); + $output->writeln(""); + $this->initialized = true; + } + + $title = '-'; + if (isset($context['request'])) { + $request = $context['request']; + $controller = "{$this->dumper->dump($request['controller'], true, ['maxDepth' => 0])}"; + $title = \sprintf('%s %s', self::escape($request['method']), $uri = self::escape($request['uri']), $uri); + $dedupIdentifier = self::escape($request['identifier']); + } elseif (isset($context['cli'])) { + $title = '$ '.self::escape($context['cli']['command_line']); + $dedupIdentifier = self::escape($context['cli']['identifier']); + } else { + $dedupIdentifier = bin2hex(random_bytes(4)); + } + + $sourceDescription = ''; + if (isset($context['source'])) { + $source = $context['source']; + $projectDir = isset($source['project_dir']) ? self::escape($source['project_dir']) : null; + $sourceDescription = \sprintf('%s on line %d', self::escape($source['name']), $source['line']); + if (isset($source['file_link'])) { + $sourceDescription = \sprintf('%s', self::escape($source['file_link']), $sourceDescription); + } + } + + $isoDate = $this->extractDate($context, 'c'); + $tags = array_filter([ + 'controller' => $controller ?? null, + 'project dir' => $projectDir ?? null, + ]); + + $output->writeln(<< +
+
+

$title

+ +
+ {$this->renderTags($tags)} +
+
+

+ $sourceDescription +

+ {$this->dumper->dump($data, true)} +
+ + HTML + ); + } + + private function extractDate(array $context, string $format = 'r'): string + { + return date($format, (int) $context['timestamp']); + } + + private function renderTags(array $tags): string + { + if (!$tags) { + return ''; + } + + $renderedTags = ''; + foreach ($tags as $key => $value) { + $renderedTags .= \sprintf('
  • %s%s
  • ', $key, $value); + } + + return << +
      + $renderedTags +
    + + HTML; + } + + private static function escape(string $value): string + { + return htmlspecialchars($value, \ENT_QUOTES | \ENT_SUBSTITUTE, 'UTF-8'); + } +} diff --git a/vendor/symfony/var-dumper/Command/ServerDumpCommand.php b/vendor/symfony/var-dumper/Command/ServerDumpCommand.php new file mode 100644 index 0000000..e93e83f --- /dev/null +++ b/vendor/symfony/var-dumper/Command/ServerDumpCommand.php @@ -0,0 +1,111 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Command; + +use Symfony\Component\Console\Attribute\AsCommand; +use Symfony\Component\Console\Command\Command; +use Symfony\Component\Console\Completion\CompletionInput; +use Symfony\Component\Console\Completion\CompletionSuggestions; +use Symfony\Component\Console\Exception\InvalidArgumentException; +use Symfony\Component\Console\Input\InputInterface; +use Symfony\Component\Console\Input\InputOption; +use Symfony\Component\Console\Output\OutputInterface; +use Symfony\Component\Console\Style\SymfonyStyle; +use Symfony\Component\VarDumper\Cloner\Data; +use Symfony\Component\VarDumper\Command\Descriptor\CliDescriptor; +use Symfony\Component\VarDumper\Command\Descriptor\DumpDescriptorInterface; +use Symfony\Component\VarDumper\Command\Descriptor\HtmlDescriptor; +use Symfony\Component\VarDumper\Dumper\CliDumper; +use Symfony\Component\VarDumper\Dumper\HtmlDumper; +use Symfony\Component\VarDumper\Server\DumpServer; + +/** + * Starts a dump server to collect and output dumps on a single place with multiple formats support. + * + * @author Maxime Steinhausser + * + * @final + */ +#[AsCommand(name: 'server:dump', description: 'Start a dump server that collects and displays dumps in a single place')] +class ServerDumpCommand extends Command +{ + /** @var DumpDescriptorInterface[] */ + private array $descriptors; + + public function __construct( + private DumpServer $server, + array $descriptors = [], + ) { + $this->descriptors = $descriptors + [ + 'cli' => new CliDescriptor(new CliDumper()), + 'html' => new HtmlDescriptor(new HtmlDumper()), + ]; + + parent::__construct(); + } + + protected function configure(): void + { + $this + ->addOption('format', null, InputOption::VALUE_REQUIRED, \sprintf('The output format (%s)', implode(', ', $this->getAvailableFormats())), 'cli') + ->setHelp(<<<'EOF' + %command.name% starts a dump server that collects and displays + dumps in a single place for debugging you application: + + php %command.full_name% + + You can consult dumped data in HTML format in your browser by providing the --format=html option + and redirecting the output to a file: + + php %command.full_name% --format="html" > dump.html + + EOF + ) + ; + } + + protected function execute(InputInterface $input, OutputInterface $output): int + { + $io = new SymfonyStyle($input, $output); + $format = $input->getOption('format'); + + if (!$descriptor = $this->descriptors[$format] ?? null) { + throw new InvalidArgumentException(\sprintf('Unsupported format "%s".', $format)); + } + + $errorIo = $io->getErrorStyle(); + $errorIo->title('Symfony Var Dumper Server'); + + $this->server->start(); + + $errorIo->success(\sprintf('Server listening on %s', $this->server->getHost())); + $errorIo->comment('Quit the server with CONTROL-C.'); + + $this->server->listen(static function (Data $data, array $context, int $clientId) use ($descriptor, $io) { + $descriptor->describe($io, $data, $context, $clientId); + }); + + return 0; + } + + public function complete(CompletionInput $input, CompletionSuggestions $suggestions): void + { + if ($input->mustSuggestOptionValuesFor('format')) { + $suggestions->suggestValues($this->getAvailableFormats()); + } + } + + private function getAvailableFormats(): array + { + return array_keys($this->descriptors); + } +} diff --git a/vendor/symfony/var-dumper/Dumper/AbstractDumper.php b/vendor/symfony/var-dumper/Dumper/AbstractDumper.php new file mode 100644 index 0000000..593a2c6 --- /dev/null +++ b/vendor/symfony/var-dumper/Dumper/AbstractDumper.php @@ -0,0 +1,232 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Dumper; + +use Symfony\Component\VarDumper\Cloner\Data; +use Symfony\Component\VarDumper\Cloner\DumperInterface; + +/** + * Abstract mechanism for dumping a Data object. + * + * @author Nicolas Grekas + */ +abstract class AbstractDumper implements DataDumperInterface, DumperInterface +{ + public const DUMP_LIGHT_ARRAY = 1; + public const DUMP_STRING_LENGTH = 2; + public const DUMP_COMMA_SEPARATOR = 4; + public const DUMP_TRAILING_COMMA = 8; + + /** @var callable|resource|string|null */ + public static $defaultOutput = 'php://output'; + + protected string $line = ''; + /** @var callable|null */ + protected $lineDumper; + /** @var resource|null */ + protected $outputStream; + protected string $decimalPoint = '.'; + protected string $indentPad = ' '; + + private string $charset = ''; + + /** + * @param callable|resource|string|null $output A line dumper callable, an opened stream or an output path, defaults to static::$defaultOutput + * @param string|null $charset The default character encoding to use for non-UTF8 strings + * @param int $flags A bit field of static::DUMP_* constants to fine tune dumps representation + */ + public function __construct( + $output = null, + ?string $charset = null, + protected int $flags = 0, + ) { + $this->setCharset($charset ?: \ini_get('php.output_encoding') ?: \ini_get('default_charset') ?: 'UTF-8'); + $this->setOutput($output ?: static::$defaultOutput); + if (!$output && \is_string(static::$defaultOutput)) { + static::$defaultOutput = $this->outputStream; + } + } + + /** + * Sets the output destination of the dumps. + * + * @param callable|resource|string|null $output A line dumper callable, an opened stream or an output path + * + * @return callable|resource|string|null The previous output destination + */ + public function setOutput($output) + { + $prev = $this->outputStream ?? $this->lineDumper; + + if (\is_callable($output)) { + $this->outputStream = null; + $this->lineDumper = $output; + } else { + if (\is_string($output)) { + $output = fopen($output, 'w'); + } + $this->outputStream = $output; + $this->lineDumper = $this->echoLine(...); + } + + return $prev; + } + + /** + * Sets the default character encoding to use for non-UTF8 strings. + * + * @return string The previous charset + */ + public function setCharset(string $charset): string + { + $prev = $this->charset; + + $charset = strtoupper($charset); + $charset = 'UTF-8' === $charset || 'UTF8' === $charset ? 'CP1252' : $charset; + + $this->charset = $charset; + + return $prev; + } + + /** + * Sets the indentation pad string. + * + * @param string $pad A string that will be prepended to dumped lines, repeated by nesting level + * + * @return string The previous indent pad + */ + public function setIndentPad(string $pad): string + { + $prev = $this->indentPad; + $this->indentPad = $pad; + + return $prev; + } + + /** + * Dumps a Data object. + * + * @param callable|resource|string|true|null $output A line dumper callable, an opened stream, an output path or true to return the dump + * + * @return string|null The dump as string when $output is true + */ + public function dump(Data $data, $output = null): ?string + { + if ($locale = $this->flags & (self::DUMP_COMMA_SEPARATOR | self::DUMP_TRAILING_COMMA) ? setlocale(\LC_NUMERIC, 0) : null) { + setlocale(\LC_NUMERIC, 'C'); + } + + if ($returnDump = true === $output) { + $output = fopen('php://memory', 'r+'); + } + if ($output) { + $prevOutput = $this->setOutput($output); + } + try { + $data->dump($this); + $this->dumpLine(-1); + + if ($returnDump) { + $result = stream_get_contents($output, -1, 0); + fclose($output); + + return $result; + } + } finally { + if ($output) { + $this->setOutput($prevOutput); + } + if ($locale) { + setlocale(\LC_NUMERIC, $locale); + } + } + + return null; + } + + /** + * Dumps the current line. + * + * @param int $depth The recursive depth in the dumped structure for the line being dumped, + * or -1 to signal the end-of-dump to the line dumper callable + */ + protected function dumpLine(int $depth): void + { + ($this->lineDumper)($this->line, $depth, $this->indentPad); + $this->line = ''; + } + + /** + * Generic line dumper callback. + */ + protected function echoLine(string $line, int $depth, string $indentPad): void + { + if (-1 !== $depth) { + fwrite($this->outputStream, str_repeat($indentPad, $depth).$line."\n"); + } + } + + /** + * Converts a non-UTF-8 string to UTF-8. + */ + protected function utf8Encode(?string $s): ?string + { + if (null === $s || preg_match('//u', $s)) { + return $s; + } + + if (\function_exists('iconv')) { + if (false !== $c = @iconv($this->charset, 'UTF-8', $s)) { + return $c; + } + if ('CP1252' !== $this->charset && false !== $c = @iconv('CP1252', 'UTF-8', $s)) { + return $c; + } + } + + $s .= $s; + $len = \strlen($s); + $mapCp1252 = false; + + for ($i = $len >> 1, $j = 0; $i < $len; ++$i, ++$j) { + if ($s[$i] < "\x80") { + $s[$j] = $s[$i]; + } elseif ($s[$i] < "\xC0") { + $s[$j] = "\xC2"; + $s[++$j] = $s[$i]; + if ($s[$i] < "\xA0") { + $mapCp1252 = true; + } + } else { + $s[$j] = "\xC3"; + $s[++$j] = \chr(\ord($s[$i]) - 64); + } + } + + $s = substr($s, 0, $j); + + if (!$mapCp1252) { + return $s; + } + + return strtr($s, [ + "\xC2\x80" => '€', "\xC2\x82" => '‚', "\xC2\x83" => 'ƒ', "\xC2\x84" => '„', + "\xC2\x85" => '…', "\xC2\x86" => '†', "\xC2\x87" => '‡', "\xC2\x88" => 'ˆ', + "\xC2\x89" => '‰', "\xC2\x8A" => 'Š', "\xC2\x8B" => '‹', "\xC2\x8C" => 'Œ', + "\xC2\x8D" => 'Ž', "\xC2\x91" => '‘', "\xC2\x92" => '’', "\xC2\x93" => '“', + "\xC2\x94" => '”', "\xC2\x95" => '•', "\xC2\x96" => '–', "\xC2\x97" => '—', + "\xC2\x98" => '˜', "\xC2\x99" => '™', "\xC2\x9A" => 'š', "\xC2\x9B" => '›', + "\xC2\x9C" => 'œ', "\xC2\x9E" => 'ž', + ]); + } +} diff --git a/vendor/symfony/var-dumper/Dumper/CliDumper.php b/vendor/symfony/var-dumper/Dumper/CliDumper.php new file mode 100644 index 0000000..3e65a24 --- /dev/null +++ b/vendor/symfony/var-dumper/Dumper/CliDumper.php @@ -0,0 +1,678 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Dumper; + +use Symfony\Component\ErrorHandler\ErrorRenderer\FileLinkFormatter; +use Symfony\Component\VarDumper\Cloner\Cursor; +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * CliDumper dumps variables for command line output. + * + * @author Nicolas Grekas + */ +class CliDumper extends AbstractDumper +{ + public static bool $defaultColors; + /** @var callable|resource|string|null */ + public static $defaultOutput = 'php://stdout'; + + protected bool $colors; + protected int $maxStringWidth = 0; + protected array $styles = [ + // See http://en.wikipedia.org/wiki/ANSI_escape_code#graphics + 'default' => '0;38;5;208', + 'num' => '1;38;5;38', + 'const' => '1;38;5;208', + 'virtual' => '3', + 'str' => '1;38;5;113', + 'note' => '38;5;38', + 'ref' => '38;5;247', + 'public' => '39', + 'protected' => '39', + 'private' => '39', + 'meta' => '38;5;170', + 'key' => '38;5;113', + 'index' => '38;5;38', + ]; + + protected static string $controlCharsRx = '/[\x00-\x1F\x7F]+/'; + protected static array $controlCharsMap = [ + "\t" => '\t', + "\n" => '\n', + "\v" => '\v', + "\f" => '\f', + "\r" => '\r', + "\033" => '\e', + ]; + protected static string $unicodeCharsRx = "/[\u{0080}-\u{009F}\u{00A0}\u{00AD}\u{034F}\u{061C}\u{115F}\u{1160}\u{17B4}\u{17B5}\u{180E}\u{2000}-\u{200F}\u{202F}\u{205F}\u{2060}-\u{2064}\u{206A}-\u{206F}\u{3000}\u{2800}\u{3164}\u{FEFF}\u{FFA0}\u{1D159}\u{1D173}-\u{1D17A}]/u"; + + protected bool $collapseNextHash = false; + protected bool $expandNextHash = false; + + private array $displayOptions = [ + 'fileLinkFormat' => null, + ]; + + private bool $handlesHrefGracefully; + + public function __construct($output = null, ?string $charset = null, int $flags = 0) + { + parent::__construct($output, $charset, $flags); + + if ('\\' === \DIRECTORY_SEPARATOR && !$this->isWindowsTrueColor()) { + // Use only the base 16 xterm colors when using ANSICON or standard Windows 10 CLI + $this->setStyles([ + 'default' => '31', + 'num' => '1;34', + 'const' => '1;31', + 'str' => '1;32', + 'note' => '34', + 'ref' => '1;30', + 'meta' => '35', + 'key' => '32', + 'index' => '34', + ]); + } + + $this->displayOptions['fileLinkFormat'] = class_exists(FileLinkFormatter::class) ? new FileLinkFormatter() : (\ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format') ?: 'file://%f#L%l'); + } + + /** + * Enables/disables colored output. + */ + public function setColors(bool $colors): void + { + $this->colors = $colors; + } + + /** + * Sets the maximum number of characters per line for dumped strings. + */ + public function setMaxStringWidth(int $maxStringWidth): void + { + $this->maxStringWidth = $maxStringWidth; + } + + /** + * Configures styles. + * + * @param array $styles A map of style names to style definitions + */ + public function setStyles(array $styles): void + { + $this->styles = $styles + $this->styles; + } + + /** + * Configures display options. + * + * @param array $displayOptions A map of display options to customize the behavior + */ + public function setDisplayOptions(array $displayOptions): void + { + $this->displayOptions = $displayOptions + $this->displayOptions; + } + + public function dumpScalar(Cursor $cursor, string $type, string|int|float|bool|null $value): void + { + $this->dumpKey($cursor); + $this->collapseNextHash = $this->expandNextHash = false; + + $style = 'const'; + $attr = $cursor->attr; + + switch ($type) { + case 'default': + $style = 'default'; + break; + + case 'label': + $this->styles += ['label' => $this->styles['default']]; + $style = 'label'; + break; + + case 'integer': + $style = 'num'; + + if (isset($this->styles['integer'])) { + $style = 'integer'; + } + + break; + + case 'double': + $style = 'num'; + + if (isset($this->styles['float'])) { + $style = 'float'; + } + + $value = match (true) { + \INF === $value => 'INF', + -\INF === $value => '-INF', + is_nan($value) => 'NAN', + default => !str_contains($value = (string) $value, $this->decimalPoint) ? $value .= $this->decimalPoint.'0' : $value, + }; + break; + + case 'NULL': + $value = 'null'; + break; + + case 'boolean': + $value = $value ? 'true' : 'false'; + break; + + default: + $attr += ['value' => $this->utf8Encode($value)]; + $value = $this->utf8Encode($type); + break; + } + + $this->line .= $this->style($style, $value, $attr); + + $this->endValue($cursor); + } + + public function dumpString(Cursor $cursor, string $str, bool $bin, int $cut): void + { + $this->dumpKey($cursor); + $this->collapseNextHash = $this->expandNextHash = false; + $attr = $cursor->attr; + + if ($bin) { + $str = $this->utf8Encode($str); + } + if ('' === $str) { + $this->line .= '""'; + if ($cut) { + $this->line .= '…'.$cut; + } + $this->endValue($cursor); + } else { + $attr += [ + 'length' => 0 <= $cut ? mb_strlen($str, 'UTF-8') + $cut : 0, + 'binary' => $bin, + ]; + $str = $bin && str_contains($str, "\0") ? [$str] : explode("\n", $str); + if (isset($str[1]) && !isset($str[2]) && !isset($str[1][0])) { + unset($str[1]); + $str[0] .= "\n"; + } + $m = \count($str) - 1; + $i = $lineCut = 0; + + if (self::DUMP_STRING_LENGTH & $this->flags) { + $this->line .= '('.$attr['length'].') '; + } + if ($bin) { + $this->line .= 'b'; + } + + if ($m) { + $this->line .= '"""'; + $this->dumpLine($cursor->depth); + } else { + $this->line .= '"'; + } + + foreach ($str as $str) { + if ($i < $m) { + $str .= "\n"; + } + if (0 < $this->maxStringWidth && $this->maxStringWidth < $len = mb_strlen($str, 'UTF-8')) { + $str = mb_substr($str, 0, $this->maxStringWidth, 'UTF-8'); + $lineCut = $len - $this->maxStringWidth; + } + if ($m && 0 < $cursor->depth) { + $this->line .= $this->indentPad; + } + if ('' !== $str) { + $this->line .= $this->style('str', $str, $attr); + } + if ($i++ == $m) { + if ($m) { + if ('' !== $str) { + $this->dumpLine($cursor->depth); + if (0 < $cursor->depth) { + $this->line .= $this->indentPad; + } + } + $this->line .= '"""'; + } else { + $this->line .= '"'; + } + if ($cut < 0) { + $this->line .= '…'; + $lineCut = 0; + } elseif ($cut) { + $lineCut += $cut; + } + } + if ($lineCut) { + $this->line .= '…'.$lineCut; + $lineCut = 0; + } + + if ($i > $m) { + $this->endValue($cursor); + } else { + $this->dumpLine($cursor->depth); + } + } + } + } + + public function enterHash(Cursor $cursor, int $type, string|int|null $class, bool $hasChild): void + { + $this->colors ??= $this->supportsColors(); + + $this->dumpKey($cursor); + $this->expandNextHash = false; + $attr = $cursor->attr; + + if ($this->collapseNextHash) { + $cursor->skipChildren = true; + $this->collapseNextHash = $hasChild = false; + } + + $class = $this->utf8Encode($class); + if (Cursor::HASH_OBJECT === $type) { + $prefix = $class && 'stdClass' !== $class ? $this->style('note', $class, $attr).(empty($attr['cut_hash']) ? ' {' : '') : '{'; + } elseif (Cursor::HASH_RESOURCE === $type) { + $prefix = $this->style('note', $class.' resource', $attr).($hasChild ? ' {' : ' '); + } else { + $prefix = $class && !(self::DUMP_LIGHT_ARRAY & $this->flags) ? $this->style('note', 'array:'.$class).' [' : '['; + } + + if (($cursor->softRefCount || 0 < $cursor->softRefHandle) && empty($attr['cut_hash'])) { + $prefix .= $this->style('ref', (Cursor::HASH_RESOURCE === $type ? '@' : '#').(0 < $cursor->softRefHandle ? $cursor->softRefHandle : $cursor->softRefTo), ['count' => $cursor->softRefCount]); + } elseif ($cursor->hardRefTo && !$cursor->refIndex && $class) { + $prefix .= $this->style('ref', '&'.$cursor->hardRefTo, ['count' => $cursor->hardRefCount]); + } elseif (!$hasChild && Cursor::HASH_RESOURCE === $type) { + $prefix = substr($prefix, 0, -1); + } + + $this->line .= $prefix; + + if ($hasChild) { + $this->dumpLine($cursor->depth); + } + } + + public function leaveHash(Cursor $cursor, int $type, string|int|null $class, bool $hasChild, int $cut): void + { + if (empty($cursor->attr['cut_hash'])) { + $this->dumpEllipsis($cursor, $hasChild, $cut); + $this->line .= Cursor::HASH_OBJECT === $type ? '}' : (Cursor::HASH_RESOURCE !== $type ? ']' : ($hasChild ? '}' : '')); + } + + $this->endValue($cursor); + } + + /** + * Dumps an ellipsis for cut children. + * + * @param bool $hasChild When the dump of the hash has child item + * @param int $cut The number of items the hash has been cut by + */ + protected function dumpEllipsis(Cursor $cursor, bool $hasChild, int $cut): void + { + if ($cut) { + $this->line .= ' …'; + if (0 < $cut) { + $this->line .= $cut; + } + if ($hasChild) { + $this->dumpLine($cursor->depth + 1); + } + } + } + + /** + * Dumps a key in a hash structure. + */ + protected function dumpKey(Cursor $cursor): void + { + if (null !== $key = $cursor->hashKey) { + if ($cursor->hashKeyIsBinary) { + $key = $this->utf8Encode($key); + } + $attr = [ + 'binary' => $cursor->hashKeyIsBinary, + 'virtual' => $cursor->attr['virtual'] ?? false, + ]; + $bin = $cursor->hashKeyIsBinary ? 'b' : ''; + $style = 'key'; + switch ($cursor->hashType) { + default: + case Cursor::HASH_INDEXED: + if (self::DUMP_LIGHT_ARRAY & $this->flags) { + break; + } + $style = 'index'; + // no break + case Cursor::HASH_ASSOC: + if (\is_int($key)) { + $this->line .= $this->style($style, $key).' => '; + } else { + $this->line .= $bin.'"'.$this->style($style, $key).'" => '; + } + break; + + case Cursor::HASH_RESOURCE: + $key = "\0~\0".$key; + // no break + case Cursor::HASH_OBJECT: + if (!isset($key[0]) || "\0" !== $key[0]) { + $this->line .= '+'.$bin.$this->style('public', $key, $attr).': '; + } elseif (0 < strpos($key, "\0", 1)) { + $key = explode("\0", substr($key, 1), 2); + + switch ($key[0][0]) { + case '+': // User inserted keys + $attr['dynamic'] = true; + $this->line .= '+'.$bin.'"'.$this->style('public', $key[1], $attr).'": '; + break 2; + case '~': + $style = 'meta'; + if (isset($key[0][1])) { + parse_str(substr($key[0], 1), $attr); + $attr += ['binary' => $cursor->hashKeyIsBinary]; + } + break; + case '*': + $style = 'protected'; + $bin = '#'.$bin; + break; + default: + $attr['class'] = $key[0]; + $style = 'private'; + $bin = '-'.$bin; + break; + } + + if (isset($attr['collapse'])) { + if ($attr['collapse']) { + $this->collapseNextHash = true; + } else { + $this->expandNextHash = true; + } + } + + $this->line .= $bin.$this->style($style, $key[1], $attr).($attr['separator'] ?? ': '); + } else { + // This case should not happen + $this->line .= '-'.$bin.'"'.$this->style('private', $key, ['class' => '']).'": '; + } + break; + } + + if ($cursor->hardRefTo) { + $this->line .= $this->style('ref', '&'.($cursor->hardRefCount ? $cursor->hardRefTo : ''), ['count' => $cursor->hardRefCount]).' '; + } + } + } + + /** + * Decorates a value with some style. + * + * @param string $style The type of style being applied + * @param string $value The value being styled + * @param array $attr Optional context information + */ + protected function style(string $style, string $value, array $attr = []): string + { + $this->colors ??= $this->supportsColors(); + + $this->handlesHrefGracefully ??= 'JetBrains-JediTerm' !== getenv('TERMINAL_EMULATOR') + && (!getenv('KONSOLE_VERSION') || (int) getenv('KONSOLE_VERSION') > 201100) + && !isset($_SERVER['IDEA_INITIAL_DIRECTORY']); + + if (isset($attr['ellipsis'], $attr['ellipsis-type'])) { + $prefix = substr($value, 0, -$attr['ellipsis']); + if ('cli' === \PHP_SAPI && 'path' === $attr['ellipsis-type'] && isset($_SERVER[$pwd = '\\' === \DIRECTORY_SEPARATOR ? 'CD' : 'PWD']) && str_starts_with($prefix, $_SERVER[$pwd])) { + $prefix = '.'.substr($prefix, \strlen($_SERVER[$pwd])); + } + if (!empty($attr['ellipsis-tail'])) { + $prefix .= substr($value, -$attr['ellipsis'], $attr['ellipsis-tail']); + $value = substr($value, -$attr['ellipsis'] + $attr['ellipsis-tail']); + } else { + $value = substr($value, -$attr['ellipsis']); + } + + $value = $this->style('default', $prefix).$this->style($style, $value); + + goto href; + } + + $map = static::$controlCharsMap; + $startCchr = $this->colors ? "\033[m\033[{$this->styles['default']}m" : ''; + $endCchr = $this->colors ? "\033[m\033[{$this->styles[$style]}m" : ''; + $value = preg_replace_callback(static::$controlCharsRx, static function ($c) use ($map, $startCchr, $endCchr) { + $s = $startCchr; + $c = $c[$i = 0]; + do { + $s .= $map[$c[$i]] ?? \sprintf('\x%02X', \ord($c[$i])); + } while (isset($c[++$i])); + + return $s.$endCchr; + }, $value, -1, $cchrCount); + + if (!($attr['binary'] ?? false)) { + $value = preg_replace_callback(static::$unicodeCharsRx, static function ($c) use (&$cchrCount, $startCchr, $endCchr) { + ++$cchrCount; + + return $startCchr.'\u{'.strtoupper(dechex(mb_ord($c[0]))).'}'.$endCchr; + }, $value); + } + + if ($this->colors && '' !== $value) { + if ($cchrCount && "\033" === $value[0]) { + $value = substr($value, \strlen($startCchr)); + } else { + $value = "\033[{$this->styles[$style]}m".$value; + } + if ($cchrCount && str_ends_with($value, $endCchr)) { + $value = substr($value, 0, -\strlen($endCchr)); + } else { + $value .= "\033[{$this->styles['default']}m"; + } + } + + href: + if ($this->colors && $this->handlesHrefGracefully) { + if (isset($attr['file']) && $href = $this->getSourceLink($attr['file'], $attr['line'] ?? 0)) { + if ('note' === $style) { + $value .= "\033]8;;{$href}\033\\^\033]8;;\033\\"; + } else { + $attr['href'] = $href; + } + } + if (isset($attr['href'])) { + if ('label' === $style) { + $value .= '^'; + } + $value = "\033]8;;{$attr['href']}\033\\{$value}\033]8;;\033\\"; + } + } + + if ('label' === $style && '' !== $value) { + $value .= ' '; + } + if ($this->colors && ($attr['virtual'] ?? false)) { + $value = "\033[{$this->styles['virtual']}m".$value; + } + + return $value; + } + + protected function supportsColors(): bool + { + if ($this->outputStream !== static::$defaultOutput) { + return $this->hasColorSupport($this->getColorSupportStream()); + } + if (isset(static::$defaultColors)) { + return static::$defaultColors; + } + if (isset($_SERVER['argv'][1])) { + $colors = $_SERVER['argv']; + $i = \count($colors); + while (--$i > 0) { + if (isset($colors[$i][5])) { + switch ($colors[$i]) { + case '--ansi': + case '--color': + case '--color=yes': + case '--color=force': + case '--color=always': + case '--colors=always': + return static::$defaultColors = true; + + case '--no-ansi': + case '--color=no': + case '--color=none': + case '--color=never': + case '--colors=never': + return static::$defaultColors = false; + } + } + } + } + + return static::$defaultColors = $this->hasColorSupport($this->getColorSupportStream()); + } + + protected function dumpLine(int $depth, bool $endOfValue = false): void + { + if ($this->colors ??= $this->supportsColors()) { + $this->line = \sprintf("\033[%sm%s\033[m", $this->styles['default'], $this->line); + } + parent::dumpLine($depth); + } + + protected function endValue(Cursor $cursor): void + { + if (-1 === $cursor->hashType) { + return; + } + + if (Stub::ARRAY_INDEXED === $cursor->hashType || Stub::ARRAY_ASSOC === $cursor->hashType) { + if (self::DUMP_TRAILING_COMMA & $this->flags && 0 < $cursor->depth) { + $this->line .= ','; + } elseif (self::DUMP_COMMA_SEPARATOR & $this->flags && 1 < $cursor->hashLength - $cursor->hashIndex) { + $this->line .= ','; + } + } + + $this->dumpLine($cursor->depth, true); + } + + /** + * Returns the stream to probe for color support: on the CLI, php://output is backed by STDOUT. + */ + private function getColorSupportStream(): mixed + { + if (!\defined('STDOUT') || !\is_resource($this->outputStream) || 'stream' !== get_resource_type($this->outputStream)) { + return $this->outputStream; + } + + $h = stream_get_meta_data($this->outputStream) + ['wrapper_type' => null]; + + return 'Output' === $h['stream_type'] && 'PHP' === $h['wrapper_type'] ? \STDOUT : $this->outputStream; + } + + /** + * Returns true if the stream supports colorization. + * + * Reference: Composer\XdebugHandler\Process::supportsColor + * https://github.com/composer/xdebug-handler + */ + private function hasColorSupport(mixed $stream): bool + { + if (!\is_resource($stream) || 'stream' !== get_resource_type($stream)) { + return false; + } + + // Follow https://no-color.org/ + if ('' !== (($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR'))[0] ?? '')) { + return false; + } + + // Follow https://force-color.org/ + if ('' !== (($_SERVER['FORCE_COLOR'] ?? getenv('FORCE_COLOR'))[0] ?? '')) { + return true; + } + + // Detect msysgit/mingw and assume this is a tty because detection + // does not work correctly, see https://github.com/composer/composer/issues/9690 + if (!@stream_isatty($stream) && !\in_array(strtoupper((string) getenv('MSYSTEM')), ['MINGW32', 'MINGW64'], true)) { + return false; + } + + if ('\\' === \DIRECTORY_SEPARATOR && @sapi_windows_vt100_support($stream)) { + return true; + } + + if ('Hyper' === getenv('TERM_PROGRAM') + || false !== getenv('COLORTERM') + || false !== getenv('ANSICON') + || 'ON' === getenv('ConEmuANSI') + ) { + return true; + } + + if ('dumb' === $term = (string) getenv('TERM')) { + return false; + } + + // See https://github.com/chalk/supports-color/blob/d4f413efaf8da045c5ab440ed418ef02dbb28bf1/index.js#L157 + return preg_match('/^((screen|xterm|vt100|vt220|putty|rxvt|ansi|cygwin|linux).*)|(.*-256(color)?(-bce)?)$/', $term); + } + + /** + * Returns true if the Windows terminal supports true color. + * + * Note that this does not check an output stream, but relies on environment + * variables from known implementations, or a PHP and Windows version that + * supports true color. + */ + private function isWindowsTrueColor(): bool + { + $result = 183 <= getenv('ANSICON_VER') + || 'ON' === getenv('ConEmuANSI') + || 'xterm' === getenv('TERM') + || 'Hyper' === getenv('TERM_PROGRAM'); + + if (!$result) { + $version = \sprintf( + '%s.%s.%s', + PHP_WINDOWS_VERSION_MAJOR, + PHP_WINDOWS_VERSION_MINOR, + PHP_WINDOWS_VERSION_BUILD + ); + $result = $version >= '10.0.15063'; + } + + return $result; + } + + private function getSourceLink(string $file, int $line): string|false + { + if ($fmt = $this->displayOptions['fileLinkFormat']) { + return \is_string($fmt) ? strtr($fmt, ['%f' => $file, '%l' => $line]) : ($fmt->format($file, $line) ?: 'file://'.$file.'#L'.$line); + } + + return false; + } +} diff --git a/vendor/symfony/var-dumper/Dumper/ContextProvider/CliContextProvider.php b/vendor/symfony/var-dumper/Dumper/ContextProvider/CliContextProvider.php new file mode 100644 index 0000000..292b1a4 --- /dev/null +++ b/vendor/symfony/var-dumper/Dumper/ContextProvider/CliContextProvider.php @@ -0,0 +1,32 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Dumper\ContextProvider; + +/** + * Tries to provide context on CLI. + * + * @author Maxime Steinhausser + */ +final class CliContextProvider implements ContextProviderInterface +{ + public function getContext(): ?array + { + if ('cli' !== \PHP_SAPI) { + return null; + } + + return [ + 'command_line' => $commandLine = implode(' ', $_SERVER['argv'] ?? []), + 'identifier' => hash('xxh128', $commandLine.'@'.$_SERVER['REQUEST_TIME_FLOAT']), + ]; + } +} diff --git a/vendor/symfony/var-dumper/Dumper/ContextProvider/ContextProviderInterface.php b/vendor/symfony/var-dumper/Dumper/ContextProvider/ContextProviderInterface.php new file mode 100644 index 0000000..532aa0f --- /dev/null +++ b/vendor/symfony/var-dumper/Dumper/ContextProvider/ContextProviderInterface.php @@ -0,0 +1,22 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Dumper\ContextProvider; + +/** + * Interface to provide contextual data about dump data clones sent to a server. + * + * @author Maxime Steinhausser + */ +interface ContextProviderInterface +{ + public function getContext(): ?array; +} diff --git a/vendor/symfony/var-dumper/Dumper/ContextProvider/RequestContextProvider.php b/vendor/symfony/var-dumper/Dumper/ContextProvider/RequestContextProvider.php new file mode 100644 index 0000000..e3ee487 --- /dev/null +++ b/vendor/symfony/var-dumper/Dumper/ContextProvider/RequestContextProvider.php @@ -0,0 +1,50 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Dumper\ContextProvider; + +use Symfony\Component\HttpFoundation\RequestStack; +use Symfony\Component\VarDumper\Caster\ReflectionCaster; +use Symfony\Component\VarDumper\Cloner\VarCloner; + +/** + * Tries to provide context from a request. + * + * @author Maxime Steinhausser + */ +final class RequestContextProvider implements ContextProviderInterface +{ + private VarCloner $cloner; + + public function __construct( + private RequestStack $requestStack, + ) { + $this->cloner = new VarCloner(); + $this->cloner->setMaxItems(0); + $this->cloner->addCasters(ReflectionCaster::UNSET_CLOSURE_FILE_INFO); + } + + public function getContext(): ?array + { + if (null === $request = $this->requestStack->getCurrentRequest()) { + return null; + } + + $controller = $request->attributes->get('_controller'); + + return [ + 'uri' => $request->getUri(), + 'method' => $request->getMethod(), + 'controller' => $controller ? $this->cloner->cloneVar($controller) : $controller, + 'identifier' => hash('xxh128', spl_object_id($request).'@'.$_SERVER['REQUEST_TIME_FLOAT']), + ]; + } +} diff --git a/vendor/symfony/var-dumper/Dumper/ContextProvider/SourceContextProvider.php b/vendor/symfony/var-dumper/Dumper/ContextProvider/SourceContextProvider.php new file mode 100644 index 0000000..2beaea6 --- /dev/null +++ b/vendor/symfony/var-dumper/Dumper/ContextProvider/SourceContextProvider.php @@ -0,0 +1,121 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Dumper\ContextProvider; + +use Symfony\Component\ErrorHandler\ErrorRenderer\FileLinkFormatter; +use Symfony\Component\VarDumper\Cloner\VarCloner; +use Symfony\Component\VarDumper\Dumper\HtmlDumper; +use Symfony\Component\VarDumper\VarDumper; +use Twig\Template; + +/** + * Tries to provide context from sources (class name, file, line, code excerpt, ...). + * + * @author Nicolas Grekas + * @author Maxime Steinhausser + */ +final class SourceContextProvider implements ContextProviderInterface +{ + public function __construct( + private ?string $charset = null, + private ?string $projectDir = null, + private ?FileLinkFormatter $fileLinkFormatter = null, + private int $limit = 9, + ) { + } + + public function getContext(): ?array + { + $trace = debug_backtrace(\DEBUG_BACKTRACE_PROVIDE_OBJECT | \DEBUG_BACKTRACE_IGNORE_ARGS, $this->limit); + + $file = $trace[1]['file']; + $line = $trace[1]['line']; + $name = '-' === $file || 'Standard input code' === $file ? 'Standard input code' : false; + $fileExcerpt = false; + + for ($i = 2; $i < $this->limit; ++$i) { + if (isset($trace[$i]['class'], $trace[$i]['function']) + && 'dump' === $trace[$i]['function'] + && VarDumper::class === $trace[$i]['class'] + ) { + $file = $trace[$i]['file'] ?? $file; + $line = $trace[$i]['line'] ?? $line; + + while (++$i < $this->limit) { + if (isset($trace[$i]['function'], $trace[$i]['file']) && empty($trace[$i]['class']) && !str_starts_with($trace[$i]['function'], 'call_user_func')) { + $file = $trace[$i]['file']; + $line = $trace[$i]['line']; + + break; + } elseif (isset($trace[$i]['object']) && $trace[$i]['object'] instanceof Template) { + $template = $trace[$i]['object']; + $name = $template->getTemplateName(); + $src = method_exists($template, 'getSourceContext') ? $template->getSourceContext()->getCode() : (method_exists($template, 'getSource') ? $template->getSource() : false); + $info = $template->getDebugInfo(); + if (isset($info[$trace[$i - 1]['line']])) { + $line = $info[$trace[$i - 1]['line']]; + $file = method_exists($template, 'getSourceContext') ? $template->getSourceContext()->getPath() : null; + + if ($src) { + $src = explode("\n", $src); + $fileExcerpt = []; + + for ($i = max($line - 3, 1), $max = min($line + 3, \count($src)); $i <= $max; ++$i) { + $fileExcerpt[] = ''.$this->htmlEncode($src[$i - 1]).''; + } + + $fileExcerpt = '
      '.implode("\n", $fileExcerpt).'
    '; + } + } + break; + } + } + break; + } + } + + if (false === $name) { + $name = str_replace('\\', '/', $file); + $name = substr($name, strrpos($name, '/') + 1); + } + + $context = ['name' => $name, 'file' => $file, 'line' => $line]; + $context['file_excerpt'] = $fileExcerpt; + + if (null !== $this->projectDir) { + $context['project_dir'] = $this->projectDir; + if (str_starts_with($file, $this->projectDir)) { + $context['file_relative'] = ltrim(substr($file, \strlen($this->projectDir)), \DIRECTORY_SEPARATOR); + } + } + + if ($this->fileLinkFormatter && $fileLink = $this->fileLinkFormatter->format($context['file'], $context['line'])) { + $context['file_link'] = $fileLink; + } + + return $context; + } + + private function htmlEncode(string $s): string + { + $html = ''; + + $dumper = new HtmlDumper(static function ($line) use (&$html) { $html .= $line; }, $this->charset); + $dumper->setDumpHeader(''); + $dumper->setDumpBoundaries('', ''); + + $cloner = new VarCloner(); + $dumper->dump($cloner->cloneVar($s)); + + return substr(strip_tags($html), 1, -1); + } +} diff --git a/vendor/symfony/var-dumper/Dumper/ContextualizedDumper.php b/vendor/symfony/var-dumper/Dumper/ContextualizedDumper.php new file mode 100644 index 0000000..6102c47 --- /dev/null +++ b/vendor/symfony/var-dumper/Dumper/ContextualizedDumper.php @@ -0,0 +1,40 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Dumper; + +use Symfony\Component\VarDumper\Cloner\Data; +use Symfony\Component\VarDumper\Dumper\ContextProvider\ContextProviderInterface; + +/** + * @author Kévin Thérage + */ +class ContextualizedDumper implements DataDumperInterface +{ + /** + * @param ContextProviderInterface[] $contextProviders + */ + public function __construct( + private DataDumperInterface $wrappedDumper, + private array $contextProviders, + ) { + } + + public function dump(Data $data): ?string + { + $context = $data->getContext(); + foreach ($this->contextProviders as $contextProvider) { + $context[$contextProvider::class] = $contextProvider->getContext(); + } + + return $this->wrappedDumper->dump($data->withContext($context)); + } +} diff --git a/vendor/symfony/var-dumper/Dumper/DataDumperInterface.php b/vendor/symfony/var-dumper/Dumper/DataDumperInterface.php new file mode 100644 index 0000000..df05b6a --- /dev/null +++ b/vendor/symfony/var-dumper/Dumper/DataDumperInterface.php @@ -0,0 +1,27 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Dumper; + +use Symfony\Component\VarDumper\Cloner\Data; + +/** + * DataDumperInterface for dumping Data objects. + * + * @author Nicolas Grekas + */ +interface DataDumperInterface +{ + /** + * @return string|null + */ + public function dump(Data $data); +} diff --git a/vendor/symfony/var-dumper/Dumper/HtmlDumper.php b/vendor/symfony/var-dumper/Dumper/HtmlDumper.php new file mode 100644 index 0000000..766fe0c --- /dev/null +++ b/vendor/symfony/var-dumper/Dumper/HtmlDumper.php @@ -0,0 +1,978 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Dumper; + +use Symfony\Component\VarDumper\Cloner\Cursor; +use Symfony\Component\VarDumper\Cloner\Data; + +/** + * HtmlDumper dumps variables as HTML. + * + * @author Nicolas Grekas + */ +class HtmlDumper extends CliDumper +{ + /** @var callable|resource|string|null */ + public static $defaultOutput = 'php://output'; + + protected static $themes = [ + 'dark' => [ + 'default' => 'background-color:#18171B; color:#FF8400; line-height:1.2em; font:12px Menlo, Monaco, Consolas, monospace; word-wrap: break-word; white-space: pre-wrap; position:relative; z-index:99999; word-break: break-all', + 'num' => 'font-weight:bold; color:#1299DA', + 'const' => 'font-weight:bold', + 'virtual' => 'font-style:italic', + 'str' => 'font-weight:bold; color:#56DB3A', + 'note' => 'color:#1299DA', + 'ref' => 'color:#A0A0A0', + 'public' => 'color:#FFFFFF', + 'protected' => 'color:#FFFFFF', + 'private' => 'color:#FFFFFF', + 'meta' => 'color:#B729D9', + 'key' => 'color:#56DB3A', + 'index' => 'color:#1299DA', + 'ellipsis' => 'color:#FF8400', + 'ns' => 'user-select:none;', + ], + 'light' => [ + 'default' => 'background:none; color:#CC7832; line-height:1.2em; font:12px Menlo, Monaco, Consolas, monospace; word-wrap: break-word; white-space: pre-wrap; position:relative; z-index:99999; word-break: break-all', + 'num' => 'font-weight:bold; color:#1299DA', + 'const' => 'font-weight:bold', + 'virtual' => 'font-style:italic', + 'str' => 'font-weight:bold; color:#629755;', + 'note' => 'color:#6897BB', + 'ref' => 'color:#6E6E6E', + 'public' => 'color:#262626', + 'protected' => 'color:#262626', + 'private' => 'color:#262626', + 'meta' => 'color:#B729D9', + 'key' => 'color:#789339', + 'index' => 'color:#1299DA', + 'ellipsis' => 'color:#CC7832', + 'ns' => 'user-select:none;', + ], + ]; + + protected ?string $dumpHeader = null; + protected string $dumpPrefix = '
    ';
    +    protected string $dumpSuffix = '
    '; + protected string $dumpId; + protected bool $colors = true; + protected $headerIsDumped = false; + protected int $lastDepth = -1; + + private array $displayOptions = [ + 'maxDepth' => 1, + 'maxStringLength' => 160, + 'fileLinkFormat' => null, + ]; + private array $extraDisplayOptions = []; + + public function __construct($output = null, ?string $charset = null, int $flags = 0) + { + AbstractDumper::__construct($output, $charset, $flags); + $this->dumpId = 'sf-dump-'.mt_rand(); + $this->displayOptions['fileLinkFormat'] = \ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format'); + $this->styles = static::$themes['dark'] ?? self::$themes['dark']; + } + + public function setStyles(array $styles): void + { + $this->headerIsDumped = false; + $this->styles = $styles + $this->styles; + } + + public function setTheme(string $themeName): void + { + if (!isset(static::$themes[$themeName])) { + throw new \InvalidArgumentException(\sprintf('Theme "%s" does not exist in class "%s".', $themeName, static::class)); + } + + $this->setStyles(static::$themes[$themeName]); + } + + /** + * Configures display options. + * + * @param array $displayOptions A map of display options to customize the behavior + */ + public function setDisplayOptions(array $displayOptions): void + { + $this->headerIsDumped = false; + $this->displayOptions = $displayOptions + $this->displayOptions; + } + + /** + * Sets an HTML header that will be dumped once in the output stream. + */ + public function setDumpHeader(?string $header): void + { + $this->dumpHeader = $header; + } + + /** + * Sets an HTML prefix and suffix that will encapse every single dump. + */ + public function setDumpBoundaries(string $prefix, string $suffix): void + { + $this->dumpPrefix = $prefix; + $this->dumpSuffix = $suffix; + } + + public function dump(Data $data, $output = null, array $extraDisplayOptions = []): ?string + { + $this->extraDisplayOptions = $extraDisplayOptions; + $result = parent::dump($data, $output); + $this->dumpId = 'sf-dump-'.mt_rand(); + + return $result; + } + + /** + * Dumps the HTML header. + */ + protected function getDumpHeader(): string + { + $this->headerIsDumped = $this->outputStream ?? $this->lineDumper; + + if (null !== $this->dumpHeader) { + return $this->dumpHeader; + } + + $line = str_replace('{$options}', json_encode($this->displayOptions, \JSON_FORCE_OBJECT), <<<'EOHTML' + '.$this->dumpHeader; + } + + public function dumpString(Cursor $cursor, string $str, bool $bin, int $cut): void + { + if ('' === $str && isset($cursor->attr['img-data'], $cursor->attr['content-type'])) { + $this->dumpKey($cursor); + $this->line .= $this->style('default', $cursor->attr['img-size'] ?? '', []); + $this->line .= $cursor->depth >= $this->displayOptions['maxDepth'] ? ' ' : ' '; + $this->endValue($cursor); + $this->line .= $this->indentPad; + $this->line .= \sprintf('', $cursor->attr['content-type'], base64_encode($cursor->attr['img-data'])); + $this->endValue($cursor); + } else { + parent::dumpString($cursor, $str, $bin, $cut); + } + } + + public function enterHash(Cursor $cursor, int $type, string|int|null $class, bool $hasChild): void + { + if (Cursor::HASH_OBJECT === $type) { + $cursor->attr['depth'] = $cursor->depth; + } + parent::enterHash($cursor, $type, $class, false); + + if ($cursor->skipChildren || $cursor->depth >= $this->displayOptions['maxDepth']) { + $cursor->skipChildren = false; + $eol = ' class=sf-dump-compact>'; + } else { + $this->expandNextHash = false; + $eol = ' class=sf-dump-expanded>'; + } + + if ($hasChild) { + $this->line .= 'dumpId, $r); + } + $this->line .= $eol; + $this->dumpLine($cursor->depth); + } + } + + public function leaveHash(Cursor $cursor, int $type, string|int|null $class, bool $hasChild, int $cut): void + { + $this->dumpEllipsis($cursor, $hasChild, $cut); + if ($hasChild) { + $this->line .= ''; + } + parent::leaveHash($cursor, $type, $class, $hasChild, 0); + } + + protected function style(string $style, string $value, array $attr = []): string + { + if ('' === $value && ('label' !== $style || !isset($attr['file']) && !isset($attr['href']))) { + return ''; + } + + $v = esc($value); + + if ('ref' === $style) { + if (empty($attr['count'])) { + return \sprintf('%s', $v); + } + $r = ('#' !== $v[0] ? 1 - ('@' !== $v[0]) : 2).substr($value, 1); + + return \sprintf('%s', $this->dumpId, $r, 1 + $attr['count'], $v); + } + + $dumpClasses = ['sf-dump-'.$style]; + $dumpTitle = ''; + + if ('const' === $style && isset($attr['value'])) { + $dumpTitle = esc(\is_scalar($attr['value']) ? $attr['value'] : json_encode($attr['value'])); + } elseif ('public' === $style) { + $dumpTitle = empty($attr['dynamic']) ? 'Public property' : 'Runtime added dynamic property'; + } elseif ('str' === $style && 1 < $attr['length']) { + $dumpTitle = \sprintf('%d%s characters', $attr['length'], $attr['binary'] ? ' binary or non-UTF-8' : ''); + } elseif ('note' === $style && 0 < ($attr['depth'] ?? 0) && false !== $c = strrpos($value, '\\')) { + $attr += [ + 'ellipsis' => \strlen($value) - $c, + 'ellipsis-type' => 'note', + 'ellipsis-tail' => 1, + ]; + } elseif ('protected' === $style) { + $dumpTitle = 'Protected property'; + } elseif ('meta' === $style && isset($attr['title'])) { + $dumpTitle = esc($this->utf8Encode($attr['title'])); + } elseif ('private' === $style) { + $dumpTitle = \sprintf('Private property defined in class: `%s`', esc($this->utf8Encode($attr['class']))); + } + + if (isset($attr['ellipsis'])) { + $dumpClasses[] = 'sf-dump-ellipsization'; + $ellipsisClass = 'sf-dump-ellipsis'; + if (isset($attr['ellipsis-type'])) { + $ellipsisClass .= ' sf-dump-ellipsis-'.$attr['ellipsis-type']; + } + $label = esc(substr($value, -$attr['ellipsis'])); + $dumpTitle = $v."\n".$dumpTitle; + $v = \sprintf('%s', $ellipsisClass, substr($v, 0, -\strlen($label))); + + if (!empty($attr['ellipsis-tail'])) { + $tail = \strlen(esc(substr($value, -$attr['ellipsis'], $attr['ellipsis-tail']))); + $v .= \sprintf('%s%s', $ellipsisClass, substr($label, 0, $tail), substr($label, $tail)); + } else { + $v .= \sprintf('%s', $label); + } + } + + $map = static::$controlCharsMap; + $v = \sprintf( + '%s', + 1 === \count($dumpClasses) ? '' : '"', + implode(' ', $dumpClasses), + $dumpTitle ? ' title="'.$dumpTitle.'"' : '', + preg_replace_callback(static::$controlCharsRx, static function ($c) use ($map) { + $s = $b = ''; + }, $v) + ); + + if (!($attr['binary'] ?? false)) { + $v = preg_replace_callback(static::$unicodeCharsRx, static fn ($c) => '\u{'.strtoupper(dechex(mb_ord($c[0]))).'}', $v); + } + + if (isset($attr['file']) && $href = $this->getSourceLink($attr['file'], $attr['line'] ?? 0)) { + $attr['href'] = $href; + } + if (isset($attr['href'])) { + if ('label' === $style) { + $v .= '^'; + } + $target = isset($attr['file']) ? '' : ' target="_blank"'; + $v = \sprintf('%s', esc($this->utf8Encode($attr['href'])), $target, $v); + } + if (isset($attr['lang'])) { + $v = \sprintf('%s', esc($attr['lang']), $v); + } + if ('label' === $style) { + $v .= ' '; + } + if ($attr['virtual'] ?? false) { + $v = ''.$v.''; + } + + return $v; + } + + protected function dumpLine(int $depth, bool $endOfValue = false): void + { + if (-1 === $this->lastDepth) { + $this->line = \sprintf($this->dumpPrefix, $this->dumpId, $this->indentPad).$this->line; + } + if ($this->headerIsDumped !== ($this->outputStream ?? $this->lineDumper)) { + $this->line = $this->getDumpHeader().$this->line; + } + + if (-1 === $depth) { + $args = ['"'.$this->dumpId.'"']; + if ($this->extraDisplayOptions) { + $args[] = json_encode($this->extraDisplayOptions, \JSON_FORCE_OBJECT); + } + // Replace is for BC + $this->line .= \sprintf(str_replace('"%s"', '%s', $this->dumpSuffix), implode(', ', $args)); + } + $this->lastDepth = $depth; + + $this->line = mb_encode_numericentity($this->line, [0x80, 0x10FFFF, 0, 0x1FFFFF], 'UTF-8'); + + if (-1 === $depth) { + AbstractDumper::dumpLine(0); + } + AbstractDumper::dumpLine($depth); + } + + private function getSourceLink(string $file, int $line): string|false + { + $options = $this->extraDisplayOptions + $this->displayOptions; + + if ($fmt = $options['fileLinkFormat']) { + return \is_string($fmt) ? strtr($fmt, ['%f' => $file, '%l' => $line]) : $fmt->format($file, $line); + } + + return false; + } +} + +function esc(string $str): string +{ + return htmlspecialchars($str, \ENT_QUOTES, 'UTF-8'); +} diff --git a/vendor/symfony/var-dumper/Dumper/ServerDumper.php b/vendor/symfony/var-dumper/Dumper/ServerDumper.php new file mode 100644 index 0000000..4602bcf --- /dev/null +++ b/vendor/symfony/var-dumper/Dumper/ServerDumper.php @@ -0,0 +1,53 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Dumper; + +use Symfony\Component\VarDumper\Cloner\Data; +use Symfony\Component\VarDumper\Dumper\ContextProvider\ContextProviderInterface; +use Symfony\Component\VarDumper\Server\Connection; + +/** + * ServerDumper forwards serialized Data clones to a server. + * + * @author Maxime Steinhausser + */ +class ServerDumper implements DataDumperInterface +{ + private Connection $connection; + + /** + * @param string $host The server host + * @param DataDumperInterface|null $wrappedDumper A wrapped instance used whenever we failed contacting the server + * @param ContextProviderInterface[] $contextProviders Context providers indexed by context name + */ + public function __construct( + string $host, + private ?DataDumperInterface $wrappedDumper = null, + array $contextProviders = [], + ) { + $this->connection = new Connection($host, $contextProviders); + } + + public function getContextProviders(): array + { + return $this->connection->getContextProviders(); + } + + public function dump(Data $data): ?string + { + if (!$this->connection->write($data) && $this->wrappedDumper) { + return $this->wrappedDumper->dump($data); + } + + return null; + } +} diff --git a/vendor/symfony/var-dumper/Exception/ThrowingCasterException.php b/vendor/symfony/var-dumper/Exception/ThrowingCasterException.php new file mode 100644 index 0000000..fd8eca9 --- /dev/null +++ b/vendor/symfony/var-dumper/Exception/ThrowingCasterException.php @@ -0,0 +1,26 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Exception; + +/** + * @author Nicolas Grekas + */ +class ThrowingCasterException extends \Exception +{ + /** + * @param \Throwable $prev The exception thrown from the caster + */ + public function __construct(\Throwable $prev) + { + parent::__construct('Unexpected '.$prev::class.' thrown from a caster: '.$prev->getMessage(), 0, $prev); + } +} diff --git a/vendor/symfony/var-dumper/LICENSE b/vendor/symfony/var-dumper/LICENSE new file mode 100644 index 0000000..29f72d5 --- /dev/null +++ b/vendor/symfony/var-dumper/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2014-present Fabien Potencier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/symfony/var-dumper/README.md b/vendor/symfony/var-dumper/README.md new file mode 100644 index 0000000..a0da8c9 --- /dev/null +++ b/vendor/symfony/var-dumper/README.md @@ -0,0 +1,15 @@ +VarDumper Component +=================== + +The VarDumper component provides mechanisms for walking through any arbitrary +PHP variable. It provides a better `dump()` function that you can use instead +of `var_dump()`. + +Resources +--------- + + * [Documentation](https://symfony.com/doc/current/components/var_dumper/introduction.html) + * [Contributing](https://symfony.com/doc/current/contributing/index.html) + * [Report issues](https://github.com/symfony/symfony/issues) and + [send Pull Requests](https://github.com/symfony/symfony/pulls) + in the [main Symfony repository](https://github.com/symfony/symfony) diff --git a/vendor/symfony/var-dumper/Resources/bin/var-dump-server b/vendor/symfony/var-dumper/Resources/bin/var-dump-server new file mode 100644 index 0000000..3e04aeb --- /dev/null +++ b/vendor/symfony/var-dumper/Resources/bin/var-dump-server @@ -0,0 +1,72 @@ +#!/usr/bin/env php + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +if ('cli' !== PHP_SAPI) { + throw new Exception('This script must be run from the command line.'); +} + +/** + * Starts a dump server to collect and output dumps on a single place with multiple formats support. + * + * @author Maxime Steinhausser + */ + +use Psr\Log\LoggerInterface; +use Symfony\Component\Console\Application; +use Symfony\Component\Console\Input\ArgvInput; +use Symfony\Component\Console\Input\InputOption; +use Symfony\Component\Console\Logger\ConsoleLogger; +use Symfony\Component\Console\Output\ConsoleOutput; +use Symfony\Component\VarDumper\Command\ServerDumpCommand; +use Symfony\Component\VarDumper\Server\DumpServer; + +function includeIfExists(string $file): bool +{ + return file_exists($file) && include $file; +} + +if ( + !includeIfExists(__DIR__ . '/../../../../autoload.php') && + !includeIfExists(__DIR__ . '/../../vendor/autoload.php') && + !includeIfExists(__DIR__ . '/../../../../../../vendor/autoload.php') +) { + fwrite(STDERR, 'Install dependencies using Composer.'.PHP_EOL); + exit(1); +} + +if (!class_exists(Application::class)) { + fwrite(STDERR, 'You need the "symfony/console" component in order to run the VarDumper server.'.PHP_EOL); + exit(1); +} + +$input = new ArgvInput(); +$output = new ConsoleOutput(); +$defaultHost = '127.0.0.1:9912'; +$host = $input->getParameterOption(['--host'], $_SERVER['VAR_DUMPER_SERVER'] ?? $defaultHost, true); +$logger = interface_exists(LoggerInterface::class) ? new ConsoleLogger($output->getErrorOutput()) : null; + +$app = new Application(); + +$app->getDefinition()->addOption( + new InputOption('--host', null, InputOption::VALUE_REQUIRED, 'The address the server should listen to', $defaultHost) +); + +$command = new ServerDumpCommand(new DumpServer($host, $logger)); +if (method_exists($app, 'addCommand')) { + $app->addCommand($command); +} else { + $app->add($command); +} +$app + ->setDefaultCommand($command->getName(), true) + ->run($input, $output) +; diff --git a/vendor/symfony/var-dumper/Resources/css/htmlDescriptor.css b/vendor/symfony/var-dumper/Resources/css/htmlDescriptor.css new file mode 100644 index 0000000..8f706d6 --- /dev/null +++ b/vendor/symfony/var-dumper/Resources/css/htmlDescriptor.css @@ -0,0 +1,130 @@ +body { + display: flex; + flex-direction: column-reverse; + justify-content: flex-end; + max-width: 1140px; + margin: auto; + padding: 15px; + word-wrap: break-word; + background-color: #F9F9F9; + color: #222; + font-family: Helvetica, Arial, sans-serif; + font-size: 14px; + line-height: 1.4; +} +p { + margin: 0; +} +a { + color: #218BC3; + text-decoration: none; +} +a:hover { + text-decoration: underline; +} +.text-small { + font-size: 12px !important; +} +article { + margin: 5px; + margin-bottom: 10px; +} +article > header > .row { + display: flex; + flex-direction: row; + align-items: baseline; + margin-bottom: 10px; +} +article > header > .row > .col { + flex: 1; + display: flex; + align-items: baseline; +} +article > header > .row > h2 { + font-size: 14px; + color: #222; + font-weight: normal; + font-family: "Lucida Console", monospace, sans-serif; + word-break: break-all; + margin: 20px 5px 0 0; + user-select: all; +} +article > header > .row > h2 > code { + white-space: nowrap; + user-select: none; + color: #cc2255; + background-color: #f7f7f9; + border: 1px solid #e1e1e8; + border-radius: 3px; + margin-right: 5px; + padding: 0 3px; +} +article > header > .row > time.col { + flex: 0; + text-align: right; + white-space: nowrap; + color: #999; + font-style: italic; +} +article > header ul.tags { + list-style: none; + padding: 0; + margin: 0; + font-size: 12px; +} +article > header ul.tags > li { + user-select: all; + margin-bottom: 2px; +} +article > header ul.tags > li > span.badge { + display: inline-block; + padding: .25em .4em; + margin-right: 5px; + border-radius: 4px; + background-color: #6c757d3b; + color: #524d4d; + font-size: 12px; + text-align: center; + font-weight: 700; + line-height: 1; + white-space: nowrap; + vertical-align: baseline; + user-select: none; +} +article > section.body { + border: 1px solid #d8d8d8; + background: #FFF; + padding: 10px; + border-radius: 3px; +} +pre.sf-dump { + border-radius: 3px; + margin-bottom: 0; +} +.hidden { + display: none !important; +} +.dumped-tag > .sf-dump { + display: inline-block; + margin: 0; + padding: 1px 5px; + line-height: 1.4; + vertical-align: top; + background-color: transparent; + user-select: auto; +} +.dumped-tag > pre.sf-dump, +.dumped-tag > .sf-dump-default { + color: #CC7832; + background: none; +} +.dumped-tag > .sf-dump .sf-dump-str { color: #629755; } +.dumped-tag > .sf-dump .sf-dump-private, +.dumped-tag > .sf-dump .sf-dump-protected, +.dumped-tag > .sf-dump .sf-dump-public { color: #262626; } +.dumped-tag > .sf-dump .sf-dump-note { color: #6897BB; } +.dumped-tag > .sf-dump .sf-dump-key { color: #789339; } +.dumped-tag > .sf-dump .sf-dump-ref { color: #6E6E6E; } +.dumped-tag > .sf-dump .sf-dump-ellipsis { color: #CC7832; max-width: 100em; } +.dumped-tag > .sf-dump .sf-dump-ellipsis-path { max-width: 5em; } +.dumped-tag > .sf-dump .sf-dump-ns { user-select: none; } diff --git a/vendor/symfony/var-dumper/Resources/functions/dump.php b/vendor/symfony/var-dumper/Resources/functions/dump.php new file mode 100644 index 0000000..c991551 --- /dev/null +++ b/vendor/symfony/var-dumper/Resources/functions/dump.php @@ -0,0 +1,68 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Symfony\Component\VarDumper\Caster\ScalarStub; +use Symfony\Component\VarDumper\VarDumper; + +if (!function_exists('dump')) { + /** + * @author Nicolas Grekas + * @author Alexandre Daubois + */ + function dump(mixed ...$vars): mixed + { + if (!$vars) { + VarDumper::dump(new ScalarStub('🐛')); + + return null; + } + + if (array_key_exists(0, $vars) && 1 === count($vars)) { + VarDumper::dump($vars[0]); + $k = 0; + } else { + foreach ($vars as $k => $v) { + VarDumper::dump($v, is_int($k) ? 1 + $k : $k); + } + } + + if (1 < count($vars)) { + return $vars; + } + + return $vars[$k]; + } +} + +if (!function_exists('dd')) { + function dd(mixed ...$vars): never + { + if (!in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true) && !headers_sent()) { + header('HTTP/1.1 500 Internal Server Error'); + } + + if (!$vars) { + VarDumper::dump(new ScalarStub('🐛')); + + exit(1); + } + + if (array_key_exists(0, $vars) && 1 === count($vars)) { + VarDumper::dump($vars[0]); + } else { + foreach ($vars as $k => $v) { + VarDumper::dump($v, is_int($k) ? 1 + $k : $k); + } + } + + exit(1); + } +} diff --git a/vendor/symfony/var-dumper/Resources/js/htmlDescriptor.js b/vendor/symfony/var-dumper/Resources/js/htmlDescriptor.js new file mode 100644 index 0000000..63101e5 --- /dev/null +++ b/vendor/symfony/var-dumper/Resources/js/htmlDescriptor.js @@ -0,0 +1,10 @@ +document.addEventListener('DOMContentLoaded', function() { + let prev = null; + Array.from(document.getElementsByTagName('article')).reverse().forEach(function (article) { + const dedupId = article.dataset.dedupId; + if (dedupId === prev) { + article.getElementsByTagName('header')[0].classList.add('hidden'); + } + prev = dedupId; + }); +}); diff --git a/vendor/symfony/var-dumper/Server/Connection.php b/vendor/symfony/var-dumper/Server/Connection.php new file mode 100644 index 0000000..2f1cc1b --- /dev/null +++ b/vendor/symfony/var-dumper/Server/Connection.php @@ -0,0 +1,97 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Server; + +use Symfony\Component\VarDumper\Cloner\Data; +use Symfony\Component\VarDumper\Dumper\ContextProvider\ContextProviderInterface; + +/** + * Forwards serialized Data clones to a server. + * + * @author Maxime Steinhausser + */ +class Connection +{ + private string $host; + + /** + * @var resource|null + */ + private $socket; + + /** + * @param string $host The server host + * @param ContextProviderInterface[] $contextProviders Context providers indexed by context name + */ + public function __construct( + string $host, + private array $contextProviders = [], + ) { + if (!str_contains($host, '://')) { + $host = 'tcp://'.$host; + } + + $this->host = $host; + } + + public function getContextProviders(): array + { + return $this->contextProviders; + } + + public function write(Data $data): bool + { + $socketIsFresh = !$this->socket; + if (!$this->socket = $this->socket ?: $this->createSocket()) { + return false; + } + + $context = ['timestamp' => microtime(true)]; + foreach ($this->contextProviders as $name => $provider) { + $context[$name] = $provider->getContext(); + } + $context = array_filter($context); + $encodedPayload = base64_encode(serialize([$data, $context]))."\n"; + + set_error_handler(static fn () => null); + try { + if (-1 !== stream_socket_sendto($this->socket, $encodedPayload)) { + return true; + } + if (!$socketIsFresh) { + stream_socket_shutdown($this->socket, \STREAM_SHUT_RDWR); + fclose($this->socket); + $this->socket = $this->createSocket(); + } + if (-1 !== stream_socket_sendto($this->socket, $encodedPayload)) { + return true; + } + } finally { + restore_error_handler(); + } + + return false; + } + + /** + * @return resource|null + */ + private function createSocket() + { + set_error_handler(static fn () => null); + try { + return stream_socket_client($this->host, $errno, $errstr, 3) ?: null; + } finally { + restore_error_handler(); + } + } +} diff --git a/vendor/symfony/var-dumper/Server/DumpServer.php b/vendor/symfony/var-dumper/Server/DumpServer.php new file mode 100644 index 0000000..149c3c4 --- /dev/null +++ b/vendor/symfony/var-dumper/Server/DumpServer.php @@ -0,0 +1,109 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Server; + +use Psr\Log\LoggerInterface; +use Symfony\Component\VarDumper\Cloner\Data; +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * A server collecting Data clones sent by a ServerDumper. + * + * @author Maxime Steinhausser + * + * @final + */ +class DumpServer +{ + private string $host; + + /** + * @var resource|null + */ + private $socket; + + public function __construct( + string $host, + private ?LoggerInterface $logger = null, + ) { + if (!str_contains($host, '://')) { + $host = 'tcp://'.$host; + } + + $this->host = $host; + } + + public function start(): void + { + if (!$this->socket = stream_socket_server($this->host, $errno, $errstr)) { + throw new \RuntimeException(\sprintf('Server start failed on "%s": ', $this->host).$errstr.' '.$errno); + } + } + + public function listen(callable $callback): void + { + if (null === $this->socket) { + $this->start(); + } + + foreach ($this->getMessages() as $clientId => $message) { + $this->logger?->info('Received a payload from client {clientId}', ['clientId' => $clientId]); + + $payload = @unserialize(base64_decode($message), ['allowed_classes' => [Data::class, Stub::class]]); + + // Impossible to decode the message, give up. + if (false === $payload) { + $this->logger?->warning('Unable to decode a message from {clientId} client.', ['clientId' => $clientId]); + + continue; + } + + if (!\is_array($payload) || \count($payload) < 2 || !$payload[0] instanceof Data || !\is_array($payload[1])) { + $this->logger?->warning('Invalid payload from {clientId} client. Expected an array of two elements (Data $data, array $context)', ['clientId' => $clientId]); + + continue; + } + + [$data, $context] = $payload; + + $callback($data, $context, $clientId); + } + } + + public function getHost(): string + { + return $this->host; + } + + private function getMessages(): iterable + { + $sockets = [(int) $this->socket => $this->socket]; + $write = []; + + while (true) { + $read = $sockets; + stream_select($read, $write, $write, null); + + foreach ($read as $stream) { + if ($this->socket === $stream) { + $stream = stream_socket_accept($this->socket); + $sockets[(int) $stream] = $stream; + } elseif (feof($stream)) { + unset($sockets[(int) $stream]); + fclose($stream); + } else { + yield (int) $stream => fgets($stream); + } + } + } + } +} diff --git a/vendor/symfony/var-dumper/Test/VarDumperTestTrait.php b/vendor/symfony/var-dumper/Test/VarDumperTestTrait.php new file mode 100644 index 0000000..dc675b2 --- /dev/null +++ b/vendor/symfony/var-dumper/Test/VarDumperTestTrait.php @@ -0,0 +1,95 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Test; + +use PHPUnit\Framework\Attributes\After; +use Symfony\Component\VarDumper\Cloner\VarCloner; +use Symfony\Component\VarDumper\Dumper\CliDumper; + +/** + * @author Nicolas Grekas + */ +trait VarDumperTestTrait +{ + /** + * @internal + */ + private array $varDumperConfig = [ + 'casters' => [], + 'flags' => null, + ]; + + /** + * @param array $casters + */ + protected function setUpVarDumper(array $casters, ?int $flags = null): void + { + $this->varDumperConfig['casters'] = $casters; + $this->varDumperConfig['flags'] = $flags; + } + + /** + * @after + */ + #[After] + protected function tearDownVarDumper(): void + { + $this->varDumperConfig['casters'] = []; + $this->varDumperConfig['flags'] = null; + } + + /** + * @return void + */ + public function assertDumpEquals(mixed $expected, mixed $data, int $filter = 0, string $message = '') + { + $this->assertSame($this->prepareExpectation($expected, $filter), $this->getDump($data, null, $filter), $message); + } + + /** + * @return void + */ + public function assertDumpMatchesFormat(mixed $expected, mixed $data, int $filter = 0, string $message = '') + { + $this->assertStringMatchesFormat($this->prepareExpectation($expected, $filter), $this->getDump($data, null, $filter), $message); + } + + protected function getDump(mixed $data, string|int|null $key = null, int $filter = 0): ?string + { + if (null === $flags = $this->varDumperConfig['flags']) { + $flags = getenv('DUMP_LIGHT_ARRAY') ? CliDumper::DUMP_LIGHT_ARRAY : 0; + $flags |= getenv('DUMP_STRING_LENGTH') ? CliDumper::DUMP_STRING_LENGTH : 0; + $flags |= getenv('DUMP_COMMA_SEPARATOR') ? CliDumper::DUMP_COMMA_SEPARATOR : 0; + } + + $cloner = new VarCloner(); + $cloner->addCasters($this->varDumperConfig['casters']); + $cloner->setMaxItems(-1); + $dumper = new CliDumper(null, null, $flags); + $dumper->setColors(false); + $data = $cloner->cloneVar($data, $filter)->withRefHandles(false); + if (null !== $key && null === $data = $data->seek($key)) { + return null; + } + + return rtrim($dumper->dump($data, true)); + } + + private function prepareExpectation(mixed $expected, int $filter): string + { + if (!\is_string($expected)) { + $expected = $this->getDump($expected, null, $filter); + } + + return rtrim($expected); + } +} diff --git a/vendor/symfony/var-dumper/VarDumper.php b/vendor/symfony/var-dumper/VarDumper.php new file mode 100644 index 0000000..3e2f882 --- /dev/null +++ b/vendor/symfony/var-dumper/VarDumper.php @@ -0,0 +1,130 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper; + +use Symfony\Component\ErrorHandler\ErrorRenderer\FileLinkFormatter; +use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\RequestStack; +use Symfony\Component\VarDumper\Caster\ReflectionCaster; +use Symfony\Component\VarDumper\Cloner\VarCloner; +use Symfony\Component\VarDumper\Dumper\CliDumper; +use Symfony\Component\VarDumper\Dumper\ContextProvider\CliContextProvider; +use Symfony\Component\VarDumper\Dumper\ContextProvider\RequestContextProvider; +use Symfony\Component\VarDumper\Dumper\ContextProvider\SourceContextProvider; +use Symfony\Component\VarDumper\Dumper\ContextualizedDumper; +use Symfony\Component\VarDumper\Dumper\DataDumperInterface; +use Symfony\Component\VarDumper\Dumper\HtmlDumper; +use Symfony\Component\VarDumper\Dumper\ServerDumper; + +// Load the global dump() function +require_once __DIR__.'/Resources/functions/dump.php'; + +/** + * @author Nicolas Grekas + */ +class VarDumper +{ + /** + * @var callable|null + */ + private static $handler; + + public static function dump(mixed $var, ?string $label = null): mixed + { + if (null === self::$handler) { + self::register(); + } + + return (self::$handler)($var, $label); + } + + public static function setHandler(?callable $callable): ?callable + { + $prevHandler = self::$handler; + + // Prevent replacing the handler with expected format as soon as the env var was set: + if (isset($_SERVER['VAR_DUMPER_FORMAT'])) { + return $prevHandler; + } + + self::$handler = $callable; + + return $prevHandler; + } + + private static function register(): void + { + $cloner = new VarCloner(); + $cloner->addCasters(ReflectionCaster::UNSET_CLOSURE_FILE_INFO); + + $format = $_SERVER['VAR_DUMPER_FORMAT'] ?? null; + + $dumper = match ($format) { + 'html' => new HtmlDumper(), + 'cli' => new CliDumper(), + 'server' => self::selectDumperForAccept($_SERVER['VAR_DUMPER_SERVER'] ?? '127.0.0.1:9912'), + default => self::selectDumperForAccept( + $format && 'tcp' === parse_url($format, \PHP_URL_SCHEME) ? $format : null, + ), + }; + + if (!$dumper instanceof ServerDumper) { + $dumper = new ContextualizedDumper($dumper, [new SourceContextProvider()]); + } + + self::$handler = static function ($var, ?string $label = null) use ($cloner, $dumper) { + $var = $cloner->cloneVar($var); + + if (null !== $label) { + $var = $var->withContext(['label' => $label]); + } + + $dumper->dump($var); + }; + } + + private static function selectDumperForAccept(?string $serverHost): DataDumperInterface + { + $isCliSapi = \in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true); + $accept = $_SERVER['HTTP_ACCEPT'] ?? ($isCliSapi ? 'txt' : 'html'); + + $dumper = match (true) { + str_contains($accept, 'html'), str_contains($accept, '*/*') => new HtmlDumper(), + $isCliSapi => new CliDumper(), + default => new CliDumper('php://output'), + }; + + if (null !== $serverHost) { + $dumper = new ServerDumper($serverHost, $dumper, self::getDefaultContextProviders()); + } + + return $dumper; + } + + private static function getDefaultContextProviders(): array + { + $contextProviders = []; + + if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true) && class_exists(Request::class)) { + $requestStack = new RequestStack(); + $requestStack->push(Request::createFromGlobals()); + $contextProviders['request'] = new RequestContextProvider($requestStack); + } + + $fileLinkFormatter = class_exists(FileLinkFormatter::class) ? new FileLinkFormatter(null, $requestStack ?? null) : null; + + return $contextProviders + [ + 'cli' => new CliContextProvider(), + 'source' => new SourceContextProvider(null, null, $fileLinkFormatter), + ]; + } +} diff --git a/vendor/symfony/var-dumper/composer.json b/vendor/symfony/var-dumper/composer.json new file mode 100644 index 0000000..f713284 --- /dev/null +++ b/vendor/symfony/var-dumper/composer.json @@ -0,0 +1,44 @@ +{ + "name": "symfony/var-dumper", + "type": "library", + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "keywords": ["dump", "debug"], + "homepage": "https://symfony.com", + "license": "MIT", + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/uid": "^6.4|^7.0|^8.0", + "twig/twig": "^3.12|^4.0" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "autoload": { + "files": [ "Resources/functions/dump.php" ], + "psr-4": { "Symfony\\Component\\VarDumper\\": "" }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "minimum-stability": "dev" +} diff --git a/webhook.php b/webhook.php new file mode 100644 index 0000000..8874b3c --- /dev/null +++ b/webhook.php @@ -0,0 +1,65 @@ +setApiKey(MOLLIE_API_KEY); + + $payment = $mollie->payments->get($paymentId); + + // Alleen verwerken als betaling geslaagd is + if ($payment->isPaid()) { + $meta = $payment->metadata; + + $rij = [ + 'payment_id' => $payment->id, + 'datum' => $meta->datum ?? date('Y-m-d H:i:s'), + 'groep' => $meta->groep ?? '', + 'naam_verkoper' => $meta->naam_verkoper ?? '', + 'naam_ouder' => $meta->naam_ouder ?? '', + 'aantal' => $meta->aantal ?? '', + 'totaal' => $payment->amount->value, + 'status' => 'betaald', + ]; + + stuurNaarGoogleSheets($rij); + } + + http_response_code(200); + exit('OK'); + +} catch (\Mollie\Api\Exceptions\ApiException $e) { + http_response_code(500); + exit('Fout: ' . $e->getMessage()); +} + +// ───────────────────────────────────────────── +// Stuurt een rij naar Google Sheets via Apps Script Web App +// ───────────────────────────────────────────── +function stuurNaarGoogleSheets(array $data): void +{ + $ch = curl_init(GOOGLE_SCRIPT_URL); + curl_setopt_array($ch, [ + CURLOPT_POST => true, + CURLOPT_POSTFIELDS => json_encode($data), + CURLOPT_HTTPHEADER => ['Content-Type: application/json'], + CURLOPT_RETURNTRANSFER => true, + CURLOPT_FOLLOWLOCATION => true, // Apps Script redirect volgen + CURLOPT_TIMEOUT => 15, + ]); + $response = curl_exec($ch); + curl_close($ch); + + // Optioneel: log fouten naar bestand + if ($response === false) { + error_log('[webhook] Google Sheets fout: ' . curl_error($ch)); + } +}