Table of Contents

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

double

CampaignColor

Gets or sets the color of the campaign associated with the discount.

public string CampaignColor { get; }

Property Value

string

CampaignDescription

Gets or sets the description of the campaign associated with the discount.

public string CampaignDescription { get; }

Property Value

string

CampaignImage

Gets or sets the campaign image associated with the discount.

public MediaViewModel CampaignImage { get; }

Property Value

MediaViewModel

CampaignName

Gets or sets the name of the campaign associated with the discount.

public string CampaignName { get; }

Property Value

string

CurrencyCode

Gets or sets the currency code of the discount.

public string CurrencyCode { get; }

Property Value

string

Name

Gets or sets the name of the discount.

public string Name { get; }

Property Value

string

Percentage

Gets or sets the percentage of the discount.

public double Percentage { get; }

Property Value

double

ValidFrom

Gets or sets the valid from date of the discount.

public DateTime? ValidFrom { get; }

Property Value

DateTime?

ValidTo

Gets or sets the valid to date of the discount.

public DateTime? ValidTo { get; }

Property Value

DateTime?

VoucherCode

Gets or sets the voucher code associated with the discount.

public string VoucherCode { get; }

Property Value

string

VoucherListId

Gets or sets the voucher list ID associated with the discount.

public int? VoucherListId { get; }

Property Value

int?
To top