Sealed qualifying public classes Migrated database changes
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
namespace LiteCharms.Features.MidrandBooks.Orders.Models;
|
||||
|
||||
public record CreateOrder(long CustomerId, decimal TotalPrice, string? Notes);
|
||||
public sealed record CreateOrder(long CustomerId, decimal TotalPrice, string? Notes);
|
||||
|
||||
public record CreateOrderItem(long AuthorBookId, long ProductPriceId, int Quantity);
|
||||
public sealed record CreateOrderItem(long AuthorBookId, long ProductPriceId, int Quantity);
|
||||
|
||||
public sealed record CreateShipping(long OrderId, long AddressId, long ShippingProviderId, string? TrackingNumber);
|
||||
|
||||
public sealed record CreateShippingProvider(ShippingProviderTypes Type, string Name, decimal Price, string TrackingUrl);
|
||||
|
||||
public sealed record UpdateShippingProvider(long ProviderId, bool Enabled, string Name, decimal Price, string TrackingUrl);
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
namespace LiteCharms.Features.MidrandBooks.Orders.Models;
|
||||
|
||||
public class Refund
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
public Guid OrderId { get; set; }
|
||||
|
||||
public RefundTypes Type { get; set; }
|
||||
|
||||
public RefundStatus Status { get; set; }
|
||||
|
||||
public string? Reason { get; set; }
|
||||
|
||||
public decimal Amount { get; set; }
|
||||
}
|
||||
@@ -14,5 +14,7 @@ public class Shipping
|
||||
|
||||
public long ShippingProviderId { get; set; }
|
||||
|
||||
public string? TrackingNumber { get; set; }
|
||||
|
||||
public ShippingStatuses Status { get; set; }
|
||||
}
|
||||
|
||||
@@ -14,5 +14,7 @@ public class ShippingProvider
|
||||
|
||||
public decimal? Price { get; set; }
|
||||
|
||||
public string? TrackingUrl { get; set; }
|
||||
|
||||
public bool Enabled { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user