Class SubscriptionPurchaseV2
Indicates the status of a user's subscription purchase.
Implements
Inherited Members
Namespace: Google.Apis.AndroidPublisher.v3.Data
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class SubscriptionPurchaseV2 : IDirectResponseSchema
Properties
AcknowledgementState
The acknowledgement state of the subscription.
Declaration
[JsonProperty("acknowledgementState")]
public virtual string AcknowledgementState { get; set; }
Property Value
Type | Description |
---|---|
string |
CanceledStateContext
Additional context around canceled subscriptions. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_CANCELED or SUBSCRIPTION_STATE_EXPIRED.
Declaration
[JsonProperty("canceledStateContext")]
public virtual CanceledStateContext CanceledStateContext { get; set; }
Property Value
Type | Description |
---|---|
CanceledStateContext |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
ExternalAccountIdentifiers
User account identifier in the third-party service.
Declaration
[JsonProperty("externalAccountIdentifiers")]
public virtual ExternalAccountIdentifiers ExternalAccountIdentifiers { get; set; }
Property Value
Type | Description |
---|---|
ExternalAccountIdentifiers |
Kind
This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
string |
LatestOrderId
The order id of the latest order associated with the purchase of the subscription. For autoRenewing subscription, this is the order id of signup order if it is not renewed yet, or the last recurring order id (success, pending, or declined order). For prepaid subscription, this is the order id associated with the queried purchase token.
Declaration
[JsonProperty("latestOrderId")]
public virtual string LatestOrderId { get; set; }
Property Value
Type | Description |
---|---|
string |
LineItems
Item-level info for a subscription purchase. The items in the same purchase should be either all with AutoRenewingPlan or all with PrepaidPlan.
Declaration
[JsonProperty("lineItems")]
public virtual IList<SubscriptionPurchaseLineItem> LineItems { get; set; }
Property Value
Type | Description |
---|---|
IList<SubscriptionPurchaseLineItem> |
LinkedPurchaseToken
The purchase token of the old subscription if this subscription is one of the following: * Re-signup of a canceled but non-lapsed subscription * Upgrade/downgrade from a previous subscription. * Convert from prepaid to auto renewing subscription. * Convert from an auto renewing subscription to prepaid. * Topup a prepaid subscription.
Declaration
[JsonProperty("linkedPurchaseToken")]
public virtual string LinkedPurchaseToken { get; set; }
Property Value
Type | Description |
---|---|
string |
PausedStateContext
Additional context around paused subscriptions. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_PAUSED.
Declaration
[JsonProperty("pausedStateContext")]
public virtual PausedStateContext PausedStateContext { get; set; }
Property Value
Type | Description |
---|---|
PausedStateContext |
RegionCode
ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was granted.
Declaration
[JsonProperty("regionCode")]
public virtual string RegionCode { get; set; }
Property Value
Type | Description |
---|---|
string |
StartTime
object representation of StartTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")]
public virtual object StartTime { get; set; }
Property Value
Type | Description |
---|---|
object |
StartTimeDateTimeOffset
DateTimeOffset representation of StartTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? StartTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
StartTimeRaw
Time at which the subscription was granted. Not set for pending subscriptions (subscription was created but awaiting payment during signup).
Declaration
[JsonProperty("startTime")]
public virtual string StartTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
SubscribeWithGoogleInfo
User profile associated with purchases made with 'Subscribe with Google'.
Declaration
[JsonProperty("subscribeWithGoogleInfo")]
public virtual SubscribeWithGoogleInfo SubscribeWithGoogleInfo { get; set; }
Property Value
Type | Description |
---|---|
SubscribeWithGoogleInfo |
SubscriptionState
The current state of the subscription.
Declaration
[JsonProperty("subscriptionState")]
public virtual string SubscriptionState { get; set; }
Property Value
Type | Description |
---|---|
string |
TestPurchase
Only present if this subscription purchase is a test purchase.
Declaration
[JsonProperty("testPurchase")]
public virtual TestPurchase TestPurchase { get; set; }
Property Value
Type | Description |
---|---|
TestPurchase |