commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ApprovalFlow.php
1 <?php
2 
3 declare(strict_types=1);
10 
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 
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 }
setRejection(?ApprovalFlowRejection $rejection)
setRules(?ApprovalRuleCollection $rules)
setCreatedAt(?DateTimeImmutable $createdAt)
setCurrentTierPendingApprovers(?RuleApproverCollection $currentTierPendingApprovers)
setBusinessUnit(?BusinessUnitKeyReference $businessUnit)
setApprovals(?ApprovalFlowApprovalCollection $approvals)
setEligibleApprovers(?RuleApproverCollection $eligibleApprovers)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setPendingApprovers(?RuleApproverCollection $pendingApprovers)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)