AddressInterface
Magento\Quote\Api\Data\AddressInterface
What it does
This interface defines the contract for managing address data in Magento 2 quotes (shopping carts).
Developers use it to get and set billing or shipping address information like customer name, street, city, country, phone, email, and VAT ID.
It's essential when working with checkout processes, quote management, or any feature that requires handling customer address data during the shopping experience.
Public Methods
- getId()
- setId()
- getRegion()
- setRegion()
- getRegionId()
- setRegionId()
- getRegionCode()
- setRegionCode()
- getCountryId()
- setCountryId()
- getStreet()
- setStreet()
- getCompany()
- setCompany()
- getTelephone()
- setTelephone()
- getFax()
- setFax()
- getPostcode()
- setPostcode()
- getCity()
- setCity()
- getFirstname()
- setFirstname()
- getLastname()
- setLastname()
- getMiddlename()
- setMiddlename()
- getPrefix()
- setPrefix()
- getSuffix()
- setSuffix()
- getVatId()
- setVatId()
- getCustomerId()
- setCustomerId()
- getEmail()
- setEmail()
- getSameAsBilling()
- setSameAsBilling()
- getCustomerAddressId()
- setCustomerAddressId()
- getSaveInAddressBook()
- setSaveInAddressBook()
- getExtensionAttributes()
- setExtensionAttributes()