Previous Docs Version

The documentation you are viewing is for a previous version of the Vendr product. Click here to jump to the current stable version.

IGiftCardService

API reference for IGiftCardService in Vendr, the eCommerce solution for Umbraco v8+

IGiftCardService

public interface IGiftCardService : ICachedEntityService<GiftCardReadOnly>, IService

Inheritance

Namespace

Methods

DeleteGiftCard (1 of 2)

public void DeleteGiftCard(Guid id)

DeleteGiftCard (2 of 2)

public void DeleteGiftCard(GiftCard entity)

GenerateGiftCardCode

public string GenerateGiftCardCode(Guid storeId)

GetActiveGiftCards

public IEnumerable<GiftCardReadOnly> GetActiveGiftCards(Guid storeId)

GetGiftCard (1 of 2)

public GiftCardReadOnly GetGiftCard(Guid id)

GetGiftCard (2 of 2)

public GiftCardReadOnly GetGiftCard(Guid storeId, string code)

GetGiftCards

public IEnumerable<GiftCardReadOnly> GetGiftCards(Guid storeId)

GetGiftCardsByOrder

public IEnumerable<GiftCardReadOnly> GetGiftCardsByOrder(Guid orderId)

GiftCardExists

public bool GiftCardExists(Guid storeId, string code)

SaveGiftCard

public void SaveGiftCard(GiftCard entity)

SearchGiftCards

public PagedResult<GiftCardReadOnly> SearchGiftCards(Guid storeId, string searchTerm = null, 
    string code = null, string cartOrOrderNumber = null, Guid? currencyId = default(Guid?), 
    DateTime? fromDate = default(DateTime?), DateTime? toDate = default(DateTime?), 
    long currentPage = 1, long itemsPerPage = 50)

ValidateGiftCard

public bool ValidateGiftCard(Guid storeId, string code, Guid currencyId)

Edit this page on GitHub

Site + logo design © 2024 Outfield Digital Ltd. Content contributions licensed under MIT.
Vendr® is a Registered Trademark of Outfield Digital Ltd.