Files
ShopSolution-backend/Webshop.Application/DTOs/Payments/AdminPaymentMethodDto.cs
Tizian.Breuch 9eef4df3d0 payment methods
2025-07-31 14:01:39 +02:00

21 lines
807 B
C#

// src/Webshop.Application/DTOs/Payments/AdminPaymentMethodDto.cs
using Webshop.Domain.Enums;
using System.Text.Json.Serialization; // Für JsonConverter
namespace Webshop.Application.DTOs.Payments
{
public class AdminPaymentMethodDto
{
public Guid Id { get; set; } = Guid.NewGuid();
public string Name { get; set; } = string.Empty;
public string? Description { get; set; }
public bool IsActive { get; set; }
public PaymentGatewayType PaymentGatewayType { get; set; }
// Configuration ist jetzt ein Objekt, das je nach PaymentGatewayType
// eine Instanz von BankTransferConfigurationDto, StripeConfigurationDto etc. sein wird.
public object? Configuration { get; set; }
public decimal? ProcessingFee { get; set; }
}
}