Class CustomerReadService
This class provides methods for reading customer data.
category |
System |
---|---|
package |
Customer |
implements |
CustomerReadServiceInterface |
__construct(\CustomerRepositoryInterface $customerRepository)
addressIsDefaultCustomerAddress(\CustomerAddressInterface $customerAddress) : boolean
boolean
Is provided address the customer's default address?
filterCustomers(array $conditions = array(), integer $limit = null, integer $offset = null) : array
Example: $service->filterCustomers('customers_id' => 1);
array
Associative array containing the desired field and value.
integer
MySQL limit applied to the records.
integer
MySQL offset applied to the records.
array
Returns an array that contains customer objects.
findCustomerByEmail(\CustomerEmailInterface $emailAddress) : \Customer|null
getCustomerById(\IdType $customerId) : \Customer
getFilterCustomersCount(array $conditions = array()) : integer
Example: $service->filterCustomers('customers_id' => 1);
array
Associative array containing the desired field and value.
integer
registreeEmailExists(\CustomerEmailInterface $email) : boolean
boolean
Does the E-Mail address already exist?
searchCustomers(\CustomerSearchCondition $condition, \Pager $pager) : array
array
Returns an array that contains customer objects.
customerRepository : \CustomerRepositoryInterface