Interface IBasketService
BasketService is responsible for managing Basket.
public interface IBasketService : IService<Basket>, IServiceCreatable<Basket>
- Inherited Members
Methods
GetCurrentBasket(Guid)
Task<Basket> GetCurrentBasket(Guid storeId)
Parameters
storeId
Guid
Returns
GetOrCreateCurrentBasket(Guid)
Task<Basket> GetOrCreateCurrentBasket(Guid storeId)
Parameters
storeId
Guid
Returns
InitiatePayment(Basket, IPublishedContent)
Task<(InitiatePaymentResult paymentResult, Order order)> InitiatePayment(Basket basket, IPublishedContent confirmationPage)
Parameters
basket
BasketconfirmationPage
IPublishedContent
Returns
RefreshPrices(Basket)
Task RefreshPrices(Basket basket)
Parameters
basket
Basket