2024-04-18 01:44:37 +02:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Wino.Core.Domain.Enums;
|
|
|
|
|
|
using Wino.Core.Domain.Models.Store;
|
|
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
|
namespace Wino.Core.Domain.Interfaces;
|
|
|
|
|
|
|
|
|
|
|
|
public interface IStoreManagementService
|
2024-04-18 01:44:37 +02:00
|
|
|
|
{
|
2025-02-16 11:54:23 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Checks whether user has the type of an add-on purchased.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Task<bool> HasProductAsync(StoreProductType productType);
|
2024-04-18 01:44:37 +02:00
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Attempts to purchase the given add-on.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Task<StorePurchaseResult> PurchaseAsync(StoreProductType productType);
|
2024-04-18 01:44:37 +02:00
|
|
|
|
}
|