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:
-
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
ConstructorsModifierConstructorDescriptionprotectedShareAccountTransaction(LocalDate transactionDate, Long totalShares, BigDecimal shareValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAmountPaid(BigDecimal amountPaid) voidaddShareAccountChargePaidBy(ShareAccountChargePaidBy chargePaidBy) amount()voidapprove()static ShareAccountTransactioncreateChargeTransaction(LocalDate transactionDate, ShareAccountCharge charge) static ShareAccountTransactioncreateRedeemTransaction(LocalDate transactionDate, Long totalShares, BigDecimal shareValue) voiddeductChargesFromTotalAmount(BigDecimal totalChargeAmount) booleanisActive()booleanbooleanbooleanbooleanbooleanvoidreject()voidvoidsetActive(boolean active) voidsetShareAccount(ShareAccount shareAccount) voidvoidupdate(LocalDate purchasedDate, Long totalShares, BigDecimal shareValue) voidupdateAmountPaid(BigDecimal amountPaid) voidupdateChargeAmount(BigDecimal totalChargeAmount) voidupdateTransactionDate(LocalDate transactionDate) 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
-
Constructor Details
-
ShareAccountTransaction
protected ShareAccountTransaction() -
ShareAccountTransaction
-
-
Method Details
-
createRedeemTransaction
public static ShareAccountTransaction createRedeemTransaction(LocalDate transactionDate, Long totalShares, BigDecimal shareValue) -
getPurchasedDate
-
getPurchasePrice
-
update
-
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() -
amount
-
chargeAmount
-
updateChargeAmount
-
deductChargesFromTotalAmount
-
getChargesPaidBy
-
getTransactionStatus
-
getTransactionType
-
updateAmountPaid
-
addAmountPaid
-
resetAmountPaid
public void resetAmountPaid() -
setActive
public void setActive(boolean active) -
updateTransactionDate
-
isActive
public boolean isActive()