commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Cart
CartAddLineItemAction.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Cart
;
10
11
use
Commercetools\Api\Models\Channel\ChannelResourceIdentifier
;
12
use
Commercetools\Api\Models\Common\Money
;
13
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
use DateTimeImmutable;
17
18
interface
CartAddLineItemAction
extends
CartUpdateAction
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_EXTERNAL_PRICE
=
'externalPrice'
;
29
public
const
FIELD_EXTERNAL_TOTAL_PRICE
=
'externalTotalPrice'
;
30
public
const
FIELD_EXTERNAL_TAX_RATE
=
'externalTaxRate'
;
31
public
const
FIELD_PER_METHOD_EXTERNAL_TAX_RATE
=
'perMethodExternalTaxRate'
;
32
public
const
FIELD_INVENTORY_MODE
=
'inventoryMode'
;
33
public
const
FIELD_SHIPPING_DETAILS
=
'shippingDetails'
;
34
public
const
FIELD_CUSTOM
=
'custom'
;
35
42
public
function
getKey
();
43
51
public
function
getProductId
();
52
61
public
function
getVariantId
();
62
70
public
function
getSku
();
71
78
public
function
getQuantity
();
79
88
public
function
getAddedAt
();
89
98
public
function
getDistributionChannel
();
99
107
public
function
getSupplyChannel
();
108
115
public
function
getExternalPrice
();
116
123
public
function
getExternalTotalPrice
();
124
131
public
function
getExternalTaxRate
();
132
139
public
function
getPerMethodExternalTaxRate
();
140
148
public
function
getInventoryMode
();
149
156
public
function
getShippingDetails
();
157
164
public
function
getCustom
();
165
169
public
function
setKey
(?
string
$key): void;
170
174
public
function
setProductId
(?
string
$productId): void;
175
179
public
function
setVariantId
(?
int
$variantId): void;
180
184
public
function
setSku
(?
string
$sku): void;
185
189
public
function
setQuantity
(?
int
$quantity): void;
190
194
public
function
setAddedAt
(?DateTimeImmutable $addedAt): void;
195
199
public
function
setDistributionChannel
(?
ChannelResourceIdentifier
$distributionChannel): void;
200
204
public
function
setSupplyChannel
(?
ChannelResourceIdentifier
$supplyChannel): void;
205
209
public
function
setExternalPrice
(?
Money
$externalPrice): void;
210
214
public
function
setExternalTotalPrice
(?
ExternalLineItemTotalPrice
$externalTotalPrice): void;
215
219
public
function
setExternalTaxRate
(?
ExternalTaxRateDraft
$externalTaxRate): void;
220
224
public
function
setPerMethodExternalTaxRate
(?
MethodExternalTaxRateDraftCollection
$perMethodExternalTaxRate): void;
225
229
public
function
setInventoryMode
(?
string
$inventoryMode): void;
230
234
public
function
setShippingDetails
(?
ItemShippingDetailsDraft
$shippingDetails): void;
235
239
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
240
}
Commercetools\Api\Models\Cart\MethodExternalTaxRateDraftCollection
Definition:
MethodExternalTaxRateDraftCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\CartAddLineItemAction
Definition:
CartAddLineItemAction.php:19
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_SHIPPING_DETAILS
const FIELD_SHIPPING_DETAILS
Definition:
CartAddLineItemAction.php:33
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_QUANTITY
const FIELD_QUANTITY
Definition:
CartAddLineItemAction.php:24
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_EXTERNAL_TOTAL_PRICE
const FIELD_EXTERNAL_TOTAL_PRICE
Definition:
CartAddLineItemAction.php:29
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
CartAddLineItemAction.php:34
Commercetools\Api\Models\Cart\CartAddLineItemAction\setProductId
setProductId(?string $productId)
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_SKU
const FIELD_SKU
Definition:
CartAddLineItemAction.php:23
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_DISTRIBUTION_CHANNEL
const FIELD_DISTRIBUTION_CHANNEL
Definition:
CartAddLineItemAction.php:26
Commercetools\Api\Models\Cart\CartAddLineItemAction\getProductId
getProductId()
Commercetools\Api\Models\Cart\CartAddLineItemAction\setDistributionChannel
setDistributionChannel(?ChannelResourceIdentifier $distributionChannel)
Commercetools\Api\Models\Cart\CartAddLineItemAction\getKey
getKey()
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_KEY
const FIELD_KEY
Definition:
CartAddLineItemAction.php:20
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_SUPPLY_CHANNEL
const FIELD_SUPPLY_CHANNEL
Definition:
CartAddLineItemAction.php:27
Commercetools\Api\Models\Cart\CartAddLineItemAction\getCustom
getCustom()
Commercetools\Api\Models\Cart\CartAddLineItemAction\getExternalTotalPrice
getExternalTotalPrice()
Commercetools\Api\Models\Cart\CartAddLineItemAction\getSku
getSku()
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_ADDED_AT
const FIELD_ADDED_AT
Definition:
CartAddLineItemAction.php:25
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_PRODUCT_ID
const FIELD_PRODUCT_ID
Definition:
CartAddLineItemAction.php:21
Commercetools\Api\Models\Cart\CartAddLineItemAction\getSupplyChannel
getSupplyChannel()
Commercetools\Api\Models\Cart\CartAddLineItemAction\setSku
setSku(?string $sku)
Commercetools\Api\Models\Cart\CartAddLineItemAction\getInventoryMode
getInventoryMode()
Commercetools\Api\Models\Cart\CartAddLineItemAction\setVariantId
setVariantId(?int $variantId)
Commercetools\Api\Models\Cart\CartAddLineItemAction\setPerMethodExternalTaxRate
setPerMethodExternalTaxRate(?MethodExternalTaxRateDraftCollection $perMethodExternalTaxRate)
Commercetools\Api\Models\Cart\CartAddLineItemAction\setExternalTotalPrice
setExternalTotalPrice(?ExternalLineItemTotalPrice $externalTotalPrice)
Commercetools\Api\Models\Cart\CartAddLineItemAction\getAddedAt
getAddedAt()
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_VARIANT_ID
const FIELD_VARIANT_ID
Definition:
CartAddLineItemAction.php:22
Commercetools\Api\Models\Cart\CartAddLineItemAction\getDistributionChannel
getDistributionChannel()
Commercetools\Api\Models\Cart\CartAddLineItemAction\getExternalPrice
getExternalPrice()
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_EXTERNAL_TAX_RATE
const FIELD_EXTERNAL_TAX_RATE
Definition:
CartAddLineItemAction.php:30
Commercetools\Api\Models\Cart\CartAddLineItemAction\getExternalTaxRate
getExternalTaxRate()
Commercetools\Api\Models\Cart\CartAddLineItemAction\setExternalPrice
setExternalPrice(?Money $externalPrice)
Commercetools\Api\Models\Cart\CartAddLineItemAction\setQuantity
setQuantity(?int $quantity)
Commercetools\Api\Models\Cart\CartAddLineItemAction\setExternalTaxRate
setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate)
Commercetools\Api\Models\Cart\CartAddLineItemAction\getVariantId
getVariantId()
Commercetools\Api\Models\Cart\CartAddLineItemAction\setShippingDetails
setShippingDetails(?ItemShippingDetailsDraft $shippingDetails)
Commercetools\Api\Models\Cart\CartAddLineItemAction\setSupplyChannel
setSupplyChannel(?ChannelResourceIdentifier $supplyChannel)
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_PER_METHOD_EXTERNAL_TAX_RATE
const FIELD_PER_METHOD_EXTERNAL_TAX_RATE
Definition:
CartAddLineItemAction.php:31
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_EXTERNAL_PRICE
const FIELD_EXTERNAL_PRICE
Definition:
CartAddLineItemAction.php:28
Commercetools\Api\Models\Cart\CartAddLineItemAction\setKey
setKey(?string $key)
Commercetools\Api\Models\Cart\CartAddLineItemAction\getPerMethodExternalTaxRate
getPerMethodExternalTaxRate()
Commercetools\Api\Models\Cart\CartAddLineItemAction\getShippingDetails
getShippingDetails()
Commercetools\Api\Models\Cart\CartAddLineItemAction\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Cart\CartAddLineItemAction\setAddedAt
setAddedAt(?DateTimeImmutable $addedAt)
Commercetools\Api\Models\Cart\CartAddLineItemAction\setInventoryMode
setInventoryMode(?string $inventoryMode)
Commercetools\Api\Models\Cart\CartAddLineItemAction\getQuantity
getQuantity()
Commercetools\Api\Models\Cart\CartAddLineItemAction\FIELD_INVENTORY_MODE
const FIELD_INVENTORY_MODE
Definition:
CartAddLineItemAction.php:32
Commercetools\Api\Models\Cart\CartUpdateAction
Definition:
CartUpdateAction.php:15
Commercetools\Api\Models\Cart\ExternalLineItemTotalPrice
Definition:
ExternalLineItemTotalPrice.php:16
Commercetools\Api\Models\Cart\ExternalTaxRateDraft
Definition:
ExternalTaxRateDraft.php:16
Commercetools\Api\Models\Cart\ItemShippingDetailsDraft
Definition:
ItemShippingDetailsDraft.php:15
Commercetools\Api\Models\Channel\ChannelResourceIdentifier
Definition:
ChannelResourceIdentifier.php:16
Commercetools\Api\Models\Common\Money
Definition:
Money.php:15
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Cart
Definition:
Cart.php:9
Generated by
1.9.1