Composable Commerce PHP SDKPHP SDK
  • Namespace
  • Class
  • Tree

Namespaces

  • Commercetools
    • Commons
      • Helper
    • Core
      • Builder
        • Request
        • Update
      • Cache
      • Client
        • Adapter
        • OAuth
      • Error
      • Helper
        • Annotate
        • State
          • Renderer
        • Subscriber
          • Log
      • Model
        • ApiClient
        • Cart
        • CartDiscount
        • Category
        • Channel
        • Common
        • Customer
        • CustomerGroup
        • CustomField
        • CustomObject
        • DiscountCode
        • Extension
        • Inventory
        • Message
        • Order
        • OrderEdit
        • Payment
        • Product
          • Search
        • ProductDiscount
        • ProductSelection
        • ProductType
        • Project
        • Review
        • ShippingMethod
        • ShoppingList
        • State
        • Store
        • Subscription
        • TaxCategory
        • Type
        • Zone
      • Request
        • ApiClients
        • CartDiscounts
          • Command
        • Carts
          • Command
        • Categories
          • Command
        • Channels
          • Command
        • CustomerGroups
          • Command
        • Customers
          • Command
        • CustomField
          • Command
        • CustomObjects
        • DiscountCodes
          • Command
        • Extensions
          • Command
        • GraphQL
        • InStores
        • Inventory
          • Command
        • Me
          • Command
        • Messages
        • OrderEdits
          • Command
          • StagedOrder
            • Command
        • Orders
          • Command
        • Payments
          • Command
        • ProductDiscounts
          • Command
        • Products
          • Command
        • ProductSelections
          • Command
        • ProductTypes
          • Command
        • Project
          • Command
        • Query
        • Reviews
          • Command
        • ShippingMethods
          • Command
        • ShoppingLists
          • Command
        • States
          • Command
        • Stores
          • Command
        • Subscriptions
          • Command
        • TaxCategories
          • Command
        • Types
          • Command
        • Zones
          • Command
      • Response

Classes

  • InventoryDraft
  • InventoryEntry
  • InventoryEntryCollection

Class InventoryDraft

Commercetools\Core\Model\Common\AbstractJsonDeserializeObject implements Commercetools\Core\Model\Common\JsonDeserializeInterface, Commercetools\Core\Model\Common\ObjectTreeInterface uses Commercetools\Core\Model\Common\ObjectTreeTrait
Extended by Commercetools\Core\Model\Common\JsonObject implements JsonSerializable uses Commercetools\Core\Model\Common\ContextTrait
Extended by Commercetools\Core\Model\Inventory\InventoryDraft
Namespace: Commercetools\Core\Model\Inventory
API documentation: https://docs.commercetools.com/http-api-projects-inventory.html#inventoryentrydraft
Located at Core/Model/Inventory/InventoryDraft.php

Methods summary

public static Commercetools\Core\Model\Inventory\InventoryDraft
# ofSkuAndQuantityOnStock( string $sku, integer $quantityOnStock, Commercetools\Core\Model\Common\Context|callable $context = null )

Parameters

$sku
$quantityOnStock
$context

Returns

Commercetools\Core\Model\Inventory\InventoryDraft

Methods inherited from Commercetools\Core\Model\Common\JsonObject

__construct(), __get(), hasField(), isOptional()

Methods inherited from Commercetools\Core\Model\Common\AbstractJsonDeserializeObject

__sleep(), fromArray(), jsonSerialize(), of(), toArray()

Methods inherited from Commercetools\Core\Model\Common\ContextAwareInterface

getContext(), getContextCallback(), setContext(), setContextIfNull()

Methods inherited from Commercetools\Core\Model\Common\ObjectTreeInterface

parentSet(), rootGet(), rootSet()

Methods used from Commercetools\Core\Model\Common\ContextTrait

getContext(), getContextCallback(), setContext(), setContextIfNull()

Methods used from Commercetools\Core\Model\Common\ObjectTreeTrait

parentSet(), rootGet(), rootSet()

Magic methods summary

public string
# getSku( )

Returns

string
public Commercetools\Core\Model\Inventory\InventoryDraft
# setSku( string $sku = null )

Parameters

$sku

Returns

Commercetools\Core\Model\Inventory\InventoryDraft
public integer
# getQuantityOnStock( )

Returns

integer
public Commercetools\Core\Model\Inventory\InventoryDraft
# setQuantityOnStock( integer $quantityOnStock = null )

Parameters

$quantityOnStock

Returns

Commercetools\Core\Model\Inventory\InventoryDraft
public integer
# getRestockableInDays( )

Returns

integer
public Commercetools\Core\Model\Inventory\InventoryDraft
# setRestockableInDays( integer $restockableInDays = null )

Parameters

$restockableInDays

Returns

Commercetools\Core\Model\Inventory\InventoryDraft
public Commercetools\Core\Model\Common\DateTimeDecorator
# getExpectedDelivery( )

Returns

Commercetools\Core\Model\Common\DateTimeDecorator
public Commercetools\Core\Model\Inventory\InventoryDraft
# setExpectedDelivery( DateTime $expectedDelivery = null )

Parameters

$expectedDelivery

Returns

Commercetools\Core\Model\Inventory\InventoryDraft
public Commercetools\Core\Model\Channel\ChannelReference
# getSupplyChannel( )

Returns

Commercetools\Core\Model\Channel\ChannelReference
public Commercetools\Core\Model\Inventory\InventoryDraft
# setSupplyChannel( Commercetools\Core\Model\Channel\ChannelReference $supplyChannel = null )

Parameters

$supplyChannel

Returns

Commercetools\Core\Model\Inventory\InventoryDraft
public Commercetools\Core\Model\CustomField\CustomFieldObject
# getCustom( )

Returns

Commercetools\Core\Model\CustomField\CustomFieldObject
public Commercetools\Core\Model\Inventory\InventoryDraft
# setCustom( Commercetools\Core\Model\CustomField\CustomFieldObject $custom = null )

Parameters

$custom

Returns

Commercetools\Core\Model\Inventory\InventoryDraft

Constants summary

Constants inherited from Commercetools\Core\Model\Common\JsonObject

DECORATOR, ELEMENT_TYPE, INITIALIZED, OPTIONAL, TYPE

Constants inherited from Commercetools\Core\Model\Common\AbstractJsonDeserializeObject

JSON_DESERIALIZE_INTERFACE, TYPEABLE_INTERFACE

PHP SDK API documentation generated by ApiGen