Class DiscountViewModel
- Namespace
- Dynamicweb.Ecommerce.ProductCatalog
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a view model used for discount rendering in a frontend.
public class DiscountViewModel : FillableViewModelBase
- Inheritance
-
DiscountViewModel
- Inherited Members
Properties
Amount
Gets or sets the amount of the discount.
public double Amount { get; }
Property Value
CampaignColor
Gets or sets the color of the campaign associated with the discount.
public string CampaignColor { get; }
Property Value
CampaignDescription
Gets or sets the description of the campaign associated with the discount.
public string CampaignDescription { get; }
Property Value
CampaignImage
Gets or sets the campaign image associated with the discount.
public MediaViewModel CampaignImage { get; }
Property Value
CampaignName
Gets or sets the name of the campaign associated with the discount.
public string CampaignName { get; }
Property Value
CurrencyCode
Gets or sets the currency code of the discount.
public string CurrencyCode { get; }
Property Value
Name
Gets or sets the name of the discount.
public string Name { get; }
Property Value
Percentage
Gets or sets the percentage of the discount.
public double Percentage { get; }
Property Value
ValidFrom
Gets or sets the valid from date of the discount.
public DateTime? ValidFrom { get; }
Property Value
ValidTo
Gets or sets the valid to date of the discount.
public DateTime? ValidTo { get; }
Property Value
VoucherCode
Gets or sets the voucher code associated with the discount.
public string VoucherCode { get; }
Property Value
VoucherListId
Gets or sets the voucher list ID associated with the discount.
public int? VoucherListId { get; }
Property Value
- int?