CustomerServiceInterface

Extends

Interface CustomerServiceInterface

category

System

package

Customer

subpackage

Interfaces

Methods

Checks if address is the default address of the customer.

addressIsDefaultCustomerAddress(\CustomerAddressInterface $customerAddress) : boolean

Arguments

$customerAddress

\CustomerAddressInterface

Customer's address.

Response

boolean

Is the provided address the customer's default address?

Creates a new customer with the given parameters.

createNewCustomer(\CustomerEmailInterface $email, \CustomerPasswordInterface $password, \DateTime $dateOfBirth, \CustomerVatNumberInterface $vatNumber, \CustomerCallNumberInterface $telephoneNumber, \CustomerCallNumberInterface $faxNumber, \AddressBlockInterface $addressBlock, \KeyValueCollection $addonValues) : \Customer
Throws
\UnexpectedValueException

On invalid arguments.

Arguments

$email

\CustomerEmailInterface

Customer's E-Mail address.

$password

\CustomerPasswordInterface

Customer's password.

$dateOfBirth

\DateTime

Customer's date of birth.

$vatNumber

\CustomerVatNumberInterface

Customer's VAT number.

$telephoneNumber

\CustomerCallNumberInterface

Customer's telephone number.

$faxNumber

\CustomerCallNumberInterface

Customer's fax number.

$addressBlock

\AddressBlockInterface

Customer's address.

$addonValues

\KeyValueCollection

Customer's additional values.

Response

\Customer

Created customer.

Creates a new guest account with the given parameters.

createNewGuest(\CustomerEmailInterface $email, \DateTime $dateOfBirth, \CustomerVatNumberInterface $vatNumber, \CustomerCallNumberInterface $telephoneNumber, \CustomerCallNumberInterface $faxNumber, \AddressBlockInterface $addressBlock, \KeyValueCollection $addonValues) : \Customer
Throws
\UnexpectedValueException

On invalid arguments.

Arguments

$email

\CustomerEmailInterface

Customer's E-Mail address.

$dateOfBirth

\DateTime

Customer's date of birth.

$vatNumber

\CustomerVatNumberInterface

Customer's VAT number.

$telephoneNumber

\CustomerCallNumberInterface

Customer's telephone number.

$faxNumber

\CustomerCallNumberInterface

Customer's fax number.

$addressBlock

\AddressBlockInterface

Customer's address.

$addonValues

\KeyValueCollection

Customer's additional values.

Response

\Customer

Created guest customer.

Checks if the email address of the registree already exists.

registreeEmailExists(\CustomerEmailInterface $email) : boolean

Arguments

$email

\CustomerEmailInterface

Customer's E-Mail address.

Response

boolean

Does the provided E-Mail address already exist?

Updates customer data.

updateCustomer(\CustomerInterface $customer) : \CustomerInterface

Arguments

$customer

\CustomerInterface

Customer.

Response

\CustomerInterface

Updated customer.