This commit is contained in:
Tizian.Breuch
2025-07-31 16:12:48 +02:00
parent 4a24f4559d
commit 2d93fda7e9
10 changed files with 264 additions and 104 deletions

View File

@@ -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 >>
}
}