From 1c609e6ffaa9e5c4606614387a8397c0f9d49cc0 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 14 Nov 2025 17:45:09 +0000 Subject: [PATCH] Update generated code for v2121 and --- API_VERSION | 2 +- OPENAPI_VERSION | 2 +- lib/stripe/resources/v2/core/event.rb | 2 ++ rbi/stripe.rbi | 3 +++ rbi/stripe/resources/v2/core/event.rbi | 3 +++ test/stripe/generated_examples_test.rb | 2 +- 6 files changed, 11 insertions(+), 3 deletions(-) diff --git a/API_VERSION b/API_VERSION index 50609624..e0ecaaa2 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -441c0fcde75bcbf836f1a1810d5b9cfe8e8a7da4 \ No newline at end of file +f587035a62fe3323ed42077a0526158e57a8260b \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 85592454..559abffe 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2117 \ No newline at end of file +v2121 \ No newline at end of file diff --git a/lib/stripe/resources/v2/core/event.rb b/lib/stripe/resources/v2/core/event.rb index 988ace47..a3774965 100644 --- a/lib/stripe/resources/v2/core/event.rb +++ b/lib/stripe/resources/v2/core/event.rb @@ -39,6 +39,8 @@ module Stripe @field_remappings = {} end end + # Before and after changes for the primary related object. + attr_reader :changes # Authentication context needed to fetch the event or related object. attr_reader :context # Time at which the object was created. diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index 6d7c20c4..17426e10 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -47688,6 +47688,9 @@ module Stripe @field_remappings = {} end end + # Before and after changes for the primary related object. + sig { returns(T.nilable(T::Hash[String, T.untyped])) } + def changes; end # Authentication context needed to fetch the event or related object. sig { returns(T.nilable(String)) } def context; end diff --git a/rbi/stripe/resources/v2/core/event.rbi b/rbi/stripe/resources/v2/core/event.rbi index 66e336b5..2d2d0665 100644 --- a/rbi/stripe/resources/v2/core/event.rbi +++ b/rbi/stripe/resources/v2/core/event.rbi @@ -35,6 +35,9 @@ module Stripe @field_remappings = {} end end + # Before and after changes for the primary related object. + sig { returns(T.nilable(T::Hash[String, T.untyped])) } + def changes; end # Authentication context needed to fetch the event or related object. sig { returns(T.nilable(String)) } def context; end diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index cfc4505b..9c0fe9e8 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -985,7 +985,7 @@ module Stripe end should "Test core events get (service)" do stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/core/events/ll_123").to_return( - body: '{"context":"context","created":"1970-01-12T21:42:34.472Z","id":"obj_123","livemode":true,"object":"v2.core.event","reason":{"type":"request","request":{"id":"obj_123","idempotency_key":"idempotency_key"}},"type":"type"}' + body: '{"changes":{"int_key":123,"string_key":"value","boolean_key":true,"object_key":{"object_int_key":123,"object_string_key":"value","object_boolean_key":true},"array_key":[1,2,3]},"context":"context","created":"1970-01-12T21:42:34.472Z","id":"obj_123","livemode":true,"object":"v2.core.event","reason":{"type":"request","request":{"id":"obj_123","idempotency_key":"idempotency_key"}},"type":"type"}' ) client = Stripe::StripeClient.new("sk_test_123")