From 35b659cfb08981ac26edef3a0e78c9c5fff378ed Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Thu, 24 Oct 2024 12:13:32 +0200 Subject: [PATCH] feat(appstore): add two more fields to JWSRenewalInfoDecodedPayload These should be there according to the link below. https://developer.apple.com/documentation/appstoreservernotifications/jwsrenewalinfodecodedpayload --- appstore/notification_v2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appstore/notification_v2.go b/appstore/notification_v2.go index 9d8d15a..edaea0a 100644 --- a/appstore/notification_v2.go +++ b/appstore/notification_v2.go @@ -202,6 +202,7 @@ type ( JWSRenewalInfoDecodedPayload struct { AutoRenewProductId string `json:"autoRenewProductId"` AutoRenewStatus AutoRenewStatus `json:"autoRenewStatus"` + Currency string `json:"currency"` Environment Environment `json:"environment"` ExpirationIntent ExpirationIntent `json:"expirationIntent"` GracePeriodExpiresDate int64 `json:"gracePeriodExpiresDate"` @@ -213,6 +214,7 @@ type ( ProductId string `json:"productId"` RecentSubscriptionStartDate int64 `json:"recentSubscriptionStartDate"` RenewalDate int64 `json:"renewalDate"` + RenewalPrice int64 `json:"renewalPrice"` SignedDate int64 `json:"signedDate"` jwt.RegisteredClaims }