Merge pull request #111 from ercling/master

Add SubscriptionNotification deprecation comments
This commit is contained in:
Junpei Tsuji
2020-01-29 23:35:29 +09:00
committed by GitHub

View File

@@ -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 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. // Posted also if the notification_type is INITIAL_BUY.
// Not posted for notification_type CANCEL. // Not posted for notification_type CANCEL.
// Deprecated: use UnifiedReceipt.LatestReceipt instead. See details: https://developer.apple.com/documentation/appstoreservernotifications/ .
LatestReceipt string `json:"latest_receipt"` LatestReceipt string `json:"latest_receipt"`
// Deprecated: use UnifiedReceipt.LatestReceiptInfo instead. See details: https://developer.apple.com/documentation/appstoreservernotifications/ .
LatestReceiptInfo NotificationReceipt `json:"latest_receipt_info"` LatestReceiptInfo NotificationReceipt `json:"latest_receipt_info"`
// In the new notifications above properties latest_receipt, latest_receipt_info are moved under this one // In the new notifications above properties latest_receipt, latest_receipt_info are moved under this one
UnifiedReceipt NotificationUnifiedReceipt `json:"unified_receipt"` UnifiedReceipt NotificationUnifiedReceipt `json:"unified_receipt"`
// Posted only if the notification_type is RENEWAL or CANCEL or if renewal failed and subscription expired. // 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"` LatestExpiredReceipt string `json:"latest_expired_receipt"`
// Deprecated: see details: https://developer.apple.com/documentation/appstoreservernotifications/ .
LatestExpiredReceiptInfo NotificationReceipt `json:"latest_expired_receipt_info"` LatestExpiredReceiptInfo NotificationReceipt `json:"latest_expired_receipt_info"`
// Posted only if the notification_type is CANCEL. // Posted only if the notification_type is CANCEL.