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>
|
///// <summary>
|
||||||
/// Represents a backorder mode
|
///// Represents a backorder mode
|
||||||
/// </summary>
|
///// </summary>
|
||||||
public enum BackorderMode
|
//public enum BackorderMode
|
||||||
{
|
//{
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// No backorders
|
// /// No backorders
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
NoBackorders = 0,
|
// NoBackorders = 0,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Allow qty below 0
|
// /// Allow qty below 0
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
AllowQtyBelow0 = 1,
|
// AllowQtyBelow0 = 1,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Allow qty below 0 and notify customer
|
// /// Allow qty below 0 and notify customer
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
AllowQtyBelow0AndNotifyCustomer = 2,
|
// AllowQtyBelow0AndNotifyCustomer = 2,
|
||||||
}
|
//}
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
namespace Nop.Core.Domain.Catalog;
|
//namespace Nop.Core.Domain.Catalog;
|
||||||
|
|
||||||
/// <summary>
|
///// <summary>
|
||||||
/// Represents a download activation type
|
///// Represents a download activation type
|
||||||
/// </summary>
|
///// </summary>
|
||||||
public enum DownloadActivationType
|
//public enum DownloadActivationType
|
||||||
{
|
//{
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// When order is paid
|
// /// When order is paid
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
WhenOrderIsPaid = 0,
|
// WhenOrderIsPaid = 0,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Manually
|
// /// Manually
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
Manually = 10,
|
// Manually = 10,
|
||||||
}
|
//}
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
namespace Nop.Core.Domain.Catalog;
|
//namespace Nop.Core.Domain.Catalog;
|
||||||
|
|
||||||
/// <summary>
|
///// <summary>
|
||||||
/// Represents a gift card type
|
///// Represents a gift card type
|
||||||
/// </summary>
|
///// </summary>
|
||||||
public enum GiftCardType
|
//public enum GiftCardType
|
||||||
{
|
//{
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Virtual
|
// /// Virtual
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
Virtual = 0,
|
// Virtual = 0,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Physical
|
// /// Physical
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
Physical = 1,
|
// Physical = 1,
|
||||||
}
|
//}
|
||||||
|
|
@ -1,22 +1,22 @@
|
||||||
namespace Nop.Core.Domain.Catalog;
|
//namespace Nop.Core.Domain.Catalog;
|
||||||
|
|
||||||
/// <summary>
|
///// <summary>
|
||||||
/// Represents a low stock activity
|
///// Represents a low stock activity
|
||||||
/// </summary>
|
///// </summary>
|
||||||
public enum LowStockActivity
|
//public enum LowStockActivity
|
||||||
{
|
//{
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Nothing
|
// /// Nothing
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
Nothing = 0,
|
// Nothing = 0,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Disable buy button
|
// /// Disable buy button
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
DisableBuyButton = 1,
|
// DisableBuyButton = 1,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Unpublish
|
// /// Unpublish
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
Unpublish = 2,
|
// Unpublish = 2,
|
||||||
}
|
//}
|
||||||
|
|
@ -1,22 +1,22 @@
|
||||||
namespace Nop.Core.Domain.Catalog;
|
//namespace Nop.Core.Domain.Catalog;
|
||||||
|
|
||||||
/// <summary>
|
///// <summary>
|
||||||
/// Represents a method of inventory management
|
///// Represents a method of inventory management
|
||||||
/// </summary>
|
///// </summary>
|
||||||
public enum ManageInventoryMethod
|
//public enum ManageInventoryMethod
|
||||||
{
|
//{
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Don't track inventory for product
|
// /// Don't track inventory for product
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
DontManageStock = 0,
|
// DontManageStock = 0,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Track inventory for product
|
// /// Track inventory for product
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
ManageStock = 1,
|
// ManageStock = 1,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Track inventory for product by product attributes
|
// /// Track inventory for product by product attributes
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
ManageStockByAttributes = 2,
|
// 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>
|
///// <summary>
|
||||||
/// Represents a product type
|
///// Represents a product type
|
||||||
/// </summary>
|
///// </summary>
|
||||||
public enum ProductType
|
//public enum ProductType
|
||||||
{
|
//{
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Simple
|
// /// Simple
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
SimpleProduct = 5,
|
// SimpleProduct = 5,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Grouped (product with variants)
|
// /// Grouped (product with variants)
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
GroupedProduct = 10,
|
// GroupedProduct = 10,
|
||||||
}
|
//}
|
||||||
|
|
@ -1,27 +1,27 @@
|
||||||
namespace Nop.Core.Domain.Catalog;
|
//namespace Nop.Core.Domain.Catalog;
|
||||||
|
|
||||||
/// <summary>
|
///// <summary>
|
||||||
/// Represents a recurring product cycle period
|
///// Represents a recurring product cycle period
|
||||||
/// </summary>
|
///// </summary>
|
||||||
public enum RecurringProductCyclePeriod
|
//public enum RecurringProductCyclePeriod
|
||||||
{
|
//{
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Days
|
// /// Days
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
Days = 0,
|
// Days = 0,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Weeks
|
// /// Weeks
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
Weeks = 10,
|
// Weeks = 10,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Months
|
// /// Months
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
Months = 20,
|
// Months = 20,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Years
|
// /// Years
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
Years = 30,
|
// Years = 30,
|
||||||
}
|
//}
|
||||||
|
|
@ -1,27 +1,27 @@
|
||||||
namespace Nop.Core.Domain.Catalog;
|
//namespace Nop.Core.Domain.Catalog;
|
||||||
|
|
||||||
/// <summary>
|
///// <summary>
|
||||||
/// Represents a rental product period (for prices)
|
///// Represents a rental product period (for prices)
|
||||||
/// </summary>
|
///// </summary>
|
||||||
public enum RentalPricePeriod
|
//public enum RentalPricePeriod
|
||||||
{
|
//{
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Days
|
// /// Days
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
Days = 0,
|
// Days = 0,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Weeks
|
// /// Weeks
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
Weeks = 10,
|
// Weeks = 10,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Months
|
// /// Months
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
Months = 20,
|
// Months = 20,
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Years
|
// /// Years
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
Years = 30,
|
// Years = 30,
|
||||||
}
|
//}
|
||||||
Loading…
Reference in New Issue