File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,13 @@ const (
35
35
VoidedPurchaseProductTypeOneTime
36
36
)
37
37
38
+ type VoidedPurchaseRefundType int
39
+
40
+ const (
41
+ VoidedPurchaseRefundTypeFullRefund VoidedPurchaseRefundType = iota + 1
42
+ VoidedPurchaseRefundTypePartialRefund
43
+ )
44
+
38
45
// DeveloperNotification is sent by a Pub/Sub topic.
39
46
// Detailed description is following.
40
47
// https://developer.android.com/google/play/billing/rtdn-reference#json_specification
@@ -83,10 +90,12 @@ type OneTimeProductNotification struct {
83
90
// VoidedPurchaseNotification has token, order and product type to locate the right purchase and order.
84
91
// To learn how to get additional information about the voided purchase, check out the Google Play Voided Purchases API,
85
92
// which is a pull model that provides additional data for voided purchases between a given timestamp.
93
+ // https://developer.android.com/google/play/billing/rtdn-reference#voided-purchase
86
94
type VoidedPurchaseNotification struct {
87
95
PurchaseToken string `json:"purchaseToken"`
88
96
OrderID string `json:"orderId"`
89
97
ProductType VoidedPurchaseProductType `json:"productType"`
98
+ RefundType VoidedPurchaseRefundType `json:"refundType"`
90
99
}
91
100
92
101
// TestNotification is the test publish that are sent only through the Google Play Developer Console
You can’t perform that action at this time.
0 commit comments