-
public final class UserChoiceBillingDetailsUser Choice Billing event details (Android) Fired when a user selects alternative billing in the User Choice Billing dialog
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classUserChoiceBillingDetails.Companion
-
Field Summary
Fields Modifier and Type Field Description private List<DeveloperProvidedBillingProductAndroid>productDetailsAndroidprivate StringoriginalExternalTransactionIdprivate final StringexternalTransactionTokenprivate final List<String>products
-
Constructor Summary
Constructors Constructor Description UserChoiceBillingDetails(String externalTransactionToken, List<String> products, List<DeveloperProvidedBillingProductAndroid> productDetailsAndroid, String originalExternalTransactionId)UserChoiceBillingDetails(String externalTransactionToken, List<String> products)
-
Method Summary
Modifier and Type Method Description final List<DeveloperProvidedBillingProductAndroid>getProductDetailsAndroid()Structured product details selected in the user-choice flow, including the product type and offer token. final UnitsetProductDetailsAndroid(List<DeveloperProvidedBillingProductAndroid> productDetailsAndroid)final StringgetOriginalExternalTransactionId()External transaction ID of the originating subscription when the user is upgrading or downgrading a developer-billed subscription. final UnitsetOriginalExternalTransactionId(String originalExternalTransactionId)final StringgetExternalTransactionToken()Token that must be reported to Google Play within 24 hours final List<String>getProducts()List of product IDs selected by the user final Map<String, Object>toJson()-
-
Method Detail
-
getProductDetailsAndroid
final List<DeveloperProvidedBillingProductAndroid> getProductDetailsAndroid()
Structured product details selected in the user-choice flow, including the product type and offer token. Legacy payloads may omit this field; use products as the product-ID fallback. Available in OpenIAP Spec 2.3.0 / openiap-google 2.3.1 (requires Play Billing 9.1+).
-
setProductDetailsAndroid
final Unit setProductDetailsAndroid(List<DeveloperProvidedBillingProductAndroid> productDetailsAndroid)
-
getOriginalExternalTransactionId
final String getOriginalExternalTransactionId()
External transaction ID of the originating subscription when the user is upgrading or downgrading a developer-billed subscription. Available in OpenIAP Spec 2.3.0 / openiap-google 2.3.1 (requires Play Billing 9.1+).
-
setOriginalExternalTransactionId
final Unit setOriginalExternalTransactionId(String originalExternalTransactionId)
-
getExternalTransactionToken
final String getExternalTransactionToken()
Token that must be reported to Google Play within 24 hours
-
getProducts
final List<String> getProducts()
List of product IDs selected by the user
-
-
-
-