payment
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user