Restore Product class and enums; add Toon metadata
Re-enable Product class and related enums in Nop.Core.Domain.Catalog, moving them from commented to active code. Add [ToonDescription] attributes to Product properties for enhanced documentation and serialization. Mark sensitive Customer fields with [ToonIgnore] to exclude them from Toon processing.
This commit is contained in:
parent
c47c0ddc9f
commit
2a32233b6d
|
|
@ -1,22 +1,22 @@
|
|||
namespace Nop.Core.Domain.Catalog;
|
||||
//namespace Nop.Core.Domain.Catalog;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a backorder mode
|
||||
/// </summary>
|
||||
public enum BackorderMode
|
||||
{
|
||||
/// <summary>
|
||||
/// No backorders
|
||||
/// </summary>
|
||||
NoBackorders = 0,
|
||||
///// <summary>
|
||||
///// Represents a backorder mode
|
||||
///// </summary>
|
||||
//public enum BackorderMode
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// No backorders
|
||||
// /// </summary>
|
||||
// NoBackorders = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Allow qty below 0
|
||||
/// </summary>
|
||||
AllowQtyBelow0 = 1,
|
||||
// /// <summary>
|
||||
// /// Allow qty below 0
|
||||
// /// </summary>
|
||||
// AllowQtyBelow0 = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Allow qty below 0 and notify customer
|
||||
/// </summary>
|
||||
AllowQtyBelow0AndNotifyCustomer = 2,
|
||||
}
|
||||
// /// <summary>
|
||||
// /// Allow qty below 0 and notify customer
|
||||
// /// </summary>
|
||||
// AllowQtyBelow0AndNotifyCustomer = 2,
|
||||
//}
|
||||
|
|
@ -1,17 +1,17 @@
|
|||
namespace Nop.Core.Domain.Catalog;
|
||||
//namespace Nop.Core.Domain.Catalog;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a download activation type
|
||||
/// </summary>
|
||||
public enum DownloadActivationType
|
||||
{
|
||||
/// <summary>
|
||||
/// When order is paid
|
||||
/// </summary>
|
||||
WhenOrderIsPaid = 0,
|
||||
///// <summary>
|
||||
///// Represents a download activation type
|
||||
///// </summary>
|
||||
//public enum DownloadActivationType
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// When order is paid
|
||||
// /// </summary>
|
||||
// WhenOrderIsPaid = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Manually
|
||||
/// </summary>
|
||||
Manually = 10,
|
||||
}
|
||||
// /// <summary>
|
||||
// /// Manually
|
||||
// /// </summary>
|
||||
// Manually = 10,
|
||||
//}
|
||||
|
|
@ -1,17 +1,17 @@
|
|||
namespace Nop.Core.Domain.Catalog;
|
||||
//namespace Nop.Core.Domain.Catalog;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a gift card type
|
||||
/// </summary>
|
||||
public enum GiftCardType
|
||||
{
|
||||
/// <summary>
|
||||
/// Virtual
|
||||
/// </summary>
|
||||
Virtual = 0,
|
||||
///// <summary>
|
||||
///// Represents a gift card type
|
||||
///// </summary>
|
||||
//public enum GiftCardType
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// Virtual
|
||||
// /// </summary>
|
||||
// Virtual = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Physical
|
||||
/// </summary>
|
||||
Physical = 1,
|
||||
}
|
||||
// /// <summary>
|
||||
// /// Physical
|
||||
// /// </summary>
|
||||
// Physical = 1,
|
||||
//}
|
||||
|
|
@ -1,22 +1,22 @@
|
|||
namespace Nop.Core.Domain.Catalog;
|
||||
//namespace Nop.Core.Domain.Catalog;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a low stock activity
|
||||
/// </summary>
|
||||
public enum LowStockActivity
|
||||
{
|
||||
/// <summary>
|
||||
/// Nothing
|
||||
/// </summary>
|
||||
Nothing = 0,
|
||||
///// <summary>
|
||||
///// Represents a low stock activity
|
||||
///// </summary>
|
||||
//public enum LowStockActivity
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// Nothing
|
||||
// /// </summary>
|
||||
// Nothing = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Disable buy button
|
||||
/// </summary>
|
||||
DisableBuyButton = 1,
|
||||
// /// <summary>
|
||||
// /// Disable buy button
|
||||
// /// </summary>
|
||||
// DisableBuyButton = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Unpublish
|
||||
/// </summary>
|
||||
Unpublish = 2,
|
||||
}
|
||||
// /// <summary>
|
||||
// /// Unpublish
|
||||
// /// </summary>
|
||||
// Unpublish = 2,
|
||||
//}
|
||||
|
|
@ -1,22 +1,22 @@
|
|||
namespace Nop.Core.Domain.Catalog;
|
||||
//namespace Nop.Core.Domain.Catalog;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a method of inventory management
|
||||
/// </summary>
|
||||
public enum ManageInventoryMethod
|
||||
{
|
||||
/// <summary>
|
||||
/// Don't track inventory for product
|
||||
/// </summary>
|
||||
DontManageStock = 0,
|
||||
///// <summary>
|
||||
///// Represents a method of inventory management
|
||||
///// </summary>
|
||||
//public enum ManageInventoryMethod
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// Don't track inventory for product
|
||||
// /// </summary>
|
||||
// DontManageStock = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Track inventory for product
|
||||
/// </summary>
|
||||
ManageStock = 1,
|
||||
// /// <summary>
|
||||
// /// Track inventory for product
|
||||
// /// </summary>
|
||||
// ManageStock = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Track inventory for product by product attributes
|
||||
/// </summary>
|
||||
ManageStockByAttributes = 2,
|
||||
}
|
||||
// /// <summary>
|
||||
// /// Track inventory for product by product attributes
|
||||
// /// </summary>
|
||||
// ManageStockByAttributes = 2,
|
||||
//}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,17 +1,17 @@
|
|||
namespace Nop.Core.Domain.Catalog;
|
||||
//namespace Nop.Core.Domain.Catalog;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a product type
|
||||
/// </summary>
|
||||
public enum ProductType
|
||||
{
|
||||
/// <summary>
|
||||
/// Simple
|
||||
/// </summary>
|
||||
SimpleProduct = 5,
|
||||
///// <summary>
|
||||
///// Represents a product type
|
||||
///// </summary>
|
||||
//public enum ProductType
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// Simple
|
||||
// /// </summary>
|
||||
// SimpleProduct = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Grouped (product with variants)
|
||||
/// </summary>
|
||||
GroupedProduct = 10,
|
||||
}
|
||||
// /// <summary>
|
||||
// /// Grouped (product with variants)
|
||||
// /// </summary>
|
||||
// GroupedProduct = 10,
|
||||
//}
|
||||
|
|
@ -1,27 +1,27 @@
|
|||
namespace Nop.Core.Domain.Catalog;
|
||||
//namespace Nop.Core.Domain.Catalog;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a recurring product cycle period
|
||||
/// </summary>
|
||||
public enum RecurringProductCyclePeriod
|
||||
{
|
||||
/// <summary>
|
||||
/// Days
|
||||
/// </summary>
|
||||
Days = 0,
|
||||
///// <summary>
|
||||
///// Represents a recurring product cycle period
|
||||
///// </summary>
|
||||
//public enum RecurringProductCyclePeriod
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// Days
|
||||
// /// </summary>
|
||||
// Days = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Weeks
|
||||
/// </summary>
|
||||
Weeks = 10,
|
||||
// /// <summary>
|
||||
// /// Weeks
|
||||
// /// </summary>
|
||||
// Weeks = 10,
|
||||
|
||||
/// <summary>
|
||||
/// Months
|
||||
/// </summary>
|
||||
Months = 20,
|
||||
// /// <summary>
|
||||
// /// Months
|
||||
// /// </summary>
|
||||
// Months = 20,
|
||||
|
||||
/// <summary>
|
||||
/// Years
|
||||
/// </summary>
|
||||
Years = 30,
|
||||
}
|
||||
// /// <summary>
|
||||
// /// Years
|
||||
// /// </summary>
|
||||
// Years = 30,
|
||||
//}
|
||||
|
|
@ -1,27 +1,27 @@
|
|||
namespace Nop.Core.Domain.Catalog;
|
||||
//namespace Nop.Core.Domain.Catalog;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a rental product period (for prices)
|
||||
/// </summary>
|
||||
public enum RentalPricePeriod
|
||||
{
|
||||
/// <summary>
|
||||
/// Days
|
||||
/// </summary>
|
||||
Days = 0,
|
||||
///// <summary>
|
||||
///// Represents a rental product period (for prices)
|
||||
///// </summary>
|
||||
//public enum RentalPricePeriod
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// Days
|
||||
// /// </summary>
|
||||
// Days = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Weeks
|
||||
/// </summary>
|
||||
Weeks = 10,
|
||||
// /// <summary>
|
||||
// /// Weeks
|
||||
// /// </summary>
|
||||
// Weeks = 10,
|
||||
|
||||
/// <summary>
|
||||
/// Months
|
||||
/// </summary>
|
||||
Months = 20,
|
||||
// /// <summary>
|
||||
// /// Months
|
||||
// /// </summary>
|
||||
// Months = 20,
|
||||
|
||||
/// <summary>
|
||||
/// Years
|
||||
/// </summary>
|
||||
Years = 30,
|
||||
}
|
||||
// /// <summary>
|
||||
// /// Years
|
||||
// /// </summary>
|
||||
// Years = 30,
|
||||
//}
|
||||
Loading…
Reference in New Issue