-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathConfigurationItem.cs
More file actions
41 lines (26 loc) · 949 Bytes
/
ConfigurationItem.cs
File metadata and controls
41 lines (26 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System.Collections.Generic;
using System.Linq;
using VirtoCommerce.Platform.Core.Common;
using VirtoCommerce.Platform.Core.Swagger;
namespace VirtoCommerce.OrdersModule.Core.Model;
[SwaggerSchemaId("OrderConfigurationItem")]
public class ConfigurationItem : AuditableEntity
{
public string LineItemId { get; set; }
public string ProductId { get; set; }
public string Name { get; set; }
public string Sku { get; set; }
public int Quantity { get; set; }
public string ImageUrl { get; set; }
public string CatalogId { get; set; }
public string CategoryId { get; set; }
public string Type { get; set; }
public string CustomText { get; set; }
public IList<ConfigurationItemFile> Files { get; set; }
public object Clone()
{
var result = (ConfigurationItem)MemberwiseClone();
result.Files = Files?.Select(x => x.CloneTyped()).ToList();
return result;
}
}