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
booleanIs 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 |
|
|---|
\DateTimeCustomer's date of birth.
\CustomerCreated customer.
createNewGuest(\CustomerEmailInterface $email, \DateTime $dateOfBirth, \CustomerVatNumberInterface $vatNumber, \CustomerCallNumberInterface $telephoneNumber, \CustomerCallNumberInterface $faxNumber, \AddressBlockInterface $addressBlock, \KeyValueCollection $addonValues) : \Customer
| Throws |
|
|---|
\DateTimeCustomer's date of birth.
\CustomerCreated guest customer.
deleteCustomerById(\IdType $customerId)
filterCustomers(array $conditions = array(), integer $limit = null, integer $offset = null) : array
Example: $service->filterCustomers('customers_id' => 1);
arrayAssociative array containing the desired field and value.
integerMySQL limit applied to the records.
integerMySQL offset applied to the records.
arrayReturns an array that contains customer objects.
getCustomerById(\IdType $customerId) : \Customer
registreeEmailExists(\CustomerEmailInterface $email) : boolean
booleanDoes the provided E-Mail address already exist?
updateCustomer(\CustomerInterface $customer) : \CustomerInterface
customerReadService : \CustomerReadServiceInterface
customerWriteService : \CustomerWriteServiceInterface