payment methods

This commit is contained in:
Tizian.Breuch
2025-07-31 14:01:39 +02:00
parent b89f0d0dd0
commit 9eef4df3d0
7 changed files with 260 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
// src/Webshop.Application/DTOs/Payments/AdminPaymentMethodDto.cs
using System;
using Webshop.Domain.Enums;
using System.Text.Json.Serialization; // Für JsonConverter
namespace Webshop.Application.DTOs.Payments
{
@@ -11,7 +11,11 @@ namespace Webshop.Application.DTOs.Payments
public string? Description { get; set; }
public bool IsActive { get; set; }
public PaymentGatewayType PaymentGatewayType { get; set; }
public string? Configuration { get; set; } // Als JSON-String, den der Admin bearbeitet
// 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; }
}
}