littleshop/LittleShop/DTOs/CryptoPaymentDto.cs
SysAdmin e1b377a042 Initial commit of LittleShop project (excluding large archives)
- BTCPay Server integration
- TeleBot Telegram bot
- Review system
- Admin area
- Docker deployment configuration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-17 15:07:38 +01:00

30 lines
1020 B
C#

using LittleShop.Enums;
namespace LittleShop.DTOs;
public class CryptoPaymentDto
{
public Guid Id { get; set; }
public Guid OrderId { get; set; }
public CryptoCurrency Currency { get; set; }
public string WalletAddress { get; set; } = string.Empty;
public decimal RequiredAmount { get; set; }
public decimal PaidAmount { get; set; }
public PaymentStatus Status { get; set; }
public string? BTCPayInvoiceId { get; set; }
public string? TransactionHash { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? PaidAt { get; set; }
public DateTime ExpiresAt { get; set; }
}
public class PaymentStatusDto
{
public Guid PaymentId { get; set; }
public PaymentStatus Status { get; set; }
public decimal RequiredAmount { get; set; }
public decimal PaidAmount { get; set; }
public DateTime? PaidAt { get; set; }
public DateTime ExpiresAt { get; set; }
public bool IsExpired => DateTime.UtcNow > ExpiresAt;
}