Skip to content

Commit

Permalink
Merge pull request #42 from alexanderjordanbaker/ASSA1.10.1
Browse files Browse the repository at this point in the history
Incorporating changes for App Store Server API v1.10.1
  • Loading branch information
alexanderjordanbaker committed Mar 28, 2024
2 parents ec82178 + d32b42e commit 14e29b8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation
///[JWSTransactionDecodedPayload](https://developer.apple.com/documentation/appstoreserverapi/jwstransactiondecodedpayload)
public struct JWSTransactionDecodedPayload: DecodedSignedData, Decodable, Encodable, Hashable {

public init(originalTransactionId: String? = nil, transactionId: String? = nil, webOrderLineItemId: String? = nil, bundleId: String? = nil, productId: String? = nil, subscriptionGroupIdentifier: String? = nil, purchaseDate: Date? = nil, originalPurchaseDate: Date? = nil, expiresDate: Date? = nil, quantity: Int32? = nil, type: ProductType? = nil, appAccountToken: UUID? = nil, inAppOwnershipType: InAppOwnershipType? = nil, signedDate: Date? = nil, revocationReason: RevocationReason? = nil, revocationDate: Date? = nil, isUpgraded: Bool? = nil, offerType: OfferType? = nil, offerIdentifier: String? = nil, environment: Environment? = nil, storefront: String? = nil, storefrontId: String? = nil, transactionReason: TransactionReason? = nil, currency: String? = nil, price: Int32? = nil, offerDiscountType: OfferDiscountType? = nil) {
public init(originalTransactionId: String? = nil, transactionId: String? = nil, webOrderLineItemId: String? = nil, bundleId: String? = nil, productId: String? = nil, subscriptionGroupIdentifier: String? = nil, purchaseDate: Date? = nil, originalPurchaseDate: Date? = nil, expiresDate: Date? = nil, quantity: Int32? = nil, type: ProductType? = nil, appAccountToken: UUID? = nil, inAppOwnershipType: InAppOwnershipType? = nil, signedDate: Date? = nil, revocationReason: RevocationReason? = nil, revocationDate: Date? = nil, isUpgraded: Bool? = nil, offerType: OfferType? = nil, offerIdentifier: String? = nil, environment: Environment? = nil, storefront: String? = nil, storefrontId: String? = nil, transactionReason: TransactionReason? = nil, currency: String? = nil, price: Int64? = nil, offerDiscountType: OfferDiscountType? = nil) {
self.originalTransactionId = originalTransactionId
self.transactionId = transactionId
self.webOrderLineItemId = webOrderLineItemId
Expand Down Expand Up @@ -35,7 +35,7 @@ public struct JWSTransactionDecodedPayload: DecodedSignedData, Decodable, Encoda
self.offerDiscountType = offerDiscountType
}

public init(originalTransactionId: String? = nil, transactionId: String? = nil, webOrderLineItemId: String? = nil, bundleId: String? = nil, productId: String? = nil, subscriptionGroupIdentifier: String? = nil, purchaseDate: Date? = nil, originalPurchaseDate: Date? = nil, expiresDate: Date? = nil, quantity: Int32? = nil, rawType: String? = nil, appAccountToken: UUID? = nil, rawInAppOwnershipType: String? = nil, signedDate: Date? = nil, rawRevocationReason: Int32? = nil, revocationDate: Date? = nil, isUpgraded: Bool? = nil, rawOfferType: Int32? = nil, offerIdentifier: String? = nil, rawEnvironment: String? = nil, storefront: String? = nil, storefrontId: String? = nil, rawTransactionReason: String? = nil, currency: String? = nil, price: Int32? = nil, rawOfferDiscountType: String? = nil) {
public init(originalTransactionId: String? = nil, transactionId: String? = nil, webOrderLineItemId: String? = nil, bundleId: String? = nil, productId: String? = nil, subscriptionGroupIdentifier: String? = nil, purchaseDate: Date? = nil, originalPurchaseDate: Date? = nil, expiresDate: Date? = nil, quantity: Int32? = nil, rawType: String? = nil, appAccountToken: UUID? = nil, rawInAppOwnershipType: String? = nil, signedDate: Date? = nil, rawRevocationReason: Int32? = nil, revocationDate: Date? = nil, isUpgraded: Bool? = nil, rawOfferType: Int32? = nil, offerIdentifier: String? = nil, rawEnvironment: String? = nil, storefront: String? = nil, storefrontId: String? = nil, rawTransactionReason: String? = nil, currency: String? = nil, price: Int64? = nil, rawOfferDiscountType: String? = nil) {
self.originalTransactionId = originalTransactionId
self.transactionId = transactionId
self.webOrderLineItemId = webOrderLineItemId
Expand Down Expand Up @@ -244,10 +244,10 @@ public struct JWSTransactionDecodedPayload: DecodedSignedData, Decodable, Encoda
///[currency](https://developer.apple.com/documentation/appstoreserverapi/currency)
public var currency: String?

///The price of the in-app purchase or subscription offer that you configured in App Store Connect, as an integer.
///The price, in milliunits, of the in-app purchase or subscription offer that you configured in App Store Connect.
///
///[price](https://developer.apple.com/documentation/appstoreserverapi/price)
public var price: Int32?
public var price: Int64?

///The payment mode you configure for an introductory offer, promotional offer, or offer code on an auto-renewable subscription.
///
Expand Down

0 comments on commit 14e29b8

Please sign in to comment.