3 Commits
v2 ... v2.0.0

Author SHA1 Message Date
cd5a78348a „go.mod“ ändern 2020-05-20 10:22:53 +00:00
Sanjidul Hoque
dad27d5283 Merge pull request #3 from Purchase-Fly/car
Add cancellation reason field for notification
2020-05-14 22:07:31 +06:00
sanjid133
777e3c50ef Add cancellation reason field for notification 2020-05-14 22:05:15 +06:00
2 changed files with 5 additions and 3 deletions

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 {
@@ -84,7 +85,7 @@ 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 string `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 // HACK (msyrus): Separate Subscriptiton Notification from Notification verification response
@@ -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"`
} }

4
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/awa/go-iap module git.deineagentur.com/DeineAgenturUG/go-iap
go 1.12 go 1.13
require ( require (
cloud.google.com/go v0.39.0 // indirect cloud.google.com/go v0.39.0 // indirect