@@ -87,20 +87,23 @@ type ConsumptionRequestBody struct {
87
87
88
88
// JWSRenewalInfoDecodedPayload https://developer.apple.com/documentation/appstoreserverapi/jwsrenewalinfodecodedpayload
89
89
type JWSRenewalInfoDecodedPayload struct {
90
- AutoRenewProductId string `json:"autoRenewProductId"`
91
- AutoRenewStatus int32 `json:"autoRenewStatus"`
92
- Environment Environment `json:"environment"`
93
- ExpirationIntent int32 `json:"expirationIntent"`
94
- GracePeriodExpiresDate int64 `json:"gracePeriodExpiresDate"`
95
- IsInBillingRetryPeriod * bool `json:"isInBillingRetryPeriod"`
96
- OfferIdentifier string `json:"offerIdentifier"`
97
- OfferType int32 `json:"offerType"`
98
- OriginalTransactionId string `json:"originalTransactionId"`
99
- PriceIncreaseStatus * int32 `json:"priceIncreaseStatus"`
100
- ProductId string `json:"productId"`
101
- RecentSubscriptionStartDate int64 `json:"recentSubscriptionStartDate"`
102
- RenewalDate int64 `json:"renewalDate"`
103
- SignedDate int64 `json:"signedDate"`
90
+ AutoRenewProductId string `json:"autoRenewProductId"`
91
+ AutoRenewStatus int32 `json:"autoRenewStatus"`
92
+ Environment Environment `json:"environment"`
93
+ ExpirationIntent int32 `json:"expirationIntent"`
94
+ GracePeriodExpiresDate int64 `json:"gracePeriodExpiresDate"`
95
+ IsInBillingRetryPeriod * bool `json:"isInBillingRetryPeriod"`
96
+ OfferIdentifier string `json:"offerIdentifier"`
97
+ OfferType int32 `json:"offerType"`
98
+ OriginalTransactionId string `json:"originalTransactionId"`
99
+ PriceIncreaseStatus * int32 `json:"priceIncreaseStatus"`
100
+ ProductId string `json:"productId"`
101
+ RecentSubscriptionStartDate int64 `json:"recentSubscriptionStartDate"`
102
+ RenewalDate int64 `json:"renewalDate"`
103
+ SignedDate int64 `json:"signedDate"`
104
+ RenewalPrice int64 `json:"renewalPrice,omitempty"`
105
+ Currency string `json:"currency,omitempty"`
106
+ OfferDiscountType OfferDiscountType `json:"offerDiscountType,omitempty"`
104
107
}
105
108
106
109
func (J JWSRenewalInfoDecodedPayload ) Valid () error {
@@ -231,6 +234,7 @@ const (
231
234
NotificationTypeV2RenewalExtended NotificationTypeV2 = "RENEWAL_EXTENDED"
232
235
NotificationTypeV2Revoke NotificationTypeV2 = "REVOKE"
233
236
NotificationTypeV2Subscribed NotificationTypeV2 = "SUBSCRIBED"
237
+ NotificationTypeV2OneTimeCharge NotificationTypeV2 = "ONE_TIME_CHARGE"
234
238
)
235
239
236
240
// SubtypeV2 is type
0 commit comments