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: 14.26.0Syntax
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 |
Sites
Gets or sets the campaign sites.
Declaration
public virtual ItemCollection<string> Sites { get; set; }
Property Value
Type | Description |
---|---|
ItemCollection<System.String> |
TargetMarket
Gets or sets the market.
Declaration
public virtual string TargetMarket { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TargetMarkets
Gets or sets the market.
Declaration
public virtual IList<string> TargetMarkets { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<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 |