Skip to content

Commit

Permalink
Add MarkAsNew Property (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkabab authored Mar 4, 2024
1 parent fcc80ac commit d324ace
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Nop.Plugin.Api/DTOs/Products/ProductDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,24 @@ public class ProductDto : BaseDto
[JsonProperty("baseprice_base_amount")]
public decimal? BasepriceBaseAmount { get; set; }

/// <summary>
/// Gets or sets a value indicating whether this product is marked as new
/// </summary>
[JsonProperty("mark_as_new")]
public bool MarkAsNew { get; set; }

/// <summary>
/// Gets or sets the start date and time of the new product (set product as "New" from date). Leave empty to ignore this property
/// </summary>
[JsonProperty("mark_as_new_start_date_time_utc")]
public DateTime? MarkAsNewStartDateTimeUtc { get; set; }

/// <summary>
/// Gets or sets the end date and time of the new product (set product as "New" to date). Leave empty to ignore this property
/// </summary>
[JsonProperty("mark_as_new_end_date_time_utc")]
public DateTime? MarkAsNewEndDateTimeUtc { get; set; }

/// <summary>
/// Gets or sets a value indicating whether this product has tier prices configured
/// <remarks>
Expand Down

0 comments on commit d324ace

Please sign in to comment.