33 lines
879 B
C#
33 lines
879 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 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; }
|
||
|
|
}
|