From e0b5d5d14253ce253dcc63bbc3ccb3a4a55568f6 Mon Sep 17 00:00:00 2001 From: David Brownman <109395161+xavdid-stripe@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:18:52 -0700 Subject: [PATCH 1/2] add major version blurb to changelog (#1946) add major verison blurb to changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f46fc8872b..639444149d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog ## 81.0.0 - 2024-10-29 + +Historically, when upgrading webhooks to a new API version, you also had to upgrade your SDK version. Your webhook's API version needed to match the API version pinned by the SDK you were using to ensure successful deserialization of events. With the `2024-09-30.acacia` release, Stripe follows a [new API release process](https://stripe.com/blog/introducing-stripes-new-api-release-process). As a result, you can safely upgrade your webhook endpoints to any API version within a biannual release (like `acacia`) without upgrading the SDK. + +However, [a bug](https://github.com/stripe/stripe-go/pull/1940) in the `80.x.y` SDK releases meant that webhook version upgrades from the SDK's pinned `2024-09-30.acacia` version to the new `2024-10-28.acacia` version would fail. Therefore, we are shipping SDK support for `2024-10-28.acacia` as a major version to enforce the idea that an SDK upgrade is also required. Future API versions in the `acacia` line will be released as minor versions. + * [#1931](https://github.com/stripe/stripe-go/pull/1931) This release changes the pinned API version to `2024-10-28.acacia`. * Add support for new resource `V2.EventDestinations` * Add support for `New`, `Retrieve`, `Update`, `List`, `Delete`, `Disable`, `Enable` and `Ping` methods on resource `V2.EventDestinations` From e9c92894a43f750d837561e15c53bfdd68f15270 Mon Sep 17 00:00:00 2001 From: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:19:13 -0800 Subject: [PATCH 2/2] Change account test to use different enum value (#1948) --- account_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_test.go b/account_test.go index b67f46f1e6..1b1140c31c 100644 --- a/account_test.go +++ b/account_test.go @@ -66,7 +66,7 @@ func TestAccount_Unmarshal(t *testing.T) { "tos_acceptance.date", "tos_acceptance.ip", }, - "disabled_reason": "fields_needed", + "disabled_reason": "rejected.fraud", "errors": []map[string]interface{}{ { "code": "invalid_value_other", @@ -140,7 +140,7 @@ func TestAccount_Unmarshal(t *testing.T) { assert.Equal(t, int64(1234567890), account.Requirements.CurrentDeadline) assert.Equal(t, 2, len(account.Requirements.CurrentlyDue)) - assert.Equal(t, AccountRequirementsDisabledReasonFieldsNeeded, account.Requirements.DisabledReason) + assert.Equal(t, AccountRequirementsDisabledReasonRejectedFraud, account.Requirements.DisabledReason) assert.Equal(t, 1, len(account.Requirements.Errors)) assert.Equal(t, "invalid_value_other", account.Requirements.Errors[0].Code) assert.Equal(t, 1, len(account.Requirements.EventuallyDue))