Struct google_androidpublisher3::ProductPurchase [−][src]
pub struct ProductPurchase { pub order_id: Option<String>, pub consumption_state: Option<i32>, pub kind: Option<String>, pub purchase_time_millis: Option<String>, pub developer_payload: Option<String>, pub purchase_state: Option<i32>, pub purchase_type: Option<i32>, }
A ProductPurchase resource indicates the status of a user's inapp product 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).
- products get purchases (response)
Fields
order_id: Option<String>
The order id associated with the purchase of the inapp product.
consumption_state: Option<i32>
The consumption state of the inapp product. Possible values are:
- Yet to be consumed
- Consumed
kind: Option<String>
This kind represents an inappPurchase object in the androidpublisher service.
purchase_time_millis: Option<String>
The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
developer_payload: Option<String>
A developer-specified string that contains supplemental information about an order.
purchase_state: Option<i32>
The purchase state of the order. Possible values are:
- Purchased
- Canceled
purchase_type: Option<i32>
The type of purchase of the inapp product. 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)
Trait Implementations
impl Default for ProductPurchase
[src]
impl Default for ProductPurchase
fn default() -> ProductPurchase
[src]
fn default() -> ProductPurchase
Returns the "default value" for a type. Read more
impl Clone for ProductPurchase
[src]
impl Clone for ProductPurchase
fn clone(&self) -> ProductPurchase
[src]
fn clone(&self) -> ProductPurchase
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ProductPurchase
[src]
impl Debug for ProductPurchase
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ResponseResult for ProductPurchase
[src]
impl ResponseResult for ProductPurchase
Auto Trait Implementations
impl Send for ProductPurchase
impl Send for ProductPurchase
impl Sync for ProductPurchase
impl Sync for ProductPurchase