Files
MoneyMap/MoneyMap.Core/Models/Import/ImportContext.cs
T
2026-04-20 18:16:33 -04:00

29 lines
1012 B
C#

namespace MoneyMap.Models.Import
{
/// <summary>
/// Context for transaction import operations, containing payment selection mode and available options.
/// </summary>
public class ImportContext
{
public required PaymentSelectMode PaymentMode { get; init; }
public int? SelectedCardId { get; init; }
public int? SelectedAccountId { get; init; }
public required List<Card> AvailableCards { get; init; }
public required List<Account> AvailableAccounts { get; init; }
public required string FileName { get; init; }
}
/// <summary>
/// Specifies how to determine the payment method for imported transactions.
/// </summary>
public enum PaymentSelectMode
{
/// <summary>Auto-detect from memo or filename.</summary>
Auto,
/// <summary>Use a specific card for all transactions.</summary>
Card,
/// <summary>Use a specific account for all transactions.</summary>
Account
}
}