Files
ShopSolution-backend/Webshop.Application/Services/Admin/Interfaces/IAdminPaymentMethodService.cs
Tizian.Breuch 6fc6aaef3e payment
2025-07-29 19:11:34 +02:00

36 lines
1.2 KiB
C#

// src/Webshop.Application/Services/Admin/IAdminPaymentMethodService.cs
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Application.DTOs.Payments; // Für AdminPaymentMethodDto
namespace Webshop.Application.Services.Admin
{
public interface IAdminPaymentMethodService
{
/// <summary>
/// Ruft alle Zahlungsmethoden ab (sowohl aktive als auch inaktive).
/// </summary>
Task<IEnumerable<AdminPaymentMethodDto>> GetAllAsync();
/// <summary>
/// Ruft eine einzelne Zahlungsmethode anhand ihrer ID ab.
/// </summary>
Task<AdminPaymentMethodDto?> GetByIdAsync(Guid id);
/// <summary>
/// Erstellt eine neue Zahlungsmethode.
/// </summary>
Task<AdminPaymentMethodDto> CreateAsync(AdminPaymentMethodDto paymentMethodDto);
/// <summary>
/// Aktualisiert eine bestehende Zahlungsmethode.
/// </summary>
Task<bool> UpdateAsync(AdminPaymentMethodDto paymentMethodDto);
/// <summary>
/// Löscht eine Zahlungsmethode anhand ihrer ID.
/// </summary>
Task<bool> DeleteAsync(Guid id);
}
}