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