From be7b7686503014f5b4fee6b6552ff6e6e288375f Mon Sep 17 00:00:00 2001 From: Oleksandr Mykhailiuta Date: Wed, 29 Jan 2020 12:24:20 +0200 Subject: [PATCH] Add SubscriptionNotification deprecation comments --- appstore/notification.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appstore/notification.go b/appstore/notification.go index f6bd1d4..d68fbdc 100644 --- a/appstore/notification.go +++ b/appstore/notification.go @@ -88,14 +88,18 @@ type SubscriptionNotification struct { // Posted if the notification_type is RENEWAL or INTERACTIVE_RENEWAL, and only if the renewal is successful. // Posted also if the notification_type is INITIAL_BUY. // Not posted for notification_type CANCEL. + // Deprecated: use UnifiedReceipt.LatestReceipt instead. See details: https://developer.apple.com/documentation/appstoreservernotifications/ . LatestReceipt string `json:"latest_receipt"` + // Deprecated: use UnifiedReceipt.LatestReceiptInfo instead. See details: https://developer.apple.com/documentation/appstoreservernotifications/ . LatestReceiptInfo NotificationReceipt `json:"latest_receipt_info"` // In the new notifications above properties latest_receipt, latest_receipt_info are moved under this one UnifiedReceipt NotificationUnifiedReceipt `json:"unified_receipt"` // Posted only if the notification_type is RENEWAL or CANCEL or if renewal failed and subscription expired. + // Deprecated: see details: https://developer.apple.com/documentation/appstoreservernotifications/ . LatestExpiredReceipt string `json:"latest_expired_receipt"` + // Deprecated: see details: https://developer.apple.com/documentation/appstoreservernotifications/ . LatestExpiredReceiptInfo NotificationReceipt `json:"latest_expired_receipt_info"` // Posted only if the notification_type is CANCEL.