Table of Contents

Interface IBasketService

Namespace
Rescope.Commerce.Core.Services
Assembly
Rescope.Commerce.Core.dll

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

Task<Basket>

GetOrCreateCurrentBasket(Guid)

Task<Basket> GetOrCreateCurrentBasket(Guid storeId)

Parameters

storeId Guid

Returns

Task<Basket>

InitiatePayment(Basket, IPublishedContent)

Task<(InitiatePaymentResult paymentResult, Order order)> InitiatePayment(Basket basket, IPublishedContent confirmationPage)

Parameters

basket Basket
confirmationPage IPublishedContent

Returns

Task<(InitiatePaymentResult paymentResult, Order order)>

RefreshPrices(Basket)

Task RefreshPrices(Basket basket)

Parameters

basket Basket

Returns

Task