Skip to content

Commit

Permalink
Update generated code for v258
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Mar 15, 2023
1 parent 3b31fb2 commit 5c792ab
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 52 deletions.
2 changes: 0 additions & 2 deletions lib/stripe/object_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions lib/stripe/resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
32 changes: 0 additions & 32 deletions lib/stripe/resources/capital/financing_offer.rb

This file was deleted.

12 changes: 0 additions & 12 deletions lib/stripe/resources/capital/financing_summary.rb

This file was deleted.

13 changes: 9 additions & 4 deletions lib/stripe/resources/quote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/%<quote>s/preview_invoice_lines", { quote: CGI.escape(self["id"]) }),
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(self["id"]), preview_invoice: CGI.escape(preview_invoice) }),
params: params,
opts: opts
)
Expand Down Expand Up @@ -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/%<quote>s/preview_invoice_lines", { quote: CGI.escape(quote) }),
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
params: params,
opts: opts
)
Expand Down

0 comments on commit 5c792ab

Please sign in to comment.