MutationResolver class abstract

GraphQL root mutation operations.

Constructors

MutationResolver()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

acknowledgePurchaseAndroid(String purchaseToken) Future<bool>
Acknowledge a non-consumable purchase. Required within 3 days or Google auto-refunds. See: https://www.openiap.dev/docs/apis/android/acknowledge-purchase-android
beginRefundRequestIOS(String sku) Future<String?>
Present the refund request sheet (iOS 15+). See also Features → Refund. See: https://www.openiap.dev/docs/apis/ios/begin-refund-request-ios
checkAlternativeBillingAvailabilityAndroid() Future<bool>
Check whether alternative billing is available for the user. Step 1 of the alternative billing flow.
clearTransactionIOS() Future<bool>
Clear pending transactions in the queue (sandbox helper). See: https://www.openiap.dev/docs/apis/ios/clear-transaction-ios
consumePurchaseAndroid(String purchaseToken) Future<bool>
Consume a consumable purchase so it can be re-bought. See: https://www.openiap.dev/docs/apis/android/consume-purchase-android
createAlternativeBillingTokenAndroid() Future<String?>
Create a reporting token for an alternative billing flow. Step 3 of the alternative billing flow. Must be called AFTER successful payment in your payment system. Token must be reported to Google Play backend within 24 hours.
createBillingProgramReportingDetailsAndroid(BillingProgramAndroid program) Future<BillingProgramReportingDetailsAndroid>
Create the reporting payload Google requires after a Developer-Provided Billing transaction (Play Billing 8.3.0+). Replaces the deprecated createExternalOfferReportingDetailsAsync API.
deepLinkToSubscriptions({String? packageNameAndroid, String? skuAndroid}) Future<void>
Open the platform's subscription management UI. See: https://www.openiap.dev/docs/apis/deep-link-to-subscriptions
endConnection() Future<bool>
Close the store connection and release resources. See: https://www.openiap.dev/docs/apis/end-connection
finishTransaction({required PurchaseInput purchase, bool? isConsumable}) Future<void>
Complete a transaction after server-side verification. Required on Android within 3 days. See: https://www.openiap.dev/docs/apis/finish-transaction
initConnection({AlternativeBillingModeAndroid? alternativeBillingModeAndroid, BillingProgramAndroid? enableBillingProgramAndroid}) Future<bool>
Initialize the store connection. Call before any IAP API. See: https://www.openiap.dev/docs/apis/init-connection
isBillingProgramAvailableAndroid(BillingProgramAndroid program) Future<BillingProgramAvailabilityResultAndroid>
Check whether a billing program (e.g., External Payments) is available for the current user. Replaces the deprecated isExternalOfferAvailableAsync API.
launchExternalLinkAndroid({required BillingProgramAndroid billingProgram, required ExternalLinkLaunchModeAndroid launchMode, required ExternalLinkTypeAndroid linkType, required String linkUri}) Future<bool>
Launch an external content/offer link from inside the Billing Programs flow (Play Billing 8.2.0+). Replaces the deprecated showExternalOfferInformationDialog API.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
presentCodeRedemptionSheetIOS() Future<bool>
Show the App Store offer code redemption sheet. See: https://www.openiap.dev/docs/apis/ios/present-code-redemption-sheet-ios
presentExternalPurchaseLinkIOS(String url) Future<ExternalPurchaseLinkResultIOS>
Present an external purchase link, StoreKit External (iOS 16+). See: https://www.openiap.dev/docs/apis/ios/present-external-purchase-link-ios
presentExternalPurchaseNoticeSheetIOS() Future<ExternalPurchaseNoticeResultIOS>
Present the external purchase notice sheet (iOS 17.4+). Uses ExternalPurchase.presentNoticeSheet() which returns a token when the user continues. Reference: https://developer.apple.com/documentation/storekit/externalpurchase/presentnoticesheet() See: https://www.openiap.dev/docs/apis/ios/present-external-purchase-notice-sheet-ios
requestPurchase(RequestPurchaseProps params) Future<RequestPurchaseResult?>
Initiate a purchase or subscription flow; rely on events for final state. See: https://www.openiap.dev/docs/apis/request-purchase
requestPurchaseOnPromotedProductIOS() Future<bool>
Buy the currently promoted product.
restorePurchases() Future<void>
Restore non-consumable and active subscription purchases. See: https://www.openiap.dev/docs/apis/restore-purchases
showAlternativeBillingDialogAndroid() Future<bool>
Display Google's alternative billing information dialog. Step 2 of the alternative billing flow. Must be called BEFORE processing payment in your payment system.
showExternalPurchaseCustomLinkNoticeIOS(ExternalPurchaseCustomLinkNoticeTypeIOS noticeType) Future<ExternalPurchaseCustomLinkNoticeResultIOS>
Present the disclosure sheet required before linking out via ExternalPurchaseCustomLink (iOS 18.1+). Call this after a deliberate customer interaction before linking out to external purchases. Reference: https://developer.apple.com/documentation/storekit/externalpurchasecustomlink/shownotice(type:) See: https://www.openiap.dev/docs/apis/ios/show-external-purchase-custom-link-notice-ios
showManageSubscriptionsIOS() Future<List<PurchaseIOS>>
Present the manage-subscriptions sheet and return changed purchases (iOS 15+). See: https://www.openiap.dev/docs/apis/ios/show-manage-subscriptions-ios
syncIOS() Future<bool>
Force sync transactions with the App Store (iOS 15+). See: https://www.openiap.dev/docs/apis/ios/sync-ios
toString() String
A string representation of this object.
inherited
validateReceipt({VerifyPurchaseAppleOptions? apple, VerifyPurchaseGoogleOptions? google, VerifyPurchaseHorizonOptions? horizon}) Future<VerifyPurchaseResult>
Deprecated. Validate purchase receipts with the configured providers — use verifyPurchase instead. See: https://www.openiap.dev/docs/features/validation#verify-purchase
verifyPurchase({VerifyPurchaseAppleOptions? apple, VerifyPurchaseGoogleOptions? google, VerifyPurchaseHorizonOptions? horizon}) Future<VerifyPurchaseResult>
Verify a purchase against your own backend. Returns a platform-specific variant of VerifyPurchaseResult — VerifyPurchaseResultIOS exposes isValid
verifyPurchaseWithProvider({RequestVerifyPurchaseWithIapkitProps? iapkit, required PurchaseVerificationProvider provider}) Future<VerifyPurchaseWithProviderResult>
Verify via a managed provider without standing up your own server. The PurchaseVerificationProvider enum currently exposes only IAPKit; platform availability may differ by implementation. See: https://www.openiap.dev/docs/features/validation#verify-purchase-with-provider

Operators

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