forked from apple/app-store-server-library-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppTransaction.py
More file actions
120 lines (87 loc) · 3.84 KB
/
AppTransaction.py
File metadata and controls
120 lines (87 loc) · 3.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Copyright (c) 2023 Apple Inc. Licensed under MIT License.
from typing import Optional
from attr import define
import attr
from .LibraryUtility import AttrsRawValueAware
from .Environment import Environment
from .PurchasePlatform import PurchasePlatform
@define
class AppTransaction(AttrsRawValueAware):
"""
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 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')
"""
See receiptType
"""
appAppleId: Optional[int] = attr.ib(default=None)
"""
The unique identifier the App Store uses to identify the app.
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/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/appversion
"""
versionExternalIdentifier: Optional[int] = attr.ib(default=None)
"""
The version external identifier of the app
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/appstoreserverapi/receiptcreationdate
"""
originalPurchaseDate: Optional[int] = attr.ib(default=None)
"""
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/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/deviceverification
"""
deviceVerificationNonce: Optional[str] = attr.ib(default=None)
"""
The UUID used to compute the device verification value.
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/appstoreserverapi/preorderdate
"""
appTransactionId: Optional[str] = attr.ib(default=None)
"""
The unique identifier of the app download transaction.
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/appstoreserverapi/originalplatform
"""
rawOriginalPlatform: Optional[str] = PurchasePlatform.create_raw_attr('originalPlatform')
"""
See originalPlatform
"""