-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathApiClientDraft.php
More file actions
86 lines (67 loc) · 2.37 KB
/
Copy pathApiClientDraft.php
File metadata and controls
86 lines (67 loc) · 2.37 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
declare(strict_types=1);
/**
* This file has been auto generated
* Do not change it.
*/
namespace Commercetools\Api\Models\ApiClient;
use Commercetools\Base\DateTimeImmutableCollection;
use Commercetools\Base\JsonObject;
interface ApiClientDraft extends JsonObject
{
public const FIELD_NAME = 'name';
public const FIELD_SCOPE = 'scope';
public const FIELD_DELETE_DAYS_AFTER_CREATION = 'deleteDaysAfterCreation';
public const FIELD_ACCESS_TOKEN_VALIDITY_SECONDS = 'accessTokenValiditySeconds';
public const FIELD_REFRESH_TOKEN_VALIDITY_SECONDS = 'refreshTokenValiditySeconds';
/**
* <p>Name of the APIClient.</p>
*
* @return null|string
*/
public function getName();
/**
* <p>Whitespace-separated list of <a href="/api/scopes">OAuth scopes</a> that can be used when <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtaining an access token</a>.</p>
*
* @return null|string
*/
public function getScope();
/**
* <p>If set, the Client will be deleted after the specified amount of days.</p>
*
* @return null|int
*/
public function getDeleteDaysAfterCreation();
/**
* <p>Expiration time in seconds for each access token obtained by the APIClient. If not set the default value applies.</p>
*
* @return null|int
*/
public function getAccessTokenValiditySeconds();
/**
* <p>Inactivity expiration time in seconds for each refresh token obtained by the APIClient. The expiration time for refresh tokens is restarted each time the token is used. If not set the default value applies.</p>
*
* @return null|int
*/
public function getRefreshTokenValiditySeconds();
/**
* @param ?string $name
*/
public function setName(?string $name): void;
/**
* @param ?string $scope
*/
public function setScope(?string $scope): void;
/**
* @param ?int $deleteDaysAfterCreation
*/
public function setDeleteDaysAfterCreation(?int $deleteDaysAfterCreation): void;
/**
* @param ?int $accessTokenValiditySeconds
*/
public function setAccessTokenValiditySeconds(?int $accessTokenValiditySeconds): void;
/**
* @param ?int $refreshTokenValiditySeconds
*/
public function setRefreshTokenValiditySeconds(?int $refreshTokenValiditySeconds): void;
}