Updates for webhook methods

This commit is contained in:
David Bomba
2025-12-20 10:13:59 +11:00
parent 68adf88a11
commit 6b2c04f8b2
3 changed files with 77 additions and 76 deletions

View File

@@ -60,7 +60,7 @@ class StoreSubscriptionRequest extends Request
'refund_period' => 'bail|sometimes|numeric',
'webhook_configuration' => 'bail|array',
'webhook_configuration.post_purchase_url' => 'bail|sometimes|nullable|string',
'webhook_configuration.post_purchase_rest_method' => 'bail|sometimes|nullable|string',
'webhook_configuration.post_purchase_rest_method' => 'bail|sometimes|nullable|in:post,put',
'webhook_configuration.post_purchase_headers' => 'bail|sometimes|array',
'registration_required' => 'bail|sometimes|bool',
'optional_recurring_product_ids' => 'bail|sometimes|nullable|string',

View File

@@ -61,7 +61,7 @@ class UpdateSubscriptionRequest extends Request
'refund_period' => 'bail|sometimes|numeric',
'webhook_configuration' => 'bail|array',
'webhook_configuration.post_purchase_url' => 'bail|sometimes|nullable|string',
'webhook_configuration.post_purchase_rest_method' => 'bail|sometimes|nullable|string',
'webhook_configuration.post_purchase_rest_method' => 'bail|sometimes|nullable|in:post,put',
'webhook_configuration.post_purchase_headers' => 'bail|sometimes|array',
'registration_required' => 'bail|sometimes|bool',
'optional_recurring_product_ids' => 'bail|sometimes|nullable|string',

149
composer.lock generated
View File

@@ -381,16 +381,16 @@
},
{
"name": "awobaz/compoships",
"version": "2.5.2",
"version": "2.5.3",
"source": {
"type": "git",
"url": "https://github.com/topclaudy/compoships.git",
"reference": "e953cad2a0a9d0e035784c1d24c6b97f8609c542"
"reference": "61beaab6dfbeb9a1c253e880804b63d45a6ba973"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/topclaudy/compoships/zipball/e953cad2a0a9d0e035784c1d24c6b97f8609c542",
"reference": "e953cad2a0a9d0e035784c1d24c6b97f8609c542",
"url": "https://api.github.com/repos/topclaudy/compoships/zipball/61beaab6dfbeb9a1c253e880804b63d45a6ba973",
"reference": "61beaab6dfbeb9a1c253e880804b63d45a6ba973",
"shasum": ""
},
"require": {
@@ -431,7 +431,7 @@
],
"support": {
"issues": "https://github.com/topclaudy/compoships/issues",
"source": "https://github.com/topclaudy/compoships/tree/2.5.2"
"source": "https://github.com/topclaudy/compoships/tree/2.5.3"
},
"funding": [
{
@@ -439,7 +439,7 @@
"type": "custom"
}
],
"time": "2025-11-04T21:05:57+00:00"
"time": "2025-12-17T13:24:30+00:00"
},
{
"name": "aws/aws-crt-php",
@@ -497,16 +497,16 @@
},
{
"name": "aws/aws-sdk-php",
"version": "3.367.2",
"version": "3.369.0",
"source": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-php.git",
"reference": "3dc26d6f26a4d6380d82b2be4d8ae80fefb23d71"
"reference": "2bbe45aaaaa23a863a5daadcda326cf1c8b4a15b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3dc26d6f26a4d6380d82b2be4d8ae80fefb23d71",
"reference": "3dc26d6f26a4d6380d82b2be4d8ae80fefb23d71",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/2bbe45aaaaa23a863a5daadcda326cf1c8b4a15b",
"reference": "2bbe45aaaaa23a863a5daadcda326cf1c8b4a15b",
"shasum": ""
},
"require": {
@@ -588,9 +588,9 @@
"support": {
"forum": "https://github.com/aws/aws-sdk-php/discussions",
"issues": "https://github.com/aws/aws-sdk-php/issues",
"source": "https://github.com/aws/aws-sdk-php/tree/3.367.2"
"source": "https://github.com/aws/aws-sdk-php/tree/3.369.0"
},
"time": "2025-12-12T19:14:10+00:00"
"time": "2025-12-19T19:08:40+00:00"
},
{
"name": "babenkoivan/elastic-adapter",
@@ -5300,16 +5300,16 @@
},
{
"name": "laravel/octane",
"version": "v2.13.2",
"version": "v2.13.3",
"source": {
"type": "git",
"url": "https://github.com/laravel/octane.git",
"reference": "5b963d2da879f2cad3a84f22bafd3d8be7170988"
"reference": "aae775360fceae422651042d73137fff092ba800"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/octane/zipball/5b963d2da879f2cad3a84f22bafd3d8be7170988",
"reference": "5b963d2da879f2cad3a84f22bafd3d8be7170988",
"url": "https://api.github.com/repos/laravel/octane/zipball/aae775360fceae422651042d73137fff092ba800",
"reference": "aae775360fceae422651042d73137fff092ba800",
"shasum": ""
},
"require": {
@@ -5386,7 +5386,7 @@
"issues": "https://github.com/laravel/octane/issues",
"source": "https://github.com/laravel/octane"
},
"time": "2025-11-28T20:13:00+00:00"
"time": "2025-12-10T15:24:24+00:00"
},
{
"name": "laravel/prompts",
@@ -5449,16 +5449,16 @@
},
{
"name": "laravel/scout",
"version": "v10.22.1",
"version": "v10.23.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/scout.git",
"reference": "13ed8e0eeaddd894bf360b85cb873980de19dbaf"
"reference": "fb6d94cfc5708e4202dc00d46e61af0b9f35b03c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/scout/zipball/13ed8e0eeaddd894bf360b85cb873980de19dbaf",
"reference": "13ed8e0eeaddd894bf360b85cb873980de19dbaf",
"url": "https://api.github.com/repos/laravel/scout/zipball/fb6d94cfc5708e4202dc00d46e61af0b9f35b03c",
"reference": "fb6d94cfc5708e4202dc00d46e61af0b9f35b03c",
"shasum": ""
},
"require": {
@@ -5525,7 +5525,7 @@
"issues": "https://github.com/laravel/scout/issues",
"source": "https://github.com/laravel/scout"
},
"time": "2025-11-25T15:19:35+00:00"
"time": "2025-12-16T15:43:03+00:00"
},
{
"name": "laravel/serializable-closure",
@@ -6844,16 +6844,16 @@
},
{
"name": "livewire/livewire",
"version": "v3.7.1",
"version": "v3.7.3",
"source": {
"type": "git",
"url": "https://github.com/livewire/livewire.git",
"reference": "214da8f3a1199a88b56ab2fe901d4a607f784805"
"reference": "a5384df9fbd3eaf02e053bc49aabc8ace293fc1c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/livewire/livewire/zipball/214da8f3a1199a88b56ab2fe901d4a607f784805",
"reference": "214da8f3a1199a88b56ab2fe901d4a607f784805",
"url": "https://api.github.com/repos/livewire/livewire/zipball/a5384df9fbd3eaf02e053bc49aabc8ace293fc1c",
"reference": "a5384df9fbd3eaf02e053bc49aabc8ace293fc1c",
"shasum": ""
},
"require": {
@@ -6908,7 +6908,7 @@
"description": "A front-end framework for Laravel.",
"support": {
"issues": "https://github.com/livewire/livewire/issues",
"source": "https://github.com/livewire/livewire/tree/v3.7.1"
"source": "https://github.com/livewire/livewire/tree/v3.7.3"
},
"funding": [
{
@@ -6916,7 +6916,7 @@
"type": "github"
}
],
"time": "2025-12-03T22:41:13+00:00"
"time": "2025-12-19T02:00:29+00:00"
},
{
"name": "maennchen/zipstream-php",
@@ -9721,16 +9721,16 @@
},
{
"name": "phpseclib/phpseclib",
"version": "3.0.47",
"version": "3.0.48",
"source": {
"type": "git",
"url": "https://github.com/phpseclib/phpseclib.git",
"reference": "9d6ca36a6c2dd434765b1071b2644a1c683b385d"
"reference": "64065a5679c50acb886e82c07aa139b0f757bb89"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/9d6ca36a6c2dd434765b1071b2644a1c683b385d",
"reference": "9d6ca36a6c2dd434765b1071b2644a1c683b385d",
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/64065a5679c50acb886e82c07aa139b0f757bb89",
"reference": "64065a5679c50acb886e82c07aa139b0f757bb89",
"shasum": ""
},
"require": {
@@ -9811,7 +9811,7 @@
],
"support": {
"issues": "https://github.com/phpseclib/phpseclib/issues",
"source": "https://github.com/phpseclib/phpseclib/tree/3.0.47"
"source": "https://github.com/phpseclib/phpseclib/tree/3.0.48"
},
"funding": [
{
@@ -9827,7 +9827,7 @@
"type": "tidelift"
}
],
"time": "2025-10-06T01:07:24+00:00"
"time": "2025-12-15T11:51:42+00:00"
},
{
"name": "phpstan/phpdoc-parser",
@@ -10453,16 +10453,16 @@
},
{
"name": "psy/psysh",
"version": "v0.12.17",
"version": "v0.12.18",
"source": {
"type": "git",
"url": "https://github.com/bobthecow/psysh.git",
"reference": "85fbbd9f3064e157fc21fe4362b2b5c19f2ea631"
"reference": "ddff0ac01beddc251786fe70367cd8bbdb258196"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/85fbbd9f3064e157fc21fe4362b2b5c19f2ea631",
"reference": "85fbbd9f3064e157fc21fe4362b2b5c19f2ea631",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/ddff0ac01beddc251786fe70367cd8bbdb258196",
"reference": "ddff0ac01beddc251786fe70367cd8bbdb258196",
"shasum": ""
},
"require": {
@@ -10526,9 +10526,9 @@
],
"support": {
"issues": "https://github.com/bobthecow/psysh/issues",
"source": "https://github.com/bobthecow/psysh/tree/v0.12.17"
"source": "https://github.com/bobthecow/psysh/tree/v0.12.18"
},
"time": "2025-12-15T04:55:34+00:00"
"time": "2025-12-17T14:35:46+00:00"
},
{
"name": "pusher/pusher-php-server",
@@ -17042,16 +17042,16 @@
},
{
"name": "twig/twig",
"version": "v3.22.1",
"version": "v3.22.2",
"source": {
"type": "git",
"url": "https://github.com/twigphp/Twig.git",
"reference": "1de2ec1fc43ab58a4b7e80b214b96bfc895750f3"
"reference": "946ddeafa3c9f4ce279d1f34051af041db0e16f2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/1de2ec1fc43ab58a4b7e80b214b96bfc895750f3",
"reference": "1de2ec1fc43ab58a4b7e80b214b96bfc895750f3",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/946ddeafa3c9f4ce279d1f34051af041db0e16f2",
"reference": "946ddeafa3c9f4ce279d1f34051af041db0e16f2",
"shasum": ""
},
"require": {
@@ -17105,7 +17105,7 @@
],
"support": {
"issues": "https://github.com/twigphp/Twig/issues",
"source": "https://github.com/twigphp/Twig/tree/v3.22.1"
"source": "https://github.com/twigphp/Twig/tree/v3.22.2"
},
"funding": [
{
@@ -17117,7 +17117,7 @@
"type": "tidelift"
}
],
"time": "2025-11-16T16:01:12+00:00"
"time": "2025-12-14T11:28:47+00:00"
},
{
"name": "twilio/sdk",
@@ -17486,16 +17486,16 @@
"packages-dev": [
{
"name": "barryvdh/laravel-debugbar",
"version": "v3.16.1",
"version": "v3.16.2",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-debugbar.git",
"reference": "21b2c6fce05453efd4bceb34f9fddaa1cdb44090"
"reference": "730dbf8bf41f5691e026dd771e64dd54ad1b10b3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/21b2c6fce05453efd4bceb34f9fddaa1cdb44090",
"reference": "21b2c6fce05453efd4bceb34f9fddaa1cdb44090",
"url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/730dbf8bf41f5691e026dd771e64dd54ad1b10b3",
"reference": "730dbf8bf41f5691e026dd771e64dd54ad1b10b3",
"shasum": ""
},
"require": {
@@ -17555,7 +17555,7 @@
],
"support": {
"issues": "https://github.com/barryvdh/laravel-debugbar/issues",
"source": "https://github.com/barryvdh/laravel-debugbar/tree/v3.16.1"
"source": "https://github.com/barryvdh/laravel-debugbar/tree/v3.16.2"
},
"funding": [
{
@@ -17567,7 +17567,7 @@
"type": "github"
}
],
"time": "2025-11-19T08:31:25+00:00"
"time": "2025-12-03T14:52:46+00:00"
},
{
"name": "barryvdh/laravel-ide-helper",
@@ -18265,16 +18265,16 @@
},
{
"name": "friendsofphp/php-cs-fixer",
"version": "v3.92.0",
"version": "v3.92.3",
"source": {
"type": "git",
"url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git",
"reference": "5646c2cd99b7cb4b658ff681fe27069ba86c7280"
"reference": "2ba8f5a60f6f42fb65758cfb3768434fa2d1c7e8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/5646c2cd99b7cb4b658ff681fe27069ba86c7280",
"reference": "5646c2cd99b7cb4b658ff681fe27069ba86c7280",
"url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/2ba8f5a60f6f42fb65758cfb3768434fa2d1c7e8",
"reference": "2ba8f5a60f6f42fb65758cfb3768434fa2d1c7e8",
"shasum": ""
},
"require": {
@@ -18314,6 +18314,7 @@
"php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.6",
"php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.6",
"phpunit/phpunit": "^9.6.25 || ^10.5.53 || ^11.5.34",
"symfony/polyfill-php85": "^1.33",
"symfony/var-dumper": "^5.4.48 || ^6.4.24 || ^7.3.2 || ^8.0",
"symfony/yaml": "^5.4.45 || ^6.4.24 || ^7.3.2 || ^8.0"
},
@@ -18356,7 +18357,7 @@
],
"support": {
"issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues",
"source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.92.0"
"source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.92.3"
},
"funding": [
{
@@ -18364,7 +18365,7 @@
"type": "github"
}
],
"time": "2025-12-12T10:29:19+00:00"
"time": "2025-12-18T10:45:02+00:00"
},
{
"name": "hamcrest/hamcrest-php",
@@ -18460,7 +18461,7 @@
},
{
"name": "illuminate/json-schema",
"version": "v12.42.0",
"version": "v12.43.1",
"source": {
"type": "git",
"url": "https://github.com/illuminate/json-schema.git",
@@ -18655,25 +18656,25 @@
},
{
"name": "laravel/boost",
"version": "v1.8.5",
"version": "v1.8.7",
"source": {
"type": "git",
"url": "https://github.com/laravel/boost.git",
"reference": "99c15c392f3c6f049f0671dd5dc7b6e9a75cfe7e"
"reference": "7a5709a8134ed59d3e7f34fccbd74689830e296c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/boost/zipball/99c15c392f3c6f049f0671dd5dc7b6e9a75cfe7e",
"reference": "99c15c392f3c6f049f0671dd5dc7b6e9a75cfe7e",
"url": "https://api.github.com/repos/laravel/boost/zipball/7a5709a8134ed59d3e7f34fccbd74689830e296c",
"reference": "7a5709a8134ed59d3e7f34fccbd74689830e296c",
"shasum": ""
},
"require": {
"guzzlehttp/guzzle": "^7.9",
"illuminate/console": "^10.49.0|^11.45.3|^12.28.1",
"illuminate/contracts": "^10.49.0|^11.45.3|^12.28.1",
"illuminate/routing": "^10.49.0|^11.45.3|^12.28.1",
"illuminate/support": "^10.49.0|^11.45.3|^12.28.1",
"laravel/mcp": "^0.4.1",
"illuminate/console": "^10.49.0|^11.45.3|^12.41.1",
"illuminate/contracts": "^10.49.0|^11.45.3|^12.41.1",
"illuminate/routing": "^10.49.0|^11.45.3|^12.41.1",
"illuminate/support": "^10.49.0|^11.45.3|^12.41.1",
"laravel/mcp": "^0.5.1",
"laravel/prompts": "0.1.25|^0.3.6",
"laravel/roster": "^0.2.9",
"php": "^8.1"
@@ -18717,20 +18718,20 @@
"issues": "https://github.com/laravel/boost/issues",
"source": "https://github.com/laravel/boost"
},
"time": "2025-12-08T21:54:49+00:00"
"time": "2025-12-19T15:04:12+00:00"
},
{
"name": "laravel/mcp",
"version": "v0.4.2",
"version": "v0.5.1",
"source": {
"type": "git",
"url": "https://github.com/laravel/mcp.git",
"reference": "1c7878be3931a19768f791ddf141af29f43fb4ef"
"reference": "10dedea054fa4eeaa9ef2ccbfdad6c3e1dbd17a4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/mcp/zipball/1c7878be3931a19768f791ddf141af29f43fb4ef",
"reference": "1c7878be3931a19768f791ddf141af29f43fb4ef",
"url": "https://api.github.com/repos/laravel/mcp/zipball/10dedea054fa4eeaa9ef2ccbfdad6c3e1dbd17a4",
"reference": "10dedea054fa4eeaa9ef2ccbfdad6c3e1dbd17a4",
"shasum": ""
},
"require": {
@@ -18790,7 +18791,7 @@
"issues": "https://github.com/laravel/mcp/issues",
"source": "https://github.com/laravel/mcp"
},
"time": "2025-12-07T15:49:15+00:00"
"time": "2025-12-17T06:14:23+00:00"
},
{
"name": "laravel/roster",