Interface IFinancialDateCalculator
Namespace: LemonEdge.API.Entities.FinancialServices.Processors
Assembly: LemonEdge.API.Entities.FinancialServices.dll
Syntax
public interface IFinancialDateCalculator
Methods
GetFinancialDate(Guid, DateTime)
Retrieves a valid financial date for the specified entity id and transaction date
If the given entity has no IEntityPeriodClosing associated with it then this
returns the transactionDate
transactionDate then the returned
date is one day after the latest period closing for that entity. In other words the next available open data for
that entity.
Declaration
Task<DateTime> GetFinancialDate(Guid entityID, DateTime transactionDate)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | entityID | The entity to retrieve a valid financial date for |
| DateTime | transactionDate | The transaction date that we need to retrieve a financial date for |
Returns
| Type | Description |
|---|---|
| Task<DateTime> | A valid open financial date for the given entity and date |
GetFinancialDate(Guid, DateTime, DateTimeOffset?)
Retrieves a valid financial date for the specified entity id and transaction date
If the given entity has no IEntityPeriodClosing associated with it then this
returns the transactionDate unless the provided
matchFinancialDateIfPrior is greater in which case that is returned
transactionDate then the returned
date is one day after the latest period closing for that entity. In other words the next available open data for
that entity.
Declaration
Task<DateTime> GetFinancialDate(Guid entityID, DateTime transactionDate, DateTimeOffset? matchFinancialDateIfPrior)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | entityID | The entity to retrieve a valid financial date for |
| DateTime | transactionDate | The transaction date that we need to retrieve a financial date for |
| DateTimeOffset? | matchFinancialDateIfPrior | If null then and there are no period closings then the
|
Returns
| Type | Description |
|---|---|
| Task<DateTime> | A valid open financial date for the given entity and date |
GetFinancialDate(Guid, DateTime, DateTime?)
Retrieves a valid financial date for the specified entity id and transaction date
If the given entity has no IEntityPeriodClosing associated with it then this
returns the transactionDate unless the provided
matchFinancialDateIfPrior is greater in which case that is returned
transactionDate then the returned
date is one day after the latest period closing for that entity. In other words the next available open data for
that entity.
Declaration
Task<DateTime> GetFinancialDate(Guid entityID, DateTime transactionDate, DateTime? matchFinancialDateIfPrior)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | entityID | The entity to retrieve a valid financial date for |
| DateTime | transactionDate | The transaction date that we need to retrieve a financial date for |
| DateTime? | matchFinancialDateIfPrior | If null then and there are no period closings then the
|
Returns
| Type | Description |
|---|---|
| Task<DateTime> | A valid open financial date for the given entity and date |