/// /// PurchaseIOS.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © 2025 Marc Rousavy @ Margelo /// package com.margelo.nitro.iap import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip /** * Represents the JavaScript object/struct "PurchaseIOS". */ @DoNotStrip @Keep data class PurchaseIOS( @DoNotStrip @Keep val appAccountToken: String?, @DoNotStrip @Keep val appBundleIdIOS: String?, @DoNotStrip @Keep val countryCodeIOS: String?, @DoNotStrip @Keep val currencyCodeIOS: String?, @DoNotStrip @Keep val currencySymbolIOS: String?, @DoNotStrip @Keep val currentPlanId: String?, @DoNotStrip @Keep val environmentIOS: String?, @DoNotStrip @Keep val expirationDateIOS: Double?, @DoNotStrip @Keep val id: String, @DoNotStrip @Keep val ids: Array?, @DoNotStrip @Keep val isAutoRenewing: Boolean, @DoNotStrip @Keep val isUpgradedIOS: Boolean?, @DoNotStrip @Keep val offerIOS: PurchaseOfferIOS?, @DoNotStrip @Keep val originalTransactionDateIOS: Double?, @DoNotStrip @Keep val originalTransactionIdentifierIOS: String?, @DoNotStrip @Keep val ownershipTypeIOS: String?, @DoNotStrip @Keep val platform: IapPlatform, @DoNotStrip @Keep val productId: String, @DoNotStrip @Keep val purchaseState: PurchaseState, @DoNotStrip @Keep val purchaseToken: String?, @DoNotStrip @Keep val quantity: Double, @DoNotStrip @Keep val quantityIOS: Double?, @DoNotStrip @Keep val reasonIOS: String?, @DoNotStrip @Keep val reasonStringRepresentationIOS: String?, @DoNotStrip @Keep val renewalInfoIOS: RenewalInfoIOS?, @DoNotStrip @Keep val revocationDateIOS: Double?, @DoNotStrip @Keep val revocationReasonIOS: String?, @DoNotStrip @Keep val store: IapStore, @DoNotStrip @Keep val storefrontCountryCodeIOS: String?, @DoNotStrip @Keep val subscriptionGroupIdIOS: String?, @DoNotStrip @Keep val transactionDate: Double, @DoNotStrip @Keep val transactionId: String, @DoNotStrip @Keep val transactionReasonIOS: String?, @DoNotStrip @Keep val webOrderLineItemIdIOS: String? ) { private companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(appAccountToken: String?, appBundleIdIOS: String?, countryCodeIOS: String?, currencyCodeIOS: String?, currencySymbolIOS: String?, currentPlanId: String?, environmentIOS: String?, expirationDateIOS: Double?, id: String, ids: Array?, 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 { 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) } } }