CustomerRepositoryInterface

Extends

Interface CustomerRepositoryInterface

category

System

package

Customer

subpackage

Interfaces

Methods

Deletes a guest account by its email address.

deleteGuestByEmail(\CustomerEmailInterface $email) 

Arguments

$email

\CustomerEmailInterface

Guest customer's E-Mail address.

Filters customer records and returns the total count.

getFilterCustomersCount(array $conditions = array()) : integer

Example: $repository->filterCustomers('customers_id' => 1);

Arguments

$conditions

array

Associative array containing the desired field and value.

Response

integer

Returns a guest account by its email address.

getGuestByEmail(\CustomerEmailInterface $email) : \Customer|null

Arguments

$email

\CustomerEmailInterface

Guest customer's E-Mail address.

Response

\Customer|null

Customer or null if not found.

Creates a new customer.

getNewCustomer() : \Customer

Response

\Customer

Newly created customer.

Finds a registered customer based on the e-mail address.

getRegistreeByEmail(\CustomerEmailInterface $email) : \Customer|null

Arguments

$email

\CustomerEmailInterface

Customer's E-Mail address.

Response

\Customer|null

Customer or null if not found.

Filters customer records by a given CustomerSearchCondition object and returns an array with results.

searchCustomers(\CustomerSearchCondition $condition, \Pager $pager) : array

Arguments

$condition

\CustomerSearchCondition

Conditions object for search.

$pager

\Pager

Pager object with page settings to split the results into several pages.

Response

array

Returns an array that contains customer objects.

Stores customer data in the database.

store(\CustomerInterface $customer) 

Arguments

$customer

\CustomerInterface

Customer.