From 2dc12fd7f709ff207b6699b1efaaf0d2d16d14cf Mon Sep 17 00:00:00 2001 From: Jerry <85411418@qq.com> Date: Wed, 13 Nov 2024 13:48:37 +0800 Subject: [PATCH] =?UTF-8?q?apple=20RenewalInfo=20struct=20=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=A2=9E=E5=8A=A0=E6=96=B0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apple/notification_v2_model.go | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/apple/notification_v2_model.go b/apple/notification_v2_model.go index 1737603d..41d65eb4 100644 --- a/apple/notification_v2_model.go +++ b/apple/notification_v2_model.go @@ -97,20 +97,24 @@ type Data struct { // RenewalInfo https://developer.apple.com/documentation/appstoreservernotifications/jwsrenewalinfodecodedpayload type RenewalInfo struct { jwt.StandardClaims - AutoRenewProductId string `json:"autoRenewProductId"` - AutoRenewStatus int64 `json:"autoRenewStatus"` - Environment string `json:"environment"` - ExpirationIntent int64 `json:"expirationIntent"` - GracePeriodExpiresDate int64 `json:"gracePeriodExpiresDate"` - IsInBillingRetryPeriod bool `json:"isInBillingRetryPeriod"` - OfferIdentifier string `json:"offerIdentifier"` - OfferType int64 `json:"offerType"` // 1:An introductory offer. 2:A promotional offer. 3:An offer with a subscription offer code. - OriginalTransactionId string `json:"originalTransactionId"` - PriceIncreaseStatus int64 `json:"priceIncreaseStatus"` // 0: The customer hasn’t responded to the subscription price increase. 1:The customer consented to the subscription price increase. - ProductId string `json:"productId"` - RecentSubscriptionStartDate int64 `json:"recentSubscriptionStartDate"` - RenewalDate int64 `json:"renewalDate,omitempty"` // The UNIX time, in milliseconds, that the most recent auto-renewable subscription purchase expires. - SignedDate int64 `json:"signedDate"` + AutoRenewProductId string `json:"autoRenewProductId"` + AutoRenewStatus int64 `json:"autoRenewStatus"` + Currency string `json:"currency"` + EligibleWinBackOfferIds []string `json:"eligibleWinBackOfferIds"` + Environment string `json:"environment"` + ExpirationIntent int64 `json:"expirationIntent"` + GracePeriodExpiresDate int64 `json:"gracePeriodExpiresDate"` + IsInBillingRetryPeriod bool `json:"isInBillingRetryPeriod"` + OfferDiscountType string `json:"offerDiscountType"` + OfferIdentifier string `json:"offerIdentifier"` + OfferType int64 `json:"offerType"` // 1:An introductory offer. 2:A promotional offer. 3:An offer with a subscription offer code. + OriginalTransactionId string `json:"originalTransactionId"` + PriceIncreaseStatus int64 `json:"priceIncreaseStatus"` // 0: The customer hasn’t responded to the subscription price increase. 1:The customer consented to the subscription price increase. + ProductId string `json:"productId"` + RecentSubscriptionStartDate int64 `json:"recentSubscriptionStartDate"` + RenewalDate int64 `json:"renewalDate,omitempty"` // The UNIX time, in milliseconds, that the most recent auto-renewable subscription purchase expires. + RenewalPrice int64 `json:"renewalPrice"` + SignedDate int64 `json:"signedDate"` } // TransactionInfo https://developer.apple.com/documentation/appstoreservernotifications/jwstransactiondecodedpayload