Network
open class Network(baseHostService: BaseHostService, collectorService: CollectorService, enrichmentService: EnrichmentService, factory: ApiFactory, subscriptionService: SubscriptionService) : SuperwallAPI(source)
Constructors
Link copied to clipboard
constructor(baseHostService: BaseHostService, collectorService: CollectorService, enrichmentService: EnrichmentService, factory: ApiFactory, subscriptionService: SubscriptionService)
Functions
Link copied to clipboard
open suspend override fun confirmAssignments(confirmableAssignments: AssignmentPostback): Either<Unit, NetworkError>
Link copied to clipboard
Link copied to clipboard
open suspend override fun getEnrichment(enrichmentRequest: EnrichmentRequest, maxRetry: Int, timeout: Duration): Either<Enrichment, NetworkError>
Link copied to clipboard
open suspend override fun getPaywall(identifier: String?, event: EventData?): Either<Paywall, NetworkError>
Link copied to clipboard
Link copied to clipboard
open suspend override fun redeemToken(codes: List<Redeemable>, userId: UserId?, aliasId: String?, vendorId: DeviceVendorId, receipts: List<TransactionReceipt>, externalAccountId: String, attributionProps: Map<String, JsonElement>?): Either<WebRedemptionResponse, NetworkError>
Link copied to clipboard
Link copied to clipboard
open suspend override fun webEntitlementsByDeviceID(deviceId: DeviceVendorId): Either<WebEntitlements, NetworkError>
Link copied to clipboard
open suspend override fun webEntitlementsByUserId(userId: UserId, deviceId: DeviceVendorId): Either<WebEntitlements, NetworkError>