Source
Magento\Inventory\Model\Source
What it does
This is the data model class for inventory sources in Magento's Multi-Source Inventory (MSI) system.
Developers use this class to represent physical locations (warehouses, stores, distribution centers) where inventory is stored, including their address details, contact information, and shipping carrier configurations.
It provides getters and setters for all source properties like name, location coordinates, address fields, and enabled status.
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()