commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
AssociateRole
AssociateRole.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\AssociateRole
;
10
11
use
Commercetools\Api\Models\Common\BaseResource
;
12
use
Commercetools\Api\Models\Common\CreatedBy
;
13
use
Commercetools\Api\Models\Common\LastModifiedBy
;
14
use
Commercetools\Api\Models\Type\CustomFields
;
15
use
Commercetools\Base\DateTimeImmutableCollection
;
16
use
Commercetools\Base\JsonObject
;
17
use DateTimeImmutable;
18
19
interface
AssociateRole
extends
BaseResource
20
{
21
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
22
public
const
FIELD_CREATED_BY
=
'createdBy'
;
23
public
const
FIELD_KEY
=
'key'
;
24
public
const
FIELD_BUYER_ASSIGNABLE
=
'buyerAssignable'
;
25
public
const
FIELD_NAME
=
'name'
;
26
public
const
FIELD_PERMISSIONS
=
'permissions'
;
27
public
const
FIELD_CUSTOM
=
'custom'
;
28
35
public
function
getId
();
36
43
public
function
getVersion
();
44
51
public
function
getCreatedAt
();
52
59
public
function
getLastModifiedAt
();
60
67
public
function
getLastModifiedBy
();
68
75
public
function
getCreatedBy
();
76
83
public
function
getKey
();
84
91
public
function
getBuyerAssignable
();
92
99
public
function
getName
();
100
107
public
function
getPermissions
();
108
115
public
function
getCustom
();
116
120
public
function
setId
(?
string
$id): void;
121
125
public
function
setVersion
(?
int
$version): void;
126
130
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
131
135
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
136
140
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
141
145
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
146
150
public
function
setKey
(?
string
$key): void;
151
155
public
function
setBuyerAssignable
(?
bool
$buyerAssignable): void;
156
160
public
function
setName
(?
string
$name): void;
161
165
public
function
setPermissions
(?array $permissions): void;
166
170
public
function
setCustom
(?
CustomFields
$custom): void;
171
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\AssociateRole\AssociateRole
Definition:
AssociateRole.php:20
Commercetools\Api\Models\AssociateRole\AssociateRole\getId
getId()
Commercetools\Api\Models\AssociateRole\AssociateRole\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\AssociateRole\AssociateRole\setVersion
setVersion(?int $version)
Commercetools\Api\Models\AssociateRole\AssociateRole\getCustom
getCustom()
Commercetools\Api\Models\AssociateRole\AssociateRole\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\AssociateRole\AssociateRole\FIELD_KEY
const FIELD_KEY
Definition:
AssociateRole.php:23
Commercetools\Api\Models\AssociateRole\AssociateRole\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\AssociateRole\AssociateRole\getVersion
getVersion()
Commercetools\Api\Models\AssociateRole\AssociateRole\FIELD_BUYER_ASSIGNABLE
const FIELD_BUYER_ASSIGNABLE
Definition:
AssociateRole.php:24
Commercetools\Api\Models\AssociateRole\AssociateRole\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
AssociateRole.php:21
Commercetools\Api\Models\AssociateRole\AssociateRole\getPermissions
getPermissions()
Commercetools\Api\Models\AssociateRole\AssociateRole\getBuyerAssignable
getBuyerAssignable()
Commercetools\Api\Models\AssociateRole\AssociateRole\getName
getName()
Commercetools\Api\Models\AssociateRole\AssociateRole\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\AssociateRole\AssociateRole\setCustom
setCustom(?CustomFields $custom)
Commercetools\Api\Models\AssociateRole\AssociateRole\setBuyerAssignable
setBuyerAssignable(?bool $buyerAssignable)
Commercetools\Api\Models\AssociateRole\AssociateRole\setId
setId(?string $id)
Commercetools\Api\Models\AssociateRole\AssociateRole\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\AssociateRole\AssociateRole\getKey
getKey()
Commercetools\Api\Models\AssociateRole\AssociateRole\setPermissions
setPermissions(?array $permissions)
Commercetools\Api\Models\AssociateRole\AssociateRole\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
AssociateRole.php:27
Commercetools\Api\Models\AssociateRole\AssociateRole\setKey
setKey(?string $key)
Commercetools\Api\Models\AssociateRole\AssociateRole\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\AssociateRole\AssociateRole\FIELD_NAME
const FIELD_NAME
Definition:
AssociateRole.php:25
Commercetools\Api\Models\AssociateRole\AssociateRole\setName
setName(?string $name)
Commercetools\Api\Models\AssociateRole\AssociateRole\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\AssociateRole\AssociateRole\FIELD_PERMISSIONS
const FIELD_PERMISSIONS
Definition:
AssociateRole.php:26
Commercetools\Api\Models\AssociateRole\AssociateRole\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
AssociateRole.php:22
Commercetools\Api\Models\AssociateRole\AssociateRole\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\CreatedBy
Definition:
CreatedBy.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Type\CustomFields
Definition:
CustomFields.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\AssociateRole
Definition:
AssociateRole.php:9
Generated by
1.9.1