Address
Magento\Customer\Model\Address
What it does
This model represents a customer address entity in Magento 2, handling storage and retrieval of customer billing and shipping addresses.
Developers use this class to create, update, and manage customer addresses programmatically, including loading address data, setting customer relationships, and handling address-related operations like validation and indexing.
It provides methods to work with address attributes, convert between data models, and manage default billing/shipping address flags.
Public Methods
- updateData()
- getDataModel()
- getCustomerId()
- setCustomerId()
- getCustomer()
- setCustomer()
- getAttributes()
- getDefaultAttributeCodes()
- getEntityType()
- getRegionId()
- setRegionId()
- getEntityTypeId()
- afterSave()
- afterDeleteCommit()
- reindex()
- getAttributeSetId()