Customer

Extends \EasyTransac\Entities\Entity

Represents a customer

author

klyde

copyright

EasyTransac

package

Default

Methods

Allows to set a value not yet implemented in the SDK but available in the API

__call(String $name, Array $arguments) : mixed
inherited

Arguments

$name

String

Name of the parameter to set

$arguments

Array

Response

mixed

__construct

__construct() 
inherited

Attach a api argument converter

addConverter(\EasyTransac\Entities\EasyTransac\Converters\IConverter $converter) : \EasyTransac\Entities\Entity
inherited

Arguments

$converter

\EasyTransac\Entities\EasyTransac\Converters\IConverter

Response

\EasyTransac\Entities\Entity

Call all registred converters

callConverters(Mixed $value) : Mixed
inherited

Arguments

$value

Mixed

Response

Mixed

getAddress

getAddress() 

getBic

getBic() 

getBirthDate

getBirthDate() 

getCallingCode

getCallingCode() 

getCity

getCity() 

getClientId

getClientId() 

getCommunication

getCommunication() 

getCompany

getCompany() 

getCountry

getCountry() 

getEmail

getEmail() 

getFirstname

getFirstname() 

getIban

getIban() 

getLastname

getLastname() 

getNationality

getNationality() 

getPhone

getPhone() 

getUid

getUid() 

getZipCode

getZipCode() 

Allows to fill the entity with data returned by the EasyTransac API

hydrate(Mixed $fields, Boolean $checkRequired = false) : \EasyTransac\Entities\Entity
inherited

Arguments

$fields

Mixed

Array or \stdClass

$checkRequired

Boolean

Response

\EasyTransac\Entities\Entity

Fill the entity with the API json response

hydrateWidthObject(\stdClass $fields, Boolean $checkRequired = false) 
inherited

Arguments

$fields

\stdClass

$checkRequired

Boolean

Fill the entity with an list of entity (see: CreditCardList with comment tag @array)

hydrateWithArray(\EasyTransac\Entities\Array<Entity> $itemsList, Boolean $checkRequired = false) 
inherited

Arguments

$itemsList

\EasyTransac\Entities\Array

$checkRequired

Boolean

Make the mapping between class attributes and API fields

makeMapping() 
inherited

setAddress

setAddress( $value) 

Arguments

$value

setBic

setBic( $bic) 

Arguments

$bic

setBirthDate

setBirthDate( $value) 

Arguments

$value

setCallingCode

setCallingCode( $value) 

Arguments

$value

setCity

setCity( $value) 

Arguments

$value

setClientId

setClientId( $clientId) 

Arguments

$clientId

setCommunication

setCommunication( $communication) 

Arguments

$communication

setCompany

setCompany( $company) 

Arguments

$company

setCountry

setCountry( $value) 

Arguments

$value

setEmail

setEmail( $value) 

Arguments

$value

setFirstname

setFirstname( $value) 

Arguments

$value

setIban

setIban( $iban) 

Arguments

$iban

setLastname

setLastname( $value) 

Arguments

$value

setNationality

setNationality( $value) 

Arguments

$value

setPhone

setPhone( $value) 

Arguments

$value

setUid

setUid( $value) 

Arguments

$value

setZipCode

setZipCode( $value) 

Arguments

$value

Prepares an array with the class fields formatted for the API

toArray() : Array
inherited

Response

Array

Properties

email

email : 
map

:Email *

Type(s)

firstname

firstname : 
map

:Firstname *

Type(s)

lastname

lastname : 
map

:Lastname *

Type(s)

callingCode

callingCode : 
map

:CallingCode *

Type(s)

phone

phone : 
map

:Phone *

Type(s)

birthDate

birthDate : 
map

:BirthDate *

Type(s)

nationality

nationality : 
map

:Nationality *

Type(s)

address

address : 
map

:Address *

Type(s)

zipCode

zipCode : 
map

:ZipCode *

Type(s)

city

city : 
map

:City *

Type(s)

country

country : 
map

:Country *

Type(s)

uid

uid : 
map

:Uid *

Type(s)

clientId

clientId : 
map

:ClientId *

Type(s)

company

company : 
map

:Company *

Type(s)

iban

iban : 
map

:Iban *

Type(s)

bic

bic : 
map

:Bic *

Type(s)

communication

communication : 
map

:Communication *

Type(s)

mapping

mapping : 
inherited

Type(s)

additionalFields

additionalFields : 
inherited

Type(s)

converters

converters : 
inherited

Type(s)