29 lines
617 B
C#
29 lines
617 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Webshop.Domain.Entities;
|
|
|
|
/// <summary>
|
|
/// Konfigurierbare Zahlungsoptionen für den Checkout.
|
|
/// </summary>
|
|
public class PaymentMethod
|
|
{
|
|
[Key]
|
|
public Guid Id { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(100)]
|
|
public string Name { get; set; }
|
|
|
|
[MaxLength(500)]
|
|
public string? Description { get; set; }
|
|
|
|
[Required]
|
|
public bool IsActive { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(50)]
|
|
public string PaymentGatewayType { get; set; } // "Stripe", "PayPal", etc.
|
|
|
|
public decimal? ProcessingFee { get; set; }
|
|
} |