Skip to content

Commit c0b21ff

Browse files
Merge pull request #382 from alexanderjordanbaker/UpdatingAppTransactionDocs
Updating AppTransaction documentation
2 parents 7006a96 + fbe4b8a commit c0b21ff

1 file changed

Lines changed: 19 additions & 18 deletions

File tree

models/AppTransaction.ts

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,100 +5,101 @@ import { PurchasePlatform, PurchasePlatformValidator } from "./PurchasePlatform"
55
import { Validator } from "./Validator"
66

77
/**
8-
* Information that represents the customer’s purchase of the app, cryptographically signed by the App Store.
8+
* A decoded payload that contains app transaction information.
99
*
1010
* {@link https://developer.apple.com/documentation/storekit/apptransaction AppTransaction}
11+
* {@link https://developer.apple.com/documentation/appstoreserverapi/jwsapptransactiondecodedpayload JWSAppTransactionDecodedPayload}
1112
*/
1213
export interface AppTransaction {
1314

1415
/**
15-
* The server environment that signs the app transaction.
16-
*
17-
* {@link https://developer.apple.com/documentation/storekit/apptransaction/3963901-environment environment}
16+
* The date that the App Store signed the JWS app transaction.
17+
*
18+
* {@link https://developer.apple.com/documentation/appstoreserverapi/environment environment}
1819
*/
1920
receiptType?: Environment | string
2021

2122
/**
2223
* The unique identifier the App Store uses to identify the app.
2324
*
24-
* {@link https://developer.apple.com/documentation/storekit/apptransaction/3954436-appid appId}
25+
* {@link https://developer.apple.com/documentation/appstoreserverapi/appappleid appId}
2526
*/
2627
appAppleId?: number
2728

2829
/**
2930
* The bundle identifier that the app transaction applies to.
3031
*
31-
* {@link https://developer.apple.com/documentation/storekit/apptransaction/3954439-bundleid bundleId}
32+
* {@link https://developer.apple.com/documentation/appstoreserverapi/bundleid bundleId}
3233
*/
3334
bundleId?: string
3435

3536
/**
3637
* The app version that the app transaction applies to.
3738
*
38-
* {@link https://developer.apple.com/documentation/storekit/apptransaction/3954437-appversion appVersion}
39+
* {@link https://developer.apple.com/documentation/storekit/apptransaction/appversion appVersion}
3940
*/
4041
applicationVersion?: string
4142

4243
/**
4344
* The version external identifier of the app
4445
*
45-
* {@link https://developer.apple.com/documentation/storekit/apptransaction/3954438-appversionid appVersionID}
46+
* {@link https://developer.apple.com/documentation/storekit/apptransaction/appversionid appVersionID}
4647
*/
4748
versionExternalIdentifier?: number
4849

4950
/**
5051
* The date that the App Store signed the JWS app transaction.
5152
*
52-
* {@link https://developer.apple.com/documentation/storekit/apptransaction/3954449-signeddate signedDate}
53+
* {@link https://developer.apple.com/documentation/appstoreserverapi/receiptcreationdate receiptCreationDate}
5354
*/
5455
receiptCreationDate?: number
5556

5657
/**
57-
* The date the user originally purchased the app from the App Store.
58-
*
59-
* {@link https://developer.apple.com/documentation/storekit/apptransaction/3954448-originalpurchasedate originalPurchaseDate}
58+
* The date the customer originally purchased the app from the App Store.
59+
*
60+
* {@link https://developer.apple.com/documentation/appstoreserverapi/originalpurchasedate originalPurchaseDate}
6061
*/
6162
originalPurchaseDate?: number
6263

6364
/**
6465
* The app version that the user originally purchased from the App Store.
6566
*
66-
* {@link https://developer.apple.com/documentation/storekit/apptransaction/3954447-originalappversion originalAppVersion}
67+
* {@link https://developer.apple.com/documentation/appstoreserverapi/originalapplicationversion originalAppVersion}
6768
*/
6869
originalApplicationVersion?: string
6970

7071
/**
7172
The Base64 device verification value to use to verify whether the app transaction belongs to the device.
7273
73-
{@link https://developer.apple.com/documentation/storekit/apptransaction/3954441-deviceverification deviceVerification}
74+
{@link https://developer.apple.com/documentation/storekit/apptransaction/deviceverification deviceVerification}
7475
*/
7576
deviceVerification?: string
7677

7778
/**
7879
* The UUID used to compute the device verification value.
7980
*
80-
* {@link https://developer.apple.com/documentation/storekit/apptransaction/3954442-deviceverificationnonce deviceVerificationNonce}
81+
* {@link https://developer.apple.com/documentation/storekit/apptransaction/deviceverificationnonce deviceVerificationNonce}
8182
*/
8283
deviceVerificationNonce?: string
8384

8485
/**
8586
* The date the customer placed an order for the app before it’s available in the App Store.
8687
*
87-
* {@link https://developer.apple.com/documentation/storekit/apptransaction/4013175-preorderdate preorderDate}
88+
* {@link https://developer.apple.com/documentation/appstoreserverapi/preorderdate preorderDate}
8889
*/
8990
preorderDate?: number
9091

9192
/**
9293
* The unique identifier of the app download transaction.
9394
*
94-
* {@link https://developer.apple.com/documentation/storekit/apptransaction/apptransactionid appTransactionId}
95+
* {@link https://developer.apple.com/documentation/appstoreserverapi/apptransactionid appTransactionId}
9596
*/
9697
appTransactionId?: string
9798

9899
/**
99100
* The platform on which the customer originally purchased the app.
100101
*
101-
* {@link https://developer.apple.com/documentation/storekit/apptransaction/originalplatform-4mogz originalPlatform}
102+
* {@link https://developer.apple.com/documentation/appstoreserverapi/originalplatform originalPlatform}
102103
*/
103104
originalPlatform?: PurchasePlatform | string
104105
}

0 commit comments

Comments
 (0)