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
RewardTypeThe RewardType.
Properties
Active
Gets or sets the value indicating whether the state of reward is active.
public bool Active { get; set; }
Property Value
CurrencyCode
Gets or sets the Currency code.
public string CurrencyCode { get; set; }
Property Value
DefaultName
Gets or sets the default name.
public string DefaultName { get; set; }
Property Value
Id
Gets or sets the reward id.
public int Id { get; set; }
Property Value
IsArchived
Gets or sets the value indicating when the reward is archived.
public bool IsArchived { get; set; }
Property Value
IsNew
Indicates whether the instance is new (not saved).
public bool IsNew { get; }
Property Value
Percentage
Gets or sets percentage.
public double Percentage { get; set; }
Property Value
Points
Gets or sets the number of pounts for reward.
public double Points { get; set; }
Property Value
RoundingId
Gets or sets id of rounding object.
public string RoundingId { get; set; }
Property Value
Translations
Gets the reward translations.
public TranslationCollection<RewardTranslation> Translations { get; }
Property Value
Type
Gets or sets the type of the reward.
public RewardType Type { get; set; }
Property Value
Methods
GetName(string)
Gets the translated name in specified language
public string GetName(string languageId)
Parameters
languageId
string
Returns
SetName(string, string)
Sets the translated name in specified language
public void SetName(string languageId, string name)