pub struct Subscription {
pub archived: Option<bool>,
pub base_plans: Option<Vec<BasePlan>>,
pub listings: Option<Vec<SubscriptionListing>>,
pub package_name: Option<String>,
pub product_id: Option<String>,
pub restricted_payment_countries: Option<RestrictedPaymentCountries>,
pub tax_and_compliance_settings: Option<SubscriptionTaxAndComplianceSettings>,
}Expand description
A single subscription for an app.
§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).
- subscriptions base plans activate monetization (response)
- subscriptions base plans deactivate monetization (response)
- subscriptions archive monetization (response)
- subscriptions create monetization (request|response)
- subscriptions get monetization (response)
- subscriptions patch monetization (request|response)
Fields§
§archived: Option<bool>Output only. Deprecated: subscription archiving is not supported.
base_plans: Option<Vec<BasePlan>>The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.
listings: Option<Vec<SubscriptionListing>>Required. List of localized listings for this subscription. Must contain at least an entry for the default language of the parent app.
package_name: Option<String>Immutable. Package name of the parent app.
product_id: Option<String>Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length.
restricted_payment_countries: Option<RestrictedPaymentCountries>Optional. Countries where the purchase of this subscription is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.
tax_and_compliance_settings: Option<SubscriptionTaxAndComplianceSettings>Details about taxes and legal compliance.
Trait Implementations§
Source§impl Clone for Subscription
impl Clone for Subscription
Source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more