Add deactivate plan endpoint (WIP)

This commit is contained in:
Emili Castells Guasch 2023-06-15 12:16:25 +02:00
parent d9ba42e45b
commit 28213c39af
6 changed files with 175 additions and 10 deletions

View file

@ -65,4 +65,10 @@ return array(
dirname( realpath( __FILE__ ), 3 ) . '/woocommerce-paypal-payments.php'
);
},
'subscription.deactivate-plan-endpoint' => static function ( ContainerInterface $container ): DeactivatePlanEndpoint {
return new DeactivatePlanEndpoint(
$container->get( 'button.request-data' ),
$container->get( 'api.endpoint.billing-plans' )
);
},
);