30 lines
748 B
C#
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; }
|
|
} |