Package org.cyclos.entities.banking
Interface Trans
-
- All Superinterfaces:
HasAmount,HasCurrency,HasCurrencyAmount,HasTransactionNumber,IEntity,ProcessableForProxying
- All Known Subinterfaces:
TransactionWithInstallments<I>
- All Known Implementing Classes:
AccountFeeTransfer,AccountHistoryEntry,BalanceDisposalTransfer,BasePayment,ChargebackTransfer,ExternalPayment,ImportTransaction,ImportTransfer,InitialCreditTransfer,Installment,InstallmentTransfer,InternalTransaction,Payment,PaymentRequest,PaymentTransfer,RecurringPayment,RecurringPaymentOccurrence,ScheduledPayment,ScheduledPaymentInstallment,Ticket,Transaction,Transfer,TransferFeeTransfer,TransWrapper
public interface Trans extends HasTransactionNumber, HasCurrencyAmount, ProcessableForProxying
Common interface for transfers and transactions
-
-
Method Summary
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrency
getCurrency, round, withCurrency
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrencyAmount
getCurrencyAmount
-
Methods inherited from interface org.cyclos.model.banking.transactions.HasTransactionNumber
getTransactionNumber
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
getAccessClient
AccessClient getAccessClient()
-
getActualAmount
default BigDecimal getActualAmount(InternalAccountOwner owner)
-
getAmount
BigDecimal getAmount()
-
getChannel
Channel getChannel()
-
getCustomValues
Set<TransactionCustomFieldValue> getCustomValues()
-
getCustomValuesForExport
default Set<TransactionCustomFieldValue> getCustomValuesForExport()
This method is invoked when exporting / indexing the visible custom fields.
For some kind of transfers we need access to the transaction's custom values (e.gTransferFeeTransfer) without exposing the other data own by theTransaction(by, receivedBy, etc) The default implementation return the same asgetCustomValues()
-
getDate
Date getDate()
-
getFrom
Account getFrom()
-
getFromName
String getFromName()
-
getFromOwner
default InternalAccountOwner getFromOwner()
-
getFromOwnerOrType
default Object getFromOwnerOrType()
When from a user, returns the user. When from system, returns the system account type.
-
getFromType
default AccountType getFromType()
-
getFromUser
default User getFromUser()
-
getRelatedAccount
default Account getRelatedAccount(InternalAccountOwner owner)
-
getRelatedOwner
default AccountOwner getRelatedOwner(InternalAccountOwner owner)
-
getTo
Account getTo()
-
getToName
String getToName()
-
getToOwner
default AccountOwner getToOwner()
-
getToOwnerOrType
default Object getToOwnerOrType()
When to a user, returns the user. When to system, returns the system account type.
-
getToType
default AccountType getToType()
-
getToUser
default User getToUser()
-
getTransactionNumberOrId
default String getTransactionNumberOrId()
-
getType
TransferType getType()
-
isDebit
default boolean isDebit(InternalAccountOwner owner)
-
isFromSystem
default boolean isFromSystem()
-
isFromUser
default boolean isFromUser()
-
isToSystem
default boolean isToSystem()
-
isToUser
default boolean isToUser()
-
-