Class AddressBookService
This class is used to manage addresses
category |
System |
---|---|
package |
Customer |
subpackage |
Address |
implements |
AddressBookServiceInterface |
__construct(\CustomerAddressRepositoryInterface $addressRepository)
createNewAddress(\AddressBlockInterface $addressBlock, \CustomerInterface $customer) : \CustomerAddressInterface
\AddressBlockInterface
\CustomerInterface
\CustomerAddressInterface
deleteAddress(\CustomerAddressInterface $address)
filterAddresses(string $p_keyword) : array
string
Used to filter the address records.
array
Returns an array of CustomerAddress objects.
findAddressById(\IdType $addressId) : \CustomerAddress|null
getAllAddresses() : array
array
Returns an array of CustomerAddress objects.
getCustomerAddresses(\CustomerInterface $customer) : array
array
Returns an array of CustomerAddress objects.
updateAddress(\AddressBlockInterface $addressBlock, \CustomerAddressInterface $address) : \CustomerAddressInterface
\AddressBlockInterface
\CustomerAddressInterface
\CustomerAddressInterface
updateCustomerAddress(\CustomerAddressInterface $customerAddress)
customerAddressRepository : \CustomerAddressRepositoryInterface