commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Inventory
InventoryEntryDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Inventory
;
10
11
use
Commercetools\Api\Models\Channel\ChannelResourceIdentifier
;
12
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
use DateTimeImmutable;
16
17
interface
InventoryEntryDraft
extends
JsonObject
18
{
19
public
const
FIELD_SKU
=
'sku'
;
20
public
const
FIELD_KEY
=
'key'
;
21
public
const
FIELD_SUPPLY_CHANNEL
=
'supplyChannel'
;
22
public
const
FIELD_QUANTITY_ON_STOCK
=
'quantityOnStock'
;
23
public
const
FIELD_RESTOCKABLE_IN_DAYS
=
'restockableInDays'
;
24
public
const
FIELD_EXPECTED_DELIVERY
=
'expectedDelivery'
;
25
public
const
FIELD_CUSTOM
=
'custom'
;
26
33
public
function
getSku
();
34
42
public
function
getKey
();
43
50
public
function
getSupplyChannel
();
51
58
public
function
getQuantityOnStock
();
59
66
public
function
getRestockableInDays
();
67
74
public
function
getExpectedDelivery
();
75
82
public
function
getCustom
();
83
87
public
function
setSku
(?
string
$sku): void;
88
92
public
function
setKey
(?
string
$key): void;
93
97
public
function
setSupplyChannel
(?
ChannelResourceIdentifier
$supplyChannel): void;
98
102
public
function
setQuantityOnStock
(?
int
$quantityOnStock): void;
103
107
public
function
setRestockableInDays
(?
int
$restockableInDays): void;
108
112
public
function
setExpectedDelivery
(?DateTimeImmutable $expectedDelivery): void;
113
117
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
118
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Channel\ChannelResourceIdentifier
Definition:
ChannelResourceIdentifier.php:16
Commercetools\Api\Models\Inventory\InventoryEntryDraft
Definition:
InventoryEntryDraft.php:18
Commercetools\Api\Models\Inventory\InventoryEntryDraft\getSku
getSku()
Commercetools\Api\Models\Inventory\InventoryEntryDraft\getExpectedDelivery
getExpectedDelivery()
Commercetools\Api\Models\Inventory\InventoryEntryDraft\FIELD_KEY
const FIELD_KEY
Definition:
InventoryEntryDraft.php:20
Commercetools\Api\Models\Inventory\InventoryEntryDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Inventory\InventoryEntryDraft\setSupplyChannel
setSupplyChannel(?ChannelResourceIdentifier $supplyChannel)
Commercetools\Api\Models\Inventory\InventoryEntryDraft\setQuantityOnStock
setQuantityOnStock(?int $quantityOnStock)
Commercetools\Api\Models\Inventory\InventoryEntryDraft\FIELD_SUPPLY_CHANNEL
const FIELD_SUPPLY_CHANNEL
Definition:
InventoryEntryDraft.php:21
Commercetools\Api\Models\Inventory\InventoryEntryDraft\setExpectedDelivery
setExpectedDelivery(?DateTimeImmutable $expectedDelivery)
Commercetools\Api\Models\Inventory\InventoryEntryDraft\setSku
setSku(?string $sku)
Commercetools\Api\Models\Inventory\InventoryEntryDraft\FIELD_RESTOCKABLE_IN_DAYS
const FIELD_RESTOCKABLE_IN_DAYS
Definition:
InventoryEntryDraft.php:23
Commercetools\Api\Models\Inventory\InventoryEntryDraft\getRestockableInDays
getRestockableInDays()
Commercetools\Api\Models\Inventory\InventoryEntryDraft\getKey
getKey()
Commercetools\Api\Models\Inventory\InventoryEntryDraft\setRestockableInDays
setRestockableInDays(?int $restockableInDays)
Commercetools\Api\Models\Inventory\InventoryEntryDraft\FIELD_QUANTITY_ON_STOCK
const FIELD_QUANTITY_ON_STOCK
Definition:
InventoryEntryDraft.php:22
Commercetools\Api\Models\Inventory\InventoryEntryDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
InventoryEntryDraft.php:25
Commercetools\Api\Models\Inventory\InventoryEntryDraft\getQuantityOnStock
getQuantityOnStock()
Commercetools\Api\Models\Inventory\InventoryEntryDraft\getCustom
getCustom()
Commercetools\Api\Models\Inventory\InventoryEntryDraft\FIELD_SKU
const FIELD_SKU
Definition:
InventoryEntryDraft.php:19
Commercetools\Api\Models\Inventory\InventoryEntryDraft\getSupplyChannel
getSupplyChannel()
Commercetools\Api\Models\Inventory\InventoryEntryDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\Inventory\InventoryEntryDraft\FIELD_EXPECTED_DELIVERY
const FIELD_EXPECTED_DELIVERY
Definition:
InventoryEntryDraft.php:24
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Inventory
Definition:
InventoryEntry.php:9
Generated by
1.9.1