Show / Hide Table of Contents

Class InappPurchase

An InappPurchase resource indicates the status of a user's inapp product purchase.

Inheritance
System.Object
InappPurchase
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.AndroidPublisher.v1_1.Data
Assembly: Google.Apis.AndroidPublisher.v1_1.dll
Syntax
public class InappPurchase : 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>

PurchaseTime

The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).

Declaration
[JsonProperty("purchaseTime")]
public virtual long? PurchaseTime { 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>

Implements

IDirectResponseSchema
Back to top