Merge pull request #1249 from stripe/latest-codegen-beta

Update generated code for beta
This commit is contained in:
stripe-openapi[bot] 2023-07-24 10:32:32 -07:00 committed by GitHub
commit 5609c6ce72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View File

@ -1 +1 @@
v425
v426

View File

@ -5,7 +5,7 @@ module Stripe
# This is an object representing a person associated with a Stripe account.
#
# A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account.
# See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform pre-filling and account onboarding steps.
# See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform prefilling and account onboarding steps.
#
# Related guide: [Handling identity verification with the API](https://stripe.com/docs/connect/identity-verification-api#person-information)
class Person < APIResource

View File

@ -1695,6 +1695,13 @@ module Stripe
assert_requested :get, "#{Stripe.api_base}/v1/quotes/qt_xxxxxxxxxxxxx/line_items?"
end
end
context "Quote.pdf" do
should "support requests with args: id" do
block_handler = {}
Stripe::Quote.pdf("qt_xxxxxxxxxxxxx", &block_handler)
assert_requested :get, "#{Stripe.api_base}/v1/quotes/qt_xxxxxxxxxxxxx/pdf?"
end
end
context "Quote.preview_invoice_lines" do
should "support requests with args: quote, preview_invoice" do
Stripe::Quote.preview_invoice_lines("qt_xyz", "in_xyz")

View File

@ -65,6 +65,7 @@ module Test
setup do
Stripe.api_key = "sk_test_123"
Stripe.api_base = "http://localhost:#{MOCK_PORT}"
Stripe.uploads_base = "http://localhost:#{MOCK_PORT}"
Stripe.authenticator = nil