Add cancellation reason field for notification

This commit is contained in:
sanjid133
2020-05-14 22:05:15 +06:00
parent 4f7b16717e
commit 777e3c50ef

View File

@@ -56,6 +56,7 @@ type NotificationReceipt struct {
OriginalPurchaseDate OriginalPurchaseDate
NotificationExpiresDate NotificationExpiresDate
CancellationDate CancellationDate
CancellationReason string `json:"cancellation_reason,omitempty"`
} }
type NotificationUnifiedReceipt struct { type NotificationUnifiedReceipt struct {
@@ -111,4 +112,5 @@ type SubscriptionNotification struct {
// Posted only if the notification_type is CANCEL. // Posted only if the notification_type is CANCEL.
CancellationDate CancellationDate
CancellationReason string `json:"cancellation_reason,omitempty"`
} }