-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTokenBundleServiceInterface.php
39 lines (33 loc) · 1.03 KB
/
TokenBundleServiceInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* Author: Adrian Szuszkiewicz <[email protected]>
* Github: https://github.com/imper86
* Date: 04.10.2019
* Time: 13:34
*/
namespace Imper86\AllegroApiBundle\Service;
use Imper86\AllegroApiBundle\Entity\AllegroAccountInterface;
use Imper86\AllegroRestApiSdk\Model\Auth\TokenBundleInterface;
/**
* Interface TokenBundleServiceInterface
* @package Imper86\AllegroApiBundle\Service
*/
interface TokenBundleServiceInterface
{
/**
* @param AllegroAccountInterface $account
* @param bool $autoRefresh
* @return TokenBundleInterface
*/
public function fetchBundle(AllegroAccountInterface $account, bool $autoRefresh = true): TokenBundleInterface;
/**
* @param TokenBundleInterface $tokenBundle
* @return TokenBundleInterface
*/
public function refreshBundle(TokenBundleInterface $tokenBundle): TokenBundleInterface;
/**
* @param AllegroAccountInterface $account
* @return string|null
*/
public function fetchSoapSessionId(AllegroAccountInterface $account): ?string;
}