using System; using System.Collections.Generic; using Volo.Abp.Domain.Entities.Auditing; namespace Sozsoft.Platform.Entities; public class Order : FullAuditedEntity { public Guid? TenantId { get; set; } 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; } public string District { get; set; } public string Township { get; set; } public string PostalCode { get; set; } public string Address1 { get; set; } public string Address2 { get; set; } 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; } public string Modules { get; set; } public bool IsExisting { get; set; } public bool IsActive { get; set; } public string BillingCycle { get; set; } public int Period { get; set; } public DateTime? LicenseStartTime { get; set; } public DateTime? LicenseEndTime { get; set; } public decimal Subtotal { get; set; } public decimal VatTotal { get; set; } 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 public string ApprovalUserName { get; set; } public string ApprovalStatus { get; set; } public DateTime? ApprovalDate { get; set; } public string ApprovalDescription { get; set; } public List Items { get; set; } = new(); public Order() { } public Order(Guid id) : base(id) { } } public class OrderItem : FullAuditedEntity { 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; } public int Period { get; set; } public int Quantity { get; set; } public decimal Price { get; set; } public decimal VatRate { get; set; } public decimal VatAmount { get; set; } public decimal TotalPrice { get; set; } public OrderItem() { Id = Guid.NewGuid(); } }