pub struct InAppProduct {Show 13 fields
pub default_language: Option<String>,
pub default_price: Option<Price>,
pub grace_period: Option<String>,
pub listings: Option<HashMap<String, InAppProductListing>>,
pub managed_product_taxes_and_compliance_settings: Option<ManagedProductTaxAndComplianceSettings>,
pub package_name: Option<String>,
pub prices: Option<HashMap<String, Price>>,
pub purchase_type: Option<String>,
pub sku: Option<String>,
pub status: Option<String>,
pub subscription_period: Option<String>,
pub subscription_taxes_and_compliance_settings: Option<SubscriptionTaxAndComplianceSettings>,
pub trial_period: Option<String>,
}Expand description
An in-app product. The resource for InappproductsService.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- get inappproducts (response)
- insert inappproducts (request|response)
- patch inappproducts (request|response)
- update inappproducts (request|response)
Fields§
§default_language: Option<String>Default language of the localized data, as defined by BCP-47. e.g. “en-US”.
default_price: Option<Price>Default price. Cannot be zero, as in-app products are never free. Always in the developer’s Checkout merchant currency.
grace_period: Option<String>Grace period of the subscription, specified in ISO 8601 format. Allows developers to give their subscribers a grace period when the payment for the new recurrence period is declined. Acceptable values are P0D (zero days), P3D (three days), P7D (seven days), P14D (14 days), and P30D (30 days).
listings: Option<HashMap<String, InAppProductListing>>List of localized title and description data. Map key is the language of the localized data, as defined by BCP-47, e.g. “en-US”.
managed_product_taxes_and_compliance_settings: Option<ManagedProductTaxAndComplianceSettings>Details about taxes and legal compliance. Only applicable to managed products.
package_name: Option<String>Package name of the parent app.
prices: Option<HashMap<String, Price>>Prices per buyer region. None of these can be zero, as in-app products are never free. Map key is region code, as defined by ISO 3166-2.
purchase_type: Option<String>The type of the product, e.g. a recurring subscription.
sku: Option<String>Stock-keeping-unit (SKU) of the product, unique within an app.
status: Option<String>The status of the product, e.g. whether it’s active.
subscription_period: Option<String>Subscription period, specified in ISO 8601 format. Acceptable values are P1W (one week), P1M (one month), P3M (three months), P6M (six months), and P1Y (one year).
subscription_taxes_and_compliance_settings: Option<SubscriptionTaxAndComplianceSettings>Details about taxes and legal compliance. Only applicable to subscription products.
trial_period: Option<String>Trial period, specified in ISO 8601 format. Acceptable values are anything between P7D (seven days) and P999D (999 days).
Trait Implementations§
Source§impl Clone for InAppProduct
impl Clone for InAppProduct
Source§fn clone(&self) -> InAppProduct
fn clone(&self) -> InAppProduct
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more