Added CartService and LocalStorageService (browser)
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-06-09 09:08:46 +02:00
parent 02ff14ccc8
commit 59af9a5406
8 changed files with 250 additions and 11 deletions
@@ -0,0 +1,18 @@
namespace LiteCharms.Features.MidrandBooks.Orders.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; } = [];
}
@@ -0,0 +1,12 @@
using LiteCharms.Features.MidrandBooks.Products.Models;
namespace LiteCharms.Features.MidrandBooks.Orders.Models;
public sealed class CartItem
{
public ProductPrice? Price { get; set; }
public long Quantity { get; set; }
public decimal Amount { get; set; }
}