diff --git a/README.md b/README.md index 46e553d..2f083ed 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,10 @@ Work in progress - [x] CC sales transaction - [x] CC refund transaction - [x] CC partial refund transaction - +- [x] CC save card using cust_code +- [x] CC get info +- [] CC update +- [] CC delete ### Testing ```bash diff --git a/composer.lock b/composer.lock index a22dcba..b7fbd1b 100644 --- a/composer.lock +++ b/composer.lock @@ -143,16 +143,16 @@ }, { "name": "doctrine/annotations", - "version": "1.13.2", + "version": "1.13.3", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "5b668aef16090008790395c02c893b1ba13f7e08" + "reference": "648b0343343565c4a056bfc8392201385e8d89f0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/5b668aef16090008790395c02c893b1ba13f7e08", - "reference": "5b668aef16090008790395c02c893b1ba13f7e08", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/648b0343343565c4a056bfc8392201385e8d89f0", + "reference": "648b0343343565c4a056bfc8392201385e8d89f0", "shasum": "" }, "require": { @@ -164,9 +164,10 @@ "require-dev": { "doctrine/cache": "^1.11 || ^2.0", "doctrine/coding-standard": "^6.0 || ^8.1", - "phpstan/phpstan": "^0.12.20", + "phpstan/phpstan": "^1.4.10 || ^1.8.0", "phpunit/phpunit": "^7.5 || ^8.0 || ^9.1.5", - "symfony/cache": "^4.4 || ^5.2" + "symfony/cache": "^4.4 || ^5.2", + "vimeo/psalm": "^4.10" }, "type": "library", "autoload": { @@ -209,9 +210,9 @@ ], "support": { "issues": "https://github.com/doctrine/annotations/issues", - "source": "https://github.com/doctrine/annotations/tree/1.13.2" + "source": "https://github.com/doctrine/annotations/tree/1.13.3" }, - "time": "2021-08-05T19:00:23+00:00" + "time": "2022-07-02T10:48:51+00:00" }, { "name": "doctrine/inflector", @@ -511,24 +512,24 @@ }, { "name": "graham-campbell/result-type", - "version": "v1.0.4", + "version": "v1.1.0", "source": { "type": "git", "url": "https://github.com/GrahamCampbell/Result-Type.git", - "reference": "0690bde05318336c7221785f2a932467f98b64ca" + "reference": "a878d45c1914464426dc94da61c9e1d36ae262a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/0690bde05318336c7221785f2a932467f98b64ca", - "reference": "0690bde05318336c7221785f2a932467f98b64ca", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/a878d45c1914464426dc94da61c9e1d36ae262a8", + "reference": "a878d45c1914464426dc94da61c9e1d36ae262a8", "shasum": "" }, "require": { - "php": "^7.0 || ^8.0", - "phpoption/phpoption": "^1.8" + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9" }, "require-dev": { - "phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.19 || ^9.5.8" + "phpunit/phpunit": "^8.5.28 || ^9.5.21" }, "type": "library", "autoload": { @@ -557,7 +558,7 @@ ], "support": { "issues": "https://github.com/GrahamCampbell/Result-Type/issues", - "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.0.4" + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.0" }, "funding": [ { @@ -569,26 +570,26 @@ "type": "tidelift" } ], - "time": "2021-11-21T21:41:47+00:00" + "time": "2022-07-30T15:56:11+00:00" }, { "name": "guzzlehttp/guzzle", - "version": "7.4.4", + "version": "7.4.5", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "e3ff079b22820c2029d4c2a87796b6a0b8716ad8" + "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/e3ff079b22820c2029d4c2a87796b6a0b8716ad8", - "reference": "e3ff079b22820c2029d4c2a87796b6a0b8716ad8", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82", + "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82", "shasum": "" }, "require": { "ext-json": "*", "guzzlehttp/promises": "^1.5", - "guzzlehttp/psr7": "^1.8.3 || ^2.1", + "guzzlehttp/psr7": "^1.9 || ^2.4", "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0", "symfony/deprecation-contracts": "^2.2 || ^3.0" @@ -677,7 +678,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.4.4" + "source": "https://github.com/guzzle/guzzle/tree/7.4.5" }, "funding": [ { @@ -693,7 +694,7 @@ "type": "tidelift" } ], - "time": "2022-06-09T21:39:15+00:00" + "time": "2022-06-20T22:16:13+00:00" }, { "name": "guzzlehttp/promises", @@ -781,16 +782,16 @@ }, { "name": "guzzlehttp/psr7", - "version": "2.3.0", + "version": "2.4.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "83260bb50b8fc753c72d14dc1621a2dac31877ee" + "reference": "13388f00956b1503577598873fffb5ae994b5737" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/83260bb50b8fc753c72d14dc1621a2dac31877ee", - "reference": "83260bb50b8fc753c72d14dc1621a2dac31877ee", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/13388f00956b1503577598873fffb5ae994b5737", + "reference": "13388f00956b1503577598873fffb5ae994b5737", "shasum": "" }, "require": { @@ -814,7 +815,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.3-dev" + "dev-master": "2.4-dev" } }, "autoload": { @@ -876,7 +877,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.3.0" + "source": "https://github.com/guzzle/psr7/tree/2.4.0" }, "funding": [ { @@ -892,20 +893,20 @@ "type": "tidelift" } ], - "time": "2022-06-09T08:26:02+00:00" + "time": "2022-06-20T21:43:11+00:00" }, { "name": "laravel/framework", - "version": "v8.83.16", + "version": "v8.83.23", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "6be5abd144faf517879af7298e9d79f06f250f75" + "reference": "bdc707f8b9bcad289b24cd182d98ec7480ac4491" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/6be5abd144faf517879af7298e9d79f06f250f75", - "reference": "6be5abd144faf517879af7298e9d79f06f250f75", + "url": "https://api.github.com/repos/laravel/framework/zipball/bdc707f8b9bcad289b24cd182d98ec7480ac4491", + "reference": "bdc707f8b9bcad289b24cd182d98ec7480ac4491", "shasum": "" }, "require": { @@ -1065,7 +1066,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-06-07T15:09:06+00:00" + "time": "2022-07-26T13:30:00+00:00" }, { "name": "laravel/serializable-closure", @@ -1128,16 +1129,16 @@ }, { "name": "league/commonmark", - "version": "2.3.3", + "version": "2.3.5", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "0da1dca5781dd3cfddbe328224d9a7a62571addc" + "reference": "84d74485fdb7074f4f9dd6f02ab957b1de513257" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/0da1dca5781dd3cfddbe328224d9a7a62571addc", - "reference": "0da1dca5781dd3cfddbe328224d9a7a62571addc", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/84d74485fdb7074f4f9dd6f02ab957b1de513257", + "reference": "84d74485fdb7074f4f9dd6f02ab957b1de513257", "shasum": "" }, "require": { @@ -1159,13 +1160,13 @@ "github/gfm": "0.29.0", "michelf/php-markdown": "^1.4", "nyholm/psr7": "^1.5", - "phpstan/phpstan": "^0.12.88 || ^1.0.0", - "phpunit/phpunit": "^9.5.5", + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.21", "scrutinizer/ocular": "^1.8.1", - "symfony/finder": "^5.3", + "symfony/finder": "^5.3 | ^6.0", "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0", - "unleashedtech/php-coding-standard": "^3.1", - "vimeo/psalm": "^4.7.3" + "unleashedtech/php-coding-standard": "^3.1.1", + "vimeo/psalm": "^4.24.0" }, "suggest": { "symfony/yaml": "v2.3+ required if using the Front Matter extension" @@ -1230,7 +1231,7 @@ "type": "tidelift" } ], - "time": "2022-06-07T21:28:26+00:00" + "time": "2022-07-29T10:59:45+00:00" }, { "name": "league/config", @@ -1466,16 +1467,16 @@ }, { "name": "monolog/monolog", - "version": "2.7.0", + "version": "2.8.0", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "5579edf28aee1190a798bfa5be8bc16c563bd524" + "reference": "720488632c590286b88b80e62aa3d3d551ad4a50" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/5579edf28aee1190a798bfa5be8bc16c563bd524", - "reference": "5579edf28aee1190a798bfa5be8bc16c563bd524", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/720488632c590286b88b80e62aa3d3d551ad4a50", + "reference": "720488632c590286b88b80e62aa3d3d551ad4a50", "shasum": "" }, "require": { @@ -1495,11 +1496,10 @@ "guzzlehttp/psr7": "^2.2", "mongodb/mongodb": "^1.8", "php-amqplib/php-amqplib": "~2.4 || ^3", - "php-console/php-console": "^3.1.3", "phpspec/prophecy": "^1.15", "phpstan/phpstan": "^0.12.91", "phpunit/phpunit": "^8.5.14", - "predis/predis": "^1.1", + "predis/predis": "^1.1 || ^2.0", "rollbar/rollbar": "^1.3 || ^2 || ^3", "ruflin/elastica": "^7", "swiftmailer/swiftmailer": "^5.3|^6.0", @@ -1519,7 +1519,6 @@ "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", "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" }, @@ -1554,7 +1553,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/2.7.0" + "source": "https://github.com/Seldaek/monolog/tree/2.8.0" }, "funding": [ { @@ -1566,20 +1565,20 @@ "type": "tidelift" } ], - "time": "2022-06-09T08:59:12+00:00" + "time": "2022-07-24T11:55:47+00:00" }, { "name": "nesbot/carbon", - "version": "2.58.0", + "version": "2.61.0", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "97a34af22bde8d0ac20ab34b29d7bfe360902055" + "reference": "bdf4f4fe3a3eac4de84dbec0738082a862c68ba6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/97a34af22bde8d0ac20ab34b29d7bfe360902055", - "reference": "97a34af22bde8d0ac20ab34b29d7bfe360902055", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/bdf4f4fe3a3eac4de84dbec0738082a862c68ba6", + "reference": "bdf4f4fe3a3eac4de84dbec0738082a862c68ba6", "shasum": "" }, "require": { @@ -1594,11 +1593,12 @@ "doctrine/orm": "^2.7", "friendsofphp/php-cs-fixer": "^3.0", "kylekatarnls/multi-tester": "^2.0", + "ondrejmirtes/better-reflection": "*", "phpmd/phpmd": "^2.9", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^0.12.54 || ^1.0", - "phpunit/php-file-iterator": "^2.0.5", - "phpunit/phpunit": "^7.5.20 || ^8.5.23", + "phpstan/phpstan": "^0.12.99 || ^1.7.14", + "phpunit/php-file-iterator": "^2.0.5 || ^3.0.6", + "phpunit/phpunit": "^7.5.20 || ^8.5.26 || ^9.5.20", "squizlabs/php_codesniffer": "^3.4" }, "bin": [ @@ -1655,15 +1655,19 @@ }, "funding": [ { - "url": "https://opencollective.com/Carbon", - "type": "open_collective" + "url": "https://github.com/sponsors/kylekatarnls", + "type": "github" }, { - "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "url": "https://opencollective.com/Carbon#sponsor", + "type": "opencollective" + }, + { + "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", "type": "tidelift" } ], - "time": "2022-04-25T19:31:17+00:00" + "time": "2022-08-06T12:41:24+00:00" }, { "name": "nette/schema", @@ -1879,29 +1883,33 @@ }, { "name": "phpoption/phpoption", - "version": "1.8.1", + "version": "1.9.0", "source": { "type": "git", "url": "https://github.com/schmittjoh/php-option.git", - "reference": "eab7a0df01fe2344d172bff4cd6dbd3f8b84ad15" + "reference": "dc5ff11e274a90cc1c743f66c9ad700ce50db9ab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/eab7a0df01fe2344d172bff4cd6dbd3f8b84ad15", - "reference": "eab7a0df01fe2344d172bff4cd6dbd3f8b84ad15", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/dc5ff11e274a90cc1c743f66c9ad700ce50db9ab", + "reference": "dc5ff11e274a90cc1c743f66c9ad700ce50db9ab", "shasum": "" }, "require": { - "php": "^7.0 || ^8.0" + "php": "^7.2.5 || ^8.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", - "phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.19 || ^9.5.8" + "bamarni/composer-bin-plugin": "^1.8", + "phpunit/phpunit": "^8.5.28 || ^9.5.21" }, "type": "library", "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true + }, "branch-alias": { - "dev-master": "1.8-dev" + "dev-master": "1.9-dev" } }, "autoload": { @@ -1934,7 +1942,7 @@ ], "support": { "issues": "https://github.com/schmittjoh/php-option/issues", - "source": "https://github.com/schmittjoh/php-option/tree/1.8.1" + "source": "https://github.com/schmittjoh/php-option/tree/1.9.0" }, "funding": [ { @@ -1946,7 +1954,7 @@ "type": "tidelift" } ], - "time": "2021-12-04T23:24:31+00:00" + "time": "2022-07-30T15:51:26+00:00" }, { "name": "psr/cache", @@ -2655,16 +2663,16 @@ }, { "name": "symfony/console", - "version": "v5.4.9", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "829d5d1bf60b2efeb0887b7436873becc71a45eb" + "reference": "535846c7ee6bc4dd027ca0d93220601456734b10" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/829d5d1bf60b2efeb0887b7436873becc71a45eb", - "reference": "829d5d1bf60b2efeb0887b7436873becc71a45eb", + "url": "https://api.github.com/repos/symfony/console/zipball/535846c7ee6bc4dd027ca0d93220601456734b10", + "reference": "535846c7ee6bc4dd027ca0d93220601456734b10", "shasum": "" }, "require": { @@ -2734,7 +2742,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.4.9" + "source": "https://github.com/symfony/console/tree/v5.4.11" }, "funding": [ { @@ -2750,20 +2758,20 @@ "type": "tidelift" } ], - "time": "2022-05-18T06:17:34+00:00" + "time": "2022-07-22T10:42:43+00:00" }, { "name": "symfony/css-selector", - "version": "v5.4.3", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "b0a190285cd95cb019237851205b8140ef6e368e" + "reference": "c1681789f059ab756001052164726ae88512ae3d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/b0a190285cd95cb019237851205b8140ef6e368e", - "reference": "b0a190285cd95cb019237851205b8140ef6e368e", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/c1681789f059ab756001052164726ae88512ae3d", + "reference": "c1681789f059ab756001052164726ae88512ae3d", "shasum": "" }, "require": { @@ -2800,7 +2808,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v5.4.3" + "source": "https://github.com/symfony/css-selector/tree/v5.4.11" }, "funding": [ { @@ -2816,11 +2824,11 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2022-06-27T16:58:25+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v2.5.1", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", @@ -2867,7 +2875,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.1" + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2" }, "funding": [ { @@ -2887,16 +2895,16 @@ }, { "name": "symfony/error-handler", - "version": "v5.4.9", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "c116cda1f51c678782768dce89a45f13c949455d" + "reference": "f75d17cb4769eb38cd5fccbda95cd80a054d35c8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/c116cda1f51c678782768dce89a45f13c949455d", - "reference": "c116cda1f51c678782768dce89a45f13c949455d", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/f75d17cb4769eb38cd5fccbda95cd80a054d35c8", + "reference": "f75d17cb4769eb38cd5fccbda95cd80a054d35c8", "shasum": "" }, "require": { @@ -2938,7 +2946,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v5.4.9" + "source": "https://github.com/symfony/error-handler/tree/v5.4.11" }, "funding": [ { @@ -2954,7 +2962,7 @@ "type": "tidelift" } ], - "time": "2022-05-21T13:57:48+00:00" + "time": "2022-07-29T07:37:50+00:00" }, { "name": "symfony/event-dispatcher", @@ -3043,7 +3051,7 @@ }, { "name": "symfony/event-dispatcher-contracts", - "version": "v2.5.1", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", @@ -3102,7 +3110,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.1" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.2" }, "funding": [ { @@ -3122,16 +3130,16 @@ }, { "name": "symfony/finder", - "version": "v5.4.8", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "9b630f3427f3ebe7cd346c277a1408b00249dad9" + "reference": "7872a66f57caffa2916a584db1aa7f12adc76f8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/9b630f3427f3ebe7cd346c277a1408b00249dad9", - "reference": "9b630f3427f3ebe7cd346c277a1408b00249dad9", + "url": "https://api.github.com/repos/symfony/finder/zipball/7872a66f57caffa2916a584db1aa7f12adc76f8c", + "reference": "7872a66f57caffa2916a584db1aa7f12adc76f8c", "shasum": "" }, "require": { @@ -3165,7 +3173,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.8" + "source": "https://github.com/symfony/finder/tree/v5.4.11" }, "funding": [ { @@ -3181,20 +3189,20 @@ "type": "tidelift" } ], - "time": "2022-04-15T08:07:45+00:00" + "time": "2022-07-29T07:37:50+00:00" }, { "name": "symfony/http-foundation", - "version": "v5.4.9", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "6b0d0e4aca38d57605dcd11e2416994b38774522" + "reference": "0a5868e0999e9d47859ba3d918548ff6943e6389" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/6b0d0e4aca38d57605dcd11e2416994b38774522", - "reference": "6b0d0e4aca38d57605dcd11e2416994b38774522", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/0a5868e0999e9d47859ba3d918548ff6943e6389", + "reference": "0a5868e0999e9d47859ba3d918548ff6943e6389", "shasum": "" }, "require": { @@ -3238,7 +3246,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v5.4.9" + "source": "https://github.com/symfony/http-foundation/tree/v5.4.11" }, "funding": [ { @@ -3254,20 +3262,20 @@ "type": "tidelift" } ], - "time": "2022-05-17T15:07:29+00:00" + "time": "2022-07-20T13:00:38+00:00" }, { "name": "symfony/http-kernel", - "version": "v5.4.9", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "34b121ad3dc761f35fe1346d2f15618f8cbf77f8" + "reference": "4fd590a2ef3f62560dbbf6cea511995dd77321ee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/34b121ad3dc761f35fe1346d2f15618f8cbf77f8", - "reference": "34b121ad3dc761f35fe1346d2f15618f8cbf77f8", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/4fd590a2ef3f62560dbbf6cea511995dd77321ee", + "reference": "4fd590a2ef3f62560dbbf6cea511995dd77321ee", "shasum": "" }, "require": { @@ -3350,7 +3358,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v5.4.9" + "source": "https://github.com/symfony/http-kernel/tree/v5.4.11" }, "funding": [ { @@ -3366,20 +3374,20 @@ "type": "tidelift" } ], - "time": "2022-05-27T07:09:08+00:00" + "time": "2022-07-29T12:30:22+00:00" }, { "name": "symfony/mime", - "version": "v5.4.9", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "2b3802a24e48d0cfccf885173d2aac91e73df92e" + "reference": "3cd175cdcdb6db2e589e837dd46aff41027d9830" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/2b3802a24e48d0cfccf885173d2aac91e73df92e", - "reference": "2b3802a24e48d0cfccf885173d2aac91e73df92e", + "url": "https://api.github.com/repos/symfony/mime/zipball/3cd175cdcdb6db2e589e837dd46aff41027d9830", + "reference": "3cd175cdcdb6db2e589e837dd46aff41027d9830", "shasum": "" }, "require": { @@ -3433,7 +3441,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v5.4.9" + "source": "https://github.com/symfony/mime/tree/v5.4.11" }, "funding": [ { @@ -3449,7 +3457,7 @@ "type": "tidelift" } ], - "time": "2022-05-21T10:24:18+00:00" + "time": "2022-07-20T11:34:24+00:00" }, { "name": "symfony/polyfill-ctype", @@ -4270,16 +4278,16 @@ }, { "name": "symfony/process", - "version": "v5.4.8", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "597f3fff8e3e91836bb0bd38f5718b56ddbde2f3" + "reference": "6e75fe6874cbc7e4773d049616ab450eff537bf1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/597f3fff8e3e91836bb0bd38f5718b56ddbde2f3", - "reference": "597f3fff8e3e91836bb0bd38f5718b56ddbde2f3", + "url": "https://api.github.com/repos/symfony/process/zipball/6e75fe6874cbc7e4773d049616ab450eff537bf1", + "reference": "6e75fe6874cbc7e4773d049616ab450eff537bf1", "shasum": "" }, "require": { @@ -4312,7 +4320,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.4.8" + "source": "https://github.com/symfony/process/tree/v5.4.11" }, "funding": [ { @@ -4328,20 +4336,20 @@ "type": "tidelift" } ], - "time": "2022-04-08T05:07:18+00:00" + "time": "2022-06-27T16:58:25+00:00" }, { "name": "symfony/property-access", - "version": "v5.4.8", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", - "reference": "fe501d498d6ec7e9efe928c90fabedf629116495" + "reference": "c641d63e943ed31981bad4b4dcf29fe7da2ffa8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-access/zipball/fe501d498d6ec7e9efe928c90fabedf629116495", - "reference": "fe501d498d6ec7e9efe928c90fabedf629116495", + "url": "https://api.github.com/repos/symfony/property-access/zipball/c641d63e943ed31981bad4b4dcf29fe7da2ffa8c", + "reference": "c641d63e943ed31981bad4b4dcf29fe7da2ffa8c", "shasum": "" }, "require": { @@ -4393,7 +4401,7 @@ "reflection" ], "support": { - "source": "https://github.com/symfony/property-access/tree/v5.4.8" + "source": "https://github.com/symfony/property-access/tree/v5.4.11" }, "funding": [ { @@ -4409,20 +4417,20 @@ "type": "tidelift" } ], - "time": "2022-04-12T15:48:08+00:00" + "time": "2022-06-27T16:58:25+00:00" }, { "name": "symfony/property-info", - "version": "v5.4.9", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/property-info.git", - "reference": "6f0a452aaba45e763f89e328df437f73a720e18e" + "reference": "8a9a2b638a808cc92a2fbce185b9318e76b0e20c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-info/zipball/6f0a452aaba45e763f89e328df437f73a720e18e", - "reference": "6f0a452aaba45e763f89e328df437f73a720e18e", + "url": "https://api.github.com/repos/symfony/property-info/zipball/8a9a2b638a808cc92a2fbce185b9318e76b0e20c", + "reference": "8a9a2b638a808cc92a2fbce185b9318e76b0e20c", "shasum": "" }, "require": { @@ -4484,7 +4492,7 @@ "validator" ], "support": { - "source": "https://github.com/symfony/property-info/tree/v5.4.9" + "source": "https://github.com/symfony/property-info/tree/v5.4.11" }, "funding": [ { @@ -4500,20 +4508,20 @@ "type": "tidelift" } ], - "time": "2022-05-17T09:47:20+00:00" + "time": "2022-07-19T08:07:51+00:00" }, { "name": "symfony/routing", - "version": "v5.4.8", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "e07817bb6244ea33ef5ad31abc4a9288bef3f2f7" + "reference": "3e01ccd9b2a3a4167ba2b3c53612762300300226" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/e07817bb6244ea33ef5ad31abc4a9288bef3f2f7", - "reference": "e07817bb6244ea33ef5ad31abc4a9288bef3f2f7", + "url": "https://api.github.com/repos/symfony/routing/zipball/3e01ccd9b2a3a4167ba2b3c53612762300300226", + "reference": "3e01ccd9b2a3a4167ba2b3c53612762300300226", "shasum": "" }, "require": { @@ -4574,7 +4582,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v5.4.8" + "source": "https://github.com/symfony/routing/tree/v5.4.11" }, "funding": [ { @@ -4590,20 +4598,20 @@ "type": "tidelift" } ], - "time": "2022-04-18T21:45:37+00:00" + "time": "2022-07-20T13:00:38+00:00" }, { "name": "symfony/serializer", - "version": "v5.4.9", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "b54815117a06a8120604bdf00219e3a55288ee1e" + "reference": "412e2a242a380267f3ddf281047b8720d2ad9b08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/b54815117a06a8120604bdf00219e3a55288ee1e", - "reference": "b54815117a06a8120604bdf00219e3a55288ee1e", + "url": "https://api.github.com/repos/symfony/serializer/zipball/412e2a242a380267f3ddf281047b8720d2ad9b08", + "reference": "412e2a242a380267f3ddf281047b8720d2ad9b08", "shasum": "" }, "require": { @@ -4677,7 +4685,7 @@ "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/serializer/tree/v5.4.9" + "source": "https://github.com/symfony/serializer/tree/v5.4.11" }, "funding": [ { @@ -4693,20 +4701,20 @@ "type": "tidelift" } ], - "time": "2022-05-10T09:18:46+00:00" + "time": "2022-07-28T13:33:28+00:00" }, { "name": "symfony/service-contracts", - "version": "v2.5.1", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "24d9dc654b83e91aa59f9d167b131bc3b5bea24c" + "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/24d9dc654b83e91aa59f9d167b131bc3b5bea24c", - "reference": "24d9dc654b83e91aa59f9d167b131bc3b5bea24c", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/4b426aac47d6427cc1a1d0f7e2ac724627f5966c", + "reference": "4b426aac47d6427cc1a1d0f7e2ac724627f5966c", "shasum": "" }, "require": { @@ -4760,7 +4768,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v2.5.1" + "source": "https://github.com/symfony/service-contracts/tree/v2.5.2" }, "funding": [ { @@ -4776,20 +4784,20 @@ "type": "tidelift" } ], - "time": "2022-03-13T20:07:29+00:00" + "time": "2022-05-30T19:17:29+00:00" }, { "name": "symfony/string", - "version": "v5.4.9", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "985e6a9703ef5ce32ba617c9c7d97873bb7b2a99" + "reference": "5eb661e49ad389e4ae2b6e4df8d783a8a6548322" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/985e6a9703ef5ce32ba617c9c7d97873bb7b2a99", - "reference": "985e6a9703ef5ce32ba617c9c7d97873bb7b2a99", + "url": "https://api.github.com/repos/symfony/string/zipball/5eb661e49ad389e4ae2b6e4df8d783a8a6548322", + "reference": "5eb661e49ad389e4ae2b6e4df8d783a8a6548322", "shasum": "" }, "require": { @@ -4846,7 +4854,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.4.9" + "source": "https://github.com/symfony/string/tree/v5.4.11" }, "funding": [ { @@ -4862,20 +4870,20 @@ "type": "tidelift" } ], - "time": "2022-04-19T10:40:37+00:00" + "time": "2022-07-24T16:15:25+00:00" }, { "name": "symfony/translation", - "version": "v5.4.9", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "1639abc1177d26bcd4320e535e664cef067ab0ca" + "reference": "7a1a8f6bbff269f434a83343a0a5d36a4f8cfa21" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/1639abc1177d26bcd4320e535e664cef067ab0ca", - "reference": "1639abc1177d26bcd4320e535e664cef067ab0ca", + "url": "https://api.github.com/repos/symfony/translation/zipball/7a1a8f6bbff269f434a83343a0a5d36a4f8cfa21", + "reference": "7a1a8f6bbff269f434a83343a0a5d36a4f8cfa21", "shasum": "" }, "require": { @@ -4943,7 +4951,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v5.4.9" + "source": "https://github.com/symfony/translation/tree/v5.4.11" }, "funding": [ { @@ -4959,20 +4967,20 @@ "type": "tidelift" } ], - "time": "2022-05-06T12:33:37+00:00" + "time": "2022-07-20T13:00:38+00:00" }, { "name": "symfony/translation-contracts", - "version": "v2.5.1", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "1211df0afa701e45a04253110e959d4af4ef0f07" + "reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/1211df0afa701e45a04253110e959d4af4ef0f07", - "reference": "1211df0afa701e45a04253110e959d4af4ef0f07", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/136b19dd05cdf0709db6537d058bcab6dd6e2dbe", + "reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe", "shasum": "" }, "require": { @@ -5021,7 +5029,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v2.5.1" + "source": "https://github.com/symfony/translation-contracts/tree/v2.5.2" }, "funding": [ { @@ -5037,20 +5045,20 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2022-06-27T16:58:25+00:00" }, { "name": "symfony/var-dumper", - "version": "v5.4.9", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "af52239a330fafd192c773795520dc2dd62b5657" + "reference": "b8f306d7b8ef34fb3db3305be97ba8e088fb4861" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/af52239a330fafd192c773795520dc2dd62b5657", - "reference": "af52239a330fafd192c773795520dc2dd62b5657", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/b8f306d7b8ef34fb3db3305be97ba8e088fb4861", + "reference": "b8f306d7b8ef34fb3db3305be97ba8e088fb4861", "shasum": "" }, "require": { @@ -5110,7 +5118,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v5.4.9" + "source": "https://github.com/symfony/var-dumper/tree/v5.4.11" }, "funding": [ { @@ -5126,7 +5134,7 @@ "type": "tidelift" } ], - "time": "2022-05-21T10:24:18+00:00" + "time": "2022-07-20T13:00:38+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", @@ -5467,16 +5475,16 @@ }, { "name": "fakerphp/faker", - "version": "v1.19.0", + "version": "v1.20.0", "source": { "type": "git", "url": "https://github.com/FakerPHP/Faker.git", - "reference": "d7f08a622b3346766325488aa32ddc93ccdecc75" + "reference": "37f751c67a5372d4e26353bd9384bc03744ec77b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/d7f08a622b3346766325488aa32ddc93ccdecc75", - "reference": "d7f08a622b3346766325488aa32ddc93ccdecc75", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/37f751c67a5372d4e26353bd9384bc03744ec77b", + "reference": "37f751c67a5372d4e26353bd9384bc03744ec77b", "shasum": "" }, "require": { @@ -5503,7 +5511,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "v1.19-dev" + "dev-main": "v1.20-dev" } }, "autoload": { @@ -5528,9 +5536,9 @@ ], "support": { "issues": "https://github.com/FakerPHP/Faker/issues", - "source": "https://github.com/FakerPHP/Faker/tree/v1.19.0" + "source": "https://github.com/FakerPHP/Faker/tree/v1.20.0" }, - "time": "2022-02-02T17:38:57+00:00" + "time": "2022-07-20T13:12:54+00:00" }, { "name": "hamcrest/hamcrest-php", @@ -5772,22 +5780,22 @@ }, { "name": "orchestra/testbench", - "version": "v6.24.1", + "version": "v6.25.0", "source": { "type": "git", "url": "https://github.com/orchestral/testbench.git", - "reference": "7b6a225851f6c148a80e241af5cbd833c83e572c" + "reference": "a65b90b78caed1fdface168ca02af34f3422e513" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/testbench/zipball/7b6a225851f6c148a80e241af5cbd833c83e572c", - "reference": "7b6a225851f6c148a80e241af5cbd833c83e572c", + "url": "https://api.github.com/repos/orchestral/testbench/zipball/a65b90b78caed1fdface168ca02af34f3422e513", + "reference": "a65b90b78caed1fdface168ca02af34f3422e513", "shasum": "" }, "require": { "laravel/framework": "^8.75", "mockery/mockery": "^1.4.4", - "orchestra/testbench-core": "^6.28.1", + "orchestra/testbench-core": "^6.29", "php": "^7.3 || ^8.0", "phpunit/phpunit": "^8.5.21 || ^9.5.10", "spatie/laravel-ray": "^1.26.2" @@ -5821,7 +5829,7 @@ ], "support": { "issues": "https://github.com/orchestral/testbench/issues", - "source": "https://github.com/orchestral/testbench/tree/v6.24.1" + "source": "https://github.com/orchestral/testbench/tree/v6.25.0" }, "funding": [ { @@ -5833,20 +5841,20 @@ "type": "liberapay" } ], - "time": "2022-02-08T12:57:17+00:00" + "time": "2022-08-24T01:41:23+00:00" }, { "name": "orchestra/testbench-core", - "version": "v6.28.1", + "version": "v6.29.0", "source": { "type": "git", "url": "https://github.com/orchestral/testbench-core.git", - "reference": "e66074e825e21b40b3433703dc3f76f2bfebebe0" + "reference": "8eeace7d979a7905e6fab77a30a3b05da99459c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/e66074e825e21b40b3433703dc3f76f2bfebebe0", - "reference": "e66074e825e21b40b3433703dc3f76f2bfebebe0", + "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/8eeace7d979a7905e6fab77a30a3b05da99459c4", + "reference": "8eeace7d979a7905e6fab77a30a3b05da99459c4", "shasum": "" }, "require": { @@ -5860,7 +5868,7 @@ "laravel/laravel": "8.x-dev", "mockery/mockery": "^1.4.4", "orchestra/canvas": "^6.1", - "phpunit/phpunit": "^8.5.21 || ^9.5.10 || ^10.0", + "phpunit/phpunit": "^8.5.21 || ^9.5.10", "spatie/laravel-ray": "^1.7.1", "symfony/process": "^5.0" }, @@ -5923,7 +5931,7 @@ "type": "liberapay" } ], - "time": "2022-02-08T12:50:35+00:00" + "time": "2022-08-24T00:15:20+00:00" }, { "name": "phar-io/manifest", @@ -6036,252 +6044,25 @@ }, "time": "2022-02-21T01:04:05+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" - ], - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", - "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" - }, - "time": "2020-06-27T09:03:43+00:00" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "5.3.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", - "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", - "psalm/phar": "^4.8" - }, - "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.", - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" - }, - "time": "2021-10-19T17:43:47+00:00" - }, - { - "name": "phpdocumentor/type-resolver", - "version": "1.6.1", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "77a32518733312af16a44300404e945338981de3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3", - "reference": "77a32518733312af16a44300404e945338981de3", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.0" - }, - "require-dev": { - "ext-tokenizer": "*", - "psalm/phar": "^4.8" - }, - "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", - "support": { - "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1" - }, - "time": "2022-03-15T21:29:03+00:00" - }, - { - "name": "phpspec/prophecy", - "version": "v1.15.0", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.2", - "php": "^7.2 || ~8.0, <8.2", - "phpdocumentor/reflection-docblock": "^5.2", - "sebastian/comparator": "^3.0 || ^4.0", - "sebastian/recursion-context": "^3.0 || ^4.0" - }, - "require-dev": { - "phpspec/phpspec": "^6.0 || ^7.0", - "phpunit/phpunit": "^8.0 || ^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.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" - ], - "support": { - "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" - }, - "time": "2021-12-08T12:19:24+00:00" - }, { "name": "phpunit/php-code-coverage", - "version": "9.2.15", + "version": "9.2.16", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f" + "reference": "2593003befdcc10db5e213f9f28814f5aa8ac073" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2e9da11878c4202f97915c1cb4bb1ca318a63f5f", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2593003befdcc10db5e213f9f28814f5aa8ac073", + "reference": "2593003befdcc10db5e213f9f28814f5aa8ac073", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.13.0", + "nikic/php-parser": "^4.14", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -6330,7 +6111,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.15" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.16" }, "funding": [ { @@ -6338,7 +6119,7 @@ "type": "github" } ], - "time": "2022-03-07T09:28:20+00:00" + "time": "2022-08-20T05:26:47+00:00" }, { "name": "phpunit/php-file-iterator", @@ -6583,16 +6364,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.21", + "version": "9.5.23", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "0e32b76be457de00e83213528f6bb37e2a38fcb1" + "reference": "888556852e7e9bbeeedb9656afe46118765ade34" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0e32b76be457de00e83213528f6bb37e2a38fcb1", - "reference": "0e32b76be457de00e83213528f6bb37e2a38fcb1", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/888556852e7e9bbeeedb9656afe46118765ade34", + "reference": "888556852e7e9bbeeedb9656afe46118765ade34", "shasum": "" }, "require": { @@ -6607,7 +6388,6 @@ "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", "php": ">=7.3", - "phpspec/prophecy": "^1.12.1", "phpunit/php-code-coverage": "^9.2.13", "phpunit/php-file-iterator": "^3.0.5", "phpunit/php-invoker": "^3.1.1", @@ -6625,9 +6405,6 @@ "sebastian/type": "^3.0", "sebastian/version": "^3.0.2" }, - "require-dev": { - "phpspec/prophecy-phpunit": "^2.0.1" - }, "suggest": { "ext-soap": "*", "ext-xdebug": "*" @@ -6669,7 +6446,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.21" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.23" }, "funding": [ { @@ -6681,7 +6458,7 @@ "type": "github" } ], - "time": "2022-06-19T12:14:25+00:00" + "time": "2022-08-22T14:01:36+00:00" }, { "name": "pimple/pimple", @@ -7764,16 +7541,16 @@ }, { "name": "spatie/laravel-ray", - "version": "1.29.7", + "version": "1.30.0", "source": { "type": "git", "url": "https://github.com/spatie/laravel-ray.git", - "reference": "97b8ccdb9975e3339069765417990e89474254ee" + "reference": "1afe8d38cf13e9f7d0f6438e67bca71c3ed8d1f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/97b8ccdb9975e3339069765417990e89474254ee", - "reference": "97b8ccdb9975e3339069765417990e89474254ee", + "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/1afe8d38cf13e9f7d0f6438e67bca71c3ed8d1f6", + "reference": "1afe8d38cf13e9f7d0f6438e67bca71c3ed8d1f6", "shasum": "" }, "require": { @@ -7832,7 +7609,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-ray/issues", - "source": "https://github.com/spatie/laravel-ray/tree/1.29.7" + "source": "https://github.com/spatie/laravel-ray/tree/1.30.0" }, "funding": [ { @@ -7844,7 +7621,7 @@ "type": "other" } ], - "time": "2022-05-27T18:45:58+00:00" + "time": "2022-07-29T10:02:43+00:00" }, { "name": "spatie/macroable", @@ -7898,16 +7675,16 @@ }, { "name": "spatie/ray", - "version": "1.34.5", + "version": "1.36.0", "source": { "type": "git", "url": "https://github.com/spatie/ray.git", - "reference": "2d64ea264eecbdc7ec01e4e8b45978cae80815d2" + "reference": "4a4def8cda4806218341b8204c98375aa8c34323" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/ray/zipball/2d64ea264eecbdc7ec01e4e8b45978cae80815d2", - "reference": "2d64ea264eecbdc7ec01e4e8b45978cae80815d2", + "url": "https://api.github.com/repos/spatie/ray/zipball/4a4def8cda4806218341b8204c98375aa8c34323", + "reference": "4a4def8cda4806218341b8204c98375aa8c34323", "shasum": "" }, "require": { @@ -7957,7 +7734,7 @@ ], "support": { "issues": "https://github.com/spatie/ray/issues", - "source": "https://github.com/spatie/ray/tree/1.34.5" + "source": "https://github.com/spatie/ray/tree/1.36.0" }, "funding": [ { @@ -7969,7 +7746,7 @@ "type": "other" } ], - "time": "2022-06-03T12:32:57+00:00" + "time": "2022-08-11T14:04:18+00:00" }, { "name": "symfony/stopwatch", @@ -8035,16 +7812,16 @@ }, { "name": "symfony/yaml", - "version": "v5.4.3", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "e80f87d2c9495966768310fc531b487ce64237a2" + "reference": "05d4ea560f3402c6c116afd99fdc66e60eda227e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/e80f87d2c9495966768310fc531b487ce64237a2", - "reference": "e80f87d2c9495966768310fc531b487ce64237a2", + "url": "https://api.github.com/repos/symfony/yaml/zipball/05d4ea560f3402c6c116afd99fdc66e60eda227e", + "reference": "05d4ea560f3402c6c116afd99fdc66e60eda227e", "shasum": "" }, "require": { @@ -8090,7 +7867,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v5.4.3" + "source": "https://github.com/symfony/yaml/tree/v5.4.11" }, "funding": [ { @@ -8106,7 +7883,7 @@ "type": "tidelift" } ], - "time": "2022-01-26T16:32:32+00:00" + "time": "2022-06-27T16:58:25+00:00" }, { "name": "theseer/tokenizer", diff --git a/resources/views/softbank_cc_token.blade.php b/resources/views/softbank_cc_token.blade.php new file mode 100644 index 0000000..e2734d4 --- /dev/null +++ b/resources/views/softbank_cc_token.blade.php @@ -0,0 +1,25 @@ + + + + + + +
+ + + + + diff --git a/src/Contract/Payload.php b/src/Contract/Payload.php index 3756a59..0248627 100644 --- a/src/Contract/Payload.php +++ b/src/Contract/Payload.php @@ -9,11 +9,11 @@ interface Payload { /** - * Compose payload data + * Create payload data * * @return self */ - public static function compose(array $params): self; + public static function create(array $params): self; /** * Get the value of merchantId @@ -281,4 +281,46 @@ public function getPaymentOption(); */ public function setPaymentOption($paymentOption): self; + + /** + * getSpsCustNo + * + * @return string + */ + public function getSpsCustNo(): ?string; + + /** + * setSpsCustNo + * + * @param mixed $spsCustNo + * @return self + */ + public function setSpsCustNo($spsCustNo): self; + + /** + * getSpsPaymentNo + * + * @return string + */ + public function getSpsPaymentNo(): ?string; + + /** + * setSpsPaymentNo + * + * @param mixed $spsPaymentNo + * @return self + */ + public function setSpsPaymentNo($spsPaymentNo) :self; + + /** + * Get the value of responseInfoType + */ + public function getResponseInfoType(): ?string; + + /** + * Set the value of responseInfoType + * + * @return self + */ + public function setResponseInfoType($responseInfoType): Payload; } \ No newline at end of file diff --git a/src/Contract/PaymentMethod/CreditCard.php b/src/Contract/PaymentMethod/CreditCard.php index 42f4851..45f5a8f 100644 --- a/src/Contract/PaymentMethod/CreditCard.php +++ b/src/Contract/PaymentMethod/CreditCard.php @@ -39,7 +39,7 @@ public abstract function saveCard(Payload $payload): Response; * @param \Nekoding\LaravelSoftbank\Contract\Payload $payload * @return Response */ - // public abstract function updateCard(Payload $payload): Response; + public abstract function updateCard(Payload $payload): Response; /** * deleteCard @@ -47,6 +47,14 @@ public abstract function saveCard(Payload $payload): Response; * @param \Nekoding\LaravelSoftbank\Contract\Payload $payload * @return Response */ - // public abstract function deleteCard(Payload $payload): Response; + public abstract function deleteCard(Payload $payload): Response; + + /** + * getCard + * + * @param \Nekoding\LaravelSoftbank\Contract\Payload $payload + * @return Response + */ + public abstract function getCard(Payload $payload): Response; } \ No newline at end of file diff --git a/src/PaymentMethod/CreditCard/CreditCardPayment.php b/src/PaymentMethod/CreditCard/CreditCardPayment.php index 081f263..ba6c28e 100644 --- a/src/PaymentMethod/CreditCard/CreditCardPayment.php +++ b/src/PaymentMethod/CreditCard/CreditCardPayment.php @@ -19,9 +19,9 @@ class CreditCardPayment extends CreditCard protected $continueCancelNoticeId = ''; protected $saveCardInfoRequestId = 'MG02-00101-101'; - protected $updateCardInfoRequestId = ''; - protected $deleteCardInfoRequestId = ''; - protected $getCardInfoRequestId = ''; + protected $updateCardInfoRequestId = 'MG02-00132-101'; + protected $deleteCardInfoRequestId = 'MG02-00103-101"'; + protected $getCardInfoRequestId = 'MG02-00104-101'; public function createTransaction(Payload $payload): Response @@ -53,4 +53,19 @@ public function saveCard(Payload $payload): Response { return $this->createRequest($payload, $this->saveCardInfoRequestId); } + + public function updateCard(Payload $payload): Response + { + return $this->createRequest($payload, $this->updateCardInfoRequestId); + } + + public function deleteCard(Payload $payload): Response + { + return $this->createRequest($payload, $this->deleteCardInfoRequestId); + } + + public function getCard(Payload $payload): Response + { + return $this->createRequest($payload, $this->getCardInfoRequestId); + } } \ No newline at end of file diff --git a/src/PaymentMethod/SoftbankPayload.php b/src/PaymentMethod/SoftbankPayload.php index 8c80dd4..1268786 100644 --- a/src/PaymentMethod/SoftbankPayload.php +++ b/src/PaymentMethod/SoftbankPayload.php @@ -32,7 +32,7 @@ class SoftbankPayload implements Payload protected $serviceId; /** - * @Ignore() + * @SerializedName("hash_key") */ protected $hashKey; @@ -41,6 +41,26 @@ class SoftbankPayload implements Payload */ protected $customerCode; + /** + * @SerializedName("response_info_type") + */ + protected $responseInfoType; + + /** + * @SerializedName("pay_option_manage") + */ + protected $paymentOption; + + /** + * @SerializedName("sps_cust_no") + */ + protected $spsCustNo; + + /** + * @SerializedName("sps_payment_no") + */ + protected $spsPaymentNo; + /** * @SerializedName("order_id") */ @@ -106,27 +126,22 @@ class SoftbankPayload implements Payload */ protected $processingDate; - /** - * @SerializedName("pay_option_manage") - */ - protected $paymentOption; - /** * Get the value of merchantId - */ + */ public function getMerchantId(): ?string { return $this->merchantId; } - + /** - * compose payload parameters + * create payload parameters * * @param array $params * @return self * */ - public static function compose(array $params): Payload + public static function create(array $params): Payload { $classMetadataFactory = new ClassMetadataFactory(new AnnotationLoader(new AnnotationReader())); @@ -148,7 +163,7 @@ public static function compose(array $params): Payload * Set the value of merchantId * * @return self - */ + */ public function setMerchantId($merchantId): Payload { $this->merchantId = mb_convert_encoding($merchantId, 'Shift_JIS', 'UTF-8'); @@ -158,7 +173,7 @@ public function setMerchantId($merchantId): Payload /** * Get the value of serviceId - */ + */ public function getServiceId(): ?string { return $this->serviceId; @@ -168,7 +183,7 @@ public function getServiceId(): ?string * Set the value of serviceId * * @return self - */ + */ public function setServiceId($serviceId): Payload { $this->serviceId = mb_convert_encoding($serviceId, 'Shift_JIS', 'UTF-8'); @@ -178,7 +193,7 @@ public function setServiceId($serviceId): Payload /** * Get the value of hashKey - */ + */ public function getHashKey(): ?string { return $this->hashKey; @@ -188,7 +203,7 @@ public function getHashKey(): ?string * Set the value of hashKey * * @return self - */ + */ public function setHashKey($hashKey): Payload { $this->hashKey = mb_convert_encoding($hashKey, 'Shift_JIS', 'UTF-8'); @@ -200,7 +215,7 @@ public function setHashKey($hashKey): Payload * * @return string * @Ignore() - */ + */ public function getAuthUsername(): ?string { $username = $this->merchantId . $this->serviceId; @@ -217,7 +232,7 @@ public function getAuthUsername(): ?string * * @return string * @Ignore() - */ + */ public function getAuthPassword(): ?string { $password = $this->hashKey; @@ -231,7 +246,7 @@ public function getAuthPassword(): ?string /** * Get the value of customerCode - */ + */ public function getCustomerCode(): ?string { return $this->customerCode; @@ -241,7 +256,7 @@ public function getCustomerCode(): ?string * Set the value of customerCode * * @return self - */ + */ public function setCustomerCode($customerCode): Payload { $this->customerCode = mb_convert_encoding($customerCode, 'Shift_JIS', 'UTF-8'); @@ -251,7 +266,7 @@ public function setCustomerCode($customerCode): Payload /** * Get the value of orderId - */ + */ public function getOrderId(): ?string { return $this->orderId; @@ -261,7 +276,7 @@ public function getOrderId(): ?string * Set the value of orderId * * @return self - */ + */ public function setOrderId($orderId): Payload { $this->orderId = mb_convert_encoding($orderId, 'Shift_JIS', 'UTF-8'); @@ -271,7 +286,7 @@ public function setOrderId($orderId): Payload /** * Get the value of itemId - */ + */ public function getItemId(): ?string { return $this->itemId; @@ -281,7 +296,7 @@ public function getItemId(): ?string * Set the value of itemId * * @return self - */ + */ public function setItemId($itemId): Payload { $this->itemId = mb_convert_encoding($itemId, 'Shift_JIS', 'UTF-8'); @@ -291,7 +306,7 @@ public function setItemId($itemId): Payload /** * Get the value of itemName - */ + */ public function getItemName(): ?string { return $this->itemName; @@ -301,7 +316,7 @@ public function getItemName(): ?string * Set the value of itemName * * @return self - */ + */ public function setItemName($itemName): Payload { $this->itemName = base64_encode(mb_convert_encoding($itemName, 'Shift_JIS', 'UTF-8')); @@ -311,7 +326,7 @@ public function setItemName($itemName): Payload /** * Get the value of tax - */ + */ public function getTax(): ?int { return $this->tax; @@ -321,7 +336,7 @@ public function getTax(): ?int * Set the value of tax * * @return self - */ + */ public function setTax($tax): Payload { $this->tax = mb_convert_encoding($tax, 'Shift_JIS', 'UTF-8'); @@ -330,7 +345,7 @@ public function setTax($tax): Payload } /** * Get the value of amount - */ + */ public function getAmount(): ?int { return $this->amount; @@ -340,7 +355,7 @@ public function getAmount(): ?int * Set the value of amount * * @return self - */ + */ public function setAmount($amount): Payload { $this->amount = mb_convert_encoding($amount, 'Shift_JIS', 'UTF-8'); @@ -350,7 +365,7 @@ public function setAmount($amount): Payload /** * Get the value of returnFlag - */ + */ public function getReturnFlag(): ?int { return $this->returnFlag; @@ -360,7 +375,7 @@ public function getReturnFlag(): ?int * Set the value of returnFlag * * @return self - */ + */ public function setReturnFlag($returnFlag): Payload { $this->returnFlag = mb_convert_encoding($returnFlag, 'Shift_JIS', 'UTF-8'); @@ -370,7 +385,7 @@ public function setReturnFlag($returnFlag): Payload /** * Get the value of encryptFlag - */ + */ public function getEncryptFlag(): ?int { return $this->encryptFlag; @@ -380,7 +395,7 @@ public function getEncryptFlag(): ?int * Set the value of encryptFlag * * @return self - */ + */ public function setEncryptFlag($encryptFlag): Payload { $this->encryptFlag = mb_convert_encoding($encryptFlag, 'Shift_JIS', 'UTF-8'); @@ -390,7 +405,7 @@ public function setEncryptFlag($encryptFlag): Payload /** * Get the value of requestDate - */ + */ public function getRequestDate(): ?string { return $this->requestDate; @@ -400,7 +415,7 @@ public function getRequestDate(): ?string * Set the value of requestDate * * @return self - */ + */ public function setRequestDate($requestDate): Payload { $this->requestDate = mb_convert_encoding($requestDate, 'Shift_JIS', 'UTF-8'); @@ -410,7 +425,7 @@ public function setRequestDate($requestDate): Payload /** * Get the value of paymentMethodInfo - */ + */ public function getPaymentMethodInfo() { return $this->paymentMethodInfo; @@ -420,7 +435,7 @@ public function getPaymentMethodInfo() * Set the value of paymentMethodInfo * * @return self - */ + */ public function setPaymentMethodInfo($paymentMethodInfo): Payload { $this->paymentMethodInfo = $paymentMethodInfo; @@ -430,7 +445,7 @@ public function setPaymentMethodInfo($paymentMethodInfo): Payload /** * Get the value of payloadHash - */ + */ public function getPayloadHash(): ?string { return $this->payloadHash; @@ -440,7 +455,7 @@ public function getPayloadHash(): ?string * Set the value of payloadHash * * @return self - */ + */ public function setPayloadHash($payloadHash): Payload { $this->payloadHash = mb_convert_encoding($payloadHash, 'Shift_JIS', 'UTF-8'); @@ -450,7 +465,7 @@ public function setPayloadHash($payloadHash): Payload /** * Get the value of transactionId - */ + */ public function getTransactionId(): ?string { return $this->transactionId; @@ -460,7 +475,7 @@ public function getTransactionId(): ?string * Set the value of transactionId * * @return self - */ + */ public function setTransactionId($transactionId): Payload { $this->transactionId = $transactionId; @@ -470,7 +485,7 @@ public function setTransactionId($transactionId): Payload /** * Get the value of trackingId - */ + */ public function getTrackingId(): ?string { return $this->trackingId; @@ -480,7 +495,7 @@ public function getTrackingId(): ?string * Set the value of trackingId * * @return self - */ + */ public function setTrackingId($trackingId): Payload { $this->trackingId = $trackingId; @@ -490,7 +505,7 @@ public function setTrackingId($trackingId): Payload /** * Get the value of processingDate - */ + */ public function getProcessingDate(): ?string { return $this->processingDate; @@ -500,7 +515,7 @@ public function getProcessingDate(): ?string * Set the value of processingDate * * @return self - */ + */ public function setProcessingDate($processingDate): Payload { $this->processingDate = $processingDate; @@ -510,7 +525,7 @@ public function setProcessingDate($processingDate): Payload /** * Get the value of paymentOption - */ + */ public function getPaymentOption() { return $this->paymentOption; @@ -520,11 +535,71 @@ public function getPaymentOption() * Set the value of paymentOption * * @return self - */ + */ public function setPaymentOption($paymentOption): Payload { $this->paymentOption = $paymentOption; return $this; } -} \ No newline at end of file + + /** + * Get the value of spsCustNo + */ + public function getSpsCustNo(): ?string + { + return $this->spsCustNo; + } + + /** + * Set the value of spsCustNo + * + * @return self + */ + public function setSpsCustNo($spsCustNo): Payload + { + $this->spsCustNo = $spsCustNo; + + return $this; + } + + /** + * Get the value of spsPaymentNo + */ + public function getSpsPaymentNo(): ?string + { + return $this->spsPaymentNo; + } + + /** + * Set the value of spsPaymentNo + * + * @return self + */ + public function setSpsPaymentNo($spsPaymentNo): Payload + { + $this->spsPaymentNo = $spsPaymentNo; + + return $this; + } + + /** + * Get the value of responseInfoType + */ + public function getResponseInfoType(): ?string + { + return $this->responseInfoType; + } + + /** + * Set the value of responseInfoType + * + * @return self + */ + public function setResponseInfoType($responseInfoType): Payload + { + $this->responseInfoType = $responseInfoType; + + return $this; + } +} diff --git a/src/PaymentMethod/SoftbankResponse.php b/src/PaymentMethod/SoftbankResponse.php index a7609d9..2c53306 100644 --- a/src/PaymentMethod/SoftbankResponse.php +++ b/src/PaymentMethod/SoftbankResponse.php @@ -43,10 +43,10 @@ class SoftbankResponse implements Response // Getter and setter - - /** + + /** * Get the value of resResult - */ + */ public function getResResult(): ?string { return $this->resResult; @@ -56,7 +56,7 @@ public function getResResult(): ?string * Set the value of resResult * * @return self - */ + */ public function setResResult($resResult): Response { $this->resResult = $resResult; @@ -66,7 +66,7 @@ public function setResResult($resResult): Response /** * Get the value of resErrorCode - */ + */ public function getResErrorCode(): ?string { return $this->resErrorCode; @@ -76,7 +76,7 @@ public function getResErrorCode(): ?string * Set the value of resErrorCode * * @return self - */ + */ public function setResErrorCode($resErrorCode): Response { $this->resErrorCode = $resErrorCode; @@ -86,7 +86,7 @@ public function setResErrorCode($resErrorCode): Response /** * Get the value of resDate - */ + */ public function getResDate(): ?string { return $this->resDate; @@ -96,7 +96,7 @@ public function getResDate(): ?string * Set the value of resDate * * @return self - */ + */ public function setResDate($resDate): Response { $this->resDate = $resDate; @@ -126,7 +126,7 @@ public function getErrorMessages(): ?array /** * Get the value of transactionId - */ + */ public function getTransactionId(): ?string { return $this->transactionId; @@ -136,7 +136,7 @@ public function getTransactionId(): ?string * Set the value of transactionId * * @return self - */ + */ public function setTransactionId($transactionId): Response { $this->transactionId = $transactionId; @@ -146,7 +146,7 @@ public function setTransactionId($transactionId): Response /** * Get the value of trackingId - */ + */ public function getTrackingId(): ?string { return $this->trackingId; @@ -156,7 +156,7 @@ public function getTrackingId(): ?string * Set the value of trackingId * * @return self - */ + */ public function setTrackingId($trackingId): Response { $this->trackingId = $trackingId; @@ -166,7 +166,7 @@ public function setTrackingId($trackingId): Response /** * Get the value of paymentInfo - */ + */ public function getPaymentInfo(): ?array { return $this->paymentInfo; @@ -176,12 +176,11 @@ public function getPaymentInfo(): ?array * Set the value of paymentInfo * * @return self - */ + */ public function setPaymentInfo($paymentInfo): Response { $this->paymentInfo = $paymentInfo; return $this; } - -} \ No newline at end of file +} diff --git a/tests/LaravelSoftbankTest.php b/tests/LaravelSoftbankTest.php index 76e8c85..f53f27a 100644 --- a/tests/LaravelSoftbankTest.php +++ b/tests/LaravelSoftbankTest.php @@ -408,8 +408,8 @@ public function test_save_credit_card_using_cardinfo_success() $payload = $softbank->payload(); $payload->setMerchantId("30132"); - $payload->setServiceId('002'); - $payload->setHashKey("8435dbd48f2249807ec216c3d5ecab714264cc4a"); + $payload->setServiceId('103'); + $payload->setHashKey("ed679e1c9f90c2ab96b25d5c580b58e25192eb5d"); $payload->setCustomerCode($customerID); $payload->setEncryptFlag(0); @@ -419,7 +419,7 @@ public function test_save_credit_card_using_cardinfo_success() $creditCard->setCcSecurityCode("798"); $payload->setPaymentMethodInfo($creditCard); - $payload->setRequestDate("20220625114212"); + $payload->setRequestDate("20220925114212"); $payload->setPayloadHash(sha1( $payload->getMerchantId() . @@ -492,17 +492,17 @@ public function test_payment_using_saved_card_success() $payload = $softbank->payload(); $payload->setMerchantId("30132"); - $payload->setServiceId('002'); - $payload->setHashKey("8435dbd48f2249807ec216c3d5ecab714264cc4a"); + $payload->setServiceId('103'); + $payload->setHashKey("ed679e1c9f90c2ab96b25d5c580b58e25192eb5d"); - $customerID = 'test62b579b43e677'; + $customerID = '14790b9d-88df-4b7c-867d-6a551d64d0d9'; $payload->setCustomerCode($customerID); $payload->setOrderId(uniqid()); $payload->setItemId("ITEMID00000000000000000000000001"); $payload->setAmount(100); $payload->setReturnFlag(1); - $payload->setRequestDate("20220625114212"); + $payload->setRequestDate("20220925114212"); $payload->setEncryptFlag(0); $creditCard = new CreditCardPayload(); @@ -605,7 +605,7 @@ public function test_compose_array_params() ) ]; - $softbankPayload = SoftbankPayload::compose($params); + $softbankPayload = SoftbankPayload::create($params); $this->assertTrue($softbankPayload instanceof SoftbankPayload); @@ -615,4 +615,47 @@ public function test_compose_array_params() } + public function test_get_credit_card_info() + { + $softbank = new LaravelSoftbank; + + $time = '20220925084920'; + + $hash = 'ed679e1c9f90c2ab96b25d5c580b58e25192eb5d'; + + $data = [ + 'merchant_id' => '30132', + 'hash_key' => $hash, + 'service_id' => '103', + 'cust_code' => '550519da-5e69-4fa0-9120-17ed582b8fec', + 'response_info_type' => '2', + 'pay_option_manage' => [ + 'cardbrand_return_flg' => 1 + ], + 'encrypted_flg' => 0, + 'request_date' => $time, + 'sps_hashcode' => sha1( + '30132' . + '103' . + '550519da-5e69-4fa0-9120-17ed582b8fec' . + '2' . + '1' . + '0' . + $time . + $hash) + ]; + + $payload = SoftbankPayload::create($data); + + Http::fake([ + '*' => Http::response(file_get_contents(__DIR__ . '/mock/cc_get_info_success.xml')) + ]); + + $result = $softbank->creditCard()->getCard($payload); + + $this->assertNull($result->getErrorMessages()); + + $this->assertEquals('OK', $result->getResResult()); + } + } \ No newline at end of file diff --git a/tests/mock/cc_get_info_success.xml b/tests/mock/cc_get_info_success.xml new file mode 100644 index 0000000..64d4f77 --- /dev/null +++ b/tests/mock/cc_get_info_success.xml @@ -0,0 +1,16 @@ + + + OK + C30132103MG020010410100715452733 + + ************0620 + 202412 + V + + + + + 20220825171607 + + 20220825171606 + \ No newline at end of file