phpDocumentor

CustomerWriteService 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

Methods

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
inheritDoc
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
inheritDoc
Return values
CustomerId

createMultipleCustomers()

public createMultipleCustomers(array<string|int, mixed> ...$creationArguments) : CustomerIds
Parameters
$creationArguments : array<string|int, mixed>
Tags
inheritDoc
Return values
CustomerIds

createMultipleGuestAccounts()

public createMultipleGuestAccounts(array<string|int, mixed> ...$creationArguments) : CustomerIds
Parameters
$creationArguments : array<string|int, mixed>
Tags
inheritDoc
Return values
CustomerIds

deleteCustomers()

Deletes customers based on the given customer IDs.

public deleteCustomers(int ...$ids) : void
Parameters
$ids : int
Tags
inheritDoc
Return values
void

deleteOutdatedGuestAccounts()

Deletes all outdated guests customers (the ones without an active session).

public deleteOutdatedGuestAccounts() : void
Tags
inheritDoc
Return values
void

storeCustomers()

Stores multiple customers.

public storeCustomers(Customer ...$customers) : void
Parameters
$customers : Customer
Tags
inheritDoc
Return values
void

parseCreationArguments()

private parseCreationArguments(array<string|int, mixed> ...$creationArguments) : array<string|int, mixed>
Parameters
$creationArguments : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results