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>
This commit is contained in:
@@ -1,30 +1,30 @@
|
||||
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;
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user