commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CartDiscount.php
1 <?php
2 
3 declare(strict_types=1);
10 
20 use DateTimeImmutable;
21 
22 interface CartDiscount extends BaseResource
23 {
24  public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
25  public const FIELD_CREATED_BY = 'createdBy';
26  public const FIELD_NAME = 'name';
27  public const FIELD_KEY = 'key';
28  public const FIELD_DESCRIPTION = 'description';
29  public const FIELD_VALUE = 'value';
30  public const FIELD_CART_PREDICATE = 'cartPredicate';
31  public const FIELD_TARGET = 'target';
32  public const FIELD_SORT_ORDER = 'sortOrder';
33  public const FIELD_STORES = 'stores';
34  public const FIELD_IS_ACTIVE = 'isActive';
35  public const FIELD_VALID_FROM = 'validFrom';
36  public const FIELD_VALID_UNTIL = 'validUntil';
37  public const FIELD_REQUIRES_DISCOUNT_CODE = 'requiresDiscountCode';
38  public const FIELD_REFERENCES = 'references';
39  public const FIELD_STACKING_MODE = 'stackingMode';
40  public const FIELD_CUSTOM = 'custom';
41 
48  public function getId();
49 
56  public function getVersion();
57 
64  public function getCreatedAt();
65 
72  public function getLastModifiedAt();
73 
80  public function getLastModifiedBy();
81 
88  public function getCreatedBy();
89 
96  public function getName();
97 
104  public function getKey();
105 
112  public function getDescription();
113 
120  public function getValue();
121 
128  public function getCartPredicate();
129 
137  public function getTarget();
138 
148  public function getSortOrder();
149 
159  public function getStores();
160 
167  public function getIsActive();
168 
175  public function getValidFrom();
176 
183  public function getValidUntil();
184 
191  public function getRequiresDiscountCode();
192 
200  public function getReferences();
201 
208  public function getStackingMode();
209 
216  public function getCustom();
217 
221  public function setId(?string $id): void;
222 
226  public function setVersion(?int $version): void;
227 
231  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
232 
236  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
237 
241  public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
242 
246  public function setCreatedBy(?CreatedBy $createdBy): void;
247 
251  public function setName(?LocalizedString $name): void;
252 
256  public function setKey(?string $key): void;
257 
261  public function setDescription(?LocalizedString $description): void;
262 
266  public function setValue(?CartDiscountValue $value): void;
267 
271  public function setCartPredicate(?string $cartPredicate): void;
272 
276  public function setTarget(?CartDiscountTarget $target): void;
277 
281  public function setSortOrder(?string $sortOrder): void;
282 
286  public function setStores(?StoreKeyReferenceCollection $stores): void;
287 
291  public function setIsActive(?bool $isActive): void;
292 
296  public function setValidFrom(?DateTimeImmutable $validFrom): void;
297 
301  public function setValidUntil(?DateTimeImmutable $validUntil): void;
302 
306  public function setRequiresDiscountCode(?bool $requiresDiscountCode): void;
307 
311  public function setReferences(?ReferenceCollection $references): void;
312 
316  public function setStackingMode(?string $stackingMode): void;
317 
321  public function setCustom(?CustomFields $custom): void;
322 }
setRequiresDiscountCode(?bool $requiresDiscountCode)
setDescription(?LocalizedString $description)
setReferences(?ReferenceCollection $references)
setCreatedAt(?DateTimeImmutable $createdAt)
setValidFrom(?DateTimeImmutable $validFrom)
setStores(?StoreKeyReferenceCollection $stores)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setValidUntil(?DateTimeImmutable $validUntil)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)