Class Customer

Class Customer

This class is used for managing customer data

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

Methods summary

public __construct( void )

Constructor of the class Customer

public getId( void ) : integer

Returns the customer's ID.

public getAddonValueContainerId( void ) : integer

Returns the customer ID.

public getCustomerNumber( void ) : string

Returns the customer's number.

public setCustomerNumber( CustomerNumberInterface $customerNumber )

Sets the customer's number.

public getStatusId( void ) : integer

Returns the customer's status ID.

public setStatusId( integer $p_statusId )

Sets the customer's status ID.

public isGuest( void ) : boolean

Checks if customer is a guest.

public getGender( void ) : CustomerGenderInterface

Returns the customer's gender.

public getFirstname( void ) : CustomerFirstnameInterface

Returns the customer's first name.

public getLastname( void ) : CustomerLastnameInterface

Returns the customer's last name.

public getDateOfBirth( void ) : DateTime

Returns the customer's date of birth.

public getVatNumber( void ) : CustomerVatNumberInterface

Returns the customer's VAT number.

public getVatNumberStatus( void ) : integer

Returns the customer's VAT number status.

public getTelephoneNumber( void ) : CustomerCallNumberInterface

Returns the customer's telephone number.

public getFaxNumber( void ) : CustomerCallNumberInterface

Returns the customer's fax number.

public getEmail( void ) : CustomerEmailInterface

Returns the customer's email.

public getPassword( void ) : CustomerPasswordInterface

Returns the customer's password.

public getDefaultAddress( void ) : CustomerAddressInterface

Returns the customer's default address.

public setGuest( boolean $p_isPGuest )

Sets the customer's guest status.

public setId( IdType $id )

Sets the customer's ID.

public setGender( CustomerGenderInterface $gender )

Sets the customer's gender.

public setFirstname( CustomerFirstnameInterface $firstname )

Sets the customer's first name.

public setLastname( CustomerLastnameInterface $lastname )

Sets the customer's last name.

public setDateOfBirth( DateTime $dateOfBirth )

Sets the customer's date of birth.

public setVatNumber( CustomerVatNumberInterface $vatNumber )

Sets the customer's VAT number.

public setVatNumberStatus( integer $p_vatNumberStatus )

Sets the customer's VAT number status.

public setTelephoneNumber( CustomerCallNumberInterface $telephoneNumber )

Sets the customer's telephone number.

public setFaxNumber( CustomerCallNumberInterface $faxNumber )

Sets the customer's fax number.

public setEmail( CustomerEmailInterface $email )

Sets the customer's email.

public setPassword( CustomerPasswordInterface $password )

Sets the customer's password.

public setDefaultAddress( CustomerAddressInterface $address )

Sets the customer's default address.

public getAddonValue( StringType $key ) : string

Get Addon Value

public getAddonValues( void ) : KeyValueCollection

Get Addon Values

public setAddonValue( StringType $key, StringType $value ) : GXEngineProduct

Set Addon Value

public addAddonValues( KeyValueCollection $keyValueCollection ) : GXEngineProduct

Add Addon Values

public deleteAddonValue( StringType $key ) : GXEngineProduct

Delete Addon Value

Properties summary

protected $id : integer

Customer ID.


		
protected $customerNumber : CustomerNumberInterface

Customer number.


		
protected $gender : CustomerGenderInterface

Customer gender.


		
protected $firstname : CustomerFirstnameInterface

Customer first name.


		
protected $lastname : CustomerLastnameInterface

Customer last name.


		
protected $dateOfBirth : DateTime

Customer date of birth.


		
protected $vatNumber : CustomerVatNumberInterface

Customer VAT number.


		
protected $vatNumberStatus : integer

Customer VAT number status.

0
protected $telephoneNumber : CustomerCallNumberInterface

Customer call number.


		
protected $faxNumber : CustomerCallNumberInterface

Customer fax number.


		
protected $email : CustomerEmailInterface

Customer E-Mail address.


		
protected $password : CustomerPasswordInterface

Customer password.


		
protected $defaultAddress : CustomerAddressInterface

Customer default address.


		
protected $customerStatusId : integer

Customer status ID.

0
protected $isGuest : boolean

Customer guest status.

false
protected $addonValues : EditableKeyValueCollection

Addons collection.