Class ProductPurchase
A ProductPurchase resource indicates the status of a user's inapp product purchase.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.AndroidPublisher.v2.Data
Assembly: Google.Apis.AndroidPublisher.v2.dll
Syntax
public class ProductPurchase : IDirectResponseSchema
Properties
ConsumptionState
The consumption state of the inapp product. Possible values are: - Yet to be consumed - Consumed
Declaration
[JsonProperty("consumptionState")]
public virtual 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
[JsonProperty("developerPayload")]
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
[JsonProperty("kind")]
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
[JsonProperty("orderId")]
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
[JsonProperty("purchaseState")]
public virtual 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
[JsonProperty("purchaseTimeMillis")]
public virtual 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
[JsonProperty("purchaseType")]
public virtual int? PurchaseType { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |