Generated by
JDiff

Class org.cyclos.model.banking.transactions.TransactionNature

Removed Methods
List<TransactionNature> getInverses() Returns a list with the natures representing inverse transactions.
 

Added Methods
List<TransactionNature> getInvertedAccordingToAccountOwner() Returns those natures having the account owners inverted when viewing a transaction from an account owner point of view.
For example in normal (direct) payments the originated (i.e the from) owner has a TransferDirection.DEBIT and the destinatary (i.e the to) owner has a TransferDirection.CREDIT, but in the case of the returned natures here it is in the opposite way.
For example a transaction with nature TransactionNature.PAYMENT_REQUEST is a TransferDirection.CREDIT for the from owner and a TransferDirection.DEBIT for the to owner.
List<TransactionNature> getInvertedAccordingToTransferTypeDirection() Returns those natures inverted according to the TransferTypeDirection they have set.
For example a chargeback of a TransferTypeDirection.USER_TO_SYSTEM payment has the same direction of the payment it charged back, but it's inverse in the sense of it's a TransferDirection.DEBIT for system instead of a TransferDirection.CREDIT.

In case of TransactionNature.PAYMENT_REQUEST and TransactionNature.TICKET they have the same direction too but are not inverse, that is: they really represents a TransferDirection.CREDIT to system.