commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Common
DiscountedPriceDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Common
;
10
11
use
Commercetools\Api\Models\ProductDiscount\ProductDiscountReference
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
15
interface
DiscountedPriceDraft
extends
JsonObject
16
{
17
public
const
FIELD_VALUE
=
'value'
;
18
public
const
FIELD_DISCOUNT
=
'discount'
;
19
26
public
function
getValue
();
27
34
public
function
getDiscount
();
35
39
public
function
setValue
(?
Money
$value): void;
40
44
public
function
setDiscount
(?
ProductDiscountReference
$discount): void;
45
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\DiscountedPriceDraft
Definition:
DiscountedPriceDraft.php:16
Commercetools\Api\Models\Common\DiscountedPriceDraft\setValue
setValue(?Money $value)
Commercetools\Api\Models\Common\DiscountedPriceDraft\getDiscount
getDiscount()
Commercetools\Api\Models\Common\DiscountedPriceDraft\FIELD_VALUE
const FIELD_VALUE
Definition:
DiscountedPriceDraft.php:17
Commercetools\Api\Models\Common\DiscountedPriceDraft\FIELD_DISCOUNT
const FIELD_DISCOUNT
Definition:
DiscountedPriceDraft.php:18
Commercetools\Api\Models\Common\DiscountedPriceDraft\getValue
getValue()
Commercetools\Api\Models\Common\DiscountedPriceDraft\setDiscount
setDiscount(?ProductDiscountReference $discount)
Commercetools\Api\Models\Common\Money
Definition:
Money.php:15
Commercetools\Api\Models\ProductDiscount\ProductDiscountReference
Definition:
ProductDiscountReference.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Common
Definition:
Address.php:9
Generated by
1.9.1