/// /// NitroOneTimePurchaseOfferDetail.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 "NitroOneTimePurchaseOfferDetail". */ @DoNotStrip @Keep data class NitroOneTimePurchaseOfferDetail( @DoNotStrip @Keep val discountDisplayInfo: NitroDiscountDisplayInfoAndroid?, @DoNotStrip @Keep val formattedPrice: String, @DoNotStrip @Keep val fullPriceMicros: String?, @DoNotStrip @Keep val limitedQuantityInfo: NitroLimitedQuantityInfoAndroid?, @DoNotStrip @Keep val offerId: String?, @DoNotStrip @Keep val offerTags: Array, @DoNotStrip @Keep val offerToken: String, @DoNotStrip @Keep val preorderDetailsAndroid: NitroPreorderDetailsAndroid?, @DoNotStrip @Keep val priceAmountMicros: String, @DoNotStrip @Keep val priceCurrencyCode: String, @DoNotStrip @Keep val rentalDetailsAndroid: NitroRentalDetailsAndroid?, @DoNotStrip @Keep val validTimeWindow: NitroValidTimeWindowAndroid? ) { private companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(discountDisplayInfo: NitroDiscountDisplayInfoAndroid?, formattedPrice: String, fullPriceMicros: String?, limitedQuantityInfo: NitroLimitedQuantityInfoAndroid?, offerId: String?, offerTags: Array, offerToken: String, preorderDetailsAndroid: NitroPreorderDetailsAndroid?, priceAmountMicros: String, priceCurrencyCode: String, rentalDetailsAndroid: NitroRentalDetailsAndroid?, validTimeWindow: NitroValidTimeWindowAndroid?): NitroOneTimePurchaseOfferDetail { return NitroOneTimePurchaseOfferDetail(discountDisplayInfo, formattedPrice, fullPriceMicros, limitedQuantityInfo, offerId, offerTags, offerToken, preorderDetailsAndroid, priceAmountMicros, priceCurrencyCode, rentalDetailsAndroid, validTimeWindow) } } }