mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-17 00:03:02 -04:00
Update generated code for v1154
This commit is contained in:
parent
006dd567fc
commit
f4ced072fd
@ -1 +1 @@
|
|||||||
v1152
|
v1154
|
@ -20,6 +20,7 @@ module Stripe
|
|||||||
class Session < APIResource
|
class Session < APIResource
|
||||||
extend Stripe::APIOperations::Create
|
extend Stripe::APIOperations::Create
|
||||||
extend Stripe::APIOperations::List
|
extend Stripe::APIOperations::List
|
||||||
|
include Stripe::APIOperations::Save
|
||||||
|
|
||||||
OBJECT_NAME = "checkout.session"
|
OBJECT_NAME = "checkout.session"
|
||||||
def self.object_name
|
def self.object_name
|
||||||
@ -89,6 +90,16 @@ module Stripe
|
|||||||
opts: opts
|
opts: opts
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Updates a Session object.
|
||||||
|
def self.update(id, params = {}, opts = {})
|
||||||
|
request_stripe_object(
|
||||||
|
method: :post,
|
||||||
|
path: format("/v1/checkout/sessions/%<id>s", { id: CGI.escape(id) }),
|
||||||
|
params: params,
|
||||||
|
opts: opts
|
||||||
|
)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user