Customer
Customer identities and commercial account information.
Integration
Extend the Business Core document and collection in your application and map the concrete classes. Adjust the namespace and class names as needed.
<?php
namespace MyApplication;
use Core\Document\Annotation\Database;
#[Database(document: MyCustomer::class)]
class MyCustomerCollection extends \BusinessCore\Collection\Party\CustomerCollection\Base
{
}
#[Database(document: MyCustomerCollection::class)]
class MyCustomer extends \BusinessCore\Document\Party\Customer\Base
{
}
Properties
Properties declared by BusinessCore\Document\Party\Customer\Base, excluding inherited Core
Document properties.
| Property | PHP type |
|---|---|
externalId |
ObjectId|null |
customerNumber |
string|null |
customerGroupId |
ObjectId|null |
customerType |
string|null |
status |
string|null |
salutation |
string|null |
title |
string|null |
firstName |
string|null |
middleName |
string|null |
lastName |
string|null |
fullName |
string|null |
company |
string|null |
companyAddition |
string|null |
department |
string|null |
position |
string|null |
email |
string|null |
phone |
string|null |
mobile |
string|null |
fax |
string|null |
website |
string|null |
addresses |
array|null |
userId |
ObjectId|null |
username |
string|null |
vatId |
string|null |
taxNumber |
string|null |
eoriNumber |
string|null |
commercialRegister |
string|null |
currencyCode |
string|null |
languageKey |
string|null |
priceGroupId |
ObjectId|null |
discountGroupId |
ObjectId|null |
paymentTermId |
ObjectId|null |
paymentMethodId |
ObjectId|null |
shippingMethodId |
ObjectId|null |
source |
string|null |
customerSince |
DateTime|null |
lastOrderAt |
DateTime|null |
lastContactAt |
DateTime|null |
blockedAt |
DateTime|null |
blockedReason |
string|null |
isActive |
bool|null |
isGuest |
bool|null |
isCompany |
bool|null |
isVerified |
bool|null |
isBlocked |
bool|null |
isNewsletterSubscribed |
bool|null |
note |
string|null |
internalNote |
string|null |
tags |
array|null |
customFields |
array|null |