Class AllocationTransferProcessorExtender
The transfer extender responsible for transferring all IAllocationAmount records
Inherited Members
Namespace: LemonEdge.API.Core.FinancialServices.Processors.Transactional
Assembly: LemonEdge.API.Core.FinancialServices.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 |
|---|---|
| (EntityDescriptor Descriptor, short Order)[] |
Overrides
Methods
ProcessCancel(ITransactionalEntity, bool)
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 |
| bool | wasCorrected | Indicates if the original value was also corrected |
Returns
| Type | Description |
|---|---|
| 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 |
|---|---|
| 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 |
| 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 |