Skip to content

Commit

Permalink
Merge pull request #44 from alexanderjordanbaker/UpdateSignedDataVeri…
Browse files Browse the repository at this point in the history
…fierDocumentation

Update method documentation for SignedDataVerifier to link to Apple d…
  • Loading branch information
alexanderjordanbaker committed Mar 29, 2024
2 parents 9c998ab + 3bd9613 commit e8dbc82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/AppStoreServerLibrary/SignedDataVerifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public struct SignedDataVerifier {
self.enableOnlineChecks = enableOnlineChecks
}
/// Verifies and decodes a signedRenewalInfo obtained from the App Store Server API, an App Store Server Notification, or from a device
/// See [JWSRenewalInfo](https://developer.apple.com/documentation/appstoreserverapi/jwsrenewalinfo)
///
/// - Parameter signedRenewalInfo The signedRenewalInfo field
/// - Returns: If success, the decoded renewal info after verification, else the reason for verification failure
Expand All @@ -50,6 +51,7 @@ public struct SignedDataVerifier {
return renewalInfoResult
}
/// Verifies and decodes a signedTransaction obtained from the App Store Server API, an App Store Server Notification, or from a device
/// See [JWSTransaction](https://developer.apple.com/documentation/appstoreserverapi/jwstransaction)
///
/// - Parameter signedTransaction The signedTransaction field
/// - Returns: If success, the decoded transaction info after verification, else the reason for verification failure
Expand All @@ -69,6 +71,7 @@ public struct SignedDataVerifier {
return transactionResult
}
/// Verifies and decodes an App Store Server Notification signedPayload
/// See [signedPayload](https://developer.apple.com/documentation/appstoreservernotifications/signedpayload)
///
/// - Parameter signedPayload The payload received by your server
/// - Returns: If success, the decoded payload after verification, else the reason for verification failure
Expand Down Expand Up @@ -124,6 +127,7 @@ public struct SignedDataVerifier {
}

///Verifies and decodes a signed AppTransaction
///See [AppTransaction](https://developer.apple.com/documentation/storekit/apptransaction)
///
///- Parameter signedAppTransaction The signed AppTransaction
///- Returns: If success, the decoded AppTransaction after validation, else the reason for verification failure
Expand Down

0 comments on commit e8dbc82

Please sign in to comment.