SubscriptionPurchase class

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

Constructors

SubscriptionPurchase({int? acknowledgementState, bool? autoRenewing, String? autoResumeTimeMillis, int? cancelReason, SubscriptionCancelSurveyResult? cancelSurveyResult, String? countryCode, String? developerPayload, String? emailAddress, String? expiryTimeMillis, String? externalAccountId, String? familyName, String? givenName, IntroductoryPriceInfo? introductoryPriceInfo, String? kind, String? linkedPurchaseToken, String? obfuscatedExternalAccountId, String? obfuscatedExternalProfileId, String? orderId, int? paymentState, String? priceAmountMicros, SubscriptionPriceChange? priceChange, String? priceCurrencyCode, String? profileId, String? profileName, String? promotionCode, int? promotionType, int? purchaseType, String? startTimeMillis, String? userCancellationTimeMillis})
SubscriptionPurchase.fromJson(Map json_)

Properties

acknowledgementState int?
The acknowledgement state of the subscription product.
getter/setter pair
autoRenewing bool?
Whether the subscription will automatically be renewed when it reaches its current expiry time.
getter/setter pair
autoResumeTimeMillis String?
Time at which the subscription will be automatically resumed, in milliseconds since the Epoch.
getter/setter pair
cancelReason int?
The reason why a subscription was canceled or is not auto-renewing.
getter/setter pair
cancelSurveyResult SubscriptionCancelSurveyResult?
Information provided by the user when they complete the subscription cancellation flow (cancellation reason survey).
getter/setter pair
countryCode String?
ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was granted.
getter/setter pair
developerPayload String?
A developer-specified string that contains supplemental information about an order.
getter/setter pair
emailAddress String?
The email address of the user when the subscription was purchased.
getter/setter pair
expiryTimeMillis String?
Time at which the subscription will expire, in milliseconds since the Epoch.
getter/setter pair
externalAccountId String?
User account identifier in the third-party service.
getter/setter pair
familyName String?
The family name of the user when the subscription was purchased.
getter/setter pair
givenName String?
The given name of the user when the subscription was purchased.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
introductoryPriceInfo IntroductoryPriceInfo?
Introductory price information of the subscription.
getter/setter pair
kind String?
This kind represents a subscriptionPurchase object in the androidpublisher service.
getter/setter pair
linkedPurchaseToken String?
The purchase token of the originating purchase if this subscription is one of the following: 0.
getter/setter pair
obfuscatedExternalAccountId String?
An obfuscated version of the id that is uniquely associated with the user's account in your app.
getter/setter pair
obfuscatedExternalProfileId String?
An obfuscated version of the id that is uniquely associated with the user's profile in your app.
getter/setter pair
orderId String?
The order id of the latest recurring order associated with the purchase of the subscription.
getter/setter pair
paymentState int?
The payment state of the subscription.
getter/setter pair
priceAmountMicros String?
Price of the subscription, For tax exclusive countries, the price doesn't include tax.
getter/setter pair
priceChange SubscriptionPriceChange?
The latest price change information available.
getter/setter pair
priceCurrencyCode String?
ISO 4217 currency code for the subscription price.
getter/setter pair
profileId String?
The Google profile id of the user when the subscription was purchased.
getter/setter pair
profileName String?
The profile name of the user when the subscription was purchased.
getter/setter pair
promotionCode String?
The promotion code applied on this purchase.
getter/setter pair
promotionType int?
The type of promotion applied on this purchase.
getter/setter pair
purchaseType int?
The type of purchase of the subscription.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTimeMillis String?
Time at which the subscription was granted, in milliseconds since the Epoch.
getter/setter pair
userCancellationTimeMillis String?
The time at which the subscription was canceled by the user, in milliseconds since the epoch.
getter/setter pair

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited