Interface ITransactionalEntity
Indicates this entity is a transaction entity, and can be cancelled/corrected by our core transaction processing logic.
The API.Processors.Transactional.BaseTransactionProcessor provides all the common transaction processing logic based on entities from IHeaderTransactionalEntity and this interface
Inherited Members
Namespace: LemonEdge.API.Entities.FinancialServices.Transactions
Assembly: LemonEdge.API.Entities.FinancialServices.dll
Syntax
[DBTrackChanges]
public interface ITransactionalEntity : ICanBeLocked, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties
Properties
CancelledID
Holds the original transactional entity record this record is cancelling.
Declaration
[EntityProperty(SQLType.UniqueIdentifier, true)]
[EntityDescription("Holds the original transactional entity record this record is cancelling.")]
[EntitySelfRelationship("ID", SingleJoinType.ZeroToOne, "Cancelled Transaction", "Cancelled Transactions", PreventAutoConstraint = true)]
Guid? CancelledID { get; set; }
Property Value
Type | Description |
---|---|
Guid? |
CorrectedByID
Holds the new transactional entity record this record is corrected by, if any.
Declaration
[EntityProperty(SQLType.UniqueIdentifier, true)]
[EntityDescription("Holds the new transactional entity record this record is corrected by, if any.")]
[EntitySelfRelationship("ID", SingleJoinType.ZeroToOne, "Correcting Transaction", "Cancelled Transactions", PreventAutoConstraint = true)]
Guid? CorrectedByID { get; set; }
Property Value
Type | Description |
---|---|
Guid? |
Status
Indicates the current status of this transactional object.
By default GL entries aren't processed until an entity has a status >= Committed.
Finalazied transactions can only be modified through cancel/correct logicDeclaration
[EntityProperty(SQLType.SmallInt, false)]
[EntityDescription("Indicates the current status of this transactional object.")]
[DBTrackChanges]
TransactionStatus Status { get; set; }
Property Value
Type | Description |
---|---|
TransactionStatus |