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(), 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.
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