payment
This commit is contained in:
17
Webshop.Application/DTOs/Payments/AdminPaymentMethodDto.cs
Normal file
17
Webshop.Application/DTOs/Payments/AdminPaymentMethodDto.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user