Skip to content

Commit

Permalink
add ProductPlanIdentifier and GracePeriodExpiresDate to entitlements
Browse files Browse the repository at this point in the history
  • Loading branch information
dgalambos committed Sep 13, 2024
1 parent 2ffe64e commit 68b1343
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions subscribers.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ type Subscriber struct {

// https://docs.revenuecat.com/reference#the-entitlement-object
type Entitlement struct {
ExpiresDate time.Time `json:"expires_date"`
PurchaseDate time.Time `json:"purchase_date"`
ProductIdentifier string `json:"product_identifier"`
ExpiresDate time.Time `json:"expires_date"`
GracePeriodExpiresDate *time.Time `json:"grace_period_expires_date"`
PurchaseDate time.Time `json:"purchase_date"`
ProductIdentifier string `json:"product_identifier"`
ProductPlanIdentifier string `json:"product_plan_identifier"`
}

// https://docs.revenuecat.com/reference#the-subscription-object
Expand Down

0 comments on commit 68b1343

Please sign in to comment.