commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
DiscountCodeDraft.php
1<?php
2
3declare(strict_types=1);
10
16use DateTimeImmutable;
17
19{
20 public const FIELD_KEY = 'key';
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_CUSTOM = 'custom';
30 public const FIELD_GROUPS = 'groups';
31 public const FIELD_VALID_FROM = 'validFrom';
32 public const FIELD_VALID_UNTIL = 'validUntil';
33
41 public function getKey();
42
49 public function getName();
50
57 public function getDescription();
58
66 public function getCode();
67
74 public function getCartDiscounts();
75
82 public function getCartPredicate();
83
90 public function getIsActive();
91
99 public function getMaxApplications();
100
109
116 public function getCustom();
117
124 public function getGroups();
125
132 public function getValidFrom();
133
140 public function getValidUntil();
141
145 public function setKey(?string $key): void;
146
150 public function setName(?LocalizedString $name): void;
151
155 public function setDescription(?LocalizedString $description): void;
156
160 public function setCode(?string $code): void;
161
165 public function setCartDiscounts(?CartDiscountResourceIdentifierCollection $cartDiscounts): void;
166
170 public function setCartPredicate(?string $cartPredicate): void;
171
175 public function setIsActive(?bool $isActive): void;
176
180 public function setMaxApplications(?int $maxApplications): void;
181
185 public function setMaxApplicationsPerCustomer(?int $maxApplicationsPerCustomer): void;
186
190 public function setCustom(?CustomFieldsDraft $custom): void;
191
195 public function setGroups(?array $groups): void;
196
200 public function setValidFrom(?DateTimeImmutable $validFrom): void;
201
205 public function setValidUntil(?DateTimeImmutable $validUntil): void;
206}
setCartDiscounts(?CartDiscountResourceIdentifierCollection $cartDiscounts)
setMaxApplicationsPerCustomer(?int $maxApplicationsPerCustomer)