Class PointTransactionManager
- Namespace
- Dynamicweb.Ecommerce.Loyalty
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a point transaction manager.
[Obsolete("Use Services.Loyalty instead.")]
public class PointTransactionManager
- Inheritance
-
PointTransactionManager
- Inherited Members
Constructors
PointTransactionManager()
Initializes a new instance of the class.
public PointTransactionManager()
Properties
AllowEarnPointsFromPurchasedPoints
Gets the value indicating wheither the buying items with points should earn more points.
public static bool AllowEarnPointsFromPurchasedPoints { get; }
Property Value
Methods
ClearCache()
Clears user transactions cache.
public void ClearCache()
ClearCache(int)
Removes cached item by id.
public void ClearCache(int id)
Parameters
id
int- The user transaction id.
GetPointsBalance(User)
Gets the transaction balance for user.
public static double GetPointsBalance(User user)
Parameters
Returns
GetPointsBalance(int)
Gets the transaction balance by user id.
public static double GetPointsBalance(int userId)
Parameters
userId
int- The user id.
Returns
GetUserTransactions()
Gets the collection of all user transactions.
public UserTransactionCollection GetUserTransactions()
Returns
GetUserTransactions(int)
Gets the collection of the user transactions by user id.
public static UserTransactionCollection GetUserTransactions(int userId)
Parameters
userId
int- The user id.
Returns
RedeemPoints(Order)
public void RedeemPoints(Order order)
Parameters
RedeemPoints(double, string, int)
Redeem points.
public void RedeemPoints(double points, string comment, int userId)
Parameters
points
double- The number of points.
comment
string- The comment for transaction.
userId
int- The user id.
RedeemPoints(double, string, int, DateTime)
Redeem points.
public void RedeemPoints(double points, string comment, int userId, DateTime transactionDate)
Parameters
points
double- The number of points.
comment
string- The comment for transaction.
userId
int- The user id.
transactionDate
DateTime- The transaction date.
RewardPoints(Order)
Reward points from order lines on an order.
public void RewardPoints(Order order)
Parameters
order
Order- The order.
RewardPoints(double, string, int)
Reward points.
public void RewardPoints(double points, string comment, int userId)