using Nop.Core; namespace Nop.Plugin.Misc.Zettle.Domain; /// /// Represents a record of the product and other details required for synchronization with Zettle /// public class ZettleRecord : BaseEntity { /// /// Gets or sets a value indicating whether the record is active /// public bool Active { get; set; } /// /// Gets or sets the unique identifier as UUID version 1 /// public string Uuid { get; set; } /// /// Gets or sets the product identifier /// public int ProductId { get; set; } /// /// Gets or sets the unique identifier as UUID version 1 of product variant /// public string VariantUuid { get; set; } /// /// Gets or sets the product attribute combination identifier /// public int CombinationId { get; set; } /// /// Gets or sets the image URL /// public string ImageUrl { get; set; } /// /// Gets or sets an operation type identifier /// public int OperationTypeId { get; set; } /// /// Gets or sets a value indicating whether to sync price for this product /// public bool PriceSyncEnabled { get; set; } /// /// Gets or sets a value indicating whether to sync images for this product /// public bool ImageSyncEnabled { get; set; } /// /// Gets or sets a value indicating whether to track inventory for this product /// public bool InventoryTrackingEnabled { get; set; } /// /// Gets or sets the unique identifier as UUID version 1 (used when changing inventory balance) /// public string ExternalUuid { get; set; } /// /// Gets or sets the date and time when the record was updated /// public DateTime? UpdatedOnUtc { get; set; } /// /// Gets or sets an operation type /// public OperationType OperationType { get => (OperationType)OperationTypeId; set => OperationTypeId = (int)value; } }