commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ApprovalFlow
ApprovalFlow.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ApprovalFlow
;
10
11
use
Commercetools\Api\Models\ApprovalRule\ApprovalRuleCollection
;
12
use
Commercetools\Api\Models\ApprovalRule\RuleApproverCollection
;
13
use
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReference
;
14
use
Commercetools\Api\Models\Common\BaseResource
;
15
use
Commercetools\Api\Models\Common\CreatedBy
;
16
use
Commercetools\Api\Models\Common\LastModifiedBy
;
17
use
Commercetools\Api\Models\Order\OrderReference
;
18
use
Commercetools\Api\Models\Type\CustomFields
;
19
use
Commercetools\Base\DateTimeImmutableCollection
;
20
use
Commercetools\Base\JsonObject
;
21
use DateTimeImmutable;
22
23
interface
ApprovalFlow
extends
BaseResource
24
{
25
public
const
FIELD_CREATED_BY
=
'createdBy'
;
26
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
27
public
const
FIELD_ORDER
=
'order'
;
28
public
const
FIELD_BUSINESS_UNIT
=
'businessUnit'
;
29
public
const
FIELD_RULES
=
'rules'
;
30
public
const
FIELD_STATUS
=
'status'
;
31
public
const
FIELD_REJECTION
=
'rejection'
;
32
public
const
FIELD_APPROVALS
=
'approvals'
;
33
public
const
FIELD_ELIGIBLE_APPROVERS
=
'eligibleApprovers'
;
34
public
const
FIELD_PENDING_APPROVERS
=
'pendingApprovers'
;
35
public
const
FIELD_CURRENT_TIER_PENDING_APPROVERS
=
'currentTierPendingApprovers'
;
36
public
const
FIELD_CUSTOM
=
'custom'
;
37
44
public
function
getId
();
45
52
public
function
getVersion
();
53
60
public
function
getCreatedAt
();
61
68
public
function
getCreatedBy
();
69
76
public
function
getLastModifiedAt
();
77
84
public
function
getLastModifiedBy
();
85
92
public
function
getOrder
();
93
100
public
function
getBusinessUnit
();
101
108
public
function
getRules
();
109
116
public
function
getStatus
();
117
124
public
function
getRejection
();
125
132
public
function
getApprovals
();
133
141
public
function
getEligibleApprovers
();
142
149
public
function
getPendingApprovers
();
150
157
public
function
getCurrentTierPendingApprovers
();
158
165
public
function
getCustom
();
166
170
public
function
setId
(?
string
$id): void;
171
175
public
function
setVersion
(?
int
$version): void;
176
180
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
181
185
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
186
190
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
191
195
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
196
200
public
function
setOrder
(?
OrderReference
$order): void;
201
205
public
function
setBusinessUnit
(?
BusinessUnitKeyReference
$businessUnit): void;
206
210
public
function
setRules
(?
ApprovalRuleCollection
$rules): void;
211
215
public
function
setStatus
(?
string
$status): void;
216
220
public
function
setRejection
(?
ApprovalFlowRejection
$rejection): void;
221
225
public
function
setApprovals
(?
ApprovalFlowApprovalCollection
$approvals): void;
226
230
public
function
setEligibleApprovers
(?
RuleApproverCollection
$eligibleApprovers): void;
231
235
public
function
setPendingApprovers
(?
RuleApproverCollection
$pendingApprovers): void;
236
240
public
function
setCurrentTierPendingApprovers
(?
RuleApproverCollection
$currentTierPendingApprovers): void;
241
245
public
function
setCustom
(?
CustomFields
$custom): void;
246
}
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowApprovalCollection
Definition:
ApprovalFlowApprovalCollection.php:22
Commercetools\Api\Models\ApprovalRule\ApprovalRuleCollection
Definition:
ApprovalRuleCollection.php:22
Commercetools\Api\Models\ApprovalRule\RuleApproverCollection
Definition:
RuleApproverCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow
Definition:
ApprovalFlow.php:24
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setRejection
setRejection(?ApprovalFlowRejection $rejection)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\FIELD_PENDING_APPROVERS
const FIELD_PENDING_APPROVERS
Definition:
ApprovalFlow.php:34
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getCurrentTierPendingApprovers
getCurrentTierPendingApprovers()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setId
setId(?string $id)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\FIELD_RULES
const FIELD_RULES
Definition:
ApprovalFlow.php:29
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getRejection
getRejection()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
ApprovalFlow.php:36
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getStatus
getStatus()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getCustom
getCustom()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setRules
setRules(?ApprovalRuleCollection $rules)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\FIELD_APPROVALS
const FIELD_APPROVALS
Definition:
ApprovalFlow.php:32
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
ApprovalFlow.php:25
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getId
getId()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setCurrentTierPendingApprovers
setCurrentTierPendingApprovers(?RuleApproverCollection $currentTierPendingApprovers)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setBusinessUnit
setBusinessUnit(?BusinessUnitKeyReference $businessUnit)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getRules
getRules()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setApprovals
setApprovals(?ApprovalFlowApprovalCollection $approvals)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\FIELD_BUSINESS_UNIT
const FIELD_BUSINESS_UNIT
Definition:
ApprovalFlow.php:28
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\FIELD_STATUS
const FIELD_STATUS
Definition:
ApprovalFlow.php:30
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setCustom
setCustom(?CustomFields $custom)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setEligibleApprovers
setEligibleApprovers(?RuleApproverCollection $eligibleApprovers)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setOrder
setOrder(?OrderReference $order)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getPendingApprovers
getPendingApprovers()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\FIELD_CURRENT_TIER_PENDING_APPROVERS
const FIELD_CURRENT_TIER_PENDING_APPROVERS
Definition:
ApprovalFlow.php:35
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\FIELD_ORDER
const FIELD_ORDER
Definition:
ApprovalFlow.php:27
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getApprovals
getApprovals()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setStatus
setStatus(?string $status)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getOrder
getOrder()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\FIELD_REJECTION
const FIELD_REJECTION
Definition:
ApprovalFlow.php:31
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\FIELD_ELIGIBLE_APPROVERS
const FIELD_ELIGIBLE_APPROVERS
Definition:
ApprovalFlow.php:33
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
ApprovalFlow.php:26
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setVersion
setVersion(?int $version)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getBusinessUnit
getBusinessUnit()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getVersion
getVersion()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setPendingApprovers
setPendingApprovers(?RuleApproverCollection $pendingApprovers)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\ApprovalFlow\ApprovalFlow\getEligibleApprovers
getEligibleApprovers()
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowRejection
Definition:
ApprovalFlowRejection.php:17
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReference
Definition:
BusinessUnitKeyReference.php:16
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\Order\OrderReference
Definition:
OrderReference.php:16
Commercetools\Api\Models\Type\CustomFields
Definition:
CustomFields.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ApprovalFlow
Definition:
ApprovalFlow.php:9
Generated by
1.9.1