commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CartDiscountDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use DateTimeImmutable;
17 
18 interface CartDiscountDraft extends JsonObject
19 {
20  public const FIELD_NAME = 'name';
21  public const FIELD_KEY = 'key';
22  public const FIELD_DESCRIPTION = 'description';
23  public const FIELD_VALUE = 'value';
24  public const FIELD_CART_PREDICATE = 'cartPredicate';
25  public const FIELD_TARGET = 'target';
26  public const FIELD_SORT_ORDER = 'sortOrder';
27  public const FIELD_STORES = 'stores';
28  public const FIELD_IS_ACTIVE = 'isActive';
29  public const FIELD_VALID_FROM = 'validFrom';
30  public const FIELD_VALID_UNTIL = 'validUntil';
31  public const FIELD_REQUIRES_DISCOUNT_CODE = 'requiresDiscountCode';
32  public const FIELD_STACKING_MODE = 'stackingMode';
33  public const FIELD_CUSTOM = 'custom';
34 
41  public function getName();
42 
49  public function getKey();
50 
57  public function getDescription();
58 
65  public function getValue();
66 
73  public function getCartPredicate();
74 
82  public function getTarget();
83 
92  public function getSortOrder();
93 
105  public function getStores();
106 
114  public function getIsActive();
115 
122  public function getValidFrom();
123 
130  public function getValidUntil();
131 
138  public function getRequiresDiscountCode();
139 
146  public function getStackingMode();
147 
154  public function getCustom();
155 
159  public function setName(?LocalizedString $name): void;
160 
164  public function setKey(?string $key): void;
165 
169  public function setDescription(?LocalizedString $description): void;
170 
174  public function setValue(?CartDiscountValueDraft $value): void;
175 
179  public function setCartPredicate(?string $cartPredicate): void;
180 
184  public function setTarget(?CartDiscountTarget $target): void;
185 
189  public function setSortOrder(?string $sortOrder): void;
190 
194  public function setStores(?StoreResourceIdentifierCollection $stores): void;
195 
199  public function setIsActive(?bool $isActive): void;
200 
204  public function setValidFrom(?DateTimeImmutable $validFrom): void;
205 
209  public function setValidUntil(?DateTimeImmutable $validUntil): void;
210 
214  public function setRequiresDiscountCode(?bool $requiresDiscountCode): void;
215 
219  public function setStackingMode(?string $stackingMode): void;
220 
224  public function setCustom(?CustomFieldsDraft $custom): void;
225 }
setStores(?StoreResourceIdentifierCollection $stores)