@@ -19,6 +19,8 @@ const (
19
19
NotificationTypeDidChangeRenewalPreference NotificationType = "DID_CHANGE_RENEWAL_PREF"
20
20
// Customer changed the subscription renewal status. Current active plan is not affected.
21
21
NotificationTypeDidChangeRenewalStatus NotificationType = "DID_CHANGE_RENEWAL_STATUS"
22
+ // Subscription failed to renew due to a billing issue.
23
+ NotificationTypeDidFailToRenew NotificationType = "DID_FAIL_TO_RENEW"
22
24
)
23
25
24
26
type NotificationEnvironment string
@@ -89,7 +91,7 @@ type SubscriptionNotification struct {
89
91
// Posted also if the notification_type is INITIAL_BUY.
90
92
// Not posted for notification_type CANCEL.
91
93
// Deprecated: use UnifiedReceipt.LatestReceipt instead. See details: https://developer.apple.com/documentation/appstoreservernotifications/ .
92
- LatestReceipt string `json:"latest_receipt"`
94
+ LatestReceipt string `json:"latest_receipt"`
93
95
// Deprecated: use UnifiedReceipt.LatestReceiptInfo instead. See details: https://developer.apple.com/documentation/appstoreservernotifications/ .
94
96
LatestReceiptInfo NotificationReceipt `json:"latest_receipt_info"`
95
97
@@ -98,7 +100,7 @@ type SubscriptionNotification struct {
98
100
99
101
// Posted only if the notification_type is RENEWAL or CANCEL or if renewal failed and subscription expired.
100
102
// Deprecated: see details: https://developer.apple.com/documentation/appstoreservernotifications/ .
101
- LatestExpiredReceipt string `json:"latest_expired_receipt"`
103
+ LatestExpiredReceipt string `json:"latest_expired_receipt"`
102
104
// Deprecated: see details: https://developer.apple.com/documentation/appstoreservernotifications/ .
103
105
LatestExpiredReceiptInfo NotificationReceipt `json:"latest_expired_receipt_info"`
104
106
0 commit comments