Update generated code for v2121 and

This commit is contained in:
Stripe OpenAPI 2025-11-14 17:45:09 +00:00
parent b0da2a21f1
commit 1c609e6ffa
6 changed files with 11 additions and 3 deletions

View File

@ -1 +1 @@
441c0fcde75bcbf836f1a1810d5b9cfe8e8a7da4
f587035a62fe3323ed42077a0526158e57a8260b

View File

@ -1 +1 @@
v2117
v2121

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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")