-
- All Implemented Interfaces:
-
dev.hyo.openiap.Purchase,dev.hyo.openiap.PurchaseCommon
public final class PurchaseIOS implements PurchaseCommon, Purchase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPurchaseIOS.Companion
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PurchaseIOS(String appAccountToken, String appBundleIdIOS, String countryCodeIOS, String currencyCodeIOS, String currencySymbolIOS, String currentPlanId, String environmentIOS, Double expirationDateIOS, String id, List<String> ids, Boolean isAutoRenewing, Boolean isUpgradedIOS, PurchaseOfferIOS offerIOS, Double originalTransactionDateIOS, String originalTransactionIdentifierIOS, String ownershipTypeIOS, IapPlatform platform, String productId, PurchaseState purchaseState, String purchaseToken, Integer quantity, Integer quantityIOS, String reasonIOS, String reasonStringRepresentationIOS, RenewalInfoIOS renewalInfoIOS, Double revocationDateIOS, String revocationReasonIOS, String storefrontCountryCodeIOS, String subscriptionGroupIdIOS, Double transactionDate, String transactionId, String transactionReasonIOS, String webOrderLineItemIdIOS)
-
Method Summary
-
-
Constructor Detail
-
PurchaseIOS
PurchaseIOS(String appAccountToken, String appBundleIdIOS, String countryCodeIOS, String currencyCodeIOS, String currencySymbolIOS, String currentPlanId, String environmentIOS, Double expirationDateIOS, String id, List<String> ids, Boolean isAutoRenewing, Boolean isUpgradedIOS, PurchaseOfferIOS offerIOS, Double originalTransactionDateIOS, String originalTransactionIdentifierIOS, String ownershipTypeIOS, IapPlatform platform, String productId, PurchaseState purchaseState, String purchaseToken, Integer quantity, Integer quantityIOS, String reasonIOS, String reasonStringRepresentationIOS, RenewalInfoIOS renewalInfoIOS, Double revocationDateIOS, String revocationReasonIOS, String storefrontCountryCodeIOS, String subscriptionGroupIdIOS, Double transactionDate, String transactionId, String transactionReasonIOS, String webOrderLineItemIdIOS)
-
-
Method Detail
-
getAppAccountToken
final String getAppAccountToken()
-
getAppBundleIdIOS
final String getAppBundleIdIOS()
-
getCountryCodeIOS
final String getCountryCodeIOS()
-
getCurrencyCodeIOS
final String getCurrencyCodeIOS()
-
getCurrencySymbolIOS
final String getCurrencySymbolIOS()
-
getCurrentPlanId
String getCurrentPlanId()
The current plan identifier. This is:
On Android: the basePlanId (e.g., "premium", "premium-year")
On iOS: the productId (e.g., "com.example.premium_monthly", "com.example.premium_yearly") This provides a unified way to identify which specific plan/tier the user is subscribed to.
-
getEnvironmentIOS
final String getEnvironmentIOS()
-
getExpirationDateIOS
final Double getExpirationDateIOS()
-
getIsAutoRenewing
Boolean getIsAutoRenewing()
-
getIsUpgradedIOS
final Boolean getIsUpgradedIOS()
-
getOfferIOS
final PurchaseOfferIOS getOfferIOS()
-
getOriginalTransactionDateIOS
final Double getOriginalTransactionDateIOS()
-
getOriginalTransactionIdentifierIOS
final String getOriginalTransactionIdentifierIOS()
-
getOwnershipTypeIOS
final String getOwnershipTypeIOS()
-
getPlatform
IapPlatform getPlatform()
-
getProductId
String getProductId()
-
getPurchaseState
PurchaseState getPurchaseState()
-
getPurchaseToken
String getPurchaseToken()
Unified purchase token (iOS JWS, Android purchaseToken)
-
getQuantity
Integer getQuantity()
-
getQuantityIOS
final Integer getQuantityIOS()
-
getReasonIOS
final String getReasonIOS()
-
getReasonStringRepresentationIOS
final String getReasonStringRepresentationIOS()
-
getRenewalInfoIOS
final RenewalInfoIOS getRenewalInfoIOS()
-
getRevocationDateIOS
final Double getRevocationDateIOS()
-
getRevocationReasonIOS
final String getRevocationReasonIOS()
-
getStorefrontCountryCodeIOS
final String getStorefrontCountryCodeIOS()
-
getSubscriptionGroupIdIOS
final String getSubscriptionGroupIdIOS()
-
getTransactionDate
Double getTransactionDate()
-
getTransactionId
final String getTransactionId()
-
getTransactionReasonIOS
final String getTransactionReasonIOS()
-
getWebOrderLineItemIdIOS
final String getWebOrderLineItemIdIOS()
-
-
-
-