google_api_android_publisher v0.18.0 GoogleApi.AndroidPublisher.V3.Model.ProductPurchase View Source
A ProductPurchase resource indicates the status of a user's inapp product purchase.
Attributes
-
acknowledgementState
(type:integer()
, default:nil
) - The acknowledgement state of the inapp product. Possible values are:- Yet to be acknowledged
- Acknowledged
-
consumptionState
(type:integer()
, default:nil
) - The consumption state of the inapp product. Possible values are:- Yet to be consumed
- Consumed
-
developerPayload
(type:String.t
, default:nil
) - A developer-specified string that contains supplemental information about an order. -
kind
(type:String.t
, default:nil
) - This kind represents an inappPurchase object in the androidpublisher service. -
obfuscatedExternalAccountId
(type:String.t
, default:nil
) - An obfuscated version of the id that is uniquely associated with the user's account in your app. Only present if specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made. -
obfuscatedExternalProfileId
(type:String.t
, default:nil
) - An obfuscated version of the id that is uniquely associated with the user's profile in your app. Only present if specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid when the purchase was made. -
orderId
(type:String.t
, default:nil
) - The order id associated with the purchase of the inapp product. -
productId
(type:String.t
, default:nil
) - The inapp product SKU. -
purchaseState
(type:integer()
, default:nil
) - The purchase state of the order. Possible values are:- Purchased
- Canceled
- Pending
-
purchaseTimeMillis
(type:String.t
, default:nil
) - The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970). -
purchaseToken
(type:String.t
, default:nil
) - The purchase token generated to identify this purchase. -
purchaseType
(type:integer()
, default:nil
) - 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)
- Rewarded (i.e. from watching a video ad instead of paying)
-
quantity
(type:integer()
, default:nil
) - The quantity associated with the purchase of the inapp product.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Specs
t() :: %GoogleApi.AndroidPublisher.V3.Model.ProductPurchase{ acknowledgementState: integer(), consumptionState: integer(), developerPayload: String.t(), kind: String.t(), obfuscatedExternalAccountId: String.t(), obfuscatedExternalProfileId: String.t(), orderId: String.t(), productId: String.t(), purchaseState: integer(), purchaseTimeMillis: String.t(), purchaseToken: String.t(), purchaseType: integer(), quantity: integer() }
Link to this section Functions
Specs
Unwrap a decoded JSON object into its complex fields.