commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Cart
CartSetDirectDiscountsAction.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Cart
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
14
interface
CartSetDirectDiscountsAction
extends
CartUpdateAction
15
{
16
public
const
FIELD_DISCOUNTS
=
'discounts'
;
17
28
public
function
getDiscounts
();
29
33
public
function
setDiscounts
(?
DirectDiscountDraftCollection
$discounts): void;
34
}
Commercetools\Api\Models\Cart\DirectDiscountDraftCollection
Definition:
DirectDiscountDraftCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\CartSetDirectDiscountsAction
Definition:
CartSetDirectDiscountsAction.php:15
Commercetools\Api\Models\Cart\CartSetDirectDiscountsAction\FIELD_DISCOUNTS
const FIELD_DISCOUNTS
Definition:
CartSetDirectDiscountsAction.php:16
Commercetools\Api\Models\Cart\CartSetDirectDiscountsAction\setDiscounts
setDiscounts(?DirectDiscountDraftCollection $discounts)
Commercetools\Api\Models\Cart\CartSetDirectDiscountsAction\getDiscounts
getDiscounts()
Commercetools\Api\Models\Cart\CartUpdateAction
Definition:
CartUpdateAction.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Cart
Definition:
Cart.php:9
Generated by
1.9.1