// src/Webshop.Application/Services/Public/Interfaces/IDiscountService.cs
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Domain.Entities;
namespace Webshop.Application.Services.Public.Interfaces
{
///
/// Stellt das Ergebnis der Rabattberechnung dar.
///
public class DiscountCalculationResult
{
///
/// Der gesamte berechnete Rabattbetrag.
///
public decimal TotalDiscountAmount { get; set; } = 0;
///
/// Die IDs der Rabatte, die erfolgreich angewendet wurden.
///
public List AppliedDiscountIds { get; set; } = new List();
}
public interface IDiscountService
{
Task CalculateDiscountAsync(List orderItems, string? couponCode);
}
}