Address
Magento\Sales\Model\Order\Address
What it does
This model represents a billing or shipping address associated with a sales order in Magento 2.
Developers use this class when working with order address data, such as retrieving customer address information from orders, formatting address fields, or saving address details during order processing.
It provides methods to access and manipulate all address components like street, city, postal code, region, and customer details.
Public Methods
- setOrder()
- getRegionCode()
- getName()
- setData()
- explodeStreetAddress()
- getOrder()
- getStreet()
- getStreetLine()
- getAddressType()
- getCity()
- getCompany()
- getCountryId()
- getCustomerAddressId()
- getCustomerId()
- getEmail()
- getEntityId()
- setEntityId()
- getFax()
- getFirstname()
- getLastname()
- getMiddlename()
- getParentId()
- getPostcode()
- getPrefix()
- getRegion()
- getRegionId()
- getSuffix()
- getTelephone()
- getVatId()
- getVatIsValid()
- getVatRequestDate()
- getVatRequestId()
- getVatRequestSuccess()
- setParentId()
- setCustomerAddressId()
- setRegionId()
- setStreet()
- setCustomerId()
- setFax()
- setRegion()
- setPostcode()
- setLastname()
- setCity()
- setEmail()
- setTelephone()
- setCountryId()
- setFirstname()
- setAddressType()
- setPrefix()
- setMiddlename()
- setSuffix()
- setCompany()
- setVatId()
- setVatIsValid()
- setVatRequestId()
- setRegionCode()
- setVatRequestDate()
- setVatRequestSuccess()
- getExtensionAttributes()
- setExtensionAttributes()
- beforeSave()