diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index d80bfd78b..eae10ec3a 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -25,8 +25,6 @@ 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, diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index 7b9ad526e..86799b6ec 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -14,8 +14,6 @@ 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" diff --git a/lib/stripe/resources/capital/financing_offer.rb b/lib/stripe/resources/capital/financing_offer.rb deleted file mode 100644 index 736a11d2a..000000000 --- a/lib/stripe/resources/capital/financing_offer.rb +++ /dev/null @@ -1,32 +0,0 @@ -# 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 deleted file mode 100644 index cfdec7e1e..000000000 --- a/lib/stripe/resources/capital/financing_summary.rb +++ /dev/null @@ -1,12 +0,0 @@ -# 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/quote.rb b/lib/stripe/resources/quote.rb index b89861447..5c3d09553 100644 --- a/lib/stripe/resources/quote.rb +++ b/lib/stripe/resources/quote.rb @@ -83,10 +83,10 @@ def mark_stale_quote(params = {}, opts = {}) ) end - def preview_invoice_lines(params = {}, opts = {}) + def preview_invoice_lines(preview_invoice, params = {}, opts = {}) request_stripe_object( method: :get, - path: format("/v1/quotes/%s/preview_invoice_lines", { quote: CGI.escape(self["id"]) }), + path: format("/v1/quotes/%s/preview_invoices/%s/lines", { quote: CGI.escape(self["id"]), preview_invoice: CGI.escape(preview_invoice) }), params: params, opts: opts ) @@ -191,10 +191,15 @@ def self.mark_stale_quote(quote, params = {}, opts = {}) ) end - def self.preview_invoice_lines(quote, params = {}, opts = {}) + def self.preview_invoice_lines( + quote, + preview_invoice, + params = {}, + opts = {} + ) request_stripe_object( method: :get, - path: format("/v1/quotes/%s/preview_invoice_lines", { quote: CGI.escape(quote) }), + path: format("/v1/quotes/%s/preview_invoices/%s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }), params: params, opts: opts )