mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-19 00:01:13 -05:00
Update generated code for v2121 and
This commit is contained in:
parent
b0da2a21f1
commit
1c609e6ffa
@ -1 +1 @@
|
||||
441c0fcde75bcbf836f1a1810d5b9cfe8e8a7da4
|
||||
f587035a62fe3323ed42077a0526158e57a8260b
|
||||
@ -1 +1 @@
|
||||
v2117
|
||||
v2121
|
||||
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user