Skip to content

Commit

Permalink
apple RenewalInfo struct 同步增加新字段
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoogle-ink committed Nov 13, 2024
1 parent df51a10 commit 2dc12fd
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions apple/notification_v2_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2dc12fd

Please sign in to comment.