Class ShareAccountTransaction

java.lang.Object
org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom<Long>
org.apache.fineract.portfolio.shareaccounts.domain.ShareAccountTransaction
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 ShareAccountTransaction extends org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom<Long>
See Also:
  • Constructor Details

    • ShareAccountTransaction

      protected ShareAccountTransaction()
    • ShareAccountTransaction

      public ShareAccountTransaction(LocalDate transactionDate, Long totalShares, BigDecimal shareValue)
  • Method Details

    • setShareAccount

      public void setShareAccount(ShareAccount shareAccount)
    • createRedeemTransaction

      public static ShareAccountTransaction createRedeemTransaction(LocalDate transactionDate, Long totalShares, BigDecimal shareValue)
    • createChargeTransaction

      public static ShareAccountTransaction createChargeTransaction(LocalDate transactionDate, ShareAccountCharge charge)
    • getPurchasedDate

      public LocalDate getPurchasedDate()
    • getTotalShares

      public Long getTotalShares()
    • getPurchasePrice

      public BigDecimal getPurchasePrice()
    • update

      public void update(LocalDate purchasedDate, Long totalShares, BigDecimal shareValue)
    • approve

      public void approve()
    • undoApprove

      public void undoApprove()
    • reject

      public void reject()
    • isPendingForApprovalTransaction

      public boolean isPendingForApprovalTransaction()
    • isPurchasTransaction

      public boolean isPurchasTransaction()
    • isRedeemTransaction

      public boolean isRedeemTransaction()
    • isChargeTransaction

      public boolean isChargeTransaction()
    • isPurchaseRejectedTransaction

      public boolean isPurchaseRejectedTransaction()
    • addShareAccountChargePaidBy

      public void addShareAccountChargePaidBy(ShareAccountChargePaidBy chargePaidBy)
    • amount

      public BigDecimal amount()
    • chargeAmount

      public BigDecimal chargeAmount()
    • updateChargeAmount

      public void updateChargeAmount(BigDecimal totalChargeAmount)
    • deductChargesFromTotalAmount

      public void deductChargesFromTotalAmount(BigDecimal totalChargeAmount)
    • getChargesPaidBy

      public Set<ShareAccountChargePaidBy> getChargesPaidBy()
    • getTransactionStatus

      public Integer getTransactionStatus()
    • getTransactionType

      public Integer getTransactionType()
    • updateAmountPaid

      public void updateAmountPaid(BigDecimal amountPaid)
    • addAmountPaid

      public void addAmountPaid(BigDecimal amountPaid)
    • resetAmountPaid

      public void resetAmountPaid()
    • setActive

      public void setActive(boolean active)
    • updateTransactionDate

      public void updateTransactionDate(LocalDate transactionDate)
    • isActive

      public boolean isActive()
    • shareValue

      public BigDecimal shareValue()