adminpaymentmethods

This commit is contained in:
Tizian.Breuch
2025-09-25 14:17:42 +02:00
parent 7e6e3c051b
commit 39bd2fb5b3
3 changed files with 109 additions and 76 deletions

View File

@@ -2,35 +2,17 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Application.DTOs.Payments; // Für AdminPaymentMethodDto
using Webshop.Application;
using Webshop.Application.DTOs.Payments;
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);
Task<ServiceResult<IEnumerable<AdminPaymentMethodDto>>> GetAllAsync();
Task<ServiceResult<AdminPaymentMethodDto>> GetByIdAsync(Guid id);
Task<ServiceResult<AdminPaymentMethodDto>> CreateAsync(AdminPaymentMethodDto paymentMethodDto);
Task<ServiceResult> UpdateAsync(AdminPaymentMethodDto paymentMethodDto);
Task<ServiceResult> DeleteAsync(Guid id);
}
}