Class ClientTransaction
- 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.Auditable<Long,,Long, OffsetDateTime> org.springframework.data.domain.Persistable<Long>
@Entity
public class ClientTransaction
extends org.apache.fineract.infrastructure.core.domain.AbstractAuditableWithUTCDateTimeCustom<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
ConstructorsModifierConstructorDescriptionprotectedClientTransaction(org.apache.fineract.portfolio.client.domain.Client client, org.apache.fineract.organisation.office.domain.Office office, org.apache.fineract.portfolio.paymentdetail.domain.PaymentDetail paymentDetail, Integer typeOf, LocalDate transactionDate, org.apache.fineract.organisation.monetary.domain.Money amount, boolean reversed, org.apache.fineract.infrastructure.core.domain.ExternalId externalId, String currencyCode) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.fineract.organisation.monetary.domain.Moneyorg.apache.fineract.portfolio.client.domain.Clientorg.apache.fineract.organisation.monetary.domain.MonetaryCurrencyorg.apache.fineract.infrastructure.core.domain.ExternalIdbooleanbooleanbooleanstatic ClientTransactionpayCharge(org.apache.fineract.portfolio.client.domain.Client client, org.apache.fineract.organisation.office.domain.Office office, org.apache.fineract.portfolio.paymentdetail.domain.PaymentDetail paymentDetail, LocalDate transactionDate, org.apache.fineract.organisation.monetary.domain.Money amount, String currencyCode, org.apache.fineract.infrastructure.core.domain.ExternalId externalId) voidreverse()voidsetCurrency(org.apache.fineract.organisation.monetary.domain.OrganisationCurrency currency) Converts the content of this Client Transaction to a map which can be passed to the accounting modulestatic ClientTransactionwaiver(org.apache.fineract.portfolio.client.domain.Client client, org.apache.fineract.organisation.office.domain.Office office, LocalDate transactionDate, org.apache.fineract.organisation.monetary.domain.Money amount, String currencyCode) Methods inherited from class org.apache.fineract.infrastructure.core.domain.AbstractAuditableWithUTCDateTimeCustom
_persistence_get, _persistence_get_createdBy, _persistence_get_createdDate, _persistence_get_lastModifiedBy, _persistence_get_lastModifiedDate, _persistence_new, _persistence_post_clone, _persistence_set, _persistence_set_createdBy, _persistence_set_createdDate, _persistence_set_lastModifiedBy, _persistence_set_lastModifiedDate, getCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate, setCreatedBy, setCreatedDate, setLastModifiedBy, setLastModifiedDateMethods inherited from class org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom
_persistence_checkFetched, _persistence_checkFetchedForSet, _persistence_get_id, _persistence_getCacheKey, _persistence_getFetchGroup, _persistence_getId, _persistence_getPropertyChangeListener, _persistence_getSession, _persistence_isAttributeFetched, _persistence_propertyChange, _persistence_resetFetchGroup, _persistence_set_id, _persistence_setCacheKey, _persistence_setFetchGroup, _persistence_setId, _persistence_setPropertyChangeListener, _persistence_setSession, _persistence_setShouldRefreshFetchGroup, _persistence_shallow_clone, _persistence_shouldRefreshFetchGroup, getId, isNew, setIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.domain.Persistable
getId, isNewMethods inherited from interface org.eclipse.persistence.internal.descriptors.PersistenceObject
_persistence_shallow_clone
-
Constructor Details
-
ClientTransaction
protected ClientTransaction() -
ClientTransaction
public ClientTransaction(org.apache.fineract.portfolio.client.domain.Client client, org.apache.fineract.organisation.office.domain.Office office, org.apache.fineract.portfolio.paymentdetail.domain.PaymentDetail paymentDetail, Integer typeOf, LocalDate transactionDate, org.apache.fineract.organisation.monetary.domain.Money amount, boolean reversed, org.apache.fineract.infrastructure.core.domain.ExternalId externalId, String currencyCode)
-
-
Method Details
-
payCharge
public static ClientTransaction payCharge(org.apache.fineract.portfolio.client.domain.Client client, org.apache.fineract.organisation.office.domain.Office office, org.apache.fineract.portfolio.paymentdetail.domain.PaymentDetail paymentDetail, LocalDate transactionDate, org.apache.fineract.organisation.monetary.domain.Money amount, String currencyCode, org.apache.fineract.infrastructure.core.domain.ExternalId externalId) -
waiver
public static ClientTransaction waiver(org.apache.fineract.portfolio.client.domain.Client client, org.apache.fineract.organisation.office.domain.Office office, LocalDate transactionDate, org.apache.fineract.organisation.monetary.domain.Money amount, String currencyCode) -
reverse
public void reverse() -
toMapData
Converts the content of this Client Transaction to a map which can be passed to the accounting module -
isPayChargeTransaction
public boolean isPayChargeTransaction() -
isWaiveChargeTransaction
public boolean isWaiveChargeTransaction() -
getClientChargePaidByCollection
-
getClientId
-
getClient
public org.apache.fineract.portfolio.client.domain.Client getClient() -
getAmount
public org.apache.fineract.organisation.monetary.domain.Money getAmount() -
getCurrency
public org.apache.fineract.organisation.monetary.domain.MonetaryCurrency getCurrency() -
setCurrency
public void setCurrency(org.apache.fineract.organisation.monetary.domain.OrganisationCurrency currency) -
getCurrencyCode
-
isReversed
public boolean isReversed() -
getTransactionDate
-
getSubmittedOnDate
-
getExternalId
public org.apache.fineract.infrastructure.core.domain.ExternalId getExternalId()
-