commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
Public Member Functions | Public Attributes | List of all members
Commercetools\Api\Models\Inventory\InventoryEntryDraft Interface Reference
Inheritance diagram for Commercetools\Api\Models\Inventory\InventoryEntryDraft:
Commercetools\Base\JsonObject Commercetools\Api\Models\Inventory\InventoryEntryDraftModel

Public Member Functions

 getSku ()
 
 getKey ()
 
 getSupplyChannel ()
 
 getQuantityOnStock ()
 
 getRestockableInDays ()
 
 getExpectedDelivery ()
 
 getCustom ()
 
 setSku (?string $sku)
 
 setKey (?string $key)
 
 setSupplyChannel (?ChannelResourceIdentifier $supplyChannel)
 
 setQuantityOnStock (?int $quantityOnStock)
 
 setRestockableInDays (?int $restockableInDays)
 
 setExpectedDelivery (?DateTimeImmutable $expectedDelivery)
 
 setCustom (?CustomFieldsDraft $custom)
 
- Public Member Functions inherited from Commercetools\Base\JsonObject
 get (string $field)
 
 with (callable $callable=null)
 

Public Attributes

const FIELD_SKU = 'sku'
 
const FIELD_KEY = 'key'
 
const FIELD_SUPPLY_CHANNEL = 'supplyChannel'
 
const FIELD_QUANTITY_ON_STOCK = 'quantityOnStock'
 
const FIELD_RESTOCKABLE_IN_DAYS = 'restockableInDays'
 
const FIELD_EXPECTED_DELIVERY = 'expectedDelivery'
 
const FIELD_CUSTOM = 'custom'
 

Additional Inherited Members

- Static Public Member Functions inherited from Commercetools\Base\JsonObject
static of ($data=null)
 
static fromArray (array $data=[])
 
static fromStdClass (stdClass $data=null)
 

Detailed Description

Definition at line 17 of file InventoryEntryDraft.php.

Member Function Documentation

◆ getCustom()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::getCustom ( )

Custom Fields of the InventoryEntry.

Returns
null|CustomFieldsDraft

Implemented in Commercetools\Api\Models\Inventory\InventoryEntryDraftModel.

◆ getExpectedDelivery()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::getExpectedDelivery ( )

Date and time of the next restock.

Returns
null|DateTimeImmutable

Implemented in Commercetools\Api\Models\Inventory\InventoryEntryDraftModel.

◆ getKey()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::getKey ( )

User-defined unique identifier for the InventoryEntry.

Returns
null|string

Implemented in Commercetools\Api\Models\Inventory\InventoryEntryDraftModel.

◆ getQuantityOnStock()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::getQuantityOnStock ( )

Overall amount of stock.

Returns
null|int

Implemented in Commercetools\Api\Models\Inventory\InventoryEntryDraftModel.

◆ getRestockableInDays()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::getRestockableInDays ( )

How often the InventoryEntry is restocked (in days).

Returns
null|int

Implemented in Commercetools\Api\Models\Inventory\InventoryEntryDraftModel.

◆ getSku()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::getSku ( )

◆ getSupplyChannel()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::getSupplyChannel ( )

Channel that supplies this InventoryEntry.

Returns
null|ChannelResourceIdentifier

Implemented in Commercetools\Api\Models\Inventory\InventoryEntryDraftModel.

◆ setCustom()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::setCustom ( ?CustomFieldsDraft  $custom)
Parameters
?CustomFieldsDraft$custom

Implemented in Commercetools\Api\Models\Inventory\InventoryEntryDraftModel.

◆ setExpectedDelivery()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::setExpectedDelivery ( ?DateTimeImmutable  $expectedDelivery)
Parameters
?DateTimeImmutable$expectedDelivery

Implemented in Commercetools\Api\Models\Inventory\InventoryEntryDraftModel.

◆ setKey()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::setKey ( ?string  $key)
Parameters
?string$key

Implemented in Commercetools\Api\Models\Inventory\InventoryEntryDraftModel.

◆ setQuantityOnStock()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::setQuantityOnStock ( ?int  $quantityOnStock)
Parameters
?int$quantityOnStock

Implemented in Commercetools\Api\Models\Inventory\InventoryEntryDraftModel.

◆ setRestockableInDays()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::setRestockableInDays ( ?int  $restockableInDays)
Parameters
?int$restockableInDays

Implemented in Commercetools\Api\Models\Inventory\InventoryEntryDraftModel.

◆ setSku()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::setSku ( ?string  $sku)
Parameters
?string$sku

Implemented in Commercetools\Api\Models\Inventory\InventoryEntryDraftModel.

◆ setSupplyChannel()

Commercetools\Api\Models\Inventory\InventoryEntryDraft::setSupplyChannel ( ?ChannelResourceIdentifier  $supplyChannel)
Parameters
?ChannelResourceIdentifier$supplyChannel

Implemented in Commercetools\Api\Models\Inventory\InventoryEntryDraftModel.

Member Data Documentation

◆ FIELD_CUSTOM

const Commercetools\Api\Models\Inventory\InventoryEntryDraft::FIELD_CUSTOM = 'custom'

Definition at line 25 of file InventoryEntryDraft.php.

◆ FIELD_EXPECTED_DELIVERY

const Commercetools\Api\Models\Inventory\InventoryEntryDraft::FIELD_EXPECTED_DELIVERY = 'expectedDelivery'

Definition at line 24 of file InventoryEntryDraft.php.

◆ FIELD_KEY

const Commercetools\Api\Models\Inventory\InventoryEntryDraft::FIELD_KEY = 'key'

Definition at line 20 of file InventoryEntryDraft.php.

◆ FIELD_QUANTITY_ON_STOCK

const Commercetools\Api\Models\Inventory\InventoryEntryDraft::FIELD_QUANTITY_ON_STOCK = 'quantityOnStock'

Definition at line 22 of file InventoryEntryDraft.php.

◆ FIELD_RESTOCKABLE_IN_DAYS

const Commercetools\Api\Models\Inventory\InventoryEntryDraft::FIELD_RESTOCKABLE_IN_DAYS = 'restockableInDays'

Definition at line 23 of file InventoryEntryDraft.php.

◆ FIELD_SKU

const Commercetools\Api\Models\Inventory\InventoryEntryDraft::FIELD_SKU = 'sku'

Definition at line 19 of file InventoryEntryDraft.php.

◆ FIELD_SUPPLY_CHANNEL

const Commercetools\Api\Models\Inventory\InventoryEntryDraft::FIELD_SUPPLY_CHANNEL = 'supplyChannel'

Definition at line 21 of file InventoryEntryDraft.php.


The documentation for this interface was generated from the following file: