aufrüumen
This commit is contained in:
20
Webshop.Application/DTOs/Orders/CreateOrderDto.cs
Normal file
20
Webshop.Application/DTOs/Orders/CreateOrderDto.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Auto-generiert von CreateWebshopFiles.ps1
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs.Orders
|
||||
{
|
||||
public class CreateOrderDto
|
||||
{
|
||||
public Guid? CustomerId { get; set; } // Nullable für Gastbestellung
|
||||
public string? GuestEmail { get; set; }
|
||||
public string? GuestPhoneNumber { get; set; }
|
||||
public Guid ShippingAddressId { get; set; }
|
||||
public Guid BillingAddressId { get; set; }
|
||||
public Guid PaymentMethodId { get; set; }
|
||||
public Guid ShippingMethodId { get; set; }
|
||||
public List<CreateOrderItemDto> Items { get; set; } = new List<CreateOrderItemDto>();
|
||||
}
|
||||
}
|
||||
15
Webshop.Application/DTOs/Orders/CreateOrderItemDto.cs
Normal file
15
Webshop.Application/DTOs/Orders/CreateOrderItemDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
// Auto-generiert von CreateWebshopFiles.ps1
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs.Orders
|
||||
{
|
||||
public class CreateOrderItemDto
|
||||
{
|
||||
public Guid ProductId { get; set; }
|
||||
public Guid? ProductVariantId { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
}
|
||||
}
|
||||
27
Webshop.Application/DTOs/Orders/OrderDetailDto.cs
Normal file
27
Webshop.Application/DTOs/Orders/OrderDetailDto.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
// Auto-generiert von CreateWebshopFiles.ps1
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs.Orders
|
||||
{
|
||||
public class OrderDetailDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string OrderNumber { get; set; } = string.Empty;
|
||||
public Guid CustomerId { get; set; }
|
||||
public DateTimeOffset OrderDate { get; set; }
|
||||
public OrderStatus Status { get; set; }
|
||||
public decimal TotalAmount { get; set; }
|
||||
public Guid ShippingAddressId { get; set; }
|
||||
public Guid BillingAddressId { get; set; }
|
||||
public Guid PaymentMethodId { get; set; }
|
||||
public string? ShippingTrackingNumber { get; set; }
|
||||
public DateTimeOffset? ShippedDate { get; set; }
|
||||
public DateTimeOffset? DeliveredDate { get; set; }
|
||||
public PaymentStatus PaymentStatus { get; set; }
|
||||
public List<OrderItemDto> OrderItems { get; set; } = new List<OrderItemDto>();
|
||||
}
|
||||
}
|
||||
21
Webshop.Application/DTOs/Orders/OrderItemDto.cs
Normal file
21
Webshop.Application/DTOs/Orders/OrderItemDto.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Auto-generiert von CreateWebshopFiles.ps1
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs.Orders
|
||||
{
|
||||
public class OrderItemDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid OrderId { get; set; } // Foreign Key zu Order
|
||||
public Guid ProductId { get; set; }
|
||||
public Guid? ProductVariantId { get; set; }
|
||||
public string ProductName { get; set; } = string.Empty;
|
||||
public string ProductSKU { get; set; } = string.Empty;
|
||||
public int Quantity { get; set; }
|
||||
public decimal UnitPrice { get; set; }
|
||||
public decimal TotalPrice { get; set; }
|
||||
}
|
||||
}
|
||||
21
Webshop.Application/DTOs/Orders/OrderSummaryDto.cs
Normal file
21
Webshop.Application/DTOs/Orders/OrderSummaryDto.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Auto-generiert von CreateWebshopFiles.ps1
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs.Orders
|
||||
{
|
||||
public class OrderSummaryDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string OrderNumber { get; set; } = string.Empty;
|
||||
public DateTimeOffset OrderDate { get; set; }
|
||||
public OrderStatus Status { get; set; }
|
||||
public decimal TotalAmount { get; set; }
|
||||
public PaymentStatus PaymentStatus { get; set; }
|
||||
public string PaymentMethodName { get; set; } = string.Empty;
|
||||
public string ShippingMethodName { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user