From 5ad5458bc250c2d3f20ef6458004e2316d79adb8 Mon Sep 17 00:00:00 2001 From: pakrym-stripe <99349468+pakrym-stripe@users.noreply.github.com> Date: Tue, 23 May 2023 10:49:17 -0700 Subject: [PATCH 1/2] Downgrade jaro_winkler (#1225) --- Gemfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Gemfile b/Gemfile index 80baccd58..cbb5d797d 100644 --- a/Gemfile +++ b/Gemfile @@ -25,6 +25,9 @@ group :development do # up-to-date, but it's not the end of the world if it's not. gem "rubocop", "0.80" + # jaro_winkler 1.5.5 installation fails for jruby + gem "jaro_winkler", "1.5.4" + platforms :mri do gem "byebug" gem "pry" From 6d95d56abb18fd3f84fba39925d29d9b234f114e Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 25 May 2023 09:51:25 -0700 Subject: [PATCH 2/2] Update generated code for v353 (#1223) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: pakrym-stripe <99349468+pakrym-stripe@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- test/stripe/generated_examples_test.rb | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e66169e1a..d646e1409 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v344 \ No newline at end of file +v353 \ No newline at end of file diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index 889ba0e60..199f4aba8 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -2067,6 +2067,30 @@ class CodegennedExampleTest < Test::Unit::TestCase assert_requested :post, "#{Stripe.api_base}/v1/subscription_schedules/sub_sched_xxxxxxxxxxxxx" end end + context "Tax.Calculation.create" do + should "support requests with args: currency, line_items, customer_details" do + Stripe::Tax::Calculation.create({ + currency: "usd", + line_items: [ + { + amount: 1000, + reference: "L1", + }, + ], + customer_details: { + address: { + line1: "354 Oyster Point Blvd", + city: "South San Francisco", + state: "CA", + postal_code: "94080", + country: "US", + }, + address_source: "shipping", + }, + }) + assert_requested :post, "#{Stripe.api_base}/v1/tax/calculations" + end + end context "Tax.Calculation.list_line_items" do should "support requests with args: calculation" do Stripe::Tax::Calculation.list_line_items("xxx")