pub struct FunnelPackagePrice {
pub identifier: String,
pub localized_price: String,
pub localized_period: Option<String>,
pub localized_title: Option<String>,
pub amount_micros: Option<i64>,
pub currency: Option<String>,
pub period_unit: Option<FunnelPeriodUnit>,
pub period_count: Option<u32>,
pub localized_price_per_month: Option<String>,
pub localized_price_per_week: Option<String>,
pub offer: Option<FunnelPackageOffer>,
}Expand description
A store-fetched price for one package (D13). The façade hands these in
through FunnelSession::set_package_prices once its async StoreKit /
Play Billing lookup resolves — open cannot wait on it, so a package
row draws unpriced (but titled — see map_offering) until this lands.
The FFI twin of funnel-core’s PackagePrice: forwarded to the machine
(FunnelMachine::set_package_prices), so the resolver sees the price
when it builds copy ({{product.*}}) and computes savings. Matched by
identifier (the package SLOT identifier, the key
OfferingPackage::identifier carries); an identifier the offering lacks
is ignored. A None localized_period / localized_title keeps what
the served offering carried; the numeric facts replace the package’s
wholesale.
Fields§
§identifier: String§localized_price: String§localized_period: Option<String>§localized_title: Option<String>§amount_micros: Option<i64>The price in micros of currency.
currency: Option<String>ISO-4217, upper-case.
period_unit: Option<FunnelPeriodUnit>None for a one-time product.
period_count: Option<u32>§localized_price_per_month: Option<String>§localized_price_per_week: Option<String>§offer: Option<FunnelPackageOffer>Present ONLY when the visitor is eligible for it.
Trait Implementations§
Source§impl Clone for FunnelPackagePrice
impl Clone for FunnelPackagePrice
Source§fn clone(&self) -> FunnelPackagePrice
fn clone(&self) -> FunnelPackagePrice
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more