CustomerWriteService
in package
implements
CustomerWriteService
Class CustomerWriteService
Interfaces, Classes and Traits
- CustomerWriteService
- Interface CustomerWriteService
Table of Contents
- $defaultCustomerGroup : int
- $factory : CustomerFactory
- $repository : CustomerRepository
- __construct() : mixed
- createCustomer() : CustomerId
- createGuestAccount() : CustomerId
- createMultipleCustomers() : CustomerIds
- createMultipleGuestAccounts() : CustomerIds
- deleteCustomers() : void
- Deletes customers based on the given customer IDs.
- deleteOutdatedGuestAccounts() : void
- Deletes all outdated guests customers (the ones without an active session).
- storeCustomers() : void
- Stores multiple customers.
- defaultCustomerGroup() : int
- parseCreationArguments() : array<string|int, mixed>
Properties
$defaultCustomerGroup
private
int
$defaultCustomerGroup
$factory
private
CustomerFactory
$factory
$repository
private
CustomerRepository
$repository
Methods
__construct()
public
__construct(CustomerFactory $factory, CustomerRepository $repository, ConfigurationService $configurationService) : mixed
Parameters
- $factory : CustomerFactory
- $repository : CustomerRepository
- $configurationService : ConfigurationService
Return values
mixed —createCustomer()
public
createCustomer(PersonalInformation $personalInformation, BusinessInformation $businessInformation, ContactInformation $contactInformation, float $credit[, bool $isFavorite = false ][, int|null $customerGroup = null ]) : CustomerId
Parameters
- $personalInformation : PersonalInformation
- $businessInformation : BusinessInformation
- $contactInformation : ContactInformation
- $credit : float
- $isFavorite : bool = false
- $customerGroup : int|null = null
Tags
Return values
CustomerId —createGuestAccount()
public
createGuestAccount(PersonalInformation $personalInformation, BusinessInformation $businessInformation, ContactInformation $contactInformation, float $credit[, bool $isFavorite = false ][, int|null $customerGroup = null ]) : CustomerId
Parameters
- $personalInformation : PersonalInformation
- $businessInformation : BusinessInformation
- $contactInformation : ContactInformation
- $credit : float
- $isFavorite : bool = false
- $customerGroup : int|null = null
Tags
Return values
CustomerId —createMultipleCustomers()
public
createMultipleCustomers(array<string|int, mixed> ...$creationArguments) : CustomerIds
Parameters
- $creationArguments : array<string|int, mixed>
Tags
Return values
CustomerIds —createMultipleGuestAccounts()
public
createMultipleGuestAccounts(array<string|int, mixed> ...$creationArguments) : CustomerIds
Parameters
- $creationArguments : array<string|int, mixed>
Tags
Return values
CustomerIds —deleteCustomers()
Deletes customers based on the given customer IDs.
public
deleteCustomers(int ...$ids) : void
Parameters
- $ids : int
Tags
Return values
void —deleteOutdatedGuestAccounts()
Deletes all outdated guests customers (the ones without an active session).
public
deleteOutdatedGuestAccounts() : void
Tags
Return values
void —storeCustomers()
Stores multiple customers.
public
storeCustomers(Customer ...$customers) : void
Parameters
- $customers : Customer
Tags
Return values
void —defaultCustomerGroup()
private
defaultCustomerGroup(ConfigurationService $configurationService) : int
Parameters
- $configurationService : ConfigurationService
Return values
int —parseCreationArguments()
private
parseCreationArguments(array<string|int, mixed> ...$creationArguments) : array<string|int, mixed>
Parameters
- $creationArguments : array<string|int, mixed>