Get and resubscribe webhooks

This commit is contained in:
inpsyde-maticluznar 2024-12-18 07:00:47 +01:00
parent 484ecc17d7
commit 08f5b4fba5
No known key found for this signature in database
GPG key ID: D005973F231309F6
13 changed files with 113 additions and 167 deletions

View file

@ -18,6 +18,7 @@ use WooCommerce\PayPalCommerce\Settings\Endpoint\ConnectManualRestEndpoint;
use WooCommerce\PayPalCommerce\Settings\Endpoint\LoginLinkRestEndpoint;
use WooCommerce\PayPalCommerce\Settings\Endpoint\OnboardingRestEndpoint;
use WooCommerce\PayPalCommerce\Settings\Endpoint\SwitchSettingsUiEndpoint;
use WooCommerce\PayPalCommerce\Settings\Endpoint\WebhookSettingsEndpoint;
use WooCommerce\PayPalCommerce\Settings\Service\ConnectionUrlGenerator;
use WooCommerce\PayPalCommerce\Settings\Service\OnboardingUrlManager;
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
@ -83,6 +84,13 @@ return array(
$container->get( 'settings.service.connection-url-generators' ),
);
},
'settings.rest.webhooks' => static function ( ContainerInterface $container ) : WebhookSettingsEndpoint {
return new WebhookSettingsEndpoint(
$container->get('webhook.status.registered-webhooks-data'),
$container->get( 'webhook.registrar'),
$container->get('webhook.status.simulation')
);
},
'settings.casual-selling.supported-countries' => static function ( ContainerInterface $container ) : array {
return array(
'AR',