/// /// NitroProduct.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 "NitroProduct". */ @DoNotStrip @Keep data class NitroProduct( @DoNotStrip @Keep val id: String, @DoNotStrip @Keep val title: String, @DoNotStrip @Keep val description: String, @DoNotStrip @Keep val type: String, @DoNotStrip @Keep val displayName: String?, @DoNotStrip @Keep val displayPrice: String?, @DoNotStrip @Keep val currency: String?, @DoNotStrip @Keep val price: Double?, @DoNotStrip @Keep val platform: IapPlatform, @DoNotStrip @Keep val typeIOS: String?, @DoNotStrip @Keep val isFamilyShareableIOS: Boolean?, @DoNotStrip @Keep val jsonRepresentationIOS: String?, @DoNotStrip @Keep val discountsIOS: String?, @DoNotStrip @Keep val introductoryPriceIOS: String?, @DoNotStrip @Keep val introductoryPriceAsAmountIOS: Double?, @DoNotStrip @Keep val introductoryPriceNumberOfPeriodsIOS: Double?, @DoNotStrip @Keep val introductoryPricePaymentModeIOS: PaymentModeIOS, @DoNotStrip @Keep val introductoryPriceSubscriptionPeriodIOS: String?, @DoNotStrip @Keep val subscriptionPeriodNumberIOS: Double?, @DoNotStrip @Keep val subscriptionPeriodUnitIOS: String?, @DoNotStrip @Keep val nameAndroid: String?, @DoNotStrip @Keep val originalPriceAndroid: String?, @DoNotStrip @Keep val originalPriceAmountMicrosAndroid: Double?, @DoNotStrip @Keep val introductoryPriceCyclesAndroid: Double?, @DoNotStrip @Keep val introductoryPricePeriodAndroid: String?, @DoNotStrip @Keep val introductoryPriceValueAndroid: Double?, @DoNotStrip @Keep val subscriptionPeriodAndroid: String?, @DoNotStrip @Keep val freeTrialPeriodAndroid: String?, @DoNotStrip @Keep val subscriptionOfferDetailsAndroid: String?, @DoNotStrip @Keep val oneTimePurchaseOfferDetailsAndroid: Array? ) { private companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(id: String, title: String, description: String, type: String, displayName: String?, displayPrice: String?, currency: String?, price: Double?, platform: IapPlatform, typeIOS: String?, isFamilyShareableIOS: Boolean?, jsonRepresentationIOS: String?, discountsIOS: String?, introductoryPriceIOS: String?, introductoryPriceAsAmountIOS: Double?, introductoryPriceNumberOfPeriodsIOS: Double?, introductoryPricePaymentModeIOS: PaymentModeIOS, introductoryPriceSubscriptionPeriodIOS: String?, subscriptionPeriodNumberIOS: Double?, subscriptionPeriodUnitIOS: String?, nameAndroid: String?, originalPriceAndroid: String?, originalPriceAmountMicrosAndroid: Double?, introductoryPriceCyclesAndroid: Double?, introductoryPricePeriodAndroid: String?, introductoryPriceValueAndroid: Double?, subscriptionPeriodAndroid: String?, freeTrialPeriodAndroid: String?, subscriptionOfferDetailsAndroid: String?, oneTimePurchaseOfferDetailsAndroid: Array?): NitroProduct { return NitroProduct(id, title, description, type, displayName, displayPrice, currency, price, platform, typeIOS, isFamilyShareableIOS, jsonRepresentationIOS, discountsIOS, introductoryPriceIOS, introductoryPriceAsAmountIOS, introductoryPriceNumberOfPeriodsIOS, introductoryPricePaymentModeIOS, introductoryPriceSubscriptionPeriodIOS, subscriptionPeriodNumberIOS, subscriptionPeriodUnitIOS, nameAndroid, originalPriceAndroid, originalPriceAmountMicrosAndroid, introductoryPriceCyclesAndroid, introductoryPricePeriodAndroid, introductoryPriceValueAndroid, subscriptionPeriodAndroid, freeTrialPeriodAndroid, subscriptionOfferDetailsAndroid, oneTimePurchaseOfferDetailsAndroid) } } }