Skip to content

Commit

Permalink
Merge pull request #12 from FedoseevAlex/resolve_issue_11
Browse files Browse the repository at this point in the history
Change NonSubscription field type according to Revenue Cat API docs
  • Loading branch information
iktakahiro authored Dec 4, 2024
2 parents 53ec11d + 244d144 commit c2e3c22
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit c2e3c22

Please sign in to comment.