react-native-iap 15.6.2 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/margelo/nitro/iap/HybridRnIap.kt +34 -182
- package/android/src/main/java/com/margelo/nitro/iap/ProductSerialization.kt +0 -69
- package/android/src/main/java/com/margelo/nitro/iap/RnIapLog.kt +0 -13
- package/ios/HybridRnIap.swift +30 -95
- package/ios/RnIapHelper.swift +37 -48
- package/ios/RnIapLog.swift +0 -11
- package/lib/module/hooks/useIAP.js +1 -11
- package/lib/module/hooks/useIAP.js.map +1 -1
- package/lib/module/index.js +45 -379
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.kepler.js +7 -82
- package/lib/module/index.kepler.js.map +1 -1
- package/lib/module/types.js +5 -57
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/errorMapping.js +13 -21
- package/lib/module/utils/errorMapping.js.map +1 -1
- package/lib/module/utils/type-bridge.js +39 -77
- package/lib/module/utils/type-bridge.js.map +1 -1
- package/lib/module/utils.js +5 -1
- package/lib/module/utils.js.map +1 -1
- package/lib/module/vega-adapter.js +10 -48
- package/lib/module/vega-adapter.js.map +1 -1
- package/lib/typescript/src/hooks/useIAP.d.ts +1 -49
- package/lib/typescript/src/hooks/useIAP.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +6 -175
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/index.kepler.d.ts +2 -54
- package/lib/typescript/src/index.kepler.d.ts.map +1 -1
- package/lib/typescript/src/specs/RnIap.nitro.d.ts +32 -173
- package/lib/typescript/src/specs/RnIap.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +76 -284
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/utils/errorMapping.d.ts.map +1 -1
- package/lib/typescript/src/utils/type-bridge.d.ts.map +1 -1
- package/lib/typescript/src/utils.d.ts.map +1 -1
- package/lib/typescript/src/vega-adapter.d.ts.map +1 -1
- package/nitrogen/generated/android/NitroIap+autolinking.cmake +5 -12
- package/nitrogen/generated/android/c++/JFunc_void_NitroProduct.hpp +0 -22
- package/nitrogen/generated/android/c++/JFunc_void_NitroPurchase.hpp +0 -2
- package/nitrogen/generated/android/c++/JHybridRnIapSpec.cpp +38 -189
- package/nitrogen/generated/android/c++/JHybridRnIapSpec.hpp +2 -9
- package/nitrogen/generated/android/c++/JInitConnectionConfig.hpp +1 -7
- package/nitrogen/generated/android/c++/JNitroActiveSubscription.hpp +1 -5
- package/nitrogen/generated/android/c++/JNitroAvailablePurchasesAndroidType.hpp +3 -3
- package/nitrogen/generated/android/c++/JNitroProduct.hpp +5 -39
- package/nitrogen/generated/android/c++/JNitroPurchase.hpp +25 -7
- package/nitrogen/generated/android/c++/JNitroPurchaseRequest.hpp +1 -9
- package/nitrogen/generated/android/c++/{JNitroReceiptValidationAppleOptions.hpp → JNitroPurchaseVerificationAppleOptions.hpp} +10 -10
- package/nitrogen/generated/android/c++/{JNitroReceiptValidationGoogleOptions.hpp → JNitroPurchaseVerificationGoogleOptions.hpp} +10 -10
- package/nitrogen/generated/android/c++/{JNitroReceiptValidationHorizonOptions.hpp → JNitroPurchaseVerificationHorizonOptions.hpp} +10 -10
- package/nitrogen/generated/android/c++/JNitroPurchaseVerificationParams.hpp +79 -0
- package/nitrogen/generated/android/c++/{JNitroReceiptValidationResultAndroid.hpp → JNitroPurchaseVerificationResultAndroid.hpp} +10 -10
- package/nitrogen/generated/android/c++/{JNitroReceiptValidationResultIOS.hpp → JNitroPurchaseVerificationResultIOS.hpp} +10 -12
- package/nitrogen/generated/android/c++/JNitroRenewalInfoIOS.hpp +19 -3
- package/nitrogen/generated/android/c++/JNitroRequestPurchaseAndroid.hpp +1 -6
- package/nitrogen/generated/android/c++/JProductType.hpp +3 -3
- package/nitrogen/generated/android/c++/JPurchase.hpp +0 -2
- package/nitrogen/generated/android/c++/JPurchaseAndroid.hpp +1 -7
- package/nitrogen/generated/android/c++/JPurchaseIOS.hpp +25 -7
- package/nitrogen/generated/android/c++/JPurchaseVerificationProvider.hpp +3 -3
- package/nitrogen/generated/android/c++/JRenewalInfoIOS.hpp +19 -3
- package/nitrogen/generated/android/c++/JRequestPurchaseResult.hpp +0 -2
- package/nitrogen/generated/android/c++/JVariant_NitroPurchaseVerificationResultIOS_NitroPurchaseVerificationResultAndroid.cpp +26 -0
- package/nitrogen/generated/android/c++/{JVariant_NitroReceiptValidationResultIOS_NitroReceiptValidationResultAndroid.hpp → JVariant_NitroPurchaseVerificationResultIOS_NitroPurchaseVerificationResultAndroid.hpp} +26 -28
- package/nitrogen/generated/android/c++/JVariant_NullType_InitConnectionConfig.hpp +1 -3
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroProduct.hpp +0 -22
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchase.hpp +0 -2
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchaseVerificationAppleOptions.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchaseVerificationAppleOptions.hpp +72 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchaseVerificationGoogleOptions.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchaseVerificationGoogleOptions.hpp +74 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchaseVerificationHorizonOptions.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchaseVerificationHorizonOptions.hpp +72 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroRequestPurchaseAndroid.hpp +0 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/HybridRnIapSpec.kt +2 -30
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/InitConnectionConfig.kt +3 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroActiveSubscription.kt +2 -7
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroAvailablePurchasesAndroidType.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroProduct.kt +5 -20
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroPurchase.kt +32 -7
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroPurchaseRequest.kt +3 -13
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{NitroReceiptValidationAppleOptions.kt → NitroPurchaseVerificationAppleOptions.kt} +6 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{NitroReceiptValidationGoogleOptions.kt → NitroPurchaseVerificationGoogleOptions.kt} +6 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{NitroReceiptValidationHorizonOptions.kt → NitroPurchaseVerificationHorizonOptions.kt} +6 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{NitroReceiptValidationParams.kt → NitroPurchaseVerificationParams.kt} +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{NitroReceiptValidationResultAndroid.kt → NitroPurchaseVerificationResultAndroid.kt} +6 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{NitroReceiptValidationResultIOS.kt → NitroPurchaseVerificationResultIOS.kt} +6 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroRenewalInfoIOS.kt +24 -4
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroRequestPurchaseAndroid.kt +2 -7
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/ProductType.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/PurchaseAndroid.kt +2 -7
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/PurchaseIOS.kt +30 -5
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/PurchaseVerificationProvider.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/RenewalInfoIOS.kt +24 -4
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NitroPurchaseVerificationResultIOS_NitroPurchaseVerificationResultAndroid.kt +62 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{Variant_NullType_NitroReceiptValidationGoogleOptions.kt → Variant_NullType_NitroPurchaseVerificationAppleOptions.kt} +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{Variant_NullType_Array_NitroOneTimePurchaseOfferDetail_.kt → Variant_NullType_NitroPurchaseVerificationGoogleOptions.kt} +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{Variant_NullType_NitroReceiptValidationAppleOptions.kt → Variant_NullType_NitroPurchaseVerificationHorizonOptions.kt} +9 -9
- package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Bridge.cpp +16 -16
- package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Bridge.hpp +212 -570
- package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Umbrella.hpp +18 -42
- package/nitrogen/generated/ios/c++/HybridRnIapSpecSwift.hpp +21 -101
- package/nitrogen/generated/ios/swift/Func_void_std__variant_NitroPurchaseVerificationResultIOS__NitroPurchaseVerificationResultAndroid_.swift +58 -0
- package/nitrogen/generated/ios/swift/HybridRnIapSpec.swift +2 -9
- package/nitrogen/generated/ios/swift/HybridRnIapSpec_cxx.swift +22 -181
- package/nitrogen/generated/ios/swift/InitConnectionConfig.swift +2 -13
- package/nitrogen/generated/ios/swift/NitroActiveSubscription.swift +1 -38
- package/nitrogen/generated/ios/swift/NitroAvailablePurchasesAndroidType.swift +4 -4
- package/nitrogen/generated/ios/swift/NitroProduct.swift +5 -122
- package/nitrogen/generated/ios/swift/NitroPurchase.swift +224 -7
- package/nitrogen/generated/ios/swift/NitroPurchaseRequest.swift +1 -75
- package/nitrogen/generated/ios/swift/{NitroReceiptValidationAppleOptions.swift → NitroPurchaseVerificationAppleOptions.swift} +5 -5
- package/nitrogen/generated/ios/swift/{NitroReceiptValidationGoogleOptions.swift → NitroPurchaseVerificationGoogleOptions.swift} +5 -5
- package/nitrogen/generated/ios/swift/{NitroReceiptValidationHorizonOptions.swift → NitroPurchaseVerificationHorizonOptions.swift} +5 -5
- package/nitrogen/generated/ios/swift/{NitroReceiptValidationParams.swift → NitroPurchaseVerificationParams.swift} +36 -36
- package/nitrogen/generated/ios/swift/{NitroReceiptValidationResultAndroid.swift → NitroPurchaseVerificationResultAndroid.swift} +5 -5
- package/nitrogen/generated/ios/swift/{NitroReceiptValidationResultIOS.swift → NitroPurchaseVerificationResultIOS.swift} +5 -5
- package/nitrogen/generated/ios/swift/NitroRenewalInfoIOS.swift +149 -1
- package/nitrogen/generated/ios/swift/NitroRequestPurchaseAndroid.swift +1 -38
- package/nitrogen/generated/ios/swift/ProductType.swift +4 -4
- package/nitrogen/generated/ios/swift/PurchaseAndroid.swift +2 -7
- package/nitrogen/generated/ios/swift/PurchaseIOS.swift +221 -4
- package/nitrogen/generated/ios/swift/PurchaseVerificationProvider.swift +4 -4
- package/nitrogen/generated/ios/swift/RenewalInfoIOS.swift +150 -2
- package/nitrogen/generated/ios/swift/{Variant_NitroReceiptValidationResultIOS_NitroReceiptValidationResultAndroid.swift → Variant_NitroPurchaseVerificationResultIOS_NitroPurchaseVerificationResultAndroid.swift} +5 -5
- package/nitrogen/generated/ios/swift/{Variant_NullType_NitroLimitedQuantityInfoAndroid.swift → Variant_NullType_NitroPurchaseVerificationAppleOptions.swift} +4 -4
- package/nitrogen/generated/ios/swift/{Variant_NullType_NitroReceiptValidationAppleOptions.swift → Variant_NullType_NitroPurchaseVerificationGoogleOptions.swift} +4 -4
- package/nitrogen/generated/ios/swift/{Variant_NullType_NitroPreorderDetailsAndroid.swift → Variant_NullType_NitroPurchaseVerificationHorizonOptions.swift} +4 -4
- package/nitrogen/generated/shared/c++/HybridRnIapSpec.cpp +1 -8
- package/nitrogen/generated/shared/c++/HybridRnIapSpec.hpp +11 -18
- package/nitrogen/generated/shared/c++/InitConnectionConfig.hpp +2 -9
- package/nitrogen/generated/shared/c++/NitroActiveSubscription.hpp +1 -5
- package/nitrogen/generated/shared/c++/NitroAvailablePurchasesAndroidType.hpp +4 -4
- package/nitrogen/generated/shared/c++/NitroProduct.hpp +6 -22
- package/nitrogen/generated/shared/c++/NitroPurchase.hpp +25 -8
- package/nitrogen/generated/shared/c++/NitroPurchaseRequest.hpp +2 -10
- package/nitrogen/generated/shared/c++/{NitroReceiptValidationAppleOptions.hpp → NitroPurchaseVerificationAppleOptions.hpp} +11 -11
- package/nitrogen/generated/shared/c++/{NitroReceiptValidationGoogleOptions.hpp → NitroPurchaseVerificationGoogleOptions.hpp} +11 -11
- package/nitrogen/generated/shared/c++/{NitroReceiptValidationHorizonOptions.hpp → NitroPurchaseVerificationHorizonOptions.hpp} +11 -11
- package/nitrogen/generated/shared/c++/NitroPurchaseVerificationParams.hpp +101 -0
- package/nitrogen/generated/shared/c++/{NitroReceiptValidationResultAndroid.hpp → NitroPurchaseVerificationResultAndroid.hpp} +11 -11
- package/nitrogen/generated/shared/c++/{NitroReceiptValidationResultIOS.hpp → NitroPurchaseVerificationResultIOS.hpp} +11 -11
- package/nitrogen/generated/shared/c++/NitroRenewalInfoIOS.hpp +18 -2
- package/nitrogen/generated/shared/c++/NitroRequestPurchaseAndroid.hpp +1 -5
- package/nitrogen/generated/shared/c++/ProductType.hpp +5 -5
- package/nitrogen/generated/shared/c++/PurchaseAndroid.hpp +1 -8
- package/nitrogen/generated/shared/c++/PurchaseIOS.hpp +25 -8
- package/nitrogen/generated/shared/c++/PurchaseVerificationProvider.hpp +5 -5
- package/nitrogen/generated/shared/c++/RenewalInfoIOS.hpp +18 -2
- package/openiap-versions.json +3 -3
- package/package.json +1 -1
- package/src/hooks/useIAP.ts +0 -76
- package/src/index.kepler.ts +11 -96
- package/src/index.ts +60 -457
- package/src/specs/RnIap.nitro.ts +35 -196
- package/src/types.ts +77 -295
- package/src/utils/errorMapping.ts +21 -20
- package/src/utils/type-bridge.ts +53 -90
- package/src/utils.ts +8 -0
- package/src/vega-adapter.ts +11 -59
- package/lib/module/utils/deprecation.js +0 -15
- package/lib/module/utils/deprecation.js.map +0 -1
- package/lib/module/utils/platform-request.js +0 -28
- package/lib/module/utils/platform-request.js.map +0 -1
- package/lib/typescript/src/utils/deprecation.d.ts +0 -3
- package/lib/typescript/src/utils/deprecation.d.ts.map +0 -1
- package/lib/typescript/src/utils/platform-request.d.ts +0 -12
- package/lib/typescript/src/utils/platform-request.d.ts.map +0 -1
- package/nitrogen/generated/android/c++/JAlternativeBillingModeAndroid.hpp +0 -61
- package/nitrogen/generated/android/c++/JNitroDiscountAmountAndroid.hpp +0 -61
- package/nitrogen/generated/android/c++/JNitroDiscountDisplayInfoAndroid.hpp +0 -69
- package/nitrogen/generated/android/c++/JNitroLimitedQuantityInfoAndroid.hpp +0 -61
- package/nitrogen/generated/android/c++/JNitroOneTimePurchaseOfferDetail.hpp +0 -148
- package/nitrogen/generated/android/c++/JNitroPreorderDetailsAndroid.hpp +0 -61
- package/nitrogen/generated/android/c++/JNitroReceiptValidationParams.hpp +0 -79
- package/nitrogen/generated/android/c++/JNitroRentalDetailsAndroid.hpp +0 -66
- package/nitrogen/generated/android/c++/JNitroValidTimeWindowAndroid.hpp +0 -61
- package/nitrogen/generated/android/c++/JVariant_NitroReceiptValidationResultIOS_NitroReceiptValidationResultAndroid.cpp +0 -26
- package/nitrogen/generated/android/c++/JVariant_NullType_Array_NitroOneTimePurchaseOfferDetail_.cpp +0 -35
- package/nitrogen/generated/android/c++/JVariant_NullType_Array_NitroOneTimePurchaseOfferDetail_.hpp +0 -103
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroDiscountAmountAndroid.cpp +0 -26
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroDiscountAmountAndroid.hpp +0 -72
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroDiscountDisplayInfoAndroid.cpp +0 -26
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroDiscountDisplayInfoAndroid.hpp +0 -77
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroLimitedQuantityInfoAndroid.cpp +0 -26
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroLimitedQuantityInfoAndroid.hpp +0 -71
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroPreorderDetailsAndroid.cpp +0 -26
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroPreorderDetailsAndroid.hpp +0 -72
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroReceiptValidationAppleOptions.cpp +0 -26
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroReceiptValidationAppleOptions.hpp +0 -72
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroReceiptValidationGoogleOptions.cpp +0 -26
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroReceiptValidationGoogleOptions.hpp +0 -74
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroReceiptValidationHorizonOptions.cpp +0 -26
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroReceiptValidationHorizonOptions.hpp +0 -72
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroRentalDetailsAndroid.cpp +0 -26
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroRentalDetailsAndroid.hpp +0 -74
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroValidTimeWindowAndroid.cpp +0 -26
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroValidTimeWindowAndroid.hpp +0 -72
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/AlternativeBillingModeAndroid.kt +0 -24
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroDiscountAmountAndroid.kt +0 -56
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroDiscountDisplayInfoAndroid.kt +0 -56
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroLimitedQuantityInfoAndroid.kt +0 -56
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroOneTimePurchaseOfferDetail.kt +0 -111
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroPreorderDetailsAndroid.kt +0 -56
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroRentalDetailsAndroid.kt +0 -56
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroValidTimeWindowAndroid.kt +0 -56
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NitroReceiptValidationResultIOS_NitroReceiptValidationResultAndroid.kt +0 -62
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroDiscountAmountAndroid.kt +0 -62
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroDiscountDisplayInfoAndroid.kt +0 -62
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroLimitedQuantityInfoAndroid.kt +0 -62
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroPreorderDetailsAndroid.kt +0 -62
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroReceiptValidationHorizonOptions.kt +0 -62
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroRentalDetailsAndroid.kt +0 -62
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroValidTimeWindowAndroid.kt +0 -62
- package/nitrogen/generated/ios/swift/AlternativeBillingModeAndroid.swift +0 -44
- package/nitrogen/generated/ios/swift/Func_void_std__variant_NitroReceiptValidationResultIOS__NitroReceiptValidationResultAndroid_.swift +0 -58
- package/nitrogen/generated/ios/swift/NitroDiscountAmountAndroid.swift +0 -34
- package/nitrogen/generated/ios/swift/NitroDiscountDisplayInfoAndroid.swift +0 -98
- package/nitrogen/generated/ios/swift/NitroLimitedQuantityInfoAndroid.swift +0 -34
- package/nitrogen/generated/ios/swift/NitroOneTimePurchaseOfferDetail.swift +0 -351
- package/nitrogen/generated/ios/swift/NitroPreorderDetailsAndroid.swift +0 -34
- package/nitrogen/generated/ios/swift/NitroRentalDetailsAndroid.swift +0 -66
- package/nitrogen/generated/ios/swift/NitroValidTimeWindowAndroid.swift +0 -34
- package/nitrogen/generated/ios/swift/Variant_NullType_NitroDiscountAmountAndroid.swift +0 -30
- package/nitrogen/generated/ios/swift/Variant_NullType_NitroDiscountDisplayInfoAndroid.swift +0 -30
- package/nitrogen/generated/ios/swift/Variant_NullType_NitroReceiptValidationGoogleOptions.swift +0 -30
- package/nitrogen/generated/ios/swift/Variant_NullType_NitroReceiptValidationHorizonOptions.swift +0 -30
- package/nitrogen/generated/ios/swift/Variant_NullType_NitroRentalDetailsAndroid.swift +0 -30
- package/nitrogen/generated/ios/swift/Variant_NullType_NitroValidTimeWindowAndroid.swift +0 -30
- package/nitrogen/generated/ios/swift/Variant_NullType__NitroOneTimePurchaseOfferDetail_.swift +0 -30
- package/nitrogen/generated/shared/c++/AlternativeBillingModeAndroid.hpp +0 -80
- package/nitrogen/generated/shared/c++/NitroDiscountAmountAndroid.hpp +0 -87
- package/nitrogen/generated/shared/c++/NitroDiscountDisplayInfoAndroid.hpp +0 -91
- package/nitrogen/generated/shared/c++/NitroLimitedQuantityInfoAndroid.hpp +0 -87
- package/nitrogen/generated/shared/c++/NitroOneTimePurchaseOfferDetail.hpp +0 -149
- package/nitrogen/generated/shared/c++/NitroPreorderDetailsAndroid.hpp +0 -87
- package/nitrogen/generated/shared/c++/NitroReceiptValidationParams.hpp +0 -101
- package/nitrogen/generated/shared/c++/NitroRentalDetailsAndroid.hpp +0 -90
- package/nitrogen/generated/shared/c++/NitroValidTimeWindowAndroid.hpp +0 -87
- package/src/utils/deprecation.ts +0 -16
- package/src/utils/platform-request.ts +0 -37
|
@@ -24,12 +24,6 @@ export interface ActiveSubscription {
|
|
|
24
24
|
/** Unix timestamp in milliseconds since January 1, 1970 UTC. */
|
|
25
25
|
transactionDate: number;
|
|
26
26
|
transactionId: string;
|
|
27
|
-
/**
|
|
28
|
-
* Whether the subscription will expire soon (within 7 days).
|
|
29
|
-
* Consider using daysUntilExpirationIOS for more precise control.
|
|
30
|
-
* @deprecated iOS only - use daysUntilExpirationIOS instead. Scheduled for removal in OpenIAP 3.0.
|
|
31
|
-
*/
|
|
32
|
-
willExpireSoon?: (boolean | null);
|
|
33
27
|
}
|
|
34
28
|
/**
|
|
35
29
|
* Advanced Commerce metadata from a transaction (iOS 18.4+).
|
|
@@ -77,14 +71,6 @@ export interface AdvancedCommerceRefundIOS {
|
|
|
77
71
|
/** JSON representation of the refund details */
|
|
78
72
|
jsonRepresentation?: (string | null);
|
|
79
73
|
}
|
|
80
|
-
/**
|
|
81
|
-
* Alternative billing mode for Android
|
|
82
|
-
* Controls which billing system is used
|
|
83
|
-
* Use the user-choice-billing program for user choice billing and external-offer
|
|
84
|
-
* for external digital-content offers.
|
|
85
|
-
* @deprecated Use enableBillingProgramAndroid with BillingProgramAndroid instead. Scheduled for removal in OpenIAP 3.0.
|
|
86
|
-
*/
|
|
87
|
-
export type AlternativeBillingModeAndroid = 'none' | 'user-choice' | 'alternative-only';
|
|
88
74
|
export interface AndroidSubscriptionOfferInput {
|
|
89
75
|
/** Offer token */
|
|
90
76
|
offerToken: string;
|
|
@@ -101,10 +87,24 @@ export interface AppTransaction {
|
|
|
101
87
|
deviceVerificationNonce: string;
|
|
102
88
|
environment: string;
|
|
103
89
|
originalAppVersion: string;
|
|
90
|
+
/**
|
|
91
|
+
* Original App Store platform raw value. Xcode 27 adds the back-deployed managed
|
|
92
|
+
* acquisition-platform value.
|
|
93
|
+
*/
|
|
104
94
|
originalPlatform?: (string | null);
|
|
105
95
|
originalPurchaseDate: number;
|
|
106
96
|
preorderDate?: (number | null);
|
|
97
|
+
/**
|
|
98
|
+
* Date the app-acquisition transaction was revoked (epoch milliseconds).
|
|
99
|
+
* Available through the Xcode 27 SDK and back-deployed to Apple 16+.
|
|
100
|
+
*/
|
|
101
|
+
revocationDate?: (number | null);
|
|
107
102
|
signedDate: number;
|
|
103
|
+
/**
|
|
104
|
+
* Store channel of the original app purchase: consumer, education, enterprise,
|
|
105
|
+
* or another future StoreKit value (Apple 27+ beta).
|
|
106
|
+
*/
|
|
107
|
+
storeType?: (string | null);
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
110
|
* Play Billing choice image layout (Android)
|
|
@@ -195,6 +195,21 @@ export interface BillingResultAndroid {
|
|
|
195
195
|
*/
|
|
196
196
|
subResponseCode?: (SubResponseCodeAndroid | null);
|
|
197
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* Metadata for one auto-renewable subscription included in an Apple
|
|
200
|
+
* subscription bundle (Apple 27+ beta).
|
|
201
|
+
*/
|
|
202
|
+
export interface BundledSubscriptionIOS {
|
|
203
|
+
description: string;
|
|
204
|
+
displayName: string;
|
|
205
|
+
displayPrice: string;
|
|
206
|
+
id: string;
|
|
207
|
+
isFamilyShareable: boolean;
|
|
208
|
+
price: number;
|
|
209
|
+
subscriptionGroupDisplayName: string;
|
|
210
|
+
subscriptionGroupId: string;
|
|
211
|
+
subscriptionGroupLevel: number;
|
|
212
|
+
}
|
|
198
213
|
export interface DeepLinkOptions {
|
|
199
214
|
/** Android package name to target (required on Android) */
|
|
200
215
|
packageNameAndroid?: (string | null);
|
|
@@ -297,21 +312,6 @@ export interface DiscountDisplayInfoAndroid {
|
|
|
297
312
|
*/
|
|
298
313
|
percentageDiscount?: (number | null);
|
|
299
314
|
}
|
|
300
|
-
/**
|
|
301
|
-
* Discount information returned from the store.
|
|
302
|
-
* @see https://openiap.dev/docs/types/subscription-offer
|
|
303
|
-
* @deprecated Use the standardized SubscriptionOffer type instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0.
|
|
304
|
-
*/
|
|
305
|
-
export interface DiscountIOS {
|
|
306
|
-
identifier: string;
|
|
307
|
-
localizedPrice?: (string | null);
|
|
308
|
-
numberOfPeriods: number;
|
|
309
|
-
paymentMode: PaymentModeIOS;
|
|
310
|
-
price: string;
|
|
311
|
-
priceAmount: number;
|
|
312
|
-
subscriptionPeriod: string;
|
|
313
|
-
type: string;
|
|
314
|
-
}
|
|
315
315
|
/**
|
|
316
316
|
* Standardized one-time product discount offer.
|
|
317
317
|
* Provides a platform-neutral OpenIAP shape for Google Play one-time product
|
|
@@ -343,7 +343,7 @@ export interface DiscountOffer {
|
|
|
343
343
|
/**
|
|
344
344
|
* Unique identifier for the offer.
|
|
345
345
|
* - iOS: Not applicable (one-time discounts not supported)
|
|
346
|
-
* - Android: offerId from
|
|
346
|
+
* - Android: offerId from the Google Play one-time purchase option
|
|
347
347
|
*/
|
|
348
348
|
id?: (string | null);
|
|
349
349
|
/**
|
|
@@ -390,23 +390,6 @@ export interface DiscountOffer {
|
|
|
390
390
|
*/
|
|
391
391
|
validTimeWindowAndroid?: (ValidTimeWindowAndroid | null);
|
|
392
392
|
}
|
|
393
|
-
/**
|
|
394
|
-
* iOS DiscountOffer (output type).
|
|
395
|
-
* @see https://openiap.dev/docs/types/subscription-offer
|
|
396
|
-
* @deprecated Use the standardized SubscriptionOffer type instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0.
|
|
397
|
-
*/
|
|
398
|
-
export interface DiscountOfferIOS {
|
|
399
|
-
/** Discount identifier */
|
|
400
|
-
identifier: string;
|
|
401
|
-
/** Key identifier for validation */
|
|
402
|
-
keyIdentifier: string;
|
|
403
|
-
/** Cryptographic nonce */
|
|
404
|
-
nonce: string;
|
|
405
|
-
/** Signature for validation */
|
|
406
|
-
signature: string;
|
|
407
|
-
/** Timestamp of discount offer */
|
|
408
|
-
timestamp: number;
|
|
409
|
-
}
|
|
410
393
|
export interface DiscountOfferInputIOS {
|
|
411
394
|
/** Discount identifier */
|
|
412
395
|
identifier: string;
|
|
@@ -455,12 +438,6 @@ export declare enum ErrorCode {
|
|
|
455
438
|
PurchaseVerificationFinishFailed = "purchase-verification-finish-failed",
|
|
456
439
|
PurchaseVerificationFinished = "purchase-verification-finished",
|
|
457
440
|
QueryProduct = "query-product",
|
|
458
|
-
/** @deprecated Use PurchaseVerificationFailed instead. Scheduled for removal in OpenIAP 3.0. */
|
|
459
|
-
ReceiptFailed = "receipt-failed",
|
|
460
|
-
/** @deprecated Use PurchaseVerificationFinished instead. Scheduled for removal in OpenIAP 3.0. */
|
|
461
|
-
ReceiptFinished = "receipt-finished",
|
|
462
|
-
/** @deprecated Use PurchaseVerificationFinishFailed instead. Scheduled for removal in OpenIAP 3.0. */
|
|
463
|
-
ReceiptFinishedFailed = "receipt-finished-failed",
|
|
464
441
|
RemoteError = "remote-error",
|
|
465
442
|
ServiceDisconnected = "service-disconnected",
|
|
466
443
|
ServiceError = "service-error",
|
|
@@ -486,24 +463,6 @@ export type ExternalLinkLaunchModeAndroid = 'unspecified' | 'launch-in-external-
|
|
|
486
463
|
* Available in Google Play Billing Library 8.2.0+
|
|
487
464
|
*/
|
|
488
465
|
export type ExternalLinkTypeAndroid = 'unspecified' | 'link-to-digital-content-offer' | 'link-to-app-download';
|
|
489
|
-
/**
|
|
490
|
-
* External offer availability result (Android)
|
|
491
|
-
* Available in Google Play Billing Library 6.2.0+, deprecated in 8.2.0
|
|
492
|
-
* @deprecated Use BillingProgramAvailabilityResultAndroid from isBillingProgramAvailableAndroid instead. Scheduled for removal in OpenIAP 3.0.
|
|
493
|
-
*/
|
|
494
|
-
export interface ExternalOfferAvailabilityResultAndroid {
|
|
495
|
-
/** Whether external offers are available for the user */
|
|
496
|
-
isAvailable: boolean;
|
|
497
|
-
}
|
|
498
|
-
/**
|
|
499
|
-
* External offer reporting details (Android)
|
|
500
|
-
* Available in Google Play Billing Library 6.2.0+, deprecated in 8.2.0
|
|
501
|
-
* @deprecated Use BillingProgramReportingDetailsAndroid from createBillingProgramReportingDetailsAndroid instead. Scheduled for removal in OpenIAP 3.0.
|
|
502
|
-
*/
|
|
503
|
-
export interface ExternalOfferReportingDetailsAndroid {
|
|
504
|
-
/** External transaction token for reporting external offer transactions */
|
|
505
|
-
externalTransactionToken: string;
|
|
506
|
-
}
|
|
507
466
|
/** Result of showing ExternalPurchaseCustomLink notice (iOS 18.1+). */
|
|
508
467
|
export interface ExternalPurchaseCustomLinkNoticeResultIOS {
|
|
509
468
|
/** Whether the user chose to continue to external purchase */
|
|
@@ -622,13 +581,6 @@ export interface InAppMessageResultAndroid {
|
|
|
622
581
|
}
|
|
623
582
|
/** Connection initialization configuration */
|
|
624
583
|
export interface InitConnectionConfig {
|
|
625
|
-
/**
|
|
626
|
-
* Alternative billing mode for Android
|
|
627
|
-
* If not specified, defaults to NONE (standard Google Play billing)
|
|
628
|
-
* Use USER_CHOICE_BILLING for user choice billing, EXTERNAL_OFFER for alternative only.
|
|
629
|
-
* @deprecated Use enableBillingProgramAndroid instead. Scheduled for removal in OpenIAP 3.0.
|
|
630
|
-
*/
|
|
631
|
-
alternativeBillingModeAndroid?: (AlternativeBillingModeAndroid | null);
|
|
632
584
|
/**
|
|
633
585
|
* Billing Choice renderer configured in Play Console. Available in OpenIAP
|
|
634
586
|
* Spec 2.1.0 / openiap-google 2.3.0 (requires Play Billing 9.1.0+).
|
|
@@ -714,14 +666,6 @@ export interface Mutation {
|
|
|
714
666
|
* See: https://openiap.dev/docs/apis/ios/begin-refund-request-ios
|
|
715
667
|
*/
|
|
716
668
|
beginRefundRequestIOS?: Promise<(string | null)>;
|
|
717
|
-
/**
|
|
718
|
-
* Check whether alternative billing is available for the user. Step 1 of the alternative billing flow.
|
|
719
|
-
* Returns true if available, false otherwise.
|
|
720
|
-
* Throws OpenIapError.NotPrepared if billing client not ready.
|
|
721
|
-
* See: https://openiap.dev/docs/apis/android/check-alternative-billing-availability-android
|
|
722
|
-
* @deprecated Use isBillingProgramAvailableAndroid with the external-offer BillingProgramAndroid value instead. Scheduled for removal in OpenIAP 3.0.
|
|
723
|
-
*/
|
|
724
|
-
checkAlternativeBillingAvailabilityAndroid: Promise<boolean>;
|
|
725
669
|
/**
|
|
726
670
|
* Clear pending transactions in the queue (sandbox helper).
|
|
727
671
|
* See: https://openiap.dev/docs/apis/ios/clear-transaction-ios
|
|
@@ -732,16 +676,6 @@ export interface Mutation {
|
|
|
732
676
|
* See: https://openiap.dev/docs/apis/android/consume-purchase-android
|
|
733
677
|
*/
|
|
734
678
|
consumePurchaseAndroid: Promise<boolean>;
|
|
735
|
-
/**
|
|
736
|
-
* Create a reporting token for an alternative billing flow. Step 3 of the alternative billing flow.
|
|
737
|
-
* Must be called AFTER successful payment in your payment system.
|
|
738
|
-
* Token must be reported to Google Play backend within 24 hours.
|
|
739
|
-
* Returns token string, or null if creation failed.
|
|
740
|
-
* Throws OpenIapError.NotPrepared if billing client not ready.
|
|
741
|
-
* See: https://openiap.dev/docs/apis/android/create-alternative-billing-token-android
|
|
742
|
-
* @deprecated Use createBillingProgramReportingDetailsAndroid with the external-offer BillingProgramAndroid value instead. Scheduled for removal in OpenIAP 3.0.
|
|
743
|
-
*/
|
|
744
|
-
createAlternativeBillingTokenAndroid?: Promise<(string | null)>;
|
|
745
679
|
/**
|
|
746
680
|
* Create the reporting details and external transaction token required by a billing program.
|
|
747
681
|
* Introduced in Play Billing 8.2.0. External Offer and External Content Link integrations
|
|
@@ -816,9 +750,14 @@ export interface Mutation {
|
|
|
816
750
|
openRedeemOfferCodeAndroid: Promise<boolean>;
|
|
817
751
|
/**
|
|
818
752
|
* Show the App Store offer code redemption sheet.
|
|
753
|
+
* On iOS 27+, Mac Catalyst 27+, and visionOS 27+, returns the verified
|
|
754
|
+
* transaction produced by the redemption. Earlier iOS and Mac Catalyst
|
|
755
|
+
* versions present the legacy sheet and return null; reconcile purchases
|
|
756
|
+
* through the normal transaction listener or an explicit available-purchases
|
|
757
|
+
* refresh.
|
|
819
758
|
* See: https://openiap.dev/docs/apis/ios/present-code-redemption-sheet-ios
|
|
820
759
|
*/
|
|
821
|
-
presentCodeRedemptionSheetIOS
|
|
760
|
+
presentCodeRedemptionSheetIOS?: Promise<(PurchaseIOS | null)>;
|
|
822
761
|
/**
|
|
823
762
|
* Present an external purchase link, StoreKit External (iOS 16+).
|
|
824
763
|
* See: https://openiap.dev/docs/apis/ios/present-external-purchase-link-ios
|
|
@@ -836,27 +775,11 @@ export interface Mutation {
|
|
|
836
775
|
* See: https://openiap.dev/docs/apis/request-purchase
|
|
837
776
|
*/
|
|
838
777
|
requestPurchase?: Promise<(Purchase | Purchase[] | null)>;
|
|
839
|
-
/**
|
|
840
|
-
* Buy the currently promoted product.
|
|
841
|
-
*
|
|
842
|
-
* See: https://openiap.dev/docs/apis/ios/request-purchase-on-promoted-product-ios
|
|
843
|
-
* @deprecated Use the promoted-product listener or callback exposed by your SDK to receive the productId, then call requestPurchase with that SKU instead. In StoreKit 2, promoted products can be purchased directly via the standard purchase flow. Scheduled for removal in OpenIAP 3.0.
|
|
844
|
-
*/
|
|
845
|
-
requestPurchaseOnPromotedProductIOS: Promise<boolean>;
|
|
846
778
|
/**
|
|
847
779
|
* Restore non-consumable and active subscription purchases.
|
|
848
780
|
* See: https://openiap.dev/docs/apis/restore-purchases
|
|
849
781
|
*/
|
|
850
782
|
restorePurchases: Promise<void>;
|
|
851
|
-
/**
|
|
852
|
-
* Display Google's alternative billing information dialog. Step 2 of the alternative billing flow.
|
|
853
|
-
* Must be called BEFORE processing payment in your payment system.
|
|
854
|
-
* Returns true if user accepted, false if user canceled.
|
|
855
|
-
* Throws OpenIapError.NotPrepared if billing client not ready.
|
|
856
|
-
* See: https://openiap.dev/docs/apis/android/show-alternative-billing-dialog-android
|
|
857
|
-
* @deprecated Use launchExternalLinkAndroid instead. Scheduled for removal in OpenIAP 3.0.
|
|
858
|
-
*/
|
|
859
|
-
showAlternativeBillingDialogAndroid: Promise<boolean>;
|
|
860
783
|
/**
|
|
861
784
|
* Show Google's mandatory information dialog before a developer-rendered,
|
|
862
785
|
* in-app Billing Choice screen.
|
|
@@ -891,12 +814,6 @@ export interface Mutation {
|
|
|
891
814
|
* See: https://openiap.dev/docs/apis/ios/sync-ios
|
|
892
815
|
*/
|
|
893
816
|
syncIOS: Promise<boolean>;
|
|
894
|
-
/**
|
|
895
|
-
* Deprecated. Validate purchase receipts with the configured providers — use verifyPurchase instead.
|
|
896
|
-
* See: https://openiap.dev/docs/features/validation#verify-purchase
|
|
897
|
-
* @deprecated Use verifyPurchase. Scheduled for removal in OpenIAP 3.0.
|
|
898
|
-
*/
|
|
899
|
-
validateReceipt: Promise<VerifyPurchaseResult>;
|
|
900
817
|
/**
|
|
901
818
|
* Verify a purchase against your own backend. Returns a platform-specific
|
|
902
819
|
* variant of VerifyPurchaseResult — VerifyPurchaseResultIOS exposes isValid
|
|
@@ -934,7 +851,6 @@ export type MutationRequestPurchaseArgs = RequestPurchaseProps;
|
|
|
934
851
|
export type MutationShowBillingProgramInformationDialogAndroidArgs = BillingProgramInformationDialogParamsAndroid;
|
|
935
852
|
export type MutationShowExternalPurchaseCustomLinkNoticeIosArgs = ExternalPurchaseCustomLinkNoticeTypeIOS;
|
|
936
853
|
export type MutationShowInAppMessagesAndroidArgs = (InAppMessageParamsAndroid | null) | undefined;
|
|
937
|
-
export type MutationValidateReceiptArgs = VerifyPurchaseProps;
|
|
938
854
|
export type MutationVerifyPurchaseArgs = VerifyPurchaseProps;
|
|
939
855
|
export type MutationVerifyPurchaseWithProviderArgs = VerifyPurchaseWithProviderProps;
|
|
940
856
|
/**
|
|
@@ -1004,12 +920,6 @@ export interface ProductAndroid extends ProductCommon {
|
|
|
1004
920
|
displayPrice: string;
|
|
1005
921
|
id: string;
|
|
1006
922
|
nameAndroid: string;
|
|
1007
|
-
/**
|
|
1008
|
-
* One-time purchase offer details including discounts (Android)
|
|
1009
|
-
* Returns all eligible offers. Available in Google Play Billing Library 8.0+
|
|
1010
|
-
* @deprecated Use the standardized discountOffers field instead. Scheduled for removal in OpenIAP 3.0.
|
|
1011
|
-
*/
|
|
1012
|
-
oneTimePurchaseOfferDetailsAndroid?: (ProductAndroidOneTimePurchaseOfferDetail[] | null);
|
|
1013
923
|
platform: 'android';
|
|
1014
924
|
price?: (number | null);
|
|
1015
925
|
/**
|
|
@@ -1020,8 +930,6 @@ export interface ProductAndroid extends ProductCommon {
|
|
|
1020
930
|
* Available in Google Play Billing Library 8.0.0+
|
|
1021
931
|
*/
|
|
1022
932
|
productStatusAndroid?: (ProductStatusAndroid | null);
|
|
1023
|
-
/** @deprecated Use subscriptionOffers instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0. */
|
|
1024
|
-
subscriptionOfferDetailsAndroid?: (ProductSubscriptionAndroidOfferDetails[] | null);
|
|
1025
933
|
/**
|
|
1026
934
|
* Standardized subscription offers.
|
|
1027
935
|
* Cross-platform type with Android-specific fields using suffix.
|
|
@@ -1031,50 +939,6 @@ export interface ProductAndroid extends ProductCommon {
|
|
|
1031
939
|
title: string;
|
|
1032
940
|
type: 'in-app';
|
|
1033
941
|
}
|
|
1034
|
-
/**
|
|
1035
|
-
* One-time purchase offer details (Android).
|
|
1036
|
-
* Available in Google Play Billing Library 8.0+
|
|
1037
|
-
* @see https://openiap.dev/docs/types/discount-offer
|
|
1038
|
-
* @deprecated Use the standardized DiscountOffer type for Android one-time offers. Scheduled for removal in OpenIAP 3.0.
|
|
1039
|
-
*/
|
|
1040
|
-
export interface ProductAndroidOneTimePurchaseOfferDetail {
|
|
1041
|
-
/**
|
|
1042
|
-
* Discount display information
|
|
1043
|
-
* Only available for discounted offers
|
|
1044
|
-
*/
|
|
1045
|
-
discountDisplayInfo?: (DiscountDisplayInfoAndroid | null);
|
|
1046
|
-
formattedPrice: string;
|
|
1047
|
-
/**
|
|
1048
|
-
* Full (non-discounted) price in micro-units
|
|
1049
|
-
* Only available for discounted offers
|
|
1050
|
-
*/
|
|
1051
|
-
fullPriceMicros?: (string | null);
|
|
1052
|
-
/** Limited quantity information */
|
|
1053
|
-
limitedQuantityInfo?: (LimitedQuantityInfoAndroid | null);
|
|
1054
|
-
/** Offer ID */
|
|
1055
|
-
offerId?: (string | null);
|
|
1056
|
-
/** List of offer tags */
|
|
1057
|
-
offerTags: string[];
|
|
1058
|
-
/** Offer token for use in BillingFlowParams when purchasing */
|
|
1059
|
-
offerToken: string;
|
|
1060
|
-
/**
|
|
1061
|
-
* Pre-order details for products available for pre-order
|
|
1062
|
-
* Available in Google Play Billing Library 8.1.0+
|
|
1063
|
-
*/
|
|
1064
|
-
preorderDetailsAndroid?: (PreorderDetailsAndroid | null);
|
|
1065
|
-
priceAmountMicros: string;
|
|
1066
|
-
priceCurrencyCode: string;
|
|
1067
|
-
/**
|
|
1068
|
-
* Purchase option ID for this offer (Android)
|
|
1069
|
-
* Used to identify which purchase option the user selected.
|
|
1070
|
-
* Available in Google Play Billing Library 8.0+
|
|
1071
|
-
*/
|
|
1072
|
-
purchaseOptionId?: (string | null);
|
|
1073
|
-
/** Rental details for rental offers */
|
|
1074
|
-
rentalDetailsAndroid?: (RentalDetailsAndroid | null);
|
|
1075
|
-
/** Valid time window for the offer */
|
|
1076
|
-
validTimeWindow?: (ValidTimeWindowAndroid | null);
|
|
1077
|
-
}
|
|
1078
942
|
export interface ProductCommon {
|
|
1079
943
|
currency: string;
|
|
1080
944
|
debugDescription?: (string | null);
|
|
@@ -1104,8 +968,6 @@ export interface ProductIOS extends ProductCommon {
|
|
|
1104
968
|
* monthly subscriptions with a 12-month commitment.
|
|
1105
969
|
*/
|
|
1106
970
|
pricingTermsIOS?: (SubscriptionPricingTermsIOS[] | null);
|
|
1107
|
-
/** @deprecated Use subscriptionOffers instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0. */
|
|
1108
|
-
subscriptionInfoIOS?: (SubscriptionInfoIOS | null);
|
|
1109
971
|
/**
|
|
1110
972
|
* Standardized subscription offers.
|
|
1111
973
|
* Cross-platform type with iOS-specific fields using suffix.
|
|
@@ -1135,21 +997,10 @@ export interface ProductSubscriptionAndroid extends ProductCommon {
|
|
|
1135
997
|
currency: string;
|
|
1136
998
|
debugDescription?: (string | null);
|
|
1137
999
|
description: string;
|
|
1138
|
-
/**
|
|
1139
|
-
* Nullable compatibility field. Google Play does not return one-time purchase
|
|
1140
|
-
* offer details for subscription products; use subscriptionOffers below.
|
|
1141
|
-
*/
|
|
1142
|
-
discountOffers?: (DiscountOffer[] | null);
|
|
1143
1000
|
displayName?: (string | null);
|
|
1144
1001
|
displayPrice: string;
|
|
1145
1002
|
id: string;
|
|
1146
1003
|
nameAndroid: string;
|
|
1147
|
-
/**
|
|
1148
|
-
* Legacy nullable compatibility field. Google Play does not populate one-time
|
|
1149
|
-
* purchase offer details for subscription products.
|
|
1150
|
-
* @deprecated One-time offers belong to ProductAndroid.discountOffers; subscriptions use subscriptionOffers. Scheduled for removal in OpenIAP 3.0.
|
|
1151
|
-
*/
|
|
1152
|
-
oneTimePurchaseOfferDetailsAndroid?: (ProductAndroidOneTimePurchaseOfferDetail[] | null);
|
|
1153
1004
|
platform: 'android';
|
|
1154
1005
|
price?: (number | null);
|
|
1155
1006
|
/**
|
|
@@ -1160,8 +1011,6 @@ export interface ProductSubscriptionAndroid extends ProductCommon {
|
|
|
1160
1011
|
* Available in Google Play Billing Library 8.0.0+
|
|
1161
1012
|
*/
|
|
1162
1013
|
productStatusAndroid?: (ProductStatusAndroid | null);
|
|
1163
|
-
/** @deprecated Use subscriptionOffers instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0. */
|
|
1164
|
-
subscriptionOfferDetailsAndroid: ProductSubscriptionAndroidOfferDetails[];
|
|
1165
1014
|
/**
|
|
1166
1015
|
* Standardized subscription offers.
|
|
1167
1016
|
* Cross-platform type with Android-specific fields using suffix.
|
|
@@ -1171,30 +1020,15 @@ export interface ProductSubscriptionAndroid extends ProductCommon {
|
|
|
1171
1020
|
title: string;
|
|
1172
1021
|
type: 'subs';
|
|
1173
1022
|
}
|
|
1174
|
-
|
|
1175
|
-
* Subscription offer details (Android).
|
|
1176
|
-
* @see https://openiap.dev/docs/types/subscription-offer
|
|
1177
|
-
* @deprecated Use the standardized SubscriptionOffer type instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0.
|
|
1178
|
-
*/
|
|
1179
|
-
export interface ProductSubscriptionAndroidOfferDetails {
|
|
1180
|
-
basePlanId: string;
|
|
1023
|
+
export interface ProductSubscriptionIOS extends ProductCommon {
|
|
1181
1024
|
/**
|
|
1182
|
-
*
|
|
1183
|
-
*
|
|
1184
|
-
* Available in Google Play Billing Library 7.0+
|
|
1025
|
+
* Subscriptions included in this Apple subscription bundle. Empty or null for
|
|
1026
|
+
* every other product type (Apple 27+ beta).
|
|
1185
1027
|
*/
|
|
1186
|
-
|
|
1187
|
-
offerId?: (string | null);
|
|
1188
|
-
offerTags: string[];
|
|
1189
|
-
offerToken: string;
|
|
1190
|
-
pricingPhases: PricingPhasesAndroid;
|
|
1191
|
-
}
|
|
1192
|
-
export interface ProductSubscriptionIOS extends ProductCommon {
|
|
1028
|
+
bundledSubscriptionsIOS?: (BundledSubscriptionIOS[] | null);
|
|
1193
1029
|
currency: string;
|
|
1194
1030
|
debugDescription?: (string | null);
|
|
1195
1031
|
description: string;
|
|
1196
|
-
/** @deprecated Use subscriptionOffers instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0. */
|
|
1197
|
-
discountsIOS?: (DiscountIOS[] | null);
|
|
1198
1032
|
displayName?: (string | null);
|
|
1199
1033
|
displayNameIOS: string;
|
|
1200
1034
|
displayPrice: string;
|
|
@@ -1215,8 +1049,6 @@ export interface ProductSubscriptionIOS extends ProductCommon {
|
|
|
1215
1049
|
pricingTermsIOS?: (SubscriptionPricingTermsIOS[] | null);
|
|
1216
1050
|
/** App Store subscription group identifier for intro-offer eligibility checks. */
|
|
1217
1051
|
subscriptionGroupIdIOS?: (string | null);
|
|
1218
|
-
/** @deprecated Use subscriptionOffers for offer metadata and subscriptionGroupIdIOS for the App Store subscription group identifier. Scheduled for removal in OpenIAP 3.0. */
|
|
1219
|
-
subscriptionInfoIOS?: (SubscriptionInfoIOS | null);
|
|
1220
1052
|
/**
|
|
1221
1053
|
* Standardized subscription offers.
|
|
1222
1054
|
* Cross-platform type with iOS-specific fields using suffix.
|
|
@@ -1230,7 +1062,7 @@ export interface ProductSubscriptionIOS extends ProductCommon {
|
|
|
1230
1062
|
typeIOS: ProductTypeIOS;
|
|
1231
1063
|
}
|
|
1232
1064
|
export type ProductType = 'in-app' | 'subs';
|
|
1233
|
-
export type ProductTypeIOS = 'consumable' | 'non-consumable' | 'auto-renewable-subscription' | 'non-renewing-subscription';
|
|
1065
|
+
export type ProductTypeIOS = 'consumable' | 'non-consumable' | 'auto-renewable-subscription' | 'non-renewing-subscription' | 'subscription-bundle' | 'subscription-suite';
|
|
1234
1066
|
/**
|
|
1235
1067
|
* JWS promotional offer input for iOS 15+ (StoreKit 2, WWDC 2025).
|
|
1236
1068
|
* New signature format using compact JWS string for promotional offers.
|
|
@@ -1275,8 +1107,6 @@ export interface PurchaseAndroid extends PurchaseCommon {
|
|
|
1275
1107
|
* Available in Google Play Billing Library 5.0+
|
|
1276
1108
|
*/
|
|
1277
1109
|
pendingPurchaseUpdateAndroid?: (PendingPurchaseUpdateAndroid | null);
|
|
1278
|
-
/** @deprecated Use store instead. Scheduled for removal in OpenIAP 3.0. */
|
|
1279
|
-
platform: IapPlatform;
|
|
1280
1110
|
productId: string;
|
|
1281
1111
|
purchaseState: PurchaseState;
|
|
1282
1112
|
purchaseToken?: (string | null);
|
|
@@ -1299,8 +1129,6 @@ export interface PurchaseCommon {
|
|
|
1299
1129
|
id: string;
|
|
1300
1130
|
ids?: (string[] | null);
|
|
1301
1131
|
isAutoRenewing: boolean;
|
|
1302
|
-
/** @deprecated Use store instead. Scheduled for removal in OpenIAP 3.0. */
|
|
1303
|
-
platform: IapPlatform;
|
|
1304
1132
|
productId: string;
|
|
1305
1133
|
purchaseState: PurchaseState;
|
|
1306
1134
|
/** Unified purchase token (iOS JWS, Android purchaseToken) */
|
|
@@ -1333,6 +1161,17 @@ export interface PurchaseIOS extends PurchaseCommon {
|
|
|
1333
1161
|
appBundleIdIOS?: (string | null);
|
|
1334
1162
|
/** iOS 26.4+ billing plan selected for this transaction. */
|
|
1335
1163
|
billingPlanTypeIOS?: (SubscriptionBillingPlanTypeIOS | null);
|
|
1164
|
+
/**
|
|
1165
|
+
* Original transaction identifier for the subscription bundle that produced
|
|
1166
|
+
* this transaction (Apple 27+ SDK; back-deployed by StoreKit).
|
|
1167
|
+
*/
|
|
1168
|
+
bundleOriginalTransactionIdIOS?: (string | null);
|
|
1169
|
+
/** Product identifier of the subscription bundle that produced this transaction. */
|
|
1170
|
+
bundleProductIdIOS?: (string | null);
|
|
1171
|
+
/** Subscription-group identifier of the bundle that produced this transaction. */
|
|
1172
|
+
bundleSubscriptionGroupIdIOS?: (string | null);
|
|
1173
|
+
/** Bundle transaction identifier associated with this component transaction. */
|
|
1174
|
+
bundleTransactionIdIOS?: (string | null);
|
|
1336
1175
|
/** iOS 26.4+ progress information for monthly subscriptions with a 12-month commitment. */
|
|
1337
1176
|
commitmentInfoIOS?: (TransactionCommitmentInfoIOS | null);
|
|
1338
1177
|
countryCodeIOS?: (string | null);
|
|
@@ -1348,9 +1187,13 @@ export interface PurchaseIOS extends PurchaseCommon {
|
|
|
1348
1187
|
offerIOS?: (PurchaseOfferIOS | null);
|
|
1349
1188
|
originalTransactionDateIOS?: (number | null);
|
|
1350
1189
|
originalTransactionIdentifierIOS?: (string | null);
|
|
1190
|
+
/** StoreKit ownership raw value. Xcode 27 adds the back-deployed assigned value. */
|
|
1351
1191
|
ownershipTypeIOS?: (string | null);
|
|
1352
|
-
/**
|
|
1353
|
-
|
|
1192
|
+
/**
|
|
1193
|
+
* Original transaction identifier replaced when moving between a standalone
|
|
1194
|
+
* subscription and a subscription bundle.
|
|
1195
|
+
*/
|
|
1196
|
+
previousOriginalTransactionIdIOS?: (string | null);
|
|
1354
1197
|
productId: string;
|
|
1355
1198
|
purchaseState: PurchaseState;
|
|
1356
1199
|
purchaseToken?: (string | null);
|
|
@@ -1360,7 +1203,13 @@ export interface PurchaseIOS extends PurchaseCommon {
|
|
|
1360
1203
|
reasonStringRepresentationIOS?: (string | null);
|
|
1361
1204
|
renewalInfoIOS?: (RenewalInfoIOS | null);
|
|
1362
1205
|
revocationDateIOS?: (number | null);
|
|
1206
|
+
/** Normalized StoreKit revocation reason, including upgraded_to_bundle. */
|
|
1363
1207
|
revocationReasonIOS?: (string | null);
|
|
1208
|
+
/**
|
|
1209
|
+
* StoreKit revocation type, including assignment-revocation on Apple 26.4+
|
|
1210
|
+
* when compiled with the Xcode 27 SDK.
|
|
1211
|
+
*/
|
|
1212
|
+
revocationTypeIOS?: (string | null);
|
|
1364
1213
|
/** Store where purchase was made */
|
|
1365
1214
|
store: IapStore;
|
|
1366
1215
|
storefrontCountryCodeIOS?: (string | null);
|
|
@@ -1476,13 +1325,6 @@ export interface Query {
|
|
|
1476
1325
|
* See: https://openiap.dev/docs/apis/get-storefront
|
|
1477
1326
|
*/
|
|
1478
1327
|
getStorefront: Promise<string>;
|
|
1479
|
-
/**
|
|
1480
|
-
* Deprecated. Get the current App Store storefront ISO 3166-1 alpha-3 country
|
|
1481
|
-
* code — use cross-platform getStorefront instead.
|
|
1482
|
-
* See: https://openiap.dev/docs/apis/ios/get-storefront-ios
|
|
1483
|
-
* @deprecated Use getStorefront. Scheduled for removal in OpenIAP 3.0.
|
|
1484
|
-
*/
|
|
1485
|
-
getStorefrontIOS: Promise<string>;
|
|
1486
1328
|
/**
|
|
1487
1329
|
* Return the JWS string for a transaction (StoreKit 2).
|
|
1488
1330
|
* See: https://openiap.dev/docs/apis/ios/get-transaction-jws-ios
|
|
@@ -1520,12 +1362,6 @@ export interface Query {
|
|
|
1520
1362
|
* See: https://openiap.dev/docs/apis/ios/subscription-status-ios
|
|
1521
1363
|
*/
|
|
1522
1364
|
subscriptionStatusIOS: Promise<SubscriptionStatusIOS[]>;
|
|
1523
|
-
/**
|
|
1524
|
-
* Deprecated. Legacy App Store receipt validation — use verifyPurchase instead.
|
|
1525
|
-
* See: https://openiap.dev/docs/apis/ios/validate-receipt-ios
|
|
1526
|
-
* @deprecated Use verifyPurchase. Scheduled for removal in OpenIAP 3.0.
|
|
1527
|
-
*/
|
|
1528
|
-
validateReceiptIOS: Promise<VerifyPurchaseResultIOS>;
|
|
1529
1365
|
}
|
|
1530
1366
|
export type QueryCurrentEntitlementIosArgs = string;
|
|
1531
1367
|
export type QueryFetchProductsArgs = ProductRequest;
|
|
@@ -1539,7 +1375,6 @@ export type QueryIsEligibleForIntroOfferIosArgs = string;
|
|
|
1539
1375
|
export type QueryIsTransactionVerifiedIosArgs = string;
|
|
1540
1376
|
export type QueryLatestTransactionIosArgs = string;
|
|
1541
1377
|
export type QuerySubscriptionStatusIosArgs = string;
|
|
1542
|
-
export type QueryValidateReceiptIosArgs = VerifyPurchaseProps;
|
|
1543
1378
|
export interface RefundResultIOS {
|
|
1544
1379
|
message?: (string | null);
|
|
1545
1380
|
status: string;
|
|
@@ -1557,14 +1392,20 @@ export interface RenewalCommitmentInfoIOS {
|
|
|
1557
1392
|
*/
|
|
1558
1393
|
export interface RenewalInfoIOS {
|
|
1559
1394
|
autoRenewPreference?: (string | null);
|
|
1395
|
+
/** Original transaction identifier for the bundle used by the next renewal. */
|
|
1396
|
+
bundleOriginalTransactionId?: (string | null);
|
|
1397
|
+
/** Product identifier for the bundle used by the next renewal. */
|
|
1398
|
+
bundleProductId?: (string | null);
|
|
1399
|
+
/** Subscription-group identifier for the bundle used by the next renewal. */
|
|
1400
|
+
bundleSubscriptionGroupId?: (string | null);
|
|
1560
1401
|
/**
|
|
1561
1402
|
* iOS 26.4+ renewal commitment metadata for monthly subscriptions with a
|
|
1562
1403
|
* 12-month commitment.
|
|
1563
1404
|
*/
|
|
1564
1405
|
commitmentInfo?: (RenewalCommitmentInfoIOS | null);
|
|
1565
1406
|
/**
|
|
1566
|
-
*
|
|
1567
|
-
*
|
|
1407
|
+
* StoreKit's raw integer expiration-reason value represented as a string.
|
|
1408
|
+
* Xcode 27 adds the back-deployed unbundled case. Preserve unknown future values.
|
|
1568
1409
|
*/
|
|
1569
1410
|
expirationReason?: (string | null);
|
|
1570
1411
|
/**
|
|
@@ -1603,6 +1444,8 @@ export interface RenewalInfoIOS {
|
|
|
1603
1444
|
*/
|
|
1604
1445
|
renewalOfferType?: (string | null);
|
|
1605
1446
|
willAutoRenew: boolean;
|
|
1447
|
+
/** Whether this subscription will leave its bundle and renew standalone. */
|
|
1448
|
+
willUnbundle?: (boolean | null);
|
|
1606
1449
|
}
|
|
1607
1450
|
/**
|
|
1608
1451
|
* Rental details for one-time purchase products that can be rented (Android)
|
|
@@ -1635,7 +1478,7 @@ export interface RequestPurchaseAndroidProps {
|
|
|
1635
1478
|
obfuscatedProfileId?: (string | null);
|
|
1636
1479
|
/**
|
|
1637
1480
|
* Offer token for one-time purchase discounts (8.0+).
|
|
1638
|
-
* Pass the offerToken from
|
|
1481
|
+
* Pass the offerToken from discountOffers
|
|
1639
1482
|
* to apply a discount offer to the purchase.
|
|
1640
1483
|
*/
|
|
1641
1484
|
offerToken?: (string | null);
|
|
@@ -1669,21 +1512,11 @@ export type RequestPurchaseProps = {
|
|
|
1669
1512
|
request: RequestPurchasePropsByPlatforms;
|
|
1670
1513
|
/** Explicit purchase type hint (defaults to in-app) */
|
|
1671
1514
|
type: 'in-app';
|
|
1672
|
-
/**
|
|
1673
|
-
* This flag only logs debug info and has no effect on the purchase flow.
|
|
1674
|
-
* @deprecated Use enableBillingProgramAndroid in InitConnectionConfig instead. Scheduled for removal in OpenIAP 3.0.
|
|
1675
|
-
*/
|
|
1676
|
-
useAlternativeBilling?: boolean | null;
|
|
1677
1515
|
} | {
|
|
1678
1516
|
/** Per-platform subscription request props */
|
|
1679
1517
|
request: RequestSubscriptionPropsByPlatforms;
|
|
1680
1518
|
/** Explicit purchase type hint (defaults to in-app) */
|
|
1681
1519
|
type: 'subs';
|
|
1682
|
-
/**
|
|
1683
|
-
* This flag only logs debug info and has no effect on the purchase flow.
|
|
1684
|
-
* @deprecated Use enableBillingProgramAndroid in InitConnectionConfig instead. Scheduled for removal in OpenIAP 3.0.
|
|
1685
|
-
*/
|
|
1686
|
-
useAlternativeBilling?: boolean | null;
|
|
1687
1520
|
};
|
|
1688
1521
|
/**
|
|
1689
1522
|
* Platform-specific purchase request parameters.
|
|
@@ -1695,14 +1528,10 @@ export type RequestPurchaseProps = {
|
|
|
1695
1528
|
* (determined at build time, not runtime)
|
|
1696
1529
|
*/
|
|
1697
1530
|
export interface RequestPurchasePropsByPlatforms {
|
|
1698
|
-
/** @deprecated Use google instead. Scheduled for removal in OpenIAP 3.0. */
|
|
1699
|
-
android?: (RequestPurchaseAndroidProps | null);
|
|
1700
1531
|
/** Apple-specific purchase parameters */
|
|
1701
1532
|
apple?: (RequestPurchaseIosProps | null);
|
|
1702
1533
|
/** Google-specific purchase parameters */
|
|
1703
1534
|
google?: (RequestPurchaseAndroidProps | null);
|
|
1704
|
-
/** @deprecated Use apple instead. Scheduled for removal in OpenIAP 3.0. */
|
|
1705
|
-
ios?: (RequestPurchaseIosProps | null);
|
|
1706
1535
|
}
|
|
1707
1536
|
export type RequestPurchaseResult = Purchase | Purchase[] | null;
|
|
1708
1537
|
export interface RequestSubscriptionAndroidProps {
|
|
@@ -1729,11 +1558,6 @@ export interface RequestSubscriptionAndroidProps {
|
|
|
1729
1558
|
originalExternalTransactionId?: (string | null);
|
|
1730
1559
|
/** Purchase token for upgrades/downgrades */
|
|
1731
1560
|
purchaseToken?: (string | null);
|
|
1732
|
-
/**
|
|
1733
|
-
* Replacement mode for subscription changes
|
|
1734
|
-
* @deprecated Use subscriptionProductReplacementParams instead for item-level replacement (8.1.0+). Scheduled for removal in OpenIAP 3.0.
|
|
1735
|
-
*/
|
|
1736
|
-
replacementMode?: (number | null);
|
|
1737
1561
|
/** List of subscription SKUs */
|
|
1738
1562
|
skus: string[];
|
|
1739
1563
|
/** Subscription offers */
|
|
@@ -1800,14 +1624,10 @@ export interface RequestSubscriptionIosProps {
|
|
|
1800
1624
|
* (determined at build time, not runtime)
|
|
1801
1625
|
*/
|
|
1802
1626
|
export interface RequestSubscriptionPropsByPlatforms {
|
|
1803
|
-
/** @deprecated Use google instead. Scheduled for removal in OpenIAP 3.0. */
|
|
1804
|
-
android?: (RequestSubscriptionAndroidProps | null);
|
|
1805
1627
|
/** Apple-specific subscription parameters */
|
|
1806
1628
|
apple?: (RequestSubscriptionIosProps | null);
|
|
1807
1629
|
/** Google-specific subscription parameters */
|
|
1808
1630
|
google?: (RequestSubscriptionAndroidProps | null);
|
|
1809
|
-
/** @deprecated Use apple instead. Scheduled for removal in OpenIAP 3.0. */
|
|
1810
|
-
ios?: (RequestSubscriptionIosProps | null);
|
|
1811
1631
|
}
|
|
1812
1632
|
export interface RequestVerifyPurchaseWithIapkitAmazonProps {
|
|
1813
1633
|
/** Amazon Appstore receipt id returned by PurchaseResponse.getReceipt().getReceiptId(). */
|
|
@@ -1934,13 +1754,6 @@ export interface SubscriptionCommitmentInfoIOS {
|
|
|
1934
1754
|
period: SubscriptionPeriodValueIOS;
|
|
1935
1755
|
price: number;
|
|
1936
1756
|
}
|
|
1937
|
-
export interface SubscriptionInfoIOS {
|
|
1938
|
-
introductoryOffer?: (SubscriptionOfferIOS | null);
|
|
1939
|
-
pricingTerms?: (SubscriptionPricingTermsIOS[] | null);
|
|
1940
|
-
promotionalOffers?: (SubscriptionOfferIOS[] | null);
|
|
1941
|
-
subscriptionGroupId: string;
|
|
1942
|
-
subscriptionPeriod: SubscriptionPeriodValueIOS;
|
|
1943
|
-
}
|
|
1944
1757
|
/**
|
|
1945
1758
|
* Standardized subscription discount/promotional offer.
|
|
1946
1759
|
* Provides a unified interface for subscription offers across iOS and Android.
|
|
@@ -1964,7 +1777,7 @@ export interface SubscriptionOffer {
|
|
|
1964
1777
|
/**
|
|
1965
1778
|
* Unique identifier for the offer.
|
|
1966
1779
|
* - iOS: Discount identifier from App Store Connect
|
|
1967
|
-
* - Android: offerId from
|
|
1780
|
+
* - Android: offerId from the Google Play subscription offer
|
|
1968
1781
|
*/
|
|
1969
1782
|
id: string;
|
|
1970
1783
|
/**
|
|
@@ -2020,20 +1833,6 @@ export interface SubscriptionOffer {
|
|
|
2020
1833
|
/** Type of subscription offer (Introductory or Promotional) */
|
|
2021
1834
|
type: DiscountOfferType;
|
|
2022
1835
|
}
|
|
2023
|
-
/**
|
|
2024
|
-
* iOS subscription offer details.
|
|
2025
|
-
* @see https://openiap.dev/docs/types/subscription-offer
|
|
2026
|
-
* @deprecated Use the standardized SubscriptionOffer type instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0.
|
|
2027
|
-
*/
|
|
2028
|
-
export interface SubscriptionOfferIOS {
|
|
2029
|
-
displayPrice: string;
|
|
2030
|
-
id: string;
|
|
2031
|
-
paymentMode: PaymentModeIOS;
|
|
2032
|
-
period: SubscriptionPeriodValueIOS;
|
|
2033
|
-
periodCount: number;
|
|
2034
|
-
price: number;
|
|
2035
|
-
type: SubscriptionOfferTypeIOS;
|
|
2036
|
-
}
|
|
2037
1836
|
export type SubscriptionOfferTypeIOS = 'introductory' | 'promotional' | 'win-back';
|
|
2038
1837
|
/** Subscription period value combining unit and count. */
|
|
2039
1838
|
export interface SubscriptionPeriod {
|
|
@@ -2252,10 +2051,8 @@ export interface WinBackOfferInputIOS {
|
|
|
2252
2051
|
export type MutationArgsMap = {
|
|
2253
2052
|
acknowledgePurchaseAndroid: MutationAcknowledgePurchaseAndroidArgs;
|
|
2254
2053
|
beginRefundRequestIOS: MutationBeginRefundRequestIosArgs;
|
|
2255
|
-
checkAlternativeBillingAvailabilityAndroid: never;
|
|
2256
2054
|
clearTransactionIOS: never;
|
|
2257
2055
|
consumePurchaseAndroid: MutationConsumePurchaseAndroidArgs;
|
|
2258
|
-
createAlternativeBillingTokenAndroid: never;
|
|
2259
2056
|
createBillingProgramReportingDetailsAndroid: MutationCreateBillingProgramReportingDetailsAndroidArgs;
|
|
2260
2057
|
deepLinkToSubscriptions: MutationDeepLinkToSubscriptionsArgs;
|
|
2261
2058
|
endConnection: never;
|
|
@@ -2268,15 +2065,12 @@ export type MutationArgsMap = {
|
|
|
2268
2065
|
presentExternalPurchaseLinkIOS: MutationPresentExternalPurchaseLinkIosArgs;
|
|
2269
2066
|
presentExternalPurchaseNoticeSheetIOS: never;
|
|
2270
2067
|
requestPurchase: MutationRequestPurchaseArgs;
|
|
2271
|
-
requestPurchaseOnPromotedProductIOS: never;
|
|
2272
2068
|
restorePurchases: never;
|
|
2273
|
-
showAlternativeBillingDialogAndroid: never;
|
|
2274
2069
|
showBillingProgramInformationDialogAndroid: MutationShowBillingProgramInformationDialogAndroidArgs;
|
|
2275
2070
|
showExternalPurchaseCustomLinkNoticeIOS: MutationShowExternalPurchaseCustomLinkNoticeIosArgs;
|
|
2276
2071
|
showInAppMessagesAndroid: MutationShowInAppMessagesAndroidArgs;
|
|
2277
2072
|
showManageSubscriptionsIOS: never;
|
|
2278
2073
|
syncIOS: never;
|
|
2279
|
-
validateReceipt: MutationValidateReceiptArgs;
|
|
2280
2074
|
verifyPurchase: MutationVerifyPurchaseArgs;
|
|
2281
2075
|
verifyPurchaseWithProvider: MutationVerifyPurchaseWithProviderArgs;
|
|
2282
2076
|
};
|
|
@@ -2298,7 +2092,6 @@ export type QueryArgsMap = {
|
|
|
2298
2092
|
getPromotedProductIOS: never;
|
|
2299
2093
|
getReceiptDataIOS: never;
|
|
2300
2094
|
getStorefront: never;
|
|
2301
|
-
getStorefrontIOS: never;
|
|
2302
2095
|
getTransactionJwsIOS: QueryGetTransactionJwsIosArgs;
|
|
2303
2096
|
hasActiveSubscriptions: QueryHasActiveSubscriptionsArgs;
|
|
2304
2097
|
isEligibleForExternalPurchaseCustomLinkIOS: never;
|
|
@@ -2306,7 +2099,6 @@ export type QueryArgsMap = {
|
|
|
2306
2099
|
isTransactionVerifiedIOS: QueryIsTransactionVerifiedIosArgs;
|
|
2307
2100
|
latestTransactionIOS: QueryLatestTransactionIosArgs;
|
|
2308
2101
|
subscriptionStatusIOS: QuerySubscriptionStatusIosArgs;
|
|
2309
|
-
validateReceiptIOS: QueryValidateReceiptIosArgs;
|
|
2310
2102
|
};
|
|
2311
2103
|
export type QueryField<K extends keyof Query> = QueryArgsMap[K] extends never ? () => NonNullable<Query[K]> : undefined extends QueryArgsMap[K] ? (args?: QueryArgsMap[K]) => NonNullable<Query[K]> : (args: QueryArgsMap[K]) => NonNullable<Query[K]>;
|
|
2312
2104
|
export type QueryFieldMap = {
|