commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
DiscountCodeImport.php
1 <?php
2 
3 declare(strict_types=1);
10 
17 use DateTimeImmutable;
18 
20 {
21  public const FIELD_NAME = 'name';
22  public const FIELD_DESCRIPTION = 'description';
23  public const FIELD_CODE = 'code';
24  public const FIELD_CART_DISCOUNTS = 'cartDiscounts';
25  public const FIELD_CART_PREDICATE = 'cartPredicate';
26  public const FIELD_IS_ACTIVE = 'isActive';
27  public const FIELD_MAX_APPLICATIONS = 'maxApplications';
28  public const FIELD_MAX_APPLICATIONS_PER_CUSTOMER = 'maxApplicationsPerCustomer';
29  public const FIELD_GROUPS = 'groups';
30  public const FIELD_VALID_FROM = 'validFrom';
31  public const FIELD_VALID_UNTIL = 'validUntil';
32  public const FIELD_CUSTOM = 'custom';
33 
40  public function getKey();
41 
48  public function getName();
49 
56  public function getDescription();
57 
65  public function getCode();
66 
73  public function getCartDiscounts();
74 
81  public function getCartPredicate();
82 
89  public function getIsActive();
90 
97  public function getMaxApplications();
98 
105  public function getMaxApplicationsPerCustomer();
106 
113  public function getGroups();
114 
121  public function getValidFrom();
122 
129  public function getValidUntil();
130 
137  public function getCustom();
138 
142  public function setKey(?string $key): void;
143 
147  public function setName(?LocalizedString $name): void;
148 
152  public function setDescription(?LocalizedString $description): void;
153 
157  public function setCode(?string $code): void;
158 
162  public function setCartDiscounts(?CartDiscountKeyReferenceCollection $cartDiscounts): void;
163 
167  public function setCartPredicate(?string $cartPredicate): void;
168 
172  public function setIsActive(?bool $isActive): void;
173 
177  public function setMaxApplications(?int $maxApplications): void;
178 
182  public function setMaxApplicationsPerCustomer(?int $maxApplicationsPerCustomer): void;
183 
187  public function setGroups(?array $groups): void;
188 
192  public function setValidFrom(?DateTimeImmutable $validFrom): void;
193 
197  public function setValidUntil(?DateTimeImmutable $validUntil): void;
198 
202  public function setCustom(?Custom $custom): void;
203 }
setCartDiscounts(?CartDiscountKeyReferenceCollection $cartDiscounts)
setMaxApplicationsPerCustomer(?int $maxApplicationsPerCustomer)