checkout
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Webshop.Application.Services.Public
|
||||
{
|
||||
public class DiscountCalculationResult
|
||||
{
|
||||
public decimal TotalDiscountAmount { get; set; } = 0;
|
||||
public List<Guid> AppliedDiscountIds { get; set; } = new List<Guid>();
|
||||
public string? ErrorMessage { get; set; }
|
||||
|
||||
// FIX: IsValid existierte nicht. Wir definieren es hier:
|
||||
// Ein Resultat ist gültig, wenn es keine Fehlermeldung gibt.
|
||||
// (Oder alternativ: wenn der Betrag > 0 ist, je nach Logik)
|
||||
public bool IsValid => string.IsNullOrEmpty(ErrorMessage);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user