CreditCard

Extends \EasyTransac\Entities\Entity

Represents a credit card

author

klyde

copyright

EasyTransac

package

Default

Methods

__construct

__construct() 
inherited

getAlias

getAlias() 

getCountry

getCountry() 

getCVV

getCVV() 

getEom

getEom() 

getKsn

getKsn() 

getLastAccessed

getLastAccessed() 

getMonth

getMonth() 

getNumber

getNumber() 

getOwner

getOwner() 

getType

getType() 

getYear

getYear() 

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

setAlias

setAlias( $value) 

Arguments

$value

setCountry

setCountry( $value) 

Arguments

$value

setCVV

setCVV( $value) 

Arguments

$value

setEom

setEom( $value) 

Arguments

$value

setKsn

setKsn( $value) 

Arguments

$value

setLastAccessed

setLastAccessed( $value) 

Arguments

$value

setMonth

setMonth( $value) 

Arguments

$value

setNumber

setNumber( $value) 

Arguments

$value

setOwner

setOwner( $value) 

Arguments

$value

setType

setType( $value) 

Arguments

$value

setYear

setYear( $value) 

Arguments

$value

Prepares an array with the class fields formatted for the API

toArray() : Array
inherited

Response

Array

Properties

number

number : 
map

:CardNumber *

Type(s)

month

month : 
map

:CardMonth *

Type(s)

year

year : 
map

:CardYear *

Type(s)

CVV

CVV : 
map

:CardCVV *

Type(s)

owner

owner : 
map

:CardOwner *

Type(s)

alias

alias : 
map

:Alias *

Type(s)

eom

eom : 
map

:EOM *

Type(s)

ksn

ksn : 
map

:KSN *

Type(s)

type

type : 
map

:CardType *

Type(s)

country

country : 
map

:CardCountry *

Type(s)

lastAccessed

lastAccessed : 
map

:LastAccessed *

Type(s)

mapping

mapping : 
inherited

Type(s)