Table of Contents

Class VoucherList

Namespace
Dynamicweb.Ecommerce.Orders.SalesDiscounts
Assembly
Dynamicweb.Ecommerce.dll
[Obsolete("Use Dynamicweb.Ecommerce.Orders.Vouchers.VoucherList instead.")]
public class VoucherList : VoucherList
Inheritance
VoucherList
Inherited Members

Constructors

VoucherList()

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

VoucherList(IDataReader)

Initializes a new instance of the VoucherList class.
public VoucherList(IDataReader dataReader)

Parameters

dataReader IDataReader
The data reader.

VoucherList(int)

Initializes a new instance of the VoucherList class with specified id.
public VoucherList(int voucherListId)

Parameters

voucherListId int
The list id.

Properties

ID

[Obsolete("Use Id instead.")]
public int ID { get; set; }

Property Value

int

ListActive

Gets or sets value indicating whether list is active.
[Obsolete("Use Active instead.")]
public bool ListActive { get; set; }

Property Value

bool

ListDiscountId

Gets or sets discount id associated with the list.
[Obsolete("Not used.")]
public string ListDiscountId { get; set; }

Property Value

string

ListName

Gets or sets the list name.
[Obsolete("Use Name instead.")]
public string ListName { get; set; }

Property Value

string

Methods

Delete()

public void Delete()

Delete(int)

public void Delete(int id)

Parameters

id int

Fill(IDataReader)

Fills this list data from given reader.
public void Fill(IDataReader dataReader)

Parameters

dataReader IDataReader
The data reader.

FillRow(DataRow)

Fills data row from this list data.
protected void FillRow(DataRow row)

Parameters

row DataRow
The data row.

GetAllVoucherLists()

Get all voucher Lists.
public static IEnumerable<VoucherList> GetAllVoucherLists()

Returns

IEnumerable<VoucherList>

GetDiscountForList(int)

Get the Discount object for the list with specified ID.
[Obsolete("Use VoucherListData.GetSalesDiscountForList instead")]
public static SalesDiscount GetDiscountForList(int listId)

Parameters

listId int
The id of related voucher list.

Returns

SalesDiscount

GetListById(int)

Get Vouchers List By ID.
public static VoucherList GetListById(int listId)

Parameters

listId int
The id of related voucher list.

Returns

VoucherList

GetUnusedVoucherListsFor(VoucherUseCategoryType, IEnumerable<int>)

Get all unused voucher Lists except selected values
public static IEnumerable<VoucherList> GetUnusedVoucherListsFor(VoucherUseCategoryType type, IEnumerable<int> selectedVoucherListsIds)

Parameters

type VoucherUseCategoryType
selectedVoucherListsIds IEnumerable<int>

Returns

IEnumerable<VoucherList>

Load(int)

public void Load(int id)

Parameters

id int

Save()

public void Save()

UpdateVoucherStatus(int, string)

Updates Vouchers status for specified List ID.
public static void UpdateVoucherStatus(int listId, string status)

Parameters

listId int
The id of related voucher list.
status string
The voucher status.
To top