interface TransactionServiceInterface

Interface to be called for DI for TransactionServiceInterface related services

Methods

add($orderId, $credits, $description, $user)

Adds Transaction + User's credits

addPayment(Payment $payment, $credits, $user)

Adds a Pyment in Transaction

create($orderId = null)

Creates Transaction

mixed
getAll($user)

Gets all the Transaction for the user

persist(Transaction $transaction, $user)

Persists Transaction + User's data

Details

at line 26
Transaction add($orderId, $credits, $description, $user)

Adds Transaction + User's credits

Parameters

$orderId
$credits
$description
$user

Return Value

Transaction

at line 32
Transaction addPayment(Payment $payment, $credits, $user)

Adds a Pyment in Transaction

Parameters

Payment $payment
$credits
$user

Return Value

Transaction

at line 38
Transaction create($orderId = null)

Creates Transaction

Parameters

$orderId

Return Value

Transaction

at line 44
mixed getAll($user)

Gets all the Transaction for the user

Parameters

$user

Return Value

mixed

at line 49
persist(Transaction $transaction, $user)

Persists Transaction + User's data

Parameters

Transaction $transaction
$user