LinkFiveClient class

HTTP client to LinkFive

Inheritance

Constructors

LinkFiveClient()

Properties

environment LinkFiveEnvironment
current Environment of LinkFiveEnvironment
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hostUrl String
current Host. this will set in init
getter/setter pair
httpClient → RetryHttpClient
latefinal
prodUrl String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stagingUrl String
final

Methods

changeUserId(String? userId) Future<LinkFiveActiveProducts>
Should change the USER ID.
override
fetchLinkFiveResponse() Future<LinkFiveResponseData>
Call to LinkFive to get the subscriptions to show
override
fetchUserPlanListFromLinkFive() Future<LinkFiveActiveProducts>
Fetches the receipts for a user
override
init(LinkFiveEnvironment env, LinkFiveAppDataStore appDataStore) → dynamic
Mandatory init with LinkFiveEnvironment and LinkFiveAppDataStore
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
purchaseGooglePlay(GooglePlayPurchaseDetails purchaseDetails, GooglePlayProductDetails productDetails) Future<LinkFiveActiveProducts>
after a purchase on Google we call the purchases/google We don't need to do this on Android
override
purchaseGooglePlayOneTimePurchase(GooglePlayPurchaseDetails purchaseDetails, OneTimePurchaseOfferDetailsWrapper otpDetails) Future<LinkFiveActiveProducts>
after a one time purchase purchase on Google we post the data to LinkFIve
override
purchaseIos({required AppStoreProductDetails? productDetails, required AppStorePurchaseDetails purchaseDetails}) Future<LinkFiveActiveProducts>
after a purchase on ios we call the purchases/apple We don't need to do this on Android
override
restoreGoogle(List<LinkFiveRestoreGoogleItem> restoreList) Future<LinkFiveActiveProducts>
RESTORE GOOGLE PLAY STORE
override
restoreIos(List<LinkFiveRestoreAppleItem> restoreList) Future<LinkFiveActiveProducts>
RESTORE APPLE APP STORE
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited