diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 073a3a984..72833e6d4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v185 \ No newline at end of file +v196 \ No newline at end of file diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index adb9f6483..ff0daf02f 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -25,6 +25,9 @@ def self.object_names_to_classes BillingPortal::Configuration::OBJECT_NAME => BillingPortal::Configuration, BillingPortal::Session::OBJECT_NAME => BillingPortal::Session, Capability::OBJECT_NAME => Capability, + Capital::FinancingOffer::OBJECT_NAME => Capital::FinancingOffer, + Capital::FinancingSummary::OBJECT_NAME => Capital::FinancingSummary, + Capital::FinancingTransaction::OBJECT_NAME => Capital::FinancingTransaction, Card::OBJECT_NAME => Card, CashBalance::OBJECT_NAME => CashBalance, Charge::OBJECT_NAME => Charge, diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index 1eb054eb7..90228b4e0 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -14,6 +14,9 @@ require "stripe/resources/billing_portal/configuration" require "stripe/resources/billing_portal/session" require "stripe/resources/capability" +require "stripe/resources/capital/financing_offer" +require "stripe/resources/capital/financing_summary" +require "stripe/resources/capital/financing_transaction" require "stripe/resources/card" require "stripe/resources/cash_balance" require "stripe/resources/charge" diff --git a/lib/stripe/resources/account_session.rb b/lib/stripe/resources/account_session.rb index 875f9506b..4497a26fd 100644 --- a/lib/stripe/resources/account_session.rb +++ b/lib/stripe/resources/account_session.rb @@ -2,13 +2,13 @@ # frozen_string_literal: true module Stripe - # An AccountSession allows a Connect platform to grant access to a connected account in Connect Elements. + # An AccountSession allows a Connect platform to grant access to a connected account in Connect Embedded UIs. # # We recommend that you create an AccountSession each time you need to display an embedded UI # to your user. Do not save AccountSessions to your database as they expire relatively # quickly, and cannot be used more than once. # - # Related guide: [Connect Elements](https://stripe.com/docs/connect/get-started-connect-elements). + # Related guide: [Connect Embedded UIs](https://stripe.com/docs/connect/get-started-connect-elements). class AccountSession < APIResource extend Stripe::APIOperations::Create diff --git a/lib/stripe/resources/capital/financing_offer.rb b/lib/stripe/resources/capital/financing_offer.rb new file mode 100644 index 000000000..736a11d2a --- /dev/null +++ b/lib/stripe/resources/capital/financing_offer.rb @@ -0,0 +1,32 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Capital + # This is an object representing an offer of financing from + # Stripe Capital to a Connect subaccount. + class FinancingOffer < APIResource + extend Stripe::APIOperations::List + + OBJECT_NAME = "capital.financing_offer" + + def mark_delivered(params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/capital/financing_offers/%s/mark_delivered", { financing_offer: CGI.escape(self["id"]) }), + params: params, + opts: opts + ) + end + + def self.mark_delivered(financing_offer, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/capital/financing_offers/%s/mark_delivered", { financing_offer: CGI.escape(financing_offer) }), + params: params, + opts: opts + ) + end + end + end +end diff --git a/lib/stripe/resources/capital/financing_summary.rb b/lib/stripe/resources/capital/financing_summary.rb new file mode 100644 index 000000000..cfdec7e1e --- /dev/null +++ b/lib/stripe/resources/capital/financing_summary.rb @@ -0,0 +1,12 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Capital + # A financing object describes an account's current financing state. Used by Connect + # platforms to read the state of Capital offered to their connected accounts. + class FinancingSummary < SingletonAPIResource + OBJECT_NAME = "capital.financing_summary" + end + end +end diff --git a/lib/stripe/resources/capital/financing_transaction.rb b/lib/stripe/resources/capital/financing_transaction.rb new file mode 100644 index 000000000..f8751f929 --- /dev/null +++ b/lib/stripe/resources/capital/financing_transaction.rb @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Capital + # This is an object representing the details of a transaction on a Capital financing object. + class FinancingTransaction < APIResource + extend Stripe::APIOperations::List + + OBJECT_NAME = "capital.financing_transaction" + end + end +end