WebPaywallRedeemer

class WebPaywallRedeemer(context: Context, ioScope: IOScope, deepLinkReferrer: CheckForReferral, network: Network, storage: Storage, customerInfoManager: CustomerInfoManager, factory: WebPaywallRedeemer.Factory)(source)

Constructors

Link copied to clipboard
constructor(context: Context, ioScope: IOScope, deepLinkReferrer: CheckForReferral, network: Network, storage: Storage, customerInfoManager: CustomerInfoManager, factory: WebPaywallRedeemer.Factory)

Types

Link copied to clipboard
interface Factory
Link copied to clipboard
sealed interface RedeemType

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun checkForWebEntitlements(userId: UserId?, deviceId: DeviceVendorId): Either<Set<Entitlement>, Throwable>
Link copied to clipboard
fun clear(ownership: RedemptionOwnershipType)
Link copied to clipboard
suspend fun redeem(redemption: WebPaywallRedeemer.RedeemType)