Class RewardRule
- Namespace
- Dynamicweb.Ecommerce.Loyalty
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information about a reward rule.
public class RewardRule
- Inheritance
-
RewardRule
- Inherited Members
Properties
Active
Gets or sets the value indicating whether the rule is active.
public bool Active { get; set; }
Property Value
CountryCode2
Gets or sets the country code of the country.
public string? CountryCode2 { get; set; }
Property Value
Remarks
The rule is valid for null is all countries.
Id
Gets or sets the reward rule id.
public int Id { get; set; }
Property Value
IsNew
Indicates whether the instance is new (not saved).
public bool IsNew { get; }
Property Value
LanguageId
Gets or sets the Id of the language.
public string? LanguageId { get; set; }
Property Value
Remarks
The reward rule is valid for null is all languages.
Name
Gets or sets the name.
public string? Name { get; set; }
Property Value
OrderFieldName
Gets or sets the name of order field of the rule.
public string? OrderFieldName { get; set; }
Property Value
OrderFieldValue
Gets or sets the required value of the order field specified in the OrderFieldName property.
public string? OrderFieldValue { get; set; }
Property Value
OrderLineFieldName
Gets or sets the name of order field of the rule.
public string? OrderLineFieldName { get; set; }
Property Value
OrderTotalPrice
Gets or sets the order total price condition.
public double OrderTotalPrice { get; set; }
Property Value
Remarks
Default value is 0.00
OrderTotalPriceCondition
Gets or sets the conditional operator for comparing the order total price.
public OrderTotalPriceCondition OrderTotalPriceCondition { get; set; }
Property Value
PaymentId
Gets or sets the Id of the payment.
public string? PaymentId { get; set; }
Property Value
Remarks
The rule is valid for null is all payments.
ProductQuantification
Gets or sets the product quantification.
public ProductQuantification ProductQuantification { get; set; }
Property Value
Remarks
The rule uses when validating product quantities.
ProductQuantity
Gets or sets the product quantity required for the rule to be valid.
public double ProductQuantity { get; set; }
Property Value
ProductsAndGroupsIds
Gets or sets the ids for products and the groups.
public string? ProductsAndGroupsIds { get; set; }
Property Value
RewardId
Gets or sets the reward id.
public int RewardId { get; set; }
Property Value
ShippingId
Gets or set the Id of the shipping.
public string? ShippingId { get; set; }
Property Value
Remarks
The rule is valid for null is all shipping.
ShopId
Gets or sets the Id of the shop.
public string? ShopId { get; set; }
Property Value
Remarks
The reward rule is valid for null is all shops.
UserCustomerNumber
Gets or sets the customer number.
public string? UserCustomerNumber { get; set; }
Property Value
Remarks
The rule is valid for null is all customer numbers.
UserGroupId
Gets or sets the Id of the user group.
public int? UserGroupId { get; set; }
Property Value
- int?
Remarks
The rule is valid for null is all user groups.
UserId
Gets or sets the Id of the user.
public int? UserId { get; set; }
Property Value
- int?
Remarks
The rule is valid for null is all users.
ValidFrom
Gets or sets start publication date.
public DateTime? ValidFrom { get; set; }
Property Value
ValidTo
Gets or sets end publication date.
public DateTime? ValidTo { get; set; }
Property Value
VoucherListId
Gets or sets the voucher list id.
public int? VoucherListId { get; set; }
Property Value
- int?
Methods
GetCountry()
Gets the country of the rule.
public Country? GetCountry()
Returns
GetLanguage()
Gets the language of the rule.
public Language? GetLanguage()
Returns
GetPayment()
Gets the payment of the rule.
public Payment? GetPayment()
Returns
GetReward()
Gets the reward of the rule.
public Reward? GetReward()
Returns
GetShop()
Gets the shop of the rule.
public Shop? GetShop()
Returns
GetUser()
Gets the user of the rule.
public User? GetUser()
Returns
GetUserGroup()
Gets the user group of the rule.
public UserGroup? GetUserGroup()
Returns
GetVoucherList()
Gets the voucher list of the rule.
public VoucherList? GetVoucherList()
Returns
SetCountry(Country?)
Sets the country of the rule.
public void SetCountry(Country? value)
Parameters
valueCountry
SetLanguage(Language?)
Sets the language of the rule.
public void SetLanguage(Language? value)
Parameters
valueLanguage
SetPayment(Payment?)
Sets the payment of the rule.
public void SetPayment(Payment? value)
Parameters
valuePayment
SetReward(Reward)
Sets the reward of the rule.
public void SetReward(Reward value)
Parameters
valueReward
SetShipping(Shipping?)
Sets the shipping of the rule.
public void SetShipping(Shipping? value)
Parameters
valueShipping
SetShop(Shop?)
Sets the shop of the rule.
public void SetShop(Shop? value)
Parameters
valueShop
SetUser(User?)
Sets the user of the rule.
public void SetUser(User? value)
Parameters
valueUser
SetUserGroup(UserGroup?)
Sets the user group of the rule.
public void SetUserGroup(UserGroup? value)
Parameters
valueUserGroup
SetVoucherList(VoucherList?)
Sets the voucher list of the rule.
public void SetVoucherList(VoucherList? voucherList)
Parameters
voucherListVoucherList