Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change NonSubscription field type according to Revenue Cat API docs #12

Merged
merged 4 commits into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down