commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Cart
DiscountOnTotalPrice.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Cart
;
10
11
use
Commercetools\Api\Models\Common\TypedMoney
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
15
interface
DiscountOnTotalPrice
extends
JsonObject
16
{
17
public
const
FIELD_DISCOUNTED_AMOUNT
=
'discountedAmount'
;
18
public
const
FIELD_INCLUDED_DISCOUNTS
=
'includedDiscounts'
;
19
public
const
FIELD_DISCOUNTED_NET_AMOUNT
=
'discountedNetAmount'
;
20
public
const
FIELD_DISCOUNTED_GROSS_AMOUNT
=
'discountedGrossAmount'
;
21
28
public
function
getDiscountedAmount
();
29
36
public
function
getIncludedDiscounts
();
37
45
public
function
getDiscountedNetAmount
();
46
54
public
function
getDiscountedGrossAmount
();
55
59
public
function
setDiscountedAmount
(?
TypedMoney
$discountedAmount): void;
60
64
public
function
setIncludedDiscounts
(?
DiscountedTotalPricePortionCollection
$includedDiscounts): void;
65
69
public
function
setDiscountedNetAmount
(?
TypedMoney
$discountedNetAmount): void;
70
74
public
function
setDiscountedGrossAmount
(?
TypedMoney
$discountedGrossAmount): void;
75
}
Commercetools\Api\Models\Cart\DiscountedTotalPricePortionCollection
Definition:
DiscountedTotalPricePortionCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\DiscountOnTotalPrice
Definition:
DiscountOnTotalPrice.php:16
Commercetools\Api\Models\Cart\DiscountOnTotalPrice\setDiscountedAmount
setDiscountedAmount(?TypedMoney $discountedAmount)
Commercetools\Api\Models\Cart\DiscountOnTotalPrice\setDiscountedNetAmount
setDiscountedNetAmount(?TypedMoney $discountedNetAmount)
Commercetools\Api\Models\Cart\DiscountOnTotalPrice\getDiscountedAmount
getDiscountedAmount()
Commercetools\Api\Models\Cart\DiscountOnTotalPrice\FIELD_DISCOUNTED_NET_AMOUNT
const FIELD_DISCOUNTED_NET_AMOUNT
Definition:
DiscountOnTotalPrice.php:19
Commercetools\Api\Models\Cart\DiscountOnTotalPrice\setDiscountedGrossAmount
setDiscountedGrossAmount(?TypedMoney $discountedGrossAmount)
Commercetools\Api\Models\Cart\DiscountOnTotalPrice\setIncludedDiscounts
setIncludedDiscounts(?DiscountedTotalPricePortionCollection $includedDiscounts)
Commercetools\Api\Models\Cart\DiscountOnTotalPrice\getDiscountedGrossAmount
getDiscountedGrossAmount()
Commercetools\Api\Models\Cart\DiscountOnTotalPrice\getDiscountedNetAmount
getDiscountedNetAmount()
Commercetools\Api\Models\Cart\DiscountOnTotalPrice\getIncludedDiscounts
getIncludedDiscounts()
Commercetools\Api\Models\Cart\DiscountOnTotalPrice\FIELD_DISCOUNTED_AMOUNT
const FIELD_DISCOUNTED_AMOUNT
Definition:
DiscountOnTotalPrice.php:17
Commercetools\Api\Models\Cart\DiscountOnTotalPrice\FIELD_INCLUDED_DISCOUNTS
const FIELD_INCLUDED_DISCOUNTS
Definition:
DiscountOnTotalPrice.php:18
Commercetools\Api\Models\Cart\DiscountOnTotalPrice\FIELD_DISCOUNTED_GROSS_AMOUNT
const FIELD_DISCOUNTED_GROSS_AMOUNT
Definition:
DiscountOnTotalPrice.php:20
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