InventoryLevel
+ Inheritance diagram for InventoryLevel:

Description

An inventory level, which acts as a join between a location and an inventory item.

See also
https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel
Location::newInventoryLevel()

Public Methods

$this adjustAvailable (int $qty)
 
$this connect (bool $relocate=false)
 
void disconnect ()
 
magic null int getAvailable ()
 
InventoryItem getInventoryItem ()
 
magic string getInventoryItemId ()
 injected More...
 
Location getLocation ()
 
magic string getLocationId ()
 injected More...
 
magic string getUpdatedAt ()
 
InventoryLevel setAvailable (int $qty)
 
- Public Methods inherited from Data
mixed __call (string $method, array $args)
 
 __construct ($caller, array $data=[])
 
string serialize ()
 Dehydrated JSON encode. More...
 
array toArray ()
 
void unserialize ($serialized)
 

Additional Inherited Members

- Public Properties inherited from Data
const MAP = []
 
const PATCH = []
 
- Protected Properties inherited from Data
Api $api
 
Pool $pool
 
- Protected Methods inherited from Data
mixed _hydrate (string $class, $item)
 A factory that also hydrates / caches entities. More...
 
array _select ($subject, callable $filter,... $args)
 Magic method: selectField(callable $filter) More...
 
$this _setData (array $data)
 Clears all diffs and sets all data, hydrating mapped fields. More...
 
$this _setField (string $field, $value)
 Sets a value, hydrating if mapped, and clears the diff. More...
 

Methods

◆ adjustAvailable()

$this adjustAvailable ( int  $qty)
Parameters
int$qty+/-
Returns
$this

◆ connect()

$this connect ( bool  $relocate = false)
Parameters
bool$relocate
Returns
$this

◆ getAvailable()

magic null int getAvailable ( )
Returns
null|int

◆ getInventoryItem()

InventoryItem getInventoryItem ( )
Returns
InventoryItem

◆ getInventoryItemId()

magic string getInventoryItemId ( )

injected

Returns
string

◆ getLocation()

Location getLocation ( )
Returns
Location

◆ getLocationId()

magic string getLocationId ( )

injected

Returns
string

◆ getUpdatedAt()

magic string getUpdatedAt ( )
Returns
string

◆ setAvailable()

InventoryLevel setAvailable ( int  $qty)
Parameters
int$qty
Returns
InventoryLevel