commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
OrderEdit.php
1 <?php
2 
3 declare(strict_types=1);
10 
19 use DateTimeImmutable;
20 
21 interface OrderEdit extends BaseResource
22 {
23  public const FIELD_KEY = 'key';
24  public const FIELD_RESOURCE = 'resource';
25  public const FIELD_STAGED_ACTIONS = 'stagedActions';
26  public const FIELD_RESULT = 'result';
27  public const FIELD_COMMENT = 'comment';
28  public const FIELD_CUSTOM = 'custom';
29  public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
30  public const FIELD_CREATED_BY = 'createdBy';
31 
38  public function getId();
39 
46  public function getVersion();
47 
54  public function getKey();
55 
62  public function getResource();
63 
70  public function getStagedActions();
71 
79  public function getResult();
80 
87  public function getComment();
88 
95  public function getCustom();
96 
103  public function getCreatedAt();
104 
111  public function getLastModifiedAt();
112 
119  public function getLastModifiedBy();
120 
127  public function getCreatedBy();
128 
132  public function setId(?string $id): void;
133 
137  public function setVersion(?int $version): void;
138 
142  public function setKey(?string $key): void;
143 
147  public function setResource(?OrderReference $resource): void;
148 
152  public function setStagedActions(?StagedOrderUpdateActionCollection $stagedActions): void;
153 
157  public function setResult(?OrderEditResult $result): void;
158 
162  public function setComment(?string $comment): void;
163 
167  public function setCustom(?CustomFields $custom): void;
168 
172  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
173 
177  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
178 
182  public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
183 
187  public function setCreatedBy(?CreatedBy $createdBy): void;
188 }
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setCreatedAt(?DateTimeImmutable $createdAt)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setResource(?OrderReference $resource)
setStagedActions(?StagedOrderUpdateActionCollection $stagedActions)