-
- All Implemented Interfaces:
-
io.purchasely.common.PLYCoroutineScope,kotlinx.coroutines.CoroutineScope
public abstract class Store implements PLYCoroutineScope
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classStore.Purchase
-
Field Summary
Fields Modifier and Type Field Description private final <ERROR CLASS>jobprivate StoreTypetypeprivate final StringpromoCodeUrlprivate final StringversionCodeprivate BooleanisSandboxprivate BooleanisAvailableprivate Store.PurchasecurrentPurchaseprivate final StateFlow<State>stateprivate final CoroutineContextcoroutineContext
-
Constructor Summary
Constructors Constructor Description Store()
-
Method Summary
-
-
Method Detail
-
getJob
<ERROR CLASS> getJob()
-
getPromoCodeUrl
abstract String getPromoCodeUrl()
-
getVersionCode
abstract String getVersionCode()
-
getIsSandbox
final Boolean getIsSandbox()
-
setIsSandbox
final Unit setIsSandbox(Boolean isSandbox)
-
getIsAvailable
Boolean getIsAvailable()
-
setIsAvailable
Unit setIsAvailable(Boolean isAvailable)
-
getCurrentPurchase
final Store.Purchase getCurrentPurchase()
-
setCurrentPurchase
final Unit setCurrentPurchase(Store.Purchase currentPurchase)
-
getCoroutineContext
CoroutineContext getCoroutineContext()
-
updateState
final <ERROR CLASS> updateState(State state)
-
purchasedFromStore
final Unit purchasedFromStore(String storeProductId, String purchaseToken)
-
disconnect
abstract Unit disconnect()
-
checkAvailability
abstract Boolean checkAvailability()
-
getProducts
abstract Collection<StoreProduct> getProducts(DistributionType type, List<PLYPlan> plans)
-
getHistory
abstract Collection<PLYPlan> getHistory(DistributionType type)
-
getSubscriptionsPurchasesToken
abstract Collection<String> getSubscriptionsPurchasesToken()
-
getNonConsumablesPurchasesToken
abstract Collection<String> getNonConsumablesPurchasesToken()
-
handlePendingPurchases
abstract Unit handlePendingPurchases()
-
restorePurchases
abstract Unit restorePurchases(String triedToPurchaseProductId, Boolean isSilent)
-
synchronizePurchases
abstract Unit synchronizePurchases(Boolean auto, Function1<PLYError, Unit> callback)
-
purchase
Unit purchase(Activity activity, PLYPlan plan, PLYProduct product, PLYPromoOffer offer)
-
consume
abstract Boolean consume(PLYPurchaseReceipt purchaseReceipt)
-
storeCountry
abstract String storeCountry()
-
getSubscriptionOffer
abstract PLYSubscriptionOffer getSubscriptionOffer(PLYPlan plan, String storeOfferId)
-
-
-
-