SubscriptionPurchase class

A SubscriptionPurchase resource indicates the status of a user's subscription purchase.

Constructors

SubscriptionPurchase()
SubscriptionPurchase.fromJson(Map _json)

Properties

autoRenewing ↔ bool
Whether the subscription will automatically be renewed when it reaches its current expiry time.
read / write
cancelReason ↔ int
The reason why a subscription was canceled or is not auto-renewing. Possible values are: [...]
read / write
cancelSurveyResult SubscriptionCancelSurveyResult
Information provided by the user when they complete the subscription cancellation flow (cancellation reason survey).
read / write
countryCode ↔ String
ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was granted.
read / write
developerPayload ↔ String
A developer-specified string that contains supplemental information about an order.
read / write
emailAddress ↔ String
The email address of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.
read / write
expiryTimeMillis ↔ String
Time at which the subscription will expire, in milliseconds since the Epoch.
read / write
familyName ↔ String
The family name of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.
read / write
givenName ↔ String
The given name of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.
read / write
kind ↔ String
This kind represents a subscriptionPurchase object in the androidpublisher service.
read / write
linkedPurchaseToken ↔ String
The purchase token of the originating purchase if this subscription is one of the following: [...]
read / write
orderId ↔ String
The order id of the latest recurring order associated with the purchase of the subscription.
read / write
paymentState ↔ int
The payment state of the subscription. Possible values are: [...]
read / write
priceAmountMicros ↔ String
Price of the subscription, not including tax. Price is expressed in micro-units, where 1,000,000 micro-units represents one unit of the currency. For example, if the subscription price is €1.99, price_amount_micros is 1990000.
read / write
priceChange SubscriptionPriceChange
The latest price change information available. This is present only when there is an upcoming price change for the subscription yet to be applied. [...]
read / write
priceCurrencyCode ↔ String
ISO 4217 currency code for the subscription price. For example, if the price is specified in British pounds sterling, price_currency_code is "GBP".
read / write
profileId ↔ String
The profile id of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.
read / write
profileName ↔ String
The profile name of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.
read / write
purchaseType ↔ int
The type of purchase of the subscription. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: [...]
read / write
startTimeMillis ↔ String
Time at which the subscription was granted, in milliseconds since the Epoch.
read / write
userCancellationTimeMillis ↔ String
The time at which the subscription was canceled by the user, in milliseconds since the epoch. Only present if cancelReason is 0.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited