Class AllocationTransferProcessorExtender
The transfer extender responsible for transferring all IAllocationAmount records
Inherited Members
Namespace: LemonEdge.Entities.Processors.Transactional
Assembly: API.dll
Syntax
public class AllocationTransferProcessorExtender : TransferProcessorExtender
Constructors
AllocationTransferProcessorExtender(ITransferProcessor)
Declaration
public AllocationTransferProcessorExtender(ITransferProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
ITransferProcessor | processor |
Properties
ProcessesTransferTypes
Processes IAllocationAmount records
Declaration
public override (EntityDescriptor Descriptor, short Order)[] ProcessesTransferTypes { get; }
Property Value
Type | Description |
---|---|
System.ValueTuple<EntityDescriptor, System.Int16>[] |
Overrides
Methods
ProcessCancel(ITransactionalEntity, Boolean)
AllocationAmounts can not be cancel/corrected as they are not transactional. This deletes the records that would be cancelled
Declaration
public override Task ProcessCancel(ITransactionalEntity cancellingRootItem, bool wasCorrected)
Parameters
Type | Name | Description |
---|---|---|
ITransactionalEntity | cancellingRootItem | The cancelled version of the root transactional entity |
System.Boolean | wasCorrected | Indicates if the original value was also corrected |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of this operation |
Overrides
ProcessCorrect(ITransactionalEntity)
AllocationAmounts can not be cancel/corrected as they are not transactional. This corrects the records that would be corrections to point to the new corrected root entity
Declaration
public override Task ProcessCorrect(ITransactionalEntity correctingRootItem)
Parameters
Type | Name | Description |
---|---|---|
ITransactionalEntity | correctingRootItem | The corrected version of the root transactional entity |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of this operation |
Overrides
ProcessItemsToTransfer(EntityDescriptor, DateTimeOffset, DateTimeOffset, AllocationTiming)
Transfers all IAllocationAmount 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. Used if ProcessesTransferTypes contains more than one type of entity |
System.DateTimeOffset | startDate | The TransactionDate of the ITransfer |
System.DateTimeOffset | endDate | |
AllocationTiming | timing | The Timing |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of the operation |