![]() |
Transaction interface. More...
Public Member Functions | |
acceptByAccount ($account_id) | |
Set that the account accepted this transaction. More... | |
apply () | |
Apply this transaction. More... | |
check () | |
Check this transaction. More... | |
getAmount (CesBankCurrency $currency=NULL) | |
Get the amount of this transaction, in the seller's exchange currency. More... | |
getConcept () | |
Get the short description of this transaction. More... | |
getCreated () | |
Get the time the transaction was created. More... | |
getFromAccountName () | |
Get the name of the buyer account. More... | |
getId () | |
Get the identifier of this transaction. More... | |
getLog ($state) | |
Get messages logged for this transaction. More... | |
getState () | |
Get the state of this transaction. More... | |
getToAccountName () | |
Get the name of the seller account. More... | |
getUser () | |
Get the user id that has created this transaction. More... | |
revoke () | |
Revoke this transaction. More... | |
trigger () | |
Trigger this transaction. More... | |
Data Fields | |
const | STATE_ACCEPTED = 2 |
The transaction has been accepted by all authorities. More... | |
const | STATE_ARCHIVED = 4 |
The transaction is archieved and successfully applied. More... | |
const | STATE_COMMITTED = 3 |
The transaction has been successfully applied. More... | |
const | STATE_DISCARDED = 6 |
The transaction is discarded and has not been applied. More... | |
const | STATE_ERROR = 11 |
There has been a system error with this transaction. More... | |
const | STATE_NEW = 0 |
The transaction has been created but hasn't already been triggered to apply. More... | |
const | STATE_REJECTED = 5 |
The transaction -triggered to apply- has been rejected by some of the authorities. More... | |
const | STATE_REVOKE_ACCEPTED = 8 |
The revoke operation has been accepted by all authorities. More... | |
const | STATE_REVOKE_REJECTED = 9 |
Some authorities rejected the revoke operation, so the transaction will remain applied. More... | |
const | STATE_REVOKE_TRIGGERED = 7 |
The transaction has been triggered to be revoked. More... | |
const | STATE_REVOKED = 10 |
The transaction has been successfully revoked. More... | |
const | STATE_TRIGGERED = 1 |
The transaction has been triggered to be applied. More... | |
Transaction interface.
Transactions: A transaction is an amount of money to be transferred from one account to another account. The basic transaction moves certanin quantity of money through two accounts within the same exchange. There are other kind of transactions moving currency between servers or third party applications. In each exchange there is an special account called 'virtual account'. This account acts as the foreign account for all inter-exchange transactions. It is also used to temporally save the money in delayed transactions.