diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ac0cc575d..1dbca34fc 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1079 \ No newline at end of file +v1093 \ No newline at end of file diff --git a/lib/stripe/api_version.rb b/lib/stripe/api_version.rb index 4dd9b064e..9d726d565 100644 --- a/lib/stripe/api_version.rb +++ b/lib/stripe/api_version.rb @@ -3,6 +3,6 @@ module Stripe module ApiVersion - CURRENT = "2024-04-10" + CURRENT = "2024-06-20" end end diff --git a/lib/stripe/resources/issuing/authorization.rb b/lib/stripe/resources/issuing/authorization.rb index c5eeae69b..c21088e01 100644 --- a/lib/stripe/resources/issuing/authorization.rb +++ b/lib/stripe/resources/issuing/authorization.rb @@ -152,6 +152,26 @@ def expire(params = {}, opts = {}) ) end + # Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount. + def self.finalize_amount(authorization, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/test_helpers/issuing/authorizations/%s/finalize_amount", { authorization: CGI.escape(authorization) }), + params: params, + opts: opts + ) + end + + # Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount. + def finalize_amount(params = {}, opts = {}) + @resource.request_stripe_object( + method: :post, + path: format("/v1/test_helpers/issuing/authorizations/%s/finalize_amount", { authorization: CGI.escape(@resource["id"]) }), + params: params, + opts: opts + ) + end + # Increment a test-mode Authorization. def self.increment(authorization, params = {}, opts = {}) request_stripe_object( diff --git a/lib/stripe/resources/tax/calculation.rb b/lib/stripe/resources/tax/calculation.rb index e4114250c..99cd00e65 100644 --- a/lib/stripe/resources/tax/calculation.rb +++ b/lib/stripe/resources/tax/calculation.rb @@ -14,7 +14,7 @@ def self.object_name "tax.calculation" end - # Calculates tax based on input and returns a Tax Calculation object. + # Calculates tax based on the input and returns a Tax Calculation object. def self.create(params = {}, opts = {}) request_stripe_object( method: :post, diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index 50564f30c..f5b9d6b5b 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -1860,7 +1860,7 @@ class CodegennedExampleTest < Test::Unit::TestCase type: "diesel", unit: "liter", unit_cost_decimal: "3.5", - volume_decimal: "10", + quantity_decimal: "10", }, lodging: { check_in_at: 1_633_651_200, @@ -2000,7 +2000,7 @@ class CodegennedExampleTest < Test::Unit::TestCase type: "diesel", unit: "liter", unit_cost_decimal: "3.5", - volume_decimal: "10", + quantity_decimal: "10", }, lodging: { check_in_at: 1_533_651_200, @@ -2055,7 +2055,7 @@ class CodegennedExampleTest < Test::Unit::TestCase type: "diesel", unit: "liter", unit_cost_decimal: "3.5", - volume_decimal: "10", + quantity_decimal: "10", }, lodging: { check_in_at: 1_533_651_200,