AddCreditCard

Extends \EasyTransac\Entities\Entity

Represents arguments of the request "AddCreditCard"

author

Klyde

copyright

EasyTransac

package

Default

Methods

__construct

__construct() 
inherited

getClientIp

getClientIp() 

getCreditCard

getCreditCard() 

getCustomer

getCustomer() 

getLanguage

getLanguage() 

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

setClientIp

setClientIp( $clientIp) 

Arguments

$clientIp

setCreditCard

setCreditCard(\EasyTransac\Entities\Entity $creditCard) 

Arguments

setCustomer

setCustomer(\EasyTransac\Entities\Entity $customer) 

Arguments

setLanguage

setLanguage( $language) 

Arguments

$language

Prepares an array with the class fields formatted for the API

toArray() : Array
inherited

Response

Array

Properties

customer

customer : 
object

:Customer *

Type(s)

creditCard

creditCard : 
object

:CreditCard *

Type(s)

language

language : 
map

:Language *

Type(s)

clientIp

clientIp : 
map

:ClientIp *

Type(s)

mapping

mapping : 
inherited

Type(s)