Table of Contents

Class UserTransaction

Namespace
Dynamicweb.Ecommerce.Loyalty
Assembly
Dynamicweb.Ecommerce.dll
Represents information about an user transaction.
public class UserTransaction
Inheritance
UserTransaction
Inherited Members

Constructors

UserTransaction()

Initializes a new instance of the class.
public UserTransaction()

UserTransaction(IDataReader)

Initializes a new instance of the class.
[Obsolete("This method is no longer used.")]
public UserTransaction(IDataReader dataReader)

Parameters

dataReader IDataReader
The data reader.

Properties

AuthorizingUser

Gets authorizing User.
public User AuthorizingUser { get; }

Property Value

User

Comment

Gets or sets the comment for transaction.
public string Comment { get; set; }

Property Value

string

ExpirationDate

Gets expitarion date for points.
public DateTime ExpirationDate { get; }

Property Value

DateTime

Id

Gets or sets the user transaction ID.
public int Id { get; set; }

Property Value

int

ObjectElement

public string ObjectElement { get; set; }

Property Value

string

ObjectType

Gets the ObjectType.
public TransactionObjectType ObjectType { get; set; }

Property Value

TransactionObjectType

Order

Gets transaction Order.
public Order Order { get; }

Property Value

Order

Points

Gets or sets the number of points.
public double Points { get; set; }

Property Value

double

Reward

Gets or sets transaction Reward.
public Reward Reward { get; set; }

Property Value

Reward

RewardId

Gets or sets the reward ID.
public int RewardId { get; set; }

Property Value

int

TransactionDate

Gets or sets the transaction date.
public DateTime TransactionDate { get; set; }

Property Value

DateTime

User

Gets or sets transaction User.
public User User { get; set; }

Property Value

User

UserId

Gets or sets the user ID.
public int UserId { get; set; }

Property Value

int

Methods

SetObjectType(OrderLine)

Sets the ObjectType.
[Obsolete("Use Services.Loyalty.CreateTransaction(UserTransaction, OrderLine) instead")]
public void SetObjectType(OrderLine orderLine)

Parameters

orderLine OrderLine
The OrderLine.

SetObjectType(User)

Sets the ObjectType.
[Obsolete("Use Services.Loyalty.CreateTransaction(UserTransaction, User) instead")]
public void SetObjectType(User user)

Parameters

user User
The User.
To top