commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
DiscountCode.php
1 <?php
2 
3 declare(strict_types=1);
10 
20 use DateTimeImmutable;
21 
22 interface DiscountCode extends BaseResource
23 {
24  public const FIELD_KEY = 'key';
25  public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
26  public const FIELD_CREATED_BY = 'createdBy';
27  public const FIELD_NAME = 'name';
28  public const FIELD_DESCRIPTION = 'description';
29  public const FIELD_CODE = 'code';
30  public const FIELD_CART_DISCOUNTS = 'cartDiscounts';
31  public const FIELD_CART_PREDICATE = 'cartPredicate';
32  public const FIELD_IS_ACTIVE = 'isActive';
33  public const FIELD_REFERENCES = 'references';
34  public const FIELD_MAX_APPLICATIONS = 'maxApplications';
35  public const FIELD_MAX_APPLICATIONS_PER_CUSTOMER = 'maxApplicationsPerCustomer';
36  public const FIELD_CUSTOM = 'custom';
37  public const FIELD_GROUPS = 'groups';
38  public const FIELD_VALID_FROM = 'validFrom';
39  public const FIELD_VALID_UNTIL = 'validUntil';
40  public const FIELD_APPLICATION_VERSION = 'applicationVersion';
41 
48  public function getId();
49 
56  public function getKey();
57 
64  public function getVersion();
65 
72  public function getCreatedAt();
73 
80  public function getLastModifiedAt();
81 
88  public function getLastModifiedBy();
89 
96  public function getCreatedBy();
97 
104  public function getName();
105 
112  public function getDescription();
113 
120  public function getCode();
121 
128  public function getCartDiscounts();
129 
136  public function getCartPredicate();
137 
144  public function getIsActive();
145 
153  public function getReferences();
154 
162  public function getMaxApplications();
163 
171  public function getMaxApplicationsPerCustomer();
172 
179  public function getCustom();
180 
187  public function getGroups();
188 
195  public function getValidFrom();
196 
203  public function getValidUntil();
204 
212  public function getApplicationVersion();
213 
217  public function setId(?string $id): void;
218 
222  public function setKey(?string $key): void;
223 
227  public function setVersion(?int $version): void;
228 
232  public function setCreatedAt(?DateTimeImmutable $createdAt): void;
233 
237  public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void;
238 
242  public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
243 
247  public function setCreatedBy(?CreatedBy $createdBy): void;
248 
252  public function setName(?LocalizedString $name): void;
253 
257  public function setDescription(?LocalizedString $description): void;
258 
262  public function setCode(?string $code): void;
263 
267  public function setCartDiscounts(?CartDiscountReferenceCollection $cartDiscounts): void;
268 
272  public function setCartPredicate(?string $cartPredicate): void;
273 
277  public function setIsActive(?bool $isActive): void;
278 
282  public function setReferences(?ReferenceCollection $references): void;
283 
287  public function setMaxApplications(?int $maxApplications): void;
288 
292  public function setMaxApplicationsPerCustomer(?int $maxApplicationsPerCustomer): void;
293 
297  public function setCustom(?CustomFields $custom): void;
298 
302  public function setGroups(?array $groups): void;
303 
307  public function setValidFrom(?DateTimeImmutable $validFrom): void;
308 
312  public function setValidUntil(?DateTimeImmutable $validUntil): void;
313 
317  public function setApplicationVersion(?int $applicationVersion): void;
318 }
setReferences(?ReferenceCollection $references)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setCreatedAt(?DateTimeImmutable $createdAt)
setCartDiscounts(?CartDiscountReferenceCollection $cartDiscounts)
setDescription(?LocalizedString $description)
setMaxApplicationsPerCustomer(?int $maxApplicationsPerCustomer)
setValidFrom(?DateTimeImmutable $validFrom)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setValidUntil(?DateTimeImmutable $validUntil)