From 42c3a20d6e8b2dad699e52779af694c71cd318dc Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Wed, 11 Mar 2026 09:27:50 -0700 Subject: [PATCH] Updating AppTransaction documentation --- .../models/AppTransaction.py | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/appstoreserverlibrary/models/AppTransaction.py b/appstoreserverlibrary/models/AppTransaction.py index 6d2c98c3..b8d31b6a 100644 --- a/appstoreserverlibrary/models/AppTransaction.py +++ b/appstoreserverlibrary/models/AppTransaction.py @@ -12,16 +12,17 @@ @define class AppTransaction(AttrsRawValueAware): """ - Information that represents the customer’s purchase of the app, cryptographically signed by the App Store. - + A decoded payload that contains app transaction information. + https://developer.apple.com/documentation/storekit/apptransaction + https://developer.apple.com/documentation/appstoreserverapi/jwsapptransactiondecodedpayload """ receiptType: Optional[Environment] = Environment.create_main_attr('rawReceiptType') """ - The server environment that signs the app transaction. - - https://developer.apple.com/documentation/storekit/apptransaction/3963901-environment + The date that the App Store signed the JWS app transaction. + + https://developer.apple.com/documentation/appstoreserverapi/environment """ rawReceiptType: Optional[str] = Environment.create_raw_attr('receiptType') @@ -33,84 +34,84 @@ class AppTransaction(AttrsRawValueAware): """ The unique identifier the App Store uses to identify the app. - https://developer.apple.com/documentation/storekit/apptransaction/3954436-appid + https://developer.apple.com/documentation/appstoreserverapi/appappleid """ bundleId: Optional[str] = attr.ib(default=None) """ The bundle identifier that the app transaction applies to. - https://developer.apple.com/documentation/storekit/apptransaction/3954439-bundleid + https://developer.apple.com/documentation/appstoreserverapi/bundleid """ applicationVersion: Optional[str] = attr.ib(default=None) """ The app version that the app transaction applies to. - https://developer.apple.com/documentation/storekit/apptransaction/3954437-appversion + https://developer.apple.com/documentation/storekit/apptransaction/appversion """ versionExternalIdentifier: Optional[int] = attr.ib(default=None) """ The version external identifier of the app - https://developer.apple.com/documentation/storekit/apptransaction/3954438-appversionid + https://developer.apple.com/documentation/storekit/apptransaction/appversionid """ receiptCreationDate: Optional[int] = attr.ib(default=None) """ The date that the App Store signed the JWS app transaction. - https://developer.apple.com/documentation/storekit/apptransaction/3954449-signeddate + https://developer.apple.com/documentation/appstoreserverapi/receiptcreationdate """ originalPurchaseDate: Optional[int] = attr.ib(default=None) """ - The date the user originally purchased the app from the App Store. - - https://developer.apple.com/documentation/storekit/apptransaction/3954448-originalpurchasedate + The date the customer originally purchased the app from the App Store. + + https://developer.apple.com/documentation/appstoreserverapi/originalpurchasedate """ originalApplicationVersion: Optional[str] = attr.ib(default=None) """ The app version that the user originally purchased from the App Store. - https://developer.apple.com/documentation/storekit/apptransaction/3954447-originalappversion + https://developer.apple.com/documentation/appstoreserverapi/originalapplicationversion """ deviceVerification: Optional[str] = attr.ib(default=None) """ The Base64 device verification value to use to verify whether the app transaction belongs to the device. - https://developer.apple.com/documentation/storekit/apptransaction/3954441-deviceverification + https://developer.apple.com/documentation/storekit/apptransaction/deviceverification """ deviceVerificationNonce: Optional[str] = attr.ib(default=None) """ The UUID used to compute the device verification value. - https://developer.apple.com/documentation/storekit/apptransaction/3954442-deviceverificationnonce + https://developer.apple.com/documentation/storekit/apptransaction/deviceverificationnonce """ preorderDate: Optional[int] = attr.ib(default=None) """ The date the customer placed an order for the app before it's available in the App Store. - https://developer.apple.com/documentation/storekit/apptransaction/4013175-preorderdate + https://developer.apple.com/documentation/appstoreserverapi/preorderdate """ appTransactionId: Optional[str] = attr.ib(default=None) """ The unique identifier of the app download transaction. - https://developer.apple.com/documentation/storekit/apptransaction/apptransactionid + https://developer.apple.com/documentation/appstoreserverapi/apptransactionid """ originalPlatform: Optional[PurchasePlatform] = PurchasePlatform.create_main_attr('rawOriginalPlatform') """ The platform on which the customer originally purchased the app. - https://developer.apple.com/documentation/storekit/apptransaction/originalplatform-4mogz + https://developer.apple.com/documentation/appstoreserverapi/originalplatform """ rawOriginalPlatform: Optional[str] = PurchasePlatform.create_raw_attr('originalPlatform')