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

Commit

Permalink
VDS-749: Save Name and ImageUrl in configured Group entities for cart…
Browse files Browse the repository at this point in the history
… and order (#54)

* Regenerate Order and Cart modules API clients

* Revert GetInvoicePdfWithHttpMessagesAsync method behavior customly

* Extend configured group models with Name and ImageUrl

* Save Name and ImageUrl props to configured group at adding

* Revert Revert GetInvoicePdf continue

* Remove second constructor
  • Loading branch information
trueboroda authored Feb 1, 2021
1 parent 69efd5a commit c351986
Show file tree
Hide file tree
Showing 7 changed files with 1,387 additions and 946 deletions.
4 changes: 4 additions & 0 deletions VirtoCommerce.Storefront.Model/Cart/Demo/ConfiguredGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,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

0 comments on commit c351986

Please sign in to comment.