forked from Mirrors/go-iap
Fixed environmental constants
This commit is contained in:
@@ -17,7 +17,7 @@ type Environment string
|
||||
|
||||
const (
|
||||
Sandbox Environment = "Sandbox"
|
||||
Production Environment = "PROD"
|
||||
Production Environment = "Production"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -16,6 +16,13 @@ const (
|
||||
NotificationTypeDidChangeRenewalPreference NotificationType = "DID_CHANGE_RENEWAL_PREFERENCE"
|
||||
)
|
||||
|
||||
type NotificationEnvironment string
|
||||
|
||||
const (
|
||||
NotificationSandbox NotificationEnvironment = "Sandbox"
|
||||
NotificationProduction NotificationEnvironment = "PROD"
|
||||
)
|
||||
|
||||
type NotificationExpiresDate struct {
|
||||
ExpiresDateMS string `json:"expires_date"`
|
||||
ExpiresDateUTC string `json:"expires_date_formatted"`
|
||||
@@ -44,7 +51,7 @@ type NotificationReceipt struct {
|
||||
}
|
||||
|
||||
type SubscriptionNotification struct {
|
||||
Environment Environment `json:"environment"`
|
||||
Environment NotificationEnvironment `json:"environment"`
|
||||
NotificationType NotificationType `json:"notification_type"`
|
||||
|
||||
// Not show in raw notify body
|
||||
|
||||
Reference in New Issue
Block a user