@Entity public abstract class Transaction extends BaseEntity implements HasTransactionNumber, HasCurrency, EntityWithCustomValues<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue,TransactionCustomFieldValue>
Transfers.| Modifier and Type | Class and Description |
|---|---|
static class |
Transaction.TransactionCustomizer
Customizer to allow direct access to fields on queries
|
| Constructor and Description |
|---|
Transaction() |
| Modifier and Type | Method and Description |
|---|---|
AccessClient |
getAccessClient() |
BasicUser |
getActualBy()
Returns the user that made the payment: the from owner or the the by user.
|
java.math.BigDecimal |
getAmount() |
BasicUser |
getBy()
Returns the user that made the payment only if different from the "from account owner".
|
Channel |
getChannel() |
Currency |
getCurrency() |
CurrencyAmount |
getCurrencyAmount() |
java.lang.Class<TransactionCustomField> |
getCustomFieldClass()
Returns custom field the class on this entity
|
java.lang.Class<TransactionCustomFieldValue> |
getCustomFieldValueClass()
Returns the class for storing custom field values
|
java.util.Set<TransactionCustomFieldValue> |
getCustomValues()
Returns all custom field values
|
java.util.Date |
getDate() |
java.lang.String |
getDescription() |
abstract AccountLocator |
getDestinationAccountLocator() |
EntityImportance |
getEntityImportance() |
java.lang.String |
getFromName() |
InternalAccountOwner |
getFromOwner() |
User |
getFromUser() |
abstract Location |
getLocation() |
abstract TransactionNature |
getNature() |
Network |
getNetwork() |
PaymentRequest |
getPaymentRequest() |
PrincipalType |
getPrincipalType() |
abstract java.util.Date |
getProcessDate()
Returns the date the transaction was actually processed
|
abstract AccountLocator |
getSourceAccountLocator() |
java.lang.String |
getToName() |
AccountOwner |
getToOwner() |
User |
getToUser() |
java.lang.String |
getTransactionNumber() |
TransactionNumber |
getTransactionNumberRef() |
TransferType |
getType() |
boolean |
isFromSystem() |
boolean |
isFromUser() |
boolean |
isToSystem() |
boolean |
isToUser() |
void |
setAccessClient(AccessClient accessClient) |
void |
setAmount(java.math.BigDecimal amount) |
void |
setBy(BasicUser by) |
void |
setBySelf(boolean bySelf) |
void |
setChannel(Channel channel) |
void |
setCustomValues(java.util.Set<TransactionCustomFieldValue> customValues) |
void |
setDate(java.util.Date date) |
void |
setDescription(java.lang.String description) |
void |
setFromName(java.lang.String fromName) |
void |
setFromOwner(InternalAccountOwner from) |
void |
setFromUser(User fromUser) |
void |
setPrincipalType(PrincipalType principalType) |
void |
setToName(java.lang.String toName) |
void |
setToOwner(AccountOwner to) |
void |
setToUser(User toUser) |
void |
setTransactionNumberRef(TransactionNumber transactionNumberRef) |
void |
setType(TransferType type) |
getDataTranslationType, getLogType, getVersion, isGlobal, isPersistent, isTransientclone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, toStringpublic AccessClient getAccessClient()
public BasicUser getActualBy()
public java.math.BigDecimal getAmount()
public BasicUser getBy()
SystemSessionData).ScriptSessionData) without a logged user.getActualBy() that will take into account the cases described above and also
won't return null if the the payment was made by the from owner (this method will).getActualBy()public Channel getChannel()
public Currency getCurrency()
getCurrency in interface HasCurrencypublic CurrencyAmount getCurrencyAmount()
public java.lang.Class<TransactionCustomField> getCustomFieldClass()
EntityWithCustomValuespublic java.lang.Class<TransactionCustomFieldValue> getCustomFieldValueClass()
EntityWithCustomValuespublic java.util.Set<TransactionCustomFieldValue> getCustomValues()
EntityWithCustomValuespublic java.util.Date getDate()
public java.lang.String getDescription()
public abstract AccountLocator getDestinationAccountLocator()
public EntityImportance getEntityImportance()
getEntityImportance in interface HasEntityImportancegetEntityImportance in class SimpleEntitypublic java.lang.String getFromName()
public InternalAccountOwner getFromOwner()
public User getFromUser()
public abstract Location getLocation()
public abstract TransactionNature getNature()
public Network getNetwork()
getNetwork in class BaseEntitypublic PaymentRequest getPaymentRequest()
public PrincipalType getPrincipalType()
public abstract java.util.Date getProcessDate()
public abstract AccountLocator getSourceAccountLocator()
public java.lang.String getToName()
public AccountOwner getToOwner()
public User getToUser()
public java.lang.String getTransactionNumber()
getTransactionNumber in interface HasTransactionNumberpublic TransactionNumber getTransactionNumberRef()
public TransferType getType()
public boolean isFromSystem()
public boolean isFromUser()
public boolean isToSystem()
public boolean isToUser()
public void setAccessClient(AccessClient accessClient)
public void setAmount(java.math.BigDecimal amount)
public void setBy(BasicUser by)
public void setBySelf(boolean bySelf)
public void setChannel(Channel channel)
public void setCustomValues(java.util.Set<TransactionCustomFieldValue> customValues)
public void setDate(java.util.Date date)
public void setDescription(java.lang.String description)
public void setFromName(java.lang.String fromName)
public void setFromOwner(InternalAccountOwner from)
public void setFromUser(User fromUser)
public void setPrincipalType(PrincipalType principalType)
public void setToName(java.lang.String toName)
public void setToOwner(AccountOwner to)
public void setToUser(User toUser)
public void setTransactionNumberRef(TransactionNumber transactionNumberRef)
public void setType(TransferType type)