From 244d144da1c10229c5d23232675430254e4544b3 Mon Sep 17 00:00:00 2001 From: Alexander Fedoseev Date: Wed, 4 Dec 2024 13:20:44 +0200 Subject: [PATCH 1/2] Change NonSubscription field type according to Revenue Cat API docs closes #11 --- subscriber.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/subscriber.go b/subscriber.go index 9d097c3..790c2ef 100644 --- a/subscriber.go +++ b/subscriber.go @@ -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 { From d647ba73c97d7082d6b4dd353b666a99a830b36d Mon Sep 17 00:00:00 2001 From: Takahiro Ikeuchi Date: Wed, 4 Dec 2024 23:47:00 +0900 Subject: [PATCH 2/2] chore: update Go version matrix in GitHub Actions workflow --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 26f8def..2542264 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-24.04 strategy: matrix: - go: ['1.22', '1.23'] + go: ['1.23'] steps: - uses: actions/checkout@v4 with: