Skip to content

Commit

Permalink
πŸ”„ Sync from monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
mojo-machine[bot] committed Apr 18, 2024
1 parent 3a3f222 commit a8a7ff8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/revenuecat/revenuecat.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ type UserInfoResponse struct {
}

type Subscriber struct {
Entitlements map[string]Entitlement `json:"entitlements"`
Subscriptions map[string]Subscription `json:"subscriptions"`
Entitlements map[string]Entitlement `json:"entitlements"`
Subscriptions map[string]Subscription `json:"subscriptions"`
NonSubscriptions map[string][]NonSubscription `json:"non_subscriptions"`
}

type Entitlement struct {
ExpiresDate time.Time `json:"expires_date"`
ProductIdentifier string `json:"product_identifier"`
ExpiresDate *time.Time `json:"expires_date"`
ProductIdentifier string `json:"product_identifier"`
}

type Subscription struct {
Expand All @@ -50,6 +51,10 @@ type Subscription struct {
Store StoreType `json:"store"`
}

type NonSubscription struct {
Store StoreType `json:"store"`
}

type PeriodType string

const (
Expand Down

0 comments on commit a8a7ff8

Please sign in to comment.