Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions src/main/java/com/apple/itunes/storekit/model/AppTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
import java.util.UUID;

/**
Information that represents the customer’s purchase of the app, cryptographically signed by the App Store.
A decoded payload that contains app transaction information.

@see <a href="https://developer.apple.com/documentation/storekit/apptransaction">AppTransaction</a>
@see <a href="https://developer.apple.com/documentation/appstoreserverapi/jwsapptransactiondecodedpayload">JWSAppTransactionDecodedPayload</a>
*/
public class AppTransaction implements DecodedSignedData {

Expand Down Expand Up @@ -62,9 +63,9 @@ public class AppTransaction implements DecodedSignedData {
private Map<String, Object> unknownFields;

/**
The server environment that signs the app transaction.
The date that the App Store signed the JWS app transaction.

@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/3963901-environment">environment</a>
@see <a href="https://developer.apple.com/documentation/appstoreserverapi/environment">environment</a>
*/
public Environment getReceiptType() {
return this.receiptType != null ? Environment.fromValue(this.receiptType) : null;
Expand Down Expand Up @@ -93,7 +94,7 @@ public AppTransaction receiptType(Environment receiptType) {
/**
The unique identifier the App Store uses to identify the app.

@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/3954436-appid">appId</a>
@see <a href="https://developer.apple.com/documentation/appstoreserverapi/appappleid">appId</a>
*/
public Long getAppAppleId() {
return this.appAppleId;
Expand All @@ -111,7 +112,7 @@ public AppTransaction appAppleId(Long appAppleId) {
/**
The bundle identifier that the app transaction applies to.

@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/3954439-bundleid">bundleId</a>
@see <a href="https://developer.apple.com/documentation/appstoreserverapi/bundleid">bundleId</a>
*/
public String getBundleId() {
return this.bundleId;
Expand All @@ -129,7 +130,7 @@ public AppTransaction bundleId(String bundleId) {
/**
The app version that the app transaction applies to.

@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/3954437-appversion">appVersion</a>
@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/appversion">appVersion</a>
*/
public String getApplicationVersion() {
return this.applicationVersion;
Expand All @@ -147,7 +148,7 @@ public AppTransaction applicationVersion(String applicationVersion) {
/**
The version external identifier of the app

@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/3954438-appversionid">appVersionID</a>
@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/appversionid">appVersionID</a>
*/
public Long getVersionExternalIdentifier() {
return this.versionExternalIdentifier;
Expand All @@ -165,7 +166,7 @@ public AppTransaction versionExternalIdentifier(Long versionExternalIdentifier)
/**
The date that the App Store signed the JWS app transaction.

@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/3954449-signeddate">signedDate</a>
@see <a href="https://developer.apple.com/documentation/appstoreserverapi/receiptcreationdate">receiptCreationDate</a>
*/
public Long getReceiptCreationDate() {
return this.receiptCreationDate;
Expand All @@ -181,9 +182,9 @@ public AppTransaction receiptCreationDate(Long receiptCreationDate) {
}

/**
The date the user originally purchased the app from the App Store.
The date the customer originally purchased the app from the App Store.

@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/3954448-originalpurchasedate">originalPurchaseDate</a>
@see <a href="https://developer.apple.com/documentation/appstoreserverapi/originalpurchasedate">originalPurchaseDate</a>
*/
public Long getOriginalPurchaseDate() {
return this.originalPurchaseDate;
Expand All @@ -201,7 +202,7 @@ public AppTransaction originalPurchaseDate(Long originalPurchaseDate) {
/**
The app version that the user originally purchased from the App Store.

@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/3954447-originalappversion">originalAppVersion</a>
@see <a href="https://developer.apple.com/documentation/appstoreserverapi/originalapplicationversion">originalAppVersion</a>
*/
public String getOriginalApplicationVersion() {
return this.originalApplicationVersion;
Expand All @@ -219,7 +220,7 @@ public AppTransaction originalApplicationVersion(String originalApplicationVersi
/**
The Base64 device verification value to use to verify whether the app transaction belongs to the device.

@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/3954441-deviceverification">deviceVerification</a>
@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/deviceverification">deviceVerification</a>
*/
public String getDeviceVerification() {
return this.deviceVerification;
Expand All @@ -237,7 +238,7 @@ public AppTransaction deviceVerification(String deviceVerification) {
/**
The UUID used to compute the device verification value.

@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/3954442-deviceverificationnonce">deviceVerificationNonce</a>
@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/deviceverificationnonce">deviceVerificationNonce</a>
*/
public UUID getDeviceVerificationNonce() {
return deviceVerificationNonce;
Expand All @@ -256,7 +257,7 @@ public AppTransaction deviceVerificationNonce(UUID deviceVerificationNonce) {
/**
The date the customer placed an order for the app before it’s available in the App Store.

@see <a href="https://developer.apple.com/documentation/storekit/apptransaction/4013175-preorderdate">preorderDate</a>
@see <a href="https://developer.apple.com/documentation/appstoreserverapi/preorderdate">preorderDate</a>
*/
public Long getPreorderDate() {
return preorderDate;
Expand All @@ -275,7 +276,7 @@ public AppTransaction preorderDate(Long preorderDate) {
* The unique identifier of the app download transaction.
*
* @return appTransactionId
* @see <a href="https://developer.apple.com/documentation/storekit/apptransaction/apptransactionid">appTransactionId</a>
* @see <a href="https://developer.apple.com/documentation/appstoreserverapi/apptransactionid">appTransactionId</a>
**/
public String getAppTransactionId() {
return this.appTransactionId;
Expand All @@ -299,7 +300,7 @@ public AppTransaction originalPlatform(PurchasePlatform originalPlatform) {
* The platform on which the customer originally purchased the app.
*
* @return originalPlatform
* @see <a href="https://developer.apple.com/documentation/storekit/apptransaction/originalplatform-4mogz">originalPlatform</a>
* @see <a href="https://developer.apple.com/documentation/appstoreserverapi/originalplatform">originalPlatform</a>
**/
public PurchasePlatform getOriginalPlatform() {
return originalPlatform != null ? PurchasePlatform.fromValue(originalPlatform) : null;
Expand Down
Loading