phpDocumentor

CustomerWriter

Class CustomerWriter

Table of Contents

$connection  : Connection
$vatValidationService  : VatValidationService
__construct()  : mixed
createCustomer()  : int
Creates a new customer and returns its ID.
createMultipleCustomers()  : array<string|int, int>
Creates multiple customers and returns their IDs.
deleteCustomers()  : void
Deletes customers based on the given customer IDs.
deleteOutdatedGuestAccounts()  : array<string|int, int>
Deletes all guests customers
storeCustomers()  : void
Stores multiple customers.
deleteCustomer()  : void
deleteGuestByEmail()  : void
Deletes a guest account by its email address.
emailAddressIsAlreadyTaken()  : bool
storeCustomer()  : void

Properties

Methods

createCustomer()

Creates a new customer and returns its ID.

public createCustomer(CustomerGroup $customerGroup, PersonalInformation $personalInformation, BusinessInformation $businessInformation, ContactInformation $contactInformation, CustomerCredit $credit, bool $isFavorite, bool $isGuestAccount) : int
Parameters
$customerGroup : CustomerGroup
$personalInformation : PersonalInformation
$businessInformation : BusinessInformation
$contactInformation : ContactInformation
$credit : CustomerCredit
$isFavorite : bool
$isGuestAccount : bool
Tags
throws
CreationOfCustomerFailedException
throws
CustomerEmailAddressMustBeUniqueException
Return values
int

deleteOutdatedGuestAccounts()

Deletes all guests customers

public deleteOutdatedGuestAccounts() : array<string|int, int>
Return values
array<string|int, int>

deleteGuestByEmail()

Deletes a guest account by its email address.

private deleteGuestByEmail(string $email) : void
Parameters
$email : string

Guest customer's E-Mail address.

Return values
void

emailAddressIsAlreadyTaken()

private emailAddressIsAlreadyTaken(string $email[, int|null $customerId = null ]) : bool
Parameters
$email : string
$customerId : int|null = null
Return values
bool

Search results