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