commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Error
AssociateMissingPermissionErrorBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Error
;
10
11
use
Commercetools\Api\Models\BusinessUnit\BusinessUnitResourceIdentifier
;
12
use
Commercetools\Api\Models\BusinessUnit\BusinessUnitResourceIdentifierBuilder
;
13
use
Commercetools\Api\Models\Customer\CustomerResourceIdentifier
;
14
use
Commercetools\Api\Models\Customer\CustomerResourceIdentifierBuilder
;
15
use
Commercetools\Base\Builder
;
16
use
Commercetools\Base\DateTimeImmutableCollection
;
17
use
Commercetools\Base\JsonObject
;
18
use
Commercetools\Base\JsonObjectModel
;
19
use
Commercetools\Base\MapperFactory
;
20
use stdClass;
21
25
final
class
AssociateMissingPermissionErrorBuilder
implements
Builder
26
{
31
private
$message;
32
37
private
$associate;
38
43
private
$businessUnit;
44
49
private
$associateOnBehalf;
50
55
private
$permissions;
56
67
public
function
getMessage
()
68
{
69
return
$this->message;
70
}
71
78
public
function
getAssociate
()
79
{
80
return
$this->associate instanceof
CustomerResourceIdentifierBuilder
? $this->associate->
build
() : $this->associate;
81
}
82
89
public
function
getBusinessUnit
()
90
{
91
return
$this->businessUnit instanceof
BusinessUnitResourceIdentifierBuilder
? $this->businessUnit->
build
() : $this->businessUnit;
92
}
93
100
public
function
getAssociateOnBehalf
()
101
{
102
return
$this->associateOnBehalf instanceof
CustomerResourceIdentifierBuilder
? $this->associateOnBehalf->
build
() : $this->associateOnBehalf;
103
}
104
111
public
function
getPermissions
()
112
{
113
return
$this->permissions;
114
}
115
120
public
function
withMessage
(?
string
$message)
121
{
122
$this->message = $message;
123
124
return
$this;
125
}
126
131
public
function
withAssociate
(?
CustomerResourceIdentifier
$associate)
132
{
133
$this->associate = $associate;
134
135
return
$this;
136
}
137
142
public
function
withBusinessUnit
(?
BusinessUnitResourceIdentifier
$businessUnit)
143
{
144
$this->businessUnit = $businessUnit;
145
146
return
$this;
147
}
148
153
public
function
withAssociateOnBehalf
(?
CustomerResourceIdentifier
$associateOnBehalf)
154
{
155
$this->associateOnBehalf = $associateOnBehalf;
156
157
return
$this;
158
}
159
164
public
function
withPermissions
(?array $permissions)
165
{
166
$this->permissions = $permissions;
167
168
return
$this;
169
}
170
175
public
function
withAssociateBuilder
(?
CustomerResourceIdentifierBuilder
$associate)
176
{
177
$this->associate = $associate;
178
179
return
$this;
180
}
181
186
public
function
withBusinessUnitBuilder
(?
BusinessUnitResourceIdentifierBuilder
$businessUnit)
187
{
188
$this->businessUnit = $businessUnit;
189
190
return
$this;
191
}
192
197
public
function
withAssociateOnBehalfBuilder
(?
CustomerResourceIdentifierBuilder
$associateOnBehalf)
198
{
199
$this->associateOnBehalf = $associateOnBehalf;
200
201
return
$this;
202
}
203
204
public
function
build
():
AssociateMissingPermissionError
205
{
206
return
new
AssociateMissingPermissionErrorModel
(
207
$this->message,
208
$this->associate instanceof
CustomerResourceIdentifierBuilder
? $this->associate->
build
() : $this->associate,
209
$this->businessUnit instanceof
BusinessUnitResourceIdentifierBuilder
? $this->businessUnit->
build
() : $this->businessUnit,
210
$this->associateOnBehalf instanceof
CustomerResourceIdentifierBuilder
? $this->associateOnBehalf->
build
() : $this->associateOnBehalf,
211
$this->permissions
212
);
213
}
214
215
public
static
function
of
():
AssociateMissingPermissionErrorBuilder
216
{
217
return
new
self
();
218
}
219
}
Commercetools\Api\Models\BusinessUnit\BusinessUnitResourceIdentifierBuilder
Definition
BusinessUnitResourceIdentifierBuilder.php:24
Commercetools\Api\Models\BusinessUnit\BusinessUnitResourceIdentifierBuilder\build
build()
Definition
BusinessUnitResourceIdentifierBuilder.php:82
Commercetools\Api\Models\Customer\CustomerResourceIdentifierBuilder
Definition
CustomerResourceIdentifierBuilder.php:24
Commercetools\Api\Models\Customer\CustomerResourceIdentifierBuilder\build
build()
Definition
CustomerResourceIdentifierBuilder.php:82
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder
Definition
AssociateMissingPermissionErrorBuilder.php:26
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\getPermissions
getPermissions()
Definition
AssociateMissingPermissionErrorBuilder.php:111
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\of
static of()
Definition
AssociateMissingPermissionErrorBuilder.php:215
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\withBusinessUnit
withBusinessUnit(?BusinessUnitResourceIdentifier $businessUnit)
Definition
AssociateMissingPermissionErrorBuilder.php:142
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\withAssociateOnBehalfBuilder
withAssociateOnBehalfBuilder(?CustomerResourceIdentifierBuilder $associateOnBehalf)
Definition
AssociateMissingPermissionErrorBuilder.php:197
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\getAssociateOnBehalf
getAssociateOnBehalf()
Definition
AssociateMissingPermissionErrorBuilder.php:100
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\withMessage
withMessage(?string $message)
Definition
AssociateMissingPermissionErrorBuilder.php:120
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\getBusinessUnit
getBusinessUnit()
Definition
AssociateMissingPermissionErrorBuilder.php:89
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\build
build()
Definition
AssociateMissingPermissionErrorBuilder.php:204
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\withAssociate
withAssociate(?CustomerResourceIdentifier $associate)
Definition
AssociateMissingPermissionErrorBuilder.php:131
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\withAssociateBuilder
withAssociateBuilder(?CustomerResourceIdentifierBuilder $associate)
Definition
AssociateMissingPermissionErrorBuilder.php:175
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\withBusinessUnitBuilder
withBusinessUnitBuilder(?BusinessUnitResourceIdentifierBuilder $businessUnit)
Definition
AssociateMissingPermissionErrorBuilder.php:186
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\getMessage
getMessage()
Definition
AssociateMissingPermissionErrorBuilder.php:67
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\withPermissions
withPermissions(?array $permissions)
Definition
AssociateMissingPermissionErrorBuilder.php:164
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\withAssociateOnBehalf
withAssociateOnBehalf(?CustomerResourceIdentifier $associateOnBehalf)
Definition
AssociateMissingPermissionErrorBuilder.php:153
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorBuilder\getAssociate
getAssociate()
Definition
AssociateMissingPermissionErrorBuilder.php:78
Commercetools\Api\Models\Error\AssociateMissingPermissionErrorModel
Definition
AssociateMissingPermissionErrorModel.php:25
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\Api\Models\BusinessUnit\BusinessUnitResourceIdentifier
Definition
BusinessUnitResourceIdentifier.php:16
Commercetools\Api\Models\Customer\CustomerResourceIdentifier
Definition
CustomerResourceIdentifier.php:16
Commercetools\Api\Models\Error\AssociateMissingPermissionError
Definition
AssociateMissingPermissionError.php:17
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Error
Definition
AnonymousIdAlreadyInUseError.php:9
Generated by
1.9.8