ITransaction
From Virtual World Web Wiki
Represents a financial system transaction
- Inherits interface: ITransactionInfo
- Inherits interface: INeedAccountResolve
Remarks [edit]
Methods
- ITransactionTargetInfo AddTarget(Guid entityID, Decimal amount)
- Adds a target (recipient or payer) to the transaction
- TransactionAuthResult Authorize()
- Resolves the financial accounts for the source and targets, validates the transaction, and writes it to the database. This method can only succeed once per transaction, but can be called more than once.
- void Cancel()
- Called to cancel a transaction. The transaction must be authorized first, but then, this method must succeed.
- void Settle()
- Called to settle a transaction. The transaction must be authorized first, but then, this method must succeed.