Class TransactionAllocatedTransferProcessorExtender
The transfer extender responsible for transferring all ITransactionAllocated and IGLPostingAllocated records
Inherited Members
Namespace: LemonEdge.API.Core.FinancialServices.Processors.Transactional
Assembly: LemonEdge.API.Core.FinancialServices.dll
Syntax
public class TransactionAllocatedTransferProcessorExtender : TransferProcessorExtender
Constructors
TransactionAllocatedTransferProcessorExtender(ITransferProcessor)
Declaration
public TransactionAllocatedTransferProcessorExtender(ITransferProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
ITransferProcessor | processor |
Properties
ProcessesTransferTypes
Processes ITransactionAllocated and IGLPostingAllocated records in that order
Declaration
public override (EntityDescriptor Descriptor, short Order)[] ProcessesTransferTypes { get; }
Property Value
Type | Description |
---|---|
(EntityDescriptor Descriptor, short Order)[] |
Overrides
Methods
CustomUpdateCancelCorrectedItem(EntityDescriptor, ITransactionalEntity, ITransactionalEntity, bool, IReadOnlyDictionary<Guid, (ITransactionalEntity Original, ITransactionalEntity Cancelling)>, IReadOnlyDictionary<Guid, ITransactionalEntity>)
Declaration
public override Task CustomUpdateCancelCorrectedItem(EntityDescriptor type, ITransactionalEntity original, ITransactionalEntity cancelCorrected, bool isCorrectionRecord, IReadOnlyDictionary<Guid, (ITransactionalEntity Original, ITransactionalEntity Cancelling)> cancelledEntities, IReadOnlyDictionary<Guid, ITransactionalEntity> correctedEntities)
Parameters
Type | Name | Description |
---|---|---|
EntityDescriptor | type | |
ITransactionalEntity | original | |
ITransactionalEntity | cancelCorrected | |
bool | isCorrectionRecord | |
IReadOnlyDictionary<Guid, (ITransactionalEntity Original, ITransactionalEntity Cancelling)> | cancelledEntities | |
IReadOnlyDictionary<Guid, ITransactionalEntity> | correctedEntities |
Returns
Type | Description |
---|---|
Task |
Overrides
GetExtraItemsInThisProcessor()
Declaration
public override IEnumerable<IBaseEntity> GetExtraItemsInThisProcessor()
Returns
Type | Description |
---|---|
IEnumerable<IBaseEntity> |
Overrides
Init()
Initializes this transfer processor extender by loading all transaction type values that could be transferred
Declaration
public override Task Init()
Returns
Type | Description |
---|---|
Task | A task indicating the completion of this operation |
Overrides
ProcessItemsToTransfer(EntityDescriptor, DateTimeOffset, DateTimeOffset, AllocationTiming)
Transfers all ITransactionAllocated, or IGLPostingAllocated , records in the system that match the specifed parameters for the parent ITransferProcessor
Declaration
public override Task ProcessItemsToTransfer(EntityDescriptor itemType, DateTimeOffset startDate, DateTimeOffset endDate, AllocationTiming timing)
Parameters
Type | Name | Description |
---|---|---|
EntityDescriptor | itemType | The type of entity to transfer. Either ITransactionAllocated, or IGLPostingAllocated. |
DateTimeOffset | startDate | The TransactionDate of the ITransfer |
DateTimeOffset | endDate | |
AllocationTiming | timing | The Timing |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |