- introduced new migration to add Cursor column to AccountMetadata. - updated AppDbContext model snapshot to reflect changes in the database schema. - implemented async queue processing with ChannelAsyncQueue and AsyncQueueHostedService. - created Plaid transaction handlers for added, modified, and removed transactions. - developed PlaidTransactionService and PlaidTransactionSyncer for syncing transactions. - added SyncUpdatesProcessor to handle sync updates from Plaid. - updated tests to accommodate changes in institution and account metadata handling.
21 lines
529 B
C#
21 lines
529 B
C#
namespace FiscalOS.API.Transactions;
|
|
|
|
internal static class TransactionsExtensions
|
|
{
|
|
private const string RouteGroupPrefix = "/transactions";
|
|
|
|
public static RouteGroupBuilder MapTransactionsGroup(this WebApplication app)
|
|
{
|
|
var transactionsGroup = app.MapGroup(RouteGroupPrefix)
|
|
.RequireAuthorization();
|
|
|
|
if (app.Environment.IsProduction() is false)
|
|
{
|
|
transactionsGroup.MapFireWebhookEndpoint();
|
|
}
|
|
|
|
transactionsGroup.MapWebhookEndpoint().AllowAnonymous();
|
|
|
|
return transactionsGroup;
|
|
}
|
|
} |