diff --git a/CHANGELOG.md b/CHANGELOG.md index d4a72fc5..e9228366 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 13.1.0-beta.1 - 2024-10-03 +* [#1465](https://github.com/stripe/stripe-ruby/pull/1465) Updates to the `Preview` class + * Remove `Stripe::Preview`. Use `StripeClient#raw_request` instead (see below). + * Marked `Stripe.raw_request` and `Stripe.deserialize` as deprecated. Use `StripeClient#raw_request` and `StripeClient#deserialize` instead. In StripeClient, the params and opts parameters are passed as keyword arguments: + ```ruby + # Before + resp = Stripe.raw_request(:post, "v1/charges", , {p1: "p1"}, {stripe_account: "acct_123"}) + charge = Stripe.deserialize(resp.data) + + # After + client = StripeClient.new("sk_test_123") + resp = client.raw_request(:post, "/v1/charges", params: {p1: "p1"}, opts: {stripe_account: "acct_123"}) + charge = client.deserialize(resp.data) + ``` + ## 13.0.0 - 2024-10-01 * [#1458](https://github.com/stripe/stripe-ruby/pull/1458) Support for APIs in the new API version 2024-09-30.acacia diff --git a/VERSION b/VERSION index ba3f85cf..8a1d5df4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -12.7.0-beta.2 +13.1.0-beta.1 diff --git a/lib/stripe/version.rb b/lib/stripe/version.rb index 55c38023..e1aac67f 100644 --- a/lib/stripe/version.rb +++ b/lib/stripe/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Stripe - VERSION = "12.7.0-beta.2" + VERSION = "13.1.0-beta.1" end