commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Cart
DirectDiscount.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Cart
;
10
11
use
Commercetools\Api\Models\CartDiscount\CartDiscountTarget
;
12
use
Commercetools\Api\Models\CartDiscount\CartDiscountValue
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
16
interface
DirectDiscount
extends
JsonObject
17
{
18
public
const
FIELD_ID
=
'id'
;
19
public
const
FIELD_VALUE
=
'value'
;
20
public
const
FIELD_TARGET
=
'target'
;
21
28
public
function
getId
();
29
36
public
function
getValue
();
37
45
public
function
getTarget
();
46
50
public
function
setId
(?
string
$id): void;
51
55
public
function
setValue
(?
CartDiscountValue
$value): void;
56
60
public
function
setTarget
(?
CartDiscountTarget
$target): void;
61
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\DirectDiscount
Definition:
DirectDiscount.php:17
Commercetools\Api\Models\Cart\DirectDiscount\setValue
setValue(?CartDiscountValue $value)
Commercetools\Api\Models\Cart\DirectDiscount\setTarget
setTarget(?CartDiscountTarget $target)
Commercetools\Api\Models\Cart\DirectDiscount\getId
getId()
Commercetools\Api\Models\Cart\DirectDiscount\getTarget
getTarget()
Commercetools\Api\Models\Cart\DirectDiscount\FIELD_TARGET
const FIELD_TARGET
Definition:
DirectDiscount.php:20
Commercetools\Api\Models\Cart\DirectDiscount\FIELD_VALUE
const FIELD_VALUE
Definition:
DirectDiscount.php:19
Commercetools\Api\Models\Cart\DirectDiscount\setId
setId(?string $id)
Commercetools\Api\Models\Cart\DirectDiscount\getValue
getValue()
Commercetools\Api\Models\Cart\DirectDiscount\FIELD_ID
const FIELD_ID
Definition:
DirectDiscount.php:18
Commercetools\Api\Models\CartDiscount\CartDiscountTarget
Definition:
CartDiscountTarget.php:15
Commercetools\Api\Models\CartDiscount\CartDiscountValue
Definition:
CartDiscountValue.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Cart
Definition:
Cart.php:9
Generated by
1.9.1