3deca29f05
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
1012 B
C#
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
|
|
}
|
|
}
|