Class AllocationMappingProvider
Calculates allocation mapping from entity set and instrument. Loops through allocation paths for entity set and returns allocation mapping that directly matches instrument If there is none, it loops through instrument sets to return best suited one
Implements
Inherited Members
Namespace: LemonEdge.API.Core.FinancialServices.Processors.Transactional
Assembly: LemonEdge.API.Core.FinancialServices.dll
Syntax
public class AllocationMappingProvider : IAllocationMappingProvider
Constructors
AllocationMappingProvider(IEntityUpdater)
Declaration
public AllocationMappingProvider(IEntityUpdater updater)
Parameters
| Type | Name | Description |
|---|---|---|
| IEntityUpdater | updater |
Methods
GetAllocationMapping(Guid, Guid?, Guid)
Returns allocation mapping
Declaration
public IAllocationMapping GetAllocationMapping(Guid entitySetID, Guid? instrumentID, Guid transactionCodeId)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | entitySetID | Entity Set for which to find allocation mapping |
| Guid? | instrumentID | Instrument for which to find allocation mapping |
| Guid | transactionCodeId |
Returns
| Type | Description |
|---|---|
| IAllocationMapping | Allocation mapping matching parameters |
Init()
Loads all reference data required for matching
Declaration
public Task Init()
Returns
| Type | Description |
|---|---|
| Task |