OneClickTransaction

Extends \EasyTransac\Entities\Entity

Represents arguments of the request "OneClickPayment"

author

klyde

copyright

EasyTransac

package

Default

Methods

__construct

__construct() 
inherited

getAlias

getAlias() 

getAmount

getAmount() 

getClientIp

getClientIp() 

getDescription

getDescription() 

getLanguage

getLanguage() 

getOrderId

getOrderId() 

getPayToEmail

getPayToEmail() 

getUid

getUid() 

getUserAgent

getUserAgent() 

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

setAmount

setAmount( $value) 

Arguments

$value

setClientIp

setClientIp( $value) 

Arguments

$value

setDescription

setDescription( $value) 

Arguments

$value

setLanguage

setLanguage( $language) 

Arguments

$language

setOrderId

setOrderId( $value) 

Arguments

$value

setPayToEmail

setPayToEmail( $payToEmail) 

Arguments

$payToEmail

setUid

setUid( $value) 

Arguments

$value

setUserAgent

setUserAgent( $userAgent) 

Arguments

$userAgent

Prepares an array with the class fields formatted for the API

toArray() : Array
inherited

Response

Array

Properties

amount

amount : 
map

:Amount *

Type(s)

uid

uid : 
map

:Uid *

Type(s)

orderId

orderId : 
map

:OrderId *

Type(s)

description

description : 
map

:Description *

Type(s)

clientIp

clientIp : 
map

:ClientIp *

Type(s)

alias

alias : 
map

:Alias *

Type(s)

payToEmail

payToEmail : 
map

:PayToEmail *

Type(s)

userAgent

userAgent : 
map

:UserAgent *

Type(s)

language

language : 
map

:Language *

Type(s)

mapping

mapping : 
inherited

Type(s)