commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Me
MyLineItemDraft.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
MyLineItemDraft
extends
JsonObject
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_SUPPLY_CHANNEL
=
'supplyChannel'
;
27
public
const
FIELD_DISTRIBUTION_CHANNEL
=
'distributionChannel'
;
28
public
const
FIELD_SHIPPING_DETAILS
=
'shippingDetails'
;
29
public
const
FIELD_CUSTOM
=
'custom'
;
30
37
public
function
getKey
();
38
45
public
function
getProductId
();
46
54
public
function
getVariantId
();
55
62
public
function
getSku
();
63
70
public
function
getQuantity
();
71
80
public
function
getAddedAt
();
81
89
public
function
getSupplyChannel
();
90
100
public
function
getDistributionChannel
();
101
108
public
function
getShippingDetails
();
109
116
public
function
getCustom
();
117
121
public
function
setKey
(?
string
$key): void;
122
126
public
function
setProductId
(?
string
$productId): void;
127
131
public
function
setVariantId
(?
int
$variantId): void;
132
136
public
function
setSku
(?
string
$sku): void;
137
141
public
function
setQuantity
(?
int
$quantity): void;
142
146
public
function
setAddedAt
(?DateTimeImmutable $addedAt): void;
147
151
public
function
setSupplyChannel
(?
ChannelResourceIdentifier
$supplyChannel): void;
152
156
public
function
setDistributionChannel
(?
ChannelResourceIdentifier
$distributionChannel): void;
157
161
public
function
setShippingDetails
(?
ItemShippingDetailsDraft
$shippingDetails): void;
162
166
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
167
}
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\MyLineItemDraft
Definition:
MyLineItemDraft.php:19
Commercetools\Api\Models\Me\MyLineItemDraft\getSupplyChannel
getSupplyChannel()
Commercetools\Api\Models\Me\MyLineItemDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Me\MyLineItemDraft\setVariantId
setVariantId(?int $variantId)
Commercetools\Api\Models\Me\MyLineItemDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
MyLineItemDraft.php:29
Commercetools\Api\Models\Me\MyLineItemDraft\getProductId
getProductId()
Commercetools\Api\Models\Me\MyLineItemDraft\FIELD_VARIANT_ID
const FIELD_VARIANT_ID
Definition:
MyLineItemDraft.php:22
Commercetools\Api\Models\Me\MyLineItemDraft\getCustom
getCustom()
Commercetools\Api\Models\Me\MyLineItemDraft\setQuantity
setQuantity(?int $quantity)
Commercetools\Api\Models\Me\MyLineItemDraft\FIELD_KEY
const FIELD_KEY
Definition:
MyLineItemDraft.php:20
Commercetools\Api\Models\Me\MyLineItemDraft\getDistributionChannel
getDistributionChannel()
Commercetools\Api\Models\Me\MyLineItemDraft\FIELD_ADDED_AT
const FIELD_ADDED_AT
Definition:
MyLineItemDraft.php:25
Commercetools\Api\Models\Me\MyLineItemDraft\getSku
getSku()
Commercetools\Api\Models\Me\MyLineItemDraft\getShippingDetails
getShippingDetails()
Commercetools\Api\Models\Me\MyLineItemDraft\setSku
setSku(?string $sku)
Commercetools\Api\Models\Me\MyLineItemDraft\setProductId
setProductId(?string $productId)
Commercetools\Api\Models\Me\MyLineItemDraft\FIELD_DISTRIBUTION_CHANNEL
const FIELD_DISTRIBUTION_CHANNEL
Definition:
MyLineItemDraft.php:27
Commercetools\Api\Models\Me\MyLineItemDraft\setDistributionChannel
setDistributionChannel(?ChannelResourceIdentifier $distributionChannel)
Commercetools\Api\Models\Me\MyLineItemDraft\FIELD_PRODUCT_ID
const FIELD_PRODUCT_ID
Definition:
MyLineItemDraft.php:21
Commercetools\Api\Models\Me\MyLineItemDraft\setShippingDetails
setShippingDetails(?ItemShippingDetailsDraft $shippingDetails)
Commercetools\Api\Models\Me\MyLineItemDraft\getQuantity
getQuantity()
Commercetools\Api\Models\Me\MyLineItemDraft\FIELD_SUPPLY_CHANNEL
const FIELD_SUPPLY_CHANNEL
Definition:
MyLineItemDraft.php:26
Commercetools\Api\Models\Me\MyLineItemDraft\getVariantId
getVariantId()
Commercetools\Api\Models\Me\MyLineItemDraft\getKey
getKey()
Commercetools\Api\Models\Me\MyLineItemDraft\FIELD_SHIPPING_DETAILS
const FIELD_SHIPPING_DETAILS
Definition:
MyLineItemDraft.php:28
Commercetools\Api\Models\Me\MyLineItemDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\Me\MyLineItemDraft\FIELD_QUANTITY
const FIELD_QUANTITY
Definition:
MyLineItemDraft.php:24
Commercetools\Api\Models\Me\MyLineItemDraft\getAddedAt
getAddedAt()
Commercetools\Api\Models\Me\MyLineItemDraft\FIELD_SKU
const FIELD_SKU
Definition:
MyLineItemDraft.php:23
Commercetools\Api\Models\Me\MyLineItemDraft\setSupplyChannel
setSupplyChannel(?ChannelResourceIdentifier $supplyChannel)
Commercetools\Api\Models\Me\MyLineItemDraft\setAddedAt
setAddedAt(?DateTimeImmutable $addedAt)
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