From ab1359262b1235a02a50d0c30b2c5f40a052e57b Mon Sep 17 00:00:00 2001 From: netorodrigues Date: Tue, 17 Aug 2021 11:55:17 -0300 Subject: [PATCH 1/7] =?UTF-8?q?=E2=9C=A8=20enhance=20validations=20and=20m?= =?UTF-8?q?odule=20messages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.lock | 2297 +++++++++++++++++ src/Kernel/I18N/ENUS.php | 11 +- src/Kernel/I18N/PTBR.php | 17 +- src/Kernel/Services/APIService.php | 10 + src/Kernel/Services/OrderService.php | 21 +- src/Payment/Aggregates/Address.php | 41 +- src/Payment/Aggregates/Customer.php | 43 +- src/Payment/Aggregates/Order.php | 19 +- .../Payments/AbstractCreditCardPayment.php | 8 +- src/Payment/ValueObjects/Phone.php | 8 +- .../Services/SubscriptionService.php | 48 +- tests/Payment/Aggregates/AddressTests.php | 72 +- .../{ => Aggregates}/CustomerTests.php | 24 + tests/Payment/Aggregates/PhoneTests.php | 58 + 14 files changed, 2608 insertions(+), 69 deletions(-) create mode 100644 composer.lock rename tests/Payment/{ => Aggregates}/CustomerTests.php (53%) create mode 100644 tests/Payment/Aggregates/PhoneTests.php diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..f97c7d4 --- /dev/null +++ b/composer.lock @@ -0,0 +1,2297 @@ +{ + "_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": "3f0d31c70b370635ef8c0ddc4ec3ae8d", + "packages": [ + { + "name": "apimatic/jsonmapper", + "version": "v1.3.1", + "source": { + "type": "git", + "url": "https://github.com/apimatic/jsonmapper.git", + "reference": "0883d385653ebd2a194ec79e66facb7d69441404" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/apimatic/jsonmapper/zipball/0883d385653ebd2a194ec79e66facb7d69441404", + "reference": "0883d385653ebd2a194ec79e66facb7d69441404", + "shasum": "" + }, + "require-dev": { + "phpunit/phpunit": "^5 || ^6 || ^7", + "squizlabs/php_codesniffer": "^3" + }, + "type": "library", + "autoload": { + "psr-4": { + "apimatic\\jsonmapper\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "OSL-3.0" + ], + "authors": [ + { + "name": "Christian Weiske", + "email": "christian.weiske@netresearch.de", + "homepage": "http://www.netresearch.de/", + "role": "Developer" + }, + { + "name": "Mehdi Jaffery", + "email": "mehdi.jaffery@apimatic.io", + "homepage": "http://apimatic.io/", + "role": "Developer" + } + ], + "description": "Map nested JSON structures onto PHP classes", + "time": "2020-04-06T20:47:48+00:00" + }, + { + "name": "apimatic/unirest-php", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/apimatic/unirest-php.git", + "reference": "b4e399a8970c3a5c611f734282f306381f9d1eee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/apimatic/unirest-php/zipball/b4e399a8970c3a5c611f734282f306381f9d1eee", + "reference": "b4e399a8970c3a5c611f734282f306381f9d1eee", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "php": ">=5.6.0" + }, + "require-dev": { + "phpunit/phpunit": "^5 || ^6 || ^7" + }, + "suggest": { + "ext-json": "Allows using JSON Bodies for sending and parsing requests" + }, + "type": "library", + "autoload": { + "psr-0": { + "Unirest\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mashape", + "email": "opensource@mashape.com", + "homepage": "https://www.mashape.com", + "role": "Developer" + }, + { + "name": "APIMATIC", + "email": "opensource@apimatic.io", + "homepage": "https://www.apimatic.io", + "role": "Developer" + } + ], + "description": "Unirest PHP", + "homepage": "https://github.com/apimatic/unirest-php", + "keywords": [ + "client", + "curl", + "http", + "https", + "rest" + ], + "time": "2020-04-07T17:16:29+00:00" + }, + { + "name": "monolog/monolog", + "version": "1.26.1", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "c6b00f05152ae2c9b04a448f99c7590beb6042f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/c6b00f05152ae2c9b04a448f99c7590beb6042f5", + "reference": "c6b00f05152ae2c9b04a448f99c7590beb6042f5", + "shasum": "" + }, + "require": { + "php": ">=5.3.0", + "psr/log": "~1.0" + }, + "provide": { + "psr/log-implementation": "1.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^2.4.9 || ^3.0", + "doctrine/couchdb": "~1.0@dev", + "graylog2/gelf-php": "~1.0", + "php-amqplib/php-amqplib": "~2.4", + "php-console/php-console": "^3.1.3", + "phpstan/phpstan": "^0.12.59", + "phpunit/phpunit": "~4.5", + "ruflin/elastica": ">=0.90 <3.0", + "sentry/sentry": "^0.13", + "swiftmailer/swiftmailer": "^5.3|^6.0" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-mongo": "Allow sending log messages to a MongoDB server", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "php-console/php-console": "Allow sending log messages to Google Chrome", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server", + "sentry/sentry": "Allow sending log messages to a Sentry server" + }, + "type": "library", + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "http://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "time": "2021-05-28T08:32:12+00:00" + }, + { + "name": "mundipagg/mundiapi", + "version": "3.1.20", + "source": { + "type": "git", + "url": "https://github.com/mundipagg/MundiAPI-PHP.git", + "reference": "56535b652071d1930b508eb57ffe88ad7647a8f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mundipagg/MundiAPI-PHP/zipball/56535b652071d1930b508eb57ffe88ad7647a8f5", + "reference": "56535b652071d1930b508eb57ffe88ad7647a8f5", + "shasum": "" + }, + "require": { + "apimatic/jsonmapper": "^1.3.1", + "apimatic/unirest-php": "^2.0.0", + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "php": ">=5.4.0" + }, + "require-dev": { + "squizlabs/php_codesniffer": "^2.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "MundiAPILib\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "APIMatic SDK Generator", + "email": "support@apimatic.io", + "homepage": "https://apimatic.io", + "role": "API Tool" + } + ], + "description": "Mundipagg API", + "homepage": "https://apimatic.io", + "keywords": [ + "MundiAPI", + "api", + "sdk" + ], + "time": "2021-02-26T19:15:09+00:00" + }, + { + "name": "psr/log", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "d49695b909c3b7628b6289db5479a1c204601f11" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", + "reference": "d49695b909c3b7628b6289db5479a1c204601f11", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "Psr/Log/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "time": "2021-05-03T11:20:27+00:00" + } + ], + "packages-dev": [ + { + "name": "doctrine/instantiator", + "version": "1.4.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b", + "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^8.0", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.13 || 1.0.0-alpha2", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-phpunit": "^0.12", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2020-11-10T18:47:58+00:00" + }, + { + "name": "hamcrest/hamcrest-php", + "version": "v2.0.1", + "source": { + "type": "git", + "url": "https://github.com/hamcrest/hamcrest-php.git", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "shasum": "" + }, + "require": { + "php": "^5.3|^7.0|^8.0" + }, + "replace": { + "cordoval/hamcrest-php": "*", + "davedevelopment/hamcrest-php": "*", + "kodova/hamcrest-php": "*" + }, + "require-dev": { + "phpunit/php-file-iterator": "^1.4 || ^2.0", + "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "classmap": [ + "hamcrest" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "This is the PHP port of Hamcrest Matchers", + "keywords": [ + "test" + ], + "time": "2020-07-09T08:09:16+00:00" + }, + { + "name": "kylekatarnls/update-helper", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/kylekatarnls/update-helper.git", + "reference": "429be50660ed8a196e0798e5939760f168ec8ce9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/kylekatarnls/update-helper/zipball/429be50660ed8a196e0798e5939760f168ec8ce9", + "reference": "429be50660ed8a196e0798e5939760f168ec8ce9", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.1.0 || ^2.0.0", + "php": ">=5.3.0" + }, + "require-dev": { + "codeclimate/php-test-reporter": "dev-master", + "composer/composer": "2.0.x-dev || ^2.0.0-dev", + "phpunit/phpunit": ">=4.8.35 <6.0" + }, + "type": "composer-plugin", + "extra": { + "class": "UpdateHelper\\ComposerPlugin" + }, + "autoload": { + "psr-0": { + "UpdateHelper\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kyle", + "email": "kylekatarnls@gmail.com" + } + ], + "description": "Update helper", + "funding": [ + { + "url": "https://github.com/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "type": "tidelift" + } + ], + "time": "2020-04-07T20:44:10+00:00" + }, + { + "name": "mockery/mockery", + "version": "1.2.4", + "source": { + "type": "git", + "url": "https://github.com/mockery/mockery.git", + "reference": "b3453f75fd23d9fd41685f2148f4abeacabc6405" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mockery/mockery/zipball/b3453f75fd23d9fd41685f2148f4abeacabc6405", + "reference": "b3453f75fd23d9fd41685f2148f4abeacabc6405", + "shasum": "" + }, + "require": { + "hamcrest/hamcrest-php": "~2.0", + "lib-pcre": ">=7.0", + "php": ">=5.6.0" + }, + "require-dev": { + "phpunit/phpunit": "~5.7.10|~6.5|~7.0|~8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "psr-0": { + "Mockery": "library/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Pádraic Brady", + "email": "padraic.brady@gmail.com", + "homepage": "http://blog.astrumfutura.com" + }, + { + "name": "Dave Marshall", + "email": "dave.marshall@atstsolutions.co.uk", + "homepage": "http://davedevelopment.co.uk" + } + ], + "description": "Mockery is a simple yet flexible PHP mock object framework", + "homepage": "https://github.com/mockery/mockery", + "keywords": [ + "BDD", + "TDD", + "library", + "mock", + "mock objects", + "mockery", + "stub", + "test", + "test double", + "testing" + ], + "time": "2019-09-30T08:30:27+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.10.2", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220", + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "replace": { + "myclabs/deep-copy": "self.version" + }, + "require-dev": { + "doctrine/collections": "^1.0", + "doctrine/common": "^2.6", + "phpunit/phpunit": "^7.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + }, + "files": [ + "src/DeepCopy/deep_copy.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2020-11-13T09:40:50+00:00" + }, + { + "name": "nesbot/carbon", + "version": "1.39.0", + "source": { + "type": "git", + "url": "https://github.com/briannesbitt/Carbon.git", + "reference": "dd62a58af4e0775a45ea5f99d0363d81b7d9a1e0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/dd62a58af4e0775a45ea5f99d0363d81b7d9a1e0", + "reference": "dd62a58af4e0775a45ea5f99d0363d81b7d9a1e0", + "shasum": "" + }, + "require": { + "kylekatarnls/update-helper": "^1.1", + "php": ">=5.3.9", + "symfony/translation": "~2.6 || ~3.0 || ~4.0" + }, + "require-dev": { + "composer/composer": "^1.2", + "friendsofphp/php-cs-fixer": "~2", + "phpunit/phpunit": "^4.8.35 || ^5.7" + }, + "bin": [ + "bin/upgrade-carbon" + ], + "type": "library", + "extra": { + "update-helper": "Carbon\\Upgrade", + "laravel": { + "providers": [ + "Carbon\\Laravel\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "http://nesbot.com" + } + ], + "description": "A simple API extension for DateTime.", + "homepage": "http://carbon.nesbot.com", + "keywords": [ + "date", + "datetime", + "time" + ], + "time": "2019-06-11T09:07:59+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "2.2.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "time": "2020-06-27T09:03:43+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "5.2.2", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556", + "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": "^7.2 || ^8.0", + "phpdocumentor/reflection-common": "^2.2", + "phpdocumentor/type-resolver": "^1.3", + "webmozart/assert": "^1.9.1" + }, + "require-dev": { + "mockery/mockery": "~1.3.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + }, + { + "name": "Jaap van Otterdijk", + "email": "account@ijaap.nl" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "time": "2020-09-03T19:13:55+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "1.4.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", + "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "phpdocumentor/reflection-common": "^2.0" + }, + "require-dev": { + "ext-tokenizer": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", + "time": "2020-09-17T18:55:26+00:00" + }, + { + "name": "phpspec/prophecy", + "version": "v1.10.3", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "451c3cd1418cf640de218914901e51b064abb093" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093", + "reference": "451c3cd1418cf640de218914901e51b064abb093", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.3|^7.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", + "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0" + }, + "require-dev": { + "phpspec/phpspec": "^2.5 || ^3.2", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10.x-dev" + } + }, + "autoload": { + "psr-4": { + "Prophecy\\": "src/Prophecy" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "time": "2020-03-05T15:02:03+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "4.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d", + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": "^5.6 || ^7.0", + "phpunit/php-file-iterator": "^1.3", + "phpunit/php-text-template": "^1.2", + "phpunit/php-token-stream": "^1.4.2 || ^2.0", + "sebastian/code-unit-reverse-lookup": "^1.0", + "sebastian/environment": "^1.3.2 || ^2.0", + "sebastian/version": "^1.0 || ^2.0" + }, + "require-dev": { + "ext-xdebug": "^2.1.4", + "phpunit/phpunit": "^5.7" + }, + "suggest": { + "ext-xdebug": "^2.5.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "time": "2017-04-02T07:44:40+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "1.4.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "time": "2017-11-27T13:52:08+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "1.0.9", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "time": "2017-02-26T11:10:40+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "791198a2c6254db10131eecfe8c06670700904db" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db", + "reference": "791198a2c6254db10131eecfe8c06670700904db", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.2.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "abandoned": true, + "time": "2017-11-27T05:48:46+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "5.7.27", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c", + "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "myclabs/deep-copy": "~1.3", + "php": "^5.6 || ^7.0", + "phpspec/prophecy": "^1.6.2", + "phpunit/php-code-coverage": "^4.0.4", + "phpunit/php-file-iterator": "~1.4", + "phpunit/php-text-template": "~1.2", + "phpunit/php-timer": "^1.0.6", + "phpunit/phpunit-mock-objects": "^3.2", + "sebastian/comparator": "^1.2.4", + "sebastian/diff": "^1.4.3", + "sebastian/environment": "^1.3.4 || ^2.0", + "sebastian/exporter": "~2.0", + "sebastian/global-state": "^1.1", + "sebastian/object-enumerator": "~2.0", + "sebastian/resource-operations": "~1.0", + "sebastian/version": "^1.0.6|^2.0.1", + "symfony/yaml": "~2.1|~3.0|~4.0" + }, + "conflict": { + "phpdocumentor/reflection-docblock": "3.0.2" + }, + "require-dev": { + "ext-pdo": "*" + }, + "suggest": { + "ext-xdebug": "*", + "phpunit/php-invoker": "~1.1" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.7.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "time": "2018-02-01T05:50:59+00:00" + }, + { + "name": "phpunit/phpunit-mock-objects", + "version": "3.4.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", + "reference": "a23b761686d50a560cc56233b9ecf49597cc9118" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118", + "reference": "a23b761686d50a560cc56233b9ecf49597cc9118", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.6 || ^7.0", + "phpunit/php-text-template": "^1.2", + "sebastian/exporter": "^1.2 || ^2.0" + }, + "conflict": { + "phpunit/phpunit": "<5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.4" + }, + "suggest": { + "ext-soap": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Mock Object library for PHPUnit", + "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "keywords": [ + "mock", + "xunit" + ], + "abandoned": true, + "time": "2017-06-30T09:13:00+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T08:15:22+00:00" + }, + { + "name": "sebastian/comparator", + "version": "1.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/diff": "~1.2", + "sebastian/exporter": "~1.2 || ~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "http://www.github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "time": "2017-01-29T09:50:25+00:00" + }, + { + "name": "sebastian/diff", + "version": "1.4.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff" + ], + "time": "2017-05-22T07:24:03+00:00" + }, + { + "name": "sebastian/environment", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac", + "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "time": "2016-11-26T07:53:53+00:00" + }, + { + "name": "sebastian/exporter", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", + "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/recursion-context": "~2.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "time": "2016-11-19T08:54:04+00:00" + }, + { + "name": "sebastian/global-state", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "time": "2015-10-12T03:26:01+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7", + "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7", + "shasum": "" + }, + "require": { + "php": ">=5.6", + "sebastian/recursion-context": "~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "time": "2017-02-18T15:18:39+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a", + "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "time": "2016-11-19T07:33:16+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "time": "2015-07-28T20:34:47+00:00" + }, + { + "name": "sebastian/version", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "time": "2016-10-03T07:35:21+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.23.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce", + "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-02-19T12:13:01+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.23.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9174a3d80210dca8daa7f31fec659150bbeabfc6", + "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + }, + "files": [ + "bootstrap.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": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-05-27T12:26:48+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.23.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be", + "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-07-28T13:41:28+00:00" + }, + { + "name": "symfony/translation", + "version": "v4.4.27", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "2e3c0f2bf704d635ba862e7198d72331a62d82ba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/2e3c0f2bf704d635ba862e7198d72331a62d82ba", + "reference": "2e3c0f2bf704d635ba862e7198d72331a62d82ba", + "shasum": "" + }, + "require": { + "php": ">=7.1.3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "^1.16", + "symfony/translation-contracts": "^1.1.6|^2" + }, + "conflict": { + "symfony/config": "<3.4", + "symfony/dependency-injection": "<3.4", + "symfony/http-kernel": "<4.4", + "symfony/yaml": "<3.4" + }, + "provide": { + "symfony/translation-implementation": "1.0|2.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^3.4|^4.0|^5.0", + "symfony/console": "^3.4|^4.0|^5.0", + "symfony/dependency-injection": "^3.4|^4.0|^5.0", + "symfony/finder": "~2.8|~3.0|~4.0|^5.0", + "symfony/http-kernel": "^4.4", + "symfony/intl": "^3.4|^4.0|^5.0", + "symfony/service-contracts": "^1.1.2|^2", + "symfony/yaml": "^3.4|^4.0|^5.0" + }, + "suggest": { + "psr/log-implementation": "To use logging capability in translator", + "symfony/config": "", + "symfony/yaml": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-07-21T13:12:00+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v2.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "95c812666f3e91db75385749fe219c5e494c7f95" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/95c812666f3e91db75385749fe219c5e494c7f95", + "reference": "95c812666f3e91db75385749fe219c5e494c7f95", + "shasum": "" + }, + "require": { + "php": ">=7.2.5" + }, + "suggest": { + "symfony/translation-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.4-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Translation\\": "" + } + }, + "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": "Generic abstractions related to translation", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-03-23T23:28:01+00:00" + }, + { + "name": "symfony/yaml", + "version": "v4.4.29", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "3abcc4db06d4e776825eaa3ed8ad924d5bc7432a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/3abcc4db06d4e776825eaa3ed8ad924d5bc7432a", + "reference": "3abcc4db06d4e776825eaa3ed8ad924d5bc7432a", + "shasum": "" + }, + "require": { + "php": ">=7.1.3", + "symfony/polyfill-ctype": "~1.8" + }, + "conflict": { + "symfony/console": "<3.4" + }, + "require-dev": { + "symfony/console": "^3.4|^4.0|^5.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-07-27T16:19:30+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.10.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25", + "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<4.6.1 || 4.6.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.13" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "time": "2021-03-09T10:59:23+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.6", + "ext-json": "*" + }, + "platform-dev": { + "ext-pdo": "*" + }, + "plugin-api-version": "1.1.0" +} diff --git a/src/Kernel/I18N/ENUS.php b/src/Kernel/I18N/ENUS.php index 2c856b1..6938b49 100644 --- a/src/Kernel/I18N/ENUS.php +++ b/src/Kernel/I18N/ENUS.php @@ -43,14 +43,18 @@ protected function getTable() "The card '%s' couldn't be deleted." => null, "Different paid amount for this invoice. Paid value: %.2f" => null, "The %s should not be empty!" => null, + "The %s is invalid!" => null, "street" => null, "number" => null, "neighborhood" => null, + "zipCode" => null, "city" => null, "country" => null, "state" => null, + "phone" => null, "document" => null, "Can't create order." => null, + "Can't create payment. Please review the information and try again." => null, 'Invalid address configuration. Please fill the address configuration on admin panel.' => null, 'week' => null, 'weeks' => null, @@ -85,6 +89,11 @@ protected function getTable() 'Antifraud reproved' => null, 'Antifraud pending' => null, 'Waiting manual analise in antifraud' => null, + "Can't connect to the payment service. Please contact the store administrator." => null, + "The sum of payments is different than the order amount! Review the information and try again." => null, + "The sum of payments is greater than the order amount! Review the information and try again." => null, + "The card brand '%s' or the amount %.2f doesn't allow %d installment(s)! Please review the information and try again." => null, + "Passed value:" => null, ]; } -} \ No newline at end of file +} diff --git a/src/Kernel/I18N/PTBR.php b/src/Kernel/I18N/PTBR.php index 8862601..b757753 100644 --- a/src/Kernel/I18N/PTBR.php +++ b/src/Kernel/I18N/PTBR.php @@ -42,15 +42,19 @@ protected function getTable() "The card '%s' was deleted." => "O cartão '%s' foi deletado.", "The card '%s' couldn't be deleted." => "O cartão '%s' não pôde ser deletado.", "Different paid amount for this invoice. Paid value: %.2f" => "Esta Invoice foi paga com um valor diferente do Grand Total do pedido. Valor pago: %.2f", - "The %s should not be empty!" => "O campo %s não deve estar vazio", + "The %s should not be empty!" => "O campo %s é obrigatório!", + "The %s is invalid!" => "Campo %s inválido!", "street" => "rua", "number" => "número", "neighborhood" => "bairro", + "zipCode" => "CEP", "city" => "cidade", "country" => "país", "state" => "estado", - "document" => "CPF", - "Can't create order." => "Não foi possível criar o pedido", + "phone" => "telefone", + "document" => "CPF/CNPJ", + "Can't create order." => "Não foi possível criar o pedido.", + "Can't create payment. Please review the information and try again." => "Não foi possível realizar o pagamento. Por favor revise os dados e tente novamente.", 'Invalid address configuration. Please fill the address configuration on admin panel.' => 'Configurações de endereço inválidas. Preencha as configurações de endereço no painel de administração', 'week' => "semana", 'weeks' => "semanas", @@ -86,6 +90,11 @@ protected function getTable() 'Antifraud reproved' => 'Reprovado no antifraude', 'Antifraud pending' => 'Analise pendente no antifraude', 'Waiting manual analise in antifraud' => 'Aguardando análise manual em antifraude', + "Can't connect to the payment service. Please contact the store administrator." => "Não foi possivel conectar com o serviço de pagamento. Por favor contate o administrador da loja.", + "The sum of payments is different than the order amount! Review the information and try again." => "A soma dos pagamentos é diferente do valor do pedido! Verifique as informações de sua compra e tente novamente.", + "The sum of payments is greater than the order amount! Review the information and try again." => "A soma dos pagamentos é maior do que o valor do pedido! Verifique as informações de sua compra e tente novamente.", + "The card brand '%s' or the amount %.2f doesn't allow %d installment(s)! Please review the information and try again." => "A bandeira do cartão '%s' ou o valor %.2f não permite %d parcela(s)! Por favor revise os dados e tente novamente.", + "Passed value:" => "Valor informado:" ]; } -} \ No newline at end of file +} diff --git a/src/Kernel/Services/APIService.php b/src/Kernel/Services/APIService.php index a11ba65..22c3003 100644 --- a/src/Kernel/Services/APIService.php +++ b/src/Kernel/Services/APIService.php @@ -223,6 +223,7 @@ private function getCustomerController() private function getMundiPaggApiClient() { + $i18n = new LocalizationService(); $config = MPSetup::getModuleConfiguration(); $secretKey = null; @@ -231,6 +232,15 @@ private function getMundiPaggApiClient() } $password = ''; + if (empty($secretKey)) { + $message = $i18n->getDashboard( + "Can't connect to the payment service. " . + "Please contact the store administrator." + ); + + throw new \Exception($message, 400); + } + Configuration::$basicAuthPassword = ''; return new MundiAPIClient($secretKey, $password); diff --git a/src/Kernel/Services/OrderService.php b/src/Kernel/Services/OrderService.php index b887185..78e71dc 100644 --- a/src/Kernel/Services/OrderService.php +++ b/src/Kernel/Services/OrderService.php @@ -280,7 +280,10 @@ public function createOrderAtMundipagg(PlatformOrderInterface $platformOrder) $this->persistListChargeFailed($response); - $message = $i18n->getDashboard("Can't create order."); + $message = $i18n->getDashboard( + "Can't create payment. " . + "Please review the information and try again." + ); throw new \Exception($message, 400); } @@ -301,7 +304,10 @@ public function createOrderAtMundipagg(PlatformOrderInterface $platformOrder) "Can't create order. - Force Create Order: {$forceCreateOrder} | Order or charge status failed", $orderInfo ); - $message = $i18n->getDashboard("Can't create order."); + $message = $i18n->getDashboard( + "Can't create payment. " . + "Please review the information and try again." + ); throw new \Exception($message, 400); } @@ -337,6 +343,8 @@ private function getResponseHandler($response) public function extractPaymentOrderFromPlatformOrder( PlatformOrderInterface $platformOrder ) { + $i18n = new LocalizationService(); + $moduleConfig = MPSetup::getModuleConfiguration(); $moneyService = new MoneyService(); @@ -359,9 +367,12 @@ public function extractPaymentOrderFromPlatformOrder( foreach ($payments as $payment) { $order->addPayment($payment); } - + $orderInfo = $this->getOrderInfo($platformOrder); if (!$order->isPaymentSumCorrect()) { - $message = 'The sum of payments is different than the order amount!'; + $message = $i18n->getDashboard( + "The sum of payments is different than the order amount! " . + "Review the information and try again." + ); $this->logService->orderInfo( $platformOrder->getCode(), $message, @@ -431,7 +442,7 @@ private function wasOrderChargedSuccessfully($response) private function persistListChargeFailed($response) { if (empty($response['charges'])) { - return; + return []; } $charges = $this->createChargesFromResponse($response); diff --git a/src/Payment/Aggregates/Address.php b/src/Payment/Aggregates/Address.php index ed73c9f..dab2fdb 100644 --- a/src/Payment/Aggregates/Address.php +++ b/src/Payment/Aggregates/Address.php @@ -206,8 +206,19 @@ public function getZipCode() */ public function setZipCode($zipCode) { - $zipCode = str_replace('-', '', $zipCode); - $this->zipCode = substr($zipCode, 0, 16); + $zipCode = trim($zipCode); + + if (empty($zipCode)) { + $inputName = $this->i18n->getDashboard('zipCode'); + $message = $this->i18n->getDashboard( + "The %s should not be empty!", + $inputName + ); + + throw new \Exception($message, 400); + } + + $this->zipCode = $this->formatZipCode($zipCode); return $this; } @@ -227,8 +238,9 @@ public function getCity() */ public function setCity($city) { - $this->city = substr($city, 0, 64); - + $this->city = trim( + substr($city, 0, 64) + ); if (empty($this->city)) { $inputName = $this->i18n->getDashboard('city'); @@ -281,7 +293,7 @@ public function getLine1() $line[] = $this->getStreet(); $line[] = $this->getNeighborhood(); - return implode (self::ADDRESS_LINE_SEPARATOR, $line); + return implode(self::ADDRESS_LINE_SEPARATOR, $line); } public function getLine2() @@ -341,7 +353,7 @@ public function jsonSerialize() $obj->country = $this->country; $obj->line1 = $this->getLine1(); $obj->line2 = $this->getLine2(); - + return $obj; } @@ -365,4 +377,19 @@ public function convertToSDKRequest() return $addressRequest; } -} \ No newline at end of file + + private function formatZipCode($zipCode) + { + $zipCode = str_replace('-', '', $zipCode); + + $brazilianZipCodeLength = 8; + if (strtoupper($this->country) === 'BR') { + $zipCode = sprintf("%0${brazilianZipCodeLength}s", $zipCode); + $zipCode = substr($zipCode, 0, $brazilianZipCodeLength); + return $zipCode; + } + + $zipCode = substr($zipCode, 0, 16); + return $zipCode; + } +} diff --git a/src/Payment/Aggregates/Customer.php b/src/Payment/Aggregates/Customer.php index 55077a5..199c5d8 100644 --- a/src/Payment/Aggregates/Customer.php +++ b/src/Payment/Aggregates/Customer.php @@ -56,7 +56,6 @@ public function setCode($code) public function getName() { return $this->name; - } /** @@ -82,17 +81,11 @@ public function getEmail() */ public function setEmail($email) { - $this->email = substr($email, 0, 64); + $email = trim($email); + $email = substr($email, 0, 64); - if (empty($this->email)) { - - $message = $this->i18n->getDashboard( - "The %s should not be empty!", - "email" - ); - - throw new \Exception($message, 400); - } + $this->validateEmail($email); + $this->email = $email; return $this; } @@ -129,7 +122,8 @@ public function getDocument() public function setDocument($document) { $this->document = preg_replace( - '/[^0-9]/is', '', + '/[^0-9]/is', + '', substr($document, 0, 16) ); @@ -217,7 +211,7 @@ public function getTypeValue() public function getAddressToSDK() { if ($this->getAddress() !== null) { - return $this->getAddress()->convertToSDKRequest(); + return $this->getAddress()->convertToSDKRequest(); } return null; } @@ -225,7 +219,7 @@ public function getAddressToSDK() public function getPhonesToSDK() { if ($this->getPhones() !== null) { - return $this->getPhones()->convertToSDKRequest(); + return $this->getPhones()->convertToSDKRequest(); } return null; } @@ -244,4 +238,25 @@ public function convertToSDKRequest() return $customerRequest; } + + private function validateEmail($email) + { + if (empty($email)) { + $message = $this->i18n->getDashboard( + "The %s should not be empty!", + "email" + ); + + throw new \Exception($message, 400); + } + + if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { + $message = $this->i18n->getDashboard( + "The %s is invalid!", + "email" + ); + + throw new \Exception($message, 400); + } + } } diff --git a/src/Payment/Aggregates/Order.php b/src/Payment/Aggregates/Order.php index 87730c2..ef1cb53 100644 --- a/src/Payment/Aggregates/Order.php +++ b/src/Payment/Aggregates/Order.php @@ -4,6 +4,7 @@ use MundiAPILib\Models\CreateOrderRequest; use Mundipagg\Core\Kernel\Abstractions\AbstractEntity; +use Mundipagg\Core\Kernel\Services\LocalizationService; use Mundipagg\Core\Payment\Aggregates\Payments\AbstractPayment; use Mundipagg\Core\Payment\Aggregates\Payments\SavedCreditCardPayment; use Mundipagg\Core\Payment\Interfaces\ConvertibleToSDKRequestsInterface; @@ -147,8 +148,7 @@ public function isPaymentSumCorrect() } $sum = 0; - foreach ($this->payments as $payment) - { + foreach ($this->payments as $payment) { $sum += $payment->getAmount(); } @@ -163,16 +163,19 @@ public function isPaymentSumCorrect() */ private function blockOverPaymentAttempt(AbstractPayment $payment) { + $i18n = new LocalizationService(); $currentAmount = $payment->getAmount(); foreach ($this->payments as $currentPayment) { $currentAmount += $currentPayment->getAmount(); } if ($currentAmount > $this->amount) { - throw new \Exception( - 'The sum of payment amounts is bigger than the amount of the order!', - 400 + $message = $i18n->getDashboard( + "The sum of payments is greater than the order amount! " . + "Review the information and try again." ); + + throw new \Exception($message, 400); } } @@ -195,7 +198,7 @@ private function validatePaymentInvariants(AbstractPayment $payment) private function discoverPaymentMethod(AbstractPayment $payment) { $paymentClass = get_class($payment); - $paymentClass = explode ('\\', $paymentClass); + $paymentClass = explode('\\', $paymentClass); $paymentClass = end($paymentClass); return $paymentClass; } @@ -205,7 +208,7 @@ private function validateSavedCreditCardPayment(SavedCreditCardPayment $payment) if ($this->customer === null) { throw new \Exception( 'To use a saved credit card payment in an order ' . - 'you must add a customer to it.', + 'you must add a customer to it.', 400 ); } @@ -350,4 +353,4 @@ private function debitPaymentMethod() { return PaymentMethod::debit_card(); } -} \ No newline at end of file +} diff --git a/src/Payment/Aggregates/Payments/AbstractCreditCardPayment.php b/src/Payment/Aggregates/Payments/AbstractCreditCardPayment.php index dd39d05..d74914d 100644 --- a/src/Payment/Aggregates/Payments/AbstractCreditCardPayment.php +++ b/src/Payment/Aggregates/Payments/AbstractCreditCardPayment.php @@ -4,6 +4,7 @@ use MundiAPILib\Models\CreateCardRequest; use MundiAPILib\Models\CreateCreditCardPaymentRequest; +use Mundipagg\Core\Kernel\Services\LocalizationService; use Mundipagg\Core\Kernel\Abstractions\AbstractModuleCoreSetup as MPSetup; use Mundipagg\Core\Kernel\Exceptions\InvalidParamException; use Mundipagg\Core\Kernel\Services\InstallmentService; @@ -88,6 +89,7 @@ public function setInstallments($installments) */ private function validateIfIsRealInstallment($installments) { + $i18n = new LocalizationService(); //get valid installments for this brand. $installmentService = new InstallmentService(); $validInstallments = $installmentService->getInstallmentsFor( @@ -105,8 +107,10 @@ private function validateIfIsRealInstallment($installments) //invalid installment $moneyService = new MoneyService(); - $exception = "The card brand '%s' or the amount %.2f doesn't allow the %dx installments!"; - $exception = sprintf( + $exception = + "The card brand '%s' or the amount %.2f doesn't allow " . + "%d installment(s)! Please review the information and try again."; + $exception = $i18n->getDashboard( $exception, $this->brand->getName(), $moneyService->centsToFloat($this->amount), diff --git a/src/Payment/ValueObjects/Phone.php b/src/Payment/ValueObjects/Phone.php index d35bf54..7d61272 100644 --- a/src/Payment/ValueObjects/Phone.php +++ b/src/Payment/ValueObjects/Phone.php @@ -24,10 +24,11 @@ final class Phone extends AbstractValueObject implements ConvertibleToSDKRequest public function __construct($phone) { $phone = preg_replace('/(?!\d)./', '', $phone); + $phone = sprintf("%05s", $phone); $this->countryCode = new NumericString(55); $this->areaCode = new NumericString(substr($phone, 0, 2)); - $this->number = new NumericString(substr($phone, 2, 12)); + $this->number = new NumericString(substr($phone, 2, 11)); } /** @@ -74,8 +75,7 @@ protected function isEqual($object) return $this->getCountryCode()->equals($object->getCountryCode()) && $this->getAreaCode()->equals($object->getAreaCode()) && - $this->getNumber()->equals($object->getNumber()) - ; + $this->getNumber()->equals($object->getNumber()); } /** @@ -107,4 +107,4 @@ public function convertToSDKRequest() $this->getAreaCode()->getValue() ); } -} \ No newline at end of file +} diff --git a/src/Recurrence/Services/SubscriptionService.php b/src/Recurrence/Services/SubscriptionService.php index 640dffc..e4f90f5 100644 --- a/src/Recurrence/Services/SubscriptionService.php +++ b/src/Recurrence/Services/SubscriptionService.php @@ -81,7 +81,10 @@ public function createSubscriptionAtMundipagg(PlatformOrderInterface $platformOr $forceCreateOrder = MPSetup::getModuleConfiguration()->isCreateOrderEnabled(); if ($subscriptionResponse === null) { - $message = $i18n->getDashboard("Can't create order."); + $message = $i18n->getDashboard( + "Can't create payment. " . + "Please review the information and try again." + ); throw new \Exception($message, 400); } @@ -95,15 +98,18 @@ public function createSubscriptionAtMundipagg(PlatformOrderInterface $platformOr if (!empty($subscriptionResponse['id'])) { $failedSubscription = $subscriptionFactory - ->createFromFailedSubscription( - $subscriptionResponse - ); + ->createFromFailedSubscription( + $subscriptionResponse + ); $this->cancelSubscriptionAtMundipagg($failedSubscription); } if (!$forceCreateOrder) { - $message = $i18n->getDashboard("Can't create order."); + $message = $i18n->getDashboard( + "Can't create payment. " . + "Please review the information and try again." + ); throw new \Exception($message, 400); } } @@ -122,13 +128,15 @@ public function createSubscriptionAtMundipagg(PlatformOrderInterface $platformOr $forceCreateOrder && !$this->checkResponseStatus($originalSubscriptionResponse) ) { - $message = $i18n->getDashboard("Can't create order."); + $message = $i18n->getDashboard( + "Can't create payment. " . + "Please review the information and try again." + ); throw new \Exception($message, 400); } return [$response]; - - } catch(\Exception $e) { + } catch (\Exception $e) { $exceptionHandler = new ErrorExceptionHandler(); $paymentOrder = new PaymentOrder; $paymentOrder->setCode($platformOrder->getcode()); @@ -148,7 +156,7 @@ private function setDiscountCycleSubscription( $discountOrder = $platformOrder->getPlatformOrder()->getDiscountAmount(); if ($discountOrder == 0) { - return; + return; } $discountSubscription = Discounts::FLAT((($discountOrder * -1) * 100), 1); @@ -235,9 +243,9 @@ private function getSubscriptionItems(PaymentOrder $order) if ($product->getType() !== null) { $items[] = $recurrenceService - ->getRecurrenceProductByProductId( - $product->getCode() - ); + ->getRecurrenceProductByProductId( + $product->getCode() + ); } } @@ -272,7 +280,7 @@ private function extractSubscriptionItemsFromOrder($order) $increment = new Increment(); $shippingAmount = 0; - if($order->getShipping() != null) { + if ($order->getShipping() != null) { $shippingAmount = $order->getShipping()->getAmount(); } @@ -356,13 +364,13 @@ private function fillInterval($subscription, Plan $plan = null) $intervalCount = $this->subscriptionItems[0] - ->getSelectedRepetition() - ->getIntervalCount(); + ->getSelectedRepetition() + ->getIntervalCount(); $intervalType = $this->subscriptionItems[0] - ->getSelectedRepetition() - ->getInterval(); + ->getSelectedRepetition() + ->getInterval(); $subscription->setIntervalType($intervalType); $subscription->setIntervalCount($intervalCount); @@ -485,8 +493,8 @@ private function getSubscriptionMissingData(&$subscriptionResponse, $subscriptio } /** - * @todo Remove when be implemented the "code" on mark1 - */ + * @todo Remove when be implemented the "code" on mark1 + */ private function setProductIdOnSubscriptionItems(&$subscriptionResponse, $subscription) { if ($subscription->getRecurrenceType() == Plan::RECURRENCE_TYPE) { @@ -648,4 +656,4 @@ public function getSavedSubscription(SubscriptionId $subscriptionId) $subscriptionRepository = new SubscriptionRepository(); return $subscriptionRepository->findByMundipaggId($subscriptionId); } -} \ No newline at end of file +} diff --git a/tests/Payment/Aggregates/AddressTests.php b/tests/Payment/Aggregates/AddressTests.php index e483d35..4e97972 100644 --- a/tests/Payment/Aggregates/AddressTests.php +++ b/tests/Payment/Aggregates/AddressTests.php @@ -10,16 +10,80 @@ class AddressTests extends TestCase /** * @var Address */ - private $andress; + private $address; public function setUp() { - $this->andress = new Address(); + $this->address = new Address(); } public function testAddressNumberRemoveComma() { - $this->andress->setNumber('12,3,4,5,6'); - $this->assertEquals('123456', $this->andress->getNumber()); + $this->address->setCity(' Florianópolis '); + $this->assertEquals('Florianópolis', $this->address->getCity()); + } + public function testCityRemoveCharactersAfterMaxLength() + { + $cityMaxLength = 64; + $addressCity = str_repeat('a', $cityMaxLength + 1); + + $this->address->setCity($addressCity); + + $this->assertEquals($cityMaxLength, strlen($this->address->getCity())); + } + + public function testNumberRemoveComma() + { + $this->address->setNumber('12,3,4,5,6'); + $this->assertEquals('123456', $this->address->getNumber()); + } + + public function testZipCodeRemoveDash() + { + $this->address->setZipCode('12345-678'); + $this->assertEquals('12345678', $this->address->getZipCode()); + } + + public function testZipCodeTrim() + { + $this->address->setZipCode(' 12345678 '); + $this->assertEquals('12345678', $this->address->getZipCode()); + } + + public function testZipCodeRemoveCharactersAfterGeneralMaxLength() + { + $zipCodeGeneralMaxLength = 16; + $this->address->setCountry('US'); + $this->address->setZipCode( + str_repeat('1', $zipCodeGeneralMaxLength + 1) + ); + $this->assertEquals( + $zipCodeGeneralMaxLength, + strlen($this->address->getZipCode()) + ); + } + + public function testZipCodeRemoveCharactersAfterBrazilianMaxLength() + { + $zipCodeBrazilianMaxLength = 8; + $this->address->setCountry('BR'); + $this->address->setZipCode( + str_repeat('1', $zipCodeBrazilianMaxLength + 1) + ); + $this->assertEquals( + $zipCodeBrazilianMaxLength, + strlen($this->address->getZipCode()) + ); + } + + public function testZipCodeAddCharactersForBrazilianMinLength() + { + $zipCodeBrazilianMinLength = 8; + $this->address->setCountry('BR'); + $this->address->setZipCode('1'); + $this->assertEquals( + $zipCodeBrazilianMinLength, + strlen($this->address->getZipCode()) + ); } } diff --git a/tests/Payment/CustomerTests.php b/tests/Payment/Aggregates/CustomerTests.php similarity index 53% rename from tests/Payment/CustomerTests.php rename to tests/Payment/Aggregates/CustomerTests.php index af7143a..582e504 100644 --- a/tests/Payment/CustomerTests.php +++ b/tests/Payment/Aggregates/CustomerTests.php @@ -4,6 +4,7 @@ namespace Mundipagg\Core\Test\Payment; use Mundipagg\Core\Kernel\ValueObjects\Id\CustomerId; +use Mundipagg\Core\Kernel\ValueObjects\AbstractValidString; use Mundipagg\Core\Payment\Aggregates\Customer; use Mundipagg\Core\Payment\ValueObjects\CustomerType; use PHPUnit\Framework\TestCase; @@ -32,4 +33,27 @@ public function testBuildCustomerObject() $this->assertEquals(2, $this->customer->getCode()); } + + public function testEmailTrim() + { + $this->customer->setCode(3); + $this->customer->setEmail(' teste@teste.com '); + $this->assertEquals('teste@teste.com', $this->customer->getEmail()); + } + + public function testEmailRemoveCharactersAfterMaxLength() + { + $emailMaxLength = 64; + $newEmailLength = $emailMaxLength + 1; + $customerEmail = "teste@gmail.com"; + $customerEmail = sprintf("%'a${newEmailLength}s", $customerEmail); + + $this->customer->setCode(4); + $this->customer->setEmail($customerEmail); + + $this->assertEquals( + $emailMaxLength, + strlen($this->customer->getEmail()) + ); + } } diff --git a/tests/Payment/Aggregates/PhoneTests.php b/tests/Payment/Aggregates/PhoneTests.php new file mode 100644 index 0000000..b5669e4 --- /dev/null +++ b/tests/Payment/Aggregates/PhoneTests.php @@ -0,0 +1,58 @@ +phone = new Phone('11987654321'); + + + $this->assertEquals('55', $this->phone->getCountryCode()); + $this->assertEquals('11', $this->phone->getAreaCode()); + $this->assertEquals('987654321', $this->phone->getNumber()); + $this->assertEquals('5511987654321', $this->phone->getFullNumber()); + } + + public function testPhoneOnlyDigits() + { + $this->phone = new Phone(' Tel. 12 987654333 '); + + $this->assertEquals('5512987654333', $this->phone->getFullNumber()); + } + + public function testPhoneRemoveCharactersAfterMaxLength() + { + $phoneMaxLength = 15; + $phone = str_repeat('1', $phoneMaxLength + 1); + + $this->phone = new Phone($phone); + + $this->assertEquals( + $phoneMaxLength, + strlen($this->phone->getFullNumber()) + ); + } + + public function testPhoneAddCharactersForMinLength() + { + $phoneMinLength = 7; + + $this->phone = new Phone('1'); + + $this->assertEquals( + $phoneMinLength, + strlen($this->phone->getFullNumber()) + ); + } +} From 1bc9de95368b714ee3843b198c6e54ca0a719163 Mon Sep 17 00:00:00 2001 From: netorodrigues Date: Tue, 17 Aug 2021 11:59:09 -0300 Subject: [PATCH 2/7] =?UTF-8?q?=F0=9F=8E=A8=20uses=20setStatus=20in=20char?= =?UTF-8?q?ge=20entity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Kernel/Aggregates/Charge.php | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/Kernel/Aggregates/Charge.php b/src/Kernel/Aggregates/Charge.php index 8c10bb4..273cd96 100644 --- a/src/Kernel/Aggregates/Charge.php +++ b/src/Kernel/Aggregates/Charge.php @@ -17,17 +17,17 @@ final class Charge extends AbstractEntity implements ChargeInterface /** * - * @var OrderId + * @var OrderId */ private $orderId; /** * - * @var int + * @var int */ private $amount; /** * - * @var int + * @var int */ private $paidAmount; /** @@ -45,18 +45,18 @@ final class Charge extends AbstractEntity implements ChargeInterface /** * - * @var string + * @var string */ private $code; /** * - * @var ChargeStatus + * @var ChargeStatus */ private $status; /** * - * @var Transaction[] + * @var Transaction[] */ private $transactions; @@ -94,16 +94,16 @@ public function pay($amount) $this->setPaidAmount($amount); if ($this->getStatus()->equals(ChargeStatus::underpaid())) { - $this->status = ChargeStatus::underpaid(); + $this->setStatus(ChargeStatus::underpaid()); return; } - $this->status = ChargeStatus::paid(); + $this->setStatus(ChargeStatus::paid()); $amountToCancel = $this->amount - $this->getPaidAmount(); $this->setCanceledAmount($amountToCancel); if ($this->getLastTransaction()->getPaidAmount() > $this->getAmount()) { - $this->status = ChargeStatus::overpaid(); + $this->setStatus(ChargeStatus::overpaid()); $this->setPaidAmount($this->getLastTransaction()->getPaidAmount()); } } @@ -124,7 +124,7 @@ public function cancel($amount = 0) //if all the paid amount was canceled, the charge should be canceled. if ($amount == $this->paidAmount) { - $this->status = ChargeStatus::canceled(); + $this->setStatus(ChargeStatus::canceled()); } return; @@ -132,7 +132,7 @@ public function cancel($amount = 0) //if the charge wasn't payed yet the charge should be canceled. $this->setCanceledAmount($this->amount); - $this->status = ChargeStatus::canceled(); + $this->setStatus(ChargeStatus::canceled()); } /** @@ -336,7 +336,7 @@ public function getLastTransaction() public function failed() { - $this->status = ChargeStatus::failed(); + $this->setStatus(ChargeStatus::failed()); } /** @@ -351,8 +351,7 @@ public function addTransaction(Transaction $newTransaction) foreach ($transactions as $transaction) { if ($transaction->getMundipaggId()->equals( $newTransaction->getMundipaggId() - ) - ) { + )) { return $this; } } @@ -475,4 +474,4 @@ public function jsonSerialize() return $obj; } -} \ No newline at end of file +} From 63604a07692a39f50f4a4a4aa07abb8a11c0ef73 Mon Sep 17 00:00:00 2001 From: netorodrigues Date: Tue, 17 Aug 2021 12:35:25 -0300 Subject: [PATCH 3/7] =?UTF-8?q?=E2=9C=A8=20adds=20log=20service=20to=20cha?= =?UTF-8?q?rge=20entity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Kernel/Aggregates/Charge.php | 28 ++- tests/Kernel/Aggregates/ChargeTests.php | 289 ++++++++++++------------ 2 files changed, 176 insertions(+), 141 deletions(-) diff --git a/src/Kernel/Aggregates/Charge.php b/src/Kernel/Aggregates/Charge.php index 273cd96..9a6c9a8 100644 --- a/src/Kernel/Aggregates/Charge.php +++ b/src/Kernel/Aggregates/Charge.php @@ -3,7 +3,7 @@ namespace Mundipagg\Core\Kernel\Aggregates; use Mundipagg\Core\Kernel\Abstractions\AbstractEntity; -use Mundipagg\Core\Kernel\Exceptions\InvalidOperationException; +use Mundipagg\Core\Kernel\Services\LogService; use Mundipagg\Core\Kernel\Exceptions\InvalidParamException; use Mundipagg\Core\Kernel\ValueObjects\ChargeStatus; use Mundipagg\Core\Kernel\ValueObjects\Id\OrderId; @@ -64,6 +64,12 @@ final class Charge extends AbstractEntity implements ChargeInterface private $customerId; + + public function __construct() + { + $this->logService = new LogService('Charge', true); + } + /** * * @return OrderId @@ -305,6 +311,26 @@ public function getStatus() */ public function setStatus(ChargeStatus $status) { + $currentStatus = ''; + try { + $currentStatus = $this->getStatus()->getStatus(); + } catch (\Exception $e) { + } catch (\Throwable $e) { + } + + $statusInfo = (object)[ + "from" => $currentStatus, + "to" => $status->getStatus(), + ]; + + if (!empty($this->logService)) { + $this->logService->info( + "Charge {$this->getMundipaggId()} Status Change", + $statusInfo + ); + } + + $this->status = $status; return $this; } diff --git a/tests/Kernel/Aggregates/ChargeTests.php b/tests/Kernel/Aggregates/ChargeTests.php index c4f90db..f641218 100644 --- a/tests/Kernel/Aggregates/ChargeTests.php +++ b/tests/Kernel/Aggregates/ChargeTests.php @@ -11,30 +11,40 @@ use PHPUnit\Framework\TestCase; use Mockery; use Carbon\Carbon; +use Mundipagg\Core\Kernel\Services\LogService; class ChargeTests extends TestCase { + + public $charge; + + public function setUp() + { + $this->charge = new Charge(); + $this->charge->logService = null; + } + public function testChargeShouldBeCreated() { - $charge = new Charge(); - $this->assertTrue($charge !== null); + + $this->assertTrue($this->charge !== null); } public function testExpectedAnObjectOrderidToSetOrderId() { - $charge = new Charge(); + $orderId = Mockery::mock(OrderId::class); - $charge->setOrderId($orderId); + $this->charge->setOrderId($orderId); - $this->assertEquals($orderId, $charge->getOrderId()); - $this->assertInstanceOf(OrderId::class, $charge->getOrderId()); + $this->assertEquals($orderId, $this->charge->getOrderId()); + $this->assertInstanceOf(OrderId::class, $this->charge->getOrderId()); } public function testAmountShouldBeGreaterOrEqualToZero() { - $charge = new Charge(); - $charge->setAmount(10); - $this->assertEquals(10, $charge->getAmount()); + + $this->charge->setAmount(10); + $this->assertEquals(10, $this->charge->getAmount()); } /** @@ -46,123 +56,123 @@ public function test_should_throw_an_exception_if_amount_is_invalid() { $this->expectException(InvalidParamException::class); - $charge = new Charge(); - $charge->setAmount(-10); + + $this->charge->setAmount(-10); } public function test_should_return_paid_amount() { - $charge = new Charge(); - $charge->setPaidAmount(10); - $this->assertEquals(10, $charge->getPaidAmount()); + + $this->charge->setPaidAmount(10); + $this->assertEquals(10, $this->charge->getPaidAmount()); } public function test_should_return_zero_if_paid_amount_is_null() { - $charge = new Charge(); - $this->assertEquals(0, $charge->getPaidAmount()); + + $this->assertEquals(0, $this->charge->getPaidAmount()); } public function test_should_return_zero_if_try_set_paid_amount_with_number_less_than_zero() { - $charge = new Charge(); - $charge->setPaidAmount(-10); - $this->assertEquals(0, $charge->getPaidAmount()); + + $this->charge->setPaidAmount(-10); + $this->assertEquals(0, $this->charge->getPaidAmount()); } public function test_should_return_canceled_amount() { - $charge = new Charge(); - $charge->setAmount(20); - $charge->setCanceledAmount(10); - $this->assertEquals(10, $charge->getCanceledAmount()); + + $this->charge->setAmount(20); + $this->charge->setCanceledAmount(10); + $this->assertEquals(10, $this->charge->getCanceledAmount()); } public function test_should_return_zero_if_canceled_amount_is_null() { - $charge = new Charge(); - $this->assertEquals(0, $charge->getCanceledAmount()); + + $this->assertEquals(0, $this->charge->getCanceledAmount()); } public function test_should_return_zero_if_try_set_canceled_amount_with_number_less_than_zero() { - $charge = new Charge(); - $charge->setCanceledAmount(-10); - $this->assertEquals(0, $charge->getCanceledAmount()); + + $this->charge->setCanceledAmount(-10); + $this->assertEquals(0, $this->charge->getCanceledAmount()); } public function test_should_return_amount_value_if_try_set_canceled_amount_with_number_greater_than_amount() { - $charge = new Charge(); - $charge->setAmount(5); - $charge->setCanceledAmount(10); - $this->assertEquals(5, $charge->getCanceledAmount()); + + $this->charge->setAmount(5); + $this->charge->setCanceledAmount(10); + $this->assertEquals(5, $this->charge->getCanceledAmount()); } public function test_should_return_refunded_amount() { - $charge = new Charge(); - $charge->setPaidAmount(20); - $charge->setRefundedAmount(10); - $this->assertEquals(10, $charge->getRefundedAmount()); + + $this->charge->setPaidAmount(20); + $this->charge->setRefundedAmount(10); + $this->assertEquals(10, $this->charge->getRefundedAmount()); } public function test_should_return_zero_if_refunded_amount_is_null() { - $charge = new Charge(); - $this->assertEquals(0, $charge->getRefundedAmount()); + + $this->assertEquals(0, $this->charge->getRefundedAmount()); } public function test_should_return_zero_if_try_set_refunded_amount_with_number_less_than_zero() { - $charge = new Charge(); - $charge->setRefundedAmount(-10); - $this->assertEquals(0, $charge->getRefundedAmount()); + + $this->charge->setRefundedAmount(-10); + $this->assertEquals(0, $this->charge->getRefundedAmount()); } public function test_should_return_paid_amount_value_if_try_set_refunded_amount_with_number_greater_than_paid_amount() { - $charge = new Charge(); - $charge->setPaidAmount(5); - $charge->setRefundedAmount(10); - $this->assertEquals(5, $charge->getRefundedAmount()); + + $this->charge->setPaidAmount(5); + $this->charge->setRefundedAmount(10); + $this->assertEquals(5, $this->charge->getRefundedAmount()); } public function test_should_return_code() { - $charge = new Charge(); + $code = "code_1234"; - $charge->setCode($code); + $this->charge->setCode($code); - $this->assertEquals($code, $charge->getCode()); + $this->assertEquals($code, $this->charge->getCode()); } public function test_expected_an_object_chargestatus_to_set_status() { - $charge = new Charge(); + $chargeStatus = ChargeStatus::paid(); - $charge->setStatus($chargeStatus); + $this->charge->setStatus($chargeStatus); - $this->assertEquals($chargeStatus, $charge->getStatus()); - $this->assertInstanceOf(ChargeStatus::class, $charge->getStatus()); + $this->assertEquals($chargeStatus, $this->charge->getStatus()); + $this->assertInstanceOf(ChargeStatus::class, $this->charge->getStatus()); } public function test_should_return_metadata() { - $charge = new Charge(); + $metadata = ["metadata"]; - $charge->setMetadata($metadata); + $this->charge->setMetadata($metadata); - $this->assertEquals($metadata, $charge->getMetadata()); + $this->assertEquals($metadata, $this->charge->getMetadata()); } public function test_should_json_serialize_correctly() { - $charge = new Charge(); - $charge->setCode("code"); - $chargeArray = json_decode(json_encode($charge), true); + $this->charge->setCode("code"); + + $chargeArray = json_decode(json_encode($this->charge), true); $error = json_last_error(); $this->assertArrayHasKey("code", $chargeArray); @@ -171,15 +181,15 @@ public function test_should_json_serialize_correctly() public function test_should_return_empty_array_if_doesnt_have_transactions() { - $charge = new Charge(); - $this->assertEmpty($charge->getTransactions()); + + $this->assertEmpty($this->charge->getTransactions()); } public function test_should_return_empty_array_if_doesnt_have_last_transaction() { - $charge = new Charge(); - $this->assertEmpty($charge->getLastTransaction()); + + $this->assertEmpty($this->charge->getLastTransaction()); } public function test_should_return_the_last_transaction_that_was_added() @@ -189,11 +199,11 @@ public function test_should_return_the_last_transaction_that_was_added() $transaction2 = $this->getTransaction("_____2"); - $charge = new Charge(); - $charge->addTransaction($transaction1); - $charge->addTransaction($transaction2); - $this->assertEquals($transaction2, $charge->getLastTransaction()); + $this->charge->addTransaction($transaction1); + $this->charge->addTransaction($transaction2); + + $this->assertEquals($transaction2, $this->charge->getLastTransaction()); } public function test_should_return_last_transaction() @@ -203,37 +213,37 @@ public function test_should_return_last_transaction() $transaction2 = $this->getTransaction("_____2"); - $charge = new Charge(); - $charge->addTransaction($transaction1); - $charge->addTransaction($transaction2); - $this->assertEquals($transaction1, $charge->getLastTransaction()); + $this->charge->addTransaction($transaction1); + $this->charge->addTransaction($transaction2); + + $this->assertEquals($transaction1, $this->charge->getLastTransaction()); } public function test_should_not_add_transaction_one_more_time() { $transaction1 = $this->getTransaction("_____1"); - $charge = new Charge(); - $charge->addTransaction($transaction1); - $charge->addTransaction($transaction1); - $this->assertEquals($transaction1, $charge->getLastTransaction()); - $this->assertCount(1, $charge->getTransactions()); + $this->charge->addTransaction($transaction1); + $this->charge->addTransaction($transaction1); + + $this->assertEquals($transaction1, $this->charge->getLastTransaction()); + $this->assertCount(1, $this->charge->getTransactions()); } public function test_should_update_a_transaction() { $transaction = $this->getTransaction("_____1"); - $charge = new Charge(); - $charge->addTransaction($transaction); + + $this->charge->addTransaction($transaction); $transaction->setAmount(3); - $charge->updateTransaction($transaction); + $this->charge->updateTransaction($transaction); - $this->assertEquals(3, $charge->getLastTransaction()->getAmount()); - $this->assertCount(1, $charge->getTransactions()); + $this->assertEquals(3, $this->charge->getLastTransaction()->getAmount()); + $this->assertCount(1, $this->charge->getTransactions()); } public function test_should_not_overwrite_a_transaction_if_not_set_to_ovewrite() @@ -243,16 +253,16 @@ public function test_should_not_overwrite_a_transaction_if_not_set_to_ovewrite() $transaction = $this->getTransaction("_____1"); $transaction->setId("ID_1"); - $charge = new Charge(); - $charge->addTransaction($transaction); + + $this->charge->addTransaction($transaction); $transaction->setId("ID_2"); $ovewrite = false; - $charge->updateTransaction($transaction, $ovewrite); + $this->charge->updateTransaction($transaction, $ovewrite); - $this->assertEquals("ID_1", $charge->getLastTransaction()->getId()); - $this->assertCount(1, $charge->getTransactions()); + $this->assertEquals("ID_1", $this->charge->getLastTransaction()->getId()); + $this->assertCount(1, $this->charge->getTransactions()); } public function test_should_add_a_transaction_on_update_method_if_transaction_was_not_added() @@ -261,17 +271,17 @@ public function test_should_add_a_transaction_on_update_method_if_transaction_wa $transaction->setCreatedAt(Carbon::now()->subMinutes(3)); $transaction->setId("ID_1"); - $charge = new Charge(); - $charge->addTransaction($transaction); + + $this->charge->addTransaction($transaction); $transaction2 = $this->getTransaction("_____2"); $transaction2->setId("ID_2"); $ovewrite = false; - $charge->updateTransaction($transaction2, $ovewrite); + $this->charge->updateTransaction($transaction2, $ovewrite); - $this->assertEquals("ID_2", $charge->getLastTransaction()->getId()); - $this->assertCount(2, $charge->getTransactions()); + $this->assertEquals("ID_2", $this->charge->getLastTransaction()->getId()); + $this->assertCount(2, $this->charge->getTransactions()); } public function test_should_overwrite_a_transaction_if_set_to_ovewrite() @@ -279,118 +289,118 @@ public function test_should_overwrite_a_transaction_if_set_to_ovewrite() $transaction = $this->getTransaction("_____1"); $transaction->setId("ID_1"); - $charge = new Charge(); - $charge->addTransaction($transaction); + + $this->charge->addTransaction($transaction); $transaction->setId("ID_2"); $ovewrite = true; - $charge->updateTransaction($transaction, $ovewrite); + $this->charge->updateTransaction($transaction, $ovewrite); - $this->assertEquals("ID_2", $charge->getLastTransaction()->getId()); - $this->assertCount(1, $charge->getTransactions()); + $this->assertEquals("ID_2", $this->charge->getLastTransaction()->getId()); + $this->assertCount(1, $this->charge->getTransactions()); } public function test_should_pay_partial_a_charge_and_set_status_how_underpaid() { $this->markTestSkipped(); - $charge = new Charge(); - $charge->setAmount(100); - $charge->setStatus(ChargeStatus::pending()); + + $this->charge->setAmount(100); + $this->charge->setStatus(ChargeStatus::pending()); $transaction = $this->getTransaction("_____1"); - $charge->addTransaction($transaction); + $this->charge->addTransaction($transaction); - $charge->pay(50); + $this->charge->pay(50); - $this->assertEquals(50, $charge->getPaidAmount()); - $this->assertEquals(ChargeStatus::underpaid(), $charge->getStatus()); + $this->assertEquals(50, $this->charge->getPaidAmount()); + $this->assertEquals(ChargeStatus::underpaid(), $this->charge->getStatus()); } public function test_should_pay_a_charge_and_set_status_how_paid() { - $charge = new Charge(); - $charge->setAmount(100); - $charge->setStatus(ChargeStatus::pending()); + + $this->charge->setAmount(100); + $this->charge->setStatus(ChargeStatus::pending()); $transaction = $this->getTransaction("_____1"); - $charge->addTransaction($transaction); + $this->charge->addTransaction($transaction); - $charge->pay(100); + $this->charge->pay(100); - $this->assertEquals(100, $charge->getPaidAmount()); - $this->assertEquals(ChargeStatus::paid(), $charge->getStatus()); + $this->assertEquals(100, $this->charge->getPaidAmount()); + $this->assertEquals(ChargeStatus::paid(), $this->charge->getStatus()); } public function test_should_pay_a_charge_with_value_greater_then_amount_and_set_status_how_overpaid() { - $charge = new Charge(); - $charge->setAmount(100); - $charge->setStatus(ChargeStatus::pending()); + + $this->charge->setAmount(100); + $this->charge->setStatus(ChargeStatus::pending()); $transaction = $this->getTransaction("_____1"); $transaction->setPaidAmount(200); - $charge->addTransaction($transaction); + $this->charge->addTransaction($transaction); // verificar se o valor d transação é que cota para setar uma charge para overpaid - $charge->pay(200); + $this->charge->pay(200); - $this->assertEquals(200, $charge->getPaidAmount()); - $this->assertEquals(ChargeStatus::overpaid(), $charge->getStatus()); + $this->assertEquals(200, $this->charge->getPaidAmount()); + $this->assertEquals(ChargeStatus::overpaid(), $this->charge->getStatus()); } public function test_if_not_was_passed_a_value_to_cancel_should_cancel_the_paid_value() { - $charge = new Charge(); - $charge->setAmount(100); - $charge->setStatus(ChargeStatus::pending()); + + $this->charge->setAmount(100); + $this->charge->setStatus(ChargeStatus::pending()); $transaction = $this->getTransaction("_____1"); - $charge->addTransaction($transaction); + $this->charge->addTransaction($transaction); - $charge->pay(100); + $this->charge->pay(100); - $charge->cancel(); + $this->charge->cancel(); - $this->assertEquals(100, $charge->getRefundedAmount()); - $this->assertEquals(ChargeStatus::canceled(), $charge->getStatus()); + $this->assertEquals(100, $this->charge->getRefundedAmount()); + $this->assertEquals(ChargeStatus::canceled(), $this->charge->getStatus()); } public function test_should_cancel_partial_and_set_status_how_canceled() { - $charge = new Charge(); - $charge->setAmount(100); - $charge->setStatus(ChargeStatus::pending()); - $charge->cancel(50); + $this->charge->setAmount(100); + $this->charge->setStatus(ChargeStatus::pending()); + + $this->charge->cancel(50); $this->assertEquals( 100, - $charge->getCanceledAmount(), + $this->charge->getCanceledAmount(), "The canceled amount is the total charge value because the charge was not paid" ); - $this->assertEquals(ChargeStatus::canceled(), $charge->getStatus()); + $this->assertEquals(ChargeStatus::canceled(), $this->charge->getStatus()); } public function test_should_refound_partial_value_paid_and_continue_with_status_how_paid() { - $charge = new Charge(); - $charge->setAmount(100); - $charge->setStatus(ChargeStatus::pending()); + + $this->charge->setAmount(100); + $this->charge->setStatus(ChargeStatus::pending()); $transaction = $this->getTransaction("_____1"); - $charge->addTransaction($transaction); + $this->charge->addTransaction($transaction); - $charge->pay(100); + $this->charge->pay(100); - $charge->cancel(50); + $this->charge->cancel(50); $this->assertEquals( 50, - $charge->getRefundedAmount() + $this->charge->getRefundedAmount() ); - $this->assertEquals(ChargeStatus::paid(), $charge->getStatus()); + $this->assertEquals(ChargeStatus::paid(), $this->charge->getStatus()); } public function getTransaction($endId) @@ -405,5 +415,4 @@ public function getTransaction($endId) return $transaction; } - -} \ No newline at end of file +} From e6bb9336640d2af8fbafb5ada7e64ed71b00cc02 Mon Sep 17 00:00:00 2001 From: netorodrigues Date: Tue, 17 Aug 2021 12:45:52 -0300 Subject: [PATCH 4/7] =?UTF-8?q?=F0=9F=8E=A8=20only=20displays=20the=20new?= =?UTF-8?q?=20charge=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Kernel/Aggregates/Charge.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/Kernel/Aggregates/Charge.php b/src/Kernel/Aggregates/Charge.php index 9a6c9a8..ad477b2 100644 --- a/src/Kernel/Aggregates/Charge.php +++ b/src/Kernel/Aggregates/Charge.php @@ -311,26 +311,12 @@ public function getStatus() */ public function setStatus(ChargeStatus $status) { - $currentStatus = ''; - try { - $currentStatus = $this->getStatus()->getStatus(); - } catch (\Exception $e) { - } catch (\Throwable $e) { - } - - $statusInfo = (object)[ - "from" => $currentStatus, - "to" => $status->getStatus(), - ]; - if (!empty($this->logService)) { $this->logService->info( - "Charge {$this->getMundipaggId()} Status Change", - $statusInfo + "Charge {$this->getMundipaggId()} status changing to {$status->getStatus()}" ); } - $this->status = $status; return $this; } From 7ae7980dc8a6adbba2b3974e30280bfde6856d4c Mon Sep 17 00:00:00 2001 From: netorodrigues Date: Tue, 17 Aug 2021 15:00:06 -0300 Subject: [PATCH 5/7] =?UTF-8?q?=F0=9F=94=96=20bump=20version=202.8.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 +- src/Maintenance/Assets/integrityData | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 3620d54..43613fa 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "mundipagg/ecommerce-module-core", "description": "Core component for Mundipagg e-commerce platform modules.", "license": "MIT", - "version": "2.8.6", + "version": "2.8.7", "authors": [ { "name": "MundiPagg Embeddables Team", diff --git a/src/Maintenance/Assets/integrityData b/src/Maintenance/Assets/integrityData index 57227d0..fbd9f79 100644 --- a/src/Maintenance/Assets/integrityData +++ b/src/Maintenance/Assets/integrityData @@ -1 +1 @@ -{"Hub\/Aggregates\/InstallToken.php":"0e628cd32fedc547845b2ccd62c7c3ec","Hub\/Commands\/AbstractCommand.php":"a4d41d474dd582ec977bf72454074dc6","Hub\/Commands\/CommandType.php":"1c085b4d720e71afdaf76fbbd9da1d38","Hub\/Commands\/InstallCommand.php":"2a6eb9a0388298906f98896dacf2bf00","Hub\/Commands\/UninstallCommand.php":"5a6b8677c4eb4ce6449c5d3e53e8cade","Hub\/Commands\/UpdateCommand.php":"02aa557e69331761b9bcb6d712214b7a","Hub\/Factories\/HubCommandFactory.php":"0687d96212b439dc678cfd866c866db7","Hub\/Factories\/InstallTokenFactory.php":"f1a5b0649a196b34010d23a8dcce5b2a","Hub\/Repositories\/InstallTokenRepository.php":"fb9a5db61ad0a77894a3b58935f1094e","Hub\/Services\/HubIntegrationService.php":"fc2eb60bc67a510279ca63001543f6b4","Hub\/ValueObjects\/HubInstallToken.php":"ace3b13b6892bb457c38294bd7a815fe","Kernel\/Abstractions\/AbstractCreditmemoDecorator.php":"93b82d09bf8ef0a3e3ac1866d28e53ac","Kernel\/Abstractions\/AbstractDataService.php":"a72345aff22ecf3340923aa874ae368d","Kernel\/Abstractions\/AbstractDatabaseDecorator.php":"00c2e53656f5b6f3966f69350a0f9936","Kernel\/Abstractions\/AbstractEntity.php":"147767127d2d842025ab6c3bd187c7fc","Kernel\/Abstractions\/AbstractI18NTable.php":"6fba328ddc12f8b3d9e533d3808e580f","Kernel\/Abstractions\/AbstractInvoiceDecorator.php":"d451967616cedd91b525746f2bf49d9b","Kernel\/Abstractions\/AbstractModuleCoreSetup.php":"bb8e46641d7bf92c85bdb1d74354985a","Kernel\/Abstractions\/AbstractPlatformOrderDecorator.php":"0ff63674b614493f25e4791bd353af50","Kernel\/Abstractions\/AbstractRepository.php":"150eef81d88b1523f2c91cb811d7eabf","Kernel\/Abstractions\/AbstractValueObject.php":"4d634ce30445fb2a4688b9e2553e5c0c","Kernel\/Aggregates\/Charge.php":"b9efc0b966ef5bcc5c16b7c94cc0152d","Kernel\/Aggregates\/Configuration.php":"b77a26a30a1e8d510238ec4b4a68b7e4","Kernel\/Aggregates\/LogObject.php":"4ded9be00f5f265d9f44a71be6857b4a","Kernel\/Aggregates\/Order.php":"d641cb8f67fdca4f55655b037aca8121","Kernel\/Aggregates\/Transaction.php":"7ff7a1eb820048ce2add560744559e52","Kernel\/Exceptions\/AbstractMundipaggCoreException.php":"7c5b99b0cbd9b8262d24a85c769d8868","Kernel\/Exceptions\/InvalidClassException.php":"58621c5fd8d5709064156bae79c89d82","Kernel\/Exceptions\/InvalidOperationException.php":"2b1a8083f177d18c53dc0402b17b6d1d","Kernel\/Exceptions\/InvalidParamException.php":"ce41cc85401ffebd613bbc43f10e9b37","Kernel\/Exceptions\/NotFoundException.php":"d98efcb682e64d91e406f6a8297a7ad6","Kernel\/Factories\/ChargeFactory.php":"85e51b39a667d7da2edbef37c491daa4","Kernel\/Factories\/ConfigurationFactory.php":"b8c478236917141f8cb74db359017e62","Kernel\/Factories\/Configurations\/DebitConfigFactory.php":"9277ad2e332d182e85eb2be41e7fb624","Kernel\/Factories\/Configurations\/PixConfigFactory.php":"b3136cba301e886ae32246364887c878","Kernel\/Factories\/Configurations\/RecurrenceConfigFactory.php":"701de05ea7c7f6e3160b0999a694c2a9","Kernel\/Factories\/Configurations\/VoucherConfigFactory.php":"fe0e93a9c613221f799e8073c102908f","Kernel\/Factories\/LogObjectFactory.php":"775c77857a38f91cbc62631f8381c75c","Kernel\/Factories\/OrderFactory.php":"11b5c1460735a3abb49a245dc59e20e2","Kernel\/Factories\/TransactionFactory.php":"26b2f53abc761fad7468bdb950db3df6","Kernel\/Helper\/StringFunctionsHelper.php":"01bc8d71d7ba79923ebb39070e6d674e","Kernel\/I18N\/ENUS.php":"051f6ad1e7da68f69a63d942e2847f25","Kernel\/I18N\/PTBR.php":"3eaf522032b47a3bbdc0e4aa45c1cd6f","Kernel\/Interfaces\/ChargeInterface.php":"91eafb9e1efa782de7637f062dde6f9b","Kernel\/Interfaces\/CommandInterface.php":"904330eac5f331ffe0c770e8e883b21d","Kernel\/Interfaces\/FactoryCreateFromDbDataInterface.php":"a7e1ac11f85b6ab4133dfbac28aa6d49","Kernel\/Interfaces\/FactoryCreateFromPostDataInterface.php":"5258e1301a071f65e8910ca9e40a6516","Kernel\/Interfaces\/FactoryInterface.php":"2123a255a3b099d6c56d496b976550c5","Kernel\/Interfaces\/I18NTableInterface.php":"fdc98d8e3e303fa1f5226e6005d8e174","Kernel\/Interfaces\/PlatformCreditmemoInterface.php":"16fd9f574d7d079531e53a06539fb0eb","Kernel\/Interfaces\/PlatformCustomerInterface.php":"59e3c922e0e9702eb1bd9188450cdd83","Kernel\/Interfaces\/PlatformInvoiceInterface.php":"de04e02a978bf14c815e5017d29cbbb3","Kernel\/Interfaces\/PlatformOrderInterface.php":"c283adf8e174590cd7ae072b1bc9ac76","Kernel\/Interfaces\/PlatformPaymentMethodInterface.php":"e084a33456b461b1e1e4298efdc0f198","Kernel\/Interfaces\/PlatformProductInterface.php":"c680d2a9b314d8309be392212a881538","Kernel\/Interfaces\/SensibleDataInterface.php":"032c473d91f0aaae00237463df692ba0","Kernel\/Log\/JsonPrettyFormatter.php":"5e073a0b02366a06881bd19a5d3bf6da","Kernel\/Repositories\/ChargeRepository.php":"4d6d8bb21ba217bfcc8f6e7c96141276","Kernel\/Repositories\/ConfigurationRepository.php":"a23cfbdb90bd5dde377afcd5a0157891","Kernel\/Repositories\/OrderRepository.php":"ac7b6d6e883cb5ab44f2a65cdec81f2c","Kernel\/Repositories\/TransactionRepository.php":"ff990657945142e384360a1cbc28fc7e","Kernel\/Responses\/ServiceResponse.php":"efda128ac813faf52c5c608f5c210ca4","Kernel\/Services\/APIService.php":"1f3a200010983dafe770023bc5ba518f","Kernel\/Services\/ChargeService.php":"d0be2132cdafa2ba6d420625804272b0","Kernel\/Services\/FactoryService.php":"60354a164b8f868013ed2f1c32d196b8","Kernel\/Services\/InstallmentService.php":"192efa8483a84521513f8679667a9d6a","Kernel\/Services\/InvoiceService.php":"de84293f748ea01ebc0c2d0bb855f430","Kernel\/Services\/LocalizationService.php":"5cf3da48120b66d950087ca8e5fa3402","Kernel\/Services\/LogService.php":"cb9490f59ab8f1d7a6bde64613877053","Kernel\/Services\/MoneyService.php":"a3cc976313fe681cf68580459a3b0a3c","Kernel\/Services\/OrderCreationService.php":"b780562445d17891be35367a1f31fb04","Kernel\/Services\/OrderLogService.php":"fc364a531aeadff008a0a836a664e174","Kernel\/Services\/OrderService.php":"d9419e17d92e743063d22752ff0e19b2","Kernel\/Services\/VersionService.php":"4bf45b1805d133b23a927f3103d3cda0","Kernel\/ValueObjects\/AbstractValidString.php":"823bc25f29435aa35978910e88a1da82","Kernel\/ValueObjects\/CardBrand.php":"0025232928b480d370bf7405cf8d8343","Kernel\/ValueObjects\/ChargeStatus.php":"d027523e011e978175d97a2f962ecf67","Kernel\/ValueObjects\/Configuration\/AddressAttributes.php":"d5455e0098cf6d4df8af19b213f648b9","Kernel\/ValueObjects\/Configuration\/CardConfig.php":"ec905f11ed5a8206baaf221c8f20f24d","Kernel\/ValueObjects\/Configuration\/DebitConfig.php":"c9a50e99c1f9ad109764594d4007cd99","Kernel\/ValueObjects\/Configuration\/PixConfig.php":"9d1406f43dbb5deb2c3cdfb7ed8d91de","Kernel\/ValueObjects\/Configuration\/RecurrenceConfig.php":"546be4b717961acdaa1633dda73386b0","Kernel\/ValueObjects\/Configuration\/VoucherConfig.php":"f3a7370c0daf02610a2effad54169887","Kernel\/ValueObjects\/Installment.php":"c551e1388f067f81e7a112d044b42c5c","Kernel\/ValueObjects\/InvoiceState.php":"9e1a608245da11b5a27a82b66c49d6f9","Kernel\/ValueObjects\/Key\/AbstractPublicKey.php":"65bebc3403ddac895f6550570775defd","Kernel\/ValueObjects\/Key\/AbstractSecretKey.php":"618b41b21bdf23336ecaffc339631e85","Kernel\/ValueObjects\/Key\/HubAccessTokenKey.php":"a7175a5306449fcb9ace013878de1931","Kernel\/ValueObjects\/Key\/PublicKey.php":"40ee9f5ca58bc40a754d6f3268f14430","Kernel\/ValueObjects\/Key\/SecretKey.php":"e0416c2a3b2cf33eec20f1f44b7e6e2f","Kernel\/ValueObjects\/Key\/TestPublicKey.php":"c0d17f4453a14be1298bd684d1ebf37b","Kernel\/ValueObjects\/Key\/TestSecretKey.php":"ba78e3887154730864643c11ca984188","Kernel\/ValueObjects\/NumericString.php":"76e8b482fa443ec81be264f81cd79458","Kernel\/ValueObjects\/OrderState.php":"ef969d7fef8e81a0b33339fd18e360cc","Kernel\/ValueObjects\/OrderStatus.php":"7a0dbd10794db55d29f20da996c70ba9","Kernel\/ValueObjects\/PaymentMethod.php":"1f743349235e9deeb1905735c81c4d91","Kernel\/ValueObjects\/TransactionStatus.php":"09e0402ba1a88e3d3c0c383dc57c9815","Kernel\/ValueObjects\/TransactionType.php":"e878ff5099debb1e9625a25463115184","Kernel\/ValueObjects\/VersionInfo.php":"63ad91e7de5cace5865aefe7d9e6c7c5","Maintenance\/Assets\/integrityData":"557a5e08cf90b4f2b901b8d93dc2c498","Maintenance\/Interfaces\/InfoRetrieverServiceInterface.php":"8e76a3d86d269f25227059455ccf7ce7","Maintenance\/Interfaces\/InstallDataSourceInterface.php":"79f716ab47c4fbee2e75e4768d43cfcb","Maintenance\/Interfaces\/ModuleInstallTypeInterface.php":"ce537b3d50f7ff5d581ed6cea1eda899","Maintenance\/Services\/ConfigInfoRetrieverService.php":"4d0a8375676b7dbab3047a3e638913bb","Maintenance\/Services\/InfoBuilderService.php":"710f22f942e86973f8b6257b40e32bf6","Maintenance\/Services\/InstallDataSource\/AbstractInstallDataSource.php":"5a4536dca4618fe41a43e5bada45e1d3","Maintenance\/Services\/InstallDataSource\/ComposerInstallDataSource.php":"82012f126b0f83ac715391fed6b80349","Maintenance\/Services\/InstallDataSource\/CoreInstallDataSource.php":"d4c29f8ffa600e75990998586f08543f","Maintenance\/Services\/InstallDataSource\/ModmanInstallDataSource.php":"16defbaed6e6765b7dd71a9d8fbbd509","Maintenance\/Services\/IntegrityInfoRetrieverService.php":"62b15ac070402cbb16284646de3c599d","Maintenance\/Services\/LogDownloadInfoRetrieverService.php":"ae6255d80e8be7ac2e61837a84414220","Maintenance\/Services\/LogInfoRetrieverService.php":"fd74bb350cbec4b34debc31c460c69d2","Maintenance\/Services\/OrderInfoRetrieverService.php":"4f0aa2f9233fb7abe8ddc756f166ea4f","Maintenance\/Services\/PhpInfoRetrieverService.php":"9e59c91e73677716318cada5bac01fef","Maintenance\/Services\/VersionInfoRetrieverService.php":"7bee9de1c8dedefa536d588d68fb5bbf","Payment\/Aggregates\/Address.php":"e08c421d7780b88ce905c23f13a19c39","Payment\/Aggregates\/Customer.php":"6b31a9294b8f8f017cbaad8f01602bc8","Payment\/Aggregates\/Item.php":"1f86e67d72450c964165d2bf5a013e09","Payment\/Aggregates\/Order.php":"06aea8ba76bb3f0d5bab1fa1dcd0e3ac","Payment\/Aggregates\/Payments\/AbstractCreditCardPayment.php":"80cac6b6a25e266ff3a9d57fe52dcfb9","Payment\/Aggregates\/Payments\/AbstractPayment.php":"efe91ca517bdf32cf6688ce7728d9342","Payment\/Aggregates\/Payments\/BoletoPayment.php":"a5c739a7f0644fbd5c1876da349791fd","Payment\/Aggregates\/Payments\/NewCreditCardPayment.php":"378dd6cbfce9ac0b72c13dc7be51c9d8","Payment\/Aggregates\/Payments\/NewDebitCardPayment.php":"77208e10c8a5e6efe9f63fa6f4c019a8","Payment\/Aggregates\/Payments\/NewVoucherPayment.php":"1b7ec7507c6aec4b3218fe39935f33e8","Payment\/Aggregates\/Payments\/PixPayment.php":"ed1077ac67a9e265d02dd355aeae3b3f","Payment\/Aggregates\/Payments\/SavedCreditCardPayment.php":"b1817a6779d4ce37722e76b8a16f7d58","Payment\/Aggregates\/Payments\/SavedDebitCardPayment.php":"0641fe112a9c17e5b2383adf0ecc803b","Payment\/Aggregates\/Payments\/SavedVoucherCardPayment.php":"7b536c037614213adb88d65052e08e33","Payment\/Aggregates\/SavedCard.php":"cf9ba0c72b08190bb031f95469754245","Payment\/Aggregates\/Shipping.php":"065f42d23555a392d1c4afeae5ebb45b","Payment\/Factories\/AddressFactory.php":"e6a3aac8f8141ad61320d05670009971","Payment\/Factories\/CustomerFactory.php":"8df98e937598b603eff9b4a0319f8111","Payment\/Factories\/PaymentFactory.php":"b9a8823aca422e4170c23ae93970a254","Payment\/Factories\/SavedCardFactory.php":"5b9458bfd90a4b3d9b14284a235bbb2e","Payment\/Interfaces\/ConvertibleToSDKRequestsInterface.php":"4268b1979aaa433c44dc18e11f749b4d","Payment\/Interfaces\/HaveOrderInterface.php":"60d20b1caf4c7a8f8e6326c3585614d1","Payment\/Interfaces\/ResponseHandlerInterface.php":"30bc279cd8588ea16f86f6ff2c59faec","Payment\/Repositories\/CustomerRepository.php":"1a03ca389eba1ea0889af0ed8d7f74c9","Payment\/Repositories\/SavedCardRepository.php":"d4aebe4d6fc94b39fbc7146e591386a6","Payment\/Services\/CardService.php":"b11cd922226693d420cea82d4816c436","Payment\/Services\/CustomerService.php":"959a4135be499c454b727c10e62c36d9","Payment\/Services\/OrderService.php":"0529579afd6b2928bc6a201a9de9b48b","Payment\/Services\/ResponseHandlers\/AbstractResponseHandler.php":"4787a4aba0e0c467a733e983640e0fa1","Payment\/Services\/ResponseHandlers\/ErrorExceptionHandler.php":"db9cd8ec2baa25de8ce6f5b969048c31","Payment\/Services\/ResponseHandlers\/OrderHandler.php":"547c6c580fadcb314d40b01142cf2c16","Payment\/Services\/ValidationService.php":"3ec6d6066927decf9857adfdb97ae3cc","Payment\/Traits\/WithAmountTrait.php":"a6dded5a3f22e7c68800f9bdaf6d10e9","Payment\/Traits\/WithCustomerTrait.php":"4f22891177ab43565011685729ac60ac","Payment\/Traits\/WithOrderTrait.php":"e43a028866d6a206719b7529f2b9888c","Payment\/ValueObjects\/AbstractCardIdentifier.php":"437680fb95f8c1524603b382b54f36a8","Payment\/ValueObjects\/BoletoBank.php":"1fddd5a4cafc321c2ffe6173a2b1ec9f","Payment\/ValueObjects\/CardId.php":"94186f3a2d11f1119a8e1ddf8eca8dc0","Payment\/ValueObjects\/CardToken.php":"9f099de3de6cef7ab0935701432c9421","Payment\/ValueObjects\/CustomerPhones.php":"301503685b880bd9680308b70c513a86","Payment\/ValueObjects\/CustomerType.php":"be5746ea6bfaccff117d9389f500cef6","Payment\/ValueObjects\/Discounts.php":"847d5f136d6913cebd253d8be1dc6bfa","Payment\/ValueObjects\/PaymentMethod.php":"ed094fe0edc65d667f350053df204f4b","Payment\/ValueObjects\/Phone.php":"4af1531dcc52fb1b69647e9b7c588e5f","Payment\/ValueObjects\/PixBank.php":"3cfa6ca4e0bd594fdbbdff5a951b7af9","Recurrence\/Aggregates\/Charge.php":"07fddcd3e76dfe1fa745ae3be10b0fbb","Recurrence\/Aggregates\/Cycle.php":"3e520e6fd0604a724da8b1f498508585","Recurrence\/Aggregates\/Increment.php":"9e57ee0076f428142202befbdfbb1712","Recurrence\/Aggregates\/Invoice.php":"a122d9c3a0430d158c45dd71b02dc9fb","Recurrence\/Aggregates\/Plan.php":"aad952f260ea1af119154900c893d940","Recurrence\/Aggregates\/ProductSubscription.php":"4a93f873b4e239a4cc71289762c9e4f5","Recurrence\/Aggregates\/Repetition.php":"fe17417f6621d0a569b8ae0fa7da0319","Recurrence\/Aggregates\/SubProduct.php":"5e0d9af06b9d28abe30ce37224269cfc","Recurrence\/Aggregates\/Subscription.php":"0071b70611f5b6790dc94ccf3118edc9","Recurrence\/Aggregates\/SubscriptionItem.php":"cec5c3ac3064a889fd9002e528c52506","Recurrence\/Factories\/ChargeFactory.php":"893249fdf783453f56d15dff6237f1a2","Recurrence\/Factories\/CycleFactory.php":"cb7a5f17638d1b1e4cbc0e05ce913b06","Recurrence\/Factories\/InvoiceFactory.php":"44bb952cb63839d32d607b64fb85041c","Recurrence\/Factories\/PlanFactory.php":"9adbb85f4d5cd0dae73729858716e890","Recurrence\/Factories\/ProductSubscriptionFactory.php":"b6d2f2cbbec0b2dcb88f4b72742f240c","Recurrence\/Factories\/RepetitionFactory.php":"365063d8d45f018c8e2c09a02858655f","Recurrence\/Factories\/SubProductFactory.php":"682bf4f71a8036e6bc8182c9ecb631ff","Recurrence\/Factories\/SubscriptionFactory.php":"a9affabcdd02e456f75ed4f75fb7cbb4","Recurrence\/Factories\/SubscriptionItemFactory.php":"1b97f8548c44bc8f6b23d01926e3fd5a","Recurrence\/Factories\/TreatFactoryChargeDataBase.php":"b9db25fdda3cb3bce9730f60a07bce0d","Recurrence\/Interfaces\/ProductPlanInterface.php":"081cfe83da9024126df32b5f07cefad3","Recurrence\/Interfaces\/ProductSubscriptionInterface.php":"9be091ae2ca97688e595aed2d31d1111","Recurrence\/Interfaces\/RecurrenceEntityInterface.php":"b5b393253682761c79e5a18ec995c0bc","Recurrence\/Interfaces\/RepetitionInterface.php":"753dc0159167f19b4512bda555ed4298","Recurrence\/Interfaces\/SubProductEntityInterface.php":"9c90f8e923dbe41935854c7c1b65d97e","Recurrence\/Repositories\/ChargeRepository.php":"046875a583c2e54e9ec306bc75d9aa3d","Recurrence\/Repositories\/PlanRepository.php":"799691401903a8bab88f5db69b4048b7","Recurrence\/Repositories\/ProductSubscriptionRepository.php":"585b27a4301597150fcd174b329c2157","Recurrence\/Repositories\/RepetitionRepository.php":"8699ab8a3fc457a6037cd523cb114525","Recurrence\/Repositories\/SubProductRepository.php":"4dc51e62c0516dd64a7f77ec9e9e56b3","Recurrence\/Repositories\/SubscriptionItemRepository.php":"0d93ef072aa93671c9daea08e164cf5e","Recurrence\/Repositories\/SubscriptionRepository.php":"dfd89b6947564e914ba29ba734296a63","Recurrence\/Services\/CartRules\/CompatibleRecurrenceProducts.php":"88b1d36ed7e5e5fa52a4a13d4e17dcf3","Recurrence\/Services\/CartRules\/CurrentProduct.php":"c48c699e1326a91c94239ee67bb780d0","Recurrence\/Services\/CartRules\/JustOneProductPlanInCart.php":"204e9edef568613bc888faaf49889bce","Recurrence\/Services\/CartRules\/JustProductPlanInCart.php":"e05573bd214e6dd48a898504dddb6baa","Recurrence\/Services\/CartRules\/JustSelfProductPlanInCart.php":"dada815c9d5f9ba84c0a77d832f1cfdd","Recurrence\/Services\/CartRules\/MoreThanOneRecurrenceProduct.php":"028c720d594d6dcf7ecae3cd22d63763","Recurrence\/Services\/CartRules\/NormalWithRecurrenceProduct.php":"3464167e4b3036400a647184ccc94505","Recurrence\/Services\/CartRules\/ProductListInCart.php":"cd677e7d7e92abcde698cb9805340518","Recurrence\/Services\/CartRules\/RuleInterface.php":"f021c537ee330056c4b66c8864661926","Recurrence\/Services\/InvoiceService.php":"ee1b1e616afbf1a5f168f26490e2acfa","Recurrence\/Services\/PlanService.php":"c4a6dda124e609ff9792767800b5d0ed","Recurrence\/Services\/ProductSubscriptionService.php":"9f2a0d254c7005adcd38b0d149851c3d","Recurrence\/Services\/RecurrenceService.php":"e439175b72c49503ea3ce12f991eb766","Recurrence\/Services\/RepetitionService.php":"f205a69495110670be3b8ceb0abc326f","Recurrence\/Services\/ResponseHandlers\/AbstractResponseHandler.php":"72aef20dbb512b1788fc90aee70d65c7","Recurrence\/Services\/ResponseHandlers\/ChargeHandler.php":"372472cdaeac39cae584347ce194a46c","Recurrence\/Services\/ResponseHandlers\/ErrorExceptionHandler.php":"db9cd8ec2baa25de8ce6f5b969048c31","Recurrence\/Services\/ResponseHandlers\/SubscriptionHandler.php":"18636e48093edb545140e6ab2fbc76be","Recurrence\/Services\/RulesCheckoutService.php":"eee646b3b3904cdd09c11220a23f2e07","Recurrence\/Services\/SubProductService.php":"e3b62067abbd9521bcd01861ea4d0e90","Recurrence\/Services\/SubscriptionItemService.php":"2efad9f2bab5e1c978428b5f36046352","Recurrence\/Services\/SubscriptionService.php":"53932cfa6eda52f29a573edd6fc9c0d0","Recurrence\/ValueObjects\/IntervalValueObject.php":"97d63620b6010a132c0cd4ee8ae9c09c","Recurrence\/ValueObjects\/InvoiceIdValueObject.php":"c3de4d2d317d849c2e7cb25b27c4fce3","Recurrence\/ValueObjects\/InvoiceStatus.php":"38cb94cb149577e6684b2ee78e5c5cdf","Recurrence\/ValueObjects\/PlanId.php":"6341f6583b928749bc21f682fb16e32f","Recurrence\/ValueObjects\/PlanItemId.php":"424e30cc510fff149f6781c99649f76a","Recurrence\/ValueObjects\/PricingSchemeValueObject.php":"399cace0b04bdf9879a162c3620aeb2e","Recurrence\/ValueObjects\/SubscriptionItemId.php":"2294c63600d84392f1a8aa73112db740","Recurrence\/ValueObjects\/SubscriptionStatus.php":"c7fddac3e398a98c3ddd5ed214b5155e","Webhook\/Aggregates\/Webhook.php":"083d48ae7e25e96f5aaa47865625c6e7","Webhook\/Exceptions\/UnprocessableWebhookException.php":"1d1e3245fa577555890f4e0f4cc244dc","Webhook\/Exceptions\/WebhookAlreadyHandledException.php":"1d3dd42a0c2408b14e3a138a72f643e7","Webhook\/Exceptions\/WebhookHandlerNotFoundException.php":"f06efdf934787448214026aba7b9ea29","Webhook\/Factories\/WebhookFactory.php":"7f2960cff2e66f7eace50eb19ae950d4","Webhook\/Repositories\/WebhookRepository.php":"a55ea549e77ed9e80acc21cb847ffc02","Webhook\/Services\/AbstractHandlerService.php":"42f29ccf73d550ce457441bd1a99c1f3","Webhook\/Services\/ChargeHandlerService.php":"c4d711d14204d35e93f0bd36dde3668c","Webhook\/Services\/ChargeOrderService.php":"91ed9002cfdd217ded278339e841395a","Webhook\/Services\/ChargeRecurrenceService.php":"3a87ba84412b2e9bc9aa349b51f93d76","Webhook\/Services\/InvoiceHandlerService.php":"b42566b08e88ed850b8f660e18a790dc","Webhook\/Services\/InvoiceRecurrenceService.php":"a7bac9e1c5d3f658f3279e18aa8af1fe","Webhook\/Services\/SubscriptionHandlerService.php":"e72b4c8cd493bf8d3c2efbe783b42eb2","Webhook\/Services\/WebhookReceiverService.php":"b60969e28783afb589cfea7e0793679b","Webhook\/ValueObjects\/WebhookId.php":"f6c94645a470097922fd4f79b32653d5","Webhook\/ValueObjects\/WebhookType.php":"c979b1e7c32ada342da46174417115d7"} \ No newline at end of file +{"Hub\/Aggregates\/InstallToken.php":"0e628cd32fedc547845b2ccd62c7c3ec","Hub\/Commands\/AbstractCommand.php":"a4d41d474dd582ec977bf72454074dc6","Hub\/Commands\/CommandType.php":"1c085b4d720e71afdaf76fbbd9da1d38","Hub\/Commands\/InstallCommand.php":"2a6eb9a0388298906f98896dacf2bf00","Hub\/Commands\/UninstallCommand.php":"5a6b8677c4eb4ce6449c5d3e53e8cade","Hub\/Commands\/UpdateCommand.php":"02aa557e69331761b9bcb6d712214b7a","Hub\/Factories\/HubCommandFactory.php":"0687d96212b439dc678cfd866c866db7","Hub\/Factories\/InstallTokenFactory.php":"f1a5b0649a196b34010d23a8dcce5b2a","Hub\/Repositories\/InstallTokenRepository.php":"fb9a5db61ad0a77894a3b58935f1094e","Hub\/Services\/HubIntegrationService.php":"fc2eb60bc67a510279ca63001543f6b4","Hub\/ValueObjects\/HubInstallToken.php":"ace3b13b6892bb457c38294bd7a815fe","Kernel\/Abstractions\/AbstractCreditmemoDecorator.php":"93b82d09bf8ef0a3e3ac1866d28e53ac","Kernel\/Abstractions\/AbstractDataService.php":"a72345aff22ecf3340923aa874ae368d","Kernel\/Abstractions\/AbstractDatabaseDecorator.php":"00c2e53656f5b6f3966f69350a0f9936","Kernel\/Abstractions\/AbstractEntity.php":"147767127d2d842025ab6c3bd187c7fc","Kernel\/Abstractions\/AbstractI18NTable.php":"6fba328ddc12f8b3d9e533d3808e580f","Kernel\/Abstractions\/AbstractInvoiceDecorator.php":"d451967616cedd91b525746f2bf49d9b","Kernel\/Abstractions\/AbstractModuleCoreSetup.php":"bb8e46641d7bf92c85bdb1d74354985a","Kernel\/Abstractions\/AbstractPlatformOrderDecorator.php":"0ff63674b614493f25e4791bd353af50","Kernel\/Abstractions\/AbstractRepository.php":"150eef81d88b1523f2c91cb811d7eabf","Kernel\/Abstractions\/AbstractValueObject.php":"4d634ce30445fb2a4688b9e2553e5c0c","Kernel\/Aggregates\/Charge.php":"616ba2086baac54bed9717804b1c5898","Kernel\/Aggregates\/Configuration.php":"b77a26a30a1e8d510238ec4b4a68b7e4","Kernel\/Aggregates\/LogObject.php":"4ded9be00f5f265d9f44a71be6857b4a","Kernel\/Aggregates\/Order.php":"d641cb8f67fdca4f55655b037aca8121","Kernel\/Aggregates\/Transaction.php":"7ff7a1eb820048ce2add560744559e52","Kernel\/Exceptions\/AbstractMundipaggCoreException.php":"7c5b99b0cbd9b8262d24a85c769d8868","Kernel\/Exceptions\/InvalidClassException.php":"58621c5fd8d5709064156bae79c89d82","Kernel\/Exceptions\/InvalidOperationException.php":"2b1a8083f177d18c53dc0402b17b6d1d","Kernel\/Exceptions\/InvalidParamException.php":"ce41cc85401ffebd613bbc43f10e9b37","Kernel\/Exceptions\/NotFoundException.php":"d98efcb682e64d91e406f6a8297a7ad6","Kernel\/Factories\/ChargeFactory.php":"85e51b39a667d7da2edbef37c491daa4","Kernel\/Factories\/ConfigurationFactory.php":"b8c478236917141f8cb74db359017e62","Kernel\/Factories\/Configurations\/DebitConfigFactory.php":"9277ad2e332d182e85eb2be41e7fb624","Kernel\/Factories\/Configurations\/PixConfigFactory.php":"b3136cba301e886ae32246364887c878","Kernel\/Factories\/Configurations\/RecurrenceConfigFactory.php":"701de05ea7c7f6e3160b0999a694c2a9","Kernel\/Factories\/Configurations\/VoucherConfigFactory.php":"fe0e93a9c613221f799e8073c102908f","Kernel\/Factories\/LogObjectFactory.php":"775c77857a38f91cbc62631f8381c75c","Kernel\/Factories\/OrderFactory.php":"11b5c1460735a3abb49a245dc59e20e2","Kernel\/Factories\/TransactionFactory.php":"26b2f53abc761fad7468bdb950db3df6","Kernel\/Helper\/StringFunctionsHelper.php":"01bc8d71d7ba79923ebb39070e6d674e","Kernel\/I18N\/ENUS.php":"49a150e83e59838d8d198899a94d5fe4","Kernel\/I18N\/PTBR.php":"73f08dd14e9532d4a7c17ee81740db36","Kernel\/Interfaces\/ChargeInterface.php":"91eafb9e1efa782de7637f062dde6f9b","Kernel\/Interfaces\/CommandInterface.php":"904330eac5f331ffe0c770e8e883b21d","Kernel\/Interfaces\/FactoryCreateFromDbDataInterface.php":"a7e1ac11f85b6ab4133dfbac28aa6d49","Kernel\/Interfaces\/FactoryCreateFromPostDataInterface.php":"5258e1301a071f65e8910ca9e40a6516","Kernel\/Interfaces\/FactoryInterface.php":"2123a255a3b099d6c56d496b976550c5","Kernel\/Interfaces\/I18NTableInterface.php":"fdc98d8e3e303fa1f5226e6005d8e174","Kernel\/Interfaces\/PlatformCreditmemoInterface.php":"16fd9f574d7d079531e53a06539fb0eb","Kernel\/Interfaces\/PlatformCustomerInterface.php":"59e3c922e0e9702eb1bd9188450cdd83","Kernel\/Interfaces\/PlatformInvoiceInterface.php":"de04e02a978bf14c815e5017d29cbbb3","Kernel\/Interfaces\/PlatformOrderInterface.php":"c283adf8e174590cd7ae072b1bc9ac76","Kernel\/Interfaces\/PlatformPaymentMethodInterface.php":"e084a33456b461b1e1e4298efdc0f198","Kernel\/Interfaces\/PlatformProductInterface.php":"c680d2a9b314d8309be392212a881538","Kernel\/Interfaces\/SensibleDataInterface.php":"032c473d91f0aaae00237463df692ba0","Kernel\/Log\/JsonPrettyFormatter.php":"5e073a0b02366a06881bd19a5d3bf6da","Kernel\/Repositories\/ChargeRepository.php":"4d6d8bb21ba217bfcc8f6e7c96141276","Kernel\/Repositories\/ConfigurationRepository.php":"a23cfbdb90bd5dde377afcd5a0157891","Kernel\/Repositories\/OrderRepository.php":"ac7b6d6e883cb5ab44f2a65cdec81f2c","Kernel\/Repositories\/TransactionRepository.php":"ff990657945142e384360a1cbc28fc7e","Kernel\/Responses\/ServiceResponse.php":"efda128ac813faf52c5c608f5c210ca4","Kernel\/Services\/APIService.php":"08b824b813f4692390d44c16f0a46bef","Kernel\/Services\/ChargeService.php":"d0be2132cdafa2ba6d420625804272b0","Kernel\/Services\/FactoryService.php":"60354a164b8f868013ed2f1c32d196b8","Kernel\/Services\/InstallmentService.php":"192efa8483a84521513f8679667a9d6a","Kernel\/Services\/InvoiceService.php":"de84293f748ea01ebc0c2d0bb855f430","Kernel\/Services\/LocalizationService.php":"5cf3da48120b66d950087ca8e5fa3402","Kernel\/Services\/LogService.php":"cb9490f59ab8f1d7a6bde64613877053","Kernel\/Services\/MoneyService.php":"a3cc976313fe681cf68580459a3b0a3c","Kernel\/Services\/OrderCreationService.php":"b780562445d17891be35367a1f31fb04","Kernel\/Services\/OrderLogService.php":"fc364a531aeadff008a0a836a664e174","Kernel\/Services\/OrderService.php":"55e898c3d55e35a9a3ec53b2c4557512","Kernel\/Services\/VersionService.php":"4bf45b1805d133b23a927f3103d3cda0","Kernel\/ValueObjects\/AbstractValidString.php":"823bc25f29435aa35978910e88a1da82","Kernel\/ValueObjects\/CardBrand.php":"0025232928b480d370bf7405cf8d8343","Kernel\/ValueObjects\/ChargeStatus.php":"d027523e011e978175d97a2f962ecf67","Kernel\/ValueObjects\/Configuration\/AddressAttributes.php":"d5455e0098cf6d4df8af19b213f648b9","Kernel\/ValueObjects\/Configuration\/CardConfig.php":"ec905f11ed5a8206baaf221c8f20f24d","Kernel\/ValueObjects\/Configuration\/DebitConfig.php":"c9a50e99c1f9ad109764594d4007cd99","Kernel\/ValueObjects\/Configuration\/PixConfig.php":"9d1406f43dbb5deb2c3cdfb7ed8d91de","Kernel\/ValueObjects\/Configuration\/RecurrenceConfig.php":"546be4b717961acdaa1633dda73386b0","Kernel\/ValueObjects\/Configuration\/VoucherConfig.php":"f3a7370c0daf02610a2effad54169887","Kernel\/ValueObjects\/Installment.php":"c551e1388f067f81e7a112d044b42c5c","Kernel\/ValueObjects\/InvoiceState.php":"9e1a608245da11b5a27a82b66c49d6f9","Kernel\/ValueObjects\/Key\/AbstractPublicKey.php":"65bebc3403ddac895f6550570775defd","Kernel\/ValueObjects\/Key\/AbstractSecretKey.php":"618b41b21bdf23336ecaffc339631e85","Kernel\/ValueObjects\/Key\/HubAccessTokenKey.php":"a7175a5306449fcb9ace013878de1931","Kernel\/ValueObjects\/Key\/PublicKey.php":"40ee9f5ca58bc40a754d6f3268f14430","Kernel\/ValueObjects\/Key\/SecretKey.php":"e0416c2a3b2cf33eec20f1f44b7e6e2f","Kernel\/ValueObjects\/Key\/TestPublicKey.php":"c0d17f4453a14be1298bd684d1ebf37b","Kernel\/ValueObjects\/Key\/TestSecretKey.php":"ba78e3887154730864643c11ca984188","Kernel\/ValueObjects\/NumericString.php":"76e8b482fa443ec81be264f81cd79458","Kernel\/ValueObjects\/OrderState.php":"ef969d7fef8e81a0b33339fd18e360cc","Kernel\/ValueObjects\/OrderStatus.php":"7a0dbd10794db55d29f20da996c70ba9","Kernel\/ValueObjects\/PaymentMethod.php":"1f743349235e9deeb1905735c81c4d91","Kernel\/ValueObjects\/TransactionStatus.php":"09e0402ba1a88e3d3c0c383dc57c9815","Kernel\/ValueObjects\/TransactionType.php":"e878ff5099debb1e9625a25463115184","Kernel\/ValueObjects\/VersionInfo.php":"63ad91e7de5cace5865aefe7d9e6c7c5","Maintenance\/Assets\/integrityData":"2829f5dc704d34beef065de118b95098","Maintenance\/Interfaces\/InfoRetrieverServiceInterface.php":"8e76a3d86d269f25227059455ccf7ce7","Maintenance\/Interfaces\/InstallDataSourceInterface.php":"79f716ab47c4fbee2e75e4768d43cfcb","Maintenance\/Interfaces\/ModuleInstallTypeInterface.php":"ce537b3d50f7ff5d581ed6cea1eda899","Maintenance\/Services\/ConfigInfoRetrieverService.php":"4d0a8375676b7dbab3047a3e638913bb","Maintenance\/Services\/InfoBuilderService.php":"710f22f942e86973f8b6257b40e32bf6","Maintenance\/Services\/InstallDataSource\/AbstractInstallDataSource.php":"5a4536dca4618fe41a43e5bada45e1d3","Maintenance\/Services\/InstallDataSource\/ComposerInstallDataSource.php":"82012f126b0f83ac715391fed6b80349","Maintenance\/Services\/InstallDataSource\/CoreInstallDataSource.php":"d4c29f8ffa600e75990998586f08543f","Maintenance\/Services\/InstallDataSource\/ModmanInstallDataSource.php":"16defbaed6e6765b7dd71a9d8fbbd509","Maintenance\/Services\/IntegrityInfoRetrieverService.php":"62b15ac070402cbb16284646de3c599d","Maintenance\/Services\/LogDownloadInfoRetrieverService.php":"ae6255d80e8be7ac2e61837a84414220","Maintenance\/Services\/LogInfoRetrieverService.php":"fd74bb350cbec4b34debc31c460c69d2","Maintenance\/Services\/OrderInfoRetrieverService.php":"4f0aa2f9233fb7abe8ddc756f166ea4f","Maintenance\/Services\/PhpInfoRetrieverService.php":"9e59c91e73677716318cada5bac01fef","Maintenance\/Services\/VersionInfoRetrieverService.php":"7bee9de1c8dedefa536d588d68fb5bbf","Payment\/Aggregates\/Address.php":"7a25e6400f5b776e4d483b0334d000ed","Payment\/Aggregates\/Customer.php":"a56d43958c93811e20158e887cc8d94e","Payment\/Aggregates\/Item.php":"1f86e67d72450c964165d2bf5a013e09","Payment\/Aggregates\/Order.php":"bffa291c61f5cc54bff83af7e644390b","Payment\/Aggregates\/Payments\/AbstractCreditCardPayment.php":"f496002feaea02fa68113344615e1241","Payment\/Aggregates\/Payments\/AbstractPayment.php":"efe91ca517bdf32cf6688ce7728d9342","Payment\/Aggregates\/Payments\/BoletoPayment.php":"a5c739a7f0644fbd5c1876da349791fd","Payment\/Aggregates\/Payments\/NewCreditCardPayment.php":"378dd6cbfce9ac0b72c13dc7be51c9d8","Payment\/Aggregates\/Payments\/NewDebitCardPayment.php":"77208e10c8a5e6efe9f63fa6f4c019a8","Payment\/Aggregates\/Payments\/NewVoucherPayment.php":"1b7ec7507c6aec4b3218fe39935f33e8","Payment\/Aggregates\/Payments\/PixPayment.php":"ed1077ac67a9e265d02dd355aeae3b3f","Payment\/Aggregates\/Payments\/SavedCreditCardPayment.php":"b1817a6779d4ce37722e76b8a16f7d58","Payment\/Aggregates\/Payments\/SavedDebitCardPayment.php":"0641fe112a9c17e5b2383adf0ecc803b","Payment\/Aggregates\/Payments\/SavedVoucherCardPayment.php":"7b536c037614213adb88d65052e08e33","Payment\/Aggregates\/SavedCard.php":"cf9ba0c72b08190bb031f95469754245","Payment\/Aggregates\/Shipping.php":"065f42d23555a392d1c4afeae5ebb45b","Payment\/Factories\/AddressFactory.php":"e6a3aac8f8141ad61320d05670009971","Payment\/Factories\/CustomerFactory.php":"8df98e937598b603eff9b4a0319f8111","Payment\/Factories\/PaymentFactory.php":"b9a8823aca422e4170c23ae93970a254","Payment\/Factories\/SavedCardFactory.php":"5b9458bfd90a4b3d9b14284a235bbb2e","Payment\/Interfaces\/ConvertibleToSDKRequestsInterface.php":"4268b1979aaa433c44dc18e11f749b4d","Payment\/Interfaces\/HaveOrderInterface.php":"60d20b1caf4c7a8f8e6326c3585614d1","Payment\/Interfaces\/ResponseHandlerInterface.php":"30bc279cd8588ea16f86f6ff2c59faec","Payment\/Repositories\/CustomerRepository.php":"1a03ca389eba1ea0889af0ed8d7f74c9","Payment\/Repositories\/SavedCardRepository.php":"d4aebe4d6fc94b39fbc7146e591386a6","Payment\/Services\/CardService.php":"b11cd922226693d420cea82d4816c436","Payment\/Services\/CustomerService.php":"959a4135be499c454b727c10e62c36d9","Payment\/Services\/OrderService.php":"0529579afd6b2928bc6a201a9de9b48b","Payment\/Services\/ResponseHandlers\/AbstractResponseHandler.php":"4787a4aba0e0c467a733e983640e0fa1","Payment\/Services\/ResponseHandlers\/ErrorExceptionHandler.php":"db9cd8ec2baa25de8ce6f5b969048c31","Payment\/Services\/ResponseHandlers\/OrderHandler.php":"547c6c580fadcb314d40b01142cf2c16","Payment\/Services\/ValidationService.php":"3ec6d6066927decf9857adfdb97ae3cc","Payment\/Traits\/WithAmountTrait.php":"a6dded5a3f22e7c68800f9bdaf6d10e9","Payment\/Traits\/WithCustomerTrait.php":"4f22891177ab43565011685729ac60ac","Payment\/Traits\/WithOrderTrait.php":"e43a028866d6a206719b7529f2b9888c","Payment\/ValueObjects\/AbstractCardIdentifier.php":"437680fb95f8c1524603b382b54f36a8","Payment\/ValueObjects\/BoletoBank.php":"1fddd5a4cafc321c2ffe6173a2b1ec9f","Payment\/ValueObjects\/CardId.php":"94186f3a2d11f1119a8e1ddf8eca8dc0","Payment\/ValueObjects\/CardToken.php":"9f099de3de6cef7ab0935701432c9421","Payment\/ValueObjects\/CustomerPhones.php":"301503685b880bd9680308b70c513a86","Payment\/ValueObjects\/CustomerType.php":"be5746ea6bfaccff117d9389f500cef6","Payment\/ValueObjects\/Discounts.php":"847d5f136d6913cebd253d8be1dc6bfa","Payment\/ValueObjects\/PaymentMethod.php":"ed094fe0edc65d667f350053df204f4b","Payment\/ValueObjects\/Phone.php":"e684432a20606358e77b7a12853b4d1f","Payment\/ValueObjects\/PixBank.php":"3cfa6ca4e0bd594fdbbdff5a951b7af9","Recurrence\/Aggregates\/Charge.php":"07fddcd3e76dfe1fa745ae3be10b0fbb","Recurrence\/Aggregates\/Cycle.php":"3e520e6fd0604a724da8b1f498508585","Recurrence\/Aggregates\/Increment.php":"9e57ee0076f428142202befbdfbb1712","Recurrence\/Aggregates\/Invoice.php":"a122d9c3a0430d158c45dd71b02dc9fb","Recurrence\/Aggregates\/Plan.php":"aad952f260ea1af119154900c893d940","Recurrence\/Aggregates\/ProductSubscription.php":"4a93f873b4e239a4cc71289762c9e4f5","Recurrence\/Aggregates\/Repetition.php":"fe17417f6621d0a569b8ae0fa7da0319","Recurrence\/Aggregates\/SubProduct.php":"5e0d9af06b9d28abe30ce37224269cfc","Recurrence\/Aggregates\/Subscription.php":"0071b70611f5b6790dc94ccf3118edc9","Recurrence\/Aggregates\/SubscriptionItem.php":"cec5c3ac3064a889fd9002e528c52506","Recurrence\/Factories\/ChargeFactory.php":"893249fdf783453f56d15dff6237f1a2","Recurrence\/Factories\/CycleFactory.php":"cb7a5f17638d1b1e4cbc0e05ce913b06","Recurrence\/Factories\/InvoiceFactory.php":"44bb952cb63839d32d607b64fb85041c","Recurrence\/Factories\/PlanFactory.php":"9adbb85f4d5cd0dae73729858716e890","Recurrence\/Factories\/ProductSubscriptionFactory.php":"b6d2f2cbbec0b2dcb88f4b72742f240c","Recurrence\/Factories\/RepetitionFactory.php":"365063d8d45f018c8e2c09a02858655f","Recurrence\/Factories\/SubProductFactory.php":"682bf4f71a8036e6bc8182c9ecb631ff","Recurrence\/Factories\/SubscriptionFactory.php":"a9affabcdd02e456f75ed4f75fb7cbb4","Recurrence\/Factories\/SubscriptionItemFactory.php":"1b97f8548c44bc8f6b23d01926e3fd5a","Recurrence\/Factories\/TreatFactoryChargeDataBase.php":"b9db25fdda3cb3bce9730f60a07bce0d","Recurrence\/Interfaces\/ProductPlanInterface.php":"081cfe83da9024126df32b5f07cefad3","Recurrence\/Interfaces\/ProductSubscriptionInterface.php":"9be091ae2ca97688e595aed2d31d1111","Recurrence\/Interfaces\/RecurrenceEntityInterface.php":"b5b393253682761c79e5a18ec995c0bc","Recurrence\/Interfaces\/RepetitionInterface.php":"753dc0159167f19b4512bda555ed4298","Recurrence\/Interfaces\/SubProductEntityInterface.php":"9c90f8e923dbe41935854c7c1b65d97e","Recurrence\/Repositories\/ChargeRepository.php":"046875a583c2e54e9ec306bc75d9aa3d","Recurrence\/Repositories\/PlanRepository.php":"799691401903a8bab88f5db69b4048b7","Recurrence\/Repositories\/ProductSubscriptionRepository.php":"585b27a4301597150fcd174b329c2157","Recurrence\/Repositories\/RepetitionRepository.php":"8699ab8a3fc457a6037cd523cb114525","Recurrence\/Repositories\/SubProductRepository.php":"4dc51e62c0516dd64a7f77ec9e9e56b3","Recurrence\/Repositories\/SubscriptionItemRepository.php":"0d93ef072aa93671c9daea08e164cf5e","Recurrence\/Repositories\/SubscriptionRepository.php":"dfd89b6947564e914ba29ba734296a63","Recurrence\/Services\/CartRules\/CompatibleRecurrenceProducts.php":"88b1d36ed7e5e5fa52a4a13d4e17dcf3","Recurrence\/Services\/CartRules\/CurrentProduct.php":"c48c699e1326a91c94239ee67bb780d0","Recurrence\/Services\/CartRules\/JustOneProductPlanInCart.php":"204e9edef568613bc888faaf49889bce","Recurrence\/Services\/CartRules\/JustProductPlanInCart.php":"e05573bd214e6dd48a898504dddb6baa","Recurrence\/Services\/CartRules\/JustSelfProductPlanInCart.php":"dada815c9d5f9ba84c0a77d832f1cfdd","Recurrence\/Services\/CartRules\/MoreThanOneRecurrenceProduct.php":"028c720d594d6dcf7ecae3cd22d63763","Recurrence\/Services\/CartRules\/NormalWithRecurrenceProduct.php":"3464167e4b3036400a647184ccc94505","Recurrence\/Services\/CartRules\/ProductListInCart.php":"cd677e7d7e92abcde698cb9805340518","Recurrence\/Services\/CartRules\/RuleInterface.php":"f021c537ee330056c4b66c8864661926","Recurrence\/Services\/InvoiceService.php":"ee1b1e616afbf1a5f168f26490e2acfa","Recurrence\/Services\/PlanService.php":"c4a6dda124e609ff9792767800b5d0ed","Recurrence\/Services\/ProductSubscriptionService.php":"9f2a0d254c7005adcd38b0d149851c3d","Recurrence\/Services\/RecurrenceService.php":"e439175b72c49503ea3ce12f991eb766","Recurrence\/Services\/RepetitionService.php":"f205a69495110670be3b8ceb0abc326f","Recurrence\/Services\/ResponseHandlers\/AbstractResponseHandler.php":"72aef20dbb512b1788fc90aee70d65c7","Recurrence\/Services\/ResponseHandlers\/ChargeHandler.php":"372472cdaeac39cae584347ce194a46c","Recurrence\/Services\/ResponseHandlers\/ErrorExceptionHandler.php":"db9cd8ec2baa25de8ce6f5b969048c31","Recurrence\/Services\/ResponseHandlers\/SubscriptionHandler.php":"18636e48093edb545140e6ab2fbc76be","Recurrence\/Services\/RulesCheckoutService.php":"eee646b3b3904cdd09c11220a23f2e07","Recurrence\/Services\/SubProductService.php":"e3b62067abbd9521bcd01861ea4d0e90","Recurrence\/Services\/SubscriptionItemService.php":"2efad9f2bab5e1c978428b5f36046352","Recurrence\/Services\/SubscriptionService.php":"0185959d04f4d24b1a0b4a20fe7f0812","Recurrence\/ValueObjects\/IntervalValueObject.php":"97d63620b6010a132c0cd4ee8ae9c09c","Recurrence\/ValueObjects\/InvoiceIdValueObject.php":"c3de4d2d317d849c2e7cb25b27c4fce3","Recurrence\/ValueObjects\/InvoiceStatus.php":"38cb94cb149577e6684b2ee78e5c5cdf","Recurrence\/ValueObjects\/PlanId.php":"6341f6583b928749bc21f682fb16e32f","Recurrence\/ValueObjects\/PlanItemId.php":"424e30cc510fff149f6781c99649f76a","Recurrence\/ValueObjects\/PricingSchemeValueObject.php":"399cace0b04bdf9879a162c3620aeb2e","Recurrence\/ValueObjects\/SubscriptionItemId.php":"2294c63600d84392f1a8aa73112db740","Recurrence\/ValueObjects\/SubscriptionStatus.php":"c7fddac3e398a98c3ddd5ed214b5155e","Webhook\/Aggregates\/Webhook.php":"083d48ae7e25e96f5aaa47865625c6e7","Webhook\/Exceptions\/UnprocessableWebhookException.php":"1d1e3245fa577555890f4e0f4cc244dc","Webhook\/Exceptions\/WebhookAlreadyHandledException.php":"1d3dd42a0c2408b14e3a138a72f643e7","Webhook\/Exceptions\/WebhookHandlerNotFoundException.php":"f06efdf934787448214026aba7b9ea29","Webhook\/Factories\/WebhookFactory.php":"7f2960cff2e66f7eace50eb19ae950d4","Webhook\/Repositories\/WebhookRepository.php":"a55ea549e77ed9e80acc21cb847ffc02","Webhook\/Services\/AbstractHandlerService.php":"42f29ccf73d550ce457441bd1a99c1f3","Webhook\/Services\/ChargeHandlerService.php":"c4d711d14204d35e93f0bd36dde3668c","Webhook\/Services\/ChargeOrderService.php":"91ed9002cfdd217ded278339e841395a","Webhook\/Services\/ChargeRecurrenceService.php":"3a87ba84412b2e9bc9aa349b51f93d76","Webhook\/Services\/InvoiceHandlerService.php":"b42566b08e88ed850b8f660e18a790dc","Webhook\/Services\/InvoiceRecurrenceService.php":"a7bac9e1c5d3f658f3279e18aa8af1fe","Webhook\/Services\/SubscriptionHandlerService.php":"e72b4c8cd493bf8d3c2efbe783b42eb2","Webhook\/Services\/WebhookReceiverService.php":"b60969e28783afb589cfea7e0793679b","Webhook\/ValueObjects\/WebhookId.php":"f6c94645a470097922fd4f79b32653d5","Webhook\/ValueObjects\/WebhookType.php":"c979b1e7c32ada342da46174417115d7"} \ No newline at end of file From 7dbf7da032de4415ca1d250db8b1d873464b44ec Mon Sep 17 00:00:00 2001 From: netorodrigues Date: Tue, 17 Aug 2021 15:35:40 -0300 Subject: [PATCH 6/7] =?UTF-8?q?=F0=9F=99=88=20adds=20composer.lock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + composer.lock | 2297 ------------------------------------------------- 2 files changed, 1 insertion(+), 2297 deletions(-) delete mode 100644 composer.lock diff --git a/.gitignore b/.gitignore index fd5fb9a..9bc014c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /.idea/ /vendor/ +composer.lock /tests/report /tests/mock/db_test.sqlite diff --git a/composer.lock b/composer.lock deleted file mode 100644 index f97c7d4..0000000 --- a/composer.lock +++ /dev/null @@ -1,2297 +0,0 @@ -{ - "_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": "3f0d31c70b370635ef8c0ddc4ec3ae8d", - "packages": [ - { - "name": "apimatic/jsonmapper", - "version": "v1.3.1", - "source": { - "type": "git", - "url": "https://github.com/apimatic/jsonmapper.git", - "reference": "0883d385653ebd2a194ec79e66facb7d69441404" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/apimatic/jsonmapper/zipball/0883d385653ebd2a194ec79e66facb7d69441404", - "reference": "0883d385653ebd2a194ec79e66facb7d69441404", - "shasum": "" - }, - "require-dev": { - "phpunit/phpunit": "^5 || ^6 || ^7", - "squizlabs/php_codesniffer": "^3" - }, - "type": "library", - "autoload": { - "psr-4": { - "apimatic\\jsonmapper\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "OSL-3.0" - ], - "authors": [ - { - "name": "Christian Weiske", - "email": "christian.weiske@netresearch.de", - "homepage": "http://www.netresearch.de/", - "role": "Developer" - }, - { - "name": "Mehdi Jaffery", - "email": "mehdi.jaffery@apimatic.io", - "homepage": "http://apimatic.io/", - "role": "Developer" - } - ], - "description": "Map nested JSON structures onto PHP classes", - "time": "2020-04-06T20:47:48+00:00" - }, - { - "name": "apimatic/unirest-php", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/apimatic/unirest-php.git", - "reference": "b4e399a8970c3a5c611f734282f306381f9d1eee" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/apimatic/unirest-php/zipball/b4e399a8970c3a5c611f734282f306381f9d1eee", - "reference": "b4e399a8970c3a5c611f734282f306381f9d1eee", - "shasum": "" - }, - "require": { - "ext-curl": "*", - "php": ">=5.6.0" - }, - "require-dev": { - "phpunit/phpunit": "^5 || ^6 || ^7" - }, - "suggest": { - "ext-json": "Allows using JSON Bodies for sending and parsing requests" - }, - "type": "library", - "autoload": { - "psr-0": { - "Unirest\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mashape", - "email": "opensource@mashape.com", - "homepage": "https://www.mashape.com", - "role": "Developer" - }, - { - "name": "APIMATIC", - "email": "opensource@apimatic.io", - "homepage": "https://www.apimatic.io", - "role": "Developer" - } - ], - "description": "Unirest PHP", - "homepage": "https://github.com/apimatic/unirest-php", - "keywords": [ - "client", - "curl", - "http", - "https", - "rest" - ], - "time": "2020-04-07T17:16:29+00:00" - }, - { - "name": "monolog/monolog", - "version": "1.26.1", - "source": { - "type": "git", - "url": "https://github.com/Seldaek/monolog.git", - "reference": "c6b00f05152ae2c9b04a448f99c7590beb6042f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/c6b00f05152ae2c9b04a448f99c7590beb6042f5", - "reference": "c6b00f05152ae2c9b04a448f99c7590beb6042f5", - "shasum": "" - }, - "require": { - "php": ">=5.3.0", - "psr/log": "~1.0" - }, - "provide": { - "psr/log-implementation": "1.0.0" - }, - "require-dev": { - "aws/aws-sdk-php": "^2.4.9 || ^3.0", - "doctrine/couchdb": "~1.0@dev", - "graylog2/gelf-php": "~1.0", - "php-amqplib/php-amqplib": "~2.4", - "php-console/php-console": "^3.1.3", - "phpstan/phpstan": "^0.12.59", - "phpunit/phpunit": "~4.5", - "ruflin/elastica": ">=0.90 <3.0", - "sentry/sentry": "^0.13", - "swiftmailer/swiftmailer": "^5.3|^6.0" - }, - "suggest": { - "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", - "doctrine/couchdb": "Allow sending log messages to a CouchDB server", - "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", - "ext-mongo": "Allow sending log messages to a MongoDB server", - "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", - "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", - "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", - "php-console/php-console": "Allow sending log messages to Google Chrome", - "rollbar/rollbar": "Allow sending log messages to Rollbar", - "ruflin/elastica": "Allow sending log messages to an Elastic Search server", - "sentry/sentry": "Allow sending log messages to a Sentry server" - }, - "type": "library", - "autoload": { - "psr-4": { - "Monolog\\": "src/Monolog" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" - } - ], - "description": "Sends your logs to files, sockets, inboxes, databases and various web services", - "homepage": "http://github.com/Seldaek/monolog", - "keywords": [ - "log", - "logging", - "psr-3" - ], - "funding": [ - { - "url": "https://github.com/Seldaek", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", - "type": "tidelift" - } - ], - "time": "2021-05-28T08:32:12+00:00" - }, - { - "name": "mundipagg/mundiapi", - "version": "3.1.20", - "source": { - "type": "git", - "url": "https://github.com/mundipagg/MundiAPI-PHP.git", - "reference": "56535b652071d1930b508eb57ffe88ad7647a8f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/mundipagg/MundiAPI-PHP/zipball/56535b652071d1930b508eb57ffe88ad7647a8f5", - "reference": "56535b652071d1930b508eb57ffe88ad7647a8f5", - "shasum": "" - }, - "require": { - "apimatic/jsonmapper": "^1.3.1", - "apimatic/unirest-php": "^2.0.0", - "ext-curl": "*", - "ext-json": "*", - "ext-mbstring": "*", - "php": ">=5.4.0" - }, - "require-dev": { - "squizlabs/php_codesniffer": "^2.7" - }, - "type": "library", - "autoload": { - "psr-4": { - "MundiAPILib\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "APIMatic SDK Generator", - "email": "support@apimatic.io", - "homepage": "https://apimatic.io", - "role": "API Tool" - } - ], - "description": "Mundipagg API", - "homepage": "https://apimatic.io", - "keywords": [ - "MundiAPI", - "api", - "sdk" - ], - "time": "2021-02-26T19:15:09+00:00" - }, - { - "name": "psr/log", - "version": "1.1.4", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Log\\": "Psr/Log/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "time": "2021-05-03T11:20:27+00:00" - } - ], - "packages-dev": [ - { - "name": "doctrine/instantiator", - "version": "1.4.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b", - "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "doctrine/coding-standard": "^8.0", - "ext-pdo": "*", - "ext-phar": "*", - "phpbench/phpbench": "^0.13 || 1.0.0-alpha2", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-phpunit": "^0.12", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "https://ocramius.github.io/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", - "keywords": [ - "constructor", - "instantiate" - ], - "funding": [ - { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", - "type": "tidelift" - } - ], - "time": "2020-11-10T18:47:58+00:00" - }, - { - "name": "hamcrest/hamcrest-php", - "version": "v2.0.1", - "source": { - "type": "git", - "url": "https://github.com/hamcrest/hamcrest-php.git", - "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", - "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", - "shasum": "" - }, - "require": { - "php": "^5.3|^7.0|^8.0" - }, - "replace": { - "cordoval/hamcrest-php": "*", - "davedevelopment/hamcrest-php": "*", - "kodova/hamcrest-php": "*" - }, - "require-dev": { - "phpunit/php-file-iterator": "^1.4 || ^2.0", - "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.1-dev" - } - }, - "autoload": { - "classmap": [ - "hamcrest" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "description": "This is the PHP port of Hamcrest Matchers", - "keywords": [ - "test" - ], - "time": "2020-07-09T08:09:16+00:00" - }, - { - "name": "kylekatarnls/update-helper", - "version": "1.2.1", - "source": { - "type": "git", - "url": "https://github.com/kylekatarnls/update-helper.git", - "reference": "429be50660ed8a196e0798e5939760f168ec8ce9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/kylekatarnls/update-helper/zipball/429be50660ed8a196e0798e5939760f168ec8ce9", - "reference": "429be50660ed8a196e0798e5939760f168ec8ce9", - "shasum": "" - }, - "require": { - "composer-plugin-api": "^1.1.0 || ^2.0.0", - "php": ">=5.3.0" - }, - "require-dev": { - "codeclimate/php-test-reporter": "dev-master", - "composer/composer": "2.0.x-dev || ^2.0.0-dev", - "phpunit/phpunit": ">=4.8.35 <6.0" - }, - "type": "composer-plugin", - "extra": { - "class": "UpdateHelper\\ComposerPlugin" - }, - "autoload": { - "psr-0": { - "UpdateHelper\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Kyle", - "email": "kylekatarnls@gmail.com" - } - ], - "description": "Update helper", - "funding": [ - { - "url": "https://github.com/kylekatarnls", - "type": "github" - }, - { - "url": "https://opencollective.com/Carbon", - "type": "open_collective" - }, - { - "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", - "type": "tidelift" - } - ], - "time": "2020-04-07T20:44:10+00:00" - }, - { - "name": "mockery/mockery", - "version": "1.2.4", - "source": { - "type": "git", - "url": "https://github.com/mockery/mockery.git", - "reference": "b3453f75fd23d9fd41685f2148f4abeacabc6405" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/mockery/mockery/zipball/b3453f75fd23d9fd41685f2148f4abeacabc6405", - "reference": "b3453f75fd23d9fd41685f2148f4abeacabc6405", - "shasum": "" - }, - "require": { - "hamcrest/hamcrest-php": "~2.0", - "lib-pcre": ">=7.0", - "php": ">=5.6.0" - }, - "require-dev": { - "phpunit/phpunit": "~5.7.10|~6.5|~7.0|~8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "autoload": { - "psr-0": { - "Mockery": "library/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Pádraic Brady", - "email": "padraic.brady@gmail.com", - "homepage": "http://blog.astrumfutura.com" - }, - { - "name": "Dave Marshall", - "email": "dave.marshall@atstsolutions.co.uk", - "homepage": "http://davedevelopment.co.uk" - } - ], - "description": "Mockery is a simple yet flexible PHP mock object framework", - "homepage": "https://github.com/mockery/mockery", - "keywords": [ - "BDD", - "TDD", - "library", - "mock", - "mock objects", - "mockery", - "stub", - "test", - "test double", - "testing" - ], - "time": "2019-09-30T08:30:27+00:00" - }, - { - "name": "myclabs/deep-copy", - "version": "1.10.2", - "source": { - "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220", - "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "replace": { - "myclabs/deep-copy": "self.version" - }, - "require-dev": { - "doctrine/collections": "^1.0", - "doctrine/common": "^2.6", - "phpunit/phpunit": "^7.1" - }, - "type": "library", - "autoload": { - "psr-4": { - "DeepCopy\\": "src/DeepCopy/" - }, - "files": [ - "src/DeepCopy/deep_copy.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Create deep copies (clones) of your objects", - "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" - ], - "funding": [ - { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" - } - ], - "time": "2020-11-13T09:40:50+00:00" - }, - { - "name": "nesbot/carbon", - "version": "1.39.0", - "source": { - "type": "git", - "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "dd62a58af4e0775a45ea5f99d0363d81b7d9a1e0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/dd62a58af4e0775a45ea5f99d0363d81b7d9a1e0", - "reference": "dd62a58af4e0775a45ea5f99d0363d81b7d9a1e0", - "shasum": "" - }, - "require": { - "kylekatarnls/update-helper": "^1.1", - "php": ">=5.3.9", - "symfony/translation": "~2.6 || ~3.0 || ~4.0" - }, - "require-dev": { - "composer/composer": "^1.2", - "friendsofphp/php-cs-fixer": "~2", - "phpunit/phpunit": "^4.8.35 || ^5.7" - }, - "bin": [ - "bin/upgrade-carbon" - ], - "type": "library", - "extra": { - "update-helper": "Carbon\\Upgrade", - "laravel": { - "providers": [ - "Carbon\\Laravel\\ServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Brian Nesbitt", - "email": "brian@nesbot.com", - "homepage": "http://nesbot.com" - } - ], - "description": "A simple API extension for DateTime.", - "homepage": "http://carbon.nesbot.com", - "keywords": [ - "date", - "datetime", - "time" - ], - "time": "2019-06-11T09:07:59+00:00" - }, - { - "name": "phpdocumentor/reflection-common", - "version": "2.2.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-2.x": "2.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" - } - ], - "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "http://www.phpdoc.org", - "keywords": [ - "FQSEN", - "phpDocumentor", - "phpdoc", - "reflection", - "static analysis" - ], - "time": "2020-06-27T09:03:43+00:00" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "5.2.2", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556", - "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556", - "shasum": "" - }, - "require": { - "ext-filter": "*", - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.3", - "webmozart/assert": "^1.9.1" - }, - "require-dev": { - "mockery/mockery": "~1.3.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - }, - { - "name": "Jaap van Otterdijk", - "email": "account@ijaap.nl" - } - ], - "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2020-09-03T19:13:55+00:00" - }, - { - "name": "phpdocumentor/type-resolver", - "version": "1.4.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", - "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.0" - }, - "require-dev": { - "ext-tokenizer": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-1.x": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - } - ], - "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", - "time": "2020-09-17T18:55:26+00:00" - }, - { - "name": "phpspec/prophecy", - "version": "v1.10.3", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "451c3cd1418cf640de218914901e51b064abb093" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093", - "reference": "451c3cd1418cf640de218914901e51b064abb093", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.2", - "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", - "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0", - "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0" - }, - "require-dev": { - "phpspec/phpspec": "^2.5 || ^3.2", - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.10.x-dev" - } - }, - "autoload": { - "psr-4": { - "Prophecy\\": "src/Prophecy" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], - "time": "2020-03-05T15:02:03+00:00" - }, - { - "name": "phpunit/php-code-coverage", - "version": "4.0.8", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d", - "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-xmlwriter": "*", - "php": "^5.6 || ^7.0", - "phpunit/php-file-iterator": "^1.3", - "phpunit/php-text-template": "^1.2", - "phpunit/php-token-stream": "^1.4.2 || ^2.0", - "sebastian/code-unit-reverse-lookup": "^1.0", - "sebastian/environment": "^1.3.2 || ^2.0", - "sebastian/version": "^1.0 || ^2.0" - }, - "require-dev": { - "ext-xdebug": "^2.1.4", - "phpunit/phpunit": "^5.7" - }, - "suggest": { - "ext-xdebug": "^2.5.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "time": "2017-04-02T07:44:40+00:00" - }, - { - "name": "phpunit/php-file-iterator", - "version": "1.4.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], - "time": "2017-11-27T13:52:08+00:00" - }, - { - "name": "phpunit/php-text-template", - "version": "1.2.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], - "time": "2015-06-21T13:50:34+00:00" - }, - { - "name": "phpunit/php-timer", - "version": "1.0.9", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "time": "2017-02-26T11:10:40+00:00" - }, - { - "name": "phpunit/php-token-stream", - "version": "2.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "791198a2c6254db10131eecfe8c06670700904db" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db", - "reference": "791198a2c6254db10131eecfe8c06670700904db", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": "^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^6.2.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", - "keywords": [ - "tokenizer" - ], - "abandoned": true, - "time": "2017-11-27T05:48:46+00:00" - }, - { - "name": "phpunit/phpunit", - "version": "5.7.27", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c", - "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "ext-xml": "*", - "myclabs/deep-copy": "~1.3", - "php": "^5.6 || ^7.0", - "phpspec/prophecy": "^1.6.2", - "phpunit/php-code-coverage": "^4.0.4", - "phpunit/php-file-iterator": "~1.4", - "phpunit/php-text-template": "~1.2", - "phpunit/php-timer": "^1.0.6", - "phpunit/phpunit-mock-objects": "^3.2", - "sebastian/comparator": "^1.2.4", - "sebastian/diff": "^1.4.3", - "sebastian/environment": "^1.3.4 || ^2.0", - "sebastian/exporter": "~2.0", - "sebastian/global-state": "^1.1", - "sebastian/object-enumerator": "~2.0", - "sebastian/resource-operations": "~1.0", - "sebastian/version": "^1.0.6|^2.0.1", - "symfony/yaml": "~2.1|~3.0|~4.0" - }, - "conflict": { - "phpdocumentor/reflection-docblock": "3.0.2" - }, - "require-dev": { - "ext-pdo": "*" - }, - "suggest": { - "ext-xdebug": "*", - "phpunit/php-invoker": "~1.1" - }, - "bin": [ - "phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.7.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], - "time": "2018-02-01T05:50:59+00:00" - }, - { - "name": "phpunit/phpunit-mock-objects", - "version": "3.4.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "a23b761686d50a560cc56233b9ecf49597cc9118" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118", - "reference": "a23b761686d50a560cc56233b9ecf49597cc9118", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.2", - "php": "^5.6 || ^7.0", - "phpunit/php-text-template": "^1.2", - "sebastian/exporter": "^1.2 || ^2.0" - }, - "conflict": { - "phpunit/phpunit": "<5.4.0" - }, - "require-dev": { - "phpunit/phpunit": "^5.4" - }, - "suggest": { - "ext-soap": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.2.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Mock Object library for PHPUnit", - "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", - "keywords": [ - "mock", - "xunit" - ], - "abandoned": true, - "time": "2017-06-30T09:13:00+00:00" - }, - { - "name": "sebastian/code-unit-reverse-lookup", - "version": "1.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619", - "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619", - "shasum": "" - }, - "require": { - "php": ">=5.6" - }, - "require-dev": { - "phpunit/phpunit": "^8.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Looks up which function or method a line of code belongs to", - "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-11-30T08:15:22+00:00" - }, - { - "name": "sebastian/comparator", - "version": "1.2.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "sebastian/diff": "~1.2", - "sebastian/exporter": "~1.2 || ~2.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "http://www.github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" - ], - "time": "2017-01-29T09:50:25+00:00" - }, - { - "name": "sebastian/diff", - "version": "1.4.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", - "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", - "keywords": [ - "diff" - ], - "time": "2017-05-22T07:24:03+00:00" - }, - { - "name": "sebastian/environment", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac", - "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac", - "shasum": "" - }, - "require": { - "php": "^5.6 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^5.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" - ], - "time": "2016-11-26T07:53:53+00:00" - }, - { - "name": "sebastian/exporter", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", - "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "sebastian/recursion-context": "~2.0" - }, - "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], - "time": "2016-11-19T08:54:04+00:00" - }, - { - "name": "sebastian/global-state", - "version": "1.1.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.2" - }, - "suggest": { - "ext-uopz": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], - "time": "2015-10-12T03:26:01+00:00" - }, - { - "name": "sebastian/object-enumerator", - "version": "2.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7", - "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7", - "shasum": "" - }, - "require": { - "php": ">=5.6", - "sebastian/recursion-context": "~2.0" - }, - "require-dev": { - "phpunit/phpunit": "~5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Traverses array structures and object graphs to enumerate all referenced objects", - "homepage": "https://github.com/sebastianbergmann/object-enumerator/", - "time": "2017-02-18T15:18:39+00:00" - }, - { - "name": "sebastian/recursion-context", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a", - "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2016-11-19T07:33:16+00:00" - }, - { - "name": "sebastian/resource-operations", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", - "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", - "shasum": "" - }, - "require": { - "php": ">=5.6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "time": "2015-07-28T20:34:47+00:00" - }, - { - "name": "sebastian/version", - "version": "2.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", - "shasum": "" - }, - "require": { - "php": ">=5.6" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "time": "2016-10-03T07:35:21+00:00" - }, - { - "name": "symfony/polyfill-ctype", - "version": "v1.23.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce", - "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "suggest": { - "ext-ctype": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.23-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Ctype\\": "" - }, - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Gert de Pagter", - "email": "BackEndTea@gmail.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for ctype functions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "ctype", - "polyfill", - "portable" - ], - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2021-02-19T12:13:01+00:00" - }, - { - "name": "symfony/polyfill-mbstring", - "version": "v1.23.1", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9174a3d80210dca8daa7f31fec659150bbeabfc6", - "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "suggest": { - "ext-mbstring": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.23-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" - }, - "files": [ - "bootstrap.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": "Symfony polyfill for the Mbstring extension", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "mbstring", - "polyfill", - "portable", - "shim" - ], - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2021-05-27T12:26:48+00:00" - }, - { - "name": "symfony/polyfill-php80", - "version": "v1.23.1", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be", - "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.23-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" - }, - "files": [ - "bootstrap.php" - ], - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2021-07-28T13:41:28+00:00" - }, - { - "name": "symfony/translation", - "version": "v4.4.27", - "source": { - "type": "git", - "url": "https://github.com/symfony/translation.git", - "reference": "2e3c0f2bf704d635ba862e7198d72331a62d82ba" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/2e3c0f2bf704d635ba862e7198d72331a62d82ba", - "reference": "2e3c0f2bf704d635ba862e7198d72331a62d82ba", - "shasum": "" - }, - "require": { - "php": ">=7.1.3", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "^1.16", - "symfony/translation-contracts": "^1.1.6|^2" - }, - "conflict": { - "symfony/config": "<3.4", - "symfony/dependency-injection": "<3.4", - "symfony/http-kernel": "<4.4", - "symfony/yaml": "<3.4" - }, - "provide": { - "symfony/translation-implementation": "1.0|2.0" - }, - "require-dev": { - "psr/log": "^1|^2|^3", - "symfony/config": "^3.4|^4.0|^5.0", - "symfony/console": "^3.4|^4.0|^5.0", - "symfony/dependency-injection": "^3.4|^4.0|^5.0", - "symfony/finder": "~2.8|~3.0|~4.0|^5.0", - "symfony/http-kernel": "^4.4", - "symfony/intl": "^3.4|^4.0|^5.0", - "symfony/service-contracts": "^1.1.2|^2", - "symfony/yaml": "^3.4|^4.0|^5.0" - }, - "suggest": { - "psr/log-implementation": "To use logging capability in translator", - "symfony/config": "", - "symfony/yaml": "" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Translation\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Provides tools to internationalize your application", - "homepage": "https://symfony.com", - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2021-07-21T13:12:00+00:00" - }, - { - "name": "symfony/translation-contracts", - "version": "v2.4.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/translation-contracts.git", - "reference": "95c812666f3e91db75385749fe219c5e494c7f95" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/95c812666f3e91db75385749fe219c5e494c7f95", - "reference": "95c812666f3e91db75385749fe219c5e494c7f95", - "shasum": "" - }, - "require": { - "php": ">=7.2.5" - }, - "suggest": { - "symfony/translation-implementation": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "2.4-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Contracts\\Translation\\": "" - } - }, - "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": "Generic abstractions related to translation", - "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2021-03-23T23:28:01+00:00" - }, - { - "name": "symfony/yaml", - "version": "v4.4.29", - "source": { - "type": "git", - "url": "https://github.com/symfony/yaml.git", - "reference": "3abcc4db06d4e776825eaa3ed8ad924d5bc7432a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/3abcc4db06d4e776825eaa3ed8ad924d5bc7432a", - "reference": "3abcc4db06d4e776825eaa3ed8ad924d5bc7432a", - "shasum": "" - }, - "require": { - "php": ">=7.1.3", - "symfony/polyfill-ctype": "~1.8" - }, - "conflict": { - "symfony/console": "<3.4" - }, - "require-dev": { - "symfony/console": "^3.4|^4.0|^5.0" - }, - "suggest": { - "symfony/console": "For validating YAML files using the lint command" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Yaml\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Loads and dumps YAML files", - "homepage": "https://symfony.com", - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2021-07-27T16:19:30+00:00" - }, - { - "name": "webmozart/assert", - "version": "1.10.0", - "source": { - "type": "git", - "url": "https://github.com/webmozarts/assert.git", - "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25", - "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0", - "symfony/polyfill-ctype": "^1.8" - }, - "conflict": { - "phpstan/phpstan": "<0.12.20", - "vimeo/psalm": "<4.6.1 || 4.6.2" - }, - "require-dev": { - "phpunit/phpunit": "^8.5.13" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.10-dev" - } - }, - "autoload": { - "psr-4": { - "Webmozart\\Assert\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Assertions to validate method input/output with nice error messages.", - "keywords": [ - "assert", - "check", - "validate" - ], - "time": "2021-03-09T10:59:23+00:00" - } - ], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, - "prefer-lowest": false, - "platform": { - "php": ">=5.6", - "ext-json": "*" - }, - "platform-dev": { - "ext-pdo": "*" - }, - "plugin-api-version": "1.1.0" -} From c249da4c5dc3f8b450412625cc461c884052c877 Mon Sep 17 00:00:00 2001 From: netorodrigues Date: Tue, 17 Aug 2021 16:01:29 -0300 Subject: [PATCH 7/7] =?UTF-8?q?=F0=9F=8E=A8=20fixes=20methods=20in=20order?= =?UTF-8?q?=20service=20and=20changes=20test=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Kernel/Services/OrderService.php | 4 ++-- tests/Payment/Aggregates/AddressTests.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Kernel/Services/OrderService.php b/src/Kernel/Services/OrderService.php index 78e71dc..e817868 100644 --- a/src/Kernel/Services/OrderService.php +++ b/src/Kernel/Services/OrderService.php @@ -442,7 +442,7 @@ private function wasOrderChargedSuccessfully($response) private function persistListChargeFailed($response) { if (empty($response['charges'])) { - return []; + return; } $charges = $this->createChargesFromResponse($response); @@ -456,7 +456,7 @@ private function persistListChargeFailed($response) private function createChargesFromResponse($response) { if (empty($response['charges'])) { - return; + return []; } $charges = []; diff --git a/tests/Payment/Aggregates/AddressTests.php b/tests/Payment/Aggregates/AddressTests.php index 4e97972..d34a931 100644 --- a/tests/Payment/Aggregates/AddressTests.php +++ b/tests/Payment/Aggregates/AddressTests.php @@ -17,7 +17,7 @@ public function setUp() $this->address = new Address(); } - public function testAddressNumberRemoveComma() + public function testCityTrim() { $this->address->setCity(' Florianópolis '); $this->assertEquals('Florianópolis', $this->address->getCity());