commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ApiClient
ApiClient.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ApiClient
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use DateTimeImmutable;
14
15
interface
ApiClient
extends
JsonObject
16
{
17
public
const
FIELD_ID
=
'id'
;
18
public
const
FIELD_NAME
=
'name'
;
19
public
const
FIELD_SCOPE
=
'scope'
;
20
public
const
FIELD_SECRET
=
'secret'
;
21
public
const
FIELD_LAST_USED_AT
=
'lastUsedAt'
;
22
public
const
FIELD_DELETE_AT
=
'deleteAt'
;
23
public
const
FIELD_CREATED_AT
=
'createdAt'
;
24
public
const
FIELD_ACCESS_TOKEN_VALIDITY_SECONDS
=
'accessTokenValiditySeconds'
;
25
public
const
FIELD_REFRESH_TOKEN_VALIDITY_SECONDS
=
'refreshTokenValiditySeconds'
;
26
33
public
function
getId
();
34
41
public
function
getName
();
42
49
public
function
getScope
();
50
58
public
function
getSecret
();
59
66
public
function
getLastUsedAt
();
67
74
public
function
getDeleteAt
();
75
82
public
function
getCreatedAt
();
83
90
public
function
getAccessTokenValiditySeconds
();
91
98
public
function
getRefreshTokenValiditySeconds
();
99
103
public
function
setId
(?
string
$id): void;
104
108
public
function
setName
(?
string
$name): void;
109
113
public
function
setScope
(?
string
$scope): void;
114
118
public
function
setSecret
(?
string
$secret): void;
119
123
public
function
setLastUsedAt
(?DateTimeImmutable $lastUsedAt): void;
124
128
public
function
setDeleteAt
(?DateTimeImmutable $deleteAt): void;
129
133
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
134
138
public
function
setAccessTokenValiditySeconds
(?
int
$accessTokenValiditySeconds): void;
139
143
public
function
setRefreshTokenValiditySeconds
(?
int
$refreshTokenValiditySeconds): void;
144
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\ApiClient\ApiClient
Definition:
ApiClient.php:16
Commercetools\Api\Models\ApiClient\ApiClient\setSecret
setSecret(?string $secret)
Commercetools\Api\Models\ApiClient\ApiClient\setDeleteAt
setDeleteAt(?DateTimeImmutable $deleteAt)
Commercetools\Api\Models\ApiClient\ApiClient\getId
getId()
Commercetools\Api\Models\ApiClient\ApiClient\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\ApiClient\ApiClient\FIELD_CREATED_AT
const FIELD_CREATED_AT
Definition:
ApiClient.php:23
Commercetools\Api\Models\ApiClient\ApiClient\setAccessTokenValiditySeconds
setAccessTokenValiditySeconds(?int $accessTokenValiditySeconds)
Commercetools\Api\Models\ApiClient\ApiClient\getLastUsedAt
getLastUsedAt()
Commercetools\Api\Models\ApiClient\ApiClient\getRefreshTokenValiditySeconds
getRefreshTokenValiditySeconds()
Commercetools\Api\Models\ApiClient\ApiClient\getDeleteAt
getDeleteAt()
Commercetools\Api\Models\ApiClient\ApiClient\setRefreshTokenValiditySeconds
setRefreshTokenValiditySeconds(?int $refreshTokenValiditySeconds)
Commercetools\Api\Models\ApiClient\ApiClient\FIELD_SECRET
const FIELD_SECRET
Definition:
ApiClient.php:20
Commercetools\Api\Models\ApiClient\ApiClient\getName
getName()
Commercetools\Api\Models\ApiClient\ApiClient\FIELD_LAST_USED_AT
const FIELD_LAST_USED_AT
Definition:
ApiClient.php:21
Commercetools\Api\Models\ApiClient\ApiClient\FIELD_SCOPE
const FIELD_SCOPE
Definition:
ApiClient.php:19
Commercetools\Api\Models\ApiClient\ApiClient\FIELD_REFRESH_TOKEN_VALIDITY_SECONDS
const FIELD_REFRESH_TOKEN_VALIDITY_SECONDS
Definition:
ApiClient.php:25
Commercetools\Api\Models\ApiClient\ApiClient\FIELD_ID
const FIELD_ID
Definition:
ApiClient.php:17
Commercetools\Api\Models\ApiClient\ApiClient\setId
setId(?string $id)
Commercetools\Api\Models\ApiClient\ApiClient\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\ApiClient\ApiClient\getScope
getScope()
Commercetools\Api\Models\ApiClient\ApiClient\FIELD_DELETE_AT
const FIELD_DELETE_AT
Definition:
ApiClient.php:22
Commercetools\Api\Models\ApiClient\ApiClient\setLastUsedAt
setLastUsedAt(?DateTimeImmutable $lastUsedAt)
Commercetools\Api\Models\ApiClient\ApiClient\setName
setName(?string $name)
Commercetools\Api\Models\ApiClient\ApiClient\getSecret
getSecret()
Commercetools\Api\Models\ApiClient\ApiClient\getAccessTokenValiditySeconds
getAccessTokenValiditySeconds()
Commercetools\Api\Models\ApiClient\ApiClient\FIELD_NAME
const FIELD_NAME
Definition:
ApiClient.php:18
Commercetools\Api\Models\ApiClient\ApiClient\FIELD_ACCESS_TOKEN_VALIDITY_SECONDS
const FIELD_ACCESS_TOKEN_VALIDITY_SECONDS
Definition:
ApiClient.php:24
Commercetools\Api\Models\ApiClient\ApiClient\setScope
setScope(?string $scope)
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ApiClient
Definition:
ApiClient.php:9
Generated by
1.9.1