Search Results for

    Show / Hide Table of Contents

    Class AllocationTransferProcessorExtender

    The transfer extender responsible for transferring all IAllocationAmount records

    Inheritance
    object
    TransferProcessorExtender
    AllocationTransferProcessorExtender
    Inherited Members
    TransferProcessorExtender.Init()
    TransferProcessorExtender.Validate()
    TransferProcessorExtender.CustomUpdateCancelCorrectedItem(EntityDescriptor, ITransactionalEntity, ITransactionalEntity, bool, IReadOnlyDictionary<Guid, (ITransactionalEntity Original, ITransactionalEntity Cancelling)>, IReadOnlyDictionary<Guid, ITransactionalEntity>)
    TransferProcessorExtender.GetExtraItemsInThisProcessor()
    TransferProcessorExtender.Processor
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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
    TransferProcessorExtender.ProcessesTransferTypes

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

    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
    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

    DateTimeOffset startDate

    The TransactionDate of the ITransfer

    DateTimeOffset endDate

    The TransferCapitalUpToDate

    AllocationTiming timing

    The Timing

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

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

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.