Log in
Interface

SourceInterface

Magento\InventoryApi\Api\Data\SourceInterface

What it does

This interface defines the contract for inventory source entities in Magento's Multi-Source Inventory (MSI) system.

Developers use this interface to represent physical storage locations like warehouses or brick-and-mortar stores, managing their details such as location, contact information, and shipping carrier configurations.

It's essential when implementing custom inventory management features or integrating with external warehouse management systems.

Public Methods

  • getSourceCode()
  • setSourceCode()
  • getName()
  • setName()
  • getEmail()
  • setEmail()
  • getContactName()
  • setContactName()
  • isEnabled()
  • setEnabled()
  • getDescription()
  • setDescription()
  • getLatitude()
  • setLatitude()
  • getLongitude()
  • setLongitude()
  • getCountryId()
  • setCountryId()
  • getRegionId()
  • setRegionId()
  • getRegion()
  • setRegion()
  • getCity()
  • setCity()
  • getStreet()
  • setStreet()
  • getPostcode()
  • setPostcode()
  • getPhone()
  • setPhone()
  • getFax()
  • setFax()
  • isUseDefaultCarrierConfig()
  • setUseDefaultCarrierConfig()
  • getCarrierLinks()
  • setCarrierLinks()
  • getExtensionAttributes()
  • setExtensionAttributes()