Try our conversational search powered by Generative AI!

Class SalesCampaign

Represents a campaign in Commerce, i.e. a campaign which has related promotions (discounts)

Inheritance
System.Object
SalesCampaign
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
[CLSCompliant(false)]
public class SalesCampaign : BasicContent

Constructors

SalesCampaign()

Declaration
public SalesCampaign()

Properties

Code

Gets or sets code of the campaign.

Declaration
public virtual string Code { get; set; }
Property Value
Type Description
System.String

Description

Gets or sets description of the campaign

Declaration
public virtual string Description { get; set; }
Property Value
Type Description
System.String

IsActive

Gets or sets if this campaign is active.

Declaration
public virtual bool IsActive { get; set; }
Property Value
Type Description
System.Boolean

RevenueGoal

Gets or sets the revenue goal.

Declaration
[PositiveNumber]
public virtual decimal RevenueGoal { get; set; }
Property Value
Type Description
System.Decimal

TargetMarket

Gets or sets the market.

Declaration
public virtual string TargetMarket { get; set; }
Property Value
Type Description
System.String

ValidFrom

Gets or sets the time when the campaign starts.

Declaration
public virtual DateTime ValidFrom { get; set; }
Property Value
Type Description
System.DateTime

ValidUntil

Gets or sets the time when the campaign ends.

Declaration
public virtual DateTime ValidUntil { get; set; }
Property Value
Type Description
System.DateTime

VisitorGroups

Declaration
public virtual IList<Guid> VisitorGroups { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<System.Guid>

Methods

SetDefaultValues(ContentType)

Declaration
public override void SetDefaultValues(ContentType contentType)
Parameters
Type Name Description
EPiServer.DataAbstraction.ContentType contentType