31 lines
829 B
C#
31 lines
829 B
C#
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 Guid PaymentMethodId { get; set; }
|
|
public int? Installment { 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; }
|
|
}
|