Skip to content

Commit

Permalink
feat: add ConfigurationItemEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
ksavosteev committed Nov 21, 2024
1 parent 0626a94 commit 91b0d65
Show file tree
Hide file tree
Showing 11 changed files with 2,426 additions and 1 deletion.
29 changes: 29 additions & 0 deletions src/VirtoCommerce.OrdersModule.Core/Model/ConfigurationItem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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 object Clone()
{
return MemberwiseClone();
}
}
8 changes: 8 additions & 0 deletions src/VirtoCommerce.OrdersModule.Core/Model/LineItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public class LineItem : AuditableEntity, IHasTaxDetalization, ISupportCancellati

public string VendorId { get; set; }

public bool IsConfigured { get; set; }

#region IHaveDimension Members

public string WeightUnit { get; set; }
Expand Down Expand Up @@ -135,6 +137,12 @@ public class LineItem : AuditableEntity, IHasTaxDetalization, ISupportCancellati

#endregion

#region Configuration Items

public ICollection<ConfigurationItem> ConfigurationItems { get; set; }

#endregion

public virtual void ReduceDetails(string responseGroup)
{
var orderResponseGroup = EnumUtility.SafeParseFlags(responseGroup, CustomerOrderResponseGroup.Full);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="VirtoCommerce.CartModule.Core" Version="3.818.0" />
<PackageReference Include="VirtoCommerce.CartModule.Core" Version="3.818.0-alpha.711-vcst-2092" />
<PackageReference Include="VirtoCommerce.CoreModule.Core" Version="3.812.0" />
<PackageReference Include="VirtoCommerce.CustomerModule.Core" Version="3.817.0" />
<PackageReference Include="VirtoCommerce.NotificationsModule.Core" Version="3.811.0" />
Expand Down
Loading

0 comments on commit 91b0d65

Please sign in to comment.