From 8ee88fefc78a5c5deb9647b21146b2259b06f180 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 28 Jun 2024 21:17:19 +0000 Subject: [PATCH 1/2] Update generated code for v1105 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/customer_session.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a96216659..f5fcb6b49 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1104 \ No newline at end of file +v1105 \ No newline at end of file diff --git a/lib/stripe/resources/customer_session.rb b/lib/stripe/resources/customer_session.rb index 73dcaf5a8..9d66e044d 100644 --- a/lib/stripe/resources/customer_session.rb +++ b/lib/stripe/resources/customer_session.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - # A customer session allows you to grant client access to Stripe's frontend SDKs (like StripeJs) - # control over a customer. + # A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access + # control over a Customer. class CustomerSession < APIResource extend Stripe::APIOperations::Create @@ -12,7 +12,7 @@ def self.object_name "customer_session" end - # Creates a customer session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources. + # Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources. def self.create(params = {}, opts = {}) request_stripe_object( method: :post, From 8be3c30e4abaf5e547525986a837073996556c59 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:34:08 +0000 Subject: [PATCH 2/2] Update generated code for v1108 --- OPENAPI_VERSION | 2 +- lib/stripe/object_types.rb | 1 + lib/stripe/resources.rb | 1 + .../financial_connections/institution.rb | 26 +++++++++++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 lib/stripe/resources/financial_connections/institution.rb diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f5fcb6b49..9cac0fddf 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1105 \ No newline at end of file +v1108 \ No newline at end of file diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index c92f1c080..d3cf106d0 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -64,6 +64,7 @@ def self.object_names_to_classes FinancialConnections::AccountInferredBalance, FinancialConnections::AccountOwner.object_name => FinancialConnections::AccountOwner, FinancialConnections::AccountOwnership.object_name => FinancialConnections::AccountOwnership, + FinancialConnections::Institution.object_name => FinancialConnections::Institution, FinancialConnections::Session.object_name => FinancialConnections::Session, FinancialConnections::Transaction.object_name => FinancialConnections::Transaction, Forwarding::Request.object_name => Forwarding::Request, diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index 324a68db8..b9256dd3d 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -51,6 +51,7 @@ require "stripe/resources/financial_connections/account_inferred_balance" require "stripe/resources/financial_connections/account_owner" require "stripe/resources/financial_connections/account_ownership" +require "stripe/resources/financial_connections/institution" require "stripe/resources/financial_connections/session" require "stripe/resources/financial_connections/transaction" require "stripe/resources/forwarding/request" diff --git a/lib/stripe/resources/financial_connections/institution.rb b/lib/stripe/resources/financial_connections/institution.rb new file mode 100644 index 000000000..3be5bd6d7 --- /dev/null +++ b/lib/stripe/resources/financial_connections/institution.rb @@ -0,0 +1,26 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module FinancialConnections + # An institution represents a banking institution which may be available for an end user to select in the Financial Connections authentication flow. + class Institution < APIResource + extend Stripe::APIOperations::List + + OBJECT_NAME = "financial_connections.institution" + def self.object_name + "financial_connections.institution" + end + + # Returns a list of Financial Connections Institution objects. + def self.list(filters = {}, opts = {}) + request_stripe_object( + method: :get, + path: "/v1/financial_connections/institutions", + params: filters, + opts: opts + ) + end + end + end +end