commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
CartDiscount
CartDiscountValueGiftLineItem.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\CartDiscount
;
10
11
use
Commercetools\Api\Models\Channel\ChannelReference
;
12
use
Commercetools\Api\Models\Product\ProductReference
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
16
interface
CartDiscountValueGiftLineItem
extends
CartDiscountValue
17
{
18
public
const
FIELD_PRODUCT
=
'product'
;
19
public
const
FIELD_VARIANT_ID
=
'variantId'
;
20
public
const
FIELD_SUPPLY_CHANNEL
=
'supplyChannel'
;
21
public
const
FIELD_DISTRIBUTION_CHANNEL
=
'distributionChannel'
;
22
30
public
function
getProduct
();
31
38
public
function
getVariantId
();
39
46
public
function
getSupplyChannel
();
47
54
public
function
getDistributionChannel
();
55
59
public
function
setProduct
(?
ProductReference
$product): void;
60
64
public
function
setVariantId
(?
int
$variantId): void;
65
69
public
function
setSupplyChannel
(?
ChannelReference
$supplyChannel): void;
70
74
public
function
setDistributionChannel
(?
ChannelReference
$distributionChannel): void;
75
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\CartDiscount\CartDiscountValueGiftLineItem
Definition:
CartDiscountValueGiftLineItem.php:17
Commercetools\Api\Models\CartDiscount\CartDiscountValueGiftLineItem\getProduct
getProduct()
Commercetools\Api\Models\CartDiscount\CartDiscountValueGiftLineItem\FIELD_PRODUCT
const FIELD_PRODUCT
Definition:
CartDiscountValueGiftLineItem.php:18
Commercetools\Api\Models\CartDiscount\CartDiscountValueGiftLineItem\getDistributionChannel
getDistributionChannel()
Commercetools\Api\Models\CartDiscount\CartDiscountValueGiftLineItem\FIELD_SUPPLY_CHANNEL
const FIELD_SUPPLY_CHANNEL
Definition:
CartDiscountValueGiftLineItem.php:20
Commercetools\Api\Models\CartDiscount\CartDiscountValueGiftLineItem\getSupplyChannel
getSupplyChannel()
Commercetools\Api\Models\CartDiscount\CartDiscountValueGiftLineItem\getVariantId
getVariantId()
Commercetools\Api\Models\CartDiscount\CartDiscountValueGiftLineItem\FIELD_VARIANT_ID
const FIELD_VARIANT_ID
Definition:
CartDiscountValueGiftLineItem.php:19
Commercetools\Api\Models\CartDiscount\CartDiscountValueGiftLineItem\setSupplyChannel
setSupplyChannel(?ChannelReference $supplyChannel)
Commercetools\Api\Models\CartDiscount\CartDiscountValueGiftLineItem\FIELD_DISTRIBUTION_CHANNEL
const FIELD_DISTRIBUTION_CHANNEL
Definition:
CartDiscountValueGiftLineItem.php:21
Commercetools\Api\Models\CartDiscount\CartDiscountValueGiftLineItem\setVariantId
setVariantId(?int $variantId)
Commercetools\Api\Models\CartDiscount\CartDiscountValueGiftLineItem\setDistributionChannel
setDistributionChannel(?ChannelReference $distributionChannel)
Commercetools\Api\Models\CartDiscount\CartDiscountValueGiftLineItem\setProduct
setProduct(?ProductReference $product)
Commercetools\Api\Models\CartDiscount\CartDiscountValue
Definition:
CartDiscountValue.php:15
Commercetools\Api\Models\Channel\ChannelReference
Definition:
ChannelReference.php:16
Commercetools\Api\Models\Product\ProductReference
Definition:
ProductReference.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\CartDiscount
Definition:
CartDiscount.php:9
Generated by
1.9.1