Address
Magento\Customer\Model\Data\Address
What it does
This is a data model class that represents a customer address in Magento 2.
Developers use this class to store and manipulate customer address information including street, city, region, postal code, and contact details.
It implements the AddressInterface and provides getter/setter methods for all address fields, making it the standard way to work with customer addresses throughout the Magento application.
Public Methods
- getId()
- getRegion()
- getRegionId()
- getCountryId()
- getStreet()
- getCompany()
- getTelephone()
- getFax()
- getPostcode()
- getCity()
- getFirstname()
- getLastname()
- getMiddlename()
- getPrefix()
- getSuffix()
- getVatId()
- getCustomerId()
- isDefaultShipping()
- isDefaultBilling()
- setId()
- setCustomerId()
- setRegion()
- setRegionId()
- setCountryId()
- setStreet()
- setCompany()
- setTelephone()
- setFax()
- setPostcode()
- setCity()
- setFirstname()
- setLastname()
- setMiddlename()
- setPrefix()
- setSuffix()
- setVatId()
- setIsDefaultShipping()
- setIsDefaultBilling()
- getExtensionAttributes()
- setExtensionAttributes()