CustomerInterface
Magento\Customer\Api\Data\CustomerInterface
What it does
This interface defines the standard data structure for customer entities in Magento 2's API layer.
Developers use this interface when working with customer data through web services, repositories, or service contracts to ensure consistent customer information handling across the system.
It provides getter and setter methods for all customer attributes like name, email, addresses, group membership, and dates.
Public Methods
- getId()
- setId()
- getGroupId()
- setGroupId()
- getDefaultBilling()
- setDefaultBilling()
- getDefaultShipping()
- setDefaultShipping()
- getConfirmation()
- setConfirmation()
- getCreatedAt()
- setCreatedAt()
- getUpdatedAt()
- setUpdatedAt()
- getCreatedIn()
- setCreatedIn()
- getDob()
- setDob()
- getEmail()
- setEmail()
- getFirstname()
- setFirstname()
- getLastname()
- setLastname()
- getMiddlename()
- setMiddlename()
- getPrefix()
- setPrefix()
- getSuffix()
- setSuffix()
- getGender()
- setGender()
- getStoreId()
- setStoreId()
- getTaxvat()
- setTaxvat()
- getWebsiteId()
- setWebsiteId()
- getAddresses()
- setAddresses()
- getDisableAutoGroupChange()
- setDisableAutoGroupChange()
- getExtensionAttributes()
- setExtensionAttributes()