Class TransactionPathSplitUpdater
Updates Transaction path split property if needed. Path splits for Transactions and allocation paths. optionally also saves the changes
Implements
Inherited Members
Namespace: LemonEdge.API.Core.FinancialServices.Helpers.PathSplit
Assembly: LemonEdge.API.Core.FinancialServices.dll
Syntax
public class TransactionPathSplitUpdater : ITransactionPathSplitUpdater
Constructors
TransactionPathSplitUpdater(IEntityUpdater, IPathSplitIdProvider, UserInfo)
Declaration
public TransactionPathSplitUpdater(IEntityUpdater entityUpdater, IPathSplitIdProvider pathSplitIdProvider, UserInfo userInfo)
Parameters
Type | Name | Description |
---|---|---|
IEntityUpdater | entityUpdater | |
IPathSplitIdProvider | pathSplitIdProvider | |
UserInfo | userInfo |
Methods
UpdatePathSplits(ITransaction, IAllocationPath, bool)
Calculates path split for transaction and allocation path, logs changes and optionally saves them
Declaration
public Task<(bool, ITransactionPathSplit)> UpdatePathSplits(ITransaction transaction, IAllocationPath allocationPath, bool save)
Parameters
Type | Name | Description |
---|---|---|
ITransaction | transaction | Transaction for which to calculate path split |
IAllocationPath | allocationPath | Allocation path used in calculation |
bool | save | If true also save changes |
Returns
Type | Description |
---|---|
Task<(bool, ITransactionPathSplit)> | Update task |