mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-29 00:03:01 -04:00
Update generated code for beta (#1206)
* Update generated code for v296 * Update generated code for v296 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
This commit is contained in:
parent
2c06e9c83e
commit
00077b44d8
@ -1 +1 @@
|
||||
v294
|
||||
v296
|
||||
@ -32,6 +32,24 @@ module Stripe
|
||||
)
|
||||
end
|
||||
|
||||
def collect_payment_method(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: format("/v1/terminal/readers/%<reader>s/collect_payment_method", { reader: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def confirm_payment_intent(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: format("/v1/terminal/readers/%<reader>s/confirm_payment_intent", { reader: CGI.escape(self["id"]) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def process_payment_intent(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
@ -86,6 +104,24 @@ module Stripe
|
||||
)
|
||||
end
|
||||
|
||||
def self.collect_payment_method(reader, params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: format("/v1/terminal/readers/%<reader>s/collect_payment_method", { reader: CGI.escape(reader) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.confirm_payment_intent(reader, params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: format("/v1/terminal/readers/%<reader>s/confirm_payment_intent", { reader: CGI.escape(reader) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.process_payment_intent(reader, params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
|
||||
@ -1137,6 +1137,16 @@ module Stripe
|
||||
)
|
||||
assert_requested :post, "#{Stripe.api_base}/v1/payment_intents"
|
||||
end
|
||||
should "support requests with args: amount, currency, payment_method_data" do
|
||||
Stripe::PaymentIntent.create(
|
||||
{
|
||||
amount: 200,
|
||||
currency: "usd",
|
||||
payment_method_data: { type: "p24", p24: { bank: "blik" } },
|
||||
}
|
||||
)
|
||||
assert_requested :post, "#{Stripe.api_base}/v1/payment_intents"
|
||||
end
|
||||
end
|
||||
context "PaymentIntent.increment_authorization" do
|
||||
should "support requests with args: amount, id" do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user