react-native-iap 14.4.47 → 14.5.1-rc.1

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 (101) hide show
  1. package/android/src/main/java/com/margelo/nitro/iap/HybridRnIap.kt +76 -16
  2. package/ios/HybridRnIap.swift +17 -5
  3. package/ios/RnIapHelper.swift +8 -0
  4. package/ios/reactnativeiap.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  5. package/ios/reactnativeiap.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  6. package/lib/module/index.js +6 -5
  7. package/lib/module/index.js.map +1 -1
  8. package/lib/module/types.js +35 -0
  9. package/lib/module/types.js.map +1 -1
  10. package/lib/module/utils/type-bridge.js +21 -1
  11. package/lib/module/utils/type-bridge.js.map +1 -1
  12. package/lib/typescript/src/index.d.ts.map +1 -1
  13. package/lib/typescript/src/specs/RnIap.nitro.d.ts +71 -4
  14. package/lib/typescript/src/specs/RnIap.nitro.d.ts.map +1 -1
  15. package/lib/typescript/src/types.d.ts +155 -10
  16. package/lib/typescript/src/types.d.ts.map +1 -1
  17. package/lib/typescript/src/utils/type-bridge.d.ts.map +1 -1
  18. package/nitrogen/generated/android/c++/JFunc_void_NitroProduct.hpp +13 -0
  19. package/nitrogen/generated/android/c++/JFunc_void_NitroPurchase.hpp +2 -0
  20. package/nitrogen/generated/android/c++/JHybridRnIapSpec.cpp +32 -4
  21. package/nitrogen/generated/android/c++/{JIapkitStore.hpp → JIapStore.hpp} +19 -13
  22. package/nitrogen/generated/android/c++/JNitroDiscountAmountAndroid.hpp +61 -0
  23. package/nitrogen/generated/android/c++/JNitroDiscountDisplayInfoAndroid.hpp +64 -0
  24. package/nitrogen/generated/android/c++/JNitroLimitedQuantityInfoAndroid.hpp +61 -0
  25. package/nitrogen/generated/android/c++/JNitroOneTimePurchaseOfferDetail.hpp +70 -3
  26. package/nitrogen/generated/android/c++/JNitroPreorderDetailsAndroid.hpp +61 -0
  27. package/nitrogen/generated/android/c++/JNitroProduct.hpp +35 -5
  28. package/nitrogen/generated/android/c++/JNitroPurchase.hpp +13 -3
  29. package/nitrogen/generated/android/c++/JNitroPurchaseRequest.hpp +11 -3
  30. package/nitrogen/generated/android/c++/JNitroReceiptValidationResultIOS.hpp +2 -0
  31. package/nitrogen/generated/android/c++/JNitroRentalDetailsAndroid.hpp +62 -0
  32. package/nitrogen/generated/android/c++/JNitroValidTimeWindowAndroid.hpp +61 -0
  33. package/nitrogen/generated/android/c++/JNitroVerifyPurchaseWithIapkitResult.hpp +6 -6
  34. package/nitrogen/generated/android/c++/JNitroVerifyPurchaseWithProviderError.hpp +62 -0
  35. package/nitrogen/generated/android/c++/JNitroVerifyPurchaseWithProviderResult.hpp +24 -16
  36. package/nitrogen/generated/android/c++/JPurchase.hpp +2 -0
  37. package/nitrogen/generated/android/c++/JPurchaseAndroid.hpp +11 -1
  38. package/nitrogen/generated/android/c++/JPurchaseIOS.hpp +7 -1
  39. package/nitrogen/generated/android/c++/JRequestPurchaseResult.hpp +2 -0
  40. package/nitrogen/generated/android/c++/JVariant_NitroReceiptValidationResultIOS_NitroReceiptValidationResultAndroid.hpp +2 -0
  41. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/{IapkitStore.kt → IapStore.kt} +7 -5
  42. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroDiscountAmountAndroid.kt +39 -0
  43. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroDiscountDisplayInfoAndroid.kt +39 -0
  44. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroLimitedQuantityInfoAndroid.kt +39 -0
  45. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroOneTimePurchaseOfferDetail.kt +30 -3
  46. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroPreorderDetailsAndroid.kt +39 -0
  47. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroProduct.kt +2 -2
  48. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroPurchase.kt +9 -3
  49. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroPurchaseRequest.kt +9 -3
  50. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroRentalDetailsAndroid.kt +39 -0
  51. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroValidTimeWindowAndroid.kt +39 -0
  52. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroVerifyPurchaseWithIapkitResult.kt +2 -2
  53. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroVerifyPurchaseWithProviderError.kt +39 -0
  54. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroVerifyPurchaseWithProviderResult.kt +6 -3
  55. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/PurchaseAndroid.kt +8 -2
  56. package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/PurchaseIOS.kt +5 -2
  57. package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Bridge.hpp +178 -26
  58. package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Umbrella.hpp +24 -3
  59. package/nitrogen/generated/ios/c++/HybridRnIapSpecSwift.hpp +24 -3
  60. package/nitrogen/generated/ios/swift/{IapkitStore.swift → IapStore.swift} +14 -6
  61. package/nitrogen/generated/ios/swift/NitroDiscountAmountAndroid.swift +46 -0
  62. package/nitrogen/generated/ios/swift/NitroDiscountDisplayInfoAndroid.swift +70 -0
  63. package/nitrogen/generated/ios/swift/NitroLimitedQuantityInfoAndroid.swift +46 -0
  64. package/nitrogen/generated/ios/swift/NitroOneTimePurchaseOfferDetail.swift +211 -2
  65. package/nitrogen/generated/ios/swift/NitroPreorderDetailsAndroid.swift +46 -0
  66. package/nitrogen/generated/ios/swift/NitroProduct.swift +26 -7
  67. package/nitrogen/generated/ios/swift/NitroPurchase.swift +43 -2
  68. package/nitrogen/generated/ios/swift/NitroPurchaseRequest.swift +47 -1
  69. package/nitrogen/generated/ios/swift/NitroRentalDetailsAndroid.swift +65 -0
  70. package/nitrogen/generated/ios/swift/NitroValidTimeWindowAndroid.swift +46 -0
  71. package/nitrogen/generated/ios/swift/NitroVerifyPurchaseWithIapkitResult.swift +2 -2
  72. package/nitrogen/generated/ios/swift/NitroVerifyPurchaseWithProviderError.swift +65 -0
  73. package/nitrogen/generated/ios/swift/NitroVerifyPurchaseWithProviderResult.swift +55 -13
  74. package/nitrogen/generated/ios/swift/PurchaseAndroid.swift +44 -3
  75. package/nitrogen/generated/ios/swift/PurchaseIOS.swift +13 -2
  76. package/nitrogen/generated/shared/c++/{IapkitStore.hpp → IapStore.hpp} +23 -15
  77. package/nitrogen/generated/shared/c++/NitroDiscountAmountAndroid.hpp +79 -0
  78. package/nitrogen/generated/shared/c++/NitroDiscountDisplayInfoAndroid.hpp +81 -0
  79. package/nitrogen/generated/shared/c++/NitroLimitedQuantityInfoAndroid.hpp +79 -0
  80. package/nitrogen/generated/shared/c++/NitroOneTimePurchaseOfferDetail.hpp +55 -3
  81. package/nitrogen/generated/shared/c++/NitroPreorderDetailsAndroid.hpp +79 -0
  82. package/nitrogen/generated/shared/c++/NitroProduct.hpp +6 -5
  83. package/nitrogen/generated/shared/c++/NitroPurchase.hpp +13 -2
  84. package/nitrogen/generated/shared/c++/NitroPurchaseRequest.hpp +10 -2
  85. package/nitrogen/generated/shared/c++/NitroRentalDetailsAndroid.hpp +80 -0
  86. package/nitrogen/generated/shared/c++/NitroValidTimeWindowAndroid.hpp +79 -0
  87. package/nitrogen/generated/shared/c++/NitroVerifyPurchaseWithIapkitResult.hpp +8 -8
  88. package/nitrogen/generated/shared/c++/NitroVerifyPurchaseWithProviderError.hpp +80 -0
  89. package/nitrogen/generated/shared/c++/NitroVerifyPurchaseWithProviderResult.hpp +13 -5
  90. package/nitrogen/generated/shared/c++/PurchaseAndroid.hpp +12 -1
  91. package/nitrogen/generated/shared/c++/PurchaseIOS.hpp +8 -1
  92. package/openiap-versions.json +3 -3
  93. package/package.json +1 -1
  94. package/plugin/build/src/withIAP.d.ts +3 -0
  95. package/plugin/build/src/withIAP.js +81 -0
  96. package/plugin/build/tsconfig.tsbuildinfo +1 -0
  97. package/plugin/tsconfig.tsbuildinfo +1 -1
  98. package/src/index.ts +8 -5
  99. package/src/specs/RnIap.nitro.ts +79 -4
  100. package/src/types.ts +163 -11
  101. package/src/utils/type-bridge.ts +23 -0
@@ -100,6 +100,9 @@ data class PurchaseIOS(
100
100
  val revocationReasonIOS: String?,
101
101
  @DoNotStrip
102
102
  @Keep
103
+ val store: IapStore,
104
+ @DoNotStrip
105
+ @Keep
103
106
  val storefrontCountryCodeIOS: String?,
104
107
  @DoNotStrip
105
108
  @Keep
@@ -125,8 +128,8 @@ data class PurchaseIOS(
125
128
  @Keep
126
129
  @Suppress("unused")
127
130
  @JvmStatic
128
- private fun fromCpp(appAccountToken: String?, appBundleIdIOS: String?, countryCodeIOS: String?, currencyCodeIOS: String?, currencySymbolIOS: String?, currentPlanId: String?, environmentIOS: String?, expirationDateIOS: Double?, id: String, ids: Array<String>?, isAutoRenewing: Boolean, isUpgradedIOS: Boolean?, offerIOS: PurchaseOfferIOS?, originalTransactionDateIOS: Double?, originalTransactionIdentifierIOS: String?, ownershipTypeIOS: String?, platform: IapPlatform, productId: String, purchaseState: PurchaseState, purchaseToken: String?, quantity: Double, quantityIOS: Double?, reasonIOS: String?, reasonStringRepresentationIOS: String?, renewalInfoIOS: RenewalInfoIOS?, revocationDateIOS: Double?, revocationReasonIOS: String?, storefrontCountryCodeIOS: String?, subscriptionGroupIdIOS: String?, transactionDate: Double, transactionId: String, transactionReasonIOS: String?, webOrderLineItemIdIOS: String?): PurchaseIOS {
129
- return PurchaseIOS(appAccountToken, appBundleIdIOS, countryCodeIOS, currencyCodeIOS, currencySymbolIOS, currentPlanId, environmentIOS, expirationDateIOS, id, ids, isAutoRenewing, isUpgradedIOS, offerIOS, originalTransactionDateIOS, originalTransactionIdentifierIOS, ownershipTypeIOS, platform, productId, purchaseState, purchaseToken, quantity, quantityIOS, reasonIOS, reasonStringRepresentationIOS, renewalInfoIOS, revocationDateIOS, revocationReasonIOS, storefrontCountryCodeIOS, subscriptionGroupIdIOS, transactionDate, transactionId, transactionReasonIOS, webOrderLineItemIdIOS)
131
+ private fun fromCpp(appAccountToken: String?, appBundleIdIOS: String?, countryCodeIOS: String?, currencyCodeIOS: String?, currencySymbolIOS: String?, currentPlanId: String?, environmentIOS: String?, expirationDateIOS: Double?, id: String, ids: Array<String>?, isAutoRenewing: Boolean, isUpgradedIOS: Boolean?, offerIOS: PurchaseOfferIOS?, originalTransactionDateIOS: Double?, originalTransactionIdentifierIOS: String?, ownershipTypeIOS: String?, platform: IapPlatform, productId: String, purchaseState: PurchaseState, purchaseToken: String?, quantity: Double, quantityIOS: Double?, reasonIOS: String?, reasonStringRepresentationIOS: String?, renewalInfoIOS: RenewalInfoIOS?, revocationDateIOS: Double?, revocationReasonIOS: String?, store: IapStore, storefrontCountryCodeIOS: String?, subscriptionGroupIdIOS: String?, transactionDate: Double, transactionId: String, transactionReasonIOS: String?, webOrderLineItemIdIOS: String?): PurchaseIOS {
132
+ return PurchaseIOS(appAccountToken, appBundleIdIOS, countryCodeIOS, currencyCodeIOS, currencySymbolIOS, currentPlanId, environmentIOS, expirationDateIOS, id, ids, isAutoRenewing, isUpgradedIOS, offerIOS, originalTransactionDateIOS, originalTransactionIdentifierIOS, ownershipTypeIOS, platform, productId, purchaseState, purchaseToken, quantity, quantityIOS, reasonIOS, reasonStringRepresentationIOS, renewalInfoIOS, revocationDateIOS, revocationReasonIOS, store, storefrontCountryCodeIOS, subscriptionGroupIdIOS, transactionDate, transactionId, transactionReasonIOS, webOrderLineItemIdIOS)
130
133
  }
131
134
  }
132
135
  }
@@ -22,10 +22,10 @@ namespace margelo::nitro::iap { struct ExternalPurchaseNoticeResultIOS; }
22
22
  namespace margelo::nitro::iap { class HybridRnIapSpec; }
23
23
  // Forward declaration of `IapPlatform` to properly resolve imports.
24
24
  namespace margelo::nitro::iap { enum class IapPlatform; }
25
+ // Forward declaration of `IapStore` to properly resolve imports.
26
+ namespace margelo::nitro::iap { enum class IapStore; }
25
27
  // Forward declaration of `IapkitPurchaseState` to properly resolve imports.
26
28
  namespace margelo::nitro::iap { enum class IapkitPurchaseState; }
27
- // Forward declaration of `IapkitStore` to properly resolve imports.
28
- namespace margelo::nitro::iap { enum class IapkitStore; }
29
29
  // Forward declaration of `InitConnectionConfig` to properly resolve imports.
30
30
  namespace margelo::nitro::iap { struct InitConnectionConfig; }
31
31
  // Forward declaration of `NitroActiveSubscription` to properly resolve imports.
@@ -38,12 +38,20 @@ namespace margelo::nitro::iap { enum class NitroAvailablePurchasesAndroidType; }
38
38
  namespace margelo::nitro::iap { struct NitroAvailablePurchasesIosOptions; }
39
39
  // Forward declaration of `NitroAvailablePurchasesOptions` to properly resolve imports.
40
40
  namespace margelo::nitro::iap { struct NitroAvailablePurchasesOptions; }
41
+ // Forward declaration of `NitroDiscountAmountAndroid` to properly resolve imports.
42
+ namespace margelo::nitro::iap { struct NitroDiscountAmountAndroid; }
43
+ // Forward declaration of `NitroDiscountDisplayInfoAndroid` to properly resolve imports.
44
+ namespace margelo::nitro::iap { struct NitroDiscountDisplayInfoAndroid; }
41
45
  // Forward declaration of `NitroFinishTransactionAndroidParams` to properly resolve imports.
42
46
  namespace margelo::nitro::iap { struct NitroFinishTransactionAndroidParams; }
43
47
  // Forward declaration of `NitroFinishTransactionIosParams` to properly resolve imports.
44
48
  namespace margelo::nitro::iap { struct NitroFinishTransactionIosParams; }
49
+ // Forward declaration of `NitroLimitedQuantityInfoAndroid` to properly resolve imports.
50
+ namespace margelo::nitro::iap { struct NitroLimitedQuantityInfoAndroid; }
45
51
  // Forward declaration of `NitroOneTimePurchaseOfferDetail` to properly resolve imports.
46
52
  namespace margelo::nitro::iap { struct NitroOneTimePurchaseOfferDetail; }
53
+ // Forward declaration of `NitroPreorderDetailsAndroid` to properly resolve imports.
54
+ namespace margelo::nitro::iap { struct NitroPreorderDetailsAndroid; }
47
55
  // Forward declaration of `NitroProduct` to properly resolve imports.
48
56
  namespace margelo::nitro::iap { struct NitroProduct; }
49
57
  // Forward declaration of `NitroPurchaseResult` to properly resolve imports.
@@ -58,6 +66,8 @@ namespace margelo::nitro::iap { struct NitroReceiptValidationResultAndroid; }
58
66
  namespace margelo::nitro::iap { struct NitroReceiptValidationResultIOS; }
59
67
  // Forward declaration of `NitroRenewalInfoIOS` to properly resolve imports.
60
68
  namespace margelo::nitro::iap { struct NitroRenewalInfoIOS; }
69
+ // Forward declaration of `NitroRentalDetailsAndroid` to properly resolve imports.
70
+ namespace margelo::nitro::iap { struct NitroRentalDetailsAndroid; }
61
71
  // Forward declaration of `NitroRequestPurchaseAndroid` to properly resolve imports.
62
72
  namespace margelo::nitro::iap { struct NitroRequestPurchaseAndroid; }
63
73
  // Forward declaration of `NitroRequestPurchaseIos` to properly resolve imports.
@@ -66,6 +76,8 @@ namespace margelo::nitro::iap { struct NitroRequestPurchaseIos; }
66
76
  namespace margelo::nitro::iap { struct NitroSubscriptionRenewalInfo; }
67
77
  // Forward declaration of `NitroSubscriptionStatus` to properly resolve imports.
68
78
  namespace margelo::nitro::iap { struct NitroSubscriptionStatus; }
79
+ // Forward declaration of `NitroValidTimeWindowAndroid` to properly resolve imports.
80
+ namespace margelo::nitro::iap { struct NitroValidTimeWindowAndroid; }
69
81
  // Forward declaration of `NitroVerifyPurchaseWithIapkitAppleProps` to properly resolve imports.
70
82
  namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithIapkitAppleProps; }
71
83
  // Forward declaration of `NitroVerifyPurchaseWithIapkitGoogleProps` to properly resolve imports.
@@ -74,6 +86,8 @@ namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithIapkitGoogleProps;
74
86
  namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithIapkitProps; }
75
87
  // Forward declaration of `NitroVerifyPurchaseWithIapkitResult` to properly resolve imports.
76
88
  namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithIapkitResult; }
89
+ // Forward declaration of `NitroVerifyPurchaseWithProviderError` to properly resolve imports.
90
+ namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithProviderError; }
77
91
  // Forward declaration of `NitroVerifyPurchaseWithProviderResult` to properly resolve imports.
78
92
  namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithProviderResult; }
79
93
  // Forward declaration of `PaymentModeIOS` to properly resolve imports.
@@ -105,17 +119,21 @@ namespace NitroIap { class HybridRnIapSpec_cxx; }
105
119
  #include "ExternalPurchaseNoticeResultIOS.hpp"
106
120
  #include "HybridRnIapSpec.hpp"
107
121
  #include "IapPlatform.hpp"
122
+ #include "IapStore.hpp"
108
123
  #include "IapkitPurchaseState.hpp"
109
- #include "IapkitStore.hpp"
110
124
  #include "InitConnectionConfig.hpp"
111
125
  #include "NitroActiveSubscription.hpp"
112
126
  #include "NitroAvailablePurchasesAndroidOptions.hpp"
113
127
  #include "NitroAvailablePurchasesAndroidType.hpp"
114
128
  #include "NitroAvailablePurchasesIosOptions.hpp"
115
129
  #include "NitroAvailablePurchasesOptions.hpp"
130
+ #include "NitroDiscountAmountAndroid.hpp"
131
+ #include "NitroDiscountDisplayInfoAndroid.hpp"
116
132
  #include "NitroFinishTransactionAndroidParams.hpp"
117
133
  #include "NitroFinishTransactionIosParams.hpp"
134
+ #include "NitroLimitedQuantityInfoAndroid.hpp"
118
135
  #include "NitroOneTimePurchaseOfferDetail.hpp"
136
+ #include "NitroPreorderDetailsAndroid.hpp"
119
137
  #include "NitroProduct.hpp"
120
138
  #include "NitroPurchase.hpp"
121
139
  #include "NitroPurchaseResult.hpp"
@@ -123,14 +141,17 @@ namespace NitroIap { class HybridRnIapSpec_cxx; }
123
141
  #include "NitroReceiptValidationResultAndroid.hpp"
124
142
  #include "NitroReceiptValidationResultIOS.hpp"
125
143
  #include "NitroRenewalInfoIOS.hpp"
144
+ #include "NitroRentalDetailsAndroid.hpp"
126
145
  #include "NitroRequestPurchaseAndroid.hpp"
127
146
  #include "NitroRequestPurchaseIos.hpp"
128
147
  #include "NitroSubscriptionRenewalInfo.hpp"
129
148
  #include "NitroSubscriptionStatus.hpp"
149
+ #include "NitroValidTimeWindowAndroid.hpp"
130
150
  #include "NitroVerifyPurchaseWithIapkitAppleProps.hpp"
131
151
  #include "NitroVerifyPurchaseWithIapkitGoogleProps.hpp"
132
152
  #include "NitroVerifyPurchaseWithIapkitProps.hpp"
133
153
  #include "NitroVerifyPurchaseWithIapkitResult.hpp"
154
+ #include "NitroVerifyPurchaseWithProviderError.hpp"
134
155
  #include "NitroVerifyPurchaseWithProviderResult.hpp"
135
156
  #include "PaymentModeIOS.hpp"
136
157
  #include "PurchaseAndroid.hpp"
@@ -290,18 +311,130 @@ namespace margelo::nitro::iap::bridge::swift {
290
311
  return *optional;
291
312
  }
292
313
 
293
- // pragma MARK: std::optional<NitroOneTimePurchaseOfferDetail>
314
+ // pragma MARK: std::optional<NitroDiscountAmountAndroid>
294
315
  /**
295
- * Specialized version of `std::optional<NitroOneTimePurchaseOfferDetail>`.
316
+ * Specialized version of `std::optional<NitroDiscountAmountAndroid>`.
296
317
  */
297
- using std__optional_NitroOneTimePurchaseOfferDetail_ = std::optional<NitroOneTimePurchaseOfferDetail>;
298
- inline std::optional<NitroOneTimePurchaseOfferDetail> create_std__optional_NitroOneTimePurchaseOfferDetail_(const NitroOneTimePurchaseOfferDetail& value) noexcept {
299
- return std::optional<NitroOneTimePurchaseOfferDetail>(value);
318
+ using std__optional_NitroDiscountAmountAndroid_ = std::optional<NitroDiscountAmountAndroid>;
319
+ inline std::optional<NitroDiscountAmountAndroid> create_std__optional_NitroDiscountAmountAndroid_(const NitroDiscountAmountAndroid& value) noexcept {
320
+ return std::optional<NitroDiscountAmountAndroid>(value);
300
321
  }
301
- inline bool has_value_std__optional_NitroOneTimePurchaseOfferDetail_(const std::optional<NitroOneTimePurchaseOfferDetail>& optional) noexcept {
322
+ inline bool has_value_std__optional_NitroDiscountAmountAndroid_(const std::optional<NitroDiscountAmountAndroid>& optional) noexcept {
302
323
  return optional.has_value();
303
324
  }
304
- inline NitroOneTimePurchaseOfferDetail get_std__optional_NitroOneTimePurchaseOfferDetail_(const std::optional<NitroOneTimePurchaseOfferDetail>& optional) noexcept {
325
+ inline NitroDiscountAmountAndroid get_std__optional_NitroDiscountAmountAndroid_(const std::optional<NitroDiscountAmountAndroid>& optional) noexcept {
326
+ return *optional;
327
+ }
328
+
329
+ // pragma MARK: std::optional<NitroDiscountDisplayInfoAndroid>
330
+ /**
331
+ * Specialized version of `std::optional<NitroDiscountDisplayInfoAndroid>`.
332
+ */
333
+ using std__optional_NitroDiscountDisplayInfoAndroid_ = std::optional<NitroDiscountDisplayInfoAndroid>;
334
+ inline std::optional<NitroDiscountDisplayInfoAndroid> create_std__optional_NitroDiscountDisplayInfoAndroid_(const NitroDiscountDisplayInfoAndroid& value) noexcept {
335
+ return std::optional<NitroDiscountDisplayInfoAndroid>(value);
336
+ }
337
+ inline bool has_value_std__optional_NitroDiscountDisplayInfoAndroid_(const std::optional<NitroDiscountDisplayInfoAndroid>& optional) noexcept {
338
+ return optional.has_value();
339
+ }
340
+ inline NitroDiscountDisplayInfoAndroid get_std__optional_NitroDiscountDisplayInfoAndroid_(const std::optional<NitroDiscountDisplayInfoAndroid>& optional) noexcept {
341
+ return *optional;
342
+ }
343
+
344
+ // pragma MARK: std::optional<NitroLimitedQuantityInfoAndroid>
345
+ /**
346
+ * Specialized version of `std::optional<NitroLimitedQuantityInfoAndroid>`.
347
+ */
348
+ using std__optional_NitroLimitedQuantityInfoAndroid_ = std::optional<NitroLimitedQuantityInfoAndroid>;
349
+ inline std::optional<NitroLimitedQuantityInfoAndroid> create_std__optional_NitroLimitedQuantityInfoAndroid_(const NitroLimitedQuantityInfoAndroid& value) noexcept {
350
+ return std::optional<NitroLimitedQuantityInfoAndroid>(value);
351
+ }
352
+ inline bool has_value_std__optional_NitroLimitedQuantityInfoAndroid_(const std::optional<NitroLimitedQuantityInfoAndroid>& optional) noexcept {
353
+ return optional.has_value();
354
+ }
355
+ inline NitroLimitedQuantityInfoAndroid get_std__optional_NitroLimitedQuantityInfoAndroid_(const std::optional<NitroLimitedQuantityInfoAndroid>& optional) noexcept {
356
+ return *optional;
357
+ }
358
+
359
+ // pragma MARK: std::vector<std::string>
360
+ /**
361
+ * Specialized version of `std::vector<std::string>`.
362
+ */
363
+ using std__vector_std__string_ = std::vector<std::string>;
364
+ inline std::vector<std::string> create_std__vector_std__string_(size_t size) noexcept {
365
+ std::vector<std::string> vector;
366
+ vector.reserve(size);
367
+ return vector;
368
+ }
369
+
370
+ // pragma MARK: std::optional<NitroPreorderDetailsAndroid>
371
+ /**
372
+ * Specialized version of `std::optional<NitroPreorderDetailsAndroid>`.
373
+ */
374
+ using std__optional_NitroPreorderDetailsAndroid_ = std::optional<NitroPreorderDetailsAndroid>;
375
+ inline std::optional<NitroPreorderDetailsAndroid> create_std__optional_NitroPreorderDetailsAndroid_(const NitroPreorderDetailsAndroid& value) noexcept {
376
+ return std::optional<NitroPreorderDetailsAndroid>(value);
377
+ }
378
+ inline bool has_value_std__optional_NitroPreorderDetailsAndroid_(const std::optional<NitroPreorderDetailsAndroid>& optional) noexcept {
379
+ return optional.has_value();
380
+ }
381
+ inline NitroPreorderDetailsAndroid get_std__optional_NitroPreorderDetailsAndroid_(const std::optional<NitroPreorderDetailsAndroid>& optional) noexcept {
382
+ return *optional;
383
+ }
384
+
385
+ // pragma MARK: std::optional<NitroRentalDetailsAndroid>
386
+ /**
387
+ * Specialized version of `std::optional<NitroRentalDetailsAndroid>`.
388
+ */
389
+ using std__optional_NitroRentalDetailsAndroid_ = std::optional<NitroRentalDetailsAndroid>;
390
+ inline std::optional<NitroRentalDetailsAndroid> create_std__optional_NitroRentalDetailsAndroid_(const NitroRentalDetailsAndroid& value) noexcept {
391
+ return std::optional<NitroRentalDetailsAndroid>(value);
392
+ }
393
+ inline bool has_value_std__optional_NitroRentalDetailsAndroid_(const std::optional<NitroRentalDetailsAndroid>& optional) noexcept {
394
+ return optional.has_value();
395
+ }
396
+ inline NitroRentalDetailsAndroid get_std__optional_NitroRentalDetailsAndroid_(const std::optional<NitroRentalDetailsAndroid>& optional) noexcept {
397
+ return *optional;
398
+ }
399
+
400
+ // pragma MARK: std::optional<NitroValidTimeWindowAndroid>
401
+ /**
402
+ * Specialized version of `std::optional<NitroValidTimeWindowAndroid>`.
403
+ */
404
+ using std__optional_NitroValidTimeWindowAndroid_ = std::optional<NitroValidTimeWindowAndroid>;
405
+ inline std::optional<NitroValidTimeWindowAndroid> create_std__optional_NitroValidTimeWindowAndroid_(const NitroValidTimeWindowAndroid& value) noexcept {
406
+ return std::optional<NitroValidTimeWindowAndroid>(value);
407
+ }
408
+ inline bool has_value_std__optional_NitroValidTimeWindowAndroid_(const std::optional<NitroValidTimeWindowAndroid>& optional) noexcept {
409
+ return optional.has_value();
410
+ }
411
+ inline NitroValidTimeWindowAndroid get_std__optional_NitroValidTimeWindowAndroid_(const std::optional<NitroValidTimeWindowAndroid>& optional) noexcept {
412
+ return *optional;
413
+ }
414
+
415
+ // pragma MARK: std::vector<NitroOneTimePurchaseOfferDetail>
416
+ /**
417
+ * Specialized version of `std::vector<NitroOneTimePurchaseOfferDetail>`.
418
+ */
419
+ using std__vector_NitroOneTimePurchaseOfferDetail_ = std::vector<NitroOneTimePurchaseOfferDetail>;
420
+ inline std::vector<NitroOneTimePurchaseOfferDetail> create_std__vector_NitroOneTimePurchaseOfferDetail_(size_t size) noexcept {
421
+ std::vector<NitroOneTimePurchaseOfferDetail> vector;
422
+ vector.reserve(size);
423
+ return vector;
424
+ }
425
+
426
+ // pragma MARK: std::optional<std::vector<NitroOneTimePurchaseOfferDetail>>
427
+ /**
428
+ * Specialized version of `std::optional<std::vector<NitroOneTimePurchaseOfferDetail>>`.
429
+ */
430
+ using std__optional_std__vector_NitroOneTimePurchaseOfferDetail__ = std::optional<std::vector<NitroOneTimePurchaseOfferDetail>>;
431
+ inline std::optional<std::vector<NitroOneTimePurchaseOfferDetail>> create_std__optional_std__vector_NitroOneTimePurchaseOfferDetail__(const std::vector<NitroOneTimePurchaseOfferDetail>& value) noexcept {
432
+ return std::optional<std::vector<NitroOneTimePurchaseOfferDetail>>(value);
433
+ }
434
+ inline bool has_value_std__optional_std__vector_NitroOneTimePurchaseOfferDetail__(const std::optional<std::vector<NitroOneTimePurchaseOfferDetail>>& optional) noexcept {
435
+ return optional.has_value();
436
+ }
437
+ inline std::vector<NitroOneTimePurchaseOfferDetail> get_std__optional_std__vector_NitroOneTimePurchaseOfferDetail__(const std::optional<std::vector<NitroOneTimePurchaseOfferDetail>>& optional) noexcept {
305
438
  return *optional;
306
439
  }
307
440
 
@@ -350,17 +483,6 @@ namespace margelo::nitro::iap::bridge::swift {
350
483
  return Func_void_std__vector_NitroProduct__Wrapper(std::move(value));
351
484
  }
352
485
 
353
- // pragma MARK: std::vector<std::string>
354
- /**
355
- * Specialized version of `std::vector<std::string>`.
356
- */
357
- using std__vector_std__string_ = std::vector<std::string>;
358
- inline std::vector<std::string> create_std__vector_std__string_(size_t size) noexcept {
359
- std::vector<std::string> vector;
360
- vector.reserve(size);
361
- return vector;
362
- }
363
-
364
486
  // pragma MARK: std::optional<std::vector<std::string>>
365
487
  /**
366
488
  * Specialized version of `std::optional<std::vector<std::string>>`.
@@ -1303,17 +1425,47 @@ namespace margelo::nitro::iap::bridge::swift {
1303
1425
  return *optional;
1304
1426
  }
1305
1427
 
1306
- // pragma MARK: std::vector<NitroVerifyPurchaseWithIapkitResult>
1428
+ // pragma MARK: std::optional<NitroVerifyPurchaseWithIapkitResult>
1307
1429
  /**
1308
- * Specialized version of `std::vector<NitroVerifyPurchaseWithIapkitResult>`.
1430
+ * Specialized version of `std::optional<NitroVerifyPurchaseWithIapkitResult>`.
1309
1431
  */
1310
- using std__vector_NitroVerifyPurchaseWithIapkitResult_ = std::vector<NitroVerifyPurchaseWithIapkitResult>;
1311
- inline std::vector<NitroVerifyPurchaseWithIapkitResult> create_std__vector_NitroVerifyPurchaseWithIapkitResult_(size_t size) noexcept {
1312
- std::vector<NitroVerifyPurchaseWithIapkitResult> vector;
1432
+ using std__optional_NitroVerifyPurchaseWithIapkitResult_ = std::optional<NitroVerifyPurchaseWithIapkitResult>;
1433
+ inline std::optional<NitroVerifyPurchaseWithIapkitResult> create_std__optional_NitroVerifyPurchaseWithIapkitResult_(const NitroVerifyPurchaseWithIapkitResult& value) noexcept {
1434
+ return std::optional<NitroVerifyPurchaseWithIapkitResult>(value);
1435
+ }
1436
+ inline bool has_value_std__optional_NitroVerifyPurchaseWithIapkitResult_(const std::optional<NitroVerifyPurchaseWithIapkitResult>& optional) noexcept {
1437
+ return optional.has_value();
1438
+ }
1439
+ inline NitroVerifyPurchaseWithIapkitResult get_std__optional_NitroVerifyPurchaseWithIapkitResult_(const std::optional<NitroVerifyPurchaseWithIapkitResult>& optional) noexcept {
1440
+ return *optional;
1441
+ }
1442
+
1443
+ // pragma MARK: std::vector<NitroVerifyPurchaseWithProviderError>
1444
+ /**
1445
+ * Specialized version of `std::vector<NitroVerifyPurchaseWithProviderError>`.
1446
+ */
1447
+ using std__vector_NitroVerifyPurchaseWithProviderError_ = std::vector<NitroVerifyPurchaseWithProviderError>;
1448
+ inline std::vector<NitroVerifyPurchaseWithProviderError> create_std__vector_NitroVerifyPurchaseWithProviderError_(size_t size) noexcept {
1449
+ std::vector<NitroVerifyPurchaseWithProviderError> vector;
1313
1450
  vector.reserve(size);
1314
1451
  return vector;
1315
1452
  }
1316
1453
 
1454
+ // pragma MARK: std::optional<std::vector<NitroVerifyPurchaseWithProviderError>>
1455
+ /**
1456
+ * Specialized version of `std::optional<std::vector<NitroVerifyPurchaseWithProviderError>>`.
1457
+ */
1458
+ using std__optional_std__vector_NitroVerifyPurchaseWithProviderError__ = std::optional<std::vector<NitroVerifyPurchaseWithProviderError>>;
1459
+ inline std::optional<std::vector<NitroVerifyPurchaseWithProviderError>> create_std__optional_std__vector_NitroVerifyPurchaseWithProviderError__(const std::vector<NitroVerifyPurchaseWithProviderError>& value) noexcept {
1460
+ return std::optional<std::vector<NitroVerifyPurchaseWithProviderError>>(value);
1461
+ }
1462
+ inline bool has_value_std__optional_std__vector_NitroVerifyPurchaseWithProviderError__(const std::optional<std::vector<NitroVerifyPurchaseWithProviderError>>& optional) noexcept {
1463
+ return optional.has_value();
1464
+ }
1465
+ inline std::vector<NitroVerifyPurchaseWithProviderError> get_std__optional_std__vector_NitroVerifyPurchaseWithProviderError__(const std::optional<std::vector<NitroVerifyPurchaseWithProviderError>>& optional) noexcept {
1466
+ return *optional;
1467
+ }
1468
+
1317
1469
  // pragma MARK: std::shared_ptr<Promise<NitroVerifyPurchaseWithProviderResult>>
1318
1470
  /**
1319
1471
  * Specialized version of `std::shared_ptr<Promise<NitroVerifyPurchaseWithProviderResult>>`.
@@ -22,10 +22,10 @@ namespace margelo::nitro::iap { struct ExternalPurchaseNoticeResultIOS; }
22
22
  namespace margelo::nitro::iap { class HybridRnIapSpec; }
23
23
  // Forward declaration of `IapPlatform` to properly resolve imports.
24
24
  namespace margelo::nitro::iap { enum class IapPlatform; }
25
+ // Forward declaration of `IapStore` to properly resolve imports.
26
+ namespace margelo::nitro::iap { enum class IapStore; }
25
27
  // Forward declaration of `IapkitPurchaseState` to properly resolve imports.
26
28
  namespace margelo::nitro::iap { enum class IapkitPurchaseState; }
27
- // Forward declaration of `IapkitStore` to properly resolve imports.
28
- namespace margelo::nitro::iap { enum class IapkitStore; }
29
29
  // Forward declaration of `InitConnectionConfig` to properly resolve imports.
30
30
  namespace margelo::nitro::iap { struct InitConnectionConfig; }
31
31
  // Forward declaration of `NitroActiveSubscription` to properly resolve imports.
@@ -40,14 +40,22 @@ namespace margelo::nitro::iap { struct NitroAvailablePurchasesIosOptions; }
40
40
  namespace margelo::nitro::iap { struct NitroAvailablePurchasesOptions; }
41
41
  // Forward declaration of `NitroDeepLinkOptionsAndroid` to properly resolve imports.
42
42
  namespace margelo::nitro::iap { struct NitroDeepLinkOptionsAndroid; }
43
+ // Forward declaration of `NitroDiscountAmountAndroid` to properly resolve imports.
44
+ namespace margelo::nitro::iap { struct NitroDiscountAmountAndroid; }
45
+ // Forward declaration of `NitroDiscountDisplayInfoAndroid` to properly resolve imports.
46
+ namespace margelo::nitro::iap { struct NitroDiscountDisplayInfoAndroid; }
43
47
  // Forward declaration of `NitroFinishTransactionAndroidParams` to properly resolve imports.
44
48
  namespace margelo::nitro::iap { struct NitroFinishTransactionAndroidParams; }
45
49
  // Forward declaration of `NitroFinishTransactionIosParams` to properly resolve imports.
46
50
  namespace margelo::nitro::iap { struct NitroFinishTransactionIosParams; }
47
51
  // Forward declaration of `NitroFinishTransactionParams` to properly resolve imports.
48
52
  namespace margelo::nitro::iap { struct NitroFinishTransactionParams; }
53
+ // Forward declaration of `NitroLimitedQuantityInfoAndroid` to properly resolve imports.
54
+ namespace margelo::nitro::iap { struct NitroLimitedQuantityInfoAndroid; }
49
55
  // Forward declaration of `NitroOneTimePurchaseOfferDetail` to properly resolve imports.
50
56
  namespace margelo::nitro::iap { struct NitroOneTimePurchaseOfferDetail; }
57
+ // Forward declaration of `NitroPreorderDetailsAndroid` to properly resolve imports.
58
+ namespace margelo::nitro::iap { struct NitroPreorderDetailsAndroid; }
51
59
  // Forward declaration of `NitroProduct` to properly resolve imports.
52
60
  namespace margelo::nitro::iap { struct NitroProduct; }
53
61
  // Forward declaration of `NitroPurchaseRequest` to properly resolve imports.
@@ -66,6 +74,8 @@ namespace margelo::nitro::iap { struct NitroReceiptValidationResultAndroid; }
66
74
  namespace margelo::nitro::iap { struct NitroReceiptValidationResultIOS; }
67
75
  // Forward declaration of `NitroRenewalInfoIOS` to properly resolve imports.
68
76
  namespace margelo::nitro::iap { struct NitroRenewalInfoIOS; }
77
+ // Forward declaration of `NitroRentalDetailsAndroid` to properly resolve imports.
78
+ namespace margelo::nitro::iap { struct NitroRentalDetailsAndroid; }
69
79
  // Forward declaration of `NitroRequestPurchaseAndroid` to properly resolve imports.
70
80
  namespace margelo::nitro::iap { struct NitroRequestPurchaseAndroid; }
71
81
  // Forward declaration of `NitroRequestPurchaseIos` to properly resolve imports.
@@ -74,6 +84,8 @@ namespace margelo::nitro::iap { struct NitroRequestPurchaseIos; }
74
84
  namespace margelo::nitro::iap { struct NitroSubscriptionRenewalInfo; }
75
85
  // Forward declaration of `NitroSubscriptionStatus` to properly resolve imports.
76
86
  namespace margelo::nitro::iap { struct NitroSubscriptionStatus; }
87
+ // Forward declaration of `NitroValidTimeWindowAndroid` to properly resolve imports.
88
+ namespace margelo::nitro::iap { struct NitroValidTimeWindowAndroid; }
77
89
  // Forward declaration of `NitroVerifyPurchaseWithIapkitAppleProps` to properly resolve imports.
78
90
  namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithIapkitAppleProps; }
79
91
  // Forward declaration of `NitroVerifyPurchaseWithIapkitGoogleProps` to properly resolve imports.
@@ -82,6 +94,8 @@ namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithIapkitGoogleProps;
82
94
  namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithIapkitProps; }
83
95
  // Forward declaration of `NitroVerifyPurchaseWithIapkitResult` to properly resolve imports.
84
96
  namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithIapkitResult; }
97
+ // Forward declaration of `NitroVerifyPurchaseWithProviderError` to properly resolve imports.
98
+ namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithProviderError; }
85
99
  // Forward declaration of `NitroVerifyPurchaseWithProviderProps` to properly resolve imports.
86
100
  namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithProviderProps; }
87
101
  // Forward declaration of `NitroVerifyPurchaseWithProviderResult` to properly resolve imports.
@@ -111,8 +125,8 @@ namespace margelo::nitro::iap { struct UserChoiceBillingDetails; }
111
125
  #include "ExternalPurchaseNoticeResultIOS.hpp"
112
126
  #include "HybridRnIapSpec.hpp"
113
127
  #include "IapPlatform.hpp"
128
+ #include "IapStore.hpp"
114
129
  #include "IapkitPurchaseState.hpp"
115
- #include "IapkitStore.hpp"
116
130
  #include "InitConnectionConfig.hpp"
117
131
  #include "NitroActiveSubscription.hpp"
118
132
  #include "NitroAvailablePurchasesAndroidOptions.hpp"
@@ -120,10 +134,14 @@ namespace margelo::nitro::iap { struct UserChoiceBillingDetails; }
120
134
  #include "NitroAvailablePurchasesIosOptions.hpp"
121
135
  #include "NitroAvailablePurchasesOptions.hpp"
122
136
  #include "NitroDeepLinkOptionsAndroid.hpp"
137
+ #include "NitroDiscountAmountAndroid.hpp"
138
+ #include "NitroDiscountDisplayInfoAndroid.hpp"
123
139
  #include "NitroFinishTransactionAndroidParams.hpp"
124
140
  #include "NitroFinishTransactionIosParams.hpp"
125
141
  #include "NitroFinishTransactionParams.hpp"
142
+ #include "NitroLimitedQuantityInfoAndroid.hpp"
126
143
  #include "NitroOneTimePurchaseOfferDetail.hpp"
144
+ #include "NitroPreorderDetailsAndroid.hpp"
127
145
  #include "NitroProduct.hpp"
128
146
  #include "NitroPurchase.hpp"
129
147
  #include "NitroPurchaseRequest.hpp"
@@ -133,14 +151,17 @@ namespace margelo::nitro::iap { struct UserChoiceBillingDetails; }
133
151
  #include "NitroReceiptValidationResultAndroid.hpp"
134
152
  #include "NitroReceiptValidationResultIOS.hpp"
135
153
  #include "NitroRenewalInfoIOS.hpp"
154
+ #include "NitroRentalDetailsAndroid.hpp"
136
155
  #include "NitroRequestPurchaseAndroid.hpp"
137
156
  #include "NitroRequestPurchaseIos.hpp"
138
157
  #include "NitroSubscriptionRenewalInfo.hpp"
139
158
  #include "NitroSubscriptionStatus.hpp"
159
+ #include "NitroValidTimeWindowAndroid.hpp"
140
160
  #include "NitroVerifyPurchaseWithIapkitAppleProps.hpp"
141
161
  #include "NitroVerifyPurchaseWithIapkitGoogleProps.hpp"
142
162
  #include "NitroVerifyPurchaseWithIapkitProps.hpp"
143
163
  #include "NitroVerifyPurchaseWithIapkitResult.hpp"
164
+ #include "NitroVerifyPurchaseWithProviderError.hpp"
144
165
  #include "NitroVerifyPurchaseWithProviderProps.hpp"
145
166
  #include "NitroVerifyPurchaseWithProviderResult.hpp"
146
167
  #include "PaymentModeIOS.hpp"
@@ -24,12 +24,26 @@ namespace margelo::nitro::iap { enum class IapPlatform; }
24
24
  namespace margelo::nitro::iap { enum class PaymentModeIOS; }
25
25
  // Forward declaration of `NitroOneTimePurchaseOfferDetail` to properly resolve imports.
26
26
  namespace margelo::nitro::iap { struct NitroOneTimePurchaseOfferDetail; }
27
+ // Forward declaration of `NitroDiscountDisplayInfoAndroid` to properly resolve imports.
28
+ namespace margelo::nitro::iap { struct NitroDiscountDisplayInfoAndroid; }
29
+ // Forward declaration of `NitroDiscountAmountAndroid` to properly resolve imports.
30
+ namespace margelo::nitro::iap { struct NitroDiscountAmountAndroid; }
31
+ // Forward declaration of `NitroLimitedQuantityInfoAndroid` to properly resolve imports.
32
+ namespace margelo::nitro::iap { struct NitroLimitedQuantityInfoAndroid; }
33
+ // Forward declaration of `NitroPreorderDetailsAndroid` to properly resolve imports.
34
+ namespace margelo::nitro::iap { struct NitroPreorderDetailsAndroid; }
35
+ // Forward declaration of `NitroRentalDetailsAndroid` to properly resolve imports.
36
+ namespace margelo::nitro::iap { struct NitroRentalDetailsAndroid; }
37
+ // Forward declaration of `NitroValidTimeWindowAndroid` to properly resolve imports.
38
+ namespace margelo::nitro::iap { struct NitroValidTimeWindowAndroid; }
27
39
  // Forward declaration of `PurchaseAndroid` to properly resolve imports.
28
40
  namespace margelo::nitro::iap { struct PurchaseAndroid; }
29
41
  // Forward declaration of `PurchaseIOS` to properly resolve imports.
30
42
  namespace margelo::nitro::iap { struct PurchaseIOS; }
31
43
  // Forward declaration of `PurchaseState` to properly resolve imports.
32
44
  namespace margelo::nitro::iap { enum class PurchaseState; }
45
+ // Forward declaration of `IapStore` to properly resolve imports.
46
+ namespace margelo::nitro::iap { enum class IapStore; }
33
47
  // Forward declaration of `PurchaseOfferIOS` to properly resolve imports.
34
48
  namespace margelo::nitro::iap { struct PurchaseOfferIOS; }
35
49
  // Forward declaration of `RenewalInfoIOS` to properly resolve imports.
@@ -82,8 +96,8 @@ namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithProviderResult; }
82
96
  namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithIapkitResult; }
83
97
  // Forward declaration of `IapkitPurchaseState` to properly resolve imports.
84
98
  namespace margelo::nitro::iap { enum class IapkitPurchaseState; }
85
- // Forward declaration of `IapkitStore` to properly resolve imports.
86
- namespace margelo::nitro::iap { enum class IapkitStore; }
99
+ // Forward declaration of `NitroVerifyPurchaseWithProviderError` to properly resolve imports.
100
+ namespace margelo::nitro::iap { struct NitroVerifyPurchaseWithProviderError; }
87
101
  // Forward declaration of `PurchaseVerificationProvider` to properly resolve imports.
88
102
  namespace margelo::nitro::iap { enum class PurchaseVerificationProvider; }
89
103
  // Forward declaration of `NitroVerifyPurchaseWithProviderProps` to properly resolve imports.
@@ -115,10 +129,17 @@ namespace margelo::nitro::iap { struct ExternalPurchaseLinkResultIOS; }
115
129
  #include "IapPlatform.hpp"
116
130
  #include "PaymentModeIOS.hpp"
117
131
  #include "NitroOneTimePurchaseOfferDetail.hpp"
132
+ #include "NitroDiscountDisplayInfoAndroid.hpp"
133
+ #include "NitroDiscountAmountAndroid.hpp"
134
+ #include "NitroLimitedQuantityInfoAndroid.hpp"
135
+ #include "NitroPreorderDetailsAndroid.hpp"
136
+ #include "NitroRentalDetailsAndroid.hpp"
137
+ #include "NitroValidTimeWindowAndroid.hpp"
118
138
  #include "PurchaseAndroid.hpp"
119
139
  #include "PurchaseIOS.hpp"
120
140
  #include <variant>
121
141
  #include "PurchaseState.hpp"
142
+ #include "IapStore.hpp"
122
143
  #include "PurchaseOfferIOS.hpp"
123
144
  #include "RenewalInfoIOS.hpp"
124
145
  #include "NitroPurchaseRequest.hpp"
@@ -147,7 +168,7 @@ namespace margelo::nitro::iap { struct ExternalPurchaseLinkResultIOS; }
147
168
  #include "NitroVerifyPurchaseWithProviderResult.hpp"
148
169
  #include "NitroVerifyPurchaseWithIapkitResult.hpp"
149
170
  #include "IapkitPurchaseState.hpp"
150
- #include "IapkitStore.hpp"
171
+ #include "NitroVerifyPurchaseWithProviderError.hpp"
151
172
  #include "PurchaseVerificationProvider.hpp"
152
173
  #include "NitroVerifyPurchaseWithProviderProps.hpp"
153
174
  #include "NitroVerifyPurchaseWithIapkitProps.hpp"
@@ -1,40 +1,48 @@
1
1
  ///
2
- /// IapkitStore.swift
2
+ /// IapStore.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  /**
9
- * Represents the JS union `IapkitStore`, backed by a C++ enum.
9
+ * Represents the JS union `IapStore`, backed by a C++ enum.
10
10
  */
11
- public typealias IapkitStore = margelo.nitro.iap.IapkitStore
11
+ public typealias IapStore = margelo.nitro.iap.IapStore
12
12
 
13
- public extension IapkitStore {
13
+ public extension IapStore {
14
14
  /**
15
- * Get a IapkitStore for the given String value, or
15
+ * Get a IapStore for the given String value, or
16
16
  * return `nil` if the given value was invalid/unknown.
17
17
  */
18
18
  init?(fromString string: String) {
19
19
  switch string {
20
+ case "unknown":
21
+ self = .unknown
20
22
  case "apple":
21
23
  self = .apple
22
24
  case "google":
23
25
  self = .google
26
+ case "horizon":
27
+ self = .horizon
24
28
  default:
25
29
  return nil
26
30
  }
27
31
  }
28
32
 
29
33
  /**
30
- * Get the String value this IapkitStore represents.
34
+ * Get the String value this IapStore represents.
31
35
  */
32
36
  var stringValue: String {
33
37
  switch self {
38
+ case .unknown:
39
+ return "unknown"
34
40
  case .apple:
35
41
  return "apple"
36
42
  case .google:
37
43
  return "google"
44
+ case .horizon:
45
+ return "horizon"
38
46
  }
39
47
  }
40
48
  }
@@ -0,0 +1,46 @@
1
+ ///
2
+ /// NitroDiscountAmountAndroid.swift
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ import NitroModules
9
+
10
+ /**
11
+ * Represents an instance of `NitroDiscountAmountAndroid`, backed by a C++ struct.
12
+ */
13
+ public typealias NitroDiscountAmountAndroid = margelo.nitro.iap.NitroDiscountAmountAndroid
14
+
15
+ public extension NitroDiscountAmountAndroid {
16
+ private typealias bridge = margelo.nitro.iap.bridge.swift
17
+
18
+ /**
19
+ * Create a new instance of `NitroDiscountAmountAndroid`.
20
+ */
21
+ init(discountAmountMicros: String, formattedDiscountAmount: String) {
22
+ self.init(std.string(discountAmountMicros), std.string(formattedDiscountAmount))
23
+ }
24
+
25
+ var discountAmountMicros: String {
26
+ @inline(__always)
27
+ get {
28
+ return String(self.__discountAmountMicros)
29
+ }
30
+ @inline(__always)
31
+ set {
32
+ self.__discountAmountMicros = std.string(newValue)
33
+ }
34
+ }
35
+
36
+ var formattedDiscountAmount: String {
37
+ @inline(__always)
38
+ get {
39
+ return String(self.__formattedDiscountAmount)
40
+ }
41
+ @inline(__always)
42
+ set {
43
+ self.__formattedDiscountAmount = std.string(newValue)
44
+ }
45
+ }
46
+ }