Class ProductPurchase
A ProductPurchase resource indicates the status of a user's inapp product purchase.
Inheritance
Implements
Namespace: Google.Apis.AndroidPublisher.v2.Data
Assembly: Google.Apis.AndroidPublisher.v2.dll
Syntax
public class ProductPurchase : object, IDirectResponseSchema
Properties
ConsumptionState
The consumption state of the inapp product. Possible values are: - Yet to be consumed - Consumed
Declaration
public virtual Nullable<int> ConsumptionState { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
DeveloperPayload
A developer-specified string that contains supplemental information about an order.
Declaration
public virtual string DeveloperPayload { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Kind
This kind represents an inappPurchase object in the androidpublisher service.
Declaration
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OrderId
The order id associated with the purchase of the inapp product.
Declaration
public virtual string OrderId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PurchaseState
The purchase state of the order. Possible values are: - Purchased - Canceled - Pending
Declaration
public virtual Nullable<int> PurchaseState { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
PurchaseTimeMillis
The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
Declaration
public virtual Nullable<long> PurchaseTimeMillis { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
PurchaseType
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)
Declaration
public virtual Nullable<int> PurchaseType { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |