using Nop.Core.Domain.Catalog; using Nop.Core.Domain.Common; namespace Nop.Core.Domain.Orders; /// /// Represents a recurring payment /// public partial class RecurringPayment : BaseEntity, ISoftDeletedEntity { /// /// Gets or sets the cycle length /// public int CycleLength { get; set; } /// /// Gets or sets the cycle period identifier /// public int CyclePeriodId { get; set; } /// /// Gets or sets the total cycles /// public int TotalCycles { get; set; } /// /// Gets or sets the start date /// public DateTime StartDateUtc { get; set; } /// /// Gets or sets a value indicating whether the payment is active /// public bool IsActive { get; set; } /// /// Gets or sets a value indicating whether the last payment failed /// public bool LastPaymentFailed { get; set; } /// /// Gets or sets a value indicating whether the entity has been deleted /// public bool Deleted { get; set; } /// /// Gets or sets the initial order identifier /// public int InitialOrderId { get; set; } /// /// Gets or sets the date and time of payment creation /// public DateTime CreatedOnUtc { get; set; } /// /// Gets or sets the cycle period /// public RecurringProductCyclePeriod CyclePeriod { get => (RecurringProductCyclePeriod)CyclePeriodId; set => CyclePeriodId = (int)value; } }