From 244d144da1c10229c5d23232675430254e4544b3 Mon Sep 17 00:00:00 2001 From: Alexander Fedoseev Date: Wed, 4 Dec 2024 13:20:44 +0200 Subject: [PATCH] Change NonSubscription field type according to Revenue Cat API docs closes #11 --- subscriber.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/subscriber.go b/subscriber.go index 9d097c3..790c2ef 100644 --- a/subscriber.go +++ b/subscriber.go @@ -12,13 +12,13 @@ type SubscriberResponse struct { } type Subscriber struct { - Entitlements map[string]Entitlement `json:"entitlements"` - FirstSeen time.Time `json:"first_seen"` - LastSeen time.Time `json:"last_seen"` - ManagementURL null.String `json:"management_url"` - OriginalAppUserID null.String `json:"original_app_user_id"` - Subscriptions map[string]Subscription `json:"subscriptions"` - NonSubscription map[string]NonSubscription `json:"non_subscriptions"` + Entitlements map[string]Entitlement `json:"entitlements"` + FirstSeen time.Time `json:"first_seen"` + LastSeen time.Time `json:"last_seen"` + ManagementURL null.String `json:"management_url"` + OriginalAppUserID null.String `json:"original_app_user_id"` + Subscriptions map[string]Subscription `json:"subscriptions"` + NonSubscription map[string][]NonSubscription `json:"non_subscriptions"` } type Entitlement struct {