using System; using System.Collections.Generic; using System.Threading.Tasks; namespace WordsToolkit.Scripts.Services.IAP { public interface IIAPManager { Task InitializePurchasing(IEnumerable<(string productId, ProductTypeWrapper.ProductType productType)> products); void BuyProduct(string productId); decimal GetProductLocalizedPrice(string productId); string GetProductLocalizedPriceString(string productId); bool IsProductPurchased(string productId); void RestorePurchases(Action> action); void SubscribeToPurchaseEvent(Action purchaseHandler); void UnsubscribeFromPurchaseEvent(Action purchaseHandler); } }