Package org.cyclos.entities.banking
Class AccountFee
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.NamedEntity
-
- org.cyclos.entities.ConfigurationEntity
-
- org.cyclos.entities.banking.AccountFee
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasCurrency,HasNetwork,ProcessableForProxying,IEntity,IInternalNamedEntity,INamedEntity,UsesScript
@Entity public class AccountFee extends ConfigurationEntity implements HasCurrency, UsesScript
Taxes are charged over all accounts of a given type
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description AccountFee()
-
Method Summary
-
Methods inherited from class org.cyclos.entities.ConfigurationEntity
getDescription, getInternalName, setDescription, setInternalName, toShortString, toString
-
Methods inherited from class org.cyclos.entities.NamedEntity
compareTo, getName, getNames, setName
-
Methods inherited from class org.cyclos.entities.BaseEntity
getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrency
round, withCurrency
-
Methods inherited from interface org.cyclos.model.IInternalNamedEntity
matches
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
getAccountType
public UserAccountType getAccountType()
-
getAmount
public BigDecimal getAmount()
-
getBalanceHandling
public AccountFeeBalanceHandling getBalanceHandling()
-
getChargeMode
public AccountFeeChargeMode getChargeMode()
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency
-
getCustomScript
public CustomScript getCustomScript()
-
getCustomScriptParameters
public String getCustomScriptParameters()
-
getDataTranslationType
public DataTranslationType getDataTranslationType()
Description copied from class:BaseEntityIf this entity allows data translation, should return the translation type- Overrides:
getDataTranslationTypein classBaseEntity
-
getDayMonth
public Integer getDayMonth()
-
getDayWeek
public WeekDay getDayWeek()
-
getEnabledSince
public Date getEnabledSince()
-
getFreeBase
public BigDecimal getFreeBase()
-
getHour
public Integer getHour()
-
getLogs
public Set<AccountFeeLog> getLogs()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getPaymentDirection
public AccountFeePaymentDirection getPaymentDirection()
-
getRecurrence
public TimeInterval getRecurrence()
-
getRunMode
public AccountFeeRunMode getRunMode()
-
getScriptUsedInType
public CustomScriptUsedInType getScriptUsedInType()
Description copied from interface:UsesScriptReturns the type of script usage- Specified by:
getScriptUsedInTypein interfaceUsesScript
-
getTransferType
public GeneratedTransferType getTransferType()
-
isEnabled
public boolean isEnabled()
Description copied from interface:UsesScriptIndicates whether this entity is enabled- Specified by:
isEnabledin interfaceUsesScript
-
isManual
public boolean isManual()
-
isNotifyWhenSuccess
public boolean isNotifyWhenSuccess()
-
isScheduled
public boolean isScheduled()
-
setAccountType
public void setAccountType(UserAccountType accountType)
-
setAmount
public void setAmount(BigDecimal amount)
-
setBalanceHandling
public void setBalanceHandling(AccountFeeBalanceHandling balanceHandling)
-
setChargeMode
public void setChargeMode(AccountFeeChargeMode chargeMode)
-
setCustomScript
public void setCustomScript(CustomScript customScript)
-
setCustomScriptParameters
public void setCustomScriptParameters(String customScriptParameters)
-
setDayMonth
public void setDayMonth(Integer dayMonth)
-
setDayWeek
public void setDayWeek(WeekDay dayWeek)
-
setEnabled
public void setEnabled(boolean enabled)
-
setEnabledSince
public void setEnabledSince(Date enabledSince)
-
setFreeBase
public void setFreeBase(BigDecimal freeBase)
-
setHour
public void setHour(Integer hour)
-
setLogs
public void setLogs(Set<AccountFeeLog> logs)
-
setNotify
public void setNotify(boolean notify)
-
setNotifyWhenSuccess
public void setNotifyWhenSuccess(boolean notifyWhenSuccess)
-
setPaymentDirection
public void setPaymentDirection(AccountFeePaymentDirection paymentDirection)
-
setRecurrence
public void setRecurrence(TimeInterval recurrence)
-
setRunMode
public void setRunMode(AccountFeeRunMode runMode)
-
setTransferType
public void setTransferType(GeneratedTransferType transferType)
-
-