Search Results for

    Show / Hide Table of Contents

    Class AllocationTransferProcessorExtender

    The transfer extender responsible for transferring all IAllocationAmount records

    Inheritance
    System.Object
    TransferProcessorExtender
    AllocationTransferProcessorExtender
    Inherited Members
    TransferProcessorExtender.Processor
    TransferProcessorExtender.Init()
    TransferProcessorExtender.Validate()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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
    TransferProcessorExtender.ProcessesTransferTypes

    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
    TransferProcessorExtender.ProcessCancel(ITransactionalEntity, Boolean)

    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
    TransferProcessorExtender.ProcessCorrect(ITransactionalEntity)

    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

    The TransferCapitalUpToDate

    AllocationTiming timing

    The Timing

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task indicating the completion of the operation

    Overrides
    TransferProcessorExtender.ProcessItemsToTransfer(EntityDescriptor, DateTimeOffset, DateTimeOffset, AllocationTiming)

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.