Class CustomerService
This class provides methods for creating and deleting customer data
category |
System |
---|---|
package |
Customer |
implements |
CustomerServiceInterface |
__construct(\CustomerReadServiceInterface $customerReadService, \CustomerWriteServiceInterface $customerWriteService)
addressIsDefaultCustomerAddress(\CustomerAddressInterface $customerAddress) : boolean
boolean
Is the provided address the customer's default address?
createNewCustomer(\CustomerEmailInterface $email, \CustomerPasswordInterface $password, \DateTime $dateOfBirth, \CustomerVatNumberInterface $vatNumber, \CustomerCallNumberInterface $telephoneNumber, \CustomerCallNumberInterface $faxNumber, \AddressBlockInterface $addressBlock, \KeyValueCollection $addonValues) : \Customer
Throws |
|
---|
\DateTime
Customer's date of birth.
\Customer
Created customer.
createNewGuest(\CustomerEmailInterface $email, \DateTime $dateOfBirth, \CustomerVatNumberInterface $vatNumber, \CustomerCallNumberInterface $telephoneNumber, \CustomerCallNumberInterface $faxNumber, \AddressBlockInterface $addressBlock, \KeyValueCollection $addonValues) : \Customer
Throws |
|
---|
\DateTime
Customer's date of birth.
\Customer
Created guest customer.
deleteCustomerById(\IdType $customerId)
filterCustomers(array $conditions = array(), \Pager|null $pager = null, array $sorters = array()) : array
Example: $service->filterCustomers(['customers_id' => 1]);
array
Associative array containing the desired field and value.
array
(Optional) array of Sorter objects with data sorting information
array
Returns an array that contains customer objects.
getCustomerById(\IdType $customerId) : \Customer
registreeEmailExists(\CustomerEmailInterface $email) : boolean
boolean
Does the provided E-Mail address already exist?
updateCustomer(\CustomerInterface $customer) : \CustomerInterface
customerReadService : \CustomerReadServiceInterface
customerWriteService : \CustomerWriteServiceInterface