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.

OrderService

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

OrderService

public class OrderService : EntityServiceBase, IOrderService

Inheritance

Namespace

Constructors

OrderService

public OrderService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, 
    ILogger logger, ICache cache, IEntityStateCacheAccessor entityStateCacheAccessor, 
    IOrderNumberGenerator orderNumberGenerator, ICurrencyExchangeRateService exchangeRateService)

Methods

DeleteOrder (1 of 4)

public void DeleteOrder(Guid id)

DeleteOrder (2 of 4)

public void DeleteOrder(Guid id, bool revertFinalized)

DeleteOrder (3 of 4)

public void DeleteOrder(Order entity)

DeleteOrder (4 of 4)

public void DeleteOrder(Order entity, bool revertFinalized)

GetAllOrdersForCustomer

public IEnumerable<OrderReadOnly> GetAllOrdersForCustomer(Guid storeId, 
    string customerReferenceOrEmail)

GetFinalizedOrderCount

public long GetFinalizedOrderCount(Guid storeId)

GetFinalizedOrdersForCustomer

public IEnumerable<OrderReadOnly> GetFinalizedOrdersForCustomer(Guid storeId, 
    string customerReferenceOrEmail)

GetOpenOrdersForCustomer

public IEnumerable<OrderReadOnly> GetOpenOrdersForCustomer(Guid storeId, 
    string customerReferenceOrEmail)

GetOrder (1 of 2)

public OrderReadOnly GetOrder(Guid id)

GetOrder (2 of 2)

public OrderReadOnly GetOrder(Guid storeId, string cartOrOrderNumber)

GetOrders

public IEnumerable<OrderReadOnly> GetOrders(Guid[] ids)

SaveOrder

public void SaveOrder(Order entity)

SearchOrders (1 of 2)

public PagedResult<OrderReadOnly> SearchOrders(Guid storeId, string searchTerm = null, 
    string cartOrOrderNumber = null, string firstName = null, string lastName = null, 
    bool? isFinalized = null, Guid? orderStatusId = default(Guid?), 
    PaymentStatus? paymentStatus = default(PaymentStatus?), 
    DateTime? fromDate = default(DateTime?), DateTime? toDate = default(DateTime?), 
    long currentPage = 1, long itemsPerPage = 50)

SearchOrders (2 of 2)

public PagedResult<OrderReadOnly> SearchOrders(Guid storeId, string searchTerm = null, 
    string cartOrOrderNumber = null, string firstName = null, string lastName = null, 
    bool? isFinalized = null, IEnumerable<Guid> orderStatusIds = null, 
    IEnumerable<PaymentStatus> paymentStatuses = null, DateTime? fromDate = default(DateTime?), 
    DateTime? toDate = default(DateTime?), long currentPage = 1, long itemsPerPage = 50)

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.