Table of Contents

Class VoucherListService

Namespace
Dynamicweb.Ecommerce.Orders.Vouchers
Assembly
Dynamicweb.Ecommerce.dll
public class VoucherListService
Inheritance
VoucherListService
Inherited Members

Methods

Delete(VoucherList)

public void Delete(VoucherList voucherList)

Parameters

voucherList VoucherList

GetAllVoucherLists()

public IEnumerable<VoucherList> GetAllVoucherLists()

Returns

IEnumerable<VoucherList>

GetUnusedVoucherListsFor(VoucherUseCategoryType, IEnumerable<int>)

public IEnumerable<VoucherList> GetUnusedVoucherListsFor(VoucherUseCategoryType type, IEnumerable<int> selectedVoucherListsIds)

Parameters

type VoucherUseCategoryType
selectedVoucherListsIds IEnumerable<int>

Returns

IEnumerable<VoucherList>

GetVoucherListById(int)

public VoucherList GetVoucherListById(int listId)

Parameters

listId int

Returns

VoucherList

HasAnyVoucherCode(VoucherList, IEnumerable<string>, bool, bool)

public bool HasAnyVoucherCode(VoucherList list, IEnumerable<string> codes, bool searchInActiveListsOnly, bool checkUnusedCodesOnly)

Parameters

list VoucherList
codes IEnumerable<string>
searchInActiveListsOnly bool
checkUnusedCodesOnly bool

Returns

bool

Save(VoucherList)

public void Save(VoucherList voucherList)

Parameters

voucherList VoucherList
To top