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.
Files changed (241) hide show
  1. package/android/src/main/java/com/margelo/nitro/iap/HybridRnIap.kt +34 -182
  2. package/android/src/main/java/com/margelo/nitro/iap/ProductSerialization.kt +0 -69
  3. package/android/src/main/java/com/margelo/nitro/iap/RnIapLog.kt +0 -13
  4. package/ios/HybridRnIap.swift +30 -95
  5. package/ios/RnIapHelper.swift +37 -48
  6. package/ios/RnIapLog.swift +0 -11
  7. package/lib/module/hooks/useIAP.js +1 -11
  8. package/lib/module/hooks/useIAP.js.map +1 -1
  9. package/lib/module/index.js +45 -379
  10. package/lib/module/index.js.map +1 -1
  11. package/lib/module/index.kepler.js +7 -82
  12. package/lib/module/index.kepler.js.map +1 -1
  13. package/lib/module/types.js +5 -57
  14. package/lib/module/types.js.map +1 -1
  15. package/lib/module/utils/errorMapping.js +13 -21
  16. package/lib/module/utils/errorMapping.js.map +1 -1
  17. package/lib/module/utils/type-bridge.js +39 -77
  18. package/lib/module/utils/type-bridge.js.map +1 -1
  19. package/lib/module/utils.js +5 -1
  20. package/lib/module/utils.js.map +1 -1
  21. package/lib/module/vega-adapter.js +10 -48
  22. package/lib/module/vega-adapter.js.map +1 -1
  23. package/lib/typescript/src/hooks/useIAP.d.ts +1 -49
  24. package/lib/typescript/src/hooks/useIAP.d.ts.map +1 -1
  25. package/lib/typescript/src/index.d.ts +6 -175
  26. package/lib/typescript/src/index.d.ts.map +1 -1
  27. package/lib/typescript/src/index.kepler.d.ts +2 -54
  28. package/lib/typescript/src/index.kepler.d.ts.map +1 -1
  29. package/lib/typescript/src/specs/RnIap.nitro.d.ts +32 -173
  30. package/lib/typescript/src/specs/RnIap.nitro.d.ts.map +1 -1
  31. package/lib/typescript/src/types.d.ts +76 -284
  32. package/lib/typescript/src/types.d.ts.map +1 -1
  33. package/lib/typescript/src/utils/errorMapping.d.ts.map +1 -1
  34. package/lib/typescript/src/utils/type-bridge.d.ts.map +1 -1
  35. package/lib/typescript/src/utils.d.ts.map +1 -1
  36. package/lib/typescript/src/vega-adapter.d.ts.map +1 -1
  37. package/nitrogen/generated/android/NitroIap+autolinking.cmake +5 -12
  38. package/nitrogen/generated/android/c++/JFunc_void_NitroProduct.hpp +0 -22
  39. package/nitrogen/generated/android/c++/JFunc_void_NitroPurchase.hpp +0 -2
  40. package/nitrogen/generated/android/c++/JHybridRnIapSpec.cpp +38 -189
  41. package/nitrogen/generated/android/c++/JHybridRnIapSpec.hpp +2 -9
  42. package/nitrogen/generated/android/c++/JInitConnectionConfig.hpp +1 -7
  43. package/nitrogen/generated/android/c++/JNitroActiveSubscription.hpp +1 -5
  44. package/nitrogen/generated/android/c++/JNitroAvailablePurchasesAndroidType.hpp +3 -3
  45. package/nitrogen/generated/android/c++/JNitroProduct.hpp +5 -39
  46. package/nitrogen/generated/android/c++/JNitroPurchase.hpp +25 -7
  47. package/nitrogen/generated/android/c++/JNitroPurchaseRequest.hpp +1 -9
  48. package/nitrogen/generated/android/c++/{JNitroReceiptValidationAppleOptions.hpp → JNitroPurchaseVerificationAppleOptions.hpp} +10 -10
  49. package/nitrogen/generated/android/c++/{JNitroReceiptValidationGoogleOptions.hpp → JNitroPurchaseVerificationGoogleOptions.hpp} +10 -10
  50. package/nitrogen/generated/android/c++/{JNitroReceiptValidationHorizonOptions.hpp → JNitroPurchaseVerificationHorizonOptions.hpp} +10 -10
  51. package/nitrogen/generated/android/c++/JNitroPurchaseVerificationParams.hpp +79 -0
  52. package/nitrogen/generated/android/c++/{JNitroReceiptValidationResultAndroid.hpp → JNitroPurchaseVerificationResultAndroid.hpp} +10 -10
  53. package/nitrogen/generated/android/c++/{JNitroReceiptValidationResultIOS.hpp → JNitroPurchaseVerificationResultIOS.hpp} +10 -12
  54. package/nitrogen/generated/android/c++/JNitroRenewalInfoIOS.hpp +19 -3
  55. package/nitrogen/generated/android/c++/JNitroRequestPurchaseAndroid.hpp +1 -6
  56. package/nitrogen/generated/android/c++/JProductType.hpp +3 -3
  57. package/nitrogen/generated/android/c++/JPurchase.hpp +0 -2
  58. package/nitrogen/generated/android/c++/JPurchaseAndroid.hpp +1 -7
  59. package/nitrogen/generated/android/c++/JPurchaseIOS.hpp +25 -7
  60. package/nitrogen/generated/android/c++/JPurchaseVerificationProvider.hpp +3 -3
  61. package/nitrogen/generated/android/c++/JRenewalInfoIOS.hpp +19 -3
  62. package/nitrogen/generated/android/c++/JRequestPurchaseResult.hpp +0 -2
  63. package/nitrogen/generated/android/c++/JVariant_NitroPurchaseVerificationResultIOS_NitroPurchaseVerificationResultAndroid.cpp +26 -0
  64. package/nitrogen/generated/android/c++/{JVariant_NitroReceiptValidationResultIOS_NitroReceiptValidationResultAndroid.hpp → JVariant_NitroPurchaseVerificationResultIOS_NitroPurchaseVerificationResultAndroid.hpp} +26 -28
  65. package/nitrogen/generated/android/c++/JVariant_NullType_InitConnectionConfig.hpp +1 -3
  66. package/nitrogen/generated/android/c++/JVariant_NullType_NitroProduct.hpp +0 -22
  67. package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchase.hpp +0 -2
  68. package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchaseVerificationAppleOptions.cpp +26 -0
  69. package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchaseVerificationAppleOptions.hpp +72 -0
  70. package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchaseVerificationGoogleOptions.cpp +26 -0
  71. package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchaseVerificationGoogleOptions.hpp +74 -0
  72. package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchaseVerificationHorizonOptions.cpp +26 -0
  73. package/nitrogen/generated/android/c++/JVariant_NullType_NitroPurchaseVerificationHorizonOptions.hpp +72 -0
  74. package/nitrogen/generated/android/c++/JVariant_NullType_NitroRequestPurchaseAndroid.hpp +0 -1
  75. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/HybridRnIapSpec.kt +2 -30
  76. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/InitConnectionConfig.kt +3 -8
  77. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroActiveSubscription.kt +2 -7
  78. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroAvailablePurchasesAndroidType.kt +1 -1
  79. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroProduct.kt +5 -20
  80. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroPurchase.kt +32 -7
  81. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroPurchaseRequest.kt +3 -13
  82. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{NitroReceiptValidationAppleOptions.kt → NitroPurchaseVerificationAppleOptions.kt} +6 -6
  83. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{NitroReceiptValidationGoogleOptions.kt → NitroPurchaseVerificationGoogleOptions.kt} +6 -6
  84. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{NitroReceiptValidationHorizonOptions.kt → NitroPurchaseVerificationHorizonOptions.kt} +6 -6
  85. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{NitroReceiptValidationParams.kt → NitroPurchaseVerificationParams.kt} +9 -9
  86. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{NitroReceiptValidationResultAndroid.kt → NitroPurchaseVerificationResultAndroid.kt} +6 -6
  87. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{NitroReceiptValidationResultIOS.kt → NitroPurchaseVerificationResultIOS.kt} +6 -6
  88. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroRenewalInfoIOS.kt +24 -4
  89. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroRequestPurchaseAndroid.kt +2 -7
  90. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/ProductType.kt +2 -2
  91. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/PurchaseAndroid.kt +2 -7
  92. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/PurchaseIOS.kt +30 -5
  93. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/PurchaseVerificationProvider.kt +2 -2
  94. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/RenewalInfoIOS.kt +24 -4
  95. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NitroPurchaseVerificationResultIOS_NitroPurchaseVerificationResultAndroid.kt +62 -0
  96. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{Variant_NullType_NitroReceiptValidationGoogleOptions.kt → Variant_NullType_NitroPurchaseVerificationAppleOptions.kt} +9 -9
  97. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{Variant_NullType_Array_NitroOneTimePurchaseOfferDetail_.kt → Variant_NullType_NitroPurchaseVerificationGoogleOptions.kt} +9 -9
  98. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{Variant_NullType_NitroReceiptValidationAppleOptions.kt → Variant_NullType_NitroPurchaseVerificationHorizonOptions.kt} +9 -9
  99. package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Bridge.cpp +16 -16
  100. package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Bridge.hpp +212 -570
  101. package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Umbrella.hpp +18 -42
  102. package/nitrogen/generated/ios/c++/HybridRnIapSpecSwift.hpp +21 -101
  103. package/nitrogen/generated/ios/swift/Func_void_std__variant_NitroPurchaseVerificationResultIOS__NitroPurchaseVerificationResultAndroid_.swift +58 -0
  104. package/nitrogen/generated/ios/swift/HybridRnIapSpec.swift +2 -9
  105. package/nitrogen/generated/ios/swift/HybridRnIapSpec_cxx.swift +22 -181
  106. package/nitrogen/generated/ios/swift/InitConnectionConfig.swift +2 -13
  107. package/nitrogen/generated/ios/swift/NitroActiveSubscription.swift +1 -38
  108. package/nitrogen/generated/ios/swift/NitroAvailablePurchasesAndroidType.swift +4 -4
  109. package/nitrogen/generated/ios/swift/NitroProduct.swift +5 -122
  110. package/nitrogen/generated/ios/swift/NitroPurchase.swift +224 -7
  111. package/nitrogen/generated/ios/swift/NitroPurchaseRequest.swift +1 -75
  112. package/nitrogen/generated/ios/swift/{NitroReceiptValidationAppleOptions.swift → NitroPurchaseVerificationAppleOptions.swift} +5 -5
  113. package/nitrogen/generated/ios/swift/{NitroReceiptValidationGoogleOptions.swift → NitroPurchaseVerificationGoogleOptions.swift} +5 -5
  114. package/nitrogen/generated/ios/swift/{NitroReceiptValidationHorizonOptions.swift → NitroPurchaseVerificationHorizonOptions.swift} +5 -5
  115. package/nitrogen/generated/ios/swift/{NitroReceiptValidationParams.swift → NitroPurchaseVerificationParams.swift} +36 -36
  116. package/nitrogen/generated/ios/swift/{NitroReceiptValidationResultAndroid.swift → NitroPurchaseVerificationResultAndroid.swift} +5 -5
  117. package/nitrogen/generated/ios/swift/{NitroReceiptValidationResultIOS.swift → NitroPurchaseVerificationResultIOS.swift} +5 -5
  118. package/nitrogen/generated/ios/swift/NitroRenewalInfoIOS.swift +149 -1
  119. package/nitrogen/generated/ios/swift/NitroRequestPurchaseAndroid.swift +1 -38
  120. package/nitrogen/generated/ios/swift/ProductType.swift +4 -4
  121. package/nitrogen/generated/ios/swift/PurchaseAndroid.swift +2 -7
  122. package/nitrogen/generated/ios/swift/PurchaseIOS.swift +221 -4
  123. package/nitrogen/generated/ios/swift/PurchaseVerificationProvider.swift +4 -4
  124. package/nitrogen/generated/ios/swift/RenewalInfoIOS.swift +150 -2
  125. package/nitrogen/generated/ios/swift/{Variant_NitroReceiptValidationResultIOS_NitroReceiptValidationResultAndroid.swift → Variant_NitroPurchaseVerificationResultIOS_NitroPurchaseVerificationResultAndroid.swift} +5 -5
  126. package/nitrogen/generated/ios/swift/{Variant_NullType_NitroLimitedQuantityInfoAndroid.swift → Variant_NullType_NitroPurchaseVerificationAppleOptions.swift} +4 -4
  127. package/nitrogen/generated/ios/swift/{Variant_NullType_NitroReceiptValidationAppleOptions.swift → Variant_NullType_NitroPurchaseVerificationGoogleOptions.swift} +4 -4
  128. package/nitrogen/generated/ios/swift/{Variant_NullType_NitroPreorderDetailsAndroid.swift → Variant_NullType_NitroPurchaseVerificationHorizonOptions.swift} +4 -4
  129. package/nitrogen/generated/shared/c++/HybridRnIapSpec.cpp +1 -8
  130. package/nitrogen/generated/shared/c++/HybridRnIapSpec.hpp +11 -18
  131. package/nitrogen/generated/shared/c++/InitConnectionConfig.hpp +2 -9
  132. package/nitrogen/generated/shared/c++/NitroActiveSubscription.hpp +1 -5
  133. package/nitrogen/generated/shared/c++/NitroAvailablePurchasesAndroidType.hpp +4 -4
  134. package/nitrogen/generated/shared/c++/NitroProduct.hpp +6 -22
  135. package/nitrogen/generated/shared/c++/NitroPurchase.hpp +25 -8
  136. package/nitrogen/generated/shared/c++/NitroPurchaseRequest.hpp +2 -10
  137. package/nitrogen/generated/shared/c++/{NitroReceiptValidationAppleOptions.hpp → NitroPurchaseVerificationAppleOptions.hpp} +11 -11
  138. package/nitrogen/generated/shared/c++/{NitroReceiptValidationGoogleOptions.hpp → NitroPurchaseVerificationGoogleOptions.hpp} +11 -11
  139. package/nitrogen/generated/shared/c++/{NitroReceiptValidationHorizonOptions.hpp → NitroPurchaseVerificationHorizonOptions.hpp} +11 -11
  140. package/nitrogen/generated/shared/c++/NitroPurchaseVerificationParams.hpp +101 -0
  141. package/nitrogen/generated/shared/c++/{NitroReceiptValidationResultAndroid.hpp → NitroPurchaseVerificationResultAndroid.hpp} +11 -11
  142. package/nitrogen/generated/shared/c++/{NitroReceiptValidationResultIOS.hpp → NitroPurchaseVerificationResultIOS.hpp} +11 -11
  143. package/nitrogen/generated/shared/c++/NitroRenewalInfoIOS.hpp +18 -2
  144. package/nitrogen/generated/shared/c++/NitroRequestPurchaseAndroid.hpp +1 -5
  145. package/nitrogen/generated/shared/c++/ProductType.hpp +5 -5
  146. package/nitrogen/generated/shared/c++/PurchaseAndroid.hpp +1 -8
  147. package/nitrogen/generated/shared/c++/PurchaseIOS.hpp +25 -8
  148. package/nitrogen/generated/shared/c++/PurchaseVerificationProvider.hpp +5 -5
  149. package/nitrogen/generated/shared/c++/RenewalInfoIOS.hpp +18 -2
  150. package/openiap-versions.json +3 -3
  151. package/package.json +1 -1
  152. package/src/hooks/useIAP.ts +0 -76
  153. package/src/index.kepler.ts +11 -96
  154. package/src/index.ts +60 -457
  155. package/src/specs/RnIap.nitro.ts +35 -196
  156. package/src/types.ts +77 -295
  157. package/src/utils/errorMapping.ts +21 -20
  158. package/src/utils/type-bridge.ts +53 -90
  159. package/src/utils.ts +8 -0
  160. package/src/vega-adapter.ts +11 -59
  161. package/lib/module/utils/deprecation.js +0 -15
  162. package/lib/module/utils/deprecation.js.map +0 -1
  163. package/lib/module/utils/platform-request.js +0 -28
  164. package/lib/module/utils/platform-request.js.map +0 -1
  165. package/lib/typescript/src/utils/deprecation.d.ts +0 -3
  166. package/lib/typescript/src/utils/deprecation.d.ts.map +0 -1
  167. package/lib/typescript/src/utils/platform-request.d.ts +0 -12
  168. package/lib/typescript/src/utils/platform-request.d.ts.map +0 -1
  169. package/nitrogen/generated/android/c++/JAlternativeBillingModeAndroid.hpp +0 -61
  170. package/nitrogen/generated/android/c++/JNitroDiscountAmountAndroid.hpp +0 -61
  171. package/nitrogen/generated/android/c++/JNitroDiscountDisplayInfoAndroid.hpp +0 -69
  172. package/nitrogen/generated/android/c++/JNitroLimitedQuantityInfoAndroid.hpp +0 -61
  173. package/nitrogen/generated/android/c++/JNitroOneTimePurchaseOfferDetail.hpp +0 -148
  174. package/nitrogen/generated/android/c++/JNitroPreorderDetailsAndroid.hpp +0 -61
  175. package/nitrogen/generated/android/c++/JNitroReceiptValidationParams.hpp +0 -79
  176. package/nitrogen/generated/android/c++/JNitroRentalDetailsAndroid.hpp +0 -66
  177. package/nitrogen/generated/android/c++/JNitroValidTimeWindowAndroid.hpp +0 -61
  178. package/nitrogen/generated/android/c++/JVariant_NitroReceiptValidationResultIOS_NitroReceiptValidationResultAndroid.cpp +0 -26
  179. package/nitrogen/generated/android/c++/JVariant_NullType_Array_NitroOneTimePurchaseOfferDetail_.cpp +0 -35
  180. package/nitrogen/generated/android/c++/JVariant_NullType_Array_NitroOneTimePurchaseOfferDetail_.hpp +0 -103
  181. package/nitrogen/generated/android/c++/JVariant_NullType_NitroDiscountAmountAndroid.cpp +0 -26
  182. package/nitrogen/generated/android/c++/JVariant_NullType_NitroDiscountAmountAndroid.hpp +0 -72
  183. package/nitrogen/generated/android/c++/JVariant_NullType_NitroDiscountDisplayInfoAndroid.cpp +0 -26
  184. package/nitrogen/generated/android/c++/JVariant_NullType_NitroDiscountDisplayInfoAndroid.hpp +0 -77
  185. package/nitrogen/generated/android/c++/JVariant_NullType_NitroLimitedQuantityInfoAndroid.cpp +0 -26
  186. package/nitrogen/generated/android/c++/JVariant_NullType_NitroLimitedQuantityInfoAndroid.hpp +0 -71
  187. package/nitrogen/generated/android/c++/JVariant_NullType_NitroPreorderDetailsAndroid.cpp +0 -26
  188. package/nitrogen/generated/android/c++/JVariant_NullType_NitroPreorderDetailsAndroid.hpp +0 -72
  189. package/nitrogen/generated/android/c++/JVariant_NullType_NitroReceiptValidationAppleOptions.cpp +0 -26
  190. package/nitrogen/generated/android/c++/JVariant_NullType_NitroReceiptValidationAppleOptions.hpp +0 -72
  191. package/nitrogen/generated/android/c++/JVariant_NullType_NitroReceiptValidationGoogleOptions.cpp +0 -26
  192. package/nitrogen/generated/android/c++/JVariant_NullType_NitroReceiptValidationGoogleOptions.hpp +0 -74
  193. package/nitrogen/generated/android/c++/JVariant_NullType_NitroReceiptValidationHorizonOptions.cpp +0 -26
  194. package/nitrogen/generated/android/c++/JVariant_NullType_NitroReceiptValidationHorizonOptions.hpp +0 -72
  195. package/nitrogen/generated/android/c++/JVariant_NullType_NitroRentalDetailsAndroid.cpp +0 -26
  196. package/nitrogen/generated/android/c++/JVariant_NullType_NitroRentalDetailsAndroid.hpp +0 -74
  197. package/nitrogen/generated/android/c++/JVariant_NullType_NitroValidTimeWindowAndroid.cpp +0 -26
  198. package/nitrogen/generated/android/c++/JVariant_NullType_NitroValidTimeWindowAndroid.hpp +0 -72
  199. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/AlternativeBillingModeAndroid.kt +0 -24
  200. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroDiscountAmountAndroid.kt +0 -56
  201. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroDiscountDisplayInfoAndroid.kt +0 -56
  202. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroLimitedQuantityInfoAndroid.kt +0 -56
  203. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroOneTimePurchaseOfferDetail.kt +0 -111
  204. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroPreorderDetailsAndroid.kt +0 -56
  205. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroRentalDetailsAndroid.kt +0 -56
  206. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroValidTimeWindowAndroid.kt +0 -56
  207. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NitroReceiptValidationResultIOS_NitroReceiptValidationResultAndroid.kt +0 -62
  208. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroDiscountAmountAndroid.kt +0 -62
  209. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroDiscountDisplayInfoAndroid.kt +0 -62
  210. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroLimitedQuantityInfoAndroid.kt +0 -62
  211. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroPreorderDetailsAndroid.kt +0 -62
  212. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroReceiptValidationHorizonOptions.kt +0 -62
  213. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroRentalDetailsAndroid.kt +0 -62
  214. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroValidTimeWindowAndroid.kt +0 -62
  215. package/nitrogen/generated/ios/swift/AlternativeBillingModeAndroid.swift +0 -44
  216. package/nitrogen/generated/ios/swift/Func_void_std__variant_NitroReceiptValidationResultIOS__NitroReceiptValidationResultAndroid_.swift +0 -58
  217. package/nitrogen/generated/ios/swift/NitroDiscountAmountAndroid.swift +0 -34
  218. package/nitrogen/generated/ios/swift/NitroDiscountDisplayInfoAndroid.swift +0 -98
  219. package/nitrogen/generated/ios/swift/NitroLimitedQuantityInfoAndroid.swift +0 -34
  220. package/nitrogen/generated/ios/swift/NitroOneTimePurchaseOfferDetail.swift +0 -351
  221. package/nitrogen/generated/ios/swift/NitroPreorderDetailsAndroid.swift +0 -34
  222. package/nitrogen/generated/ios/swift/NitroRentalDetailsAndroid.swift +0 -66
  223. package/nitrogen/generated/ios/swift/NitroValidTimeWindowAndroid.swift +0 -34
  224. package/nitrogen/generated/ios/swift/Variant_NullType_NitroDiscountAmountAndroid.swift +0 -30
  225. package/nitrogen/generated/ios/swift/Variant_NullType_NitroDiscountDisplayInfoAndroid.swift +0 -30
  226. package/nitrogen/generated/ios/swift/Variant_NullType_NitroReceiptValidationGoogleOptions.swift +0 -30
  227. package/nitrogen/generated/ios/swift/Variant_NullType_NitroReceiptValidationHorizonOptions.swift +0 -30
  228. package/nitrogen/generated/ios/swift/Variant_NullType_NitroRentalDetailsAndroid.swift +0 -30
  229. package/nitrogen/generated/ios/swift/Variant_NullType_NitroValidTimeWindowAndroid.swift +0 -30
  230. package/nitrogen/generated/ios/swift/Variant_NullType__NitroOneTimePurchaseOfferDetail_.swift +0 -30
  231. package/nitrogen/generated/shared/c++/AlternativeBillingModeAndroid.hpp +0 -80
  232. package/nitrogen/generated/shared/c++/NitroDiscountAmountAndroid.hpp +0 -87
  233. package/nitrogen/generated/shared/c++/NitroDiscountDisplayInfoAndroid.hpp +0 -91
  234. package/nitrogen/generated/shared/c++/NitroLimitedQuantityInfoAndroid.hpp +0 -87
  235. package/nitrogen/generated/shared/c++/NitroOneTimePurchaseOfferDetail.hpp +0 -149
  236. package/nitrogen/generated/shared/c++/NitroPreorderDetailsAndroid.hpp +0 -87
  237. package/nitrogen/generated/shared/c++/NitroReceiptValidationParams.hpp +0 -101
  238. package/nitrogen/generated/shared/c++/NitroRentalDetailsAndroid.hpp +0 -90
  239. package/nitrogen/generated/shared/c++/NitroValidTimeWindowAndroid.hpp +0 -87
  240. package/src/utils/deprecation.ts +0 -16
  241. package/src/utils/platform-request.ts +0 -37
package/src/types.ts CHANGED
@@ -29,12 +29,6 @@ export interface ActiveSubscription {
29
29
  /** Unix timestamp in milliseconds since January 1, 1970 UTC. */
30
30
  transactionDate: number;
31
31
  transactionId: string;
32
- /**
33
- * Whether the subscription will expire soon (within 7 days).
34
- * Consider using daysUntilExpirationIOS for more precise control.
35
- * @deprecated iOS only - use daysUntilExpirationIOS instead. Scheduled for removal in OpenIAP 3.0.
36
- */
37
- willExpireSoon?: (boolean | null);
38
32
  }
39
33
 
40
34
  /**
@@ -87,15 +81,6 @@ export interface AdvancedCommerceRefundIOS {
87
81
  jsonRepresentation?: (string | null);
88
82
  }
89
83
 
90
- /**
91
- * Alternative billing mode for Android
92
- * Controls which billing system is used
93
- * Use the user-choice-billing program for user choice billing and external-offer
94
- * for external digital-content offers.
95
- * @deprecated Use enableBillingProgramAndroid with BillingProgramAndroid instead. Scheduled for removal in OpenIAP 3.0.
96
- */
97
- export type AlternativeBillingModeAndroid = 'none' | 'user-choice' | 'alternative-only';
98
-
99
84
  export interface AndroidSubscriptionOfferInput {
100
85
  /** Offer token */
101
86
  offerToken: string;
@@ -113,10 +98,24 @@ export interface AppTransaction {
113
98
  deviceVerificationNonce: string;
114
99
  environment: string;
115
100
  originalAppVersion: string;
101
+ /**
102
+ * Original App Store platform raw value. Xcode 27 adds the back-deployed managed
103
+ * acquisition-platform value.
104
+ */
116
105
  originalPlatform?: (string | null);
117
106
  originalPurchaseDate: number;
118
107
  preorderDate?: (number | null);
108
+ /**
109
+ * Date the app-acquisition transaction was revoked (epoch milliseconds).
110
+ * Available through the Xcode 27 SDK and back-deployed to Apple 16+.
111
+ */
112
+ revocationDate?: (number | null);
119
113
  signedDate: number;
114
+ /**
115
+ * Store channel of the original app purchase: consumer, education, enterprise,
116
+ * or another future StoreKit value (Apple 27+ beta).
117
+ */
118
+ storeType?: (string | null);
120
119
  }
121
120
 
122
121
  /**
@@ -216,6 +215,22 @@ export interface BillingResultAndroid {
216
215
  subResponseCode?: (SubResponseCodeAndroid | null);
217
216
  }
218
217
 
218
+ /**
219
+ * Metadata for one auto-renewable subscription included in an Apple
220
+ * subscription bundle (Apple 27+ beta).
221
+ */
222
+ export interface BundledSubscriptionIOS {
223
+ description: string;
224
+ displayName: string;
225
+ displayPrice: string;
226
+ id: string;
227
+ isFamilyShareable: boolean;
228
+ price: number;
229
+ subscriptionGroupDisplayName: string;
230
+ subscriptionGroupId: string;
231
+ subscriptionGroupLevel: number;
232
+ }
233
+
219
234
  export interface DeepLinkOptions {
220
235
  /** Android package name to target (required on Android) */
221
236
  packageNameAndroid?: (string | null);
@@ -326,22 +341,6 @@ export interface DiscountDisplayInfoAndroid {
326
341
  percentageDiscount?: (number | null);
327
342
  }
328
343
 
329
- /**
330
- * Discount information returned from the store.
331
- * @see https://openiap.dev/docs/types/subscription-offer
332
- * @deprecated Use the standardized SubscriptionOffer type instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0.
333
- */
334
- export interface DiscountIOS {
335
- identifier: string;
336
- localizedPrice?: (string | null);
337
- numberOfPeriods: number;
338
- paymentMode: PaymentModeIOS;
339
- price: string;
340
- priceAmount: number;
341
- subscriptionPeriod: string;
342
- type: string;
343
- }
344
-
345
344
  /**
346
345
  * Standardized one-time product discount offer.
347
346
  * Provides a platform-neutral OpenIAP shape for Google Play one-time product
@@ -373,7 +372,7 @@ export interface DiscountOffer {
373
372
  /**
374
373
  * Unique identifier for the offer.
375
374
  * - iOS: Not applicable (one-time discounts not supported)
376
- * - Android: offerId from ProductAndroidOneTimePurchaseOfferDetail
375
+ * - Android: offerId from the Google Play one-time purchase option
377
376
  */
378
377
  id?: (string | null);
379
378
  /**
@@ -421,24 +420,6 @@ export interface DiscountOffer {
421
420
  validTimeWindowAndroid?: (ValidTimeWindowAndroid | null);
422
421
  }
423
422
 
424
- /**
425
- * iOS DiscountOffer (output type).
426
- * @see https://openiap.dev/docs/types/subscription-offer
427
- * @deprecated Use the standardized SubscriptionOffer type instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0.
428
- */
429
- export interface DiscountOfferIOS {
430
- /** Discount identifier */
431
- identifier: string;
432
- /** Key identifier for validation */
433
- keyIdentifier: string;
434
- /** Cryptographic nonce */
435
- nonce: string;
436
- /** Signature for validation */
437
- signature: string;
438
- /** Timestamp of discount offer */
439
- timestamp: number;
440
- }
441
-
442
423
  export interface DiscountOfferInputIOS {
443
424
  /** Discount identifier */
444
425
  identifier: string;
@@ -490,12 +471,6 @@ export enum ErrorCode {
490
471
  PurchaseVerificationFinishFailed = 'purchase-verification-finish-failed',
491
472
  PurchaseVerificationFinished = 'purchase-verification-finished',
492
473
  QueryProduct = 'query-product',
493
- /** @deprecated Use PurchaseVerificationFailed instead. Scheduled for removal in OpenIAP 3.0. */
494
- ReceiptFailed = 'receipt-failed',
495
- /** @deprecated Use PurchaseVerificationFinished instead. Scheduled for removal in OpenIAP 3.0. */
496
- ReceiptFinished = 'receipt-finished',
497
- /** @deprecated Use PurchaseVerificationFinishFailed instead. Scheduled for removal in OpenIAP 3.0. */
498
- ReceiptFinishedFailed = 'receipt-finished-failed',
499
474
  RemoteError = 'remote-error',
500
475
  ServiceDisconnected = 'service-disconnected',
501
476
  ServiceError = 'service-error',
@@ -524,26 +499,6 @@ export type ExternalLinkLaunchModeAndroid = 'unspecified' | 'launch-in-external-
524
499
  */
525
500
  export type ExternalLinkTypeAndroid = 'unspecified' | 'link-to-digital-content-offer' | 'link-to-app-download';
526
501
 
527
- /**
528
- * External offer availability result (Android)
529
- * Available in Google Play Billing Library 6.2.0+, deprecated in 8.2.0
530
- * @deprecated Use BillingProgramAvailabilityResultAndroid from isBillingProgramAvailableAndroid instead. Scheduled for removal in OpenIAP 3.0.
531
- */
532
- export interface ExternalOfferAvailabilityResultAndroid {
533
- /** Whether external offers are available for the user */
534
- isAvailable: boolean;
535
- }
536
-
537
- /**
538
- * External offer reporting details (Android)
539
- * Available in Google Play Billing Library 6.2.0+, deprecated in 8.2.0
540
- * @deprecated Use BillingProgramReportingDetailsAndroid from createBillingProgramReportingDetailsAndroid instead. Scheduled for removal in OpenIAP 3.0.
541
- */
542
- export interface ExternalOfferReportingDetailsAndroid {
543
- /** External transaction token for reporting external offer transactions */
544
- externalTransactionToken: string;
545
- }
546
-
547
502
  /** Result of showing ExternalPurchaseCustomLink notice (iOS 18.1+). */
548
503
  export interface ExternalPurchaseCustomLinkNoticeResultIOS {
549
504
  /** Whether the user chose to continue to external purchase */
@@ -681,13 +636,6 @@ export interface InAppMessageResultAndroid {
681
636
 
682
637
  /** Connection initialization configuration */
683
638
  export interface InitConnectionConfig {
684
- /**
685
- * Alternative billing mode for Android
686
- * If not specified, defaults to NONE (standard Google Play billing)
687
- * Use USER_CHOICE_BILLING for user choice billing, EXTERNAL_OFFER for alternative only.
688
- * @deprecated Use enableBillingProgramAndroid instead. Scheduled for removal in OpenIAP 3.0.
689
- */
690
- alternativeBillingModeAndroid?: (AlternativeBillingModeAndroid | null);
691
639
  /**
692
640
  * Billing Choice renderer configured in Play Console. Available in OpenIAP
693
641
  * Spec 2.1.0 / openiap-google 2.3.0 (requires Play Billing 9.1.0+).
@@ -777,14 +725,6 @@ export interface Mutation {
777
725
  * See: https://openiap.dev/docs/apis/ios/begin-refund-request-ios
778
726
  */
779
727
  beginRefundRequestIOS?: Promise<(string | null)>;
780
- /**
781
- * Check whether alternative billing is available for the user. Step 1 of the alternative billing flow.
782
- * Returns true if available, false otherwise.
783
- * Throws OpenIapError.NotPrepared if billing client not ready.
784
- * See: https://openiap.dev/docs/apis/android/check-alternative-billing-availability-android
785
- * @deprecated Use isBillingProgramAvailableAndroid with the external-offer BillingProgramAndroid value instead. Scheduled for removal in OpenIAP 3.0.
786
- */
787
- checkAlternativeBillingAvailabilityAndroid: Promise<boolean>;
788
728
  /**
789
729
  * Clear pending transactions in the queue (sandbox helper).
790
730
  * See: https://openiap.dev/docs/apis/ios/clear-transaction-ios
@@ -795,16 +735,6 @@ export interface Mutation {
795
735
  * See: https://openiap.dev/docs/apis/android/consume-purchase-android
796
736
  */
797
737
  consumePurchaseAndroid: Promise<boolean>;
798
- /**
799
- * Create a reporting token for an alternative billing flow. Step 3 of the alternative billing flow.
800
- * Must be called AFTER successful payment in your payment system.
801
- * Token must be reported to Google Play backend within 24 hours.
802
- * Returns token string, or null if creation failed.
803
- * Throws OpenIapError.NotPrepared if billing client not ready.
804
- * See: https://openiap.dev/docs/apis/android/create-alternative-billing-token-android
805
- * @deprecated Use createBillingProgramReportingDetailsAndroid with the external-offer BillingProgramAndroid value instead. Scheduled for removal in OpenIAP 3.0.
806
- */
807
- createAlternativeBillingTokenAndroid?: Promise<(string | null)>;
808
738
  /**
809
739
  * Create the reporting details and external transaction token required by a billing program.
810
740
  * Introduced in Play Billing 8.2.0. External Offer and External Content Link integrations
@@ -879,9 +809,14 @@ export interface Mutation {
879
809
  openRedeemOfferCodeAndroid: Promise<boolean>;
880
810
  /**
881
811
  * Show the App Store offer code redemption sheet.
812
+ * On iOS 27+, Mac Catalyst 27+, and visionOS 27+, returns the verified
813
+ * transaction produced by the redemption. Earlier iOS and Mac Catalyst
814
+ * versions present the legacy sheet and return null; reconcile purchases
815
+ * through the normal transaction listener or an explicit available-purchases
816
+ * refresh.
882
817
  * See: https://openiap.dev/docs/apis/ios/present-code-redemption-sheet-ios
883
818
  */
884
- presentCodeRedemptionSheetIOS: Promise<boolean>;
819
+ presentCodeRedemptionSheetIOS?: Promise<(PurchaseIOS | null)>;
885
820
  /**
886
821
  * Present an external purchase link, StoreKit External (iOS 16+).
887
822
  * See: https://openiap.dev/docs/apis/ios/present-external-purchase-link-ios
@@ -899,27 +834,11 @@ export interface Mutation {
899
834
  * See: https://openiap.dev/docs/apis/request-purchase
900
835
  */
901
836
  requestPurchase?: Promise<(Purchase | Purchase[] | null)>;
902
- /**
903
- * Buy the currently promoted product.
904
- *
905
- * See: https://openiap.dev/docs/apis/ios/request-purchase-on-promoted-product-ios
906
- * @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.
907
- */
908
- requestPurchaseOnPromotedProductIOS: Promise<boolean>;
909
837
  /**
910
838
  * Restore non-consumable and active subscription purchases.
911
839
  * See: https://openiap.dev/docs/apis/restore-purchases
912
840
  */
913
841
  restorePurchases: Promise<void>;
914
- /**
915
- * Display Google's alternative billing information dialog. Step 2 of the alternative billing flow.
916
- * Must be called BEFORE processing payment in your payment system.
917
- * Returns true if user accepted, false if user canceled.
918
- * Throws OpenIapError.NotPrepared if billing client not ready.
919
- * See: https://openiap.dev/docs/apis/android/show-alternative-billing-dialog-android
920
- * @deprecated Use launchExternalLinkAndroid instead. Scheduled for removal in OpenIAP 3.0.
921
- */
922
- showAlternativeBillingDialogAndroid: Promise<boolean>;
923
842
  /**
924
843
  * Show Google's mandatory information dialog before a developer-rendered,
925
844
  * in-app Billing Choice screen.
@@ -954,12 +873,6 @@ export interface Mutation {
954
873
  * See: https://openiap.dev/docs/apis/ios/sync-ios
955
874
  */
956
875
  syncIOS: Promise<boolean>;
957
- /**
958
- * Deprecated. Validate purchase receipts with the configured providers — use verifyPurchase instead.
959
- * See: https://openiap.dev/docs/features/validation#verify-purchase
960
- * @deprecated Use verifyPurchase. Scheduled for removal in OpenIAP 3.0.
961
- */
962
- validateReceipt: Promise<VerifyPurchaseResult>;
963
876
  /**
964
877
  * Verify a purchase against your own backend. Returns a platform-specific
965
878
  * variant of VerifyPurchaseResult — VerifyPurchaseResultIOS exposes isValid
@@ -1012,8 +925,6 @@ export type MutationShowExternalPurchaseCustomLinkNoticeIosArgs = ExternalPurcha
1012
925
 
1013
926
  export type MutationShowInAppMessagesAndroidArgs = (InAppMessageParamsAndroid | null) | undefined;
1014
927
 
1015
- export type MutationValidateReceiptArgs = VerifyPurchaseProps;
1016
-
1017
928
  export type MutationVerifyPurchaseArgs = VerifyPurchaseProps;
1018
929
 
1019
930
  export type MutationVerifyPurchaseWithProviderArgs = VerifyPurchaseWithProviderProps;
@@ -1092,12 +1003,6 @@ export interface ProductAndroid extends ProductCommon {
1092
1003
  displayPrice: string;
1093
1004
  id: string;
1094
1005
  nameAndroid: string;
1095
- /**
1096
- * One-time purchase offer details including discounts (Android)
1097
- * Returns all eligible offers. Available in Google Play Billing Library 8.0+
1098
- * @deprecated Use the standardized discountOffers field instead. Scheduled for removal in OpenIAP 3.0.
1099
- */
1100
- oneTimePurchaseOfferDetailsAndroid?: (ProductAndroidOneTimePurchaseOfferDetail[] | null);
1101
1006
  platform: 'android';
1102
1007
  price?: (number | null);
1103
1008
  /**
@@ -1108,8 +1013,6 @@ export interface ProductAndroid extends ProductCommon {
1108
1013
  * Available in Google Play Billing Library 8.0.0+
1109
1014
  */
1110
1015
  productStatusAndroid?: (ProductStatusAndroid | null);
1111
- /** @deprecated Use subscriptionOffers instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0. */
1112
- subscriptionOfferDetailsAndroid?: (ProductSubscriptionAndroidOfferDetails[] | null);
1113
1016
  /**
1114
1017
  * Standardized subscription offers.
1115
1018
  * Cross-platform type with Android-specific fields using suffix.
@@ -1120,51 +1023,6 @@ export interface ProductAndroid extends ProductCommon {
1120
1023
  type: 'in-app';
1121
1024
  }
1122
1025
 
1123
- /**
1124
- * One-time purchase offer details (Android).
1125
- * Available in Google Play Billing Library 8.0+
1126
- * @see https://openiap.dev/docs/types/discount-offer
1127
- * @deprecated Use the standardized DiscountOffer type for Android one-time offers. Scheduled for removal in OpenIAP 3.0.
1128
- */
1129
- export interface ProductAndroidOneTimePurchaseOfferDetail {
1130
- /**
1131
- * Discount display information
1132
- * Only available for discounted offers
1133
- */
1134
- discountDisplayInfo?: (DiscountDisplayInfoAndroid | null);
1135
- formattedPrice: string;
1136
- /**
1137
- * Full (non-discounted) price in micro-units
1138
- * Only available for discounted offers
1139
- */
1140
- fullPriceMicros?: (string | null);
1141
- /** Limited quantity information */
1142
- limitedQuantityInfo?: (LimitedQuantityInfoAndroid | null);
1143
- /** Offer ID */
1144
- offerId?: (string | null);
1145
- /** List of offer tags */
1146
- offerTags: string[];
1147
- /** Offer token for use in BillingFlowParams when purchasing */
1148
- offerToken: string;
1149
- /**
1150
- * Pre-order details for products available for pre-order
1151
- * Available in Google Play Billing Library 8.1.0+
1152
- */
1153
- preorderDetailsAndroid?: (PreorderDetailsAndroid | null);
1154
- priceAmountMicros: string;
1155
- priceCurrencyCode: string;
1156
- /**
1157
- * Purchase option ID for this offer (Android)
1158
- * Used to identify which purchase option the user selected.
1159
- * Available in Google Play Billing Library 8.0+
1160
- */
1161
- purchaseOptionId?: (string | null);
1162
- /** Rental details for rental offers */
1163
- rentalDetailsAndroid?: (RentalDetailsAndroid | null);
1164
- /** Valid time window for the offer */
1165
- validTimeWindow?: (ValidTimeWindowAndroid | null);
1166
- }
1167
-
1168
1026
  export interface ProductCommon {
1169
1027
  currency: string;
1170
1028
  debugDescription?: (string | null);
@@ -1195,8 +1053,6 @@ export interface ProductIOS extends ProductCommon {
1195
1053
  * monthly subscriptions with a 12-month commitment.
1196
1054
  */
1197
1055
  pricingTermsIOS?: (SubscriptionPricingTermsIOS[] | null);
1198
- /** @deprecated Use subscriptionOffers instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0. */
1199
- subscriptionInfoIOS?: (SubscriptionInfoIOS | null);
1200
1056
  /**
1201
1057
  * Standardized subscription offers.
1202
1058
  * Cross-platform type with iOS-specific fields using suffix.
@@ -1232,21 +1088,10 @@ export interface ProductSubscriptionAndroid extends ProductCommon {
1232
1088
  currency: string;
1233
1089
  debugDescription?: (string | null);
1234
1090
  description: string;
1235
- /**
1236
- * Nullable compatibility field. Google Play does not return one-time purchase
1237
- * offer details for subscription products; use subscriptionOffers below.
1238
- */
1239
- discountOffers?: (DiscountOffer[] | null);
1240
1091
  displayName?: (string | null);
1241
1092
  displayPrice: string;
1242
1093
  id: string;
1243
1094
  nameAndroid: string;
1244
- /**
1245
- * Legacy nullable compatibility field. Google Play does not populate one-time
1246
- * purchase offer details for subscription products.
1247
- * @deprecated One-time offers belong to ProductAndroid.discountOffers; subscriptions use subscriptionOffers. Scheduled for removal in OpenIAP 3.0.
1248
- */
1249
- oneTimePurchaseOfferDetailsAndroid?: (ProductAndroidOneTimePurchaseOfferDetail[] | null);
1250
1095
  platform: 'android';
1251
1096
  price?: (number | null);
1252
1097
  /**
@@ -1257,8 +1102,6 @@ export interface ProductSubscriptionAndroid extends ProductCommon {
1257
1102
  * Available in Google Play Billing Library 8.0.0+
1258
1103
  */
1259
1104
  productStatusAndroid?: (ProductStatusAndroid | null);
1260
- /** @deprecated Use subscriptionOffers instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0. */
1261
- subscriptionOfferDetailsAndroid: ProductSubscriptionAndroidOfferDetails[];
1262
1105
  /**
1263
1106
  * Standardized subscription offers.
1264
1107
  * Cross-platform type with Android-specific fields using suffix.
@@ -1269,31 +1112,15 @@ export interface ProductSubscriptionAndroid extends ProductCommon {
1269
1112
  type: 'subs';
1270
1113
  }
1271
1114
 
1272
- /**
1273
- * Subscription offer details (Android).
1274
- * @see https://openiap.dev/docs/types/subscription-offer
1275
- * @deprecated Use the standardized SubscriptionOffer type instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0.
1276
- */
1277
- export interface ProductSubscriptionAndroidOfferDetails {
1278
- basePlanId: string;
1115
+ export interface ProductSubscriptionIOS extends ProductCommon {
1279
1116
  /**
1280
- * Installment plan details for this subscription offer.
1281
- * Only set for installment subscription plans; null for non-installment plans.
1282
- * Available in Google Play Billing Library 7.0+
1117
+ * Subscriptions included in this Apple subscription bundle. Empty or null for
1118
+ * every other product type (Apple 27+ beta).
1283
1119
  */
1284
- installmentPlanDetails?: (InstallmentPlanDetailsAndroid | null);
1285
- offerId?: (string | null);
1286
- offerTags: string[];
1287
- offerToken: string;
1288
- pricingPhases: PricingPhasesAndroid;
1289
- }
1290
-
1291
- export interface ProductSubscriptionIOS extends ProductCommon {
1120
+ bundledSubscriptionsIOS?: (BundledSubscriptionIOS[] | null);
1292
1121
  currency: string;
1293
1122
  debugDescription?: (string | null);
1294
1123
  description: string;
1295
- /** @deprecated Use subscriptionOffers instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0. */
1296
- discountsIOS?: (DiscountIOS[] | null);
1297
1124
  displayName?: (string | null);
1298
1125
  displayNameIOS: string;
1299
1126
  displayPrice: string;
@@ -1314,8 +1141,6 @@ export interface ProductSubscriptionIOS extends ProductCommon {
1314
1141
  pricingTermsIOS?: (SubscriptionPricingTermsIOS[] | null);
1315
1142
  /** App Store subscription group identifier for intro-offer eligibility checks. */
1316
1143
  subscriptionGroupIdIOS?: (string | null);
1317
- /** @deprecated Use subscriptionOffers for offer metadata and subscriptionGroupIdIOS for the App Store subscription group identifier. Scheduled for removal in OpenIAP 3.0. */
1318
- subscriptionInfoIOS?: (SubscriptionInfoIOS | null);
1319
1144
  /**
1320
1145
  * Standardized subscription offers.
1321
1146
  * Cross-platform type with iOS-specific fields using suffix.
@@ -1331,7 +1156,7 @@ export interface ProductSubscriptionIOS extends ProductCommon {
1331
1156
 
1332
1157
  export type ProductType = 'in-app' | 'subs';
1333
1158
 
1334
- export type ProductTypeIOS = 'consumable' | 'non-consumable' | 'auto-renewable-subscription' | 'non-renewing-subscription';
1159
+ export type ProductTypeIOS = 'consumable' | 'non-consumable' | 'auto-renewable-subscription' | 'non-renewing-subscription' | 'subscription-bundle' | 'subscription-suite';
1335
1160
 
1336
1161
  /**
1337
1162
  * JWS promotional offer input for iOS 15+ (StoreKit 2, WWDC 2025).
@@ -1379,8 +1204,6 @@ export interface PurchaseAndroid extends PurchaseCommon {
1379
1204
  * Available in Google Play Billing Library 5.0+
1380
1205
  */
1381
1206
  pendingPurchaseUpdateAndroid?: (PendingPurchaseUpdateAndroid | null);
1382
- /** @deprecated Use store instead. Scheduled for removal in OpenIAP 3.0. */
1383
- platform: IapPlatform;
1384
1207
  productId: string;
1385
1208
  purchaseState: PurchaseState;
1386
1209
  purchaseToken?: (string | null);
@@ -1404,8 +1227,6 @@ export interface PurchaseCommon {
1404
1227
  id: string;
1405
1228
  ids?: (string[] | null);
1406
1229
  isAutoRenewing: boolean;
1407
- /** @deprecated Use store instead. Scheduled for removal in OpenIAP 3.0. */
1408
- platform: IapPlatform;
1409
1230
  productId: string;
1410
1231
  purchaseState: PurchaseState;
1411
1232
  /** Unified purchase token (iOS JWS, Android purchaseToken) */
@@ -1440,6 +1261,17 @@ export interface PurchaseIOS extends PurchaseCommon {
1440
1261
  appBundleIdIOS?: (string | null);
1441
1262
  /** iOS 26.4+ billing plan selected for this transaction. */
1442
1263
  billingPlanTypeIOS?: (SubscriptionBillingPlanTypeIOS | null);
1264
+ /**
1265
+ * Original transaction identifier for the subscription bundle that produced
1266
+ * this transaction (Apple 27+ SDK; back-deployed by StoreKit).
1267
+ */
1268
+ bundleOriginalTransactionIdIOS?: (string | null);
1269
+ /** Product identifier of the subscription bundle that produced this transaction. */
1270
+ bundleProductIdIOS?: (string | null);
1271
+ /** Subscription-group identifier of the bundle that produced this transaction. */
1272
+ bundleSubscriptionGroupIdIOS?: (string | null);
1273
+ /** Bundle transaction identifier associated with this component transaction. */
1274
+ bundleTransactionIdIOS?: (string | null);
1443
1275
  /** iOS 26.4+ progress information for monthly subscriptions with a 12-month commitment. */
1444
1276
  commitmentInfoIOS?: (TransactionCommitmentInfoIOS | null);
1445
1277
  countryCodeIOS?: (string | null);
@@ -1455,9 +1287,13 @@ export interface PurchaseIOS extends PurchaseCommon {
1455
1287
  offerIOS?: (PurchaseOfferIOS | null);
1456
1288
  originalTransactionDateIOS?: (number | null);
1457
1289
  originalTransactionIdentifierIOS?: (string | null);
1290
+ /** StoreKit ownership raw value. Xcode 27 adds the back-deployed assigned value. */
1458
1291
  ownershipTypeIOS?: (string | null);
1459
- /** @deprecated Use store instead. Scheduled for removal in OpenIAP 3.0. */
1460
- platform: IapPlatform;
1292
+ /**
1293
+ * Original transaction identifier replaced when moving between a standalone
1294
+ * subscription and a subscription bundle.
1295
+ */
1296
+ previousOriginalTransactionIdIOS?: (string | null);
1461
1297
  productId: string;
1462
1298
  purchaseState: PurchaseState;
1463
1299
  purchaseToken?: (string | null);
@@ -1467,7 +1303,13 @@ export interface PurchaseIOS extends PurchaseCommon {
1467
1303
  reasonStringRepresentationIOS?: (string | null);
1468
1304
  renewalInfoIOS?: (RenewalInfoIOS | null);
1469
1305
  revocationDateIOS?: (number | null);
1306
+ /** Normalized StoreKit revocation reason, including upgraded_to_bundle. */
1470
1307
  revocationReasonIOS?: (string | null);
1308
+ /**
1309
+ * StoreKit revocation type, including assignment-revocation on Apple 26.4+
1310
+ * when compiled with the Xcode 27 SDK.
1311
+ */
1312
+ revocationTypeIOS?: (string | null);
1471
1313
  /** Store where purchase was made */
1472
1314
  store: IapStore;
1473
1315
  storefrontCountryCodeIOS?: (string | null);
@@ -1590,13 +1432,6 @@ export interface Query {
1590
1432
  * See: https://openiap.dev/docs/apis/get-storefront
1591
1433
  */
1592
1434
  getStorefront: Promise<string>;
1593
- /**
1594
- * Deprecated. Get the current App Store storefront ISO 3166-1 alpha-3 country
1595
- * code — use cross-platform getStorefront instead.
1596
- * See: https://openiap.dev/docs/apis/ios/get-storefront-ios
1597
- * @deprecated Use getStorefront. Scheduled for removal in OpenIAP 3.0.
1598
- */
1599
- getStorefrontIOS: Promise<string>;
1600
1435
  /**
1601
1436
  * Return the JWS string for a transaction (StoreKit 2).
1602
1437
  * See: https://openiap.dev/docs/apis/ios/get-transaction-jws-ios
@@ -1634,12 +1469,6 @@ export interface Query {
1634
1469
  * See: https://openiap.dev/docs/apis/ios/subscription-status-ios
1635
1470
  */
1636
1471
  subscriptionStatusIOS: Promise<SubscriptionStatusIOS[]>;
1637
- /**
1638
- * Deprecated. Legacy App Store receipt validation — use verifyPurchase instead.
1639
- * See: https://openiap.dev/docs/apis/ios/validate-receipt-ios
1640
- * @deprecated Use verifyPurchase. Scheduled for removal in OpenIAP 3.0.
1641
- */
1642
- validateReceiptIOS: Promise<VerifyPurchaseResultIOS>;
1643
1472
  }
1644
1473
 
1645
1474
  export type QueryCurrentEntitlementIosArgs = string;
@@ -1666,8 +1495,6 @@ export type QueryLatestTransactionIosArgs = string;
1666
1495
 
1667
1496
  export type QuerySubscriptionStatusIosArgs = string;
1668
1497
 
1669
- export type QueryValidateReceiptIosArgs = VerifyPurchaseProps;
1670
-
1671
1498
  export interface RefundResultIOS {
1672
1499
  message?: (string | null);
1673
1500
  status: string;
@@ -1687,14 +1514,20 @@ export interface RenewalCommitmentInfoIOS {
1687
1514
  */
1688
1515
  export interface RenewalInfoIOS {
1689
1516
  autoRenewPreference?: (string | null);
1517
+ /** Original transaction identifier for the bundle used by the next renewal. */
1518
+ bundleOriginalTransactionId?: (string | null);
1519
+ /** Product identifier for the bundle used by the next renewal. */
1520
+ bundleProductId?: (string | null);
1521
+ /** Subscription-group identifier for the bundle used by the next renewal. */
1522
+ bundleSubscriptionGroupId?: (string | null);
1690
1523
  /**
1691
1524
  * iOS 26.4+ renewal commitment metadata for monthly subscriptions with a
1692
1525
  * 12-month commitment.
1693
1526
  */
1694
1527
  commitmentInfo?: (RenewalCommitmentInfoIOS | null);
1695
1528
  /**
1696
- * When subscription expires due to cancellation/billing issue
1697
- * Possible values: "VOLUNTARY", "BILLING_ERROR", "DID_NOT_AGREE_TO_PRICE_INCREASE", "PRODUCT_NOT_AVAILABLE", "UNKNOWN"
1529
+ * StoreKit's raw integer expiration-reason value represented as a string.
1530
+ * Xcode 27 adds the back-deployed unbundled case. Preserve unknown future values.
1698
1531
  */
1699
1532
  expirationReason?: (string | null);
1700
1533
  /**
@@ -1733,6 +1566,8 @@ export interface RenewalInfoIOS {
1733
1566
  */
1734
1567
  renewalOfferType?: (string | null);
1735
1568
  willAutoRenew: boolean;
1569
+ /** Whether this subscription will leave its bundle and renew standalone. */
1570
+ willUnbundle?: (boolean | null);
1736
1571
  }
1737
1572
 
1738
1573
  /**
@@ -1767,7 +1602,7 @@ export interface RequestPurchaseAndroidProps {
1767
1602
  obfuscatedProfileId?: (string | null);
1768
1603
  /**
1769
1604
  * Offer token for one-time purchase discounts (8.0+).
1770
- * Pass the offerToken from oneTimePurchaseOfferDetailsAndroid or discountOffers
1605
+ * Pass the offerToken from discountOffers
1771
1606
  * to apply a discount offer to the purchase.
1772
1607
  */
1773
1608
  offerToken?: (string | null);
@@ -1804,22 +1639,12 @@ export type RequestPurchaseProps =
1804
1639
  request: RequestPurchasePropsByPlatforms;
1805
1640
  /** Explicit purchase type hint (defaults to in-app) */
1806
1641
  type: 'in-app';
1807
- /**
1808
- * This flag only logs debug info and has no effect on the purchase flow.
1809
- * @deprecated Use enableBillingProgramAndroid in InitConnectionConfig instead. Scheduled for removal in OpenIAP 3.0.
1810
- */
1811
- useAlternativeBilling?: boolean | null;
1812
1642
  }
1813
1643
  | {
1814
1644
  /** Per-platform subscription request props */
1815
1645
  request: RequestSubscriptionPropsByPlatforms;
1816
1646
  /** Explicit purchase type hint (defaults to in-app) */
1817
1647
  type: 'subs';
1818
- /**
1819
- * This flag only logs debug info and has no effect on the purchase flow.
1820
- * @deprecated Use enableBillingProgramAndroid in InitConnectionConfig instead. Scheduled for removal in OpenIAP 3.0.
1821
- */
1822
- useAlternativeBilling?: boolean | null;
1823
1648
  };
1824
1649
 
1825
1650
  /**
@@ -1832,14 +1657,10 @@ export type RequestPurchaseProps =
1832
1657
  * (determined at build time, not runtime)
1833
1658
  */
1834
1659
  export interface RequestPurchasePropsByPlatforms {
1835
- /** @deprecated Use google instead. Scheduled for removal in OpenIAP 3.0. */
1836
- android?: (RequestPurchaseAndroidProps | null);
1837
1660
  /** Apple-specific purchase parameters */
1838
1661
  apple?: (RequestPurchaseIosProps | null);
1839
1662
  /** Google-specific purchase parameters */
1840
1663
  google?: (RequestPurchaseAndroidProps | null);
1841
- /** @deprecated Use apple instead. Scheduled for removal in OpenIAP 3.0. */
1842
- ios?: (RequestPurchaseIosProps | null);
1843
1664
  }
1844
1665
 
1845
1666
  export type RequestPurchaseResult = Purchase | Purchase[] | null;
@@ -1868,11 +1689,6 @@ export interface RequestSubscriptionAndroidProps {
1868
1689
  originalExternalTransactionId?: (string | null);
1869
1690
  /** Purchase token for upgrades/downgrades */
1870
1691
  purchaseToken?: (string | null);
1871
- /**
1872
- * Replacement mode for subscription changes
1873
- * @deprecated Use subscriptionProductReplacementParams instead for item-level replacement (8.1.0+). Scheduled for removal in OpenIAP 3.0.
1874
- */
1875
- replacementMode?: (number | null);
1876
1692
  /** List of subscription SKUs */
1877
1693
  skus: string[];
1878
1694
  /** Subscription offers */
@@ -1941,14 +1757,10 @@ export interface RequestSubscriptionIosProps {
1941
1757
  * (determined at build time, not runtime)
1942
1758
  */
1943
1759
  export interface RequestSubscriptionPropsByPlatforms {
1944
- /** @deprecated Use google instead. Scheduled for removal in OpenIAP 3.0. */
1945
- android?: (RequestSubscriptionAndroidProps | null);
1946
1760
  /** Apple-specific subscription parameters */
1947
1761
  apple?: (RequestSubscriptionIosProps | null);
1948
1762
  /** Google-specific subscription parameters */
1949
1763
  google?: (RequestSubscriptionAndroidProps | null);
1950
- /** @deprecated Use apple instead. Scheduled for removal in OpenIAP 3.0. */
1951
- ios?: (RequestSubscriptionIosProps | null);
1952
1764
  }
1953
1765
 
1954
1766
  export interface RequestVerifyPurchaseWithIapkitAmazonProps {
@@ -2086,14 +1898,6 @@ export interface SubscriptionCommitmentInfoIOS {
2086
1898
  price: number;
2087
1899
  }
2088
1900
 
2089
- export interface SubscriptionInfoIOS {
2090
- introductoryOffer?: (SubscriptionOfferIOS | null);
2091
- pricingTerms?: (SubscriptionPricingTermsIOS[] | null);
2092
- promotionalOffers?: (SubscriptionOfferIOS[] | null);
2093
- subscriptionGroupId: string;
2094
- subscriptionPeriod: SubscriptionPeriodValueIOS;
2095
- }
2096
-
2097
1901
  /**
2098
1902
  * Standardized subscription discount/promotional offer.
2099
1903
  * Provides a unified interface for subscription offers across iOS and Android.
@@ -2117,7 +1921,7 @@ export interface SubscriptionOffer {
2117
1921
  /**
2118
1922
  * Unique identifier for the offer.
2119
1923
  * - iOS: Discount identifier from App Store Connect
2120
- * - Android: offerId from ProductSubscriptionAndroidOfferDetails
1924
+ * - Android: offerId from the Google Play subscription offer
2121
1925
  */
2122
1926
  id: string;
2123
1927
  /**
@@ -2174,21 +1978,6 @@ export interface SubscriptionOffer {
2174
1978
  type: DiscountOfferType;
2175
1979
  }
2176
1980
 
2177
- /**
2178
- * iOS subscription offer details.
2179
- * @see https://openiap.dev/docs/types/subscription-offer
2180
- * @deprecated Use the standardized SubscriptionOffer type instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0.
2181
- */
2182
- export interface SubscriptionOfferIOS {
2183
- displayPrice: string;
2184
- id: string;
2185
- paymentMode: PaymentModeIOS;
2186
- period: SubscriptionPeriodValueIOS;
2187
- periodCount: number;
2188
- price: number;
2189
- type: SubscriptionOfferTypeIOS;
2190
- }
2191
-
2192
1981
  export type SubscriptionOfferTypeIOS = 'introductory' | 'promotional' | 'win-back';
2193
1982
 
2194
1983
  /** Subscription period value combining unit and count. */
@@ -2432,10 +2221,8 @@ export interface WinBackOfferInputIOS {
2432
2221
  export type MutationArgsMap = {
2433
2222
  acknowledgePurchaseAndroid: MutationAcknowledgePurchaseAndroidArgs;
2434
2223
  beginRefundRequestIOS: MutationBeginRefundRequestIosArgs;
2435
- checkAlternativeBillingAvailabilityAndroid: never;
2436
2224
  clearTransactionIOS: never;
2437
2225
  consumePurchaseAndroid: MutationConsumePurchaseAndroidArgs;
2438
- createAlternativeBillingTokenAndroid: never;
2439
2226
  createBillingProgramReportingDetailsAndroid: MutationCreateBillingProgramReportingDetailsAndroidArgs;
2440
2227
  deepLinkToSubscriptions: MutationDeepLinkToSubscriptionsArgs;
2441
2228
  endConnection: never;
@@ -2448,15 +2235,12 @@ export type MutationArgsMap = {
2448
2235
  presentExternalPurchaseLinkIOS: MutationPresentExternalPurchaseLinkIosArgs;
2449
2236
  presentExternalPurchaseNoticeSheetIOS: never;
2450
2237
  requestPurchase: MutationRequestPurchaseArgs;
2451
- requestPurchaseOnPromotedProductIOS: never;
2452
2238
  restorePurchases: never;
2453
- showAlternativeBillingDialogAndroid: never;
2454
2239
  showBillingProgramInformationDialogAndroid: MutationShowBillingProgramInformationDialogAndroidArgs;
2455
2240
  showExternalPurchaseCustomLinkNoticeIOS: MutationShowExternalPurchaseCustomLinkNoticeIosArgs;
2456
2241
  showInAppMessagesAndroid: MutationShowInAppMessagesAndroidArgs;
2457
2242
  showManageSubscriptionsIOS: never;
2458
2243
  syncIOS: never;
2459
- validateReceipt: MutationValidateReceiptArgs;
2460
2244
  verifyPurchase: MutationVerifyPurchaseArgs;
2461
2245
  verifyPurchaseWithProvider: MutationVerifyPurchaseWithProviderArgs;
2462
2246
  };
@@ -2488,7 +2272,6 @@ export type QueryArgsMap = {
2488
2272
  getPromotedProductIOS: never;
2489
2273
  getReceiptDataIOS: never;
2490
2274
  getStorefront: never;
2491
- getStorefrontIOS: never;
2492
2275
  getTransactionJwsIOS: QueryGetTransactionJwsIosArgs;
2493
2276
  hasActiveSubscriptions: QueryHasActiveSubscriptionsArgs;
2494
2277
  isEligibleForExternalPurchaseCustomLinkIOS: never;
@@ -2496,7 +2279,6 @@ export type QueryArgsMap = {
2496
2279
  isTransactionVerifiedIOS: QueryIsTransactionVerifiedIosArgs;
2497
2280
  latestTransactionIOS: QueryLatestTransactionIosArgs;
2498
2281
  subscriptionStatusIOS: QuerySubscriptionStatusIosArgs;
2499
- validateReceiptIOS: QueryValidateReceiptIosArgs;
2500
2282
  };
2501
2283
 
2502
2284
  export type QueryField<K extends keyof Query> =