2026-02-24 20:44:16 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Sozsoft.Platform.Entities;
|
|
|
|
|
|
|
2026-03-10 21:18:35 +00:00
|
|
|
|
public class Order : FullAuditedEntity<Guid>
|
2026-02-24 20:44:16 +00:00
|
|
|
|
{
|
2026-07-07 13:41:07 +00:00
|
|
|
|
public Guid? TenantId { get; set; }
|
2026-02-24 20:44:16 +00:00
|
|
|
|
public string OrganizationName { get; set; }
|
|
|
|
|
|
public string Founder { get; set; }
|
|
|
|
|
|
public long? VknTckn { get; set; }
|
|
|
|
|
|
public string TaxOffice { get; set; }
|
|
|
|
|
|
public string Country { get; set; }
|
|
|
|
|
|
public string City { get; set; }
|
2026-07-07 21:00:35 +00:00
|
|
|
|
public string District { get; set; }
|
|
|
|
|
|
public string Township { get; set; }
|
2026-02-24 20:44:16 +00:00
|
|
|
|
public string PostalCode { get; set; }
|
2026-07-07 21:00:35 +00:00
|
|
|
|
public string Address1 { get; set; }
|
|
|
|
|
|
public string Address2 { get; set; }
|
2026-02-24 20:44:16 +00:00
|
|
|
|
public string MobileNumber { get; set; }
|
|
|
|
|
|
public string PhoneNumber { get; set; }
|
|
|
|
|
|
public string FaxNumber { get; set; }
|
|
|
|
|
|
public string Email { get; set; }
|
|
|
|
|
|
public string Website { get; set; }
|
2026-08-31 14:17:50 +00:00
|
|
|
|
public string Modules { get; set; }
|
2026-02-24 20:44:16 +00:00
|
|
|
|
|
2026-07-07 13:41:07 +00:00
|
|
|
|
public bool IsExisting { get; set; }
|
|
|
|
|
|
public bool IsActive { get; set; }
|
|
|
|
|
|
|
2026-07-06 21:53:45 +00:00
|
|
|
|
public string BillingCycle { get; set; }
|
|
|
|
|
|
public int Period { get; set; }
|
|
|
|
|
|
public DateTime? LicenseStartTime { get; set; }
|
2026-07-07 13:41:07 +00:00
|
|
|
|
public DateTime? LicenseEndTime { get; set; }
|
2026-07-06 21:53:45 +00:00
|
|
|
|
|
2026-02-24 20:44:16 +00:00
|
|
|
|
public decimal Subtotal { get; set; }
|
2026-07-07 13:41:07 +00:00
|
|
|
|
public decimal VatTotal { get; set; }
|
2026-02-24 20:44:16 +00:00
|
|
|
|
public decimal Commission { get; set; }
|
|
|
|
|
|
public decimal Total { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Guid PaymentMethodId { get; set; }
|
|
|
|
|
|
public int? Installment { get; set; }
|
|
|
|
|
|
public string PaymentDataJson { get; set; } // JSON olarak saklanacak
|
|
|
|
|
|
|
2026-07-08 11:53:23 +00:00
|
|
|
|
public string ApprovalUserName { get; set; }
|
|
|
|
|
|
public string ApprovalStatus { get; set; }
|
|
|
|
|
|
public DateTime? ApprovalDate { get; set; }
|
|
|
|
|
|
public string ApprovalDescription { get; set; }
|
|
|
|
|
|
|
2026-07-07 13:41:07 +00:00
|
|
|
|
public List<OrderItem> Items { get; set; } = new();
|
|
|
|
|
|
|
2026-02-24 20:44:16 +00:00
|
|
|
|
public Order()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
2026-07-07 13:41:07 +00:00
|
|
|
|
|
|
|
|
|
|
public Order(Guid id)
|
|
|
|
|
|
: base(id)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
2026-02-24 20:44:16 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class OrderItem : FullAuditedEntity<Guid>
|
|
|
|
|
|
{
|
|
|
|
|
|
public Guid OrderId { get; set; }
|
|
|
|
|
|
public Order Order { get; set; }
|
|
|
|
|
|
public Guid ProductId { get; set; }
|
|
|
|
|
|
public string ProductName { get; set; }
|
|
|
|
|
|
public string BillingCycle { get; set; }
|
2026-07-07 13:41:07 +00:00
|
|
|
|
public int Period { get; set; }
|
2026-02-24 20:44:16 +00:00
|
|
|
|
public int Quantity { get; set; }
|
2026-07-07 13:41:07 +00:00
|
|
|
|
public decimal Price { get; set; }
|
|
|
|
|
|
public decimal VatRate { get; set; }
|
|
|
|
|
|
public decimal VatAmount { get; set; }
|
2026-02-24 20:44:16 +00:00
|
|
|
|
public decimal TotalPrice { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public OrderItem()
|
|
|
|
|
|
{
|
|
|
|
|
|
Id = Guid.NewGuid();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|