Projektdateien hinzufügen.
This commit is contained in:
29
Webshop.Domain/Entities/PaymentMethod.cs
Normal file
29
Webshop.Domain/Entities/PaymentMethod.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user