namespace Entity;
///
/// 银行交易记录(由邮件解析生成)
///
public class TransactionRecord : BaseEntity
{
///
/// 卡号或账户标识
///
public string Card { get; set; } = string.Empty;
///
/// 交易原因/摘要
///
public string Reason { get; set; } = string.Empty;
///
/// 交易金额
///
public decimal Amount { get; set; }
///
/// 退款金额
///
public decimal RefundAmount { get; set; }
///
/// 交易后余额
///
public decimal Balance { get; set; }
///
/// 发生时间(邮件中的交易时间)
///
public DateTime OccurredAt { get; set; }
///
/// 原始邮件记录ID
///
public long EmailMessageId { get; set; }
///
/// 交易类型
///
public TransactionType Type { get; set; }
///
/// 交易分类
///
public string Classify { get; set; } = string.Empty;
///
/// 导入编号
///
public string ImportNo { get; set; } = string.Empty;
///
/// 导入来源
///
public string ImportFrom { get; set; } = string.Empty;
}
public enum TransactionType
{
///
/// 支出
///
Expense = 0,
///
/// 收入
///
Income = 1,
///
/// 不计入收支
///
None = 2
}