@@ -97,20 +97,24 @@ type Data struct {
97
97
// RenewalInfo https://developer.apple.com/documentation/appstoreservernotifications/jwsrenewalinfodecodedpayload
98
98
type RenewalInfo struct {
99
99
jwt.StandardClaims
100
- AutoRenewProductId string `json:"autoRenewProductId"`
101
- AutoRenewStatus int64 `json:"autoRenewStatus"`
102
- Environment string `json:"environment"`
103
- ExpirationIntent int64 `json:"expirationIntent"`
104
- GracePeriodExpiresDate int64 `json:"gracePeriodExpiresDate"`
105
- IsInBillingRetryPeriod bool `json:"isInBillingRetryPeriod"`
106
- OfferIdentifier string `json:"offerIdentifier"`
107
- OfferType int64 `json:"offerType"` // 1:An introductory offer. 2:A promotional offer. 3:An offer with a subscription offer code.
108
- OriginalTransactionId string `json:"originalTransactionId"`
109
- PriceIncreaseStatus int64 `json:"priceIncreaseStatus"` // 0: The customer hasn’t responded to the subscription price increase. 1:The customer consented to the subscription price increase.
110
- ProductId string `json:"productId"`
111
- RecentSubscriptionStartDate int64 `json:"recentSubscriptionStartDate"`
112
- RenewalDate int64 `json:"renewalDate,omitempty"` // The UNIX time, in milliseconds, that the most recent auto-renewable subscription purchase expires.
113
- SignedDate int64 `json:"signedDate"`
100
+ AutoRenewProductId string `json:"autoRenewProductId"`
101
+ AutoRenewStatus int64 `json:"autoRenewStatus"`
102
+ Currency string `json:"currency"`
103
+ EligibleWinBackOfferIds []string `json:"eligibleWinBackOfferIds"`
104
+ Environment string `json:"environment"`
105
+ ExpirationIntent int64 `json:"expirationIntent"`
106
+ GracePeriodExpiresDate int64 `json:"gracePeriodExpiresDate"`
107
+ IsInBillingRetryPeriod bool `json:"isInBillingRetryPeriod"`
108
+ OfferDiscountType string `json:"offerDiscountType"`
109
+ OfferIdentifier string `json:"offerIdentifier"`
110
+ OfferType int64 `json:"offerType"` // 1:An introductory offer. 2:A promotional offer. 3:An offer with a subscription offer code.
111
+ OriginalTransactionId string `json:"originalTransactionId"`
112
+ PriceIncreaseStatus int64 `json:"priceIncreaseStatus"` // 0: The customer hasn’t responded to the subscription price increase. 1:The customer consented to the subscription price increase.
113
+ ProductId string `json:"productId"`
114
+ RecentSubscriptionStartDate int64 `json:"recentSubscriptionStartDate"`
115
+ RenewalDate int64 `json:"renewalDate,omitempty"` // The UNIX time, in milliseconds, that the most recent auto-renewable subscription purchase expires.
116
+ RenewalPrice int64 `json:"renewalPrice"`
117
+ SignedDate int64 `json:"signedDate"`
114
118
}
115
119
116
120
// TransactionInfo https://developer.apple.com/documentation/appstoreservernotifications/jwstransactiondecodedpayload
0 commit comments