Files
Tizian.Breuch 6fc6aaef3e payment
2025-07-29 19:11:34 +02:00

30 lines
748 B
C#

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Webshop.Domain.Enums;
namespace Webshop.Domain.Entities;
/// <summary>
/// Konfigurierbare Zahlungsoptionen für den Checkout.
/// </summary>
public class PaymentMethod
{
public Guid Id { get; set; } = Guid.NewGuid();
[Required]
[MaxLength(100)]
public string Name { get; set; } = string.Empty;
[MaxLength(500)]
public string? Description { get; set; }
public bool IsActive { get; set; } = true;
public PaymentGatewayType PaymentGatewayType { get; set; }
[Column(TypeName = "jsonb")]
public string? Configuration { get; set; }
public decimal? ProcessingFee { get; set; }
}