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
inline suspend fun <T : @Serializable Any> get(path: String, queryItems: List<URLQueryItem>? = null, isForDebugging: Boolean = false, requestId: String = UUID.randomUUID().toString(), retryCount: Int = NetworkConsts.retryCount(), noinline isRetryingCallback: suspend () -> Unit? = null, timeout: Duration? = null): Either<T, NetworkError>
Link copied to clipboard
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>