Interface
AddressInterface
Magento\Quote\Api\Data\AddressInterface
What it does
This interface defines the contract for address data objects used in shopping cart quotes in Magento 2.
Developers use this interface when working with billing or shipping addresses during checkout, allowing them to get and set address properties like street, city, country, customer information, and determine if the address should be saved to the customer's address book.
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()