ver. 0.269: ShopPaymentMethod refactor + Apilo keepalive
This commit is contained in:
@@ -4,7 +4,7 @@ namespace admin\factory;
|
||||
/**
|
||||
* Fasada kompatybilnosci wstecznej.
|
||||
* Deleguje do Domain\Integrations\IntegrationsRepository.
|
||||
* Uzywane przez: cron.php, shop\Order, admin\Controllers\ShopStatusesController, admin\controls\ShopTransport, admin\controls\ShopPaymentMethod, admin\controls\ShopProduct.
|
||||
* Uzywane przez: cron.php, shop\Order, admin\Controllers\ShopStatusesController, admin\controls\ShopTransport, admin\controls\ShopProduct, admin\Controllers\ShopPaymentMethodController.
|
||||
*/
|
||||
class Integrations {
|
||||
|
||||
@@ -32,6 +32,11 @@ class Integrations {
|
||||
return self::repo()->apiloGetAccessToken();
|
||||
}
|
||||
|
||||
static public function apilo_keepalive( int $refresh_lead_seconds = 300 )
|
||||
{
|
||||
return self::repo()->apiloKeepalive( $refresh_lead_seconds );
|
||||
}
|
||||
|
||||
static public function apilo_authorization( $client_id, $client_secret, $authorization_code )
|
||||
{
|
||||
return self::repo()->apiloAuthorize( $client_id, $client_secret, $authorization_code );
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
namespace admin\factory;
|
||||
class ShopPaymentMethod
|
||||
{
|
||||
public static function payments_list()
|
||||
{
|
||||
global $mdb;
|
||||
return $mdb -> select( 'pp_shop_payment_methods', '*', [ 'ORDER' => [ 'name' => 'ASC'] ] );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user