/// /// NitroActiveSubscription.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 "NitroActiveSubscription". */ @DoNotStrip @Keep data class NitroActiveSubscription( @DoNotStrip @Keep val productId: String, @DoNotStrip @Keep val isActive: Boolean, @DoNotStrip @Keep val transactionId: String, @DoNotStrip @Keep val purchaseToken: String?, @DoNotStrip @Keep val transactionDate: Double, @DoNotStrip @Keep val expirationDateIOS: Double?, @DoNotStrip @Keep val environmentIOS: String?, @DoNotStrip @Keep val willExpireSoon: Boolean?, @DoNotStrip @Keep val daysUntilExpirationIOS: Double?, @DoNotStrip @Keep val renewalInfoIOS: NitroRenewalInfoIOS?, @DoNotStrip @Keep val autoRenewingAndroid: Boolean?, @DoNotStrip @Keep val basePlanIdAndroid: String?, @DoNotStrip @Keep val currentPlanId: String?, @DoNotStrip @Keep val purchaseTokenAndroid: String? ) { private companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(productId: String, isActive: Boolean, transactionId: String, purchaseToken: String?, transactionDate: Double, expirationDateIOS: Double?, environmentIOS: String?, willExpireSoon: Boolean?, daysUntilExpirationIOS: Double?, renewalInfoIOS: NitroRenewalInfoIOS?, autoRenewingAndroid: Boolean?, basePlanIdAndroid: String?, currentPlanId: String?, purchaseTokenAndroid: String?): NitroActiveSubscription { return NitroActiveSubscription(productId, isActive, transactionId, purchaseToken, transactionDate, expirationDateIOS, environmentIOS, willExpireSoon, daysUntilExpirationIOS, renewalInfoIOS, autoRenewingAndroid, basePlanIdAndroid, currentPlanId, purchaseTokenAndroid) } } }