commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
DiscountCodes
DiscountCodeImport.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\DiscountCodes
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use
Commercetools\Import\Models\Common\CartDiscountKeyReferenceCollection
;
14
use
Commercetools\Import\Models\Common\ImportResource
;
15
use
Commercetools\Import\Models\Common\LocalizedString
;
16
use
Commercetools\Import\Models\Customfields\Custom
;
17
use DateTimeImmutable;
18
19
interface
DiscountCodeImport
extends
ImportResource
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
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Import\Models\Common\CartDiscountKeyReferenceCollection
Definition:
CartDiscountKeyReferenceCollection.php:22
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Common\ImportResource
Definition:
ImportResource.php:26
Commercetools\Import\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Import\Models\Customfields\Custom
Definition:
Custom.php:16
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport
Definition:
DiscountCodeImport.php:20
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\getKey
getKey()
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\setValidUntil
setValidUntil(?DateTimeImmutable $validUntil)
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\FIELD_VALID_UNTIL
const FIELD_VALID_UNTIL
Definition:
DiscountCodeImport.php:31
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\setIsActive
setIsActive(?bool $isActive)
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\FIELD_GROUPS
const FIELD_GROUPS
Definition:
DiscountCodeImport.php:29
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\setMaxApplications
setMaxApplications(?int $maxApplications)
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\getGroups
getGroups()
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\FIELD_MAX_APPLICATIONS_PER_CUSTOMER
const FIELD_MAX_APPLICATIONS_PER_CUSTOMER
Definition:
DiscountCodeImport.php:28
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\getCustom
getCustom()
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\FIELD_VALID_FROM
const FIELD_VALID_FROM
Definition:
DiscountCodeImport.php:30
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\getCartDiscounts
getCartDiscounts()
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\setCartDiscounts
setCartDiscounts(?CartDiscountKeyReferenceCollection $cartDiscounts)
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\getIsActive
getIsActive()
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
DiscountCodeImport.php:22
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\setKey
setKey(?string $key)
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\setCode
setCode(?string $code)
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\FIELD_CART_DISCOUNTS
const FIELD_CART_DISCOUNTS
Definition:
DiscountCodeImport.php:24
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\setName
setName(?LocalizedString $name)
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\FIELD_IS_ACTIVE
const FIELD_IS_ACTIVE
Definition:
DiscountCodeImport.php:26
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\setGroups
setGroups(?array $groups)
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
DiscountCodeImport.php:32
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\getName
getName()
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\getValidFrom
getValidFrom()
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\FIELD_CODE
const FIELD_CODE
Definition:
DiscountCodeImport.php:23
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\FIELD_NAME
const FIELD_NAME
Definition:
DiscountCodeImport.php:21
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\setMaxApplicationsPerCustomer
setMaxApplicationsPerCustomer(?int $maxApplicationsPerCustomer)
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\FIELD_MAX_APPLICATIONS
const FIELD_MAX_APPLICATIONS
Definition:
DiscountCodeImport.php:27
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\setValidFrom
setValidFrom(?DateTimeImmutable $validFrom)
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\getMaxApplicationsPerCustomer
getMaxApplicationsPerCustomer()
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\getCode
getCode()
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\setCartPredicate
setCartPredicate(?string $cartPredicate)
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\getMaxApplications
getMaxApplications()
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\getCartPredicate
getCartPredicate()
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\getDescription
getDescription()
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\getValidUntil
getValidUntil()
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\setCustom
setCustom(?Custom $custom)
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\setDescription
setDescription(?LocalizedString $description)
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport\FIELD_CART_PREDICATE
const FIELD_CART_PREDICATE
Definition:
DiscountCodeImport.php:25
Commercetools\Import\Models\DiscountCodes
Definition:
DiscountCodeImport.php:9
Generated by
1.9.1