Skip to content

Commit 35b659c

Browse files
committed
feat(appstore): add two more fields to JWSRenewalInfoDecodedPayload
These should be there according to the link below. https://developer.apple.com/documentation/appstoreservernotifications/jwsrenewalinfodecodedpayload
1 parent 0a7d3ba commit 35b659c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

appstore/notification_v2.go

+2
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ type (
202202
JWSRenewalInfoDecodedPayload struct {
203203
AutoRenewProductId string `json:"autoRenewProductId"`
204204
AutoRenewStatus AutoRenewStatus `json:"autoRenewStatus"`
205+
Currency string `json:"currency"`
205206
Environment Environment `json:"environment"`
206207
ExpirationIntent ExpirationIntent `json:"expirationIntent"`
207208
GracePeriodExpiresDate int64 `json:"gracePeriodExpiresDate"`
@@ -213,6 +214,7 @@ type (
213214
ProductId string `json:"productId"`
214215
RecentSubscriptionStartDate int64 `json:"recentSubscriptionStartDate"`
215216
RenewalDate int64 `json:"renewalDate"`
217+
RenewalPrice int64 `json:"renewalPrice"`
216218
SignedDate int64 `json:"signedDate"`
217219
jwt.RegisteredClaims
218220
}

0 commit comments

Comments
 (0)