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
Fields
_code
protected string _code
Field Value
_listId
protected int _listId
Field Value
StatusSent
public const string StatusSent = "Sent"
Field Value
StatusUsed
public const string StatusUsed = "Used"
Field Value
Properties
Code
Voucher Code
public string Code { get; }
Property Value
DateUsed
Date when the voucher was used
public DateTime? DateUsed { get; set; }
Property Value
Id
public int Id { get; }
Property Value
IsNew
public bool IsNew { get; }
Property Value
ListId
ID Of The list
public int ListId { get; }
Property Value
Status
Voucher Status.
public string Status { get; set; }
Property Value
UsedOrderId
OrderID on which the voucher was used
public string UsedOrderId { get; set; }
Property Value
UserId
ID of the user who used the voucher
public int? UserId { get; set; }
Property Value
- int?