Skip to content

Commit 2dc12fd

Browse files
committed
apple RenewalInfo struct 同步增加新字段
1 parent df51a10 commit 2dc12fd

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

apple/notification_v2_model.go

+18-14
Original file line numberDiff line numberDiff line change
@@ -97,20 +97,24 @@ type Data struct {
9797
// RenewalInfo https://developer.apple.com/documentation/appstoreservernotifications/jwsrenewalinfodecodedpayload
9898
type RenewalInfo struct {
9999
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"`
114118
}
115119

116120
// TransactionInfo https://developer.apple.com/documentation/appstoreservernotifications/jwstransactiondecodedpayload

0 commit comments

Comments
 (0)