- Removed all BTCPay references from services and configuration
- Implemented SilverPAY as sole payment provider (no fallback)
- Fixed JWT authentication with proper key length (256+ bits)
- Added UsersController with full CRUD operations
- Updated User model with Email and Role properties
- Configured TeleBot with real Telegram bot token
- Fixed launchSettings.json with JWT environment variable
- E2E tests passing for authentication, catalog, orders
- Payment creation pending SilverPAY server fix
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
1.0 KiB
C#
31 lines
1.0 KiB
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? SilverPayOrderId { 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;
|
|
} |