mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
♻️ Adapt the REST endpoint to the new data model
This commit is contained in:
parent
cd9ff71cd0
commit
16d8598ab6
2 changed files with 85 additions and 89 deletions
|
@ -125,6 +125,11 @@ return array(
|
|||
$container->get( 'webhook.status.simulation' )
|
||||
);
|
||||
},
|
||||
'settings.rest.settings' => static function ( ContainerInterface $container ) : SettingsRestEndpoint {
|
||||
return new SettingsRestEndpoint(
|
||||
$container->get( 'settings.data.settings' )
|
||||
);
|
||||
},
|
||||
'settings.casual-selling.supported-countries' => static function ( ContainerInterface $container ) : array {
|
||||
return array(
|
||||
'AR',
|
||||
|
@ -229,12 +234,6 @@ return array(
|
|||
$container->get( 'api.merchant_id' ) !== ''
|
||||
);
|
||||
},
|
||||
'settings.rest.settings' => static function( ContainerInterface $container ): SettingsRestEndpoint {
|
||||
return new SettingsRestEndpoint(
|
||||
$container->get( 'settings.data.settings' ),
|
||||
$container->get( 'woocommerce.logger.woocommerce' ),
|
||||
);
|
||||
},
|
||||
'settings.rest.todos' => static function ( ContainerInterface $container ) : TodosRestEndpoint {
|
||||
return new TodosRestEndpoint(
|
||||
$container->get( 'settings.data.todos' ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue