Table of Contents

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

bool

CountryCode2

Gets or sets the country code of the country.

public string? CountryCode2 { get; set; }

Property Value

string

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

int

IsNew

Indicates whether the instance is new (not saved).

public bool IsNew { get; }

Property Value

bool

LanguageId

Gets or sets the Id of the language.

public string? LanguageId { get; set; }

Property Value

string

Remarks

The reward rule is valid for null is all languages.

Name

Gets or sets the name.

public string? Name { get; set; }

Property Value

string

OrderFieldName

Gets or sets the name of order field of the rule.

public string? OrderFieldName { get; set; }

Property Value

string

OrderFieldValue

Gets or sets the required value of the order field specified in the OrderFieldName property.

public string? OrderFieldValue { get; set; }

Property Value

string

OrderLineFieldName

Gets or sets the name of order field of the rule.

public string? OrderLineFieldName { get; set; }

Property Value

string

OrderTotalPrice

Gets or sets the order total price condition.

public double OrderTotalPrice { get; set; }

Property Value

double

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

OrderTotalPriceCondition

PaymentId

Gets or sets the Id of the payment.

public string? PaymentId { get; set; }

Property Value

string

Remarks

The rule is valid for null is all payments.

ProductQuantification

Gets or sets the product quantification.

public ProductQuantification ProductQuantification { get; set; }

Property Value

ProductQuantification

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

double

ProductsAndGroupsIds

Gets or sets the ids for products and the groups.

public string? ProductsAndGroupsIds { get; set; }

Property Value

string

RewardId

Gets or sets the reward id.

public int RewardId { get; set; }

Property Value

int

ShippingId

Gets or set the Id of the shipping.

public string? ShippingId { get; set; }

Property Value

string

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

string

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

string

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

DateTime?

ValidTo

Gets or sets end publication date.

public DateTime? ValidTo { get; set; }

Property Value

DateTime?

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

Country

GetLanguage()

Gets the language of the rule.

public Language? GetLanguage()

Returns

Language

GetPayment()

Gets the payment of the rule.

public Payment? GetPayment()

Returns

Payment

GetReward()

Gets the reward of the rule.

public Reward? GetReward()

Returns

Reward

GetShop()

Gets the shop of the rule.

public Shop? GetShop()

Returns

Shop

GetUser()

Gets the user of the rule.

public User? GetUser()

Returns

User

GetUserGroup()

Gets the user group of the rule.

public UserGroup? GetUserGroup()

Returns

UserGroup

GetVoucherList()

Gets the voucher list of the rule.

public VoucherList? GetVoucherList()

Returns

VoucherList

SetCountry(Country?)

Sets the country of the rule.

public void SetCountry(Country? value)

Parameters

value Country

SetLanguage(Language?)

Sets the language of the rule.

public void SetLanguage(Language? value)

Parameters

value Language

SetPayment(Payment?)

Sets the payment of the rule.

public void SetPayment(Payment? value)

Parameters

value Payment

SetReward(Reward)

Sets the reward of the rule.

public void SetReward(Reward value)

Parameters

value Reward

SetShipping(Shipping?)

Sets the shipping of the rule.

public void SetShipping(Shipping? value)

Parameters

value Shipping

SetShop(Shop?)

Sets the shop of the rule.

public void SetShop(Shop? value)

Parameters

value Shop

SetUser(User?)

Sets the user of the rule.

public void SetUser(User? value)

Parameters

value User

SetUserGroup(UserGroup?)

Sets the user group of the rule.

public void SetUserGroup(UserGroup? value)

Parameters

value UserGroup

SetVoucherList(VoucherList?)

Sets the voucher list of the rule.

public void SetVoucherList(VoucherList? voucherList)

Parameters

voucherList VoucherList
To top