commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Cart
DiscountedTotalPricePortion.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Cart
;
10
11
use
Commercetools\Api\Models\CartDiscount\CartDiscountReference
;
12
use
Commercetools\Api\Models\Common\TypedMoney
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
16
interface
DiscountedTotalPricePortion
extends
JsonObject
17
{
18
public
const
FIELD_DISCOUNT
=
'discount'
;
19
public
const
FIELD_DISCOUNTED_AMOUNT
=
'discountedAmount'
;
20
27
public
function
getDiscount
();
28
35
public
function
getDiscountedAmount
();
36
40
public
function
setDiscount
(?
CartDiscountReference
$discount): void;
41
45
public
function
setDiscountedAmount
(?
TypedMoney
$discountedAmount): void;
46
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\DiscountedTotalPricePortion
Definition:
DiscountedTotalPricePortion.php:17
Commercetools\Api\Models\Cart\DiscountedTotalPricePortion\setDiscount
setDiscount(?CartDiscountReference $discount)
Commercetools\Api\Models\Cart\DiscountedTotalPricePortion\FIELD_DISCOUNT
const FIELD_DISCOUNT
Definition:
DiscountedTotalPricePortion.php:18
Commercetools\Api\Models\Cart\DiscountedTotalPricePortion\getDiscountedAmount
getDiscountedAmount()
Commercetools\Api\Models\Cart\DiscountedTotalPricePortion\FIELD_DISCOUNTED_AMOUNT
const FIELD_DISCOUNTED_AMOUNT
Definition:
DiscountedTotalPricePortion.php:19
Commercetools\Api\Models\Cart\DiscountedTotalPricePortion\setDiscountedAmount
setDiscountedAmount(?TypedMoney $discountedAmount)
Commercetools\Api\Models\Cart\DiscountedTotalPricePortion\getDiscount
getDiscount()
Commercetools\Api\Models\CartDiscount\CartDiscountReference
Definition:
CartDiscountReference.php:16
Commercetools\Api\Models\Common\TypedMoney
Definition:
TypedMoney.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Cart
Definition:
Cart.php:9
Generated by
1.9.1