\Ezypay\ObjectCustomer

Class Customer

Customer object class

Summary

Methods
Properties
Constants
__construct()
fullName()
getFirstName()
getSurname()
getEmail()
getCustomerId()
getrefernceId()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$customerId
$firstName
$surname
$email
$gender
$dateOfBirth
$companyName
$merchantId
$customerNumber
$homePhone
$mobilePhone
$referenceId
$address
$createdOn
N/A

Properties

$customerId

$customerId : string

Type

string — The ID of the customer. A unique identifier generated by the system.

$firstName

$firstName : string

Type

string — Customer's first name.

$surname

$surname : string

Type

string — Customer's last name.

$email

$email : string

Type

string — Customer's email address.

$gender

$gender : string

Type

string — Customer's gender.

$dateOfBirth

$dateOfBirth : string

Type

string — Customer's date of birth.

$companyName

$companyName : string

Type

string — Customer's company name.

$merchantId

$merchantId : string

Type

string — The ID of the merchant. A unique identifier to filter customers that belong to a merchant.

$customerNumber

$customerNumber : integer

Type

integer — Customer's unique number.

$homePhone

$homePhone : string

Type

string — Customer's home phone number.

$mobilePhone

$mobilePhone : string

Type

string — Customer's mobile phone number.

$referenceId

$referenceId : string

Type

string — The reference ID of the customer. A unique identifier from a third-party software integration.

$address

$address : 

Type

— array CustomerAddressResultCustomer's address.

$createdOn

$createdOn : string

Type

string — Date record is created.

Methods

__construct()

__construct(  $data) 

Customer constructor.

Parameters

$data

array

fullName()

fullName() : string

fullName

Return full nema for customer

Returns

string

getFirstName()

getFirstName() : string

Return customer first name

Returns

string

getSurname()

getSurname() : string

Return customer surname

Returns

string

getEmail()

getEmail() : string

Return customer email

Returns

string

getCustomerId()

getCustomerId() : string

Return customer ID (ezypay ID)

Returns

string —

return ezypay id

getrefernceId()

getrefernceId() : string

Return customer reference ID

Returns

string —

return refernece ID