react-native-iap 15.4.0-rc.3 → 15.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -25
- package/android/src/main/java/com/margelo/nitro/iap/HybridRnIap.kt +250 -168
- package/android/src/main/java/com/margelo/nitro/iap/ProductSerialization.kt +98 -0
- package/ios/HybridRnIap.swift +19 -1
- package/ios/RnIapHelper.swift +30 -2
- package/lib/module/hooks/useIAP.js +19 -3
- package/lib/module/hooks/useIAP.js.map +1 -1
- package/lib/module/index.js +104 -18
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.kepler.js +3 -0
- package/lib/module/index.kepler.js.map +1 -1
- package/lib/module/types.js +67 -6
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/type-bridge.js +22 -3
- package/lib/module/utils/type-bridge.js.map +1 -1
- package/lib/module/vega-adapter.js +24 -2
- package/lib/module/vega-adapter.js.map +1 -1
- package/lib/typescript/src/hooks/useIAP.d.ts +25 -2
- package/lib/typescript/src/hooks/useIAP.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +50 -10
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/index.kepler.d.ts +3 -0
- package/lib/typescript/src/index.kepler.d.ts.map +1 -1
- package/lib/typescript/src/specs/RnIap.nitro.d.ts +79 -9
- package/lib/typescript/src/specs/RnIap.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +223 -35
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/utils/type-bridge.d.ts.map +1 -1
- package/lib/typescript/src/vega-adapter.d.ts.map +1 -1
- package/nitrogen/generated/android/NitroIap+autolinking.cmake +3 -0
- package/nitrogen/generated/android/c++/JBillingChoiceImageLayoutAndroid.hpp +61 -0
- package/nitrogen/generated/android/c++/JBillingChoiceScreenTypeAndroid.hpp +61 -0
- package/nitrogen/generated/android/c++/JBillingProgramAndroid.hpp +3 -0
- package/nitrogen/generated/android/c++/JDeveloperBillingLaunchModeAndroid.hpp +61 -0
- package/nitrogen/generated/android/c++/JDeveloperBillingOptionParamsAndroid.hpp +78 -0
- package/nitrogen/generated/android/c++/JDeveloperBillingTypeAndroid.hpp +61 -0
- package/nitrogen/generated/android/c++/JDeveloperProvidedBillingDetailsAndroid.hpp +45 -5
- package/nitrogen/generated/android/c++/JDeveloperProvidedBillingProductAndroid.hpp +72 -0
- package/nitrogen/generated/android/c++/JFunc_void_DeveloperProvidedBillingDetailsAndroid.hpp +10 -0
- package/nitrogen/generated/android/c++/JHybridRnIapSpec.cpp +118 -3
- package/nitrogen/generated/android/c++/JHybridRnIapSpec.hpp +4 -1
- package/nitrogen/generated/android/c++/JInAppMessageCategoryAndroid.hpp +58 -0
- package/nitrogen/generated/android/c++/JInAppMessageResponseCodeAndroid.hpp +58 -0
- package/nitrogen/generated/android/c++/JInitConnectionConfig.hpp +7 -1
- package/nitrogen/generated/android/c++/JNitroBillingChoiceInfoAndroid.hpp +66 -0
- package/nitrogen/generated/android/c++/JNitroBillingProgramAvailabilityResultAndroid.hpp +18 -3
- package/nitrogen/generated/android/c++/JNitroBillingProgramInformationDialogParamsAndroid.hpp +63 -0
- package/nitrogen/generated/android/c++/JNitroBillingResultAndroid.hpp +72 -0
- package/nitrogen/generated/android/c++/JNitroGetBillingChoiceInfoParamsAndroid.hpp +74 -0
- package/nitrogen/generated/android/c++/JNitroInAppMessageParamsAndroid.hpp +64 -0
- package/nitrogen/generated/android/c++/JNitroInAppMessageResultAndroid.hpp +68 -0
- package/nitrogen/generated/android/c++/JNitroLaunchExternalLinkParamsAndroid.hpp +10 -1
- package/nitrogen/generated/android/c++/JNitroOneTimePurchaseOfferDetail.hpp +5 -1
- package/nitrogen/generated/android/c++/JNitroProduct.hpp +13 -1
- package/nitrogen/generated/android/c++/JNitroPurchaseRequest.hpp +7 -0
- package/nitrogen/generated/android/c++/JNitroRequestPurchaseAndroid.hpp +16 -1
- package/nitrogen/generated/android/c++/JProductType.hpp +58 -0
- package/nitrogen/generated/android/c++/JSubResponseCodeAndroid.hpp +61 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_Array_InAppMessageCategoryAndroid_.cpp +35 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_Array_InAppMessageCategoryAndroid_.hpp +81 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_DeveloperBillingOptionParamsAndroid.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_DeveloperBillingOptionParamsAndroid.hpp +78 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_InitConnectionConfig.hpp +2 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroInAppMessageParamsAndroid.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroInAppMessageParamsAndroid.hpp +76 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_NitroRequestPurchaseAndroid.hpp +7 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/BillingChoiceImageLayoutAndroid.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/BillingChoiceScreenTypeAndroid.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/BillingProgramAndroid.kt +2 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/DeveloperBillingLaunchModeAndroid.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/DeveloperBillingOptionParamsAndroid.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/DeveloperBillingTypeAndroid.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/DeveloperProvidedBillingDetailsAndroid.kt +13 -4
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/DeveloperProvidedBillingProductAndroid.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/HybridRnIapSpec.kt +13 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/InAppMessageCategoryAndroid.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/InAppMessageResponseCodeAndroid.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/InitConnectionConfig.kt +5 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroBillingChoiceInfoAndroid.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroBillingProgramAvailabilityResultAndroid.kt +10 -4
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroBillingProgramInformationDialogParamsAndroid.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroBillingResultAndroid.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroGetBillingChoiceInfoParamsAndroid.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroInAppMessageParamsAndroid.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroInAppMessageResultAndroid.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroLaunchExternalLinkParamsAndroid.kt +6 -3
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroOneTimePurchaseOfferDetail.kt +5 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroProduct.kt +11 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroRequestPurchaseAndroid.kt +8 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/ProductType.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/SubResponseCodeAndroid.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_Array_InAppMessageCategoryAndroid_.kt +53 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_DeveloperBillingOptionParamsAndroid.kt +53 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_NitroInAppMessageParamsAndroid.kt +53 -0
- package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Bridge.cpp +24 -0
- package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Bridge.hpp +382 -0
- package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Umbrella.hpp +48 -0
- package/nitrogen/generated/ios/c++/HybridRnIapSpecSwift.hpp +74 -2
- package/nitrogen/generated/ios/swift/BillingChoiceImageLayoutAndroid.swift +44 -0
- package/nitrogen/generated/ios/swift/BillingChoiceScreenTypeAndroid.swift +44 -0
- package/nitrogen/generated/ios/swift/BillingProgramAndroid.swift +4 -0
- package/nitrogen/generated/ios/swift/DeveloperBillingLaunchModeAndroid.swift +44 -0
- package/nitrogen/generated/ios/swift/DeveloperBillingOptionParamsAndroid.swift +114 -0
- package/nitrogen/generated/ios/swift/DeveloperBillingTypeAndroid.swift +44 -0
- package/nitrogen/generated/ios/swift/DeveloperProvidedBillingDetailsAndroid.swift +121 -4
- package/nitrogen/generated/ios/swift/DeveloperProvidedBillingProductAndroid.swift +71 -0
- package/nitrogen/generated/ios/swift/Func_void_NitroBillingChoiceInfoAndroid.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_NitroBillingResultAndroid.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_NitroInAppMessageResultAndroid.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridRnIapSpec.swift +4 -1
- package/nitrogen/generated/ios/swift/HybridRnIapSpec_cxx.swift +78 -2
- package/nitrogen/generated/ios/swift/InAppMessageCategoryAndroid.swift +40 -0
- package/nitrogen/generated/ios/swift/InAppMessageResponseCodeAndroid.swift +40 -0
- package/nitrogen/generated/ios/swift/InitConnectionConfig.swift +12 -1
- package/nitrogen/generated/ios/swift/NitroBillingChoiceInfoAndroid.swift +66 -0
- package/nitrogen/generated/ios/swift/NitroBillingProgramAvailabilityResultAndroid.swift +50 -2
- package/nitrogen/generated/ios/swift/NitroBillingProgramInformationDialogParamsAndroid.swift +34 -0
- package/nitrogen/generated/ios/swift/NitroBillingResultAndroid.swift +77 -0
- package/nitrogen/generated/ios/swift/NitroGetBillingChoiceInfoParamsAndroid.swift +71 -0
- package/nitrogen/generated/ios/swift/NitroInAppMessageParamsAndroid.swift +67 -0
- package/nitrogen/generated/ios/swift/NitroInAppMessageResultAndroid.swift +66 -0
- package/nitrogen/generated/ios/swift/NitroLaunchExternalLinkParamsAndroid.swift +39 -2
- package/nitrogen/generated/ios/swift/NitroOneTimePurchaseOfferDetail.swift +39 -2
- package/nitrogen/generated/ios/swift/NitroProduct.swift +113 -2
- package/nitrogen/generated/ios/swift/NitroRequestPurchaseAndroid.swift +75 -1
- package/nitrogen/generated/ios/swift/ProductType.swift +40 -0
- package/nitrogen/generated/ios/swift/SubResponseCodeAndroid.swift +44 -0
- package/nitrogen/generated/ios/swift/Variant_NullType_DeveloperBillingOptionParamsAndroid.swift +18 -0
- package/nitrogen/generated/ios/swift/Variant_NullType_NitroInAppMessageParamsAndroid.swift +18 -0
- package/nitrogen/generated/ios/swift/Variant_NullType__InAppMessageCategoryAndroid_.swift +18 -0
- package/nitrogen/generated/shared/c++/BillingChoiceImageLayoutAndroid.hpp +80 -0
- package/nitrogen/generated/shared/c++/BillingChoiceScreenTypeAndroid.hpp +80 -0
- package/nitrogen/generated/shared/c++/BillingProgramAndroid.hpp +4 -0
- package/nitrogen/generated/shared/c++/DeveloperBillingLaunchModeAndroid.hpp +80 -0
- package/nitrogen/generated/shared/c++/DeveloperBillingOptionParamsAndroid.hpp +103 -0
- package/nitrogen/generated/shared/c++/DeveloperBillingTypeAndroid.hpp +80 -0
- package/nitrogen/generated/shared/c++/DeveloperProvidedBillingDetailsAndroid.hpp +24 -6
- package/nitrogen/generated/shared/c++/DeveloperProvidedBillingProductAndroid.hpp +96 -0
- package/nitrogen/generated/shared/c++/HybridRnIapSpec.cpp +3 -0
- package/nitrogen/generated/shared/c++/HybridRnIapSpec.hpp +25 -1
- package/nitrogen/generated/shared/c++/InAppMessageCategoryAndroid.hpp +76 -0
- package/nitrogen/generated/shared/c++/InAppMessageResponseCodeAndroid.hpp +76 -0
- package/nitrogen/generated/shared/c++/InitConnectionConfig.hpp +8 -1
- package/nitrogen/generated/shared/c++/NitroBillingChoiceInfoAndroid.hpp +90 -0
- package/nitrogen/generated/shared/c++/NitroBillingProgramAvailabilityResultAndroid.hpp +16 -2
- package/nitrogen/generated/shared/c++/NitroBillingProgramInformationDialogParamsAndroid.hpp +89 -0
- package/nitrogen/generated/shared/c++/NitroBillingResultAndroid.hpp +96 -0
- package/nitrogen/generated/shared/c++/NitroGetBillingChoiceInfoParamsAndroid.hpp +99 -0
- package/nitrogen/generated/shared/c++/NitroInAppMessageParamsAndroid.hpp +88 -0
- package/nitrogen/generated/shared/c++/NitroInAppMessageResultAndroid.hpp +92 -0
- package/nitrogen/generated/shared/c++/NitroLaunchExternalLinkParamsAndroid.hpp +9 -2
- package/nitrogen/generated/shared/c++/NitroOneTimePurchaseOfferDetail.hpp +5 -1
- package/nitrogen/generated/shared/c++/NitroProduct.hpp +13 -1
- package/nitrogen/generated/shared/c++/NitroRequestPurchaseAndroid.hpp +12 -1
- package/nitrogen/generated/shared/c++/ProductType.hpp +76 -0
- package/nitrogen/generated/shared/c++/SubResponseCodeAndroid.hpp +80 -0
- package/openiap-versions.json +3 -3
- package/package.json +1 -1
- package/src/hooks/useIAP.ts +63 -0
- package/src/index.kepler.ts +9 -0
- package/src/index.ts +223 -95
- package/src/specs/RnIap.nitro.ts +116 -8
- package/src/types.ts +238 -35
- package/src/utils/type-bridge.ts +26 -2
- package/src/vega-adapter.ts +46 -11
|
@@ -21,6 +21,7 @@ export interface ActiveSubscription {
|
|
|
21
21
|
* pending upgrades/downgrades, and auto-renewal preferences.
|
|
22
22
|
*/
|
|
23
23
|
renewalInfoIOS?: (RenewalInfoIOS | null);
|
|
24
|
+
/** Unix timestamp in milliseconds since January 1, 1970 UTC. */
|
|
24
25
|
transactionDate: number;
|
|
25
26
|
transactionId: string;
|
|
26
27
|
/**
|
|
@@ -105,10 +106,32 @@ export interface AppTransaction {
|
|
|
105
106
|
signedDate: number;
|
|
106
107
|
}
|
|
107
108
|
/**
|
|
108
|
-
* Billing
|
|
109
|
-
* Available in
|
|
109
|
+
* Play Billing choice image layout (Android)
|
|
110
|
+
* Available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0 (requires Play Billing 9.1.0+).
|
|
110
111
|
*/
|
|
111
|
-
export type
|
|
112
|
+
export type BillingChoiceImageLayoutAndroid = 'rectangular-four-by-one' | 'rectangular-three-by-one' | 'rectangular-two-by-two';
|
|
113
|
+
/**
|
|
114
|
+
* Display information for developer-rendered Billing Choice screens (Android)
|
|
115
|
+
* Available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0 (requires Play Billing 9.1.0+).
|
|
116
|
+
*/
|
|
117
|
+
export interface BillingChoiceInfoAndroid {
|
|
118
|
+
/** URL for the Play Billing choice image matching the requested layout. */
|
|
119
|
+
playBillingChoiceImageUrl: string;
|
|
120
|
+
/** Play Loyalty information for the user. */
|
|
121
|
+
playBillingLoyaltyInfo?: (string | null);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Choice screen renderer for Billing Choice availability (Android)
|
|
125
|
+
* Available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0 (requires Play Billing 9.1.0+).
|
|
126
|
+
*/
|
|
127
|
+
export type BillingChoiceScreenTypeAndroid = 'unspecified' | 'developer-rendered' | 'google-rendered';
|
|
128
|
+
/**
|
|
129
|
+
* Billing program types for Google Play Billing Programs (Android)
|
|
130
|
+
* Available in Google Play Billing Library 8.2.0+, EXTERNAL_PAYMENTS added in 8.3.0,
|
|
131
|
+
* BILLING_CHOICE added in OpenIAP Spec 2.1.0 / openiap-google 2.3.0
|
|
132
|
+
* (requires Play Billing 9.1.0+).
|
|
133
|
+
*/
|
|
134
|
+
export type BillingProgramAndroid = 'unspecified' | 'user-choice-billing' | 'external-content-link' | 'external-offer' | 'external-payments' | 'billing-choice';
|
|
112
135
|
/**
|
|
113
136
|
* Result of checking billing program availability (Android)
|
|
114
137
|
* Available in Google Play Billing Library 8.2.0+
|
|
@@ -116,8 +139,29 @@ export type BillingProgramAndroid = 'unspecified' | 'user-choice-billing' | 'ext
|
|
|
116
139
|
export interface BillingProgramAvailabilityResultAndroid {
|
|
117
140
|
/** The billing program that was checked */
|
|
118
141
|
billingProgram: BillingProgramAndroid;
|
|
142
|
+
/**
|
|
143
|
+
* Billing Choice screen renderer. Populated only for available BILLING_CHOICE results.
|
|
144
|
+
* Available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0.
|
|
145
|
+
*/
|
|
146
|
+
choiceScreenType?: (BillingChoiceScreenTypeAndroid | null);
|
|
119
147
|
/** Whether the billing program is available for the user */
|
|
120
148
|
isAvailable: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Whether external-link payment is available for Billing Choice.
|
|
151
|
+
* Populated only for available BILLING_CHOICE results.
|
|
152
|
+
* Available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0.
|
|
153
|
+
*/
|
|
154
|
+
isExternalLinkAvailable?: (boolean | null);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Parameters for showing a billing program information dialog (Android)
|
|
158
|
+
* Available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0 (requires Play Billing 9.1.0+).
|
|
159
|
+
*/
|
|
160
|
+
export interface BillingProgramInformationDialogParamsAndroid {
|
|
161
|
+
/** Billing program. Currently only BILLING_CHOICE is supported. */
|
|
162
|
+
billingProgram?: BillingProgramAndroid;
|
|
163
|
+
/** External transaction token returned by the Billing Choice reporting-details flow. */
|
|
164
|
+
externalTransactionToken: string;
|
|
121
165
|
}
|
|
122
166
|
/**
|
|
123
167
|
* Reporting details for transactions made outside of Google Play Billing (Android)
|
|
@@ -161,18 +205,36 @@ export interface DeepLinkOptions {
|
|
|
161
205
|
*/
|
|
162
206
|
export type DeveloperBillingLaunchModeAndroid = 'unspecified' | 'launch-in-external-browser-or-app' | 'caller-will-launch-link';
|
|
163
207
|
/**
|
|
164
|
-
* Parameters for developer billing option in purchase flow (Android)
|
|
165
|
-
* Used with BillingFlowParams
|
|
166
|
-
*
|
|
208
|
+
* Parameters for a developer billing option in a purchase flow (Android).
|
|
209
|
+
* Used with BillingFlowParams for external payments (8.3.0+) and Billing Choice
|
|
210
|
+
* (OpenIAP Spec 2.1.0 / openiap-google 2.3.0; requires Play Billing 9.1.0+).
|
|
211
|
+
* Only billingProgram is required; link fields are used when the selected program
|
|
212
|
+
* links outside the app.
|
|
167
213
|
*/
|
|
168
214
|
export interface DeveloperBillingOptionParamsAndroid {
|
|
169
|
-
/** The billing program
|
|
215
|
+
/** The billing program. Use EXTERNAL_PAYMENTS or BILLING_CHOICE. */
|
|
170
216
|
billingProgram: BillingProgramAndroid;
|
|
171
|
-
/**
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
217
|
+
/**
|
|
218
|
+
* A pre-generated external transaction token for a Billing Choice external-link
|
|
219
|
+
* flow. Omit it when Google Play should provide the token in the callback.
|
|
220
|
+
*/
|
|
221
|
+
externalTransactionToken?: (string | null);
|
|
222
|
+
/**
|
|
223
|
+
* The launch mode for the external payment link.
|
|
224
|
+
* Required only when the selected billing program links outside the app.
|
|
225
|
+
*/
|
|
226
|
+
launchMode?: (DeveloperBillingLaunchModeAndroid | null);
|
|
227
|
+
/**
|
|
228
|
+
* The URI where the external payment will be processed.
|
|
229
|
+
* Required only when the selected billing program links outside the app.
|
|
230
|
+
*/
|
|
231
|
+
linkUri?: (string | null);
|
|
175
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* Developer-provided billing destination type for Billing Program reporting details (Android)
|
|
235
|
+
* Available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0 (requires Play Billing 9.1.0+).
|
|
236
|
+
*/
|
|
237
|
+
export type DeveloperBillingTypeAndroid = 'developer-billing-type-unspecified' | 'in-app' | 'external-link';
|
|
176
238
|
/**
|
|
177
239
|
* Details provided when user selects developer billing option (Android)
|
|
178
240
|
* Received via DeveloperProvidedBillingListener callback
|
|
@@ -181,10 +243,30 @@ export interface DeveloperBillingOptionParamsAndroid {
|
|
|
181
243
|
export interface DeveloperProvidedBillingDetailsAndroid {
|
|
182
244
|
/**
|
|
183
245
|
* External transaction token used to report transactions made through developer billing.
|
|
184
|
-
*
|
|
185
|
-
* Must be reported within 24 hours of the transaction.
|
|
246
|
+
* Nullable for flows such as external payments where no token is returned.
|
|
186
247
|
*/
|
|
187
|
-
externalTransactionToken
|
|
248
|
+
externalTransactionToken?: (string | null);
|
|
249
|
+
/**
|
|
250
|
+
* URI to launch for an external-link Billing Choice flow, when provided by
|
|
251
|
+
* Google Play.
|
|
252
|
+
*/
|
|
253
|
+
linkUri?: (string | null);
|
|
254
|
+
/**
|
|
255
|
+
* Original external transaction ID when replacing a subscription that was
|
|
256
|
+
* purchased through developer billing.
|
|
257
|
+
*/
|
|
258
|
+
originalExternalTransactionId?: (string | null);
|
|
259
|
+
/** Products selected for the developer billing flow. */
|
|
260
|
+
products: DeveloperProvidedBillingProductAndroid[];
|
|
261
|
+
}
|
|
262
|
+
/** Product selected for developer-provided billing (Android 9.0+). */
|
|
263
|
+
export interface DeveloperProvidedBillingProductAndroid {
|
|
264
|
+
/** Product identifier. */
|
|
265
|
+
id: string;
|
|
266
|
+
/** Subscription offer token, when applicable. */
|
|
267
|
+
offerToken?: (string | null);
|
|
268
|
+
/** Google Play product type (in-app or subscription). */
|
|
269
|
+
type: ProductType;
|
|
188
270
|
}
|
|
189
271
|
/**
|
|
190
272
|
* Discount amount details for one-time purchase offers (Android)
|
|
@@ -465,11 +547,55 @@ export interface ExternalPurchaseNoticeResultIOS {
|
|
|
465
547
|
result: ExternalPurchaseNoticeAction;
|
|
466
548
|
}
|
|
467
549
|
export type FetchProductsResult = ProductOrSubscription[] | Product[] | ProductSubscription[] | null;
|
|
550
|
+
/**
|
|
551
|
+
* Parameters for fetching Billing Choice display information (Android)
|
|
552
|
+
* Available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0 (requires Play Billing 9.1.0+).
|
|
553
|
+
*/
|
|
554
|
+
export interface GetBillingChoiceInfoParamsAndroid {
|
|
555
|
+
/** Billing program. Currently only BILLING_CHOICE is supported. */
|
|
556
|
+
billingProgram?: BillingProgramAndroid;
|
|
557
|
+
/** Desired Play Billing choice image layout. */
|
|
558
|
+
playBillingChoiceImageLayout?: BillingChoiceImageLayoutAndroid;
|
|
559
|
+
/** BCP 47 locale tag. If omitted, Play Billing uses the user's default locale. */
|
|
560
|
+
userLocale?: (string | null);
|
|
561
|
+
}
|
|
468
562
|
export type IapEvent = 'purchase-updated' | 'purchase-error' | 'promoted-product-ios' | 'user-choice-billing-android' | 'developer-provided-billing-android' | 'subscription-billing-issue';
|
|
469
563
|
export type IapPlatform = 'ios' | 'android';
|
|
470
564
|
export type IapStore = 'unknown' | 'apple' | 'google' | 'horizon' | 'amazon';
|
|
471
565
|
/** Unified purchase states from IAPKit verification response. */
|
|
472
566
|
export type IapkitPurchaseState = 'entitled' | 'pending-acknowledgment' | 'pending' | 'canceled' | 'expired' | 'ready-to-consume' | 'consumed' | 'unknown' | 'inauthentic';
|
|
567
|
+
/**
|
|
568
|
+
* High-level in-app message category (Android)
|
|
569
|
+
* Available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0
|
|
570
|
+
* (upstream API available since Play Billing 4.1.0).
|
|
571
|
+
*/
|
|
572
|
+
export type InAppMessageCategoryAndroid = 'unknown-in-app-message-category-id' | 'transactional';
|
|
573
|
+
/**
|
|
574
|
+
* Parameters for showing Play billing in-app messages (Android)
|
|
575
|
+
* Available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0
|
|
576
|
+
* (upstream API available since Play Billing 4.1.0).
|
|
577
|
+
*/
|
|
578
|
+
export interface InAppMessageParamsAndroid {
|
|
579
|
+
/** In-app message categories to show. Defaults to transactional messages. */
|
|
580
|
+
categories?: (InAppMessageCategoryAndroid[] | null);
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Response code from Play billing in-app messages (Android)
|
|
584
|
+
* Available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0
|
|
585
|
+
* (upstream API available since Play Billing 4.1.0).
|
|
586
|
+
*/
|
|
587
|
+
export type InAppMessageResponseCodeAndroid = 'no-action-needed' | 'subscription-status-updated';
|
|
588
|
+
/**
|
|
589
|
+
* Result from showing Play billing in-app messages (Android)
|
|
590
|
+
* Available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0
|
|
591
|
+
* (upstream API available since Play Billing 4.1.0).
|
|
592
|
+
*/
|
|
593
|
+
export interface InAppMessageResultAndroid {
|
|
594
|
+
/** Purchase token returned when a subscription status changed. */
|
|
595
|
+
purchaseToken?: (string | null);
|
|
596
|
+
/** Response code for the in-app messaging flow. */
|
|
597
|
+
responseCode: InAppMessageResponseCodeAndroid;
|
|
598
|
+
}
|
|
473
599
|
/** Connection initialization configuration */
|
|
474
600
|
export interface InitConnectionConfig {
|
|
475
601
|
/**
|
|
@@ -479,6 +605,16 @@ export interface InitConnectionConfig {
|
|
|
479
605
|
* Use USER_CHOICE_BILLING for user choice billing, EXTERNAL_OFFER for alternative only.
|
|
480
606
|
*/
|
|
481
607
|
alternativeBillingModeAndroid?: (AlternativeBillingModeAndroid | null);
|
|
608
|
+
/**
|
|
609
|
+
* Billing Choice renderer configured in Play Console. Available in OpenIAP
|
|
610
|
+
* Spec 2.1.0 / openiap-google 2.3.0 (requires Play Billing 9.1.0+).
|
|
611
|
+
* GOOGLE_RENDERED registers the developer-provided billing listener so OpenIAP
|
|
612
|
+
* can emit the selection event. DEVELOPER_RENDERED omits that listener so the
|
|
613
|
+
* app can render its own choice screen and use the reporting/dialog/link APIs.
|
|
614
|
+
* Must match choiceScreenType returned by isBillingProgramAvailableAndroid.
|
|
615
|
+
* Defaults to GOOGLE_RENDERED.
|
|
616
|
+
*/
|
|
617
|
+
billingChoiceScreenTypeAndroid?: (BillingChoiceScreenTypeAndroid | null);
|
|
482
618
|
/**
|
|
483
619
|
* Enable a specific billing program for Android (7.0+)
|
|
484
620
|
* When set, enables the specified billing program for external transactions.
|
|
@@ -486,6 +622,8 @@ export interface InitConnectionConfig {
|
|
|
486
622
|
* - EXTERNAL_CONTENT_LINK: Link to external content (8.2.0+)
|
|
487
623
|
* - EXTERNAL_OFFER: External offers for digital content (8.2.0+)
|
|
488
624
|
* - EXTERNAL_PAYMENTS: Developer provided billing, Japan only (8.3.0+)
|
|
625
|
+
* - BILLING_CHOICE: Google-rendered or developer-rendered billing choice
|
|
626
|
+
* (OpenIAP Spec 2.1.0 / openiap-google 2.3.0; requires Play Billing 9.1.0+)
|
|
489
627
|
*/
|
|
490
628
|
enableBillingProgramAndroid?: (BillingProgramAndroid | null);
|
|
491
629
|
}
|
|
@@ -511,12 +649,19 @@ export interface InstallmentPlanDetailsAndroid {
|
|
|
511
649
|
}
|
|
512
650
|
/**
|
|
513
651
|
* Parameters for launching an external link (Android)
|
|
514
|
-
* Used with launchExternalLink to initiate external offer
|
|
652
|
+
* Used with launchExternalLink to initiate external offer, app install, or
|
|
653
|
+
* developer-rendered Billing Choice flows
|
|
515
654
|
* Available in Google Play Billing Library 8.2.0+
|
|
516
655
|
*/
|
|
517
656
|
export interface LaunchExternalLinkParamsAndroid {
|
|
518
|
-
/** The billing program (EXTERNAL_CONTENT_LINK or
|
|
657
|
+
/** The billing program (EXTERNAL_CONTENT_LINK, EXTERNAL_OFFER, or BILLING_CHOICE) */
|
|
519
658
|
billingProgram: BillingProgramAndroid;
|
|
659
|
+
/**
|
|
660
|
+
* External transaction token for a developer-rendered Billing Choice external-link
|
|
661
|
+
* flow. Available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0
|
|
662
|
+
* (requires Play Billing 9.1.0+). Generate it with createBillingProgramReportingDetailsAndroid.
|
|
663
|
+
*/
|
|
664
|
+
externalTransactionToken?: (string | null);
|
|
520
665
|
/** The external link launch mode */
|
|
521
666
|
launchMode: ExternalLinkLaunchModeAndroid;
|
|
522
667
|
/** The type of the external link */
|
|
@@ -547,7 +692,6 @@ export interface Mutation {
|
|
|
547
692
|
beginRefundRequestIOS?: Promise<(string | null)>;
|
|
548
693
|
/**
|
|
549
694
|
* Check whether alternative billing is available for the user. Step 1 of the alternative billing flow.
|
|
550
|
-
*
|
|
551
695
|
* Returns true if available, false otherwise.
|
|
552
696
|
* Throws OpenIapError.NotPrepared if billing client not ready.
|
|
553
697
|
* See: https://openiap.dev/docs/apis/android/check-alternative-billing-availability-android
|
|
@@ -567,7 +711,6 @@ export interface Mutation {
|
|
|
567
711
|
* Create a reporting token for an alternative billing flow. Step 3 of the alternative billing flow.
|
|
568
712
|
* Must be called AFTER successful payment in your payment system.
|
|
569
713
|
* Token must be reported to Google Play backend within 24 hours.
|
|
570
|
-
*
|
|
571
714
|
* Returns token string, or null if creation failed.
|
|
572
715
|
* Throws OpenIapError.NotPrepared if billing client not ready.
|
|
573
716
|
* See: https://openiap.dev/docs/apis/android/create-alternative-billing-token-android
|
|
@@ -576,8 +719,11 @@ export interface Mutation {
|
|
|
576
719
|
/**
|
|
577
720
|
* Create the reporting payload Google requires after a Developer-Provided Billing transaction (Play Billing 8.3.0+).
|
|
578
721
|
* Replaces the deprecated createExternalOfferReportingDetailsAsync API.
|
|
579
|
-
*
|
|
580
722
|
* Returns external transaction token needed for reporting external transactions.
|
|
723
|
+
* developerBillingType is optional. When program is BILLING_CHOICE and developerBillingType is omitted,
|
|
724
|
+
* native Android defaults it to IN_APP.
|
|
725
|
+
* The Billing Choice extension is available in OpenIAP Spec 2.1.0 /
|
|
726
|
+
* openiap-google 2.3.0 (requires Play Billing 9.1.0+).
|
|
581
727
|
* Throws OpenIapError.NotPrepared if billing client not ready.
|
|
582
728
|
* See: https://openiap.dev/docs/apis/android/create-billing-program-reporting-details-android
|
|
583
729
|
*/
|
|
@@ -605,7 +751,6 @@ export interface Mutation {
|
|
|
605
751
|
/**
|
|
606
752
|
* Check whether a billing program (e.g., External Payments) is available for the current user.
|
|
607
753
|
* Replaces the deprecated isExternalOfferAvailableAsync API.
|
|
608
|
-
*
|
|
609
754
|
* Available in Google Play Billing Library 8.2.0+.
|
|
610
755
|
* Returns availability result with isAvailable flag.
|
|
611
756
|
* Throws OpenIapError.NotPrepared if billing client not ready.
|
|
@@ -613,9 +758,11 @@ export interface Mutation {
|
|
|
613
758
|
*/
|
|
614
759
|
isBillingProgramAvailableAndroid: Promise<BillingProgramAvailabilityResultAndroid>;
|
|
615
760
|
/**
|
|
616
|
-
* Launch an external content/offer link from inside the Billing Programs flow (Play Billing 8.2.0+)
|
|
761
|
+
* Launch an external content/offer link from inside the Billing Programs flow (Play Billing 8.2.0+),
|
|
762
|
+
* including developer-rendered Billing Choice external-link flows.
|
|
763
|
+
* Billing Choice availability: OpenIAP Spec 2.1.0 / openiap-google 2.3.0
|
|
764
|
+
* (requires Play Billing 9.1.0+).
|
|
617
765
|
* Replaces the deprecated showExternalOfferInformationDialog API.
|
|
618
|
-
*
|
|
619
766
|
* Shows Play Store dialog and optionally launches external URL.
|
|
620
767
|
* Throws OpenIapError.NotPrepared if billing client not ready.
|
|
621
768
|
* See: https://openiap.dev/docs/apis/android/launch-external-link-android
|
|
@@ -661,12 +808,19 @@ export interface Mutation {
|
|
|
661
808
|
/**
|
|
662
809
|
* Display Google's alternative billing information dialog. Step 2 of the alternative billing flow.
|
|
663
810
|
* Must be called BEFORE processing payment in your payment system.
|
|
664
|
-
*
|
|
665
811
|
* Returns true if user accepted, false if user canceled.
|
|
666
812
|
* Throws OpenIapError.NotPrepared if billing client not ready.
|
|
667
813
|
* See: https://openiap.dev/docs/apis/android/show-alternative-billing-dialog-android
|
|
668
814
|
*/
|
|
669
815
|
showAlternativeBillingDialogAndroid: Promise<boolean>;
|
|
816
|
+
/**
|
|
817
|
+
* Show Google's mandatory information dialog before a developer-rendered,
|
|
818
|
+
* in-app Billing Choice screen.
|
|
819
|
+
* OpenIAP availability: Spec 2.1.0 / openiap-google 2.3.0 (requires Play Billing 9.1.0+).
|
|
820
|
+
* Throws OpenIapError.NotPrepared if billing client not ready.
|
|
821
|
+
* See: https://openiap.dev/docs/apis/android/show-billing-program-information-dialog-android
|
|
822
|
+
*/
|
|
823
|
+
showBillingProgramInformationDialogAndroid: Promise<BillingResultAndroid>;
|
|
670
824
|
/**
|
|
671
825
|
* Present the disclosure sheet required before linking out via ExternalPurchaseCustomLink (iOS 18.1+).
|
|
672
826
|
* Call this after a deliberate customer interaction before linking out to external purchases.
|
|
@@ -674,6 +828,15 @@ export interface Mutation {
|
|
|
674
828
|
* See: https://openiap.dev/docs/apis/ios/show-external-purchase-custom-link-notice-ios
|
|
675
829
|
*/
|
|
676
830
|
showExternalPurchaseCustomLinkNoticeIOS: Promise<ExternalPurchaseCustomLinkNoticeResultIOS>;
|
|
831
|
+
/**
|
|
832
|
+
* Overlay Play billing in-app messages, such as payment issues or subscription price-change confirmations.
|
|
833
|
+
* OpenIAP availability: Spec 2.1.0 / openiap-google 2.3.0
|
|
834
|
+
* (upstream API available since Play Billing 4.1.0).
|
|
835
|
+
* Returns a response code and, when the subscription status changes, the related purchase token.
|
|
836
|
+
* Throws OpenIapError.NotPrepared if billing client not ready.
|
|
837
|
+
* See: https://openiap.dev/docs/apis/android/show-in-app-messages-android
|
|
838
|
+
*/
|
|
839
|
+
showInAppMessagesAndroid: Promise<InAppMessageResultAndroid>;
|
|
677
840
|
/**
|
|
678
841
|
* Present the manage-subscriptions sheet and return changed purchases (iOS 15+).
|
|
679
842
|
* See: https://openiap.dev/docs/apis/ios/show-manage-subscriptions-ios
|
|
@@ -710,7 +873,10 @@ export interface Mutation {
|
|
|
710
873
|
export type MutationAcknowledgePurchaseAndroidArgs = string;
|
|
711
874
|
export type MutationBeginRefundRequestIosArgs = string;
|
|
712
875
|
export type MutationConsumePurchaseAndroidArgs = string;
|
|
713
|
-
export
|
|
876
|
+
export interface MutationCreateBillingProgramReportingDetailsAndroidArgs {
|
|
877
|
+
developerBillingType?: (DeveloperBillingTypeAndroid | null);
|
|
878
|
+
program: BillingProgramAndroid;
|
|
879
|
+
}
|
|
714
880
|
export type MutationDeepLinkToSubscriptionsArgs = (DeepLinkOptions | null) | undefined;
|
|
715
881
|
export interface MutationFinishTransactionArgs {
|
|
716
882
|
isConsumable?: (boolean | null);
|
|
@@ -733,7 +899,9 @@ export type MutationRequestPurchaseArgs = {
|
|
|
733
899
|
/** Use alternative billing (Google Play alternative billing, Apple external purchase link) */
|
|
734
900
|
useAlternativeBilling?: boolean | null;
|
|
735
901
|
};
|
|
902
|
+
export type MutationShowBillingProgramInformationDialogAndroidArgs = BillingProgramInformationDialogParamsAndroid;
|
|
736
903
|
export type MutationShowExternalPurchaseCustomLinkNoticeIosArgs = ExternalPurchaseCustomLinkNoticeTypeIOS;
|
|
904
|
+
export type MutationShowInAppMessagesAndroidArgs = (InAppMessageParamsAndroid | null) | undefined;
|
|
737
905
|
export type MutationValidateReceiptArgs = VerifyPurchaseProps;
|
|
738
906
|
export type MutationVerifyPurchaseArgs = VerifyPurchaseProps;
|
|
739
907
|
export type MutationVerifyPurchaseWithProviderArgs = VerifyPurchaseWithProviderProps;
|
|
@@ -1102,6 +1270,7 @@ export interface PurchaseAndroid extends PurchaseCommon {
|
|
|
1102
1270
|
signatureAndroid?: (string | null);
|
|
1103
1271
|
/** Store where purchase was made */
|
|
1104
1272
|
store: IapStore;
|
|
1273
|
+
/** Unix timestamp in milliseconds since January 1, 1970 UTC. */
|
|
1105
1274
|
transactionDate: number;
|
|
1106
1275
|
transactionId?: (string | null);
|
|
1107
1276
|
}
|
|
@@ -1125,6 +1294,7 @@ export interface PurchaseCommon {
|
|
|
1125
1294
|
quantity: number;
|
|
1126
1295
|
/** Store where purchase was made */
|
|
1127
1296
|
store: IapStore;
|
|
1297
|
+
/** Unix timestamp in milliseconds since January 1, 1970 UTC. */
|
|
1128
1298
|
transactionDate: number;
|
|
1129
1299
|
}
|
|
1130
1300
|
export interface PurchaseError {
|
|
@@ -1180,6 +1350,7 @@ export interface PurchaseIOS extends PurchaseCommon {
|
|
|
1180
1350
|
store: IapStore;
|
|
1181
1351
|
storefrontCountryCodeIOS?: (string | null);
|
|
1182
1352
|
subscriptionGroupIdIOS?: (string | null);
|
|
1353
|
+
/** Unix timestamp in milliseconds since January 1, 1970 UTC. */
|
|
1183
1354
|
transactionDate: number;
|
|
1184
1355
|
transactionId: string;
|
|
1185
1356
|
transactionReasonIOS?: (string | null);
|
|
@@ -1254,6 +1425,13 @@ export interface Query {
|
|
|
1254
1425
|
* See: https://openiap.dev/docs/apis/get-available-purchases
|
|
1255
1426
|
*/
|
|
1256
1427
|
getAvailablePurchases: Promise<Purchase[]>;
|
|
1428
|
+
/**
|
|
1429
|
+
* Fetch Play Billing assets and loyalty text for developer-rendered Billing Choice screens.
|
|
1430
|
+
* OpenIAP availability: Spec 2.1.0 / openiap-google 2.3.0 (requires Play Billing 9.1.0+).
|
|
1431
|
+
* Throws OpenIapError.NotPrepared if billing client is not ready.
|
|
1432
|
+
* See: https://openiap.dev/docs/apis/android/get-billing-choice-info-android
|
|
1433
|
+
*/
|
|
1434
|
+
getBillingChoiceInfoAndroid: Promise<BillingChoiceInfoAndroid>;
|
|
1257
1435
|
/**
|
|
1258
1436
|
* Fetch a token for Apple's External Purchase Server reporting API (iOS 18.1+).
|
|
1259
1437
|
* Use this token to report transactions made through ExternalPurchaseCustomLink.
|
|
@@ -1335,6 +1513,7 @@ export type QueryCurrentEntitlementIosArgs = string;
|
|
|
1335
1513
|
export type QueryFetchProductsArgs = ProductRequest;
|
|
1336
1514
|
export type QueryGetActiveSubscriptionsArgs = (string[] | null) | undefined;
|
|
1337
1515
|
export type QueryGetAvailablePurchasesArgs = (PurchaseOptions | null) | undefined;
|
|
1516
|
+
export type QueryGetBillingChoiceInfoAndroidArgs = GetBillingChoiceInfoParamsAndroid;
|
|
1338
1517
|
export type QueryGetExternalPurchaseCustomLinkTokenIosArgs = ExternalPurchaseCustomLinkTokenTypeIOS;
|
|
1339
1518
|
export type QueryGetTransactionJwsIosArgs = string;
|
|
1340
1519
|
export type QueryHasActiveSubscriptionsArgs = (string[] | null) | undefined;
|
|
@@ -1422,9 +1601,9 @@ export interface RentalDetailsAndroid {
|
|
|
1422
1601
|
}
|
|
1423
1602
|
export interface RequestPurchaseAndroidProps {
|
|
1424
1603
|
/**
|
|
1425
|
-
* Developer billing option parameters for external payments
|
|
1426
|
-
*
|
|
1427
|
-
*
|
|
1604
|
+
* Developer billing option parameters for external payments and Billing Choice.
|
|
1605
|
+
* Billing Choice is available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0
|
|
1606
|
+
* (requires Play Billing 9.1.0+).
|
|
1428
1607
|
*/
|
|
1429
1608
|
developerBillingOption?: (DeveloperBillingOptionParamsAndroid | null);
|
|
1430
1609
|
/**
|
|
@@ -1502,9 +1681,9 @@ export interface RequestPurchasePropsByPlatforms {
|
|
|
1502
1681
|
export type RequestPurchaseResult = Purchase | Purchase[] | null;
|
|
1503
1682
|
export interface RequestSubscriptionAndroidProps {
|
|
1504
1683
|
/**
|
|
1505
|
-
* Developer billing option parameters for external payments
|
|
1506
|
-
*
|
|
1507
|
-
*
|
|
1684
|
+
* Developer billing option parameters for external payments and Billing Choice.
|
|
1685
|
+
* Billing Choice is available in OpenIAP Spec 2.1.0 / openiap-google 2.3.0
|
|
1686
|
+
* (requires Play Billing 9.1.0+).
|
|
1508
1687
|
*/
|
|
1509
1688
|
developerBillingOption?: (DeveloperBillingOptionParamsAndroid | null);
|
|
1510
1689
|
/**
|
|
@@ -1516,6 +1695,12 @@ export interface RequestSubscriptionAndroidProps {
|
|
|
1516
1695
|
obfuscatedAccountId?: (string | null);
|
|
1517
1696
|
/** Obfuscated profile ID */
|
|
1518
1697
|
obfuscatedProfileId?: (string | null);
|
|
1698
|
+
/**
|
|
1699
|
+
* Original external transaction ID for replacing a subscription that was
|
|
1700
|
+
* purchased through developer billing. Available in OpenIAP Spec 2.1.0 /
|
|
1701
|
+
* openiap-google 2.3.0 (requires Play Billing 9.1.0+).
|
|
1702
|
+
*/
|
|
1703
|
+
originalExternalTransactionId?: (string | null);
|
|
1519
1704
|
/** Purchase token for upgrades/downgrades */
|
|
1520
1705
|
purchaseToken?: (string | null);
|
|
1521
1706
|
/**
|
|
@@ -1642,11 +1827,11 @@ export interface RequestVerifyPurchaseWithIapkitResult {
|
|
|
1642
1827
|
export type SubResponseCodeAndroid = 'no-applicable-sub-response-code' | 'payment-declined-due-to-insufficient-funds' | 'user-ineligible';
|
|
1643
1828
|
export interface Subscription {
|
|
1644
1829
|
/**
|
|
1645
|
-
* Fires when a user selects developer billing in
|
|
1646
|
-
*
|
|
1647
|
-
*
|
|
1648
|
-
*
|
|
1649
|
-
*
|
|
1830
|
+
* Fires when a user selects developer billing in an External Payments or
|
|
1831
|
+
* Billing Choice flow (Android only). The payload can contain an external
|
|
1832
|
+
* transaction token, link URI, original transaction ID, and selected products.
|
|
1833
|
+
* Billing Choice payload fields are available in OpenIAP Spec 2.1.0 /
|
|
1834
|
+
* openiap-google 2.3.0 (requires Play Billing 9.1.0+).
|
|
1650
1835
|
*/
|
|
1651
1836
|
developerProvidedBillingAndroid: DeveloperProvidedBillingDetailsAndroid;
|
|
1652
1837
|
/** Fires when the App Store surfaces a promoted product (iOS only) */
|
|
@@ -2055,6 +2240,7 @@ export type QueryArgsMap = {
|
|
|
2055
2240
|
getAllTransactionsIOS: never;
|
|
2056
2241
|
getAppTransactionIOS: never;
|
|
2057
2242
|
getAvailablePurchases: QueryGetAvailablePurchasesArgs;
|
|
2243
|
+
getBillingChoiceInfoAndroid: QueryGetBillingChoiceInfoAndroidArgs;
|
|
2058
2244
|
getExternalPurchaseCustomLinkTokenIOS: QueryGetExternalPurchaseCustomLinkTokenIosArgs;
|
|
2059
2245
|
getPendingTransactionsIOS: never;
|
|
2060
2246
|
getPromotedProductIOS: never;
|
|
@@ -2095,7 +2281,9 @@ export type MutationArgsMap = {
|
|
|
2095
2281
|
requestPurchaseOnPromotedProductIOS: never;
|
|
2096
2282
|
restorePurchases: never;
|
|
2097
2283
|
showAlternativeBillingDialogAndroid: never;
|
|
2284
|
+
showBillingProgramInformationDialogAndroid: MutationShowBillingProgramInformationDialogAndroidArgs;
|
|
2098
2285
|
showExternalPurchaseCustomLinkNoticeIOS: MutationShowExternalPurchaseCustomLinkNoticeIosArgs;
|
|
2286
|
+
showInAppMessagesAndroid: MutationShowInAppMessagesAndroidArgs;
|
|
2099
2287
|
showManageSubscriptionsIOS: never;
|
|
2100
2288
|
syncIOS: never;
|
|
2101
2289
|
validateReceipt: MutationValidateReceiptArgs;
|