-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathAppTransaction.py
More file actions
94 lines (67 loc) · 3.06 KB
/
AppTransaction.py
File metadata and controls
94 lines (67 loc) · 3.06 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
# Copyright (c) 2023 Apple Inc. Licensed under MIT License.
from typing import Optional
from attr import define
import attr
from pydantic import Field
from .Base import Model
from .Environment import Environment
class AppTransaction(Model):
"""
Information that represents the customer’s purchase of the app, cryptographically signed by the App Store.
https://developer.apple.com/documentation/storekit/apptransaction
"""
receiptType: Optional[Environment] = Field(default=None)
"""
The server environment that signs the app transaction.
https://developer.apple.com/documentation/storekit/apptransaction/3963901-environment
"""
appAppleId: Optional[int] = Field(default=None)
"""
The unique identifier the App Store uses to identify the app.
https://developer.apple.com/documentation/storekit/apptransaction/3954436-appid
"""
bundleId: Optional[str] = Field(default=None)
"""
The bundle identifier that the app transaction applies to.
https://developer.apple.com/documentation/storekit/apptransaction/3954439-bundleid
"""
applicationVersion: Optional[str] = Field(default=None)
"""
The app version that the app transaction applies to.
https://developer.apple.com/documentation/storekit/apptransaction/3954437-appversion
"""
versionExternalIdentifier: Optional[int] = Field(default=None)
"""
The version external identifier of the app
https://developer.apple.com/documentation/storekit/apptransaction/3954438-appversionid
"""
receiptCreationDate: Optional[int] = Field(default=None)
"""
The date that the App Store signed the JWS app transaction.
https://developer.apple.com/documentation/storekit/apptransaction/3954449-signeddate
"""
originalPurchaseDate: Optional[int] = Field(default=None)
"""
The date the user originally purchased the app from the App Store.
https://developer.apple.com/documentation/storekit/apptransaction/3954448-originalpurchasedate
"""
originalApplicationVersion: Optional[str] = Field(default=None)
"""
The app version that the user originally purchased from the App Store.
https://developer.apple.com/documentation/storekit/apptransaction/3954447-originalappversion
"""
deviceVerification: Optional[str] = Field(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
"""
deviceVerificationNonce: Optional[str] = Field(default=None)
"""
The UUID used to compute the device verification value.
https://developer.apple.com/documentation/storekit/apptransaction/3954442-deviceverificationnonce
"""
preorderDate: Optional[int] = Field(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
"""