From deeed0ab7923b0e1e5752d2158a2608031af945e Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 27 Jul 2023 22:33:49 +0000 Subject: [PATCH] Add test for `Quote.pdf` (#1248) * Update generated code for v426 * Update generated code for v426 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Richard Marmorstein <52928443+richardm-stripe@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/stripe/resources/person.rb | 2 +- test/stripe/generated_examples_test.rb | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ae2bb1461..da8dd2679 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v425 \ No newline at end of file +v426 \ No newline at end of file diff --git a/lib/stripe/resources/person.rb b/lib/stripe/resources/person.rb index f25a785f1..dae85cb41 100644 --- a/lib/stripe/resources/person.rb +++ b/lib/stripe/resources/person.rb @@ -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 diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index 451b03c66..cab8f0bfa 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -1695,6 +1695,13 @@ class CodegennedExampleTest < Test::Unit::TestCase 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.retrieve" do should "support requests with args: id" do Stripe::Quote.retrieve("qt_xxxxxxxxxxxxx")