order
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Domain.Entities;
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +12,7 @@ namespace Webshop.Application.DTOs.Orders
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string OrderNumber { get; set; } = string.Empty;
|
||||
public Guid CustomerId { get; set; }
|
||||
public Guid? CustomerId { get; set; }
|
||||
public DateTimeOffset OrderDate { get; set; }
|
||||
public OrderStatus Status { get; set; }
|
||||
public decimal TotalAmount { get; set; }
|
||||
@@ -23,5 +24,8 @@ namespace Webshop.Application.DTOs.Orders
|
||||
public DateTimeOffset? DeliveredDate { get; set; }
|
||||
public PaymentStatus PaymentStatus { get; set; }
|
||||
public List<OrderItemDto> OrderItems { get; set; } = new List<OrderItemDto>();
|
||||
public Address ShippingAddress { get; set; } = default!; // << HINZUF<55>GEN >>
|
||||
public Address BillingAddress { get; set; } = default!; // << HINZUF<55>GEN >>
|
||||
public string PaymentMethod { get; set; } = string.Empty; // << HINZUF<55>GEN >>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Webshop.Application.DTOs.Orders
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid OrderId { get; set; } // Foreign Key zu Order
|
||||
public Guid ProductId { get; set; }
|
||||
public Guid? ProductId { get; set; }
|
||||
public Guid? ProductVariantId { get; set; }
|
||||
public string ProductName { get; set; } = string.Empty;
|
||||
public string ProductSKU { get; set; } = string.Empty;
|
||||
|
||||
@@ -17,5 +17,6 @@ namespace Webshop.Application.DTOs.Orders
|
||||
public PaymentStatus PaymentStatus { get; set; }
|
||||
public string PaymentMethodName { get; set; } = string.Empty;
|
||||
public string ShippingMethodName { get; set; } = string.Empty;
|
||||
public string CustomerName { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user