Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

VDS-749: Save Name and ImageUrl in configured Group entities for cart and order #54

Merged
merged 6 commits into from
Feb 1, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions VirtoCommerce.Storefront.Model/Cart/Demo/ConfiguredGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ namespace VirtoCommerce.Storefront.Model.Cart.Demo
[SwaggerSchemaId("CartConfiguredGroup")]
public class ConfiguredGroup : Entity
{
public ConfiguredGroup(int quantity, Currency currency, string productId, string name, string imageUrl) : this(quantity, currency, productId)
trueboroda marked this conversation as resolved.
Show resolved Hide resolved
{
Name = name;
ImageUrl = imageUrl;
}

public ConfiguredGroup(int quantity, Currency currency, string productId)
{
Id = Guid.NewGuid().ToString("N");
Expand All @@ -33,6 +39,10 @@ public ConfiguredGroup(int quantity, Currency currency, string productId)

public string ProductId { get; set; }

public string Name { get; set; }

public string ImageUrl { get; set; }

public Product Product { get; set; }

public DateTime CreatedDate { get; set; }
Expand Down
4 changes: 4 additions & 0 deletions VirtoCommerce.Storefront.Model/Order/Demo/ConfiguredGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public ConfiguredGroup(int quantity, Currency currency, string productId)

public string ProductId { get; set; }

public string Name { get; set; }

public string ImageUrl { get; set; }

public Product Product { get; set; }

public DateTime CreatedDate { get; set; }
Expand Down
19 changes: 16 additions & 3 deletions VirtoCommerce.Storefront/AutoRestClients/CartModuleApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4122,7 +4122,7 @@ public ObjectSettingEntry()
/// </summary>
/// <param name="valueType">Possible values include: 'ShortText',
/// 'LongText', 'Integer', 'Decimal', 'DateTime', 'Boolean',
/// 'SecureString', 'Json'</param>
/// 'SecureString', 'Json', 'PositiveInteger'</param>
public ObjectSettingEntry(bool? itHasValues = default(bool?), string objectId = default(string), string objectType = default(string), object value = default(object), bool? restartRequired = default(bool?), string moduleId = default(string), string groupName = default(string), string name = default(string), bool? isHidden = default(bool?), string valueType = default(string), IList<object> allowedValues = default(IList<object>), object defaultValue = default(object), bool? isDictionary = default(bool?))
{
ItHasValues = itHasValues;
Expand Down Expand Up @@ -4193,7 +4193,8 @@ public ObjectSettingEntry()

/// <summary>
/// Gets or sets possible values include: 'ShortText', 'LongText',
/// 'Integer', 'Decimal', 'DateTime', 'Boolean', 'SecureString', 'Json'
/// 'Integer', 'Decimal', 'DateTime', 'Boolean', 'SecureString',
/// 'Json', 'PositiveInteger'
/// </summary>
[JsonProperty(PropertyName = "valueType")]
public string ValueType { get; set; }
Expand Down Expand Up @@ -4695,9 +4696,11 @@ public DemoCartConfiguredGroup()
/// <summary>
/// Initializes a new instance of the DemoCartConfiguredGroup class.
/// </summary>
public DemoCartConfiguredGroup(string productId = default(string), IList<string> itemIds = default(IList<string>), int? quantity = default(int?), string currency = default(string), double? extendedPrice = default(double?), double? extendedPriceWithTax = default(double?), double? listPrice = default(double?), double? listPriceWithTax = default(double?), double? salePrice = default(double?), double? salePriceWithTax = default(double?), double? placedPrice = default(double?), double? placedPriceWithTax = default(double?), double? taxTotal = default(double?), System.DateTime? createdDate = default(System.DateTime?), System.DateTime? modifiedDate = default(System.DateTime?), string createdBy = default(string), string modifiedBy = default(string), string id = default(string))
public DemoCartConfiguredGroup(string productId = default(string), string name = default(string), string imageUrl = default(string), IList<string> itemIds = default(IList<string>), int? quantity = default(int?), string currency = default(string), double? extendedPrice = default(double?), double? extendedPriceWithTax = default(double?), double? listPrice = default(double?), double? listPriceWithTax = default(double?), double? salePrice = default(double?), double? salePriceWithTax = default(double?), double? placedPrice = default(double?), double? placedPriceWithTax = default(double?), double? taxTotal = default(double?), System.DateTime? createdDate = default(System.DateTime?), System.DateTime? modifiedDate = default(System.DateTime?), string createdBy = default(string), string modifiedBy = default(string), string id = default(string))
{
ProductId = productId;
Name = name;
ImageUrl = imageUrl;
ItemIds = itemIds;
Quantity = quantity;
Currency = currency;
Expand Down Expand Up @@ -4728,6 +4731,16 @@ public DemoCartConfiguredGroup()
[JsonProperty(PropertyName = "productId")]
public string ProductId { get; set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "imageUrl")]
public string ImageUrl { get; set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "itemIds")]
Expand Down
Loading