Add missing notification verification fields

This commit is contained in:
Minhaz Ahmed Syrus
2018-11-06 14:25:38 +06:00
parent 49d7fb675d
commit 6d5e856650

View File

@@ -69,9 +69,13 @@ type SubscriptionNotification struct {
ExpirationIntent string `json:"expiration_intent"` ExpirationIntent string `json:"expiration_intent"`
// Auto renew info // Auto renew info
AutoRenewStatus string `json:"auto_renew_status"` // false or true AutoRenewStatus int `json:"auto_renew_status"` // false or true
AutoRenewProductID string `json:"auto_renew_product_id"` AutoRenewProductID string `json:"auto_renew_product_id"`
// HACK (msyrus): Separate Subscriptiton Notification from Notification verification response
Status int `json:"status"`
Receipt NotificationReceipt `json:"recipt"`
// 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.