commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Cart
DirectDiscountDraft.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\CartDiscountValueDraft
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
16
interface
DirectDiscountDraft
extends
JsonObject
17
{
18
public
const
FIELD_VALUE
=
'value'
;
19
public
const
FIELD_TARGET
=
'target'
;
20
27
public
function
getValue
();
28
36
public
function
getTarget
();
37
41
public
function
setValue
(?
CartDiscountValueDraft
$value): void;
42
46
public
function
setTarget
(?
CartDiscountTarget
$target): void;
47
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\DirectDiscountDraft
Definition:
DirectDiscountDraft.php:17
Commercetools\Api\Models\Cart\DirectDiscountDraft\setValue
setValue(?CartDiscountValueDraft $value)
Commercetools\Api\Models\Cart\DirectDiscountDraft\FIELD_VALUE
const FIELD_VALUE
Definition:
DirectDiscountDraft.php:18
Commercetools\Api\Models\Cart\DirectDiscountDraft\getValue
getValue()
Commercetools\Api\Models\Cart\DirectDiscountDraft\setTarget
setTarget(?CartDiscountTarget $target)
Commercetools\Api\Models\Cart\DirectDiscountDraft\getTarget
getTarget()
Commercetools\Api\Models\Cart\DirectDiscountDraft\FIELD_TARGET
const FIELD_TARGET
Definition:
DirectDiscountDraft.php:19
Commercetools\Api\Models\CartDiscount\CartDiscountTarget
Definition:
CartDiscountTarget.php:15
Commercetools\Api\Models\CartDiscount\CartDiscountValueDraft
Definition:
CartDiscountValueDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Cart
Definition:
Cart.php:9
Generated by
1.9.1