Add customer communication system
This commit is contained in:
@@ -3,8 +3,9 @@ namespace LittleShop.Client.Models;
|
||||
public class Order
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string IdentityReference { get; set; } = string.Empty;
|
||||
public string Status { get; set; } = string.Empty;
|
||||
public Guid? CustomerId { get; set; }
|
||||
public string? IdentityReference { get; set; }
|
||||
public int Status { get; set; }
|
||||
public decimal TotalAmount { get; set; }
|
||||
public string Currency { get; set; } = string.Empty;
|
||||
public string ShippingName { get; set; } = string.Empty;
|
||||
@@ -34,7 +35,13 @@ public class OrderItem
|
||||
|
||||
public class CreateOrderRequest
|
||||
{
|
||||
public string IdentityReference { get; set; } = string.Empty;
|
||||
// Either Customer ID (for registered customers) OR Identity Reference (for anonymous)
|
||||
public Guid? CustomerId { get; set; }
|
||||
public string? IdentityReference { get; set; }
|
||||
|
||||
// Customer Information (collected at checkout for new customers)
|
||||
public CreateCustomerRequest? CustomerInfo { get; set; }
|
||||
|
||||
public string ShippingName { get; set; } = string.Empty;
|
||||
public string ShippingAddress { get; set; } = string.Empty;
|
||||
public string ShippingCity { get; set; } = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user