Class ProductPurchase
A ProductPurchase resource indicates the status of a user's inapp product purchase.
Implements
Inherited Members
Namespace: Google.Apis.AndroidPublisher.v3.Data
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class ProductPurchase : IDirectResponseSchema
Properties
AcknowledgementState
The acknowledgement state of the inapp product. Possible values are: 0. Yet to be acknowledged 1. Acknowledged
Declaration
[JsonProperty("acknowledgementState")]
public virtual int? AcknowledgementState { get; set; }
Property Value
Type | Description |
---|---|
int? |
ConsumptionState
The consumption state of the inapp product. Possible values are: 0. Yet to be consumed 1. Consumed
Declaration
[JsonProperty("consumptionState")]
public virtual int? ConsumptionState { get; set; }
Property Value
Type | Description |
---|---|
int? |
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 |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|
string |
ObfuscatedExternalAccountId
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.
Declaration
[JsonProperty("obfuscatedExternalAccountId")]
public virtual string ObfuscatedExternalAccountId { get; set; }
Property Value
Type | Description |
---|---|
string |
ObfuscatedExternalProfileId
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.
Declaration
[JsonProperty("obfuscatedExternalProfileId")]
public virtual string ObfuscatedExternalProfileId { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|
string |
ProductId
The inapp product SKU. May not be present.
Declaration
[JsonProperty("productId")]
public virtual string ProductId { get; set; }
Property Value
Type | Description |
---|---|
string |
PurchaseState
The purchase state of the order. Possible values are: 0. Purchased 1. Canceled 2. Pending
Declaration
[JsonProperty("purchaseState")]
public virtual int? PurchaseState { get; set; }
Property Value
Type | Description |
---|---|
int? |
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 |
---|---|
long? |
PurchaseToken
The purchase token generated to identify this purchase. May not be present.
Declaration
[JsonProperty("purchaseToken")]
public virtual string PurchaseToken { get; set; }
Property Value
Type | Description |
---|---|
string |
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: 0. Test (i.e. purchased from a license testing account)
- Promo (i.e. purchased using a promo code). Does not include Play Points purchases. 2. Rewarded (i.e. from watching a video ad instead of paying)
Declaration
[JsonProperty("purchaseType")]
public virtual int? PurchaseType { get; set; }
Property Value
Type | Description |
---|---|
int? |
Quantity
The quantity associated with the purchase of the inapp product. If not present, the quantity is 1.
Declaration
[JsonProperty("quantity")]
public virtual int? Quantity { get; set; }
Property Value
Type | Description |
---|---|
int? |
RefundableQuantity
The quantity eligible for refund, i.e. quantity that hasn't been refunded. The value reflects quantity-based partial refunds and full refunds.
Declaration
[JsonProperty("refundableQuantity")]
public virtual int? RefundableQuantity { get; set; }
Property Value
Type | Description |
---|---|
int? |
RegionCode
ISO 3166-1 alpha-2 billing region code of the user at the time the product was granted.
Declaration
[JsonProperty("regionCode")]
public virtual string RegionCode { get; set; }
Property Value
Type | Description |
---|---|
string |