commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Cart
DiscountedLineItemPortionDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Cart
;
10
11
use
Commercetools\Api\Models\Common\Reference
;
12
use
Commercetools\Api\Models\Common\TypedMoneyDraft
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
16
interface
DiscountedLineItemPortionDraft
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
(?
Reference
$discount): void;
41
45
public
function
setDiscountedAmount
(?
TypedMoneyDraft
$discountedAmount): void;
46
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\DiscountedLineItemPortionDraft
Definition:
DiscountedLineItemPortionDraft.php:17
Commercetools\Api\Models\Cart\DiscountedLineItemPortionDraft\setDiscountedAmount
setDiscountedAmount(?TypedMoneyDraft $discountedAmount)
Commercetools\Api\Models\Cart\DiscountedLineItemPortionDraft\getDiscount
getDiscount()
Commercetools\Api\Models\Cart\DiscountedLineItemPortionDraft\setDiscount
setDiscount(?Reference $discount)
Commercetools\Api\Models\Cart\DiscountedLineItemPortionDraft\FIELD_DISCOUNTED_AMOUNT
const FIELD_DISCOUNTED_AMOUNT
Definition:
DiscountedLineItemPortionDraft.php:19
Commercetools\Api\Models\Cart\DiscountedLineItemPortionDraft\FIELD_DISCOUNT
const FIELD_DISCOUNT
Definition:
DiscountedLineItemPortionDraft.php:18
Commercetools\Api\Models\Cart\DiscountedLineItemPortionDraft\getDiscountedAmount
getDiscountedAmount()
Commercetools\Api\Models\Common\Reference
Definition:
Reference.php:50
Commercetools\Api\Models\Common\TypedMoneyDraft
Definition:
TypedMoneyDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Cart
Definition:
Cart.php:9
Generated by
1.9.1