Class ShareAccountCharge

java.lang.Object
org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom<Long>
org.apache.fineract.portfolio.shareaccounts.domain.ShareAccountCharge
All Implemented Interfaces:
Serializable, Cloneable, org.eclipse.persistence.descriptors.changetracking.ChangeTracker, org.eclipse.persistence.internal.descriptors.PersistenceEntity, org.eclipse.persistence.internal.descriptors.PersistenceObject, org.eclipse.persistence.internal.weaving.PersistenceWeaved, org.eclipse.persistence.internal.weaving.PersistenceWeavedChangeTracking, org.eclipse.persistence.internal.weaving.PersistenceWeavedFetchGroups, org.eclipse.persistence.queries.FetchGroupTracker, org.springframework.data.domain.Persistable<Long>

@Entity public class ShareAccountCharge extends org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom<Long>
See Also:
  • Field Summary

    Fields inherited from class org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom

    _persistence_cacheKey, _persistence_fetchGroup, _persistence_listener, _persistence_primaryKey, _persistence_session, _persistence_shouldRefreshFetchGroup
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    createNewWithoutShareAccount(org.apache.fineract.portfolio.charge.domain.Charge chargeDefinition, BigDecimal amountPayable, org.apache.fineract.portfolio.charge.domain.ChargeTimeType chargeTime, org.apache.fineract.portfolio.charge.domain.ChargeCalculationType chargeCalculation, boolean status)
     
     
    deriveChargeAmount(BigDecimal transactionAmount, org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
     
    org.apache.fineract.organisation.monetary.domain.Money
    getAmount(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
     
    org.apache.fineract.organisation.monetary.domain.Money
    getAmountOutstanding(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
     
    org.apache.fineract.organisation.monetary.domain.Money
    getAmountWaived(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
     
    org.apache.fineract.organisation.monetary.domain.Money
    getAmountWrittenOff(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
     
    org.apache.fineract.portfolio.charge.domain.Charge
     
     
     
    boolean
    hasCurrencyCodeOf(String matchingCurrencyCode)
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
    isPaidOrPartiallyPaid(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    void
     
     
    org.apache.fineract.organisation.monetary.domain.Money
    pay(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency, org.apache.fineract.organisation.monetary.domain.Money amountPaid)
     
     
    void
    resetToOriginal(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
     
    void
    setActive(boolean active)
     
     
    void
    undoPayment(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency, org.apache.fineract.organisation.monetary.domain.Money transactionAmount)
     
    void
    undoWaiver(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency, org.apache.fineract.organisation.monetary.domain.Money transactionAmount)
     
    void
    update(BigDecimal transactionAmount, BigDecimal amount)
     
    void
    update(ShareAccount shareAccount)
     
    updateChargeDetailsForAdditionalSharesRequest(BigDecimal transactionAmount, org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
     
    org.apache.fineract.organisation.monetary.domain.Money
    updatePaidAmountBy(org.apache.fineract.organisation.monetary.domain.Money incrementBy)
     
     
    org.apache.fineract.organisation.monetary.domain.Money
    waive(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
     

    Methods inherited from class org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom

    _persistence_checkFetched, _persistence_checkFetchedForSet, _persistence_get, _persistence_get_id, _persistence_getCacheKey, _persistence_getFetchGroup, _persistence_getId, _persistence_getPropertyChangeListener, _persistence_getSession, _persistence_isAttributeFetched, _persistence_new, _persistence_post_clone, _persistence_propertyChange, _persistence_resetFetchGroup, _persistence_set, _persistence_set_id, _persistence_setCacheKey, _persistence_setFetchGroup, _persistence_setId, _persistence_setPropertyChangeListener, _persistence_setSession, _persistence_setShouldRefreshFetchGroup, _persistence_shallow_clone, _persistence_shouldRefreshFetchGroup, getId, isNew, setId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShareAccountCharge

      protected ShareAccountCharge()
  • Method Details

    • createNewWithoutShareAccount

      public static ShareAccountCharge createNewWithoutShareAccount(org.apache.fineract.portfolio.charge.domain.Charge chargeDefinition, BigDecimal amountPayable, org.apache.fineract.portfolio.charge.domain.ChargeTimeType chargeTime, org.apache.fineract.portfolio.charge.domain.ChargeCalculationType chargeCalculation, boolean status)
    • markAsFullyPaid

      public void markAsFullyPaid()
    • resetToOriginal

      public void resetToOriginal(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
    • undoPayment

      public void undoPayment(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency, org.apache.fineract.organisation.monetary.domain.Money transactionAmount)
    • waive

      public org.apache.fineract.organisation.monetary.domain.Money waive(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
    • undoWaiver

      public void undoWaiver(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency, org.apache.fineract.organisation.monetary.domain.Money transactionAmount)
    • pay

      public org.apache.fineract.organisation.monetary.domain.Money pay(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency, org.apache.fineract.organisation.monetary.domain.Money amountPaid)
    • update

      public void update(ShareAccount shareAccount)
    • update

      public void update(BigDecimal transactionAmount, BigDecimal amount)
    • percentageOrAmount

      public BigDecimal percentageOrAmount()
    • amoutOutstanding

      public BigDecimal amoutOutstanding()
    • isNotFullyPaid

      public boolean isNotFullyPaid()
    • isPaid

      public boolean isPaid()
    • isWaived

      public boolean isWaived()
    • isPaidOrPartiallyPaid

      public boolean isPaidOrPartiallyPaid(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
    • getAmount

      public org.apache.fineract.organisation.monetary.domain.Money getAmount(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
    • getAmountWaived

      public org.apache.fineract.organisation.monetary.domain.Money getAmountWaived(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
    • getAmountWrittenOff

      public org.apache.fineract.organisation.monetary.domain.Money getAmountWrittenOff(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
    • getAmountOutstanding

      public org.apache.fineract.organisation.monetary.domain.Money getAmountOutstanding(org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
    • updatePaidAmountBy

      public org.apache.fineract.organisation.monetary.domain.Money updatePaidAmountBy(org.apache.fineract.organisation.monetary.domain.Money incrementBy)
      Parameters:
      incrementBy - Amount used to pay off this charge
      Returns:
      Actual amount paid on this charge
    • name

      public String name()
    • currencyCode

      public String currencyCode()
    • getCharge

      public org.apache.fineract.portfolio.charge.domain.Charge getCharge()
    • shareAccount

      public ShareAccount shareAccount()
    • isShareAccountActivation

      public boolean isShareAccountActivation()
    • isShareAccountClosure

      public boolean isShareAccountClosure()
    • hasCurrencyCodeOf

      public boolean hasCurrencyCodeOf(String matchingCurrencyCode)
    • updateWithdralFeeAmount

      public BigDecimal updateWithdralFeeAmount(BigDecimal transactionAmount)
    • isActive

      public boolean isActive()
    • isNotActive

      public boolean isNotActive()
    • getChargeId

      public Long getChargeId()
    • isSharesPurchaseCharge

      public boolean isSharesPurchaseCharge()
    • isSharesRedeemCharge

      public boolean isSharesRedeemCharge()
    • getChargeTimeType

      public Integer getChargeTimeType()
    • deriveChargeAmount

      public BigDecimal deriveChargeAmount(BigDecimal transactionAmount, org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
    • updateChargeDetailsForAdditionalSharesRequest

      public BigDecimal updateChargeDetailsForAdditionalSharesRequest(BigDecimal transactionAmount, org.apache.fineract.organisation.monetary.domain.MonetaryCurrency currency)
    • setActive

      public void setActive(boolean active)