From a5f8242c41fb0ddb3782c540e54cc1f3513072bf Mon Sep 17 00:00:00 2001 From: Doron Galambos <15026706+dgalambos@users.noreply.github.com> Date: Mon, 16 Sep 2024 03:15:13 -0400 Subject: [PATCH] add ProductPlanIdentifier and GracePeriodExpiresDate to entitlements (#13) --- subscribers.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/subscribers.go b/subscribers.go index 553f5ec..b69d8ca 100644 --- a/subscribers.go +++ b/subscribers.go @@ -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