commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
CartDiscount
CartDiscountPatternTarget.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\CartDiscount
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
14
interface
CartDiscountPatternTarget
extends
CartDiscountTarget
15
{
16
public
const
FIELD_TRIGGER_PATTERN
=
'triggerPattern'
;
17
public
const
FIELD_TARGET_PATTERN
=
'targetPattern'
;
18
public
const
FIELD_MAX_OCCURRENCE
=
'maxOccurrence'
;
19
public
const
FIELD_SELECTION_MODE
=
'selectionMode'
;
20
30
public
function
getTriggerPattern
();
31
39
public
function
getTargetPattern
();
40
48
public
function
getMaxOccurrence
();
49
56
public
function
getSelectionMode
();
57
61
public
function
setTriggerPattern
(?
PatternComponentCollection
$triggerPattern): void;
62
66
public
function
setTargetPattern
(?
PatternComponentCollection
$targetPattern): void;
67
71
public
function
setMaxOccurrence
(?
int
$maxOccurrence): void;
72
76
public
function
setSelectionMode
(?
string
$selectionMode): void;
77
}
Commercetools\Api\Models\CartDiscount\PatternComponentCollection
Definition
PatternComponentCollection.php:26
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\CartDiscount\CartDiscountPatternTarget
Definition
CartDiscountPatternTarget.php:15
Commercetools\Api\Models\CartDiscount\CartDiscountPatternTarget\setMaxOccurrence
setMaxOccurrence(?int $maxOccurrence)
Commercetools\Api\Models\CartDiscount\CartDiscountPatternTarget\FIELD_TRIGGER_PATTERN
const FIELD_TRIGGER_PATTERN
Definition
CartDiscountPatternTarget.php:16
Commercetools\Api\Models\CartDiscount\CartDiscountPatternTarget\getSelectionMode
getSelectionMode()
Commercetools\Api\Models\CartDiscount\CartDiscountPatternTarget\setTriggerPattern
setTriggerPattern(?PatternComponentCollection $triggerPattern)
Commercetools\Api\Models\CartDiscount\CartDiscountPatternTarget\setTargetPattern
setTargetPattern(?PatternComponentCollection $targetPattern)
Commercetools\Api\Models\CartDiscount\CartDiscountPatternTarget\FIELD_TARGET_PATTERN
const FIELD_TARGET_PATTERN
Definition
CartDiscountPatternTarget.php:17
Commercetools\Api\Models\CartDiscount\CartDiscountPatternTarget\FIELD_SELECTION_MODE
const FIELD_SELECTION_MODE
Definition
CartDiscountPatternTarget.php:19
Commercetools\Api\Models\CartDiscount\CartDiscountPatternTarget\FIELD_MAX_OCCURRENCE
const FIELD_MAX_OCCURRENCE
Definition
CartDiscountPatternTarget.php:18
Commercetools\Api\Models\CartDiscount\CartDiscountPatternTarget\getTriggerPattern
getTriggerPattern()
Commercetools\Api\Models\CartDiscount\CartDiscountPatternTarget\setSelectionMode
setSelectionMode(?string $selectionMode)
Commercetools\Api\Models\CartDiscount\CartDiscountPatternTarget\getMaxOccurrence
getMaxOccurrence()
Commercetools\Api\Models\CartDiscount\CartDiscountPatternTarget\getTargetPattern
getTargetPattern()
Commercetools\Api\Models\CartDiscount\CartDiscountTarget
Definition
CartDiscountTarget.php:15
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\CartDiscount
Definition
CartDiscount.php:9
Generated by
1.9.8