From 3b38c42445ce9d8097ec6f0ac27d6ed92eb6abd7 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 20 Mar 2023 09:35:22 +0000 Subject: [PATCH] Update generated code for v268 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/terminal/reader.rb | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 829081851..cd5a82ad2 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v266 \ No newline at end of file +v268 \ No newline at end of file diff --git a/lib/stripe/resources/terminal/reader.rb b/lib/stripe/resources/terminal/reader.rb index 20b20601a..8ddb79923 100644 --- a/lib/stripe/resources/terminal/reader.rb +++ b/lib/stripe/resources/terminal/reader.rb @@ -23,6 +23,15 @@ def cancel_action(params = {}, opts = {}) ) end + def collect_inputs(params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/terminal/readers/%s/collect_inputs", { reader: CGI.escape(self["id"]) }), + params: params, + opts: opts + ) + end + def process_payment_intent(params = {}, opts = {}) request_stripe_object( method: :post, @@ -68,6 +77,15 @@ def self.cancel_action(reader, params = {}, opts = {}) ) end + def self.collect_inputs(reader, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/terminal/readers/%s/collect_inputs", { reader: CGI.escape(reader) }), + params: params, + opts: opts + ) + end + def self.process_payment_intent(reader, params = {}, opts = {}) request_stripe_object( method: :post,