CustomerWriteServiceInterface

Extends

Interface CustomerWriteServiceInterface

category

System

package

Customer

subpackage

Interfaces

Methods

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.

Creates a new customer with the given parameters.

createNewRegistree(\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.

Deletes the customer with the provided ID.

deleteCustomerById(\IdType $customerId) 

Arguments

$customerId

\IdType

Customer's ID.

Updates customer data.

updateCustomer(\CustomerInterface $customer) : \CustomerInterface

Arguments

$customer

\CustomerInterface

Customer.

Response

\CustomerInterface

Updated customer.