Table of Contents

Class Reward

Namespace
Dynamicweb.Ecommerce.Loyalty
Assembly
Dynamicweb.Ecommerce.dll

Represents information about an reward.

public class Reward
Inheritance
Reward
Inherited Members

Constructors

Reward()

Initializes a new instance of the class.

public Reward()

Reward(RewardType)

Initializes a new instance of the class and sets the Type.

public Reward(RewardType newReward)

Parameters

newReward RewardType

The RewardType.

Properties

Active

Gets or sets the value indicating whether the state of reward is active.

public bool Active { get; set; }

Property Value

bool

CurrencyCode

Gets or sets the Currency code.

public string CurrencyCode { get; set; }

Property Value

string

DefaultName

Gets or sets the default name.

public string DefaultName { get; set; }

Property Value

string

Id

Gets or sets the reward id.

public int Id { get; set; }

Property Value

int

IsArchived

Gets or sets the value indicating when the reward is archived.

public bool IsArchived { get; set; }

Property Value

bool

IsNew

Indicates whether the instance is new (not saved).

public bool IsNew { get; }

Property Value

bool

Percentage

Gets or sets percentage.

public double Percentage { get; set; }

Property Value

double

Points

Gets or sets the number of pounts for reward.

public double Points { get; set; }

Property Value

double

RoundingId

Gets or sets id of rounding object.

public string RoundingId { get; set; }

Property Value

string

Translations

Gets the reward translations.

public TranslationCollection<RewardTranslation> Translations { get; }

Property Value

TranslationCollection<RewardTranslation>

Type

Gets or sets the type of the reward.

public RewardType Type { get; set; }

Property Value

RewardType

Methods

GetName(string)

Gets the translated name in specified language

public string GetName(string languageId)

Parameters

languageId string

Returns

string

SetName(string, string)

Sets the translated name in specified language

public void SetName(string languageId, string name)

Parameters

languageId string
name string
To top