Implemented cart service with state tracker and linked to main layout
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-06-09 23:39:49 +02:00
parent d3e9b30be5
commit 3bce80c963
10 changed files with 326 additions and 92 deletions
@@ -0,0 +1,18 @@
namespace MidrandBookshop.Services.ShoppingCart.Models;
public sealed class Cart
{
public long? CustomerId { get; set; }
public long? OrderId { get; set; }
public decimal TotalPrice { get; set; }
public decimal TotalVat { get; set; }
public decimal VatRate { get; set; } = 0.15m;
public bool IsVatInclusive { get; set; } = true;
public IList<CartItem> Items { get; set; } = [];
}