/// /// NitroReceiptValidationResultAndroid.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.iap import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.NullType /** * Represents the JavaScript object/struct "NitroReceiptValidationResultAndroid". */ @DoNotStrip @Keep data class NitroReceiptValidationResultAndroid( @DoNotStrip @Keep val autoRenewing: Boolean, @DoNotStrip @Keep val betaProduct: Boolean, @DoNotStrip @Keep val cancelDate: Variant_NullType_Double?, @DoNotStrip @Keep val cancelReason: Variant_NullType_String?, @DoNotStrip @Keep val deferredDate: Variant_NullType_Double?, @DoNotStrip @Keep val deferredSku: Variant_NullType_String?, @DoNotStrip @Keep val freeTrialEndDate: Double, @DoNotStrip @Keep val gracePeriodEndDate: Double, @DoNotStrip @Keep val parentProductId: String, @DoNotStrip @Keep val productId: String, @DoNotStrip @Keep val productType: String, @DoNotStrip @Keep val purchaseDate: Double, @DoNotStrip @Keep val quantity: Double, @DoNotStrip @Keep val receiptId: String, @DoNotStrip @Keep val renewalDate: Double, @DoNotStrip @Keep val term: String, @DoNotStrip @Keep val termSku: String, @DoNotStrip @Keep val testTransaction: Boolean ) { /* primary constructor */ companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(autoRenewing: Boolean, betaProduct: Boolean, cancelDate: Variant_NullType_Double?, cancelReason: Variant_NullType_String?, deferredDate: Variant_NullType_Double?, deferredSku: Variant_NullType_String?, freeTrialEndDate: Double, gracePeriodEndDate: Double, parentProductId: String, productId: String, productType: String, purchaseDate: Double, quantity: Double, receiptId: String, renewalDate: Double, term: String, termSku: String, testTransaction: Boolean): NitroReceiptValidationResultAndroid { return NitroReceiptValidationResultAndroid(autoRenewing, betaProduct, cancelDate, cancelReason, deferredDate, deferredSku, freeTrialEndDate, gracePeriodEndDate, parentProductId, productId, productType, purchaseDate, quantity, receiptId, renewalDate, term, termSku, testTransaction) } } }