commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Me
MyCartAddLineItemAction.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Me
;
10
11
use
Commercetools\Api\Models\Cart\ItemShippingDetailsDraft
;
12
use
Commercetools\Api\Models\Channel\ChannelResourceIdentifier
;
13
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
use DateTimeImmutable;
17
18
interface
MyCartAddLineItemAction
extends
MyCartUpdateAction
19
{
20
public
const
FIELD_KEY
=
'key'
;
21
public
const
FIELD_PRODUCT_ID
=
'productId'
;
22
public
const
FIELD_VARIANT_ID
=
'variantId'
;
23
public
const
FIELD_SKU
=
'sku'
;
24
public
const
FIELD_QUANTITY
=
'quantity'
;
25
public
const
FIELD_ADDED_AT
=
'addedAt'
;
26
public
const
FIELD_DISTRIBUTION_CHANNEL
=
'distributionChannel'
;
27
public
const
FIELD_SUPPLY_CHANNEL
=
'supplyChannel'
;
28
public
const
FIELD_SHIPPING_DETAILS
=
'shippingDetails'
;
29
public
const
FIELD_CUSTOM
=
'custom'
;
30
37
public
function
getKey
();
38
46
public
function
getProductId
();
47
56
public
function
getVariantId
();
57
65
public
function
getSku
();
66
73
public
function
getQuantity
();
74
83
public
function
getAddedAt
();
84
93
public
function
getDistributionChannel
();
94
102
public
function
getSupplyChannel
();
103
110
public
function
getShippingDetails
();
111
118
public
function
getCustom
();
119
123
public
function
setKey
(?
string
$key): void;
124
128
public
function
setProductId
(?
string
$productId): void;
129
133
public
function
setVariantId
(?
int
$variantId): void;
134
138
public
function
setSku
(?
string
$sku): void;
139
143
public
function
setQuantity
(?
int
$quantity): void;
144
148
public
function
setAddedAt
(?DateTimeImmutable $addedAt): void;
149
153
public
function
setDistributionChannel
(?
ChannelResourceIdentifier
$distributionChannel): void;
154
158
public
function
setSupplyChannel
(?
ChannelResourceIdentifier
$supplyChannel): void;
159
163
public
function
setShippingDetails
(?
ItemShippingDetailsDraft
$shippingDetails): void;
164
168
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
169
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\ItemShippingDetailsDraft
Definition:
ItemShippingDetailsDraft.php:15
Commercetools\Api\Models\Channel\ChannelResourceIdentifier
Definition:
ChannelResourceIdentifier.php:16
Commercetools\Api\Models\Me\MyCartAddLineItemAction
Definition:
MyCartAddLineItemAction.php:19
Commercetools\Api\Models\Me\MyCartAddLineItemAction\getShippingDetails
getShippingDetails()
Commercetools\Api\Models\Me\MyCartAddLineItemAction\FIELD_SUPPLY_CHANNEL
const FIELD_SUPPLY_CHANNEL
Definition:
MyCartAddLineItemAction.php:27
Commercetools\Api\Models\Me\MyCartAddLineItemAction\getAddedAt
getAddedAt()
Commercetools\Api\Models\Me\MyCartAddLineItemAction\FIELD_DISTRIBUTION_CHANNEL
const FIELD_DISTRIBUTION_CHANNEL
Definition:
MyCartAddLineItemAction.php:26
Commercetools\Api\Models\Me\MyCartAddLineItemAction\getCustom
getCustom()
Commercetools\Api\Models\Me\MyCartAddLineItemAction\FIELD_QUANTITY
const FIELD_QUANTITY
Definition:
MyCartAddLineItemAction.php:24
Commercetools\Api\Models\Me\MyCartAddLineItemAction\setProductId
setProductId(?string $productId)
Commercetools\Api\Models\Me\MyCartAddLineItemAction\getDistributionChannel
getDistributionChannel()
Commercetools\Api\Models\Me\MyCartAddLineItemAction\FIELD_KEY
const FIELD_KEY
Definition:
MyCartAddLineItemAction.php:20
Commercetools\Api\Models\Me\MyCartAddLineItemAction\getQuantity
getQuantity()
Commercetools\Api\Models\Me\MyCartAddLineItemAction\getVariantId
getVariantId()
Commercetools\Api\Models\Me\MyCartAddLineItemAction\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
MyCartAddLineItemAction.php:29
Commercetools\Api\Models\Me\MyCartAddLineItemAction\FIELD_ADDED_AT
const FIELD_ADDED_AT
Definition:
MyCartAddLineItemAction.php:25
Commercetools\Api\Models\Me\MyCartAddLineItemAction\setDistributionChannel
setDistributionChannel(?ChannelResourceIdentifier $distributionChannel)
Commercetools\Api\Models\Me\MyCartAddLineItemAction\getSku
getSku()
Commercetools\Api\Models\Me\MyCartAddLineItemAction\setSku
setSku(?string $sku)
Commercetools\Api\Models\Me\MyCartAddLineItemAction\setSupplyChannel
setSupplyChannel(?ChannelResourceIdentifier $supplyChannel)
Commercetools\Api\Models\Me\MyCartAddLineItemAction\FIELD_SHIPPING_DETAILS
const FIELD_SHIPPING_DETAILS
Definition:
MyCartAddLineItemAction.php:28
Commercetools\Api\Models\Me\MyCartAddLineItemAction\FIELD_PRODUCT_ID
const FIELD_PRODUCT_ID
Definition:
MyCartAddLineItemAction.php:21
Commercetools\Api\Models\Me\MyCartAddLineItemAction\getProductId
getProductId()
Commercetools\Api\Models\Me\MyCartAddLineItemAction\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Me\MyCartAddLineItemAction\getKey
getKey()
Commercetools\Api\Models\Me\MyCartAddLineItemAction\setKey
setKey(?string $key)
Commercetools\Api\Models\Me\MyCartAddLineItemAction\FIELD_SKU
const FIELD_SKU
Definition:
MyCartAddLineItemAction.php:23
Commercetools\Api\Models\Me\MyCartAddLineItemAction\FIELD_VARIANT_ID
const FIELD_VARIANT_ID
Definition:
MyCartAddLineItemAction.php:22
Commercetools\Api\Models\Me\MyCartAddLineItemAction\setAddedAt
setAddedAt(?DateTimeImmutable $addedAt)
Commercetools\Api\Models\Me\MyCartAddLineItemAction\setShippingDetails
setShippingDetails(?ItemShippingDetailsDraft $shippingDetails)
Commercetools\Api\Models\Me\MyCartAddLineItemAction\getSupplyChannel
getSupplyChannel()
Commercetools\Api\Models\Me\MyCartAddLineItemAction\setQuantity
setQuantity(?int $quantity)
Commercetools\Api\Models\Me\MyCartAddLineItemAction\setVariantId
setVariantId(?int $variantId)
Commercetools\Api\Models\Me\MyCartUpdateAction
Definition:
MyCartUpdateAction.php:15
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Me
Definition:
MyBusinessUnitAddAddressAction.php:9
Generated by
1.9.1