Table of Contents

Class Voucher

Namespace
Dynamicweb.Ecommerce.Orders.Vouchers
Assembly
Dynamicweb.Ecommerce.dll
The class Voucher represents base for discounts on voucher codes.
public class Voucher
Inheritance
Voucher
Inherited Members

Constructors

Voucher(string, int)

Initializes a new instance of the Voucher class.
public Voucher(string code, int voucherListId)

Parameters

code string
The voucher code.
voucherListId int
The voucher list id.

Fields

_code

protected string _code

Field Value

string

_listId

protected int _listId

Field Value

int

StatusSent

public const string StatusSent = "Sent"

Field Value

string

StatusUsed

public const string StatusUsed = "Used"

Field Value

string

Properties

Code

Voucher Code
public string Code { get; }

Property Value

string

DateUsed

Date when the voucher was used
public DateTime? DateUsed { get; set; }

Property Value

DateTime?

Id

public int Id { get; }

Property Value

int

IsNew

public bool IsNew { get; }

Property Value

bool

ListId

ID Of The list
public int ListId { get; }

Property Value

int

Status

Voucher Status.
public string Status { get; set; }

Property Value

string

UsedOrderId

OrderID on which the voucher was used
public string UsedOrderId { get; set; }

Property Value

string

UserId

ID of the user who used the voucher
public int? UserId { get; set; }

Property Value

int?
To top