This commit is contained in:
Tizian.Breuch
2025-07-29 19:11:34 +02:00
parent 3907cba29d
commit 6fc6aaef3e
14 changed files with 375 additions and 31 deletions

View File

@@ -0,0 +1,17 @@
// src/Webshop.Application/DTOs/Payments/AdminPaymentMethodDto.cs
using System;
using Webshop.Domain.Enums;
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; }
public string? Configuration { get; set; } // Als JSON-String, den der Admin bearbeitet
public decimal? ProcessingFee { get; set; }
}
}

View File

@@ -1,7 +1,8 @@
// Auto-generiert von CreateWebshopFiles.ps1
// src/Webshop.Application/DTOs/Payments/PaymentMethodDto.cs
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Domain.Enums;
@@ -12,8 +13,10 @@ namespace Webshop.Application.DTOs.Payments
public Guid Id { get; set; }
public string Name { get; set; } = string.Empty;
public string? Description { get; set; }
public bool IsActive { get; set; }
public PaymentGatewayType GatewayType { get; set; }
public PaymentGatewayType PaymentGatewayType { get; set; }
public decimal? ProcessingFee { get; set; }
// Wichtig: Wir geben hier nur <20>ffentliche Konfigurationsdaten preis (z.B. IBAN)
public object? PublicConfiguration { get; set; }
}
}
}