CustomerAddressRepositoryInterface

Extends

Interface CustomerAddressRepositoryInterface

category

System

package

Customer

subpackage

Interfaces

Methods

Method to delete a customer address

deleteCustomerAddress(\CustomerAddressInterface $address) 

Arguments

Method to delete all customers addresses with a given customer

deleteCustomerAddressesByCustomer(\CustomerInterface $customer) 

Arguments

$customer

\CustomerInterface

Method to find a customer address with a given ID it it exists else it will return null

findById(\IdType $addressBookId) : \CustomerAddress|null

Arguments

$addressBookId

\IdType

Response

\CustomerAddress|null

Method to get a customer address with a given ID

getById(\IdType $addressBookId) : \CustomerAddress

Arguments

$addressBookId

\IdType

Response

\CustomerAddress

Method to get all customers addresses

getCustomerAddresses(\CustomerInterface $customer) : array

Arguments

$customer

\CustomerInterface

Response

array

of CustomerAddress objects

Method to store the customer address

store(\CustomerAddressInterface $address) : \CustomerAddressInterface