ReceiptInfo class

Annotations
  • @JsonSerializable()

Constructors

ReceiptInfo({String? cancellationDate, String? cancellationDateMs, String? cancellationDatePst, String? cancellationReason, String? quantity, String? productId, String? transactionId, String? originalTransactionId, String? purchaseDate, String? purchaseDateMs, String? purchaseDatePst, String? originalPurchaseDate, String? originalPurchaseDateMs, String? originalPurchaseDatePst, String? expiresDate, String? expiresDateMs, String? expiresDatePst, String? webOrderLineItemId, String? isTrialPeriod, String? isInIntroOfferPeriod, String? inAppOwnershipType, String? subscriptionGroupIdentifier})
ReceiptInfo.fromJson(Map<String, dynamic> json)
factory

Properties

cancellationDate String?
The time the App Store refunded a transaction or revoked it from family sharing, in a date-time format similar to the ISO 8601. This field is present only for refunded or revoked transactions.
final
cancellationDateMs String?
The time the App Store refunded a transaction or revoked it from family sharing, in UNIX epoch time format, in milliseconds. This field is present only for refunded or revoked transactions. Use this time format for processing dates. See cancellation_date_ms for more information.
final
cancellationDatePst String?
The time the App Store refunded a transaction or revoked it from family sharing, in the Pacific Time zone. This field is present only for refunded or revoked transactions.
final
cancellationReason String?
The reason for a refunded or revoked transaction. A value of “1” indicates that the customer canceled their transaction due to an actual or perceived issue within your app. A value of “0” indicates that the transaction was canceled for another reason; for example, if the customer made the purchase accidentally.
final
expiresDate String?
The time a subscription expires or when it will renew, in a date-time format similar to the ISO 8601.
final
expiresDateMs String?
The time a subscription expires or when it will renew, in UNIX epoch time format, in milliseconds. Use this time format for processing dates. See expires_date_ms for more information.
final
expiresDatePst String?
The time a subscription expires or when it will renew, in the Pacific Time zone.
final
hashCode int
The hash code for this object.
no setterinherited
inAppOwnershipType String?
final
isInIntroOfferPeriod String?
An indicator of whether an auto-renewable subscription is in the introductory price period. See is_in_intro_offer_period for more information.
final
isTrialPeriod String?
An indication of whether a subscription is in the free trial period. See is_trial_period for more information.
final
originalPurchaseDate String?
The time of the original in-app purchase, in a date-time format similar to ISO 8601.
final
originalPurchaseDateMs String?
The time of the original in-app purchase, in UNIX epoch time format, in milliseconds. For an auto-renewable subscription, this value indicates the date of the subscription's initial purchase. The original purchase date applies to all product types and remains the same in all transactions for the same product ID. This value corresponds to the original transaction’s transactionDate property in StoreKit. Use this time format for processing dates.
final
originalPurchaseDatePst String?
The time of the original in-app purchase, in the Pacific Time zone.
final
originalTransactionId String?
The transaction identifier of the original purchase. See original_transaction_id for more information.
final
productId String?
The unique identifier of the product purchased. You provide this value when creating the product in App Store Connect, and it corresponds to the productIdentifier property of the SKPayment object stored in the transaction's payment property.
final
purchaseDate String?
The time the App Store charged the user's account for a purchased or restored product, or the time the App Store charged the user’s account for a subscription purchase or renewal after a lapse, in a date-time format similar to ISO 8601.
final
purchaseDateMs String?
For consumable, non-consumable, and non-renewing subscription products, the time the App Store charged the user's account for a purchased or restored product, in the UNIX epoch time format, in milliseconds. For auto-renewable subscriptions, the time the App Store charged the user’s account for a subscription purchase or renewal after a lapse, in the UNIX epoch time format, in milliseconds. Use this time format for processing dates.
final
purchaseDatePst String?
The time the App Store charged the user's account for a purchased or restored product, or the time the App Store charged the user’s account for a subscription purchase or renewal after a lapse, in the Pacific Time zone.
final
quantity String?
The number of consumable products purchased. This value corresponds to the quantity property of the SKPayment object stored in the transaction's payment property. The value is usually “1” unless modified with a mutable payment. The maximum value is 10.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptionGroupIdentifier String?
final
transactionId String?
A unique identifier for a transaction such as a purchase, restore, or renewal. See transaction_id for more information.
final
webOrderLineItemId String?
A unique identifier for purchase events across devices, including subscription-renewal events. This value is the primary key for identifying subscription purchases.
final

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.
override

Operators

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