Subscription Service
class SubscriptionService(val host: String, val version: String, val factory: ApiFactory, json: Json, val customHttpUrlConnection: CustomHttpUrlConnection) : NetworkService(source)
Constructors
Link copied to clipboard
constructor(host: String, version: String, factory: ApiFactory, json: Json, customHttpUrlConnection: CustomHttpUrlConnection)
Functions
Link copied to clipboard
Link copied to clipboard
suspend fun redeemToken(codes: List<Redeemable>, userId: UserId?, aliasId: String?, vendorId: DeviceVendorId, transactionReceipt: List<TransactionReceipt>, externalAccountId: String, attributionProps: Map<String, JsonElement>?): Either<WebRedemptionResponse, NetworkError>
Link copied to clipboard
suspend fun webEntitlementsByDeviceId(deviceId: DeviceVendorId): Either<WebEntitlements, NetworkError>
Link copied to clipboard
suspend fun webEntitlementsByUserId(userId: UserId?, deviceId: DeviceVendorId): Either<WebEntitlements, NetworkError>