[−][src]Struct google_androidpublisher2::SubscriptionPurchase
A SubscriptionPurchase resource indicates the status of a user's subscription purchase.
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 get purchases (response)
Fields
order_id: Option<String>
The order id of the latest recurring order associated with the purchase of the subscription.
country_code: Option<String>
ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was granted.
developer_payload: Option<String>
A developer-specified string that contains supplemental information about an order.
family_name: Option<String>
The family name of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.
auto_renewing: Option<bool>
Whether the subscription will automatically be renewed when it reaches its current expiry time.
payment_state: Option<i32>
The payment state of the subscription. Possible values are:
- Payment pending
- Payment received
- Free trial
- Pending deferred upgrade/downgrade
email_address: Option<String>
The email address of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.
cancel_reason: Option<i32>
The reason why a subscription was canceled or is not auto-renewing. Possible values are:
- User canceled the subscription
- Subscription was canceled by the system, for example because of a billing problem
- Subscription was replaced with a new subscription
- Subscription was canceled by the developer
profile_name: Option<String>
The profile name of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.
start_time_millis: Option<String>
Time at which the subscription was granted, in milliseconds since the Epoch.
user_cancellation_time_millis: Option<String>
The time at which the subscription was canceled by the user, in milliseconds since the epoch. Only present if cancelReason is 0.
price_amount_micros: Option<String>
Price of the subscription, not including tax. Price is expressed in micro-units, where 1,000,000 micro-units represents one unit of the currency. For example, if the subscription price is €1.99, price_amount_micros is 1990000.
kind: Option<String>
This kind represents a subscriptionPurchase object in the androidpublisher service.
price_change: Option<SubscriptionPriceChange>
The latest price change information available. This is present only when there is an upcoming price change for the subscription yet to be applied.
Once the subscription renews with the new price or the subscription is canceled, no price change information will be returned.
purchase_type: Option<i32>
The type of purchase of the subscription. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are:
- Test (i.e. purchased from a license testing account)
- Promo (i.e. purchased using a promo code)
price_currency_code: Option<String>
ISO 4217 currency code for the subscription price. For example, if the price is specified in British pounds sterling, price_currency_code is "GBP".
expiry_time_millis: Option<String>
Time at which the subscription will expire, in milliseconds since the Epoch.
cancel_survey_result: Option<SubscriptionCancelSurveyResult>
Information provided by the user when they complete the subscription cancellation flow (cancellation reason survey).
profile_id: Option<String>
The Google profile id of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.
linked_purchase_token: Option<String>
The purchase token of the originating purchase if this subscription is one of the following:
- Re-signup of a canceled but non-lapsed subscription
- Upgrade/downgrade from a previous subscription For example, suppose a user originally signs up and you receive purchase token X, then the user cancels and goes through the resignup flow (before their subscription lapses) and you receive purchase token Y, and finally the user upgrades their subscription and you receive purchase token Z. If you call this API with purchase token Z, this field will be set to Y. If you call this API with purchase token Y, this field will be set to X. If you call this API with purchase token X, this field will not be set.
given_name: Option<String>
The given name of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.
Trait Implementations
impl Clone for SubscriptionPurchase
[src]
fn clone(&self) -> SubscriptionPurchase
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SubscriptionPurchase
[src]
impl Default for SubscriptionPurchase
[src]
fn default() -> SubscriptionPurchase
[src]
impl<'de> Deserialize<'de> for SubscriptionPurchase
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl ResponseResult for SubscriptionPurchase
[src]
impl Serialize for SubscriptionPurchase
[src]
Auto Trait Implementations
impl RefUnwindSafe for SubscriptionPurchase
impl Send for SubscriptionPurchase
impl Sync for SubscriptionPurchase
impl Unpin for SubscriptionPurchase
impl UnwindSafe for SubscriptionPurchase
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,