Class CustomerWriteService

Class CustomerWriteService

This class provides methods for creating and deleting customer data

CustomerWriteService implements CustomerWriteServiceInterface
Package: Customer
Category: System
Implements: CustomerWriteServiceInterface
Located at Services/Core/Customer/CustomerWriteService.inc.php

Methods summary

public __construct( AddressBookServiceInterface $addressBookService, CustomerRepositoryInterface $customerRepository, CustomerServiceSettingsInterface $customerServiceSettings, VatNumberValidatorInterface $vatNumberValidator )

Constructor of the class CustomerService.

public createNewRegistree( CustomerEmailInterface $email, CustomerPasswordInterface $password, DateTime $dateOfBirth, CustomerVatNumberInterface $vatNumber, CustomerCallNumberInterface $telephoneNumber, CustomerCallNumberInterface $faxNumber, AddressBlockInterface $addressBlock, KeyValueCollection $addonValues ) : Customer

Creates a new customer with the given parameters.

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

Creates a new guest account with the given parameters.

public deleteCustomerById( IdType $customerId )

Deletes the customer with the provided ID.

public updateCustomer( CustomerInterface $customer ) : CustomerInterface

Updates customer data.

Properties summary

protected $addressBookService : AddressBookServiceInterface

Address book service.


		
protected $customerRepository : CustomerRepositoryInterface

Customer repository.


		
protected $customerServiceSettings : CustomerServiceSettingsInterface

Customer service settings.


		
protected $vatNumberValidator : VatNumberValidatorInterface

VAT number validator.