erp-platform/api/src/Kurs.Platform.Application.Contracts/Orders/OrderDto.cs

33 lines
879 B
C#
Raw Normal View History

2025-08-11 06:34:44 +00:00
using System;
using System.Collections.Generic;
using Kurs.Platform.Tenants;
using Volo.Abp.Application.Dtos;
namespace Kurs.Platform.Orders;
public class OrderDto : EntityDto<Guid>
{
public CustomTenantDto Tenant { get; set; }
public List<OrderItemDto> Items { get; set; }
public decimal Subtotal { get; set; }
public decimal Commission { get; set; }
public decimal Total { get; set; }
public string PaymentMethod { get; set; }
public int? Installments { get; set; }
public string? InstallmentName { get; set; }
public Dictionary<string, object> PaymentData { get; set; }
}
public class OrderItemDto
{
public Guid ProductId { get; set; }
public ProductDto Product { get; set; }
public string BillingCycle { get; set; } // monthly | yearly
public int Quantity { get; set; }
public decimal TotalPrice { get; set; }
}